Package model
Class CreateSubscriptionAmountRequestFeeAmountData
java.lang.Object
model.CreateSubscriptionAmountRequestFeeAmountData
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreateSubscriptionAmountRequestFeeAmountData
extends Object
The amount and currency of this `Subsciption Amount`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of CreateSubscriptionAmountRequestFeeAmountData given an JSON stringA positive integer in cents representing how much to charge on a recurring basis.Get currencygetLabel()The display name of the `Subscirption Amount` that can be used for filtering purposes.inthashCode()voidvoidsetCurrency(Currency currency) voidtoJson()Convert an instance of CreateSubscriptionAmountRequestFeeAmountData to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_LABEL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateSubscriptionAmountRequestFeeAmountData
public CreateSubscriptionAmountRequestFeeAmountData()
-
-
Method Details
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
amount
-
getAmount
A positive integer in cents representing how much to charge on a recurring basis.- Returns:
- amount
-
setAmount
-
label
-
getLabel
The display name of the `Subscirption Amount` that can be used for filtering purposes.- Returns:
- label
-
setLabel
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates 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
Convert an instance of CreateSubscriptionAmountRequestFeeAmountData to an JSON string- Returns:
- JSON string
-