Sha256: 8a80d43065dd226347e9b72f0bd5b6f8f610aa981fae846e09185653f8653420

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

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

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

  # Data de criação do pedido no Gateway
  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

3 entries across 3 versions & 1 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/Sale/sale_order_data.rb
mundipagg_sdk-1.0.1 lib/gateway/Sale/sale_order_data.rb
mundipagg_sdk-1.0.0 lib/gateway/Sale/sale_order_data.rb