public final class PriceDraftDsl extends Base implements PriceDraft
PriceDraftBuilder
.public javax.money.MonetaryAmount getValue()
getValue
in interface PriceDraft
@Nullable public com.neovisionaries.i18n.CountryCode getCountry()
getCountry
in interface PriceDraft
@Nullable public ResourceIdentifier<CustomerGroup> getCustomerGroup()
getCustomerGroup
in interface PriceDraft
@Nullable public ResourceIdentifier<Channel> getChannel()
getChannel
in interface PriceDraft
@Nullable public ZonedDateTime getValidFrom()
getValidFrom
in interface PriceDraft
@Nullable public ZonedDateTime getValidUntil()
getValidUntil
in interface PriceDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface PriceDraft
getCustom
in interface CustomDraft
@Nullable public List<PriceTier> getTiers()
getTiers
in interface PriceDraft
@Nullable public DiscountedPrice getDiscounted()
getDiscounted
in interface PriceDraft
public PriceDraftDsl withCustomerGroup(@Nullable Referenceable<CustomerGroup> customerGroup)
public PriceDraftDsl withCustomerGroupId(@Nullable String customerGroupId)
public PriceDraftDsl withCountryCode(@Nullable String countryCode)
public PriceDraftDsl withCountry(@Nullable com.neovisionaries.i18n.CountryCode country)
public PriceDraftDsl withChannel(@Nullable Referenceable<Channel> channel)
public PriceDraftDsl withValue(javax.money.MonetaryAmount value)
public PriceDraftDsl withValidFrom(ZonedDateTime validFrom)
public PriceDraftDsl withValidUntil(ZonedDateTime validUntil)
public PriceDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public PriceDraftDsl withDiscounted(@Nullable DiscountedPrice discounted)
public PriceDraftDsl withTiers(@Nullable List<PriceTier> tiers)
public static PriceDraftDsl of(javax.money.MonetaryAmount money)
of
in interface PriceDraft
public static PriceDraftDsl of(BigDecimal amount, javax.money.CurrencyUnit currencyUnit)
of
in interface PriceDraft
public static PriceDraftDsl of(Price template)
of
in interface PriceDraft