@alexochihua/protos 1.0.0 → 1.0.1

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 (69) hide show
  1. package/README.md +2 -2
  2. package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
  3. package/dist/generated/kapital/cards/v1/cards.js +36 -2795
  4. package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
  5. package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
  6. package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
  7. package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
  8. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
  9. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
  10. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
  11. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
  12. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
  13. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
  14. package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
  15. package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
  16. package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
  17. package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
  18. package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
  19. package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
  20. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
  21. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
  22. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
  23. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
  24. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
  25. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
  26. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
  27. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
  28. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
  29. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
  30. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
  31. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
  32. package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
  33. package/dist/generated/kapital/offers/v1/offers.js +1097 -0
  34. package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
  35. package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
  36. package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
  37. package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
  38. package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
  39. package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
  40. package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
  41. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
  42. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
  43. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
  44. package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
  45. package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
  46. package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
  47. package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
  48. package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
  49. package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
  50. package/dist/index.d.ts +25 -13
  51. package/dist/index.js +26 -14
  52. package/dist/index.js.map +1 -1
  53. package/package.json +277 -193
  54. package/proto/kapital/cards/v1/cards.proto +3 -269
  55. package/proto/kapital/cards/v1/cards_types.proto +26 -110
  56. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
  57. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
  58. package/proto/kapital/commissions/v1/commissions.proto +69 -0
  59. package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
  60. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
  61. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
  62. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
  63. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
  64. package/proto/kapital/offers/v1/offers.proto +111 -0
  65. package/proto/kapital/offers/v1/offers_types.proto +54 -0
  66. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
  67. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
  68. package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
  69. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @kapital/protos
1
+ # @alexochihua/protos
2
2
 
3
3
  Paquete local compartido con contratos gRPC (`.proto`) y codigo TypeScript generado para clientes y servidores Node.
4
4
 
@@ -14,7 +14,7 @@ Mientras la libreria no este publicada en un registry, los proyectos consumidore
14
14
  ```json
15
15
  {
16
16
  "dependencies": {
17
- "@kapital/protos": "file:../pe-mx-models-proto-main"
17
+ "@alexochihua/protos": "file:../pe-mx-models-proto-main"
18
18
  }
19
19
  }
20
20
  ```
@@ -1,27 +1,8 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
3
  import { ResponseMeta } from "../../common/v1/meta";
4
- import { CardContractCards, ContractCardReissue, CustomerContractCards, EmbossedCard, FreezeInfo, SpendControls } from "./cards_types";
4
+ import { Card } from "./cards_types";
5
5
  export declare const protobufPackage = "kapital.cards.v1";
6
- /** ================== GetExistsCustomer ================== */
7
- export interface GetExistsCustomerRequest {
8
- customer_id: string;
9
- }
10
- export interface GetExistsCustomerResponse {
11
- meta: ResponseMeta | undefined;
12
- customer_id: string;
13
- exists: boolean;
14
- }
15
- /** ================== GetExistsContract ================== */
16
- export interface GetExistsContractRequest {
17
- contract_id: string;
18
- }
19
- export interface GetExistsContractResponse {
20
- meta: ResponseMeta | undefined;
21
- contract_id: string;
22
- exists: boolean;
23
- }
24
- /** ================== GetExistsCard ================== */
25
6
  export interface GetExistsCardRequest {
26
7
  card_id: string;
27
8
  }
@@ -30,270 +11,19 @@ export interface GetExistsCardResponse {
30
11
  card_id: string;
31
12
  exists: boolean;
32
13
  }
33
- /** ================== GetContractCards ================== */
34
- export interface GetContractCardsRequest {
35
- customer_id: string;
36
- provider_id: string;
37
- transaction_id: string;
38
- included_related?: number | undefined;
39
- }
40
- export interface GetContractCardsResponse {
41
- meta: ResponseMeta | undefined;
42
- customer: CustomerContractCards | undefined;
43
- contracts: CardContractCards[];
44
- }
45
- /** ================== GetCard ================== */
46
14
  export interface GetCardRequest {
47
15
  card_id: string;
48
- provider_id: string;
49
- transaction_id: string;
50
16
  }
51
17
  export interface GetCardResponse {
52
18
  meta: ResponseMeta | undefined;
53
- card_number: string;
54
- expiry_date?: string | undefined;
55
- card_security_code?: string | undefined;
56
- status: string;
57
- card_id: string;
58
- external_card_id?: string | undefined;
59
- pmt_ref_no: string;
60
- first_name?: string | undefined;
61
- middle_name?: string | undefined;
62
- last_name?: string | undefined;
63
- encrypted_card_number?: string | undefined;
64
- encrypted_expiry_date?: string | undefined;
65
- emboss_uuid?: string | undefined;
66
- embossed_cards: EmbossedCard[];
67
- freeze_info: FreezeInfo | undefined;
68
- pin_fail_count?: string | undefined;
69
- pin_fail_date?: string | undefined;
70
- spend_controls: SpendControls | undefined;
71
- ssn?: string | undefined;
72
- card_format?: string | undefined;
73
- card_type?: string | undefined;
74
- address_1?: string | undefined;
75
- address_2?: string | undefined;
76
- city?: string | undefined;
77
- state?: string | undefined;
78
- postal_code?: string | undefined;
79
- country_code?: string | undefined;
80
- preferred_name?: string | undefined;
81
- }
82
- /** ================== ActivateCard ================== */
83
- export interface ActivateCardRequest {
84
- card_id: string;
85
- provider_id: string;
86
- transaction_id: string;
87
- card_expiry_date?: string | undefined;
88
- card_security_code?: string | undefined;
89
- card_number_last_4?: string | undefined;
90
- deactivate_temporary_cards?: number | undefined;
91
- }
92
- export interface ActivateCardResponse {
93
- meta: ResponseMeta | undefined;
94
- card_number_last_4: string;
95
- emboss_uuid: string;
96
- }
97
- /** ================== ReplaceLostStolenCard ================== */
98
- export interface ReplaceLostStolenCardRequest {
99
- card_id: string;
100
- provider_id: string;
101
- transaction_id: string;
102
- by_pass_rep_fee?: string | undefined;
103
- card_status?: string | undefined;
104
- card_number_last_4?: string | undefined;
105
- }
106
- export interface ReplaceLostStolenCardResponse {
107
- meta: ResponseMeta | undefined;
108
- card_number: string;
109
- emboss_uuid: string;
110
- expiry_date: string;
111
- card_security_code: string;
112
- status: string;
113
- card_id: string;
114
- external_card_id: string;
115
- pmt_ref_number: string;
116
- }
117
- /** ================== VerifyCvv ================== */
118
- export interface VerifyCvvRequest {
119
- card_id: string;
120
- provider_id: string;
121
- transaction_id: string;
122
- card_number: string;
123
- card_security_code: string;
124
- card_expiry_date?: string | undefined;
125
- }
126
- export interface VerifyCvvResponse {
127
- meta: ResponseMeta | undefined;
128
- verified: boolean;
19
+ card: Card | undefined;
129
20
  }
130
- /** ================== VoidAddCard ================== */
131
- export interface VoidAddCardRequest {
132
- card_id: string;
133
- provider_id: string;
134
- transaction_id: string;
135
- }
136
- export interface VoidAddCardResponse {
137
- meta: ResponseMeta | undefined;
138
- voided: boolean;
139
- }
140
- /** ================== ReissueCard ================== */
141
- export interface ReissueCardRequest {
142
- card_id: string;
143
- provider_id: string;
144
- transaction_id: string;
145
- new_pan?: string | undefined;
146
- new_expiry_date?: string | undefined;
147
- emboss?: string | undefined;
148
- old_card_status?: string | undefined;
149
- by_pass_mail_fee?: string | undefined;
150
- }
151
- export interface ReissueCardResponse {
152
- meta: ResponseMeta | undefined;
153
- prn: string;
154
- prod_id: string;
155
- app_date: string;
156
- status: string;
157
- active_flag: string;
158
- bill_cycle_day: number;
159
- group_id: string;
160
- start_date: string;
161
- contract_number: string;
162
- new_emboss_uuid: string;
163
- cards: ContractCardReissue[];
164
- }
165
- /** ================== CreateSingleUseVirtualCard ================== */
166
- export interface CreateSingleUseVirtualCardRequest {
167
- provider_id: string;
168
- transaction_id: string;
169
- primary_account_number: string;
170
- prod_id: number;
171
- credit_limit: number;
172
- }
173
- export interface CreateSingleUseVirtualCardResponse {
174
- meta: ResponseMeta | undefined;
175
- pmt_ref_number: string;
176
- card_id: string;
177
- }
178
- /** ================== ModifyStatus ================== */
179
- export interface ModifyStatusRequest {
180
- provider_id: string;
181
- transaction_id: string;
182
- contract_id: string;
183
- type: number;
184
- start_date?: string | undefined;
185
- end_date?: string | undefined;
186
- by_pass_rep_fee?: string | undefined;
187
- card_number_last_4?: string | undefined;
188
- closure_reason?: string | undefined;
189
- by_pass_mail_fee?: string | undefined;
190
- }
191
- /** ================== ModifyContract ================== */
192
- export interface ModifyContractRequest {
193
- contract_id: string;
194
- modify_status_dto: ModifyStatusRequest | undefined;
195
- }
196
- export interface ModifyContractResponse {
197
- meta: ResponseMeta | undefined;
198
- pmt_ref_number: string;
199
- account_status: string;
200
- new_emboss_uuid: string;
201
- }
202
- /** ================== GetCardId ================== */
203
- export interface GetCardIdRequest {
204
- contract_id: string;
205
- card_number_last_4: string;
206
- }
207
- export interface GetCardIdResponse {
208
- meta: ResponseMeta | undefined;
209
- card_id: string;
210
- }
211
- /** ================== ModifyCard ================== */
212
- export interface ModifyCardRequest {
213
- card_id: string;
214
- modify_status_dto: ModifyStatusRequest | undefined;
215
- }
216
- export interface ModifyCardResponse {
217
- meta: ResponseMeta | undefined;
218
- pmt_ref_number: string;
219
- account_status: string;
220
- new_emboss_uuid: string;
221
- }
222
- /** ================== ModifyContractAndCard ================== */
223
- export interface ModifyContractAndCardRequest {
224
- contract_id: string;
225
- card_id: string;
226
- modify_status_dto: ModifyStatusRequest | undefined;
227
- }
228
- export interface ModifyContractAndCardResponse {
229
- meta: ResponseMeta | undefined;
230
- pmt_ref_number: string;
231
- account_status: string;
232
- new_emboss_uuid: string;
233
- }
234
- /** ================== GetCardPinChangeKey ================== */
235
- export interface GetCardPinChangeKeyRequest {
236
- card_id: string;
237
- provider_id: string;
238
- transaction_id: string;
239
- }
240
- export interface GetCardPinChangeKeyResponse {
241
- meta: ResponseMeta | undefined;
242
- token: string;
243
- }
244
- export declare const GetExistsCustomerRequest: MessageFns<GetExistsCustomerRequest>;
245
- export declare const GetExistsCustomerResponse: MessageFns<GetExistsCustomerResponse>;
246
- export declare const GetExistsContractRequest: MessageFns<GetExistsContractRequest>;
247
- export declare const GetExistsContractResponse: MessageFns<GetExistsContractResponse>;
248
21
  export declare const GetExistsCardRequest: MessageFns<GetExistsCardRequest>;
249
22
  export declare const GetExistsCardResponse: MessageFns<GetExistsCardResponse>;
250
- export declare const GetContractCardsRequest: MessageFns<GetContractCardsRequest>;
251
- export declare const GetContractCardsResponse: MessageFns<GetContractCardsResponse>;
252
23
  export declare const GetCardRequest: MessageFns<GetCardRequest>;
253
24
  export declare const GetCardResponse: MessageFns<GetCardResponse>;
254
- export declare const ActivateCardRequest: MessageFns<ActivateCardRequest>;
255
- export declare const ActivateCardResponse: MessageFns<ActivateCardResponse>;
256
- export declare const ReplaceLostStolenCardRequest: MessageFns<ReplaceLostStolenCardRequest>;
257
- export declare const ReplaceLostStolenCardResponse: MessageFns<ReplaceLostStolenCardResponse>;
258
- export declare const VerifyCvvRequest: MessageFns<VerifyCvvRequest>;
259
- export declare const VerifyCvvResponse: MessageFns<VerifyCvvResponse>;
260
- export declare const VoidAddCardRequest: MessageFns<VoidAddCardRequest>;
261
- export declare const VoidAddCardResponse: MessageFns<VoidAddCardResponse>;
262
- export declare const ReissueCardRequest: MessageFns<ReissueCardRequest>;
263
- export declare const ReissueCardResponse: MessageFns<ReissueCardResponse>;
264
- export declare const CreateSingleUseVirtualCardRequest: MessageFns<CreateSingleUseVirtualCardRequest>;
265
- export declare const CreateSingleUseVirtualCardResponse: MessageFns<CreateSingleUseVirtualCardResponse>;
266
- export declare const ModifyStatusRequest: MessageFns<ModifyStatusRequest>;
267
- export declare const ModifyContractRequest: MessageFns<ModifyContractRequest>;
268
- export declare const ModifyContractResponse: MessageFns<ModifyContractResponse>;
269
- export declare const GetCardIdRequest: MessageFns<GetCardIdRequest>;
270
- export declare const GetCardIdResponse: MessageFns<GetCardIdResponse>;
271
- export declare const ModifyCardRequest: MessageFns<ModifyCardRequest>;
272
- export declare const ModifyCardResponse: MessageFns<ModifyCardResponse>;
273
- export declare const ModifyContractAndCardRequest: MessageFns<ModifyContractAndCardRequest>;
274
- export declare const ModifyContractAndCardResponse: MessageFns<ModifyContractAndCardResponse>;
275
- export declare const GetCardPinChangeKeyRequest: MessageFns<GetCardPinChangeKeyRequest>;
276
- export declare const GetCardPinChangeKeyResponse: MessageFns<GetCardPinChangeKeyResponse>;
277
25
  export type CardsServiceService = typeof CardsServiceService;
278
26
  export declare const CardsServiceService: {
279
- readonly getExistsCustomer: {
280
- readonly path: "/kapital.cards.v1.CardsService/GetExistsCustomer";
281
- readonly requestStream: false;
282
- readonly responseStream: false;
283
- readonly requestSerialize: (value: GetExistsCustomerRequest) => Buffer;
284
- readonly requestDeserialize: (value: Buffer) => GetExistsCustomerRequest;
285
- readonly responseSerialize: (value: GetExistsCustomerResponse) => Buffer;
286
- readonly responseDeserialize: (value: Buffer) => GetExistsCustomerResponse;
287
- };
288
- readonly getExistsContract: {
289
- readonly path: "/kapital.cards.v1.CardsService/GetExistsContract";
290
- readonly requestStream: false;
291
- readonly responseStream: false;
292
- readonly requestSerialize: (value: GetExistsContractRequest) => Buffer;
293
- readonly requestDeserialize: (value: Buffer) => GetExistsContractRequest;
294
- readonly responseSerialize: (value: GetExistsContractResponse) => Buffer;
295
- readonly responseDeserialize: (value: Buffer) => GetExistsContractResponse;
296
- };
297
27
  readonly getExistsCard: {
298
28
  readonly path: "/kapital.cards.v1.CardsService/GetExistsCard";
299
29
  readonly requestStream: false;
@@ -303,15 +33,6 @@ export declare const CardsServiceService: {
303
33
  readonly responseSerialize: (value: GetExistsCardResponse) => Buffer;
304
34
  readonly responseDeserialize: (value: Buffer) => GetExistsCardResponse;
305
35
  };
306
- readonly getContractCards: {
307
- readonly path: "/kapital.cards.v1.CardsService/GetContractCards";
308
- readonly requestStream: false;
309
- readonly responseStream: false;
310
- readonly requestSerialize: (value: GetContractCardsRequest) => Buffer;
311
- readonly requestDeserialize: (value: Buffer) => GetContractCardsRequest;
312
- readonly responseSerialize: (value: GetContractCardsResponse) => Buffer;
313
- readonly responseDeserialize: (value: Buffer) => GetContractCardsResponse;
314
- };
315
36
  readonly getCard: {
316
37
  readonly path: "/kapital.cards.v1.CardsService/GetCard";
317
38
  readonly requestStream: false;
@@ -321,173 +42,18 @@ export declare const CardsServiceService: {
321
42
  readonly responseSerialize: (value: GetCardResponse) => Buffer;
322
43
  readonly responseDeserialize: (value: Buffer) => GetCardResponse;
323
44
  };
324
- readonly activateCard: {
325
- readonly path: "/kapital.cards.v1.CardsService/ActivateCard";
326
- readonly requestStream: false;
327
- readonly responseStream: false;
328
- readonly requestSerialize: (value: ActivateCardRequest) => Buffer;
329
- readonly requestDeserialize: (value: Buffer) => ActivateCardRequest;
330
- readonly responseSerialize: (value: ActivateCardResponse) => Buffer;
331
- readonly responseDeserialize: (value: Buffer) => ActivateCardResponse;
332
- };
333
- readonly replaceLostStolenCard: {
334
- readonly path: "/kapital.cards.v1.CardsService/ReplaceLostStolenCard";
335
- readonly requestStream: false;
336
- readonly responseStream: false;
337
- readonly requestSerialize: (value: ReplaceLostStolenCardRequest) => Buffer;
338
- readonly requestDeserialize: (value: Buffer) => ReplaceLostStolenCardRequest;
339
- readonly responseSerialize: (value: ReplaceLostStolenCardResponse) => Buffer;
340
- readonly responseDeserialize: (value: Buffer) => ReplaceLostStolenCardResponse;
341
- };
342
- readonly verifyCvv: {
343
- readonly path: "/kapital.cards.v1.CardsService/VerifyCvv";
344
- readonly requestStream: false;
345
- readonly responseStream: false;
346
- readonly requestSerialize: (value: VerifyCvvRequest) => Buffer;
347
- readonly requestDeserialize: (value: Buffer) => VerifyCvvRequest;
348
- readonly responseSerialize: (value: VerifyCvvResponse) => Buffer;
349
- readonly responseDeserialize: (value: Buffer) => VerifyCvvResponse;
350
- };
351
- readonly voidAddCard: {
352
- readonly path: "/kapital.cards.v1.CardsService/VoidAddCard";
353
- readonly requestStream: false;
354
- readonly responseStream: false;
355
- readonly requestSerialize: (value: VoidAddCardRequest) => Buffer;
356
- readonly requestDeserialize: (value: Buffer) => VoidAddCardRequest;
357
- readonly responseSerialize: (value: VoidAddCardResponse) => Buffer;
358
- readonly responseDeserialize: (value: Buffer) => VoidAddCardResponse;
359
- };
360
- readonly reissueCard: {
361
- readonly path: "/kapital.cards.v1.CardsService/ReissueCard";
362
- readonly requestStream: false;
363
- readonly responseStream: false;
364
- readonly requestSerialize: (value: ReissueCardRequest) => Buffer;
365
- readonly requestDeserialize: (value: Buffer) => ReissueCardRequest;
366
- readonly responseSerialize: (value: ReissueCardResponse) => Buffer;
367
- readonly responseDeserialize: (value: Buffer) => ReissueCardResponse;
368
- };
369
- readonly createSingleUseVirtualCard: {
370
- readonly path: "/kapital.cards.v1.CardsService/CreateSingleUseVirtualCard";
371
- readonly requestStream: false;
372
- readonly responseStream: false;
373
- readonly requestSerialize: (value: CreateSingleUseVirtualCardRequest) => Buffer;
374
- readonly requestDeserialize: (value: Buffer) => CreateSingleUseVirtualCardRequest;
375
- readonly responseSerialize: (value: CreateSingleUseVirtualCardResponse) => Buffer;
376
- readonly responseDeserialize: (value: Buffer) => CreateSingleUseVirtualCardResponse;
377
- };
378
- readonly modifyContract: {
379
- readonly path: "/kapital.cards.v1.CardsService/ModifyContract";
380
- readonly requestStream: false;
381
- readonly responseStream: false;
382
- readonly requestSerialize: (value: ModifyContractRequest) => Buffer;
383
- readonly requestDeserialize: (value: Buffer) => ModifyContractRequest;
384
- readonly responseSerialize: (value: ModifyContractResponse) => Buffer;
385
- readonly responseDeserialize: (value: Buffer) => ModifyContractResponse;
386
- };
387
- readonly getCardId: {
388
- readonly path: "/kapital.cards.v1.CardsService/GetCardId";
389
- readonly requestStream: false;
390
- readonly responseStream: false;
391
- readonly requestSerialize: (value: GetCardIdRequest) => Buffer;
392
- readonly requestDeserialize: (value: Buffer) => GetCardIdRequest;
393
- readonly responseSerialize: (value: GetCardIdResponse) => Buffer;
394
- readonly responseDeserialize: (value: Buffer) => GetCardIdResponse;
395
- };
396
- readonly modifyCard: {
397
- readonly path: "/kapital.cards.v1.CardsService/ModifyCard";
398
- readonly requestStream: false;
399
- readonly responseStream: false;
400
- readonly requestSerialize: (value: ModifyCardRequest) => Buffer;
401
- readonly requestDeserialize: (value: Buffer) => ModifyCardRequest;
402
- readonly responseSerialize: (value: ModifyCardResponse) => Buffer;
403
- readonly responseDeserialize: (value: Buffer) => ModifyCardResponse;
404
- };
405
- readonly modifyContractAndCard: {
406
- readonly path: "/kapital.cards.v1.CardsService/ModifyContractAndCard";
407
- readonly requestStream: false;
408
- readonly responseStream: false;
409
- readonly requestSerialize: (value: ModifyContractAndCardRequest) => Buffer;
410
- readonly requestDeserialize: (value: Buffer) => ModifyContractAndCardRequest;
411
- readonly responseSerialize: (value: ModifyContractAndCardResponse) => Buffer;
412
- readonly responseDeserialize: (value: Buffer) => ModifyContractAndCardResponse;
413
- };
414
- readonly getCardPinChangeKey: {
415
- readonly path: "/kapital.cards.v1.CardsService/GetCardPinChangeKey";
416
- readonly requestStream: false;
417
- readonly responseStream: false;
418
- readonly requestSerialize: (value: GetCardPinChangeKeyRequest) => Buffer;
419
- readonly requestDeserialize: (value: Buffer) => GetCardPinChangeKeyRequest;
420
- readonly responseSerialize: (value: GetCardPinChangeKeyResponse) => Buffer;
421
- readonly responseDeserialize: (value: Buffer) => GetCardPinChangeKeyResponse;
422
- };
423
45
  };
424
46
  export interface CardsServiceServer extends UntypedServiceImplementation {
425
- getExistsCustomer: handleUnaryCall<GetExistsCustomerRequest, GetExistsCustomerResponse>;
426
- getExistsContract: handleUnaryCall<GetExistsContractRequest, GetExistsContractResponse>;
427
47
  getExistsCard: handleUnaryCall<GetExistsCardRequest, GetExistsCardResponse>;
428
- getContractCards: handleUnaryCall<GetContractCardsRequest, GetContractCardsResponse>;
429
48
  getCard: handleUnaryCall<GetCardRequest, GetCardResponse>;
430
- activateCard: handleUnaryCall<ActivateCardRequest, ActivateCardResponse>;
431
- replaceLostStolenCard: handleUnaryCall<ReplaceLostStolenCardRequest, ReplaceLostStolenCardResponse>;
432
- verifyCvv: handleUnaryCall<VerifyCvvRequest, VerifyCvvResponse>;
433
- voidAddCard: handleUnaryCall<VoidAddCardRequest, VoidAddCardResponse>;
434
- reissueCard: handleUnaryCall<ReissueCardRequest, ReissueCardResponse>;
435
- createSingleUseVirtualCard: handleUnaryCall<CreateSingleUseVirtualCardRequest, CreateSingleUseVirtualCardResponse>;
436
- modifyContract: handleUnaryCall<ModifyContractRequest, ModifyContractResponse>;
437
- getCardId: handleUnaryCall<GetCardIdRequest, GetCardIdResponse>;
438
- modifyCard: handleUnaryCall<ModifyCardRequest, ModifyCardResponse>;
439
- modifyContractAndCard: handleUnaryCall<ModifyContractAndCardRequest, ModifyContractAndCardResponse>;
440
- getCardPinChangeKey: handleUnaryCall<GetCardPinChangeKeyRequest, GetCardPinChangeKeyResponse>;
441
49
  }
442
50
  export interface CardsServiceClient extends Client {
443
- getExistsCustomer(request: GetExistsCustomerRequest, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
444
- getExistsCustomer(request: GetExistsCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
445
- getExistsCustomer(request: GetExistsCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
446
- getExistsContract(request: GetExistsContractRequest, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
447
- getExistsContract(request: GetExistsContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
448
- getExistsContract(request: GetExistsContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
449
51
  getExistsCard(request: GetExistsCardRequest, callback: (error: ServiceError | null, response: GetExistsCardResponse) => void): ClientUnaryCall;
450
52
  getExistsCard(request: GetExistsCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExistsCardResponse) => void): ClientUnaryCall;
451
53
  getExistsCard(request: GetExistsCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExistsCardResponse) => void): ClientUnaryCall;
452
- getContractCards(request: GetContractCardsRequest, callback: (error: ServiceError | null, response: GetContractCardsResponse) => void): ClientUnaryCall;
453
- getContractCards(request: GetContractCardsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractCardsResponse) => void): ClientUnaryCall;
454
- getContractCards(request: GetContractCardsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractCardsResponse) => void): ClientUnaryCall;
455
54
  getCard(request: GetCardRequest, callback: (error: ServiceError | null, response: GetCardResponse) => void): ClientUnaryCall;
456
55
  getCard(request: GetCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardResponse) => void): ClientUnaryCall;
457
56
  getCard(request: GetCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardResponse) => void): ClientUnaryCall;
458
- activateCard(request: ActivateCardRequest, callback: (error: ServiceError | null, response: ActivateCardResponse) => void): ClientUnaryCall;
459
- activateCard(request: ActivateCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ActivateCardResponse) => void): ClientUnaryCall;
460
- activateCard(request: ActivateCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ActivateCardResponse) => void): ClientUnaryCall;
461
- replaceLostStolenCard(request: ReplaceLostStolenCardRequest, callback: (error: ServiceError | null, response: ReplaceLostStolenCardResponse) => void): ClientUnaryCall;
462
- replaceLostStolenCard(request: ReplaceLostStolenCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReplaceLostStolenCardResponse) => void): ClientUnaryCall;
463
- replaceLostStolenCard(request: ReplaceLostStolenCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReplaceLostStolenCardResponse) => void): ClientUnaryCall;
464
- verifyCvv(request: VerifyCvvRequest, callback: (error: ServiceError | null, response: VerifyCvvResponse) => void): ClientUnaryCall;
465
- verifyCvv(request: VerifyCvvRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VerifyCvvResponse) => void): ClientUnaryCall;
466
- verifyCvv(request: VerifyCvvRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VerifyCvvResponse) => void): ClientUnaryCall;
467
- voidAddCard(request: VoidAddCardRequest, callback: (error: ServiceError | null, response: VoidAddCardResponse) => void): ClientUnaryCall;
468
- voidAddCard(request: VoidAddCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VoidAddCardResponse) => void): ClientUnaryCall;
469
- voidAddCard(request: VoidAddCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VoidAddCardResponse) => void): ClientUnaryCall;
470
- reissueCard(request: ReissueCardRequest, callback: (error: ServiceError | null, response: ReissueCardResponse) => void): ClientUnaryCall;
471
- reissueCard(request: ReissueCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReissueCardResponse) => void): ClientUnaryCall;
472
- reissueCard(request: ReissueCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReissueCardResponse) => void): ClientUnaryCall;
473
- createSingleUseVirtualCard(request: CreateSingleUseVirtualCardRequest, callback: (error: ServiceError | null, response: CreateSingleUseVirtualCardResponse) => void): ClientUnaryCall;
474
- createSingleUseVirtualCard(request: CreateSingleUseVirtualCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateSingleUseVirtualCardResponse) => void): ClientUnaryCall;
475
- createSingleUseVirtualCard(request: CreateSingleUseVirtualCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateSingleUseVirtualCardResponse) => void): ClientUnaryCall;
476
- modifyContract(request: ModifyContractRequest, callback: (error: ServiceError | null, response: ModifyContractResponse) => void): ClientUnaryCall;
477
- modifyContract(request: ModifyContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ModifyContractResponse) => void): ClientUnaryCall;
478
- modifyContract(request: ModifyContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ModifyContractResponse) => void): ClientUnaryCall;
479
- getCardId(request: GetCardIdRequest, callback: (error: ServiceError | null, response: GetCardIdResponse) => void): ClientUnaryCall;
480
- getCardId(request: GetCardIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardIdResponse) => void): ClientUnaryCall;
481
- getCardId(request: GetCardIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardIdResponse) => void): ClientUnaryCall;
482
- modifyCard(request: ModifyCardRequest, callback: (error: ServiceError | null, response: ModifyCardResponse) => void): ClientUnaryCall;
483
- modifyCard(request: ModifyCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ModifyCardResponse) => void): ClientUnaryCall;
484
- modifyCard(request: ModifyCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ModifyCardResponse) => void): ClientUnaryCall;
485
- modifyContractAndCard(request: ModifyContractAndCardRequest, callback: (error: ServiceError | null, response: ModifyContractAndCardResponse) => void): ClientUnaryCall;
486
- modifyContractAndCard(request: ModifyContractAndCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ModifyContractAndCardResponse) => void): ClientUnaryCall;
487
- modifyContractAndCard(request: ModifyContractAndCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ModifyContractAndCardResponse) => void): ClientUnaryCall;
488
- getCardPinChangeKey(request: GetCardPinChangeKeyRequest, callback: (error: ServiceError | null, response: GetCardPinChangeKeyResponse) => void): ClientUnaryCall;
489
- getCardPinChangeKey(request: GetCardPinChangeKeyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardPinChangeKeyResponse) => void): ClientUnaryCall;
490
- getCardPinChangeKey(request: GetCardPinChangeKeyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardPinChangeKeyResponse) => void): ClientUnaryCall;
491
57
  }
492
58
  export declare const CardsServiceClient: {
493
59
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CardsServiceClient;