Class: Stripe::V2::Billing::Cadence::BillingCycle

Inherits:
StripeObject
  • Object
show all
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

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, 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

#dayObject (readonly)

Specific configuration for determining billing dates when type=day.



99
100
101
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 99

def day
  @day
end

#interval_countObject (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.



95
96
97
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 95

def interval_count
  @interval_count
end

#monthObject (readonly)

Specific configuration for determining billing dates when type=month.



101
102
103
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 101

def month
  @month
end

#typeObject (readonly)

The frequency at which a cadence bills.



97
98
99
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 97

def type
  @type
end

#weekObject (readonly)

Specific configuration for determining billing dates when type=week.



103
104
105
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 103

def week
  @week
end

#yearObject (readonly)

Specific configuration for determining billing dates when type=year.



105
106
107
# File 'lib/stripe/resources/v2/billing/cadence.rb', line 105

def year
  @year
end