src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
private function _convertCapture($request) {
        
        $parameters = array();
        $parameters['Action'] = 'Capture';
        if ($request->isSetSellerId()) {
            $parameters['SellerId'] =  $request->getSellerId();
        }
        if ($request->isSetAmazonAuthorizationId()) {
            $parameters['AmazonAuthorizationId'] =  $request->getAmazonAuthorizationId();
        }
        if ($request->isSetCaptureReferenceId()) {
            $parameters['CaptureReferenceId'] =  $request->getCaptureReferenceId();
        }
        if ($request->isSetCaptureAmount()) {
            $captureAmountcaptureRequest = $request->getCaptureAmount();
            if ($captureAmountcaptureRequest->isSetAmount()) {
                $parameters['CaptureAmount' . '.' . 'Amount'] =  $captureAmountcaptureRequest->getAmount();
            }
            if ($captureAmountcaptureRequest->isSetCurrencyCode()) {
                $parameters['CaptureAmount' . '.' . 'CurrencyCode'] =  $captureAmountcaptureRequest->getCurrencyCode();
            }
        }
        if ($request->isSetSellerCaptureNote()) {
            $parameters['SellerCaptureNote'] =  $request->getSellerCaptureNote();
        }
        if ($request->isSetSoftDescriptor()) {
            $parameters['SoftDescriptor'] =  $request->getSoftDescriptor();
        }

        return $parameters;
    }
private function _convertCapture($request) {
        
        $parameters = array();
        $parameters['Action'] = 'Capture';
        if ($request->isSetSellerId()) {
            $parameters['SellerId'] =  $request->getSellerId();
        }
        if ($request->isSetAmazonAuthorizationId()) {
            $parameters['AmazonAuthorizationId'] =  $request->getAmazonAuthorizationId();
        }
        if ($request->isSetCaptureReferenceId()) {
            $parameters['CaptureReferenceId'] =  $request->getCaptureReferenceId();
        }
        if ($request->isSetCaptureAmount()) {
            $captureAmountcaptureRequest = $request->getCaptureAmount();
            if ($captureAmountcaptureRequest->isSetAmount()) {
                $parameters['CaptureAmount' . '.' . 'Amount'] =  $captureAmountcaptureRequest->getAmount();
            }
            if ($captureAmountcaptureRequest->isSetCurrencyCode()) {
                $parameters['CaptureAmount' . '.' . 'CurrencyCode'] =  $captureAmountcaptureRequest->getCurrencyCode();
            }
        }
        if ($request->isSetSellerCaptureNote()) {
            $parameters['SellerCaptureNote'] =  $request->getSellerCaptureNote();
        }
        if ($request->isSetSoftDescriptor()) {
            $parameters['SoftDescriptor'] =  $request->getSoftDescriptor();
        }

        return $parameters;
    }
private function _convertCapture ( $ request ) { $ parameters = array ( ) ; $ parameters [ 'Action' ] = 'Capture' ; if ( $ request -> isSetSellerId ( ) ) { $ parameters [ 'SellerId' ] = $ request -> getSellerId ( ) ; } if ( $ request -> isSetAmazonAuthorizationId ( ) ) { $ parameters [ 'AmazonAuthorizationId' ] = $ request -> getAmazonAuthorizationId ( ) ; } if ( $ request -> isSetCaptureReferenceId ( ) ) { $ parameters [ 'CaptureReferenceId' ] = $ request -> getCaptureReferenceId ( ) ; } if ( $ request -> isSetCaptureAmount ( ) ) { $ captureAmountcaptureRequest = $ request -> getCaptureAmount ( ) ; if ( $ captureAmountcaptureRequest -> isSetAmount ( ) ) { $ parameters [ 'CaptureAmount' . '.' . 'Amount' ] = $ captureAmountcaptureRequest -> getAmount ( ) ; } if ( $ captureAmountcaptureRequest -> isSetCurrencyCode ( ) ) { $ parameters [ 'CaptureAmount' . '.' . 'CurrencyCode' ] = $ captureAmountcaptureRequest -> getCurrencyCode ( ) ; } } if ( $ request -> isSetSellerCaptureNote ( ) ) { $ parameters [ 'SellerCaptureNote' ] = $ request -> getSellerCaptureNote ( ) ; } if ( $ request -> isSetSoftDescriptor ( ) ) { $ parameters [ 'SoftDescriptor' ] = $ request -> getSoftDescriptor ( ) ; } return $ parameters ; }
Convert CaptureRequest to name value pairs
Convert CaptureRequest to name value pairs