public final class OrderImportDraftBuilder extends Base implements Builder<OrderImportDraft>
public OrderImportDraftBuilder orderNumber(@Nullable String orderNumber)
orderNumber
- ID to setpublic OrderImportDraftBuilder customerId(@Nullable String customerId)
public OrderImportDraftBuilder customerEmail(@Nullable String customerEmail)
public OrderImportDraftBuilder lineItems(List<LineItemImportDraft> lineItems)
public OrderImportDraftBuilder customLineItems(List<CustomLineItemImportDraft> customLineItems)
public OrderImportDraftBuilder totalPrice(javax.money.MonetaryAmount totalPrice)
public OrderImportDraftBuilder taxedPrice(@Nullable TaxedPrice taxedPrice)
public OrderImportDraftBuilder shippingAddress(@Nullable Address shippingAddress)
public OrderImportDraftBuilder billingAddress(@Nullable Address billingAddress)
public OrderImportDraftBuilder customerGroup(@Nullable Referenceable<CustomerGroup> customerGroup)
public OrderImportDraftBuilder country(@Nullable com.neovisionaries.i18n.CountryCode country)
public OrderImportDraftBuilder orderState(OrderState orderState)
public OrderImportDraftBuilder shipmentState(@Nullable ShipmentState shipmentState)
public OrderImportDraftBuilder paymentState(@Nullable PaymentState paymentState)
public OrderImportDraftBuilder shippingInfo(@Nullable ShippingInfoImportDraft shippingInfo)
public OrderImportDraftBuilder completedAt(@Nullable ZonedDateTime completedAt)
public OrderImportDraftBuilder custom(@Nullable CustomFieldsDraft custom)
public OrderImportDraftBuilder taxRoundingMode(@Nullable RoundingMode taxRoundingMode)
public OrderImportDraftBuilder inventoryMode(@Nullable InventoryMode inventoryMode)
public OrderImportDraftBuilder taxCalculationMode(@Nullable TaxCalculationMode taxCalculationMode)
public OrderImportDraftBuilder origin(@Nullable CartOrigin origin)
public OrderImportDraftBuilder itemShippingAddresses(@Nullable List<Address> itemShippingAddresses)
public OrderImportDraftBuilder store(@Nullable KeyReference<Store> store)
public static OrderImportDraftBuilder ofLineItems(javax.money.MonetaryAmount totalPrice, OrderState orderState, List<LineItemImportDraft> lineItems)
OrderImportDraft
with at least one line item.
You can add CustomLineItem
s with customLineItems(java.util.List)
.totalPrice
- the total price of the orderorderState
- the state of the orderlineItems
- a list of line items with at least one elementpublic static OrderImportDraftBuilder ofCustomLineItems(javax.money.MonetaryAmount totalPrice, OrderState orderState, List<CustomLineItemImportDraft> customLineItems)
OrderImportDraft
with at least one custom line item.
You can add LineItem
s with lineItems(java.util.List)
.totalPrice
- the total price of the orderorderState
- the state of the ordercustomLineItems
- a list of custom line items with at least one elementpublic OrderImportDraft build()
Builder
build
in interface Builder<OrderImportDraft>