Class: Stripe::V2::Billing::CustomPricingUnitService::ListParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/custom_pricing_unit_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(active: nil, limit: nil, lookup_keys: nil) ⇒ ListParams

Returns a new instance of ListParams.



17
18
19
20
21
# File 'lib/stripe/services/v2/billing/custom_pricing_unit_service.rb', line 17

def initialize(active: nil, limit: nil, lookup_keys: nil)
  @active = active
  @limit = limit
  @lookup_keys = lookup_keys
end

Instance Attribute Details

#activeObject

Filter for active/inactive custom pricing units. Mutually exclusive with ‘lookup_keys`.



10
11
12
# File 'lib/stripe/services/v2/billing/custom_pricing_unit_service.rb', line 10

def active
  @active
end

#limitObject

Optionally set the maximum number of results per page. Defaults to 20.



12
13
14
# File 'lib/stripe/services/v2/billing/custom_pricing_unit_service.rb', line 12

def limit
  @limit
end

#lookup_keysObject

Filter by lookup keys. Mutually exclusive with ‘active`. You can specify up to 10 lookup keys.



15
16
17
# File 'lib/stripe/services/v2/billing/custom_pricing_unit_service.rb', line 15

def lookup_keys
  @lookup_keys
end