commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Quote
Quote.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Quote
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
;
12
use
Commercetools\Api\Models\Cart\CustomLineItemCollection
;
13
use
Commercetools\Api\Models\Cart\DirectDiscountCollection
;
14
use
Commercetools\Api\Models\Cart\LineItemCollection
;
15
use
Commercetools\Api\Models\Cart\ShippingInfo
;
16
use
Commercetools\Api\Models\Cart\ShippingRateInput
;
17
use
Commercetools\Api\Models\Cart\TaxedPrice
;
18
use
Commercetools\Api\Models\Common\Address
;
19
use
Commercetools\Api\Models\Common\AddressCollection
;
20
use
Commercetools\Api\Models\Common\BaseResource
;
21
use
Commercetools\Api\Models\Common\CreatedBy
;
22
use
Commercetools\Api\Models\Common\LastModifiedBy
;
23
use
Commercetools\Api\Models\Common\TypedMoney
;
24
use
Commercetools\Api\Models\Customer\CustomerReference
;
25
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
;
26
use
Commercetools\Api\Models\Order\PaymentInfo
;
27
use
Commercetools\Api\Models\QuoteRequest\QuoteRequestReference
;
28
use
Commercetools\Api\Models\StagedQuote\StagedQuoteReference
;
29
use
Commercetools\Api\Models\State\StateReference
;
30
use
Commercetools\Api\Models\Store\StoreKeyReference
;
31
use
Commercetools\Api\Models\Type\CustomFields
;
32
use
Commercetools\Base\DateTimeImmutableCollection
;
33
use
Commercetools\Base\JsonObject
;
34
use DateTimeImmutable;
35
36
interface
Quote
extends
BaseResource
37
{
38
public
const
FIELD_KEY
=
'key'
;
39
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
40
public
const
FIELD_CREATED_BY
=
'createdBy'
;
41
public
const
FIELD_QUOTE_REQUEST
=
'quoteRequest'
;
42
public
const
FIELD_STAGED_QUOTE
=
'stagedQuote'
;
43
public
const
FIELD_CUSTOMER
=
'customer'
;
44
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
45
public
const
FIELD_VALID_TO
=
'validTo'
;
46
public
const
FIELD_SELLER_COMMENT
=
'sellerComment'
;
47
public
const
FIELD_BUYER_COMMENT
=
'buyerComment'
;
48
public
const
FIELD_STORE
=
'store'
;
49
public
const
FIELD_LINE_ITEMS
=
'lineItems'
;
50
public
const
FIELD_CUSTOM_LINE_ITEMS
=
'customLineItems'
;
51
public
const
FIELD_TOTAL_PRICE
=
'totalPrice'
;
52
public
const
FIELD_TAXED_PRICE
=
'taxedPrice'
;
53
public
const
FIELD_SHIPPING_ADDRESS
=
'shippingAddress'
;
54
public
const
FIELD_BILLING_ADDRESS
=
'billingAddress'
;
55
public
const
FIELD_INVENTORY_MODE
=
'inventoryMode'
;
56
public
const
FIELD_TAX_MODE
=
'taxMode'
;
57
public
const
FIELD_TAX_ROUNDING_MODE
=
'taxRoundingMode'
;
58
public
const
FIELD_TAX_CALCULATION_MODE
=
'taxCalculationMode'
;
59
public
const
FIELD_COUNTRY
=
'country'
;
60
public
const
FIELD_SHIPPING_INFO
=
'shippingInfo'
;
61
public
const
FIELD_PAYMENT_INFO
=
'paymentInfo'
;
62
public
const
FIELD_SHIPPING_RATE_INPUT
=
'shippingRateInput'
;
63
public
const
FIELD_ITEM_SHIPPING_ADDRESSES
=
'itemShippingAddresses'
;
64
public
const
FIELD_DIRECT_DISCOUNTS
=
'directDiscounts'
;
65
public
const
FIELD_CUSTOM
=
'custom'
;
66
public
const
FIELD_QUOTE_STATE
=
'quoteState'
;
67
public
const
FIELD_STATE
=
'state'
;
68
public
const
FIELD_PURCHASE_ORDER_NUMBER
=
'purchaseOrderNumber'
;
69
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
70
77
public
function
getId
();
78
85
public
function
getVersion
();
86
93
public
function
getKey
();
94
101
public
function
getCreatedAt
();
102
109
public
function
getLastModifiedAt
();
110
117
public
function
getLastModifiedBy
();
118
125
public
function
getCreatedBy
();
126
133
public
function
getQuoteRequest
();
134
141
public
function
getStagedQuote
();
142
149
public
function
getCustomer
();
150
159
public
function
getCustomerGroup
();
160
167
public
function
getValidTo
();
168
175
public
function
getSellerComment
();
176
183
public
function
getBuyerComment
();
184
191
public
function
getStore
();
192
199
public
function
getLineItems
();
200
207
public
function
getCustomLineItems
();
208
216
public
function
getTotalPrice
();
217
226
public
function
getTaxedPrice
();
227
235
public
function
getShippingAddress
();
236
243
public
function
getBillingAddress
();
244
251
public
function
getInventoryMode
();
252
259
public
function
getTaxMode
();
260
267
public
function
getTaxRoundingMode
();
268
275
public
function
getTaxCalculationMode
();
276
283
public
function
getCountry
();
284
291
public
function
getShippingInfo
();
292
299
public
function
getPaymentInfo
();
300
307
public
function
getShippingRateInput
();
308
318
public
function
getItemShippingAddresses
();
319
326
public
function
getDirectDiscounts
();
327
334
public
function
getCustom
();
335
342
public
function
getQuoteState
();
343
351
public
function
getState
();
352
360
public
function
getPurchaseOrderNumber
();
361
368
public
function
getBusinessUnit
();
369
373
public
function
setId
(?
string
$id): void;
374
378
public
function
setVersion
(?
int
$version): void;
379
383
public
function
setKey
(?
string
$key): void;
384
388
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
389
393
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
394
398
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
399
403
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
404
408
public
function
setQuoteRequest
(?
QuoteRequestReference
$quoteRequest): void;
409
413
public
function
setStagedQuote
(?
StagedQuoteReference
$stagedQuote): void;
414
418
public
function
setCustomer
(?
CustomerReference
$customer): void;
419
423
public
function
setCustomerGroup
(?
CustomerGroupReference
$customerGroup): void;
424
428
public
function
setValidTo
(?DateTimeImmutable $validTo): void;
429
433
public
function
setSellerComment
(?
string
$sellerComment): void;
434
438
public
function
setBuyerComment
(?
string
$buyerComment): void;
439
443
public
function
setStore
(?
StoreKeyReference
$store): void;
444
448
public
function
setLineItems
(?
LineItemCollection
$lineItems): void;
449
453
public
function
setCustomLineItems
(?
CustomLineItemCollection
$customLineItems): void;
454
458
public
function
setTotalPrice
(?
TypedMoney
$totalPrice): void;
459
463
public
function
setTaxedPrice
(?
TaxedPrice
$taxedPrice): void;
464
468
public
function
setShippingAddress
(?
Address
$shippingAddress): void;
469
473
public
function
setBillingAddress
(?
Address
$billingAddress): void;
474
478
public
function
setInventoryMode
(?
string
$inventoryMode): void;
479
483
public
function
setTaxMode
(?
string
$taxMode): void;
484
488
public
function
setTaxRoundingMode
(?
string
$taxRoundingMode): void;
489
493
public
function
setTaxCalculationMode
(?
string
$taxCalculationMode): void;
494
498
public
function
setCountry
(?
string
$country): void;
499
503
public
function
setShippingInfo
(?
ShippingInfo
$shippingInfo): void;
504
508
public
function
setPaymentInfo
(?
PaymentInfo
$paymentInfo): void;
509
513
public
function
setShippingRateInput
(?
ShippingRateInput
$shippingRateInput): void;
514
518
public
function
setItemShippingAddresses
(?
AddressCollection
$itemShippingAddresses): void;
519
523
public
function
setDirectDiscounts
(?
DirectDiscountCollection
$directDiscounts): void;
524
528
public
function
setCustom
(?
CustomFields
$custom): void;
529
533
public
function
setQuoteState
(?
string
$quoteState): void;
534
538
public
function
setState
(?
StateReference
$state): void;
539
543
public
function
setPurchaseOrderNumber
(?
string
$purchaseOrderNumber): void;
544
548
public
function
setBusinessUnit
(?
BusinessUnitKeyReference
$businessUnit): void;
549
}
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\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\Quote\Quote
Definition:
Quote.php:37
Commercetools\Api\Models\Quote\Quote\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Quote\Quote\getTaxCalculationMode
getTaxCalculationMode()
Commercetools\Api\Models\Quote\Quote\setDirectDiscounts
setDirectDiscounts(?DirectDiscountCollection $directDiscounts)
Commercetools\Api\Models\Quote\Quote\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\Quote\Quote\FIELD_BILLING_ADDRESS
const FIELD_BILLING_ADDRESS
Definition:
Quote.php:54
Commercetools\Api\Models\Quote\Quote\setPaymentInfo
setPaymentInfo(?PaymentInfo $paymentInfo)
Commercetools\Api\Models\Quote\Quote\getCustomer
getCustomer()
Commercetools\Api\Models\Quote\Quote\setPurchaseOrderNumber
setPurchaseOrderNumber(?string $purchaseOrderNumber)
Commercetools\Api\Models\Quote\Quote\setShippingInfo
setShippingInfo(?ShippingInfo $shippingInfo)
Commercetools\Api\Models\Quote\Quote\FIELD_LINE_ITEMS
const FIELD_LINE_ITEMS
Definition:
Quote.php:49
Commercetools\Api\Models\Quote\Quote\getId
getId()
Commercetools\Api\Models\Quote\Quote\FIELD_QUOTE_STATE
const FIELD_QUOTE_STATE
Definition:
Quote.php:66
Commercetools\Api\Models\Quote\Quote\FIELD_SHIPPING_ADDRESS
const FIELD_SHIPPING_ADDRESS
Definition:
Quote.php:53
Commercetools\Api\Models\Quote\Quote\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\Quote\Quote\FIELD_DIRECT_DISCOUNTS
const FIELD_DIRECT_DISCOUNTS
Definition:
Quote.php:64
Commercetools\Api\Models\Quote\Quote\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
Quote.php:43
Commercetools\Api\Models\Quote\Quote\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Quote.php:39
Commercetools\Api\Models\Quote\Quote\getValidTo
getValidTo()
Commercetools\Api\Models\Quote\Quote\FIELD_TAX_CALCULATION_MODE
const FIELD_TAX_CALCULATION_MODE
Definition:
Quote.php:58
Commercetools\Api\Models\Quote\Quote\getKey
getKey()
Commercetools\Api\Models\Quote\Quote\FIELD_INVENTORY_MODE
const FIELD_INVENTORY_MODE
Definition:
Quote.php:55
Commercetools\Api\Models\Quote\Quote\FIELD_STAGED_QUOTE
const FIELD_STAGED_QUOTE
Definition:
Quote.php:42
Commercetools\Api\Models\Quote\Quote\setBillingAddress
setBillingAddress(?Address $billingAddress)
Commercetools\Api\Models\Quote\Quote\getState
getState()
Commercetools\Api\Models\Quote\Quote\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
Quote.php:69
Commercetools\Api\Models\Quote\Quote\getTaxRoundingMode
getTaxRoundingMode()
Commercetools\Api\Models\Quote\Quote\getDirectDiscounts
getDirectDiscounts()
Commercetools\Api\Models\Quote\Quote\getBuyerComment
getBuyerComment()
Commercetools\Api\Models\Quote\Quote\setBuyerComment
setBuyerComment(?string $buyerComment)
Commercetools\Api\Models\Quote\Quote\getSellerComment
getSellerComment()
Commercetools\Api\Models\Quote\Quote\setSellerComment
setSellerComment(?string $sellerComment)
Commercetools\Api\Models\Quote\Quote\getBillingAddress
getBillingAddress()
Commercetools\Api\Models\Quote\Quote\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
Quote.php:65
Commercetools\Api\Models\Quote\Quote\getCustom
getCustom()
Commercetools\Api\Models\Quote\Quote\getShippingAddress
getShippingAddress()
Commercetools\Api\Models\Quote\Quote\getTaxMode
getTaxMode()
Commercetools\Api\Models\Quote\Quote\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
Quote.php:44
Commercetools\Api\Models\Quote\Quote\getVersion
getVersion()
Commercetools\Api\Models\Quote\Quote\setKey
setKey(?string $key)
Commercetools\Api\Models\Quote\Quote\FIELD_CUSTOM_LINE_ITEMS
const FIELD_CUSTOM_LINE_ITEMS
Definition:
Quote.php:50
Commercetools\Api\Models\Quote\Quote\FIELD_KEY
const FIELD_KEY
Definition:
Quote.php:38
Commercetools\Api\Models\Quote\Quote\setQuoteState
setQuoteState(?string $quoteState)
Commercetools\Api\Models\Quote\Quote\FIELD_TOTAL_PRICE
const FIELD_TOTAL_PRICE
Definition:
Quote.php:51
Commercetools\Api\Models\Quote\Quote\getTotalPrice
getTotalPrice()
Commercetools\Api\Models\Quote\Quote\setTaxedPrice
setTaxedPrice(?TaxedPrice $taxedPrice)
Commercetools\Api\Models\Quote\Quote\setStore
setStore(?StoreKeyReference $store)
Commercetools\Api\Models\Quote\Quote\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\Quote\Quote\getCountry
getCountry()
Commercetools\Api\Models\Quote\Quote\setLineItems
setLineItems(?LineItemCollection $lineItems)
Commercetools\Api\Models\Quote\Quote\setStagedQuote
setStagedQuote(?StagedQuoteReference $stagedQuote)
Commercetools\Api\Models\Quote\Quote\setQuoteRequest
setQuoteRequest(?QuoteRequestReference $quoteRequest)
Commercetools\Api\Models\Quote\Quote\FIELD_STORE
const FIELD_STORE
Definition:
Quote.php:48
Commercetools\Api\Models\Quote\Quote\getInventoryMode
getInventoryMode()
Commercetools\Api\Models\Quote\Quote\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Quote\Quote\getCustomLineItems
getCustomLineItems()
Commercetools\Api\Models\Quote\Quote\getItemShippingAddresses
getItemShippingAddresses()
Commercetools\Api\Models\Quote\Quote\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Quote\Quote\setInventoryMode
setInventoryMode(?string $inventoryMode)
Commercetools\Api\Models\Quote\Quote\FIELD_PURCHASE_ORDER_NUMBER
const FIELD_PURCHASE_ORDER_NUMBER
Definition:
Quote.php:68
Commercetools\Api\Models\Quote\Quote\setBusinessUnit
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
Commercetools\Api\Models\Quote\Quote\getPaymentInfo
getPaymentInfo()
Commercetools\Api\Models\Quote\Quote\setId
setId(?string $id)
Commercetools\Api\Models\Quote\Quote\setCustomLineItems
setCustomLineItems(?CustomLineItemCollection $customLineItems)
Commercetools\Api\Models\Quote\Quote\FIELD_TAXED_PRICE
const FIELD_TAXED_PRICE
Definition:
Quote.php:52
Commercetools\Api\Models\Quote\Quote\setTaxCalculationMode
setTaxCalculationMode(?string $taxCalculationMode)
Commercetools\Api\Models\Quote\Quote\setCustomerGroup
setCustomerGroup(?CustomerGroupReference $customerGroup)
Commercetools\Api\Models\Quote\Quote\getTaxedPrice
getTaxedPrice()
Commercetools\Api\Models\Quote\Quote\getQuoteRequest
getQuoteRequest()
Commercetools\Api\Models\Quote\Quote\setItemShippingAddresses
setItemShippingAddresses(?AddressCollection $itemShippingAddresses)
Commercetools\Api\Models\Quote\Quote\FIELD_STATE
const FIELD_STATE
Definition:
Quote.php:67
Commercetools\Api\Models\Quote\Quote\getShippingInfo
getShippingInfo()
Commercetools\Api\Models\Quote\Quote\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Quote\Quote\FIELD_TAX_MODE
const FIELD_TAX_MODE
Definition:
Quote.php:56
Commercetools\Api\Models\Quote\Quote\setCustomer
setCustomer(?CustomerReference $customer)
Commercetools\Api\Models\Quote\Quote\FIELD_BUYER_COMMENT
const FIELD_BUYER_COMMENT
Definition:
Quote.php:47
Commercetools\Api\Models\Quote\Quote\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Quote\Quote\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Quote\Quote\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Quote\Quote\setTotalPrice
setTotalPrice(?TypedMoney $totalPrice)
Commercetools\Api\Models\Quote\Quote\getStore
getStore()
Commercetools\Api\Models\Quote\Quote\setTaxMode
setTaxMode(?string $taxMode)
Commercetools\Api\Models\Quote\Quote\getQuoteState
getQuoteState()
Commercetools\Api\Models\Quote\Quote\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Quote\Quote\FIELD_SELLER_COMMENT
const FIELD_SELLER_COMMENT
Definition:
Quote.php:46
Commercetools\Api\Models\Quote\Quote\getShippingRateInput
getShippingRateInput()
Commercetools\Api\Models\Quote\Quote\getPurchaseOrderNumber
getPurchaseOrderNumber()
Commercetools\Api\Models\Quote\Quote\FIELD_SHIPPING_RATE_INPUT
const FIELD_SHIPPING_RATE_INPUT
Definition:
Quote.php:62
Commercetools\Api\Models\Quote\Quote\setShippingRateInput
setShippingRateInput(?ShippingRateInput $shippingRateInput)
Commercetools\Api\Models\Quote\Quote\setValidTo
setValidTo(?DateTimeImmutable $validTo)
Commercetools\Api\Models\Quote\Quote\setCountry
setCountry(?string $country)
Commercetools\Api\Models\Quote\Quote\setState
setState(?StateReference $state)
Commercetools\Api\Models\Quote\Quote\FIELD_ITEM_SHIPPING_ADDRESSES
const FIELD_ITEM_SHIPPING_ADDRESSES
Definition:
Quote.php:63
Commercetools\Api\Models\Quote\Quote\getStagedQuote
getStagedQuote()
Commercetools\Api\Models\Quote\Quote\FIELD_TAX_ROUNDING_MODE
const FIELD_TAX_ROUNDING_MODE
Definition:
Quote.php:57
Commercetools\Api\Models\Quote\Quote\getLineItems
getLineItems()
Commercetools\Api\Models\Quote\Quote\FIELD_COUNTRY
const FIELD_COUNTRY
Definition:
Quote.php:59
Commercetools\Api\Models\Quote\Quote\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Quote.php:40
Commercetools\Api\Models\Quote\Quote\setShippingAddress
setShippingAddress(?Address $shippingAddress)
Commercetools\Api\Models\Quote\Quote\FIELD_QUOTE_REQUEST
const FIELD_QUOTE_REQUEST
Definition:
Quote.php:41
Commercetools\Api\Models\Quote\Quote\FIELD_PAYMENT_INFO
const FIELD_PAYMENT_INFO
Definition:
Quote.php:61
Commercetools\Api\Models\Quote\Quote\FIELD_VALID_TO
const FIELD_VALID_TO
Definition:
Quote.php:45
Commercetools\Api\Models\Quote\Quote\FIELD_SHIPPING_INFO
const FIELD_SHIPPING_INFO
Definition:
Quote.php:60
Commercetools\Api\Models\Quote\Quote\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Quote\Quote\setTaxRoundingMode
setTaxRoundingMode(?string $taxRoundingMode)
Commercetools\Api\Models\QuoteRequest\QuoteRequestReference
Definition:
QuoteRequestReference.php:16
Commercetools\Api\Models\StagedQuote\StagedQuoteReference
Definition:
StagedQuoteReference.php:16
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\Quote
Definition:
Quote.php:9
Generated by
1.9.1