Interface OrderLike<T extends OrderLike<T>>
- Type Parameters:
T
- the type of thisOrderLike
, 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 Summary
Modifier and TypeMethodDescriptiondefault javax.money.MonetaryAmount
@Valid Address
@NotNull ZonedDateTime
@Valid CreatedBy
@Valid CustomFields
@Valid CustomerGroupReference
@NotNull @Valid List<CustomLineItem>
@Valid List<DiscountCodeInfo>
@NotNull String
getId()
@NotNull ZonedDateTime
@Valid LastModifiedBy
@NotNull CartOrigin
@Valid PaymentInfo
@NotNull @Valid List<CartDiscountReference>
@Valid Address
@Valid CustomFields
@Valid ShippingInfo
@Valid ShippingRateInput
@Valid StoreKeyReference
getStore()
@NotNull TaxCalculationMode
@Valid TaxedPrice
@NotNull TaxMode
@NotNull RoundingMode
@NotNull @Valid TypedMoney
@NotNull Long
-
Method Details
-
getId
-
getVersion
-
getCreatedAt
-
getLastModifiedAt
-
getLastModifiedBy
-
getCreatedBy
-
getCustomerId
String getCustomerId() -
getCustomerEmail
String getCustomerEmail() -
getAnonymousId
String getAnonymousId() -
getStore
-
getLineItems
-
getCustomLineItems
-
getTotalPrice
-
getTaxedPrice
-
getShippingAddress
-
getBillingAddress
-
getInventoryMode
InventoryMode getInventoryMode() -
getTaxMode
-
getTaxRoundingMode
-
getTaxCalculationMode
-
getCustomerGroup
-
getCountry
String getCountry() -
getShippingInfo
-
getDiscountCodes
-
getCustom
-
getPaymentInfo
-
getLocale
String getLocale() -
getRefusedGifts
-
getOrigin
-
getShippingRateInput
-
getItemShippingAddresses
-
getShippingCustomFields
-
calculateSubTotalPrice
default javax.money.MonetaryAmount calculateSubTotalPrice()
-