Class: Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/terminal/configuration_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) ⇒ Cad

Returns a new instance of Cad.



713
714
715
716
717
# File 'lib/stripe/services/terminal/configuration_service.rb', line 713

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_amountsObject

Fixed amounts displayed when collecting a tip



707
708
709
# File 'lib/stripe/services/terminal/configuration_service.rb', line 707

def fixed_amounts
  @fixed_amounts
end

#percentagesObject

Percentages displayed when collecting a tip



709
710
711
# File 'lib/stripe/services/terminal/configuration_service.rb', line 709

def percentages
  @percentages
end

#smart_tip_thresholdObject

Below this amount, fixed amounts will be displayed; above it, percentages will be displayed



711
712
713
# File 'lib/stripe/services/terminal/configuration_service.rb', line 711

def smart_tip_threshold
  @smart_tip_threshold
end