66namespace Commercetools \Core \Request \Carts \Command ;
77
88use Commercetools \Core \Model \Common \Context ;
9+ use Commercetools \Core \Model \ShippingMethod \ShippingRateDraft ;
910use Commercetools \Core \Request \AbstractAction ;
1011use Commercetools \Core \Model \ShippingMethod \ShippingRate ;
1112use Commercetools \Core \Model \TaxCategory \TaxCategoryReference ;
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 ];
0 commit comments