commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Commercetools\Api\Models\Cart\Cart Interface Reference

Inherits Commercetools\Api\Models\Common\BaseResource.

Inherited by Commercetools\Api\Models\Cart\CartModel.

Public Member Functions

 getId ()
 
 getVersion ()
 
 getKey ()
 
 getCustomerId ()
 
 getCustomerEmail ()
 
 getCustomerGroup ()
 
 getAnonymousId ()
 
 getBusinessUnit ()
 
 getStore ()
 
 getLineItems ()
 
 getCustomLineItems ()
 
 getTotalLineItemQuantity ()
 
 getTotalPrice ()
 
 getTaxedPrice ()
 
 getTaxedShippingPrice ()
 
 getDiscountOnTotalPrice ()
 
 getTaxMode ()
 
 getPriceRoundingMode ()
 
 getTaxRoundingMode ()
 
 getTaxCalculationMode ()
 
 getInventoryMode ()
 
 getCartState ()
 
 getBillingAddress ()
 
 getShippingAddress ()
 
 getShippingMode ()
 
 getShippingKey ()
 
 getShippingInfo ()
 
 getShippingRateInput ()
 
 getShippingCustomFields ()
 
 getShipping ()
 
 getItemShippingAddresses ()
 
 getDiscountCodes ()
 
 getDirectDiscounts ()
 
 getRefusedGifts ()
 
 getPaymentInfo ()
 
 getCountry ()
 
 getLocale ()
 
 getOrigin ()
 
 getCustom ()
 
 getDiscountTypeCombination ()
 
 getDeleteDaysAfterLastModification ()
 
 getCreatedAt ()
 
 getLastModifiedAt ()
 
 getLastModifiedBy ()
 
 getCreatedBy ()
 
 setId (?string $id)
 
 setVersion (?int $version)
 
 setKey (?string $key)
 
 setCustomerId (?string $customerId)
 
 setCustomerEmail (?string $customerEmail)
 
 setCustomerGroup (?CustomerGroupReference $customerGroup)
 
 setAnonymousId (?string $anonymousId)
 
 setBusinessUnit (?BusinessUnitKeyReference $businessUnit)
 
 setStore (?StoreKeyReference $store)
 
 setLineItems (?LineItemCollection $lineItems)
 
 setCustomLineItems (?CustomLineItemCollection $customLineItems)
 
 setTotalLineItemQuantity (?int $totalLineItemQuantity)
 
 setTotalPrice (?CentPrecisionMoney $totalPrice)
 
 setTaxedPrice (?TaxedPrice $taxedPrice)
 
 setTaxedShippingPrice (?TaxedPrice $taxedShippingPrice)
 
 setDiscountOnTotalPrice (?DiscountOnTotalPrice $discountOnTotalPrice)
 
 setTaxMode (?string $taxMode)
 
 setPriceRoundingMode (?string $priceRoundingMode)
 
 setTaxRoundingMode (?string $taxRoundingMode)
 
 setTaxCalculationMode (?string $taxCalculationMode)
 
 setInventoryMode (?string $inventoryMode)
 
 setCartState (?string $cartState)
 
 setBillingAddress (?Address $billingAddress)
 
 setShippingAddress (?Address $shippingAddress)
 
 setShippingMode (?string $shippingMode)
 
 setShippingKey (?string $shippingKey)
 
 setShippingInfo (?ShippingInfo $shippingInfo)
 
 setShippingRateInput (?ShippingRateInput $shippingRateInput)
 
 setShippingCustomFields (?CustomFields $shippingCustomFields)
 
 setShipping (?ShippingCollection $shipping)
 
 setItemShippingAddresses (?AddressCollection $itemShippingAddresses)
 
 setDiscountCodes (?DiscountCodeInfoCollection $discountCodes)
 
 setDirectDiscounts (?DirectDiscountCollection $directDiscounts)
 
 setRefusedGifts (?CartDiscountReferenceCollection $refusedGifts)
 
 setPaymentInfo (?PaymentInfo $paymentInfo)
 
 setCountry (?string $country)
 
 setLocale (?string $locale)
 
 setOrigin (?string $origin)
 
 setCustom (?CustomFields $custom)
 
 setDiscountTypeCombination (?DiscountTypeCombination $discountTypeCombination)
 
 setDeleteDaysAfterLastModification (?int $deleteDaysAfterLastModification)
 
 setCreatedAt (?DateTimeImmutable $createdAt)
 
 setLastModifiedAt (?DateTimeImmutable $lastModifiedAt)
 
 setLastModifiedBy (?LastModifiedBy $lastModifiedBy)
 
 setCreatedBy (?CreatedBy $createdBy)
 
- Public Member Functions inherited from Commercetools\Base\JsonObject
 get (string $field)
 
 with (?callable $callable=null)
 

Public Attributes

const FIELD_KEY = 'key'
 
const FIELD_CUSTOMER_ID = 'customerId'
 
const FIELD_CUSTOMER_EMAIL = 'customerEmail'
 
const FIELD_CUSTOMER_GROUP = 'customerGroup'
 
const FIELD_ANONYMOUS_ID = 'anonymousId'
 
const FIELD_BUSINESS_UNIT = 'businessUnit'
 
const FIELD_STORE = 'store'
 
const FIELD_LINE_ITEMS = 'lineItems'
 
const FIELD_CUSTOM_LINE_ITEMS = 'customLineItems'
 
const FIELD_TOTAL_LINE_ITEM_QUANTITY = 'totalLineItemQuantity'
 
const FIELD_TOTAL_PRICE = 'totalPrice'
 
const FIELD_TAXED_PRICE = 'taxedPrice'
 
const FIELD_TAXED_SHIPPING_PRICE = 'taxedShippingPrice'
 
const FIELD_DISCOUNT_ON_TOTAL_PRICE = 'discountOnTotalPrice'
 
const FIELD_TAX_MODE = 'taxMode'
 
const FIELD_PRICE_ROUNDING_MODE = 'priceRoundingMode'
 
const FIELD_TAX_ROUNDING_MODE = 'taxRoundingMode'
 
const FIELD_TAX_CALCULATION_MODE = 'taxCalculationMode'
 
const FIELD_INVENTORY_MODE = 'inventoryMode'
 
const FIELD_CART_STATE = 'cartState'
 
const FIELD_BILLING_ADDRESS = 'billingAddress'
 
const FIELD_SHIPPING_ADDRESS = 'shippingAddress'
 
const FIELD_SHIPPING_MODE = 'shippingMode'
 
const FIELD_SHIPPING_KEY = 'shippingKey'
 
const FIELD_SHIPPING_INFO = 'shippingInfo'
 
const FIELD_SHIPPING_RATE_INPUT = 'shippingRateInput'
 
const FIELD_SHIPPING_CUSTOM_FIELDS = 'shippingCustomFields'
 
const FIELD_SHIPPING = 'shipping'
 
const FIELD_ITEM_SHIPPING_ADDRESSES = 'itemShippingAddresses'
 
const FIELD_DISCOUNT_CODES = 'discountCodes'
 
const FIELD_DIRECT_DISCOUNTS = 'directDiscounts'
 
const FIELD_REFUSED_GIFTS = 'refusedGifts'
 
const FIELD_PAYMENT_INFO = 'paymentInfo'
 
const FIELD_COUNTRY = 'country'
 
const FIELD_LOCALE = 'locale'
 
const FIELD_ORIGIN = 'origin'
 
const FIELD_CUSTOM = 'custom'
 
const FIELD_DISCOUNT_TYPE_COMBINATION = 'discountTypeCombination'
 
const FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification'
 
const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy'
 
const FIELD_CREATED_BY = 'createdBy'
 
- Public Attributes inherited from Commercetools\Api\Models\Common\BaseResource
const FIELD_ID = 'id'
 
const FIELD_VERSION = 'version'
 
const FIELD_CREATED_AT = 'createdAt'
 
const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt'
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\JsonObject
static of ($data=null)
 
static fromArray (array $data=[])
 
static fromStdClass (?stdClass $data=null)
 

Detailed Description

Definition at line 27 of file Cart.php.

Member Function Documentation

◆ getAnonymousId()

Commercetools\Api\Models\Cart\Cart::getAnonymousId ( )

Anonymous session associated with the Cart.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getBillingAddress()

Commercetools\Api\Models\Cart\Cart::getBillingAddress ( )

Billing address associated with the Cart.

Returns
null|Address

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getBusinessUnit()

Commercetools\Api\Models\Cart\Cart::getBusinessUnit ( )

Reference to a Business Unit the Cart belongs to. Only available for B2B-enabled Projects.

Returns
null|BusinessUnitKeyReference

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCartState()

Commercetools\Api\Models\Cart\Cart::getCartState ( )

Current status of the Cart.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCountry()

Commercetools\Api\Models\Cart\Cart::getCountry ( )

Used for Line Item price selection.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCreatedAt()

Commercetools\Api\Models\Cart\Cart::getCreatedAt ( )

Date and time (UTC) the Cart was initially created.

Returns
null|DateTimeImmutable

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCreatedBy()

Commercetools\Api\Models\Cart\Cart::getCreatedBy ( )

IDs and references that created the Cart.

Returns
null|CreatedBy

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCustom()

Commercetools\Api\Models\Cart\Cart::getCustom ( )

Custom Fields of the Cart.

Returns
null|CustomFields

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCustomerEmail()

Commercetools\Api\Models\Cart\Cart::getCustomerEmail ( )

Email address of the Customer that the Cart belongs to.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCustomerGroup()

Commercetools\Api\Models\Cart\Cart::getCustomerGroup ( )

Reference to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

Returns
null|CustomerGroupReference

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCustomerId()

Commercetools\Api\Models\Cart\Cart::getCustomerId ( )

id of the Customer that the Cart belongs to.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getCustomLineItems()

Commercetools\Api\Models\Cart\Cart::getCustomLineItems ( )

Custom Line Items added to the Cart.

Returns
null|CustomLineItemCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getDeleteDaysAfterLastModification()

Commercetools\Api\Models\Cart\Cart::getDeleteDaysAfterLastModification ( )

Number of days after the last modification before a Cart is deleted. Configured in Project settings.

Returns
null|int

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getDirectDiscounts()

Commercetools\Api\Models\Cart\Cart::getDirectDiscounts ( )

Direct Discounts added to the Cart. A Cart that has discountCodes cannot have directDiscounts.

Returns
null|DirectDiscountCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getDiscountCodes()

Commercetools\Api\Models\Cart\Cart::getDiscountCodes ( )

Discount Codes applied to the Cart. A Cart that has directDiscounts cannot have discountCodes.

Returns
null|DiscountCodeInfoCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getDiscountOnTotalPrice()

Commercetools\Api\Models\Cart\Cart::getDiscountOnTotalPrice ( )

Discounts that apply on the Cart totalPrice.

Returns
null|DiscountOnTotalPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getDiscountTypeCombination()

Commercetools\Api\Models\Cart\Cart::getDiscountTypeCombination ( )

Indicates if a combination of discount types can apply on a Cart.

Returns
null|DiscountTypeCombination

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getId()

Commercetools\Api\Models\Cart\Cart::getId ( )

Unique identifier of the Cart.

Returns
null|string

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getInventoryMode()

Commercetools\Api\Models\Cart\Cart::getInventoryMode ( )

Indicates how stock quantities are tracked for Line Items in the Cart.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getItemShippingAddresses()

Commercetools\Api\Models\Cart\Cart::getItemShippingAddresses ( )

Additional shipping addresses of the Cart as specified by LineItems using the shippingDetails field.

For Carts with Single ShippingMode: eligible Shipping Methods or applicable Tax Rates are determined by the address in shippingAddress, and not itemShippingAddresses.

Returns
null|AddressCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getKey()

Commercetools\Api\Models\Cart\Cart::getKey ( )

User-defined unique identifier of the Cart.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getLastModifiedAt()

Commercetools\Api\Models\Cart\Cart::getLastModifiedAt ( )

Date and time (UTC) the Cart was last updated.

Returns
null|DateTimeImmutable

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getLastModifiedBy()

Commercetools\Api\Models\Cart\Cart::getLastModifiedBy ( )

IDs and references that last modified the Cart.

Returns
null|LastModifiedBy

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getLineItems()

Commercetools\Api\Models\Cart\Cart::getLineItems ( )

Line Items added to the Cart.

Returns
null|LineItemCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getLocale()

Commercetools\Api\Models\Cart\Cart::getLocale ( )

Language of the Cart. Must be one of the languages supported by the Project.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getOrigin()

Commercetools\Api\Models\Cart\Cart::getOrigin ( )

Indicates how the Cart was created.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getPaymentInfo()

Commercetools\Api\Models\Cart\Cart::getPaymentInfo ( )

Payment information related to the Cart.

Returns
null|PaymentInfo

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getPriceRoundingMode()

Commercetools\Api\Models\Cart\Cart::getPriceRoundingMode ( )

Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated. Configured in Project settings.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getRefusedGifts()

Commercetools\Api\Models\Cart\Cart::getRefusedGifts ( )

Automatically set when a Line Item with GiftLineItem LineItemMode is removed from the Cart.

Returns
null|CartDiscountReferenceCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShipping()

Commercetools\Api\Models\Cart\Cart::getShipping ( )

Shipping-related information of a Cart with Multiple ShippingMode. Updated automatically each time a new Shipping Method is added.

Returns
null|ShippingCollection

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingAddress()

Commercetools\Api\Models\Cart\Cart::getShippingAddress ( )

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items.

Returns
null|Address

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingCustomFields()

Commercetools\Api\Models\Cart\Cart::getShippingCustomFields ( )

Custom Fields of the Shipping Method in a Cart with Single ShippingMode.

Returns
null|CustomFields

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingInfo()

Commercetools\Api\Models\Cart\Cart::getShippingInfo ( )

Shipping-related information of a Cart with Single ShippingMode. Automatically set when a Shipping Method is set.

Returns
null|ShippingInfo

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingKey()

Commercetools\Api\Models\Cart\Cart::getShippingKey ( )

User-defined unique identifier of the Shipping Method in a Cart with Single ShippingMode.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingMode()

Commercetools\Api\Models\Cart\Cart::getShippingMode ( )

Indicates whether the Cart has one or multiple Shipping Methods.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getShippingRateInput()

Commercetools\Api\Models\Cart\Cart::getShippingRateInput ( )

Input used to select a ShippingRatePriceTier. The data type of this field depends on the shippingRateInputType.type configured in the Project:

Returns
null|ShippingRateInput

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getStore()

Commercetools\Api\Models\Cart\Cart::getStore ( )

Reference to a Store the Cart belongs to.

Returns
null|StoreKeyReference

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTaxCalculationMode()

Commercetools\Api\Models\Cart\Cart::getTaxCalculationMode ( )

Indicates how taxes are calculated when calculating taxes for taxedPrice.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTaxedPrice()

Commercetools\Api\Models\Cart\Cart::getTaxedPrice ( )
  • For a Cart with Platform TaxMode, it is automatically set when a shipping address is set. For Carts with Multiple ShippingMode, all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via shippingDetails), otherwise taxedPrice is not automatically set.
  • For a Cart with External TaxMode, it is automatically set when shippingAddress and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with Multiple ShippingMode, all allocations must have their respective tax rates present in perMethodTaxRate, otherwise taxedPrice is not automatically set.

If a discount applies on totalPrice, this field holds the proportionally discounted value.

Returns
null|TaxedPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTaxedShippingPrice()

Commercetools\Api\Models\Cart\Cart::getTaxedShippingPrice ( )

Sum of the taxedPrice field of ShippingInfo across all Shipping Methods.

If a discount applies on totalPrice, this field holds the proportionally discounted value.

Returns
null|TaxedPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTaxMode()

Commercetools\Api\Models\Cart\Cart::getTaxMode ( )

Indicates how Tax Rates are set.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTaxRoundingMode()

Commercetools\Api\Models\Cart\Cart::getTaxRoundingMode ( )

Indicates how monetary values are rounded when calculating taxes for taxedPrice. Configured in Project settings.

Returns
null|string

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTotalLineItemQuantity()

Commercetools\Api\Models\Cart\Cart::getTotalLineItemQuantity ( )

Sum of all LineItem quantities, excluding CustomLineItems. Only present when the Cart has at least one LineItem.

Returns
null|int

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getTotalPrice()

Commercetools\Api\Models\Cart\Cart::getTotalPrice ( )

Sum of the totalPrice field of all LineItems and CustomLineItems, and if available, the price field of ShippingInfo. If a discount applies on totalPrice, this field holds the discounted value.

Taxes are included if TaxRate includedInPrice is true for each price.

Returns
null|CentPrecisionMoney

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ getVersion()

Commercetools\Api\Models\Cart\Cart::getVersion ( )

Current version of the Cart.

Returns
null|int

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setAnonymousId()

Commercetools\Api\Models\Cart\Cart::setAnonymousId ( ?string  $anonymousId)
Parameters
?string$anonymousId

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setBillingAddress()

Commercetools\Api\Models\Cart\Cart::setBillingAddress ( ?Address  $billingAddress)
Parameters
?Address$billingAddress

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setBusinessUnit()

Commercetools\Api\Models\Cart\Cart::setBusinessUnit ( ?BusinessUnitKeyReference  $businessUnit)
Parameters
?BusinessUnitKeyReference$businessUnit

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCartState()

Commercetools\Api\Models\Cart\Cart::setCartState ( ?string  $cartState)
Parameters
?string$cartState

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCountry()

Commercetools\Api\Models\Cart\Cart::setCountry ( ?string  $country)
Parameters
?string$country

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCreatedAt()

Commercetools\Api\Models\Cart\Cart::setCreatedAt ( ?DateTimeImmutable  $createdAt)
Parameters
?DateTimeImmutable$createdAt

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCreatedBy()

Commercetools\Api\Models\Cart\Cart::setCreatedBy ( ?CreatedBy  $createdBy)
Parameters
?CreatedBy$createdBy

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCustom()

Commercetools\Api\Models\Cart\Cart::setCustom ( ?CustomFields  $custom)
Parameters
?CustomFields$custom

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCustomerEmail()

Commercetools\Api\Models\Cart\Cart::setCustomerEmail ( ?string  $customerEmail)
Parameters
?string$customerEmail

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCustomerGroup()

Commercetools\Api\Models\Cart\Cart::setCustomerGroup ( ?CustomerGroupReference  $customerGroup)
Parameters
?CustomerGroupReference$customerGroup

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCustomerId()

Commercetools\Api\Models\Cart\Cart::setCustomerId ( ?string  $customerId)
Parameters
?string$customerId

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setCustomLineItems()

Commercetools\Api\Models\Cart\Cart::setCustomLineItems ( ?CustomLineItemCollection  $customLineItems)
Parameters
?CustomLineItemCollection$customLineItems

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setDeleteDaysAfterLastModification()

Commercetools\Api\Models\Cart\Cart::setDeleteDaysAfterLastModification ( ?int  $deleteDaysAfterLastModification)
Parameters
?int$deleteDaysAfterLastModification

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setDirectDiscounts()

Commercetools\Api\Models\Cart\Cart::setDirectDiscounts ( ?DirectDiscountCollection  $directDiscounts)
Parameters
?DirectDiscountCollection$directDiscounts

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setDiscountCodes()

Commercetools\Api\Models\Cart\Cart::setDiscountCodes ( ?DiscountCodeInfoCollection  $discountCodes)
Parameters
?DiscountCodeInfoCollection$discountCodes

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setDiscountOnTotalPrice()

Commercetools\Api\Models\Cart\Cart::setDiscountOnTotalPrice ( ?DiscountOnTotalPrice  $discountOnTotalPrice)
Parameters
?DiscountOnTotalPrice$discountOnTotalPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setDiscountTypeCombination()

Commercetools\Api\Models\Cart\Cart::setDiscountTypeCombination ( ?DiscountTypeCombination  $discountTypeCombination)
Parameters
?DiscountTypeCombination$discountTypeCombination

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setId()

Commercetools\Api\Models\Cart\Cart::setId ( ?string  $id)

◆ setInventoryMode()

Commercetools\Api\Models\Cart\Cart::setInventoryMode ( ?string  $inventoryMode)
Parameters
?string$inventoryMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setItemShippingAddresses()

Commercetools\Api\Models\Cart\Cart::setItemShippingAddresses ( ?AddressCollection  $itemShippingAddresses)
Parameters
?AddressCollection$itemShippingAddresses

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setKey()

Commercetools\Api\Models\Cart\Cart::setKey ( ?string  $key)
Parameters
?string$key

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setLastModifiedAt()

Commercetools\Api\Models\Cart\Cart::setLastModifiedAt ( ?DateTimeImmutable  $lastModifiedAt)
Parameters
?DateTimeImmutable$lastModifiedAt

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setLastModifiedBy()

Commercetools\Api\Models\Cart\Cart::setLastModifiedBy ( ?LastModifiedBy  $lastModifiedBy)
Parameters
?LastModifiedBy$lastModifiedBy

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setLineItems()

Commercetools\Api\Models\Cart\Cart::setLineItems ( ?LineItemCollection  $lineItems)
Parameters
?LineItemCollection$lineItems

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setLocale()

Commercetools\Api\Models\Cart\Cart::setLocale ( ?string  $locale)
Parameters
?string$locale

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setOrigin()

Commercetools\Api\Models\Cart\Cart::setOrigin ( ?string  $origin)
Parameters
?string$origin

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setPaymentInfo()

Commercetools\Api\Models\Cart\Cart::setPaymentInfo ( ?PaymentInfo  $paymentInfo)
Parameters
?PaymentInfo$paymentInfo

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setPriceRoundingMode()

Commercetools\Api\Models\Cart\Cart::setPriceRoundingMode ( ?string  $priceRoundingMode)
Parameters
?string$priceRoundingMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setRefusedGifts()

Commercetools\Api\Models\Cart\Cart::setRefusedGifts ( ?CartDiscountReferenceCollection  $refusedGifts)
Parameters
?CartDiscountReferenceCollection$refusedGifts

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShipping()

Commercetools\Api\Models\Cart\Cart::setShipping ( ?ShippingCollection  $shipping)
Parameters
?ShippingCollection$shipping

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingAddress()

Commercetools\Api\Models\Cart\Cart::setShippingAddress ( ?Address  $shippingAddress)
Parameters
?Address$shippingAddress

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingCustomFields()

Commercetools\Api\Models\Cart\Cart::setShippingCustomFields ( ?CustomFields  $shippingCustomFields)
Parameters
?CustomFields$shippingCustomFields

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingInfo()

Commercetools\Api\Models\Cart\Cart::setShippingInfo ( ?ShippingInfo  $shippingInfo)
Parameters
?ShippingInfo$shippingInfo

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingKey()

Commercetools\Api\Models\Cart\Cart::setShippingKey ( ?string  $shippingKey)
Parameters
?string$shippingKey

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingMode()

Commercetools\Api\Models\Cart\Cart::setShippingMode ( ?string  $shippingMode)
Parameters
?string$shippingMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setShippingRateInput()

Commercetools\Api\Models\Cart\Cart::setShippingRateInput ( ?ShippingRateInput  $shippingRateInput)
Parameters
?ShippingRateInput$shippingRateInput

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setStore()

Commercetools\Api\Models\Cart\Cart::setStore ( ?StoreKeyReference  $store)
Parameters
?StoreKeyReference$store

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTaxCalculationMode()

Commercetools\Api\Models\Cart\Cart::setTaxCalculationMode ( ?string  $taxCalculationMode)
Parameters
?string$taxCalculationMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTaxedPrice()

Commercetools\Api\Models\Cart\Cart::setTaxedPrice ( ?TaxedPrice  $taxedPrice)
Parameters
?TaxedPrice$taxedPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTaxedShippingPrice()

Commercetools\Api\Models\Cart\Cart::setTaxedShippingPrice ( ?TaxedPrice  $taxedShippingPrice)
Parameters
?TaxedPrice$taxedShippingPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTaxMode()

Commercetools\Api\Models\Cart\Cart::setTaxMode ( ?string  $taxMode)
Parameters
?string$taxMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTaxRoundingMode()

Commercetools\Api\Models\Cart\Cart::setTaxRoundingMode ( ?string  $taxRoundingMode)
Parameters
?string$taxRoundingMode

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTotalLineItemQuantity()

Commercetools\Api\Models\Cart\Cart::setTotalLineItemQuantity ( ?int  $totalLineItemQuantity)
Parameters
?int$totalLineItemQuantity

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setTotalPrice()

Commercetools\Api\Models\Cart\Cart::setTotalPrice ( ?CentPrecisionMoney  $totalPrice)
Parameters
?CentPrecisionMoney$totalPrice

Implemented in Commercetools\Api\Models\Cart\CartModel.

◆ setVersion()

Commercetools\Api\Models\Cart\Cart::setVersion ( ?int  $version)

Member Data Documentation

◆ FIELD_ANONYMOUS_ID

const Commercetools\Api\Models\Cart\Cart::FIELD_ANONYMOUS_ID = 'anonymousId'

Definition at line 33 of file Cart.php.

◆ FIELD_BILLING_ADDRESS

const Commercetools\Api\Models\Cart\Cart::FIELD_BILLING_ADDRESS = 'billingAddress'

Definition at line 49 of file Cart.php.

◆ FIELD_BUSINESS_UNIT

const Commercetools\Api\Models\Cart\Cart::FIELD_BUSINESS_UNIT = 'businessUnit'

Definition at line 34 of file Cart.php.

◆ FIELD_CART_STATE

const Commercetools\Api\Models\Cart\Cart::FIELD_CART_STATE = 'cartState'

Definition at line 48 of file Cart.php.

◆ FIELD_COUNTRY

const Commercetools\Api\Models\Cart\Cart::FIELD_COUNTRY = 'country'

Definition at line 62 of file Cart.php.

◆ FIELD_CREATED_BY

const Commercetools\Api\Models\Cart\Cart::FIELD_CREATED_BY = 'createdBy'

Definition at line 69 of file Cart.php.

◆ FIELD_CUSTOM

const Commercetools\Api\Models\Cart\Cart::FIELD_CUSTOM = 'custom'

Definition at line 65 of file Cart.php.

◆ FIELD_CUSTOM_LINE_ITEMS

const Commercetools\Api\Models\Cart\Cart::FIELD_CUSTOM_LINE_ITEMS = 'customLineItems'

Definition at line 37 of file Cart.php.

◆ FIELD_CUSTOMER_EMAIL

const Commercetools\Api\Models\Cart\Cart::FIELD_CUSTOMER_EMAIL = 'customerEmail'

Definition at line 31 of file Cart.php.

◆ FIELD_CUSTOMER_GROUP

const Commercetools\Api\Models\Cart\Cart::FIELD_CUSTOMER_GROUP = 'customerGroup'

Definition at line 32 of file Cart.php.

◆ FIELD_CUSTOMER_ID

const Commercetools\Api\Models\Cart\Cart::FIELD_CUSTOMER_ID = 'customerId'

Definition at line 30 of file Cart.php.

◆ FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION

const Commercetools\Api\Models\Cart\Cart::FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification'

Definition at line 67 of file Cart.php.

◆ FIELD_DIRECT_DISCOUNTS

const Commercetools\Api\Models\Cart\Cart::FIELD_DIRECT_DISCOUNTS = 'directDiscounts'

Definition at line 59 of file Cart.php.

◆ FIELD_DISCOUNT_CODES

const Commercetools\Api\Models\Cart\Cart::FIELD_DISCOUNT_CODES = 'discountCodes'

Definition at line 58 of file Cart.php.

◆ FIELD_DISCOUNT_ON_TOTAL_PRICE

const Commercetools\Api\Models\Cart\Cart::FIELD_DISCOUNT_ON_TOTAL_PRICE = 'discountOnTotalPrice'

Definition at line 42 of file Cart.php.

◆ FIELD_DISCOUNT_TYPE_COMBINATION

const Commercetools\Api\Models\Cart\Cart::FIELD_DISCOUNT_TYPE_COMBINATION = 'discountTypeCombination'

Definition at line 66 of file Cart.php.

◆ FIELD_INVENTORY_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_INVENTORY_MODE = 'inventoryMode'

Definition at line 47 of file Cart.php.

◆ FIELD_ITEM_SHIPPING_ADDRESSES

const Commercetools\Api\Models\Cart\Cart::FIELD_ITEM_SHIPPING_ADDRESSES = 'itemShippingAddresses'

Definition at line 57 of file Cart.php.

◆ FIELD_KEY

const Commercetools\Api\Models\Cart\Cart::FIELD_KEY = 'key'

Definition at line 29 of file Cart.php.

◆ FIELD_LAST_MODIFIED_BY

const Commercetools\Api\Models\Cart\Cart::FIELD_LAST_MODIFIED_BY = 'lastModifiedBy'

Definition at line 68 of file Cart.php.

◆ FIELD_LINE_ITEMS

const Commercetools\Api\Models\Cart\Cart::FIELD_LINE_ITEMS = 'lineItems'

Definition at line 36 of file Cart.php.

◆ FIELD_LOCALE

const Commercetools\Api\Models\Cart\Cart::FIELD_LOCALE = 'locale'

Definition at line 63 of file Cart.php.

◆ FIELD_ORIGIN

const Commercetools\Api\Models\Cart\Cart::FIELD_ORIGIN = 'origin'

Definition at line 64 of file Cart.php.

◆ FIELD_PAYMENT_INFO

const Commercetools\Api\Models\Cart\Cart::FIELD_PAYMENT_INFO = 'paymentInfo'

Definition at line 61 of file Cart.php.

◆ FIELD_PRICE_ROUNDING_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_PRICE_ROUNDING_MODE = 'priceRoundingMode'

Definition at line 44 of file Cart.php.

◆ FIELD_REFUSED_GIFTS

const Commercetools\Api\Models\Cart\Cart::FIELD_REFUSED_GIFTS = 'refusedGifts'

Definition at line 60 of file Cart.php.

◆ FIELD_SHIPPING

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING = 'shipping'

Definition at line 56 of file Cart.php.

◆ FIELD_SHIPPING_ADDRESS

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_ADDRESS = 'shippingAddress'

Definition at line 50 of file Cart.php.

◆ FIELD_SHIPPING_CUSTOM_FIELDS

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_CUSTOM_FIELDS = 'shippingCustomFields'

Definition at line 55 of file Cart.php.

◆ FIELD_SHIPPING_INFO

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_INFO = 'shippingInfo'

Definition at line 53 of file Cart.php.

◆ FIELD_SHIPPING_KEY

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_KEY = 'shippingKey'

Definition at line 52 of file Cart.php.

◆ FIELD_SHIPPING_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_MODE = 'shippingMode'

Definition at line 51 of file Cart.php.

◆ FIELD_SHIPPING_RATE_INPUT

const Commercetools\Api\Models\Cart\Cart::FIELD_SHIPPING_RATE_INPUT = 'shippingRateInput'

Definition at line 54 of file Cart.php.

◆ FIELD_STORE

const Commercetools\Api\Models\Cart\Cart::FIELD_STORE = 'store'

Definition at line 35 of file Cart.php.

◆ FIELD_TAX_CALCULATION_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_TAX_CALCULATION_MODE = 'taxCalculationMode'

Definition at line 46 of file Cart.php.

◆ FIELD_TAX_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_TAX_MODE = 'taxMode'

Definition at line 43 of file Cart.php.

◆ FIELD_TAX_ROUNDING_MODE

const Commercetools\Api\Models\Cart\Cart::FIELD_TAX_ROUNDING_MODE = 'taxRoundingMode'

Definition at line 45 of file Cart.php.

◆ FIELD_TAXED_PRICE

const Commercetools\Api\Models\Cart\Cart::FIELD_TAXED_PRICE = 'taxedPrice'

Definition at line 40 of file Cart.php.

◆ FIELD_TAXED_SHIPPING_PRICE

const Commercetools\Api\Models\Cart\Cart::FIELD_TAXED_SHIPPING_PRICE = 'taxedShippingPrice'

Definition at line 41 of file Cart.php.

◆ FIELD_TOTAL_LINE_ITEM_QUANTITY

const Commercetools\Api\Models\Cart\Cart::FIELD_TOTAL_LINE_ITEM_QUANTITY = 'totalLineItemQuantity'

Definition at line 38 of file Cart.php.

◆ FIELD_TOTAL_PRICE

const Commercetools\Api\Models\Cart\Cart::FIELD_TOTAL_PRICE = 'totalPrice'

Definition at line 39 of file Cart.php.


The documentation for this interface was generated from the following file: