Class: Stripe::Price::Tier
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Price::Tier
- Defined in:
- lib/stripe/resources/price.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#flat_amount ⇒ Object
readonly
Price for the entire tier.
-
#flat_amount_decimal ⇒ Object
readonly
Same as ‘flat_amount`, but contains a decimal value with at most 12 decimal places.
-
#unit_amount ⇒ Object
readonly
Per unit price for units relevant to the tier.
-
#unit_amount_decimal ⇒ Object
readonly
Same as ‘unit_amount`, but contains a decimal value with at most 12 decimal places.
-
#up_to ⇒ Object
readonly
Up to and including to this quantity will be contained in the tier.
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
#flat_amount ⇒ Object (readonly)
Price for the entire tier.
120 121 122 |
# File 'lib/stripe/resources/price.rb', line 120 def flat_amount @flat_amount end |
#flat_amount_decimal ⇒ Object (readonly)
Same as ‘flat_amount`, but contains a decimal value with at most 12 decimal places.
122 123 124 |
# File 'lib/stripe/resources/price.rb', line 122 def flat_amount_decimal @flat_amount_decimal end |
#unit_amount ⇒ Object (readonly)
Per unit price for units relevant to the tier.
124 125 126 |
# File 'lib/stripe/resources/price.rb', line 124 def unit_amount @unit_amount end |
#unit_amount_decimal ⇒ Object (readonly)
Same as ‘unit_amount`, but contains a decimal value with at most 12 decimal places.
126 127 128 |
# File 'lib/stripe/resources/price.rb', line 126 def unit_amount_decimal @unit_amount_decimal end |
#up_to ⇒ Object (readonly)
Up to and including to this quantity will be contained in the tier.
128 129 130 |
# File 'lib/stripe/resources/price.rb', line 128 def up_to @up_to end |
Class Method Details
.field_remappings ⇒ Object
134 135 136 |
# File 'lib/stripe/resources/price.rb', line 134 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
130 131 132 |
# File 'lib/stripe/resources/price.rb', line 130 def self.inner_class_types @inner_class_types = {} end |