Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] GoodLifeFulfilmentCertificatePrepareV1Response 按2023-09-12文档更新 #23

Merged
merged 5 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,51 @@ public class Amount
/// <summary>
/// 获取或设置券原始金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("original")]
[System.Text.Json.Serialization.JsonPropertyName("original")]
[Newtonsoft.Json.JsonProperty("original_amount")]
[System.Text.Json.Serialization.JsonPropertyName("original_amount")]
public int OriginalAmount { get; set; }

/// <summary>
/// 获取或设置券划线价金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("list_market_amount")]
[System.Text.Json.Serialization.JsonPropertyName("list_market_amount")]
public int ListMarketAmount { get; set; }

/// <summary>
/// 获取或设置用户实付金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("pay")]
[System.Text.Json.Serialization.JsonPropertyName("pay")]
[Newtonsoft.Json.JsonProperty("pay_amount")]
[System.Text.Json.Serialization.JsonPropertyName("pay_amount")]
public int PayAmount { get; set; }

/// <summary>
/// 获取或设置券实付金额(单位:分)
/// 获取或设置券实付金额(单位:分)
/// </summary>
[Newtonsoft.Json.JsonProperty("coupon_pay")]
[System.Text.Json.Serialization.JsonPropertyName("coupon_pay")]
[Newtonsoft.Json.JsonProperty("coupon_pay_amount")]
[System.Text.Json.Serialization.JsonPropertyName("coupon_pay_amount")]
public int CouponPayAmount { get; set; }

/// <summary>
/// 获取或设置商家营销金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("merchant_ticket")]
[System.Text.Json.Serialization.JsonPropertyName("merchant_ticket")]
[Newtonsoft.Json.JsonProperty("merchant_ticket_amount")]
[System.Text.Json.Serialization.JsonPropertyName("merchant_ticket_amount")]
public int MerchantTicketAmount { get; set; }

/// <summary>
/// 获取或设置支付优惠金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("payment_discount")]
[System.Text.Json.Serialization.JsonPropertyName("payment_discount")]
[Newtonsoft.Json.JsonProperty("payment_discount_amount")]
[System.Text.Json.Serialization.JsonPropertyName("payment_discount_amount")]
public int PaymentDiscountAmount { get; set; }

/// <summary>
/// 获取或设置平台优惠金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("platform_discount_amount")]
[System.Text.Json.Serialization.JsonPropertyName("platform_discount_amount")]
public int PlatformDiscountAmount { get; set; }
}

public class SKU
Expand All @@ -70,7 +84,7 @@ public class SKU
public string Title { get; set; } = default!;

/// <summary>
/// 获取或设置团购类型。
/// 获取或设置团购类型(type=1团餐券; type=2代金券; type=3次卡)
/// </summary>
[Newtonsoft.Json.JsonProperty("groupon_type")]
[System.Text.Json.Serialization.JsonPropertyName("groupon_type")]
Expand All @@ -96,6 +110,13 @@ public class SKU
[Newtonsoft.Json.JsonProperty("third_sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("third_sku_id")]
public string? OutSKUId { get; set; }

/// <summary>
/// 获取或设置券商家团购账号 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_id")]
[System.Text.Json.Serialization.JsonPropertyName("account_id")]
public string? AccountId { get; set; }
}
}

Expand All @@ -107,12 +128,19 @@ public class SKU
public string EncryptedCode { get; set; } = default!;

/// <summary>
/// 获取或设置券码有效期时间戳
/// 券码有效期,开始时间,时间戳,单位秒
/// </summary>
[Newtonsoft.Json.JsonProperty("expire_time")]
[System.Text.Json.Serialization.JsonPropertyName("expire_time")]
public long ExpireTimestamp { get; set; }

/// <summary>
/// 券码有效期,开始时间,时间戳,单位秒。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long StartTimestamp { get; set; }

/// <summary>
/// 获取或设置金额信息。
/// </summary>
Expand All @@ -136,6 +164,13 @@ public class SKU
[System.Text.Json.Serialization.JsonPropertyName("verify_token")]
public string VerifyToken { get; set; } = default!;

/// <summary>
/// 获取或设置抖音订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string OrderId { get; set; } = default!;

/// <summary>
/// 获取或设置可用团购券列表。
/// </summary>
Expand Down
Loading