Sha256: c28adb201aa00da3d072b732e18e4e126a52d49f56f9a2277f2d85c3b60d4186

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

module Gateway

  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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/Sale/sale_order_data.rb
stone_ecommerce-1.4.0 lib/gateway/Sale/sale_order_data.rb
mundipagg_sdk-1.4.0 lib/gateway/Sale/sale_order_data.rb
stone_ecommerce-1.3.0 lib/gateway/Sale/sale_order_data.rb
stone_ecommerce-1.2.3 lib/gateway/Sale/sale_order_data.rb