using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AllBase.Model.Result.PDDResult { public class PDDCouponGoodsListInfo { public List existed_coupon_list { get; set; } = new List(); public List goods_list { get; set; } = new List(); public int? remaining_create_num { get; set; } = 1; public int? total { get; set; } = 1; } /// /// 设置优惠券活动的商品列表 /// public class PDDCouponGoods { public long? id { get; set; } // 834340794793 public string goods_name { get; set; } // "微瑕疵洞洞鞋女新款夏外穿厚底防滑静音不臭脚凉拖" public string goods_type { get; set; } // "1" public List sku_group_price { get; set; } // [ 2500, 2700 ], public List sku_activity_price { get; set; } // [715, 1859], public List coupon_value_limit { get; set; } // [200, 300], public string min_coupon_value_rule { get; set; } // "券金额最小值规则1" public int? min_coupon_value_rule_code { get; set; } // 1, public string max_coupon_value_rule { get; set; } // "券金额最大值规则3", public int? max_coupon_value_rule_code { get; set; } // 3, public int? quantity { get; set; } // 19980, public string thumb_url { get; set; } // "https://img.pddpic.com/gaudit-image/2025-10-11/53d910624aa2976ce40a6f86ee7c152d.jpeg", public bool? is_filtered { get; set; } // false, 如果是true则不能设置优惠券 public string filtered_reason { get; set; } // "该商品已售罄" public extension_info extension { get; set; } public int? filtered_reason_type { get; set; } // 0, public bool? is_selected { get; set; } // false, public int? recommend_coupon_value { get; set; } // 300, public int? recommend_coupon_value_type { get; set; } // 0, public List recommend_coupon_value_list { get; set; } public List activity_type_list { get; set; } // [ 10101, 101 ] // 自定义参数 public string shopId { get; set; } public string shopName { get; set; } } public class extension_info { public string hasInstallmentDeliverySku { get; set; } } public class recommend_coupon_value_info { public int? recommend_coupon_value { get; set; } // 1100, public int? recommend_coupon_value_type { get; set; } // 1 } public class PDDCreateCouponResult { public bool? has_errors { get; set; } public List errors { get; set; } public bool? has_create_fail { get; set; } public List create_fails { get; set; } public bool? has_low_price { get; set; } public List low_price_infos { get; set; } public List low_price_info_token_list { get; set; } public int? success_num { get; set; } } public class PDDCreateCouponFail { } public class PDDCreateCouponLowPriceInfo { } public class PDDCreateCouponError { public string error_item { get; set; } //"833145007089", public string error_msg { get; set; } // "发行量需在1-1000000之间", public long? error_code { get; set; } // 40003, public bool? show_error_msg { get; set; } //false, public long? goods_id { get; set; } // 833145007089, public string goods_name { get; set; } // "鞋子男2025春秋新款男鞋大码韩版潮流软底休闲鞋透气运动鞋男", public string goods_image { get; set; } // "https://img.pddpic.com/gaudit-image/2025-10-09/917efb2ca09067bd07882e98752bacf4.jpeg" } public class PDDCreateCouponResultV2 { public bool? upload_status { get; set; } public bool? has_error_msg { get; set; } public List error_msg_list { get; set; } public bool? need_phone_code { get; set; } public List low_price_info_list { get; set; } public string operate_sn { get; set; } } }