Skip to content

Commit

Permalink
Merge pull request #1 from crazyfactory/fix-shipment_items
Browse files Browse the repository at this point in the history
fix(model): type for item_data and qty
  • Loading branch information
konthornR authored May 10, 2021
2 parents d656de6 + ea49487 commit a1e7fdd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions lib/Model/GetShipmentItemsResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class GetShipmentItemsResult implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
'item_data' => '\CrazyFactory\SpapiClient\Model\InboundShipmentItemList',
'item_data' => 'map[int,\CrazyFactory\SpapiClient\Model\InboundShipmentItem]',
'next_token' => 'string'
];

Expand Down Expand Up @@ -213,7 +213,7 @@ public function valid()
/**
* Gets item_data
*
* @return \CrazyFactory\SpapiClient\Model\InboundShipmentItemList
* @return \CrazyFactory\SpapiClient\Model\InboundShipmentItem[]
*/
public function getItemData()
{
Expand All @@ -223,7 +223,7 @@ public function getItemData()
/**
* Sets item_data
*
* @param \CrazyFactory\SpapiClient\Model\InboundShipmentItemList $item_data A list of item information for an inbound shipment.
* @param \CrazyFactory\SpapiClient\Model\InboundShipmentItem[] $item_data A list of item information for an inbound shipment.
*
* @return $this
*/
Expand Down
24 changes: 12 additions & 12 deletions lib/Model/InboundShipmentItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class InboundShipmentItem implements ModelInterface, ArrayAccess
'shipment_id' => 'string',
'seller_sku' => 'string',
'fulfillment_network_sku' => 'string',
'quantity_shipped' => '\CrazyFactory\SpapiClient\Model\Quantity',
'quantity_received' => '\CrazyFactory\SpapiClient\Model\Quantity',
'quantity_in_case' => '\CrazyFactory\SpapiClient\Model\Quantity',
'quantity_shipped' => 'int',
'quantity_received' => 'int',
'quantity_in_case' => 'int',
'release_date' => '\CrazyFactory\SpapiClient\Model\DateStringType',
'prep_details_list' => '\CrazyFactory\SpapiClient\Model\PrepDetailsList'
'prep_details_list' => 'map[int,\CrazyFactory\SpapiClient\Model\PrepDetails]'
];

/**
Expand Down Expand Up @@ -328,7 +328,7 @@ public function setFulfillmentNetworkSku($fulfillment_network_sku)
/**
* Gets quantity_shipped
*
* @return \CrazyFactory\SpapiClient\Model\Quantity
* @return int
*/
public function getQuantityShipped()
{
Expand All @@ -338,7 +338,7 @@ public function getQuantityShipped()
/**
* Sets quantity_shipped
*
* @param \CrazyFactory\SpapiClient\Model\Quantity $quantity_shipped The item quantity that you are shipping.
* @param int $quantity_shipped The item quantity that you are shipping.
*
* @return $this
*/
Expand All @@ -352,7 +352,7 @@ public function setQuantityShipped($quantity_shipped)
/**
* Gets quantity_received
*
* @return \CrazyFactory\SpapiClient\Model\Quantity
* @return int
*/
public function getQuantityReceived()
{
Expand All @@ -362,7 +362,7 @@ public function getQuantityReceived()
/**
* Sets quantity_received
*
* @param \CrazyFactory\SpapiClient\Model\Quantity $quantity_received The item quantity that has been received at an Amazon fulfillment center.
* @param int $quantity_received The item quantity that has been received at an Amazon fulfillment center.
*
* @return $this
*/
Expand All @@ -376,7 +376,7 @@ public function setQuantityReceived($quantity_received)
/**
* Gets quantity_in_case
*
* @return \CrazyFactory\SpapiClient\Model\Quantity
* @return int
*/
public function getQuantityInCase()
{
Expand All @@ -386,7 +386,7 @@ public function getQuantityInCase()
/**
* Sets quantity_in_case
*
* @param \CrazyFactory\SpapiClient\Model\Quantity $quantity_in_case The item quantity in each case, for case-packed items. Note that QuantityInCase multiplied by the number of boxes in the inbound shipment equals QuantityShipped. Also note that all of the boxes of an inbound shipment must either be case packed or individually packed. For that reason, when you submit the createInboundShipment or the updateInboundShipment operation, the value of QuantityInCase must be provided for every item in the shipment or for none of the items in the shipment.
* @param int $quantity_in_case The item quantity in each case, for case-packed items. Note that QuantityInCase multiplied by the number of boxes in the inbound shipment equals QuantityShipped. Also note that all of the boxes of an inbound shipment must either be case packed or individually packed. For that reason, when you submit the createInboundShipment or the updateInboundShipment operation, the value of QuantityInCase must be provided for every item in the shipment or for none of the items in the shipment.
*
* @return $this
*/
Expand Down Expand Up @@ -424,7 +424,7 @@ public function setReleaseDate($release_date)
/**
* Gets prep_details_list
*
* @return \CrazyFactory\SpapiClient\Model\PrepDetailsList
* @return \CrazyFactory\SpapiClient\Model\PrepDetails[]
*/
public function getPrepDetailsList()
{
Expand All @@ -434,7 +434,7 @@ public function getPrepDetailsList()
/**
* Sets prep_details_list
*
* @param \CrazyFactory\SpapiClient\Model\PrepDetailsList $prep_details_list prep_details_list
* @param \CrazyFactory\SpapiClient\Model\PrepDetails[] $prep_details_list prep_details_list
*
* @return $this
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/InboundShipmentPlanItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function setFulfillmentNetworkSku($fulfillment_network_sku)
/**
* Gets quantity
*
* @return \CrazyFactory\SpapiClient\Model\Quantity
* @return int
*/
public function getQuantity()
{
Expand All @@ -293,7 +293,7 @@ public function getQuantity()
/**
* Sets quantity
*
* @param \CrazyFactory\SpapiClient\Model\Quantity $quantity The item quantity that you are shipping.
* @param int The item quantity that you are shipping.
*
* @return $this
*/
Expand Down

0 comments on commit a1e7fdd

Please sign in to comment.