Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::LodgingDatum::Total::Tax::Tax

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_capture_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, rate: nil, type: nil) ⇒ Tax

Returns a new instance of Tax.



1633
1634
1635
1636
1637
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1633

def initialize(amount: nil, rate: nil, type: nil)
  @amount = amount
  @rate = rate
  @type = type
end

Instance Attribute Details

#amountObject

Tax amount in cents.



1627
1628
1629
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1627

def amount
  @amount
end

#rateObject

Tax rate.



1629
1630
1631
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1629

def rate
  @rate
end

#typeObject

Type of tax applied.



1631
1632
1633
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1631

def type
  @type
end