update shipment type
This commit is contained in:
@@ -7,17 +7,12 @@ class FcsShipmentDataProvider {
|
||||
final log = Logger('FcsShipmentDataProvider');
|
||||
|
||||
Future<void> createFcsShipment(FcsShipment fcsShipment) async {
|
||||
return await requestAPI("/fcs_shipments", "POST",
|
||||
return await requestAPI("/shipments", "POST",
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> updateFcsShipment(FcsShipment fcsShipment) async {
|
||||
return await requestAPI("/fcs_shipments", "PUT",
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> deleteFcsShipment(FcsShipment fcsShipment) async {
|
||||
return await requestAPI("/fcs_shipments", "DELETE",
|
||||
return await requestAPI("/shipments", "PUT",
|
||||
payload: fcsShipment.toMap(), token: await getToken());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user