Package model
Class SubscriptionEnrollment
- java.lang.Object
-
- model.SubscriptionEnrollment
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SubscriptionEnrollment extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionEnrollment.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CREATED_BYstatic StringSERIALIZED_NAME_ENDED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MERCHANTstatic StringSERIALIZED_NAME_NICKNAMEstatic StringSERIALIZED_NAME_STARTED_ATstatic StringSERIALIZED_NAME_SUBSCRIPTION_SCHEDULEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description SubscriptionEnrollment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionEnrollmentcreatedAt(OffsetDateTime createdAt)SubscriptionEnrollmentcreatedBy(String createdBy)SubscriptionEnrollmentendedAt(String endedAt)booleanequals(Object o)static SubscriptionEnrollmentfromJson(String jsonString)Create an instance of SubscriptionEnrollment given an JSON stringOffsetDateTimegetCreatedAt()Timestamp of when the object was created.StringgetCreatedBy()ID of the `User` who created the `subscription_enrollment`.StringgetEndedAt()When the `subscription_enrollment` will end in **DateTime** format.StringgetId()ID of the `subscription_enrollment`.SubscriptionEnrollmentLinksgetLinks()Get linksStringgetMerchant()ID of the `Merchant` resource.StringgetNickname()Human readable name.StringgetStartedAt()When the `subscription_enrollment` will begin in **DateTime** format.StringgetSubscriptionSchedule()ID of the `Subscription Schedule`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()SubscriptionEnrollmentid(String id)SubscriptionEnrollmentlinks(SubscriptionEnrollmentLinks links)SubscriptionEnrollmentmerchant(String merchant)SubscriptionEnrollmentnickname(String nickname)SubscriptionEnrollmentputTagsItem(String key, String tagsItem)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCreatedBy(String createdBy)voidsetEndedAt(String endedAt)voidsetId(String id)voidsetLinks(SubscriptionEnrollmentLinks links)voidsetMerchant(String merchant)voidsetNickname(String nickname)voidsetStartedAt(String startedAt)voidsetSubscriptionSchedule(String subscriptionSchedule)voidsetTags(Map<String,String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)SubscriptionEnrollmentstartedAt(String startedAt)SubscriptionEnrollmentsubscriptionSchedule(String subscriptionSchedule)SubscriptionEnrollmenttags(Map<String,String> tags)StringtoJson()Convert an instance of SubscriptionEnrollment to an JSON stringStringtoString()SubscriptionEnrollmentupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_BY
public static final String SERIALIZED_NAME_CREATED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENDED_AT
public static final String SERIALIZED_NAME_ENDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT
public static final String SERIALIZED_NAME_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NICKNAME
public static final String SERIALIZED_NAME_NICKNAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT
public static final String SERIALIZED_NAME_STARTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIPTION_SCHEDULE
public static final String SERIALIZED_NAME_SUBSCRIPTION_SCHEDULE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public SubscriptionEnrollment id(String id)
-
setId
public void setId(String id)
-
createdAt
public SubscriptionEnrollment createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public SubscriptionEnrollment updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
createdBy
public SubscriptionEnrollment createdBy(String createdBy)
-
getCreatedBy
@Nullable public String getCreatedBy()
ID of the `User` who created the `subscription_enrollment`.- Returns:
- createdBy
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
endedAt
public SubscriptionEnrollment endedAt(String endedAt)
-
getEndedAt
@Nullable public String getEndedAt()
When the `subscription_enrollment` will end in **DateTime** format.- Returns:
- endedAt
-
setEndedAt
public void setEndedAt(String endedAt)
-
merchant
public SubscriptionEnrollment merchant(String merchant)
-
setMerchant
public void setMerchant(String merchant)
-
nickname
public SubscriptionEnrollment nickname(String nickname)
-
setNickname
public void setNickname(String nickname)
-
startedAt
public SubscriptionEnrollment startedAt(String startedAt)
-
getStartedAt
@Nullable public String getStartedAt()
When the `subscription_enrollment` will begin in **DateTime** format.- Returns:
- startedAt
-
setStartedAt
public void setStartedAt(String startedAt)
-
subscriptionSchedule
public SubscriptionEnrollment subscriptionSchedule(String subscriptionSchedule)
-
getSubscriptionSchedule
@Nullable public String getSubscriptionSchedule()
ID of the `Subscription Schedule`.- Returns:
- subscriptionSchedule
-
setSubscriptionSchedule
public void setSubscriptionSchedule(String subscriptionSchedule)
-
tags
public SubscriptionEnrollment tags(Map<String,String> tags)
-
putTagsItem
public SubscriptionEnrollment putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
links
public SubscriptionEnrollment links(SubscriptionEnrollmentLinks links)
-
getLinks
@Nullable public SubscriptionEnrollmentLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(SubscriptionEnrollmentLinks links)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
public static SubscriptionEnrollment fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of SubscriptionEnrollment to an JSON string- Returns:
- JSON string
-
-