Class: Dodopayments::Models::DiscountListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::DiscountListParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/dodopayments/models/discount_list_params.rb
Overview
Instance Attribute Summary collapse
-
#active ⇒ Boolean?
Filter by active status (true = not expired, false = expired).
-
#code ⇒ String?
Filter by discount code (partial match, case-insensitive).
-
#discount_type ⇒ Symbol, ...
Filter by discount type (percentage).
-
#page_number ⇒ Integer?
Page number (default = 0).
-
#page_size ⇒ Integer?
Page size (default = 10, max = 100).
-
#product_id ⇒ String?
Filter by product restriction (only discounts that apply to this product).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(active: nil, code: nil, discount_type: nil, page_number: nil, page_size: nil, product_id: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/dodopayments/models/discount_list_params.rb', line 46
|
Instance Attribute Details
#active ⇒ Boolean?
Filter by active status (true = not expired, false = expired)
14 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 14 optional :active, Dodopayments::Internal::Type::Boolean |
#code ⇒ String?
Filter by discount code (partial match, case-insensitive)
20 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 20 optional :code, String |
#discount_type ⇒ Symbol, ...
Filter by discount type (percentage)
26 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 26 optional :discount_type, enum: -> { Dodopayments::DiscountType } |
#page_number ⇒ Integer?
Page number (default = 0).
32 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 32 optional :page_number, Integer |
#page_size ⇒ Integer?
Page size (default = 10, max = 100).
38 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 38 optional :page_size, Integer |
#product_id ⇒ String?
Filter by product restriction (only discounts that apply to this product)
44 |
# File 'lib/dodopayments/models/discount_list_params.rb', line 44 optional :product_id, String |