Class: Stripe::CreditNoteCreateParams::Line::TaxAmount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CreditNoteCreateParams::Line::TaxAmount
- Defined in:
- lib/stripe/params/credit_note_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount, in cents (or local equivalent), of the tax.
-
#tax_rate ⇒ Object
The id of the tax rate for this tax amount.
-
#taxable_amount ⇒ Object
The amount on which tax is calculated, in cents (or local equivalent).
Instance Method Summary collapse
-
#initialize(amount: nil, tax_rate: nil, taxable_amount: nil) ⇒ TaxAmount
constructor
A new instance of TaxAmount.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, tax_rate: nil, taxable_amount: nil) ⇒ TaxAmount
15 16 17 18 19 |
# File 'lib/stripe/params/credit_note_create_params.rb', line 15 def initialize(amount: nil, tax_rate: nil, taxable_amount: nil) @amount = amount @tax_rate = tax_rate @taxable_amount = taxable_amount end |
Instance Attribute Details
#amount ⇒ Object
The amount, in cents (or local equivalent), of the tax.
9 10 11 |
# File 'lib/stripe/params/credit_note_create_params.rb', line 9 def amount @amount end |
#tax_rate ⇒ Object
The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe.
11 12 13 |
# File 'lib/stripe/params/credit_note_create_params.rb', line 11 def tax_rate @tax_rate end |
#taxable_amount ⇒ Object
The amount on which tax is calculated, in cents (or local equivalent).
13 14 15 |
# File 'lib/stripe/params/credit_note_create_params.rb', line 13 def taxable_amount @taxable_amount end |