/sdk/lib/PayPal/Type/SetAccessPermissionsRequestDetailsType.php

https://github.com/AMSGWeblinks/prestaPaypalPlugin · PHP · 359 lines · 269 code · 19 blank · 71 comment · 0 complexity · 5586b3538e78582e2cfbe1eb340f181e MD5 · raw file

  1. <?php
  2. /**
  3. * @package PayPal
  4. */
  5. /**
  6. * Make sure our parent class is defined.
  7. */
  8. require_once 'PayPal/Type/XSDSimpleType.php';
  9. /**
  10. * SetAccessPermissionsRequestDetailsType
  11. *
  12. * @package PayPal
  13. */
  14. class SetAccessPermissionsRequestDetailsType extends XSDSimpleType
  15. {
  16. /**
  17. * URL to which the customer's browser is returned after choosing to login with
  18. * PayPal.
  19. */
  20. var $ReturnURL;
  21. /**
  22. * URL to which the customer is returned if he does not approve the use of PayPal
  23. * login.
  24. */
  25. var $CancelURL;
  26. /**
  27. * URL to which the customer's browser is returned after user logs out from PayPal.
  28. */
  29. var $LogoutURL;
  30. /**
  31. * The type of the flow.
  32. */
  33. var $InitFlowType;
  34. /**
  35. * The used to decide SkipLogin allowed or not.
  36. */
  37. var $SkipLoginPage;
  38. /**
  39. * contains information about API Services
  40. */
  41. var $RequiredAccessPermissions;
  42. /**
  43. * contains information about API Services
  44. */
  45. var $OptionalAccessPermissions;
  46. /**
  47. * Locale of pages displayed by PayPal during Authentication Login.
  48. */
  49. var $LocaleCode;
  50. /**
  51. * Sets the Custom Payment Page Style for flow pages associated with this
  52. * button/link. PageStyle corresponds to the HTML variable page_style for
  53. * customizing flow pages. The value is the same as the Page Style Name you chose
  54. * when adding or editing the page style from the Profile subtab of the My Account
  55. * tab of your PayPal account.
  56. */
  57. var $PageStyle;
  58. /**
  59. * A URL for the image you want to appear at the top left of the flow page. The
  60. * image has a maximum size of 750 pixels wide by 90 pixels high. PayPal recommends
  61. * that you provide an image that is stored on a secure (https) server.
  62. */
  63. var $cpp_header_image;
  64. /**
  65. * Sets the border color around the header of the flow page. The border is a
  66. * 2-pixel perimeter around the header space, which is 750 pixels wide by 90 pixels
  67. * high.
  68. */
  69. var $cpp_header_border_color;
  70. /**
  71. * Sets the background color for the header of the flow page.
  72. */
  73. var $cpp_header_back_color;
  74. /**
  75. * Sets the background color for the payment page.
  76. */
  77. var $cpp_payflow_color;
  78. /**
  79. * First Name of the user, this information is used if user chooses to signup with
  80. * PayPal.
  81. */
  82. var $FirstName;
  83. /**
  84. * Last Name of the user, this information is used if user chooses to signup with
  85. * PayPal.
  86. */
  87. var $LastName;
  88. /**
  89. * User address, this information is used when user chooses to signup for PayPal.
  90. */
  91. var $Address;
  92. function SetAccessPermissionsRequestDetailsType()
  93. {
  94. parent::XSDSimpleType();
  95. $this->_namespace = 'urn:ebay:apis:eBLBaseComponents';
  96. $this->_elements = array_merge($this->_elements,
  97. array (
  98. 'ReturnURL' =>
  99. array (
  100. 'required' => true,
  101. 'type' => 'string',
  102. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  103. ),
  104. 'CancelURL' =>
  105. array (
  106. 'required' => true,
  107. 'type' => 'string',
  108. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  109. ),
  110. 'LogoutURL' =>
  111. array (
  112. 'required' => true,
  113. 'type' => 'string',
  114. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  115. ),
  116. 'InitFlowType' =>
  117. array (
  118. 'required' => false,
  119. 'type' => 'string',
  120. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  121. ),
  122. 'SkipLoginPage' =>
  123. array (
  124. 'required' => false,
  125. 'type' => 'string',
  126. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  127. ),
  128. 'RequiredAccessPermissions' =>
  129. array (
  130. 'required' => false,
  131. 'type' => 'string',
  132. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  133. ),
  134. 'OptionalAccessPermissions' =>
  135. array (
  136. 'required' => false,
  137. 'type' => 'string',
  138. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  139. ),
  140. 'LocaleCode' =>
  141. array (
  142. 'required' => false,
  143. 'type' => 'string',
  144. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  145. ),
  146. 'PageStyle' =>
  147. array (
  148. 'required' => false,
  149. 'type' => 'string',
  150. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  151. ),
  152. 'cpp_header_image' =>
  153. array (
  154. 'required' => false,
  155. 'type' => 'string',
  156. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  157. ),
  158. 'cpp_header_border_color' =>
  159. array (
  160. 'required' => false,
  161. 'type' => 'string',
  162. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  163. ),
  164. 'cpp_header_back_color' =>
  165. array (
  166. 'required' => false,
  167. 'type' => 'string',
  168. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  169. ),
  170. 'cpp_payflow_color' =>
  171. array (
  172. 'required' => false,
  173. 'type' => 'string',
  174. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  175. ),
  176. 'FirstName' =>
  177. array (
  178. 'required' => false,
  179. 'type' => 'string',
  180. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  181. ),
  182. 'LastName' =>
  183. array (
  184. 'required' => false,
  185. 'type' => 'string',
  186. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  187. ),
  188. 'Address' =>
  189. array (
  190. 'required' => false,
  191. 'type' => 'AddressType',
  192. 'namespace' => 'urn:ebay:apis:eBLBaseComponents',
  193. ),
  194. ));
  195. }
  196. function getReturnURL()
  197. {
  198. return $this->ReturnURL;
  199. }
  200. function setReturnURL($ReturnURL, $charset = 'iso-8859-1')
  201. {
  202. $this->ReturnURL = $ReturnURL;
  203. $this->_elements['ReturnURL']['charset'] = $charset;
  204. }
  205. function getCancelURL()
  206. {
  207. return $this->CancelURL;
  208. }
  209. function setCancelURL($CancelURL, $charset = 'iso-8859-1')
  210. {
  211. $this->CancelURL = $CancelURL;
  212. $this->_elements['CancelURL']['charset'] = $charset;
  213. }
  214. function getLogoutURL()
  215. {
  216. return $this->LogoutURL;
  217. }
  218. function setLogoutURL($LogoutURL, $charset = 'iso-8859-1')
  219. {
  220. $this->LogoutURL = $LogoutURL;
  221. $this->_elements['LogoutURL']['charset'] = $charset;
  222. }
  223. function getInitFlowType()
  224. {
  225. return $this->InitFlowType;
  226. }
  227. function setInitFlowType($InitFlowType, $charset = 'iso-8859-1')
  228. {
  229. $this->InitFlowType = $InitFlowType;
  230. $this->_elements['InitFlowType']['charset'] = $charset;
  231. }
  232. function getSkipLoginPage()
  233. {
  234. return $this->SkipLoginPage;
  235. }
  236. function setSkipLoginPage($SkipLoginPage, $charset = 'iso-8859-1')
  237. {
  238. $this->SkipLoginPage = $SkipLoginPage;
  239. $this->_elements['SkipLoginPage']['charset'] = $charset;
  240. }
  241. function getRequiredAccessPermissions()
  242. {
  243. return $this->RequiredAccessPermissions;
  244. }
  245. function setRequiredAccessPermissions($RequiredAccessPermissions, $charset = 'iso-8859-1')
  246. {
  247. $this->RequiredAccessPermissions = $RequiredAccessPermissions;
  248. $this->_elements['RequiredAccessPermissions']['charset'] = $charset;
  249. }
  250. function getOptionalAccessPermissions()
  251. {
  252. return $this->OptionalAccessPermissions;
  253. }
  254. function setOptionalAccessPermissions($OptionalAccessPermissions, $charset = 'iso-8859-1')
  255. {
  256. $this->OptionalAccessPermissions = $OptionalAccessPermissions;
  257. $this->_elements['OptionalAccessPermissions']['charset'] = $charset;
  258. }
  259. function getLocaleCode()
  260. {
  261. return $this->LocaleCode;
  262. }
  263. function setLocaleCode($LocaleCode, $charset = 'iso-8859-1')
  264. {
  265. $this->LocaleCode = $LocaleCode;
  266. $this->_elements['LocaleCode']['charset'] = $charset;
  267. }
  268. function getPageStyle()
  269. {
  270. return $this->PageStyle;
  271. }
  272. function setPageStyle($PageStyle, $charset = 'iso-8859-1')
  273. {
  274. $this->PageStyle = $PageStyle;
  275. $this->_elements['PageStyle']['charset'] = $charset;
  276. }
  277. function getcpp_header_image()
  278. {
  279. return $this->cpp_header_image;
  280. }
  281. function setcpp_header_image($cpp_header_image, $charset = 'iso-8859-1')
  282. {
  283. $this->cpp_header_image = $cpp_header_image;
  284. $this->_elements['cpp_header_image']['charset'] = $charset;
  285. }
  286. function getcpp_header_border_color()
  287. {
  288. return $this->cpp_header_border_color;
  289. }
  290. function setcpp_header_border_color($cpp_header_border_color, $charset = 'iso-8859-1')
  291. {
  292. $this->cpp_header_border_color = $cpp_header_border_color;
  293. $this->_elements['cpp_header_border_color']['charset'] = $charset;
  294. }
  295. function getcpp_header_back_color()
  296. {
  297. return $this->cpp_header_back_color;
  298. }
  299. function setcpp_header_back_color($cpp_header_back_color, $charset = 'iso-8859-1')
  300. {
  301. $this->cpp_header_back_color = $cpp_header_back_color;
  302. $this->_elements['cpp_header_back_color']['charset'] = $charset;
  303. }
  304. function getcpp_payflow_color()
  305. {
  306. return $this->cpp_payflow_color;
  307. }
  308. function setcpp_payflow_color($cpp_payflow_color, $charset = 'iso-8859-1')
  309. {
  310. $this->cpp_payflow_color = $cpp_payflow_color;
  311. $this->_elements['cpp_payflow_color']['charset'] = $charset;
  312. }
  313. function getFirstName()
  314. {
  315. return $this->FirstName;
  316. }
  317. function setFirstName($FirstName, $charset = 'iso-8859-1')
  318. {
  319. $this->FirstName = $FirstName;
  320. $this->_elements['FirstName']['charset'] = $charset;
  321. }
  322. function getLastName()
  323. {
  324. return $this->LastName;
  325. }
  326. function setLastName($LastName, $charset = 'iso-8859-1')
  327. {
  328. $this->LastName = $LastName;
  329. $this->_elements['LastName']['charset'] = $charset;
  330. }
  331. function getAddress()
  332. {
  333. return $this->Address;
  334. }
  335. function setAddress($Address, $charset = 'iso-8859-1')
  336. {
  337. $this->Address = $Address;
  338. $this->_elements['Address']['charset'] = $charset;
  339. }
  340. }