Class: Stripe::PaymentIntentCreateParams::PaymentDetails::LodgingDatum::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.



1852
1853
1854
1855
1856
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1852

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

Instance Attribute Details

#amountObject

Tax amount in cents.



1846
1847
1848
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1846

def amount
  @amount
end

#rateObject

Tax rate.



1848
1849
1850
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1848

def rate
  @rate
end

#typeObject

Type of tax applied.



1850
1851
1852
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1850

def type
  @type
end