AlipayAcquireOverseasSpotRefundRequest.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.acquire.overseas.spot.refund request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayAcquireOverseasSpotRefundRequest
  9. {
  10. /**
  11. * refund currency
  12. **/
  13. private $currency;
  14. /**
  15. * The refund order id on partner system.
  16. partner_refund_id together with partner identify a refund transaction
  17. **/
  18. private $partnerRefundId;
  19. /**
  20. * The original partner transaction id given in the payment request
  21. **/
  22. private $partnerTransId;
  23. /**
  24. * Less than or equal to the original transaction amont and the left transaction amount if ever refunded.
  25. **/
  26. private $refundAmount;
  27. /**
  28. * The reason of refund
  29. **/
  30. private $refundReason;
  31. private $apiParas = array();
  32. private $terminalType;
  33. private $terminalInfo;
  34. private $prodCode;
  35. private $apiVersion="1.0";
  36. private $notifyUrl;
  37. private $returnUrl;
  38. private $needEncrypt=false;
  39. public function setCurrency($currency)
  40. {
  41. $this->currency = $currency;
  42. $this->apiParas["currency"] = $currency;
  43. }
  44. public function getCurrency()
  45. {
  46. return $this->currency;
  47. }
  48. public function setPartnerRefundId($partnerRefundId)
  49. {
  50. $this->partnerRefundId = $partnerRefundId;
  51. $this->apiParas["partner_refund_id"] = $partnerRefundId;
  52. }
  53. public function getPartnerRefundId()
  54. {
  55. return $this->partnerRefundId;
  56. }
  57. public function setPartnerTransId($partnerTransId)
  58. {
  59. $this->partnerTransId = $partnerTransId;
  60. $this->apiParas["partner_trans_id"] = $partnerTransId;
  61. }
  62. public function getPartnerTransId()
  63. {
  64. return $this->partnerTransId;
  65. }
  66. public function setRefundAmount($refundAmount)
  67. {
  68. $this->refundAmount = $refundAmount;
  69. $this->apiParas["refund_amount"] = $refundAmount;
  70. }
  71. public function getRefundAmount()
  72. {
  73. return $this->refundAmount;
  74. }
  75. public function setRefundReason($refundReason)
  76. {
  77. $this->refundReason = $refundReason;
  78. $this->apiParas["refund_reason"] = $refundReason;
  79. }
  80. public function getRefundReason()
  81. {
  82. return $this->refundReason;
  83. }
  84. public function getApiMethodName()
  85. {
  86. return "alipay.acquire.overseas.spot.refund";
  87. }
  88. public function setNotifyUrl($notifyUrl)
  89. {
  90. $this->notifyUrl=$notifyUrl;
  91. }
  92. public function getNotifyUrl()
  93. {
  94. return $this->notifyUrl;
  95. }
  96. public function setReturnUrl($returnUrl)
  97. {
  98. $this->returnUrl=$returnUrl;
  99. }
  100. public function getReturnUrl()
  101. {
  102. return $this->returnUrl;
  103. }
  104. public function getApiParas()
  105. {
  106. return $this->apiParas;
  107. }
  108. public function getTerminalType()
  109. {
  110. return $this->terminalType;
  111. }
  112. public function setTerminalType($terminalType)
  113. {
  114. $this->terminalType = $terminalType;
  115. }
  116. public function getTerminalInfo()
  117. {
  118. return $this->terminalInfo;
  119. }
  120. public function setTerminalInfo($terminalInfo)
  121. {
  122. $this->terminalInfo = $terminalInfo;
  123. }
  124. public function getProdCode()
  125. {
  126. return $this->prodCode;
  127. }
  128. public function setProdCode($prodCode)
  129. {
  130. $this->prodCode = $prodCode;
  131. }
  132. public function setApiVersion($apiVersion)
  133. {
  134. $this->apiVersion=$apiVersion;
  135. }
  136. public function getApiVersion()
  137. {
  138. return $this->apiVersion;
  139. }
  140. public function setNeedEncrypt($needEncrypt)
  141. {
  142. $this->needEncrypt=$needEncrypt;
  143. }
  144. public function getNeedEncrypt()
  145. {
  146. return $this->needEncrypt;
  147. }
  148. }