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.
 
 
 
 
 
 

201 lines
4.5 KiB

import 'package:huixiang/data/order_product_vo.dart';
import 'package:json_annotation/json_annotation.dart';
part 'order_info.g.dart';
@JsonSerializable(explicitToJson: true)
class OrderInfo {
String? id = '';
String? createTime = '';
String? createUser = '';
String? updateTime = '';
String? updateUser = '';
String? tenantCode = '';
String? storeId = '';
String? storeName = '';
String? tableId = '';
String? mid = '';
String? parentId = '';
String? parentCode = '';
String? orderCode = '';
String? dayFlowCode = '';
int? orderStatus = 0;
int? sendStatus = 0;
int? payStatus = 0;
String? memberAccount = '';
String? logisticsId = '';
String? shipperCode = '';
String? logisticsName = '';
String? logisticsNum = '';
dynamic logisticsCase;
int? refundStatus = 0;
AddressExt? addressExt;
String? postFee = '';
String? orderSum = '';
String? paySum = '';
String? paySumSub = '';
String? accountPay = '';
String? couponSubPrice = '';
String? customPrice = '';
String? removeDecimal = '';
bool? isSubscribe = false;
String? subcribeTime;
dynamic sendTime;
dynamic confirmTime;
dynamic returnMoneyTime;
String? notes = '';
dynamic prepayId;
String? payTime = '';
int? payChannel = 0;
String? payNum = '';
String? promotionId = '';
String? couponId = '';
int? isDelete = 0;
int? isTakeOut = 0;
int? batch = 0;
String? orderDiscountPrice = '';
String? dishesDiscountPrice = '';
String? orderPercentPrice = '';
String? finalPayPrice = '';
String? activityNoPrice = '';
String? activityDiscountPrice = '';
String? benefitDiscountAmount = '';
String? totalDiscountPrice = '';
String? totalPackagingFee = '';
String? vipDiscountPrice = '';
int? orderSource = 0;
int? orderType = 0;
StoreVO? storeVO;
OrderDetail? orderDetail;
List<OrderProductVO>? productList = [];
OrderInfo();
factory OrderInfo.fromJson(Map<String, dynamic> json) => _$OrderInfoFromJson(json);
Map<String, dynamic> toJson() => _$OrderInfoToJson(this);
}
@JsonSerializable(explicitToJson: true)
class AddressExt {
dynamic addressId;
dynamic country;
dynamic countryId;
String? province = '';
dynamic provinceId;
String? city = '';
dynamic cityId;
String? district = '';
dynamic districtId;
String? address = '';
dynamic recName;
dynamic recMobile;
String? longitude = '';
String? latitude = '';
AddressExt();
factory AddressExt.fromJson(Map<String, dynamic> json) => _$AddressExtFromJson(json);
Map<String, dynamic> toJson() => _$AddressExtToJson(this);
}
@JsonSerializable(explicitToJson: true)
class StoreVO {
String? id = '';
String? storeName = '';
String? nickName = '';
String? businessService = '';
String? businessType = '';
String? logo = '';
String? openStartTime = '';
String? openEndTime = '';
String? shipAddress = '';
dynamic remark;
String? mobile = '';
dynamic refundAddress;
dynamic refundTel;
dynamic refundContact;
int? isAutoSendRefundAddress = 0;
dynamic soldNum;
dynamic storeTemplateConfig;
dynamic storeTable;
dynamic threshold;
dynamic freePostAge;
dynamic logisticsThreshold;
dynamic logisticsFreePostAge;
String? longitude = '';
String? latitude = '';
dynamic deliveryDistance;
dynamic couponVO;
StoreVOPosType? posType;
dynamic banners;
dynamic tips;
dynamic storeBrandImg;
dynamic defaultPostAge;
StoreVO();
factory StoreVO.fromJson(Map<String, dynamic> json) => _$StoreVOFromJson(json);
Map<String, dynamic> toJson() => _$StoreVOToJson(this);
}
@JsonSerializable(explicitToJson: true)
class StoreVOPosType {
String? desc = '';
String? code = '';
StoreVOPosType();
factory StoreVOPosType.fromJson(Map<String, dynamic> json) => _$StoreVOPosTypeFromJson(json);
Map<String, dynamic> toJson() => _$StoreVOPosTypeToJson(this);
}
@JsonSerializable(explicitToJson: true)
class OrderDetail {
List<OrderProductVO>? orderProductList = [];
dynamic discountName;
dynamic discountMoney;
dynamic discountNumber;
dynamic activityName;
dynamic couponDTO;
String? orderSumPrice = '';
String? paySumPrice = '';
String? activityNoPrice = '';
String? activityPrice = '';
List<dynamic>? dishesList = [];
String? customPrice = '';
String? nextPerson = '';
int? isTakeOut = 0;
dynamic memberRec;
dynamic isSubscribe;
dynamic subcribeTime;
String? postFee = '';
String? shipperCode = '';
String? logisticsName = '';
String? logisticsNum = '';
String? promotionName = '';
int? orderNum = 0;
int? productNum = 0;
int? mins = 0;
dynamic predictTime;
OrderDetail();
factory OrderDetail.fromJson(Map<String, dynamic> json) => _$OrderDetailFromJson(json);
Map<String, dynamic> toJson() => _$OrderDetailToJson(this);
}