Package model
Class SubscriptionAmountFeeAmountData
- java.lang.Object
-
- model.SubscriptionAmountFeeAmountData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SubscriptionAmountFeeAmountData extends Object
The amount and currency of this `Subsciption Amount`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionAmountFeeAmountData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_LABEL
-
Constructor Summary
Constructors Constructor Description SubscriptionAmountFeeAmountData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionAmountFeeAmountDataamount(Long amount)SubscriptionAmountFeeAmountDatacurrency(Currency currency)booleanequals(Object o)static SubscriptionAmountFeeAmountDatafromJson(String jsonString)Create an instance of SubscriptionAmountFeeAmountData given an JSON stringLonggetAmount()A positive integer in cents representing how much to charge on a recurring basisCurrencygetCurrency()Get currencyStringgetLabel()The display name of the `Subscription Amount` that can be used for filtering purposes.inthashCode()SubscriptionAmountFeeAmountDatalabel(String label)voidsetAmount(Long amount)voidsetCurrency(Currency currency)voidsetLabel(String label)StringtoJson()Convert an instance of SubscriptionAmountFeeAmountData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public SubscriptionAmountFeeAmountData amount(Long amount)
-
getAmount
@Nullable public Long getAmount()
A positive integer in cents representing how much to charge on a recurring basis- Returns:
- amount
-
setAmount
public void setAmount(Long amount)
-
currency
public SubscriptionAmountFeeAmountData currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
label
public SubscriptionAmountFeeAmountData label(String label)
-
getLabel
@Nullable public String getLabel()
The display name of the `Subscription Amount` that can be used for filtering purposes.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SubscriptionAmountFeeAmountData
-
fromJson
public static SubscriptionAmountFeeAmountData fromJson(String jsonString) throws IOException
Create an instance of SubscriptionAmountFeeAmountData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionAmountFeeAmountData
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionAmountFeeAmountData
-
toJson
public String toJson()
Convert an instance of SubscriptionAmountFeeAmountData to an JSON string- Returns:
- JSON string
-
-