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(day: nil, interval_count: nil, month: nil, type: nil, week: nil, year: nil) ⇒ BillingCycle
constructor
A new instance of BillingCycle.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(day: nil, interval_count: nil, month: nil, type: nil, week: nil, year: nil) ⇒ BillingCycle
Returns a new instance of BillingCycle.
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 762 def initialize( day: nil, interval_count: nil, month: nil, type: nil, week: nil, year: nil ) @day = day @interval_count = interval_count @month = month @type = type @week = week @year = year end |
Instance Attribute Details
#day ⇒ Object
Specific configuration for determining billing dates when type=day.
748 749 750 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 748 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 not provided, this defaults to 1.
752 753 754 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 752 def interval_count @interval_count end |
#month ⇒ Object
Specific configuration for determining billing dates when type=month.
754 755 756 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 754 def month @month end |
#type ⇒ Object
The frequency at which a cadence bills.
756 757 758 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 756 def type @type end |
#week ⇒ Object
Specific configuration for determining billing dates when type=week.
758 759 760 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 758 def week @week end |
#year ⇒ Object
Specific configuration for determining billing dates when type=year.
760 761 762 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 760 def year @year end |