/**
  * Fetches a list of items from Amazon.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * Please note that an extra parameter comes before the usual Mock Mode parameters,
  * so be careful when setting up the object.
  * @param string $s <p>Name for the store you want to use.</p>
  * @param string $id [optional] <p>The order ID to set for the object.</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($s, $id = null, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
     if ($id) {
         $this->setShipmentId($id);
     }
 }
Esempio n. 2
0
 /**
  * AmazonShipment ubmits a shipment to Amazon or updates it.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * @param string $s <p>Name for the store you want to use.</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($s, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
     $this->options['InboundShipmentHeader.ShipmentStatus'] = 'WORKING';
 }
Esempio n. 3
0
 /**
  * AmazonShipmentList fetches a list of shipments from Amazon.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * @param string $s <p>Name for the store you want to use.</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($s, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
 }
 /**
  * AmazonShipmentPlanner fetches a shipment plan from Amazon. This is how you get a Shipment ID.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * @param string $s <p>Name for the store you want to use.</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($s, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
     $this->options['Action'] = 'CreateInboundShipmentPlan';
 }