Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets fieldsstatic enumHow the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFieldsItem(VoucherTransactionsFilters.FieldsEnum fieldsItem) booleanstatic VoucherTransactionsFiltersCreate an instance of VoucherTransactionsFilters given an JSON stringArray of strings containing the data in the export.Get filtersgetOrder()How the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order.inthashCode()voidvoidvoidtoJson()Convert an instance of VoucherTransactionsFilters to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_FIELDS
- See Also:
-
SERIALIZED_NAME_FILTERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VoucherTransactionsFilters
public VoucherTransactionsFilters()
-
-
Method Details
-
order
-
getOrder
How the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order.- Returns:
- order
-
setOrder
-
fields
-
addFieldsItem
-
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
-
filters
-
getFilters
Get filters- Returns:
- filters
-
setFilters
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of VoucherTransactionsFilters to an JSON string- Returns:
- JSON string
-