/** * Service Call: BillAgreementUpdate * * @param BillAgreementUpdateReq $billAgreementUpdateReq * * @return BAUpdateResponseType * @throws APIException */ public function BillAgreementUpdate($billAgreementUpdateReq, $apiUsername = null) { $this->setStandardParams($billAgreementUpdateReq->BAUpdateRequest); $ret = new BAUpdateResponseType(); $resp = $this->call("BillAgreementUpdate", $billAgreementUpdateReq, $apiUsername); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: BillAgreementUpdate * @param BillAgreementUpdateReq $billAgreementUpdateReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return BAUpdateResponseType * @throws APIException */ public function BillAgreementUpdate($billAgreementUpdateReq, $apiCredential = NULL) { $this->setStandardParams($billAgreementUpdateReq->BAUpdateRequest); $ret = new BAUpdateResponseType(); $resp = $this->call('PayPalAPI', 'BillAgreementUpdate', $billAgreementUpdateReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: BillAgreementUpdate * @param BillAgreementUpdateReq $billAgreementUpdateReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return BAUpdateResponseType * @throws APIException */ public function BillAgreementUpdate($billAgreementUpdateReq, $apiCredential = NULL) { $this->setStandardParams($billAgreementUpdateReq->BAUpdateRequest); $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $ret = new BAUpdateResponseType(); $resp = $this->call('PayPalAPI', 'BillAgreementUpdate', $billAgreementUpdateReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }