Class ShippingInfoImportDraftBuilder
- All Implemented Interfaces:
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 TypeMethodDescriptionInformation on how items are to be delivered to customers.build()
builds ShippingInfoImportDraft with checking for non-null required valuesbuilds ShippingInfoImportDraft without checking for non-null required valuesdeliveries
(DeliveryDraft... deliveries) Information on how items are to be delivered to customers.deliveries
(List<DeliveryDraft> deliveries) Information on how items are to be delivered to customers.discountedPrice
(DiscountedLineItemPriceDraft discountedPrice) Discounted Price of the Shipping Method.discountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) Discounted Price of the Shipping Method.Information on how items are to be delivered to customers.Discounted Price of the Shipping Method.getPrice()
The base price for the Shipping Method.Include a value to associate a Shipping Method with the Order.Name of the Shipping Method.Indicates if the ShippingMethod referenced is allowed for the Order or not.Shipping rate information for the Order.Include a value to associate a Tax Category with the shipping information.Include a Tax Rate for the Shipping Method.of()
factory method for an instance of ShippingInfoImportDraftBuilderof
(ShippingInfoImportDraft template) create builder for ShippingInfoImportDraft instanceplusDeliveries
(DeliveryDraft... deliveries) Information on how items are to be delivered to customers.Information on how items are to be delivered to customers.The base price for the Shipping Method.price
(Function<MoneyBuilder, MoneyBuilder> builder) The base price for the Shipping Method.Information on how items are to be delivered to customers.shippingMethod
(ShippingMethodResourceIdentifier shippingMethod) Include a value to associate a Shipping Method with the Order.shippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) Include a value to associate a Shipping Method with the Order.shippingMethodName
(String shippingMethodName) Name of the Shipping Method.shippingMethodState
(ShippingMethodState shippingMethodState) Indicates if the ShippingMethod referenced is allowed for the Order or not.shippingRate
(ShippingRateDraft shippingRate) Shipping rate information for the Order.Shipping rate information for the Order.taxCategory
(TaxCategoryResourceIdentifier taxCategory) Include a value to associate a Tax Category with the shipping information.taxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Include a value to associate a Tax Category with the shipping information.Include a Tax Rate for the Shipping Method.taxRate
(Function<TaxRateBuilder, TaxRateBuilder> builder) Include a Tax Rate for the Shipping Method.Information on how items are to be delivered to customers.withDiscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) Discounted Price of the Shipping Method.withPrice
(Function<MoneyBuilder, Money> builder) The base price for the Shipping Method.withShippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) Include a value to associate a Shipping Method with the Order.Shipping rate information for the Order.withTaxCategory
(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Include a value to associate a Tax Category with the shipping information.withTaxRate
(Function<TaxRateBuilder, TaxRate> builder) Include a Tax Rate for the Shipping Method.
-
Constructor Details
-
ShippingInfoImportDraftBuilder
public ShippingInfoImportDraftBuilder()
-
-
Method Details
-
shippingMethodName
Name of the Shipping Method.
- Parameters:
shippingMethodName
- value to be set- Returns:
- Builder
-
price
The base price for the Shipping Method.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
withPrice
The base price for the Shipping Method.
- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
price
The base price for the Shipping Method.
- Parameters:
price
- value to be set- Returns:
- Builder
-
shippingRate
public ShippingInfoImportDraftBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) Shipping rate information for the Order.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public ShippingInfoImportDraftBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) Shipping rate information for the Order.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
Shipping rate information for the Order.
- Parameters:
shippingRate
- value to be set- Returns:
- Builder
-
taxRate
Include a Tax Rate for the Shipping Method.
- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
Include a Tax Rate for the Shipping Method.
- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
taxRate
Include a Tax Rate for the Shipping Method.
- Parameters:
taxRate
- value to be set- Returns:
- Builder
-
taxCategory
public ShippingInfoImportDraftBuilder taxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifierBuilder> builder) Include a value to associate a Tax Category with the shipping information.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ShippingInfoImportDraftBuilder withTaxCategory(Function<TaxCategoryResourceIdentifierBuilder, TaxCategoryResourceIdentifier> builder) Include a value to associate a Tax Category with the shipping information.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
public ShippingInfoImportDraftBuilder taxCategory(@Nullable TaxCategoryResourceIdentifier taxCategory) Include a value to associate a Tax Category with the shipping information.
- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) Include a value to associate a Shipping Method with the Order.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public ShippingInfoImportDraftBuilder withShippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) Include a value to associate a Shipping Method with the Order.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(@Nullable ShippingMethodResourceIdentifier shippingMethod) Include a value to associate a Shipping Method with the Order.
- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
deliveries
Information on how items are to be delivered to customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
deliveries
Information on how items are to be delivered to customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
Information on how items are to be delivered to customers.
- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
public ShippingInfoImportDraftBuilder plusDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Information on how items are to be delivered to customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
withDeliveries
public ShippingInfoImportDraftBuilder withDeliveries(Function<DeliveryDraftBuilder, DeliveryDraftBuilder> builder) Information on how items are to be delivered to customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
addDeliveries
public ShippingInfoImportDraftBuilder addDeliveries(Function<DeliveryDraftBuilder, DeliveryDraft> builder) Information on how items are to be delivered to customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
setDeliveries
public ShippingInfoImportDraftBuilder setDeliveries(Function<DeliveryDraftBuilder, DeliveryDraft> builder) Information on how items are to be delivered to customers.
- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) Discounted Price of the Shipping Method.
- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
withDiscountedPrice
public ShippingInfoImportDraftBuilder withDiscountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) Discounted Price of the Shipping Method.
- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(@Nullable DiscountedLineItemPriceDraft discountedPrice) Discounted Price of the Shipping Method.
- Parameters:
discountedPrice
- value to be set- Returns:
- Builder
-
shippingMethodState
public ShippingInfoImportDraftBuilder shippingMethodState(@Nullable ShippingMethodState shippingMethodState) Indicates if the ShippingMethod referenced is allowed for the Order or not.
- Parameters:
shippingMethodState
- value to be set- Returns:
- Builder
-
getShippingMethodName
Name of the Shipping Method.
- Returns:
- shippingMethodName
-
getPrice
The base price for the Shipping Method.
- Returns:
- price
-
getShippingRate
Shipping rate information for the Order.
- Returns:
- shippingRate
-
getTaxRate
Include a Tax Rate for the Shipping Method.
- Returns:
- taxRate
-
getTaxCategory
Include a value to associate a Tax Category with the shipping information.
- Returns:
- taxCategory
-
getShippingMethod
Include a value to associate a Shipping Method with the Order.
- Returns:
- shippingMethod
-
getDeliveries
Information on how items are to be delivered to customers.
- Returns:
- deliveries
-
getDiscountedPrice
Discounted Price of the Shipping Method.
- Returns:
- discountedPrice
-
getShippingMethodState
Indicates if the ShippingMethod referenced is allowed for the Order or not.
- Returns:
- shippingMethodState
-
build
builds ShippingInfoImportDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<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
-