Config.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. using Tea;
  2. namespace Alipay.EasySDK.Kernel
  3. {
  4. /// <summary>
  5. /// 客户端配置参数模型
  6. /// </summary>
  7. public class Config : TeaModel
  8. {
  9. /// <summary>
  10. /// 通信协议,通常填写https
  11. /// </summary>
  12. [NameInMap("protocol")]
  13. [Validation(Required = true)]
  14. public string Protocol { get; set; } = "https";
  15. /// <summary>
  16. /// 网关域名
  17. /// 线上为:openapi.alipay.com
  18. /// 沙箱为:openapi.alipaydev.com
  19. /// </summary>
  20. [NameInMap("gatewayHost")]
  21. [Validation(Required = true)]
  22. public string GatewayHost { get; set; } = "openapi.alipay.com";
  23. /// <summary>
  24. /// AppId
  25. /// </summary>
  26. [NameInMap("appId")]
  27. [Validation(Required = true)]
  28. public string AppId { get; set; }
  29. /// <summary>
  30. /// 签名类型,Alipay Easy SDK只推荐使用RSA2,估此处固定填写RSA2
  31. /// </summary>
  32. [NameInMap("signType")]
  33. [Validation(Required = true)]
  34. public string SignType { get; set; } = "RSA2";
  35. /// <summary>
  36. /// 支付宝公钥
  37. /// </summary>
  38. [NameInMap("alipayPublicKey")]
  39. [Validation(Required = true)]
  40. public string AlipayPublicKey { get; set; }
  41. /// <summary>
  42. /// 应用私钥
  43. /// </summary>
  44. [NameInMap("merchantPrivateKey")]
  45. [Validation(Required = true)]
  46. public string MerchantPrivateKey { get; set; }
  47. /// <summary>
  48. /// 应用公钥证书文件路径
  49. /// </summary>
  50. [NameInMap("merchantCertPath")]
  51. [Validation(Required = true)]
  52. public string MerchantCertPath { get; set; }
  53. /// <summary>
  54. /// 支付宝公钥证书文件路径
  55. /// </summary>
  56. [NameInMap("alipayCertPath")]
  57. [Validation(Required = true)]
  58. public string AlipayCertPath { get; set; }
  59. /// <summary>
  60. /// 支付宝根证书文件路径
  61. /// </summary>
  62. [NameInMap("alipayRootCertPath")]
  63. [Validation(Required = true)]
  64. public string AlipayRootCertPath { get; set; }
  65. /// <summary>
  66. /// 异步通知回调地址(可选)
  67. /// </summary>
  68. [NameInMap("notifyUrl")]
  69. [Validation(Required = true)]
  70. public string NotifyUrl { get; set; }
  71. /// <summary>
  72. /// AES密钥(可选)
  73. /// </summary>
  74. [NameInMap("encryptKey")]
  75. [Validation(Required = true)]
  76. public string EncryptKey { get; set; }
  77. /// <summary>
  78. /// 代理地址(可选)例如:http://127.0.0.1:8080
  79. /// </summary>
  80. [NameInMap("httpProxy")]
  81. [Validation(Required = true)]
  82. public string HttpProxy { get; set; }
  83. /// <summary>
  84. /// 忽略证书校验(可选)
  85. /// </summary>
  86. [NameInMap("ignoreSSL")]
  87. [Validation(Required = true)]
  88. public string IgnoreSSL { get; set; }
  89. }
  90. }