Class MainRedeem

java.lang.Object
software.xdev.brevo.model.MainRedeem

public class MainRedeem extends Object
MainRedeem
  • Field Details

  • Constructor Details

    • MainRedeem

      public MainRedeem()
  • Method Details

    • cancelledAt

      public MainRedeem cancelledAt(@Nullable OffsetDateTime cancelledAt)
    • getCancelledAt

      @Nullable public OffsetDateTime getCancelledAt()
      Timestamp when the redemption was cancelled
      Returns:
      cancelledAt
    • setCancelledAt

      public void setCancelledAt(@Nullable OffsetDateTime cancelledAt)
    • completedAt

      public MainRedeem completedAt(@Nullable OffsetDateTime completedAt)
    • getCompletedAt

      @Nullable public OffsetDateTime getCompletedAt()
      Timestamp when the redemption was completed
      Returns:
      completedAt
    • setCompletedAt

      public void setCompletedAt(@Nullable OffsetDateTime completedAt)
    • contactId

      public MainRedeem contactId(@Nullable Long contactId)
    • getContactId

      @Nullable public Long getContactId()
      Unique identifier for the contact
      Returns:
      contactId
    • setContactId

      public void setContactId(@Nullable Long contactId)
    • createdAt

      public MainRedeem createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp when the redemption was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • debitTransactionId

      public MainRedeem debitTransactionId(@Nullable UUID debitTransactionId)
    • getDebitTransactionId

      @Nullable public UUID getDebitTransactionId()
      Unique identifier for the debit transaction
      Returns:
      debitTransactionId
    • setDebitTransactionId

      public void setDebitTransactionId(@Nullable UUID debitTransactionId)
    • expiresAt

      public MainRedeem expiresAt(@Nullable OffsetDateTime expiresAt)
    • getExpiresAt

      @Nullable public OffsetDateTime getExpiresAt()
      Timestamp when the redemption expires
      Returns:
      expiresAt
    • setExpiresAt

      public void setExpiresAt(@Nullable OffsetDateTime expiresAt)
    • id

      public MainRedeem id(@Nullable UUID id)
    • getId

      @Nullable public UUID getId()
      Unique identifier for the redemption
      Returns:
      id
    • setId

      public void setId(@Nullable UUID id)
    • loyaltyProgramId

      public MainRedeem loyaltyProgramId(@Nullable UUID loyaltyProgramId)
    • getLoyaltyProgramId

      @Nullable public UUID getLoyaltyProgramId()
      Unique identifier for the loyalty program
      Returns:
      loyaltyProgramId
    • setLoyaltyProgramId

      public void setLoyaltyProgramId(@Nullable UUID loyaltyProgramId)
    • meta

      public MainRedeem meta(@Nullable Map<String,Object> meta)
    • putMetaItem

      public MainRedeem putMetaItem(String key, Object metaItem)
    • getMeta

      @Nullable public Map<String,Object> getMeta()
      Additional metadata associated with the redemption
      Returns:
      meta
    • setMeta

      public void setMeta(@Nullable Map<String,Object> meta)
    • rejectReason

      public MainRedeem rejectReason(@Nullable String rejectReason)
    • getRejectReason

      @Nullable public String getRejectReason()
      Reason for rejection if the redemption was rejected
      Returns:
      rejectReason
    • setRejectReason

      public void setRejectReason(@Nullable String rejectReason)
    • rejectedAt

      public MainRedeem rejectedAt(@Nullable OffsetDateTime rejectedAt)
    • getRejectedAt

      @Nullable public OffsetDateTime getRejectedAt()
      Timestamp when the redemption was rejected
      Returns:
      rejectedAt
    • setRejectedAt

      public void setRejectedAt(@Nullable OffsetDateTime rejectedAt)
    • rewardAttributionId

      public MainRedeem rewardAttributionId(@Nullable UUID rewardAttributionId)
    • getRewardAttributionId

      @Nullable public UUID getRewardAttributionId()
      Unique identifier for the reward attribution
      Returns:
      rewardAttributionId
    • setRewardAttributionId

      public void setRewardAttributionId(@Nullable UUID rewardAttributionId)
    • status

      public MainRedeem status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      Current status of the redemption
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • updatedAt

      public MainRedeem updatedAt(@Nullable OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp when the redemption was last updated
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable 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
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string