Package io.voucherify.client.model
Class QualificationsOption
java.lang.Object
io.voucherify.client.model.QualificationsOption
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class QualificationsOption
extends Object
Configure parameters returned in the response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets expandstatic enumIs used to determine the order in which data is displayed in the result array. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExpandItem(QualificationsOption.ExpandEnum expandItem) booleanexpand(List<QualificationsOption.ExpandEnum> expand) filters(QualificationsOptionFilters filters) static QualificationsOptionCreate an instance of QualificationsOption given an JSON stringThe expand array lets you configure the parameters included in the response.Get filtersgetLimit()The maximum number of redeemables to be returned in the API request.Is used to determine the order in which data is displayed in the result array.Cursor used for paging.inthashCode()voidsetExpand(List<QualificationsOption.ExpandEnum> expand) voidsetFilters(QualificationsOptionFilters filters) voidvoidsetSortingRule(QualificationsOption.SortingRuleEnum sortingRule) voidsetStartingAfter(OffsetDateTime startingAfter) sortingRule(QualificationsOption.SortingRuleEnum sortingRule) startingAfter(OffsetDateTime startingAfter) toJson()Convert an instance of QualificationsOption to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_LIMIT
- See Also:
-
SERIALIZED_NAME_STARTING_AFTER
- See Also:
-
SERIALIZED_NAME_FILTERS
- See Also:
-
SERIALIZED_NAME_EXPAND
- See Also:
-
SERIALIZED_NAME_SORTING_RULE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QualificationsOption
public QualificationsOption()
-
-
Method Details
-
limit
-
getLimit
The maximum number of redeemables to be returned in the API request. The actual number of returned redeemables will be determined by the API. The default value is set to 5 maximum: 100- Returns:
- limit
-
setLimit
-
startingAfter
-
getStartingAfter
Cursor used for paging.- Returns:
- startingAfter
-
setStartingAfter
-
filters
-
getFilters
Get filters- Returns:
- filters
-
setFilters
-
expand
-
addExpandItem
-
getExpand
The expand array lets you configure the parameters included in the response. Depending on the strings included in the array, the response will contain different details. | **Expand Option** | **Response Body** | |:---|:---| | [`\"redeemable\"`] | Returns the redeemables':<br>- metadata<br>- redeemable name,<br>- campaign name,<br>- campaign ID| | [`\"category\"`] | - Returns an expanded `categories` object, showing details about the category. | | [`\"validation_rules\"`] | - Returns an expanded `validation_rules` object, showing details about the validation rules. |- Returns:
- expand
-
setExpand
-
sortingRule
-
getSortingRule
Is used to determine the order in which data is displayed in the result array. - `DEFAULT` - Sorting descending by `created_at` - `BEST_DEAL` - Sorting descending by `total_applied_discount_amount` - `LEAST_DEAL` - Sorting ascending by `total_applied_discount_amount`- Returns:
- sortingRule
-
setSortingRule
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of QualificationsOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QualificationsOption
- Throws:
IOException- if the JSON string is invalid with respect to QualificationsOption
-
toJson
Convert an instance of QualificationsOption to an JSON string- Returns:
- JSON string
-