Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit ce1afa4

Browse files
committed
fix(SetCustomShippingMethodAction): type of shippingRate property
1 parent c34d0a0 commit ce1afa4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Core/Request/Carts/Command/CartSetCustomShippingMethodAction.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Commercetools\Core\Request\Carts\Command;
77

88
use Commercetools\Core\Model\Common\Context;
9+
use Commercetools\Core\Model\ShippingMethod\ShippingRateDraft;
910
use Commercetools\Core\Request\AbstractAction;
1011
use Commercetools\Core\Model\ShippingMethod\ShippingRate;
1112
use Commercetools\Core\Model\TaxCategory\TaxCategoryReference;
@@ -18,8 +19,8 @@
1819
* @method CartSetCustomShippingMethodAction setAction(string $action = null)
1920
* @method string getShippingMethodName()
2021
* @method CartSetCustomShippingMethodAction setShippingMethodName(string $shippingMethodName = null)
21-
* @method ShippingRate getShippingRate()
22-
* @method CartSetCustomShippingMethodAction setShippingRate(ShippingRate $shippingRate = null)
22+
* @method ShippingRateDraft getShippingRate()
23+
* @method CartSetCustomShippingMethodAction setShippingRate(ShippingRateDraft $shippingRate = null)
2324
* @method TaxCategoryReference getTaxCategory()
2425
* @method CartSetCustomShippingMethodAction setTaxCategory(TaxCategoryReference $taxCategory = null)
2526
* @method ExternalTaxRateDraft getExternalTaxRate()
@@ -32,7 +33,7 @@ public function fieldDefinitions()
3233
return [
3334
'action' => [static::TYPE => 'string'],
3435
'shippingMethodName' => [static::TYPE => 'string'],
35-
'shippingRate' => [static::TYPE => ShippingRate::class],
36+
'shippingRate' => [static::TYPE => ShippingRateDraft::class],
3637
'taxCategory' => [static::TYPE => TaxCategoryReference::class],
3738
'externalTaxRate' => [static::TYPE => ExternalTaxRateDraft::class],
3839
];

src/Core/Request/OrderEdits/StagedOrder/Command/StagedOrderSetCustomShippingMethodAction.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
namespace Commercetools\Core\Request\OrderEdits\StagedOrder\Command;
77

88
use Commercetools\Core\Request\Carts\Command\CartSetCustomShippingMethodAction;
9-
use Commercetools\Core\Model\ShippingMethod\ShippingRate;
109
use Commercetools\Core\Model\TaxCategory\TaxCategoryReference;
1110
use Commercetools\Core\Model\TaxCategory\ExternalTaxRateDraft;
11+
use Commercetools\Core\Model\ShippingMethod\ShippingRateDraft;
1212

1313
/**
1414
* @package Commercetools\Core\Request\OrderEdits\StagedOrder\Command
@@ -17,8 +17,8 @@
1717
* @method StagedOrderSetCustomShippingMethodAction setAction(string $action = null)
1818
* @method string getShippingMethodName()
1919
* @method StagedOrderSetCustomShippingMethodAction setShippingMethodName(string $shippingMethodName = null)
20-
* @method ShippingRate getShippingRate()
21-
* @method StagedOrderSetCustomShippingMethodAction setShippingRate(ShippingRate $shippingRate = null)
20+
* @method ShippingRateDraft getShippingRate()
21+
* @method StagedOrderSetCustomShippingMethodAction setShippingRate(ShippingRateDraft $shippingRate = null)
2222
* @method TaxCategoryReference getTaxCategory()
2323
* @method StagedOrderSetCustomShippingMethodAction setTaxCategory(TaxCategoryReference $taxCategory = null)
2424
* @method ExternalTaxRateDraft getExternalTaxRate()
@@ -27,5 +27,4 @@
2727
// phpcs:ignore
2828
class StagedOrderSetCustomShippingMethodAction extends CartSetCustomShippingMethodAction implements StagedOrderUpdateAction
2929
{
30-
3130
}

0 commit comments

Comments
 (0)