-
Notifications
You must be signed in to change notification settings - Fork 0
/
address-service.proto
69 lines (54 loc) · 1.65 KB
/
address-service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
syntax = "proto3";
import "google/protobuf/empty.proto";
package ua.gov.diia.addressservice;
service AddressService {
rpc getActualAtuId (GetActualAtuIdRequest) returns (GetActualAtuIdResponse) {}
rpc getPostOffice (GetPostOfficeRequest) returns (GetPostOfficeResponse) {}
rpc getPublicServiceAddress (GetPublicServiceAddressRequest) returns (GetPublicServiceAddressResponse) {}
}
message GetPostOfficeRequest {
string addressId = 1;
string postOfficeId = 2;
optional string publicServiceCode = 3;
}
message GetPostOfficeResponse {
string id = 1;
string name = 2;
string postcode = 3;
}
message GetActualAtuIdRequest {
int32 atuId = 1;
optional DrrpRequestOptions ops = 2;
}
message GetActualAtuIdResponse {
int32 atuId = 1;
}
message DrrpRequestOptions {
optional int32 timeout = 1;
optional int32 unavailableProcessCode = 2;
}
message GetPublicServiceAddressRequest {
string resourceId = 1;
optional string userIdentifier = 2;
}
message GetPublicServiceAddressResponse {
optional string fullName = 1;
repeated GetPublicServiceAddressResponseAddressEntry address = 2;
optional string communityCode = 3;
}
message GetPublicServiceAddressResponseAddressEntry {
string key = 1;
optional PublicServiceAddressItem value = 2;
}
message PublicServiceAddressItem {
optional string id = 1;
string value = 2;
optional string rawValue = 3;
optional string koatuu = 4;
optional string codifierCode = 5;
optional string category = 6;
optional string categoryUkr = 7;
optional string categoryUkrShort = 8;
optional int32 atuId = 9;
optional string sevdeirId = 10;
}