AlipayZdatafrontDatatransferedSendRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.zdatafront.datatransfered.send request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-05-18 11:27:33
  7. */
  8. class AlipayZdatafrontDatatransferedSendRequest
  9. {
  10. /**
  11. * 数据字段,identity对应的其他数据字段。使用json格式组织,且仅支持字符串类型,其他类型请转为字符串。
  12. **/
  13. private $data;
  14. /**
  15. * 合作伙伴的主键数据,同一合作伙伴要保证该字段唯一,若出现重复,后入数据会覆盖先入数据。使用json格式组织,且仅支持字符串类型,其他类型请转为字符串。
  16. **/
  17. private $identity;
  18. /**
  19. * 合作伙伴标识字段,用来区分数据来源。建议使用公司域名或公司名。
  20. **/
  21. private $typeId;
  22. private $apiParas = array();
  23. private $terminalType;
  24. private $terminalInfo;
  25. private $prodCode;
  26. private $apiVersion="1.0";
  27. private $notifyUrl;
  28. private $returnUrl;
  29. private $needEncrypt=false;
  30. public function setData($data)
  31. {
  32. $this->data = $data;
  33. $this->apiParas["data"] = $data;
  34. }
  35. public function getData()
  36. {
  37. return $this->data;
  38. }
  39. public function setIdentity($identity)
  40. {
  41. $this->identity = $identity;
  42. $this->apiParas["identity"] = $identity;
  43. }
  44. public function getIdentity()
  45. {
  46. return $this->identity;
  47. }
  48. public function setTypeId($typeId)
  49. {
  50. $this->typeId = $typeId;
  51. $this->apiParas["type_id"] = $typeId;
  52. }
  53. public function getTypeId()
  54. {
  55. return $this->typeId;
  56. }
  57. public function getApiMethodName()
  58. {
  59. return "alipay.zdatafront.datatransfered.send";
  60. }
  61. public function setNotifyUrl($notifyUrl)
  62. {
  63. $this->notifyUrl=$notifyUrl;
  64. }
  65. public function getNotifyUrl()
  66. {
  67. return $this->notifyUrl;
  68. }
  69. public function setReturnUrl($returnUrl)
  70. {
  71. $this->returnUrl=$returnUrl;
  72. }
  73. public function getReturnUrl()
  74. {
  75. return $this->returnUrl;
  76. }
  77. public function getApiParas()
  78. {
  79. return $this->apiParas;
  80. }
  81. public function getTerminalType()
  82. {
  83. return $this->terminalType;
  84. }
  85. public function setTerminalType($terminalType)
  86. {
  87. $this->terminalType = $terminalType;
  88. }
  89. public function getTerminalInfo()
  90. {
  91. return $this->terminalInfo;
  92. }
  93. public function setTerminalInfo($terminalInfo)
  94. {
  95. $this->terminalInfo = $terminalInfo;
  96. }
  97. public function getProdCode()
  98. {
  99. return $this->prodCode;
  100. }
  101. public function setProdCode($prodCode)
  102. {
  103. $this->prodCode = $prodCode;
  104. }
  105. public function setApiVersion($apiVersion)
  106. {
  107. $this->apiVersion=$apiVersion;
  108. }
  109. public function getApiVersion()
  110. {
  111. return $this->apiVersion;
  112. }
  113. public function setNeedEncrypt($needEncrypt)
  114. {
  115. $this->needEncrypt=$needEncrypt;
  116. }
  117. public function getNeedEncrypt()
  118. {
  119. return $this->needEncrypt;
  120. }
  121. }