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()); }
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()); }