commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartAddShippingMethodAction.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\ShippingMethodResourceIdentifier
;
14
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
18
interface
CartAddShippingMethodAction
extends
CartUpdateAction
19
{
20
public
const
FIELD_SHIPPING_KEY
=
'shippingKey'
;
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
getShippingKey
();
35
43
public
function
getShippingMethod
();
44
51
public
function
getShippingAddress
();
52
65
public
function
getShippingRateInput
();
66
73
public
function
getExternalTaxRate
();
74
81
public
function
getDeliveries
();
82
89
public
function
getCustom
();
90
94
public
function
setShippingKey
(?
string
$shippingKey): void;
95
99
public
function
setShippingMethod
(?
ShippingMethodResourceIdentifier
$shippingMethod): void;
100
104
public
function
setShippingAddress
(?
BaseAddress
$shippingAddress): void;
105
109
public
function
setShippingRateInput
(?
ShippingRateInputDraft
$shippingRateInput): void;
110
114
public
function
setExternalTaxRate
(?
ExternalTaxRateDraft
$externalTaxRate): void;
115
119
public
function
setDeliveries
(?
DeliveryDraftCollection
$deliveries): void;
120
124
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
125
}
Commercetools\Api\Models\Order\DeliveryDraftCollection
Definition:
DeliveryDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartAddShippingMethodAction
Definition:
CartAddShippingMethodAction.php:19
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setShippingMethod
setShippingMethod(?ShippingMethodResourceIdentifier $shippingMethod)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setExternalTaxRate
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getDeliveries
getDeliveries()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_DELIVERIES
const FIELD_DELIVERIES
Definition:
CartAddShippingMethodAction.php:25
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getExternalTaxRate
getExternalTaxRate()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setDeliveries
setDeliveries(?DeliveryDraftCollection $deliveries)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getCustom
getCustom()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_SHIPPING_METHOD
const FIELD_SHIPPING_METHOD
Definition:
CartAddShippingMethodAction.php:21
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
CartAddShippingMethodAction.php:22
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_SHIPPING_KEY
const FIELD_SHIPPING_KEY
Definition:
CartAddShippingMethodAction.php:20
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
CartAddShippingMethodAction.php:23
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getShippingKey
getShippingKey()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getShippingMethod
getShippingMethod()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setShippingKey
setShippingKey(?string $shippingKey)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartAddShippingMethodAction.php:26
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setShippingAddress
setShippingAddress(?BaseAddress $shippingAddress)
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\FIELD_EXTERNAL_TAX_RATE
const FIELD_EXTERNAL_TAX_RATE
Definition:
CartAddShippingMethodAction.php:24
Commercetools\Api\Models\Cart\CartAddShippingMethodAction\setShippingRateInput
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
Commercetools\Api\Models\Cart\CartUpdateAction
Definition:
CartUpdateAction.php:15
Commercetools\Api\Models\Cart\ExternalTaxRateDraft
Definition:
ExternalTaxRateDraft.php:16
Commercetools\Api\Models\Cart\ShippingRateInputDraft
Definition:
ShippingRateInputDraft.php:15
Commercetools\Api\Models\Common\BaseAddress
Definition:
BaseAddress.php:15
Commercetools\Api\Models\ShippingMethod\ShippingMethodResourceIdentifier
Definition:
ShippingMethodResourceIdentifier.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