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.



1419
1420
1421
1422
1423
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1419

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

Instance Attribute Details

#amountObject

Tax amount.



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

def amount
  @amount
end

#rateObject

Tax rate.



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

def rate
  @rate
end

#typeObject

Type of tax.



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

def type
  @type
end