PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/include/PayPal/Type/PaymentTransactionSearchResultType.php

https://github.com/radicaldesigns/amp
PHP | 229 lines | 173 code | 13 blank | 43 comment | 0 complexity | 30a0f56e730cad3ce2107380076dfddd MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
  1. <?php
  2. /**
  3. * @package PayPal
  4. */
  5. /**
  6. * Make sure our parent class is defined.
  7. */
  8. require_once 'PayPal/Type/XSDType.php';
  9. /**
  10. * PaymentTransactionSearchResultType
  11. *
  12. * PaymentTransactionSearchResultType Results from a PaymentTransaction search
  13. *
  14. * @package PayPal
  15. */
  16. class PaymentTransactionSearchResultType extends XSDType
  17. {
  18. /**
  19. * The date and time (in UTC/GMT format) the transaction occurred
  20. */
  21. var $Timestamp;
  22. /**
  23. * The time zone of the transaction
  24. */
  25. var $Timezone;
  26. /**
  27. * The type of the transaction
  28. */
  29. var $Type;
  30. /**
  31. * The email address of the payer
  32. */
  33. var $Payer;
  34. /**
  35. * Display name of the payer
  36. */
  37. var $PayerDisplayName;
  38. /**
  39. * The transaction ID of the seller
  40. */
  41. var $TransactionID;
  42. /**
  43. * The status of the transaction
  44. */
  45. var $Status;
  46. /**
  47. * The total gross amount charged, including any profile shipping cost and taxes
  48. */
  49. var $GrossAmount;
  50. /**
  51. * The fee that PayPal charged for the transaction
  52. */
  53. var $FeeAmount;
  54. /**
  55. * The net amount of the transaction
  56. */
  57. var $NetAmount;
  58. function PaymentTransactionSearchResultType()
  59. {
  60. parent::XSDType();
  61. $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
  62. $this->_elements = array_merge($this->_elements,
  63. array (
  64. 'Timestamp' =>
  65. array (
  66. 'required' => true,
  67. 'type' => 'dateTime',
  68. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  69. ),
  70. 'Timezone' =>
  71. array (
  72. 'required' => true,
  73. 'type' => 'string',
  74. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  75. ),
  76. 'Type' =>
  77. array (
  78. 'required' => true,
  79. 'type' => 'string',
  80. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  81. ),
  82. 'Payer' =>
  83. array (
  84. 'required' => true,
  85. 'type' => 'EmailAddressType',
  86. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  87. ),
  88. 'PayerDisplayName' =>
  89. array (
  90. 'required' => true,
  91. 'type' => 'string',
  92. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  93. ),
  94. 'TransactionID' =>
  95. array (
  96. 'required' => true,
  97. 'type' => NULL,
  98. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  99. ),
  100. 'Status' =>
  101. array (
  102. 'required' => true,
  103. 'type' => 'string',
  104. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  105. ),
  106. 'GrossAmount' =>
  107. array (
  108. 'required' => true,
  109. 'type' => 'BasicAmountType',
  110. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  111. ),
  112. 'FeeAmount' =>
  113. array (
  114. 'required' => true,
  115. 'type' => 'BasicAmountType',
  116. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  117. ),
  118. 'NetAmount' =>
  119. array (
  120. 'required' => true,
  121. 'type' => 'BasicAmountType',
  122. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  123. ),
  124. ));
  125. }
  126. function getTimestamp()
  127. {
  128. return $this->Timestamp;
  129. }
  130. function setTimestamp($Timestamp, $charset = 'iso-8859-1')
  131. {
  132. $this->Timestamp = $Timestamp;
  133. $this->_elements['Timestamp']['charset'] = $charset;
  134. }
  135. function getTimezone()
  136. {
  137. return $this->Timezone;
  138. }
  139. function setTimezone($Timezone, $charset = 'iso-8859-1')
  140. {
  141. $this->Timezone = $Timezone;
  142. $this->_elements['Timezone']['charset'] = $charset;
  143. }
  144. function getType()
  145. {
  146. return $this->Type;
  147. }
  148. function setType($Type, $charset = 'iso-8859-1')
  149. {
  150. $this->Type = $Type;
  151. $this->_elements['Type']['charset'] = $charset;
  152. }
  153. function getPayer()
  154. {
  155. return $this->Payer;
  156. }
  157. function setPayer($Payer, $charset = 'iso-8859-1')
  158. {
  159. $this->Payer = $Payer;
  160. $this->_elements['Payer']['charset'] = $charset;
  161. }
  162. function getPayerDisplayName()
  163. {
  164. return $this->PayerDisplayName;
  165. }
  166. function setPayerDisplayName($PayerDisplayName, $charset = 'iso-8859-1')
  167. {
  168. $this->PayerDisplayName = $PayerDisplayName;
  169. $this->_elements['PayerDisplayName']['charset'] = $charset;
  170. }
  171. function getTransactionID()
  172. {
  173. return $this->TransactionID;
  174. }
  175. function setTransactionID($TransactionID, $charset = 'iso-8859-1')
  176. {
  177. $this->TransactionID = $TransactionID;
  178. $this->_elements['TransactionID']['charset'] = $charset;
  179. }
  180. function getStatus()
  181. {
  182. return $this->Status;
  183. }
  184. function setStatus($Status, $charset = 'iso-8859-1')
  185. {
  186. $this->Status = $Status;
  187. $this->_elements['Status']['charset'] = $charset;
  188. }
  189. function getGrossAmount()
  190. {
  191. return $this->GrossAmount;
  192. }
  193. function setGrossAmount($GrossAmount, $charset = 'iso-8859-1')
  194. {
  195. $this->GrossAmount = $GrossAmount;
  196. $this->_elements['GrossAmount']['charset'] = $charset;
  197. }
  198. function getFeeAmount()
  199. {
  200. return $this->FeeAmount;
  201. }
  202. function setFeeAmount($FeeAmount, $charset = 'iso-8859-1')
  203. {
  204. $this->FeeAmount = $FeeAmount;
  205. $this->_elements['FeeAmount']['charset'] = $charset;
  206. }
  207. function getNetAmount()
  208. {
  209. return $this->NetAmount;
  210. }
  211. function setNetAmount($NetAmount, $charset = 'iso-8859-1')
  212. {
  213. $this->NetAmount = $NetAmount;
  214. $this->_elements['NetAmount']['charset'] = $charset;
  215. }
  216. }