Class: Stripe::PriceListParams::Recurring

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/price_list_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, meter: nil, usage_type: nil) ⇒ Recurring

Returns a new instance of Recurring.



32
33
34
35
36
# File 'lib/stripe/params/price_list_params.rb', line 32

def initialize(interval: nil, meter: nil, usage_type: nil)
  @interval = interval
  @meter = meter
  @usage_type = usage_type
end

Instance Attribute Details

#intervalObject

Filter by billing frequency. Either ‘day`, `week`, `month` or `year`.



26
27
28
# File 'lib/stripe/params/price_list_params.rb', line 26

def interval
  @interval
end

#meterObject

Filter by the price’s meter.



28
29
30
# File 'lib/stripe/params/price_list_params.rb', line 28

def meter
  @meter
end

#usage_typeObject

Filter by the usage type for this price. Can be either ‘metered` or `licensed`.



30
31
32
# File 'lib/stripe/params/price_list_params.rb', line 30

def usage_type
  @usage_type
end