Package model
Class SubscriptionEnrollment
java.lang.Object
model.SubscriptionEnrollment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class SubscriptionEnrollment
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic SubscriptionEnrollmentCreate an instance of SubscriptionEnrollment given an JSON stringTimestamp of when the object was created.ID of the `User` who created the `subscription_enrollment`.When the `subscription_enrollment` will end in **DateTime** format.getId()ID of the `subscription_enrollment`.getLinks()Get linksID of the `Merchant` resource.Human readable name.When the `subscription_enrollment` will begin in **DateTime** format.ID of the `Subscription Schedule`.getTags()Key value pair for annotating custom meta data (e.g.Timestamp of when the object was last updated.inthashCode()links(SubscriptionEnrollmentLinks links) putTagsItem(String key, String tagsItem) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetEndedAt(String endedAt) voidvoidvoidsetMerchant(String merchant) voidsetNickname(String nickname) voidsetStartedAt(String startedAt) voidsetSubscriptionSchedule(String subscriptionSchedule) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) subscriptionSchedule(String subscriptionSchedule) toJson()Convert an instance of SubscriptionEnrollment to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_BY
- See Also:
-
SERIALIZED_NAME_ENDED_AT
- See Also:
-
SERIALIZED_NAME_MERCHANT
- See Also:
-
SERIALIZED_NAME_NICKNAME
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_SUBSCRIPTION_SCHEDULE
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SubscriptionEnrollment
public SubscriptionEnrollment()
-
-
Method Details
-
id
-
getId
ID of the `subscription_enrollment`.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
createdBy
-
getCreatedBy
ID of the `User` who created the `subscription_enrollment`.- Returns:
- createdBy
-
setCreatedBy
-
endedAt
-
getEndedAt
When the `subscription_enrollment` will end in **DateTime** format.- Returns:
- endedAt
-
setEndedAt
-
merchant
-
getMerchant
ID of the `Merchant` resource.- Returns:
- merchant
-
setMerchant
-
nickname
-
getNickname
Human readable name.- Returns:
- nickname
-
setNickname
-
startedAt
-
getStartedAt
When the `subscription_enrollment` will begin in **DateTime** format.- Returns:
- startedAt
-
setStartedAt
-
subscriptionSchedule
-
getSubscriptionSchedule
ID of the `Subscription Schedule`.- Returns:
- subscriptionSchedule
-
setSubscriptionSchedule
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SubscriptionEnrollment
-
fromJson
Create an instance of SubscriptionEnrollment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionEnrollment
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionEnrollment
-
toJson
Convert an instance of SubscriptionEnrollment to an JSON string- Returns:
- JSON string
-