public final class PriceDraftBuilder extends Base implements Builder<PriceDraftDsl>
public PriceDraftBuilder countryCode(@Nullable String countryCode)
public PriceDraftBuilder country(@Nullable com.neovisionaries.i18n.CountryCode country)
public PriceDraftBuilder customerGroupId(@Nullable String customerGroupId)
public PriceDraftBuilder customerGroup(@Nullable Referenceable<CustomerGroup> customerGroup)
public PriceDraftBuilder customerGroup(@Nullable ResourceIdentifier<CustomerGroup> customerGroup)
public PriceDraftBuilder channel(@Nullable Referenceable<Channel> channel)
public PriceDraftBuilder channel(@Nullable ResourceIdentifier<Channel> channel)
public PriceDraftBuilder validFrom(@Nullable ZonedDateTime validFrom)
public PriceDraftBuilder validUntil(@Nullable ZonedDateTime validUntil)
public PriceDraftBuilder custom(@Nullable CustomFieldsDraft custom)
public PriceDraftBuilder value(javax.money.MonetaryAmount value)
public PriceDraftBuilder tiers(@Nullable List<PriceTier> tiers)
public PriceDraftBuilder plusTiers(PriceTier tierToAdd)
public PriceDraftBuilder plusTiers(List<PriceTier> tierToAdd)
public PriceDraftBuilder discounted(@Nullable DiscountedPrice discounted)
@Nullable public ResourceIdentifier<Channel> getChannel()
@Nullable public com.neovisionaries.i18n.CountryCode getCountry()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public ResourceIdentifier<CustomerGroup> getCustomerGroup()
@Nullable public ZonedDateTime getValidFrom()
@Nullable public ZonedDateTime getValidUntil()
public javax.money.MonetaryAmount getValue()
@Nullable public DiscountedPrice getDiscounted()
public PriceDraftDsl build()
Builder
build
in interface Builder<PriceDraftDsl>
public static PriceDraftBuilder of(javax.money.MonetaryAmount value)
public static PriceDraftBuilder of(PriceDraft template)
public static PriceDraftBuilder of(Price template)