Sha256: 8b805e966a21fc58d2ad5f65e03b9c1c19f21e3b18f6836d9f901af6adc802ff

Contents?: true

Size: 709 Bytes

Versions: 5

Compression:

Stored size: 709 Bytes

Contents

module Gateway

  class BuyerAddress
    # 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

    # CEP
    attr_accessor :ZipCode

    # Tipo de endereço
    attr_accessor :AddressType


    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.3.0 lib/gateway/Address/buyer_address.rb
stone_ecommerce-1.2.4 lib/gateway/Address/buyer_address.rb
mundipagg_sdk-1.2.4 lib/gateway/Address/buyer_address.rb
mundipagg_sdk-1.2.3 lib/gateway/Address/buyer_address.rb
mundipagg_sdk-1.2.3rc lib/gateway/Address/buyer_address.rb