Package io.voucherify.client.model
Class QualificationsCheckEligibilityRequestBody
java.lang.Object
io.voucherify.client.model.QualificationsCheckEligibilityRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class QualificationsCheckEligibilityRequestBody
extends Object
Request body schema for **POST** `v1/qualifications`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDefines the scenario Voucherify should consider during the qualification process. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of QualificationsCheckEligibilityRequestBody given an JSON stringGet customerA set of key/value pairs that you can send in the request body to check against redeemables requiring **redemption** metadata validation rules to be satisfied.Get optionsgetOrder()Get orderDefines the scenario Voucherify should consider during the qualification process.Is correspondent to Customer's source_idinthashCode()options(QualificationsOption options) voidsetCustomer(Customer customer) voidsetMetadata(Object metadata) voidsetOptions(QualificationsOption options) voidvoidvoidsetTrackingId(String trackingId) toJson()Convert an instance of QualificationsCheckEligibilityRequestBody to an JSON stringtoString()trackingId(String trackingId)
-
Field Details
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_TRACKING_ID
- See Also:
-
SERIALIZED_NAME_SCENARIO
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QualificationsCheckEligibilityRequestBody
public QualificationsCheckEligibilityRequestBody()
-
-
Method Details
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
trackingId
-
getTrackingId
Is correspondent to Customer's source_id- Returns:
- trackingId
-
setTrackingId
-
scenario
public QualificationsCheckEligibilityRequestBody scenario(QualificationsCheckEligibilityRequestBody.ScenarioEnum scenario) -
getScenario
Defines the scenario Voucherify should consider during the qualification process. - `ALL` - Scenario that returns all redeemables available for the customer in one API request. This scenario is used by default when no value is selected. - `CUSTOMER_WALLET` - returns vouchers applicable to the customer's cart based on the vouchers assigned to the customer's profile. - `AUDIENCE_ONLY` - returns all vouchers, promotion tiers, and campaigns available to the customer. Voucherify validates the rules based on the customer profile only. - `PRODUCTS` - returns all promotions available for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT` - returns all promotions available for products when a discount is defined as applicable to specific item(s). - `PROMOTION_STACKS` - returns the applicable promotion stacks. - `PRODUCTS_BY_CUSTOMER` - returns all promotions available for a customer for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT_BY_CUSTOMER` - returns all promotions available for a customer for products when a discount is defined as applicable to specific item(s).- Returns:
- scenario
-
setScenario
-
options
-
getOptions
Get options- Returns:
- options
-
setOptions
-
metadata
-
getMetadata
A set of key/value pairs that you can send in the request body to check against redeemables requiring **redemption** metadata validation rules to be satisfied. The validation runs against rules that are defined through the <!-- [Create Validation Rules](https://docs.voucherify.io/reference/create-validation-rules) -->[Create Validation Rules](ref:create-validation-rules) endpoint or via the Dashboard; in the _Advanced Rule Builder_ → _Advanced_ → _Redemption metadata satisfy_ or _Basic Builder_ → _Attributes match_ → _REDEMPTION METADATA_. [Read more](https://support.voucherify.io/article/148-how-to-build-a-rule).- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static QualificationsCheckEligibilityRequestBody fromJson(String jsonString) throws IOException Create an instance of QualificationsCheckEligibilityRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QualificationsCheckEligibilityRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to QualificationsCheckEligibilityRequestBody
-
toJson
Convert an instance of QualificationsCheckEligibilityRequestBody to an JSON string- Returns:
- JSON string
-