commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartAddCustomLineItemAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Common\Money
;
13
use
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
;
14
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
18
interface
CartAddCustomLineItemAction
extends
CartUpdateAction
19
{
20
public
const
FIELD_MONEY
=
'money'
;
21
public
const
FIELD_NAME
=
'name'
;
22
public
const
FIELD_KEY
=
'key'
;
23
public
const
FIELD_QUANTITY
=
'quantity'
;
24
public
const
FIELD_SLUG
=
'slug'
;
25
public
const
FIELD_TAX_CATEGORY
=
'taxCategory'
;
26
public
const
FIELD_EXTERNAL_TAX_RATE
=
'externalTaxRate'
;
27
public
const
FIELD_SHIPPING_DETAILS
=
'shippingDetails'
;
28
public
const
FIELD_CUSTOM
=
'custom'
;
29
public
const
FIELD_PRICE_MODE
=
'priceMode'
;
30
38
public
function
getMoney
();
39
46
public
function
getName
();
47
54
public
function
getKey
();
55
62
public
function
getQuantity
();
63
71
public
function
getSlug
();
72
80
public
function
getTaxCategory
();
81
88
public
function
getExternalTaxRate
();
89
96
public
function
getShippingDetails
();
97
104
public
function
getCustom
();
105
116
public
function
getPriceMode
();
117
121
public
function
setMoney
(?
Money
$money): void;
122
126
public
function
setName
(?
LocalizedString
$name): void;
127
131
public
function
setKey
(?
string
$key): void;
132
136
public
function
setQuantity
(?
int
$quantity): void;
137
141
public
function
setSlug
(?
string
$slug): void;
142
146
public
function
setTaxCategory
(?
TaxCategoryResourceIdentifier
$taxCategory): void;
147
151
public
function
setExternalTaxRate
(?
ExternalTaxRateDraft
$externalTaxRate): void;
152
156
public
function
setShippingDetails
(?
ItemShippingDetailsDraft
$shippingDetails): void;
157
161
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
162
166
public
function
setPriceMode
(?
string
$priceMode): void;
167
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction
Definition:
CartAddCustomLineItemAction.php:19
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
CartAddCustomLineItemAction.php:29
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setShippingDetails
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setSlug
setSlug(?string $slug)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
CartAddCustomLineItemAction.php:25
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getPriceMode
getPriceMode()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_MONEY
const FIELD_MONEY
Definition:
CartAddCustomLineItemAction.php:20
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setMoney
setMoney(?Money $money)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_KEY
const FIELD_KEY
Definition:
CartAddCustomLineItemAction.php:22
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_SHIPPING_DETAILS
const FIELD_SHIPPING_DETAILS
Definition:
CartAddCustomLineItemAction.php:27
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setExternalTaxRate
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setTaxCategory
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getShippingDetails
getShippingDetails()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getCustom
getCustom()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_EXTERNAL_TAX_RATE
const FIELD_EXTERNAL_TAX_RATE
Definition:
CartAddCustomLineItemAction.php:26
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setKey
setKey(?string $key)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_NAME
const FIELD_NAME
Definition:
CartAddCustomLineItemAction.php:21
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
CartAddCustomLineItemAction.php:23
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getKey
getKey()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_SLUG
const FIELD_SLUG
Definition:
CartAddCustomLineItemAction.php:24
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartAddCustomLineItemAction.php:28
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getName
getName()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getSlug
getSlug()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getMoney
getMoney()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getQuantity
getQuantity()
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\CartAddCustomLineItemAction\getExternalTaxRate
getExternalTaxRate()
Commercetools\Api\Models\Cart\CartUpdateAction
Definition:
CartUpdateAction.php:15
Commercetools\Api\Models\Cart\ExternalTaxRateDraft
Definition:
ExternalTaxRateDraft.php:16
Commercetools\Api\Models\Cart\ItemShippingDetailsDraft
Definition:
ItemShippingDetailsDraft.php:15
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Common\Money
Definition:
Money.php:15
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