commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
CustomLineItemImportDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
10
11
use
Commercetools\Api\Models\Cart\ItemShippingDetailsDraft
;
12
use
Commercetools\Api\Models\Common\LocalizedString
;
13
use
Commercetools\Api\Models\Common\Money
;
14
use
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
;
15
use
Commercetools\Api\Models\TaxCategory\TaxRate
;
16
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
17
use
Commercetools\Base\DateTimeImmutableCollection
;
18
use
Commercetools\Base\JsonObject
;
19
20
interface
CustomLineItemImportDraft
extends
JsonObject
21
{
22
public
const
FIELD_NAME
=
'name'
;
23
public
const
FIELD_KEY
=
'key'
;
24
public
const
FIELD_SLUG
=
'slug'
;
25
public
const
FIELD_QUANTITY
=
'quantity'
;
26
public
const
FIELD_MONEY
=
'money'
;
27
public
const
FIELD_TAX_RATE
=
'taxRate'
;
28
public
const
FIELD_TAX_CATEGORY
=
'taxCategory'
;
29
public
const
FIELD_PRICE_MODE
=
'priceMode'
;
30
public
const
FIELD_SHIPPING_DETAILS
=
'shippingDetails'
;
31
public
const
FIELD_STATE
=
'state'
;
32
public
const
FIELD_CUSTOM
=
'custom'
;
33
40
public
function
getName
();
41
48
public
function
getKey
();
49
56
public
function
getSlug
();
57
64
public
function
getQuantity
();
65
72
public
function
getMoney
();
73
80
public
function
getTaxRate
();
81
88
public
function
getTaxCategory
();
89
100
public
function
getPriceMode
();
101
108
public
function
getShippingDetails
();
109
116
public
function
getState
();
117
124
public
function
getCustom
();
125
129
public
function
setName
(?
LocalizedString
$name): void;
130
134
public
function
setKey
(?
string
$key): void;
135
139
public
function
setSlug
(?
string
$slug): void;
140
144
public
function
setQuantity
(?
int
$quantity): void;
145
149
public
function
setMoney
(?
Money
$money): void;
150
154
public
function
setTaxRate
(?
TaxRate
$taxRate): void;
155
159
public
function
setTaxCategory
(?
TaxCategoryResourceIdentifier
$taxCategory): void;
160
164
public
function
setPriceMode
(?
string
$priceMode): void;
165
169
public
function
setShippingDetails
(?
ItemShippingDetailsDraft
$shippingDetails): void;
170
174
public
function
setState
(?
ItemStateCollection
$state): void;
175
179
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
180
}
Commercetools\Api\Models\Order\ItemStateCollection
Definition:
ItemStateCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
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\Order\CustomLineItemImportDraft
Definition:
CustomLineItemImportDraft.php:21
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
CustomLineItemImportDraft.php:25
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getCustom
getCustom()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getQuantity
getQuantity()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getSlug
getSlug()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_SHIPPING_DETAILS
const FIELD_SHIPPING_DETAILS
Definition:
CustomLineItemImportDraft.php:30
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_SLUG
const FIELD_SLUG
Definition:
CustomLineItemImportDraft.php:24
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setTaxRate
setTaxRate(?TaxRate $taxRate)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setMoney
setMoney(?Money $money)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_NAME
const FIELD_NAME
Definition:
CustomLineItemImportDraft.php:22
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getShippingDetails
getShippingDetails()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setTaxCategory
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
CustomLineItemImportDraft.php:28
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getState
getState()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getPriceMode
getPriceMode()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setShippingDetails
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_TAX_RATE
const FIELD_TAX_RATE
Definition:
CustomLineItemImportDraft.php:27
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getTaxRate
getTaxRate()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setState
setState(?ItemStateCollection $state)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_STATE
const FIELD_STATE
Definition:
CustomLineItemImportDraft.php:31
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getKey
getKey()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CustomLineItemImportDraft.php:32
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
CustomLineItemImportDraft.php:29
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setSlug
setSlug(?string $slug)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_KEY
const FIELD_KEY
Definition:
CustomLineItemImportDraft.php:23
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getName
getName()
Commercetools\Api\Models\Order\CustomLineItemImportDraft\FIELD_MONEY
const FIELD_MONEY
Definition:
CustomLineItemImportDraft.php:26
Commercetools\Api\Models\Order\CustomLineItemImportDraft\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Order\CustomLineItemImportDraft\getMoney
getMoney()
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
Definition:
TaxCategoryResourceIdentifier.php:16
Commercetools\Api\Models\TaxCategory\TaxRate
Definition:
TaxRate.php:15
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1