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 TypeMethodDescriptionaddDeliveries
(Function<DeliveryBuilder, Delivery> builder) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.build()
builds ShippingInfoImportDraft with checking for non-null required valuesbuilds ShippingInfoImportDraft without checking for non-null required valuesdeliveries
(Delivery... deliveries) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.deliveries
(List<Delivery> deliveries) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.discountedPrice
(DiscountedLineItemPriceDraft discountedPrice) set the value to the discountedPricediscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) set the value to the discountedPrice using the builder functionNote that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.value of discountedPrice}getPrice()
value of price}References a shipping method by key.value of shippingMethodName}value of shippingMethodState}value of shippingRate}References a tax category by key.value of taxRate}of()
factory method for an instance of ShippingInfoImportDraftBuilderof
(ShippingInfoImportDraft template) create builder for ShippingInfoImportDraft instanceplusDeliveries
(Delivery... deliveries) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.plusDeliveries
(Function<DeliveryBuilder, DeliveryBuilder> builder) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.price
(TypedMoney price) set the value to the priceprice
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the price using the builder functionsetDeliveries
(Function<DeliveryBuilder, Delivery> builder) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.shippingMethod
(ShippingMethodKeyReference shippingMethod) References a shipping method by key.shippingMethod
(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReferenceBuilder> builder) References a shipping method by key.shippingMethodName
(String shippingMethodName) set the value to the shippingMethodNameshippingMethodState
(ShippingMethodState shippingMethodState) set the value to the shippingMethodStateshippingRate
(ShippingRateDraft shippingRate) set the value to the shippingRateset the value to the shippingRate using the builder functiontaxCategory
(TaxCategoryKeyReference taxCategory) References a tax category by key.References a tax category by key.set the value to the taxRatetaxRate
(Function<TaxRateBuilder, TaxRateBuilder> builder) set the value to the taxRate using the builder functionwithDeliveries
(Function<DeliveryBuilder, DeliveryBuilder> builder) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.withDiscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) set the value to the discountedPrice using the builder functionReferences a shipping method by key.set the value to the shippingRate using the builder functionReferences a tax category by key.withTaxRate
(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- Parameters:
price
- value to be set- Returns:
- Builder
-
price
public ShippingInfoImportDraftBuilder price(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the price using the builder function- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
shippingRate
public ShippingInfoImportDraftBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) set the value to the shippingRate using the builder function- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public ShippingInfoImportDraftBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) set the value to the shippingRate using the builder function- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
set the value to the shippingRate- 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<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReferenceBuilder> builder) References a tax category by key.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ShippingInfoImportDraftBuilder withTaxCategory(Function<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReference> builder) References a tax category by key.
- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
References a tax category by key.
- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReferenceBuilder> builder) References a shipping method by key.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public ShippingInfoImportDraftBuilder withShippingMethod(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReference> builder) References a shipping method by key.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(@Nullable ShippingMethodKeyReference shippingMethod) References a shipping method by key.
- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
deliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
deliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
public ShippingInfoImportDraftBuilder plusDeliveries(Function<DeliveryBuilder, DeliveryBuilder> builder) Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
withDeliveries
public ShippingInfoImportDraftBuilder withDeliveries(Function<DeliveryBuilder, DeliveryBuilder> builder) Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
addDeliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
setDeliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- 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) set the value to the shippingMethodState- Parameters:
shippingMethodState
- value to be set- Returns:
- Builder
-
getShippingMethodName
value of shippingMethodName}- Returns:
- shippingMethodName
-
getPrice
value of price}- Returns:
- price
-
getShippingRate
value of shippingRate}- Returns:
- shippingRate
-
getTaxRate
value of taxRate}- Returns:
- taxRate
-
getTaxCategory
References a tax category by key.
- Returns:
- taxCategory
-
getShippingMethod
References a shipping method by key.
- Returns:
- shippingMethod
-
getDeliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Returns:
- deliveries
-
getDiscountedPrice
value of discountedPrice}- Returns:
- discountedPrice
-
getShippingMethodState
value of shippingMethodState}- 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
-