Class LoyaltyCardTransaction

java.lang.Object
io.voucherify.client.model.LoyaltyCardTransaction

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltyCardTransaction extends Object
LoyaltyCardTransaction
  • Field Details

  • Constructor Details

    • LoyaltyCardTransaction

      public LoyaltyCardTransaction()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique transaction ID.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public LoyaltyCardTransaction sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The merchant's transaction ID if it is different from the Voucherify transaction ID. It is really useful in case of an integration between multiple systems. It can be a transaction ID from a CRM system, database or 3rd-party service. In case of a redemption, this value is null.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • voucherId

      public LoyaltyCardTransaction voucherId(String voucherId)
    • getVoucherId

      @Nullable public String getVoucherId()
      Unique voucher ID.
      Returns:
      voucherId
    • setVoucherId

      public void setVoucherId(String voucherId)
    • campaignId

      public LoyaltyCardTransaction campaignId(String campaignId)
    • getCampaignId

      @Nullable public String getCampaignId()
      Unqiue campaign ID of the voucher's parent campaign if it is part of campaign that generates bulk codes.
      Returns:
      campaignId
    • setCampaignId

      public void setCampaignId(String campaignId)
    • source

      public LoyaltyCardTransaction source(String source)
    • getSource

      @Nullable public String getSource()
      The channel through which the transaction took place, whether through the API or the the Dashboard. In case of a redemption, this value is null.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • reason

      public LoyaltyCardTransaction reason(String reason)
    • getReason

      @Nullable public String getReason()
      Reason why the transaction occurred. In case of a redemption, this value is null.
      Returns:
      reason
    • setReason

      public void setReason(String reason)
    • relatedTransactionId

      public LoyaltyCardTransaction relatedTransactionId(String relatedTransactionId)
    • getRelatedTransactionId

      @Nullable public String getRelatedTransactionId()
      The related transaction ID on the receiving card.
      Returns:
      relatedTransactionId
    • setRelatedTransactionId

      public void setRelatedTransactionId(String relatedTransactionId)
    • createdAt

      public LoyaltyCardTransaction createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the transaction was created. The value is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • details

    • getDetails

      @Nullable public LoyaltyCardTransactionDetails getDetails()
      Get details
      Returns:
      details
    • setDetails

      public void setDetails(LoyaltyCardTransactionDetails details)
    • type

    • getType

      @Nullable public LoyaltyCardTransactionsType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(LoyaltyCardTransactionsType type)
    • 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 LoyaltyCardTransaction fromJson(String jsonString) throws IOException
      Create an instance of LoyaltyCardTransaction given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltyCardTransaction
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltyCardTransaction
    • toJson

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