Package ai.reveng.model
Class GetSubscriptionOutputBody
java.lang.Object
ai.reveng.model.GetSubscriptionOutputBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class GetSubscriptionOutputBody
extends Object
GetSubscriptionOutputBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSubscription state.static enumUser's effective tier. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendsAt(OffsetDateTime endsAt) booleanstatic GetSubscriptionOutputBodyCreate an instance of GetSubscriptionOutputBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Date access ends (CANCELING only).getPrice()Current price (ACTIVE / CANCELING / PAYMENT_ISSUE only).Subscribed product (ACTIVE / CANCELING / PAYMENT_ISSUE only).Next billing date (ACTIVE only).Subscription state.getTier()User's effective tier.inthashCode()price(PriceSummary price) product(ProductSummary product) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.renewsAt(OffsetDateTime renewsAt) voidsetEndsAt(OffsetDateTime endsAt) voidsetPrice(PriceSummary price) voidsetProduct(ProductSummary product) voidsetRenewsAt(OffsetDateTime renewsAt) voidvoidtoJson()Convert an instance of GetSubscriptionOutputBody to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ENDS_AT
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_PRODUCT
- See Also:
-
SERIALIZED_NAME_RENEWS_AT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TIER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetSubscriptionOutputBody
public GetSubscriptionOutputBody()
-
-
Method Details
-
endsAt
-
getEndsAt
Date access ends (CANCELING only).- Returns:
- endsAt
-
setEndsAt
-
price
-
getPrice
Current price (ACTIVE / CANCELING / PAYMENT_ISSUE only).- Returns:
- price
-
setPrice
-
product
-
getProduct
Subscribed product (ACTIVE / CANCELING / PAYMENT_ISSUE only).- Returns:
- product
-
setProduct
-
renewsAt
-
getRenewsAt
Next billing date (ACTIVE only).- Returns:
- renewsAt
-
setRenewsAt
-
status
-
getStatus
Subscription state.- Returns:
- status
-
setStatus
-
tier
-
getTier
User's effective tier.- Returns:
- tier
-
setTier
-
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 GetSubscriptionOutputBody 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 GetSubscriptionOutputBody
-
fromJson
Create an instance of GetSubscriptionOutputBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetSubscriptionOutputBody
- Throws:
IOException- if the JSON string is invalid with respect to GetSubscriptionOutputBody
-
toJson
Convert an instance of GetSubscriptionOutputBody to an JSON string- Returns:
- JSON string
-