Class: Stripe::PriceCreateParams::CustomUnitAmount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PriceCreateParams::CustomUnitAmount
- Defined in:
- lib/stripe/params/price_create_params.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Pass in ‘true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`.
-
#maximum ⇒ Object
The maximum unit amount the customer can specify for this item.
-
#minimum ⇒ Object
The minimum unit amount the customer can specify for this item.
-
#preset ⇒ Object
The starting unit amount which can be updated by the customer.
Instance Method Summary collapse
-
#initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil) ⇒ CustomUnitAmount
constructor
A new instance of CustomUnitAmount.
Methods inherited from RequestParams
Constructor Details
#initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil) ⇒ CustomUnitAmount
Returns a new instance of CustomUnitAmount.
87 88 89 90 91 92 |
# File 'lib/stripe/params/price_create_params.rb', line 87 def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil) @enabled = enabled @maximum = maximum @minimum = minimum @preset = preset end |
Instance Attribute Details
#enabled ⇒ Object
Pass in ‘true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`.
79 80 81 |
# File 'lib/stripe/params/price_create_params.rb', line 79 def enabled @enabled end |
#maximum ⇒ Object
The maximum unit amount the customer can specify for this item.
81 82 83 |
# File 'lib/stripe/params/price_create_params.rb', line 81 def maximum @maximum end |
#minimum ⇒ Object
The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
83 84 85 |
# File 'lib/stripe/params/price_create_params.rb', line 83 def minimum @minimum end |
#preset ⇒ Object
The starting unit amount which can be updated by the customer.
85 86 87 |
# File 'lib/stripe/params/price_create_params.rb', line 85 def preset @preset end |