@JsonIgnore static Price of(final MonetaryAmount money) { return PriceBuilder.of(money).build(); }
@JsonIgnore public static Price of(final MonetaryAmount money) { return PriceBuilder.of(money).build(); }
@JsonIgnore public static Price of(final MonetaryAmount money) { return PriceBuilder.of(money).build(); }
public Price withChannel(@Nullable final Referenceable<Channel> channel) { final Reference<Channel> channelReference = Optional.ofNullable(channel).map(Referenceable::toReference).orElse(null); return PriceBuilder.of(this).channel(channelReference).build(); }
default Price withChannel(@Nullable final Referenceable<Channel> channel) { final Reference<Channel> channelReference = Optional.ofNullable(channel).map(Referenceable::toReference).orElse(null); return PriceBuilder.of(this).channel(channelReference).build(); }
default Price withChannel(@Nullable final Referenceable<Channel> channel) { final Reference<Channel> channelReference = Optional.ofNullable(channel).map(Referenceable::toReference).orElse(null); return PriceBuilder.of(this).channel(channelReference).build(); }
public Price withId(@Nullable final String id) { return PriceBuilder.of(this).id(id).build(); }
default Price withId(@Nullable final String id) { return PriceBuilder.of(this).id(id).build(); }
public Price withCustomerGroup(@Nullable final Referenceable<CustomerGroup> customerGroup) { return PriceBuilder.of(this).customerGroup(Optional.ofNullable(customerGroup).map(c -> c.toReference()).orElse(null)).build(); }
public Price withCountry(@Nullable final CountryCode country) { return PriceBuilder.of(this).country(country).build(); }
default Price withValue(final MonetaryAmount value) { return PriceBuilder.of(this).value(value).build(); }
default Price withValidFrom(final ZonedDateTime validFrom) { return PriceBuilder.of(this).validFrom(validFrom).build(); }
public Price withValidUntil(final ZonedDateTime validUntil) { return PriceBuilder.of(this).validUntil(validUntil).build(); }
public Price withCustomerGroup(final Optional<Reference<CustomerGroup>> customerGroup) { return PriceBuilder.of(this).customerGroup(customerGroup).build(); }
default Price withValue(final MonetaryAmount value) { return PriceBuilder.of(this).value(value).build(); }
default Price withValidUntil(final ZonedDateTime validUntil) { return PriceBuilder.of(this).validUntil(validUntil).build(); }
public Price withValue(final MonetaryAmount value) { return PriceBuilder.of(this).value(value).build(); }
public static PriceBuilder of(final Price template) { return of(template.getValue()) .country(template.getCountry()) .customerGroup(template.getCustomerGroup()) .channel(template.getChannel()) .discounted(template.getDiscounted()); }
public static PriceBuilder of(final Price template) { return of(template.getValue()) .country(template.getCountry()) .customerGroup(template.getCustomerGroup()) .channel(template.getChannel()) .discounted(template.getDiscounted()); }
public static PriceBuilder of(final Price template) { return of(template.getValue()) .country(template.getCountry()) .customerGroup(template.getCustomerGroup()) .channel(template.getChannel()) .discounted(template.getDiscounted()) .validFrom(template.getValidFrom()) .validUntil(template.getValidUntil()) .id(template.getId()); }