Class: CalculationResponse

Inherits:
ExactorResponse show all
Defined in:
app/helpers/exactor_api_objects.rb

Instance Attribute Summary collapse

Attributes inherited from ExactorResponse

#is_valid

Instance Method Summary collapse

Constructor Details

#initializeCalculationResponse

Returns a new instance of CalculationResponse.



363
364
365
# File 'app/helpers/exactor_api_objects.rb', line 363

def initialize
  @line_items = {}
end

Instance Attribute Details

#invoice_idObject

Returns the value of attribute invoice_id.



361
362
363
# File 'app/helpers/exactor_api_objects.rb', line 361

def invoice_id
  @invoice_id
end

#total_taxObject

Returns the value of attribute total_tax.



361
362
363
# File 'app/helpers/exactor_api_objects.rb', line 361

def total_tax
  @total_tax
end

Instance Method Details

#add_line_item(id, inline_tax) ⇒ Object



367
368
369
# File 'app/helpers/exactor_api_objects.rb', line 367

def add_line_item(id, inline_tax)
  @line_items[id]=inline_tax
end

#get_line_item_tax(id) ⇒ Object



371
372
373
# File 'app/helpers/exactor_api_objects.rb', line 371

def get_line_item_tax(id)
  return @line_items[id]
end