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.
545 lines
28 KiB
545 lines
28 KiB
/// mid : "1379254113602109440" |
|
/// sid : "1659496253991419904" |
|
/// phoneNum : "13052919193" |
|
/// nickName : "" |
|
/// headimg : "" |
|
/// sex : "0" |
|
/// balance : "0.00" |
|
/// realBalance : "0.00" |
|
/// giftBalance : "0.00" |
|
/// memberSourceCredit : false |
|
/// money : "1.49" |
|
/// memberCredit : false |
|
/// greenMoney : "0.00" |
|
/// raiseMoney : "0.00" |
|
/// payPassword : "222222" |
|
/// useableConponList : [{"id":"1730867009651998720","storeIds":["1333246101343436800","1432164681279078400","1665555596536971264"],"stores":[],"bizType":2,"fullType":"TOTAL_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":2,"dateOrDay":true,"startAfterDays":0,"daysValidate":3,"discountPercent":68,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-05-05","publishEndTime":"2023-12-31","useStartTime":"2023-12-02 16:30:28","useEndTime":"2023-12-05 16:30:28","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1654409900576473088","receiveTime":"2023-12-02","useTime":null,"status":1,"tenantCode":"admin","type":2,"promotionName":"双杯优享6.8折(海峡姐妹)","usable":false,"usableReason":"不在可使用时间内,本券须在领取0天后,3天内使用","allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433971071316393984","1433972467273039872","1435141914704740352","1524320958125441024","1552172579970613248","1668105881067192320","1668134716433235968","1668134867440762880","1668134955919605760","1668135085221609472","1668135269255086080","1425708380399337472","1426064940447301632","1426067376096411648","1426095795836289024","1522572290481455104","1522572604823568384","1524327158112059392","1601821884305899520","1668135150308818944","1678291351080271872"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券自领取日起3天有效。<br />2.本券仅用于海峡姐妹饮品,一次性购买满2杯使用。<br />3.本券不可与其他活动同享。</p>","canUseBalance":true},{"id":"1738109465292439552","storeIds":["1432164681279078400"],"stores":[],"bizType":6,"fullType":"EACH_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":1,"dateOrDay":true,"startAfterDays":0,"daysValidate":90,"discountPercent":0,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-08-28","publishEndTime":"2025-08-31","useStartTime":"2023-12-22 16:09:24","useEndTime":"2024-03-21 16:09:24","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1695995932824305664","receiveTime":"2023-12-22","useTime":null,"status":1,"tenantCode":"admin","type":6,"promotionName":"茶饮畅饮券","usable":false,"usableReason":null,"allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433972467273039872","1434859128668291072","1435141914704740352","1524320958125441024","1552172579970613248"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券仅作为有奖兑换凭证,不可转赠,不可兑换现金;<br />2.请在有效期内使用该券,逾期作废;<br />3.本券一次性核销。</p>","canUseBalance":true},{"id":"1739525906998755328","storeIds":["1432164681279078400"],"stores":[],"bizType":6,"fullType":"EACH_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":1,"dateOrDay":true,"startAfterDays":0,"daysValidate":90,"discountPercent":0,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-08-28","publishEndTime":"2025-08-31","useStartTime":"2023-12-26 13:57:50","useEndTime":"2024-03-25 13:57:50","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1695995932824305664","receiveTime":"2023-12-26","useTime":null,"status":1,"tenantCode":"admin","type":6,"promotionName":"茶饮畅饮券","usable":false,"usableReason":null,"allProduct":false,"productSkuId":[],"productGroupIds":["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433972467273039872","1434859128668291072","1435141914704740352","1524320958125441024","1552172579970613248"],"productList":null,"isMaxCoupon":false,"productGroupList":[],"remark":"<p>1.本券仅作为有奖兑换凭证,不可转赠,不可兑换现金;<br />2.请在有效期内使用该券,逾期作废;<br />3.本券一次性核销。</p>","canUseBalance":true},{"id":"1739947698053709824","storeIds":["1627869775969386496"],"stores":[{"id":"1627869775969386496","createTime":"2023-02-21 11:16:14","createUser":"1","updateTime":"2023-02-21 11:16:14","updateUser":"1","tenantCode":"1193","useErp":false,"openStartTime":"08:00:00","openEndTime":"21:15:00","storeName":"海峡姐妹茶膳坊","nickName":"","logo":"https://pos.upload.lotus-wallet.com/1193/2023/05/335470b8-557e-4809-92b3-c8050f98bb7f.png","facade":"https://pos.upload.lotus-wallet.com/1193/2023/05/f4e502de-d3af-4524-962a-d588733f0b1b.jpg","shipAddress":null,"remark":"","mobile":"18696193737","longitude":"116.4273410000","latitude":"39.9028420000","refundAddress":"北京市东城区毛家湾胡同甲13号北京站第八候车室西侧第一跨2-8-1B","refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"province":"北京","city":"北京","district":"东城区","address":"北京市东城区毛家湾胡同甲13号北京站第八候车室西侧第一跨2-8-1B","headName":"","headMobile":"","tel":"18696193737","businessService":"","businessType":"","deliveryInfo":null,"pickupType":{"dineInTakeStatus":true,"takeawayStatus":false,"expressDeliveryStatus":false},"miniParam":{"mini_program_app_id":"wx8f3ce8f059abff52","mini_program_secret":"40a7eb06bb1eb537a2faf094baa787e1","mini_mch_id":"","mini_sub_mch_id":"1639906514","is_sub_app":true,"sub_app_id":"wx8f3ce8f059abff52","mini_mch_key":"e10adc3949ba59abbe56e057f20f883e","mini_key_path":"","mini_key_sn_no":"","mini_key_cert_path":"","mini_key_key_path":""},"alipayParam":{"appid":"","privateKey":"","alipayPublicKey":"","alipayPid":"2088541867845156","appAuthToken":"202303BBbcba1639502a4d1c8e1c67e209b71D15"},"setting":{"speakerKey":"","speakerSn":"zsw03","printUsername":"","printUserPwd":"","tagWidth":null,"tagHeight":null},"refundApprover":null,"enableRefundApprover":null,"tableFee":{"merchant_table_price":"","per_capita_consumption":"30","pay_set":["0","1","2","3","4"]},"money":"1502.00","platformShow":true,"subMchId":"","serviceType":"EATSTORE","isEnable":true,"is_delete":0,"sort":0,"profitSharing":{"type":"manual","mchName":"","mchCode":"","ratio":0},"autoSetting":{"use_auto_open":false,"use_finish_order":true,"use_flow_auto_open":true,"use_flow_finish_order":false},"posType":{"desc":"快消餐饮","code":"FASTSTORE"}}],"bizType":2,"fullType":"TOTAL_FULL","fullAmount":"0.00","discountAmount":"0.00","fullNumber":1,"dateOrDay":false,"startAfterDays":0,"daysValidate":0,"discountPercent":80,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-12-26","publishEndTime":"2023-12-28","useStartTime":"2023-12-26 00:00:00","useEndTime":"2023-12-30 00:00:00","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1739593476279894016","receiveTime":"2023-12-27","useTime":null,"status":1,"tenantCode":"1193","type":2,"promotionName":"素燥饭八折券","usable":false,"usableReason":null,"allProduct":false,"productSkuId":["1647843685146034176"],"productGroupIds":[],"productList":[{"id":"1647843685146034176","createTime":"2023-04-17 14:05:25","createUser":"1627869775885500416","updateTime":"2023-06-21 13:02:44","updateUser":"1627869775885500416","supplierName":"茶膳坊","storeId":"1627869775969386496","categoryId":"1300687829071822848","groupId":"1646761808653975552","shortName":"主食搭配贡丸汤,美味又营养","productName":"素燥饭套餐","sellDesc":"","attribute":null,"productCode":"PRO202304171405240000000000003","weight":"0","applyPrice":"42.00","price":"42.00","vipPrice":"42.00","stock":991,"sellCount":1032,"needLogistics":1,"oversold":0,"organic":0,"status":1,"posShow":true,"subscribeParam":null,"isRaise":false,"productType":0,"productNumber":1,"setMeal":1,"attrStyle":0,"detail":"","isDelete":0,"printerFlag":"DEFAULT","materials":null,"materialId":null,"details":"","thumbnailImg":"","info":"","buyCount":-53,"sellCountLimit":0,"stockRecoveryTime":"00:00:00","isAddPurchase":null,"limitNum":0,"rankId":"0","happyBean":0,"sort":0,"salesRules":null}],"isMaxCoupon":false,"productGroupList":null,"remark":"<p>111</p>","canUseBalance":true},{"id":"1739947724452659200","storeIds":["1627869775969386496"],"stores":[{"id":"1627869775969386496","createTime":"2023-02-21 11:16:14","createUser":"1","updateTime":"2023-02-21 11:16:14","updateUser":"1","tenantCode":"1193","useErp":false,"openStartTime":"08:00:00","openEndTime":"21:15:00","storeName":"海峡姐妹茶膳坊","nickName":"","logo":"https://pos.upload.lotus-wallet.com/1193/2023/05/335470b8-557e-4809-92b3-c8050f98bb7f.png","facade":"https://pos.upload.lotus-wallet.com/1193/2023/05/f4e502de-d3af-4524-962a-d588733f0b1b.jpg","shipAddress":null,"remark":"","mobile":"18696193737","longitude":"116.4273410000","latitude":"39.9028420000","refundAddress":"北京市东城区毛家湾胡同甲13号北京站第八候车室西侧第一跨2-8-1B","refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"province":"北京","city":"北京","district":"东城区","address":"北京市东城区毛家湾胡同甲13号北京站第八候车室西侧第一跨2-8-1B","headName":"","headMobile":"","tel":"18696193737","businessService":"","businessType":"","deliveryInfo":null,"pickupType":{"dineInTakeStatus":true,"takeawayStatus":false,"expressDeliveryStatus":false},"miniParam":{"mini_program_app_id":"wx8f3ce8f059abff52","mini_program_secret":"40a7eb06bb1eb537a2faf094baa787e1","mini_mch_id":"","mini_sub_mch_id":"1639906514","is_sub_app":true,"sub_app_id":"wx8f3ce8f059abff52","mini_mch_key":"e10adc3949ba59abbe56e057f20f883e","mini_key_path":"","mini_key_sn_no":"","mini_key_cert_path":"","mini_key_key_path":""},"alipayParam":{"appid":"","privateKey":"","alipayPublicKey":"","alipayPid":"2088541867845156","appAuthToken":"202303BBbcba1639502a4d1c8e1c67e209b71D15"},"setting":{"speakerKey":"","speakerSn":"zsw03","printUsername":"","printUserPwd":"","tagWidth":null,"tagHeight":null},"refundApprover":null,"enableRefundApprover":null,"tableFee":{"merchant_table_price":"","per_capita_consumption":"30","pay_set":["0","1","2","3","4"]},"money":"1502.00","platformShow":true,"subMchId":"","serviceType":"EATSTORE","isEnable":true,"is_delete":0,"sort":0,"profitSharing":{"type":"manual","mchName":"","mchCode":"","ratio":0},"autoSetting":{"use_auto_open":false,"use_finish_order":true,"use_flow_auto_open":true,"use_flow_finish_order":false},"posType":{"desc":"快消餐饮","code":"FASTSTORE"}}],"bizType":1,"fullType":"EACH_FULL","fullAmount":"49.00","discountAmount":"10.00","fullNumber":1,"dateOrDay":true,"startAfterDays":1,"daysValidate":90,"discountPercent":100,"limitAmount":"0.00","bizId":"","publishStartTime":"2023-06-19","publishEndTime":"2023-06-26","useStartTime":"2023-12-28 17:53:59","useEndTime":"2024-03-27 17:53:59","doStartTime":"00:00","doEndTime":"23:59","promotionId":"0","couponId":"1669883455174868992","receiveTime":"2023-12-27","useTime":null,"status":1,"tenantCode":"1193","type":1,"promotionName":"满49减10元端午礼券","usable":false,"usableReason":"不在可使用时间内,本券须在领取1天后,90天内使用","allProduct":true,"productSkuId":[],"productGroupIds":[],"productList":null,"isMaxCoupon":false,"productGroupList":null,"remark":"<p>1.本券自领取日,次日生效可用,90天内有效;<br />2.本券可用于购买海峡姐妹茶膳坊内商品,满49元可使用;<br />3.本券不可与其他活动同享;<br />4.本券不可转赠,不可找零。<br /><br /></p>\n<p> </p>","canUseBalance":true}] |
|
|
|
class PhoneQueryMemberInfo { |
|
PhoneQueryMemberInfo({ |
|
String mid, |
|
String sid, |
|
String phoneNum, |
|
String nickName, |
|
String headimg, |
|
String sex, |
|
String balance, |
|
String realBalance, |
|
String giftBalance, |
|
bool memberSourceCredit, |
|
String money, |
|
bool memberCredit, |
|
String greenMoney, |
|
String raiseMoney, |
|
String payPassword, |
|
List<UseableConponList> useableConponList,}){ |
|
_mid = mid; |
|
_sid = sid; |
|
_phoneNum = phoneNum; |
|
_nickName = nickName; |
|
_headimg = headimg; |
|
_sex = sex; |
|
_balance = balance; |
|
_realBalance = realBalance; |
|
_giftBalance = giftBalance; |
|
_memberSourceCredit = memberSourceCredit; |
|
_money = money; |
|
_memberCredit = memberCredit; |
|
_greenMoney = greenMoney; |
|
_raiseMoney = raiseMoney; |
|
_payPassword = payPassword; |
|
_useableConponList = useableConponList; |
|
} |
|
|
|
PhoneQueryMemberInfo.fromJson(dynamic json) { |
|
_mid = json['mid']; |
|
_sid = json['sid']; |
|
_phoneNum = json['phoneNum']; |
|
_nickName = json['nickName']; |
|
_headimg = json['headimg']; |
|
_sex = json['sex']; |
|
_balance = json['balance']; |
|
_realBalance = json['realBalance']; |
|
_giftBalance = json['giftBalance']; |
|
_memberSourceCredit = json['memberSourceCredit']; |
|
_money = json['money']; |
|
_memberCredit = json['memberCredit']; |
|
_greenMoney = json['greenMoney']; |
|
_raiseMoney = json['raiseMoney']; |
|
_payPassword = json['payPassword']; |
|
if (json['useableConponList'] != null) { |
|
_useableConponList = []; |
|
json['useableConponList'].forEach((v) { |
|
_useableConponList.add(UseableConponList.fromJson(v)); |
|
}); |
|
} |
|
} |
|
String _mid; |
|
String _sid; |
|
String _phoneNum; |
|
String _nickName; |
|
String _headimg; |
|
String _sex; |
|
String _balance; |
|
String _realBalance; |
|
String _giftBalance; |
|
bool _memberSourceCredit; |
|
String _money; |
|
bool _memberCredit; |
|
String _greenMoney; |
|
String _raiseMoney; |
|
String _payPassword; |
|
List<UseableConponList> _useableConponList; |
|
PhoneQueryMemberInfo copyWith({ String mid, |
|
String sid, |
|
String phoneNum, |
|
String nickName, |
|
String headimg, |
|
String sex, |
|
String balance, |
|
String realBalance, |
|
String giftBalance, |
|
bool memberSourceCredit, |
|
String money, |
|
bool memberCredit, |
|
String greenMoney, |
|
String raiseMoney, |
|
String payPassword, |
|
List<UseableConponList> useableConponList, |
|
}) => PhoneQueryMemberInfo( mid: mid ?? _mid, |
|
sid: sid ?? _sid, |
|
phoneNum: phoneNum ?? _phoneNum, |
|
nickName: nickName ?? _nickName, |
|
headimg: headimg ?? _headimg, |
|
sex: sex ?? _sex, |
|
balance: balance ?? _balance, |
|
realBalance: realBalance ?? _realBalance, |
|
giftBalance: giftBalance ?? _giftBalance, |
|
memberSourceCredit: memberSourceCredit ?? _memberSourceCredit, |
|
money: money ?? _money, |
|
memberCredit: memberCredit ?? _memberCredit, |
|
greenMoney: greenMoney ?? _greenMoney, |
|
raiseMoney: raiseMoney ?? _raiseMoney, |
|
payPassword: payPassword ?? _payPassword, |
|
useableConponList: useableConponList ?? _useableConponList, |
|
); |
|
String get mid => _mid; |
|
String get sid => _sid; |
|
String get phoneNum => _phoneNum; |
|
String get nickName => _nickName; |
|
String get headimg => _headimg; |
|
String get sex => _sex; |
|
String get balance => _balance; |
|
String get realBalance => _realBalance; |
|
String get giftBalance => _giftBalance; |
|
bool get memberSourceCredit => _memberSourceCredit; |
|
String get money => _money; |
|
bool get memberCredit => _memberCredit; |
|
String get greenMoney => _greenMoney; |
|
String get raiseMoney => _raiseMoney; |
|
String get payPassword => _payPassword; |
|
List<UseableConponList> get useableConponList => _useableConponList; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['mid'] = _mid; |
|
map['sid'] = _sid; |
|
map['phoneNum'] = _phoneNum; |
|
map['nickName'] = _nickName; |
|
map['headimg'] = _headimg; |
|
map['sex'] = _sex; |
|
map['balance'] = _balance; |
|
map['realBalance'] = _realBalance; |
|
map['giftBalance'] = _giftBalance; |
|
map['memberSourceCredit'] = _memberSourceCredit; |
|
map['money'] = _money; |
|
map['memberCredit'] = _memberCredit; |
|
map['greenMoney'] = _greenMoney; |
|
map['raiseMoney'] = _raiseMoney; |
|
map['payPassword'] = _payPassword; |
|
if (_useableConponList != null) { |
|
map['useableConponList'] = _useableConponList.map((v) => v.toJson()).toList(); |
|
} |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// id : "1730867009651998720" |
|
/// storeIds : ["1333246101343436800","1432164681279078400","1665555596536971264"] |
|
/// stores : [] |
|
/// bizType : 2 |
|
/// fullType : "TOTAL_FULL" |
|
/// fullAmount : "0.00" |
|
/// discountAmount : "0.00" |
|
/// fullNumber : 2 |
|
/// dateOrDay : true |
|
/// startAfterDays : 0 |
|
/// daysValidate : 3 |
|
/// discountPercent : 68 |
|
/// limitAmount : "0.00" |
|
/// bizId : "" |
|
/// publishStartTime : "2023-05-05" |
|
/// publishEndTime : "2023-12-31" |
|
/// useStartTime : "2023-12-02 16:30:28" |
|
/// useEndTime : "2023-12-05 16:30:28" |
|
/// doStartTime : "00:00" |
|
/// doEndTime : "23:59" |
|
/// promotionId : "0" |
|
/// couponId : "1654409900576473088" |
|
/// receiveTime : "2023-12-02" |
|
/// useTime : null |
|
/// status : 1 |
|
/// tenantCode : "admin" |
|
/// type : 2 |
|
/// promotionName : "双杯优享6.8折(海峡姐妹)" |
|
/// usable : false |
|
/// usableReason : "不在可使用时间内,本券须在领取0天后,3天内使用" |
|
/// allProduct : false |
|
/// productSkuId : [] |
|
/// productGroupIds : ["1433971071249285120","1433971071266062336","1433971071287033856","1433971071303811072","1433971071316393984","1433972467273039872","1435141914704740352","1524320958125441024","1552172579970613248","1668105881067192320","1668134716433235968","1668134867440762880","1668134955919605760","1668135085221609472","1668135269255086080","1425708380399337472","1426064940447301632","1426067376096411648","1426095795836289024","1522572290481455104","1522572604823568384","1524327158112059392","1601821884305899520","1668135150308818944","1678291351080271872"] |
|
/// productList : null |
|
/// isMaxCoupon : false |
|
/// productGroupList : [] |
|
/// remark : "<p>1.本券自领取日起3天有效。<br />2.本券仅用于海峡姐妹饮品,一次性购买满2杯使用。<br />3.本券不可与其他活动同享。</p>" |
|
/// canUseBalance : true |
|
|
|
class UseableConponList { |
|
UseableConponList({ |
|
String id, |
|
List<String> storeIds, |
|
List<dynamic> stores, |
|
num bizType, |
|
String fullType, |
|
String fullAmount, |
|
String discountAmount, |
|
num fullNumber, |
|
bool dateOrDay, |
|
num startAfterDays, |
|
num daysValidate, |
|
num discountPercent, |
|
String limitAmount, |
|
String bizId, |
|
String publishStartTime, |
|
String publishEndTime, |
|
String useStartTime, |
|
String useEndTime, |
|
String doStartTime, |
|
String doEndTime, |
|
String promotionId, |
|
String couponId, |
|
String receiveTime, |
|
dynamic useTime, |
|
num status, |
|
String tenantCode, |
|
num type, |
|
String promotionName, |
|
bool usable, |
|
String usableReason, |
|
bool allProduct, |
|
List<dynamic> productSkuId, |
|
List<String> productGroupIds, |
|
dynamic productList, |
|
bool isMaxCoupon, |
|
List<dynamic> productGroupList, |
|
String remark, |
|
bool canUseBalance,}){ |
|
_id = id; |
|
_storeIds = storeIds; |
|
_stores = stores; |
|
_bizType = bizType; |
|
_fullType = fullType; |
|
_fullAmount = fullAmount; |
|
_discountAmount = discountAmount; |
|
_fullNumber = fullNumber; |
|
_dateOrDay = dateOrDay; |
|
_startAfterDays = startAfterDays; |
|
_daysValidate = daysValidate; |
|
_discountPercent = discountPercent; |
|
_limitAmount = limitAmount; |
|
_bizId = bizId; |
|
_publishStartTime = publishStartTime; |
|
_publishEndTime = publishEndTime; |
|
_useStartTime = useStartTime; |
|
_useEndTime = useEndTime; |
|
_doStartTime = doStartTime; |
|
_doEndTime = doEndTime; |
|
_promotionId = promotionId; |
|
_couponId = couponId; |
|
_receiveTime = receiveTime; |
|
_useTime = useTime; |
|
_status = status; |
|
_tenantCode = tenantCode; |
|
_type = type; |
|
_promotionName = promotionName; |
|
_usable = usable; |
|
_usableReason = usableReason; |
|
_allProduct = allProduct; |
|
_productSkuId = productSkuId; |
|
_productGroupIds = productGroupIds; |
|
_productList = productList; |
|
_isMaxCoupon = isMaxCoupon; |
|
_productGroupList = productGroupList; |
|
_remark = remark; |
|
_canUseBalance = canUseBalance; |
|
} |
|
|
|
UseableConponList.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_storeIds = json['storeIds'] != null ? json['storeIds'].cast<String>() : []; |
|
// if (json['stores'] != null) { |
|
// _stores = []; |
|
// json['stores'].forEach((v) { |
|
// _stores.add(Dynamic.fromJson(v)); |
|
// }); |
|
// } |
|
_bizType = json['bizType']; |
|
_fullType = json['fullType']; |
|
_fullAmount = json['fullAmount']; |
|
_discountAmount = json['discountAmount']; |
|
_fullNumber = json['fullNumber']; |
|
_dateOrDay = json['dateOrDay']; |
|
_startAfterDays = json['startAfterDays']; |
|
_daysValidate = json['daysValidate']; |
|
_discountPercent = json['discountPercent']; |
|
_limitAmount = json['limitAmount']; |
|
_bizId = json['bizId']; |
|
_publishStartTime = json['publishStartTime']; |
|
_publishEndTime = json['publishEndTime']; |
|
_useStartTime = json['useStartTime']; |
|
_useEndTime = json['useEndTime']; |
|
_doStartTime = json['doStartTime']; |
|
_doEndTime = json['doEndTime']; |
|
_promotionId = json['promotionId']; |
|
_couponId = json['couponId']; |
|
_receiveTime = json['receiveTime']; |
|
_useTime = json['useTime']; |
|
_status = json['status']; |
|
_tenantCode = json['tenantCode']; |
|
_type = json['type']; |
|
_promotionName = json['promotionName']; |
|
_usable = json['usable']; |
|
_usableReason = json['usableReason']; |
|
_allProduct = json['allProduct']; |
|
if (json['productSkuId'] != null) { |
|
_productSkuId = []; |
|
// json['productSkuId'].forEach((v) { |
|
// _productSkuId.add(Dynamic.fromJson(v)); |
|
// }); |
|
} |
|
_productGroupIds = json['productGroupIds'] != null ? json['productGroupIds'].cast<String>() : []; |
|
_productList = json['productList']; |
|
_isMaxCoupon = json['isMaxCoupon']; |
|
if (json['productGroupList'] != null) { |
|
_productGroupList = []; |
|
// json['productGroupList'].forEach((v) { |
|
// _productGroupList.add(Dynamic.fromJson(v)); |
|
// }); |
|
} |
|
_remark = json['remark']; |
|
_canUseBalance = json['canUseBalance']; |
|
} |
|
String _id; |
|
List<String> _storeIds; |
|
List<dynamic> _stores; |
|
num _bizType; |
|
String _fullType; |
|
String _fullAmount; |
|
String _discountAmount; |
|
num _fullNumber; |
|
bool _dateOrDay; |
|
num _startAfterDays; |
|
num _daysValidate; |
|
num _discountPercent; |
|
String _limitAmount; |
|
String _bizId; |
|
String _publishStartTime; |
|
String _publishEndTime; |
|
String _useStartTime; |
|
String _useEndTime; |
|
String _doStartTime; |
|
String _doEndTime; |
|
String _promotionId; |
|
String _couponId; |
|
String _receiveTime; |
|
dynamic _useTime; |
|
num _status; |
|
String _tenantCode; |
|
num _type; |
|
String _promotionName; |
|
bool _usable; |
|
String _usableReason; |
|
bool _allProduct; |
|
List<dynamic> _productSkuId; |
|
List<String> _productGroupIds; |
|
dynamic _productList; |
|
bool _isMaxCoupon; |
|
List<dynamic> _productGroupList; |
|
String _remark; |
|
bool _canUseBalance; |
|
UseableConponList copyWith({ String id, |
|
List<String> storeIds, |
|
List<dynamic> stores, |
|
num bizType, |
|
String fullType, |
|
String fullAmount, |
|
String discountAmount, |
|
num fullNumber, |
|
bool dateOrDay, |
|
num startAfterDays, |
|
num daysValidate, |
|
num discountPercent, |
|
String limitAmount, |
|
String bizId, |
|
String publishStartTime, |
|
String publishEndTime, |
|
String useStartTime, |
|
String useEndTime, |
|
String doStartTime, |
|
String doEndTime, |
|
String promotionId, |
|
String couponId, |
|
String receiveTime, |
|
dynamic useTime, |
|
num status, |
|
String tenantCode, |
|
num type, |
|
String promotionName, |
|
bool usable, |
|
String usableReason, |
|
bool allProduct, |
|
List<dynamic> productSkuId, |
|
List<String> productGroupIds, |
|
dynamic productList, |
|
bool isMaxCoupon, |
|
List<dynamic> productGroupList, |
|
String remark, |
|
bool canUseBalance, |
|
}) => UseableConponList( id: id ?? _id, |
|
storeIds: storeIds ?? _storeIds, |
|
stores: stores ?? _stores, |
|
bizType: bizType ?? _bizType, |
|
fullType: fullType ?? _fullType, |
|
fullAmount: fullAmount ?? _fullAmount, |
|
discountAmount: discountAmount ?? _discountAmount, |
|
fullNumber: fullNumber ?? _fullNumber, |
|
dateOrDay: dateOrDay ?? _dateOrDay, |
|
startAfterDays: startAfterDays ?? _startAfterDays, |
|
daysValidate: daysValidate ?? _daysValidate, |
|
discountPercent: discountPercent ?? _discountPercent, |
|
limitAmount: limitAmount ?? _limitAmount, |
|
bizId: bizId ?? _bizId, |
|
publishStartTime: publishStartTime ?? _publishStartTime, |
|
publishEndTime: publishEndTime ?? _publishEndTime, |
|
useStartTime: useStartTime ?? _useStartTime, |
|
useEndTime: useEndTime ?? _useEndTime, |
|
doStartTime: doStartTime ?? _doStartTime, |
|
doEndTime: doEndTime ?? _doEndTime, |
|
promotionId: promotionId ?? _promotionId, |
|
couponId: couponId ?? _couponId, |
|
receiveTime: receiveTime ?? _receiveTime, |
|
useTime: useTime ?? _useTime, |
|
status: status ?? _status, |
|
tenantCode: tenantCode ?? _tenantCode, |
|
type: type ?? _type, |
|
promotionName: promotionName ?? _promotionName, |
|
usable: usable ?? _usable, |
|
usableReason: usableReason ?? _usableReason, |
|
allProduct: allProduct ?? _allProduct, |
|
productSkuId: productSkuId ?? _productSkuId, |
|
productGroupIds: productGroupIds ?? _productGroupIds, |
|
productList: productList ?? _productList, |
|
isMaxCoupon: isMaxCoupon ?? _isMaxCoupon, |
|
productGroupList: productGroupList ?? _productGroupList, |
|
remark: remark ?? _remark, |
|
canUseBalance: canUseBalance ?? _canUseBalance, |
|
); |
|
String get id => _id; |
|
List<String> get storeIds => _storeIds; |
|
List<dynamic> get stores => _stores; |
|
num get bizType => _bizType; |
|
String get fullType => _fullType; |
|
String get fullAmount => _fullAmount; |
|
String get discountAmount => _discountAmount; |
|
num get fullNumber => _fullNumber; |
|
bool get dateOrDay => _dateOrDay; |
|
num get startAfterDays => _startAfterDays; |
|
num get daysValidate => _daysValidate; |
|
num get discountPercent => _discountPercent; |
|
String get limitAmount => _limitAmount; |
|
String get bizId => _bizId; |
|
String get publishStartTime => _publishStartTime; |
|
String get publishEndTime => _publishEndTime; |
|
String get useStartTime => _useStartTime; |
|
String get useEndTime => _useEndTime; |
|
String get doStartTime => _doStartTime; |
|
String get doEndTime => _doEndTime; |
|
String get promotionId => _promotionId; |
|
String get couponId => _couponId; |
|
String get receiveTime => _receiveTime; |
|
dynamic get useTime => _useTime; |
|
num get status => _status; |
|
String get tenantCode => _tenantCode; |
|
num get type => _type; |
|
String get promotionName => _promotionName; |
|
bool get usable => _usable; |
|
String get usableReason => _usableReason; |
|
bool get allProduct => _allProduct; |
|
List<dynamic> get productSkuId => _productSkuId; |
|
List<String> get productGroupIds => _productGroupIds; |
|
dynamic get productList => _productList; |
|
bool get isMaxCoupon => _isMaxCoupon; |
|
List<dynamic> get productGroupList => _productGroupList; |
|
String get remark => _remark; |
|
bool get canUseBalance => _canUseBalance; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['storeIds'] = _storeIds; |
|
if (_stores != null) { |
|
map['stores'] = _stores.map((v) => v.toJson()).toList(); |
|
} |
|
map['bizType'] = _bizType; |
|
map['fullType'] = _fullType; |
|
map['fullAmount'] = _fullAmount; |
|
map['discountAmount'] = _discountAmount; |
|
map['fullNumber'] = _fullNumber; |
|
map['dateOrDay'] = _dateOrDay; |
|
map['startAfterDays'] = _startAfterDays; |
|
map['daysValidate'] = _daysValidate; |
|
map['discountPercent'] = _discountPercent; |
|
map['limitAmount'] = _limitAmount; |
|
map['bizId'] = _bizId; |
|
map['publishStartTime'] = _publishStartTime; |
|
map['publishEndTime'] = _publishEndTime; |
|
map['useStartTime'] = _useStartTime; |
|
map['useEndTime'] = _useEndTime; |
|
map['doStartTime'] = _doStartTime; |
|
map['doEndTime'] = _doEndTime; |
|
map['promotionId'] = _promotionId; |
|
map['couponId'] = _couponId; |
|
map['receiveTime'] = _receiveTime; |
|
map['useTime'] = _useTime; |
|
map['status'] = _status; |
|
map['tenantCode'] = _tenantCode; |
|
map['type'] = _type; |
|
map['promotionName'] = _promotionName; |
|
map['usable'] = _usable; |
|
map['usableReason'] = _usableReason; |
|
map['allProduct'] = _allProduct; |
|
if (_productSkuId != null) { |
|
map['productSkuId'] = _productSkuId.map((v) => v.toJson()).toList(); |
|
} |
|
map['productGroupIds'] = _productGroupIds; |
|
map['productList'] = _productList; |
|
map['isMaxCoupon'] = _isMaxCoupon; |
|
if (_productGroupList != null) { |
|
map['productGroupList'] = _productGroupList.map((v) => v.toJson()).toList(); |
|
} |
|
map['remark'] = _remark; |
|
map['canUseBalance'] = _canUseBalance; |
|
return map; |
|
} |
|
|
|
} |