Class Cart.Builder
java.lang.Object
com.commercetools.graphql.api.types.Cart.Builder
- Enclosing class:
- Cart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanonymousId(String anonymousId) billingAddress(Address billingAddress) build()businessUnit(BusinessUnit businessUnit) businessUnitRef(KeyReference businessUnitRef) createdAt(OffsetDateTime createdAt) custom(CustomFieldsType custom) customerEmail(String customerEmail) customerGroup(CustomerGroup customerGroup) customerGroupRef(Reference customerGroupRef) customerId(String customerId) customLineItems(List<CustomLineItem> customLineItems) deleteDaysAfterLastModification(Integer deleteDaysAfterLastModification) directDiscounts(List<DirectDiscount> directDiscounts) discountCodes(List<DiscountCodeInfo> discountCodes) discountOnTotalPrice(DiscountOnTotalPrice discountOnTotalPrice) BETA: This feature can be subject to change and should be used carefully in production.inventoryMode(InventoryMode inventoryMode) itemShippingAddresses(List<Address> itemShippingAddresses) lastModifiedAt(OffsetDateTime lastModifiedAt) lastModifiedBy(Initiator lastModifiedBy) origin(CartOrigin origin) paymentInfo(PaymentInfo paymentInfo) refusedGifts(List<CartDiscount> refusedGifts) refusedGiftsRefs(List<Reference> refusedGiftsRefs) shippingAddress(Address shippingAddress) shippingCustomFields(CustomFieldsType shippingCustomFields) shippingInfo(ShippingInfo shippingInfo) shippingKey(String shippingKey) shippingMode(ShippingMode shippingMode) shippingRateInput(ShippingRateInput shippingRateInput) storeRef(KeyReference storeRef) taxCalculationMode(TaxCalculationMode taxCalculationMode) taxedPrice(TaxedPrice taxedPrice) taxedShippingPrice(TaxedPrice taxedShippingPrice) taxRoundingMode(RoundingMode taxRoundingMode) totalLineItemQuantity(Long totalLineItemQuantity) totalPrice(Money totalPrice)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
customerId
-
customer
-
customerEmail
-
anonymousId
-
lineItems
-
customLineItems
-
totalPrice
-
taxedPrice
-
discountOnTotalPrice
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta -
shippingAddress
-
billingAddress
-
inventoryMode
-
taxMode
-
taxRoundingMode
-
taxCalculationMode
-
customerGroup
-
customerGroupRef
-
country
-
shippingKey
-
shippingInfo
-
discountCodes
-
directDiscounts
-
refusedGifts
-
refusedGiftsRefs
-
paymentInfo
-
locale
-
shippingRateInput
-
origin
-
storeRef
-
store
-
itemShippingAddresses
-
businessUnit
-
businessUnitRef
-
shipping
-
taxedShippingPrice
-
shippingMode
-
shippingCustomFields
-
cartState
-
key
-
custom
-
deleteDaysAfterLastModification
-
totalLineItemQuantity
-
id
-
version
-
createdAt
-
lastModifiedAt
-
createdBy
-
lastModifiedBy
-