Class QuoteRequestBuilder
- All Implemented Interfaces:
Builder<QuoteRequest>
Example to create an instance using the builder pattern
QuoteRequest quoteRequest = QuoteRequest.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.quoteRequestState(QuoteRequestState.SUBMITTED)
.customer(customerBuilder -> customerBuilder)
.plusLineItems(lineItemsBuilder -> lineItemsBuilder)
.plusCustomLineItems(customLineItemsBuilder -> customLineItemsBuilder)
.totalPrice(totalPriceBuilder -> totalPriceBuilder)
.taxMode(TaxMode.PLATFORM)
.taxRoundingMode(RoundingMode.HALF_EVEN)
.taxCalculationMode(TaxCalculationMode.LINE_ITEM_LEVEL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe Custom Line Items for which a Quote is requested.Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.Contains addresses for carts with multiple shipping addresses.addLineItems
(Function<LineItemBuilder, LineItem> builder) The Line Items for which a Quote is requested.billingAddress
(Address billingAddress) Address used for invoicing.billingAddress
(Function<AddressBuilder, AddressBuilder> builder) Address used for invoicing.build()
builds QuoteRequest with checking for non-null required valuesbuilds QuoteRequest without checking for non-null required valuesbusinessUnit
(BusinessUnitKeyReference businessUnit) The BusinessUnit for the Quote Request.The BusinessUnit for the Quote Request.cart
(CartReference cart) The Cart from which a Quote is requested.cart
(Function<CartReferenceBuilder, CartReferenceBuilder> builder) The Cart from which a Quote is requested.Message from the Buyer included in the Quote Request.Used for Product Variant price selection.createdAt
(ZonedDateTime createdAt) Date and time (UTC) the QuoteRequest was initially created.IDs and references that created the QuoteRequest.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the QuoteRequest.custom
(CustomFields custom) Custom Fields of the Quote Request.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields of the Quote Request.customer
(CustomerReference customer) The Buyer who owns the request.The Buyer who owns the request.customerGroup
(CustomerGroupReference customerGroup) Set automatically whencustomer
is set and the Customer is a member of a Customer Group.Set automatically whencustomer
is set and the Customer is a member of a Customer Group.customLineItems
(CustomLineItem... customLineItems) The Custom Line Items for which a Quote is requested.customLineItems
(List<CustomLineItem> customLineItems) The Custom Line Items for which a Quote is requested.directDiscounts
(DirectDiscount... directDiscounts) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.directDiscounts
(List<DirectDiscount> directDiscounts) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.Address used for invoicing.The BusinessUnit for the Quote Request.getCart()
The Cart from which a Quote is requested.Message from the Buyer included in the Quote Request.Used for Product Variant price selection.Date and time (UTC) the QuoteRequest was initially created.IDs and references that created the QuoteRequest.Custom Fields of the Quote Request.The Buyer who owns the request.Set automatically whencustomer
is set and the Customer is a member of a Customer Group.The Custom Line Items for which a Quote is requested.Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.getId()
Unique identifier of the QuoteRequest.Inventory mode of the Cart referenced in the QuoteRequestDraft.Contains addresses for carts with multiple shipping addresses.getKey()
User-defined unique identifier of the QuoteRequest.Date and time (UTC) the QuoteRequest was last updated.IDs and references that last modified the QuoteRequest.The Line Items for which a Quote is requested.Log of payment transactions related to the Quote.Identifier for a purchase order, usually in a B2B context.Indicates the current state of the Quote Request in the negotiation process.Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.Set automatically once the ShippingMethod is set.Used to select a ShippingRatePriceTier.getState()
State of the Quote Request.getStore()
The Store to which the Buyer belongs.When calculating taxes fortaxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.Not set until the shipping address is set.Tax mode of the Cart referenced in the QuoteRequestDraft.When calculating taxes fortaxedPrice
, the selected mode is used for rounding.Sum of alltotalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).Current version of the QuoteRequest.Unique identifier of the QuoteRequest.inventoryMode
(InventoryMode inventoryMode) Inventory mode of the Cart referenced in the QuoteRequestDraft.itemShippingAddresses
(Address... itemShippingAddresses) Contains addresses for carts with multiple shipping addresses.itemShippingAddresses
(List<Address> itemShippingAddresses) Contains addresses for carts with multiple shipping addresses.User-defined unique identifier of the QuoteRequest.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the QuoteRequest was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the QuoteRequest.IDs and references that last modified the QuoteRequest.The Line Items for which a Quote is requested.The Line Items for which a Quote is requested.static QuoteRequestBuilder
of()
factory method for an instance of QuoteRequestBuilderstatic QuoteRequestBuilder
of
(QuoteRequest template) create builder for QuoteRequest instancepaymentInfo
(PaymentInfo paymentInfo) Log of payment transactions related to the Quote.Log of payment transactions related to the Quote.plusCustomLineItems
(CustomLineItem... customLineItems) The Custom Line Items for which a Quote is requested.The Custom Line Items for which a Quote is requested.plusDirectDiscounts
(DirectDiscount... directDiscounts) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.plusItemShippingAddresses
(Address... itemShippingAddresses) Contains addresses for carts with multiple shipping addresses.Contains addresses for carts with multiple shipping addresses.plusLineItems
(LineItem... lineItems) The Line Items for which a Quote is requested.plusLineItems
(Function<LineItemBuilder, LineItemBuilder> builder) The Line Items for which a Quote is requested.purchaseOrderNumber
(String purchaseOrderNumber) Identifier for a purchase order, usually in a B2B context.quoteRequestState
(QuoteRequestState quoteRequestState) Indicates the current state of the Quote Request in the negotiation process.The Custom Line Items for which a Quote is requested.Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.Contains addresses for carts with multiple shipping addresses.setLineItems
(Function<LineItemBuilder, LineItem> builder) The Line Items for which a Quote is requested.shippingAddress
(Address shippingAddress) Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.shippingAddress
(Function<AddressBuilder, AddressBuilder> builder) Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.shippingInfo
(ShippingInfo shippingInfo) Set automatically once the ShippingMethod is set.Set automatically once the ShippingMethod is set.shippingRateInput
(ShippingRateInput shippingRateInput) Used to select a ShippingRatePriceTier.shippingRateInput
(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) Used to select a ShippingRatePriceTier.state
(StateReference state) State of the Quote Request.State of the Quote Request.store
(StoreKeyReference store) The Store to which the Buyer belongs.The Store to which the Buyer belongs.taxCalculationMode
(TaxCalculationMode taxCalculationMode) When calculating taxes fortaxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.taxedPrice
(TaxedPrice taxedPrice) Not set until the shipping address is set.taxedPrice
(Function<TaxedPriceBuilder, TaxedPriceBuilder> builder) Not set until the shipping address is set.Tax mode of the Cart referenced in the QuoteRequestDraft.taxRoundingMode
(RoundingMode taxRoundingMode) When calculating taxes fortaxedPrice
, the selected mode is used for rounding.totalPrice
(TypedMoney totalPrice) Sum of alltotalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).totalPrice
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) Sum of alltotalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).Current version of the QuoteRequest.withBillingAddress
(Function<AddressBuilder, Address> builder) Address used for invoicing.The BusinessUnit for the Quote Request.withCart
(Function<CartReferenceBuilder, CartReference> builder) The Cart from which a Quote is requested.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the QuoteRequest.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Quote Request.The Buyer who owns the request.Set automatically whencustomer
is set and the Customer is a member of a Customer Group.The Custom Line Items for which a Quote is requested.Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.Contains addresses for carts with multiple shipping addresses.IDs and references that last modified the QuoteRequest.withLineItems
(Function<LineItemBuilder, LineItemBuilder> builder) The Line Items for which a Quote is requested.withPaymentInfo
(Function<PaymentInfoBuilder, PaymentInfo> builder) Log of payment transactions related to the Quote.withShippingAddress
(Function<AddressBuilder, Address> builder) Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.Set automatically once the ShippingMethod is set.withState
(Function<StateReferenceBuilder, StateReference> builder) State of the Quote Request.The Store to which the Buyer belongs.withTaxedPrice
(Function<TaxedPriceBuilder, TaxedPrice> builder) Not set until the shipping address is set.
-
Constructor Details
-
QuoteRequestBuilder
public QuoteRequestBuilder()
-
-
Method Details
-
id
Unique identifier of the QuoteRequest.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the QuoteRequest.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the QuoteRequest was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the QuoteRequest was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the QuoteRequest.
- Parameters:
key
- value to be set- Returns:
- Builder
-
lastModifiedBy
public QuoteRequestBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the QuoteRequest.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public QuoteRequestBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the QuoteRequest.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the QuoteRequest.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the QuoteRequest.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the QuoteRequest.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the QuoteRequest.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
quoteRequestState
Indicates the current state of the Quote Request in the negotiation process.
- Parameters:
quoteRequestState
- value to be set- Returns:
- Builder
-
comment
Message from the Buyer included in the Quote Request.
- Parameters:
comment
- value to be set- Returns:
- Builder
-
customer
public QuoteRequestBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) The Buyer who owns the request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public QuoteRequestBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) The Buyer who owns the request.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Buyer who owns the request.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
customerGroup
public QuoteRequestBuilder customerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) Set automatically when
customer
is set and the Customer is a member of a Customer Group. Not updated if Customer is changed after Quote Request creation. Used for Product Variant price selection.- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public QuoteRequestBuilder withCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) Set automatically when
customer
is set and the Customer is a member of a Customer Group. Not updated if Customer is changed after Quote Request creation. Used for Product Variant price selection.- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
Set automatically when
customer
is set and the Customer is a member of a Customer Group. Not updated if Customer is changed after Quote Request creation. Used for Product Variant price selection.- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
store
public QuoteRequestBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store to which the Buyer belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
The Store to which the Buyer belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store to which the Buyer belongs.
- Parameters:
store
- value to be set- Returns:
- Builder
-
lineItems
The Line Items for which a Quote is requested.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
lineItems
The Line Items for which a Quote is requested.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
plusLineItems
The Line Items for which a Quote is requested.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
plusLineItems
The Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the lineItems value- Returns:
- Builder
-
withLineItems
The Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the lineItems value- Returns:
- Builder
-
addLineItems
The Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the lineItems value- Returns:
- Builder
-
setLineItems
The Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the lineItems value- Returns:
- Builder
-
customLineItems
The Custom Line Items for which a Quote is requested.
- Parameters:
customLineItems
- value to be set- Returns:
- Builder
-
customLineItems
The Custom Line Items for which a Quote is requested.
- Parameters:
customLineItems
- value to be set- Returns:
- Builder
-
plusCustomLineItems
The Custom Line Items for which a Quote is requested.
- Parameters:
customLineItems
- value to be set- Returns:
- Builder
-
plusCustomLineItems
public QuoteRequestBuilder plusCustomLineItems(Function<CustomLineItemBuilder, CustomLineItemBuilder> builder) The Custom Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the customLineItems value- Returns:
- Builder
-
withCustomLineItems
public QuoteRequestBuilder withCustomLineItems(Function<CustomLineItemBuilder, CustomLineItemBuilder> builder) The Custom Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the customLineItems value- Returns:
- Builder
-
addCustomLineItems
public QuoteRequestBuilder addCustomLineItems(Function<CustomLineItemBuilder, CustomLineItem> builder) The Custom Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the customLineItems value- Returns:
- Builder
-
setCustomLineItems
public QuoteRequestBuilder setCustomLineItems(Function<CustomLineItemBuilder, CustomLineItem> builder) The Custom Line Items for which a Quote is requested.
- Parameters:
builder
- function to build the customLineItems value- Returns:
- Builder
-
totalPrice
Sum of all
totalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).totalPrice
may or may not include the taxes: it depends on the taxRate.includedInPrice property of each price.- Parameters:
totalPrice
- value to be set- Returns:
- Builder
-
totalPrice
public QuoteRequestBuilder totalPrice(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) Sum of all
totalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).totalPrice
may or may not include the taxes: it depends on the taxRate.includedInPrice property of each price.- Parameters:
builder
- function to build the totalPrice value- Returns:
- Builder
-
taxedPrice
Not set until the shipping address is set. Will be set automatically in the
Platform
TaxMode. For theExternal
tax mode it will be set as soon as the external tax rates for all line items, custom line items, and shipping in the cart are set.- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
withTaxedPrice
Not set until the shipping address is set. Will be set automatically in the
Platform
TaxMode. For theExternal
tax mode it will be set as soon as the external tax rates for all line items, custom line items, and shipping in the cart are set.- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
taxedPrice
Not set until the shipping address is set. Will be set automatically in the
Platform
TaxMode. For theExternal
tax mode it will be set as soon as the external tax rates for all line items, custom line items, and shipping in the cart are set.- Parameters:
taxedPrice
- value to be set- Returns:
- Builder
-
shippingAddress
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Parameters:
builder
- function to build the shippingAddress value- Returns:
- Builder
-
withShippingAddress
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Parameters:
builder
- function to build the shippingAddress value- Returns:
- Builder
-
shippingAddress
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Parameters:
shippingAddress
- value to be set- Returns:
- Builder
-
billingAddress
Address used for invoicing.
- Parameters:
builder
- function to build the billingAddress value- Returns:
- Builder
-
withBillingAddress
Address used for invoicing.
- Parameters:
builder
- function to build the billingAddress value- Returns:
- Builder
-
billingAddress
Address used for invoicing.
- Parameters:
billingAddress
- value to be set- Returns:
- Builder
-
inventoryMode
Inventory mode of the Cart referenced in the QuoteRequestDraft.
- Parameters:
inventoryMode
- value to be set- Returns:
- Builder
-
taxMode
Tax mode of the Cart referenced in the QuoteRequestDraft.
- Parameters:
taxMode
- value to be set- Returns:
- Builder
-
taxRoundingMode
When calculating taxes for
taxedPrice
, the selected mode is used for rounding.- Parameters:
taxRoundingMode
- value to be set- Returns:
- Builder
-
taxCalculationMode
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.- Parameters:
taxCalculationMode
- value to be set- Returns:
- Builder
-
country
Used for Product Variant price selection.
- Parameters:
country
- value to be set- Returns:
- Builder
-
shippingInfo
Set automatically once the ShippingMethod is set.
- Parameters:
builder
- function to build the shippingInfo value- Returns:
- Builder
-
withShippingInfo
Set automatically once the ShippingMethod is set.
- Parameters:
builder
- function to build the shippingInfo value- Returns:
- Builder
-
shippingInfo
Set automatically once the ShippingMethod is set.
- Parameters:
shippingInfo
- value to be set- Returns:
- Builder
-
paymentInfo
Log of payment transactions related to the Quote.
- Parameters:
builder
- function to build the paymentInfo value- Returns:
- Builder
-
withPaymentInfo
Log of payment transactions related to the Quote.
- Parameters:
builder
- function to build the paymentInfo value- Returns:
- Builder
-
paymentInfo
Log of payment transactions related to the Quote.
- Parameters:
paymentInfo
- value to be set- Returns:
- Builder
-
shippingRateInput
Used to select a ShippingRatePriceTier.
- Parameters:
shippingRateInput
- value to be set- Returns:
- Builder
-
shippingRateInput
public QuoteRequestBuilder shippingRateInput(Function<ShippingRateInputBuilder, Builder<? extends ShippingRateInput>> builder) Used to select a ShippingRatePriceTier.
- Parameters:
builder
- function to build the shippingRateInput value- Returns:
- Builder
-
itemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
itemShippingAddresses
- value to be set- Returns:
- Builder
-
itemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
itemShippingAddresses
- value to be set- Returns:
- Builder
-
plusItemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
itemShippingAddresses
- value to be set- Returns:
- Builder
-
plusItemShippingAddresses
public QuoteRequestBuilder plusItemShippingAddresses(Function<AddressBuilder, AddressBuilder> builder) Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
builder
- function to build the itemShippingAddresses value- Returns:
- Builder
-
withItemShippingAddresses
public QuoteRequestBuilder withItemShippingAddresses(Function<AddressBuilder, AddressBuilder> builder) Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
builder
- function to build the itemShippingAddresses value- Returns:
- Builder
-
addItemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
builder
- function to build the itemShippingAddresses value- Returns:
- Builder
-
setItemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Parameters:
builder
- function to build the itemShippingAddresses value- Returns:
- Builder
-
directDiscounts
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
directDiscounts
- value to be set- Returns:
- Builder
-
directDiscounts
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
directDiscounts
- value to be set- Returns:
- Builder
-
plusDirectDiscounts
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
directDiscounts
- value to be set- Returns:
- Builder
-
plusDirectDiscounts
public QuoteRequestBuilder plusDirectDiscounts(Function<DirectDiscountBuilder, DirectDiscountBuilder> builder) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
builder
- function to build the directDiscounts value- Returns:
- Builder
-
withDirectDiscounts
public QuoteRequestBuilder withDirectDiscounts(Function<DirectDiscountBuilder, DirectDiscountBuilder> builder) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
builder
- function to build the directDiscounts value- Returns:
- Builder
-
addDirectDiscounts
public QuoteRequestBuilder addDirectDiscounts(Function<DirectDiscountBuilder, DirectDiscount> builder) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
builder
- function to build the directDiscounts value- Returns:
- Builder
-
setDirectDiscounts
public QuoteRequestBuilder setDirectDiscounts(Function<DirectDiscountBuilder, DirectDiscount> builder) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Parameters:
builder
- function to build the directDiscounts value- Returns:
- Builder
-
custom
Custom Fields of the Quote Request.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
Custom Fields of the Quote Request.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields of the Quote Request.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
state
State of the Quote Request. This reference can point to a State in a custom workflow.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
State of the Quote Request. This reference can point to a State in a custom workflow.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
State of the Quote Request. This reference can point to a State in a custom workflow.
- Parameters:
state
- value to be set- Returns:
- Builder
-
purchaseOrderNumber
Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Parameters:
purchaseOrderNumber
- value to be set- Returns:
- Builder
-
cart
The Cart from which a Quote is requested.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
withCart
The Cart from which a Quote is requested.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
cart
The Cart from which a Quote is requested.
- Parameters:
cart
- value to be set- Returns:
- Builder
-
businessUnit
public QuoteRequestBuilder businessUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReferenceBuilder> builder) The BusinessUnit for the Quote Request.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
withBusinessUnit
public QuoteRequestBuilder withBusinessUnit(Function<BusinessUnitKeyReferenceBuilder, BusinessUnitKeyReference> builder) The BusinessUnit for the Quote Request.
- Parameters:
builder
- function to build the businessUnit value- Returns:
- Builder
-
businessUnit
The BusinessUnit for the Quote Request.
- Parameters:
businessUnit
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the QuoteRequest.
- Returns:
- id
-
getVersion
Current version of the QuoteRequest.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the QuoteRequest was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the QuoteRequest was last updated.
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the QuoteRequest.
- Returns:
- key
-
getLastModifiedBy
IDs and references that last modified the QuoteRequest.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the QuoteRequest.
- Returns:
- createdBy
-
getQuoteRequestState
Indicates the current state of the Quote Request in the negotiation process.
- Returns:
- quoteRequestState
-
getComment
Message from the Buyer included in the Quote Request.
- Returns:
- comment
-
getCustomer
The Buyer who owns the request.
- Returns:
- customer
-
getCustomerGroup
Set automatically when
customer
is set and the Customer is a member of a Customer Group. Not updated if Customer is changed after Quote Request creation. Used for Product Variant price selection.- Returns:
- customerGroup
-
getStore
The Store to which the Buyer belongs.
- Returns:
- store
-
getLineItems
The Line Items for which a Quote is requested.
- Returns:
- lineItems
-
getCustomLineItems
The Custom Line Items for which a Quote is requested.
- Returns:
- customLineItems
-
getTotalPrice
Sum of all
totalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).totalPrice
may or may not include the taxes: it depends on the taxRate.includedInPrice property of each price.- Returns:
- totalPrice
-
getTaxedPrice
Not set until the shipping address is set. Will be set automatically in the
Platform
TaxMode. For theExternal
tax mode it will be set as soon as the external tax rates for all line items, custom line items, and shipping in the cart are set.- Returns:
- taxedPrice
-
getShippingAddress
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Returns:
- shippingAddress
-
getBillingAddress
Address used for invoicing.
- Returns:
- billingAddress
-
getInventoryMode
Inventory mode of the Cart referenced in the QuoteRequestDraft.
- Returns:
- inventoryMode
-
getTaxMode
Tax mode of the Cart referenced in the QuoteRequestDraft.
- Returns:
- taxMode
-
getTaxRoundingMode
When calculating taxes for
taxedPrice
, the selected mode is used for rounding.- Returns:
- taxRoundingMode
-
getTaxCalculationMode
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.- Returns:
- taxCalculationMode
-
getCountry
Used for Product Variant price selection.
- Returns:
- country
-
getShippingInfo
Set automatically once the ShippingMethod is set.
- Returns:
- shippingInfo
-
getPaymentInfo
Log of payment transactions related to the Quote.
- Returns:
- paymentInfo
-
getShippingRateInput
Used to select a ShippingRatePriceTier.
- Returns:
- shippingRateInput
-
getItemShippingAddresses
Contains addresses for carts with multiple shipping addresses. Line items reference these addresses under their
shippingDetails
. The addresses captured here are not used to determine eligible shipping methods or the applicable tax rate. Only the cart'sshippingAddress
is used for this.- Returns:
- itemShippingAddresses
-
getDirectDiscounts
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Returns:
- directDiscounts
-
getCustom
Custom Fields of the Quote Request.
- Returns:
- custom
-
getState
State of the Quote Request. This reference can point to a State in a custom workflow.
- Returns:
- state
-
getPurchaseOrderNumber
Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Returns:
- purchaseOrderNumber
-
getCart
The Cart from which a Quote is requested.
- Returns:
- cart
-
getBusinessUnit
The BusinessUnit for the Quote Request.
- Returns:
- businessUnit
-
build
builds QuoteRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequest>
- Returns:
- QuoteRequest
-
buildUnchecked
builds QuoteRequest without checking for non-null required values- Returns:
- QuoteRequest
-
of
factory method for an instance of QuoteRequestBuilder- Returns:
- builder
-
of
create builder for QuoteRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-