/** * AmazonOrdersCore constructor sets up key information used in all Amazon Orders Core requests * * This constructor is called when initializing all objects in the Amazon Orders Core. * The parameters are passed by the child objects' constructors, which are * in turn passed to the AmazonCore constructor. See it for more information * on these parameters and common methods. * @param string $s [optional] <p>Name for the store you want to use. * This parameter is optional if only one store is defined in the config file.</p> * @param boolean $mock [optional] <p>This is a flag for enabling Mock Mode. * This defaults to <b>FALSE</b>.</p> * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p> * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p> */ public function __construct($config, $mock = false, $m = null) { parent::__construct($config, $mock, $m); include_once $this->env; if (isset($AMAZON_VERSION_ORDERS)) { $this->urlbranch = 'Orders/' . $AMAZON_VERSION_ORDERS; $this->options['Version'] = $AMAZON_VERSION_ORDERS; } }
/** * AmazonProductsCore constructor sets up key information used in all Amazon Products Core requests * * This constructor is called when initializing all objects in the Amazon Products Core. * The parameters are passed by the child objects' constructors, which are * in turn passed to the AmazonCore constructor. See it for more information * on these parameters and common methods. * @param string $s [optional] <p>Name for the store you want to use. * This parameter is optional if only one store is defined in the config file.</p> * @param boolean $mock [optional] <p>This is a flag for enabling Mock Mode. * This defaults to <b>FALSE</b>.</p> * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p> * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p> * @throws \Exception */ public function __construct($config, $mock = false, $m = null) { parent::__construct($config, $mock, $m); include_once $this->env; if (isset($AMAZON_VERSION_PRODUCTS)) { $this->urlbranch = 'Products/' . $AMAZON_VERSION_PRODUCTS; $this->options['Version'] = $AMAZON_VERSION_PRODUCTS; } if (isset($THROTTLE_LIMIT_PRODUCT)) { $this->throttleLimit = $THROTTLE_LIMIT_PRODUCT; } }
/** * AmazonInboundCore constructor sets up key information used in all Amazon Inbound Core requests * * This constructor is called when initializing all objects in the Amazon Inbound Core. * The parameters are passed by the child objects' constructors, which are * in turn passed to the AmazonCore constructor. See it for more information * on these parameters and common methods. * @param string $s [optional] <p>Name for the store you want to use. * This parameter is optional if only one store is defined in the config file.</p> * @param boolean $mock [optional] <p>This is a flag for enabling Mock Mode. * This defaults to <b>FALSE</b>.</p> * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p> * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p> */ public function __construct($config, $mock = false, $m = null) { parent::__construct($config, $mock, $m); include_once $this->env; if (isset($AMAZON_VERSION_INBOUND)) { $this->urlbranch = 'FulfillmentInboundShipment/' . $AMAZON_VERSION_INBOUND; $this->options['Version'] = $AMAZON_VERSION_INBOUND; } if (isset($THROTTLE_LIMIT_INVENTORY)) { $this->throttleLimit = $THROTTLE_LIMIT_INVENTORY; } if (isset($THROTTLE_TIME_INVENTORY)) { $this->throttleTime = $THROTTLE_TIME_INVENTORY; } $this->throttleGroup = 'Inventory'; }