Sha256: 4657327f988751463b6fb9db5615ab68bfc11a26443693bd11ba908aa463709b

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 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

4 entries across 4 versions & 2 rubygems

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