Class: Stripe::SubscriptionService::CreateParams::BillingCycleAnchorConfig
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SubscriptionService::CreateParams::BillingCycleAnchorConfig
- Defined in:
- lib/stripe/services/subscription_service.rb
Instance Attribute Summary collapse
-
#day_of_month ⇒ Object
The day of the month the billing_cycle_anchor should be.
-
#hour ⇒ Object
The hour of the day the billing_cycle_anchor should be.
-
#minute ⇒ Object
The minute of the hour the billing_cycle_anchor should be.
-
#month ⇒ Object
The month to start full cycle billing periods.
-
#second ⇒ Object
The second of the minute the billing_cycle_anchor should be.
Instance Method Summary collapse
-
#initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil) ⇒ BillingCycleAnchorConfig
constructor
A new instance of BillingCycleAnchorConfig.
Methods inherited from RequestParams
Constructor Details
#initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil) ⇒ BillingCycleAnchorConfig
Returns a new instance of BillingCycleAnchorConfig.
1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/stripe/services/subscription_service.rb', line 1039 def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil) @day_of_month = day_of_month @hour = hour @minute = minute @month = month @second = second end |
Instance Attribute Details
#day_of_month ⇒ Object
The day of the month the billing_cycle_anchor should be. Ranges from 1 to 31.
1029 1030 1031 |
# File 'lib/stripe/services/subscription_service.rb', line 1029 def day_of_month @day_of_month end |
#hour ⇒ Object
The hour of the day the billing_cycle_anchor should be. Ranges from 0 to 23.
1031 1032 1033 |
# File 'lib/stripe/services/subscription_service.rb', line 1031 def hour @hour end |
#minute ⇒ Object
The minute of the hour the billing_cycle_anchor should be. Ranges from 0 to 59.
1033 1034 1035 |
# File 'lib/stripe/services/subscription_service.rb', line 1033 def minute @minute end |
#month ⇒ Object
The month to start full cycle billing periods. Ranges from 1 to 12.
1035 1036 1037 |
# File 'lib/stripe/services/subscription_service.rb', line 1035 def month @month end |
#second ⇒ Object
The second of the minute the billing_cycle_anchor should be. Ranges from 0 to 59.
1037 1038 1039 |
# File 'lib/stripe/services/subscription_service.rb', line 1037 def second @second end |