Package ai.reveng.model
Class PriceOutput
java.lang.Object
ai.reveng.model.PriceOutput
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PriceOutput
extends Object
PriceOutput
-
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 PriceOutputCreate an instance of PriceOutput given an JSON stringLowercase ISO 4217 currency code (e.g.getId()Price ID.Billing interval at which the price recurs.Price per billing interval, expressed in the smallest unit of the currency (e.g.inthashCode()interval(PriceOutput.IntervalEnum interval) voidsetCurrency(String currency) voidvoidsetInterval(PriceOutput.IntervalEnum interval) voidsetUnitAmount(Long unitAmount) toJson()Convert an instance of PriceOutput 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_ID
- See Also:
-
SERIALIZED_NAME_INTERVAL
- See Also:
-
SERIALIZED_NAME_UNIT_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PriceOutput
public PriceOutput()
-
-
Method Details
-
currency
-
getCurrency
Lowercase ISO 4217 currency code (e.g. \"usd\", \"gbp\").- Returns:
- currency
-
setCurrency
-
id
-
getId
Price ID.- Returns:
- id
-
setId
-
interval
-
getInterval
Billing interval at which the price recurs.- Returns:
- interval
-
setInterval
-
unitAmount
-
getUnitAmount
Price per billing interval, expressed in the smallest unit of the currency (e.g. cents for USD, pence for GBP).- 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 PriceOutput
-
fromJson
Create an instance of PriceOutput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PriceOutput
- Throws:
IOException- if the JSON string is invalid with respect to PriceOutput
-
toJson
Convert an instance of PriceOutput to an JSON string- Returns:
- JSON string
-