Class: Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(interval: nil, interval_count: nil) ⇒ PendingInvoiceItemInterval

Returns a new instance of PendingInvoiceItemInterval.



2383
2384
2385
2386
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2383

def initialize(interval: nil, interval_count: nil)
  @interval = interval
  @interval_count = interval_count
end

Instance Attribute Details

#intervalObject

Specifies invoicing frequency. Either ‘day`, `week`, `month` or `year`.



2379
2380
2381
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2379

def interval
  @interval
end

#interval_countObject

The number of intervals between invoices. For example, ‘interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).



2381
2382
2383
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2381

def interval_count
  @interval_count
end