Class: Stripe::V2::Billing::Intent::CadenceData::BillingCycle

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/intent.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

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?, field_encodings, #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.



189
190
191
# File 'lib/stripe/resources/v2/billing/intent.rb', line 189

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.



191
192
193
# File 'lib/stripe/resources/v2/billing/intent.rb', line 191

def interval_count
  @interval_count
end

#monthObject (readonly)

Specific configuration for determining billing dates when type=month.



193
194
195
# File 'lib/stripe/resources/v2/billing/intent.rb', line 193

def month
  @month
end

#typeObject (readonly)

The frequency at which a cadence bills.



195
196
197
# File 'lib/stripe/resources/v2/billing/intent.rb', line 195

def type
  @type
end

#weekObject (readonly)

Specific configuration for determining billing dates when type=week.



197
198
199
# File 'lib/stripe/resources/v2/billing/intent.rb', line 197

def week
  @week
end

#yearObject (readonly)

Specific configuration for determining billing dates when type=year.



199
200
201
# File 'lib/stripe/resources/v2/billing/intent.rb', line 199

def year
  @year
end

Class Method Details

.field_remappingsObject



205
206
207
# File 'lib/stripe/resources/v2/billing/intent.rb', line 205

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



201
202
203
# File 'lib/stripe/resources/v2/billing/intent.rb', line 201

def self.inner_class_types
  @inner_class_types = { day: Day, month: Month, week: Week, year: Year }
end