Class: VertexClient::Response::DistributeTax

Inherits:
Base
  • Object
show all
Defined in:
lib/vertex_client/responses/distribute_tax.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VertexClient::Response::Base

Instance Method Details

#subtotalObject



4
5
6
# File 'lib/vertex_client/responses/distribute_tax.rb', line 4

def subtotal
  @subtotal ||= BigDecimal.new(@body[:sub_total])
end

#totalObject



12
13
14
# File 'lib/vertex_client/responses/distribute_tax.rb', line 12

def total
  @total ||= BigDecimal.new(@body[:total])
end

#total_taxObject



8
9
10
# File 'lib/vertex_client/responses/distribute_tax.rb', line 8

def total_tax
  @total_tax ||= BigDecimal.new(@body[:total_tax])
end