update shipment path
This commit is contained in:
@@ -7,12 +7,12 @@ class FcsShipmentDataProvider {
|
|||||||
final log = Logger('FcsShipmentDataProvider');
|
final log = Logger('FcsShipmentDataProvider');
|
||||||
|
|
||||||
Future<void> createFcsShipment(FcsShipment fcsShipment) async {
|
Future<void> createFcsShipment(FcsShipment fcsShipment) async {
|
||||||
return await requestAPI("/shipments", "POST",
|
return await requestAPI("/fcs_shipments", "POST",
|
||||||
payload: fcsShipment.toMap(), token: await getToken());
|
payload: fcsShipment.toMap(), token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> updateFcsShipment(FcsShipment fcsShipment) async {
|
Future<void> updateFcsShipment(FcsShipment fcsShipment) async {
|
||||||
return await requestAPI("/shipments", "PUT",
|
return await requestAPI("/fcs_shipments", "PUT",
|
||||||
payload: fcsShipment.toMap(), token: await getToken());
|
payload: fcsShipment.toMap(), token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,27 +23,27 @@ class FcsShipmentDataProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> processFcsShipment(String id) async {
|
Future<void> processFcsShipment(String id) async {
|
||||||
return await requestAPI("/shipments/process", "PUT",
|
return await requestAPI("/fcs_shipments/process", "PUT",
|
||||||
payload: {"id": id}, token: await getToken());
|
payload: {"id": id}, token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> cancelFcsShipment(String id) async {
|
Future<void> cancelFcsShipment(String id) async {
|
||||||
return await requestAPI("/shipments/cancel", "PUT",
|
return await requestAPI("/fcs_shipments/cancel", "PUT",
|
||||||
payload: {"id": id}, token: await getToken());
|
payload: {"id": id}, token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> shipFcsShipment(String id) async {
|
Future<void> shipFcsShipment(String id) async {
|
||||||
return await requestAPI("/shipments/ship", "PUT",
|
return await requestAPI("/fcs_shipments/ship", "PUT",
|
||||||
payload: {"id": id}, token: await getToken());
|
payload: {"id": id}, token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> arriveFcsShipment(String id) async {
|
Future<void> arriveFcsShipment(String id) async {
|
||||||
return await requestAPI("/shipments/arrive", "PUT",
|
return await requestAPI("/fcs_shipments/arrive", "PUT",
|
||||||
payload: {"id": id}, token: await getToken());
|
payload: {"id": id}, token: await getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> invoiceFcsShipment(String id) async {
|
Future<void> invoiceFcsShipment(String id) async {
|
||||||
return await requestAPI("/shipments/invoice", "PUT",
|
return await requestAPI("/fcs_shipments/invoice", "PUT",
|
||||||
payload: {"id": id}, token: await getToken());
|
payload: {"id": id}, token: await getToken());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user