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.

734 lines
23 KiB

3 years ago
import 'package:huixiang/retrofit/data/order_product_vo.dart';
import 'package:huixiang/retrofit/data/settleOrderInfo.dart';
class MinOrderInfo {
MinOrderInfo({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String tenantCode,
String storeId,
String storeName,
String tableId,
int orderType,
bool clearTable,
String mid,
String parentId,
String parentCode,
String orderCode,
String dayFlowCode,
int orderStatus,
int sendStatus,
int payStatus,
String memberAccount,
String logisticsId,
String shipperCode,
String logisticsName,
String logisticsNum,
dynamic logisticsCase,
int refundStatus,
dynamic addressExt,
String postFee,
String orderSum,
String paySum,
String paySumSub,
String accountPay,
String couponSubPrice,
String customPrice,
String removeDecimal,
bool isSubscribe,
dynamic subcribeTime,
dynamic sendTime,
dynamic confirmTime,
dynamic returnMoneyTime,
String notes,
dynamic prepayId,
dynamic payTime,
int payChannel,
dynamic payNum,
String promotionId,
String couponId,
String couponName,
3 years ago
int isDelete,
int isTakeOut,
int batch,
String orderDiscountPrice,
String dishesDiscountPrice,
String orderPercentPrice,
String finalPayPrice,
String activityNoPrice,
String activityDiscountPrice,
String totalDiscountPrice,
String totalPackagingFee,
String benefitDiscountAmount,
3 years ago
int orderSource,
dynamic address,
3 years ago
dynamic discountPercent,
String discountAmount,
3 years ago
dynamic discountType,
dynamic discountMoney,
dynamic overTime,
3 years ago
List<OrderProductVOList> orderProductVOList,
3 years ago
dynamic moneyReturnList,
dynamic goodsReturnList,
dynamic moneyReturnVOList,
dynamic goodsReturnVOList,
dynamic moneyReturnActionHistoryList,
dynamic goodsReturnActionHistoryList,
String currentTime,
dynamic tablePrice,
String tableName,
String balance,
String money,
dynamic prodNum,
bool onCredit,
OrderInfoVo orderInfoVo,
String endPayTime,
String orderSumPrice,
bool isRaise,}){
3 years ago
this.id = id;
this.createTime = createTime;
this.createUser = createUser;
this.updateTime = updateTime;
this.updateUser = updateUser;
this.tenantCode = tenantCode;
this.storeId = storeId;
this.storeName = storeName;
this.tableId = tableId;
this.orderType = orderType;
this.clearTable = clearTable;
this.mid = mid;
this.parentId = parentId;
this.parentCode = parentCode;
this.orderCode = orderCode;
this.dayFlowCode = dayFlowCode;
this.orderStatus = orderStatus;
this.sendStatus = sendStatus;
this.payStatus = payStatus;
this.memberAccount = memberAccount;
this.logisticsId = logisticsId;
this.shipperCode = shipperCode;
this.logisticsName = logisticsName;
this.logisticsNum = logisticsNum;
this.logisticsCase = logisticsCase;
this.refundStatus = refundStatus;
this.addressExt = addressExt;
this.postFee = postFee;
this.orderSum = orderSum;
this.paySum = paySum;
this.paySumSub = paySumSub;
this.accountPay = accountPay;
this.couponSubPrice = couponSubPrice;
this.customPrice = customPrice;
this.removeDecimal = removeDecimal;
this.isSubscribe = isSubscribe;
this.subcribeTime = subcribeTime;
this.sendTime = sendTime;
this.confirmTime = confirmTime;
this.returnMoneyTime = returnMoneyTime;
this.notes = notes;
this.prepayId = prepayId;
this.payTime = payTime;
this.payChannel = payChannel;
this.payNum = payNum;
this.promotionId = promotionId;
this.couponId = couponId;
this.couponName = couponName;
3 years ago
this.isDelete = isDelete;
this.isTakeOut = isTakeOut;
this.batch = batch;
this.orderDiscountPrice = orderDiscountPrice;
this.dishesDiscountPrice = dishesDiscountPrice;
this.orderPercentPrice = orderPercentPrice;
this.finalPayPrice = finalPayPrice;
this.activityNoPrice = activityNoPrice;
this.activityDiscountPrice = activityDiscountPrice;
this.totalDiscountPrice = totalDiscountPrice;
this.totalPackagingFee = totalPackagingFee;
this.benefitDiscountAmount = benefitDiscountAmount;
3 years ago
this.orderSource = orderSource;
this.address = address;
this.discountPercent = discountPercent;
this.discountAmount = discountAmount;
this.discountType = discountType;
this.discountMoney = discountMoney;
this.overTime = overTime;
this.orderProductVOList = orderProductVOList;
this.moneyReturnList = moneyReturnList;
this.goodsReturnList = goodsReturnList;
this.moneyReturnVOList = moneyReturnVOList;
this.goodsReturnVOList = goodsReturnVOList;
this.moneyReturnActionHistoryList = moneyReturnActionHistoryList;
this.goodsReturnActionHistoryList = goodsReturnActionHistoryList;
this.currentTime = currentTime;
this.tablePrice = tablePrice;
this.tableName = tableName;
this.balance = balance;
this.money = money;
this.prodNum = prodNum;
this.onCredit = onCredit;
this.orderInfoVo = orderInfoVo;
this.endPayTime = endPayTime;
this.orderSumPrice = orderSumPrice;
this.isRaise = isRaise;
3 years ago
}
MinOrderInfo.fromJson(dynamic json) {
this.id = json['id'];
this.createTime = json['createTime'];
this.createUser = json['createUser'];
this.updateTime = json['updateTime'];
this.updateUser = json['updateUser'];
this.tenantCode = json['tenantCode'];
this.storeId = json['storeId'];
this.storeName = json['storeName'];
this.tableId = json['tableId'];
this.orderType = json['orderType'];
this.clearTable = json['clearTable'];
this.mid = json['mid'];
this.parentId = json['parentId'];
this.parentCode = json['parentCode'];
this.orderCode = json['orderCode'];
this.dayFlowCode = json['dayFlowCode'];
this.orderStatus = json['orderStatus'];
this.sendStatus = json['sendStatus'];
this.payStatus = json['payStatus'];
this.memberAccount = json['memberAccount'];
this.logisticsId = json['logisticsId'];
this.shipperCode = json['shipperCode'];
this.logisticsName = json['logisticsName'];
this.logisticsNum = json['logisticsNum'];
this.logisticsCase = json['logisticsCase'];
this.refundStatus = json['refundStatus'];
this.addressExt = json['addressExt'];
this.postFee = json['postFee'];
this.orderSum = json['orderSum'];
this.paySum = json['paySum'];
this.paySumSub = json['paySumSub'];
this.accountPay = json['accountPay'];
this.couponSubPrice = json['couponSubPrice'];
this.customPrice = json['customPrice'];
this.removeDecimal = json['removeDecimal'];
this.isSubscribe = json['isSubscribe'];
this.subcribeTime = json['subcribeTime'];
this.sendTime = json['sendTime'];
this.confirmTime = json['confirmTime'];
this.returnMoneyTime = json['returnMoneyTime'];
this.notes = json['notes'];
this.prepayId = json['prepayId'];
this.payTime = json['payTime'];
this.payChannel = json['payChannel'];
this.payNum = json['payNum'];
this.promotionId = json['promotionId'];
this.couponId = json['couponId'];
this.couponName = json['couponName'];
3 years ago
this.isDelete = json['isDelete'];
this.isTakeOut = json['isTakeOut'];
this.batch = json['batch'];
this.orderDiscountPrice = json['orderDiscountPrice'];
this.dishesDiscountPrice = json['dishesDiscountPrice'];
this.orderPercentPrice = json['orderPercentPrice'];
this.finalPayPrice = json['finalPayPrice'];
this.activityNoPrice = json['activityNoPrice'];
this.activityDiscountPrice = json['activityDiscountPrice'];
this.totalDiscountPrice = json['totalDiscountPrice'];
this.totalPackagingFee = json['totalPackagingFee'];
this.benefitDiscountAmount = json['benefitDiscountAmount'];
3 years ago
this.orderSource = json['orderSource'];
this.address = json['address'];
this.discountPercent = json['discountPercent'];
this.discountAmount = json['discountAmount'];
this.discountType = json['discountType'];
this.discountMoney = json['discountMoney'];
this.overTime = json['overTime'];
if (json['orderProductVOList'] != null) {
this.orderProductVOList = [];
json['orderProductVOList'].forEach((v) {
3 years ago
this.orderProductVOList.add(OrderProductVOList.fromJson(v));
3 years ago
});
}
this.moneyReturnList = json['moneyReturnList'];
this.goodsReturnList = json['goodsReturnList'];
this.moneyReturnVOList = json['moneyReturnVOList'];
this.goodsReturnVOList = json['goodsReturnVOList'];
this.moneyReturnActionHistoryList = json['moneyReturnActionHistoryList'];
this.goodsReturnActionHistoryList = json['goodsReturnActionHistoryList'];
this.currentTime = json['currentTime'];
this.tablePrice = json['tablePrice'];
this.tableName = json['tableName'];
this.balance = json['balance'];
this.money = json['money'];
this.prodNum = json['prodNum'];
this.onCredit = json['onCredit'];
this.orderInfoVo = json['orderInfoVo'] != null ? OrderInfoVo.fromJson(json['orderInfoVo']) : null;
this.endPayTime = json['endPayTime'];
this.orderSumPrice = json['orderSumPrice'];
this.isRaise = json['isRaise'];
3 years ago
}
String id;
String createTime;
String createUser;
String updateTime;
String updateUser;
String tenantCode;
String storeId;
String storeName;
String tableId;
int orderType;
bool clearTable;
String mid;
String parentId;
String parentCode;
String orderCode;
String dayFlowCode;
int orderStatus;
int sendStatus;
int payStatus;
String memberAccount;
String logisticsId;
String shipperCode;
String logisticsName;
String logisticsNum;
dynamic logisticsCase;
int refundStatus;
dynamic addressExt;
String postFee;
String orderSum;
String paySum;
String paySumSub;
String accountPay;
String couponSubPrice;
String customPrice;
String removeDecimal;
bool isSubscribe;
dynamic subcribeTime;
dynamic sendTime;
dynamic confirmTime;
dynamic returnMoneyTime;
String notes;
dynamic prepayId;
dynamic payTime;
int payChannel;
dynamic payNum;
String promotionId;
String couponId;
String couponName;
3 years ago
int isDelete;
int isTakeOut;
int batch;
String orderDiscountPrice;
String dishesDiscountPrice;
String orderPercentPrice;
String finalPayPrice;
String activityNoPrice;
String activityDiscountPrice;
String totalDiscountPrice;
String totalPackagingFee;
String benefitDiscountAmount;
3 years ago
int orderSource;
dynamic address;
dynamic discountPercent;
3 years ago
String discountAmount;
3 years ago
dynamic discountType;
dynamic discountMoney;
dynamic overTime;
3 years ago
List<OrderProductVOList> orderProductVOList;
3 years ago
dynamic moneyReturnList;
dynamic goodsReturnList;
dynamic moneyReturnVOList;
dynamic goodsReturnVOList;
dynamic moneyReturnActionHistoryList;
dynamic goodsReturnActionHistoryList;
String currentTime;
dynamic tablePrice;
String tableName;
String balance;
String money;
dynamic prodNum;
bool onCredit;
OrderInfoVo orderInfoVo;
String endPayTime;
String orderSumPrice;
bool isRaise;
3 years ago
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = this.id;
map['createTime'] = this.createTime;
map['createUser'] = this.createUser;
map['updateTime'] = this.updateTime;
map['updateUser'] = this.updateUser;
map['tenantCode'] = this.tenantCode;
map['storeId'] = this.storeId;
map['storeName'] = this.storeName;
map['tableId'] = this.tableId;
map['orderType'] = this.orderType;
map['clearTable'] = this.clearTable;
map['mid'] = this.mid;
map['parentId'] = this.parentId;
map['parentCode'] = this.parentCode;
map['orderCode'] = this.orderCode;
map['dayFlowCode'] = this.dayFlowCode;
map['orderStatus'] = this.orderStatus;
map['sendStatus'] = this.sendStatus;
map['payStatus'] = this.payStatus;
map['memberAccount'] = this.memberAccount;
map['logisticsId'] = this.logisticsId;
map['shipperCode'] = this.shipperCode;
map['logisticsName'] = this.logisticsName;
map['logisticsNum'] = this.logisticsNum;
map['logisticsCase'] = this.logisticsCase;
map['refundStatus'] = this.refundStatus;
map['addressExt'] = this.addressExt;
map['postFee'] = this.postFee;
map['orderSum'] = this.orderSum;
map['paySum'] = this.paySum;
map['paySumSub'] = this.paySumSub;
map['accountPay'] = this.accountPay;
map['couponSubPrice'] = this.couponSubPrice;
map['customPrice'] = this.customPrice;
map['removeDecimal'] = this.removeDecimal;
map['isSubscribe'] = this.isSubscribe;
map['subcribeTime'] = this.subcribeTime;
map['sendTime'] = this.sendTime;
map['confirmTime'] = this.confirmTime;
map['returnMoneyTime'] = this.returnMoneyTime;
map['notes'] = this.notes;
map['prepayId'] = this.prepayId;
map['payTime'] = this.payTime;
map['payChannel'] = this.payChannel;
map['payNum'] = this.payNum;
map['promotionId'] = this.promotionId;
map['couponId'] = this.couponId;
map['couponName'] = this.couponName;
3 years ago
map['isDelete'] = this.isDelete;
map['isTakeOut'] = this.isTakeOut;
map['batch'] = this.batch;
map['orderDiscountPrice'] = this.orderDiscountPrice;
map['dishesDiscountPrice'] = this.dishesDiscountPrice;
map['orderPercentPrice'] = this.orderPercentPrice;
map['finalPayPrice'] = this.finalPayPrice;
map['activityNoPrice'] = this.activityNoPrice;
map['activityDiscountPrice'] = this.activityDiscountPrice;
map['totalDiscountPrice'] = this.totalDiscountPrice;
map['totalPackagingFee'] = this.totalPackagingFee;
map['benefitDiscountAmount'] = this.benefitDiscountAmount;
3 years ago
map['orderSource'] = this.orderSource;
map['address'] = this.address;
map['discountPercent'] = this.discountPercent;
map['discountAmount'] = this.discountAmount;
map['discountType'] = this.discountType;
map['discountMoney'] = this.discountMoney;
map['overTime'] = this.overTime;
if (this.orderProductVOList != null) {
map['orderProductVOList'] = this.orderProductVOList.map((v) => v.toJson()).toList();
}
map['moneyReturnList'] = this.moneyReturnList;
map['goodsReturnList'] = this.goodsReturnList;
map['moneyReturnVOList'] = this.moneyReturnVOList;
map['goodsReturnVOList'] = this.goodsReturnVOList;
map['moneyReturnActionHistoryList'] = this.moneyReturnActionHistoryList;
map['goodsReturnActionHistoryList'] = this.goodsReturnActionHistoryList;
map['currentTime'] = this.currentTime;
map['tablePrice'] = this.tablePrice;
map['tableName'] = this.tableName;
map['balance'] = this.balance;
map['money'] = this.money;
map['prodNum'] = this.prodNum;
map['onCredit'] = this.onCredit;
if (this.orderInfoVo != null) {
map['orderInfoVo'] = this.orderInfoVo.toJson();
}
map['endPayTime'] = this.endPayTime;
map['orderSumPrice'] = this.orderSumPrice;
map['isRaise'] = this.isRaise;
3 years ago
return map;
}
}
/// orderNum : 0
/// productNum : 0
/// mins : 1
/// memberVO : {"vipNo":"1406879717390286848","nickname":"","headimg":"","userType":true,"sex":"0","level":1,"addressId":null,"remark":null,"phone":"15827991714","createTime":"2021-07-10 15:44:23","birth":"1993-02-19","balance":"0.00","money":"9999608.09","points":"1147","isBind":true,"memberRankVo":{"id":"1402947503522840576","rankName":"黄金会员","rankOrigin":8888,"rankContent":"","rankImg":"","status":true,"nextId":"1402947503522840577","nextName":"钻石会员","nextOrigin":null},"age":28}
/// postAge : "0.00"
/// price : "208.00"
/// orderSum : "208.00"
/// discountAmount : null
/// promotionInfoList : null
/// couponList : null
/// threshold : "0"
/// freePostAge : "0"
/// orderProductList : null
class OrderInfoVo {
OrderInfoVo({
int orderNum,
int productNum,
int mins,
MemberVO memberVO,
String postAge,
String price,
3 years ago
String orderSum,
String discountAmount,
3 years ago
dynamic promotionInfoList,
dynamic couponList,
String threshold,
String freePostAge,
dynamic orderProductList,}){
this.orderNum = orderNum;
this.productNum = productNum;
this.mins = mins;
this.memberVO = memberVO;
this.postAge = postAge;
this.price = price;
this.orderSum = orderSum;
this.discountAmount = discountAmount;
this.promotionInfoList = promotionInfoList;
this.couponList = couponList;
this.threshold = threshold;
this.freePostAge = freePostAge;
this.orderProductList = orderProductList;
}
OrderInfoVo.fromJson(dynamic json) {
this.orderNum = json['orderNum'];
this.productNum = json['productNum'];
this.mins = json['mins'];
this.memberVO = json['memberVO'] != null ? MemberVO.fromJson(json['memberVO']) : null;
this.postAge = json['postAge'];
this.price = json['price'];
this.orderSum = json['orderSum'];
this.discountAmount = json['discountAmount'];
this.promotionInfoList = json['promotionInfoList'];
this.couponList = json['couponList'];
this.threshold = json['threshold'];
this.freePostAge = json['freePostAge'];
this.orderProductList = json['orderProductList'];
}
int orderNum;
int productNum;
int mins;
MemberVO memberVO;
String postAge;
String price;
String orderSum;
3 years ago
String discountAmount;
3 years ago
dynamic promotionInfoList;
dynamic couponList;
String threshold;
String freePostAge;
dynamic orderProductList;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['orderNum'] = this.orderNum;
map['productNum'] = this.productNum;
map['mins'] = this.mins;
if (this.memberVO != null) {
map['memberVO'] = this.memberVO.toJson();
}
map['postAge'] = this.postAge;
map['price'] = this.price;
map['orderSum'] = this.orderSum;
map['discountAmount'] = this.discountAmount;
map['promotionInfoList'] = this.promotionInfoList;
map['couponList'] = this.couponList;
map['threshold'] = this.threshold;
map['freePostAge'] = this.freePostAge;
map['orderProductList'] = this.orderProductList;
return map;
}
}
/// vipNo : "1406879717390286848"
/// nickname : ""
/// headimg : ""
/// userType : true
/// sex : "0"
/// level : 1
/// addressId : null
/// remark : null
/// phone : "15827991714"
/// createTime : "2021-07-10 15:44:23"
/// birth : "1993-02-19"
/// balance : "0.00"
/// money : "9999608.09"
/// points : "1147"
/// isBind : true
/// memberRankVo : {"id":"1402947503522840576","rankName":"黄金会员","rankOrigin":8888,"rankContent":"","rankImg":"","status":true,"nextId":"1402947503522840577","nextName":"钻石会员","nextOrigin":null}
/// age : 28
class MemberVO {
MemberVO({
String vipNo,
String nickname,
String headimg,
bool userType,
String sex,
int level,
dynamic addressId,
dynamic remark,
String phone,
String createTime,
String birth,
String balance,
String money,
String points,
bool isBind,
MemberRankVo memberRankVo,
int age,}){
this.vipNo = vipNo;
this.nickname = nickname;
this.headimg = headimg;
this.userType = userType;
this.sex = sex;
this.level = level;
this.addressId = addressId;
this.remark = remark;
this.phone = phone;
this.createTime = createTime;
this.birth = birth;
this.balance = balance;
this.money = money;
this.points = points;
this.isBind = isBind;
this.memberRankVo = memberRankVo;
this.age = age;
}
MemberVO.fromJson(dynamic json) {
this.vipNo = json['vipNo'];
this.nickname = json['nickname'];
this.headimg = json['headimg'];
this.userType = json['userType'];
this.sex = json['sex'];
this.level = json['level'];
this.addressId = json['addressId'];
this.remark = json['remark'];
this.phone = json['phone'];
this.createTime = json['createTime'];
this.birth = json['birth'];
this.balance = json['balance'];
this.money = json['money'];
this.points = json['points'];
this.isBind = json['isBind'];
this.memberRankVo = json['memberRankVo'] != null ? MemberRankVo.fromJson(json['memberRankVo']) : null;
this.age = json['age'];
}
String vipNo;
String nickname;
String headimg;
bool userType;
String sex;
int level;
dynamic addressId;
dynamic remark;
String phone;
String createTime;
String birth;
String balance;
String money;
String points;
bool isBind;
MemberRankVo memberRankVo;
int age;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['vipNo'] = this.vipNo;
map['nickname'] = this.nickname;
map['headimg'] = this.headimg;
map['userType'] = this.userType;
map['sex'] = this.sex;
map['level'] = this.level;
map['addressId'] = this.addressId;
map['remark'] = this.remark;
map['phone'] = this.phone;
map['createTime'] = this.createTime;
map['birth'] = this.birth;
map['balance'] = this.balance;
map['money'] = this.money;
map['points'] = this.points;
map['isBind'] = this.isBind;
if (this.memberRankVo != null) {
map['memberRankVo'] = this.memberRankVo.toJson();
}
map['age'] = this.age;
return map;
}
}
/// id : "1402947503522840576"
/// rankName : "黄金会员"
/// rankOrigin : 8888
/// rankContent : ""
/// rankImg : ""
/// status : true
/// nextId : "1402947503522840577"
/// nextName : "钻石会员"
/// nextOrigin : null
class MemberRankVo {
MemberRankVo({
String id,
String rankName,
int rankOrigin,
String rankContent,
String rankImg,
bool status,
String nextId,
String nextName,
dynamic nextOrigin,}){
this.id = id;
this.rankName = rankName;
this.rankOrigin = rankOrigin;
this.rankContent = rankContent;
this.rankImg = rankImg;
this.status = status;
this.nextId = nextId;
this.nextName = nextName;
this.nextOrigin = nextOrigin;
}
MemberRankVo.fromJson(dynamic json) {
this.id = json['id'];
this.rankName = json['rankName'];
this.rankOrigin = json['rankOrigin'];
this.rankContent = json['rankContent'];
this.rankImg = json['rankImg'];
this.status = json['status'];
this.nextId = json['nextId'];
this.nextName = json['nextName'];
this.nextOrigin = json['nextOrigin'];
}
String id;
String rankName;
int rankOrigin;
String rankContent;
String rankImg;
bool status;
String nextId;
String nextName;
dynamic nextOrigin;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = this.id;
map['rankName'] = this.rankName;
map['rankOrigin'] = this.rankOrigin;
map['rankContent'] = this.rankContent;
map['rankImg'] = this.rankImg;
map['status'] = this.status;
map['nextId'] = this.nextId;
map['nextName'] = this.nextName;
map['nextOrigin'] = this.nextOrigin;
return map;
}
}