update pin editor
This commit is contained in:
@@ -21,14 +21,34 @@ class FcsShipmentDataProvider {
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> ship(FcsShipment fcsShipment) async {
|
||||
return await requestAPI("/fcs_shipments/ship", "PUT",
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<String> reportFcsShipment(FcsShipment fcsShipment) async {
|
||||
dynamic data = await requestAPI("/fcs_shipments/report", "POST",
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
return data["url"];
|
||||
}
|
||||
|
||||
Future<void> processFcsShipment(String id) async {
|
||||
return await requestAPI("/shipments/process", "PUT",
|
||||
payload: {"id": id}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> cancelFcsShipment(String id) async {
|
||||
return await requestAPI("/shipments/cancel", "PUT",
|
||||
payload: {"id": id}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> shipFcsShipment(String id) async {
|
||||
return await requestAPI("/shipments/ship", "PUT",
|
||||
payload: {"id": id}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> arriveFcsShipment(String id) async {
|
||||
return await requestAPI("/shipments/arrive", "PUT",
|
||||
payload: {"id": id}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> invoiceFcsShipment(String id) async {
|
||||
return await requestAPI("/shipments/invoice", "PUT",
|
||||
payload: {"id": id}, token: await getToken());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user