From db7c51401de063cefea0f95dba27be8a21c29e70 Mon Sep 17 00:00:00 2001 From: Ron Kirschler Date: Thu, 18 May 2017 12:05:13 +0200 Subject: [PATCH] Added 3 new fields to `Model\Order` Added 3 new fields to `MarketplaceWebServiceOrders/Model/Order`: * `IsBusinessOrder`: `bool` * `IsPrime`: `bool` * `IsPremiumOrder`: `bool` --- .../Model/Order.php | 143 +++++++++++++++++- 1 file changed, 138 insertions(+), 5 deletions(-) diff --git a/src/MarketplaceWebServiceOrders/Model/Order.php b/src/MarketplaceWebServiceOrders/Model/Order.php index fafeff4..fb59f5c 100644 --- a/src/MarketplaceWebServiceOrders/Model/Order.php +++ b/src/MarketplaceWebServiceOrders/Model/Order.php @@ -22,7 +22,6 @@ * * Properties: * */ class MarketplaceWebServiceOrders_Model_Order extends MarketplaceWebServiceOrders_Model @@ -93,6 +94,9 @@ public function __construct($data = null) 'LatestShipDate' => array('FieldValue' => null, 'FieldType' => 'string'), 'EarliestDeliveryDate' => array('FieldValue' => null, 'FieldType' => 'string'), 'LatestDeliveryDate' => array('FieldValue' => null, 'FieldType' => 'string'), + 'IsBusinessOrder' => array('FieldValue' => null, 'FieldType' => 'bool'), + 'IsPrime' => array('FieldValue' => null, 'FieldType' => 'bool'), + 'IsPremiumOrder' => array('FieldValue' => null, 'FieldType' => 'bool'), ); parent::__construct($data); } @@ -1354,9 +1358,7 @@ public function isSetLatestDeliveryDate() /** * Set the value of LatestDeliveryDate, return this. * - * @param latestDeliveryDate - * The new value to set. - * + * @param bool $value The new value to set. * @return $this This instance. */ public function withLatestDeliveryDate($value) @@ -1364,5 +1366,136 @@ public function withLatestDeliveryDate($value) $this->setLatestDeliveryDate($value); return $this; } + + /** + * Get the value of the IsBusinessOrder property. + * + * @return string IsBusinessOrder. + */ + public function getIsBusinessOrder() + { + return $this->_fields['IsBusinessOrder']['FieldValue']; + } + + /** + * Set the value of the IsBusinessOrder property. + * + * @param string $value IsBusinessOrder + * @return $this This instance + */ + public function setIsBusinessOrder($value) + { + $this->_fields['IsBusinessOrder']['FieldValue'] = $value; + return $this; + } + /** + * Check to see if IsBusinessOrder is set. + * + * @return true if IsBusinessOrder is set. + */ + public function isSetIsBusinessOrder() + { + return !is_null($this->_fields['IsBusinessOrder']['FieldValue']); + } + + /** + * Set the value of IsBusinessOrder, return this. + * + * @param bool $value The new value to set. + * @return $this This instance. + */ + public function withIsBusinessOrder($value) + { + $this->setIsBusinessOrder($value); + return $this; + } + + /** + * Get the value of the IsPrime property. + * + * @return bool IsPrime. + */ + public function getIsPrime() + { + return $this->_fields['IsPrime']['FieldValue']; + } + + /** + * Set the value of the IsPrime property. + * + * @param bool $value IsPrime + * @return $this This instance + */ + public function setIsPrime($value) + { + $this->_fields['IsPrime']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if IsPrime is set. + * + * @return true if IsPrime is set. + */ + public function isSetIsPrime() + { + return !is_null($this->_fields['IsPrime']['FieldValue']); + } + + /** + * Set the value of LatestDeliveryDate, return this. + * + * @param bool $value The new value to set. + * @return $this This instance. + */ + public function withIsPrime($value) + { + $this->setIsPrime($value); + return $this; + } + + /** + * Get the value of the IsPremiumOrder property. + * + * @return bool IsPremiumOrder. + */ + public function getIsPremiumOrder() + { + return $this->_fields['IsPremiumOrder']['FieldValue']; + } + + /** + * Set the value of the IsPremiumOrder property. + * + * @param bool $value IsPremiumOrder + * @return $this This instance + */ + public function setIsPremiumOrder($value) + { + $this->_fields['IsPremiumOrder']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if IsPremiumOrder is set. + * + * @return true if IsPremiumOrder is set. + */ + public function isSetIsPremiumOrder() + { + return !is_null($this->_fields['IsPremiumOrder']['FieldValue']); + } + + /** + * Set the value of IsPremiumOrder, return this. + * + * @param bool $value The new value to set. + * @return $this This instance. + */ + public function withIsPremiumOrder($value) + { + $this->setIsPremiumOrder($value); + return $this; + } }