Package io.voucherify.client.model
Class LoyaltyTierExpiration
java.lang.Object
io.voucherify.client.model.LoyaltyTierExpiration
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyTierExpiration
extends Object
Defines loyalty tier expiration date.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncampaignId(String campaignId) createdAt(OffsetDateTime createdAt) customerId(String customerId) booleanexpirationDate(String expirationDate) static LoyaltyTierExpirationCreate an instance of LoyaltyTierExpiration given an JSON stringUnique campaign ID, assigned by Voucherify.Timestamp representing the date and time when the loyalty tier was created.Unique customer ID of the customer making the purchase.Expiration timestamp defines when the loyalty tier expires in ISO 8601 format.Activation timestamp defines when the loyalty tier starts to be active in ISO 8601 format.Unique tier ID, assigned by Voucherify.Timestamp representing the date and time when the loyalty tier was updated.inthashCode()voidsetCampaignId(String campaignId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCustomerId(String customerId) voidsetExpirationDate(String expirationDate) voidsetStartDate(String startDate) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltyTierExpiration to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_CUSTOMER_ID
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_TIER_ID
- See Also:
-
SERIALIZED_NAME_START_DATE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyTierExpiration
public LoyaltyTierExpiration()
-
-
Method Details
-
customerId
-
getCustomerId
Unique customer ID of the customer making the purchase.- Returns:
- customerId
-
setCustomerId
-
campaignId
-
getCampaignId
Unique campaign ID, assigned by Voucherify.- Returns:
- campaignId
-
setCampaignId
-
tierId
-
getTierId
Unique tier ID, assigned by Voucherify.- Returns:
- tierId
-
setTierId
-
startDate
-
getStartDate
Activation timestamp defines when the loyalty tier starts to be active in ISO 8601 format. Loyalty tier is inactive before this date.- Returns:
- startDate
-
setStartDate
-
expirationDate
-
getExpirationDate
Expiration timestamp defines when the loyalty tier expires in ISO 8601 format. Loyalty tier is inactive after this date.- Returns:
- expirationDate
-
setExpirationDate
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the loyalty tier was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the loyalty tier was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltyTierExpiration given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyTierExpiration
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyTierExpiration
-
toJson
Convert an instance of LoyaltyTierExpiration to an JSON string- Returns:
- JSON string
-