public static TaxRateBuilder of(final TaxRate taxRate) { return of(taxRate.getName(), taxRate.getAmount(), taxRate.isIncludedInPrice(), taxRate.getCountry()) .id(taxRate.getId()) .state(taxRate.getState()); }
public static TaxRateDraftBuilder of(final TaxRate taxRate) { return of(taxRate.getName(), taxRate.getAmount(), taxRate.isIncludedInPrice(), taxRate.getCountry()) .state(taxRate.getState()) .subRates(taxRate.getSubRates()); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static TaxCategoryDraftBuilder of(final TaxCategoryDraft template) { return new TaxCategoryDraftBuilder(template.getDescription(), template.getKey(), template.getName(), template.getTaxRates()); } }
public static TaxCategoryBuilder of(final TaxCategoryDraft taxCategoryDraft) { return of(taxCategoryDraft.getName(), taxCategoryDraft.getTaxRates()).description(taxCategoryDraft.getDescription()); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static TaxCategoryDraftDsl of(final TaxCategoryDraft template) { return new TaxCategoryDraftDsl(template.getDescription(), template.getKey(), template.getName(), template.getTaxRates()); } }
public static TaxRateDraftBuilder of(final TaxRateDraft taxRate) { return of(taxRate.getName(), taxRate.getAmount(), taxRate.isIncludedInPrice(), taxRate.getCountry()) .state(taxRate.getState()) .subRates(taxRate.getSubRates()); }
public static TaxCategoryBuilder of(final NewTaxCategory newTaxCategory) { return of(newTaxCategory.getName(), newTaxCategory.getTaxRates()).description(newTaxCategory.getDescription()); }
@Override public TaxRate build() { return new TaxRateImpl(id, name, amount, includedInPrice, country, state); } }
public TaxCategoryDraftDsl withRates(final List<TaxRateDraft> taxRates) { return newBuilder().taxRates(taxRates).build(); }
public TaxCategoryDraftDsl withName(final String name) { return newBuilder().name(name).build(); }
@Override public TaxCategory build() { return new TaxCategoryImpl(id, version, createdAt, lastModifiedAt, name, description, taxRates); } }
/** * Creates a new builder with the values of this object. * * @return new builder */ public TaxCategoryDraftBuilder newBuilder() { return new TaxCategoryDraftBuilder(description, key, name, taxRates); }
/** * Gets the tax rates. Alias for {@link #getRates()}. * * @return rates */ @IgnoreInQueryModel default List<TaxRate> getTaxRates() { return getRates(); }
public static TaxRateDraftBuilder of(final TaxRate taxRate) { return of(taxRate.getName(), taxRate.getAmount(), taxRate.isIncludedInPrice(), taxRate.getCountry()) .state(taxRate.getState()) .subRates(taxRate.getSubRates()); }
public static TaxCategoryBuilder of(final TaxCategoryDraft taxCategoryDraft) { return of(taxCategoryDraft.getName(), taxCategoryDraft.getTaxRates()).description(taxCategoryDraft.getDescription()); }
public static TaxRateDraftBuilder of(final TaxRateDraft taxRate) { return of(taxRate.getName(), taxRate.getAmount(), taxRate.isIncludedInPrice(), taxRate.getCountry()) .state(taxRate.getState()) .subRates(taxRate.getSubRates()); }
@Override public TaxRate build() { return new TaxRateImpl(id, name, amount, includedInPrice, country, state); } }
@Override public TaxCategory build() { return new TaxCategoryImpl(id, version, createdAt, lastModifiedAt, name, description, taxRates); } }
@Override public TaxRate build() { return new TaxRateImpl(id, name, amount, includedInPrice, country, state); } }
@Override public TaxRate build() { return new TaxRateImpl(id, name, amount, includedInPrice, country, state); } }