Interface PriceDraftImport
public interface PriceDraftImport
The representation of a Price Draft for the import purpose.
Example to create an instance using the builder pattern
PriceDraftImport priceDraftImport = PriceDraftImport.builder()
.value(valueBuilder -> valueBuilder)
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PriceDraftImportBuilder
builder()
builder factory method for PriceDraftImportstatic PriceDraftImportBuilder
builder
(PriceDraftImport template) create builder for PriceDraftImport instancestatic PriceDraftImport
deepCopy
(PriceDraftImport template) factory method to create a deep copy of PriceDraftImport@Valid ChannelKeyReference
References a channel by key.A two-digit country code as per ISO 3166-1 alpha-2.@Valid Custom
The custom fields for this category.@Valid CustomerGroupKeyReference
References a customer group by key.@Valid DiscountedPrice
Sets a discounted price from an external service.@NotNull String
getKey()
User-defined unique identifier for the Embedded Price.getTiers()
The tiered prices for this price.@NotNull @Valid TypedMoney
getValue()
static PriceDraftImport
of()
factory methodstatic PriceDraftImport
of
(PriceDraftImport template) factory method to create a shallow copy PriceDraftImportvoid
setChannel
(ChannelKeyReference channel) References a channel by key.void
setCountry
(String country) A two-digit country code as per ISO 3166-1 alpha-2.void
The custom fields for this category.void
setCustomerGroup
(CustomerGroupKeyReference customerGroup) References a customer group by key.void
setDiscounted
(DiscountedPrice discounted) Sets a discounted price from an external service.void
User-defined unique identifier for the Embedded Price.void
The tiered prices for this price.void
The tiered prices for this price.void
setValidFrom
(ZonedDateTime validFrom) set validFromvoid
setValidUntil
(ZonedDateTime validUntil) set validUntilvoid
setValue
(TypedMoney value) set valuestatic com.fasterxml.jackson.core.type.TypeReference<PriceDraftImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPriceDraftImport
(Function<PriceDraftImport, T> helper) accessor map function
-
Method Details
-
getValue
- Returns:
- value
-
getCountry
String getCountry()A two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- country
-
getCustomerGroup
References a customer group by key.
- Returns:
- customerGroup
-
getChannel
References a channel by key.
- Returns:
- channel
-
getValidFrom
ZonedDateTime getValidFrom()- Returns:
- validFrom
-
getValidUntil
ZonedDateTime getValidUntil()- Returns:
- validUntil
-
getCustom
The custom fields for this category.
- Returns:
- custom
-
getDiscounted
Sets a discounted price from an external service.
- Returns:
- discounted
-
getTiers
The tiered prices for this price.
- Returns:
- tiers
-
getKey
User-defined unique identifier for the Embedded Price.
- Returns:
- key
-
setValue
set value- Parameters:
value
- value to be set
-
setCountry
A two-digit country code as per ISO 3166-1 alpha-2.
- Parameters:
country
- value to be set
-
setCustomerGroup
References a customer group by key.
- Parameters:
customerGroup
- value to be set
-
setChannel
References a channel by key.
- Parameters:
channel
- value to be set
-
setValidFrom
set validFrom- Parameters:
validFrom
- value to be set
-
setValidUntil
set validUntil- Parameters:
validUntil
- value to be set
-
setCustom
The custom fields for this category.
- Parameters:
custom
- value to be set
-
setDiscounted
Sets a discounted price from an external service.
- Parameters:
discounted
- value to be set
-
setTiers
The tiered prices for this price.
- Parameters:
tiers
- values to be set
-
setTiers
The tiered prices for this price.
- Parameters:
tiers
- values to be set
-
setKey
User-defined unique identifier for the Embedded Price.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of PriceDraftImport
-
of
factory method to create a shallow copy PriceDraftImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PriceDraftImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PriceDraftImport- Returns:
- builder
-
builder
create builder for PriceDraftImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPriceDraftImport
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
-