*
  • PurchaseContractId: string
  • *
  • IntegratorId: string
  • *
  • IntegratorName: string
  • *
  • InstantOrderProcessingNotificationURLs: Creativestyle_CheckoutByAmazon_Model_Api_Model_Checkout_InstantOrderProcessingNotificationUrl
  • * * * This file is part of The Official Amazon Payments Magento Extension * (c) creativestyle GmbH * All rights reserved * * Reuse or modification of this source code is not allowed * without written permission from creativestyle GmbH * * @category Creativestyle * @package Creativestyle_CheckoutByAmazon * @copyright Copyright (c) 2012 creativestyle GmbH (http://www.creativestyle.de) * @author Marek Zabrowarny / creativestyle GmbH */ class Creativestyle_CheckoutByAmazon_Model_Api_Model_Checkout_Request_CompletePurchaseContract extends Creativestyle_CheckoutByAmazon_Model_Api_Model_Checkout_Abstract { public function __construct($data = null) { $this->_fields = array( 'PurchaseContractId' => array('FieldValue' => null, 'FieldType' => 'string'), 'IntegratorId' => array('FieldValue' => 'creativestyle', 'FieldType' => 'string'), 'IntegratorName' => array('FieldValue' => (string)Mage::getConfig()->getNode('modules/Creativestyle_CheckoutByAmazon/version'), 'FieldType' => 'string'), 'InstantOrderProcessingNotificationURLs' => array('FieldValue' => null, 'FieldType' => 'Creativestyle_CheckoutByAmazon_Model_Api_Model_Checkout_InstantOrderProcessingNotificationUrl') ); parent::__construct($data); } public function convertToQueryString() { $params = array(); $params['Action'] = 'CompletePurchaseContract'; if ($this->issetPurchaseContractId()) { $params['PurchaseContractId'] = $this->getPurchaseContractId(); } if ($this->issetIntegratorId()) { $params['IntegratorId'] = $this->getIntegratorId(); } if ($this->issetIntegratorName()) { $params['IntegratorName'] = $this->getIntegratorName(); } if ($this->issetInstantOrderProcessingNotificationURLs()) { $instantOrderProcessingNotificationURLscompletePurchaseContractRequest = $this->getInstantOrderProcessingNotificationURLs(); if ($instantOrderProcessingNotificationURLscompletePurchaseContractRequest->issetIntegratorURL()) { $params['InstantOrderProcessingNotificationURLs.IntegratorURL'] = $instantOrderProcessingNotificationURLscompletePurchaseContractRequest->getIntegratorURL(); } if ($instantOrderProcessingNotificationURLscompletePurchaseContractRequest->issetMerchantURL()) { $params['InstantOrderProcessingNotificationURLs.MerchantURL'] = $instantOrderProcessingNotificationURLscompletePurchaseContractRequest->getMerchantURL(); } } return $params; } }