@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.
Files changed (94) hide show
  1. package/README.md +26 -0
  2. package/buf.gen.yaml +14 -0
  3. package/buf.yaml +9 -0
  4. package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
  5. package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
  6. package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
  7. package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
  8. package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
  9. package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
  10. package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
  11. package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
  12. package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
  13. package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
  14. package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
  15. package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
  16. package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
  17. package/dist/generated/kapital/cards/v1/cards.js +2996 -0
  18. package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
  19. package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
  20. package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
  21. package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
  22. package/dist/generated/kapital/common/v1/error.d.ts +24 -0
  23. package/dist/generated/kapital/common/v1/error.js +119 -0
  24. package/dist/generated/kapital/common/v1/error.js.map +1 -0
  25. package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
  26. package/dist/generated/kapital/common/v1/meta.js +86 -0
  27. package/dist/generated/kapital/common/v1/meta.js.map +1 -0
  28. package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
  29. package/dist/generated/kapital/common/v1/pagination.js +149 -0
  30. package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
  31. package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
  32. package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
  33. package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
  34. package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
  35. package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
  36. package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
  37. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
  38. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
  39. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
  40. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
  41. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
  42. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
  43. package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
  44. package/dist/generated/kapital/customers/v1/customers.js +2542 -0
  45. package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
  46. package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
  47. package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
  48. package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
  49. package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
  50. package/dist/generated/kapital/payments/v1/payments.js +915 -0
  51. package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
  52. package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
  53. package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
  54. package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
  55. package/dist/generated/kapital/products/v1/products.d.ts +234 -0
  56. package/dist/generated/kapital/products/v1/products.js +1369 -0
  57. package/dist/generated/kapital/products/v1/products.js.map +1 -0
  58. package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
  59. package/dist/generated/kapital/products/v1/products_types.js +1696 -0
  60. package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
  61. package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
  62. package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
  63. package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
  64. package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
  65. package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
  66. package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
  67. package/dist/index.d.ts +22 -0
  68. package/dist/index.js +59 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/runtime/grpc.d.ts +2 -0
  71. package/dist/runtime/grpc.js +9 -0
  72. package/dist/runtime/grpc.js.map +1 -0
  73. package/package.json +195 -0
  74. package/proto/kapital/accounts/v1/accounts.proto +80 -0
  75. package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
  76. package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
  77. package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
  78. package/proto/kapital/cards/v1/cards.proto +298 -0
  79. package/proto/kapital/cards/v1/cards_types.proto +117 -0
  80. package/proto/kapital/common/v1/error.proto +18 -0
  81. package/proto/kapital/common/v1/meta.proto +13 -0
  82. package/proto/kapital/common/v1/pagination.proto +18 -0
  83. package/proto/kapital/contracts/v1/contracts.proto +629 -0
  84. package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
  85. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
  86. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
  87. package/proto/kapital/customers/v1/customers.proto +235 -0
  88. package/proto/kapital/customers/v1/customers_types.proto +87 -0
  89. package/proto/kapital/payments/v1/payments.proto +94 -0
  90. package/proto/kapital/payments/v1/payments_types.proto +18 -0
  91. package/proto/kapital/products/v1/products.proto +139 -0
  92. package/proto/kapital/products/v1/products_types.proto +156 -0
  93. package/proto/kapital/transactions/v1/transactions.proto +70 -0
  94. package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
@@ -0,0 +1,493 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
+ import { ResponseMeta } from "../../common/v1/meta";
4
+ import { PageRequest, PageResponse } from "../../common/v1/pagination";
5
+ import { CatalogItem, Contract, Customer, CustomerCard, Period, Transaction } from "./customers_types";
6
+ export declare const protobufPackage = "kapital.customers.v1";
7
+ export interface GetCustomersRequest {
8
+ page_request: PageRequest | undefined;
9
+ q: string;
10
+ status: string;
11
+ rfc: string;
12
+ customer_number: string;
13
+ product_type: string;
14
+ product: string;
15
+ }
16
+ export interface GetCustomersResponse {
17
+ meta: ResponseMeta | undefined;
18
+ page_response: PageResponse | undefined;
19
+ customers: Customer[];
20
+ }
21
+ export interface GetCustomerByIdRequest {
22
+ customer_id: string;
23
+ }
24
+ export interface GetCustomerByIdResponse {
25
+ meta: ResponseMeta | undefined;
26
+ customer: Customer | undefined;
27
+ }
28
+ export interface GetContractsByCustomerRequest {
29
+ customer_id: string;
30
+ page_request: PageRequest | undefined;
31
+ q: string;
32
+ status: string;
33
+ rfc: string;
34
+ business_name: string;
35
+ product: string;
36
+ product_type: string;
37
+ card_number: string;
38
+ clabe: string;
39
+ }
40
+ export interface GetContractsByCustomerResponse {
41
+ meta: ResponseMeta | undefined;
42
+ customer: string;
43
+ page_response: PageResponse | undefined;
44
+ contracts: Contract[];
45
+ }
46
+ export interface GetContractByIdRequest {
47
+ customer_id: string;
48
+ contract_id: string;
49
+ }
50
+ export interface GetContractByIdResponse {
51
+ meta: ResponseMeta | undefined;
52
+ contract: Contract | undefined;
53
+ }
54
+ export interface GetTransactionsByContractRequest {
55
+ contract_number: string;
56
+ page_request: PageRequest | undefined;
57
+ q: string;
58
+ status: string;
59
+ transaction_type: string;
60
+ date: string;
61
+ start_date: string;
62
+ end_date: string;
63
+ card_number: string;
64
+ merchant_number: string;
65
+ }
66
+ export interface GetTransactionsByContractResponse {
67
+ meta: ResponseMeta | undefined;
68
+ page_response: PageResponse | undefined;
69
+ transactions: Transaction[];
70
+ }
71
+ export interface GetCardsByContractRequest {
72
+ customer_id: string;
73
+ contract_id: string;
74
+ page_request: PageRequest | undefined;
75
+ }
76
+ export interface GetCardsByContractResponse {
77
+ meta: ResponseMeta | undefined;
78
+ page_response: PageResponse | undefined;
79
+ cards: CustomerCard[];
80
+ }
81
+ export interface GetCardDetailRequest {
82
+ customer_id: string;
83
+ contract_id: string;
84
+ card_id: string;
85
+ }
86
+ export interface GetCardDetailResponse {
87
+ meta: ResponseMeta | undefined;
88
+ card: CustomerCard | undefined;
89
+ }
90
+ export interface GetCardTransactionsRequest {
91
+ customer_id: string;
92
+ contract_id: string;
93
+ card_id: string;
94
+ page_request: PageRequest | undefined;
95
+ }
96
+ export interface GetCardTransactionsResponse {
97
+ meta: ResponseMeta | undefined;
98
+ page_response: PageResponse | undefined;
99
+ transactions: Transaction[];
100
+ }
101
+ export interface GetContractPeriodsRequest {
102
+ customer_id: string;
103
+ contract_id: string;
104
+ page_request: PageRequest | undefined;
105
+ }
106
+ export interface GetContractPeriodsResponse {
107
+ meta: ResponseMeta | undefined;
108
+ total: number;
109
+ periods: Period[];
110
+ }
111
+ export interface GetCardPeriodsRequest {
112
+ customer_id: string;
113
+ contract_id: string;
114
+ card_id: string;
115
+ page_request: PageRequest | undefined;
116
+ }
117
+ export interface GetCardPeriodsResponse {
118
+ meta: ResponseMeta | undefined;
119
+ total: number;
120
+ periods: Period[];
121
+ }
122
+ /** Catalogs */
123
+ export interface GetCustomerStatusesRequest {
124
+ }
125
+ export interface GetCustomerStatusesResponse {
126
+ meta: ResponseMeta | undefined;
127
+ total: number;
128
+ items: CatalogItem[];
129
+ }
130
+ export interface GetDelinquencyLevelsRequest {
131
+ }
132
+ export interface GetDelinquencyLevelsResponse {
133
+ meta: ResponseMeta | undefined;
134
+ total: number;
135
+ items: CatalogItem[];
136
+ }
137
+ export interface GetContractStatusesRequest {
138
+ }
139
+ export interface GetContractStatusesResponse {
140
+ meta: ResponseMeta | undefined;
141
+ total: number;
142
+ items: CatalogItem[];
143
+ }
144
+ export interface GetCustomerCardStatusesRequest {
145
+ }
146
+ export interface GetCustomerCardStatusesResponse {
147
+ meta: ResponseMeta | undefined;
148
+ total: number;
149
+ items: CatalogItem[];
150
+ }
151
+ export interface GetCustomerProductTypesRequest {
152
+ }
153
+ export interface GetCustomerProductTypesResponse {
154
+ meta: ResponseMeta | undefined;
155
+ total: number;
156
+ items: CatalogItem[];
157
+ }
158
+ export interface GetCustomerCardTypesRequest {
159
+ }
160
+ export interface GetCustomerCardTypesResponse {
161
+ meta: ResponseMeta | undefined;
162
+ total: number;
163
+ items: CatalogItem[];
164
+ }
165
+ export interface GetMccsRequest {
166
+ }
167
+ export interface GetMccsResponse {
168
+ meta: ResponseMeta | undefined;
169
+ total: number;
170
+ items: CatalogItem[];
171
+ }
172
+ export interface GetTransactionTypesRequest {
173
+ }
174
+ export interface GetTransactionTypesResponse {
175
+ meta: ResponseMeta | undefined;
176
+ total: number;
177
+ items: CatalogItem[];
178
+ }
179
+ export interface GetTransactionChannelsRequest {
180
+ }
181
+ export interface GetTransactionChannelsResponse {
182
+ meta: ResponseMeta | undefined;
183
+ total: number;
184
+ items: CatalogItem[];
185
+ }
186
+ export declare const GetCustomersRequest: MessageFns<GetCustomersRequest>;
187
+ export declare const GetCustomersResponse: MessageFns<GetCustomersResponse>;
188
+ export declare const GetCustomerByIdRequest: MessageFns<GetCustomerByIdRequest>;
189
+ export declare const GetCustomerByIdResponse: MessageFns<GetCustomerByIdResponse>;
190
+ export declare const GetContractsByCustomerRequest: MessageFns<GetContractsByCustomerRequest>;
191
+ export declare const GetContractsByCustomerResponse: MessageFns<GetContractsByCustomerResponse>;
192
+ export declare const GetContractByIdRequest: MessageFns<GetContractByIdRequest>;
193
+ export declare const GetContractByIdResponse: MessageFns<GetContractByIdResponse>;
194
+ export declare const GetTransactionsByContractRequest: MessageFns<GetTransactionsByContractRequest>;
195
+ export declare const GetTransactionsByContractResponse: MessageFns<GetTransactionsByContractResponse>;
196
+ export declare const GetCardsByContractRequest: MessageFns<GetCardsByContractRequest>;
197
+ export declare const GetCardsByContractResponse: MessageFns<GetCardsByContractResponse>;
198
+ export declare const GetCardDetailRequest: MessageFns<GetCardDetailRequest>;
199
+ export declare const GetCardDetailResponse: MessageFns<GetCardDetailResponse>;
200
+ export declare const GetCardTransactionsRequest: MessageFns<GetCardTransactionsRequest>;
201
+ export declare const GetCardTransactionsResponse: MessageFns<GetCardTransactionsResponse>;
202
+ export declare const GetContractPeriodsRequest: MessageFns<GetContractPeriodsRequest>;
203
+ export declare const GetContractPeriodsResponse: MessageFns<GetContractPeriodsResponse>;
204
+ export declare const GetCardPeriodsRequest: MessageFns<GetCardPeriodsRequest>;
205
+ export declare const GetCardPeriodsResponse: MessageFns<GetCardPeriodsResponse>;
206
+ export declare const GetCustomerStatusesRequest: MessageFns<GetCustomerStatusesRequest>;
207
+ export declare const GetCustomerStatusesResponse: MessageFns<GetCustomerStatusesResponse>;
208
+ export declare const GetDelinquencyLevelsRequest: MessageFns<GetDelinquencyLevelsRequest>;
209
+ export declare const GetDelinquencyLevelsResponse: MessageFns<GetDelinquencyLevelsResponse>;
210
+ export declare const GetContractStatusesRequest: MessageFns<GetContractStatusesRequest>;
211
+ export declare const GetContractStatusesResponse: MessageFns<GetContractStatusesResponse>;
212
+ export declare const GetCustomerCardStatusesRequest: MessageFns<GetCustomerCardStatusesRequest>;
213
+ export declare const GetCustomerCardStatusesResponse: MessageFns<GetCustomerCardStatusesResponse>;
214
+ export declare const GetCustomerProductTypesRequest: MessageFns<GetCustomerProductTypesRequest>;
215
+ export declare const GetCustomerProductTypesResponse: MessageFns<GetCustomerProductTypesResponse>;
216
+ export declare const GetCustomerCardTypesRequest: MessageFns<GetCustomerCardTypesRequest>;
217
+ export declare const GetCustomerCardTypesResponse: MessageFns<GetCustomerCardTypesResponse>;
218
+ export declare const GetMccsRequest: MessageFns<GetMccsRequest>;
219
+ export declare const GetMccsResponse: MessageFns<GetMccsResponse>;
220
+ export declare const GetTransactionTypesRequest: MessageFns<GetTransactionTypesRequest>;
221
+ export declare const GetTransactionTypesResponse: MessageFns<GetTransactionTypesResponse>;
222
+ export declare const GetTransactionChannelsRequest: MessageFns<GetTransactionChannelsRequest>;
223
+ export declare const GetTransactionChannelsResponse: MessageFns<GetTransactionChannelsResponse>;
224
+ export type CustomersServiceService = typeof CustomersServiceService;
225
+ export declare const CustomersServiceService: {
226
+ readonly getCustomers: {
227
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomers";
228
+ readonly requestStream: false;
229
+ readonly responseStream: false;
230
+ readonly requestSerialize: (value: GetCustomersRequest) => Buffer;
231
+ readonly requestDeserialize: (value: Buffer) => GetCustomersRequest;
232
+ readonly responseSerialize: (value: GetCustomersResponse) => Buffer;
233
+ readonly responseDeserialize: (value: Buffer) => GetCustomersResponse;
234
+ };
235
+ readonly getCustomerById: {
236
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomerById";
237
+ readonly requestStream: false;
238
+ readonly responseStream: false;
239
+ readonly requestSerialize: (value: GetCustomerByIdRequest) => Buffer;
240
+ readonly requestDeserialize: (value: Buffer) => GetCustomerByIdRequest;
241
+ readonly responseSerialize: (value: GetCustomerByIdResponse) => Buffer;
242
+ readonly responseDeserialize: (value: Buffer) => GetCustomerByIdResponse;
243
+ };
244
+ readonly getContractsByCustomer: {
245
+ readonly path: "/kapital.customers.v1.CustomersService/GetContractsByCustomer";
246
+ readonly requestStream: false;
247
+ readonly responseStream: false;
248
+ readonly requestSerialize: (value: GetContractsByCustomerRequest) => Buffer;
249
+ readonly requestDeserialize: (value: Buffer) => GetContractsByCustomerRequest;
250
+ readonly responseSerialize: (value: GetContractsByCustomerResponse) => Buffer;
251
+ readonly responseDeserialize: (value: Buffer) => GetContractsByCustomerResponse;
252
+ };
253
+ readonly getContractById: {
254
+ readonly path: "/kapital.customers.v1.CustomersService/GetContractById";
255
+ readonly requestStream: false;
256
+ readonly responseStream: false;
257
+ readonly requestSerialize: (value: GetContractByIdRequest) => Buffer;
258
+ readonly requestDeserialize: (value: Buffer) => GetContractByIdRequest;
259
+ readonly responseSerialize: (value: GetContractByIdResponse) => Buffer;
260
+ readonly responseDeserialize: (value: Buffer) => GetContractByIdResponse;
261
+ };
262
+ readonly getTransactionsByContract: {
263
+ readonly path: "/kapital.customers.v1.CustomersService/GetTransactionsByContract";
264
+ readonly requestStream: false;
265
+ readonly responseStream: false;
266
+ readonly requestSerialize: (value: GetTransactionsByContractRequest) => Buffer;
267
+ readonly requestDeserialize: (value: Buffer) => GetTransactionsByContractRequest;
268
+ readonly responseSerialize: (value: GetTransactionsByContractResponse) => Buffer;
269
+ readonly responseDeserialize: (value: Buffer) => GetTransactionsByContractResponse;
270
+ };
271
+ readonly getCardsByContract: {
272
+ readonly path: "/kapital.customers.v1.CustomersService/GetCardsByContract";
273
+ readonly requestStream: false;
274
+ readonly responseStream: false;
275
+ readonly requestSerialize: (value: GetCardsByContractRequest) => Buffer;
276
+ readonly requestDeserialize: (value: Buffer) => GetCardsByContractRequest;
277
+ readonly responseSerialize: (value: GetCardsByContractResponse) => Buffer;
278
+ readonly responseDeserialize: (value: Buffer) => GetCardsByContractResponse;
279
+ };
280
+ readonly getCardDetail: {
281
+ readonly path: "/kapital.customers.v1.CustomersService/GetCardDetail";
282
+ readonly requestStream: false;
283
+ readonly responseStream: false;
284
+ readonly requestSerialize: (value: GetCardDetailRequest) => Buffer;
285
+ readonly requestDeserialize: (value: Buffer) => GetCardDetailRequest;
286
+ readonly responseSerialize: (value: GetCardDetailResponse) => Buffer;
287
+ readonly responseDeserialize: (value: Buffer) => GetCardDetailResponse;
288
+ };
289
+ readonly getCardTransactions: {
290
+ readonly path: "/kapital.customers.v1.CustomersService/GetCardTransactions";
291
+ readonly requestStream: false;
292
+ readonly responseStream: false;
293
+ readonly requestSerialize: (value: GetCardTransactionsRequest) => Buffer;
294
+ readonly requestDeserialize: (value: Buffer) => GetCardTransactionsRequest;
295
+ readonly responseSerialize: (value: GetCardTransactionsResponse) => Buffer;
296
+ readonly responseDeserialize: (value: Buffer) => GetCardTransactionsResponse;
297
+ };
298
+ readonly getContractPeriods: {
299
+ readonly path: "/kapital.customers.v1.CustomersService/GetContractPeriods";
300
+ readonly requestStream: false;
301
+ readonly responseStream: false;
302
+ readonly requestSerialize: (value: GetContractPeriodsRequest) => Buffer;
303
+ readonly requestDeserialize: (value: Buffer) => GetContractPeriodsRequest;
304
+ readonly responseSerialize: (value: GetContractPeriodsResponse) => Buffer;
305
+ readonly responseDeserialize: (value: Buffer) => GetContractPeriodsResponse;
306
+ };
307
+ readonly getCardPeriods: {
308
+ readonly path: "/kapital.customers.v1.CustomersService/GetCardPeriods";
309
+ readonly requestStream: false;
310
+ readonly responseStream: false;
311
+ readonly requestSerialize: (value: GetCardPeriodsRequest) => Buffer;
312
+ readonly requestDeserialize: (value: Buffer) => GetCardPeriodsRequest;
313
+ readonly responseSerialize: (value: GetCardPeriodsResponse) => Buffer;
314
+ readonly responseDeserialize: (value: Buffer) => GetCardPeriodsResponse;
315
+ };
316
+ readonly getCustomerStatuses: {
317
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomerStatuses";
318
+ readonly requestStream: false;
319
+ readonly responseStream: false;
320
+ readonly requestSerialize: (value: GetCustomerStatusesRequest) => Buffer;
321
+ readonly requestDeserialize: (value: Buffer) => GetCustomerStatusesRequest;
322
+ readonly responseSerialize: (value: GetCustomerStatusesResponse) => Buffer;
323
+ readonly responseDeserialize: (value: Buffer) => GetCustomerStatusesResponse;
324
+ };
325
+ readonly getDelinquencyLevels: {
326
+ readonly path: "/kapital.customers.v1.CustomersService/GetDelinquencyLevels";
327
+ readonly requestStream: false;
328
+ readonly responseStream: false;
329
+ readonly requestSerialize: (value: GetDelinquencyLevelsRequest) => Buffer;
330
+ readonly requestDeserialize: (value: Buffer) => GetDelinquencyLevelsRequest;
331
+ readonly responseSerialize: (value: GetDelinquencyLevelsResponse) => Buffer;
332
+ readonly responseDeserialize: (value: Buffer) => GetDelinquencyLevelsResponse;
333
+ };
334
+ readonly getContractStatuses: {
335
+ readonly path: "/kapital.customers.v1.CustomersService/GetContractStatuses";
336
+ readonly requestStream: false;
337
+ readonly responseStream: false;
338
+ readonly requestSerialize: (value: GetContractStatusesRequest) => Buffer;
339
+ readonly requestDeserialize: (value: Buffer) => GetContractStatusesRequest;
340
+ readonly responseSerialize: (value: GetContractStatusesResponse) => Buffer;
341
+ readonly responseDeserialize: (value: Buffer) => GetContractStatusesResponse;
342
+ };
343
+ readonly getCustomerCardStatuses: {
344
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomerCardStatuses";
345
+ readonly requestStream: false;
346
+ readonly responseStream: false;
347
+ readonly requestSerialize: (value: GetCustomerCardStatusesRequest) => Buffer;
348
+ readonly requestDeserialize: (value: Buffer) => GetCustomerCardStatusesRequest;
349
+ readonly responseSerialize: (value: GetCustomerCardStatusesResponse) => Buffer;
350
+ readonly responseDeserialize: (value: Buffer) => GetCustomerCardStatusesResponse;
351
+ };
352
+ readonly getCustomerProductTypes: {
353
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomerProductTypes";
354
+ readonly requestStream: false;
355
+ readonly responseStream: false;
356
+ readonly requestSerialize: (value: GetCustomerProductTypesRequest) => Buffer;
357
+ readonly requestDeserialize: (value: Buffer) => GetCustomerProductTypesRequest;
358
+ readonly responseSerialize: (value: GetCustomerProductTypesResponse) => Buffer;
359
+ readonly responseDeserialize: (value: Buffer) => GetCustomerProductTypesResponse;
360
+ };
361
+ readonly getCustomerCardTypes: {
362
+ readonly path: "/kapital.customers.v1.CustomersService/GetCustomerCardTypes";
363
+ readonly requestStream: false;
364
+ readonly responseStream: false;
365
+ readonly requestSerialize: (value: GetCustomerCardTypesRequest) => Buffer;
366
+ readonly requestDeserialize: (value: Buffer) => GetCustomerCardTypesRequest;
367
+ readonly responseSerialize: (value: GetCustomerCardTypesResponse) => Buffer;
368
+ readonly responseDeserialize: (value: Buffer) => GetCustomerCardTypesResponse;
369
+ };
370
+ readonly getMccs: {
371
+ readonly path: "/kapital.customers.v1.CustomersService/GetMccs";
372
+ readonly requestStream: false;
373
+ readonly responseStream: false;
374
+ readonly requestSerialize: (value: GetMccsRequest) => Buffer;
375
+ readonly requestDeserialize: (value: Buffer) => GetMccsRequest;
376
+ readonly responseSerialize: (value: GetMccsResponse) => Buffer;
377
+ readonly responseDeserialize: (value: Buffer) => GetMccsResponse;
378
+ };
379
+ readonly getTransactionTypes: {
380
+ readonly path: "/kapital.customers.v1.CustomersService/GetTransactionTypes";
381
+ readonly requestStream: false;
382
+ readonly responseStream: false;
383
+ readonly requestSerialize: (value: GetTransactionTypesRequest) => Buffer;
384
+ readonly requestDeserialize: (value: Buffer) => GetTransactionTypesRequest;
385
+ readonly responseSerialize: (value: GetTransactionTypesResponse) => Buffer;
386
+ readonly responseDeserialize: (value: Buffer) => GetTransactionTypesResponse;
387
+ };
388
+ readonly getTransactionChannels: {
389
+ readonly path: "/kapital.customers.v1.CustomersService/GetTransactionChannels";
390
+ readonly requestStream: false;
391
+ readonly responseStream: false;
392
+ readonly requestSerialize: (value: GetTransactionChannelsRequest) => Buffer;
393
+ readonly requestDeserialize: (value: Buffer) => GetTransactionChannelsRequest;
394
+ readonly responseSerialize: (value: GetTransactionChannelsResponse) => Buffer;
395
+ readonly responseDeserialize: (value: Buffer) => GetTransactionChannelsResponse;
396
+ };
397
+ };
398
+ export interface CustomersServiceServer extends UntypedServiceImplementation {
399
+ getCustomers: handleUnaryCall<GetCustomersRequest, GetCustomersResponse>;
400
+ getCustomerById: handleUnaryCall<GetCustomerByIdRequest, GetCustomerByIdResponse>;
401
+ getContractsByCustomer: handleUnaryCall<GetContractsByCustomerRequest, GetContractsByCustomerResponse>;
402
+ getContractById: handleUnaryCall<GetContractByIdRequest, GetContractByIdResponse>;
403
+ getTransactionsByContract: handleUnaryCall<GetTransactionsByContractRequest, GetTransactionsByContractResponse>;
404
+ getCardsByContract: handleUnaryCall<GetCardsByContractRequest, GetCardsByContractResponse>;
405
+ getCardDetail: handleUnaryCall<GetCardDetailRequest, GetCardDetailResponse>;
406
+ getCardTransactions: handleUnaryCall<GetCardTransactionsRequest, GetCardTransactionsResponse>;
407
+ getContractPeriods: handleUnaryCall<GetContractPeriodsRequest, GetContractPeriodsResponse>;
408
+ getCardPeriods: handleUnaryCall<GetCardPeriodsRequest, GetCardPeriodsResponse>;
409
+ getCustomerStatuses: handleUnaryCall<GetCustomerStatusesRequest, GetCustomerStatusesResponse>;
410
+ getDelinquencyLevels: handleUnaryCall<GetDelinquencyLevelsRequest, GetDelinquencyLevelsResponse>;
411
+ getContractStatuses: handleUnaryCall<GetContractStatusesRequest, GetContractStatusesResponse>;
412
+ getCustomerCardStatuses: handleUnaryCall<GetCustomerCardStatusesRequest, GetCustomerCardStatusesResponse>;
413
+ getCustomerProductTypes: handleUnaryCall<GetCustomerProductTypesRequest, GetCustomerProductTypesResponse>;
414
+ getCustomerCardTypes: handleUnaryCall<GetCustomerCardTypesRequest, GetCustomerCardTypesResponse>;
415
+ getMccs: handleUnaryCall<GetMccsRequest, GetMccsResponse>;
416
+ getTransactionTypes: handleUnaryCall<GetTransactionTypesRequest, GetTransactionTypesResponse>;
417
+ getTransactionChannels: handleUnaryCall<GetTransactionChannelsRequest, GetTransactionChannelsResponse>;
418
+ }
419
+ export interface CustomersServiceClient extends Client {
420
+ getCustomers(request: GetCustomersRequest, callback: (error: ServiceError | null, response: GetCustomersResponse) => void): ClientUnaryCall;
421
+ getCustomers(request: GetCustomersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomersResponse) => void): ClientUnaryCall;
422
+ getCustomers(request: GetCustomersRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomersResponse) => void): ClientUnaryCall;
423
+ getCustomerById(request: GetCustomerByIdRequest, callback: (error: ServiceError | null, response: GetCustomerByIdResponse) => void): ClientUnaryCall;
424
+ getCustomerById(request: GetCustomerByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerByIdResponse) => void): ClientUnaryCall;
425
+ getCustomerById(request: GetCustomerByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerByIdResponse) => void): ClientUnaryCall;
426
+ getContractsByCustomer(request: GetContractsByCustomerRequest, callback: (error: ServiceError | null, response: GetContractsByCustomerResponse) => void): ClientUnaryCall;
427
+ getContractsByCustomer(request: GetContractsByCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractsByCustomerResponse) => void): ClientUnaryCall;
428
+ getContractsByCustomer(request: GetContractsByCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractsByCustomerResponse) => void): ClientUnaryCall;
429
+ getContractById(request: GetContractByIdRequest, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
430
+ getContractById(request: GetContractByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
431
+ getContractById(request: GetContractByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
432
+ getTransactionsByContract(request: GetTransactionsByContractRequest, callback: (error: ServiceError | null, response: GetTransactionsByContractResponse) => void): ClientUnaryCall;
433
+ getTransactionsByContract(request: GetTransactionsByContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetTransactionsByContractResponse) => void): ClientUnaryCall;
434
+ getTransactionsByContract(request: GetTransactionsByContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTransactionsByContractResponse) => void): ClientUnaryCall;
435
+ getCardsByContract(request: GetCardsByContractRequest, callback: (error: ServiceError | null, response: GetCardsByContractResponse) => void): ClientUnaryCall;
436
+ getCardsByContract(request: GetCardsByContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardsByContractResponse) => void): ClientUnaryCall;
437
+ getCardsByContract(request: GetCardsByContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardsByContractResponse) => void): ClientUnaryCall;
438
+ getCardDetail(request: GetCardDetailRequest, callback: (error: ServiceError | null, response: GetCardDetailResponse) => void): ClientUnaryCall;
439
+ getCardDetail(request: GetCardDetailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardDetailResponse) => void): ClientUnaryCall;
440
+ getCardDetail(request: GetCardDetailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardDetailResponse) => void): ClientUnaryCall;
441
+ getCardTransactions(request: GetCardTransactionsRequest, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
442
+ getCardTransactions(request: GetCardTransactionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
443
+ getCardTransactions(request: GetCardTransactionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
444
+ getContractPeriods(request: GetContractPeriodsRequest, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
445
+ getContractPeriods(request: GetContractPeriodsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
446
+ getContractPeriods(request: GetContractPeriodsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
447
+ getCardPeriods(request: GetCardPeriodsRequest, callback: (error: ServiceError | null, response: GetCardPeriodsResponse) => void): ClientUnaryCall;
448
+ getCardPeriods(request: GetCardPeriodsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardPeriodsResponse) => void): ClientUnaryCall;
449
+ getCardPeriods(request: GetCardPeriodsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardPeriodsResponse) => void): ClientUnaryCall;
450
+ getCustomerStatuses(request: GetCustomerStatusesRequest, callback: (error: ServiceError | null, response: GetCustomerStatusesResponse) => void): ClientUnaryCall;
451
+ getCustomerStatuses(request: GetCustomerStatusesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerStatusesResponse) => void): ClientUnaryCall;
452
+ getCustomerStatuses(request: GetCustomerStatusesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerStatusesResponse) => void): ClientUnaryCall;
453
+ getDelinquencyLevels(request: GetDelinquencyLevelsRequest, callback: (error: ServiceError | null, response: GetDelinquencyLevelsResponse) => void): ClientUnaryCall;
454
+ getDelinquencyLevels(request: GetDelinquencyLevelsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetDelinquencyLevelsResponse) => void): ClientUnaryCall;
455
+ getDelinquencyLevels(request: GetDelinquencyLevelsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetDelinquencyLevelsResponse) => void): ClientUnaryCall;
456
+ getContractStatuses(request: GetContractStatusesRequest, callback: (error: ServiceError | null, response: GetContractStatusesResponse) => void): ClientUnaryCall;
457
+ getContractStatuses(request: GetContractStatusesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractStatusesResponse) => void): ClientUnaryCall;
458
+ getContractStatuses(request: GetContractStatusesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractStatusesResponse) => void): ClientUnaryCall;
459
+ getCustomerCardStatuses(request: GetCustomerCardStatusesRequest, callback: (error: ServiceError | null, response: GetCustomerCardStatusesResponse) => void): ClientUnaryCall;
460
+ getCustomerCardStatuses(request: GetCustomerCardStatusesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerCardStatusesResponse) => void): ClientUnaryCall;
461
+ getCustomerCardStatuses(request: GetCustomerCardStatusesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerCardStatusesResponse) => void): ClientUnaryCall;
462
+ getCustomerProductTypes(request: GetCustomerProductTypesRequest, callback: (error: ServiceError | null, response: GetCustomerProductTypesResponse) => void): ClientUnaryCall;
463
+ getCustomerProductTypes(request: GetCustomerProductTypesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerProductTypesResponse) => void): ClientUnaryCall;
464
+ getCustomerProductTypes(request: GetCustomerProductTypesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerProductTypesResponse) => void): ClientUnaryCall;
465
+ getCustomerCardTypes(request: GetCustomerCardTypesRequest, callback: (error: ServiceError | null, response: GetCustomerCardTypesResponse) => void): ClientUnaryCall;
466
+ getCustomerCardTypes(request: GetCustomerCardTypesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerCardTypesResponse) => void): ClientUnaryCall;
467
+ getCustomerCardTypes(request: GetCustomerCardTypesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerCardTypesResponse) => void): ClientUnaryCall;
468
+ getMccs(request: GetMccsRequest, callback: (error: ServiceError | null, response: GetMccsResponse) => void): ClientUnaryCall;
469
+ getMccs(request: GetMccsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetMccsResponse) => void): ClientUnaryCall;
470
+ getMccs(request: GetMccsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetMccsResponse) => void): ClientUnaryCall;
471
+ getTransactionTypes(request: GetTransactionTypesRequest, callback: (error: ServiceError | null, response: GetTransactionTypesResponse) => void): ClientUnaryCall;
472
+ getTransactionTypes(request: GetTransactionTypesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetTransactionTypesResponse) => void): ClientUnaryCall;
473
+ getTransactionTypes(request: GetTransactionTypesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTransactionTypesResponse) => void): ClientUnaryCall;
474
+ getTransactionChannels(request: GetTransactionChannelsRequest, callback: (error: ServiceError | null, response: GetTransactionChannelsResponse) => void): ClientUnaryCall;
475
+ getTransactionChannels(request: GetTransactionChannelsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetTransactionChannelsResponse) => void): ClientUnaryCall;
476
+ getTransactionChannels(request: GetTransactionChannelsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTransactionChannelsResponse) => void): ClientUnaryCall;
477
+ }
478
+ export declare const CustomersServiceClient: {
479
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CustomersServiceClient;
480
+ service: typeof CustomersServiceService;
481
+ serviceName: string;
482
+ };
483
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
484
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
485
+ [K in keyof T]?: DeepPartial<T[K]>;
486
+ } : Partial<T>;
487
+ export interface MessageFns<T> {
488
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
489
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
490
+ create(base?: DeepPartial<T>): T;
491
+ fromPartial(object: DeepPartial<T>): T;
492
+ }
493
+ export {};