Class: Api::Taxjar::Transaction

Inherits:
Data
  • Object
show all
Defined in:
app/services/api/taxjar/transaction.rb

Overview

An order/refund transaction returned by the TaxJar transactions
endpoints. Only sales_tax is read by the submit services.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sales_tax: nil) ⇒ Transaction

Returns a new instance of Transaction.



8
# File 'app/services/api/taxjar/transaction.rb', line 8

def initialize(sales_tax: nil) = super

Instance Attribute Details

#sales_taxObject (readonly)

Returns the value of attribute sales_tax

Returns:

  • (Object)

    the current value of sales_tax



7
8
9
# File 'app/services/api/taxjar/transaction.rb', line 7

def sales_tax
  @sales_tax
end