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 instancestatic ShippingInfoImportDraft
deepCopy
(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 DiscountedLineItemPriceDraft
Discounted Price of the Shipping Method.@NotNull @Valid Money
getPrice()
The base price for the Shipping Method.Include a value to associate a Shipping Method with the Order.@NotNull String
Name of the Shipping Method.Indicates if the ShippingMethod referenced is allowed for the Order or not.@NotNull @Valid ShippingRateDraft
Shipping rate information for the Order.Include a value to associate a Tax Category with the shipping information.@Valid TaxRate
Include a Tax Rate for the Shipping Method.static ShippingInfoImportDraft
of()
factory methodstatic ShippingInfoImportDraft
of
(ShippingInfoImportDraft template) factory method to create a shallow copy ShippingInfoImportDraftvoid
setDeliveries
(DeliveryDraft... deliveries) Information on how items are to be delivered to customers.void
setDeliveries
(List<DeliveryDraft> deliveries) Information on how items are to be delivered to customers.void
setDiscountedPrice
(DiscountedLineItemPriceDraft discountedPrice) Discounted Price of the Shipping Method.void
The base price for the Shipping Method.void
setShippingMethod
(ShippingMethodResourceIdentifier shippingMethod) Include a value to associate a Shipping Method with the Order.void
setShippingMethodName
(String shippingMethodName) Name of the Shipping Method.void
setShippingMethodState
(ShippingMethodState shippingMethodState) Indicates if the ShippingMethod referenced is allowed for the Order or not.void
setShippingRate
(ShippingRateDraft shippingRate) Shipping rate information for the Order.void
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) Include a value to associate a Tax Category with the shipping information.void
setTaxRate
(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> T
accessor 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
-
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
-