Package model
Class CreateSubscriptionEnrollmentRequest
java.lang.Object
model.CreateSubscriptionEnrollmentRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreateSubscriptionEnrollmentRequest
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of CreateSubscriptionEnrollmentRequest given an JSON stringID of the `Merchant` resource.Human readable name.When the `subscription_enrollment` will begin in **DateTime** format.getTags()Key value pair for annotating custom meta data (e.g.inthashCode()putTagsItem(String key, String tagsItem) voidsetMerchant(String merchant) voidsetNickname(String nickname) voidsetStartedAt(OffsetDateTime startedAt) voidstartedAt(OffsetDateTime startedAt) toJson()Convert an instance of CreateSubscriptionEnrollmentRequest to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MERCHANT
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_NICKNAME
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateSubscriptionEnrollmentRequest
public CreateSubscriptionEnrollmentRequest()
-
-
Method Details
-
merchant
-
getMerchant
ID of the `Merchant` resource.- Returns:
- merchant
-
setMerchant
-
startedAt
-
getStartedAt
When the `subscription_enrollment` will begin in **DateTime** format. The start date must be a future date.- Returns:
- startedAt
-
setStartedAt
-
nickname
-
getNickname
Human readable name.- Returns:
- nickname
-
setNickname
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
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 CreateSubscriptionEnrollmentRequest
-
fromJson
Create an instance of CreateSubscriptionEnrollmentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateSubscriptionEnrollmentRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateSubscriptionEnrollmentRequest
-
toJson
Convert an instance of CreateSubscriptionEnrollmentRequest to an JSON string- Returns:
- JSON string
-