@alexochihua/protos 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) 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/customers/v1/customers_types.d.ts +8 -1
  33. package/dist/generated/kapital/customers/v1/customers_types.js +100 -9
  34. package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -1
  35. package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
  36. package/dist/generated/kapital/offers/v1/offers.js +1097 -0
  37. package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
  38. package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
  39. package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
  40. package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
  41. package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
  42. package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
  43. package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
  44. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
  45. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
  46. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
  47. package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
  48. package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
  49. package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
  50. package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
  51. package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
  52. package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
  53. package/dist/index.d.ts +25 -13
  54. package/dist/index.js +26 -14
  55. package/dist/index.js.map +1 -1
  56. package/package.json +277 -193
  57. package/proto/kapital/cards/v1/cards.proto +3 -269
  58. package/proto/kapital/cards/v1/cards_types.proto +26 -110
  59. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
  60. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
  61. package/proto/kapital/commissions/v1/commissions.proto +69 -0
  62. package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
  63. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
  64. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
  65. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
  66. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
  67. package/proto/kapital/customers/v1/customers_types.proto +10 -3
  68. package/proto/kapital/offers/v1/offers.proto +111 -0
  69. package/proto/kapital/offers/v1/offers_types.proto +54 -0
  70. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
  71. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
  72. package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
  73. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
@@ -0,0 +1,1751 @@
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/payments_methods/v1/payments_methods_types.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.NominativeCardData = exports.ProductTypeItem = exports.ManufacturerContact = exports.ManufacturerDetail = exports.Manufacturer = exports.AgreementDetail = exports.Cardholder = exports.ProductDetail = exports.BatchCard = exports.CardTracking = exports.CatalogItem = exports.VirtualCard = exports.ManufacturingBatch = exports.CardInventory = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "kapital.payments_methods.v1";
12
+ function createBaseCardInventory() {
13
+ return {
14
+ id: "",
15
+ card_number: "",
16
+ bin: "",
17
+ card_type: "",
18
+ brand: "",
19
+ product: "",
20
+ creation_date: "",
21
+ expiration_date: "",
22
+ status: "",
23
+ manufactured: "",
24
+ customer_name: "",
25
+ assigned_client: "",
26
+ responsible_user: "",
27
+ last_update: "",
28
+ lot: "",
29
+ branch: "",
30
+ branch_id: "",
31
+ channel: "",
32
+ created_at: "",
33
+ updated_at: "",
34
+ };
35
+ }
36
+ exports.CardInventory = {
37
+ encode(message, writer = new wire_1.BinaryWriter()) {
38
+ if (message.id !== "") {
39
+ writer.uint32(10).string(message.id);
40
+ }
41
+ if (message.card_number !== "") {
42
+ writer.uint32(18).string(message.card_number);
43
+ }
44
+ if (message.bin !== "") {
45
+ writer.uint32(26).string(message.bin);
46
+ }
47
+ if (message.card_type !== "") {
48
+ writer.uint32(34).string(message.card_type);
49
+ }
50
+ if (message.brand !== "") {
51
+ writer.uint32(42).string(message.brand);
52
+ }
53
+ if (message.product !== "") {
54
+ writer.uint32(50).string(message.product);
55
+ }
56
+ if (message.creation_date !== "") {
57
+ writer.uint32(58).string(message.creation_date);
58
+ }
59
+ if (message.expiration_date !== "") {
60
+ writer.uint32(66).string(message.expiration_date);
61
+ }
62
+ if (message.status !== "") {
63
+ writer.uint32(74).string(message.status);
64
+ }
65
+ if (message.manufactured !== "") {
66
+ writer.uint32(82).string(message.manufactured);
67
+ }
68
+ if (message.customer_name !== "") {
69
+ writer.uint32(90).string(message.customer_name);
70
+ }
71
+ if (message.assigned_client !== "") {
72
+ writer.uint32(98).string(message.assigned_client);
73
+ }
74
+ if (message.responsible_user !== "") {
75
+ writer.uint32(106).string(message.responsible_user);
76
+ }
77
+ if (message.last_update !== "") {
78
+ writer.uint32(114).string(message.last_update);
79
+ }
80
+ if (message.lot !== "") {
81
+ writer.uint32(122).string(message.lot);
82
+ }
83
+ if (message.branch !== "") {
84
+ writer.uint32(130).string(message.branch);
85
+ }
86
+ if (message.branch_id !== "") {
87
+ writer.uint32(138).string(message.branch_id);
88
+ }
89
+ if (message.channel !== "") {
90
+ writer.uint32(146).string(message.channel);
91
+ }
92
+ if (message.created_at !== "") {
93
+ writer.uint32(154).string(message.created_at);
94
+ }
95
+ if (message.updated_at !== "") {
96
+ writer.uint32(162).string(message.updated_at);
97
+ }
98
+ return writer;
99
+ },
100
+ decode(input, length) {
101
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
102
+ const end = length === undefined ? reader.len : reader.pos + length;
103
+ const message = createBaseCardInventory();
104
+ while (reader.pos < end) {
105
+ const tag = reader.uint32();
106
+ switch (tag >>> 3) {
107
+ case 1: {
108
+ if (tag !== 10) {
109
+ break;
110
+ }
111
+ message.id = reader.string();
112
+ continue;
113
+ }
114
+ case 2: {
115
+ if (tag !== 18) {
116
+ break;
117
+ }
118
+ message.card_number = reader.string();
119
+ continue;
120
+ }
121
+ case 3: {
122
+ if (tag !== 26) {
123
+ break;
124
+ }
125
+ message.bin = reader.string();
126
+ continue;
127
+ }
128
+ case 4: {
129
+ if (tag !== 34) {
130
+ break;
131
+ }
132
+ message.card_type = reader.string();
133
+ continue;
134
+ }
135
+ case 5: {
136
+ if (tag !== 42) {
137
+ break;
138
+ }
139
+ message.brand = reader.string();
140
+ continue;
141
+ }
142
+ case 6: {
143
+ if (tag !== 50) {
144
+ break;
145
+ }
146
+ message.product = reader.string();
147
+ continue;
148
+ }
149
+ case 7: {
150
+ if (tag !== 58) {
151
+ break;
152
+ }
153
+ message.creation_date = reader.string();
154
+ continue;
155
+ }
156
+ case 8: {
157
+ if (tag !== 66) {
158
+ break;
159
+ }
160
+ message.expiration_date = reader.string();
161
+ continue;
162
+ }
163
+ case 9: {
164
+ if (tag !== 74) {
165
+ break;
166
+ }
167
+ message.status = reader.string();
168
+ continue;
169
+ }
170
+ case 10: {
171
+ if (tag !== 82) {
172
+ break;
173
+ }
174
+ message.manufactured = reader.string();
175
+ continue;
176
+ }
177
+ case 11: {
178
+ if (tag !== 90) {
179
+ break;
180
+ }
181
+ message.customer_name = reader.string();
182
+ continue;
183
+ }
184
+ case 12: {
185
+ if (tag !== 98) {
186
+ break;
187
+ }
188
+ message.assigned_client = reader.string();
189
+ continue;
190
+ }
191
+ case 13: {
192
+ if (tag !== 106) {
193
+ break;
194
+ }
195
+ message.responsible_user = reader.string();
196
+ continue;
197
+ }
198
+ case 14: {
199
+ if (tag !== 114) {
200
+ break;
201
+ }
202
+ message.last_update = reader.string();
203
+ continue;
204
+ }
205
+ case 15: {
206
+ if (tag !== 122) {
207
+ break;
208
+ }
209
+ message.lot = reader.string();
210
+ continue;
211
+ }
212
+ case 16: {
213
+ if (tag !== 130) {
214
+ break;
215
+ }
216
+ message.branch = reader.string();
217
+ continue;
218
+ }
219
+ case 17: {
220
+ if (tag !== 138) {
221
+ break;
222
+ }
223
+ message.branch_id = reader.string();
224
+ continue;
225
+ }
226
+ case 18: {
227
+ if (tag !== 146) {
228
+ break;
229
+ }
230
+ message.channel = reader.string();
231
+ continue;
232
+ }
233
+ case 19: {
234
+ if (tag !== 154) {
235
+ break;
236
+ }
237
+ message.created_at = reader.string();
238
+ continue;
239
+ }
240
+ case 20: {
241
+ if (tag !== 162) {
242
+ break;
243
+ }
244
+ message.updated_at = reader.string();
245
+ continue;
246
+ }
247
+ }
248
+ if ((tag & 7) === 4 || tag === 0) {
249
+ break;
250
+ }
251
+ reader.skip(tag & 7);
252
+ }
253
+ return message;
254
+ },
255
+ create(base) {
256
+ return exports.CardInventory.fromPartial(base ?? {});
257
+ },
258
+ fromPartial(object) {
259
+ const message = createBaseCardInventory();
260
+ message.id = object.id ?? "";
261
+ message.card_number = object.card_number ?? "";
262
+ message.bin = object.bin ?? "";
263
+ message.card_type = object.card_type ?? "";
264
+ message.brand = object.brand ?? "";
265
+ message.product = object.product ?? "";
266
+ message.creation_date = object.creation_date ?? "";
267
+ message.expiration_date = object.expiration_date ?? "";
268
+ message.status = object.status ?? "";
269
+ message.manufactured = object.manufactured ?? "";
270
+ message.customer_name = object.customer_name ?? "";
271
+ message.assigned_client = object.assigned_client ?? "";
272
+ message.responsible_user = object.responsible_user ?? "";
273
+ message.last_update = object.last_update ?? "";
274
+ message.lot = object.lot ?? "";
275
+ message.branch = object.branch ?? "";
276
+ message.branch_id = object.branch_id ?? "";
277
+ message.channel = object.channel ?? "";
278
+ message.created_at = object.created_at ?? "";
279
+ message.updated_at = object.updated_at ?? "";
280
+ return message;
281
+ },
282
+ };
283
+ function createBaseManufacturingBatch() {
284
+ return {
285
+ id: "",
286
+ brand: "",
287
+ card_carrier: "",
288
+ cards: 0,
289
+ delivery: "",
290
+ destination_branch: "",
291
+ generation_date: "",
292
+ innominative_card_quantity: 0,
293
+ issuance: "",
294
+ status: "",
295
+ created_at: "",
296
+ updated_at: "",
297
+ };
298
+ }
299
+ exports.ManufacturingBatch = {
300
+ encode(message, writer = new wire_1.BinaryWriter()) {
301
+ if (message.id !== "") {
302
+ writer.uint32(10).string(message.id);
303
+ }
304
+ if (message.brand !== "") {
305
+ writer.uint32(18).string(message.brand);
306
+ }
307
+ if (message.card_carrier !== "") {
308
+ writer.uint32(26).string(message.card_carrier);
309
+ }
310
+ if (message.cards !== 0) {
311
+ writer.uint32(32).int32(message.cards);
312
+ }
313
+ if (message.delivery !== "") {
314
+ writer.uint32(42).string(message.delivery);
315
+ }
316
+ if (message.destination_branch !== "") {
317
+ writer.uint32(50).string(message.destination_branch);
318
+ }
319
+ if (message.generation_date !== "") {
320
+ writer.uint32(58).string(message.generation_date);
321
+ }
322
+ if (message.innominative_card_quantity !== 0) {
323
+ writer.uint32(64).int32(message.innominative_card_quantity);
324
+ }
325
+ if (message.issuance !== "") {
326
+ writer.uint32(74).string(message.issuance);
327
+ }
328
+ if (message.status !== "") {
329
+ writer.uint32(82).string(message.status);
330
+ }
331
+ if (message.created_at !== "") {
332
+ writer.uint32(90).string(message.created_at);
333
+ }
334
+ if (message.updated_at !== "") {
335
+ writer.uint32(98).string(message.updated_at);
336
+ }
337
+ return writer;
338
+ },
339
+ decode(input, length) {
340
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
341
+ const end = length === undefined ? reader.len : reader.pos + length;
342
+ const message = createBaseManufacturingBatch();
343
+ while (reader.pos < end) {
344
+ const tag = reader.uint32();
345
+ switch (tag >>> 3) {
346
+ case 1: {
347
+ if (tag !== 10) {
348
+ break;
349
+ }
350
+ message.id = reader.string();
351
+ continue;
352
+ }
353
+ case 2: {
354
+ if (tag !== 18) {
355
+ break;
356
+ }
357
+ message.brand = reader.string();
358
+ continue;
359
+ }
360
+ case 3: {
361
+ if (tag !== 26) {
362
+ break;
363
+ }
364
+ message.card_carrier = reader.string();
365
+ continue;
366
+ }
367
+ case 4: {
368
+ if (tag !== 32) {
369
+ break;
370
+ }
371
+ message.cards = reader.int32();
372
+ continue;
373
+ }
374
+ case 5: {
375
+ if (tag !== 42) {
376
+ break;
377
+ }
378
+ message.delivery = reader.string();
379
+ continue;
380
+ }
381
+ case 6: {
382
+ if (tag !== 50) {
383
+ break;
384
+ }
385
+ message.destination_branch = reader.string();
386
+ continue;
387
+ }
388
+ case 7: {
389
+ if (tag !== 58) {
390
+ break;
391
+ }
392
+ message.generation_date = reader.string();
393
+ continue;
394
+ }
395
+ case 8: {
396
+ if (tag !== 64) {
397
+ break;
398
+ }
399
+ message.innominative_card_quantity = reader.int32();
400
+ continue;
401
+ }
402
+ case 9: {
403
+ if (tag !== 74) {
404
+ break;
405
+ }
406
+ message.issuance = reader.string();
407
+ continue;
408
+ }
409
+ case 10: {
410
+ if (tag !== 82) {
411
+ break;
412
+ }
413
+ message.status = reader.string();
414
+ continue;
415
+ }
416
+ case 11: {
417
+ if (tag !== 90) {
418
+ break;
419
+ }
420
+ message.created_at = reader.string();
421
+ continue;
422
+ }
423
+ case 12: {
424
+ if (tag !== 98) {
425
+ break;
426
+ }
427
+ message.updated_at = reader.string();
428
+ continue;
429
+ }
430
+ }
431
+ if ((tag & 7) === 4 || tag === 0) {
432
+ break;
433
+ }
434
+ reader.skip(tag & 7);
435
+ }
436
+ return message;
437
+ },
438
+ create(base) {
439
+ return exports.ManufacturingBatch.fromPartial(base ?? {});
440
+ },
441
+ fromPartial(object) {
442
+ const message = createBaseManufacturingBatch();
443
+ message.id = object.id ?? "";
444
+ message.brand = object.brand ?? "";
445
+ message.card_carrier = object.card_carrier ?? "";
446
+ message.cards = object.cards ?? 0;
447
+ message.delivery = object.delivery ?? "";
448
+ message.destination_branch = object.destination_branch ?? "";
449
+ message.generation_date = object.generation_date ?? "";
450
+ message.innominative_card_quantity = object.innominative_card_quantity ?? 0;
451
+ message.issuance = object.issuance ?? "";
452
+ message.status = object.status ?? "";
453
+ message.created_at = object.created_at ?? "";
454
+ message.updated_at = object.updated_at ?? "";
455
+ return message;
456
+ },
457
+ };
458
+ function createBaseVirtualCard() {
459
+ return {
460
+ id: "",
461
+ card_number: "",
462
+ product_type: "",
463
+ status: "",
464
+ customer_name: "",
465
+ customer_id: "",
466
+ expiration_date: "",
467
+ created_at: "",
468
+ updated_at: "",
469
+ };
470
+ }
471
+ exports.VirtualCard = {
472
+ encode(message, writer = new wire_1.BinaryWriter()) {
473
+ if (message.id !== "") {
474
+ writer.uint32(10).string(message.id);
475
+ }
476
+ if (message.card_number !== "") {
477
+ writer.uint32(18).string(message.card_number);
478
+ }
479
+ if (message.product_type !== "") {
480
+ writer.uint32(26).string(message.product_type);
481
+ }
482
+ if (message.status !== "") {
483
+ writer.uint32(34).string(message.status);
484
+ }
485
+ if (message.customer_name !== "") {
486
+ writer.uint32(42).string(message.customer_name);
487
+ }
488
+ if (message.customer_id !== "") {
489
+ writer.uint32(50).string(message.customer_id);
490
+ }
491
+ if (message.expiration_date !== "") {
492
+ writer.uint32(58).string(message.expiration_date);
493
+ }
494
+ if (message.created_at !== "") {
495
+ writer.uint32(66).string(message.created_at);
496
+ }
497
+ if (message.updated_at !== "") {
498
+ writer.uint32(74).string(message.updated_at);
499
+ }
500
+ return writer;
501
+ },
502
+ decode(input, length) {
503
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
504
+ const end = length === undefined ? reader.len : reader.pos + length;
505
+ const message = createBaseVirtualCard();
506
+ while (reader.pos < end) {
507
+ const tag = reader.uint32();
508
+ switch (tag >>> 3) {
509
+ case 1: {
510
+ if (tag !== 10) {
511
+ break;
512
+ }
513
+ message.id = reader.string();
514
+ continue;
515
+ }
516
+ case 2: {
517
+ if (tag !== 18) {
518
+ break;
519
+ }
520
+ message.card_number = reader.string();
521
+ continue;
522
+ }
523
+ case 3: {
524
+ if (tag !== 26) {
525
+ break;
526
+ }
527
+ message.product_type = reader.string();
528
+ continue;
529
+ }
530
+ case 4: {
531
+ if (tag !== 34) {
532
+ break;
533
+ }
534
+ message.status = reader.string();
535
+ continue;
536
+ }
537
+ case 5: {
538
+ if (tag !== 42) {
539
+ break;
540
+ }
541
+ message.customer_name = reader.string();
542
+ continue;
543
+ }
544
+ case 6: {
545
+ if (tag !== 50) {
546
+ break;
547
+ }
548
+ message.customer_id = reader.string();
549
+ continue;
550
+ }
551
+ case 7: {
552
+ if (tag !== 58) {
553
+ break;
554
+ }
555
+ message.expiration_date = reader.string();
556
+ continue;
557
+ }
558
+ case 8: {
559
+ if (tag !== 66) {
560
+ break;
561
+ }
562
+ message.created_at = reader.string();
563
+ continue;
564
+ }
565
+ case 9: {
566
+ if (tag !== 74) {
567
+ break;
568
+ }
569
+ message.updated_at = reader.string();
570
+ continue;
571
+ }
572
+ }
573
+ if ((tag & 7) === 4 || tag === 0) {
574
+ break;
575
+ }
576
+ reader.skip(tag & 7);
577
+ }
578
+ return message;
579
+ },
580
+ create(base) {
581
+ return exports.VirtualCard.fromPartial(base ?? {});
582
+ },
583
+ fromPartial(object) {
584
+ const message = createBaseVirtualCard();
585
+ message.id = object.id ?? "";
586
+ message.card_number = object.card_number ?? "";
587
+ message.product_type = object.product_type ?? "";
588
+ message.status = object.status ?? "";
589
+ message.customer_name = object.customer_name ?? "";
590
+ message.customer_id = object.customer_id ?? "";
591
+ message.expiration_date = object.expiration_date ?? "";
592
+ message.created_at = object.created_at ?? "";
593
+ message.updated_at = object.updated_at ?? "";
594
+ return message;
595
+ },
596
+ };
597
+ function createBaseCatalogItem() {
598
+ return { value: "", label: "" };
599
+ }
600
+ exports.CatalogItem = {
601
+ encode(message, writer = new wire_1.BinaryWriter()) {
602
+ if (message.value !== "") {
603
+ writer.uint32(10).string(message.value);
604
+ }
605
+ if (message.label !== "") {
606
+ writer.uint32(18).string(message.label);
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 = createBaseCatalogItem();
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.value = reader.string();
622
+ continue;
623
+ }
624
+ case 2: {
625
+ if (tag !== 18) {
626
+ break;
627
+ }
628
+ message.label = reader.string();
629
+ continue;
630
+ }
631
+ }
632
+ if ((tag & 7) === 4 || tag === 0) {
633
+ break;
634
+ }
635
+ reader.skip(tag & 7);
636
+ }
637
+ return message;
638
+ },
639
+ create(base) {
640
+ return exports.CatalogItem.fromPartial(base ?? {});
641
+ },
642
+ fromPartial(object) {
643
+ const message = createBaseCatalogItem();
644
+ message.value = object.value ?? "";
645
+ message.label = object.label ?? "";
646
+ return message;
647
+ },
648
+ };
649
+ function createBaseCardTracking() {
650
+ return {
651
+ id: "",
652
+ card_number: "",
653
+ creation_shipping_address: "",
654
+ last_location: "",
655
+ date_last_location: "",
656
+ created_at: "",
657
+ updated_at: "",
658
+ };
659
+ }
660
+ exports.CardTracking = {
661
+ encode(message, writer = new wire_1.BinaryWriter()) {
662
+ if (message.id !== "") {
663
+ writer.uint32(10).string(message.id);
664
+ }
665
+ if (message.card_number !== "") {
666
+ writer.uint32(18).string(message.card_number);
667
+ }
668
+ if (message.creation_shipping_address !== "") {
669
+ writer.uint32(26).string(message.creation_shipping_address);
670
+ }
671
+ if (message.last_location !== "") {
672
+ writer.uint32(34).string(message.last_location);
673
+ }
674
+ if (message.date_last_location !== "") {
675
+ writer.uint32(42).string(message.date_last_location);
676
+ }
677
+ if (message.created_at !== "") {
678
+ writer.uint32(50).string(message.created_at);
679
+ }
680
+ if (message.updated_at !== "") {
681
+ writer.uint32(58).string(message.updated_at);
682
+ }
683
+ return writer;
684
+ },
685
+ decode(input, length) {
686
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
687
+ const end = length === undefined ? reader.len : reader.pos + length;
688
+ const message = createBaseCardTracking();
689
+ while (reader.pos < end) {
690
+ const tag = reader.uint32();
691
+ switch (tag >>> 3) {
692
+ case 1: {
693
+ if (tag !== 10) {
694
+ break;
695
+ }
696
+ message.id = reader.string();
697
+ continue;
698
+ }
699
+ case 2: {
700
+ if (tag !== 18) {
701
+ break;
702
+ }
703
+ message.card_number = reader.string();
704
+ continue;
705
+ }
706
+ case 3: {
707
+ if (tag !== 26) {
708
+ break;
709
+ }
710
+ message.creation_shipping_address = reader.string();
711
+ continue;
712
+ }
713
+ case 4: {
714
+ if (tag !== 34) {
715
+ break;
716
+ }
717
+ message.last_location = reader.string();
718
+ continue;
719
+ }
720
+ case 5: {
721
+ if (tag !== 42) {
722
+ break;
723
+ }
724
+ message.date_last_location = reader.string();
725
+ continue;
726
+ }
727
+ case 6: {
728
+ if (tag !== 50) {
729
+ break;
730
+ }
731
+ message.created_at = reader.string();
732
+ continue;
733
+ }
734
+ case 7: {
735
+ if (tag !== 58) {
736
+ break;
737
+ }
738
+ message.updated_at = reader.string();
739
+ continue;
740
+ }
741
+ }
742
+ if ((tag & 7) === 4 || tag === 0) {
743
+ break;
744
+ }
745
+ reader.skip(tag & 7);
746
+ }
747
+ return message;
748
+ },
749
+ create(base) {
750
+ return exports.CardTracking.fromPartial(base ?? {});
751
+ },
752
+ fromPartial(object) {
753
+ const message = createBaseCardTracking();
754
+ message.id = object.id ?? "";
755
+ message.card_number = object.card_number ?? "";
756
+ message.creation_shipping_address = object.creation_shipping_address ?? "";
757
+ message.last_location = object.last_location ?? "";
758
+ message.date_last_location = object.date_last_location ?? "";
759
+ message.created_at = object.created_at ?? "";
760
+ message.updated_at = object.updated_at ?? "";
761
+ return message;
762
+ },
763
+ };
764
+ function createBaseBatchCard() {
765
+ return {
766
+ id: "",
767
+ id_short: "",
768
+ number_card: "",
769
+ agreement: "",
770
+ personalization_type: "",
771
+ personalization_nombre: "",
772
+ status_value: "",
773
+ status_label: "",
774
+ };
775
+ }
776
+ exports.BatchCard = {
777
+ encode(message, writer = new wire_1.BinaryWriter()) {
778
+ if (message.id !== "") {
779
+ writer.uint32(10).string(message.id);
780
+ }
781
+ if (message.id_short !== "") {
782
+ writer.uint32(18).string(message.id_short);
783
+ }
784
+ if (message.number_card !== "") {
785
+ writer.uint32(26).string(message.number_card);
786
+ }
787
+ if (message.agreement !== "") {
788
+ writer.uint32(34).string(message.agreement);
789
+ }
790
+ if (message.personalization_type !== "") {
791
+ writer.uint32(42).string(message.personalization_type);
792
+ }
793
+ if (message.personalization_nombre !== "") {
794
+ writer.uint32(50).string(message.personalization_nombre);
795
+ }
796
+ if (message.status_value !== "") {
797
+ writer.uint32(58).string(message.status_value);
798
+ }
799
+ if (message.status_label !== "") {
800
+ writer.uint32(66).string(message.status_label);
801
+ }
802
+ return writer;
803
+ },
804
+ decode(input, length) {
805
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
806
+ const end = length === undefined ? reader.len : reader.pos + length;
807
+ const message = createBaseBatchCard();
808
+ while (reader.pos < end) {
809
+ const tag = reader.uint32();
810
+ switch (tag >>> 3) {
811
+ case 1: {
812
+ if (tag !== 10) {
813
+ break;
814
+ }
815
+ message.id = reader.string();
816
+ continue;
817
+ }
818
+ case 2: {
819
+ if (tag !== 18) {
820
+ break;
821
+ }
822
+ message.id_short = reader.string();
823
+ continue;
824
+ }
825
+ case 3: {
826
+ if (tag !== 26) {
827
+ break;
828
+ }
829
+ message.number_card = reader.string();
830
+ continue;
831
+ }
832
+ case 4: {
833
+ if (tag !== 34) {
834
+ break;
835
+ }
836
+ message.agreement = reader.string();
837
+ continue;
838
+ }
839
+ case 5: {
840
+ if (tag !== 42) {
841
+ break;
842
+ }
843
+ message.personalization_type = reader.string();
844
+ continue;
845
+ }
846
+ case 6: {
847
+ if (tag !== 50) {
848
+ break;
849
+ }
850
+ message.personalization_nombre = reader.string();
851
+ continue;
852
+ }
853
+ case 7: {
854
+ if (tag !== 58) {
855
+ break;
856
+ }
857
+ message.status_value = reader.string();
858
+ continue;
859
+ }
860
+ case 8: {
861
+ if (tag !== 66) {
862
+ break;
863
+ }
864
+ message.status_label = reader.string();
865
+ continue;
866
+ }
867
+ }
868
+ if ((tag & 7) === 4 || tag === 0) {
869
+ break;
870
+ }
871
+ reader.skip(tag & 7);
872
+ }
873
+ return message;
874
+ },
875
+ create(base) {
876
+ return exports.BatchCard.fromPartial(base ?? {});
877
+ },
878
+ fromPartial(object) {
879
+ const message = createBaseBatchCard();
880
+ message.id = object.id ?? "";
881
+ message.id_short = object.id_short ?? "";
882
+ message.number_card = object.number_card ?? "";
883
+ message.agreement = object.agreement ?? "";
884
+ message.personalization_type = object.personalization_type ?? "";
885
+ message.personalization_nombre = object.personalization_nombre ?? "";
886
+ message.status_value = object.status_value ?? "";
887
+ message.status_label = object.status_label ?? "";
888
+ return message;
889
+ },
890
+ };
891
+ function createBaseProductDetail() {
892
+ return {
893
+ product_type: "",
894
+ product_type_label: "",
895
+ personalization_id: "",
896
+ brand: "",
897
+ brand_label: "",
898
+ bin: "",
899
+ sub_bin: "",
900
+ country: "",
901
+ country_label: "",
902
+ multi_currency: false,
903
+ main_currency: "",
904
+ main_currency_label: "",
905
+ main_currency_code: "",
906
+ product_key: "",
907
+ card_digits: 0,
908
+ validity: "",
909
+ };
910
+ }
911
+ exports.ProductDetail = {
912
+ encode(message, writer = new wire_1.BinaryWriter()) {
913
+ if (message.product_type !== "") {
914
+ writer.uint32(10).string(message.product_type);
915
+ }
916
+ if (message.product_type_label !== "") {
917
+ writer.uint32(18).string(message.product_type_label);
918
+ }
919
+ if (message.personalization_id !== "") {
920
+ writer.uint32(26).string(message.personalization_id);
921
+ }
922
+ if (message.brand !== "") {
923
+ writer.uint32(34).string(message.brand);
924
+ }
925
+ if (message.brand_label !== "") {
926
+ writer.uint32(42).string(message.brand_label);
927
+ }
928
+ if (message.bin !== "") {
929
+ writer.uint32(50).string(message.bin);
930
+ }
931
+ if (message.sub_bin !== "") {
932
+ writer.uint32(58).string(message.sub_bin);
933
+ }
934
+ if (message.country !== "") {
935
+ writer.uint32(66).string(message.country);
936
+ }
937
+ if (message.country_label !== "") {
938
+ writer.uint32(74).string(message.country_label);
939
+ }
940
+ if (message.multi_currency !== false) {
941
+ writer.uint32(80).bool(message.multi_currency);
942
+ }
943
+ if (message.main_currency !== "") {
944
+ writer.uint32(90).string(message.main_currency);
945
+ }
946
+ if (message.main_currency_label !== "") {
947
+ writer.uint32(98).string(message.main_currency_label);
948
+ }
949
+ if (message.main_currency_code !== "") {
950
+ writer.uint32(106).string(message.main_currency_code);
951
+ }
952
+ if (message.product_key !== "") {
953
+ writer.uint32(114).string(message.product_key);
954
+ }
955
+ if (message.card_digits !== 0) {
956
+ writer.uint32(120).int32(message.card_digits);
957
+ }
958
+ if (message.validity !== "") {
959
+ writer.uint32(130).string(message.validity);
960
+ }
961
+ return writer;
962
+ },
963
+ decode(input, length) {
964
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
965
+ const end = length === undefined ? reader.len : reader.pos + length;
966
+ const message = createBaseProductDetail();
967
+ while (reader.pos < end) {
968
+ const tag = reader.uint32();
969
+ switch (tag >>> 3) {
970
+ case 1: {
971
+ if (tag !== 10) {
972
+ break;
973
+ }
974
+ message.product_type = reader.string();
975
+ continue;
976
+ }
977
+ case 2: {
978
+ if (tag !== 18) {
979
+ break;
980
+ }
981
+ message.product_type_label = reader.string();
982
+ continue;
983
+ }
984
+ case 3: {
985
+ if (tag !== 26) {
986
+ break;
987
+ }
988
+ message.personalization_id = reader.string();
989
+ continue;
990
+ }
991
+ case 4: {
992
+ if (tag !== 34) {
993
+ break;
994
+ }
995
+ message.brand = reader.string();
996
+ continue;
997
+ }
998
+ case 5: {
999
+ if (tag !== 42) {
1000
+ break;
1001
+ }
1002
+ message.brand_label = reader.string();
1003
+ continue;
1004
+ }
1005
+ case 6: {
1006
+ if (tag !== 50) {
1007
+ break;
1008
+ }
1009
+ message.bin = reader.string();
1010
+ continue;
1011
+ }
1012
+ case 7: {
1013
+ if (tag !== 58) {
1014
+ break;
1015
+ }
1016
+ message.sub_bin = reader.string();
1017
+ continue;
1018
+ }
1019
+ case 8: {
1020
+ if (tag !== 66) {
1021
+ break;
1022
+ }
1023
+ message.country = reader.string();
1024
+ continue;
1025
+ }
1026
+ case 9: {
1027
+ if (tag !== 74) {
1028
+ break;
1029
+ }
1030
+ message.country_label = reader.string();
1031
+ continue;
1032
+ }
1033
+ case 10: {
1034
+ if (tag !== 80) {
1035
+ break;
1036
+ }
1037
+ message.multi_currency = reader.bool();
1038
+ continue;
1039
+ }
1040
+ case 11: {
1041
+ if (tag !== 90) {
1042
+ break;
1043
+ }
1044
+ message.main_currency = reader.string();
1045
+ continue;
1046
+ }
1047
+ case 12: {
1048
+ if (tag !== 98) {
1049
+ break;
1050
+ }
1051
+ message.main_currency_label = reader.string();
1052
+ continue;
1053
+ }
1054
+ case 13: {
1055
+ if (tag !== 106) {
1056
+ break;
1057
+ }
1058
+ message.main_currency_code = reader.string();
1059
+ continue;
1060
+ }
1061
+ case 14: {
1062
+ if (tag !== 114) {
1063
+ break;
1064
+ }
1065
+ message.product_key = reader.string();
1066
+ continue;
1067
+ }
1068
+ case 15: {
1069
+ if (tag !== 120) {
1070
+ break;
1071
+ }
1072
+ message.card_digits = reader.int32();
1073
+ continue;
1074
+ }
1075
+ case 16: {
1076
+ if (tag !== 130) {
1077
+ break;
1078
+ }
1079
+ message.validity = reader.string();
1080
+ continue;
1081
+ }
1082
+ }
1083
+ if ((tag & 7) === 4 || tag === 0) {
1084
+ break;
1085
+ }
1086
+ reader.skip(tag & 7);
1087
+ }
1088
+ return message;
1089
+ },
1090
+ create(base) {
1091
+ return exports.ProductDetail.fromPartial(base ?? {});
1092
+ },
1093
+ fromPartial(object) {
1094
+ const message = createBaseProductDetail();
1095
+ message.product_type = object.product_type ?? "";
1096
+ message.product_type_label = object.product_type_label ?? "";
1097
+ message.personalization_id = object.personalization_id ?? "";
1098
+ message.brand = object.brand ?? "";
1099
+ message.brand_label = object.brand_label ?? "";
1100
+ message.bin = object.bin ?? "";
1101
+ message.sub_bin = object.sub_bin ?? "";
1102
+ message.country = object.country ?? "";
1103
+ message.country_label = object.country_label ?? "";
1104
+ message.multi_currency = object.multi_currency ?? false;
1105
+ message.main_currency = object.main_currency ?? "";
1106
+ message.main_currency_label = object.main_currency_label ?? "";
1107
+ message.main_currency_code = object.main_currency_code ?? "";
1108
+ message.product_key = object.product_key ?? "";
1109
+ message.card_digits = object.card_digits ?? 0;
1110
+ message.validity = object.validity ?? "";
1111
+ return message;
1112
+ },
1113
+ };
1114
+ function createBaseCardholder() {
1115
+ return { nombre: "", apellido: "" };
1116
+ }
1117
+ exports.Cardholder = {
1118
+ encode(message, writer = new wire_1.BinaryWriter()) {
1119
+ if (message.nombre !== "") {
1120
+ writer.uint32(10).string(message.nombre);
1121
+ }
1122
+ if (message.apellido !== "") {
1123
+ writer.uint32(18).string(message.apellido);
1124
+ }
1125
+ return writer;
1126
+ },
1127
+ decode(input, length) {
1128
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1129
+ const end = length === undefined ? reader.len : reader.pos + length;
1130
+ const message = createBaseCardholder();
1131
+ while (reader.pos < end) {
1132
+ const tag = reader.uint32();
1133
+ switch (tag >>> 3) {
1134
+ case 1: {
1135
+ if (tag !== 10) {
1136
+ break;
1137
+ }
1138
+ message.nombre = reader.string();
1139
+ continue;
1140
+ }
1141
+ case 2: {
1142
+ if (tag !== 18) {
1143
+ break;
1144
+ }
1145
+ message.apellido = reader.string();
1146
+ continue;
1147
+ }
1148
+ }
1149
+ if ((tag & 7) === 4 || tag === 0) {
1150
+ break;
1151
+ }
1152
+ reader.skip(tag & 7);
1153
+ }
1154
+ return message;
1155
+ },
1156
+ create(base) {
1157
+ return exports.Cardholder.fromPartial(base ?? {});
1158
+ },
1159
+ fromPartial(object) {
1160
+ const message = createBaseCardholder();
1161
+ message.nombre = object.nombre ?? "";
1162
+ message.apellido = object.apellido ?? "";
1163
+ return message;
1164
+ },
1165
+ };
1166
+ function createBaseAgreementDetail() {
1167
+ return { person_type: "", nombre: "", apellido: "" };
1168
+ }
1169
+ exports.AgreementDetail = {
1170
+ encode(message, writer = new wire_1.BinaryWriter()) {
1171
+ if (message.person_type !== "") {
1172
+ writer.uint32(10).string(message.person_type);
1173
+ }
1174
+ if (message.nombre !== "") {
1175
+ writer.uint32(18).string(message.nombre);
1176
+ }
1177
+ if (message.apellido !== "") {
1178
+ writer.uint32(26).string(message.apellido);
1179
+ }
1180
+ return writer;
1181
+ },
1182
+ decode(input, length) {
1183
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1184
+ const end = length === undefined ? reader.len : reader.pos + length;
1185
+ const message = createBaseAgreementDetail();
1186
+ while (reader.pos < end) {
1187
+ const tag = reader.uint32();
1188
+ switch (tag >>> 3) {
1189
+ case 1: {
1190
+ if (tag !== 10) {
1191
+ break;
1192
+ }
1193
+ message.person_type = reader.string();
1194
+ continue;
1195
+ }
1196
+ case 2: {
1197
+ if (tag !== 18) {
1198
+ break;
1199
+ }
1200
+ message.nombre = reader.string();
1201
+ continue;
1202
+ }
1203
+ case 3: {
1204
+ if (tag !== 26) {
1205
+ break;
1206
+ }
1207
+ message.apellido = reader.string();
1208
+ continue;
1209
+ }
1210
+ }
1211
+ if ((tag & 7) === 4 || tag === 0) {
1212
+ break;
1213
+ }
1214
+ reader.skip(tag & 7);
1215
+ }
1216
+ return message;
1217
+ },
1218
+ create(base) {
1219
+ return exports.AgreementDetail.fromPartial(base ?? {});
1220
+ },
1221
+ fromPartial(object) {
1222
+ const message = createBaseAgreementDetail();
1223
+ message.person_type = object.person_type ?? "";
1224
+ message.nombre = object.nombre ?? "";
1225
+ message.apellido = object.apellido ?? "";
1226
+ return message;
1227
+ },
1228
+ };
1229
+ function createBaseManufacturer() {
1230
+ return {
1231
+ id: "",
1232
+ manufacturer_name: "",
1233
+ status_value: "",
1234
+ status_label: "",
1235
+ issuer_id: "",
1236
+ x_user_id: "",
1237
+ consumer_id: "",
1238
+ created_at: "",
1239
+ updated_at: "",
1240
+ };
1241
+ }
1242
+ exports.Manufacturer = {
1243
+ encode(message, writer = new wire_1.BinaryWriter()) {
1244
+ if (message.id !== "") {
1245
+ writer.uint32(10).string(message.id);
1246
+ }
1247
+ if (message.manufacturer_name !== "") {
1248
+ writer.uint32(18).string(message.manufacturer_name);
1249
+ }
1250
+ if (message.status_value !== "") {
1251
+ writer.uint32(26).string(message.status_value);
1252
+ }
1253
+ if (message.status_label !== "") {
1254
+ writer.uint32(34).string(message.status_label);
1255
+ }
1256
+ if (message.issuer_id !== "") {
1257
+ writer.uint32(42).string(message.issuer_id);
1258
+ }
1259
+ if (message.x_user_id !== "") {
1260
+ writer.uint32(50).string(message.x_user_id);
1261
+ }
1262
+ if (message.consumer_id !== "") {
1263
+ writer.uint32(58).string(message.consumer_id);
1264
+ }
1265
+ if (message.created_at !== "") {
1266
+ writer.uint32(66).string(message.created_at);
1267
+ }
1268
+ if (message.updated_at !== "") {
1269
+ writer.uint32(74).string(message.updated_at);
1270
+ }
1271
+ return writer;
1272
+ },
1273
+ decode(input, length) {
1274
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1275
+ const end = length === undefined ? reader.len : reader.pos + length;
1276
+ const message = createBaseManufacturer();
1277
+ while (reader.pos < end) {
1278
+ const tag = reader.uint32();
1279
+ switch (tag >>> 3) {
1280
+ case 1: {
1281
+ if (tag !== 10) {
1282
+ break;
1283
+ }
1284
+ message.id = reader.string();
1285
+ continue;
1286
+ }
1287
+ case 2: {
1288
+ if (tag !== 18) {
1289
+ break;
1290
+ }
1291
+ message.manufacturer_name = reader.string();
1292
+ continue;
1293
+ }
1294
+ case 3: {
1295
+ if (tag !== 26) {
1296
+ break;
1297
+ }
1298
+ message.status_value = reader.string();
1299
+ continue;
1300
+ }
1301
+ case 4: {
1302
+ if (tag !== 34) {
1303
+ break;
1304
+ }
1305
+ message.status_label = reader.string();
1306
+ continue;
1307
+ }
1308
+ case 5: {
1309
+ if (tag !== 42) {
1310
+ break;
1311
+ }
1312
+ message.issuer_id = reader.string();
1313
+ continue;
1314
+ }
1315
+ case 6: {
1316
+ if (tag !== 50) {
1317
+ break;
1318
+ }
1319
+ message.x_user_id = reader.string();
1320
+ continue;
1321
+ }
1322
+ case 7: {
1323
+ if (tag !== 58) {
1324
+ break;
1325
+ }
1326
+ message.consumer_id = reader.string();
1327
+ continue;
1328
+ }
1329
+ case 8: {
1330
+ if (tag !== 66) {
1331
+ break;
1332
+ }
1333
+ message.created_at = reader.string();
1334
+ continue;
1335
+ }
1336
+ case 9: {
1337
+ if (tag !== 74) {
1338
+ break;
1339
+ }
1340
+ message.updated_at = reader.string();
1341
+ continue;
1342
+ }
1343
+ }
1344
+ if ((tag & 7) === 4 || tag === 0) {
1345
+ break;
1346
+ }
1347
+ reader.skip(tag & 7);
1348
+ }
1349
+ return message;
1350
+ },
1351
+ create(base) {
1352
+ return exports.Manufacturer.fromPartial(base ?? {});
1353
+ },
1354
+ fromPartial(object) {
1355
+ const message = createBaseManufacturer();
1356
+ message.id = object.id ?? "";
1357
+ message.manufacturer_name = object.manufacturer_name ?? "";
1358
+ message.status_value = object.status_value ?? "";
1359
+ message.status_label = object.status_label ?? "";
1360
+ message.issuer_id = object.issuer_id ?? "";
1361
+ message.x_user_id = object.x_user_id ?? "";
1362
+ message.consumer_id = object.consumer_id ?? "";
1363
+ message.created_at = object.created_at ?? "";
1364
+ message.updated_at = object.updated_at ?? "";
1365
+ return message;
1366
+ },
1367
+ };
1368
+ function createBaseManufacturerDetail() {
1369
+ return {
1370
+ id_short: "",
1371
+ id_long: "",
1372
+ manufacturer_name: "",
1373
+ created_at: "",
1374
+ total_products: 0,
1375
+ status_value: "",
1376
+ status_label: "",
1377
+ contact: undefined,
1378
+ };
1379
+ }
1380
+ exports.ManufacturerDetail = {
1381
+ encode(message, writer = new wire_1.BinaryWriter()) {
1382
+ if (message.id_short !== "") {
1383
+ writer.uint32(10).string(message.id_short);
1384
+ }
1385
+ if (message.id_long !== "") {
1386
+ writer.uint32(18).string(message.id_long);
1387
+ }
1388
+ if (message.manufacturer_name !== "") {
1389
+ writer.uint32(26).string(message.manufacturer_name);
1390
+ }
1391
+ if (message.created_at !== "") {
1392
+ writer.uint32(34).string(message.created_at);
1393
+ }
1394
+ if (message.total_products !== 0) {
1395
+ writer.uint32(40).int32(message.total_products);
1396
+ }
1397
+ if (message.status_value !== "") {
1398
+ writer.uint32(50).string(message.status_value);
1399
+ }
1400
+ if (message.status_label !== "") {
1401
+ writer.uint32(58).string(message.status_label);
1402
+ }
1403
+ if (message.contact !== undefined) {
1404
+ exports.ManufacturerContact.encode(message.contact, writer.uint32(66).fork()).join();
1405
+ }
1406
+ return writer;
1407
+ },
1408
+ decode(input, length) {
1409
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1410
+ const end = length === undefined ? reader.len : reader.pos + length;
1411
+ const message = createBaseManufacturerDetail();
1412
+ while (reader.pos < end) {
1413
+ const tag = reader.uint32();
1414
+ switch (tag >>> 3) {
1415
+ case 1: {
1416
+ if (tag !== 10) {
1417
+ break;
1418
+ }
1419
+ message.id_short = reader.string();
1420
+ continue;
1421
+ }
1422
+ case 2: {
1423
+ if (tag !== 18) {
1424
+ break;
1425
+ }
1426
+ message.id_long = reader.string();
1427
+ continue;
1428
+ }
1429
+ case 3: {
1430
+ if (tag !== 26) {
1431
+ break;
1432
+ }
1433
+ message.manufacturer_name = reader.string();
1434
+ continue;
1435
+ }
1436
+ case 4: {
1437
+ if (tag !== 34) {
1438
+ break;
1439
+ }
1440
+ message.created_at = reader.string();
1441
+ continue;
1442
+ }
1443
+ case 5: {
1444
+ if (tag !== 40) {
1445
+ break;
1446
+ }
1447
+ message.total_products = reader.int32();
1448
+ continue;
1449
+ }
1450
+ case 6: {
1451
+ if (tag !== 50) {
1452
+ break;
1453
+ }
1454
+ message.status_value = reader.string();
1455
+ continue;
1456
+ }
1457
+ case 7: {
1458
+ if (tag !== 58) {
1459
+ break;
1460
+ }
1461
+ message.status_label = reader.string();
1462
+ continue;
1463
+ }
1464
+ case 8: {
1465
+ if (tag !== 66) {
1466
+ break;
1467
+ }
1468
+ message.contact = exports.ManufacturerContact.decode(reader, reader.uint32());
1469
+ continue;
1470
+ }
1471
+ }
1472
+ if ((tag & 7) === 4 || tag === 0) {
1473
+ break;
1474
+ }
1475
+ reader.skip(tag & 7);
1476
+ }
1477
+ return message;
1478
+ },
1479
+ create(base) {
1480
+ return exports.ManufacturerDetail.fromPartial(base ?? {});
1481
+ },
1482
+ fromPartial(object) {
1483
+ const message = createBaseManufacturerDetail();
1484
+ message.id_short = object.id_short ?? "";
1485
+ message.id_long = object.id_long ?? "";
1486
+ message.manufacturer_name = object.manufacturer_name ?? "";
1487
+ message.created_at = object.created_at ?? "";
1488
+ message.total_products = object.total_products ?? 0;
1489
+ message.status_value = object.status_value ?? "";
1490
+ message.status_label = object.status_label ?? "";
1491
+ message.contact = (object.contact !== undefined && object.contact !== null)
1492
+ ? exports.ManufacturerContact.fromPartial(object.contact)
1493
+ : undefined;
1494
+ return message;
1495
+ },
1496
+ };
1497
+ function createBaseManufacturerContact() {
1498
+ return {
1499
+ street: "",
1500
+ number: "",
1501
+ neighborhood: "",
1502
+ postal_code: "",
1503
+ city: "",
1504
+ state: "",
1505
+ country: "",
1506
+ email: "",
1507
+ phone: "",
1508
+ };
1509
+ }
1510
+ exports.ManufacturerContact = {
1511
+ encode(message, writer = new wire_1.BinaryWriter()) {
1512
+ if (message.street !== "") {
1513
+ writer.uint32(10).string(message.street);
1514
+ }
1515
+ if (message.number !== "") {
1516
+ writer.uint32(18).string(message.number);
1517
+ }
1518
+ if (message.neighborhood !== "") {
1519
+ writer.uint32(26).string(message.neighborhood);
1520
+ }
1521
+ if (message.postal_code !== "") {
1522
+ writer.uint32(34).string(message.postal_code);
1523
+ }
1524
+ if (message.city !== "") {
1525
+ writer.uint32(42).string(message.city);
1526
+ }
1527
+ if (message.state !== "") {
1528
+ writer.uint32(50).string(message.state);
1529
+ }
1530
+ if (message.country !== "") {
1531
+ writer.uint32(58).string(message.country);
1532
+ }
1533
+ if (message.email !== "") {
1534
+ writer.uint32(66).string(message.email);
1535
+ }
1536
+ if (message.phone !== "") {
1537
+ writer.uint32(74).string(message.phone);
1538
+ }
1539
+ return writer;
1540
+ },
1541
+ decode(input, length) {
1542
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1543
+ const end = length === undefined ? reader.len : reader.pos + length;
1544
+ const message = createBaseManufacturerContact();
1545
+ while (reader.pos < end) {
1546
+ const tag = reader.uint32();
1547
+ switch (tag >>> 3) {
1548
+ case 1: {
1549
+ if (tag !== 10) {
1550
+ break;
1551
+ }
1552
+ message.street = reader.string();
1553
+ continue;
1554
+ }
1555
+ case 2: {
1556
+ if (tag !== 18) {
1557
+ break;
1558
+ }
1559
+ message.number = reader.string();
1560
+ continue;
1561
+ }
1562
+ case 3: {
1563
+ if (tag !== 26) {
1564
+ break;
1565
+ }
1566
+ message.neighborhood = reader.string();
1567
+ continue;
1568
+ }
1569
+ case 4: {
1570
+ if (tag !== 34) {
1571
+ break;
1572
+ }
1573
+ message.postal_code = reader.string();
1574
+ continue;
1575
+ }
1576
+ case 5: {
1577
+ if (tag !== 42) {
1578
+ break;
1579
+ }
1580
+ message.city = reader.string();
1581
+ continue;
1582
+ }
1583
+ case 6: {
1584
+ if (tag !== 50) {
1585
+ break;
1586
+ }
1587
+ message.state = reader.string();
1588
+ continue;
1589
+ }
1590
+ case 7: {
1591
+ if (tag !== 58) {
1592
+ break;
1593
+ }
1594
+ message.country = reader.string();
1595
+ continue;
1596
+ }
1597
+ case 8: {
1598
+ if (tag !== 66) {
1599
+ break;
1600
+ }
1601
+ message.email = reader.string();
1602
+ continue;
1603
+ }
1604
+ case 9: {
1605
+ if (tag !== 74) {
1606
+ break;
1607
+ }
1608
+ message.phone = reader.string();
1609
+ continue;
1610
+ }
1611
+ }
1612
+ if ((tag & 7) === 4 || tag === 0) {
1613
+ break;
1614
+ }
1615
+ reader.skip(tag & 7);
1616
+ }
1617
+ return message;
1618
+ },
1619
+ create(base) {
1620
+ return exports.ManufacturerContact.fromPartial(base ?? {});
1621
+ },
1622
+ fromPartial(object) {
1623
+ const message = createBaseManufacturerContact();
1624
+ message.street = object.street ?? "";
1625
+ message.number = object.number ?? "";
1626
+ message.neighborhood = object.neighborhood ?? "";
1627
+ message.postal_code = object.postal_code ?? "";
1628
+ message.city = object.city ?? "";
1629
+ message.state = object.state ?? "";
1630
+ message.country = object.country ?? "";
1631
+ message.email = object.email ?? "";
1632
+ message.phone = object.phone ?? "";
1633
+ return message;
1634
+ },
1635
+ };
1636
+ function createBaseProductTypeItem() {
1637
+ return { value: "", label: "" };
1638
+ }
1639
+ exports.ProductTypeItem = {
1640
+ encode(message, writer = new wire_1.BinaryWriter()) {
1641
+ if (message.value !== "") {
1642
+ writer.uint32(10).string(message.value);
1643
+ }
1644
+ if (message.label !== "") {
1645
+ writer.uint32(18).string(message.label);
1646
+ }
1647
+ return writer;
1648
+ },
1649
+ decode(input, length) {
1650
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1651
+ const end = length === undefined ? reader.len : reader.pos + length;
1652
+ const message = createBaseProductTypeItem();
1653
+ while (reader.pos < end) {
1654
+ const tag = reader.uint32();
1655
+ switch (tag >>> 3) {
1656
+ case 1: {
1657
+ if (tag !== 10) {
1658
+ break;
1659
+ }
1660
+ message.value = reader.string();
1661
+ continue;
1662
+ }
1663
+ case 2: {
1664
+ if (tag !== 18) {
1665
+ break;
1666
+ }
1667
+ message.label = reader.string();
1668
+ continue;
1669
+ }
1670
+ }
1671
+ if ((tag & 7) === 4 || tag === 0) {
1672
+ break;
1673
+ }
1674
+ reader.skip(tag & 7);
1675
+ }
1676
+ return message;
1677
+ },
1678
+ create(base) {
1679
+ return exports.ProductTypeItem.fromPartial(base ?? {});
1680
+ },
1681
+ fromPartial(object) {
1682
+ const message = createBaseProductTypeItem();
1683
+ message.value = object.value ?? "";
1684
+ message.label = object.label ?? "";
1685
+ return message;
1686
+ },
1687
+ };
1688
+ function createBaseNominativeCardData() {
1689
+ return { name: "", second_name: "", agreement: "" };
1690
+ }
1691
+ exports.NominativeCardData = {
1692
+ encode(message, writer = new wire_1.BinaryWriter()) {
1693
+ if (message.name !== "") {
1694
+ writer.uint32(10).string(message.name);
1695
+ }
1696
+ if (message.second_name !== "") {
1697
+ writer.uint32(18).string(message.second_name);
1698
+ }
1699
+ if (message.agreement !== "") {
1700
+ writer.uint32(26).string(message.agreement);
1701
+ }
1702
+ return writer;
1703
+ },
1704
+ decode(input, length) {
1705
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1706
+ const end = length === undefined ? reader.len : reader.pos + length;
1707
+ const message = createBaseNominativeCardData();
1708
+ while (reader.pos < end) {
1709
+ const tag = reader.uint32();
1710
+ switch (tag >>> 3) {
1711
+ case 1: {
1712
+ if (tag !== 10) {
1713
+ break;
1714
+ }
1715
+ message.name = reader.string();
1716
+ continue;
1717
+ }
1718
+ case 2: {
1719
+ if (tag !== 18) {
1720
+ break;
1721
+ }
1722
+ message.second_name = reader.string();
1723
+ continue;
1724
+ }
1725
+ case 3: {
1726
+ if (tag !== 26) {
1727
+ break;
1728
+ }
1729
+ message.agreement = reader.string();
1730
+ continue;
1731
+ }
1732
+ }
1733
+ if ((tag & 7) === 4 || tag === 0) {
1734
+ break;
1735
+ }
1736
+ reader.skip(tag & 7);
1737
+ }
1738
+ return message;
1739
+ },
1740
+ create(base) {
1741
+ return exports.NominativeCardData.fromPartial(base ?? {});
1742
+ },
1743
+ fromPartial(object) {
1744
+ const message = createBaseNominativeCardData();
1745
+ message.name = object.name ?? "";
1746
+ message.second_name = object.second_name ?? "";
1747
+ message.agreement = object.agreement ?? "";
1748
+ return message;
1749
+ },
1750
+ };
1751
+ //# sourceMappingURL=payments_methods_types.js.map