Class: Mercadopago::IdentificationType

Inherits:
MPBase
  • Object
show all
Defined in:
lib/mercadopago/resources/identification_type.rb

Overview

Lists the identification document types accepted in each country (e.g. CPF in Brazil, DNI in Argentina).

The returned list is used to populate identification-type selectors in checkout forms and to validate payer documents.

Instance Method Summary collapse

Methods inherited from MPBase

#_check_headers, #_check_request_options, #_delete, #_get, #_post, #_put, #initialize

Constructor Details

This class inherits a constructor from Mercadopago::MPBase

Instance Method Details

#get(request_options: nil) ⇒ Hash{Symbol => Object}

Retrieves all identification types available for the caller’s country.

Parameters:

  • request_options (RequestOptions, nil) (defaults to: nil)

    per-call configuration override

Returns:

  • (Hash{Symbol => Object})

    :status and :response with an array of identification types

See Also:



18
19
20
# File 'lib/mercadopago/resources/identification_type.rb', line 18

def get(request_options: nil)
  _get(uri: '/v1/identification_types', request_options: request_options)
end