Package ai.reveng.model
Class PriceSummary
java.lang.Object
ai.reveng.model.PriceSummary
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PriceSummary
extends Object
PriceSummary
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumBilling interval at which the price recurs. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PriceSummaryCreate an instance of PriceSummary given an JSON stringLowercase ISO 4217 currency code.Billing interval at which the price recurs.Price per billing interval, in the smallest unit of the currency.inthashCode()interval(PriceSummary.IntervalEnum interval) voidsetCurrency(String currency) voidsetInterval(PriceSummary.IntervalEnum interval) voidsetUnitAmount(Long unitAmount) toJson()Convert an instance of PriceSummary to an JSON stringtoString()unitAmount(Long unitAmount) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_INTERVAL
- See Also:
-
SERIALIZED_NAME_UNIT_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PriceSummary
public PriceSummary()
-
-
Method Details
-
currency
-
getCurrency
Lowercase ISO 4217 currency code.- Returns:
- currency
-
setCurrency
-
interval
-
getInterval
Billing interval at which the price recurs.- Returns:
- interval
-
setInterval
-
unitAmount
-
getUnitAmount
Price per billing interval, in the smallest unit of the currency.- Returns:
- unitAmount
-
setUnitAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to PriceSummary
-
fromJson
Create an instance of PriceSummary given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PriceSummary
- Throws:
IOException- if the JSON string is invalid with respect to PriceSummary
-
toJson
Convert an instance of PriceSummary to an JSON string- Returns:
- JSON string
-