示例#1
0
 public function balance(BalanceRequest $balanceRequest)
 {
     $paramArray = $balanceRequest->getDefinedParams(Uri::BALANCE);
     $apiNetworkClient = new ApiNetworkClient($this->options);
     $response = $apiNetworkClient->request($this->getApiUri(Uri::BALANCE), $paramArray);
     return new Responses\BalanceResponse($response->getBodyXmlDecoded());
 }
示例#2
0
 public function returnPayment(ReturnPaymentRequest $returnPaymentRequest)
 {
     $paramArray = $returnPaymentRequest->getDefinedParams(MWSUri::RETURN_PAYMENT);
     $apiNetworkClient = new ApiNetworkClient($this->options);
     $response = $apiNetworkClient->request($this->getApiUri(MWSUri::RETURN_PAYMENT), $paramArray);
     return new Responses\ReturnPaymentResponse($response->getBodyXmlDecoded());
 }