|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyImageObject.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyImageObject.dart';
|
|
|
|
@ -9,72 +8,71 @@ List<OrderModel> orderModelFromJson(String str) => List<OrderModel>.from(json.de
|
|
|
|
String orderModelToJson(List<OrderModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));
|
|
|
|
String orderModelToJson(List<OrderModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));
|
|
|
|
|
|
|
|
|
|
|
|
class OrderModel {
|
|
|
|
class OrderModel {
|
|
|
|
|
|
|
|
String? id;
|
|
|
|
String id;
|
|
|
|
|
|
|
|
dynamic storeId;
|
|
|
|
dynamic storeId;
|
|
|
|
String orderGuid;
|
|
|
|
String? orderGuid;
|
|
|
|
bool pickUpInStore;
|
|
|
|
bool? pickUpInStore;
|
|
|
|
PaymentMethodSystemName paymentMethodSystemName;
|
|
|
|
PaymentMethodSystemName? paymentMethodSystemName;
|
|
|
|
PaymentName paymentName;
|
|
|
|
PaymentName? paymentName;
|
|
|
|
PaymentName paymentNamen;
|
|
|
|
PaymentName? paymentNamen;
|
|
|
|
CustomerCurrencyCode customerCurrencyCode;
|
|
|
|
CustomerCurrencyCode? customerCurrencyCode;
|
|
|
|
dynamic currencyRate;
|
|
|
|
dynamic currencyRate;
|
|
|
|
dynamic customerTaxDisplayTypeId;
|
|
|
|
dynamic customerTaxDisplayTypeId;
|
|
|
|
dynamic vatNumber;
|
|
|
|
dynamic vatNumber;
|
|
|
|
double orderSubtotalInclTax;
|
|
|
|
double? orderSubtotalInclTax;
|
|
|
|
double orderSubtotalExclTax;
|
|
|
|
double? orderSubtotalExclTax;
|
|
|
|
dynamic orderSubTotalDiscountInclTax;
|
|
|
|
dynamic orderSubTotalDiscountInclTax;
|
|
|
|
dynamic orderSubTotalDiscountExclTax;
|
|
|
|
dynamic orderSubTotalDiscountExclTax;
|
|
|
|
double orderShippingInclTax;
|
|
|
|
double? orderShippingInclTax;
|
|
|
|
dynamic orderShippingExclTax;
|
|
|
|
dynamic orderShippingExclTax;
|
|
|
|
dynamic paymentMethodAdditionalFeeInclTax;
|
|
|
|
dynamic paymentMethodAdditionalFeeInclTax;
|
|
|
|
dynamic paymentMethodAdditionalFeeExclTax;
|
|
|
|
dynamic paymentMethodAdditionalFeeExclTax;
|
|
|
|
String taxRates;
|
|
|
|
String? taxRates;
|
|
|
|
double orderTax;
|
|
|
|
double? orderTax;
|
|
|
|
dynamic orderDiscount;
|
|
|
|
dynamic orderDiscount;
|
|
|
|
dynamic productCount;
|
|
|
|
dynamic productCount;
|
|
|
|
double orderTotal;
|
|
|
|
double? orderTotal;
|
|
|
|
dynamic refundedAmount;
|
|
|
|
dynamic refundedAmount;
|
|
|
|
dynamic rewardPointsWereAdded;
|
|
|
|
dynamic rewardPointsWereAdded;
|
|
|
|
String rxAttachments;
|
|
|
|
String? rxAttachments;
|
|
|
|
CheckoutAttributeDescription checkoutAttributeDescription;
|
|
|
|
CheckoutAttributeDescription? checkoutAttributeDescription;
|
|
|
|
dynamic customerLanguageId;
|
|
|
|
dynamic customerLanguageId;
|
|
|
|
dynamic affiliateId;
|
|
|
|
dynamic affiliateId;
|
|
|
|
CustomerIp customerIp;
|
|
|
|
CustomerIp? customerIp;
|
|
|
|
String authorizationTransactionId;
|
|
|
|
String? authorizationTransactionId;
|
|
|
|
dynamic authorizationTransactionCode;
|
|
|
|
dynamic authorizationTransactionCode;
|
|
|
|
dynamic authorizationTransactionResult;
|
|
|
|
dynamic authorizationTransactionResult;
|
|
|
|
dynamic captureTransactionId;
|
|
|
|
dynamic captureTransactionId;
|
|
|
|
dynamic captureTransactionResult;
|
|
|
|
dynamic captureTransactionResult;
|
|
|
|
dynamic subscriptionTransactionId;
|
|
|
|
dynamic subscriptionTransactionId;
|
|
|
|
DateTime paidDateUtc;
|
|
|
|
DateTime? paidDateUtc;
|
|
|
|
ShippingMethod shippingMethod;
|
|
|
|
ShippingMethod? shippingMethod;
|
|
|
|
ShippingRateComputationMethodSystemName shippingRateComputationMethodSystemName;
|
|
|
|
ShippingRateComputationMethodSystemName? shippingRateComputationMethodSystemName;
|
|
|
|
String customValuesXml;
|
|
|
|
String? customValuesXml;
|
|
|
|
bool deleted;
|
|
|
|
bool? deleted;
|
|
|
|
DateTime createdOnUtc;
|
|
|
|
DateTime? createdOnUtc;
|
|
|
|
OrderModelCustomer customer;
|
|
|
|
OrderModelCustomer? customer;
|
|
|
|
dynamic customerId;
|
|
|
|
dynamic customerId;
|
|
|
|
IngAddress billingAddress;
|
|
|
|
IngAddress? billingAddress;
|
|
|
|
IngAddress shippingAddress;
|
|
|
|
IngAddress? shippingAddress;
|
|
|
|
List<OrderItem> orderItems;
|
|
|
|
List<OrderItem>? orderItems;
|
|
|
|
dynamic orderStatusId;
|
|
|
|
dynamic orderStatusId;
|
|
|
|
OrderStatus orderStatus;
|
|
|
|
OrderStatus? orderStatus;
|
|
|
|
OrderStatusn orderStatusn;
|
|
|
|
OrderStatusn? orderStatusn;
|
|
|
|
dynamic paymentStatusId;
|
|
|
|
dynamic paymentStatusId;
|
|
|
|
PaymentStatus paymentStatus;
|
|
|
|
PaymentStatus? paymentStatus;
|
|
|
|
PaymentStatusn paymentStatusn;
|
|
|
|
PaymentStatusn? paymentStatusn;
|
|
|
|
ShippingStatus shippingStatus;
|
|
|
|
ShippingStatus? shippingStatus;
|
|
|
|
ShippingStatusn shippingStatusn;
|
|
|
|
ShippingStatusn? shippingStatusn;
|
|
|
|
CustomerTaxDisplayType customerTaxDisplayType;
|
|
|
|
CustomerTaxDisplayType? customerTaxDisplayType;
|
|
|
|
bool canCancel;
|
|
|
|
bool? canCancel;
|
|
|
|
bool canRefund;
|
|
|
|
bool? canRefund;
|
|
|
|
dynamic lakumAmount;
|
|
|
|
dynamic lakumAmount;
|
|
|
|
DateTime preferDeliveryDate;
|
|
|
|
DateTime? preferDeliveryDate;
|
|
|
|
PreferDeliveryTime preferDeliveryTime;
|
|
|
|
PreferDeliveryTime? preferDeliveryTime;
|
|
|
|
PreferDeliveryTimen preferDeliveryTimen;
|
|
|
|
PreferDeliveryTimen? preferDeliveryTimen;
|
|
|
|
String driverOTP;
|
|
|
|
String? driverOTP;
|
|
|
|
String driverID;
|
|
|
|
String? driverID;
|
|
|
|
|
|
|
|
|
|
|
|
OrderModel({
|
|
|
|
OrderModel({
|
|
|
|
this.id,
|
|
|
|
this.id,
|
|
|
|
@ -149,10 +147,10 @@ class OrderModel {
|
|
|
|
storeId: json["store_id"],
|
|
|
|
storeId: json["store_id"],
|
|
|
|
orderGuid: json["order_guid"],
|
|
|
|
orderGuid: json["order_guid"],
|
|
|
|
pickUpInStore: json["pick_up_in_store"],
|
|
|
|
pickUpInStore: json["pick_up_in_store"],
|
|
|
|
paymentMethodSystemName: paymentMethodSystemNameValues.map[json["payment_method_system_name"]],
|
|
|
|
paymentMethodSystemName: paymentMethodSystemNameValues.map![json["payment_method_system_name"]],
|
|
|
|
paymentName: paymentNameValues.map[json["payment_name"]],
|
|
|
|
paymentName: paymentNameValues.map![json["payment_name"]],
|
|
|
|
paymentNamen: paymentNameValues.map[json["payment_namen"]],
|
|
|
|
paymentNamen: paymentNameValues.map![json["payment_namen"]],
|
|
|
|
customerCurrencyCode: customerCurrencyCodeValues.map[json["customer_currency_code"]],
|
|
|
|
customerCurrencyCode: customerCurrencyCodeValues.map![json["customer_currency_code"]],
|
|
|
|
currencyRate: json["currency_rate"],
|
|
|
|
currencyRate: json["currency_rate"],
|
|
|
|
customerTaxDisplayTypeId: json["customer_tax_display_type_id"],
|
|
|
|
customerTaxDisplayTypeId: json["customer_tax_display_type_id"],
|
|
|
|
vatNumber: json["vat_number"],
|
|
|
|
vatNumber: json["vat_number"],
|
|
|
|
@ -172,10 +170,10 @@ class OrderModel {
|
|
|
|
refundedAmount: json["refunded_amount"],
|
|
|
|
refundedAmount: json["refunded_amount"],
|
|
|
|
rewardPointsWereAdded: json["reward_points_were_added"],
|
|
|
|
rewardPointsWereAdded: json["reward_points_were_added"],
|
|
|
|
rxAttachments: json["rx_attachments"] == null ? null : json["rx_attachments"],
|
|
|
|
rxAttachments: json["rx_attachments"] == null ? null : json["rx_attachments"],
|
|
|
|
checkoutAttributeDescription: checkoutAttributeDescriptionValues.map[json["checkout_attribute_description"]],
|
|
|
|
checkoutAttributeDescription: checkoutAttributeDescriptionValues.map![json["checkout_attribute_description"]],
|
|
|
|
customerLanguageId: json["customer_language_id"],
|
|
|
|
customerLanguageId: json["customer_language_id"],
|
|
|
|
affiliateId: json["affiliate_id"],
|
|
|
|
affiliateId: json["affiliate_id"],
|
|
|
|
customerIp: customerIpValues.map[json["customer_ip"]],
|
|
|
|
customerIp: customerIpValues.map![json["customer_ip"]],
|
|
|
|
authorizationTransactionId: json["authorization_transaction_id"] == null ? null : json["authorization_transaction_id"],
|
|
|
|
authorizationTransactionId: json["authorization_transaction_id"] == null ? null : json["authorization_transaction_id"],
|
|
|
|
authorizationTransactionCode: json["authorization_transaction_code"],
|
|
|
|
authorizationTransactionCode: json["authorization_transaction_code"],
|
|
|
|
authorizationTransactionResult: json["authorization_transaction_result"],
|
|
|
|
authorizationTransactionResult: json["authorization_transaction_result"],
|
|
|
|
@ -183,8 +181,8 @@ class OrderModel {
|
|
|
|
captureTransactionResult: json["capture_transaction_result"],
|
|
|
|
captureTransactionResult: json["capture_transaction_result"],
|
|
|
|
subscriptionTransactionId: json["subscription_transaction_id"],
|
|
|
|
subscriptionTransactionId: json["subscription_transaction_id"],
|
|
|
|
paidDateUtc: json["paid_date_utc"] == null ? null : DateTime.parse(json["paid_date_utc"]),
|
|
|
|
paidDateUtc: json["paid_date_utc"] == null ? null : DateTime.parse(json["paid_date_utc"]),
|
|
|
|
shippingMethod: shippingMethodValues.map[json["shipping_method"]],
|
|
|
|
shippingMethod: shippingMethodValues.map![json["shipping_method"]],
|
|
|
|
shippingRateComputationMethodSystemName: shippingRateComputationMethodSystemNameValues.map[json["shipping_rate_computation_method_system_name"]],
|
|
|
|
shippingRateComputationMethodSystemName: shippingRateComputationMethodSystemNameValues.map![json["shipping_rate_computation_method_system_name"]],
|
|
|
|
customValuesXml: json["custom_values_xml"],
|
|
|
|
customValuesXml: json["custom_values_xml"],
|
|
|
|
deleted: json["deleted"],
|
|
|
|
deleted: json["deleted"],
|
|
|
|
createdOnUtc: DateTime.parse(json["created_on_utc"]),
|
|
|
|
createdOnUtc: DateTime.parse(json["created_on_utc"]),
|
|
|
|
@ -194,25 +192,24 @@ class OrderModel {
|
|
|
|
shippingAddress: IngAddress.fromJson(json["shipping_address"]),
|
|
|
|
shippingAddress: IngAddress.fromJson(json["shipping_address"]),
|
|
|
|
orderItems: List<OrderItem>.from(json["order_items"].map((x) => OrderItem.fromJson(x))),
|
|
|
|
orderItems: List<OrderItem>.from(json["order_items"].map((x) => OrderItem.fromJson(x))),
|
|
|
|
orderStatusId: json["order_status_id"],
|
|
|
|
orderStatusId: json["order_status_id"],
|
|
|
|
orderStatus: orderStatusValues.map[json["order_status"]],
|
|
|
|
orderStatus: orderStatusValues.map![json["order_status"]],
|
|
|
|
orderStatusn: orderStatusnValues.map[json["order_statusn"]],
|
|
|
|
orderStatusn: orderStatusnValues.map![json["order_statusn"]],
|
|
|
|
paymentStatusId: json["payment_status_id"],
|
|
|
|
paymentStatusId: json["payment_status_id"],
|
|
|
|
paymentStatus: paymentStatusValues.map[json["payment_status"]],
|
|
|
|
paymentStatus: paymentStatusValues.map![json["payment_status"]],
|
|
|
|
paymentStatusn: paymentStatusnValues.map[json["payment_statusn"]],
|
|
|
|
paymentStatusn: paymentStatusnValues.map![json["payment_statusn"]],
|
|
|
|
shippingStatus: shippingStatusValues.map[json["shipping_status"]],
|
|
|
|
shippingStatus: shippingStatusValues.map![json["shipping_status"]],
|
|
|
|
shippingStatusn: shippingStatusnValues.map[json["shipping_statusn"]],
|
|
|
|
shippingStatusn: shippingStatusnValues.map![json["shipping_statusn"]],
|
|
|
|
customerTaxDisplayType: customerTaxDisplayTypeValues.map[json["customer_tax_display_type"]],
|
|
|
|
customerTaxDisplayType: customerTaxDisplayTypeValues.map![json["customer_tax_display_type"]],
|
|
|
|
canCancel: json["can_cancel"],
|
|
|
|
canCancel: json["can_cancel"],
|
|
|
|
canRefund: json["can_refund"],
|
|
|
|
canRefund: json["can_refund"],
|
|
|
|
lakumAmount: json["lakum_amount"],
|
|
|
|
lakumAmount: json["lakum_amount"],
|
|
|
|
preferDeliveryDate: json["prefer_delivery_date"] == null ? null : DateTime.parse(json["prefer_delivery_date"]),
|
|
|
|
preferDeliveryDate: json["prefer_delivery_date"] == null ? null : DateTime.parse(json["prefer_delivery_date"]),
|
|
|
|
preferDeliveryTime: json["prefer_delivery_time"] == null ? null : preferDeliveryTimeValues.map[json["prefer_delivery_time"]],
|
|
|
|
preferDeliveryTime: json["prefer_delivery_time"] == null ? null : preferDeliveryTimeValues.map![json["prefer_delivery_time"]],
|
|
|
|
preferDeliveryTimen: json["prefer_delivery_timen"] == null ? null : preferDeliveryTimenValues.map[json["prefer_delivery_timen"]],
|
|
|
|
preferDeliveryTimen: json["prefer_delivery_timen"] == null ? null : preferDeliveryTimenValues.map![json["prefer_delivery_timen"]],
|
|
|
|
|
|
|
|
|
|
|
|
// Driver Detail
|
|
|
|
// Driver Detail
|
|
|
|
driverID: json["DriverID"],
|
|
|
|
driverID: json["DriverID"],
|
|
|
|
driverOTP: json["DriverOTP"],
|
|
|
|
driverOTP: json["DriverOTP"],
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
@ -252,17 +249,17 @@ class OrderModel {
|
|
|
|
"capture_transaction_id": captureTransactionId,
|
|
|
|
"capture_transaction_id": captureTransactionId,
|
|
|
|
"capture_transaction_result": captureTransactionResult,
|
|
|
|
"capture_transaction_result": captureTransactionResult,
|
|
|
|
"subscription_transaction_id": subscriptionTransactionId,
|
|
|
|
"subscription_transaction_id": subscriptionTransactionId,
|
|
|
|
"paid_date_utc": paidDateUtc == null ? null : paidDateUtc.toIso8601String(),
|
|
|
|
"paid_date_utc": paidDateUtc == null ? null : paidDateUtc!.toIso8601String(),
|
|
|
|
"shipping_method": shippingMethodValues.reverse[shippingMethod],
|
|
|
|
"shipping_method": shippingMethodValues.reverse[shippingMethod],
|
|
|
|
"shipping_rate_computation_method_system_name": shippingRateComputationMethodSystemNameValues.reverse[shippingRateComputationMethodSystemName],
|
|
|
|
"shipping_rate_computation_method_system_name": shippingRateComputationMethodSystemNameValues.reverse[shippingRateComputationMethodSystemName],
|
|
|
|
"custom_values_xml": customValuesXml,
|
|
|
|
"custom_values_xml": customValuesXml,
|
|
|
|
"deleted": deleted,
|
|
|
|
"deleted": deleted,
|
|
|
|
"created_on_utc": createdOnUtc.toIso8601String(),
|
|
|
|
"created_on_utc": createdOnUtc!.toIso8601String(),
|
|
|
|
"customer": customer.toJson(),
|
|
|
|
"customer": customer!.toJson(),
|
|
|
|
"customer_id": customerId,
|
|
|
|
"customer_id": customerId,
|
|
|
|
"billing_address": billingAddress.toJson(),
|
|
|
|
"billing_address": billingAddress!.toJson(),
|
|
|
|
"shipping_address": shippingAddress.toJson(),
|
|
|
|
"shipping_address": shippingAddress!.toJson(),
|
|
|
|
"order_items": List<dynamic>.from(orderItems.map((x) => x.toJson())),
|
|
|
|
"order_items": List<dynamic>.from(orderItems!.map((x) => x.toJson())),
|
|
|
|
"order_status_id": orderStatusId,
|
|
|
|
"order_status_id": orderStatusId,
|
|
|
|
"order_status": orderStatusValues.reverse[orderStatus],
|
|
|
|
"order_status": orderStatusValues.reverse[orderStatus],
|
|
|
|
"order_statusn": orderStatusnValues.reverse[orderStatusn],
|
|
|
|
"order_statusn": orderStatusnValues.reverse[orderStatusn],
|
|
|
|
@ -275,7 +272,9 @@ class OrderModel {
|
|
|
|
"can_cancel": canCancel,
|
|
|
|
"can_cancel": canCancel,
|
|
|
|
"can_refund": canRefund,
|
|
|
|
"can_refund": canRefund,
|
|
|
|
"lakum_amount": lakumAmount,
|
|
|
|
"lakum_amount": lakumAmount,
|
|
|
|
"prefer_delivery_date": preferDeliveryDate == null ? null : "${preferDeliveryDate.year.toString().padLeft(4, '0')}-${preferDeliveryDate.month.toString().padLeft(2, '0')}-${preferDeliveryDate.day.toString().padLeft(2, '0')}",
|
|
|
|
"prefer_delivery_date": preferDeliveryDate == null
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: "${preferDeliveryDate!.year.toString().padLeft(4, '0')}-${preferDeliveryDate!.month.toString().padLeft(2, '0')}-${preferDeliveryDate!.day.toString().padLeft(2, '0')}",
|
|
|
|
"prefer_delivery_time": preferDeliveryTime == null ? null : preferDeliveryTimeValues.reverse[preferDeliveryTime],
|
|
|
|
"prefer_delivery_time": preferDeliveryTime == null ? null : preferDeliveryTimeValues.reverse[preferDeliveryTime],
|
|
|
|
"prefer_delivery_timen": preferDeliveryTimen == null ? null : preferDeliveryTimenValues.reverse[preferDeliveryTimen],
|
|
|
|
"prefer_delivery_timen": preferDeliveryTimen == null ? null : preferDeliveryTimenValues.reverse[preferDeliveryTimen],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -303,52 +302,53 @@ class IngAddress {
|
|
|
|
this.latLong,
|
|
|
|
this.latLong,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
String id;
|
|
|
|
String? id;
|
|
|
|
FirstName firstName;
|
|
|
|
FirstName? firstName;
|
|
|
|
LastName lastName;
|
|
|
|
LastName? lastName;
|
|
|
|
BillingAddressEmail email;
|
|
|
|
BillingAddressEmail? email;
|
|
|
|
dynamic company;
|
|
|
|
dynamic company;
|
|
|
|
dynamic countryId;
|
|
|
|
dynamic countryId;
|
|
|
|
Country country;
|
|
|
|
Country? country;
|
|
|
|
dynamic stateProvinceId;
|
|
|
|
dynamic stateProvinceId;
|
|
|
|
City city;
|
|
|
|
City? city;
|
|
|
|
Address1 address1;
|
|
|
|
Address1? address1;
|
|
|
|
Address2 address2;
|
|
|
|
Address2? address2;
|
|
|
|
String zipPostalCode;
|
|
|
|
String? zipPostalCode;
|
|
|
|
String phoneNumber;
|
|
|
|
String? phoneNumber;
|
|
|
|
dynamic faxNumber;
|
|
|
|
dynamic faxNumber;
|
|
|
|
String customerAttributes;
|
|
|
|
String? customerAttributes;
|
|
|
|
DateTime createdOnUtc;
|
|
|
|
DateTime? createdOnUtc;
|
|
|
|
dynamic province;
|
|
|
|
dynamic province;
|
|
|
|
String latLong;
|
|
|
|
String? latLong;
|
|
|
|
|
|
|
|
|
|
|
|
LatLng getLocation(){
|
|
|
|
LatLng getLocation() {
|
|
|
|
if(latLong.contains(',')){
|
|
|
|
if (latLong!.contains(',')) {
|
|
|
|
var parts = latLong.trim().split(',');
|
|
|
|
var parts = latLong!.trim().split(',');
|
|
|
|
if(parts.length == 2){
|
|
|
|
if (parts.length == 2) {
|
|
|
|
var lat = double.tryParse(parts.first);
|
|
|
|
var lat = double.tryParse(parts.first);
|
|
|
|
var lng = double.tryParse(parts.last);
|
|
|
|
var lng = double.tryParse(parts.last);
|
|
|
|
if(lat != null || lng != null) {
|
|
|
|
if (lat != null || lng != null) {
|
|
|
|
var location = LatLng(lat, lng);
|
|
|
|
var location = LatLng(lat!, lng!);
|
|
|
|
return location;
|
|
|
|
return location;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
return LatLng(double.nan, double.nan);
|
|
|
|
|
|
|
|
//changed by Aamir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
factory IngAddress.fromJson(Map<String, dynamic> json) => IngAddress(
|
|
|
|
factory IngAddress.fromJson(Map<String, dynamic> json) => IngAddress(
|
|
|
|
id: json["id"],
|
|
|
|
id: json["id"],
|
|
|
|
firstName: firstNameValues.map[json["first_name"]],
|
|
|
|
firstName: firstNameValues.map![json["first_name"]],
|
|
|
|
lastName: lastNameValues.map[json["last_name"]],
|
|
|
|
lastName: lastNameValues.map![json["last_name"]],
|
|
|
|
email: billingAddressEmailValues.map[json["email"]],
|
|
|
|
email: billingAddressEmailValues.map![json["email"]],
|
|
|
|
company: json["company"],
|
|
|
|
company: json["company"],
|
|
|
|
countryId: json["country_id"],
|
|
|
|
countryId: json["country_id"],
|
|
|
|
country: countryValues.map[json["country"]],
|
|
|
|
country: countryValues.map![json["country"]],
|
|
|
|
stateProvinceId: json["state_province_id"],
|
|
|
|
stateProvinceId: json["state_province_id"],
|
|
|
|
city: cityValues.map[json["city"]],
|
|
|
|
city: cityValues.map![json["city"]],
|
|
|
|
address1: address1Values.map[json["address1"]],
|
|
|
|
address1: address1Values.map![json["address1"]],
|
|
|
|
address2: address2Values.map[json["address2"]],
|
|
|
|
address2: address2Values.map![json["address2"]],
|
|
|
|
zipPostalCode: json["zip_postal_code"],
|
|
|
|
zipPostalCode: json["zip_postal_code"],
|
|
|
|
phoneNumber: json["phone_number"],
|
|
|
|
phoneNumber: json["phone_number"],
|
|
|
|
faxNumber: json["fax_number"],
|
|
|
|
faxNumber: json["fax_number"],
|
|
|
|
@ -374,13 +374,21 @@ class IngAddress {
|
|
|
|
"phone_number": phoneNumber,
|
|
|
|
"phone_number": phoneNumber,
|
|
|
|
"fax_number": faxNumber,
|
|
|
|
"fax_number": faxNumber,
|
|
|
|
"customer_attributes": customerAttributes,
|
|
|
|
"customer_attributes": customerAttributes,
|
|
|
|
"created_on_utc": createdOnUtc.toIso8601String(),
|
|
|
|
"created_on_utc": createdOnUtc!.toIso8601String(),
|
|
|
|
"province": province,
|
|
|
|
"province": province,
|
|
|
|
"lat_long": latLong,
|
|
|
|
"lat_long": latLong,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
enum Address1 { THE_7960_MOSAB_IBN_UMAIR_STREET_AL_RIYADH, THE_6500_AL_AMEEN_ABDULLAH_AL_ALI_AL_NAEEM_STREET_AL_RIYADH, THE_6603_IBRAHIM_IBN_AL_HAMASI_AR_RIYAD, THE_9626_SALAH_AD_DIN_AL_AYYUBI_ROAD_AL_RIYADH, THE_3075_PRINCE_MANSUR_BIN_ABDULAZIZ_STREET_AL_RIYADH, THE_40, THE_7801_AL_IHSA_AL_RIYADH }
|
|
|
|
enum Address1 {
|
|
|
|
|
|
|
|
THE_7960_MOSAB_IBN_UMAIR_STREET_AL_RIYADH,
|
|
|
|
|
|
|
|
THE_6500_AL_AMEEN_ABDULLAH_AL_ALI_AL_NAEEM_STREET_AL_RIYADH,
|
|
|
|
|
|
|
|
THE_6603_IBRAHIM_IBN_AL_HAMASI_AR_RIYAD,
|
|
|
|
|
|
|
|
THE_9626_SALAH_AD_DIN_AL_AYYUBI_ROAD_AL_RIYADH,
|
|
|
|
|
|
|
|
THE_3075_PRINCE_MANSUR_BIN_ABDULAZIZ_STREET_AL_RIYADH,
|
|
|
|
|
|
|
|
THE_40,
|
|
|
|
|
|
|
|
THE_7801_AL_IHSA_AL_RIYADH
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final address1Values = EnumValues({
|
|
|
|
final address1Values = EnumValues({
|
|
|
|
"3075, Prince Mansur Bin Abdulaziz Street, Al Riyadh, ": Address1.THE_3075_PRINCE_MANSUR_BIN_ABDULAZIZ_STREET_AL_RIYADH,
|
|
|
|
"3075, Prince Mansur Bin Abdulaziz Street, Al Riyadh, ": Address1.THE_3075_PRINCE_MANSUR_BIN_ABDULAZIZ_STREET_AL_RIYADH,
|
|
|
|
@ -392,7 +400,15 @@ final address1Values = EnumValues({
|
|
|
|
"9626, Salah Ad Din Al Ayyubi Road, Al Riyadh, ": Address1.THE_9626_SALAH_AD_DIN_AL_AYYUBI_ROAD_AL_RIYADH
|
|
|
|
"9626, Salah Ad Din Al Ayyubi Road, Al Riyadh, ": Address1.THE_9626_SALAH_AD_DIN_AL_AYYUBI_ROAD_AL_RIYADH
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
enum Address2 { AL_MALAZ_RIYADH_PROVINCE_3460, AL_MALAZ_RIYADH_PROVINCE_2817, AR_RAHMANIYYAH_RIYADH_PROVINCE_3816, AL_MALAZ_RIYADH_PROVINCE_3815, AL_WIZARAT_RIYADH_PROVINCE_7039, EASTERN_PROVINCE, AL_MALAZ_RIYADH_PROVINCE_3084 }
|
|
|
|
enum Address2 {
|
|
|
|
|
|
|
|
AL_MALAZ_RIYADH_PROVINCE_3460,
|
|
|
|
|
|
|
|
AL_MALAZ_RIYADH_PROVINCE_2817,
|
|
|
|
|
|
|
|
AR_RAHMANIYYAH_RIYADH_PROVINCE_3816,
|
|
|
|
|
|
|
|
AL_MALAZ_RIYADH_PROVINCE_3815,
|
|
|
|
|
|
|
|
AL_WIZARAT_RIYADH_PROVINCE_7039,
|
|
|
|
|
|
|
|
EASTERN_PROVINCE,
|
|
|
|
|
|
|
|
AL_MALAZ_RIYADH_PROVINCE_3084
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final address2Values = EnumValues({
|
|
|
|
final address2Values = EnumValues({
|
|
|
|
"Al Malaz, Riyadh Province, 2817, ": Address2.AL_MALAZ_RIYADH_PROVINCE_2817,
|
|
|
|
"Al Malaz, Riyadh Province, 2817, ": Address2.AL_MALAZ_RIYADH_PROVINCE_2817,
|
|
|
|
@ -406,16 +422,11 @@ final address2Values = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum City { RIYADH, DAMMAM }
|
|
|
|
enum City { RIYADH, DAMMAM }
|
|
|
|
|
|
|
|
|
|
|
|
final cityValues = EnumValues({
|
|
|
|
final cityValues = EnumValues({"Dammam": City.DAMMAM, "Riyadh": City.RIYADH});
|
|
|
|
"Dammam": City.DAMMAM,
|
|
|
|
|
|
|
|
"Riyadh": City.RIYADH
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum Country { SAUDI_ARABIA }
|
|
|
|
enum Country { SAUDI_ARABIA }
|
|
|
|
|
|
|
|
|
|
|
|
final countryValues = EnumValues({
|
|
|
|
final countryValues = EnumValues({"Saudi Arabia": Country.SAUDI_ARABIA});
|
|
|
|
"Saudi Arabia": Country.SAUDI_ARABIA
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum BillingAddressEmail { TAMER_FANASHEH_GMAIL_COM, TAMER_DASDASDAS_GMAIL_COM, TAMER_FANASHEH_DRSULAIMANALHABIB_COM }
|
|
|
|
enum BillingAddressEmail { TAMER_FANASHEH_GMAIL_COM, TAMER_DASDASDAS_GMAIL_COM, TAMER_FANASHEH_DRSULAIMANALHABIB_COM }
|
|
|
|
|
|
|
|
|
|
|
|
@ -427,21 +438,23 @@ final billingAddressEmailValues = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum FirstName { TAMER, TAMER_FANASHEH, FIRST_NAME_TAMER }
|
|
|
|
enum FirstName { TAMER, TAMER_FANASHEH, FIRST_NAME_TAMER }
|
|
|
|
|
|
|
|
|
|
|
|
final firstNameValues = EnumValues({
|
|
|
|
final firstNameValues = EnumValues({"tamer": FirstName.FIRST_NAME_TAMER, "TAMER": FirstName.TAMER, "TAMER FANASHEH": FirstName.TAMER_FANASHEH});
|
|
|
|
"tamer": FirstName.FIRST_NAME_TAMER,
|
|
|
|
|
|
|
|
"TAMER": FirstName.TAMER,
|
|
|
|
|
|
|
|
"TAMER FANASHEH": FirstName.TAMER_FANASHEH
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum LastName { FANASHEH, MUSA, LAST_NAME_FANASHEH }
|
|
|
|
enum LastName { FANASHEH, MUSA, LAST_NAME_FANASHEH }
|
|
|
|
|
|
|
|
|
|
|
|
final lastNameValues = EnumValues({
|
|
|
|
final lastNameValues = EnumValues({"FANASHEH": LastName.FANASHEH, "Fanasheh": LastName.LAST_NAME_FANASHEH, "MUSA": LastName.MUSA});
|
|
|
|
"FANASHEH": LastName.FANASHEH,
|
|
|
|
|
|
|
|
"Fanasheh": LastName.LAST_NAME_FANASHEH,
|
|
|
|
enum LatLong {
|
|
|
|
"MUSA": LastName.MUSA
|
|
|
|
THE_246784385694919524674091019299842,
|
|
|
|
});
|
|
|
|
THE_24664749106968054673501121876645,
|
|
|
|
|
|
|
|
THE_2470993657522702246664724647270134,
|
|
|
|
enum LatLong { THE_246784385694919524674091019299842, THE_24664749106968054673501121876645, THE_2470993657522702246664724647270134, THE_246626170308533764673348444086107, THE_24664875225999005467347443322574, THE_24674331807435784671024726818286, THE_263430228396836664991113909164471, THE_246767400793488074673774399406786, THE_24665374673515 }
|
|
|
|
THE_246626170308533764673348444086107,
|
|
|
|
|
|
|
|
THE_24664875225999005467347443322574,
|
|
|
|
|
|
|
|
THE_24674331807435784671024726818286,
|
|
|
|
|
|
|
|
THE_263430228396836664991113909164471,
|
|
|
|
|
|
|
|
THE_246767400793488074673774399406786,
|
|
|
|
|
|
|
|
THE_24665374673515
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final latLongValues = EnumValues({
|
|
|
|
final latLongValues = EnumValues({
|
|
|
|
"24.662617030853376,46.73348444086107": LatLong.THE_246626170308533764673348444086107,
|
|
|
|
"24.662617030853376,46.73348444086107": LatLong.THE_246626170308533764673348444086107,
|
|
|
|
@ -457,10 +470,7 @@ final latLongValues = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum CheckoutAttributeDescription { EMPTY, CHECKOUT_ATTRIBUTE_DESCRIPTION }
|
|
|
|
enum CheckoutAttributeDescription { EMPTY, CHECKOUT_ATTRIBUTE_DESCRIPTION }
|
|
|
|
|
|
|
|
|
|
|
|
final checkoutAttributeDescriptionValues = EnumValues({
|
|
|
|
final checkoutAttributeDescriptionValues = EnumValues({"ارفاق وصفة: ": CheckoutAttributeDescription.CHECKOUT_ATTRIBUTE_DESCRIPTION, "": CheckoutAttributeDescription.EMPTY});
|
|
|
|
"ارفاق وصفة: ": CheckoutAttributeDescription.CHECKOUT_ATTRIBUTE_DESCRIPTION,
|
|
|
|
|
|
|
|
"": CheckoutAttributeDescription.EMPTY
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class OrderModelCustomer {
|
|
|
|
class OrderModelCustomer {
|
|
|
|
OrderModelCustomer({
|
|
|
|
OrderModelCustomer({
|
|
|
|
@ -485,32 +495,32 @@ class OrderModelCustomer {
|
|
|
|
this.roleIds,
|
|
|
|
this.roleIds,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
String id;
|
|
|
|
String? id;
|
|
|
|
dynamic username;
|
|
|
|
dynamic username;
|
|
|
|
dynamic email;
|
|
|
|
dynamic email;
|
|
|
|
dynamic firstName;
|
|
|
|
dynamic firstName;
|
|
|
|
dynamic lastName;
|
|
|
|
dynamic lastName;
|
|
|
|
String languageId;
|
|
|
|
String? languageId;
|
|
|
|
dynamic adminComment;
|
|
|
|
dynamic adminComment;
|
|
|
|
bool isTaxExempt;
|
|
|
|
bool? isTaxExempt;
|
|
|
|
bool hasShoppingCartItems;
|
|
|
|
bool? hasShoppingCartItems;
|
|
|
|
bool active;
|
|
|
|
bool? active;
|
|
|
|
bool deleted;
|
|
|
|
bool? deleted;
|
|
|
|
bool isSystemAccount;
|
|
|
|
bool? isSystemAccount;
|
|
|
|
dynamic systemName;
|
|
|
|
dynamic systemName;
|
|
|
|
dynamic lastIpAddress;
|
|
|
|
dynamic lastIpAddress;
|
|
|
|
dynamic createdOnUtc;
|
|
|
|
dynamic createdOnUtc;
|
|
|
|
dynamic lastLoginDateUtc;
|
|
|
|
dynamic lastLoginDateUtc;
|
|
|
|
dynamic lastActivityDateUtc;
|
|
|
|
dynamic lastActivityDateUtc;
|
|
|
|
dynamic registeredInStoreId;
|
|
|
|
dynamic registeredInStoreId;
|
|
|
|
List<dynamic> roleIds;
|
|
|
|
List<dynamic>? roleIds;
|
|
|
|
|
|
|
|
|
|
|
|
factory OrderModelCustomer.fromJson(Map<String, dynamic> json) => OrderModelCustomer(
|
|
|
|
factory OrderModelCustomer.fromJson(Map<String, dynamic> json) => OrderModelCustomer(
|
|
|
|
id: json["id"],
|
|
|
|
id: json["id"],
|
|
|
|
username: usernameValues.map[json["username"]],
|
|
|
|
username: usernameValues.map![json["username"]],
|
|
|
|
email: billingAddressEmailValues.map[json["email"]],
|
|
|
|
email: billingAddressEmailValues.map![json["email"]],
|
|
|
|
firstName: firstNameValues.map[json["first_name"]],
|
|
|
|
firstName: firstNameValues.map![json["first_name"]],
|
|
|
|
lastName: lastNameValues.map[json["last_name"]],
|
|
|
|
lastName: lastNameValues.map![json["last_name"]],
|
|
|
|
languageId: json["language_id"],
|
|
|
|
languageId: json["language_id"],
|
|
|
|
adminComment: json["admin_comment"],
|
|
|
|
adminComment: json["admin_comment"],
|
|
|
|
isTaxExempt: json["is_tax_exempt"],
|
|
|
|
isTaxExempt: json["is_tax_exempt"],
|
|
|
|
@ -519,7 +529,7 @@ class OrderModelCustomer {
|
|
|
|
deleted: json["deleted"],
|
|
|
|
deleted: json["deleted"],
|
|
|
|
isSystemAccount: json["is_system_account"],
|
|
|
|
isSystemAccount: json["is_system_account"],
|
|
|
|
systemName: json["system_name"],
|
|
|
|
systemName: json["system_name"],
|
|
|
|
lastIpAddress: lastIpAddressValues.map[json["last_ip_address"]],
|
|
|
|
lastIpAddress: lastIpAddressValues.map![json["last_ip_address"]],
|
|
|
|
createdOnUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["created_on_utc"]) : null,
|
|
|
|
createdOnUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["created_on_utc"]) : null,
|
|
|
|
lastLoginDateUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["last_login_date_utc"]) : null,
|
|
|
|
lastLoginDateUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["last_login_date_utc"]) : null,
|
|
|
|
lastActivityDateUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["last_activity_date_utc"]) : null,
|
|
|
|
lastActivityDateUtc: (json["created_on_utc"] != null) ? DateTime.parse(json["last_activity_date_utc"]) : null,
|
|
|
|
@ -546,27 +556,21 @@ class OrderModelCustomer {
|
|
|
|
"last_login_date_utc": lastLoginDateUtc.toIso8601String(),
|
|
|
|
"last_login_date_utc": lastLoginDateUtc.toIso8601String(),
|
|
|
|
"last_activity_date_utc": lastActivityDateUtc.toIso8601String(),
|
|
|
|
"last_activity_date_utc": lastActivityDateUtc.toIso8601String(),
|
|
|
|
"registered_in_store_id": registeredInStoreId,
|
|
|
|
"registered_in_store_id": registeredInStoreId,
|
|
|
|
"role_ids": List<dynamic>.from(roleIds.map((x) => x)),
|
|
|
|
"role_ids": List<dynamic>.from(roleIds!.map((x) => x)),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
enum LastIpAddress { THE_1050220126 }
|
|
|
|
enum LastIpAddress { THE_1050220126 }
|
|
|
|
|
|
|
|
|
|
|
|
final lastIpAddressValues = EnumValues({
|
|
|
|
final lastIpAddressValues = EnumValues({"10.50.220.126": LastIpAddress.THE_1050220126});
|
|
|
|
"10.50.220.126": LastIpAddress.THE_1050220126
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum Username { TAMERF }
|
|
|
|
enum Username { TAMERF }
|
|
|
|
|
|
|
|
|
|
|
|
final usernameValues = EnumValues({
|
|
|
|
final usernameValues = EnumValues({"tamerf": Username.TAMERF});
|
|
|
|
"tamerf": Username.TAMERF
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum CustomerCurrencyCode { SAR }
|
|
|
|
enum CustomerCurrencyCode { SAR }
|
|
|
|
|
|
|
|
|
|
|
|
final customerCurrencyCodeValues = EnumValues({
|
|
|
|
final customerCurrencyCodeValues = EnumValues({"SAR": CustomerCurrencyCode.SAR});
|
|
|
|
"SAR": CustomerCurrencyCode.SAR
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum CustomerIp { THE_105010210, THE_127001, THE_1020200101, THE_102020041, THE_10501028, THE_102020033, THE_1020200170, THE_102020011 }
|
|
|
|
enum CustomerIp { THE_105010210, THE_127001, THE_1020200101, THE_102020041, THE_10501028, THE_102020033, THE_1020200170, THE_102020011 }
|
|
|
|
|
|
|
|
|
|
|
|
@ -583,10 +587,7 @@ final customerIpValues = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum CustomerTaxDisplayType { EXCLUDING_TAX }
|
|
|
|
enum CustomerTaxDisplayType { EXCLUDING_TAX }
|
|
|
|
|
|
|
|
|
|
|
|
final customerTaxDisplayTypeValues = EnumValues({
|
|
|
|
final customerTaxDisplayTypeValues = EnumValues({"ExcludingTax": CustomerTaxDisplayType.EXCLUDING_TAX});
|
|
|
|
"ExcludingTax": CustomerTaxDisplayType.EXCLUDING_TAX
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class OrderItem {
|
|
|
|
class OrderItem {
|
|
|
|
OrderItem({
|
|
|
|
OrderItem({
|
|
|
|
@ -610,21 +611,21 @@ class OrderItem {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
dynamic quantity;
|
|
|
|
dynamic quantity;
|
|
|
|
double unitPriceInclTax;
|
|
|
|
double? unitPriceInclTax;
|
|
|
|
double unitPriceExclTax;
|
|
|
|
double? unitPriceExclTax;
|
|
|
|
double priceInclTax;
|
|
|
|
double? priceInclTax;
|
|
|
|
double priceExclTax;
|
|
|
|
double? priceExclTax;
|
|
|
|
double discountAmountInclTax;
|
|
|
|
double? discountAmountInclTax;
|
|
|
|
double discountAmountExclTax;
|
|
|
|
double? discountAmountExclTax;
|
|
|
|
double originalProductCost;
|
|
|
|
double? originalProductCost;
|
|
|
|
String attributeDescription;
|
|
|
|
String? attributeDescription;
|
|
|
|
dynamic downloadCount;
|
|
|
|
dynamic downloadCount;
|
|
|
|
bool isDownloadActivated;
|
|
|
|
bool? isDownloadActivated;
|
|
|
|
dynamic licenseDownloadId;
|
|
|
|
dynamic licenseDownloadId;
|
|
|
|
double itemWeight;
|
|
|
|
double? itemWeight;
|
|
|
|
dynamic rentalStartDateUtc;
|
|
|
|
dynamic rentalStartDateUtc;
|
|
|
|
dynamic rentalEndDateUtc;
|
|
|
|
dynamic rentalEndDateUtc;
|
|
|
|
Product product;
|
|
|
|
Product? product;
|
|
|
|
dynamic productId;
|
|
|
|
dynamic productId;
|
|
|
|
|
|
|
|
|
|
|
|
factory OrderItem.fromJson(Map<String, dynamic> json) => OrderItem(
|
|
|
|
factory OrderItem.fromJson(Map<String, dynamic> json) => OrderItem(
|
|
|
|
@ -663,7 +664,7 @@ class OrderItem {
|
|
|
|
"item_weight": itemWeight,
|
|
|
|
"item_weight": itemWeight,
|
|
|
|
"rental_start_date_utc": rentalStartDateUtc,
|
|
|
|
"rental_start_date_utc": rentalStartDateUtc,
|
|
|
|
"rental_end_date_utc": rentalEndDateUtc,
|
|
|
|
"rental_end_date_utc": rentalEndDateUtc,
|
|
|
|
"product": product.toJson(),
|
|
|
|
"product": product!.toJson(),
|
|
|
|
"product_id": productId,
|
|
|
|
"product_id": productId,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -783,85 +784,85 @@ class Product {
|
|
|
|
this.seName,
|
|
|
|
this.seName,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
String id;
|
|
|
|
String? id;
|
|
|
|
bool visibleIndividually;
|
|
|
|
bool? visibleIndividually;
|
|
|
|
String name;
|
|
|
|
String? name;
|
|
|
|
String namen;
|
|
|
|
String? namen;
|
|
|
|
dynamic localizedNames;
|
|
|
|
dynamic localizedNames;
|
|
|
|
String shortDescription;
|
|
|
|
String? shortDescription;
|
|
|
|
String shortDescriptionn;
|
|
|
|
String? shortDescriptionn;
|
|
|
|
String fullDescription;
|
|
|
|
String? fullDescription;
|
|
|
|
String fullDescriptionn;
|
|
|
|
String? fullDescriptionn;
|
|
|
|
bool markasNew;
|
|
|
|
bool? markasNew;
|
|
|
|
bool showOnHomePage;
|
|
|
|
bool? showOnHomePage;
|
|
|
|
String metaKeywords;
|
|
|
|
String? metaKeywords;
|
|
|
|
String metaDescription;
|
|
|
|
String? metaDescription;
|
|
|
|
String metaTitle;
|
|
|
|
String? metaTitle;
|
|
|
|
bool allowCustomerReviews;
|
|
|
|
bool? allowCustomerReviews;
|
|
|
|
dynamic approvedRatingSum;
|
|
|
|
dynamic approvedRatingSum;
|
|
|
|
dynamic notApprovedRatingSum;
|
|
|
|
dynamic notApprovedRatingSum;
|
|
|
|
dynamic approvedTotalReviews;
|
|
|
|
dynamic approvedTotalReviews;
|
|
|
|
dynamic notApprovedTotalReviews;
|
|
|
|
dynamic notApprovedTotalReviews;
|
|
|
|
String sku;
|
|
|
|
String? sku;
|
|
|
|
bool isRx;
|
|
|
|
bool? isRx;
|
|
|
|
bool prescriptionRequired;
|
|
|
|
bool? prescriptionRequired;
|
|
|
|
dynamic rxMessage;
|
|
|
|
dynamic rxMessage;
|
|
|
|
dynamic rxMessagen;
|
|
|
|
dynamic rxMessagen;
|
|
|
|
dynamic manufacturerPartNumber;
|
|
|
|
dynamic manufacturerPartNumber;
|
|
|
|
dynamic gtin;
|
|
|
|
dynamic gtin;
|
|
|
|
bool isGiftCard;
|
|
|
|
bool? isGiftCard;
|
|
|
|
bool requireOtherProducts;
|
|
|
|
bool? requireOtherProducts;
|
|
|
|
bool automaticallyAddRequiredProducts;
|
|
|
|
bool? automaticallyAddRequiredProducts;
|
|
|
|
bool isDownload;
|
|
|
|
bool? isDownload;
|
|
|
|
bool unlimitedDownloads;
|
|
|
|
bool? unlimitedDownloads;
|
|
|
|
dynamic maxNumberOfDownloads;
|
|
|
|
dynamic maxNumberOfDownloads;
|
|
|
|
dynamic downloadExpirationDays;
|
|
|
|
dynamic downloadExpirationDays;
|
|
|
|
bool hasSampleDownload;
|
|
|
|
bool? hasSampleDownload;
|
|
|
|
bool hasUserAgreement;
|
|
|
|
bool? hasUserAgreement;
|
|
|
|
bool isRecurring;
|
|
|
|
bool? isRecurring;
|
|
|
|
dynamic recurringCycleLength;
|
|
|
|
dynamic recurringCycleLength;
|
|
|
|
dynamic recurringTotalCycles;
|
|
|
|
dynamic recurringTotalCycles;
|
|
|
|
bool isRental;
|
|
|
|
bool? isRental;
|
|
|
|
dynamic rentalPriceLength;
|
|
|
|
dynamic rentalPriceLength;
|
|
|
|
bool isShipEnabled;
|
|
|
|
bool? isShipEnabled;
|
|
|
|
bool isFreeShipping;
|
|
|
|
bool? isFreeShipping;
|
|
|
|
bool shipSeparately;
|
|
|
|
bool? shipSeparately;
|
|
|
|
dynamic additionalShippingCharge;
|
|
|
|
dynamic additionalShippingCharge;
|
|
|
|
bool isTaxExempt;
|
|
|
|
bool? isTaxExempt;
|
|
|
|
bool isTelecommunicationsOrBroadcastingOrElectronicServices;
|
|
|
|
bool? isTelecommunicationsOrBroadcastingOrElectronicServices;
|
|
|
|
bool useMultipleWarehouses;
|
|
|
|
bool? useMultipleWarehouses;
|
|
|
|
dynamic manageInventoryMethodId;
|
|
|
|
dynamic manageInventoryMethodId;
|
|
|
|
dynamic stockQuantity;
|
|
|
|
dynamic stockQuantity;
|
|
|
|
dynamic stockAvailability;
|
|
|
|
dynamic stockAvailability;
|
|
|
|
dynamic stockAvailabilityn;
|
|
|
|
dynamic stockAvailabilityn;
|
|
|
|
bool displayStockAvailability;
|
|
|
|
bool? displayStockAvailability;
|
|
|
|
bool displayStockQuantity;
|
|
|
|
bool? displayStockQuantity;
|
|
|
|
dynamic minStockQuantity;
|
|
|
|
dynamic minStockQuantity;
|
|
|
|
dynamic notifyAdminForQuantityBelow;
|
|
|
|
dynamic notifyAdminForQuantityBelow;
|
|
|
|
bool allowBackInStockSubscriptions;
|
|
|
|
bool? allowBackInStockSubscriptions;
|
|
|
|
dynamic orderMinimumQuantity;
|
|
|
|
dynamic orderMinimumQuantity;
|
|
|
|
dynamic orderMaximumQuantity;
|
|
|
|
dynamic orderMaximumQuantity;
|
|
|
|
dynamic allowedQuantities;
|
|
|
|
dynamic allowedQuantities;
|
|
|
|
bool allowAddingOnlyExistingAttributeCombinations;
|
|
|
|
bool? allowAddingOnlyExistingAttributeCombinations;
|
|
|
|
bool disableBuyButton;
|
|
|
|
bool? disableBuyButton;
|
|
|
|
bool disableWishlistButton;
|
|
|
|
bool? disableWishlistButton;
|
|
|
|
bool availableForPreOrder;
|
|
|
|
bool? availableForPreOrder;
|
|
|
|
dynamic preOrderAvailabilityStartDateTimeUtc;
|
|
|
|
dynamic preOrderAvailabilityStartDateTimeUtc;
|
|
|
|
bool callForPrice;
|
|
|
|
bool? callForPrice;
|
|
|
|
double price;
|
|
|
|
double? price;
|
|
|
|
dynamic oldPrice;
|
|
|
|
dynamic oldPrice;
|
|
|
|
double productCost;
|
|
|
|
double? productCost;
|
|
|
|
dynamic specialPrice;
|
|
|
|
dynamic specialPrice;
|
|
|
|
dynamic specialPriceStartDateTimeUtc;
|
|
|
|
dynamic specialPriceStartDateTimeUtc;
|
|
|
|
dynamic specialPriceEndDateTimeUtc;
|
|
|
|
dynamic specialPriceEndDateTimeUtc;
|
|
|
|
bool customerEntersPrice;
|
|
|
|
bool? customerEntersPrice;
|
|
|
|
dynamic minimumCustomerEnteredPrice;
|
|
|
|
dynamic minimumCustomerEnteredPrice;
|
|
|
|
dynamic maximumCustomerEnteredPrice;
|
|
|
|
dynamic maximumCustomerEnteredPrice;
|
|
|
|
bool basepriceEnabled;
|
|
|
|
bool? basepriceEnabled;
|
|
|
|
dynamic basepriceAmount;
|
|
|
|
dynamic basepriceAmount;
|
|
|
|
dynamic basepriceBaseAmount;
|
|
|
|
dynamic basepriceBaseAmount;
|
|
|
|
bool hasTierPrices;
|
|
|
|
bool? hasTierPrices;
|
|
|
|
bool hasDiscountsApplied;
|
|
|
|
bool? hasDiscountsApplied;
|
|
|
|
dynamic discountName;
|
|
|
|
dynamic discountName;
|
|
|
|
dynamic discountNamen;
|
|
|
|
dynamic discountNamen;
|
|
|
|
dynamic discountDescription;
|
|
|
|
dynamic discountDescription;
|
|
|
|
@ -869,15 +870,15 @@ class Product {
|
|
|
|
dynamic discountPercentage;
|
|
|
|
dynamic discountPercentage;
|
|
|
|
dynamic currency;
|
|
|
|
dynamic currency;
|
|
|
|
dynamic currencyn;
|
|
|
|
dynamic currencyn;
|
|
|
|
double weight;
|
|
|
|
double? weight;
|
|
|
|
dynamic length;
|
|
|
|
dynamic length;
|
|
|
|
dynamic width;
|
|
|
|
dynamic width;
|
|
|
|
dynamic height;
|
|
|
|
dynamic height;
|
|
|
|
dynamic availableStartDateTimeUtc;
|
|
|
|
dynamic availableStartDateTimeUtc;
|
|
|
|
dynamic availableEndDateTimeUtc;
|
|
|
|
dynamic availableEndDateTimeUtc;
|
|
|
|
dynamic displayOrder;
|
|
|
|
dynamic displayOrder;
|
|
|
|
bool published;
|
|
|
|
bool? published;
|
|
|
|
bool deleted;
|
|
|
|
bool? deleted;
|
|
|
|
dynamic createdOnUtc;
|
|
|
|
dynamic createdOnUtc;
|
|
|
|
dynamic updatedOnUtc;
|
|
|
|
dynamic updatedOnUtc;
|
|
|
|
dynamic productType;
|
|
|
|
dynamic productType;
|
|
|
|
@ -886,14 +887,14 @@ class Product {
|
|
|
|
dynamic discountIds;
|
|
|
|
dynamic discountIds;
|
|
|
|
dynamic storeIds;
|
|
|
|
dynamic storeIds;
|
|
|
|
dynamic manufacturerIds;
|
|
|
|
dynamic manufacturerIds;
|
|
|
|
List<Review> reviews;
|
|
|
|
List<Review>? reviews;
|
|
|
|
List<PharmacyImageObject> images;
|
|
|
|
List<PharmacyImageObject>? images;
|
|
|
|
dynamic attributes;
|
|
|
|
dynamic attributes;
|
|
|
|
dynamic specifications;
|
|
|
|
dynamic specifications;
|
|
|
|
dynamic associatedProductIds;
|
|
|
|
dynamic associatedProductIds;
|
|
|
|
List<dynamic> tags;
|
|
|
|
List<dynamic>? tags;
|
|
|
|
dynamic vendorId;
|
|
|
|
dynamic vendorId;
|
|
|
|
String seName;
|
|
|
|
String? seName;
|
|
|
|
|
|
|
|
|
|
|
|
factory Product.fromJson(Map<String, dynamic> json) => Product(
|
|
|
|
factory Product.fromJson(Map<String, dynamic> json) => Product(
|
|
|
|
id: json["id"],
|
|
|
|
id: json["id"],
|
|
|
|
@ -993,7 +994,7 @@ class Product {
|
|
|
|
deleted: json["deleted"],
|
|
|
|
deleted: json["deleted"],
|
|
|
|
createdOnUtc: DateTime.parse(json["created_on_utc"]),
|
|
|
|
createdOnUtc: DateTime.parse(json["created_on_utc"]),
|
|
|
|
updatedOnUtc: DateTime.parse(json["updated_on_utc"]),
|
|
|
|
updatedOnUtc: DateTime.parse(json["updated_on_utc"]),
|
|
|
|
productType: productTypeValues.map[json["product_type"]],
|
|
|
|
productType: productTypeValues.map![json["product_type"]],
|
|
|
|
parentGroupedProductId: json["parent_grouped_product_id"],
|
|
|
|
parentGroupedProductId: json["parent_grouped_product_id"],
|
|
|
|
roleIds: json["role_ids"],
|
|
|
|
roleIds: json["role_ids"],
|
|
|
|
discountIds: json["discount_ids"],
|
|
|
|
discountIds: json["discount_ids"],
|
|
|
|
@ -1113,12 +1114,12 @@ class Product {
|
|
|
|
"discount_ids": discountIds,
|
|
|
|
"discount_ids": discountIds,
|
|
|
|
"store_ids": storeIds,
|
|
|
|
"store_ids": storeIds,
|
|
|
|
"manufacturer_ids": manufacturerIds,
|
|
|
|
"manufacturer_ids": manufacturerIds,
|
|
|
|
"reviews": List<dynamic>.from(reviews.map((x) => x.toJson())),
|
|
|
|
"reviews": List<dynamic>.from(reviews!.map((x) => x.toJson())),
|
|
|
|
"images": List<dynamic>.from(images.map((x) => x.toJson())),
|
|
|
|
"images": List<dynamic>.from(images!.map((x) => x.toJson())),
|
|
|
|
"attributes": attributes,
|
|
|
|
"attributes": attributes,
|
|
|
|
"specifications": specifications,
|
|
|
|
"specifications": specifications,
|
|
|
|
"associated_product_ids": associatedProductIds,
|
|
|
|
"associated_product_ids": associatedProductIds,
|
|
|
|
"tags": List<dynamic>.from(tags.map((x) => x)),
|
|
|
|
"tags": List<dynamic>.from(tags!.map((x) => x)),
|
|
|
|
"vendor_id": vendorId,
|
|
|
|
"vendor_id": vendorId,
|
|
|
|
"se_name": seName,
|
|
|
|
"se_name": seName,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -1126,9 +1127,7 @@ class Product {
|
|
|
|
|
|
|
|
|
|
|
|
enum ProductType { SIMPLE_PRODUCT }
|
|
|
|
enum ProductType { SIMPLE_PRODUCT }
|
|
|
|
|
|
|
|
|
|
|
|
final productTypeValues = EnumValues({
|
|
|
|
final productTypeValues = EnumValues({"SimpleProduct": ProductType.SIMPLE_PRODUCT});
|
|
|
|
"SimpleProduct": ProductType.SIMPLE_PRODUCT
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Review {
|
|
|
|
class Review {
|
|
|
|
Review({
|
|
|
|
Review({
|
|
|
|
@ -1156,7 +1155,7 @@ class Review {
|
|
|
|
dynamic customerId;
|
|
|
|
dynamic customerId;
|
|
|
|
dynamic productId;
|
|
|
|
dynamic productId;
|
|
|
|
dynamic storeId;
|
|
|
|
dynamic storeId;
|
|
|
|
bool isApproved;
|
|
|
|
bool? isApproved;
|
|
|
|
dynamic title;
|
|
|
|
dynamic title;
|
|
|
|
dynamic reviewText;
|
|
|
|
dynamic reviewText;
|
|
|
|
dynamic replyText;
|
|
|
|
dynamic replyText;
|
|
|
|
@ -1175,8 +1174,8 @@ class Review {
|
|
|
|
productId: json["product_id"],
|
|
|
|
productId: json["product_id"],
|
|
|
|
storeId: json["store_id"],
|
|
|
|
storeId: json["store_id"],
|
|
|
|
isApproved: json["is_approved"],
|
|
|
|
isApproved: json["is_approved"],
|
|
|
|
title: titleValues.map[json["title"]],
|
|
|
|
title: titleValues.map![json["title"]],
|
|
|
|
reviewText: reviewTextValues.map[json["review_text"]],
|
|
|
|
reviewText: reviewTextValues.map![json["review_text"]],
|
|
|
|
replyText: json["reply_text"],
|
|
|
|
replyText: json["reply_text"],
|
|
|
|
rating: json["rating"],
|
|
|
|
rating: json["rating"],
|
|
|
|
helpfulYesTotal: json["helpful_yes_total"],
|
|
|
|
helpfulYesTotal: json["helpful_yes_total"],
|
|
|
|
@ -1252,9 +1251,9 @@ class ReviewCustomer {
|
|
|
|
dynamic yahalaAccountno;
|
|
|
|
dynamic yahalaAccountno;
|
|
|
|
dynamic billingAddress;
|
|
|
|
dynamic billingAddress;
|
|
|
|
dynamic shippingAddress;
|
|
|
|
dynamic shippingAddress;
|
|
|
|
List<dynamic> addresses;
|
|
|
|
List<dynamic>? addresses;
|
|
|
|
String id;
|
|
|
|
String? id;
|
|
|
|
String username;
|
|
|
|
String? username;
|
|
|
|
dynamic email;
|
|
|
|
dynamic email;
|
|
|
|
dynamic firstName;
|
|
|
|
dynamic firstName;
|
|
|
|
dynamic lastName;
|
|
|
|
dynamic lastName;
|
|
|
|
@ -1271,7 +1270,7 @@ class ReviewCustomer {
|
|
|
|
dynamic lastLoginDateUtc;
|
|
|
|
dynamic lastLoginDateUtc;
|
|
|
|
dynamic lastActivityDateUtc;
|
|
|
|
dynamic lastActivityDateUtc;
|
|
|
|
dynamic registeredInStoreId;
|
|
|
|
dynamic registeredInStoreId;
|
|
|
|
List<dynamic> roleIds;
|
|
|
|
List<dynamic>? roleIds;
|
|
|
|
|
|
|
|
|
|
|
|
factory ReviewCustomer.fromJson(Map<String, dynamic> json) => ReviewCustomer(
|
|
|
|
factory ReviewCustomer.fromJson(Map<String, dynamic> json) => ReviewCustomer(
|
|
|
|
fileNumber: json["file_number"],
|
|
|
|
fileNumber: json["file_number"],
|
|
|
|
@ -1288,7 +1287,7 @@ class ReviewCustomer {
|
|
|
|
addresses: List<dynamic>.from(json["addresses"].map((x) => x)),
|
|
|
|
addresses: List<dynamic>.from(json["addresses"].map((x) => x)),
|
|
|
|
id: json["id"],
|
|
|
|
id: json["id"],
|
|
|
|
username: json["username"],
|
|
|
|
username: json["username"],
|
|
|
|
email: purpleEmailValues.map[json["email"]],
|
|
|
|
email: purpleEmailValues.map![json["email"]],
|
|
|
|
firstName: json["first_name"],
|
|
|
|
firstName: json["first_name"],
|
|
|
|
lastName: json["last_name"],
|
|
|
|
lastName: json["last_name"],
|
|
|
|
languageId: json["language_id"],
|
|
|
|
languageId: json["language_id"],
|
|
|
|
@ -1319,7 +1318,7 @@ class ReviewCustomer {
|
|
|
|
"yahala_accountno": yahalaAccountno,
|
|
|
|
"yahala_accountno": yahalaAccountno,
|
|
|
|
"billing_address": billingAddress,
|
|
|
|
"billing_address": billingAddress,
|
|
|
|
"shipping_address": shippingAddress,
|
|
|
|
"shipping_address": shippingAddress,
|
|
|
|
"addresses": List<dynamic>.from(addresses.map((x) => x)),
|
|
|
|
"addresses": List<dynamic>.from(addresses!.map((x) => x)),
|
|
|
|
"id": id,
|
|
|
|
"id": id,
|
|
|
|
"username": username,
|
|
|
|
"username": username,
|
|
|
|
"email": purpleEmailValues.reverse[email],
|
|
|
|
"email": purpleEmailValues.reverse[email],
|
|
|
|
@ -1338,7 +1337,7 @@ class ReviewCustomer {
|
|
|
|
"last_login_date_utc": lastLoginDateUtc,
|
|
|
|
"last_login_date_utc": lastLoginDateUtc,
|
|
|
|
"last_activity_date_utc": lastActivityDateUtc,
|
|
|
|
"last_activity_date_utc": lastActivityDateUtc,
|
|
|
|
"registered_in_store_id": registeredInStoreId,
|
|
|
|
"registered_in_store_id": registeredInStoreId,
|
|
|
|
"role_ids": List<dynamic>.from(roleIds.map((x) => x)),
|
|
|
|
"role_ids": List<dynamic>.from(roleIds!.map((x) => x)),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1369,13 +1368,9 @@ final reviewTextValues = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum Title { EMPTY, GOOD, TITLE }
|
|
|
|
enum Title { EMPTY, GOOD, TITLE }
|
|
|
|
|
|
|
|
|
|
|
|
final titleValues = EnumValues({
|
|
|
|
final titleValues = EnumValues({"": Title.EMPTY, "Good": Title.GOOD, "ممتاز": Title.TITLE});
|
|
|
|
"": Title.EMPTY,
|
|
|
|
|
|
|
|
"Good": Title.GOOD,
|
|
|
|
|
|
|
|
"ممتاز": Title.TITLE
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum OrderStatus { ORDER_SUBMITTED, PENDING, ORDER_IN_PROGRESS,ORDER_SENT_FOR_DELIVERY, ORDER_COMPLETED, CANCELLED, PROCESSING, ORDER_REFUNDED, COMPLETE }
|
|
|
|
enum OrderStatus { ORDER_SUBMITTED, PENDING, ORDER_IN_PROGRESS, ORDER_SENT_FOR_DELIVERY, ORDER_COMPLETED, CANCELLED, PROCESSING, ORDER_REFUNDED, COMPLETE }
|
|
|
|
|
|
|
|
|
|
|
|
final orderStatusValues = EnumValues({
|
|
|
|
final orderStatusValues = EnumValues({
|
|
|
|
"Cancelled": OrderStatus.CANCELLED,
|
|
|
|
"Cancelled": OrderStatus.CANCELLED,
|
|
|
|
@ -1405,81 +1400,54 @@ final orderStatusnValues = EnumValues({
|
|
|
|
|
|
|
|
|
|
|
|
enum PaymentMethodSystemName { PAYMENTS_PAY_FORT, PAYMENTS_CASH_ON_DELIVERY }
|
|
|
|
enum PaymentMethodSystemName { PAYMENTS_PAY_FORT, PAYMENTS_CASH_ON_DELIVERY }
|
|
|
|
|
|
|
|
|
|
|
|
final paymentMethodSystemNameValues = EnumValues({
|
|
|
|
final paymentMethodSystemNameValues = EnumValues({"Payments.CashOnDelivery": PaymentMethodSystemName.PAYMENTS_CASH_ON_DELIVERY, "Payments.PayFort": PaymentMethodSystemName.PAYMENTS_PAY_FORT});
|
|
|
|
"Payments.CashOnDelivery": PaymentMethodSystemName.PAYMENTS_CASH_ON_DELIVERY,
|
|
|
|
|
|
|
|
"Payments.PayFort": PaymentMethodSystemName.PAYMENTS_PAY_FORT
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum PaymentName { CREDIT_DEBIT_CARD_PAYFORT, CASH_ON_DELIVERY_COD }
|
|
|
|
enum PaymentName { CREDIT_DEBIT_CARD_PAYFORT, CASH_ON_DELIVERY_COD }
|
|
|
|
|
|
|
|
|
|
|
|
final paymentNameValues = EnumValues({
|
|
|
|
final paymentNameValues = EnumValues({"Cash On Delivery (COD)": PaymentName.CASH_ON_DELIVERY_COD, "Credit / Debit Card Payfort": PaymentName.CREDIT_DEBIT_CARD_PAYFORT});
|
|
|
|
"Cash On Delivery (COD)": PaymentName.CASH_ON_DELIVERY_COD,
|
|
|
|
|
|
|
|
"Credit / Debit Card Payfort": PaymentName.CREDIT_DEBIT_CARD_PAYFORT
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum PaymentStatus { PAID, PENDING }
|
|
|
|
enum PaymentStatus { PAID, PENDING }
|
|
|
|
|
|
|
|
|
|
|
|
final paymentStatusValues = EnumValues({
|
|
|
|
final paymentStatusValues = EnumValues({"Paid": PaymentStatus.PAID, "Pending": PaymentStatus.PENDING});
|
|
|
|
"Paid": PaymentStatus.PAID,
|
|
|
|
|
|
|
|
"Pending": PaymentStatus.PENDING
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum PaymentStatusn { EMPTY, PAYMENT_STATUSN }
|
|
|
|
enum PaymentStatusn { EMPTY, PAYMENT_STATUSN }
|
|
|
|
|
|
|
|
|
|
|
|
final paymentStatusnValues = EnumValues({
|
|
|
|
final paymentStatusnValues = EnumValues({"تم الدفع": PaymentStatusn.EMPTY, "قيد الإنتظار": PaymentStatusn.PAYMENT_STATUSN});
|
|
|
|
"تم الدفع": PaymentStatusn.EMPTY,
|
|
|
|
|
|
|
|
"قيد الإنتظار": PaymentStatusn.PAYMENT_STATUSN
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum PreferDeliveryTime { THE_1000_AM_330_PM, THE_530_PM_730_PM }
|
|
|
|
enum PreferDeliveryTime { THE_1000_AM_330_PM, THE_530_PM_730_PM }
|
|
|
|
|
|
|
|
|
|
|
|
final preferDeliveryTimeValues = EnumValues({
|
|
|
|
final preferDeliveryTimeValues = EnumValues({"10:00 AM - 3:30 PM": PreferDeliveryTime.THE_1000_AM_330_PM, "5:30 PM - 7:30 PM": PreferDeliveryTime.THE_530_PM_730_PM});
|
|
|
|
"10:00 AM - 3:30 PM": PreferDeliveryTime.THE_1000_AM_330_PM,
|
|
|
|
|
|
|
|
"5:30 PM - 7:30 PM": PreferDeliveryTime.THE_530_PM_730_PM
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum PreferDeliveryTimen { THE_1000330, THE_530730 }
|
|
|
|
enum PreferDeliveryTimen { THE_1000330, THE_530730 }
|
|
|
|
|
|
|
|
|
|
|
|
final preferDeliveryTimenValues = EnumValues({
|
|
|
|
final preferDeliveryTimenValues = EnumValues({"10:00 ص - 3:30 م": PreferDeliveryTimen.THE_1000330, "5:30 م - 7:30 م": PreferDeliveryTimen.THE_530730});
|
|
|
|
"10:00 ص - 3:30 م": PreferDeliveryTimen.THE_1000330,
|
|
|
|
|
|
|
|
"5:30 م - 7:30 م": PreferDeliveryTimen.THE_530730
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum ShippingMethod { EMPTY, FIXED_PRICE }
|
|
|
|
enum ShippingMethod { EMPTY, FIXED_PRICE }
|
|
|
|
|
|
|
|
|
|
|
|
final shippingMethodValues = EnumValues({
|
|
|
|
final shippingMethodValues = EnumValues({"سعر ثابت ": ShippingMethod.EMPTY, "Fixed Price": ShippingMethod.FIXED_PRICE});
|
|
|
|
"سعر ثابت ": ShippingMethod.EMPTY,
|
|
|
|
|
|
|
|
"Fixed Price": ShippingMethod.FIXED_PRICE
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum ShippingRateComputationMethodSystemName { SHIPPING_FIXED_OR_BY_WEIGHT }
|
|
|
|
enum ShippingRateComputationMethodSystemName { SHIPPING_FIXED_OR_BY_WEIGHT }
|
|
|
|
|
|
|
|
|
|
|
|
final shippingRateComputationMethodSystemNameValues = EnumValues({
|
|
|
|
final shippingRateComputationMethodSystemNameValues = EnumValues({"Shipping.FixedOrByWeight": ShippingRateComputationMethodSystemName.SHIPPING_FIXED_OR_BY_WEIGHT});
|
|
|
|
"Shipping.FixedOrByWeight": ShippingRateComputationMethodSystemName.SHIPPING_FIXED_OR_BY_WEIGHT
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum ShippingStatus { NOT_YET_SHIPPED }
|
|
|
|
enum ShippingStatus { NOT_YET_SHIPPED }
|
|
|
|
|
|
|
|
|
|
|
|
final shippingStatusValues = EnumValues({
|
|
|
|
final shippingStatusValues = EnumValues({"NotYetShipped": ShippingStatus.NOT_YET_SHIPPED});
|
|
|
|
"NotYetShipped": ShippingStatus.NOT_YET_SHIPPED
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum ShippingStatusn { EMPTY }
|
|
|
|
enum ShippingStatusn { EMPTY }
|
|
|
|
|
|
|
|
|
|
|
|
final shippingStatusnValues = EnumValues({
|
|
|
|
final shippingStatusnValues = EnumValues({"لم يتم شحنها بعد": ShippingStatusn.EMPTY});
|
|
|
|
"لم يتم شحنها بعد": ShippingStatusn.EMPTY
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EnumValues<T> {
|
|
|
|
class EnumValues<T> {
|
|
|
|
Map<String, T> map;
|
|
|
|
Map<String, T>? map;
|
|
|
|
Map<T, String> reverseMap;
|
|
|
|
Map<T, String>? reverseMap;
|
|
|
|
|
|
|
|
|
|
|
|
EnumValues(this.map);
|
|
|
|
EnumValues(this.map);
|
|
|
|
|
|
|
|
|
|
|
|
Map<T, String> get reverse {
|
|
|
|
Map<T, String> get reverse {
|
|
|
|
if (reverseMap == null) {
|
|
|
|
if (reverseMap == null) {
|
|
|
|
reverseMap = map.map((k, v) => new MapEntry(v, k));
|
|
|
|
reverseMap = map!.map((k, v) => new MapEntry(v, k));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return reverseMap;
|
|
|
|
return reverseMap!;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|