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 stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Lowercase 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) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.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
-
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 PriceSummary 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 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
-