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.
  • Field Details

  • Constructor Details

    • LoyaltyTierExpiration

      public LoyaltyTierExpiration()
  • Method Details

    • customerId

      public LoyaltyTierExpiration customerId(String customerId)
    • getCustomerId

      @Nullable public String getCustomerId()
      Unique customer ID of the customer making the purchase.
      Returns:
      customerId
    • setCustomerId

      public void setCustomerId(String customerId)
    • campaignId

      public LoyaltyTierExpiration campaignId(String campaignId)
    • getCampaignId

      @Nullable public String getCampaignId()
      Unique campaign ID, assigned by Voucherify.
      Returns:
      campaignId
    • setCampaignId

      public void setCampaignId(String campaignId)
    • tierId

      public LoyaltyTierExpiration tierId(String tierId)
    • getTierId

      @Nullable public String getTierId()
      Unique tier ID, assigned by Voucherify.
      Returns:
      tierId
    • setTierId

      public void setTierId(String tierId)
    • startDate

      public LoyaltyTierExpiration startDate(String startDate)
    • getStartDate

      @Nullable public String 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

      public void setStartDate(String startDate)
    • expirationDate

      public LoyaltyTierExpiration expirationDate(String expirationDate)
    • getExpirationDate

      @Nullable public String getExpirationDate()
      Expiration timestamp defines when the loyalty tier expires in ISO 8601 format. Loyalty tier is inactive after this date.
      Returns:
      expirationDate
    • setExpirationDate

      public void setExpirationDate(String expirationDate)
    • createdAt

      public LoyaltyTierExpiration createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime 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

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public LoyaltyTierExpiration updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime 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

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static LoyaltyTierExpiration fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of LoyaltyTierExpiration to an JSON string
      Returns:
      JSON string