PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/include/PayPal/Type/BankAccountDetailsType.php

https://github.com/radicaldesigns/amp
PHP | 109 lines | 77 code | 7 blank | 25 comment | 0 complexity | ff551049f36c53d08e7f67b6992947bd 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. * BankAccountDetailsType
  11. *
  12. * BankAccountDetailsType
  13. *
  14. * @package PayPal
  15. */
  16. class BankAccountDetailsType extends XSDType
  17. {
  18. /**
  19. * Name of bank
  20. */
  21. var $Name;
  22. /**
  23. * Type of bank account: Checking or Savings
  24. */
  25. var $Type;
  26. /**
  27. * Merchant ’s bank routing number
  28. */
  29. var $RoutingNumber;
  30. /**
  31. * Merchant ’s bank account number
  32. */
  33. var $AccountNumber;
  34. function BankAccountDetailsType()
  35. {
  36. parent::XSDType();
  37. $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
  38. $this->_elements = array_merge($this->_elements,
  39. array (
  40. 'Name' =>
  41. array (
  42. 'required' => true,
  43. 'type' => 'string',
  44. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  45. ),
  46. 'Type' =>
  47. array (
  48. 'required' => true,
  49. 'type' => 'BankAccountTypeType',
  50. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  51. ),
  52. 'RoutingNumber' =>
  53. array (
  54. 'required' => true,
  55. 'type' => 'string',
  56. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  57. ),
  58. 'AccountNumber' =>
  59. array (
  60. 'required' => true,
  61. 'type' => 'string',
  62. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  63. ),
  64. ));
  65. }
  66. function getName()
  67. {
  68. return $this->Name;
  69. }
  70. function setName($Name, $charset = 'iso-8859-1')
  71. {
  72. $this->Name = $Name;
  73. $this->_elements['Name']['charset'] = $charset;
  74. }
  75. function getType()
  76. {
  77. return $this->Type;
  78. }
  79. function setType($Type, $charset = 'iso-8859-1')
  80. {
  81. $this->Type = $Type;
  82. $this->_elements['Type']['charset'] = $charset;
  83. }
  84. function getRoutingNumber()
  85. {
  86. return $this->RoutingNumber;
  87. }
  88. function setRoutingNumber($RoutingNumber, $charset = 'iso-8859-1')
  89. {
  90. $this->RoutingNumber = $RoutingNumber;
  91. $this->_elements['RoutingNumber']['charset'] = $charset;
  92. }
  93. function getAccountNumber()
  94. {
  95. return $this->AccountNumber;
  96. }
  97. function setAccountNumber($AccountNumber, $charset = 'iso-8859-1')
  98. {
  99. $this->AccountNumber = $AccountNumber;
  100. $this->_elements['AccountNumber']['charset'] = $charset;
  101. }
  102. }