Class: Stripe::Price::Recurring

Inherits:
StripeObject show all
Defined in:
lib/stripe/resources/price.rb

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

#intervalObject (readonly)

The frequency at which a subscription is billed. One of day, week, month or year.



119
120
121
# File 'lib/stripe/resources/price.rb', line 119

def interval
  @interval
end

#interval_countObject (readonly)

The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months.



121
122
123
# File 'lib/stripe/resources/price.rb', line 121

def interval_count
  @interval_count
end

#meterObject (readonly)

The meter tracking the usage of a metered price



123
124
125
# File 'lib/stripe/resources/price.rb', line 123

def meter
  @meter
end

#trial_period_daysObject (readonly)

Default number of trial days when subscribing a customer to this price using trial_from_plan=true.



125
126
127
# File 'lib/stripe/resources/price.rb', line 125

def trial_period_days
  @trial_period_days
end

#usage_typeObject (readonly)

Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.



127
128
129
# File 'lib/stripe/resources/price.rb', line 127

def usage_type
  @usage_type
end

Class Method Details

.field_remappingsObject



133
134
135
# File 'lib/stripe/resources/price.rb', line 133

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



129
130
131
# File 'lib/stripe/resources/price.rb', line 129

def self.inner_class_types
  @inner_class_types = {}
end