Class: Api::Taxjar::TaxLineItem
- Inherits:
-
Data
- Object
- Data
- Api::Taxjar::TaxLineItem
- Defined in:
- app/services/api/taxjar/tax_line_item.rb
Overview
One line item from the breakdown of a POST /v2/taxes response.
Taxes::GetTaxRate reads id (matched against our integer line ids),
taxable_amount, tax_collectable, and combined_tax_rate.
Instance Attribute Summary collapse
-
#combined_tax_rate ⇒ Object
readonly
Returns the value of attribute combined_tax_rate.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tax_collectable ⇒ Object
readonly
Returns the value of attribute tax_collectable.
-
#taxable_amount ⇒ Object
readonly
Returns the value of attribute taxable_amount.
Instance Method Summary collapse
-
#initialize(id: nil, taxable_amount: nil, tax_collectable: nil, combined_tax_rate: nil) ⇒ TaxLineItem
constructor
A new instance of TaxLineItem.
Constructor Details
#initialize(id: nil, taxable_amount: nil, tax_collectable: nil, combined_tax_rate: nil) ⇒ TaxLineItem
Returns a new instance of TaxLineItem.
9 |
# File 'app/services/api/taxjar/tax_line_item.rb', line 9 def initialize(id: nil, taxable_amount: nil, tax_collectable: nil, combined_tax_rate: nil) = super |
Instance Attribute Details
#combined_tax_rate ⇒ Object (readonly)
Returns the value of attribute combined_tax_rate
8 9 10 |
# File 'app/services/api/taxjar/tax_line_item.rb', line 8 def combined_tax_rate @combined_tax_rate end |
#id ⇒ Object (readonly)
Returns the value of attribute id
8 9 10 |
# File 'app/services/api/taxjar/tax_line_item.rb', line 8 def id @id end |
#tax_collectable ⇒ Object (readonly)
Returns the value of attribute tax_collectable
8 9 10 |
# File 'app/services/api/taxjar/tax_line_item.rb', line 8 def tax_collectable @tax_collectable end |
#taxable_amount ⇒ Object (readonly)
Returns the value of attribute taxable_amount
8 9 10 |
# File 'app/services/api/taxjar/tax_line_item.rb', line 8 def taxable_amount @taxable_amount end |