Class StagedOrderAddLineItemActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderAddLineItemAction>
Example to create an instance using the builder pattern
StagedOrderAddLineItemAction stagedOrderAddLineItemAction = StagedOrderAddLineItemAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddedAt
(ZonedDateTime addedAt) set the value to the addedAtbuild()
builds StagedOrderAddLineItemAction with checking for non-null required valuesbuilds StagedOrderAddLineItemAction 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.distributionChannel
(ChannelResourceIdentifier distributionChannel) ResourceIdentifier to a Channel.distributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) ResourceIdentifier to a Channel.externalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.externalPrice
(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.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.externalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) set the value to the externalTotalPriceexternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) set the value to the externalTotalPrice using the builder functionvalue of addedAt}The representation used when creating or updating a customizable data type with Custom Fields.ResourceIdentifier to a Channel.Draft type that stores amounts only in cent precision for the specified currency.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.value of externalTotalPrice}getKey()
User-defined unique identifier of the LineItem.value of productId}value of quantity}For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.getSku()
value of sku}ResourceIdentifier to a Channel.value of variantId}User-defined unique identifier of the LineItem.of()
factory method for an instance of StagedOrderAddLineItemActionBuilderof
(StagedOrderAddLineItemAction template) create builder for StagedOrderAddLineItemAction instanceset the value to the productIdset the value to the quantityshippingDetails
(ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.set the value to the skusupplyChannel
(ChannelResourceIdentifier supplyChannel) ResourceIdentifier to a Channel.ResourceIdentifier to a Channel.set the value to the variantIdThe representation used when creating or updating a customizable data type with Custom Fields.withDistributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) ResourceIdentifier to a Channel.withExternalPrice
(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.withExternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) set the value to the externalTotalPrice using the builder functionFor order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.ResourceIdentifier to a Channel.
-
Constructor Details
-
StagedOrderAddLineItemActionBuilder
public StagedOrderAddLineItemActionBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the LineItem.
- Parameters:
key
- value to be set- Returns:
- Builder
-
custom
public StagedOrderAddLineItemActionBuilder 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 StagedOrderAddLineItemActionBuilder 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
-
distributionChannel
public StagedOrderAddLineItemActionBuilder distributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) ResourceIdentifier to a Channel.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
withDistributionChannel
public StagedOrderAddLineItemActionBuilder withDistributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) ResourceIdentifier to a Channel.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
distributionChannel
public StagedOrderAddLineItemActionBuilder distributionChannel(@Nullable ChannelResourceIdentifier distributionChannel) ResourceIdentifier to a Channel.
- Parameters:
distributionChannel
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderAddLineItemActionBuilder 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 StagedOrderAddLineItemActionBuilder 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 StagedOrderAddLineItemActionBuilder 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
-
productId
set the value to the productId- Parameters:
productId
- value to be set- Returns:
- Builder
-
variantId
set the value to the variantId- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
set the value to the sku- Parameters:
sku
- value to be set- Returns:
- Builder
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
addedAt
set the value to the addedAt- Parameters:
addedAt
- value to be set- Returns:
- Builder
-
supplyChannel
public StagedOrderAddLineItemActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) ResourceIdentifier to a Channel.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public StagedOrderAddLineItemActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) ResourceIdentifier to a Channel.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public StagedOrderAddLineItemActionBuilder supplyChannel(@Nullable ChannelResourceIdentifier supplyChannel) ResourceIdentifier to a Channel.
- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
externalPrice
public StagedOrderAddLineItemActionBuilder externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
withExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
externalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set- Returns:
- Builder
-
externalTotalPrice
public StagedOrderAddLineItemActionBuilder externalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) set the value to the externalTotalPrice using the builder function- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
withExternalTotalPrice
public StagedOrderAddLineItemActionBuilder withExternalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) set the value to the externalTotalPrice using the builder function- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
externalTotalPrice
public StagedOrderAddLineItemActionBuilder externalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice) set the value to the externalTotalPrice- Parameters:
externalTotalPrice
- value to be set- Returns:
- Builder
-
shippingDetails
public StagedOrderAddLineItemActionBuilder shippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
withShippingDetails
public StagedOrderAddLineItemActionBuilder withShippingDetails(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
builder
- function to build the shippingDetails value- Returns:
- Builder
-
shippingDetails
public StagedOrderAddLineItemActionBuilder shippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetails
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the LineItem.
- Returns:
- key
-
getCustom
The representation used when creating or updating a customizable data type with Custom Fields.
- Returns:
- custom
-
getDistributionChannel
ResourceIdentifier to a Channel.
- Returns:
- distributionChannel
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
getProductId
value of productId}- Returns:
- productId
-
getVariantId
value of variantId}- Returns:
- variantId
-
getSku
value of sku}- Returns:
- sku
-
getQuantity
value of quantity}- Returns:
- quantity
-
getAddedAt
value of addedAt}- Returns:
- addedAt
-
getSupplyChannel
ResourceIdentifier to a Channel.
- Returns:
- supplyChannel
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
getExternalTotalPrice
value of externalTotalPrice}- Returns:
- externalTotalPrice
-
getShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetails
-
build
builds StagedOrderAddLineItemAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderAddLineItemAction>
- Returns:
- StagedOrderAddLineItemAction
-
buildUnchecked
builds StagedOrderAddLineItemAction without checking for non-null required values- Returns:
- StagedOrderAddLineItemAction
-
of
factory method for an instance of StagedOrderAddLineItemActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-