class Taxamo::GetDomesticSummaryReportOut

Attributes

currency_code[RW]
domestic_refunds_amount[RW]
domestic_refunds_tax_amount[RW]
domestic_sales_amount[RW]
domestic_tax_amount[RW]
end_date[RW]
eu_tax_deducted_refunds[RW]
eu_tax_deducted_sales[RW]
global_refunds_amount[RW]
global_refunds_tax_amount[RW]
global_sales_amount[RW]
global_sales_tax_amount[RW]
start_date[RW]

Public Class Methods

attribute_map() click to toggle source

:internal => :external

# File lib/taxamo/models/getdomesticsummaryreportout.rb, line 18
def self.attribute_map
  {
    :end_date => :end_date,
    :domestic_refunds_amount => :domestic_refunds_amount,
    :currency_code => :currency_code,
    :global_refunds_tax_amount => :global_refunds_tax_amount,
    :domestic_refunds_tax_amount => :domestic_refunds_tax_amount,
    :eu_tax_deducted_refunds => :eu_tax_deducted_refunds,
    :global_sales_amount => :global_sales_amount,
    :global_refunds_amount => :global_refunds_amount,
    :global_sales_tax_amount => :global_sales_tax_amount,
    :eu_tax_deducted_sales => :eu_tax_deducted_sales,
    :start_date => :start_date,
    :domestic_tax_amount => :domestic_tax_amount,
    :domestic_sales_amount => :domestic_sales_amount

  }
end
new(attributes = {}) click to toggle source
# File lib/taxamo/models/getdomesticsummaryreportout.rb, line 37
def initialize(attributes = {})
  return if attributes.nil? or attributes.empty?
  # Morph attribute keys into undescored rubyish style
  if attributes.key?("end_date")
    @end_date = attributes["end_date"]
      
  end
  if attributes.key?("domestic_refunds_amount")
    @domestic_refunds_amount = attributes["domestic_refunds_amount"]
      
  end
  if attributes.key?("currency_code")
    @currency_code = attributes["currency_code"]
      
  end
  if attributes.key?("global_refunds_tax_amount")
    @global_refunds_tax_amount = attributes["global_refunds_tax_amount"]
      
  end
  if attributes.key?("domestic_refunds_tax_amount")
    @domestic_refunds_tax_amount = attributes["domestic_refunds_tax_amount"]
      
  end
  if attributes.key?("eu_tax_deducted_refunds")
    @eu_tax_deducted_refunds = attributes["eu_tax_deducted_refunds"]
      
  end
  if attributes.key?("global_sales_amount")
    @global_sales_amount = attributes["global_sales_amount"]
      
  end
  if attributes.key?("global_refunds_amount")
    @global_refunds_amount = attributes["global_refunds_amount"]
      
  end
  if attributes.key?("global_sales_tax_amount")
    @global_sales_tax_amount = attributes["global_sales_tax_amount"]
      
  end
  if attributes.key?("eu_tax_deducted_sales")
    @eu_tax_deducted_sales = attributes["eu_tax_deducted_sales"]
      
  end
  if attributes.key?("start_date")
    @start_date = attributes["start_date"]
      
  end
  if attributes.key?("domestic_tax_amount")
    @domestic_tax_amount = attributes["domestic_tax_amount"]
      
  end
  if attributes.key?("domestic_sales_amount")
    @domestic_sales_amount = attributes["domestic_sales_amount"]
      
  end
  

end

Public Instance Methods

to_body() click to toggle source
# File lib/taxamo/models/getdomesticsummaryreportout.rb, line 96
def to_body
  body = {}
  self.class.attribute_map.each_pair do |key, value|
    v = self.send(key)
    unless v.nil?
      if v.is_a?(Array)
        array = Array.new
        v.each do |item|
          if item.respond_to?("to_body".to_sym)
            array.push item.to_body
          else
            array.push item
          end
        end
        body[value] = array
      else
        if v.respond_to?("to_body".to_sym)
          body[value] = v.to_body
        else
          body[value] = v
        end
      end
    end
  end
  body
end