@alexochihua/protos 1.0.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/README.md +26 -0
- package/buf.gen.yaml +14 -0
- package/buf.yaml +9 -0
- package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
- package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
- package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
- package/dist/generated/kapital/cards/v1/cards.js +2996 -0
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
- package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
- package/dist/generated/kapital/common/v1/error.d.ts +24 -0
- package/dist/generated/kapital/common/v1/error.js +119 -0
- package/dist/generated/kapital/common/v1/error.js.map +1 -0
- package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
- package/dist/generated/kapital/common/v1/meta.js +86 -0
- package/dist/generated/kapital/common/v1/meta.js.map +1 -0
- package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
- package/dist/generated/kapital/common/v1/pagination.js +149 -0
- package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
- package/dist/generated/kapital/customers/v1/customers.js +2542 -0
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
- package/dist/generated/kapital/payments/v1/payments.js +915 -0
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
- package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
- package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +234 -0
- package/dist/generated/kapital/products/v1/products.js +1369 -0
- package/dist/generated/kapital/products/v1/products.js.map +1 -0
- package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
- package/dist/generated/kapital/products/v1/products_types.js +1696 -0
- package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/grpc.d.ts +2 -0
- package/dist/runtime/grpc.js +9 -0
- package/dist/runtime/grpc.js.map +1 -0
- package/package.json +195 -0
- package/proto/kapital/accounts/v1/accounts.proto +80 -0
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
- package/proto/kapital/cards/v1/cards.proto +298 -0
- package/proto/kapital/cards/v1/cards_types.proto +117 -0
- package/proto/kapital/common/v1/error.proto +18 -0
- package/proto/kapital/common/v1/meta.proto +13 -0
- package/proto/kapital/common/v1/pagination.proto +18 -0
- package/proto/kapital/contracts/v1/contracts.proto +629 -0
- package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
- package/proto/kapital/customers/v1/customers.proto +235 -0
- package/proto/kapital/customers/v1/customers_types.proto +87 -0
- package/proto/kapital/payments/v1/payments.proto +94 -0
- package/proto/kapital/payments/v1/payments_types.proto +18 -0
- package/proto/kapital/products/v1/products.proto +139 -0
- package/proto/kapital/products/v1/products_types.proto +156 -0
- package/proto/kapital/transactions/v1/transactions.proto +70 -0
- package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.contracts.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/contracts/v1;contractsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/contracts/v1/contracts_types.proto";
|
|
9
|
+
|
|
10
|
+
service ContractsService {
|
|
11
|
+
rpc CreateContract (CreateContractRequest) returns (CreateContractResponse);
|
|
12
|
+
rpc CreatePhysicalCardContract (CreatePhysicalCardContractRequest) returns (CreatePhysicalCardContractResponse);
|
|
13
|
+
rpc CreateVirtualCardContract (CreateVirtualCardContractRequest) returns (CreateVirtualCardContractResponse);
|
|
14
|
+
rpc GetExistsContract (GetExistsContractRequest) returns (GetExistsContractResponse);
|
|
15
|
+
rpc AddBalance (AddBalanceRequest) returns (AddBalanceResponse);
|
|
16
|
+
rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse);
|
|
17
|
+
rpc GetCustomerIdByContractId (GetCustomerIdByContractIdRequest) returns (GetCustomerIdByContractIdResponse);
|
|
18
|
+
rpc UpdateContract (UpdateContractRequest) returns (UpdateContractResponse);
|
|
19
|
+
rpc GetExistsCustomer (GetExistsCustomerRequest) returns (GetExistsCustomerResponse);
|
|
20
|
+
rpc GetContractById (GetContractByIdRequest) returns (GetContractByIdResponse);
|
|
21
|
+
rpc GetRelatedContracts (GetRelatedContractsRequest) returns (GetRelatedContractsResponse);
|
|
22
|
+
rpc VerifyContract (VerifyContractRequest) returns (VerifyContractResponse);
|
|
23
|
+
rpc AddContract (AddContractRequest) returns (AddContractResponse);
|
|
24
|
+
rpc SearchContracts (SearchContractsRequest) returns (SearchContractsResponse);
|
|
25
|
+
rpc ChargeOffContract (ChargeOffContractRequest) returns (ChargeOffContractResponse);
|
|
26
|
+
rpc GetContractData (GetContractDataRequest) returns (GetContractDataResponse);
|
|
27
|
+
rpc GetCustomerProfile (GetCustomerProfileRequest) returns (GetCustomerProfileResponse);
|
|
28
|
+
rpc GetTransactions (GetTransactionsRequest) returns (GetTransactionsResponse);
|
|
29
|
+
rpc GetAuthorizations (GetAuthorizationsRequest) returns (GetAuthorizationsResponse);
|
|
30
|
+
rpc GetPendingFees (GetPendingFeesRequest) returns (GetPendingFeesResponse);
|
|
31
|
+
rpc GetSavingsInterest (GetSavingsInterestRequest) returns (GetSavingsInterestResponse);
|
|
32
|
+
rpc GetHolds (GetHoldsRequest) returns (GetHoldsResponse);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ================== CreateContract ==================
|
|
36
|
+
message CreateContractRequest {
|
|
37
|
+
string customer_id = 1;
|
|
38
|
+
string first_name = 2;
|
|
39
|
+
optional string middle_name = 3;
|
|
40
|
+
string last_name = 4;
|
|
41
|
+
string date_of_birth = 5;
|
|
42
|
+
|
|
43
|
+
string address_1 = 6;
|
|
44
|
+
string address_2 = 7;
|
|
45
|
+
string address_3 = 8;
|
|
46
|
+
string city = 9;
|
|
47
|
+
string state = 10;
|
|
48
|
+
string postal_code = 11;
|
|
49
|
+
string country_code = 12;
|
|
50
|
+
|
|
51
|
+
string primary_phone = 13;
|
|
52
|
+
optional string other_phone = 14;
|
|
53
|
+
|
|
54
|
+
string email = 15;
|
|
55
|
+
|
|
56
|
+
string income_source = 16;
|
|
57
|
+
string curp = 17;
|
|
58
|
+
string rfc = 18;
|
|
59
|
+
|
|
60
|
+
optional string external_customer_id = 19;
|
|
61
|
+
|
|
62
|
+
int32 prod_id = 20;
|
|
63
|
+
string product_type = 21;
|
|
64
|
+
string load_amount = 22;
|
|
65
|
+
optional string load_amount_physical = 23;
|
|
66
|
+
|
|
67
|
+
optional string load_type = 24;
|
|
68
|
+
optional string primary_account = 25;
|
|
69
|
+
optional string funding_account_number = 26;
|
|
70
|
+
optional int32 shared_balance = 27;
|
|
71
|
+
|
|
72
|
+
optional string authorized_user = 28;
|
|
73
|
+
optional string user_data = 29;
|
|
74
|
+
optional string offline = 30;
|
|
75
|
+
|
|
76
|
+
optional int32 verify_only = 31;
|
|
77
|
+
optional string cip_status = 32;
|
|
78
|
+
|
|
79
|
+
optional string emboss_line_2 = 33;
|
|
80
|
+
|
|
81
|
+
optional double provider_assessed_fee = 34;
|
|
82
|
+
|
|
83
|
+
optional string load_from_account = 35;
|
|
84
|
+
optional string sweep_date = 36;
|
|
85
|
+
|
|
86
|
+
optional string express_mail = 37;
|
|
87
|
+
|
|
88
|
+
optional string ship_adress_permanent = 38;
|
|
89
|
+
optional string ship_adress_1 = 39;
|
|
90
|
+
optional string ship_adress_2 = 40;
|
|
91
|
+
optional string shitp_city = 41;
|
|
92
|
+
optional string ship_state = 42;
|
|
93
|
+
optional string ship_zip = 43;
|
|
94
|
+
optional string ship_country_code = 44;
|
|
95
|
+
|
|
96
|
+
optional string business_name = 45;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message CreateContractResponse {
|
|
100
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
101
|
+
string pmt_ref_number = 2;
|
|
102
|
+
string product_id = 3;
|
|
103
|
+
string contract_number = 4;
|
|
104
|
+
|
|
105
|
+
repeated CIPFull cip = 5;
|
|
106
|
+
|
|
107
|
+
string card_number_virtual = 6;
|
|
108
|
+
string card_number_physical = 7;
|
|
109
|
+
string new_emboss_uuid = 8;
|
|
110
|
+
|
|
111
|
+
string expiry_date = 9;
|
|
112
|
+
string card_security_code = 10;
|
|
113
|
+
string emboss_line_2 = 11;
|
|
114
|
+
|
|
115
|
+
int32 billing_cycle_day = 12;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ================== CreatePhysicalCardContract ==================
|
|
119
|
+
message CreatePhysicalCardContractRequest {
|
|
120
|
+
string customer_id = 1;
|
|
121
|
+
string first_name = 2;
|
|
122
|
+
optional string middle_name = 3;
|
|
123
|
+
string last_name = 4;
|
|
124
|
+
string date_of_birth = 5;
|
|
125
|
+
|
|
126
|
+
string address_1 = 6;
|
|
127
|
+
string address_2 = 7;
|
|
128
|
+
string address_3 = 8;
|
|
129
|
+
string city = 9;
|
|
130
|
+
string state = 10;
|
|
131
|
+
string postal_code = 11;
|
|
132
|
+
string country_code = 12;
|
|
133
|
+
|
|
134
|
+
string primary_phone = 13;
|
|
135
|
+
optional string other_phone = 14;
|
|
136
|
+
|
|
137
|
+
string email = 15;
|
|
138
|
+
|
|
139
|
+
string income_source = 16;
|
|
140
|
+
string curp = 17;
|
|
141
|
+
string rfc = 18;
|
|
142
|
+
|
|
143
|
+
optional string external_customer_id = 19;
|
|
144
|
+
|
|
145
|
+
int32 prod_id = 20;
|
|
146
|
+
string product_type = 21;
|
|
147
|
+
string load_amount = 22;
|
|
148
|
+
optional string load_amount_physical = 23;
|
|
149
|
+
|
|
150
|
+
optional string load_type = 24;
|
|
151
|
+
optional string primary_account = 25;
|
|
152
|
+
optional string funding_account_number = 26;
|
|
153
|
+
optional int32 shared_balance = 27;
|
|
154
|
+
|
|
155
|
+
optional string authorized_user = 28;
|
|
156
|
+
optional string user_data = 29;
|
|
157
|
+
optional string offline = 30;
|
|
158
|
+
|
|
159
|
+
optional int32 verify_only = 31;
|
|
160
|
+
optional string cip_status = 32;
|
|
161
|
+
|
|
162
|
+
optional string emboss_line_2 = 33;
|
|
163
|
+
|
|
164
|
+
optional double provider_assessed_fee = 34;
|
|
165
|
+
|
|
166
|
+
optional string load_from_account = 35;
|
|
167
|
+
optional string sweep_date = 36;
|
|
168
|
+
|
|
169
|
+
optional string express_mail = 37;
|
|
170
|
+
|
|
171
|
+
optional string ship_adress_permanent = 38;
|
|
172
|
+
optional string ship_adress_1 = 39;
|
|
173
|
+
optional string ship_adress_2 = 40;
|
|
174
|
+
optional string shitp_city = 41;
|
|
175
|
+
optional string ship_state = 42;
|
|
176
|
+
optional string ship_zip = 43;
|
|
177
|
+
optional string ship_country_code = 44;
|
|
178
|
+
|
|
179
|
+
optional string business_name = 45;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message CreatePhysicalCardContractResponse {
|
|
183
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
184
|
+
string pmt_ref_number = 2;
|
|
185
|
+
string product_id = 3;
|
|
186
|
+
string contract_number = 4;
|
|
187
|
+
|
|
188
|
+
repeated CIPFull cip = 5;
|
|
189
|
+
|
|
190
|
+
string card_number_virtual = 6;
|
|
191
|
+
string card_number_physical = 7;
|
|
192
|
+
string new_emboss_uuid = 8;
|
|
193
|
+
|
|
194
|
+
string expiry_date = 9;
|
|
195
|
+
string card_security_code = 10;
|
|
196
|
+
string emboss_line_2 = 11;
|
|
197
|
+
|
|
198
|
+
int32 billing_cycle_day = 12;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// ================== CreateVirtualCardContract ==================
|
|
202
|
+
message CreateVirtualCardContractRequest {
|
|
203
|
+
string provider_id = 1;
|
|
204
|
+
string transaction_id = 2;
|
|
205
|
+
|
|
206
|
+
int32 prod_id = 3;
|
|
207
|
+
|
|
208
|
+
int32 id_type = 4;
|
|
209
|
+
string id = 5;
|
|
210
|
+
|
|
211
|
+
int32 id_type_2 = 6;
|
|
212
|
+
string id_2 = 7;
|
|
213
|
+
|
|
214
|
+
string locale = 8;
|
|
215
|
+
|
|
216
|
+
string first_name = 9;
|
|
217
|
+
string middle_name = 10;
|
|
218
|
+
string last_name = 11;
|
|
219
|
+
string date_of_birth = 12;
|
|
220
|
+
|
|
221
|
+
string address_1 = 13;
|
|
222
|
+
string address_2 = 14;
|
|
223
|
+
string address_3 = 15;
|
|
224
|
+
string address_4 = 16;
|
|
225
|
+
string address_5 = 17;
|
|
226
|
+
|
|
227
|
+
string city = 18;
|
|
228
|
+
string state = 19;
|
|
229
|
+
string zip = 20;
|
|
230
|
+
string country_code = 21;
|
|
231
|
+
|
|
232
|
+
string primary_phone = 22;
|
|
233
|
+
string other_phone = 23;
|
|
234
|
+
string mobile_phone = 24;
|
|
235
|
+
string mobile_carrier_id = 25;
|
|
236
|
+
|
|
237
|
+
string email = 26;
|
|
238
|
+
|
|
239
|
+
string secret_question = 27;
|
|
240
|
+
string secret_answer = 28;
|
|
241
|
+
|
|
242
|
+
double load_amount = 29;
|
|
243
|
+
string load_type = 30;
|
|
244
|
+
|
|
245
|
+
string external_account_id = 31;
|
|
246
|
+
string primary_account = 32;
|
|
247
|
+
|
|
248
|
+
int32 shared_balance = 33;
|
|
249
|
+
|
|
250
|
+
string user_data = 34;
|
|
251
|
+
|
|
252
|
+
int32 verify_only = 35;
|
|
253
|
+
|
|
254
|
+
string load_from_account = 36;
|
|
255
|
+
string sweep_date = 37;
|
|
256
|
+
|
|
257
|
+
double credit_limit = 38;
|
|
258
|
+
|
|
259
|
+
string single_use = 39;
|
|
260
|
+
|
|
261
|
+
string business_name = 40;
|
|
262
|
+
|
|
263
|
+
string mobile_phone_country_code = 41;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
message CreateVirtualCardContractResponse {
|
|
267
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
268
|
+
string pmt_ref_number = 2;
|
|
269
|
+
string product_id = 3;
|
|
270
|
+
string contract_number = 4;
|
|
271
|
+
|
|
272
|
+
string card_id = 5;
|
|
273
|
+
string card_number = 6;
|
|
274
|
+
string expiry_date = 7;
|
|
275
|
+
string card_security_code = 8;
|
|
276
|
+
|
|
277
|
+
repeated CIP cip = 9;
|
|
278
|
+
|
|
279
|
+
int32 billing_cycle_day = 10;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// ================== GetExistsContract ==================
|
|
283
|
+
message GetExistsContractRequest {
|
|
284
|
+
string contract_id = 1;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
message GetExistsContractResponse {
|
|
288
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
289
|
+
string contract_id = 2;
|
|
290
|
+
bool exists = 3;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// ================== AddBalance ==================
|
|
294
|
+
message AddBalanceRequest {
|
|
295
|
+
string contract_id = 1;
|
|
296
|
+
double amount = 2;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message AddBalanceResponse {
|
|
300
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
301
|
+
string contract_id = 2;
|
|
302
|
+
double balance = 3;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// ================== GetBalance ==================
|
|
306
|
+
message GetBalanceRequest {
|
|
307
|
+
string contract_id = 1;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
message GetBalanceResponse {
|
|
311
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
312
|
+
double ledger_balance = 2;
|
|
313
|
+
double balance = 3;
|
|
314
|
+
string balance_without_pending = 4;
|
|
315
|
+
string currency_code = 5;
|
|
316
|
+
double pending_adjustments = 6;
|
|
317
|
+
double pending_billpay = 7;
|
|
318
|
+
double pending_purchase = 8;
|
|
319
|
+
double balance_without_auths = 9;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// ================== GetCustomerIdByContractId ==================
|
|
323
|
+
message GetCustomerIdByContractIdRequest {
|
|
324
|
+
string contract_id = 1;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
message GetCustomerIdByContractIdResponse {
|
|
328
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
329
|
+
string customer_id = 2;
|
|
330
|
+
bool exists = 3;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// ================== UpdateContract ==================
|
|
334
|
+
message UpdateContractRequest {
|
|
335
|
+
string contract_id = 1;
|
|
336
|
+
string provider_id = 2;
|
|
337
|
+
string transaction_id = 3;
|
|
338
|
+
|
|
339
|
+
int32 id_type = 4;
|
|
340
|
+
string id = 5;
|
|
341
|
+
|
|
342
|
+
int32 id_type_2 = 6;
|
|
343
|
+
string id_2 = 7;
|
|
344
|
+
|
|
345
|
+
int32 id_type_3 = 8;
|
|
346
|
+
string id_3 = 9;
|
|
347
|
+
|
|
348
|
+
int32 location_type = 10;
|
|
349
|
+
string location = 11;
|
|
350
|
+
string locale = 12;
|
|
351
|
+
|
|
352
|
+
string external_account_id = 13;
|
|
353
|
+
|
|
354
|
+
string first_name = 14;
|
|
355
|
+
string middle_name = 15;
|
|
356
|
+
string last_name = 16;
|
|
357
|
+
string date_of_birth = 17;
|
|
358
|
+
|
|
359
|
+
string address_1 = 18;
|
|
360
|
+
string address_2 = 19;
|
|
361
|
+
string address_3 = 20;
|
|
362
|
+
string address_4 = 21;
|
|
363
|
+
string address_5 = 22;
|
|
364
|
+
|
|
365
|
+
string city = 23;
|
|
366
|
+
string state = 24;
|
|
367
|
+
string zip = 25;
|
|
368
|
+
string country_code = 26;
|
|
369
|
+
|
|
370
|
+
string primary_phone = 27;
|
|
371
|
+
string other_phone = 28;
|
|
372
|
+
string mobile_phone = 29;
|
|
373
|
+
string mobile_carrier_id = 30;
|
|
374
|
+
|
|
375
|
+
string email = 31;
|
|
376
|
+
|
|
377
|
+
string secret_question = 32;
|
|
378
|
+
string secret_answer = 33;
|
|
379
|
+
|
|
380
|
+
string income_source = 34;
|
|
381
|
+
string occupation = 35;
|
|
382
|
+
|
|
383
|
+
string nationality = 36;
|
|
384
|
+
string place_of_birth = 37;
|
|
385
|
+
string curp = 38;
|
|
386
|
+
|
|
387
|
+
int32 political_affiliation = 39;
|
|
388
|
+
|
|
389
|
+
string key_ref_number = 40;
|
|
390
|
+
double monthly_income = 41;
|
|
391
|
+
|
|
392
|
+
string external_customer_id = 42;
|
|
393
|
+
|
|
394
|
+
string mail_bounced = 43;
|
|
395
|
+
|
|
396
|
+
string shipping_address_1 = 44;
|
|
397
|
+
string shipping_address_2 = 45;
|
|
398
|
+
string shipping_city = 46;
|
|
399
|
+
string shipping_state = 47;
|
|
400
|
+
string shipping_zip = 48;
|
|
401
|
+
string shipping_country_code = 49;
|
|
402
|
+
string shipping_address_permanent = 50;
|
|
403
|
+
|
|
404
|
+
string emboss_line_2 = 51;
|
|
405
|
+
string business_name = 52;
|
|
406
|
+
|
|
407
|
+
string mobile_phone_country_code = 53;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
message UpdateContractResponse {
|
|
411
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
412
|
+
CustomerProfile customer_profile = 2;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// ================== GetExistsCustomer ==================
|
|
416
|
+
message GetExistsCustomerRequest {
|
|
417
|
+
string customer_id = 1;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
message GetExistsCustomerResponse {
|
|
421
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
422
|
+
string customer_id = 2;
|
|
423
|
+
bool exists = 3;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// ================== GetContractById ==================
|
|
427
|
+
message GetContractByIdRequest {
|
|
428
|
+
string customer_id = 1;
|
|
429
|
+
string provider_id = 2;
|
|
430
|
+
string transaction_id = 3;
|
|
431
|
+
int32 id_type = 4;
|
|
432
|
+
string external_customer_id = 5;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
message GetContractByIdResponse {
|
|
436
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
437
|
+
repeated Contract contracts = 2;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// ================== GetRelatedContracts ==================
|
|
441
|
+
message GetRelatedContractsRequest {
|
|
442
|
+
string contract_id = 1;
|
|
443
|
+
string provider_id = 2;
|
|
444
|
+
string transaction_id = 3;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message GetRelatedContractsResponse {
|
|
448
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
449
|
+
repeated RelatedData self_contracts = 2;
|
|
450
|
+
repeated RelatedData child_contracts = 3;
|
|
451
|
+
repeated RelatedData parent_contracts = 4;
|
|
452
|
+
repeated RelatedData sibling_contracts = 5;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// ================== VerifyContract ==================
|
|
456
|
+
message VerifyContractRequest {
|
|
457
|
+
string contract_id = 1;
|
|
458
|
+
string provider_id = 2;
|
|
459
|
+
string transaction_id = 3;
|
|
460
|
+
string load_type = 4;
|
|
461
|
+
int32 included_related = 5;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
message VerifyContractResponse {
|
|
465
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
466
|
+
ContractVerify contract = 2;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// ================== AddContract ==================
|
|
470
|
+
message AddContractRequest {
|
|
471
|
+
string contract_id = 1;
|
|
472
|
+
string provider_id = 2;
|
|
473
|
+
string transaction_id = 3;
|
|
474
|
+
int32 prod_id = 4;
|
|
475
|
+
string location = 5;
|
|
476
|
+
int32 location_type = 6;
|
|
477
|
+
int32 shared_balance = 7;
|
|
478
|
+
string funding_account_number = 8;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
message AddContractResponse {
|
|
482
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
483
|
+
string pmt_ref_number = 2;
|
|
484
|
+
string product_id = 3;
|
|
485
|
+
string contract_number = 4;
|
|
486
|
+
string card_id = 5;
|
|
487
|
+
string card_number = 6;
|
|
488
|
+
string expiry_date = 7;
|
|
489
|
+
string card_security_code = 8;
|
|
490
|
+
string emboss_line_2 = 9;
|
|
491
|
+
int32 billing_cycle_day = 10;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// ================== SearchContracts ==================
|
|
495
|
+
message SearchContractsRequest {
|
|
496
|
+
string provider_id = 1;
|
|
497
|
+
string transaction_id = 2;
|
|
498
|
+
optional string account_number = 3;
|
|
499
|
+
optional string first_name = 4;
|
|
500
|
+
optional string middle_name = 5;
|
|
501
|
+
optional string last_name = 6;
|
|
502
|
+
optional string date_of_birth = 7;
|
|
503
|
+
optional string zip = 8;
|
|
504
|
+
optional string primary_phone = 9;
|
|
505
|
+
optional string other_phone = 10;
|
|
506
|
+
optional string mobile_phone = 11;
|
|
507
|
+
optional string email = 12;
|
|
508
|
+
optional string user_data = 13;
|
|
509
|
+
optional string eext_id = 14;
|
|
510
|
+
optional int32 record_cnt = 15;
|
|
511
|
+
optional int32 page = 16;
|
|
512
|
+
optional string mobile_phone_country_code = 17;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
message SearchContractsResponse {
|
|
516
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
517
|
+
int32 page = 2;
|
|
518
|
+
int32 total_record_count = 3;
|
|
519
|
+
int32 number_of_pages = 4;
|
|
520
|
+
repeated ContractSearch contracts = 5;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// ================== ChargeOffContract ==================
|
|
524
|
+
message ChargeOffContractRequest {
|
|
525
|
+
string contract_id = 1;
|
|
526
|
+
string provider_id = 2;
|
|
527
|
+
string transaction_id = 3;
|
|
528
|
+
string charge_off_details = 4;
|
|
529
|
+
optional int32 close_associated_accounts = 5;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
message ChargeOffContractResponse {
|
|
533
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
534
|
+
bool charged_off = 2;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// ================== GetContractData ==================
|
|
538
|
+
message GetContractDataRequest {
|
|
539
|
+
string contract_id = 1;
|
|
540
|
+
string provider_id = 2;
|
|
541
|
+
string transaction_id = 3;
|
|
542
|
+
optional string start_date = 4;
|
|
543
|
+
optional string end_date = 5;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
message GetContractDataResponse {
|
|
547
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
548
|
+
ContractOverview contract = 2;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// ================== GetCustomerProfile ==================
|
|
552
|
+
message GetCustomerProfileRequest {
|
|
553
|
+
string customer_id = 1;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
message GetCustomerProfileResponse {
|
|
557
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
558
|
+
Profile profile = 2;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// ================== GetTransactions ==================
|
|
562
|
+
message GetTransactionsRequest {
|
|
563
|
+
string contract_id = 1;
|
|
564
|
+
string provider_id = 2;
|
|
565
|
+
string transaction_id = 3;
|
|
566
|
+
optional string start_date = 4;
|
|
567
|
+
optional string end_date = 5;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
message GetTransactionsResponse {
|
|
571
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
572
|
+
repeated Transaction transactions = 2;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// ================== GetAuthorizations ==================
|
|
576
|
+
message GetAuthorizationsRequest {
|
|
577
|
+
string contract_id = 1;
|
|
578
|
+
string provider_id = 2;
|
|
579
|
+
string transaction_id = 3;
|
|
580
|
+
optional string start_date = 4;
|
|
581
|
+
optional string end_date = 5;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
message GetAuthorizationsResponse {
|
|
585
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
586
|
+
repeated Authorization authorizations = 2;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// ================== GetPendingFees ==================
|
|
590
|
+
message GetPendingFeesRequest {
|
|
591
|
+
string contract_id = 1;
|
|
592
|
+
string provider_id = 2;
|
|
593
|
+
string transaction_id = 3;
|
|
594
|
+
optional string start_date = 4;
|
|
595
|
+
optional string end_date = 5;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
message GetPendingFeesResponse {
|
|
599
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
600
|
+
repeated PendingFee pending_fees = 2;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// ================== GetSavingsInterest ==================
|
|
604
|
+
message GetSavingsInterestRequest {
|
|
605
|
+
string contract_id = 1;
|
|
606
|
+
string provider_id = 2;
|
|
607
|
+
string transaction_id = 3;
|
|
608
|
+
optional string start_date = 4;
|
|
609
|
+
optional string end_date = 5;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
message GetSavingsInterestResponse {
|
|
613
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
614
|
+
SavingsInterest saving_interest = 2;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// ================== GetHolds ==================
|
|
618
|
+
message GetHoldsRequest {
|
|
619
|
+
string contract_id = 1;
|
|
620
|
+
string provider_id = 2;
|
|
621
|
+
string transaction_id = 3;
|
|
622
|
+
optional string start_date = 4;
|
|
623
|
+
optional string end_date = 5;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
message GetHoldsResponse {
|
|
627
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
628
|
+
repeated Hold holds = 2;
|
|
629
|
+
}
|