PageRenderTime 69ms CodeModel.GetById 34ms RepoModel.GetById 1ms app.codeStats 0ms

/include/PayPal/Type/BusinessInfoType.php

https://github.com/radicaldesigns/amp
PHP | 310 lines | 237 code | 17 blank | 56 comment | 0 complexity | c30d87ebc5f6974dc20c950cc8f43862 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. * BusinessInfoType
  11. *
  12. * BusinessInfoType
  13. *
  14. * @package PayPal
  15. */
  16. class BusinessInfoType extends XSDType
  17. {
  18. /**
  19. * Type of business, such as corporation or sole proprietorship
  20. */
  21. var $Type;
  22. /**
  23. * Official name of business
  24. */
  25. var $Name;
  26. /**
  27. * Merchant ’s business postal address
  28. */
  29. var $Address;
  30. /**
  31. * Business ’s primary telephone number
  32. */
  33. var $WorkPhone;
  34. /**
  35. * Line of business, as defined in the enumerations
  36. */
  37. var $Category;
  38. /**
  39. * Business sub-category, as defined in the enumerations
  40. */
  41. var $SubCategory;
  42. /**
  43. * Average transaction price, as defined by the enumerations.
  44. */
  45. var $AveragePrice;
  46. /**
  47. * Average monthly sales volume, as defined by the enumerations.
  48. */
  49. var $AverageMonthlyVolume;
  50. /**
  51. * Main sales venue, such as eBay
  52. */
  53. var $SalesVenue;
  54. /**
  55. * Primary URL of business
  56. */
  57. var $Website;
  58. /**
  59. * Percentage of revenue attributable to online sales, as defined by the
  60. * enumerations
  61. */
  62. var $RevenueFromOnlineSales;
  63. /**
  64. * Date the merchant ’s business was established
  65. */
  66. var $BusinessEstablished;
  67. /**
  68. * Email address to contact business ’s customer service
  69. */
  70. var $CustomerServiceEmail;
  71. /**
  72. * Telephone number to contact business ’s customer service
  73. */
  74. var $CustomerServicePhone;
  75. function BusinessInfoType()
  76. {
  77. parent::XSDType();
  78. $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
  79. $this->_elements = array_merge($this->_elements,
  80. array (
  81. 'Type' =>
  82. array (
  83. 'required' => false,
  84. 'type' => 'BusinessTypeType',
  85. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  86. ),
  87. 'Name' =>
  88. array (
  89. 'required' => false,
  90. 'type' => 'NameType',
  91. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  92. ),
  93. 'Address' =>
  94. array (
  95. 'required' => false,
  96. 'type' => 'AddressType',
  97. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  98. ),
  99. 'WorkPhone' =>
  100. array (
  101. 'required' => false,
  102. 'type' => 'string',
  103. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  104. ),
  105. 'Category' =>
  106. array (
  107. 'required' => false,
  108. 'type' => 'BusinessCategoryType',
  109. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  110. ),
  111. 'SubCategory' =>
  112. array (
  113. 'required' => false,
  114. 'type' => 'BusinessSubCategoryType',
  115. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  116. ),
  117. 'AveragePrice' =>
  118. array (
  119. 'required' => false,
  120. 'type' => 'AverageTransactionPriceType',
  121. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  122. ),
  123. 'AverageMonthlyVolume' =>
  124. array (
  125. 'required' => false,
  126. 'type' => 'AverageMonthlyVolumeType',
  127. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  128. ),
  129. 'SalesVenue' =>
  130. array (
  131. 'required' => false,
  132. 'type' => 'SalesVenueType',
  133. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  134. ),
  135. 'Website' =>
  136. array (
  137. 'required' => false,
  138. 'type' => 'string',
  139. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  140. ),
  141. 'RevenueFromOnlineSales' =>
  142. array (
  143. 'required' => false,
  144. 'type' => 'PercentageRevenueFromOnlineSalesType',
  145. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  146. ),
  147. 'BusinessEstablished' =>
  148. array (
  149. 'required' => false,
  150. 'type' => 'dateTime',
  151. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  152. ),
  153. 'CustomerServiceEmail' =>
  154. array (
  155. 'required' => false,
  156. 'type' => 'EmailAddressType',
  157. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  158. ),
  159. 'CustomerServicePhone' =>
  160. array (
  161. 'required' => false,
  162. 'type' => 'string',
  163. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  164. ),
  165. ));
  166. }
  167. function getType()
  168. {
  169. return $this->Type;
  170. }
  171. function setType($Type, $charset = 'iso-8859-1')
  172. {
  173. $this->Type = $Type;
  174. $this->_elements['Type']['charset'] = $charset;
  175. }
  176. function getName()
  177. {
  178. return $this->Name;
  179. }
  180. function setName($Name, $charset = 'iso-8859-1')
  181. {
  182. $this->Name = $Name;
  183. $this->_elements['Name']['charset'] = $charset;
  184. }
  185. function getAddress()
  186. {
  187. return $this->Address;
  188. }
  189. function setAddress($Address, $charset = 'iso-8859-1')
  190. {
  191. $this->Address = $Address;
  192. $this->_elements['Address']['charset'] = $charset;
  193. }
  194. function getWorkPhone()
  195. {
  196. return $this->WorkPhone;
  197. }
  198. function setWorkPhone($WorkPhone, $charset = 'iso-8859-1')
  199. {
  200. $this->WorkPhone = $WorkPhone;
  201. $this->_elements['WorkPhone']['charset'] = $charset;
  202. }
  203. function getCategory()
  204. {
  205. return $this->Category;
  206. }
  207. function setCategory($Category, $charset = 'iso-8859-1')
  208. {
  209. $this->Category = $Category;
  210. $this->_elements['Category']['charset'] = $charset;
  211. }
  212. function getSubCategory()
  213. {
  214. return $this->SubCategory;
  215. }
  216. function setSubCategory($SubCategory, $charset = 'iso-8859-1')
  217. {
  218. $this->SubCategory = $SubCategory;
  219. $this->_elements['SubCategory']['charset'] = $charset;
  220. }
  221. function getAveragePrice()
  222. {
  223. return $this->AveragePrice;
  224. }
  225. function setAveragePrice($AveragePrice, $charset = 'iso-8859-1')
  226. {
  227. $this->AveragePrice = $AveragePrice;
  228. $this->_elements['AveragePrice']['charset'] = $charset;
  229. }
  230. function getAverageMonthlyVolume()
  231. {
  232. return $this->AverageMonthlyVolume;
  233. }
  234. function setAverageMonthlyVolume($AverageMonthlyVolume, $charset = 'iso-8859-1')
  235. {
  236. $this->AverageMonthlyVolume = $AverageMonthlyVolume;
  237. $this->_elements['AverageMonthlyVolume']['charset'] = $charset;
  238. }
  239. function getSalesVenue()
  240. {
  241. return $this->SalesVenue;
  242. }
  243. function setSalesVenue($SalesVenue, $charset = 'iso-8859-1')
  244. {
  245. $this->SalesVenue = $SalesVenue;
  246. $this->_elements['SalesVenue']['charset'] = $charset;
  247. }
  248. function getWebsite()
  249. {
  250. return $this->Website;
  251. }
  252. function setWebsite($Website, $charset = 'iso-8859-1')
  253. {
  254. $this->Website = $Website;
  255. $this->_elements['Website']['charset'] = $charset;
  256. }
  257. function getRevenueFromOnlineSales()
  258. {
  259. return $this->RevenueFromOnlineSales;
  260. }
  261. function setRevenueFromOnlineSales($RevenueFromOnlineSales, $charset = 'iso-8859-1')
  262. {
  263. $this->RevenueFromOnlineSales = $RevenueFromOnlineSales;
  264. $this->_elements['RevenueFromOnlineSales']['charset'] = $charset;
  265. }
  266. function getBusinessEstablished()
  267. {
  268. return $this->BusinessEstablished;
  269. }
  270. function setBusinessEstablished($BusinessEstablished, $charset = 'iso-8859-1')
  271. {
  272. $this->BusinessEstablished = $BusinessEstablished;
  273. $this->_elements['BusinessEstablished']['charset'] = $charset;
  274. }
  275. function getCustomerServiceEmail()
  276. {
  277. return $this->CustomerServiceEmail;
  278. }
  279. function setCustomerServiceEmail($CustomerServiceEmail, $charset = 'iso-8859-1')
  280. {
  281. $this->CustomerServiceEmail = $CustomerServiceEmail;
  282. $this->_elements['CustomerServiceEmail']['charset'] = $charset;
  283. }
  284. function getCustomerServicePhone()
  285. {
  286. return $this->CustomerServicePhone;
  287. }
  288. function setCustomerServicePhone($CustomerServicePhone, $charset = 'iso-8859-1')
  289. {
  290. $this->CustomerServicePhone = $CustomerServicePhone;
  291. $this->_elements['CustomerServicePhone']['charset'] = $charset;
  292. }
  293. }