-
Notifications
You must be signed in to change notification settings - Fork 0
/
RegistrationEndpoints.proto
51 lines (41 loc) · 1.6 KB
/
RegistrationEndpoints.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
option java_package = "com.idamobile.instabank.dto.protobuf";
option java_outer_classname = "RegistrationEndpoints";
import "Commons.proto";
import "Entities.proto";
import "Events.proto";
import "Wallets.proto";
import "Social.proto";
import "Locations.proto";
import "Forms.proto";
// endpoint URL: "/registerWithFacebook"
//DEPRECATED use RegisterWithPhoneRequestProtobufDTO
message RegisterWithFacebookRequestProtobufDTO {
required string fbAccessToken = 1;
optional string phoneNumber = 2;
optional string verificationCode = 3;
optional string email = 4;
}
// endpoint URL: "/registerWithPhone"
// response: LoginResponseProtobufDTO
message RegisterWithPhoneRequestProtobufDTO {
required string phoneNumber = 1;
required string verificationCode = 2;
required string email = 3;
required string firstName = 4;
required string lastName = 5;
required Gender gender = 6;
}
//endpoint URL: agreeWithOfferContract
message AgreeWithOfferContractRequestProtobufDTO {
}
//endpoint URL: "/requestPhoneVerification"
//returns OK(200) or
// UnprocessableEntity(422) if the phone is not valid or
// Conflict(409) if the phone was already attached to another user or (checked only if one of the tokens presents)
// Unauthorized(401) if the fbAccessToken or userToken is not valid
// TooManyRequests(429) if the verification was requested too many times
message VerificationCodeRequestProtobufDTO {
required string phoneNumber = 1; //only digits
optional string fbAccessToken = 2 [deprecated=true];
optional string userToken = 3;
}