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 stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Lowercase 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) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.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
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the PriceOutput instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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
-