|
| 1 | +using System.Collections.Generic; |
| 2 | + |
| 3 | +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models |
| 4 | +{ |
| 5 | + /// <summary> |
| 6 | + /// <para>表示 [POST] /fund-app/mch-transfer/transfer-bills/pre-transfer-with-authorization 接口的请求。</para> |
| 7 | + /// </summary> |
| 8 | + [WechatTenpaySensitive] |
| 9 | + public class CreateFundAppMerchantTransferBillPreTransferWithAuthorizationRequest : WechatTenpayRequest |
| 10 | + { |
| 11 | + public static class Types |
| 12 | + { |
| 13 | + public class TransferSceneReportInfo : CreateFundAppMerchantTransferBillRequest.Types.TransferSceneReportInfo |
| 14 | + { |
| 15 | + } |
| 16 | + |
| 17 | + public class AuthorizationInfo |
| 18 | + { |
| 19 | + /// <summary> |
| 20 | + /// 获取或设置用户展示名称。 |
| 21 | + /// </summary> |
| 22 | + [Newtonsoft.Json.JsonProperty("user_display_name")] |
| 23 | + [System.Text.Json.Serialization.JsonPropertyName("user_display_name")] |
| 24 | + public string UserDisplayName { get; set; } = string.Empty; |
| 25 | + |
| 26 | + /// <summary> |
| 27 | + /// 获取或设置商户侧授权单号。 |
| 28 | + /// </summary> |
| 29 | + [Newtonsoft.Json.JsonProperty("out_authorization_no")] |
| 30 | + [System.Text.Json.Serialization.JsonPropertyName("out_authorization_no")] |
| 31 | + public string OutAuthorizationNumber { get; set; } = string.Empty; |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// 获取或设置免确认收款授权结果通知地址。 |
| 35 | + /// </summary> |
| 36 | + [Newtonsoft.Json.JsonProperty("authorization_notify_url")] |
| 37 | + [System.Text.Json.Serialization.JsonPropertyName("authorization_notify_url")] |
| 38 | + public string NotifyUrl { get; set; } = string.Empty; |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// 获取或设置微信 AppId。 |
| 44 | + /// </summary> |
| 45 | + [Newtonsoft.Json.JsonProperty("appid")] |
| 46 | + [System.Text.Json.Serialization.JsonPropertyName("appid")] |
| 47 | + public string AppId { get; set; } = string.Empty; |
| 48 | + |
| 49 | + /// <summary> |
| 50 | + /// 获取或设置商户单号。 |
| 51 | + /// </summary> |
| 52 | + [Newtonsoft.Json.JsonProperty("out_bill_no")] |
| 53 | + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] |
| 54 | + public string OutBillNumber { get; set; } = string.Empty; |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// 获取或设置转账金额(单位:分)。 |
| 58 | + /// </summary> |
| 59 | + [Newtonsoft.Json.JsonProperty("transfer_amount")] |
| 60 | + [System.Text.Json.Serialization.JsonPropertyName("transfer_amount")] |
| 61 | + public int TransferAmount { get; set; } |
| 62 | + |
| 63 | + /// <summary> |
| 64 | + /// 获取或设置转账备注。 |
| 65 | + /// </summary> |
| 66 | + [Newtonsoft.Json.JsonProperty("transfer_remark")] |
| 67 | + [System.Text.Json.Serialization.JsonPropertyName("transfer_remark")] |
| 68 | + public string TransferRemark { get; set; } = string.Empty; |
| 69 | + |
| 70 | + /// <summary> |
| 71 | + /// 获取或设置收款用户 OpenId。 |
| 72 | + /// </summary> |
| 73 | + [Newtonsoft.Json.JsonProperty("openid")] |
| 74 | + [System.Text.Json.Serialization.JsonPropertyName("openid")] |
| 75 | + public string? OpenId { get; set; } |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// 获取或设置收款用户姓名(需使用平台公钥/证书加密)。 |
| 79 | + /// </summary> |
| 80 | + [Newtonsoft.Json.JsonProperty("user_name")] |
| 81 | + [System.Text.Json.Serialization.JsonPropertyName("user_name")] |
| 82 | + [WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256, algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS8_OAEP_WITH_SHA1_AND_MGF1)] |
| 83 | + [WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_SM2_WITH_SM3, algorithm: Constants.EncryptionAlgorithms.SM2_C1C3C2_ASN1)] |
| 84 | + public string? UserName { get; set; } |
| 85 | + |
| 86 | + /// <summary> |
| 87 | + /// 获取或设置转账场景 ID。 |
| 88 | + /// </summary> |
| 89 | + [Newtonsoft.Json.JsonProperty("transfer_scene_id")] |
| 90 | + [System.Text.Json.Serialization.JsonPropertyName("transfer_scene_id")] |
| 91 | + public string? TransferSceneId { get; set; } |
| 92 | + |
| 93 | + /// <summary> |
| 94 | + /// 获取或设置通知地址。 |
| 95 | + /// </summary> |
| 96 | + [Newtonsoft.Json.JsonProperty("notify_url")] |
| 97 | + [System.Text.Json.Serialization.JsonPropertyName("notify_url")] |
| 98 | + public string? NotifyUrl { get; set; } |
| 99 | + |
| 100 | + /// <summary> |
| 101 | + /// 获取或设置用户收款感知。 |
| 102 | + /// </summary> |
| 103 | + [Newtonsoft.Json.JsonProperty("user_recv_perception")] |
| 104 | + [System.Text.Json.Serialization.JsonPropertyName("user_recv_perception")] |
| 105 | + public string? UserReceivePerception { get; set; } |
| 106 | + |
| 107 | + /// <summary> |
| 108 | + /// 获取或设置转账场景报备信息列表。 |
| 109 | + /// </summary> |
| 110 | + [Newtonsoft.Json.JsonProperty("transfer_scene_report_infos")] |
| 111 | + [System.Text.Json.Serialization.JsonPropertyName("transfer_scene_report_infos")] |
| 112 | + public IList<Types.TransferSceneReportInfo>? TransferSceneReportInfoList { get; set; } |
| 113 | + |
| 114 | + /// <summary> |
| 115 | + /// 获取或设置免确认收款授权信息。 |
| 116 | + /// </summary> |
| 117 | + [Newtonsoft.Json.JsonProperty("authorization_info")] |
| 118 | + [System.Text.Json.Serialization.JsonPropertyName("authorization_info")] |
| 119 | + public Types.AuthorizationInfo? AuthorizationInfo { get; set; } |
| 120 | + |
| 121 | + /// <summary> |
| 122 | + /// 获取或设置出资商户号。 |
| 123 | + /// </summary> |
| 124 | + [Newtonsoft.Json.JsonProperty("sponsor_mchid")] |
| 125 | + [System.Text.Json.Serialization.JsonPropertyName("sponsor_mchid")] |
| 126 | + public string? SponsorMerchantId { get; set; } |
| 127 | + } |
| 128 | +} |
0 commit comments