add shipments
This commit is contained in:
@@ -41,6 +41,13 @@ class PackageDataProvider {
|
||||
payload: {"id": package.id}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> changeDeliveryAddress(
|
||||
String packageID, String deliveryID) async {
|
||||
return await requestAPI("/packages/change_delivery_address", "PUT",
|
||||
payload: {"package_id": packageID, "deliver_address_id": deliveryID},
|
||||
token: await getToken());
|
||||
}
|
||||
|
||||
Future<List<Package>> searchPackage(String term) async {
|
||||
if (term == null || term == '') return List();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user