Пример #1
0
 /**
  * Service Call: ConvertCurrency
  * @param ConvertCurrencyRequest $convertCurrencyRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return ConvertCurrencyResponse
  * @throws APIException
  */
 public function ConvertCurrency($convertCurrencyRequest, $apiCredential = NULL)
 {
     $ret = new ConvertCurrencyResponse();
     $resp = $this->call('AdaptivePayments', 'ConvertCurrency', $convertCurrencyRequest, $apiCredential);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
Пример #2
0
 /**
  * Service Call: ConvertCurrency
  * @param ConvertCurrencyRequest $convertCurrencyRequest
  * @return ConvertCurrencyResponse
  * @throws APIException
  */
 public function ConvertCurrency($convertCurrencyRequest, $apiUsername = null)
 {
     $ret = new ConvertCurrencyResponse();
     $resp = $this->call("ConvertCurrency", $convertCurrencyRequest, $apiUsername);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
 /**
  * Service Call: ConvertCurrency
  * @param ConvertCurrencyRequest $convertCurrencyRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return ConvertCurrencyResponse
  * @throws APIException
  */
 public function ConvertCurrency($convertCurrencyRequest, $apiCredential = NULL)
 {
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new ConvertCurrencyResponse();
     $resp = $this->call('AdaptivePayments', 'ConvertCurrency', $convertCurrencyRequest, $apiContext, $handlers);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }