Skip to content

Commit

Permalink
20.4.3 MNB-2405 added RMSItem.name field
Browse files Browse the repository at this point in the history
  • Loading branch information
wsajason committed Jun 20, 2022
1 parent 15e50a9 commit d5e88cf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-PUBLIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ MNB-2542 Change version requirements for laminas-dependency-plugin
MNB-2576 Rolled back MNB-2405


## 20.4.3 (2022-06-20)
MNB-2405 added RMSItem.name field


4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ MNB-2542 Change version requirements for laminas-dependency-plugin
MNB-2576 Rolled back MNB-2405


## 20.4.3 (2022-06-20)
MNB-2405 added RMSItem.name field


2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shipperhq/library-graphql",
"description": "ShipperHQ GraphQL Library",
"type": "magento2-library",
"version": "20.4.2",
"version": "20.4.3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
27 changes: 26 additions & 1 deletion src/Types/Input/RMSItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ class RMSItem
*/
private $sku;

/**
* @var string
*/
private $name;

/**
* @var float
*/
Expand Down Expand Up @@ -128,6 +133,7 @@ class RMSItem
* RMSItem constructor.
* @param string $itemId
* @param string $sku
* @param string $name
* @param float $storePrice
* @param float $weight
* @param int $qty
Expand All @@ -147,10 +153,11 @@ class RMSItem
* @param RMSItem[] $items
* @throws SerializerException
*/
public function __construct($itemId, $sku, $storePrice, $weight, $qty, $type, $taxInclStorePrice, $freeShipping, $fixedPrice, $fixedWeight, $basePrice = null, $taxInclBasePrice = null, $discountPercent = null, $discountedBasePrice = null, $discountedStorePrice = null, $discountedTaxInclBasePrice = null, $discountedTaxInclStorePrice = null, array $attributes = null, array $items = null)
public function __construct($itemId, $sku, $name, $storePrice, $weight, $qty, $type, $taxInclStorePrice, $freeShipping, $fixedPrice, $fixedWeight, $basePrice = null, $taxInclBasePrice = null, $discountPercent = null, $discountedBasePrice = null, $discountedStorePrice = null, $discountedTaxInclBasePrice = null, $discountedTaxInclStorePrice = null, array $attributes = null, array $items = null)
{
$this->setItemId($itemId)
->setSku($sku)
->setName($name)
->setStorePrice($storePrice)
->setWeight($weight)
->setQty($qty)
Expand Down Expand Up @@ -206,6 +213,24 @@ public function setSku($sku)
return $this;
}

/**
* @return string
*/
public function getName()
{
return $this->name;
}

/**
* @param string $name
* @return RMSItem
*/
public function setName($name)
{
$this->name = $name;
return $this;
}

/**
* @return float
*/
Expand Down

0 comments on commit d5e88cf

Please sign in to comment.