You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

453 lines
14 KiB

3 years ago
class SettleOrderInfo {
int orderNum;
int productNum;
3 years ago
int mins;
dynamic memberVO;
String postAge;
String price;
String orderSum;
String discountAmount;
3 years ago
List<PromotionInfoListBean> promotionInfoList;
3 years ago
List<CouponListBean> couponList;
String threshold;
String freePostAge;
List<OrderProductListBean> orderProductList;
3 years ago
static SettleOrderInfo fromJson(Map<String, dynamic> map) {
if (map == null) return null;
SettleOrderInfo settleOrderInfoBean = SettleOrderInfo();
settleOrderInfoBean.orderNum = map['orderNum'];
3 years ago
settleOrderInfoBean.productNum = map['productNum'];
settleOrderInfoBean.mins = map['mins'];
settleOrderInfoBean.memberVO = map['memberVO'];
3 years ago
settleOrderInfoBean.postAge = map['postAge'];
settleOrderInfoBean.price = map['price'];
3 years ago
settleOrderInfoBean.orderSum = map['orderSum'];
settleOrderInfoBean.discountAmount = map['discountAmount'];
3 years ago
settleOrderInfoBean.promotionInfoList = List()..addAll(
(map['promotionInfoList'] as List ?? []).map((o) => PromotionInfoListBean.fromJson(o))
);
3 years ago
settleOrderInfoBean.couponList = List()..addAll(
(map['couponList'] as List ?? []).map((o) => CouponListBean.fromJson(o))
);
3 years ago
settleOrderInfoBean.threshold = map['threshold'];
3 years ago
settleOrderInfoBean.freePostAge = map['freePostAge'];
settleOrderInfoBean.orderProductList = List()..addAll(
(map['orderProductList'] as List ?? []).map((o) => OrderProductListBean.fromJson(o))
);
3 years ago
return settleOrderInfoBean;
}
Map toJson() => {
"orderNum": orderNum,
3 years ago
"productNum": productNum,
"mins": mins,
"memberVO": memberVO,
3 years ago
"postAge": postAge,
"price": price,
3 years ago
"orderSum": orderSum,
"discountAmount": discountAmount,
3 years ago
"promotionInfoList": promotionInfoList,
3 years ago
"couponList": couponList,
3 years ago
"threshold": threshold,
3 years ago
"freePostAge": freePostAge,
"orderProductList": orderProductList,
3 years ago
};
}
3 years ago
/// id : null
/// createTime : null
/// createUser : null
/// updateTime : null
/// updateUser : null
/// tenantCode : null
/// storeId : null
/// orderId : null
/// actInfo : null
/// productId : "1426095718614958080"
/// productName : "ɣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>"
/// skuId : "1426095718740787200"
/// skuNameStr : "ɳ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 700ml"
/// skuImg : null
/// buyNum : 1
/// refundNum : null
/// type : null
/// reason : null
/// weight : 0.0
/// applyPrice : "28.00"
/// sellPrice : "28.00"
/// postPay : null
/// isDelete : null
/// discountAmount : null
/// discountPercent : null
/// status : null
/// batch : null
3 years ago
class OrderProductListBean {
3 years ago
dynamic id;
dynamic createTime;
dynamic createUser;
dynamic updateTime;
dynamic updateUser;
dynamic tenantCode;
dynamic storeId;
dynamic orderId;
dynamic actInfo;
String productId;
3 years ago
String productName;
3 years ago
String skuId;
3 years ago
String skuNameStr;
3 years ago
dynamic skuImg;
int buyNum;
dynamic refundNum;
dynamic type;
dynamic reason;
double weight;
String applyPrice;
String sellPrice;
dynamic postPay;
dynamic isDelete;
dynamic discountAmount;
dynamic discountPercent;
dynamic status;
dynamic batch;
3 years ago
static OrderProductListBean fromJson(Map<String, dynamic> map) {
if (map == null) return null;
OrderProductListBean orderProductListBean = OrderProductListBean();
orderProductListBean.id = map['id'];
3 years ago
orderProductListBean.createTime = map['createTime'];
orderProductListBean.createUser = map['createUser'];
orderProductListBean.updateTime = map['updateTime'];
orderProductListBean.updateUser = map['updateUser'];
orderProductListBean.tenantCode = map['tenantCode'];
orderProductListBean.storeId = map['storeId'];
3 years ago
orderProductListBean.orderId = map['orderId'];
3 years ago
orderProductListBean.actInfo = map['actInfo'];
3 years ago
orderProductListBean.productId = map['productId'];
orderProductListBean.productName = map['productName'];
orderProductListBean.skuId = map['skuId'];
orderProductListBean.skuNameStr = map['skuNameStr'];
3 years ago
orderProductListBean.skuImg = map['skuImg'];
orderProductListBean.buyNum = map['buyNum'];
orderProductListBean.refundNum = map['refundNum'];
3 years ago
orderProductListBean.type = map['type'];
3 years ago
orderProductListBean.reason = map['reason'];
3 years ago
orderProductListBean.weight = map['weight'];
3 years ago
orderProductListBean.applyPrice = map['applyPrice'];
orderProductListBean.sellPrice = map['sellPrice'];
orderProductListBean.postPay = map['postPay'];
orderProductListBean.isDelete = map['isDelete'];
orderProductListBean.discountAmount = map['discountAmount'];
orderProductListBean.discountPercent = map['discountPercent'];
orderProductListBean.status = map['status'];
orderProductListBean.batch = map['batch'];
3 years ago
return orderProductListBean;
}
Map toJson() => {
"id": id,
3 years ago
"createTime": createTime,
"createUser": createUser,
"updateTime": updateTime,
"updateUser": updateUser,
"tenantCode": tenantCode,
"storeId": storeId,
3 years ago
"orderId": orderId,
3 years ago
"actInfo": actInfo,
3 years ago
"productId": productId,
"productName": productName,
"skuId": skuId,
"skuNameStr": skuNameStr,
3 years ago
"skuImg": skuImg,
"buyNum": buyNum,
"refundNum": refundNum,
3 years ago
"type": type,
3 years ago
"reason": reason,
3 years ago
"weight": weight,
3 years ago
"applyPrice": applyPrice,
"sellPrice": sellPrice,
"postPay": postPay,
"isDelete": isDelete,
3 years ago
"discountAmount": discountAmount,
3 years ago
"discountPercent": discountPercent,
3 years ago
"status": status,
3 years ago
"batch": batch,
3 years ago
};
}
3 years ago
/// id : "1448907890034212864"
/// storeId : "1333246101343436800"
/// bizType : 1
/// fullAmount : "10.00"
/// discountAmount : "8.00"
/// fullNumber : 1
/// discountPercent : 100
3 years ago
/// bizId : ""
3 years ago
/// publishStartTime : "2021-10-01"
/// publishEndTime : "2021-10-29"
/// useStartTime : "2021-10-02"
/// useEndTime : "2021-10-31"
/// promotionId : "0"
/// mid : "1438443365845696512"
/// couponId : "1448902034085380096"
/// receiveTime : "2021-10-15"
/// useTime : null
/// status : 1
/// tenantCode : "1175"
/// type : 1
/// promotionName : "<EFBFBD><EFBFBD>10-8"
3 years ago
/// usable : true
3 years ago
/// allProduct : true
/// productList : null
3 years ago
class CouponListBean {
3 years ago
String id;
String storeId;
3 years ago
int bizType;
3 years ago
String fullAmount;
String discountAmount;
3 years ago
int fullNumber;
3 years ago
int discountPercent;
String bizId;
3 years ago
String publishStartTime;
3 years ago
String publishEndTime;
String useStartTime;
String useEndTime;
String promotionId;
String mid;
String couponId;
3 years ago
String receiveTime;
3 years ago
dynamic useTime;
3 years ago
int status;
String tenantCode;
int type;
3 years ago
String promotionName;
3 years ago
bool usable;
3 years ago
bool allProduct;
dynamic productList;
3 years ago
static CouponListBean fromJson(Map<String, dynamic> map) {
if (map == null) return null;
CouponListBean couponListBean = CouponListBean();
3 years ago
couponListBean.id = map['id'];
couponListBean.storeId = map['storeId'];
3 years ago
couponListBean.bizType = map['bizType'];
couponListBean.fullAmount = map['fullAmount'];
3 years ago
couponListBean.discountAmount = map['discountAmount'];
3 years ago
couponListBean.fullNumber = map['fullNumber'];
3 years ago
couponListBean.discountPercent = map['discountPercent'];
couponListBean.bizId = map['bizId'];
3 years ago
couponListBean.publishStartTime = map['publishStartTime'];
3 years ago
couponListBean.publishEndTime = map['publishEndTime'];
couponListBean.useStartTime = map['useStartTime'];
couponListBean.useEndTime = map['useEndTime'];
couponListBean.promotionId = map['promotionId'];
couponListBean.mid = map['mid'];
couponListBean.couponId = map['couponId'];
3 years ago
couponListBean.receiveTime = map['receiveTime'];
3 years ago
couponListBean.useTime = map['useTime'];
3 years ago
couponListBean.status = map['status'];
couponListBean.tenantCode = map['tenantCode'];
couponListBean.type = map['type'];
3 years ago
couponListBean.promotionName = map['promotionName'];
3 years ago
couponListBean.usable = map['usable'];
3 years ago
couponListBean.allProduct = map['allProduct'];
couponListBean.productList = map['productList'];
3 years ago
return couponListBean;
}
Map toJson() => {
3 years ago
"id": id,
"storeId": storeId,
3 years ago
"bizType": bizType,
"fullAmount": fullAmount,
3 years ago
"discountAmount": discountAmount,
3 years ago
"fullNumber": fullNumber,
3 years ago
"discountPercent": discountPercent,
"bizId": bizId,
3 years ago
"publishStartTime": publishStartTime,
3 years ago
"publishEndTime": publishEndTime,
"useStartTime": useStartTime,
"useEndTime": useEndTime,
"promotionId": promotionId,
"mid": mid,
"couponId": couponId,
3 years ago
"receiveTime": receiveTime,
3 years ago
"useTime": useTime,
3 years ago
"status": status,
"tenantCode": tenantCode,
"type": type,
3 years ago
"promotionName": promotionName,
3 years ago
"usable": usable,
3 years ago
"allProduct": allProduct,
"productList": productList,
3 years ago
};
}
3 years ago
/// id : "1437254523520286720"
/// createTime : "2021-09-13 11:19:16"
/// createUser : "1333246101196636160"
/// updateTime : "2021-09-13 17:30:00"
/// updateUser : "0"
/// storeId : "1433719074906439680"
/// name : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ŵ<EFBFBD>"
/// image : "https://pos.upload.gznl.top/1175/2021/09/44d60dab-0ae3-4d07-b624-50b8ab99d0fc.jpg"
/// description : "1"
/// status : 4
/// applyStartTime : "2021-09-13 11:19:16"
/// applyEndTime : "2021-09-13 11:19:16"
/// activityStartTime : "2021-09-01 00:00:00"
/// activityEndTime : "2021-10-30 00:00:00"
/// doStartTime : null
/// doEndTime : null
/// isNeedSecurityDeposit : 0
/// securityDeposit : "0"
/// tag : "11"
/// promotionType : 1
/// promotionPlan : 0
/// promotionDetail : [{"limitTime":"0","discountRate":"0","discountAmount":"0","fullAmount":"0","collageNumber":"0","fullNumber":"1"}]
/// channels : ["MINI","POS"]
/// isVip : false
3 years ago
/// isDelete : 0
3 years ago
/// tenantCode : "1175"
/// canPartake : true
/// promotionProuctList : null
3 years ago
3 years ago
class PromotionInfoListBean {
String id;
String createTime;
String createUser;
String updateTime;
String updateUser;
String storeId;
String name;
String image;
String description;
3 years ago
int status;
3 years ago
String applyStartTime;
String applyEndTime;
String activityStartTime;
String activityEndTime;
dynamic doStartTime;
dynamic doEndTime;
int isNeedSecurityDeposit;
String securityDeposit;
String tag;
int promotionType;
int promotionPlan;
List<PromotionDetailBean> promotionDetail;
List<String> channels;
bool isVip;
int isDelete;
String tenantCode;
bool canPartake;
dynamic promotionProuctList;
3 years ago
3 years ago
static PromotionInfoListBean fromJson(Map<String, dynamic> map) {
3 years ago
if (map == null) return null;
3 years ago
PromotionInfoListBean promotionInfoListBean = PromotionInfoListBean();
promotionInfoListBean.id = map['id'];
promotionInfoListBean.createTime = map['createTime'];
promotionInfoListBean.createUser = map['createUser'];
promotionInfoListBean.updateTime = map['updateTime'];
promotionInfoListBean.updateUser = map['updateUser'];
promotionInfoListBean.storeId = map['storeId'];
promotionInfoListBean.name = map['name'];
promotionInfoListBean.image = map['image'];
promotionInfoListBean.description = map['description'];
promotionInfoListBean.status = map['status'];
promotionInfoListBean.applyStartTime = map['applyStartTime'];
promotionInfoListBean.applyEndTime = map['applyEndTime'];
promotionInfoListBean.activityStartTime = map['activityStartTime'];
promotionInfoListBean.activityEndTime = map['activityEndTime'];
promotionInfoListBean.doStartTime = map['doStartTime'];
promotionInfoListBean.doEndTime = map['doEndTime'];
promotionInfoListBean.isNeedSecurityDeposit = map['isNeedSecurityDeposit'];
promotionInfoListBean.securityDeposit = map['securityDeposit'];
promotionInfoListBean.tag = map['tag'];
promotionInfoListBean.promotionType = map['promotionType'];
promotionInfoListBean.promotionPlan = map['promotionPlan'];
promotionInfoListBean.promotionDetail = List()..addAll(
(map['promotionDetail'] as List ?? []).map((o) => PromotionDetailBean.fromJson(o))
);
promotionInfoListBean.channels = List()..addAll(
(map['channels'] as List ?? []).map((o) => o.toString())
);
promotionInfoListBean.isVip = map['isVip'];
promotionInfoListBean.isDelete = map['isDelete'];
promotionInfoListBean.tenantCode = map['tenantCode'];
promotionInfoListBean.canPartake = map['canPartake'];
promotionInfoListBean.promotionProuctList = map['promotionProuctList'];
return promotionInfoListBean;
3 years ago
}
Map toJson() => {
"id": id,
3 years ago
"createTime": createTime,
"createUser": createUser,
"updateTime": updateTime,
"updateUser": updateUser,
3 years ago
"storeId": storeId,
3 years ago
"name": name,
"image": image,
"description": description,
"status": status,
"applyStartTime": applyStartTime,
"applyEndTime": applyEndTime,
"activityStartTime": activityStartTime,
"activityEndTime": activityEndTime,
"doStartTime": doStartTime,
"doEndTime": doEndTime,
"isNeedSecurityDeposit": isNeedSecurityDeposit,
"securityDeposit": securityDeposit,
"tag": tag,
"promotionType": promotionType,
"promotionPlan": promotionPlan,
"promotionDetail": promotionDetail,
"channels": channels,
"isVip": isVip,
"isDelete": isDelete,
"tenantCode": tenantCode,
"canPartake": canPartake,
"promotionProuctList": promotionProuctList,
};
}
/// limitTime : "0"
/// discountRate : "0"
/// discountAmount : "0"
/// fullAmount : "0"
/// collageNumber : "0"
/// fullNumber : "1"
class PromotionDetailBean {
String limitTime;
String discountRate;
String discountAmount;
String fullAmount;
String collageNumber;
String fullNumber;
static PromotionDetailBean fromJson(Map<String, dynamic> map) {
if (map == null) return null;
PromotionDetailBean promotionDetailBean = PromotionDetailBean();
promotionDetailBean.limitTime = map['limitTime'];
promotionDetailBean.discountRate = map['discountRate'];
promotionDetailBean.discountAmount = map['discountAmount'];
promotionDetailBean.fullAmount = map['fullAmount'];
promotionDetailBean.collageNumber = map['collageNumber'];
promotionDetailBean.fullNumber = map['fullNumber'];
return promotionDetailBean;
}
Map toJson() => {
"limitTime": limitTime,
"discountRate": discountRate,
"discountAmount": discountAmount,
"fullAmount": fullAmount,
"collageNumber": collageNumber,
"fullNumber": fullNumber,
3 years ago
};
}