commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ShippingDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 
18 interface ShippingDraft extends JsonObject
19 {
20  public const FIELD_KEY = 'key';
21  public const FIELD_SHIPPING_METHOD = 'shippingMethod';
22  public const FIELD_SHIPPING_ADDRESS = 'shippingAddress';
23  public const FIELD_SHIPPING_RATE_INPUT = 'shippingRateInput';
24  public const FIELD_EXTERNAL_TAX_RATE = 'externalTaxRate';
25  public const FIELD_DELIVERIES = 'deliveries';
26  public const FIELD_CUSTOM = 'custom';
27 
34  public function getKey();
35 
42  public function getShippingMethod();
43 
50  public function getShippingAddress();
51 
64  public function getShippingRateInput();
65 
72  public function getExternalTaxRate();
73 
80  public function getDeliveries();
81 
88  public function getCustom();
89 
93  public function setKey(?string $key): void;
94 
98  public function setShippingMethod(?ShippingMethodReference $shippingMethod): void;
99 
103  public function setShippingAddress(?BaseAddress $shippingAddress): void;
104 
108  public function setShippingRateInput(?ShippingRateInputDraft $shippingRateInput): void;
109 
113  public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void;
114 
118  public function setDeliveries(?DeliveryDraftCollection $deliveries): void;
119 
123  public function setCustom(?CustomFieldsDraft $custom): void;
124 }
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
setCustom(?CustomFieldsDraft $custom)
setShippingMethod(?ShippingMethodReference $shippingMethod)
setDeliveries(?DeliveryDraftCollection $deliveries)
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
setShippingAddress(?BaseAddress $shippingAddress)