public class XPFOrder extends XPFEntity
Constructor and Description |
---|
XPFOrder(@NonNull String orderNumber,
@NonNull Date createdDate,
Locale locale,
@NonNull Currency currency,
@NonNull XPFOrderStatusEnum status,
@NonNull XPFStore store,
XPFCustomer account,
@NonNull XPFCustomer customer,
@NonNull List<XPFOrderItem> lineItems,
@NonNull List<XPFOrderShipment> shipments,
@NonNull XPFAddress billingAddress,
XPFContact billingContact,
@NonNull Map<String,String> modifierFields,
BigDecimal subtotal,
BigDecimal shipping,
BigDecimal taxes,
@NonNull BigDecimal total,
@NonNull Set<XPFPayment> payments,
String taxExemptionId,
@NonNull Set<XPFOrderPaymentInstrument> orderPaymentInstruments,
boolean hasSubtotalDiscount,
@NonNull List<XPFOrderHold> holds,
@NonNull XPFEntitySupplier<XPFContainerPricing> pricing) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
XPFCustomer |
getAccount()
The account.
|
@NonNull XPFAddress |
getBillingAddress()
The billing address.
|
XPFContact |
getBillingContact()
The billing contact.
|
@NonNull Date |
getCreatedDate()
The date created.
|
@NonNull Currency |
getCurrency()
The currency.
|
@NonNull XPFCustomer |
getCustomer()
The customer.
|
@NonNull List<XPFOrderHold> |
getHolds()
The order holds.
|
@NonNull List<XPFOrderItem> |
getLineItems()
The line items.
|
Locale |
getLocale()
The locale.
|
@NonNull Map<String,String> |
getModifierFields()
The modifier fields.
|
@NonNull String |
getOrderNumber()
The order number.
|
@NonNull Set<XPFOrderPaymentInstrument> |
getOrderPaymentInstruments()
The order payment instruments.
|
@NonNull Set<XPFPayment> |
getPayments()
The payments.
|
XPFContainerPricing |
getPricing()
The order price calculator.
|
@NonNull List<XPFOrderShipment> |
getShipments()
The shipments.
|
BigDecimal |
getShipping()
Deprecated.
use getPricing().withShippingSubtotal().getAmount() instead
|
@NonNull XPFOrderStatusEnum |
getStatus()
The order status.
|
@NonNull XPFStore |
getStore()
The store.
|
BigDecimal |
getSubtotal()
Deprecated.
use getPricing().withSubtotal().getAmount() instead
|
BigDecimal |
getTaxes()
Deprecated.
use getPricing().withTaxes().getAmount() instead
|
String |
getTaxExemptionId()
The tax exemption id.
|
@NonNull BigDecimal |
getTotal()
Deprecated.
use getPricing().withTotal().getAmount() instead
|
int |
hashCode() |
boolean |
isHasSubtotalDiscount()
Indicates if the order has a subtotal discount.
|
String |
toString() |
getCustomData
public XPFOrder(@NonNull @NonNull String orderNumber, @NonNull @NonNull Date createdDate, Locale locale, @NonNull @NonNull Currency currency, @NonNull @NonNull XPFOrderStatusEnum status, @NonNull @NonNull XPFStore store, XPFCustomer account, @NonNull @NonNull XPFCustomer customer, @NonNull @NonNull List<XPFOrderItem> lineItems, @NonNull @NonNull List<XPFOrderShipment> shipments, @NonNull @NonNull XPFAddress billingAddress, XPFContact billingContact, @NonNull @NonNull Map<String,String> modifierFields, BigDecimal subtotal, BigDecimal shipping, BigDecimal taxes, @NonNull @NonNull BigDecimal total, @NonNull @NonNull Set<XPFPayment> payments, String taxExemptionId, @NonNull @NonNull Set<XPFOrderPaymentInstrument> orderPaymentInstruments, boolean hasSubtotalDiscount, @NonNull @NonNull List<XPFOrderHold> holds, @NonNull @NonNull XPFEntitySupplier<XPFContainerPricing> pricing)
@LazyLoaded public XPFContainerPricing getPricing()
@NonNull public @NonNull String getOrderNumber()
@NonNull public @NonNull Date getCreatedDate()
public Locale getLocale()
@NonNull public @NonNull Currency getCurrency()
@NonNull public @NonNull XPFOrderStatusEnum getStatus()
@NonNull public @NonNull XPFStore getStore()
public XPFCustomer getAccount()
@NonNull public @NonNull XPFCustomer getCustomer()
@NonNull public @NonNull List<XPFOrderItem> getLineItems()
@NonNull public @NonNull List<XPFOrderShipment> getShipments()
@NonNull public @NonNull XPFAddress getBillingAddress()
public XPFContact getBillingContact()
@NonNull public @NonNull Map<String,String> getModifierFields()
@Deprecated public BigDecimal getSubtotal()
@Deprecated public BigDecimal getShipping()
@Deprecated public BigDecimal getTaxes()
@Deprecated @NonNull public @NonNull BigDecimal getTotal()
@NonNull public @NonNull Set<XPFPayment> getPayments()
public String getTaxExemptionId()
@NonNull public @NonNull Set<XPFOrderPaymentInstrument> getOrderPaymentInstruments()
public boolean isHasSubtotalDiscount()
@NonNull public @NonNull List<XPFOrderHold> getHolds()
Copyright © 2025. All rights reserved.