Class: Api::Taxjar::TaxLineItem

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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_rateObject (readonly)

Returns the value of attribute combined_tax_rate

Returns:

  • (Object)

    the current value of 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

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



8
9
10
# File 'app/services/api/taxjar/tax_line_item.rb', line 8

def id
  @id
end

#tax_collectableObject (readonly)

Returns the value of attribute tax_collectable

Returns:

  • (Object)

    the current value of tax_collectable



8
9
10
# File 'app/services/api/taxjar/tax_line_item.rb', line 8

def tax_collectable
  @tax_collectable
end

#taxable_amountObject (readonly)

Returns the value of attribute taxable_amount

Returns:

  • (Object)

    the current value of taxable_amount



8
9
10
# File 'app/services/api/taxjar/tax_line_item.rb', line 8

def taxable_amount
  @taxable_amount
end