commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
ShippingDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\Common\BaseAddress
;
12
use
Commercetools\Api\Models\Order\DeliveryDraftCollection
;
13
use
Commercetools\Api\Models\ShippingMethod\ShippingMethodReference
;
14
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\Order\DeliveryDraftCollection
Definition:
DeliveryDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\ExternalTaxRateDraft
Definition:
ExternalTaxRateDraft.php:16
Commercetools\Api\Models\Cart\ShippingDraft
Definition:
ShippingDraft.php:19
Commercetools\Api\Models\Cart\ShippingDraft\getShippingMethod
getShippingMethod()
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
ShippingDraft.php:23
Commercetools\Api\Models\Cart\ShippingDraft\setExternalTaxRate
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
Commercetools\Api\Models\Cart\ShippingDraft\getExternalTaxRate
getExternalTaxRate()
Commercetools\Api\Models\Cart\ShippingDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Cart\ShippingDraft\getCustom
getCustom()
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_EXTERNAL_TAX_RATE
const FIELD_EXTERNAL_TAX_RATE
Definition:
ShippingDraft.php:24
Commercetools\Api\Models\Cart\ShippingDraft\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\Cart\ShippingDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\ShippingDraft\setShippingMethod
setShippingMethod(?ShippingMethodReference $shippingMethod)
Commercetools\Api\Models\Cart\ShippingDraft\getDeliveries
getDeliveries()
Commercetools\Api\Models\Cart\ShippingDraft\setDeliveries
setDeliveries(?DeliveryDraftCollection $deliveries)
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_SHIPPING_METHOD
const FIELD_SHIPPING_METHOD
Definition:
ShippingDraft.php:21
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
ShippingDraft.php:22
Commercetools\Api\Models\Cart\ShippingDraft\setShippingRateInput
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
Commercetools\Api\Models\Cart\ShippingDraft\setShippingAddress
setShippingAddress(?BaseAddress $shippingAddress)
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ShippingDraft.php:26
Commercetools\Api\Models\Cart\ShippingDraft\getKey
getKey()
Commercetools\Api\Models\Cart\ShippingDraft\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_DELIVERIES
const FIELD_DELIVERIES
Definition:
ShippingDraft.php:25
Commercetools\Api\Models\Cart\ShippingDraft\FIELD_KEY
const FIELD_KEY
Definition:
ShippingDraft.php:20
Commercetools\Api\Models\Cart\ShippingRateInputDraft
Definition:
ShippingRateInputDraft.php:15
Commercetools\Api\Models\Common\BaseAddress
Definition:
BaseAddress.php:15
Commercetools\Api\Models\ShippingMethod\ShippingMethodReference
Definition:
ShippingMethodReference.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1