public class PricingScheme extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PricingScheme.Builder
Class to build instances of
PricingScheme. |
| Constructor and Description |
|---|
PricingScheme()
Default constructor.
|
PricingScheme(PricingModel pricingModel,
Money price,
Money reloadThresholdAmount)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getPrice()
Getter for Price.
|
PricingModel |
getPricingModel()
Getter for PricingModel.
|
Money |
getReloadThresholdAmount()
Getter for ReloadThresholdAmount.
|
void |
setPrice(Money price)
Setter for Price.
|
void |
setPricingModel(PricingModel pricingModel)
Setter for PricingModel.
|
void |
setReloadThresholdAmount(Money reloadThresholdAmount)
Setter for ReloadThresholdAmount.
|
PricingScheme.Builder |
toBuilder()
Builds a new
PricingScheme.Builder object. |
String |
toString()
Converts this PricingScheme into string format.
|
public PricingScheme()
public PricingScheme(PricingModel pricingModel, Money price, Money reloadThresholdAmount)
pricingModel - PricingModel value for pricingModel.price - Money value for price.reloadThresholdAmount - Money value for reloadThresholdAmount.public Money getPrice()
public void setPrice(Money price)
price - Value for Moneypublic PricingModel getPricingModel()
public void setPricingModel(PricingModel pricingModel)
pricingModel - Value for PricingModelpublic Money getReloadThresholdAmount()
public void setReloadThresholdAmount(Money reloadThresholdAmount)
reloadThresholdAmount - Value for Moneypublic String toString()
public PricingScheme.Builder toBuilder()
PricingScheme.Builder object.
Creates the instance with the state of the current model.PricingScheme.Builder objectCopyright © 2025. All rights reserved.