Class QuoteRequestImpl
- All Implemented Interfaces:
BaseResource
,QuoteRequest
,WithKey
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources created after 1 February 2019 except for events not tracked.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.int
hashCode()
void
setBillingAddress
(Address billingAddress) Address used for invoicing.void
setBusinessUnit
(BusinessUnitKeyReference businessUnit) The BusinessUnit for the Quote Request.void
setCart
(CartReference cart) The Cart from which a Quote is requested.void
setComment
(String comment) Message from the Buyer included in the Quote Request.void
setCountry
(String country) Used for Product Variant price selection.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the QuoteRequest was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields of the Quote Request.void
setCustomer
(CustomerReference customer) The Buyer who owns the request.void
setCustomerGroup
(CustomerGroupReference customerGroup) Set automatically whencustomer
is set and the Customer is a member of a Customer Group.void
setCustomLineItems
(CustomLineItem... customLineItems) The Custom Line Items for which a Quote is requested.void
setCustomLineItems
(List<CustomLineItem> customLineItems) The Custom Line Items for which a Quote is requested.void
setDirectDiscounts
(DirectDiscount... directDiscounts) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.void
setDirectDiscounts
(List<DirectDiscount> directDiscounts) Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.void
Unique identifier of the QuoteRequest.void
setInventoryMode
(InventoryMode inventoryMode) Inventory mode of the Cart referenced in the QuoteRequestDraft.void
setItemShippingAddresses
(Address... itemShippingAddresses) Contains addresses for carts with multiple shipping addresses.void
setItemShippingAddresses
(List<Address> itemShippingAddresses) Contains addresses for carts with multiple shipping addresses.void
User-defined unique identifier of the QuoteRequest.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the QuoteRequest was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setLineItems
(LineItem... lineItems) The Line Items for which a Quote is requested.void
setLineItems
(List<LineItem> lineItems) The Line Items for which a Quote is requested.void
setPaymentInfo
(PaymentInfo paymentInfo) Log of payment transactions related to the Quote.void
setPurchaseOrderNumber
(String purchaseOrderNumber) Identifier for a purchase order, usually in a B2B context.void
setQuoteRequestState
(QuoteRequestState quoteRequestState) Indicates the current state of the Quote Request in the negotiation process.void
setShippingAddress
(Address shippingAddress) Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.void
setShippingInfo
(ShippingInfo shippingInfo) Set automatically once the ShippingMethod is set.void
setShippingRateInput
(ShippingRateInput shippingRateInput) Used to select a ShippingRatePriceTier.void
setState
(StateReference state) State of the Quote Request.void
setStore
(StoreKeyReference store) The Store to which the Buyer belongs.void
setTaxCalculationMode
(TaxCalculationMode taxCalculationMode) When calculating taxes fortaxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.void
setTaxedPrice
(TaxedPrice taxedPrice) Not set until the shipping address is set.void
setTaxMode
(TaxMode taxMode) Tax mode of the Cart referenced in the QuoteRequestDraft.void
setTaxRoundingMode
(RoundingMode taxRoundingMode) When calculating taxes fortaxedPrice
, the selected mode is used for rounding.void
setTotalPrice
(TypedMoney totalPrice) Sum of alltotalPrice
fields of thelineItems
andcustomLineItems
, as well as theprice
field ofshippingInfo
(if it exists).void
setVersion
(Long version) Current version of the QuoteRequest.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.quote_request.QuoteRequest
withQuoteRequest
-
Constructor Details
-
QuoteRequestImpl
public QuoteRequestImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the QuoteRequest.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceQuoteRequest
- Returns:
- id
-
getVersion
Current version of the QuoteRequest.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceQuoteRequest
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the QuoteRequest was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceQuoteRequest
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the QuoteRequest was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceQuoteRequest
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the QuoteRequest.
- Specified by:
getKey
in interfaceQuoteRequest
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceQuoteRequest
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceQuoteRequest
- Returns:
- createdBy
-
getQuoteRequestState
Indicates the current state of the Quote Request in the negotiation process.
- Specified by:
getQuoteRequestState
in interfaceQuoteRequest
- Returns:
- quoteRequestState
-
getComment
Message from the Buyer included in the Quote Request.
- Specified by:
getComment
in interfaceQuoteRequest
- Returns:
- comment
-
getCustomer
The Buyer who owns the request.
- Specified by:
getCustomer
in interfaceQuoteRequest
- 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.- Specified by:
getCustomerGroup
in interfaceQuoteRequest
- Returns:
- customerGroup
-
getStore
The Store to which the Buyer belongs.
- Specified by:
getStore
in interfaceQuoteRequest
- Returns:
- store
-
getLineItems
The Line Items for which a Quote is requested.
- Specified by:
getLineItems
in interfaceQuoteRequest
- Returns:
- lineItems
-
getCustomLineItems
The Custom Line Items for which a Quote is requested.
- Specified by:
getCustomLineItems
in interfaceQuoteRequest
- 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.- Specified by:
getTotalPrice
in interfaceQuoteRequest
- 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.- Specified by:
getTaxedPrice
in interfaceQuoteRequest
- Returns:
- taxedPrice
-
getShippingAddress
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Specified by:
getShippingAddress
in interfaceQuoteRequest
- Returns:
- shippingAddress
-
getBillingAddress
Address used for invoicing.
- Specified by:
getBillingAddress
in interfaceQuoteRequest
- Returns:
- billingAddress
-
getInventoryMode
Inventory mode of the Cart referenced in the QuoteRequestDraft.
- Specified by:
getInventoryMode
in interfaceQuoteRequest
- Returns:
- inventoryMode
-
getTaxMode
Tax mode of the Cart referenced in the QuoteRequestDraft.
- Specified by:
getTaxMode
in interfaceQuoteRequest
- Returns:
- taxMode
-
getTaxRoundingMode
When calculating taxes for
taxedPrice
, the selected mode is used for rounding.- Specified by:
getTaxRoundingMode
in interfaceQuoteRequest
- Returns:
- taxRoundingMode
-
getTaxCalculationMode
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.- Specified by:
getTaxCalculationMode
in interfaceQuoteRequest
- Returns:
- taxCalculationMode
-
getCountry
Used for Product Variant price selection.
- Specified by:
getCountry
in interfaceQuoteRequest
- Returns:
- country
-
getShippingInfo
Set automatically once the ShippingMethod is set.
- Specified by:
getShippingInfo
in interfaceQuoteRequest
- Returns:
- shippingInfo
-
getPaymentInfo
Log of payment transactions related to the Quote.
- Specified by:
getPaymentInfo
in interfaceQuoteRequest
- Returns:
- paymentInfo
-
getShippingRateInput
Used to select a ShippingRatePriceTier.
- Specified by:
getShippingRateInput
in interfaceQuoteRequest
- 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.- Specified by:
getItemShippingAddresses
in interfaceQuoteRequest
- Returns:
- itemShippingAddresses
-
getDirectDiscounts
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Specified by:
getDirectDiscounts
in interfaceQuoteRequest
- Returns:
- directDiscounts
-
getCustom
Custom Fields of the Quote Request.
- Specified by:
getCustom
in interfaceQuoteRequest
- Returns:
- custom
-
getState
State of the Quote Request. This reference can point to a State in a custom workflow.
- Specified by:
getState
in interfaceQuoteRequest
- Returns:
- state
-
getPurchaseOrderNumber
Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Specified by:
getPurchaseOrderNumber
in interfaceQuoteRequest
- Returns:
- purchaseOrderNumber
-
getCart
The Cart from which a Quote is requested.
- Specified by:
getCart
in interfaceQuoteRequest
- Returns:
- cart
-
getBusinessUnit
The BusinessUnit for the Quote Request.
- Specified by:
getBusinessUnit
in interfaceQuoteRequest
- Returns:
- businessUnit
-
setId
Description copied from interface:QuoteRequest
Unique identifier of the QuoteRequest.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceQuoteRequest
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:QuoteRequest
Current version of the QuoteRequest.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceQuoteRequest
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:QuoteRequest
Date and time (UTC) the QuoteRequest was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceQuoteRequest
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:QuoteRequest
Date and time (UTC) the QuoteRequest was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceQuoteRequest
- Parameters:
lastModifiedAt
- value to be set
-
setKey
Description copied from interface:QuoteRequest
User-defined unique identifier of the QuoteRequest.
- Specified by:
setKey
in interfaceQuoteRequest
- Parameters:
key
- value to be set
-
setLastModifiedBy
Description copied from interface:QuoteRequest
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceQuoteRequest
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:QuoteRequest
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceQuoteRequest
- Parameters:
createdBy
- value to be set
-
setQuoteRequestState
Description copied from interface:QuoteRequest
Indicates the current state of the Quote Request in the negotiation process.
- Specified by:
setQuoteRequestState
in interfaceQuoteRequest
- Parameters:
quoteRequestState
- value to be set
-
setComment
Description copied from interface:QuoteRequest
Message from the Buyer included in the Quote Request.
- Specified by:
setComment
in interfaceQuoteRequest
- Parameters:
comment
- value to be set
-
setCustomer
Description copied from interface:QuoteRequest
The Buyer who owns the request.
- Specified by:
setCustomer
in interfaceQuoteRequest
- Parameters:
customer
- value to be set
-
setCustomerGroup
Description copied from interface:QuoteRequest
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.- Specified by:
setCustomerGroup
in interfaceQuoteRequest
- Parameters:
customerGroup
- value to be set
-
setStore
Description copied from interface:QuoteRequest
The Store to which the Buyer belongs.
- Specified by:
setStore
in interfaceQuoteRequest
- Parameters:
store
- value to be set
-
setLineItems
Description copied from interface:QuoteRequest
The Line Items for which a Quote is requested.
- Specified by:
setLineItems
in interfaceQuoteRequest
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:QuoteRequest
The Line Items for which a Quote is requested.
- Specified by:
setLineItems
in interfaceQuoteRequest
- Parameters:
lineItems
- values to be set
-
setCustomLineItems
Description copied from interface:QuoteRequest
The Custom Line Items for which a Quote is requested.
- Specified by:
setCustomLineItems
in interfaceQuoteRequest
- Parameters:
customLineItems
- values to be set
-
setCustomLineItems
Description copied from interface:QuoteRequest
The Custom Line Items for which a Quote is requested.
- Specified by:
setCustomLineItems
in interfaceQuoteRequest
- Parameters:
customLineItems
- values to be set
-
setTotalPrice
Description copied from interface:QuoteRequest
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.- Specified by:
setTotalPrice
in interfaceQuoteRequest
- Parameters:
totalPrice
- value to be set
-
setTaxedPrice
Description copied from interface:QuoteRequest
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.- Specified by:
setTaxedPrice
in interfaceQuoteRequest
- Parameters:
taxedPrice
- value to be set
-
setShippingAddress
Description copied from interface:QuoteRequest
Used to determine the eligible ShippingMethods and rates as well as the tax rate of the Line Items.
- Specified by:
setShippingAddress
in interfaceQuoteRequest
- Parameters:
shippingAddress
- value to be set
-
setBillingAddress
Description copied from interface:QuoteRequest
Address used for invoicing.
- Specified by:
setBillingAddress
in interfaceQuoteRequest
- Parameters:
billingAddress
- value to be set
-
setInventoryMode
Description copied from interface:QuoteRequest
Inventory mode of the Cart referenced in the QuoteRequestDraft.
- Specified by:
setInventoryMode
in interfaceQuoteRequest
- Parameters:
inventoryMode
- value to be set
-
setTaxMode
Description copied from interface:QuoteRequest
Tax mode of the Cart referenced in the QuoteRequestDraft.
- Specified by:
setTaxMode
in interfaceQuoteRequest
- Parameters:
taxMode
- value to be set
-
setTaxRoundingMode
Description copied from interface:QuoteRequest
When calculating taxes for
taxedPrice
, the selected mode is used for rounding.- Specified by:
setTaxRoundingMode
in interfaceQuoteRequest
- Parameters:
taxRoundingMode
- value to be set
-
setTaxCalculationMode
Description copied from interface:QuoteRequest
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price withLineItemLevel
(horizontally) orUnitPriceLevel
(vertically) calculation mode.- Specified by:
setTaxCalculationMode
in interfaceQuoteRequest
- Parameters:
taxCalculationMode
- value to be set
-
setCountry
Description copied from interface:QuoteRequest
Used for Product Variant price selection.
- Specified by:
setCountry
in interfaceQuoteRequest
- Parameters:
country
- value to be set
-
setShippingInfo
Description copied from interface:QuoteRequest
Set automatically once the ShippingMethod is set.
- Specified by:
setShippingInfo
in interfaceQuoteRequest
- Parameters:
shippingInfo
- value to be set
-
setPaymentInfo
Description copied from interface:QuoteRequest
Log of payment transactions related to the Quote.
- Specified by:
setPaymentInfo
in interfaceQuoteRequest
- Parameters:
paymentInfo
- value to be set
-
setShippingRateInput
Description copied from interface:QuoteRequest
Used to select a ShippingRatePriceTier.
- Specified by:
setShippingRateInput
in interfaceQuoteRequest
- Parameters:
shippingRateInput
- value to be set
-
setItemShippingAddresses
Description copied from interface:QuoteRequest
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.- Specified by:
setItemShippingAddresses
in interfaceQuoteRequest
- Parameters:
itemShippingAddresses
- values to be set
-
setItemShippingAddresses
Description copied from interface:QuoteRequest
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.- Specified by:
setItemShippingAddresses
in interfaceQuoteRequest
- Parameters:
itemShippingAddresses
- values to be set
-
setDirectDiscounts
Description copied from interface:QuoteRequest
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Specified by:
setDirectDiscounts
in interfaceQuoteRequest
- Parameters:
directDiscounts
- values to be set
-
setDirectDiscounts
Description copied from interface:QuoteRequest
Discounts that are only valid for the Quote and cannot be associated to any other Cart or Order.
- Specified by:
setDirectDiscounts
in interfaceQuoteRequest
- Parameters:
directDiscounts
- values to be set
-
setCustom
Description copied from interface:QuoteRequest
Custom Fields of the Quote Request.
- Specified by:
setCustom
in interfaceQuoteRequest
- Parameters:
custom
- value to be set
-
setState
Description copied from interface:QuoteRequest
State of the Quote Request. This reference can point to a State in a custom workflow.
- Specified by:
setState
in interfaceQuoteRequest
- Parameters:
state
- value to be set
-
setPurchaseOrderNumber
Description copied from interface:QuoteRequest
Identifier for a purchase order, usually in a B2B context. The Purchase Order Number is typically entered by the Buyer.
- Specified by:
setPurchaseOrderNumber
in interfaceQuoteRequest
- Parameters:
purchaseOrderNumber
- value to be set
-
setCart
Description copied from interface:QuoteRequest
The Cart from which a Quote is requested.
- Specified by:
setCart
in interfaceQuoteRequest
- Parameters:
cart
- value to be set
-
setBusinessUnit
Description copied from interface:QuoteRequest
The BusinessUnit for the Quote Request.
- Specified by:
setBusinessUnit
in interfaceQuoteRequest
- Parameters:
businessUnit
- value to be set
-
equals
-
hashCode
public int hashCode()
-