Class: Stripe::Terminal::ConfigurationCreateParams::Tipping::Gbp
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::ConfigurationCreateParams::Tipping::Gbp
- Defined in:
- lib/stripe/params/terminal/configuration_create_params.rb
Instance Attribute Summary collapse
-
#fixed_amounts ⇒ Object
Fixed amounts displayed when collecting a tip.
-
#percentages ⇒ Object
Percentages displayed when collecting a tip.
-
#smart_tip_threshold ⇒ Object
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed.
Instance Method Summary collapse
-
#initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) ⇒ Gbp
constructor
A new instance of Gbp.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) ⇒ Gbp
Returns a new instance of Gbp.
196 197 198 199 200 |
# File 'lib/stripe/params/terminal/configuration_create_params.rb', line 196 def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) @fixed_amounts = fixed_amounts @percentages = percentages @smart_tip_threshold = smart_tip_threshold end |
Instance Attribute Details
#fixed_amounts ⇒ Object
Fixed amounts displayed when collecting a tip
190 191 192 |
# File 'lib/stripe/params/terminal/configuration_create_params.rb', line 190 def fixed_amounts @fixed_amounts end |
#percentages ⇒ Object
Percentages displayed when collecting a tip
192 193 194 |
# File 'lib/stripe/params/terminal/configuration_create_params.rb', line 192 def percentages @percentages end |
#smart_tip_threshold ⇒ Object
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
194 195 196 |
# File 'lib/stripe/params/terminal/configuration_create_params.rb', line 194 def smart_tip_threshold @smart_tip_threshold end |