Interface ShippingInfoImportDraft
- All Superinterfaces:
Draft<ShippingInfoImportDraft>
Becomes the shippingInfo of the imported Order.
Example to create an instance using the builder pattern
ShippingInfoImportDraft shippingInfoImportDraft = ShippingInfoImportDraft.builder()
.shippingMethodName("{shippingMethodName}")
.price(priceBuilder -> priceBuilder)
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingInfoImportDraftbuilder(ShippingInfoImportDraft template) create builder for ShippingInfoImportDraft instancecopyDeep()static ShippingInfoImportDraftdeepCopy(ShippingInfoImportDraft template) factory method to create a deep copy of ShippingInfoImportDraft@Valid List<DeliveryDraft>Information on how items are to be delivered to customers.@Valid DiscountedLineItemPriceDraftDiscounted Price of the Shipping Method.@NotNull @Valid MoneygetPrice()The base price for the Shipping Method.Include a value to associate a Shipping Method with the Order.@NotNull StringName of the Shipping Method.Indicates if the ShippingMethod referenced is allowed for the Order or not.@NotNull @Valid ShippingRateDraftShipping rate information for the Order.Include a value to associate a Tax Category with the shipping information.@Valid TaxRateInclude a Tax Rate for the Shipping Method.static ShippingInfoImportDraftof()factory methodstatic ShippingInfoImportDraftof(ShippingInfoImportDraft template) factory method to create a shallow copy ShippingInfoImportDraftvoidsetDeliveries(DeliveryDraft... deliveries) Information on how items are to be delivered to customers.voidsetDeliveries(List<DeliveryDraft> deliveries) Information on how items are to be delivered to customers.voidsetDiscountedPrice(DiscountedLineItemPriceDraft discountedPrice) Discounted Price of the Shipping Method.voidThe base price for the Shipping Method.voidsetShippingMethod(ShippingMethodResourceIdentifier shippingMethod) Include a value to associate a Shipping Method with the Order.voidsetShippingMethodName(String shippingMethodName) Name of the Shipping Method.voidsetShippingMethodState(ShippingMethodState shippingMethodState) Indicates if the ShippingMethod referenced is allowed for the Order or not.voidsetShippingRate(ShippingRateDraft shippingRate) Shipping rate information for the Order.voidsetTaxCategory(TaxCategoryResourceIdentifier taxCategory) Include a value to associate a Tax Category with the shipping information.voidsetTaxRate(TaxRate taxRate) Include a Tax Rate for the Shipping Method.static com.fasterxml.jackson.core.type.TypeReference<ShippingInfoImportDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
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
ShippingMethodState getShippingMethodState()Indicates if the ShippingMethod referenced is allowed for the Order or not.
- Returns:
- shippingMethodState
-
setShippingMethodName
Name of the Shipping Method.
- Parameters:
shippingMethodName- value to be set
-
setPrice
The base price for the Shipping Method.
- Parameters:
price- value to be set
-
setShippingRate
Shipping rate information for the Order.
- Parameters:
shippingRate- value to be set
-
setTaxRate
Include a Tax Rate for the Shipping Method.
- Parameters:
taxRate- value to be set
-
setTaxCategory
Include a value to associate a Tax Category with the shipping information.
- Parameters:
taxCategory- value to be set
-
setShippingMethod
Include a value to associate a Shipping Method with the Order.
- Parameters:
shippingMethod- value to be set
-
setDeliveries
Information on how items are to be delivered to customers.
- Parameters:
deliveries- values to be set
-
setDeliveries
Information on how items are to be delivered to customers.
- Parameters:
deliveries- values to be set
-
setDiscountedPrice
Discounted Price of the Shipping Method.
- Parameters:
discountedPrice- value to be set
-
setShippingMethodState
Indicates if the ShippingMethod referenced is allowed for the Order or not.
- Parameters:
shippingMethodState- value to be set
-
of
factory method- Returns:
- instance of ShippingInfoImportDraft
-
of
factory method to create a shallow copy ShippingInfoImportDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingInfoImportDraft copyDeep() -
deepCopy
factory method to create a deep copy of ShippingInfoImportDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingInfoImportDraft- Returns:
- builder
-
builder
create builder for ShippingInfoImportDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingInfoImportDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-