@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,951 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.6
5
+ // protoc unknown
6
+ // source: kapital/customers/v1/customers_types.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.CatalogItem = exports.Period = exports.CustomerCard = exports.Transaction = exports.Contract = exports.Customer = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "kapital.customers.v1";
12
+ function createBaseCustomer() {
13
+ return {
14
+ id_short: "",
15
+ id_long: "",
16
+ customer_number: "",
17
+ business_name: "",
18
+ customer_name: "",
19
+ rfc: "",
20
+ curp: "",
21
+ status: "",
22
+ delinquency: "",
23
+ risk_status: "",
24
+ credit_rating: "",
25
+ registration_date: "",
26
+ address: "",
27
+ phone: "",
28
+ email: "",
29
+ assigned_branch: "",
30
+ has_credit_contracts: false,
31
+ };
32
+ }
33
+ exports.Customer = {
34
+ encode(message, writer = new wire_1.BinaryWriter()) {
35
+ if (message.id_short !== "") {
36
+ writer.uint32(10).string(message.id_short);
37
+ }
38
+ if (message.id_long !== "") {
39
+ writer.uint32(18).string(message.id_long);
40
+ }
41
+ if (message.customer_number !== "") {
42
+ writer.uint32(26).string(message.customer_number);
43
+ }
44
+ if (message.business_name !== "") {
45
+ writer.uint32(34).string(message.business_name);
46
+ }
47
+ if (message.customer_name !== "") {
48
+ writer.uint32(42).string(message.customer_name);
49
+ }
50
+ if (message.rfc !== "") {
51
+ writer.uint32(50).string(message.rfc);
52
+ }
53
+ if (message.curp !== "") {
54
+ writer.uint32(58).string(message.curp);
55
+ }
56
+ if (message.status !== "") {
57
+ writer.uint32(66).string(message.status);
58
+ }
59
+ if (message.delinquency !== "") {
60
+ writer.uint32(74).string(message.delinquency);
61
+ }
62
+ if (message.risk_status !== "") {
63
+ writer.uint32(82).string(message.risk_status);
64
+ }
65
+ if (message.credit_rating !== "") {
66
+ writer.uint32(90).string(message.credit_rating);
67
+ }
68
+ if (message.registration_date !== "") {
69
+ writer.uint32(98).string(message.registration_date);
70
+ }
71
+ if (message.address !== "") {
72
+ writer.uint32(106).string(message.address);
73
+ }
74
+ if (message.phone !== "") {
75
+ writer.uint32(114).string(message.phone);
76
+ }
77
+ if (message.email !== "") {
78
+ writer.uint32(122).string(message.email);
79
+ }
80
+ if (message.assigned_branch !== "") {
81
+ writer.uint32(130).string(message.assigned_branch);
82
+ }
83
+ if (message.has_credit_contracts !== false) {
84
+ writer.uint32(136).bool(message.has_credit_contracts);
85
+ }
86
+ return writer;
87
+ },
88
+ decode(input, length) {
89
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
90
+ const end = length === undefined ? reader.len : reader.pos + length;
91
+ const message = createBaseCustomer();
92
+ while (reader.pos < end) {
93
+ const tag = reader.uint32();
94
+ switch (tag >>> 3) {
95
+ case 1: {
96
+ if (tag !== 10) {
97
+ break;
98
+ }
99
+ message.id_short = reader.string();
100
+ continue;
101
+ }
102
+ case 2: {
103
+ if (tag !== 18) {
104
+ break;
105
+ }
106
+ message.id_long = reader.string();
107
+ continue;
108
+ }
109
+ case 3: {
110
+ if (tag !== 26) {
111
+ break;
112
+ }
113
+ message.customer_number = reader.string();
114
+ continue;
115
+ }
116
+ case 4: {
117
+ if (tag !== 34) {
118
+ break;
119
+ }
120
+ message.business_name = reader.string();
121
+ continue;
122
+ }
123
+ case 5: {
124
+ if (tag !== 42) {
125
+ break;
126
+ }
127
+ message.customer_name = reader.string();
128
+ continue;
129
+ }
130
+ case 6: {
131
+ if (tag !== 50) {
132
+ break;
133
+ }
134
+ message.rfc = reader.string();
135
+ continue;
136
+ }
137
+ case 7: {
138
+ if (tag !== 58) {
139
+ break;
140
+ }
141
+ message.curp = reader.string();
142
+ continue;
143
+ }
144
+ case 8: {
145
+ if (tag !== 66) {
146
+ break;
147
+ }
148
+ message.status = reader.string();
149
+ continue;
150
+ }
151
+ case 9: {
152
+ if (tag !== 74) {
153
+ break;
154
+ }
155
+ message.delinquency = reader.string();
156
+ continue;
157
+ }
158
+ case 10: {
159
+ if (tag !== 82) {
160
+ break;
161
+ }
162
+ message.risk_status = reader.string();
163
+ continue;
164
+ }
165
+ case 11: {
166
+ if (tag !== 90) {
167
+ break;
168
+ }
169
+ message.credit_rating = reader.string();
170
+ continue;
171
+ }
172
+ case 12: {
173
+ if (tag !== 98) {
174
+ break;
175
+ }
176
+ message.registration_date = reader.string();
177
+ continue;
178
+ }
179
+ case 13: {
180
+ if (tag !== 106) {
181
+ break;
182
+ }
183
+ message.address = reader.string();
184
+ continue;
185
+ }
186
+ case 14: {
187
+ if (tag !== 114) {
188
+ break;
189
+ }
190
+ message.phone = reader.string();
191
+ continue;
192
+ }
193
+ case 15: {
194
+ if (tag !== 122) {
195
+ break;
196
+ }
197
+ message.email = reader.string();
198
+ continue;
199
+ }
200
+ case 16: {
201
+ if (tag !== 130) {
202
+ break;
203
+ }
204
+ message.assigned_branch = reader.string();
205
+ continue;
206
+ }
207
+ case 17: {
208
+ if (tag !== 136) {
209
+ break;
210
+ }
211
+ message.has_credit_contracts = reader.bool();
212
+ continue;
213
+ }
214
+ }
215
+ if ((tag & 7) === 4 || tag === 0) {
216
+ break;
217
+ }
218
+ reader.skip(tag & 7);
219
+ }
220
+ return message;
221
+ },
222
+ create(base) {
223
+ return exports.Customer.fromPartial(base ?? {});
224
+ },
225
+ fromPartial(object) {
226
+ const message = createBaseCustomer();
227
+ message.id_short = object.id_short ?? "";
228
+ message.id_long = object.id_long ?? "";
229
+ message.customer_number = object.customer_number ?? "";
230
+ message.business_name = object.business_name ?? "";
231
+ message.customer_name = object.customer_name ?? "";
232
+ message.rfc = object.rfc ?? "";
233
+ message.curp = object.curp ?? "";
234
+ message.status = object.status ?? "";
235
+ message.delinquency = object.delinquency ?? "";
236
+ message.risk_status = object.risk_status ?? "";
237
+ message.credit_rating = object.credit_rating ?? "";
238
+ message.registration_date = object.registration_date ?? "";
239
+ message.address = object.address ?? "";
240
+ message.phone = object.phone ?? "";
241
+ message.email = object.email ?? "";
242
+ message.assigned_branch = object.assigned_branch ?? "";
243
+ message.has_credit_contracts = object.has_credit_contracts ?? false;
244
+ return message;
245
+ },
246
+ };
247
+ function createBaseContract() {
248
+ return {
249
+ id_short: "",
250
+ id_long: "",
251
+ contract_number: "",
252
+ clabe: "",
253
+ product: "",
254
+ product_type: "",
255
+ number_cards: 0,
256
+ rate: 0,
257
+ status: "",
258
+ delinquency: "",
259
+ delinquency_days: 0,
260
+ cutoff_day: 0,
261
+ payment_due_date: "",
262
+ available_limit: 0,
263
+ available_balance: 0,
264
+ total_balance: 0,
265
+ cutoff_debt_balance: 0,
266
+ current_debt_balance: 0,
267
+ transactions_per_period: 0,
268
+ rfc: "",
269
+ business_name: "",
270
+ customer_name: "",
271
+ primary_card: "",
272
+ };
273
+ }
274
+ exports.Contract = {
275
+ encode(message, writer = new wire_1.BinaryWriter()) {
276
+ if (message.id_short !== "") {
277
+ writer.uint32(10).string(message.id_short);
278
+ }
279
+ if (message.id_long !== "") {
280
+ writer.uint32(18).string(message.id_long);
281
+ }
282
+ if (message.contract_number !== "") {
283
+ writer.uint32(26).string(message.contract_number);
284
+ }
285
+ if (message.clabe !== "") {
286
+ writer.uint32(34).string(message.clabe);
287
+ }
288
+ if (message.product !== "") {
289
+ writer.uint32(42).string(message.product);
290
+ }
291
+ if (message.product_type !== "") {
292
+ writer.uint32(50).string(message.product_type);
293
+ }
294
+ if (message.number_cards !== 0) {
295
+ writer.uint32(56).int32(message.number_cards);
296
+ }
297
+ if (message.rate !== 0) {
298
+ writer.uint32(65).double(message.rate);
299
+ }
300
+ if (message.status !== "") {
301
+ writer.uint32(74).string(message.status);
302
+ }
303
+ if (message.delinquency !== "") {
304
+ writer.uint32(82).string(message.delinquency);
305
+ }
306
+ if (message.delinquency_days !== 0) {
307
+ writer.uint32(88).int32(message.delinquency_days);
308
+ }
309
+ if (message.cutoff_day !== 0) {
310
+ writer.uint32(96).int32(message.cutoff_day);
311
+ }
312
+ if (message.payment_due_date !== "") {
313
+ writer.uint32(106).string(message.payment_due_date);
314
+ }
315
+ if (message.available_limit !== 0) {
316
+ writer.uint32(113).double(message.available_limit);
317
+ }
318
+ if (message.available_balance !== 0) {
319
+ writer.uint32(121).double(message.available_balance);
320
+ }
321
+ if (message.total_balance !== 0) {
322
+ writer.uint32(129).double(message.total_balance);
323
+ }
324
+ if (message.cutoff_debt_balance !== 0) {
325
+ writer.uint32(137).double(message.cutoff_debt_balance);
326
+ }
327
+ if (message.current_debt_balance !== 0) {
328
+ writer.uint32(145).double(message.current_debt_balance);
329
+ }
330
+ if (message.transactions_per_period !== 0) {
331
+ writer.uint32(152).int32(message.transactions_per_period);
332
+ }
333
+ if (message.rfc !== "") {
334
+ writer.uint32(162).string(message.rfc);
335
+ }
336
+ if (message.business_name !== "") {
337
+ writer.uint32(170).string(message.business_name);
338
+ }
339
+ if (message.customer_name !== "") {
340
+ writer.uint32(178).string(message.customer_name);
341
+ }
342
+ if (message.primary_card !== "") {
343
+ writer.uint32(186).string(message.primary_card);
344
+ }
345
+ return writer;
346
+ },
347
+ decode(input, length) {
348
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
349
+ const end = length === undefined ? reader.len : reader.pos + length;
350
+ const message = createBaseContract();
351
+ while (reader.pos < end) {
352
+ const tag = reader.uint32();
353
+ switch (tag >>> 3) {
354
+ case 1: {
355
+ if (tag !== 10) {
356
+ break;
357
+ }
358
+ message.id_short = reader.string();
359
+ continue;
360
+ }
361
+ case 2: {
362
+ if (tag !== 18) {
363
+ break;
364
+ }
365
+ message.id_long = reader.string();
366
+ continue;
367
+ }
368
+ case 3: {
369
+ if (tag !== 26) {
370
+ break;
371
+ }
372
+ message.contract_number = reader.string();
373
+ continue;
374
+ }
375
+ case 4: {
376
+ if (tag !== 34) {
377
+ break;
378
+ }
379
+ message.clabe = reader.string();
380
+ continue;
381
+ }
382
+ case 5: {
383
+ if (tag !== 42) {
384
+ break;
385
+ }
386
+ message.product = reader.string();
387
+ continue;
388
+ }
389
+ case 6: {
390
+ if (tag !== 50) {
391
+ break;
392
+ }
393
+ message.product_type = reader.string();
394
+ continue;
395
+ }
396
+ case 7: {
397
+ if (tag !== 56) {
398
+ break;
399
+ }
400
+ message.number_cards = reader.int32();
401
+ continue;
402
+ }
403
+ case 8: {
404
+ if (tag !== 65) {
405
+ break;
406
+ }
407
+ message.rate = reader.double();
408
+ continue;
409
+ }
410
+ case 9: {
411
+ if (tag !== 74) {
412
+ break;
413
+ }
414
+ message.status = reader.string();
415
+ continue;
416
+ }
417
+ case 10: {
418
+ if (tag !== 82) {
419
+ break;
420
+ }
421
+ message.delinquency = reader.string();
422
+ continue;
423
+ }
424
+ case 11: {
425
+ if (tag !== 88) {
426
+ break;
427
+ }
428
+ message.delinquency_days = reader.int32();
429
+ continue;
430
+ }
431
+ case 12: {
432
+ if (tag !== 96) {
433
+ break;
434
+ }
435
+ message.cutoff_day = reader.int32();
436
+ continue;
437
+ }
438
+ case 13: {
439
+ if (tag !== 106) {
440
+ break;
441
+ }
442
+ message.payment_due_date = reader.string();
443
+ continue;
444
+ }
445
+ case 14: {
446
+ if (tag !== 113) {
447
+ break;
448
+ }
449
+ message.available_limit = reader.double();
450
+ continue;
451
+ }
452
+ case 15: {
453
+ if (tag !== 121) {
454
+ break;
455
+ }
456
+ message.available_balance = reader.double();
457
+ continue;
458
+ }
459
+ case 16: {
460
+ if (tag !== 129) {
461
+ break;
462
+ }
463
+ message.total_balance = reader.double();
464
+ continue;
465
+ }
466
+ case 17: {
467
+ if (tag !== 137) {
468
+ break;
469
+ }
470
+ message.cutoff_debt_balance = reader.double();
471
+ continue;
472
+ }
473
+ case 18: {
474
+ if (tag !== 145) {
475
+ break;
476
+ }
477
+ message.current_debt_balance = reader.double();
478
+ continue;
479
+ }
480
+ case 19: {
481
+ if (tag !== 152) {
482
+ break;
483
+ }
484
+ message.transactions_per_period = reader.int32();
485
+ continue;
486
+ }
487
+ case 20: {
488
+ if (tag !== 162) {
489
+ break;
490
+ }
491
+ message.rfc = reader.string();
492
+ continue;
493
+ }
494
+ case 21: {
495
+ if (tag !== 170) {
496
+ break;
497
+ }
498
+ message.business_name = reader.string();
499
+ continue;
500
+ }
501
+ case 22: {
502
+ if (tag !== 178) {
503
+ break;
504
+ }
505
+ message.customer_name = reader.string();
506
+ continue;
507
+ }
508
+ case 23: {
509
+ if (tag !== 186) {
510
+ break;
511
+ }
512
+ message.primary_card = reader.string();
513
+ continue;
514
+ }
515
+ }
516
+ if ((tag & 7) === 4 || tag === 0) {
517
+ break;
518
+ }
519
+ reader.skip(tag & 7);
520
+ }
521
+ return message;
522
+ },
523
+ create(base) {
524
+ return exports.Contract.fromPartial(base ?? {});
525
+ },
526
+ fromPartial(object) {
527
+ const message = createBaseContract();
528
+ message.id_short = object.id_short ?? "";
529
+ message.id_long = object.id_long ?? "";
530
+ message.contract_number = object.contract_number ?? "";
531
+ message.clabe = object.clabe ?? "";
532
+ message.product = object.product ?? "";
533
+ message.product_type = object.product_type ?? "";
534
+ message.number_cards = object.number_cards ?? 0;
535
+ message.rate = object.rate ?? 0;
536
+ message.status = object.status ?? "";
537
+ message.delinquency = object.delinquency ?? "";
538
+ message.delinquency_days = object.delinquency_days ?? 0;
539
+ message.cutoff_day = object.cutoff_day ?? 0;
540
+ message.payment_due_date = object.payment_due_date ?? "";
541
+ message.available_limit = object.available_limit ?? 0;
542
+ message.available_balance = object.available_balance ?? 0;
543
+ message.total_balance = object.total_balance ?? 0;
544
+ message.cutoff_debt_balance = object.cutoff_debt_balance ?? 0;
545
+ message.current_debt_balance = object.current_debt_balance ?? 0;
546
+ message.transactions_per_period = object.transactions_per_period ?? 0;
547
+ message.rfc = object.rfc ?? "";
548
+ message.business_name = object.business_name ?? "";
549
+ message.customer_name = object.customer_name ?? "";
550
+ message.primary_card = object.primary_card ?? "";
551
+ return message;
552
+ },
553
+ };
554
+ function createBaseTransaction() {
555
+ return {
556
+ id_short: "",
557
+ id_long: "",
558
+ transaction_number: "",
559
+ transaction_type: "",
560
+ transaction_channel: "",
561
+ concept: "",
562
+ amount: 0,
563
+ transaction_date: "",
564
+ card_number: "",
565
+ merchant_number: "",
566
+ merchant_name: "",
567
+ status: "",
568
+ };
569
+ }
570
+ exports.Transaction = {
571
+ encode(message, writer = new wire_1.BinaryWriter()) {
572
+ if (message.id_short !== "") {
573
+ writer.uint32(10).string(message.id_short);
574
+ }
575
+ if (message.id_long !== "") {
576
+ writer.uint32(18).string(message.id_long);
577
+ }
578
+ if (message.transaction_number !== "") {
579
+ writer.uint32(26).string(message.transaction_number);
580
+ }
581
+ if (message.transaction_type !== "") {
582
+ writer.uint32(34).string(message.transaction_type);
583
+ }
584
+ if (message.transaction_channel !== "") {
585
+ writer.uint32(42).string(message.transaction_channel);
586
+ }
587
+ if (message.concept !== "") {
588
+ writer.uint32(50).string(message.concept);
589
+ }
590
+ if (message.amount !== 0) {
591
+ writer.uint32(57).double(message.amount);
592
+ }
593
+ if (message.transaction_date !== "") {
594
+ writer.uint32(66).string(message.transaction_date);
595
+ }
596
+ if (message.card_number !== "") {
597
+ writer.uint32(74).string(message.card_number);
598
+ }
599
+ if (message.merchant_number !== "") {
600
+ writer.uint32(82).string(message.merchant_number);
601
+ }
602
+ if (message.merchant_name !== "") {
603
+ writer.uint32(90).string(message.merchant_name);
604
+ }
605
+ if (message.status !== "") {
606
+ writer.uint32(98).string(message.status);
607
+ }
608
+ return writer;
609
+ },
610
+ decode(input, length) {
611
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
612
+ const end = length === undefined ? reader.len : reader.pos + length;
613
+ const message = createBaseTransaction();
614
+ while (reader.pos < end) {
615
+ const tag = reader.uint32();
616
+ switch (tag >>> 3) {
617
+ case 1: {
618
+ if (tag !== 10) {
619
+ break;
620
+ }
621
+ message.id_short = reader.string();
622
+ continue;
623
+ }
624
+ case 2: {
625
+ if (tag !== 18) {
626
+ break;
627
+ }
628
+ message.id_long = reader.string();
629
+ continue;
630
+ }
631
+ case 3: {
632
+ if (tag !== 26) {
633
+ break;
634
+ }
635
+ message.transaction_number = reader.string();
636
+ continue;
637
+ }
638
+ case 4: {
639
+ if (tag !== 34) {
640
+ break;
641
+ }
642
+ message.transaction_type = reader.string();
643
+ continue;
644
+ }
645
+ case 5: {
646
+ if (tag !== 42) {
647
+ break;
648
+ }
649
+ message.transaction_channel = reader.string();
650
+ continue;
651
+ }
652
+ case 6: {
653
+ if (tag !== 50) {
654
+ break;
655
+ }
656
+ message.concept = reader.string();
657
+ continue;
658
+ }
659
+ case 7: {
660
+ if (tag !== 57) {
661
+ break;
662
+ }
663
+ message.amount = reader.double();
664
+ continue;
665
+ }
666
+ case 8: {
667
+ if (tag !== 66) {
668
+ break;
669
+ }
670
+ message.transaction_date = reader.string();
671
+ continue;
672
+ }
673
+ case 9: {
674
+ if (tag !== 74) {
675
+ break;
676
+ }
677
+ message.card_number = reader.string();
678
+ continue;
679
+ }
680
+ case 10: {
681
+ if (tag !== 82) {
682
+ break;
683
+ }
684
+ message.merchant_number = reader.string();
685
+ continue;
686
+ }
687
+ case 11: {
688
+ if (tag !== 90) {
689
+ break;
690
+ }
691
+ message.merchant_name = reader.string();
692
+ continue;
693
+ }
694
+ case 12: {
695
+ if (tag !== 98) {
696
+ break;
697
+ }
698
+ message.status = reader.string();
699
+ continue;
700
+ }
701
+ }
702
+ if ((tag & 7) === 4 || tag === 0) {
703
+ break;
704
+ }
705
+ reader.skip(tag & 7);
706
+ }
707
+ return message;
708
+ },
709
+ create(base) {
710
+ return exports.Transaction.fromPartial(base ?? {});
711
+ },
712
+ fromPartial(object) {
713
+ const message = createBaseTransaction();
714
+ message.id_short = object.id_short ?? "";
715
+ message.id_long = object.id_long ?? "";
716
+ message.transaction_number = object.transaction_number ?? "";
717
+ message.transaction_type = object.transaction_type ?? "";
718
+ message.transaction_channel = object.transaction_channel ?? "";
719
+ message.concept = object.concept ?? "";
720
+ message.amount = object.amount ?? 0;
721
+ message.transaction_date = object.transaction_date ?? "";
722
+ message.card_number = object.card_number ?? "";
723
+ message.merchant_number = object.merchant_number ?? "";
724
+ message.merchant_name = object.merchant_name ?? "";
725
+ message.status = object.status ?? "";
726
+ return message;
727
+ },
728
+ };
729
+ function createBaseCustomerCard() {
730
+ return { id_short: "", id_long: "", card_number: "", card_type: "", status: "", expiration_date: "" };
731
+ }
732
+ exports.CustomerCard = {
733
+ encode(message, writer = new wire_1.BinaryWriter()) {
734
+ if (message.id_short !== "") {
735
+ writer.uint32(10).string(message.id_short);
736
+ }
737
+ if (message.id_long !== "") {
738
+ writer.uint32(18).string(message.id_long);
739
+ }
740
+ if (message.card_number !== "") {
741
+ writer.uint32(26).string(message.card_number);
742
+ }
743
+ if (message.card_type !== "") {
744
+ writer.uint32(34).string(message.card_type);
745
+ }
746
+ if (message.status !== "") {
747
+ writer.uint32(42).string(message.status);
748
+ }
749
+ if (message.expiration_date !== "") {
750
+ writer.uint32(50).string(message.expiration_date);
751
+ }
752
+ return writer;
753
+ },
754
+ decode(input, length) {
755
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
756
+ const end = length === undefined ? reader.len : reader.pos + length;
757
+ const message = createBaseCustomerCard();
758
+ while (reader.pos < end) {
759
+ const tag = reader.uint32();
760
+ switch (tag >>> 3) {
761
+ case 1: {
762
+ if (tag !== 10) {
763
+ break;
764
+ }
765
+ message.id_short = reader.string();
766
+ continue;
767
+ }
768
+ case 2: {
769
+ if (tag !== 18) {
770
+ break;
771
+ }
772
+ message.id_long = reader.string();
773
+ continue;
774
+ }
775
+ case 3: {
776
+ if (tag !== 26) {
777
+ break;
778
+ }
779
+ message.card_number = reader.string();
780
+ continue;
781
+ }
782
+ case 4: {
783
+ if (tag !== 34) {
784
+ break;
785
+ }
786
+ message.card_type = reader.string();
787
+ continue;
788
+ }
789
+ case 5: {
790
+ if (tag !== 42) {
791
+ break;
792
+ }
793
+ message.status = reader.string();
794
+ continue;
795
+ }
796
+ case 6: {
797
+ if (tag !== 50) {
798
+ break;
799
+ }
800
+ message.expiration_date = reader.string();
801
+ continue;
802
+ }
803
+ }
804
+ if ((tag & 7) === 4 || tag === 0) {
805
+ break;
806
+ }
807
+ reader.skip(tag & 7);
808
+ }
809
+ return message;
810
+ },
811
+ create(base) {
812
+ return exports.CustomerCard.fromPartial(base ?? {});
813
+ },
814
+ fromPartial(object) {
815
+ const message = createBaseCustomerCard();
816
+ message.id_short = object.id_short ?? "";
817
+ message.id_long = object.id_long ?? "";
818
+ message.card_number = object.card_number ?? "";
819
+ message.card_type = object.card_type ?? "";
820
+ message.status = object.status ?? "";
821
+ message.expiration_date = object.expiration_date ?? "";
822
+ return message;
823
+ },
824
+ };
825
+ function createBasePeriod() {
826
+ return { id: "", period: "", start_date: "", end_date: "" };
827
+ }
828
+ exports.Period = {
829
+ encode(message, writer = new wire_1.BinaryWriter()) {
830
+ if (message.id !== "") {
831
+ writer.uint32(10).string(message.id);
832
+ }
833
+ if (message.period !== "") {
834
+ writer.uint32(18).string(message.period);
835
+ }
836
+ if (message.start_date !== "") {
837
+ writer.uint32(26).string(message.start_date);
838
+ }
839
+ if (message.end_date !== "") {
840
+ writer.uint32(34).string(message.end_date);
841
+ }
842
+ return writer;
843
+ },
844
+ decode(input, length) {
845
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
846
+ const end = length === undefined ? reader.len : reader.pos + length;
847
+ const message = createBasePeriod();
848
+ while (reader.pos < end) {
849
+ const tag = reader.uint32();
850
+ switch (tag >>> 3) {
851
+ case 1: {
852
+ if (tag !== 10) {
853
+ break;
854
+ }
855
+ message.id = reader.string();
856
+ continue;
857
+ }
858
+ case 2: {
859
+ if (tag !== 18) {
860
+ break;
861
+ }
862
+ message.period = reader.string();
863
+ continue;
864
+ }
865
+ case 3: {
866
+ if (tag !== 26) {
867
+ break;
868
+ }
869
+ message.start_date = reader.string();
870
+ continue;
871
+ }
872
+ case 4: {
873
+ if (tag !== 34) {
874
+ break;
875
+ }
876
+ message.end_date = reader.string();
877
+ continue;
878
+ }
879
+ }
880
+ if ((tag & 7) === 4 || tag === 0) {
881
+ break;
882
+ }
883
+ reader.skip(tag & 7);
884
+ }
885
+ return message;
886
+ },
887
+ create(base) {
888
+ return exports.Period.fromPartial(base ?? {});
889
+ },
890
+ fromPartial(object) {
891
+ const message = createBasePeriod();
892
+ message.id = object.id ?? "";
893
+ message.period = object.period ?? "";
894
+ message.start_date = object.start_date ?? "";
895
+ message.end_date = object.end_date ?? "";
896
+ return message;
897
+ },
898
+ };
899
+ function createBaseCatalogItem() {
900
+ return { value: "", label: "" };
901
+ }
902
+ exports.CatalogItem = {
903
+ encode(message, writer = new wire_1.BinaryWriter()) {
904
+ if (message.value !== "") {
905
+ writer.uint32(10).string(message.value);
906
+ }
907
+ if (message.label !== "") {
908
+ writer.uint32(18).string(message.label);
909
+ }
910
+ return writer;
911
+ },
912
+ decode(input, length) {
913
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
914
+ const end = length === undefined ? reader.len : reader.pos + length;
915
+ const message = createBaseCatalogItem();
916
+ while (reader.pos < end) {
917
+ const tag = reader.uint32();
918
+ switch (tag >>> 3) {
919
+ case 1: {
920
+ if (tag !== 10) {
921
+ break;
922
+ }
923
+ message.value = reader.string();
924
+ continue;
925
+ }
926
+ case 2: {
927
+ if (tag !== 18) {
928
+ break;
929
+ }
930
+ message.label = reader.string();
931
+ continue;
932
+ }
933
+ }
934
+ if ((tag & 7) === 4 || tag === 0) {
935
+ break;
936
+ }
937
+ reader.skip(tag & 7);
938
+ }
939
+ return message;
940
+ },
941
+ create(base) {
942
+ return exports.CatalogItem.fromPartial(base ?? {});
943
+ },
944
+ fromPartial(object) {
945
+ const message = createBaseCatalogItem();
946
+ message.value = object.value ?? "";
947
+ message.label = object.label ?? "";
948
+ return message;
949
+ },
950
+ };
951
+ //# sourceMappingURL=customers_types.js.map