Interface CustomLineItemDraft
- All Superinterfaces:
Draft<CustomLineItemDraft>
CustomLineItemDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomLineItemDraft customLineItemDraft = CustomLineItemDraft.builder()
.name(nameBuilder -> nameBuilder)
.money(moneyBuilder -> moneyBuilder)
.totalPrice(totalPriceBuilder -> totalPriceBuilder)
.slug("{slug}")
.quantity(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomLineItemDraftBuilder
builder()
builder factory method for CustomLineItemDraftstatic CustomLineItemDraftBuilder
builder
(CustomLineItemDraft template) create builder for CustomLineItemDraft instancestatic CustomLineItemDraft
deepCopy
(CustomLineItemDraft template) factory method to create a deep copy of CustomLineItemDraft@Valid List<DiscountedLineItemPriceDraft>
@Valid ExternalTaxRateDraft
@NotNull @Valid TypedMoney
getMoney()
@NotNull @Valid LocalizedString
getName()
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.@NotNull Long
@Valid ItemShippingDetailsDraft
@NotNull String
getSlug()
getState()
@Valid TaxCategoryKeyReference
References a tax category by key.@Valid CustomLineItemTaxedPrice
@Valid TaxRate
@NotNull @Valid TypedMoney
static CustomLineItemDraft
of()
factory methodstatic CustomLineItemDraft
of
(CustomLineItemDraft template) factory method to create a shallow copy CustomLineItemDraftvoid
setDiscountedPricePerQuantity
(DiscountedLineItemPriceDraft... discountedPricePerQuantity) set discountedPricePerQuantityvoid
setDiscountedPricePerQuantity
(List<DiscountedLineItemPriceDraft> discountedPricePerQuantity) set discountedPricePerQuantityvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) set externalTaxRatevoid
setMoney
(TypedMoney money) set moneyvoid
setName
(LocalizedString name) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.void
setQuantity
(Long quantity) set quantityvoid
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) set shippingDetailsvoid
set slugvoid
set statevoid
set statevoid
setTaxCategory
(TaxCategoryKeyReference taxCategory) References a tax category by key.void
setTaxedPrice
(CustomLineItemTaxedPrice taxedPrice) set taxedPricevoid
setTaxRate
(TaxRate taxRate) set taxRatevoid
setTotalPrice
(TypedMoney totalPrice) set totalPricestatic com.fasterxml.jackson.core.type.TypeReference<CustomLineItemDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomLineItemDraft
(Function<CustomLineItemDraft, T> helper) accessor map function
-
Method Details
-
getName
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Returns:
- name
-
getMoney
- Returns:
- money
-
getTaxedPrice
- Returns:
- taxedPrice
-
getTotalPrice
- Returns:
- totalPrice
-
getSlug
- Returns:
- slug
-
getQuantity
- Returns:
- quantity
-
getState
- Returns:
- state
-
getTaxCategory
References a tax category by key.
- Returns:
- taxCategory
-
getTaxRate
- Returns:
- taxRate
-
getExternalTaxRate
- Returns:
- externalTaxRate
-
getDiscountedPricePerQuantity
- Returns:
- discountedPricePerQuantity
-
getShippingDetails
- Returns:
- shippingDetails
-
setName
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Parameters:
name
- value to be set
-
setMoney
set money- Parameters:
money
- value to be set
-
setTaxedPrice
set taxedPrice- Parameters:
taxedPrice
- value to be set
-
setTotalPrice
set totalPrice- Parameters:
totalPrice
- value to be set
-
setSlug
set slug- Parameters:
slug
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
setState
set state- Parameters:
state
- values to be set
-
setState
set state- Parameters:
state
- values to be set
-
setTaxCategory
References a tax category by key.
- Parameters:
taxCategory
- value to be set
-
setTaxRate
set taxRate- Parameters:
taxRate
- value to be set
-
setExternalTaxRate
set externalTaxRate- Parameters:
externalTaxRate
- value to be set
-
setDiscountedPricePerQuantity
set discountedPricePerQuantity- Parameters:
discountedPricePerQuantity
- values to be set
-
setDiscountedPricePerQuantity
set discountedPricePerQuantity- Parameters:
discountedPricePerQuantity
- values to be set
-
setShippingDetails
set shippingDetails- Parameters:
shippingDetails
- value to be set
-
of
factory method- Returns:
- instance of CustomLineItemDraft
-
of
factory method to create a shallow copy CustomLineItemDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomLineItemDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomLineItemDraft- Returns:
- builder
-
builder
create builder for CustomLineItemDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomLineItemDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-