Class VoucherTransaction

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

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

  • Constructor Details

    • VoucherTransaction

      public VoucherTransaction()
  • Method Details

    • id

      public VoucherTransaction id(String id)
    • getId

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

      public void setId(String id)
    • sourceId

      public VoucherTransaction 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 VoucherTransaction voucherId(String voucherId)
    • getVoucherId

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

      public void setVoucherId(String voucherId)
    • campaignId

      public VoucherTransaction 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 VoucherTransaction 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 VoucherTransaction 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 VoucherTransaction 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 VoucherTransaction 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 VoucherTransactionDetails getDetails()
      Get details
      Returns:
      details
    • setDetails

      public void setDetails(VoucherTransactionDetails details)
    • type

    • getType

      @Nullable public VoucherTransaction.TypeEnum getType()
      Get type
      Returns:
      type
    • setType

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

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