Package io.voucherify.client.model
Class LoyaltiesPointsExpirationExportCreateRequestBodyParameters
java.lang.Object
io.voucherify.client.model.LoyaltiesPointsExpirationExportCreateRequestBodyParameters
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesPointsExpirationExportCreateRequestBodyParameters
extends Object
List of fields and filters that will be used to create the export.
-
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 LoyaltiesPointsExpirationExportCreateRequestBodyParameters given an JSON stringArray of strings containing the data that was exported.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 LoyaltiesPointsExpirationExportCreateRequestBodyParameters 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
-
LoyaltiesPointsExpirationExportCreateRequestBodyParameters
public LoyaltiesPointsExpirationExportCreateRequestBodyParameters()
-
-
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
public LoyaltiesPointsExpirationExportCreateRequestBodyParameters addFieldsItem(LoyaltiesPointsExpirationExportCreateRequestBodyParameters.FieldsEnum fieldsItem) -
getFields
@Nullable public List<LoyaltiesPointsExpirationExportCreateRequestBodyParameters.FieldsEnum> getFields()Array of strings containing the data that was exported. 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 | Loyalty points bucket ID. | lopb_Wl1o3EjJIHSNjvO5BDLy4z1n | | campaign_id | Campaign ID of the parent loyalty campaign. | camp_7s3uXI44aKfIk5IhmeOPr6ic | | voucher_id | Voucher ID of the parent loyalty card. | v_YLn0WVWXSXbUfDvxgrgUbtfJ3SQIY655 | | status | Status of the loyalty points bucket. | `ACTIVE` or `INACTIVE` | | expires_at | Timestamp in ISO 8601 format representing the date when the points expire. | 2022-06-30 | | points | Number of points. | 1000 |- Returns:
- fields
-
setFields
public void setFields(List<LoyaltiesPointsExpirationExportCreateRequestBodyParameters.FieldsEnum> fields) -
filters
-
getFilters
Get filters- Returns:
- filters
-
setFilters
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesPointsExpirationExportCreateRequestBodyParameters fromJson(String jsonString) throws IOException Create an instance of LoyaltiesPointsExpirationExportCreateRequestBodyParameters given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesPointsExpirationExportCreateRequestBodyParameters
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesPointsExpirationExportCreateRequestBodyParameters
-
toJson
Convert an instance of LoyaltiesPointsExpirationExportCreateRequestBodyParameters to an JSON string- Returns:
- JSON string
-