@postpaybr/protos 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +28 -0
- package/src/account-entry.proto +86 -0
- package/src/address.proto +64 -0
- package/src/admin-card-verification.proto +90 -0
- package/src/administrator.proto +192 -0
- package/src/anticipation.proto +86 -0
- package/src/asset.proto +44 -0
- package/src/auth.proto +29 -0
- package/src/bank-account.proto +62 -0
- package/src/card-vault.proto +36 -0
- package/src/card-verification.proto +30 -0
- package/src/card.proto +138 -0
- package/src/charge-schedule.proto +22 -0
- package/src/charge.proto +610 -0
- package/src/context.proto +174 -0
- package/src/customer.proto +234 -0
- package/src/daily-balance.proto +32 -0
- package/src/document-verification.proto +111 -0
- package/src/email.proto +76 -0
- package/src/expo-push.proto +27 -0
- package/src/fee.proto +65 -0
- package/src/location.proto +40 -0
- package/src/notification.proto +207 -0
- package/src/order.proto +189 -0
- package/src/payable.proto +246 -0
- package/src/payer.proto +24 -0
- package/src/payment-calculator.proto +165 -0
- package/src/payment-card.proto +217 -0
- package/src/payment-gateway.proto +94 -0
- package/src/payment-pix.proto +115 -0
- package/src/receipt.proto +212 -0
- package/src/recipient-payment-gateway.proto +101 -0
- package/src/recipient.proto +237 -0
- package/src/role.proto +57 -0
- package/src/sms.proto +36 -0
- package/src/tax.proto +323 -0
- package/src/transfer.proto +206 -0
- package/src/two-factor.proto +67 -0
- package/src/typescript/account-entry.ts +177 -0
- package/src/typescript/address.ts +133 -0
- package/src/typescript/admin-card-verification.ts +181 -0
- package/src/typescript/administrator.ts +375 -0
- package/src/typescript/anticipation.ts +187 -0
- package/src/typescript/asset.ts +123 -0
- package/src/typescript/auth.ts +84 -0
- package/src/typescript/bank-account.ts +157 -0
- package/src/typescript/card-vault.ts +92 -0
- package/src/typescript/card-verification.ts +93 -0
- package/src/typescript/card.ts +283 -0
- package/src/typescript/charge-schedule.ts +86 -0
- package/src/typescript/charge.ts +930 -0
- package/src/typescript/context.ts +296 -0
- package/src/typescript/customer.ts +425 -0
- package/src/typescript/daily-balance.ts +94 -0
- package/src/typescript/document-verification.ts +219 -0
- package/src/typescript/email.ts +183 -0
- package/src/typescript/expo-push.ts +75 -0
- package/src/typescript/fee.ts +131 -0
- package/src/typescript/location.ts +96 -0
- package/src/typescript/notification.ts +372 -0
- package/src/typescript/order.ts +311 -0
- package/src/typescript/payable.ts +414 -0
- package/src/typescript/payer.ts +68 -0
- package/src/typescript/payment-calculator.ts +252 -0
- package/src/typescript/payment-card.ts +290 -0
- package/src/typescript/payment-gateway.ts +209 -0
- package/src/typescript/payment-pix.ts +170 -0
- package/src/typescript/receipt.ts +344 -0
- package/src/typescript/recipient-payment-gateway.ts +209 -0
- package/src/typescript/recipient.ts +413 -0
- package/src/typescript/role.ts +144 -0
- package/src/typescript/sms.ts +96 -0
- package/src/typescript/tax.ts +463 -0
- package/src/typescript/transfer.ts +260 -0
- package/src/typescript/two-factor.ts +177 -0
- package/src/typescript/user.ts +413 -0
- package/src/typescript/wallet.ts +63 -0
- package/src/user.proto +214 -0
- package/src/wallet.proto +18 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package context;
|
|
4
|
+
|
|
5
|
+
service ContextService {
|
|
6
|
+
rpc GetContext(GetContextRequest) returns (GetContextResponse);
|
|
7
|
+
rpc ClearContext(ClearContextRequest) returns (ClearContextResponse);
|
|
8
|
+
rpc PostLocation(PostLocationRequest) returns (ClearContextResponse);
|
|
9
|
+
rpc PostTaxes(PostTaxesRequest) returns (ClearContextResponse);
|
|
10
|
+
rpc PostPaymentDetail(PostPaymentDetailRequest) returns (ClearContextResponse);
|
|
11
|
+
rpc PostPushToken(PostPushTokenRequest) returns (ClearContextResponse);
|
|
12
|
+
rpc Checkout(CheckoutRequest) returns (CheckoutResponse);
|
|
13
|
+
|
|
14
|
+
rpc PostPaymentDate(PostPaymentDateRequest) returns (ClearContextResponse);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message LocationDetails {
|
|
18
|
+
string document = 1;
|
|
19
|
+
int32 state = 2;
|
|
20
|
+
int32 city = 3;
|
|
21
|
+
int32 year = 4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message Tax {
|
|
25
|
+
string id = 1;
|
|
26
|
+
string type = 2;
|
|
27
|
+
string status = 3;
|
|
28
|
+
string description = 4;
|
|
29
|
+
double amount = 5;
|
|
30
|
+
int32 year = 6;
|
|
31
|
+
string dueAt = 7;
|
|
32
|
+
string documentId = 8;
|
|
33
|
+
string code = 9;
|
|
34
|
+
bool isSingleQuota = 10;
|
|
35
|
+
optional int32 quota = 11;
|
|
36
|
+
double discountAmount = 12;
|
|
37
|
+
double fee = 13;
|
|
38
|
+
double fine = 14;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message Payer {
|
|
42
|
+
optional string id = 1;
|
|
43
|
+
string name = 2;
|
|
44
|
+
string document = 3;
|
|
45
|
+
optional string phone = 4;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message MetaAddress {
|
|
49
|
+
string street = 1;
|
|
50
|
+
string complement = 2;
|
|
51
|
+
string city = 3;
|
|
52
|
+
string neighborhood = 4;
|
|
53
|
+
string number = 5;
|
|
54
|
+
string state = 6;
|
|
55
|
+
string zipCode = 7;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message Meta {
|
|
59
|
+
optional MetaAddress address = 1;
|
|
60
|
+
optional string licensePlate = 2;
|
|
61
|
+
optional string model = 3;
|
|
62
|
+
optional int32 yearManufacture = 4;
|
|
63
|
+
optional string renavam = 5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message TaxLocation {
|
|
67
|
+
int32 state = 1;
|
|
68
|
+
int32 city = 2;
|
|
69
|
+
string recipientId = 3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message TaxDetail {
|
|
73
|
+
Tax tax = 1;
|
|
74
|
+
Payer payer = 2;
|
|
75
|
+
TaxLocation location = 3;
|
|
76
|
+
string metaType = 4;
|
|
77
|
+
Meta meta = 5;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message PaymentDetails {
|
|
81
|
+
string method = 1;
|
|
82
|
+
double amount = 2;
|
|
83
|
+
optional double discountPercentage = 3;
|
|
84
|
+
double fee = 4;
|
|
85
|
+
optional double discountAmount = 5;
|
|
86
|
+
optional string gatewayId = 6;
|
|
87
|
+
optional Card card = 7;
|
|
88
|
+
PaymentSchedule paymentSchedule = 8;
|
|
89
|
+
double baseFee = 9;
|
|
90
|
+
double feePercentage = 10;
|
|
91
|
+
optional string chargeId = 11;
|
|
92
|
+
optional bool isRetry = 12;
|
|
93
|
+
optional string orderId = 13;
|
|
94
|
+
optional bool keepData = 14;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message PaymentSchedule {
|
|
98
|
+
string type = 1;
|
|
99
|
+
optional string date = 2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message Card {
|
|
103
|
+
string id = 1;
|
|
104
|
+
string shadowNumber = 2;
|
|
105
|
+
optional string brand = 3;
|
|
106
|
+
optional int32 installments = 4;
|
|
107
|
+
optional double installmentValue = 5;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message Context {
|
|
111
|
+
repeated TaxDetail taxes = 1;
|
|
112
|
+
optional LocationDetails location = 2;
|
|
113
|
+
optional PaymentDetails paymentDetails = 3;
|
|
114
|
+
optional string pushToken = 4;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message GetContextRequest {
|
|
118
|
+
string customerId = 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message GetContextResponse {
|
|
122
|
+
Context context = 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message ClearContextRequest {
|
|
126
|
+
string customerId = 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message ClearContextResponse {
|
|
130
|
+
bool success = 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message PostLocationRequest {
|
|
134
|
+
string customerId = 1;
|
|
135
|
+
LocationDetails location = 2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message PostTaxesRequest {
|
|
139
|
+
string customerId = 1;
|
|
140
|
+
repeated TaxDetail taxes = 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message PostPaymentDetailRequest {
|
|
144
|
+
string customerId = 1;
|
|
145
|
+
PaymentDetails paymentDetails = 2;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message PostPushTokenRequest {
|
|
149
|
+
string customerId = 1;
|
|
150
|
+
string pushToken = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message CheckoutRequest {
|
|
154
|
+
string customerId = 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message Order {
|
|
158
|
+
string id = 1;
|
|
159
|
+
double totalAmount = 2;
|
|
160
|
+
string status = 3;
|
|
161
|
+
string createdAt = 4;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message CheckoutResponse {
|
|
165
|
+
Order order = 1;
|
|
166
|
+
string orderType = 2;
|
|
167
|
+
optional string chargeId = 3;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
message PostPaymentDateRequest {
|
|
172
|
+
string customerId = 1;
|
|
173
|
+
PaymentSchedule paymentSchedule = 2;
|
|
174
|
+
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package customer;
|
|
4
|
+
|
|
5
|
+
service CustomerService {
|
|
6
|
+
rpc CreateCustomer (CreateCustomerRequest) returns (CreateCustomerResponse);
|
|
7
|
+
rpc CheckCustomerExists (CheckCustomerExistsRequest) returns (CheckCustomerExistsResponse);
|
|
8
|
+
rpc GetCustomerById (GetCustomerByIdRequest) returns (GetCustomerByIdResponse);
|
|
9
|
+
rpc GetCustomerByEmail (GetCustomerByEmailRequest) returns (GetCustomerByEmailResponse);
|
|
10
|
+
rpc GetVerifiedCustomerByDocument (GetVerifiedCustomerByDocumentRequest) returns (GetVerifiedCustomerByDocumentResponse);
|
|
11
|
+
rpc GetProfile (GetProfileRequest) returns (GetProfileResponse);
|
|
12
|
+
rpc UpdateCustomer (UpdateCustomerRequest) returns (UpdateCustomerResponse);
|
|
13
|
+
rpc updateIsEmailVerifiedStatus (updateIsEmailVerifiedStatusRequest) returns (updateIsEmailVerifiedStatusResponse);
|
|
14
|
+
rpc ChangePin (ChangePinRequest) returns (ChangePinResponse);
|
|
15
|
+
rpc CheckIsValidPin (CheckIsValidPinRequest) returns (CheckIsValidPinResponse);
|
|
16
|
+
rpc ValidateAndSignIn (ValidateAndSignInRequest) returns (ValidateAndSignInResponse);
|
|
17
|
+
rpc ValidateAndRefreshToken (ValidateAndRefreshTokenRequest) returns (ValidateAndRefreshTokenResponse);
|
|
18
|
+
|
|
19
|
+
rpc GetCustomersWithFilters (GetCustomersWithFiltersRequest) returns (GetCustomersWithFiltersResponse);
|
|
20
|
+
rpc InitiateDocumentVerification(InitiateDocumentVerificationRequest) returns (DocumentVerificationResponse);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CreateCustomerRequest {
|
|
24
|
+
CustomerSignUp customer = 1;
|
|
25
|
+
UserSignUp user = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message CreateCustomerResponse {
|
|
29
|
+
bool success = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message CheckCustomerExistsRequest {
|
|
33
|
+
optional string document = 1;
|
|
34
|
+
optional string email = 2;
|
|
35
|
+
optional string phone = 3;
|
|
36
|
+
optional bool throwError = 4;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message CheckCustomerExistsResponse {
|
|
40
|
+
bool exists = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetCustomerByIdRequest {
|
|
44
|
+
string id = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GetCustomerByIdResponse {
|
|
48
|
+
Customer customer = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message GetCustomerByEmailRequest {
|
|
52
|
+
string email = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message GetCustomerByEmailResponse {
|
|
56
|
+
Customer customer = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message GetVerifiedCustomerByDocumentRequest {
|
|
60
|
+
string document = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetVerifiedCustomerByDocumentResponse {
|
|
64
|
+
Customer customer = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message GetProfileRequest {
|
|
68
|
+
string customerId = 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message GetProfileResponse {
|
|
72
|
+
string id = 1;
|
|
73
|
+
string firstName = 2;
|
|
74
|
+
string email = 3;
|
|
75
|
+
string phone = 4;
|
|
76
|
+
string document = 5;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message UpdateCustomerRequest {
|
|
80
|
+
string customerId = 1;
|
|
81
|
+
optional string phone = 2;
|
|
82
|
+
optional string firstName = 3;
|
|
83
|
+
optional string email = 4;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message UpdateCustomerResponse {
|
|
87
|
+
string firstName = 1;
|
|
88
|
+
string phone = 2;
|
|
89
|
+
string email = 3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message updateIsEmailVerifiedStatusRequest {
|
|
93
|
+
string customerId = 1;
|
|
94
|
+
bool verified = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message updateIsEmailVerifiedStatusResponse {}
|
|
98
|
+
|
|
99
|
+
message ChangePinRequest {
|
|
100
|
+
string customerId = 1;
|
|
101
|
+
string pin = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message ChangePinResponse {
|
|
105
|
+
bool success = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message CheckIsValidPinRequest {
|
|
109
|
+
string customerId = 1;
|
|
110
|
+
string pin = 2;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message CheckIsValidPinResponse {
|
|
114
|
+
bool isValid = 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message ValidateAndRefreshTokenRequest {
|
|
118
|
+
string refreshToken = 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message ValidateAndRefreshTokenResponse {
|
|
122
|
+
string accessToken = 1;
|
|
123
|
+
string refreshToken = 2;
|
|
124
|
+
ReducedCustomer customer = 3;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message ValidateAndSignInRequest {
|
|
128
|
+
string document = 1;
|
|
129
|
+
string password = 2;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message ValidateAndSignInResponse {
|
|
133
|
+
string accessToken = 1;
|
|
134
|
+
string refreshToken = 2;
|
|
135
|
+
ReducedCustomer customer = 3;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message ReducedCustomer {
|
|
139
|
+
string id = 1;
|
|
140
|
+
string firstName = 2;
|
|
141
|
+
string email = 3;
|
|
142
|
+
string lastName = 4;
|
|
143
|
+
string phone = 5;
|
|
144
|
+
string document = 6;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message Customer {
|
|
148
|
+
string id = 1;
|
|
149
|
+
string firstName = 2;
|
|
150
|
+
string lastName = 3;
|
|
151
|
+
string document = 4;
|
|
152
|
+
string email = 5;
|
|
153
|
+
bool isEmailVerified = 6;
|
|
154
|
+
string phone = 7;
|
|
155
|
+
string pin = 8;
|
|
156
|
+
int32 pinAttempts = 9;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message CustomerSignUp {
|
|
160
|
+
string firstName = 1;
|
|
161
|
+
string lastName = 2;
|
|
162
|
+
string document = 3;
|
|
163
|
+
string email = 4;
|
|
164
|
+
bool isEmailVerified = 5;
|
|
165
|
+
string phone = 6;
|
|
166
|
+
string pin = 7;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message User {
|
|
170
|
+
string id = 1;
|
|
171
|
+
string password = 2;
|
|
172
|
+
Role role = 3;
|
|
173
|
+
repeated Device devices = 4;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
message UserSignUp {
|
|
177
|
+
string password = 1;
|
|
178
|
+
repeated Device devices = 2;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message Role {
|
|
182
|
+
string id = 1;
|
|
183
|
+
string code = 2;
|
|
184
|
+
string description = 3;
|
|
185
|
+
repeated string permissions = 4;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message Device {
|
|
189
|
+
optional string token = 1;
|
|
190
|
+
string expoPushToken = 2;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
message GetCustomersWithFiltersRequest {
|
|
195
|
+
optional int32 pageIndex = 1;
|
|
196
|
+
optional int32 pageSize = 2;
|
|
197
|
+
repeated string statuses = 3;
|
|
198
|
+
optional string globalFilter = 4;
|
|
199
|
+
optional string startDate = 5;
|
|
200
|
+
optional string endDate = 6;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message GetCustomersWithFiltersResponse {
|
|
204
|
+
repeated CustomerWithStatus customers = 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message CustomerWithStatus {
|
|
208
|
+
string id = 1;
|
|
209
|
+
string name = 2;
|
|
210
|
+
string document = 3;
|
|
211
|
+
string email = 4;
|
|
212
|
+
string phone = 5;
|
|
213
|
+
string userStatus = 6;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
message ImageData {
|
|
217
|
+
string mimetype = 1;
|
|
218
|
+
bytes buffer = 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message InitiateDocumentVerificationRequest {
|
|
222
|
+
string customerId = 1;
|
|
223
|
+
ImageData documentFront = 2;
|
|
224
|
+
ImageData selfieWithDocument = 3;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
message DocumentVerificationResponse {
|
|
228
|
+
string id = 1;
|
|
229
|
+
string documentFrontUrl = 2;
|
|
230
|
+
string selfieWithDocumentUrl = 3;
|
|
231
|
+
string reviewDeadline = 4;
|
|
232
|
+
repeated string rejectionReasons = 5;
|
|
233
|
+
string customRejectionReason = 6;
|
|
234
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package dailyBalance;
|
|
4
|
+
|
|
5
|
+
service DailyBalanceService {
|
|
6
|
+
rpc getBalanceHistory(GetBalanceHistoryRequest) returns (GetBalanceHistoryResponse);
|
|
7
|
+
rpc getCurrentBalance(getCurrentBalanceRequest) returns (getCurrentBalanceResponse);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message GetBalanceHistoryRequest {
|
|
11
|
+
string recipientId = 1;
|
|
12
|
+
string startDate = 2;
|
|
13
|
+
string endDate = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message DailyBalance {
|
|
17
|
+
string date = 1;
|
|
18
|
+
double balance = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message GetBalanceHistoryResponse {
|
|
22
|
+
repeated DailyBalance dailyBalances = 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message getCurrentBalanceRequest {
|
|
26
|
+
string recipientId = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message getCurrentBalanceResponse {
|
|
30
|
+
double balance = 1;
|
|
31
|
+
string lastUpdate = 2;
|
|
32
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package documentVerification;
|
|
4
|
+
|
|
5
|
+
service DocumentVerificationService {
|
|
6
|
+
rpc updateVerificationStatus(UpdateDocumentVerificationStatusRequest) returns (DocumentVerificationResponse);
|
|
7
|
+
rpc getDocumentVerificationsWithDetails(GetVerificationsWithDetailsRequest) returns (GetDocumentVerificationsWithDetailsResponse);
|
|
8
|
+
rpc getDocumentVerificationDetailsById(GetVerificationDetailsByIdRequest) returns (DocumentVerificationDetailsResponse);
|
|
9
|
+
|
|
10
|
+
rpc countPendingOrInProgressVerifications(Empty) returns (CountResponse);
|
|
11
|
+
rpc getDistinctReviewers(Empty) returns (GetDistinctReviewersResponse);
|
|
12
|
+
rpc undoLastStatusChange(UndoLastStatusChangeRequest) returns (DocumentVerificationResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message UpdateDocumentVerificationStatusRequest {
|
|
16
|
+
string id = 1;
|
|
17
|
+
string status = 2;
|
|
18
|
+
repeated string rejectionReasons = 3;
|
|
19
|
+
optional string customRejectionReason = 4;
|
|
20
|
+
optional string reviewerId = 5;
|
|
21
|
+
string actedById = 6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message DocumentVerificationResponse {
|
|
25
|
+
string id = 1;
|
|
26
|
+
string documentFrontUrl = 2;
|
|
27
|
+
string selfieWithDocumentUrl = 3;
|
|
28
|
+
repeated string rejectionReasons = 4;
|
|
29
|
+
string customRejectionReason = 5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message GetVerificationsWithDetailsRequest {
|
|
33
|
+
string status = 1;
|
|
34
|
+
optional int32 offset = 2;
|
|
35
|
+
optional int32 limit = 3;
|
|
36
|
+
optional string startDate = 4;
|
|
37
|
+
optional string endDate = 5;
|
|
38
|
+
repeated string reviewerIds = 6;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message GetDocumentVerificationsWithDetailsResponse {
|
|
42
|
+
repeated DocumentVerificationWithDetails data = 1;
|
|
43
|
+
int32 total = 2;
|
|
44
|
+
int32 currentCount = 3;
|
|
45
|
+
string order = 4;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message DocumentVerificationWithDetails {
|
|
49
|
+
string id = 1;
|
|
50
|
+
string customerName = 2;
|
|
51
|
+
string document = 3;
|
|
52
|
+
string createdAt = 4;
|
|
53
|
+
string reviewDeadline = 5;
|
|
54
|
+
string latestHistoryCreatedAt = 6;
|
|
55
|
+
string status = 7;
|
|
56
|
+
Reviewer lastReviewer = 8;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message GetVerificationDetailsByIdRequest {
|
|
60
|
+
string id = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message DocumentVerificationDetailsResponse {
|
|
64
|
+
string id = 1;
|
|
65
|
+
string document = 2;
|
|
66
|
+
string customerName = 3;
|
|
67
|
+
string createdAt = 4;
|
|
68
|
+
string currentStatus = 5;
|
|
69
|
+
optional string documentFrontUrl = 6;
|
|
70
|
+
optional string selfieWithDocumentUrl = 7;
|
|
71
|
+
optional string elapsedBusinessTime = 8;
|
|
72
|
+
optional Reviewer lastReviewer = 9;
|
|
73
|
+
repeated VerificationHistoryWithDetails histories = 10;
|
|
74
|
+
repeated string rejectionReasons = 11;
|
|
75
|
+
optional string customRejectionReason = 12;
|
|
76
|
+
optional string finalDecisionAt = 13;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message Reviewer {
|
|
80
|
+
string id = 1;
|
|
81
|
+
string name = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message VerificationHistoryWithDetails {
|
|
85
|
+
string id = 1;
|
|
86
|
+
string status = 2;
|
|
87
|
+
string createdAt = 3;
|
|
88
|
+
string reviewedBy = 4;
|
|
89
|
+
string actedBy = 5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message Empty {}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
message CountResponse {
|
|
96
|
+
int32 count = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message Reviewers {
|
|
100
|
+
string id = 1;
|
|
101
|
+
string name = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message GetDistinctReviewersResponse {
|
|
105
|
+
repeated Reviewers reviewers = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message UndoLastStatusChangeRequest {
|
|
109
|
+
string verificationId = 1;
|
|
110
|
+
string actedById = 2;
|
|
111
|
+
}
|
package/src/email.proto
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package email;
|
|
4
|
+
|
|
5
|
+
service EmailService {
|
|
6
|
+
rpc SendVerificationEmail(SendVerificationEmailRequest) returns (SendVerificationEmailResponse);
|
|
7
|
+
rpc CheckVerificationEmail(CheckVerificationEmailRequest) returns (CheckVerificationEmailResponse);
|
|
8
|
+
rpc SendMessageEmail(SendMessageEmailRequest) returns (SendMessageEmailResponse);
|
|
9
|
+
rpc SendRecoveryPasswordEmail(SendRecoveryPasswordEmailRequest) returns (SendRecoveryPasswordEmailResponse);
|
|
10
|
+
rpc checkRecoveryPasswordToken(CheckRecoveryPasswordTokenRequest) returns (CheckRecoveryPasswordTokenResponse);
|
|
11
|
+
rpc GetEmailVerificationByToken(GetEmailVerificationByTokenRequest) returns (GetEmailVerificationByTokenResponse);
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message SendVerificationEmailRequest {
|
|
16
|
+
string email = 1;
|
|
17
|
+
optional string customerId = 2;
|
|
18
|
+
string template = 3;
|
|
19
|
+
string subject = 4;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message SendVerificationEmailResponse {
|
|
23
|
+
bool success = 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message CheckVerificationEmailRequest {
|
|
27
|
+
string token = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message CheckVerificationEmailResponse {
|
|
31
|
+
bool success = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message SendMessageEmailRequest {
|
|
35
|
+
string email = 1;
|
|
36
|
+
string template = 2;
|
|
37
|
+
optional string subject = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message SendMessageEmailResponse {
|
|
41
|
+
bool success = 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message SendRecoveryPasswordEmailRequest {
|
|
45
|
+
string email = 1;
|
|
46
|
+
string customerId = 2;
|
|
47
|
+
string subject = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message SendRecoveryPasswordEmailResponse {
|
|
51
|
+
bool success = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message CheckRecoveryPasswordTokenRequest {
|
|
55
|
+
string token = 1;
|
|
56
|
+
string email = 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message CheckRecoveryPasswordTokenResponse {
|
|
60
|
+
bool success = 1;
|
|
61
|
+
int32 attemptsLeft = 2;
|
|
62
|
+
string message = 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message GetEmailVerificationByTokenRequest {
|
|
66
|
+
string token = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GetEmailVerificationByTokenResponse {
|
|
70
|
+
string recipientId = 1;
|
|
71
|
+
string recipientType = 2;
|
|
72
|
+
string token = 3;
|
|
73
|
+
string expiresAt = 4;
|
|
74
|
+
bool isVerified = 5;
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package expoPush;
|
|
4
|
+
|
|
5
|
+
service ExpoPushService {
|
|
6
|
+
rpc SendNotification (NotificationDto) returns (Empty);
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message NotificationDto {
|
|
11
|
+
repeated string pushTokens = 1;
|
|
12
|
+
string title = 2;
|
|
13
|
+
optional string body = 3;
|
|
14
|
+
map<string, string> data = 4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message DataValue {
|
|
18
|
+
oneof value {
|
|
19
|
+
string stringValue = 1;
|
|
20
|
+
int32 intValue = 2;
|
|
21
|
+
bool boolValue = 3;
|
|
22
|
+
double floatValue = 4;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message Empty {}
|
|
27
|
+
|
package/src/fee.proto
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package fee;
|
|
4
|
+
|
|
5
|
+
service FeeService {
|
|
6
|
+
rpc CreateFee(CreateFeeDto) returns (FeeEntity);
|
|
7
|
+
rpc UpdateRecipientFee(UpdateFeeDto) returns (FeeEntity);
|
|
8
|
+
rpc GetAllDefaultFees(Void) returns (FeeEntityList);
|
|
9
|
+
rpc GetFeeForRecipientAndMethod(GetFeeRequest) returns (FeeEntity);
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message CreateFeeDto {
|
|
14
|
+
string method = 1;
|
|
15
|
+
string type = 2;
|
|
16
|
+
double base = 3;
|
|
17
|
+
optional double percentage = 4;
|
|
18
|
+
optional double promotionalBase = 5;
|
|
19
|
+
optional double promotionalPercentage = 6;
|
|
20
|
+
optional string description = 7;
|
|
21
|
+
int32 installment = 8;
|
|
22
|
+
string brand = 9;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message UpdateFeeDto {
|
|
26
|
+
optional string method = 1;
|
|
27
|
+
optional string type = 2;
|
|
28
|
+
optional double base = 3;
|
|
29
|
+
optional double percentage = 4;
|
|
30
|
+
optional double promotionalBase = 5;
|
|
31
|
+
optional double promotionalPercentage = 6;
|
|
32
|
+
optional string description = 7;
|
|
33
|
+
optional int32 installment = 8;
|
|
34
|
+
optional string brand = 9;
|
|
35
|
+
string recipientId = 10;
|
|
36
|
+
string feeId = 11;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message GetFeeRequest {
|
|
40
|
+
string recipientId = 1;
|
|
41
|
+
string method = 2;
|
|
42
|
+
optional int32 installment = 3;
|
|
43
|
+
optional string brand = 4;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message FeeEntity {
|
|
47
|
+
string id = 1;
|
|
48
|
+
string method = 2;
|
|
49
|
+
string type = 3;
|
|
50
|
+
double base = 4;
|
|
51
|
+
double percentage = 5;
|
|
52
|
+
double promotionalBase = 6;
|
|
53
|
+
double promotionalPercentage = 7;
|
|
54
|
+
optional string description = 8;
|
|
55
|
+
int32 installment = 9;
|
|
56
|
+
bool isDefault = 10;
|
|
57
|
+
string brand = 11;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message FeeEntityList {
|
|
61
|
+
repeated FeeEntity fees = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message Void {}
|
|
65
|
+
|