Class: Stripe::V2::Billing::Cadence::BillingCycle
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::V2::Billing::Cadence::BillingCycle
- Defined in:
- lib/stripe/resources/v2/billing/cadence.rb
Defined Under Namespace
Classes: Day, Month, Week, Year
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Specific configuration for determining billing dates when type=day.
-
#interval_count ⇒ Object
readonly
The number of intervals (specified in the interval attribute) between cadence billings.
-
#month ⇒ Object
readonly
Specific configuration for determining billing dates when type=month.
-
#type ⇒ Object
readonly
The frequency at which a cadence bills.
-
#week ⇒ Object
readonly
Specific configuration for determining billing dates when type=week.
-
#year ⇒ Object
readonly
Specific configuration for determining billing dates when type=year.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#day ⇒ Object (readonly)
Specific configuration for determining billing dates when type=day.
166 167 168 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 166 def day @day end |
#interval_count ⇒ Object (readonly)
The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months.
162 163 164 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 162 def interval_count @interval_count end |
#month ⇒ Object (readonly)
Specific configuration for determining billing dates when type=month.
168 169 170 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 168 def month @month end |
#type ⇒ Object (readonly)
The frequency at which a cadence bills.
164 165 166 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 164 def type @type end |
#week ⇒ Object (readonly)
Specific configuration for determining billing dates when type=week.
170 171 172 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 170 def week @week end |
#year ⇒ Object (readonly)
Specific configuration for determining billing dates when type=year.
172 173 174 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 172 def year @year end |
Class Method Details
.field_remappings ⇒ Object
178 179 180 |
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 178 def self.field_remappings @field_remappings = {} end |