commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
QuoteRequest
QuoteRequest.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\QuoteRequest
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
;
12
use
Commercetools\Api\Models\Cart\CartReference
;
13
use
Commercetools\Api\Models\Cart\CustomLineItemCollection
;
14
use
Commercetools\Api\Models\Cart\DirectDiscountCollection
;
15
use
Commercetools\Api\Models\Cart\LineItemCollection
;
16
use
Commercetools\Api\Models\Cart\ShippingInfo
;
17
use
Commercetools\Api\Models\Cart\ShippingRateInput
;
18
use
Commercetools\Api\Models\Cart\TaxedPrice
;
19
use
Commercetools\Api\Models\Common\Address
;
20
use
Commercetools\Api\Models\Common\AddressCollection
;
21
use
Commercetools\Api\Models\Common\BaseResource
;
22
use
Commercetools\Api\Models\Common\CreatedBy
;
23
use
Commercetools\Api\Models\Common\LastModifiedBy
;
24
use
Commercetools\Api\Models\Common\TypedMoney
;
25
use
Commercetools\Api\Models\Customer\CustomerReference
;
26
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
;
27
use
Commercetools\Api\Models\Order\PaymentInfo
;
28
use
Commercetools\Api\Models\State\StateReference
;
29
use
Commercetools\Api\Models\Store\StoreKeyReference
;
30
use
Commercetools\Api\Models\Type\CustomFields
;
31
use
Commercetools\Base\DateTimeImmutableCollection
;
32
use
Commercetools\Base\JsonObject
;
33
use DateTimeImmutable;
34
35
interface
QuoteRequest
extends
BaseResource
36
{
37
public
const
FIELD_KEY
=
'key'
;
38
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
39
public
const
FIELD_CREATED_BY
=
'createdBy'
;
40
public
const
FIELD_QUOTE_REQUEST_STATE
=
'quoteRequestState'
;
41
public
const
FIELD_COMMENT
=
'comment'
;
42
public
const
FIELD_CUSTOMER
=
'customer'
;
43
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
44
public
const
FIELD_STORE
=
'store'
;
45
public
const
FIELD_LINE_ITEMS
=
'lineItems'
;
46
public
const
FIELD_CUSTOM_LINE_ITEMS
=
'customLineItems'
;
47
public
const
FIELD_TOTAL_PRICE
=
'totalPrice'
;
48
public
const
FIELD_TAXED_PRICE
=
'taxedPrice'
;
49
public
const
FIELD_SHIPPING_ADDRESS
=
'shippingAddress'
;
50
public
const
FIELD_BILLING_ADDRESS
=
'billingAddress'
;
51
public
const
FIELD_INVENTORY_MODE
=
'inventoryMode'
;
52
public
const
FIELD_TAX_MODE
=
'taxMode'
;
53
public
const
FIELD_TAX_ROUNDING_MODE
=
'taxRoundingMode'
;
54
public
const
FIELD_TAX_CALCULATION_MODE
=
'taxCalculationMode'
;
55
public
const
FIELD_COUNTRY
=
'country'
;
56
public
const
FIELD_SHIPPING_INFO
=
'shippingInfo'
;
57
public
const
FIELD_PAYMENT_INFO
=
'paymentInfo'
;
58
public
const
FIELD_SHIPPING_RATE_INPUT
=
'shippingRateInput'
;
59
public
const
FIELD_ITEM_SHIPPING_ADDRESSES
=
'itemShippingAddresses'
;
60
public
const
FIELD_DIRECT_DISCOUNTS
=
'directDiscounts'
;
61
public
const
FIELD_CUSTOM
=
'custom'
;
62
public
const
FIELD_STATE
=
'state'
;
63
public
const
FIELD_PURCHASE_ORDER_NUMBER
=
'purchaseOrderNumber'
;
64
public
const
FIELD_CART
=
'cart'
;
65
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
66
73
public
function
getId
();
74
81
public
function
getVersion
();
82
89
public
function
getKey
();
90
97
public
function
getCreatedAt
();
98
105
public
function
getLastModifiedAt
();
106
113
public
function
getLastModifiedBy
();
114
121
public
function
getCreatedBy
();
122
129
public
function
getQuoteRequestState
();
130
137
public
function
getComment
();
138
145
public
function
getCustomer
();
146
155
public
function
getCustomerGroup
();
156
163
public
function
getStore
();
164
171
public
function
getLineItems
();
172
179
public
function
getCustomLineItems
();
180
188
public
function
getTotalPrice
();
189
198
public
function
getTaxedPrice
();
199
207
public
function
getShippingAddress
();
208
215
public
function
getBillingAddress
();
216
223
public
function
getInventoryMode
();
224
231
public
function
getTaxMode
();
232
239
public
function
getTaxRoundingMode
();
240
247
public
function
getTaxCalculationMode
();
248
255
public
function
getCountry
();
256
263
public
function
getShippingInfo
();
264
271
public
function
getPaymentInfo
();
272
279
public
function
getShippingRateInput
();
280
290
public
function
getItemShippingAddresses
();
291
298
public
function
getDirectDiscounts
();
299
306
public
function
getCustom
();
307
315
public
function
getState
();
316
324
public
function
getPurchaseOrderNumber
();
325
332
public
function
getCart
();
333
340
public
function
getBusinessUnit
();
341
345
public
function
setId
(?
string
$id): void;
346
350
public
function
setVersion
(?
int
$version): void;
351
355
public
function
setKey
(?
string
$key): void;
356
360
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
361
365
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
366
370
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
371
375
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
376
380
public
function
setQuoteRequestState
(?
string
$quoteRequestState): void;
381
385
public
function
setComment
(?
string
$comment): void;
386
390
public
function
setCustomer
(?
CustomerReference
$customer): void;
391
395
public
function
setCustomerGroup
(?
CustomerGroupReference
$customerGroup): void;
396
400
public
function
setStore
(?
StoreKeyReference
$store): void;
401
405
public
function
setLineItems
(?
LineItemCollection
$lineItems): void;
406
410
public
function
setCustomLineItems
(?
CustomLineItemCollection
$customLineItems): void;
411
415
public
function
setTotalPrice
(?
TypedMoney
$totalPrice): void;
416
420
public
function
setTaxedPrice
(?
TaxedPrice
$taxedPrice): void;
421
425
public
function
setShippingAddress
(?
Address
$shippingAddress): void;
426
430
public
function
setBillingAddress
(?
Address
$billingAddress): void;
431
435
public
function
setInventoryMode
(?
string
$inventoryMode): void;
436
440
public
function
setTaxMode
(?
string
$taxMode): void;
441
445
public
function
setTaxRoundingMode
(?
string
$taxRoundingMode): void;
446
450
public
function
setTaxCalculationMode
(?
string
$taxCalculationMode): void;
451
455
public
function
setCountry
(?
string
$country): void;
456
460
public
function
setShippingInfo
(?
ShippingInfo
$shippingInfo): void;
461
465
public
function
setPaymentInfo
(?
PaymentInfo
$paymentInfo): void;
466
470
public
function
setShippingRateInput
(?
ShippingRateInput
$shippingRateInput): void;
471
475
public
function
setItemShippingAddresses
(?
AddressCollection
$itemShippingAddresses): void;
476
480
public
function
setDirectDiscounts
(?
DirectDiscountCollection
$directDiscounts): void;
481
485
public
function
setCustom
(?
CustomFields
$custom): void;
486
490
public
function
setState
(?
StateReference
$state): void;
491
495
public
function
setPurchaseOrderNumber
(?
string
$purchaseOrderNumber): void;
496
500
public
function
setCart
(?
CartReference
$cart): void;
501
505
public
function
setBusinessUnit
(?
BusinessUnitKeyReference
$businessUnit): void;
506
}
Commercetools\Api\Models\Cart\CustomLineItemCollection
Definition:
CustomLineItemCollection.php:22
Commercetools\Api\Models\Cart\DirectDiscountCollection
Definition:
DirectDiscountCollection.php:22
Commercetools\Api\Models\Cart\LineItemCollection
Definition:
LineItemCollection.php:22
Commercetools\Api\Models\Common\AddressCollection
Definition:
AddressCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
Definition:
BusinessUnitKeyReference.php:16
Commercetools\Api\Models\Cart\CartReference
Definition:
CartReference.php:16
Commercetools\Api\Models\Cart\ShippingInfo
Definition:
ShippingInfo.php:21
Commercetools\Api\Models\Cart\ShippingRateInput
Definition:
ShippingRateInput.php:15
Commercetools\Api\Models\Cart\TaxedPrice
Definition:
TaxedPrice.php:16
Commercetools\Api\Models\Common\Address
Definition:
Address.php:16
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\TypedMoney
Definition:
TypedMoney.php:15
Commercetools\Api\Models\Customer\CustomerReference
Definition:
CustomerReference.php:16
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
Definition:
CustomerGroupReference.php:16
Commercetools\Api\Models\Order\PaymentInfo
Definition:
PaymentInfo.php:16
Commercetools\Api\Models\QuoteRequest\QuoteRequest
Definition:
QuoteRequest.php:36
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getPurchaseOrderNumber
getPurchaseOrderNumber()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_TOTAL_PRICE
const FIELD_TOTAL_PRICE
Definition:
QuoteRequest.php:47
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setPaymentInfo
setPaymentInfo(?PaymentInfo $paymentInfo)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getInventoryMode
getInventoryMode()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getPaymentInfo
getPaymentInfo()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCustomLineItems
getCustomLineItems()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CART
const FIELD_CART
Definition:
QuoteRequest.php:64
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_DIRECT_DISCOUNTS
const FIELD_DIRECT_DISCOUNTS
Definition:
QuoteRequest.php:60
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_PURCHASE_ORDER_NUMBER
const FIELD_PURCHASE_ORDER_NUMBER
Definition:
QuoteRequest.php:63
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCustomLineItems
setCustomLineItems(?CustomLineItemCollection $customLineItems)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
QuoteRequest.php:61
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getLineItems
getLineItems()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setId
setId(?string $id)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setState
setState(?StateReference $state)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setTaxCalculationMode
setTaxCalculationMode(?string $taxCalculationMode)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_TAX_ROUNDING_MODE
const FIELD_TAX_ROUNDING_MODE
Definition:
QuoteRequest.php:53
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getStore
getStore()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCustomer
getCustomer()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getVersion
getVersion()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setVersion
setVersion(?int $version)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_LINE_ITEMS
const FIELD_LINE_ITEMS
Definition:
QuoteRequest.php:45
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_QUOTE_REQUEST_STATE
const FIELD_QUOTE_REQUEST_STATE
Definition:
QuoteRequest.php:40
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setBusinessUnit
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setBillingAddress
setBillingAddress(?Address $billingAddress)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
QuoteRequest.php:58
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setTaxedPrice
setTaxedPrice(?TaxedPrice $taxedPrice)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_TAX_CALCULATION_MODE
const FIELD_TAX_CALCULATION_MODE
Definition:
QuoteRequest.php:54
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
QuoteRequest.php:49
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCart
setCart(?CartReference $cart)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getQuoteRequestState
getQuoteRequestState()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getState
getState()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setShippingAddress
setShippingAddress(?Address $shippingAddress)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setShippingInfo
setShippingInfo(?ShippingInfo $shippingInfo)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_STORE
const FIELD_STORE
Definition:
QuoteRequest.php:44
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setDirectDiscounts
setDirectDiscounts(?DirectDiscountCollection $directDiscounts)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_TAX_MODE
const FIELD_TAX_MODE
Definition:
QuoteRequest.php:52
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getTotalPrice
getTotalPrice()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setPurchaseOrderNumber
setPurchaseOrderNumber(?string $purchaseOrderNumber)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getComment
getComment()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setStore
setStore(?StoreKeyReference $store)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setItemShippingAddresses
setItemShippingAddresses(?AddressCollection $itemShippingAddresses)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setQuoteRequestState
setQuoteRequestState(?string $quoteRequestState)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setKey
setKey(?string $key)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
QuoteRequest.php:38
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCustomerGroup
setCustomerGroup(?CustomerGroupReference $customerGroup)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
QuoteRequest.php:55
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getTaxCalculationMode
getTaxCalculationMode()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_COMMENT
const FIELD_COMMENT
Definition:
QuoteRequest.php:41
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getShippingInfo
getShippingInfo()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setTaxRoundingMode
setTaxRoundingMode(?string $taxRoundingMode)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_PAYMENT_INFO
const FIELD_PAYMENT_INFO
Definition:
QuoteRequest.php:57
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_KEY
const FIELD_KEY
Definition:
QuoteRequest.php:37
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_STATE
const FIELD_STATE
Definition:
QuoteRequest.php:62
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getKey
getKey()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setInventoryMode
setInventoryMode(?string $inventoryMode)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getDirectDiscounts
getDirectDiscounts()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCart
getCart()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCountry
setCountry(?string $country)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setTotalPrice
setTotalPrice(?TypedMoney $totalPrice)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getItemShippingAddresses
getItemShippingAddresses()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_INVENTORY_MODE
const FIELD_INVENTORY_MODE
Definition:
QuoteRequest.php:51
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setLineItems
setLineItems(?LineItemCollection $lineItems)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
QuoteRequest.php:42
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_TAXED_PRICE
const FIELD_TAXED_PRICE
Definition:
QuoteRequest.php:48
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_ITEM_SHIPPING_ADDRESSES
const FIELD_ITEM_SHIPPING_ADDRESSES
Definition:
QuoteRequest.php:59
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setComment
setComment(?string $comment)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCountry
getCountry()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_BILLING_ADDRESS
const FIELD_BILLING_ADDRESS
Definition:
QuoteRequest.php:50
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getTaxedPrice
getTaxedPrice()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getBillingAddress
getBillingAddress()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setCustomer
setCustomer(?CustomerReference $customer)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getCustom
getCustom()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
QuoteRequest.php:43
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_SHIPPING_INFO
const FIELD_SHIPPING_INFO
Definition:
QuoteRequest.php:56
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getTaxMode
getTaxMode()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getId
getId()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
QuoteRequest.php:65
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
QuoteRequest.php:39
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setTaxMode
setTaxMode(?string $taxMode)
Commercetools\Api\Models\QuoteRequest\QuoteRequest\FIELD_CUSTOM_LINE_ITEMS
const FIELD_CUSTOM_LINE_ITEMS
Definition:
QuoteRequest.php:46
Commercetools\Api\Models\QuoteRequest\QuoteRequest\getTaxRoundingMode
getTaxRoundingMode()
Commercetools\Api\Models\QuoteRequest\QuoteRequest\setShippingRateInput
setShippingRateInput(?ShippingRateInput $shippingRateInput)
Commercetools\Api\Models\State\StateReference
Definition:
StateReference.php:16
Commercetools\Api\Models\Store\StoreKeyReference
Definition:
StoreKeyReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\QuoteRequest
Definition:
QuoteRequest.php:9
Generated by
1.9.1