class WebmaniabrNfeRuby::Models::Order

Attributes

discount[RW]
payment[RW]
presence[RW]
ship_tax[RW]
ship_value[RW]
total[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/models/order.rb, line 7
def initialize(options = {})
  @payment                = options[:payment]
  @presence               = options[:presence]
  @ship_type              = options[:ship_type]
  @ship_value             = options[:ship_value]
  @discount               = options[:discount]
  @total                  = options[:total]
  @other_costs            = options[:other_costs]
  @fisco_informations     = options[:fisco_informations]
  @complement_information = options[:complement_information]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/models/order.rb, line 19
def to_hash
  {
    pagamento: @payment,
    presenca: @presence,
    modalidade_frete: @ship_type,
    frete: @ship_value,
    desconto: @discount,
    total: @total,
    despesas_acessorias: @other_costs,
    informacoes_fisco: @fisco_informations,
    informacoes_complementares: @complement_information
  }
end