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.



1305
1306
1307
1308
1309
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1305

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

Instance Attribute Details

#amountObject

Tax amount.



1299
1300
1301
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1299

def amount
  @amount
end

#rateObject

Tax rate.



1301
1302
1303
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1301

def rate
  @rate
end

#typeObject

Type of tax.



1303
1304
1305
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1303

def type
  @type
end