Class Order
java.lang.Object
com.commercetools.graphql.api.types.Order
- All Implemented Interfaces:
ReferenceExpandable,Versioned
An order can be created from a cart, usually after a checkout process has been completed.
[documentation](https://docs.commercetools.com/api/projects/orders)
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOrder()Order(String customerId, Customer customer, String customerEmail, String anonymousId, List<LineItem> lineItems, List<CustomLineItem> customLineItems, Money totalPrice, TaxedPrice taxedPrice, DiscountOnTotalPrice discountOnTotalPrice, Address shippingAddress, Address billingAddress, InventoryMode inventoryMode, TaxMode taxMode, RoundingMode taxRoundingMode, TaxCalculationMode taxCalculationMode, CustomerGroup customerGroup, Reference customerGroupRef, String country, String shippingKey, ShippingInfo shippingInfo, List<DiscountCodeInfo> discountCodes, List<DirectDiscount> directDiscounts, List<CartDiscount> refusedGifts, List<Reference> refusedGiftsRefs, PaymentInfo paymentInfo, String locale, ShippingRateInput shippingRateInput, CartOrigin origin, KeyReference storeRef, Store store, List<Address> itemShippingAddresses, BusinessUnit businessUnit, KeyReference businessUnitRef, List<Shipping> shipping, TaxedPrice taxedShippingPrice, ShippingMode shippingMode, CustomFieldsType shippingCustomFields, OffsetDateTime completedAt, String orderNumber, OrderState orderState, Reference stateRef, State state, ShipmentState shipmentState, PaymentState paymentState, List<SyncInfo> syncInfo, List<ReturnInfo> returnInfo, String purchaseOrderNumber, Long lastMessageSequenceNumber, Reference cartRef, Cart cart, Reference quoteRef, Quote quote, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCart()BETA: This feature can be subject to change and should be used carefully in production.getId()getQuote()getState()getStore()inthashCode()static Order.BuildervoidsetAnonymousId(String anonymousId) voidsetBillingAddress(Address billingAddress) voidsetBusinessUnit(BusinessUnit businessUnit) voidsetBusinessUnitRef(KeyReference businessUnitRef) voidvoidsetCartRef(Reference cartRef) voidsetCompletedAt(OffsetDateTime completedAt) voidsetCountry(String country) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetCustomer(Customer customer) voidsetCustomerEmail(String customerEmail) voidsetCustomerGroup(CustomerGroup customerGroup) voidsetCustomerGroupRef(Reference customerGroupRef) voidsetCustomerId(String customerId) voidsetCustomLineItems(List<CustomLineItem> customLineItems) voidsetDirectDiscounts(List<DirectDiscount> directDiscounts) voidsetDiscountCodes(List<DiscountCodeInfo> discountCodes) voidsetDiscountOnTotalPrice(DiscountOnTotalPrice discountOnTotalPrice) voidvoidsetInventoryMode(InventoryMode inventoryMode) voidsetItemShippingAddresses(List<Address> itemShippingAddresses) voidsetLastMessageSequenceNumber(Long lastMessageSequenceNumber) voidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidsetLineItems(List<LineItem> lineItems) voidvoidsetOrderNumber(String orderNumber) voidsetOrderState(OrderState orderState) voidsetOrigin(CartOrigin origin) voidsetPaymentInfo(PaymentInfo paymentInfo) voidsetPaymentState(PaymentState paymentState) voidsetPurchaseOrderNumber(String purchaseOrderNumber) voidvoidsetQuoteRef(Reference quoteRef) voidsetRefusedGifts(List<CartDiscount> refusedGifts) voidsetRefusedGiftsRefs(List<Reference> refusedGiftsRefs) voidsetReturnInfo(List<ReturnInfo> returnInfo) voidsetShipmentState(ShipmentState shipmentState) voidsetShipping(List<Shipping> shipping) voidsetShippingAddress(Address shippingAddress) voidsetShippingCustomFields(CustomFieldsType shippingCustomFields) voidsetShippingInfo(ShippingInfo shippingInfo) voidsetShippingKey(String shippingKey) voidsetShippingMode(ShippingMode shippingMode) voidsetShippingRateInput(ShippingRateInput shippingRateInput) voidvoidsetStateRef(Reference stateRef) voidvoidsetStoreRef(KeyReference storeRef) voidsetSyncInfo(List<SyncInfo> syncInfo) voidsetTaxCalculationMode(TaxCalculationMode taxCalculationMode) voidsetTaxedPrice(TaxedPrice taxedPrice) voidsetTaxedShippingPrice(TaxedPrice taxedShippingPrice) voidsetTaxMode(TaxMode taxMode) voidsetTaxRoundingMode(RoundingMode taxRoundingMode) voidsetTotalPrice(Money totalPrice) voidsetVersion(Long version) toString()
-
Constructor Details
-
Order
public Order() -
Order
public Order(String customerId, Customer customer, String customerEmail, String anonymousId, List<LineItem> lineItems, List<CustomLineItem> customLineItems, Money totalPrice, TaxedPrice taxedPrice, DiscountOnTotalPrice discountOnTotalPrice, Address shippingAddress, Address billingAddress, InventoryMode inventoryMode, TaxMode taxMode, RoundingMode taxRoundingMode, TaxCalculationMode taxCalculationMode, CustomerGroup customerGroup, Reference customerGroupRef, String country, String shippingKey, ShippingInfo shippingInfo, List<DiscountCodeInfo> discountCodes, List<DirectDiscount> directDiscounts, List<CartDiscount> refusedGifts, List<Reference> refusedGiftsRefs, PaymentInfo paymentInfo, String locale, ShippingRateInput shippingRateInput, CartOrigin origin, KeyReference storeRef, Store store, List<Address> itemShippingAddresses, BusinessUnit businessUnit, KeyReference businessUnitRef, List<Shipping> shipping, TaxedPrice taxedShippingPrice, ShippingMode shippingMode, CustomFieldsType shippingCustomFields, OffsetDateTime completedAt, String orderNumber, OrderState orderState, Reference stateRef, State state, ShipmentState shipmentState, PaymentState paymentState, List<SyncInfo> syncInfo, List<ReturnInfo> returnInfo, String purchaseOrderNumber, Long lastMessageSequenceNumber, Reference cartRef, Cart cart, Reference quoteRef, Quote quote, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getCustomerId
-
setCustomerId
-
getCustomer
-
setCustomer
-
getCustomerEmail
-
setCustomerEmail
-
getAnonymousId
-
setAnonymousId
-
getLineItems
-
setLineItems
-
getCustomLineItems
-
setCustomLineItems
-
getTotalPrice
-
setTotalPrice
-
getTaxedPrice
-
setTaxedPrice
-
getDiscountOnTotalPrice
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta -
setDiscountOnTotalPrice
-
getShippingAddress
-
setShippingAddress
-
getBillingAddress
-
setBillingAddress
-
getInventoryMode
-
setInventoryMode
-
getTaxMode
-
setTaxMode
-
getTaxRoundingMode
-
setTaxRoundingMode
-
getTaxCalculationMode
-
setTaxCalculationMode
-
getCustomerGroup
-
setCustomerGroup
-
getCustomerGroupRef
-
setCustomerGroupRef
-
getCountry
-
setCountry
-
getShippingKey
-
setShippingKey
-
getShippingInfo
-
setShippingInfo
-
getDiscountCodes
-
setDiscountCodes
-
getDirectDiscounts
-
setDirectDiscounts
-
getRefusedGifts
-
setRefusedGifts
-
getRefusedGiftsRefs
-
setRefusedGiftsRefs
-
getPaymentInfo
-
setPaymentInfo
-
getLocale
-
setLocale
-
getShippingRateInput
-
setShippingRateInput
-
getOrigin
-
setOrigin
-
getStoreRef
-
setStoreRef
-
getStore
-
setStore
-
getItemShippingAddresses
-
setItemShippingAddresses
-
getBusinessUnit
-
setBusinessUnit
-
getBusinessUnitRef
-
setBusinessUnitRef
-
getShipping
-
setShipping
-
getTaxedShippingPrice
-
setTaxedShippingPrice
-
getShippingMode
-
setShippingMode
-
getShippingCustomFields
-
setShippingCustomFields
-
getCompletedAt
-
setCompletedAt
-
getOrderNumber
-
setOrderNumber
-
getOrderState
-
setOrderState
-
getStateRef
-
setStateRef
-
getState
-
setState
-
getShipmentState
-
setShipmentState
-
getPaymentState
-
setPaymentState
-
getSyncInfo
-
setSyncInfo
-
getReturnInfo
-
setReturnInfo
-
getPurchaseOrderNumber
-
setPurchaseOrderNumber
-
getLastMessageSequenceNumber
-
setLastMessageSequenceNumber
-
getCartRef
-
setCartRef
-
getCart
-
setCart
-
getQuoteRef
-
setQuoteRef
-
getQuote
-
setQuote
-
getCustom
-
setCustom
-
getId
- Specified by:
getIdin interfaceReferenceExpandable- Specified by:
getIdin interfaceVersioned
-
setId
- Specified by:
setIdin interfaceReferenceExpandable- Specified by:
setIdin interfaceVersioned
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-