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



99
100
101
# File 'lib/stripe/resources/price.rb', line 99

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.



101
102
103
# File 'lib/stripe/resources/price.rb', line 101

def interval_count
  @interval_count
end

#meterObject (readonly)

The meter tracking the usage of a metered price



103
104
105
# File 'lib/stripe/resources/price.rb', line 103

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`](stripe.com/docs/api#create_subscription-trial_from_plan).



105
106
107
# File 'lib/stripe/resources/price.rb', line 105

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`.



107
108
109
# File 'lib/stripe/resources/price.rb', line 107

def usage_type
  @usage_type
end

Class Method Details

.field_remappingsObject



113
114
115
# File 'lib/stripe/resources/price.rb', line 113

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



109
110
111
# File 'lib/stripe/resources/price.rb', line 109

def self.inner_class_types
  @inner_class_types = {}
end