Class: Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Total::Tax::Tax

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/charge_update_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.



458
459
460
461
462
# File 'lib/stripe/params/charge_update_params.rb', line 458

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

Instance Attribute Details

#amountObject

Tax amount.



452
453
454
# File 'lib/stripe/params/charge_update_params.rb', line 452

def amount
  @amount
end

#rateObject

Tax rate applied.



454
455
456
# File 'lib/stripe/params/charge_update_params.rb', line 454

def rate
  @rate
end

#typeObject

Type of tax applied.



456
457
458
# File 'lib/stripe/params/charge_update_params.rb', line 456

def type
  @type
end