2024-01-15 12:38:45 +08:00
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
2022-11-03 20:25:14 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <para>表示 [POST] /channels/ec/order/get 接口的响应。</para>
|
|
|
|
/// </summary>
|
|
|
|
public class ChannelsECOrderGetResponse : WechatApiResponse
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class Order
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class OrderDetail
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class Product
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class Attribute : ChannelsECProductGetResponse.Types.Product.Types.Attribute
|
|
|
|
{
|
|
|
|
}
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
public class ExtraService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否支持七天无理由退货。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("seven_day_return")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("seven_day_return")]
|
|
|
|
public int SevenDayReturn { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否支持运费险。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("freight_insurance")]
|
|
|
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("freight_insurance")]
|
|
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
|
|
|
|
public bool IsFreightInsuranceSupported { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class SKUDeliver
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品发货类型。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("stock_type")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("stock_type")]
|
|
|
|
public int StockType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置预计发货时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("predict_delivery_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("predict_delivery_time")]
|
|
|
|
public long? PredictDeliveryTimestamp { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class OrderProductCoupon
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置用户优惠券 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("user_coupon_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("user_coupon_id")]
|
|
|
|
public string? UserCouponId { get; set; }
|
|
|
|
}
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long ProductId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置 SKU ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long SKUId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品数量。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_cnt")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_cnt")]
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
2024-04-29 20:11:05 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品编码。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_code")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_code")]
|
|
|
|
public string? SKUCode { get; set; }
|
|
|
|
|
2022-11-03 20:25:14 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置正在售后流程中的商品数量。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("on_aftersale_sku_cnt")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("on_aftersale_sku_cnt")]
|
|
|
|
public int OnAftersaleCount { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置已完成售后流程的商品数量。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("finish_aftersale_sku_cnt")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("finish_aftersale_sku_cnt")]
|
|
|
|
public int FinishAftersaleCount { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品标题。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("title")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
|
|
|
public string Title { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品缩略图 URL。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("thumb_img")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("thumb_img")]
|
|
|
|
public string ThumbnailImageUrl { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品原价(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("market_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("market_price")]
|
|
|
|
public int MarketPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品售价(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sale_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sale_price")]
|
|
|
|
public int SalePrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品实付价(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("real_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("real_price")]
|
|
|
|
public int? RealPrice { get; set; }
|
|
|
|
|
2024-04-29 20:11:05 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置优惠后 SKU 总价(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("estimate_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("estimate_price")]
|
|
|
|
public int? EstimatePrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否修改过价格。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("is_change_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("is_change_price")]
|
|
|
|
public bool? IsChangePrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置改价后 SKU 总价(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("change_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("change_price")]
|
|
|
|
public int? ChangePrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否使用了会员积分抵扣。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("use_deduction")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("use_deduction")]
|
|
|
|
public bool? IsUseDeduction { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置会员积分抵扣金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("deduction_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("deduction_price")]
|
|
|
|
public int? DeductionPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商家自定义商品 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("out_product_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_product_id")]
|
|
|
|
public string? OutProductId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商家自定义 SKU ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("out_sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_sku_id")]
|
|
|
|
public string? OutSKUId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置外部仓库 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("out_warehouse_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_warehouse_id")]
|
|
|
|
public string? OutWarehouseId { get; set; }
|
|
|
|
|
2022-11-03 20:25:14 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品属性列表。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_attrs")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_attrs")]
|
|
|
|
public Types.Attribute[]? AttributeList { get; set; }
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品发货信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_deliver_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_deliver_info")]
|
|
|
|
public Types.SKUDeliver? SKUDeliver { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置额外的服务信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("extra_service")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("extra_service")]
|
|
|
|
public Types.ExtraService? ExtraService { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品优惠券信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("order_product_coupon_info_list")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("order_product_coupon_info_list")]
|
|
|
|
public Types.OrderProductCoupon[]? OrderProductCouponList { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品发货截止日期时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("delivery_deadline")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_deadline")]
|
|
|
|
public long DeliveryDeadlineTimestamp { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class Payment
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置预支付单号。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("prepay_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("prepay_id")]
|
|
|
|
public string PrepayId { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置预支付时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("prepay_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("prepay_time")]
|
|
|
|
public long PrepayTimestamp { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置微信支付交易单号。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
|
|
|
public string? TransactionId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置付款时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("pay_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
|
|
|
public long? PayTimestamp { get; set; }
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置支付方式。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("payment_method")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("payment_method")]
|
|
|
|
public int? PaymentMethod { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class Amount
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_price")]
|
|
|
|
public int ProductPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("order_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("order_price")]
|
|
|
|
public int OrderPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置运费(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("freight")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("freight")]
|
|
|
|
public int FreightPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置优惠金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("discounted_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("discounted_price")]
|
|
|
|
public int DiscountedPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否有优惠。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("is_discounted")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("is_discounted")]
|
|
|
|
public bool IsDiscounted { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单原始价格(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("original_order_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("original_order_price")]
|
|
|
|
public int? OriginalOrderPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品预估价格(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("estimate_product_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("estimate_product_price")]
|
|
|
|
public int? EstimatedProductPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置改价后降低金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("change_down_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("change_down_price")]
|
|
|
|
public int? ChangedDownPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置改价后运费(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("change_freight")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("change_freight")]
|
|
|
|
public int? ChangedFreightPrice { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否修改运费。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("is_change_freight")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("is_change_freight")]
|
|
|
|
public bool? IsFreightChanged { get; set; }
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否使用了会员积分抵扣。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("use_deduction")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("use_deduction")]
|
|
|
|
public bool? IsUseDeduction { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置会员积分抵扣金额(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("deduction_price")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("deduction_price")]
|
|
|
|
public int? DeductionPrice { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class Delivery
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class DeliveryProduct
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class Product
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long ProductId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置 SKU ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long SKUId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品数量。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_cnt")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
|
|
|
|
public int Count { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置快递方式。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("deliver_type")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("deliver_type")]
|
|
|
|
public int DeliverType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置快递公司 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
|
|
|
public string DeliveryId { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置快递单号。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
|
|
|
public string WaybillId { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置发货时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("delivery_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_time")]
|
|
|
|
public long DeliveryTimestamp { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品列表。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_infos")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_infos")]
|
|
|
|
public Types.Product[] ProductList { get; set; } = default!;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Address : ChannelsECMerchantAddressGetResponse.Types.AddressDetail.Types.Address
|
|
|
|
{
|
|
|
|
/// <summary>
|
2024-04-29 20:11:05 +08:00
|
|
|
/// 获取或设置虚拟号码。
|
2022-11-03 20:25:14 +08:00
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("virtual_order_tel_number")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("virtual_order_tel_number")]
|
2024-04-29 20:11:05 +08:00
|
|
|
public string? VirtualTeleNumber { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置发货方式。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("deliver_method")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("deliver_method")]
|
|
|
|
public int DeliverMethod { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置地址信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("address_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("address_info")]
|
|
|
|
public Types.Address? Address { get; set; }
|
|
|
|
|
2024-04-29 20:11:05 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置用户下单后申请修改的地址信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("address_under_review")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("address_under_review")]
|
|
|
|
public Types.Address? AddressUnderReview { get; set; }
|
|
|
|
|
2022-11-03 20:25:14 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置发货商品信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("delivery_product_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_product_info")]
|
|
|
|
public Types.DeliveryProduct[] DeliveryProductList { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置配送完成时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("ship_done_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("ship_done_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long? ShippingDoneTimestamp { get; set; }
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置修改地址申请时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("address_apply_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("address_apply_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long? AddressApplyTimestamp { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置电子面单代发订单密文。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("ewaybill_order_code")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_code")]
|
|
|
|
public string? EWaybillOrderCode { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class Coupon
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置用户优惠券 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("user_coupon_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("user_coupon_id")]
|
|
|
|
public string? UserCouponId { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Extra
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置用户备注。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("customer_notes")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("customer_notes")]
|
|
|
|
public string? CustomerNotes { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商家备注。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("merchant_notes")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("merchant_notes")]
|
|
|
|
public string? MerchantNotes { get; set; }
|
|
|
|
}
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
public class Sharer
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置分享员的 OpenId。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sharer_openid")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
|
|
|
|
public string SharerOpenId { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置分享员的 UnionId。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sharer_unionid")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sharer_unionid")]
|
|
|
|
public string? SharerUnionId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置分享员类型。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sharer_type")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sharer_type")]
|
|
|
|
public int SharerType { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置分享场景。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("share_scene")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("share_scene")]
|
|
|
|
public int ShareScene { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class SKUSharer : Sharer
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置 SKU ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
|
|
public long SKUId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置是否来自企微分享。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("from_wecom")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("from_wecom")]
|
|
|
|
public bool IsFromWecom { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Settlement
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置预计技术服务费(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("predict_commission_fee")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_fee")]
|
|
|
|
public int PredictCommissionFee { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置实际技术服务费(单位:分)。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("commission_fee")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("commission_fee")]
|
|
|
|
public int? CommissionFee { get; set; }
|
|
|
|
}
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置商品列表。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("product_infos")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("product_infos")]
|
|
|
|
public Types.Product[] ProductList { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置支付信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("pay_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("pay_info")]
|
|
|
|
public Types.Payment Payment { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置金额信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("price_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("price_info")]
|
|
|
|
public Types.Amount Amount { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置快递信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("delivery_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("delivery_info")]
|
|
|
|
public Types.Delivery? Delivery { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置优惠券信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("coupon_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("coupon_info")]
|
|
|
|
public Types.Coupon? Coupon { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置扩展信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("ext_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
|
|
|
|
public Types.Extra? Extra { get; set; }
|
2024-04-29 20:11:05 +08:00
|
|
|
|
|
|
|
/// 获取或设置分享员信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sharer_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sharer_info")]
|
|
|
|
public Types.Sharer? Sharer { get; set; }
|
|
|
|
|
|
|
|
/// 获取或设置 SKU 分享员信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("sku_sharer_infos")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("sku_sharer_infos")]
|
|
|
|
public Types.SKUSharer[]? SKUSharerList { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置服务费信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("settle_info")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("settle_info")]
|
|
|
|
public Types.Settlement? Settlement { get; set; }
|
2022-11-03 20:25:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class AftersaleDetail
|
|
|
|
{
|
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class AftersaleOrder
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置售后单 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("aftersale_order_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("aftersale_order_id")]
|
2024-01-29 23:11:56 +08:00
|
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
|
2023-04-04 16:51:59 +08:00
|
|
|
public string AftersaleOrderId { get; set; } = default!;
|
2022-11-03 20:25:14 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置售后单状态。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("status")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
|
|
|
public int Status { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置售后单列表。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("aftersale_order_list")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("aftersale_order_list")]
|
|
|
|
public Types.AftersaleOrder[] AftersaleOrderList { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置正在售后流程中的售后单数。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("on_aftersale_order_cnt")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("on_aftersale_order_cnt")]
|
|
|
|
public int OnAftersaleOrderCount { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单 ID。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("order_id")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
2024-01-29 23:11:56 +08:00
|
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
|
2023-04-04 16:51:59 +08:00
|
|
|
public string OrderId { get; set; } = default!;
|
2022-11-03 20:25:14 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单状态。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("status")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单详细信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("order_detail")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("order_detail")]
|
|
|
|
public Types.OrderDetail OrderDetail { get; set; } = default!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置售后详细信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("aftersale_detail")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("aftersale_detail")]
|
|
|
|
public Types.AftersaleDetail? AftersaleDetail { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置下单用户 OpenId。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("openid")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
|
|
|
public string OpenId { get; set; } = default!;
|
|
|
|
|
2024-04-29 20:11:05 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置下单用户 UnionId。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("unionid")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
|
|
|
public string? UnionId { get; set; }
|
|
|
|
|
2022-11-03 20:25:14 +08:00
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置更新时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("update_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
|
|
|
public long UpdateTimestamp { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置创建时间戳。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("create_time")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
|
|
|
public long CreateTimestamp { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取或设置订单信息。
|
|
|
|
/// </summary>
|
|
|
|
[Newtonsoft.Json.JsonProperty("order")]
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("order")]
|
|
|
|
public Types.Order Order { get; set; } = default!;
|
|
|
|
}
|
|
|
|
}
|