Package model
Class SubscriptionAmount
- java.lang.Object
-
- model.SubscriptionAmount
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SubscriptionAmount extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionAmount.AmountTypeEnum`Subscription Amount` type.static classSubscriptionAmount.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNT_TYPEstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CREATED_BYstatic StringSERIALIZED_NAME_FEE_AMOUNT_DATAstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_NICKNAMEstatic StringSERIALIZED_NAME_SUBSCRIPTION_SCHEDULEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description SubscriptionAmount()
-
Method Summary
-
-
-
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_AMOUNT_TYPE
public static final String SERIALIZED_NAME_AMOUNT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_BY
public static final String SERIALIZED_NAME_CREATED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE_AMOUNT_DATA
public static final String SERIALIZED_NAME_FEE_AMOUNT_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NICKNAME
public static final String SERIALIZED_NAME_NICKNAME
- 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 SubscriptionAmount id(String id)
-
setId
public void setId(String id)
-
createdAt
public SubscriptionAmount 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 SubscriptionAmount updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
amountType
public SubscriptionAmount amountType(SubscriptionAmount.AmountTypeEnum amountType)
-
getAmountType
@Nullable public SubscriptionAmount.AmountTypeEnum getAmountType()
`Subscription Amount` type. The only type supported as of now is **FEE**.- Returns:
- amountType
-
setAmountType
public void setAmountType(SubscriptionAmount.AmountTypeEnum amountType)
-
createdBy
public SubscriptionAmount createdBy(String createdBy)
-
getCreatedBy
@Nullable public String getCreatedBy()
The ID of the `User` that created the `Subscription Amount`.- Returns:
- createdBy
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
feeAmountData
public SubscriptionAmount feeAmountData(SubscriptionAmountFeeAmountData feeAmountData)
-
getFeeAmountData
@Nullable public SubscriptionAmountFeeAmountData getFeeAmountData()
Get feeAmountData- Returns:
- feeAmountData
-
setFeeAmountData
public void setFeeAmountData(SubscriptionAmountFeeAmountData feeAmountData)
-
nickname
public SubscriptionAmount nickname(String nickname)
-
setNickname
public void setNickname(String nickname)
-
subscriptionSchedule
public SubscriptionAmount subscriptionSchedule(String subscriptionSchedule)
-
getSubscriptionSchedule
@Nullable public String getSubscriptionSchedule()
ID of the `Subscription Schedule`.- Returns:
- subscriptionSchedule
-
setSubscriptionSchedule
public void setSubscriptionSchedule(String subscriptionSchedule)
-
tags
public SubscriptionAmount tags(Map<String,String> tags)
-
putTagsItem
public SubscriptionAmount 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 SubscriptionAmount links(SubscriptionAmountLinks links)
-
getLinks
@Nullable public SubscriptionAmountLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(SubscriptionAmountLinks 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 SubscriptionAmount
-
fromJson
public static SubscriptionAmount fromJson(String jsonString) throws IOException
Create an instance of SubscriptionAmount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionAmount
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionAmount
-
toJson
public String toJson()
Convert an instance of SubscriptionAmount to an JSON string- Returns:
- JSON string
-
-