Class StagedOrderAddCustomLineItemActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderAddCustomLineItemAction>
Example to create an instance using the builder pattern
StagedOrderAddCustomLineItemAction stagedOrderAddCustomLineItemAction = StagedOrderAddCustomLineItemAction.builder()
.money(moneyBuilder -> moneyBuilder)
.name(nameBuilder -> nameBuilder)
.slug("{slug}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderAddCustomLineItemAction with checking for non-null required valuesbuilds StagedOrderAddCustomLineItemAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) The representation used when creating or updating a customizable data type with Custom Fields.The representation used when creating or updating a customizable data type with Custom Fields.externalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.The representation used when creating or updating a customizable data type with Custom Fields.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.getKey()
User-defined unique identifier of the Custom Line Item.getMoney()
Draft type that stores amounts only in cent precision for the specified currency.getName()
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.IfStandard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. IfExternal
, Cart Discounts are not considered on the Custom Line Item.value of quantity}getSlug()
value of slug}ResourceIdentifier to a TaxCategory.User-defined unique identifier of the Custom Line Item.Draft type that stores amounts only in cent precision for the specified currency.money
(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.name
(LocalizedString name) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.of()
factory method for an instance of StagedOrderAddCustomLineItemActionBuilderof
(StagedOrderAddCustomLineItemAction template) create builder for StagedOrderAddCustomLineItemAction instancepriceMode
(CustomLineItemPriceMode priceMode) IfStandard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. IfExternal
, Cart Discounts are not considered on the Custom Line Item.set the value to the quantityset the value to the slugtaxCategory
(TaxCategoryResourceIdentifier taxCategory) ResourceIdentifier to a TaxCategory.taxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) ResourceIdentifier to a TaxCategory.The representation used when creating or updating a customizable data type with Custom Fields.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.withMoney
(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) ResourceIdentifier to a TaxCategory.
-
Constructor Details
-
StagedOrderAddCustomLineItemActionBuilder
-
-
Method Details
-
money
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
withMoney
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
money
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
money
- value to be set- Returns:
- Builder
-
name
public StagedOrderAddCustomLineItemActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public StagedOrderAddCustomLineItemActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
name
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Custom Line Item.
- Parameters:
key
- value to be set- Returns:
- Builder
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
slug
set the value to the slug- Parameters:
slug
- value to be set- Returns:
- Builder
-
taxCategory
public StagedOrderAddCustomLineItemActionBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) ResourceIdentifier to a TaxCategory.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public StagedOrderAddCustomLineItemActionBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) ResourceIdentifier to a TaxCategory.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public StagedOrderAddCustomLineItemActionBuilder taxCategory(@Nullable TaxCategoryResourceIdentifier taxCategory) ResourceIdentifier to a TaxCategory.
- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
custom
public StagedOrderAddCustomLineItemActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) The representation used when creating or updating a customizable data type with Custom Fields.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public StagedOrderAddCustomLineItemActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) The representation used when creating or updating a customizable data type with Custom Fields.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
The representation used when creating or updating a customizable data type with Custom Fields.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderAddCustomLineItemActionBuilder externalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraftBuilder> builder) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
withExternalTaxRate
public StagedOrderAddCustomLineItemActionBuilder withExternalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraft> builder) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
externalTaxRate
public StagedOrderAddCustomLineItemActionBuilder externalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- value to be set- Returns:
- Builder
-
priceMode
public StagedOrderAddCustomLineItemActionBuilder priceMode(@Nullable CustomLineItemPriceMode priceMode) - If
Standard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. - If
External
, Cart Discounts are not considered on the Custom Line Item.
- Parameters:
priceMode
- value to be set- Returns:
- Builder
- If
-
getMoney
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- money
-
getName
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Returns:
- name
-
getKey
User-defined unique identifier of the Custom Line Item.
- Returns:
- key
-
getQuantity
value of quantity}- Returns:
- quantity
-
getSlug
value of slug}- Returns:
- slug
-
getTaxCategory
ResourceIdentifier to a TaxCategory.
- Returns:
- taxCategory
-
getCustom
The representation used when creating or updating a customizable data type with Custom Fields.
- Returns:
- custom
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
getPriceMode
- If
Standard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. - If
External
, Cart Discounts are not considered on the Custom Line Item.
- Returns:
- priceMode
- If
-
build
builds StagedOrderAddCustomLineItemAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderAddCustomLineItemAction>
- Returns:
- StagedOrderAddCustomLineItemAction
-
buildUnchecked
builds StagedOrderAddCustomLineItemAction without checking for non-null required values- Returns:
- StagedOrderAddCustomLineItemAction
-
of
factory method for an instance of StagedOrderAddCustomLineItemActionBuilder- Returns:
- builder
-
of
public static StagedOrderAddCustomLineItemActionBuilder of(StagedOrderAddCustomLineItemAction template) create builder for StagedOrderAddCustomLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-