PayPalAPIInterfaceServiceService.php 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  1. <?php
  2. /**
  3. * AUTO GENERATED code for PayPalAPIInterfaceService
  4. */
  5. class PayPalAPIInterfaceServiceService extends PPBaseService {
  6. // Service Version
  7. private static $SERVICE_VERSION = "98.0";
  8. // Service Name
  9. private static $SERVICE_NAME = "PayPalAPIInterfaceService";
  10. // SDK Name
  11. protected static $SDK_NAME = "merchant-php-sdk";
  12. // SDK Version
  13. protected static $SDK_VERSION = "2.2.98";
  14. public function __construct() {
  15. parent::__construct(self::$SERVICE_NAME, 'SOAP', array('PPMerchantServiceHandler'));
  16. parent::$SDK_NAME = self::$SDK_NAME ;
  17. parent::$SDK_VERSION = self::$SDK_VERSION;
  18. }
  19. private function setStandardParams(AbstractRequestType $request) {
  20. if ($request->Version == NULL) {
  21. $request->Version = self::$SERVICE_VERSION;
  22. }
  23. }
  24. /**
  25. * Service Call: RefundTransaction
  26. * @param RefundTransactionReq $refundTransactionReq
  27. * @param mixed $apiCredential - Optional API credential - can either be
  28. * a username configured in sdk_config.ini or a ICredential object
  29. * created dynamically
  30. * @return RefundTransactionResponseType
  31. * @throws APIException
  32. */
  33. public function RefundTransaction($refundTransactionReq, $apiCredential = NULL) {
  34. $this->setStandardParams($refundTransactionReq->RefundTransactionRequest);
  35. $ret = new RefundTransactionResponseType();
  36. $resp = $this->call('PayPalAPI', 'RefundTransaction', $refundTransactionReq, $apiCredential);
  37. $ret->init(PPUtils::xmlToArray($resp));
  38. return $ret;
  39. }
  40. /**
  41. * Service Call: InitiateRecoup
  42. * @param InitiateRecoupReq $initiateRecoupReq
  43. * @param mixed $apiCredential - Optional API credential - can either be
  44. * a username configured in sdk_config.ini or a ICredential object
  45. * created dynamically
  46. * @return InitiateRecoupResponseType
  47. * @throws APIException
  48. */
  49. public function InitiateRecoup($initiateRecoupReq, $apiCredential = NULL) {
  50. $this->setStandardParams($initiateRecoupReq->InitiateRecoupRequest);
  51. $ret = new InitiateRecoupResponseType();
  52. $resp = $this->call('PayPalAPI', 'InitiateRecoup', $initiateRecoupReq, $apiCredential);
  53. $ret->init(PPUtils::xmlToArray($resp));
  54. return $ret;
  55. }
  56. /**
  57. * Service Call: CompleteRecoup
  58. * @param CompleteRecoupReq $completeRecoupReq
  59. * @param mixed $apiCredential - Optional API credential - can either be
  60. * a username configured in sdk_config.ini or a ICredential object
  61. * created dynamically
  62. * @return CompleteRecoupResponseType
  63. * @throws APIException
  64. */
  65. public function CompleteRecoup($completeRecoupReq, $apiCredential = NULL) {
  66. $this->setStandardParams($completeRecoupReq->CompleteRecoupRequest);
  67. $ret = new CompleteRecoupResponseType();
  68. $resp = $this->call('PayPalAPI', 'CompleteRecoup', $completeRecoupReq, $apiCredential);
  69. $ret->init(PPUtils::xmlToArray($resp));
  70. return $ret;
  71. }
  72. /**
  73. * Service Call: CancelRecoup
  74. * @param CancelRecoupReq $cancelRecoupReq
  75. * @param mixed $apiCredential - Optional API credential - can either be
  76. * a username configured in sdk_config.ini or a ICredential object
  77. * created dynamically
  78. * @return CancelRecoupResponseType
  79. * @throws APIException
  80. */
  81. public function CancelRecoup($cancelRecoupReq, $apiCredential = NULL) {
  82. $this->setStandardParams($cancelRecoupReq->CancelRecoupRequest);
  83. $ret = new CancelRecoupResponseType();
  84. $resp = $this->call('PayPalAPI', 'CancelRecoup', $cancelRecoupReq, $apiCredential);
  85. $ret->init(PPUtils::xmlToArray($resp));
  86. return $ret;
  87. }
  88. /**
  89. * Service Call: GetTransactionDetails
  90. * @param GetTransactionDetailsReq $getTransactionDetailsReq
  91. * @param mixed $apiCredential - Optional API credential - can either be
  92. * a username configured in sdk_config.ini or a ICredential object
  93. * created dynamically
  94. * @return GetTransactionDetailsResponseType
  95. * @throws APIException
  96. */
  97. public function GetTransactionDetails($getTransactionDetailsReq, $apiCredential = NULL) {
  98. $this->setStandardParams($getTransactionDetailsReq->GetTransactionDetailsRequest);
  99. $ret = new GetTransactionDetailsResponseType();
  100. $resp = $this->call('PayPalAPI', 'GetTransactionDetails', $getTransactionDetailsReq, $apiCredential);
  101. $ret->init(PPUtils::xmlToArray($resp));
  102. return $ret;
  103. }
  104. /**
  105. * Service Call: BillUser
  106. * @param BillUserReq $billUserReq
  107. * @param mixed $apiCredential - Optional API credential - can either be
  108. * a username configured in sdk_config.ini or a ICredential object
  109. * created dynamically
  110. * @return BillUserResponseType
  111. * @throws APIException
  112. */
  113. public function BillUser($billUserReq, $apiCredential = NULL) {
  114. $this->setStandardParams($billUserReq->BillUserRequest);
  115. $ret = new BillUserResponseType();
  116. $resp = $this->call('PayPalAPI', 'BillUser', $billUserReq, $apiCredential);
  117. $ret->init(PPUtils::xmlToArray($resp));
  118. return $ret;
  119. }
  120. /**
  121. * Service Call: TransactionSearch
  122. * @param TransactionSearchReq $transactionSearchReq
  123. * @param mixed $apiCredential - Optional API credential - can either be
  124. * a username configured in sdk_config.ini or a ICredential object
  125. * created dynamically
  126. * @return TransactionSearchResponseType
  127. * @throws APIException
  128. */
  129. public function TransactionSearch($transactionSearchReq, $apiCredential = NULL) {
  130. $this->setStandardParams($transactionSearchReq->TransactionSearchRequest);
  131. $ret = new TransactionSearchResponseType();
  132. $resp = $this->call('PayPalAPI', 'TransactionSearch', $transactionSearchReq, $apiCredential);
  133. $ret->init(PPUtils::xmlToArray($resp));
  134. return $ret;
  135. }
  136. /**
  137. * Service Call: MassPay
  138. * @param MassPayReq $massPayReq
  139. * @param mixed $apiCredential - Optional API credential - can either be
  140. * a username configured in sdk_config.ini or a ICredential object
  141. * created dynamically
  142. * @return MassPayResponseType
  143. * @throws APIException
  144. */
  145. public function MassPay($massPayReq, $apiCredential = NULL) {
  146. $this->setStandardParams($massPayReq->MassPayRequest);
  147. $ret = new MassPayResponseType();
  148. $resp = $this->call('PayPalAPI', 'MassPay', $massPayReq, $apiCredential);
  149. $ret->init(PPUtils::xmlToArray($resp));
  150. return $ret;
  151. }
  152. /**
  153. * Service Call: BillAgreementUpdate
  154. * @param BillAgreementUpdateReq $billAgreementUpdateReq
  155. * @param mixed $apiCredential - Optional API credential - can either be
  156. * a username configured in sdk_config.ini or a ICredential object
  157. * created dynamically
  158. * @return BAUpdateResponseType
  159. * @throws APIException
  160. */
  161. public function BillAgreementUpdate($billAgreementUpdateReq, $apiCredential = NULL) {
  162. $this->setStandardParams($billAgreementUpdateReq->BAUpdateRequest);
  163. $ret = new BAUpdateResponseType();
  164. $resp = $this->call('PayPalAPI', 'BillAgreementUpdate', $billAgreementUpdateReq, $apiCredential);
  165. $ret->init(PPUtils::xmlToArray($resp));
  166. return $ret;
  167. }
  168. /**
  169. * Service Call: AddressVerify
  170. * @param AddressVerifyReq $addressVerifyReq
  171. * @param mixed $apiCredential - Optional API credential - can either be
  172. * a username configured in sdk_config.ini or a ICredential object
  173. * created dynamically
  174. * @return AddressVerifyResponseType
  175. * @throws APIException
  176. */
  177. public function AddressVerify($addressVerifyReq, $apiCredential = NULL) {
  178. $this->setStandardParams($addressVerifyReq->AddressVerifyRequest);
  179. $ret = new AddressVerifyResponseType();
  180. $resp = $this->call('PayPalAPI', 'AddressVerify', $addressVerifyReq, $apiCredential);
  181. $ret->init(PPUtils::xmlToArray($resp));
  182. return $ret;
  183. }
  184. /**
  185. * Service Call: EnterBoarding
  186. * @param EnterBoardingReq $enterBoardingReq
  187. * @param mixed $apiCredential - Optional API credential - can either be
  188. * a username configured in sdk_config.ini or a ICredential object
  189. * created dynamically
  190. * @return EnterBoardingResponseType
  191. * @throws APIException
  192. */
  193. public function EnterBoarding($enterBoardingReq, $apiCredential = NULL) {
  194. $this->setStandardParams($enterBoardingReq->EnterBoardingRequest);
  195. $ret = new EnterBoardingResponseType();
  196. $resp = $this->call('PayPalAPI', 'EnterBoarding', $enterBoardingReq, $apiCredential);
  197. $ret->init(PPUtils::xmlToArray($resp));
  198. return $ret;
  199. }
  200. /**
  201. * Service Call: GetBoardingDetails
  202. * @param GetBoardingDetailsReq $getBoardingDetailsReq
  203. * @param mixed $apiCredential - Optional API credential - can either be
  204. * a username configured in sdk_config.ini or a ICredential object
  205. * created dynamically
  206. * @return GetBoardingDetailsResponseType
  207. * @throws APIException
  208. */
  209. public function GetBoardingDetails($getBoardingDetailsReq, $apiCredential = NULL) {
  210. $this->setStandardParams($getBoardingDetailsReq->GetBoardingDetailsRequest);
  211. $ret = new GetBoardingDetailsResponseType();
  212. $resp = $this->call('PayPalAPI', 'GetBoardingDetails', $getBoardingDetailsReq, $apiCredential);
  213. $ret->init(PPUtils::xmlToArray($resp));
  214. return $ret;
  215. }
  216. /**
  217. * Service Call: CreateMobilePayment
  218. * @param CreateMobilePaymentReq $createMobilePaymentReq
  219. * @param mixed $apiCredential - Optional API credential - can either be
  220. * a username configured in sdk_config.ini or a ICredential object
  221. * created dynamically
  222. * @return CreateMobilePaymentResponseType
  223. * @throws APIException
  224. */
  225. public function CreateMobilePayment($createMobilePaymentReq, $apiCredential = NULL) {
  226. $this->setStandardParams($createMobilePaymentReq->CreateMobilePaymentRequest);
  227. $ret = new CreateMobilePaymentResponseType();
  228. $resp = $this->call('PayPalAPI', 'CreateMobilePayment', $createMobilePaymentReq, $apiCredential);
  229. $ret->init(PPUtils::xmlToArray($resp));
  230. return $ret;
  231. }
  232. /**
  233. * Service Call: GetMobileStatus
  234. * @param GetMobileStatusReq $getMobileStatusReq
  235. * @param mixed $apiCredential - Optional API credential - can either be
  236. * a username configured in sdk_config.ini or a ICredential object
  237. * created dynamically
  238. * @return GetMobileStatusResponseType
  239. * @throws APIException
  240. */
  241. public function GetMobileStatus($getMobileStatusReq, $apiCredential = NULL) {
  242. $this->setStandardParams($getMobileStatusReq->GetMobileStatusRequest);
  243. $ret = new GetMobileStatusResponseType();
  244. $resp = $this->call('PayPalAPI', 'GetMobileStatus', $getMobileStatusReq, $apiCredential);
  245. $ret->init(PPUtils::xmlToArray($resp));
  246. return $ret;
  247. }
  248. /**
  249. * Service Call: SetMobileCheckout
  250. * @param SetMobileCheckoutReq $setMobileCheckoutReq
  251. * @param mixed $apiCredential - Optional API credential - can either be
  252. * a username configured in sdk_config.ini or a ICredential object
  253. * created dynamically
  254. * @return SetMobileCheckoutResponseType
  255. * @throws APIException
  256. */
  257. public function SetMobileCheckout($setMobileCheckoutReq, $apiCredential = NULL) {
  258. $this->setStandardParams($setMobileCheckoutReq->SetMobileCheckoutRequest);
  259. $ret = new SetMobileCheckoutResponseType();
  260. $resp = $this->call('PayPalAPI', 'SetMobileCheckout', $setMobileCheckoutReq, $apiCredential);
  261. $ret->init(PPUtils::xmlToArray($resp));
  262. return $ret;
  263. }
  264. /**
  265. * Service Call: DoMobileCheckoutPayment
  266. * @param DoMobileCheckoutPaymentReq $doMobileCheckoutPaymentReq
  267. * @param mixed $apiCredential - Optional API credential - can either be
  268. * a username configured in sdk_config.ini or a ICredential object
  269. * created dynamically
  270. * @return DoMobileCheckoutPaymentResponseType
  271. * @throws APIException
  272. */
  273. public function DoMobileCheckoutPayment($doMobileCheckoutPaymentReq, $apiCredential = NULL) {
  274. $this->setStandardParams($doMobileCheckoutPaymentReq->DoMobileCheckoutPaymentRequest);
  275. $ret = new DoMobileCheckoutPaymentResponseType();
  276. $resp = $this->call('PayPalAPI', 'DoMobileCheckoutPayment', $doMobileCheckoutPaymentReq, $apiCredential);
  277. $ret->init(PPUtils::xmlToArray($resp));
  278. return $ret;
  279. }
  280. /**
  281. * Service Call: GetBalance
  282. * @param GetBalanceReq $getBalanceReq
  283. * @param mixed $apiCredential - Optional API credential - can either be
  284. * a username configured in sdk_config.ini or a ICredential object
  285. * created dynamically
  286. * @return GetBalanceResponseType
  287. * @throws APIException
  288. */
  289. public function GetBalance($getBalanceReq, $apiCredential = NULL) {
  290. $this->setStandardParams($getBalanceReq->GetBalanceRequest);
  291. $ret = new GetBalanceResponseType();
  292. $resp = $this->call('PayPalAPI', 'GetBalance', $getBalanceReq, $apiCredential);
  293. $ret->init(PPUtils::xmlToArray($resp));
  294. return $ret;
  295. }
  296. /**
  297. * Service Call: GetPalDetails
  298. * @param GetPalDetailsReq $getPalDetailsReq
  299. * @param mixed $apiCredential - Optional API credential - can either be
  300. * a username configured in sdk_config.ini or a ICredential object
  301. * created dynamically
  302. * @return GetPalDetailsResponseType
  303. * @throws APIException
  304. */
  305. public function GetPalDetails($getPalDetailsReq, $apiCredential = NULL) {
  306. $this->setStandardParams($getPalDetailsReq->GetPalDetailsRequest);
  307. $ret = new GetPalDetailsResponseType();
  308. $resp = $this->call('PayPalAPI', 'GetPalDetails', $getPalDetailsReq, $apiCredential);
  309. $ret->init(PPUtils::xmlToArray($resp));
  310. return $ret;
  311. }
  312. /**
  313. * Service Call: DoExpressCheckoutPayment
  314. * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq
  315. * @param mixed $apiCredential - Optional API credential - can either be
  316. * a username configured in sdk_config.ini or a ICredential object
  317. * created dynamically
  318. * @return DoExpressCheckoutPaymentResponseType
  319. * @throws APIException
  320. */
  321. public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiCredential = NULL) {
  322. $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest);
  323. $ret = new DoExpressCheckoutPaymentResponseType();
  324. $resp = $this->call('PayPalAPIAA', 'DoExpressCheckoutPayment', $doExpressCheckoutPaymentReq, $apiCredential);
  325. $ret->init(PPUtils::xmlToArray($resp));
  326. return $ret;
  327. }
  328. /**
  329. * Service Call: DoUATPExpressCheckoutPayment
  330. * @param DoUATPExpressCheckoutPaymentReq $doUATPExpressCheckoutPaymentReq
  331. * @param mixed $apiCredential - Optional API credential - can either be
  332. * a username configured in sdk_config.ini or a ICredential object
  333. * created dynamically
  334. * @return DoUATPExpressCheckoutPaymentResponseType
  335. * @throws APIException
  336. */
  337. public function DoUATPExpressCheckoutPayment($doUATPExpressCheckoutPaymentReq, $apiCredential = NULL) {
  338. $this->setStandardParams($doUATPExpressCheckoutPaymentReq->DoUATPExpressCheckoutPaymentRequest);
  339. $ret = new DoUATPExpressCheckoutPaymentResponseType();
  340. $resp = $this->call('PayPalAPIAA', 'DoUATPExpressCheckoutPayment', $doUATPExpressCheckoutPaymentReq, $apiCredential);
  341. $ret->init(PPUtils::xmlToArray($resp));
  342. return $ret;
  343. }
  344. /**
  345. * Service Call: SetAuthFlowParam
  346. * @param SetAuthFlowParamReq $setAuthFlowParamReq
  347. * @param mixed $apiCredential - Optional API credential - can either be
  348. * a username configured in sdk_config.ini or a ICredential object
  349. * created dynamically
  350. * @return SetAuthFlowParamResponseType
  351. * @throws APIException
  352. */
  353. public function SetAuthFlowParam($setAuthFlowParamReq, $apiCredential = NULL) {
  354. $this->setStandardParams($setAuthFlowParamReq->SetAuthFlowParamRequest);
  355. $ret = new SetAuthFlowParamResponseType();
  356. $resp = $this->call('PayPalAPIAA', 'SetAuthFlowParam', $setAuthFlowParamReq, $apiCredential);
  357. $ret->init(PPUtils::xmlToArray($resp));
  358. return $ret;
  359. }
  360. /**
  361. * Service Call: GetAuthDetails
  362. * @param GetAuthDetailsReq $getAuthDetailsReq
  363. * @param mixed $apiCredential - Optional API credential - can either be
  364. * a username configured in sdk_config.ini or a ICredential object
  365. * created dynamically
  366. * @return GetAuthDetailsResponseType
  367. * @throws APIException
  368. */
  369. public function GetAuthDetails($getAuthDetailsReq, $apiCredential = NULL) {
  370. $this->setStandardParams($getAuthDetailsReq->GetAuthDetailsRequest);
  371. $ret = new GetAuthDetailsResponseType();
  372. $resp = $this->call('PayPalAPIAA', 'GetAuthDetails', $getAuthDetailsReq, $apiCredential);
  373. $ret->init(PPUtils::xmlToArray($resp));
  374. return $ret;
  375. }
  376. /**
  377. * Service Call: SetAccessPermissions
  378. * @param SetAccessPermissionsReq $setAccessPermissionsReq
  379. * @param mixed $apiCredential - Optional API credential - can either be
  380. * a username configured in sdk_config.ini or a ICredential object
  381. * created dynamically
  382. * @return SetAccessPermissionsResponseType
  383. * @throws APIException
  384. */
  385. public function SetAccessPermissions($setAccessPermissionsReq, $apiCredential = NULL) {
  386. $this->setStandardParams($setAccessPermissionsReq->SetAccessPermissionsRequest);
  387. $ret = new SetAccessPermissionsResponseType();
  388. $resp = $this->call('PayPalAPIAA', 'SetAccessPermissions', $setAccessPermissionsReq, $apiCredential);
  389. $ret->init(PPUtils::xmlToArray($resp));
  390. return $ret;
  391. }
  392. /**
  393. * Service Call: UpdateAccessPermissions
  394. * @param UpdateAccessPermissionsReq $updateAccessPermissionsReq
  395. * @param mixed $apiCredential - Optional API credential - can either be
  396. * a username configured in sdk_config.ini or a ICredential object
  397. * created dynamically
  398. * @return UpdateAccessPermissionsResponseType
  399. * @throws APIException
  400. */
  401. public function UpdateAccessPermissions($updateAccessPermissionsReq, $apiCredential = NULL) {
  402. $this->setStandardParams($updateAccessPermissionsReq->UpdateAccessPermissionsRequest);
  403. $ret = new UpdateAccessPermissionsResponseType();
  404. $resp = $this->call('PayPalAPIAA', 'UpdateAccessPermissions', $updateAccessPermissionsReq, $apiCredential);
  405. $ret->init(PPUtils::xmlToArray($resp));
  406. return $ret;
  407. }
  408. /**
  409. * Service Call: GetAccessPermissionDetails
  410. * @param GetAccessPermissionDetailsReq $getAccessPermissionDetailsReq
  411. * @param mixed $apiCredential - Optional API credential - can either be
  412. * a username configured in sdk_config.ini or a ICredential object
  413. * created dynamically
  414. * @return GetAccessPermissionDetailsResponseType
  415. * @throws APIException
  416. */
  417. public function GetAccessPermissionDetails($getAccessPermissionDetailsReq, $apiCredential = NULL) {
  418. $this->setStandardParams($getAccessPermissionDetailsReq->GetAccessPermissionDetailsRequest);
  419. $ret = new GetAccessPermissionDetailsResponseType();
  420. $resp = $this->call('PayPalAPIAA', 'GetAccessPermissionDetails', $getAccessPermissionDetailsReq, $apiCredential);
  421. $ret->init(PPUtils::xmlToArray($resp));
  422. return $ret;
  423. }
  424. /**
  425. * Service Call: GetIncentiveEvaluation
  426. * @param GetIncentiveEvaluationReq $getIncentiveEvaluationReq
  427. * @param mixed $apiCredential - Optional API credential - can either be
  428. * a username configured in sdk_config.ini or a ICredential object
  429. * created dynamically
  430. * @return GetIncentiveEvaluationResponseType
  431. * @throws APIException
  432. */
  433. public function GetIncentiveEvaluation($getIncentiveEvaluationReq, $apiCredential = NULL) {
  434. $this->setStandardParams($getIncentiveEvaluationReq->GetIncentiveEvaluationRequest);
  435. $ret = new GetIncentiveEvaluationResponseType();
  436. $resp = $this->call('PayPalAPIAA', 'GetIncentiveEvaluation', $getIncentiveEvaluationReq, $apiCredential);
  437. $ret->init(PPUtils::xmlToArray($resp));
  438. return $ret;
  439. }
  440. /**
  441. * Service Call: SetExpressCheckout
  442. * @param SetExpressCheckoutReq $setExpressCheckoutReq
  443. * @param mixed $apiCredential - Optional API credential - can either be
  444. * a username configured in sdk_config.ini or a ICredential object
  445. * created dynamically
  446. * @return SetExpressCheckoutResponseType
  447. * @throws APIException
  448. */
  449. public function SetExpressCheckout($setExpressCheckoutReq, $apiCredential = NULL) {
  450. $this->setStandardParams($setExpressCheckoutReq->SetExpressCheckoutRequest);
  451. $ret = new SetExpressCheckoutResponseType();
  452. $resp = $this->call('PayPalAPIAA', 'SetExpressCheckout', $setExpressCheckoutReq, $apiCredential);
  453. $ret->init(PPUtils::xmlToArray($resp));
  454. return $ret;
  455. }
  456. /**
  457. * Service Call: ExecuteCheckoutOperations
  458. * @param ExecuteCheckoutOperationsReq $executeCheckoutOperationsReq
  459. * @param mixed $apiCredential - Optional API credential - can either be
  460. * a username configured in sdk_config.ini or a ICredential object
  461. * created dynamically
  462. * @return ExecuteCheckoutOperationsResponseType
  463. * @throws APIException
  464. */
  465. public function ExecuteCheckoutOperations($executeCheckoutOperationsReq, $apiCredential = NULL) {
  466. $this->setStandardParams($executeCheckoutOperationsReq->ExecuteCheckoutOperationsRequest);
  467. $ret = new ExecuteCheckoutOperationsResponseType();
  468. $resp = $this->call('PayPalAPIAA', 'ExecuteCheckoutOperations', $executeCheckoutOperationsReq, $apiCredential);
  469. $ret->init(PPUtils::xmlToArray($resp));
  470. return $ret;
  471. }
  472. /**
  473. * Service Call: GetExpressCheckoutDetails
  474. * @param GetExpressCheckoutDetailsReq $getExpressCheckoutDetailsReq
  475. * @param mixed $apiCredential - Optional API credential - can either be
  476. * a username configured in sdk_config.ini or a ICredential object
  477. * created dynamically
  478. * @return GetExpressCheckoutDetailsResponseType
  479. * @throws APIException
  480. */
  481. public function GetExpressCheckoutDetails($getExpressCheckoutDetailsReq, $apiCredential = NULL) {
  482. $this->setStandardParams($getExpressCheckoutDetailsReq->GetExpressCheckoutDetailsRequest);
  483. $ret = new GetExpressCheckoutDetailsResponseType();
  484. $resp = $this->call('PayPalAPIAA', 'GetExpressCheckoutDetails', $getExpressCheckoutDetailsReq, $apiCredential);
  485. $ret->init(PPUtils::xmlToArray($resp));
  486. return $ret;
  487. }
  488. /**
  489. * Service Call: DoDirectPayment
  490. * @param DoDirectPaymentReq $doDirectPaymentReq
  491. * @param mixed $apiCredential - Optional API credential - can either be
  492. * a username configured in sdk_config.ini or a ICredential object
  493. * created dynamically
  494. * @return DoDirectPaymentResponseType
  495. * @throws APIException
  496. */
  497. public function DoDirectPayment($doDirectPaymentReq, $apiCredential = NULL) {
  498. $this->setStandardParams($doDirectPaymentReq->DoDirectPaymentRequest);
  499. $ret = new DoDirectPaymentResponseType();
  500. $resp = $this->call('PayPalAPIAA', 'DoDirectPayment', $doDirectPaymentReq, $apiCredential);
  501. $ret->init(PPUtils::xmlToArray($resp));
  502. return $ret;
  503. }
  504. /**
  505. * Service Call: ManagePendingTransactionStatus
  506. * @param ManagePendingTransactionStatusReq $managePendingTransactionStatusReq
  507. * @param mixed $apiCredential - Optional API credential - can either be
  508. * a username configured in sdk_config.ini or a ICredential object
  509. * created dynamically
  510. * @return ManagePendingTransactionStatusResponseType
  511. * @throws APIException
  512. */
  513. public function ManagePendingTransactionStatus($managePendingTransactionStatusReq, $apiCredential = NULL) {
  514. $this->setStandardParams($managePendingTransactionStatusReq->ManagePendingTransactionStatusRequest);
  515. $ret = new ManagePendingTransactionStatusResponseType();
  516. $resp = $this->call('PayPalAPIAA', 'ManagePendingTransactionStatus', $managePendingTransactionStatusReq, $apiCredential);
  517. $ret->init(PPUtils::xmlToArray($resp));
  518. return $ret;
  519. }
  520. /**
  521. * Service Call: DoCancel
  522. * @param DoCancelReq $doCancelReq
  523. * @param mixed $apiCredential - Optional API credential - can either be
  524. * a username configured in sdk_config.ini or a ICredential object
  525. * created dynamically
  526. * @return DoCancelResponseType
  527. * @throws APIException
  528. */
  529. public function DoCancel($doCancelReq, $apiCredential = NULL) {
  530. $this->setStandardParams($doCancelReq->DoCancelRequest);
  531. $ret = new DoCancelResponseType();
  532. $resp = $this->call('PayPalAPIAA', 'DoCancel', $doCancelReq, $apiCredential);
  533. $ret->init(PPUtils::xmlToArray($resp));
  534. return $ret;
  535. }
  536. /**
  537. * Service Call: DoCapture
  538. * @param DoCaptureReq $doCaptureReq
  539. * @param mixed $apiCredential - Optional API credential - can either be
  540. * a username configured in sdk_config.ini or a ICredential object
  541. * created dynamically
  542. * @return DoCaptureResponseType
  543. * @throws APIException
  544. */
  545. public function DoCapture($doCaptureReq, $apiCredential = NULL) {
  546. $this->setStandardParams($doCaptureReq->DoCaptureRequest);
  547. $ret = new DoCaptureResponseType();
  548. $resp = $this->call('PayPalAPIAA', 'DoCapture', $doCaptureReq, $apiCredential);
  549. $ret->init(PPUtils::xmlToArray($resp));
  550. return $ret;
  551. }
  552. /**
  553. * Service Call: DoReauthorization
  554. * @param DoReauthorizationReq $doReauthorizationReq
  555. * @param mixed $apiCredential - Optional API credential - can either be
  556. * a username configured in sdk_config.ini or a ICredential object
  557. * created dynamically
  558. * @return DoReauthorizationResponseType
  559. * @throws APIException
  560. */
  561. public function DoReauthorization($doReauthorizationReq, $apiCredential = NULL) {
  562. $this->setStandardParams($doReauthorizationReq->DoReauthorizationRequest);
  563. $ret = new DoReauthorizationResponseType();
  564. $resp = $this->call('PayPalAPIAA', 'DoReauthorization', $doReauthorizationReq, $apiCredential);
  565. $ret->init(PPUtils::xmlToArray($resp));
  566. return $ret;
  567. }
  568. /**
  569. * Service Call: DoVoid
  570. * @param DoVoidReq $doVoidReq
  571. * @param mixed $apiCredential - Optional API credential - can either be
  572. * a username configured in sdk_config.ini or a ICredential object
  573. * created dynamically
  574. * @return DoVoidResponseType
  575. * @throws APIException
  576. */
  577. public function DoVoid($doVoidReq, $apiCredential = NULL) {
  578. $this->setStandardParams($doVoidReq->DoVoidRequest);
  579. $ret = new DoVoidResponseType();
  580. $resp = $this->call('PayPalAPIAA', 'DoVoid', $doVoidReq, $apiCredential);
  581. $ret->init(PPUtils::xmlToArray($resp));
  582. return $ret;
  583. }
  584. /**
  585. * Service Call: DoAuthorization
  586. * @param DoAuthorizationReq $doAuthorizationReq
  587. * @param mixed $apiCredential - Optional API credential - can either be
  588. * a username configured in sdk_config.ini or a ICredential object
  589. * created dynamically
  590. * @return DoAuthorizationResponseType
  591. * @throws APIException
  592. */
  593. public function DoAuthorization($doAuthorizationReq, $apiCredential = NULL) {
  594. $this->setStandardParams($doAuthorizationReq->DoAuthorizationRequest);
  595. $ret = new DoAuthorizationResponseType();
  596. $resp = $this->call('PayPalAPIAA', 'DoAuthorization', $doAuthorizationReq, $apiCredential);
  597. $ret->init(PPUtils::xmlToArray($resp));
  598. return $ret;
  599. }
  600. /**
  601. * Service Call: SetCustomerBillingAgreement
  602. * @param SetCustomerBillingAgreementReq $setCustomerBillingAgreementReq
  603. * @param mixed $apiCredential - Optional API credential - can either be
  604. * a username configured in sdk_config.ini or a ICredential object
  605. * created dynamically
  606. * @return SetCustomerBillingAgreementResponseType
  607. * @throws APIException
  608. */
  609. public function SetCustomerBillingAgreement($setCustomerBillingAgreementReq, $apiCredential = NULL) {
  610. $this->setStandardParams($setCustomerBillingAgreementReq->SetCustomerBillingAgreementRequest);
  611. $ret = new SetCustomerBillingAgreementResponseType();
  612. $resp = $this->call('PayPalAPIAA', 'SetCustomerBillingAgreement', $setCustomerBillingAgreementReq, $apiCredential);
  613. $ret->init(PPUtils::xmlToArray($resp));
  614. return $ret;
  615. }
  616. /**
  617. * Service Call: GetBillingAgreementCustomerDetails
  618. * @param GetBillingAgreementCustomerDetailsReq $getBillingAgreementCustomerDetailsReq
  619. * @param mixed $apiCredential - Optional API credential - can either be
  620. * a username configured in sdk_config.ini or a ICredential object
  621. * created dynamically
  622. * @return GetBillingAgreementCustomerDetailsResponseType
  623. * @throws APIException
  624. */
  625. public function GetBillingAgreementCustomerDetails($getBillingAgreementCustomerDetailsReq, $apiCredential = NULL) {
  626. $this->setStandardParams($getBillingAgreementCustomerDetailsReq->GetBillingAgreementCustomerDetailsRequest);
  627. $ret = new GetBillingAgreementCustomerDetailsResponseType();
  628. $resp = $this->call('PayPalAPIAA', 'GetBillingAgreementCustomerDetails', $getBillingAgreementCustomerDetailsReq, $apiCredential);
  629. $ret->init(PPUtils::xmlToArray($resp));
  630. return $ret;
  631. }
  632. /**
  633. * Service Call: CreateBillingAgreement
  634. * @param CreateBillingAgreementReq $createBillingAgreementReq
  635. * @param mixed $apiCredential - Optional API credential - can either be
  636. * a username configured in sdk_config.ini or a ICredential object
  637. * created dynamically
  638. * @return CreateBillingAgreementResponseType
  639. * @throws APIException
  640. */
  641. public function CreateBillingAgreement($createBillingAgreementReq, $apiCredential = NULL) {
  642. $this->setStandardParams($createBillingAgreementReq->CreateBillingAgreementRequest);
  643. $ret = new CreateBillingAgreementResponseType();
  644. $resp = $this->call('PayPalAPIAA', 'CreateBillingAgreement', $createBillingAgreementReq, $apiCredential);
  645. $ret->init(PPUtils::xmlToArray($resp));
  646. return $ret;
  647. }
  648. /**
  649. * Service Call: DoReferenceTransaction
  650. * @param DoReferenceTransactionReq $doReferenceTransactionReq
  651. * @param mixed $apiCredential - Optional API credential - can either be
  652. * a username configured in sdk_config.ini or a ICredential object
  653. * created dynamically
  654. * @return DoReferenceTransactionResponseType
  655. * @throws APIException
  656. */
  657. public function DoReferenceTransaction($doReferenceTransactionReq, $apiCredential = NULL) {
  658. $this->setStandardParams($doReferenceTransactionReq->DoReferenceTransactionRequest);
  659. $ret = new DoReferenceTransactionResponseType();
  660. $resp = $this->call('PayPalAPIAA', 'DoReferenceTransaction', $doReferenceTransactionReq, $apiCredential);
  661. $ret->init(PPUtils::xmlToArray($resp));
  662. return $ret;
  663. }
  664. /**
  665. * Service Call: DoNonReferencedCredit
  666. * @param DoNonReferencedCreditReq $doNonReferencedCreditReq
  667. * @param mixed $apiCredential - Optional API credential - can either be
  668. * a username configured in sdk_config.ini or a ICredential object
  669. * created dynamically
  670. * @return DoNonReferencedCreditResponseType
  671. * @throws APIException
  672. */
  673. public function DoNonReferencedCredit($doNonReferencedCreditReq, $apiCredential = NULL) {
  674. $this->setStandardParams($doNonReferencedCreditReq->DoNonReferencedCreditRequest);
  675. $ret = new DoNonReferencedCreditResponseType();
  676. $resp = $this->call('PayPalAPIAA', 'DoNonReferencedCredit', $doNonReferencedCreditReq, $apiCredential);
  677. $ret->init(PPUtils::xmlToArray($resp));
  678. return $ret;
  679. }
  680. /**
  681. * Service Call: DoUATPAuthorization
  682. * @param DoUATPAuthorizationReq $doUATPAuthorizationReq
  683. * @param mixed $apiCredential - Optional API credential - can either be
  684. * a username configured in sdk_config.ini or a ICredential object
  685. * created dynamically
  686. * @return DoUATPAuthorizationResponseType
  687. * @throws APIException
  688. */
  689. public function DoUATPAuthorization($doUATPAuthorizationReq, $apiCredential = NULL) {
  690. $this->setStandardParams($doUATPAuthorizationReq->DoUATPAuthorizationRequest);
  691. $ret = new DoUATPAuthorizationResponseType();
  692. $resp = $this->call('PayPalAPIAA', 'DoUATPAuthorization', $doUATPAuthorizationReq, $apiCredential);
  693. $ret->init(PPUtils::xmlToArray($resp));
  694. return $ret;
  695. }
  696. /**
  697. * Service Call: CreateRecurringPaymentsProfile
  698. * @param CreateRecurringPaymentsProfileReq $createRecurringPaymentsProfileReq
  699. * @param mixed $apiCredential - Optional API credential - can either be
  700. * a username configured in sdk_config.ini or a ICredential object
  701. * created dynamically
  702. * @return CreateRecurringPaymentsProfileResponseType
  703. * @throws APIException
  704. */
  705. public function CreateRecurringPaymentsProfile($createRecurringPaymentsProfileReq, $apiCredential = NULL) {
  706. $this->setStandardParams($createRecurringPaymentsProfileReq->CreateRecurringPaymentsProfileRequest);
  707. $ret = new CreateRecurringPaymentsProfileResponseType();
  708. $resp = $this->call('PayPalAPIAA', 'CreateRecurringPaymentsProfile', $createRecurringPaymentsProfileReq, $apiCredential);
  709. $ret->init(PPUtils::xmlToArray($resp));
  710. return $ret;
  711. }
  712. /**
  713. * Service Call: GetRecurringPaymentsProfileDetails
  714. * @param GetRecurringPaymentsProfileDetailsReq $getRecurringPaymentsProfileDetailsReq
  715. * @param mixed $apiCredential - Optional API credential - can either be
  716. * a username configured in sdk_config.ini or a ICredential object
  717. * created dynamically
  718. * @return GetRecurringPaymentsProfileDetailsResponseType
  719. * @throws APIException
  720. */
  721. public function GetRecurringPaymentsProfileDetails($getRecurringPaymentsProfileDetailsReq, $apiCredential = NULL) {
  722. $this->setStandardParams($getRecurringPaymentsProfileDetailsReq->GetRecurringPaymentsProfileDetailsRequest);
  723. $ret = new GetRecurringPaymentsProfileDetailsResponseType();
  724. $resp = $this->call('PayPalAPIAA', 'GetRecurringPaymentsProfileDetails', $getRecurringPaymentsProfileDetailsReq, $apiCredential);
  725. $ret->init(PPUtils::xmlToArray($resp));
  726. return $ret;
  727. }
  728. /**
  729. * Service Call: ManageRecurringPaymentsProfileStatus
  730. * @param ManageRecurringPaymentsProfileStatusReq $manageRecurringPaymentsProfileStatusReq
  731. * @param mixed $apiCredential - Optional API credential - can either be
  732. * a username configured in sdk_config.ini or a ICredential object
  733. * created dynamically
  734. * @return ManageRecurringPaymentsProfileStatusResponseType
  735. * @throws APIException
  736. */
  737. public function ManageRecurringPaymentsProfileStatus($manageRecurringPaymentsProfileStatusReq, $apiCredential = NULL) {
  738. $this->setStandardParams($manageRecurringPaymentsProfileStatusReq->ManageRecurringPaymentsProfileStatusRequest);
  739. $ret = new ManageRecurringPaymentsProfileStatusResponseType();
  740. $resp = $this->call('PayPalAPIAA', 'ManageRecurringPaymentsProfileStatus', $manageRecurringPaymentsProfileStatusReq, $apiCredential);
  741. $ret->init(PPUtils::xmlToArray($resp));
  742. return $ret;
  743. }
  744. /**
  745. * Service Call: BillOutstandingAmount
  746. * @param BillOutstandingAmountReq $billOutstandingAmountReq
  747. * @param mixed $apiCredential - Optional API credential - can either be
  748. * a username configured in sdk_config.ini or a ICredential object
  749. * created dynamically
  750. * @return BillOutstandingAmountResponseType
  751. * @throws APIException
  752. */
  753. public function BillOutstandingAmount($billOutstandingAmountReq, $apiCredential = NULL) {
  754. $this->setStandardParams($billOutstandingAmountReq->BillOutstandingAmountRequest);
  755. $ret = new BillOutstandingAmountResponseType();
  756. $resp = $this->call('PayPalAPIAA', 'BillOutstandingAmount', $billOutstandingAmountReq, $apiCredential);
  757. $ret->init(PPUtils::xmlToArray($resp));
  758. return $ret;
  759. }
  760. /**
  761. * Service Call: UpdateRecurringPaymentsProfile
  762. * @param UpdateRecurringPaymentsProfileReq $updateRecurringPaymentsProfileReq
  763. * @param mixed $apiCredential - Optional API credential - can either be
  764. * a username configured in sdk_config.ini or a ICredential object
  765. * created dynamically
  766. * @return UpdateRecurringPaymentsProfileResponseType
  767. * @throws APIException
  768. */
  769. public function UpdateRecurringPaymentsProfile($updateRecurringPaymentsProfileReq, $apiCredential = NULL) {
  770. $this->setStandardParams($updateRecurringPaymentsProfileReq->UpdateRecurringPaymentsProfileRequest);
  771. $ret = new UpdateRecurringPaymentsProfileResponseType();
  772. $resp = $this->call('PayPalAPIAA', 'UpdateRecurringPaymentsProfile', $updateRecurringPaymentsProfileReq, $apiCredential);
  773. $ret->init(PPUtils::xmlToArray($resp));
  774. return $ret;
  775. }
  776. /**
  777. * Service Call: ReverseTransaction
  778. * @param ReverseTransactionReq $reverseTransactionReq
  779. * @param mixed $apiCredential - Optional API credential - can either be
  780. * a username configured in sdk_config.ini or a ICredential object
  781. * created dynamically
  782. * @return ReverseTransactionResponseType
  783. * @throws APIException
  784. */
  785. public function ReverseTransaction($reverseTransactionReq, $apiCredential = NULL) {
  786. $this->setStandardParams($reverseTransactionReq->ReverseTransactionRequest);
  787. $ret = new ReverseTransactionResponseType();
  788. $resp = $this->call('PayPalAPIAA', 'ReverseTransaction', $reverseTransactionReq, $apiCredential);
  789. $ret->init(PPUtils::xmlToArray($resp));
  790. return $ret;
  791. }
  792. /**
  793. * Service Call: ExternalRememberMeOptOut
  794. * @param ExternalRememberMeOptOutReq $externalRememberMeOptOutReq
  795. * @param mixed $apiCredential - Optional API credential - can either be
  796. * a username configured in sdk_config.ini or a ICredential object
  797. * created dynamically
  798. * @return ExternalRememberMeOptOutResponseType
  799. * @throws APIException
  800. */
  801. public function ExternalRememberMeOptOut($externalRememberMeOptOutReq, $apiCredential = NULL) {
  802. $this->setStandardParams($externalRememberMeOptOutReq->ExternalRememberMeOptOutRequest);
  803. $ret = new ExternalRememberMeOptOutResponseType();
  804. $resp = $this->call('PayPalAPIAA', 'ExternalRememberMeOptOut', $externalRememberMeOptOutReq, $apiCredential);
  805. $ret->init(PPUtils::xmlToArray($resp));
  806. return $ret;
  807. }
  808. }