Class ShippingInfoImportDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ShippingInfoImportDraft>
Example to create an instance using the builder pattern
ShippingInfoImportDraft shippingInfoImportDraft = ShippingInfoImportDraft.builder()
.shippingMethodName("{shippingMethodName}")
.price(priceBuilder -> priceBuilder)
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeliveries are compilations of information on how the articles are being delivered to the customers.build()
builds ShippingInfoImportDraft with checking for non-null required valuesbuilds ShippingInfoImportDraft without checking for non-null required valuesdeliveries
(DeliveryDraft... deliveries) Deliveries are compilations of information on how the articles are being delivered to the customers.deliveries
(List<DeliveryDraft> deliveries) Deliveries are compilations of information on how the articles are being delivered to the customers.discountedPrice
(DiscountedLineItemPriceDraft discountedPrice) set the value to the discountedPricediscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) set the value to the discountedPrice using the builder functionDeliveries are compilations of information on how the articles are being delivered to the customers.value of discountedPrice}getPrice()
value of price}Not set if custom shipping method is used.value of shippingMethodName}Indicates whether the ShippingMethod referenced is allowed for the cart or not.The shipping rate used to determine the price.value of taxCategory}value of taxRate}of()
factory method for an instance of ShippingInfoImportDraftBuilderof
(ShippingInfoImportDraft template) create builder for ShippingInfoImportDraft instanceplusDeliveries
(DeliveryDraft... deliveries) Deliveries are compilations of information on how the articles are being delivered to the customers.Deliveries are compilations of information on how the articles are being delivered to the customers.set the value to the priceprice
(Function<MoneyBuilder, MoneyBuilder> builder) set the value to the price using the builder functionDeliveries are compilations of information on how the articles are being delivered to the customers.shippingMethod
(ShippingMethodResourceIdentifier shippingMethod) Not set if custom shipping method is used.shippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) Not set if custom shipping method is used.shippingMethodName
(String shippingMethodName) set the value to the shippingMethodNameshippingMethodState
(ShippingMethodState shippingMethodState) Indicates whether the ShippingMethod referenced is allowed for the cart or not.shippingRate
(ShippingRateDraft shippingRate) The shipping rate used to determine the price.The shipping rate used to determine the price.taxCategory
(TaxCategoryResourceIdentifier taxCategory) set the value to the taxCategorytaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) set the value to the taxCategory using the builder functionset the value to the taxRatetaxRate
(Function<TaxRateBuilder, TaxRateBuilder> builder) set the value to the taxRate using the builder functionDeliveries are compilations of information on how the articles are being delivered to the customers.withDiscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) set the value to the discountedPrice using the builder functionwithPrice
(Function<MoneyBuilder, Money> builder) set the value to the price using the builder functionwithShippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) Not set if custom shipping method is used.The shipping rate used to determine the price.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) set the value to the taxCategory using the builder functionwithTaxRate
(Function<TaxRateBuilder, TaxRate> builder) set the value to the taxRate using the builder function
-
Constructor Details
-
ShippingInfoImportDraftBuilder
public ShippingInfoImportDraftBuilder()
-
-
Method Details
-
shippingMethodName
set the value to the shippingMethodName- Parameters:
shippingMethodName
- value to be set- Returns:
- Builder
-
price
set the value to the price using the builder function- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
withPrice
set the value to the price using the builder function- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
price
set the value to the price- Parameters:
price
- value to be set- Returns:
- Builder
-
shippingRate
public ShippingInfoImportDraftBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) The shipping rate used to determine the price.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public ShippingInfoImportDraftBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) The shipping rate used to determine the price.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
The shipping rate used to determine the price.
- Parameters:
shippingRate
- value to be set- Returns:
- Builder
-
taxRate
set the value to the taxRate using the builder function- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
set the value to the taxRate using the builder function- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
taxRate
set the value to the taxRate- Parameters:
taxRate
- value to be set- Returns:
- Builder
-
taxCategory
public ShippingInfoImportDraftBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) set the value to the taxCategory using the builder function- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ShippingInfoImportDraftBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) set the value to the taxCategory using the builder function- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public ShippingInfoImportDraftBuilder taxCategory(@Nullable TaxCategoryResourceIdentifier taxCategory) set the value to the taxCategory- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) Not set if custom shipping method is used.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public ShippingInfoImportDraftBuilder withShippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) Not set if custom shipping method is used.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(@Nullable ShippingMethodResourceIdentifier shippingMethod) Not set if custom shipping method is used.
- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
deliveries
Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
deliveries
Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
public ShippingInfoImportDraftBuilder plusDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
withDeliveries
public ShippingInfoImportDraftBuilder withDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
addDeliveries
public ShippingInfoImportDraftBuilder addDeliveries(Function<DeliveryDraftBuilder, DeliveryDraft> builder) Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
setDeliveries
public ShippingInfoImportDraftBuilder setDeliveries(Function<DeliveryDraftBuilder, DeliveryDraft> builder) Deliveries are compilations of information on how the articles are being delivered to the customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) set the value to the discountedPrice using the builder function- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
withDiscountedPrice
public ShippingInfoImportDraftBuilder withDiscountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) set the value to the discountedPrice using the builder function- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(@Nullable DiscountedLineItemPriceDraft discountedPrice) set the value to the discountedPrice- Parameters:
discountedPrice
- value to be set- Returns:
- Builder
-
shippingMethodState
public ShippingInfoImportDraftBuilder shippingMethodState(@Nullable ShippingMethodState shippingMethodState) Indicates whether the ShippingMethod referenced is allowed for the cart or not.
- Parameters:
shippingMethodState
- value to be set- Returns:
- Builder
-
getShippingMethodName
value of shippingMethodName}- Returns:
- shippingMethodName
-
getPrice
value of price}- Returns:
- price
-
getShippingRate
The shipping rate used to determine the price.
- Returns:
- shippingRate
-
getTaxRate
value of taxRate}- Returns:
- taxRate
-
getTaxCategory
value of taxCategory}- Returns:
- taxCategory
-
getShippingMethod
Not set if custom shipping method is used.
- Returns:
- shippingMethod
-
getDeliveries
Deliveries are compilations of information on how the articles are being delivered to the customers.
- Returns:
- deliveries
-
getDiscountedPrice
value of discountedPrice}- Returns:
- discountedPrice
-
getShippingMethodState
Indicates whether the ShippingMethod referenced is allowed for the cart or not.
- Returns:
- shippingMethodState
-
build
builds ShippingInfoImportDraft with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ShippingInfoImportDraft>
- Returns:
- ShippingInfoImportDraft
-
buildUnchecked
builds ShippingInfoImportDraft without checking for non-null required values- Returns:
- ShippingInfoImportDraft
-
of
factory method for an instance of ShippingInfoImportDraftBuilder- Returns:
- builder
-
of
create builder for ShippingInfoImportDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-