Class: VoucherifySdk::QualificationsApi
- Inherits:
-
Object
- Object
- VoucherifySdk::QualificationsApi
- Defined in:
- lib/VoucherifySdk/api/qualifications_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#check_eligibility(opts = {}) ⇒ QualificationsCheckEligibilityResponseBody
Check Eligibility 🚧 The Qualifications endpoint ignores the rules checking: - Limit of total redeemed discount amount per campaign - Limit of total redemptions count per campaign - Redemptions per customer - Redemptions per customer in a campaign Generate a list of redeemables that are applicable in the context of the customer and order.
-
#initialize(api_client = ApiClient.default) ⇒ QualificationsApi
constructor
A new instance of QualificationsApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ QualificationsApi
Returns a new instance of QualificationsApi.
19 20 21 |
# File 'lib/VoucherifySdk/api/qualifications_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/VoucherifySdk/api/qualifications_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#check_eligibility(opts = {}) ⇒ QualificationsCheckEligibilityResponseBody
Check Eligibility
27 28 29 30 |
# File 'lib/VoucherifySdk/api/qualifications_api.rb', line 27 def check_eligibility(opts = {}) data, _status_code, _headers = check_eligibility_with_http_info(opts) data end |