PayWithAmazon\ClientTest::testRefund PHP Метод

testRefund() публичный Метод

public testRefund ( )
    public function testRefund()
    {
        $client = new Client($this->configParams);
        $fieldMappings = array('merchant_id' => 'SellerId', 'amazon_capture_id' => 'AmazonCaptureId', 'refund_reference_id' => 'RefundReferenceId', 'refund_amount' => 'RefundAmount.Amount', 'currency_code' => 'RefundAmount.CurrencyCode', 'seller_refund_note' => 'SellerRefundNote', 'soft_descriptor' => 'SoftDescriptor', 'mws_auth_token' => 'MWSAuthToken');
        $action = 'Refund';
        $parameters = $this->setParametersAndPost($fieldMappings, $action);
        $expectedParameters = $parameters['expectedParameters'];
        $apiCallParams = $parameters['apiCallParams'];
        $expectedStringParams = $this->callPrivateMethod($client, 'calculateSignatureAndParametersToString', $expectedParameters);
        $response = $client->refund($apiCallParams);
        $apiParametersString = $client->getParameters();
        $this->assertEquals($apiParametersString, $expectedStringParams);
    }