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 PriceDraftImportBuilderbuilder()builder factory method for PriceDraftImportstatic PriceDraftImportBuilderbuilder(PriceDraftImport template) create builder for PriceDraftImport instancecopyDeep()static PriceDraftImportdeepCopy(PriceDraftImport template) factory method to create a deep copy of PriceDraftImport@Valid ChannelKeyReferenceSet this field if this Price is only valid for the referencedProductDistributionChannel.Set this field if this Price is only valid for the specified country.@Valid CustomCustom Fields for the Embedded Price.@Valid CustomerGroupKeyReferenceSet this field if this Price is only valid for the referenced CustomerGroup.@Valid DiscountedPriceSet this field to add a DiscountedPrice from an external service.@NotNull StringgetKey()User-defined unique identifier for the Embedded Price.getTiers()The tiered prices for this price.Set this field if this Price is only valid from the specified date and time.Set this field if this Price is only valid until the specified date and time.@NotNull @Valid TypedMoneygetValue()Money value of this Price.static PriceDraftImportof()factory methodstatic PriceDraftImportof(PriceDraftImport template) factory method to create a shallow copy PriceDraftImportvoidsetChannel(ChannelKeyReference channel) Set this field if this Price is only valid for the referencedProductDistributionChannel.voidsetCountry(String country) Set this field if this Price is only valid for the specified country.voidCustom Fields for the Embedded Price.voidsetCustomerGroup(CustomerGroupKeyReference customerGroup) Set this field if this Price is only valid for the referenced CustomerGroup.voidsetDiscounted(DiscountedPrice discounted) Set this field to add a DiscountedPrice from an external service.voidUser-defined unique identifier for the Embedded Price.voidThe tiered prices for this price.voidThe tiered prices for this price.voidsetValidFrom(ZonedDateTime validFrom) Set this field if this Price is only valid from the specified date and time.voidsetValidUntil(ZonedDateTime validUntil) Set this field if this Price is only valid until the specified date and time.voidsetValue(TypedMoney value) Money value of this Price.static com.fasterxml.jackson.core.type.TypeReference<PriceDraftImport>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPriceDraftImport(Function<PriceDraftImport, T> helper) accessor map function
-
Method Details
-
getValue
Money value of this Price.
- Returns:
- value
-
getCountry
String getCountry()Set this field if this Price is only valid for the specified country.
- Returns:
- country
-
getCustomerGroup
Set this field if this Price is only valid for the referenced CustomerGroup. If the referenced CustomerGroup does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced CustomerGroup is created.- Returns:
- customerGroup
-
getChannel
Set this field if this Price is only valid for the referenced
ProductDistributionChannel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Returns:
- channel
-
getValidFrom
ZonedDateTime getValidFrom()Set this field if this Price is only valid from the specified date and time. Must be at least 1 ms earlier than
validUntil.- Returns:
- validFrom
-
getValidUntil
ZonedDateTime getValidUntil()Set this field if this Price is only valid until the specified date and time. Must be at least 1 ms later than
validFrom.- Returns:
- validUntil
-
getCustom
Custom Fields for the Embedded Price.
- Returns:
- custom
-
getDiscounted
Set this field to add a DiscountedPrice 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
Money value of this Price.
- Parameters:
value- value to be set
-
setCountry
Set this field if this Price is only valid for the specified country.
- Parameters:
country- value to be set
-
setCustomerGroup
Set this field if this Price is only valid for the referenced CustomerGroup. If the referenced CustomerGroup does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced CustomerGroup is created.- Parameters:
customerGroup- value to be set
-
setChannel
Set this field if this Price is only valid for the referenced
ProductDistributionChannel. If the referenced Channel does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Channel is created.- Parameters:
channel- value to be set
-
setValidFrom
Set this field if this Price is only valid from the specified date and time. Must be at least 1 ms earlier than
validUntil.- Parameters:
validFrom- value to be set
-
setValidUntil
Set this field if this Price is only valid until the specified date and time. Must be at least 1 ms later than
validFrom.- Parameters:
validUntil- value to be set
-
setCustom
Custom Fields for the Embedded Price.
- Parameters:
custom- value to be set
-
setDiscounted
Set this field to add a DiscountedPrice 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
-
copyDeep
PriceDraftImport copyDeep() -
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
-