Class: Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
Specifies invoicing frequency.
-
#interval_count ⇒ Object
The number of intervals between invoices.
Instance Method Summary collapse
-
#initialize(interval: nil, interval_count: nil) ⇒ PendingInvoiceItemInterval
constructor
A new instance of PendingInvoiceItemInterval.
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.
2209 2210 2211 2212 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2209 def initialize(interval: nil, interval_count: nil) @interval = interval @interval_count = interval_count end |
Instance Attribute Details
#interval ⇒ Object
Specifies invoicing frequency. Either day, week, month or year.
2205 2206 2207 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2205 def interval @interval end |
#interval_count ⇒ Object
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).
2207 2208 2209 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2207 def interval_count @interval_count end |