commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartAddCustomShippingMethodAction.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\ShippingRateDraft
;
14
use
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
;
15
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
19
interface
CartAddCustomShippingMethodAction
extends
CartUpdateAction
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
}
Commercetools\Api\Models\Order\DeliveryDraftCollection
Definition:
DeliveryDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction
Definition:
CartAddCustomShippingMethodAction.php:20
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getCustom
getCustom()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setDeliveries
setDeliveries(?DeliveryDraftCollection $deliveries)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
CartAddCustomShippingMethodAction.php:26
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
CartAddCustomShippingMethodAction.php:23
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
CartAddCustomShippingMethodAction.php:25
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getShippingRate
getShippingRate()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setTaxCategory
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setShippingKey
setShippingKey(?string $shippingKey)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getDeliveries
getDeliveries()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getShippingKey
getShippingKey()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_SHIPPING_KEY
const FIELD_SHIPPING_KEY
Definition:
CartAddCustomShippingMethodAction.php:21
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setShippingAddress
setShippingAddress(?BaseAddress $shippingAddress)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setExternalTaxRate
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setShippingMethodName
setShippingMethodName(?string $shippingMethodName)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setShippingRate
setShippingRate(?ShippingRateDraft $shippingRate)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartAddCustomShippingMethodAction.php:29
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setShippingRateInput
setShippingRateInput(?ShippingRateInputDraft $shippingRateInput)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_DELIVERIES
const FIELD_DELIVERIES
Definition:
CartAddCustomShippingMethodAction.php:28
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_SHIPPING_METHOD_NAME
const FIELD_SHIPPING_METHOD_NAME
Definition:
CartAddCustomShippingMethodAction.php:22
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getExternalTaxRate
getExternalTaxRate()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_EXTERNAL_TAX_RATE
const FIELD_EXTERNAL_TAX_RATE
Definition:
CartAddCustomShippingMethodAction.php:27
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\getShippingMethodName
getShippingMethodName()
Commercetools\Api\Models\Cart\CartAddCustomShippingMethodAction\FIELD_SHIPPING_RATE
const FIELD_SHIPPING_RATE
Definition:
CartAddCustomShippingMethodAction.php:24
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\ShippingRateDraft
Definition:
ShippingRateDraft.php:16
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
Definition:
TaxCategoryResourceIdentifier.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