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.
 
 
 
 
 
 

179 lines
4.4 KiB

import 'package:huixiang/data/member_vo.dart';
import 'package:huixiang/data/order_product_vo.dart';
import 'package:huixiang/data/settlement.dart';
import 'package:huixiang/generated/json/base/json_field.dart';
import 'package:huixiang/generated/json/settle_order_info.g.dart';
@JsonSerializable()
class SettleOrderInfo {
int? orderNum;
int? productNum;
int? mins;
MemberVo? memberVO;
String? postAge;
String? price;
String? benefitDiscountAmount;
String? orderSum;
String? discountAmount;
List<PromotionInfoListBean>? promotionInfoList;
List<CouponListBean>? couponList;
String? threshold;
String? freePostAge;
List<OrderProductVO>? orderProductList;
String? promotionId;
String? memberCouponId;
bool? usePlateMoney;
bool? isRaise;
bool? isVipDay;
int? selectDiscount;
bool? useVipPriceSelect = false;
String? vipDiscountAmount;
String? totalDiscountAmount;
String? vipDayDiscountAmount;
String? discountType;
String? totalPackagingFee;
SettleOrderInfo();
factory SettleOrderInfo.fromJson(Map<String, dynamic> json) =>
$SettleOrderInfoFromJson(json);
Map<String, dynamic> toJson() => $SettleOrderInfoToJson(this);
}
@JsonSerializable()
class CouponListBean {
String? id;
String? storeId;
int? bizType;
String? fullAmount;
String? discountAmount;
int? fullNumber;
int? discountPercent;
String? bizId;
String? limitAmount;
String? publishStartTime;
String? publishEndTime;
String? useStartTime;
String? useEndTime;
String? promotionId;
dynamic mid;
String? couponId;
String? receiveTime;
dynamic useTime;
int? status;
String? tenantCode;
int? type;
String? promotionName;
bool? usable;
bool? allProduct;
bool? isMaxCoupon;
dynamic productList;
bool? isEx;
String? usableReason;
CouponListBean();
factory CouponListBean.fromJson(Map<String, dynamic> json) => $CouponListBeanFromJson(json);
Map<String, dynamic> toJson() => $CouponListBeanToJson(this);
}
/// 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
/// isDelete : 0
/// tenantCode : "1175"
/// canPartake : true
/// isMaxPromotion : true
/// promotionProuctList : null
@JsonSerializable()
class PromotionInfoListBean {
String? id;
String? createTime;
String? createUser;
String? updateTime;
String? updateUser;
String? storeId;
String? name;
String? image;
String? description;
int? status;
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;
bool? isMaxPromotion;
dynamic promotionProuctList;
PromotionInfoListBean();
factory PromotionInfoListBean.fromJson(Map<String, dynamic> json) =>
$PromotionInfoListBeanFromJson(json);
Map<String, dynamic> toJson() => $PromotionInfoListBeanToJson(this);
}
/// limitTime : "0"
/// discountRate : "0"
/// discountAmount : "0"
/// fullAmount : "0"
/// collageNumber : "0"
/// fullNumber : "1"
@JsonSerializable()
class PromotionDetailBean {
String? limitTime;
String? discountRate;
String? discountAmount;
String? fullAmount;
String? collageNumber;
String? fullNumber;
PromotionDetailBean();
factory PromotionDetailBean.fromJson(Map<String, dynamic> json) =>
$PromotionDetailBeanFromJson(json);
Map<String, dynamic> toJson() => $PromotionDetailBeanToJson(this);
}