public function parameterize($method)
    {
        $parameterArray = parent::parameterize($method);

        if ('create' == $method) {
            if($this->getChecksumAction()) {
                $parameterArray['checksum_action'] = $this->getChecksumAction();
            }

            if($this->getShippingAddress()) {
                $parameterArray['shipping_address'] = $this->getShippingAddress();
            }

            if($this->getBillingAddress()) {
                $parameterArray['billing_address'] = $this->getBillingAddress();
            }

            if($this->getItems()) {
                $parameterArray['items'] = $this->getItems();
            }

            if($this->getShippingAmount()) {
                $parameterArray['shipping_amount'] = $this->getShippingAmount();
            }

            if($this->getHandlingAmount()) {
                $parameterArray['handling_amount'] = $this->getHandlingAmount();
            }

            if($this->getRequireReusablePayment()) {
                $parameterArray['require_reusable_payment'] = $this->getRequireReusablePayment();
            }

            if($this->getReusablePaymentDescription()) {
                $parameterArray['reusable_payment_description'] = $this->getReusablePaymentDescription();
            }

        }

        return $parameterArray;
    }
public function parameterize($method)
    {
        $parameterArray = parent::parameterize($method);

        if ('create' == $method) {
            if($this->getChecksumAction()) {
                $parameterArray['checksum_action'] = $this->getChecksumAction();
            }

            if($this->getShippingAddress()) {
                $parameterArray['shipping_address'] = $this->getShippingAddress();
            }

            if($this->getBillingAddress()) {
                $parameterArray['billing_address'] = $this->getBillingAddress();
            }

            if($this->getItems()) {
                $parameterArray['items'] = $this->getItems();
            }

            if($this->getShippingAmount()) {
                $parameterArray['shipping_amount'] = $this->getShippingAmount();
            }

            if($this->getHandlingAmount()) {
                $parameterArray['handling_amount'] = $this->getHandlingAmount();
            }

            if($this->getRequireReusablePayment()) {
                $parameterArray['require_reusable_payment'] = $this->getRequireReusablePayment();
            }

            if($this->getReusablePaymentDescription()) {
                $parameterArray['reusable_payment_description'] = $this->getReusablePaymentDescription();
            }

        }

        return $parameterArray;
    }
public function parameterize ( $ method ) { $ parameterArray = parent :: parameterize ( $ method ) ; if ( 'create' == $ method ) { if ( $ this -> getChecksumAction ( ) ) { $ parameterArray [ 'checksum_action' ] = $ this -> getChecksumAction ( ) ; } if ( $ this -> getShippingAddress ( ) ) { $ parameterArray [ 'shipping_address' ] = $ this -> getShippingAddress ( ) ; } if ( $ this -> getBillingAddress ( ) ) { $ parameterArray [ 'billing_address' ] = $ this -> getBillingAddress ( ) ; } if ( $ this -> getItems ( ) ) { $ parameterArray [ 'items' ] = $ this -> getItems ( ) ; } if ( $ this -> getShippingAmount ( ) ) { $ parameterArray [ 'shipping_amount' ] = $ this -> getShippingAmount ( ) ; } if ( $ this -> getHandlingAmount ( ) ) { $ parameterArray [ 'handling_amount' ] = $ this -> getHandlingAmount ( ) ; } if ( $ this -> getRequireReusablePayment ( ) ) { $ parameterArray [ 'require_reusable_payment' ] = $ this -> getRequireReusablePayment ( ) ; } if ( $ this -> getReusablePaymentDescription ( ) ) { $ parameterArray [ 'reusable_payment_description' ] = $ this -> getReusablePaymentDescription ( ) ; } } return $ parameterArray ; }
Converts the model into an array to prepare method calls
@param string $method should be used for handling the required parameter
@return array
Converts the model into an array to prepare method calls