Package io.voucherify.client.model
Class VoucherTransactionsExportParameters
java.lang.Object
io.voucherify.client.model.VoucherTransactionsExportParameters
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VoucherTransactionsExportParameters
extends Object
List of available fields and filters that can be exported with a gift card or loyalty card transactions export 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 TypeMethodDescriptionbooleanCreate an instance of VoucherTransactionsExportParameters given an JSON stringArray of strings containing the data in the export.getOrder()How the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order.inthashCode()voidvoidtoJson()Convert an instance of VoucherTransactionsExportParameters to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_FIELDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VoucherTransactionsExportParameters
public VoucherTransactionsExportParameters()
-
-
Method Details
-
order
public VoucherTransactionsExportParameters order(VoucherTransactionsExportParameters.OrderEnum order) -
getOrder
How the export is filtered, where the dash `-` preceding a sorting option means sorting in a descending order.- Returns:
- order
-
setOrder
-
fields
public VoucherTransactionsExportParameters fields(List<VoucherTransactionsExportParameters.FieldsEnum> fields) -
addFieldsItem
public VoucherTransactionsExportParameters addFieldsItem(VoucherTransactionsExportParameters.FieldsEnum fieldsItem) -
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VoucherTransactionsExportParameters given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VoucherTransactionsExportParameters
- Throws:
IOException- if the JSON string is invalid with respect to VoucherTransactionsExportParameters
-
toJson
Convert an instance of VoucherTransactionsExportParameters to an JSON string- Returns:
- JSON string
-