Class: Stripe::Plan::Tier
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Plan::Tier
- Defined in:
- lib/stripe/resources/plan.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
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
#flat_amount ⇒ Object (readonly)
Price for the entire tier.
26 27 28 |
# File 'lib/stripe/resources/plan.rb', line 26 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.
28 29 30 |
# File 'lib/stripe/resources/plan.rb', line 28 def flat_amount_decimal @flat_amount_decimal end |
#unit_amount ⇒ Object (readonly)
Per unit price for units relevant to the tier.
30 31 32 |
# File 'lib/stripe/resources/plan.rb', line 30 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.
32 33 34 |
# File 'lib/stripe/resources/plan.rb', line 32 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.
34 35 36 |
# File 'lib/stripe/resources/plan.rb', line 34 def up_to @up_to end |