add shipments
This commit is contained in:
@@ -26,8 +26,43 @@ class ShipmentDataProvider {
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> assignShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/assign", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> completeAssignShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/assign/complete", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> completePickupShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/pickup/complete", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> packShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/pack", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> completePackShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/pack/complete", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> confirmShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipment_confirm", "PUT",
|
||||
return await requestAPI("/shipments/confirm", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> completeConfirmShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/confirm/complete", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> completeReceiveShipment(Shipment shipment) async {
|
||||
return await requestAPI("/shipments/receive/complete", "PUT",
|
||||
payload: shipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user