Interface OrderLike<T extends OrderLike<T>>

Type Parameters:
T - the type of this OrderLike, order or cart
All Known Subinterfaces:
Cart, Order, StagedOrder

public interface OrderLike<T extends OrderLike<T>>
Interface to collect the common stuff between carts and orders.
  • Method Details

    • getId

      @NotNull @NotNull String getId()
    • getVersion

      @NotNull @NotNull Long getVersion()
    • getCreatedAt

      @NotNull @NotNull ZonedDateTime getCreatedAt()
    • getLastModifiedAt

      @NotNull @NotNull ZonedDateTime getLastModifiedAt()
    • getLastModifiedBy

      @Valid @Valid LastModifiedBy getLastModifiedBy()
    • getCreatedBy

      @Valid @Valid CreatedBy getCreatedBy()
    • getCustomerId

      String getCustomerId()
    • getCustomerEmail

      String getCustomerEmail()
    • getAnonymousId

      String getAnonymousId()
    • getStore

      @Valid @Valid StoreKeyReference getStore()
    • getLineItems

      @NotNull @Valid @NotNull @Valid List<LineItem> getLineItems()
    • getCustomLineItems

      @NotNull @Valid @NotNull @Valid List<CustomLineItem> getCustomLineItems()
    • getTotalPrice

      @NotNull @Valid @NotNull @Valid TypedMoney getTotalPrice()
    • getTaxedPrice

      @Valid @Valid TaxedPrice getTaxedPrice()
    • getShippingAddress

      @Valid @Valid Address getShippingAddress()
    • getBillingAddress

      @Valid @Valid Address getBillingAddress()
    • getInventoryMode

      InventoryMode getInventoryMode()
    • getTaxMode

      @NotNull @NotNull TaxMode getTaxMode()
    • getTaxRoundingMode

      @NotNull @NotNull RoundingMode getTaxRoundingMode()
    • getTaxCalculationMode

      @NotNull @NotNull TaxCalculationMode getTaxCalculationMode()
    • getCustomerGroup

      @Valid @Valid CustomerGroupReference getCustomerGroup()
    • getCountry

      String getCountry()
    • getShippingInfo

      @Valid @Valid ShippingInfo getShippingInfo()
    • getDiscountCodes

      @Valid @Valid List<DiscountCodeInfo> getDiscountCodes()
    • getCustom

      @Valid @Valid CustomFields getCustom()
    • getPaymentInfo

      @Valid @Valid PaymentInfo getPaymentInfo()
    • getLocale

      String getLocale()
    • getRefusedGifts

      @NotNull @Valid @NotNull @Valid List<CartDiscountReference> getRefusedGifts()
    • getOrigin

      @NotNull @NotNull CartOrigin getOrigin()
    • getShippingRateInput

      @Valid @Valid ShippingRateInput getShippingRateInput()
    • getItemShippingAddresses

      @Valid @Valid List<Address> getItemShippingAddresses()
    • getShippingCustomFields

      @Valid @Valid CustomFields getShippingCustomFields()
    • calculateSubTotalPrice

      default javax.money.MonetaryAmount calculateSubTotalPrice()