Sha256: 12a5e8838a710cad93c2745e3c1f77e264a0f95ffa9de6bd325bb768be7b4688

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

class SaleOrderData
  # Número do pedido no sistema da loja
  attr_accessor :OrderReference

  # Chave do pedido. Utilizado para identificar o pedido no MundipaggApi
  attr_accessor :OrderKey

  # Data de criação do pedido no MundipaggApi
  attr_accessor :CreateDate

  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mundipagg_api-1.3.1 lib/mundipagg/Sale/sale_order_data.rb
mundipagg_api-1.3.0 lib/mundipagg/Sale/sale_order_data.rb
mundipagg_api-1.1.1 lib/mundipagg/Sale/sale_order_data.rb
mundipagg_api-1.1.0 lib/mundipagg/Sale/sale_order_data.rb
mundipagg_api-1.0.1 lib/mundipagg/Sale/sale_order_data.rb
mundipagg_api-1.0.0 lib/mundipagg/Sale/sale_order_data.rb