Sha256: 57c911d2c107af85603791ebb56d85393d7bd6a0d65eba8980bf933bfda2f8c2

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

module Gateway

  class DeliveryAddress
    # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
    attr_accessor :Country

    # Estado
    attr_accessor :State

    # Cidade
    attr_accessor :City

    # Distrito
    attr_accessor :District

    # Logradouro
    attr_accessor :Street

    # Número
    attr_accessor :Number

    # Complemento
    attr_accessor :Complement

    # zip code
    attr_accessor :ZipCode

    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/Address/delivery_address.rb
stone_ecommerce-1.4.0 lib/gateway/Address/delivery_address.rb
mundipagg_sdk-1.4.0 lib/gateway/Address/delivery_address.rb
stone_ecommerce-1.3.0 lib/gateway/Address/delivery_address.rb
stone_ecommerce-1.2.3 lib/gateway/Address/delivery_address.rb