@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.carts.ExternalTaxAmountDraft") public final class ExternalTaxAmountDraftDsl extends Base implements ExternalTaxAmountDraft
ExternalTaxAmountDraft
.Modifier and Type | Method and Description |
---|---|
ExternalTaxRateDraft |
getTaxRate() |
javax.money.MonetaryAmount |
getTotalGross() |
ExternalTaxAmountDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ExternalTaxAmountDraftDsl |
of(ExternalTaxAmountDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ExternalTaxAmountDraftDsl |
of(javax.money.MonetaryAmount totalGross,
ExternalTaxRateDraft taxRate)
Creates a new object initialized with the given values.
|
ExternalTaxAmountDraftDsl |
withTaxRate(ExternalTaxRateDraft taxRate) |
ExternalTaxAmountDraftDsl |
withTotalGross(javax.money.MonetaryAmount totalGross) |
public ExternalTaxRateDraft getTaxRate()
getTaxRate
in interface ExternalTaxAmountDraft
public javax.money.MonetaryAmount getTotalGross()
getTotalGross
in interface ExternalTaxAmountDraft
public ExternalTaxAmountDraftBuilder newBuilder()
public ExternalTaxAmountDraftDsl withTaxRate(ExternalTaxRateDraft taxRate)
public ExternalTaxAmountDraftDsl withTotalGross(javax.money.MonetaryAmount totalGross)
public static ExternalTaxAmountDraftDsl of(javax.money.MonetaryAmount totalGross, ExternalTaxRateDraft taxRate)
totalGross
- initial value for the ExternalTaxAmountDraft.getTotalGross()
propertytaxRate
- initial value for the ExternalTaxAmountDraft.getTaxRate()
propertypublic static ExternalTaxAmountDraftDsl of(ExternalTaxAmountDraft template)
template
- the template