Class: Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::Total::Tax::Tax

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of Tax.



1416
1417
1418
1419
1420
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1416

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

Instance Attribute Details

#amountObject

Tax amount.



1410
1411
1412
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1410

def amount
  @amount
end

#rateObject

Tax rate.



1412
1413
1414
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1412

def rate
  @rate
end

#typeObject

Type of tax.



1414
1415
1416
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1414

def type
  @type
end