add pickup provider
This commit is contained in:
@@ -32,6 +32,7 @@ const user_joined_status = "joined";
|
||||
const pkg_files_path = "/packages";
|
||||
const shipment_labels_files_path = "/shipment_labels";
|
||||
const receipt_labels_files_path = "/receipts";
|
||||
const pickups_files_path = "/pickups";
|
||||
|
||||
// Link page
|
||||
const page_payment_methods = "payment_methods";
|
||||
@@ -79,7 +80,7 @@ const shipment_courier_dropoff = "Courier drop off";
|
||||
|
||||
//Carton types
|
||||
const carton_from_packages = "From packages";
|
||||
const carton_from_cartons="From cartons";
|
||||
const carton_from_cartons = "From cartons";
|
||||
const carton_from_shipments = "From shipments";
|
||||
const carton_mix_carton = "Mix carton";
|
||||
const carton_small_bag = "Small bag";
|
||||
|
||||
@@ -20,6 +20,10 @@ class Pickup {
|
||||
String? shipperPhoneNumber;
|
||||
String? status;
|
||||
|
||||
// for complete
|
||||
String? completeRemark;
|
||||
List<String> photoUrls;
|
||||
|
||||
List<Package> packages;
|
||||
|
||||
Pickup(
|
||||
@@ -37,7 +41,8 @@ class Pickup {
|
||||
this.shipperName,
|
||||
this.shipperPhoneNumber,
|
||||
this.status,
|
||||
this.packages = const []});
|
||||
this.packages = const [],
|
||||
this.photoUrls = const []});
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => other is Pickup && other.id == id;
|
||||
@@ -83,6 +88,14 @@ class Pickup {
|
||||
};
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMapForComplete() {
|
||||
return {
|
||||
"id": id,
|
||||
"complete_remark": completeRemark,
|
||||
'photo_urls': photoUrls ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Pickup{id: $id}';
|
||||
|
||||
Reference in New Issue
Block a user