OapiDingpayOrderApplypayRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.dingpay.order.applypay request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.01.31
  7. */
  8. class OapiDingpayOrderApplypayRequest
  9. {
  10. /**
  11. * 发起支付操作员userId
  12. **/
  13. private $applyPayOperatorUserid;
  14. /**
  15. * 扩展属性
  16. **/
  17. private $extension;
  18. /**
  19. * 订单号
  20. **/
  21. private $orderNos;
  22. /**
  23. * 支付渠道
  24. **/
  25. private $payChannel;
  26. /**
  27. * 支付渠道方付款者真实出资UID
  28. **/
  29. private $payChannelPayerRealUid;
  30. private $apiParas = array();
  31. public function setApplyPayOperatorUserid($applyPayOperatorUserid)
  32. {
  33. $this->applyPayOperatorUserid = $applyPayOperatorUserid;
  34. $this->apiParas["apply_pay_operator_userid"] = $applyPayOperatorUserid;
  35. }
  36. public function getApplyPayOperatorUserid()
  37. {
  38. return $this->applyPayOperatorUserid;
  39. }
  40. public function setExtension($extension)
  41. {
  42. $this->extension = $extension;
  43. $this->apiParas["extension"] = $extension;
  44. }
  45. public function getExtension()
  46. {
  47. return $this->extension;
  48. }
  49. public function setOrderNos($orderNos)
  50. {
  51. $this->orderNos = $orderNos;
  52. $this->apiParas["order_nos"] = $orderNos;
  53. }
  54. public function getOrderNos()
  55. {
  56. return $this->orderNos;
  57. }
  58. public function setPayChannel($payChannel)
  59. {
  60. $this->payChannel = $payChannel;
  61. $this->apiParas["pay_channel"] = $payChannel;
  62. }
  63. public function getPayChannel()
  64. {
  65. return $this->payChannel;
  66. }
  67. public function setPayChannelPayerRealUid($payChannelPayerRealUid)
  68. {
  69. $this->payChannelPayerRealUid = $payChannelPayerRealUid;
  70. $this->apiParas["pay_channel_payer_real_uid"] = $payChannelPayerRealUid;
  71. }
  72. public function getPayChannelPayerRealUid()
  73. {
  74. return $this->payChannelPayerRealUid;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.dingpay.order.applypay";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->applyPayOperatorUserid,"applyPayOperatorUserid");
  87. RequestCheckUtil::checkNotNull($this->orderNos,"orderNos");
  88. RequestCheckUtil::checkMaxListSize($this->orderNos,20,"orderNos");
  89. RequestCheckUtil::checkNotNull($this->payChannel,"payChannel");
  90. }
  91. public function putOtherTextParam($key, $value) {
  92. $this->apiParas[$key] = $value;
  93. $this->$key = $value;
  94. }
  95. }