Class: Stripe::V2::Billing::IntentCreateParams::CadenceData::BillingCycle
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams::CadenceData::BillingCycle
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: Day, Month, Week, Year
Instance Attribute Summary collapse
-
#day ⇒ Object
Specific configuration for determining billing dates when type=day.
-
#interval_count ⇒ Object
The number of intervals (specified in the interval attribute) between cadence billings.
-
#month ⇒ Object
Specific configuration for determining billing dates when type=month.
-
#type ⇒ Object
The frequency at which a cadence bills.
-
#week ⇒ Object
Specific configuration for determining billing dates when type=week.
-
#year ⇒ Object
Specific configuration for determining billing dates when type=year.
Instance Method Summary collapse
-
#initialize(interval_count: nil, type: nil, day: nil, month: nil, week: nil, year: nil) ⇒ BillingCycle
constructor
A new instance of BillingCycle.
Methods inherited from RequestParams
Constructor Details
#initialize(interval_count: nil, type: nil, day: nil, month: nil, week: nil, year: nil) ⇒ BillingCycle
Returns a new instance of BillingCycle.
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 680 def initialize( interval_count: nil, type: nil, day: nil, month: nil, week: nil, year: nil ) @interval_count = interval_count @type = type @day = day @month = month @week = week @year = year end |
Instance Attribute Details
#day ⇒ Object
Specific configuration for determining billing dates when type=day.
672 673 674 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 672 def day @day end |
#interval_count ⇒ Object
The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. If this is not provided, it will default to 1.
668 669 670 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 668 def interval_count @interval_count end |
#month ⇒ Object
Specific configuration for determining billing dates when type=month.
674 675 676 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 674 def month @month end |
#type ⇒ Object
The frequency at which a cadence bills.
670 671 672 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 670 def type @type end |
#week ⇒ Object
Specific configuration for determining billing dates when type=week.
676 677 678 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 676 def week @week end |
#year ⇒ Object
Specific configuration for determining billing dates when type=year.
678 679 680 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 678 def year @year end |