Package model
Class CreateSubscriptionAmountRequestFeeAmountData
- java.lang.Object
-
- model.CreateSubscriptionAmountRequestFeeAmountData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateSubscriptionAmountRequestFeeAmountData extends Object
The amount and currency of this `Subsciption Amount`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateSubscriptionAmountRequestFeeAmountData.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 CreateSubscriptionAmountRequestFeeAmountData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSubscriptionAmountRequestFeeAmountDataamount(Long amount)CreateSubscriptionAmountRequestFeeAmountDatacurrency(Currency currency)booleanequals(Object o)static CreateSubscriptionAmountRequestFeeAmountDatafromJson(String jsonString)Create an instance of CreateSubscriptionAmountRequestFeeAmountData given an JSON stringLonggetAmount()A positive integer in cents representing how much to charge on a recurring basis.CurrencygetCurrency()Get currencyStringgetLabel()The display name of the `Subscirption Amount` that can be used for filtering purposes.inthashCode()CreateSubscriptionAmountRequestFeeAmountDatalabel(String label)voidsetAmount(Long amount)voidsetCurrency(Currency currency)voidsetLabel(String label)StringtoJson()Convert an instance of CreateSubscriptionAmountRequestFeeAmountData 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 CreateSubscriptionAmountRequestFeeAmountData amount(Long amount)
-
getAmount
@Nonnull 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 CreateSubscriptionAmountRequestFeeAmountData currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
label
public CreateSubscriptionAmountRequestFeeAmountData label(String label)
-
getLabel
@Nullable public String getLabel()
The display name of the `Subscirption 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 CreateSubscriptionAmountRequestFeeAmountData
-
fromJson
public static CreateSubscriptionAmountRequestFeeAmountData fromJson(String jsonString) throws IOException
Create an instance of CreateSubscriptionAmountRequestFeeAmountData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateSubscriptionAmountRequestFeeAmountData
- Throws:
IOException- if the JSON string is invalid with respect to CreateSubscriptionAmountRequestFeeAmountData
-
toJson
public String toJson()
Convert an instance of CreateSubscriptionAmountRequestFeeAmountData to an JSON string- Returns:
- JSON string
-
-