Optim Data Privacy Providers  11.3.0
 All Data Structures Files Functions Variables Macros Groups Pages
Modules
Spain National ID
Collaboration diagram for Spain National ID:

Modules

 Specific Parameters
 
 Example
 

Detailed Description

Service Identifier: NID

This Service Provider is used to generate a valid and unique Spanish Fiscal Identification Number (NIF) / Foreign Identification Number (NIE). By default, the Spain National ID Service Provider algorithmically generates a consistently altered destination NIF/NIE number based on the source NIF/NIE number. This Service Provider can also generate a random NIF/NIE number when the source data does not have an Identification Number or when there is no need for transforming the source NIF/NIE number in a consistent manner.




The following Common Parameters apply to Spain National ID:




The below validations will be part of basic validations for the Spain National ID:

  1. The input national ID is invalid in length.
  2. The conversion of source is not possible due to invalid source value.
  3. The input national ID has invalid separator.
  4. The input national ID is invalid.




The below validations will be done only when parameter ODPP_OPR_FLAGS is specified with value ODPP_FLAG_VALIDATE_INPUT during Provider_Init():

  1. Check for an invalid suffix.




The following Service Provider Information Requests are applicable to the National ID Service Provider:




Format of Spain National ID

A Fiscal Identification Number (NIF) is of the form 0000000-A , containing a Seven digit serial and a suffix (A). The serial can contain numbers ranging from 0000000 to 9999999.

A Foreign Identification Number (NIE) is of the form X-0000000-A where X is a literal, followed by a Seven digit serial and a suffix (A). Prefix X is ignored in the masking process, i.e., an NIE of the form X-0000000-Y retains the form X-1234567-L after masking.




Data Types

The Spain National ID Service Provider supports the following data types for the source and destination columns: