syntax = "proto3";

package rtl.pgs.ervu;
import "google/protobuf/timestamp.proto";

option java_multiple_files = true;
option java_outer_classname = "LkrpResponse";
option java_package = "rtl.pgs.ervu.proto";

message ExtractRegistry {
  string fileName = 1;
  string fileType = 2;
  string fileDatetime = 3;
  bytes file = 4;
};

message DataRegistryInformation {
  ExtractRegistry extractRegistry = 1;
};

message ResponseData {
  string lastName = 1;
  string firstName = 2;
  string middleName = 3;
  string birthDate = 5;
  string type = 4;
  string series = 6;
  string number = 7;
  string issueDate = 8;
  string issueOrg = 9;
  string issueIdCode = 10;
  string idERN = 11;
  DataRegistryInformation dataRegistryInformation = 12;
};