commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartAddCustomShippingMethodAction.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 
20 {
21  public const FIELD_SHIPPING_KEY = 'shippingKey';
22  public const FIELD_SHIPPING_METHOD_NAME = 'shippingMethodName';
23  public const FIELD_SHIPPING_ADDRESS = 'shippingAddress';
24  public const FIELD_SHIPPING_RATE = 'shippingRate';
25  public const FIELD_SHIPPING_RATE_INPUT = 'shippingRateInput';
26  public const FIELD_TAX_CATEGORY = 'taxCategory';
27  public const FIELD_EXTERNAL_TAX_RATE = 'externalTaxRate';
28  public const FIELD_DELIVERIES = 'deliveries';
29  public const FIELD_CUSTOM = 'custom';
30 
37  public function getShippingKey();
38 
45  public function getShippingMethodName();
46 
53  public function getShippingAddress();
54 
61  public function getShippingRate();
62 
75  public function getShippingRateInput();
76 
83  public function getTaxCategory();
84 
91  public function getExternalTaxRate();
92 
99  public function getDeliveries();
100 
107  public function getCustom();
108 
112  public function setShippingKey(?string $shippingKey): void;
113 
117  public function setShippingMethodName(?string $shippingMethodName): void;
118 
122  public function setShippingAddress(?BaseAddress $shippingAddress): void;
123 
127  public function setShippingRate(?ShippingRateDraft $shippingRate): void;
128 
132  public function setShippingRateInput(?ShippingRateInputDraft $shippingRateInput): void;
133 
137  public function setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory): void;
138 
142  public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void;
143 
147  public function setDeliveries(?DeliveryDraftCollection $deliveries): void;
148 
152  public function setCustom(?CustomFieldsDraft $custom): void;
153 }
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)