public class RecurringCharge extends Object implements Serializable
Describes a recurring charge.
Constructor and Description |
---|
RecurringCharge() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Double |
getAmount()
The amount of the recurring charge.
|
String |
getFrequency()
The frequency of the recurring charge.
|
int |
hashCode() |
void |
setAmount(Double amount)
The amount of the recurring charge.
|
void |
setFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
|
void |
setFrequency(String frequency)
The frequency of the recurring charge.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RecurringCharge |
withAmount(Double amount)
The amount of the recurring charge.
|
RecurringCharge |
withFrequency(RecurringChargeFrequency frequency)
The frequency of the recurring charge.
|
RecurringCharge |
withFrequency(String frequency)
The frequency of the recurring charge.
|
public String getFrequency()
Constraints:
Allowed Values: Hourly
RecurringChargeFrequency
public void setFrequency(String frequency)
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public RecurringCharge withFrequency(String frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public void setFrequency(RecurringChargeFrequency frequency)
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public RecurringCharge withFrequency(RecurringChargeFrequency frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Hourly
frequency
- The frequency of the recurring charge.RecurringChargeFrequency
public Double getAmount()
public void setAmount(Double amount)
amount
- The amount of the recurring charge.public RecurringCharge withAmount(Double amount)
Returns a reference to this object so that method calls can be chained together.
amount
- The amount of the recurring charge.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.