Class VoucherTransactionsFilters

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherTransactionsFilters extends Object
List of available fields and filters that can be exported with gift card or loyalty card transactions along with the sorting order of the returned data.
  • Field Details

  • Constructor Details

    • VoucherTransactionsFilters

      public VoucherTransactionsFilters()
  • Method Details

    • order

    • getOrder

      @Nullable public VoucherTransactionsFilters.OrderEnum getOrder()
      How the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order.
      Returns:
      order
    • setOrder

      public void setOrder(VoucherTransactionsFilters.OrderEnum order)
    • fields

    • addFieldsItem

    • getFields

      @Nullable public List<VoucherTransactionsFilters.FieldsEnum> getFields()
      Array of strings containing the data in the export. These fields define the headers in the CSV file. The array can be a combination of any of the following available fields: | **Field** | **Definition** | **Example Export** | |:---|:---|:---| | id | Unique transaction ID. | vtx_0cb7811f1c07765800 | | type | Transaction type. | - `CREDITS_REMOVAL` <br> - `CREDITS_ADDITION` <br> - `CREDITS_REFUND` <br> - `CREDITS_REDEMPTION` <br> - `POINTS_ACCRUAL`<br> - `POINTS_REDEMPTION`<br> - `POINTS_REFUND`<br> - `POINTS_ADDITION`<br> - `POINTS_REMOVAL`<br> - `POINTS_EXPIRATION`<br> - `POINTS_TRANSFER_IN`<br> - `POINTS_TRANSFER_OUT` | | source_id | Unique transaction source ID. | 8638 | | reason | Contains the reason for the transaction if one was included originally. | | | balance | The gift card or loyalty card balance after the transaction. | | | amount | The amount of gift card or loyalty card credits being allocated during the transaction. This value can either be negative or positive depending on the nature of the transaction. | | | created_at | Timestamp in ISO 8601 format representing the date and time when the transaction was created. | 2022-03-09T09:16:32.521Z | | voucher_id | Unique Voucher ID. | v_dky7ksKfPX50Wb2Bxvcoeb1xT20b6tcp | | campaign_id | Parent campaign ID. | camp_FNYR4jhqZBM9xTptxDGgeNBV | | source| Channel through which the transaction was initiated. | API | | details | More detailed information stored in the form of a JSON. | Provides more details related to the transaction in the form of an object. | | related_transaction_id | Unique transaction ID related to a receiver/donor card in the case of a points transfer from/to another card. | vtx_0c9afe802593b34b80 |
      Returns:
      fields
    • setFields

      public void setFields(List<VoucherTransactionsFilters.FieldsEnum> fields)
    • filters

    • getFilters

      @Nonnull public VoucherTransactionsExportFilterConditions getFilters()
      Get filters
      Returns:
      filters
    • setFilters

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

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