public class OneTimeCharge extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OneTimeCharge.Builder
Class to build instances of
OneTimeCharge. |
| Constructor and Description |
|---|
OneTimeCharge()
Default constructor.
|
OneTimeCharge(Money totalAmount,
Money setupFee,
Money shippingAmount,
Money taxes,
Money productPrice,
Money subtotal)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getProductPrice()
Getter for ProductPrice.
|
Money |
getSetupFee()
Getter for SetupFee.
|
Money |
getShippingAmount()
Getter for ShippingAmount.
|
Money |
getSubtotal()
Getter for Subtotal.
|
Money |
getTaxes()
Getter for Taxes.
|
Money |
getTotalAmount()
Getter for TotalAmount.
|
void |
setProductPrice(Money productPrice)
Setter for ProductPrice.
|
void |
setSetupFee(Money setupFee)
Setter for SetupFee.
|
void |
setShippingAmount(Money shippingAmount)
Setter for ShippingAmount.
|
void |
setSubtotal(Money subtotal)
Setter for Subtotal.
|
void |
setTaxes(Money taxes)
Setter for Taxes.
|
void |
setTotalAmount(Money totalAmount)
Setter for TotalAmount.
|
OneTimeCharge.Builder |
toBuilder()
Builds a new
OneTimeCharge.Builder object. |
String |
toString()
Converts this OneTimeCharge into string format.
|
public OneTimeCharge()
public OneTimeCharge(Money totalAmount, Money setupFee, Money shippingAmount, Money taxes, Money productPrice, Money subtotal)
totalAmount - Money value for totalAmount.setupFee - Money value for setupFee.shippingAmount - Money value for shippingAmount.taxes - Money value for taxes.productPrice - Money value for productPrice.subtotal - Money value for subtotal.public Money getSetupFee()
public void setSetupFee(Money setupFee)
setupFee - Value for Moneypublic Money getShippingAmount()
public void setShippingAmount(Money shippingAmount)
shippingAmount - Value for Moneypublic Money getTaxes()
public void setTaxes(Money taxes)
taxes - Value for Moneypublic Money getProductPrice()
public void setProductPrice(Money productPrice)
productPrice - Value for Moneypublic Money getSubtotal()
public void setSubtotal(Money subtotal)
subtotal - Value for Moneypublic Money getTotalAmount()
public void setTotalAmount(Money totalAmount)
totalAmount - Value for Moneypublic String toString()
public OneTimeCharge.Builder toBuilder()
OneTimeCharge.Builder object.
Creates the instance with the state of the current model.OneTimeCharge.Builder objectCopyright © 2025. All rights reserved.