|
| 1 | +using System; |
| 2 | + |
| 3 | +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events |
| 4 | +{ |
| 5 | + /// <summary> |
| 6 | + /// <para>表示 PAYSCORE.USER_SIGN_PLAN(针对直连商户)通知的数据。</para> |
| 7 | + /// <para> |
| 8 | + /// REF: <br/> |
| 9 | + /// <![CDATA[ https://pay.weixin.qq.com/docs/merchant/apis/payscore-plan/cancel-sign-plan-notice.html ]]> <br/> |
| 10 | + /// <![CDATA[ https://pay.weixin.qq.com/docs/merchant/apis/payscore-plan/sign-plan-notice.html ]]> |
| 11 | + /// </para> |
| 12 | + /// </summary> |
| 13 | + public class PayScoreUserSignPlanResource : WechatTenpayEvent.Types.IDecryptedResource |
| 14 | + { |
| 15 | + public static class Types |
| 16 | + { |
| 17 | + public class SignPlanDetail : Models.GetPayScoreSignPlanUserSignPlanByOutSignPlanNumberResponse.Types.SignPlanDetail |
| 18 | + { |
| 19 | + } |
| 20 | + } |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + /// 获取或设置微信商户号。 |
| 24 | + /// </summary> |
| 25 | + [Newtonsoft.Json.JsonProperty("mchid")] |
| 26 | + [System.Text.Json.Serialization.JsonPropertyName("mchid")] |
| 27 | + public string MerchantId { get; set; } = default!; |
| 28 | + |
| 29 | + /// <summary> |
| 30 | + /// 获取或设置微信 AppId。 |
| 31 | + /// </summary> |
| 32 | + [Newtonsoft.Json.JsonProperty("appid")] |
| 33 | + [System.Text.Json.Serialization.JsonPropertyName("appid")] |
| 34 | + public string AppId { get; set; } = default!; |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// 获取或设置支付分计划 ID。 |
| 38 | + /// </summary> |
| 39 | + [Newtonsoft.Json.JsonProperty("plan_id")] |
| 40 | + [System.Text.Json.Serialization.JsonPropertyName("plan_id")] |
| 41 | + public string PlanId { get; set; } = default!; |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// 获取或设置计划名称。 |
| 45 | + /// </summary> |
| 46 | + [Newtonsoft.Json.JsonProperty("plan_name")] |
| 47 | + [System.Text.Json.Serialization.JsonPropertyName("plan_name")] |
| 48 | + public string PlanName { get; set; } = default!; |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// 获取或设置服务 ID。 |
| 52 | + /// </summary> |
| 53 | + [Newtonsoft.Json.JsonProperty("service_id")] |
| 54 | + [System.Text.Json.Serialization.JsonPropertyName("service_id")] |
| 55 | + public string ServiceId { get; set; } = default!; |
| 56 | + |
| 57 | + /// <summary> |
| 58 | + /// 获取或设置商户签约计划单号。 |
| 59 | + /// </summary> |
| 60 | + [Newtonsoft.Json.JsonProperty("merchant_sign_plan_no")] |
| 61 | + [System.Text.Json.Serialization.JsonPropertyName("merchant_sign_plan_no")] |
| 62 | + public string OutSignPlanNumber { get; set; } = default!; |
| 63 | + |
| 64 | + /// <summary> |
| 65 | + /// 获取或设置签约计划 ID。 |
| 66 | + /// </summary> |
| 67 | + [Newtonsoft.Json.JsonProperty("sign_plan_id")] |
| 68 | + [System.Text.Json.Serialization.JsonPropertyName("sign_plan_id")] |
| 69 | + public string SignPlanId { get; set; } = default!; |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// 获取或设置计划状态。 |
| 73 | + /// </summary> |
| 74 | + [Newtonsoft.Json.JsonProperty("sign_state")] |
| 75 | + [System.Text.Json.Serialization.JsonPropertyName("sign_state")] |
| 76 | + public string SignState { get; set; } = default!; |
| 77 | + |
| 78 | + /// <summary> |
| 79 | + /// 获取或设置用户唯一标识。 |
| 80 | + /// </summary> |
| 81 | + [Newtonsoft.Json.JsonProperty("openid")] |
| 82 | + [System.Text.Json.Serialization.JsonPropertyName("openid")] |
| 83 | + public string OpenId { get; set; } = default!; |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// 获取或设置回调通知地址。 |
| 87 | + /// </summary> |
| 88 | + [Newtonsoft.Json.JsonProperty("merchant_callback_url")] |
| 89 | + [System.Text.Json.Serialization.JsonPropertyName("merchant_callback_url")] |
| 90 | + public string? NotifyUrl { get; set; } |
| 91 | + |
| 92 | + /// <summary> |
| 93 | + /// 获取或设置目前用户进行到的计划明细序号。 |
| 94 | + /// </summary> |
| 95 | + [Newtonsoft.Json.JsonProperty("going_detail_no")] |
| 96 | + [System.Text.Json.Serialization.JsonPropertyName("going_detail_no")] |
| 97 | + public int GoingDetailNumber { get; set; } |
| 98 | + |
| 99 | + /// <summary> |
| 100 | + /// 获取或设置计划过期时间。 |
| 101 | + /// </summary> |
| 102 | + [Newtonsoft.Json.JsonProperty("plan_over_time")] |
| 103 | + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] |
| 104 | + [System.Text.Json.Serialization.JsonPropertyName("plan_over_time")] |
| 105 | + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] |
| 106 | + public DateTimeOffset PlanOverTime { get; set; } |
| 107 | + |
| 108 | + /// <summary> |
| 109 | + /// 获取或设置扣费次数。 |
| 110 | + /// </summary> |
| 111 | + [Newtonsoft.Json.JsonProperty("deduction_quantity")] |
| 112 | + [System.Text.Json.Serialization.JsonPropertyName("deduction_quantity")] |
| 113 | + public int DeductionQuantity { get; set; } |
| 114 | + |
| 115 | + /// <summary> |
| 116 | + /// 获取或设置原总金额(单位:分)。 |
| 117 | + /// </summary> |
| 118 | + [Newtonsoft.Json.JsonProperty("total_origin_price")] |
| 119 | + [System.Text.Json.Serialization.JsonPropertyName("total_origin_price")] |
| 120 | + public int TotalOriginalPrice { get; set; } |
| 121 | + |
| 122 | + /// <summary> |
| 123 | + /// 获取或设置实际总金额(单位:分)。 |
| 124 | + /// </summary> |
| 125 | + [Newtonsoft.Json.JsonProperty("total_actual_price")] |
| 126 | + [System.Text.Json.Serialization.JsonPropertyName("total_actual_price")] |
| 127 | + public int TotalActualPrice { get; set; } |
| 128 | + |
| 129 | + /// <summary> |
| 130 | + /// 获取或设置签约时间。 |
| 131 | + /// </summary> |
| 132 | + [Newtonsoft.Json.JsonProperty("sign_time")] |
| 133 | + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] |
| 134 | + [System.Text.Json.Serialization.JsonPropertyName("sign_time")] |
| 135 | + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] |
| 136 | + public DateTimeOffset? SignTime { get; set; } |
| 137 | + |
| 138 | + /// <summary> |
| 139 | + /// 获取或设置取消类型。 |
| 140 | + /// </summary> |
| 141 | + [Newtonsoft.Json.JsonProperty("cancel_sign_type")] |
| 142 | + [System.Text.Json.Serialization.JsonPropertyName("cancel_sign_type")] |
| 143 | + public string? CancelType { get; set; } |
| 144 | + |
| 145 | + /// <summary> |
| 146 | + /// 获取或设置取消原因。 |
| 147 | + /// </summary> |
| 148 | + [Newtonsoft.Json.JsonProperty("cancel_reason")] |
| 149 | + [System.Text.Json.Serialization.JsonPropertyName("cancel_reason")] |
| 150 | + public string? CancelReason { get; set; } |
| 151 | + |
| 152 | + /// <summary> |
| 153 | + /// 获取或设置取消时间。 |
| 154 | + /// </summary> |
| 155 | + [Newtonsoft.Json.JsonProperty("cancel_sign_time")] |
| 156 | + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] |
| 157 | + [System.Text.Json.Serialization.JsonPropertyName("cancel_sign_time")] |
| 158 | + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] |
| 159 | + public DateTimeOffset? CancelTime { get; set; } |
| 160 | + |
| 161 | + /// <summary> |
| 162 | + /// 获取或设置签约计划明细列表。 |
| 163 | + /// </summary> |
| 164 | + [Newtonsoft.Json.JsonProperty("signed_detail_list")] |
| 165 | + [System.Text.Json.Serialization.JsonPropertyName("signed_detail_list")] |
| 166 | + public Types.SignPlanDetail[]? SignPlanDetailList { get; set; } |
| 167 | + } |
| 168 | +} |
0 commit comments