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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDeliveries
(Function<DeliveryBuilder, Delivery> builder) Maps toshippingInfo.deliveries
.build()
builds ShippingInfoImportDraft with checking for non-null required valuesbuilds ShippingInfoImportDraft without checking for non-null required valuesdeliveries
(Delivery... deliveries) Maps toshippingInfo.deliveries
.deliveries
(List<Delivery> deliveries) Maps toshippingInfo.deliveries
.discountedPrice
(DiscountedLineItemPriceDraft discountedPrice) Maps toshippingInfo.discountedPrice
.discountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) Maps toshippingInfo.discountedPrice
.Maps toshippingInfo.deliveries
.Maps toshippingInfo.discountedPrice
.getPrice()
Maps toshippingInfo.price
.Maps toshippingInfo.shippingMethod
.Maps toshippingInfo.shippingMethodName
.Maps toshippingInfo.shippingMethodState
.Used to determine the price.Maps toshippingInfo.taxCategory
.Maps toshippingInfo.taxRate
.of()
factory method for an instance of ShippingInfoImportDraftBuilderof
(ShippingInfoImportDraft template) create builder for ShippingInfoImportDraft instanceplusDeliveries
(Delivery... deliveries) Maps toshippingInfo.deliveries
.plusDeliveries
(Function<DeliveryBuilder, DeliveryBuilder> builder) Maps toshippingInfo.deliveries
.price
(TypedMoney price) Maps toshippingInfo.price
.price
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) Maps toshippingInfo.price
.setDeliveries
(Function<DeliveryBuilder, Delivery> builder) Maps toshippingInfo.deliveries
.shippingMethod
(ShippingMethodKeyReference shippingMethod) Maps toshippingInfo.shippingMethod
.shippingMethod
(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReferenceBuilder> builder) Maps toshippingInfo.shippingMethod
.shippingMethodName
(String shippingMethodName) Maps toshippingInfo.shippingMethodName
.shippingMethodState
(ShippingMethodState shippingMethodState) Maps toshippingInfo.shippingMethodState
.shippingRate
(ShippingRateDraft shippingRate) Used to determine the price.Used to determine the price.taxCategory
(TaxCategoryKeyReference taxCategory) Maps toshippingInfo.taxCategory
.Maps toshippingInfo.taxCategory
.Maps toshippingInfo.taxRate
.taxRate
(Function<TaxRateBuilder, TaxRateBuilder> builder) Maps toshippingInfo.taxRate
.withDeliveries
(Function<DeliveryBuilder, DeliveryBuilder> builder) Maps toshippingInfo.deliveries
.withDiscountedPrice
(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) Maps toshippingInfo.discountedPrice
.Maps toshippingInfo.shippingMethod
.Used to determine the price.Maps toshippingInfo.taxCategory
.withTaxRate
(Function<TaxRateBuilder, TaxRate> builder) Maps toshippingInfo.taxRate
.
-
Constructor Details
-
ShippingInfoImportDraftBuilder
public ShippingInfoImportDraftBuilder()
-
-
Method Details
-
shippingMethodName
Maps to
shippingInfo.shippingMethodName
.- Parameters:
shippingMethodName
- value to be set- Returns:
- Builder
-
price
Maps to
shippingInfo.price
.- Parameters:
price
- value to be set- Returns:
- Builder
-
price
public ShippingInfoImportDraftBuilder price(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) Maps to
shippingInfo.price
.- Parameters:
builder
- function to build the price value- Returns:
- Builder
-
shippingRate
public ShippingInfoImportDraftBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) Used to determine the price.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public ShippingInfoImportDraftBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) Used to determine the price.
- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
Used to determine the price.
- Parameters:
shippingRate
- value to be set- Returns:
- Builder
-
taxRate
Maps to
shippingInfo.taxRate
.- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
Maps to
shippingInfo.taxRate
.- Parameters:
builder
- function to build the taxRate value- Returns:
- Builder
-
taxRate
Maps to
shippingInfo.taxRate
.- Parameters:
taxRate
- value to be set- Returns:
- Builder
-
taxCategory
public ShippingInfoImportDraftBuilder taxCategory(Function<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReferenceBuilder> builder) Maps to
shippingInfo.taxCategory
. If the referenced TaxCategory does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced TaxCategory is created.- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
withTaxCategory
public ShippingInfoImportDraftBuilder withTaxCategory(Function<TaxCategoryKeyReferenceBuilder, TaxCategoryKeyReference> builder) Maps to
shippingInfo.taxCategory
. If the referenced TaxCategory does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced TaxCategory is created.- Parameters:
builder
- function to build the taxCategory value- Returns:
- Builder
-
taxCategory
Maps to
shippingInfo.taxCategory
. If the referenced TaxCategory does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced TaxCategory is created.- Parameters:
taxCategory
- value to be set- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReferenceBuilder> builder) Maps to
shippingInfo.shippingMethod
. If the referenced ShippingMethod does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced ShippingMethod is created.- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public ShippingInfoImportDraftBuilder withShippingMethod(Function<ShippingMethodKeyReferenceBuilder, ShippingMethodKeyReference> builder) Maps to
shippingInfo.shippingMethod
. If the referenced ShippingMethod does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced ShippingMethod is created.- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public ShippingInfoImportDraftBuilder shippingMethod(@Nullable ShippingMethodKeyReference shippingMethod) Maps to
shippingInfo.shippingMethod
. If the referenced ShippingMethod does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced ShippingMethod is created.- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
deliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
deliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
deliveries
- value to be set- Returns:
- Builder
-
plusDeliveries
public ShippingInfoImportDraftBuilder plusDeliveries(Function<DeliveryBuilder, DeliveryBuilder> builder) Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
withDeliveries
public ShippingInfoImportDraftBuilder withDeliveries(Function<DeliveryBuilder, DeliveryBuilder> builder) Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
addDeliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
setDeliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Parameters:
builder
- function to build the deliveries value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraftBuilder> builder) Maps to
shippingInfo.discountedPrice
.- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
withDiscountedPrice
public ShippingInfoImportDraftBuilder withDiscountedPrice(Function<DiscountedLineItemPriceDraftBuilder, DiscountedLineItemPriceDraft> builder) Maps to
shippingInfo.discountedPrice
.- Parameters:
builder
- function to build the discountedPrice value- Returns:
- Builder
-
discountedPrice
public ShippingInfoImportDraftBuilder discountedPrice(@Nullable DiscountedLineItemPriceDraft discountedPrice) Maps to
shippingInfo.discountedPrice
.- Parameters:
discountedPrice
- value to be set- Returns:
- Builder
-
shippingMethodState
public ShippingInfoImportDraftBuilder shippingMethodState(@Nullable ShippingMethodState shippingMethodState) Maps to
shippingInfo.shippingMethodState
.- Parameters:
shippingMethodState
- value to be set- Returns:
- Builder
-
getShippingMethodName
Maps to
shippingInfo.shippingMethodName
.- Returns:
- shippingMethodName
-
getPrice
Maps to
shippingInfo.price
.- Returns:
- price
-
getShippingRate
Used to determine the price.
- Returns:
- shippingRate
-
getTaxRate
Maps to
shippingInfo.taxRate
.- Returns:
- taxRate
-
getTaxCategory
Maps to
shippingInfo.taxCategory
. If the referenced TaxCategory does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced TaxCategory is created.- Returns:
- taxCategory
-
getShippingMethod
Maps to
shippingInfo.shippingMethod
. If the referenced ShippingMethod does not exist, thestate
of the ImportOperation will be set tounresolved
until the referenced ShippingMethod is created.- Returns:
- shippingMethod
-
getDeliveries
Maps to
shippingInfo.deliveries
. You cannot add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referenceable by anid
.- Returns:
- deliveries
-
getDiscountedPrice
Maps to
shippingInfo.discountedPrice
.- Returns:
- discountedPrice
-
getShippingMethodState
Maps to
shippingInfo.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
-