Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 3 new fields to Model\Order #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 138 additions & 5 deletions src/MarketplaceWebServiceOrders/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*
* Properties:
* <ul>
*
* <li>AmazonOrderId: string</li>
* <li>SellerOrderId: string</li>
* <li>PurchaseDate: string</li>
Expand Down Expand Up @@ -50,7 +49,9 @@
* <li>LatestShipDate: string</li>
* <li>EarliestDeliveryDate: string</li>
* <li>LatestDeliveryDate: string</li>
*
* <li>IsBusinessOrder: bool</li>
* <li>IsPrime: bool</li>
* <li>IsPremiumOrder: bool</li>
* </ul>
*/
class MarketplaceWebServiceOrders_Model_Order extends MarketplaceWebServiceOrders_Model
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -1354,15 +1358,144 @@ 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)
{
$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;
}
}