@alexochihua/protos 1.0.0 → 1.0.2
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 +2 -2
- package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
- package/dist/generated/kapital/cards/v1/cards.js +36 -2795
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
- package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
- package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
- package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +8 -1
- package/dist/generated/kapital/customers/v1/customers_types.js +100 -9
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -1
- package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
- package/dist/generated/kapital/offers/v1/offers.js +1097 -0
- package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
- package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
- package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
- package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
- package/dist/index.d.ts +25 -13
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/package.json +277 -193
- package/proto/kapital/cards/v1/cards.proto +3 -269
- package/proto/kapital/cards/v1/cards_types.proto +26 -110
- package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
- package/proto/kapital/commissions/v1/commissions.proto +69 -0
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
- package/proto/kapital/customers/v1/customers_types.proto +10 -3
- package/proto/kapital/offers/v1/offers.proto +111 -0
- package/proto/kapital/offers/v1/offers_types.proto +54 -0
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.payments_methods.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/payments_methods/v1;paymentsmethodsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/payments_methods/v1/payments_methods_types.proto";
|
|
10
|
+
|
|
11
|
+
service PaymentsMethodsService {
|
|
12
|
+
// Card Inventory
|
|
13
|
+
rpc GetCardInventory(GetCardInventoryRequest) returns (GetCardInventoryResponse);
|
|
14
|
+
rpc GetCardById(GetCardByIdRequest) returns (GetCardByIdResponse);
|
|
15
|
+
rpc UpdateCardStatus(UpdateCardStatusRequest) returns (UpdateCardStatusResponse);
|
|
16
|
+
rpc GetInventoryCardTracking(GetInventoryCardTrackingRequest) returns (GetInventoryCardTrackingResponse);
|
|
17
|
+
rpc UpdateInventoryCard(UpdateInventoryCardRequest) returns (UpdateInventoryCardResponse);
|
|
18
|
+
rpc SyncCardStatus(SyncCardStatusRequest) returns (SyncCardStatusResponse);
|
|
19
|
+
|
|
20
|
+
// Manufacturing Batches
|
|
21
|
+
rpc GetManufacturingBatches(GetManufacturingBatchesRequest) returns (GetManufacturingBatchesResponse);
|
|
22
|
+
rpc GetManufacturingBatchById(GetManufacturingBatchByIdRequest) returns (GetManufacturingBatchByIdResponse);
|
|
23
|
+
rpc CreateManufacturingBatch(CreateManufacturingBatchRequest) returns (CreateManufacturingBatchResponse);
|
|
24
|
+
rpc GetBatchCards(GetBatchCardsRequest) returns (GetBatchCardsResponse);
|
|
25
|
+
rpc GetProductDetail(GetProductDetailRequest) returns (GetProductDetailResponse);
|
|
26
|
+
rpc GetCardholderByCardNumber(GetCardholderByCardNumberRequest) returns (GetCardholderByCardNumberResponse);
|
|
27
|
+
rpc GetAgreementDetail(GetAgreementDetailRequest) returns (GetAgreementDetailResponse);
|
|
28
|
+
|
|
29
|
+
// Virtual Cards
|
|
30
|
+
rpc GetVirtualCards(GetVirtualCardsRequest) returns (GetVirtualCardsResponse);
|
|
31
|
+
rpc GetVirtualCardById(GetVirtualCardByIdRequest) returns (GetVirtualCardByIdResponse);
|
|
32
|
+
rpc CreateVirtualCard(CreateVirtualCardRequest) returns (CreateVirtualCardResponse);
|
|
33
|
+
rpc UpdateVirtualCardActivation(UpdateVirtualCardActivationRequest) returns (UpdateVirtualCardActivationResponse);
|
|
34
|
+
rpc AssignVirtualCard(AssignVirtualCardRequest) returns (AssignVirtualCardResponse);
|
|
35
|
+
rpc DeleteVirtualCard(DeleteVirtualCardRequest) returns (DeleteVirtualCardResponse);
|
|
36
|
+
|
|
37
|
+
// Manufacturers
|
|
38
|
+
rpc GetManufacturers(GetManufacturersRequest) returns (GetManufacturersResponse);
|
|
39
|
+
rpc GetManufacturerById(GetManufacturerByIdRequest) returns (GetManufacturerByIdResponse);
|
|
40
|
+
rpc GetManufacturerDetail(GetManufacturerDetailRequest) returns (GetManufacturerDetailResponse);
|
|
41
|
+
rpc GetManufacturerProducts(GetManufacturerProductsRequest) returns (GetManufacturerProductsResponse);
|
|
42
|
+
|
|
43
|
+
// Catalogs
|
|
44
|
+
rpc GetCardTypes(GetCardTypesRequest) returns (GetCardTypesResponse);
|
|
45
|
+
rpc GetCardBrands(GetCardBrandsRequest) returns (GetCardBrandsResponse);
|
|
46
|
+
rpc GetCardStatuses(GetCardStatusesRequest) returns (GetCardStatusesResponse);
|
|
47
|
+
rpc GetBatchStatuses(GetBatchStatusesRequest) returns (GetBatchStatusesResponse);
|
|
48
|
+
rpc GetPriorities(GetPrioritiesRequest) returns (GetPrioritiesResponse);
|
|
49
|
+
rpc GetIssuances(GetIssuancesRequest) returns (GetIssuancesResponse);
|
|
50
|
+
rpc GetPackagings(GetPackagingsRequest) returns (GetPackagingsResponse);
|
|
51
|
+
rpc GetDeliveries(GetDeliveriesRequest) returns (GetDeliveriesResponse);
|
|
52
|
+
rpc GetCardCarriers(GetCardCarriersRequest) returns (GetCardCarriersResponse);
|
|
53
|
+
rpc GetBranches(GetBranchesRequest) returns (GetBranchesResponse);
|
|
54
|
+
rpc GetProducts(GetProductsRequest) returns (GetProductsResponse);
|
|
55
|
+
rpc GetPersonalizationTypes(GetPersonalizationTypesRequest) returns (GetPersonalizationTypesResponse);
|
|
56
|
+
rpc GetAgreements(GetAgreementsRequest) returns (GetAgreementsResponse);
|
|
57
|
+
rpc GetVirtualCardStatuses(GetVirtualCardStatusesRequest) returns (GetVirtualCardStatusesResponse);
|
|
58
|
+
rpc GetVirtualCardProducts(GetVirtualCardProductsRequest) returns (GetVirtualCardProductsResponse);
|
|
59
|
+
rpc GetManufacturerStatuses(GetManufacturerStatusesRequest) returns (GetManufacturerStatusesResponse);
|
|
60
|
+
rpc GetStatusesThales(GetStatusesThalesRequest) returns (GetStatusesThalesResponse);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ============================================================================
|
|
64
|
+
// Card Inventory
|
|
65
|
+
// ============================================================================
|
|
66
|
+
|
|
67
|
+
message GetCardInventoryRequest {
|
|
68
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
69
|
+
string q = 2;
|
|
70
|
+
string status = 3;
|
|
71
|
+
string brand = 4;
|
|
72
|
+
string card_type = 5;
|
|
73
|
+
string branch_id = 6;
|
|
74
|
+
string bin = 7;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message GetCardInventoryResponse {
|
|
78
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
79
|
+
int32 total = 2;
|
|
80
|
+
repeated CardInventory cards = 3;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message GetCardByIdRequest {
|
|
84
|
+
string id = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message GetCardByIdResponse {
|
|
88
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
89
|
+
CardInventory card = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message UpdateCardStatusRequest {
|
|
93
|
+
string id = 1;
|
|
94
|
+
string status = 2;
|
|
95
|
+
string responsible_user = 3;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message UpdateCardStatusResponse {
|
|
99
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
100
|
+
CardInventory card = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message GetInventoryCardTrackingRequest {
|
|
104
|
+
string id = 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message GetInventoryCardTrackingResponse {
|
|
108
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
109
|
+
CardTracking tracking = 2;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message UpdateInventoryCardRequest {
|
|
113
|
+
string id = 1;
|
|
114
|
+
string status_id = 2;
|
|
115
|
+
string branch_id = 3;
|
|
116
|
+
string responsible_user = 4;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message UpdateInventoryCardResponse {
|
|
120
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
121
|
+
CardInventory card = 2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message SyncCardStatusRequest {
|
|
125
|
+
string id = 1;
|
|
126
|
+
string status_thales = 2;
|
|
127
|
+
string responsible_user = 3;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message SyncCardStatusResponse {
|
|
131
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
132
|
+
CardInventory card = 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ============================================================================
|
|
136
|
+
// Manufacturing Batches
|
|
137
|
+
// ============================================================================
|
|
138
|
+
|
|
139
|
+
message GetManufacturingBatchesRequest {
|
|
140
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
141
|
+
string q = 2;
|
|
142
|
+
string status = 3;
|
|
143
|
+
string brand = 4;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message GetManufacturingBatchesResponse {
|
|
147
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
148
|
+
int32 total = 2;
|
|
149
|
+
repeated ManufacturingBatch batches = 3;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message GetManufacturingBatchByIdRequest {
|
|
153
|
+
string id = 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message GetManufacturingBatchByIdResponse {
|
|
157
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
158
|
+
ManufacturingBatch batch = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message CreateManufacturingBatchRequest {
|
|
162
|
+
string product_type = 1;
|
|
163
|
+
string brand = 2;
|
|
164
|
+
int32 nominative_card_quantity = 3;
|
|
165
|
+
int32 innominative_card_quantity = 4;
|
|
166
|
+
int32 total_card_quantity = 5;
|
|
167
|
+
string bin = 6;
|
|
168
|
+
string manufacturer = 7;
|
|
169
|
+
string issuance = 8;
|
|
170
|
+
string personalization = 9;
|
|
171
|
+
string priority = 10;
|
|
172
|
+
string destination_branch = 11;
|
|
173
|
+
string packaging = 12;
|
|
174
|
+
string delivery = 13;
|
|
175
|
+
string card_carrier = 14;
|
|
176
|
+
string status = 15;
|
|
177
|
+
string generation_date = 16;
|
|
178
|
+
repeated NominativeCardData cards = 17;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message CreateManufacturingBatchResponse {
|
|
182
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
183
|
+
ManufacturingBatch batch = 2;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
message GetBatchCardsRequest {
|
|
187
|
+
string batch_id = 1;
|
|
188
|
+
kapital.common.v1.PageRequest page_request = 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message GetBatchCardsResponse {
|
|
192
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
193
|
+
int32 total = 2;
|
|
194
|
+
repeated BatchCard cards = 3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message GetProductDetailRequest {
|
|
198
|
+
string product_id = 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
message GetProductDetailResponse {
|
|
202
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
203
|
+
ProductDetail product_detail = 2;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message GetCardholderByCardNumberRequest {
|
|
207
|
+
string card_number = 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message GetCardholderByCardNumberResponse {
|
|
211
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
212
|
+
Cardholder cardholder = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message GetAgreementDetailRequest {
|
|
216
|
+
string agreement = 1;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
message GetAgreementDetailResponse {
|
|
220
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
221
|
+
AgreementDetail agreement_detail = 2;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// ============================================================================
|
|
225
|
+
// Virtual Cards
|
|
226
|
+
// ============================================================================
|
|
227
|
+
|
|
228
|
+
message GetVirtualCardsRequest {
|
|
229
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
230
|
+
string q = 2;
|
|
231
|
+
string status = 3;
|
|
232
|
+
string product_type = 4;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message GetVirtualCardsResponse {
|
|
236
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
237
|
+
int32 total = 2;
|
|
238
|
+
repeated VirtualCard cards = 3;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message GetVirtualCardByIdRequest {
|
|
242
|
+
string id = 1;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message GetVirtualCardByIdResponse {
|
|
246
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
247
|
+
VirtualCard card = 2;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message CreateVirtualCardRequest {
|
|
251
|
+
string pan = 1;
|
|
252
|
+
string bin = 2;
|
|
253
|
+
string status_id = 3;
|
|
254
|
+
string product_id = 4;
|
|
255
|
+
string physical_card_id = 5;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message CreateVirtualCardResponse {
|
|
259
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
260
|
+
VirtualCard card = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message UpdateVirtualCardActivationRequest {
|
|
264
|
+
string id = 1;
|
|
265
|
+
bool is_active = 2;
|
|
266
|
+
string activation_status = 3;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
message UpdateVirtualCardActivationResponse {
|
|
270
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
271
|
+
VirtualCard card = 2;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
message AssignVirtualCardRequest {
|
|
275
|
+
string id = 1;
|
|
276
|
+
string client_id = 2;
|
|
277
|
+
string client_name = 3;
|
|
278
|
+
string limit_amount = 4;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
message AssignVirtualCardResponse {
|
|
282
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
283
|
+
VirtualCard card = 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message DeleteVirtualCardRequest {
|
|
287
|
+
string id = 1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
message DeleteVirtualCardResponse {
|
|
291
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// ============================================================================
|
|
295
|
+
// Manufacturers
|
|
296
|
+
// ============================================================================
|
|
297
|
+
|
|
298
|
+
message GetManufacturersRequest {
|
|
299
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
300
|
+
string q = 2;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message GetManufacturersResponse {
|
|
304
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
305
|
+
int32 total = 2;
|
|
306
|
+
repeated Manufacturer manufacturers = 3;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
message GetManufacturerByIdRequest {
|
|
310
|
+
string id = 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
message GetManufacturerByIdResponse {
|
|
314
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
315
|
+
Manufacturer manufacturer = 2;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
message GetManufacturerDetailRequest {
|
|
319
|
+
string id = 1;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
message GetManufacturerDetailResponse {
|
|
323
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
324
|
+
ManufacturerDetail manufacturer = 2;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
message GetManufacturerProductsRequest {
|
|
328
|
+
string id = 1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
message GetManufacturerProductsResponse {
|
|
332
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
333
|
+
int32 total = 2;
|
|
334
|
+
repeated ProductTypeItem products = 3;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// ============================================================================
|
|
338
|
+
// Catalogs
|
|
339
|
+
// ============================================================================
|
|
340
|
+
|
|
341
|
+
message GetCardTypesRequest {
|
|
342
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
message GetCardTypesResponse {
|
|
346
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
347
|
+
int32 total = 2;
|
|
348
|
+
repeated CatalogItem types = 3;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
message GetCardBrandsRequest {
|
|
352
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
message GetCardBrandsResponse {
|
|
356
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
357
|
+
int32 total = 2;
|
|
358
|
+
repeated CatalogItem brands = 3;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
message GetCardStatusesRequest {
|
|
362
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message GetCardStatusesResponse {
|
|
366
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
367
|
+
int32 total = 2;
|
|
368
|
+
repeated CatalogItem statuses = 3;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
message GetBatchStatusesRequest {
|
|
372
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
message GetBatchStatusesResponse {
|
|
376
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
377
|
+
int32 total = 2;
|
|
378
|
+
repeated CatalogItem batch_statuses = 3;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
message GetPrioritiesRequest {
|
|
382
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
message GetPrioritiesResponse {
|
|
386
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
387
|
+
int32 total = 2;
|
|
388
|
+
repeated CatalogItem priorities = 3;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
message GetIssuancesRequest {
|
|
392
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
message GetIssuancesResponse {
|
|
396
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
397
|
+
int32 total = 2;
|
|
398
|
+
repeated CatalogItem issuances = 3;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
message GetPackagingsRequest {
|
|
402
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
message GetPackagingsResponse {
|
|
406
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
407
|
+
int32 total = 2;
|
|
408
|
+
repeated CatalogItem packagings = 3;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
message GetDeliveriesRequest {
|
|
412
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message GetDeliveriesResponse {
|
|
416
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
417
|
+
int32 total = 2;
|
|
418
|
+
repeated CatalogItem deliveries = 3;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
message GetCardCarriersRequest {
|
|
422
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
message GetCardCarriersResponse {
|
|
426
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
427
|
+
int32 total = 2;
|
|
428
|
+
repeated CatalogItem card_carriers = 3;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
message GetBranchesRequest {
|
|
432
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
message GetBranchesResponse {
|
|
436
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
437
|
+
int32 total = 2;
|
|
438
|
+
repeated CatalogItem branches = 3;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
message GetProductsRequest {
|
|
442
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
message GetProductsResponse {
|
|
446
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
447
|
+
int32 total = 2;
|
|
448
|
+
repeated CatalogItem products = 3;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
message GetPersonalizationTypesRequest {
|
|
452
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
message GetPersonalizationTypesResponse {
|
|
456
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
457
|
+
int32 total = 2;
|
|
458
|
+
repeated CatalogItem personalization_types = 3;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
message GetAgreementsRequest {
|
|
462
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
463
|
+
string search = 2;
|
|
464
|
+
string product_type = 3;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
message GetAgreementsResponse {
|
|
468
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
469
|
+
int32 total = 2;
|
|
470
|
+
repeated CatalogItem agreements = 3;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
message GetVirtualCardStatusesRequest {
|
|
474
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
message GetVirtualCardStatusesResponse {
|
|
478
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
479
|
+
int32 total = 2;
|
|
480
|
+
repeated CatalogItem virtual_card_statuses = 3;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
message GetVirtualCardProductsRequest {
|
|
484
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
message GetVirtualCardProductsResponse {
|
|
488
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
489
|
+
int32 total = 2;
|
|
490
|
+
repeated CatalogItem virtual_card_products = 3;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
message GetManufacturerStatusesRequest {
|
|
494
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
message GetManufacturerStatusesResponse {
|
|
498
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
499
|
+
int32 total = 2;
|
|
500
|
+
repeated CatalogItem manufacturer_statuses = 3;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
message GetStatusesThalesRequest {
|
|
504
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
message GetStatusesThalesResponse {
|
|
508
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
509
|
+
int32 total = 2;
|
|
510
|
+
repeated CatalogItem statuses_thales = 3;
|
|
511
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.payments_methods.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/payments_methods/v1;paymentsmethodsv1";
|
|
6
|
+
|
|
7
|
+
message CardInventory {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string card_number = 2;
|
|
10
|
+
string bin = 3;
|
|
11
|
+
string card_type = 4;
|
|
12
|
+
string brand = 5;
|
|
13
|
+
string product = 6;
|
|
14
|
+
string creation_date = 7;
|
|
15
|
+
string expiration_date = 8;
|
|
16
|
+
string status = 9;
|
|
17
|
+
string manufactured = 10;
|
|
18
|
+
string customer_name = 11;
|
|
19
|
+
string assigned_client = 12;
|
|
20
|
+
string responsible_user = 13;
|
|
21
|
+
string last_update = 14;
|
|
22
|
+
string lot = 15;
|
|
23
|
+
string branch = 16;
|
|
24
|
+
string branch_id = 17;
|
|
25
|
+
string channel = 18;
|
|
26
|
+
string created_at = 19;
|
|
27
|
+
string updated_at = 20;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message ManufacturingBatch {
|
|
31
|
+
string id = 1;
|
|
32
|
+
string brand = 2;
|
|
33
|
+
string card_carrier = 3;
|
|
34
|
+
int32 cards = 4;
|
|
35
|
+
string delivery = 5;
|
|
36
|
+
string destination_branch = 6;
|
|
37
|
+
string generation_date = 7;
|
|
38
|
+
int32 innominative_card_quantity = 8;
|
|
39
|
+
string issuance = 9;
|
|
40
|
+
string status = 10;
|
|
41
|
+
string created_at = 11;
|
|
42
|
+
string updated_at = 12;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message VirtualCard {
|
|
46
|
+
string id = 1;
|
|
47
|
+
string card_number = 2;
|
|
48
|
+
string product_type = 3;
|
|
49
|
+
string status = 4;
|
|
50
|
+
string customer_name = 5;
|
|
51
|
+
string customer_id = 6;
|
|
52
|
+
string expiration_date = 7;
|
|
53
|
+
string created_at = 8;
|
|
54
|
+
string updated_at = 9;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message CatalogItem {
|
|
58
|
+
string value = 1;
|
|
59
|
+
string label = 2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message CardTracking {
|
|
63
|
+
string id = 1;
|
|
64
|
+
string card_number = 2;
|
|
65
|
+
string creation_shipping_address = 3;
|
|
66
|
+
string last_location = 4;
|
|
67
|
+
string date_last_location = 5;
|
|
68
|
+
string created_at = 6;
|
|
69
|
+
string updated_at = 7;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message BatchCard {
|
|
73
|
+
string id = 1;
|
|
74
|
+
string id_short = 2;
|
|
75
|
+
string number_card = 3;
|
|
76
|
+
string agreement = 4;
|
|
77
|
+
string personalization_type = 5;
|
|
78
|
+
string personalization_nombre = 6;
|
|
79
|
+
string status_value = 7;
|
|
80
|
+
string status_label = 8;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message ProductDetail {
|
|
84
|
+
string product_type = 1;
|
|
85
|
+
string product_type_label = 2;
|
|
86
|
+
string personalization_id = 3;
|
|
87
|
+
string brand = 4;
|
|
88
|
+
string brand_label = 5;
|
|
89
|
+
string bin = 6;
|
|
90
|
+
string sub_bin = 7;
|
|
91
|
+
string country = 8;
|
|
92
|
+
string country_label = 9;
|
|
93
|
+
bool multi_currency = 10;
|
|
94
|
+
string main_currency = 11;
|
|
95
|
+
string main_currency_label = 12;
|
|
96
|
+
string main_currency_code = 13;
|
|
97
|
+
string product_key = 14;
|
|
98
|
+
int32 card_digits = 15;
|
|
99
|
+
string validity = 16;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message Cardholder {
|
|
103
|
+
string nombre = 1;
|
|
104
|
+
string apellido = 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message AgreementDetail {
|
|
108
|
+
string person_type = 1;
|
|
109
|
+
string nombre = 2;
|
|
110
|
+
string apellido = 3;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message Manufacturer {
|
|
114
|
+
string id = 1;
|
|
115
|
+
string manufacturer_name = 2;
|
|
116
|
+
string status_value = 3;
|
|
117
|
+
string status_label = 4;
|
|
118
|
+
string issuer_id = 5;
|
|
119
|
+
string x_user_id = 6;
|
|
120
|
+
string consumer_id = 7;
|
|
121
|
+
string created_at = 8;
|
|
122
|
+
string updated_at = 9;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message ManufacturerDetail {
|
|
126
|
+
string id_short = 1;
|
|
127
|
+
string id_long = 2;
|
|
128
|
+
string manufacturer_name = 3;
|
|
129
|
+
string created_at = 4;
|
|
130
|
+
int32 total_products = 5;
|
|
131
|
+
string status_value = 6;
|
|
132
|
+
string status_label = 7;
|
|
133
|
+
ManufacturerContact contact = 8;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message ManufacturerContact {
|
|
137
|
+
string street = 1;
|
|
138
|
+
string number = 2;
|
|
139
|
+
string neighborhood = 3;
|
|
140
|
+
string postal_code = 4;
|
|
141
|
+
string city = 5;
|
|
142
|
+
string state = 6;
|
|
143
|
+
string country = 7;
|
|
144
|
+
string email = 8;
|
|
145
|
+
string phone = 9;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message ProductTypeItem {
|
|
149
|
+
string value = 1;
|
|
150
|
+
string label = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message NominativeCardData {
|
|
154
|
+
string name = 1;
|
|
155
|
+
string second_name = 2;
|
|
156
|
+
string agreement = 3;
|
|
157
|
+
}
|