@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,3101 @@
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/contracts/v1/contracts_types.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Hold = exports.SavingsInterest = exports.PendingFee = exports.FeeRelatedTransaction = exports.Authorization = exports.Transaction = exports.Profile = exports.ContractOverview = exports.ContractSearch = exports.ContractVerify = exports.RelatedData = exports.Contract = exports.Card = exports.CustomerProfile = exports.Address = exports.CIP = exports.CIPFull = exports.ModelResults = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "kapital.contracts.v1";
12
+ function createBaseModelResults() {
13
+ return { model_name: "", model_version: "", code: "", text: "" };
14
+ }
15
+ exports.ModelResults = {
16
+ encode(message, writer = new wire_1.BinaryWriter()) {
17
+ if (message.model_name !== "") {
18
+ writer.uint32(10).string(message.model_name);
19
+ }
20
+ if (message.model_version !== "") {
21
+ writer.uint32(18).string(message.model_version);
22
+ }
23
+ if (message.code !== "") {
24
+ writer.uint32(26).string(message.code);
25
+ }
26
+ if (message.text !== "") {
27
+ writer.uint32(34).string(message.text);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
33
+ const end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseModelResults();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1: {
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.model_name = reader.string();
43
+ continue;
44
+ }
45
+ case 2: {
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.model_version = reader.string();
50
+ continue;
51
+ }
52
+ case 3: {
53
+ if (tag !== 26) {
54
+ break;
55
+ }
56
+ message.code = reader.string();
57
+ continue;
58
+ }
59
+ case 4: {
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.text = reader.string();
64
+ continue;
65
+ }
66
+ }
67
+ if ((tag & 7) === 4 || tag === 0) {
68
+ break;
69
+ }
70
+ reader.skip(tag & 7);
71
+ }
72
+ return message;
73
+ },
74
+ create(base) {
75
+ return exports.ModelResults.fromPartial(base ?? {});
76
+ },
77
+ fromPartial(object) {
78
+ const message = createBaseModelResults();
79
+ message.model_name = object.model_name ?? "";
80
+ message.model_version = object.model_version ?? "";
81
+ message.code = object.code ?? "";
82
+ message.text = object.text ?? "";
83
+ return message;
84
+ },
85
+ };
86
+ function createBaseCIPFull() {
87
+ return {
88
+ status: "",
89
+ model_results: [],
90
+ date_time: "",
91
+ first_name: "",
92
+ middle_name: "",
93
+ last_name: "",
94
+ address_1: "",
95
+ address_2: "",
96
+ city: "",
97
+ state: "",
98
+ primary_phone: "",
99
+ other_phone: "",
100
+ entity_id: "",
101
+ customer_id: "",
102
+ };
103
+ }
104
+ exports.CIPFull = {
105
+ encode(message, writer = new wire_1.BinaryWriter()) {
106
+ if (message.status !== "") {
107
+ writer.uint32(10).string(message.status);
108
+ }
109
+ for (const v of message.model_results) {
110
+ exports.ModelResults.encode(v, writer.uint32(18).fork()).join();
111
+ }
112
+ if (message.date_time !== "") {
113
+ writer.uint32(26).string(message.date_time);
114
+ }
115
+ if (message.first_name !== "") {
116
+ writer.uint32(34).string(message.first_name);
117
+ }
118
+ if (message.middle_name !== "") {
119
+ writer.uint32(42).string(message.middle_name);
120
+ }
121
+ if (message.last_name !== "") {
122
+ writer.uint32(50).string(message.last_name);
123
+ }
124
+ if (message.address_1 !== "") {
125
+ writer.uint32(58).string(message.address_1);
126
+ }
127
+ if (message.address_2 !== "") {
128
+ writer.uint32(66).string(message.address_2);
129
+ }
130
+ if (message.city !== "") {
131
+ writer.uint32(74).string(message.city);
132
+ }
133
+ if (message.state !== "") {
134
+ writer.uint32(82).string(message.state);
135
+ }
136
+ if (message.primary_phone !== "") {
137
+ writer.uint32(90).string(message.primary_phone);
138
+ }
139
+ if (message.other_phone !== "") {
140
+ writer.uint32(98).string(message.other_phone);
141
+ }
142
+ if (message.entity_id !== "") {
143
+ writer.uint32(106).string(message.entity_id);
144
+ }
145
+ if (message.customer_id !== "") {
146
+ writer.uint32(114).string(message.customer_id);
147
+ }
148
+ return writer;
149
+ },
150
+ decode(input, length) {
151
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
152
+ const end = length === undefined ? reader.len : reader.pos + length;
153
+ const message = createBaseCIPFull();
154
+ while (reader.pos < end) {
155
+ const tag = reader.uint32();
156
+ switch (tag >>> 3) {
157
+ case 1: {
158
+ if (tag !== 10) {
159
+ break;
160
+ }
161
+ message.status = reader.string();
162
+ continue;
163
+ }
164
+ case 2: {
165
+ if (tag !== 18) {
166
+ break;
167
+ }
168
+ message.model_results.push(exports.ModelResults.decode(reader, reader.uint32()));
169
+ continue;
170
+ }
171
+ case 3: {
172
+ if (tag !== 26) {
173
+ break;
174
+ }
175
+ message.date_time = reader.string();
176
+ continue;
177
+ }
178
+ case 4: {
179
+ if (tag !== 34) {
180
+ break;
181
+ }
182
+ message.first_name = reader.string();
183
+ continue;
184
+ }
185
+ case 5: {
186
+ if (tag !== 42) {
187
+ break;
188
+ }
189
+ message.middle_name = reader.string();
190
+ continue;
191
+ }
192
+ case 6: {
193
+ if (tag !== 50) {
194
+ break;
195
+ }
196
+ message.last_name = reader.string();
197
+ continue;
198
+ }
199
+ case 7: {
200
+ if (tag !== 58) {
201
+ break;
202
+ }
203
+ message.address_1 = reader.string();
204
+ continue;
205
+ }
206
+ case 8: {
207
+ if (tag !== 66) {
208
+ break;
209
+ }
210
+ message.address_2 = reader.string();
211
+ continue;
212
+ }
213
+ case 9: {
214
+ if (tag !== 74) {
215
+ break;
216
+ }
217
+ message.city = reader.string();
218
+ continue;
219
+ }
220
+ case 10: {
221
+ if (tag !== 82) {
222
+ break;
223
+ }
224
+ message.state = reader.string();
225
+ continue;
226
+ }
227
+ case 11: {
228
+ if (tag !== 90) {
229
+ break;
230
+ }
231
+ message.primary_phone = reader.string();
232
+ continue;
233
+ }
234
+ case 12: {
235
+ if (tag !== 98) {
236
+ break;
237
+ }
238
+ message.other_phone = reader.string();
239
+ continue;
240
+ }
241
+ case 13: {
242
+ if (tag !== 106) {
243
+ break;
244
+ }
245
+ message.entity_id = reader.string();
246
+ continue;
247
+ }
248
+ case 14: {
249
+ if (tag !== 114) {
250
+ break;
251
+ }
252
+ message.customer_id = reader.string();
253
+ continue;
254
+ }
255
+ }
256
+ if ((tag & 7) === 4 || tag === 0) {
257
+ break;
258
+ }
259
+ reader.skip(tag & 7);
260
+ }
261
+ return message;
262
+ },
263
+ create(base) {
264
+ return exports.CIPFull.fromPartial(base ?? {});
265
+ },
266
+ fromPartial(object) {
267
+ const message = createBaseCIPFull();
268
+ message.status = object.status ?? "";
269
+ message.model_results = object.model_results?.map((e) => exports.ModelResults.fromPartial(e)) || [];
270
+ message.date_time = object.date_time ?? "";
271
+ message.first_name = object.first_name ?? "";
272
+ message.middle_name = object.middle_name ?? "";
273
+ message.last_name = object.last_name ?? "";
274
+ message.address_1 = object.address_1 ?? "";
275
+ message.address_2 = object.address_2 ?? "";
276
+ message.city = object.city ?? "";
277
+ message.state = object.state ?? "";
278
+ message.primary_phone = object.primary_phone ?? "";
279
+ message.other_phone = object.other_phone ?? "";
280
+ message.entity_id = object.entity_id ?? "";
281
+ message.customer_id = object.customer_id ?? "";
282
+ return message;
283
+ },
284
+ };
285
+ function createBaseCIP() {
286
+ return {
287
+ status: "",
288
+ model_results: [],
289
+ date_time: "",
290
+ first_name: "",
291
+ middle_name: "",
292
+ last_name: "",
293
+ address_1: "",
294
+ address_2: "",
295
+ city: "",
296
+ state: "",
297
+ primary_phone: "",
298
+ other_phone: "",
299
+ };
300
+ }
301
+ exports.CIP = {
302
+ encode(message, writer = new wire_1.BinaryWriter()) {
303
+ if (message.status !== "") {
304
+ writer.uint32(10).string(message.status);
305
+ }
306
+ for (const v of message.model_results) {
307
+ exports.ModelResults.encode(v, writer.uint32(18).fork()).join();
308
+ }
309
+ if (message.date_time !== "") {
310
+ writer.uint32(26).string(message.date_time);
311
+ }
312
+ if (message.first_name !== "") {
313
+ writer.uint32(34).string(message.first_name);
314
+ }
315
+ if (message.middle_name !== "") {
316
+ writer.uint32(42).string(message.middle_name);
317
+ }
318
+ if (message.last_name !== "") {
319
+ writer.uint32(50).string(message.last_name);
320
+ }
321
+ if (message.address_1 !== "") {
322
+ writer.uint32(58).string(message.address_1);
323
+ }
324
+ if (message.address_2 !== "") {
325
+ writer.uint32(66).string(message.address_2);
326
+ }
327
+ if (message.city !== "") {
328
+ writer.uint32(74).string(message.city);
329
+ }
330
+ if (message.state !== "") {
331
+ writer.uint32(82).string(message.state);
332
+ }
333
+ if (message.primary_phone !== "") {
334
+ writer.uint32(90).string(message.primary_phone);
335
+ }
336
+ if (message.other_phone !== "") {
337
+ writer.uint32(98).string(message.other_phone);
338
+ }
339
+ return writer;
340
+ },
341
+ decode(input, length) {
342
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
343
+ const end = length === undefined ? reader.len : reader.pos + length;
344
+ const message = createBaseCIP();
345
+ while (reader.pos < end) {
346
+ const tag = reader.uint32();
347
+ switch (tag >>> 3) {
348
+ case 1: {
349
+ if (tag !== 10) {
350
+ break;
351
+ }
352
+ message.status = reader.string();
353
+ continue;
354
+ }
355
+ case 2: {
356
+ if (tag !== 18) {
357
+ break;
358
+ }
359
+ message.model_results.push(exports.ModelResults.decode(reader, reader.uint32()));
360
+ continue;
361
+ }
362
+ case 3: {
363
+ if (tag !== 26) {
364
+ break;
365
+ }
366
+ message.date_time = reader.string();
367
+ continue;
368
+ }
369
+ case 4: {
370
+ if (tag !== 34) {
371
+ break;
372
+ }
373
+ message.first_name = reader.string();
374
+ continue;
375
+ }
376
+ case 5: {
377
+ if (tag !== 42) {
378
+ break;
379
+ }
380
+ message.middle_name = reader.string();
381
+ continue;
382
+ }
383
+ case 6: {
384
+ if (tag !== 50) {
385
+ break;
386
+ }
387
+ message.last_name = reader.string();
388
+ continue;
389
+ }
390
+ case 7: {
391
+ if (tag !== 58) {
392
+ break;
393
+ }
394
+ message.address_1 = reader.string();
395
+ continue;
396
+ }
397
+ case 8: {
398
+ if (tag !== 66) {
399
+ break;
400
+ }
401
+ message.address_2 = reader.string();
402
+ continue;
403
+ }
404
+ case 9: {
405
+ if (tag !== 74) {
406
+ break;
407
+ }
408
+ message.city = reader.string();
409
+ continue;
410
+ }
411
+ case 10: {
412
+ if (tag !== 82) {
413
+ break;
414
+ }
415
+ message.state = reader.string();
416
+ continue;
417
+ }
418
+ case 11: {
419
+ if (tag !== 90) {
420
+ break;
421
+ }
422
+ message.primary_phone = reader.string();
423
+ continue;
424
+ }
425
+ case 12: {
426
+ if (tag !== 98) {
427
+ break;
428
+ }
429
+ message.other_phone = reader.string();
430
+ continue;
431
+ }
432
+ }
433
+ if ((tag & 7) === 4 || tag === 0) {
434
+ break;
435
+ }
436
+ reader.skip(tag & 7);
437
+ }
438
+ return message;
439
+ },
440
+ create(base) {
441
+ return exports.CIP.fromPartial(base ?? {});
442
+ },
443
+ fromPartial(object) {
444
+ const message = createBaseCIP();
445
+ message.status = object.status ?? "";
446
+ message.model_results = object.model_results?.map((e) => exports.ModelResults.fromPartial(e)) || [];
447
+ message.date_time = object.date_time ?? "";
448
+ message.first_name = object.first_name ?? "";
449
+ message.middle_name = object.middle_name ?? "";
450
+ message.last_name = object.last_name ?? "";
451
+ message.address_1 = object.address_1 ?? "";
452
+ message.address_2 = object.address_2 ?? "";
453
+ message.city = object.city ?? "";
454
+ message.state = object.state ?? "";
455
+ message.primary_phone = object.primary_phone ?? "";
456
+ message.other_phone = object.other_phone ?? "";
457
+ return message;
458
+ },
459
+ };
460
+ function createBaseAddress() {
461
+ return { address_1: "", address_2: "", city: "", state: "", zip: "", country_code: "" };
462
+ }
463
+ exports.Address = {
464
+ encode(message, writer = new wire_1.BinaryWriter()) {
465
+ if (message.address_1 !== "") {
466
+ writer.uint32(10).string(message.address_1);
467
+ }
468
+ if (message.address_2 !== "") {
469
+ writer.uint32(18).string(message.address_2);
470
+ }
471
+ if (message.city !== "") {
472
+ writer.uint32(26).string(message.city);
473
+ }
474
+ if (message.state !== "") {
475
+ writer.uint32(34).string(message.state);
476
+ }
477
+ if (message.zip !== "") {
478
+ writer.uint32(42).string(message.zip);
479
+ }
480
+ if (message.country_code !== "") {
481
+ writer.uint32(50).string(message.country_code);
482
+ }
483
+ return writer;
484
+ },
485
+ decode(input, length) {
486
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
487
+ const end = length === undefined ? reader.len : reader.pos + length;
488
+ const message = createBaseAddress();
489
+ while (reader.pos < end) {
490
+ const tag = reader.uint32();
491
+ switch (tag >>> 3) {
492
+ case 1: {
493
+ if (tag !== 10) {
494
+ break;
495
+ }
496
+ message.address_1 = reader.string();
497
+ continue;
498
+ }
499
+ case 2: {
500
+ if (tag !== 18) {
501
+ break;
502
+ }
503
+ message.address_2 = reader.string();
504
+ continue;
505
+ }
506
+ case 3: {
507
+ if (tag !== 26) {
508
+ break;
509
+ }
510
+ message.city = reader.string();
511
+ continue;
512
+ }
513
+ case 4: {
514
+ if (tag !== 34) {
515
+ break;
516
+ }
517
+ message.state = reader.string();
518
+ continue;
519
+ }
520
+ case 5: {
521
+ if (tag !== 42) {
522
+ break;
523
+ }
524
+ message.zip = reader.string();
525
+ continue;
526
+ }
527
+ case 6: {
528
+ if (tag !== 50) {
529
+ break;
530
+ }
531
+ message.country_code = reader.string();
532
+ continue;
533
+ }
534
+ }
535
+ if ((tag & 7) === 4 || tag === 0) {
536
+ break;
537
+ }
538
+ reader.skip(tag & 7);
539
+ }
540
+ return message;
541
+ },
542
+ create(base) {
543
+ return exports.Address.fromPartial(base ?? {});
544
+ },
545
+ fromPartial(object) {
546
+ const message = createBaseAddress();
547
+ message.address_1 = object.address_1 ?? "";
548
+ message.address_2 = object.address_2 ?? "";
549
+ message.city = object.city ?? "";
550
+ message.state = object.state ?? "";
551
+ message.zip = object.zip ?? "";
552
+ message.country_code = object.country_code ?? "";
553
+ return message;
554
+ },
555
+ };
556
+ function createBaseCustomerProfile() {
557
+ return {
558
+ first_name: "",
559
+ middle_name: "",
560
+ last_name: "",
561
+ preferred_name: "",
562
+ preferred_name_only_on_card: "",
563
+ address_1: "",
564
+ address_2: "",
565
+ city: "",
566
+ state: "",
567
+ zip: "",
568
+ country_code: "",
569
+ mobile_phone: "",
570
+ email: "",
571
+ ship_address: undefined,
572
+ express_mail: "",
573
+ related_accounts: 0,
574
+ occupation: "",
575
+ income_source: "",
576
+ embossed_line_2: "",
577
+ };
578
+ }
579
+ exports.CustomerProfile = {
580
+ encode(message, writer = new wire_1.BinaryWriter()) {
581
+ if (message.first_name !== "") {
582
+ writer.uint32(10).string(message.first_name);
583
+ }
584
+ if (message.middle_name !== "") {
585
+ writer.uint32(18).string(message.middle_name);
586
+ }
587
+ if (message.last_name !== "") {
588
+ writer.uint32(26).string(message.last_name);
589
+ }
590
+ if (message.preferred_name !== "") {
591
+ writer.uint32(34).string(message.preferred_name);
592
+ }
593
+ if (message.preferred_name_only_on_card !== "") {
594
+ writer.uint32(42).string(message.preferred_name_only_on_card);
595
+ }
596
+ if (message.address_1 !== "") {
597
+ writer.uint32(50).string(message.address_1);
598
+ }
599
+ if (message.address_2 !== "") {
600
+ writer.uint32(58).string(message.address_2);
601
+ }
602
+ if (message.city !== "") {
603
+ writer.uint32(66).string(message.city);
604
+ }
605
+ if (message.state !== "") {
606
+ writer.uint32(74).string(message.state);
607
+ }
608
+ if (message.zip !== "") {
609
+ writer.uint32(82).string(message.zip);
610
+ }
611
+ if (message.country_code !== "") {
612
+ writer.uint32(90).string(message.country_code);
613
+ }
614
+ if (message.mobile_phone !== "") {
615
+ writer.uint32(98).string(message.mobile_phone);
616
+ }
617
+ if (message.email !== "") {
618
+ writer.uint32(106).string(message.email);
619
+ }
620
+ if (message.ship_address !== undefined) {
621
+ exports.Address.encode(message.ship_address, writer.uint32(114).fork()).join();
622
+ }
623
+ if (message.express_mail !== "") {
624
+ writer.uint32(122).string(message.express_mail);
625
+ }
626
+ if (message.related_accounts !== 0) {
627
+ writer.uint32(128).int32(message.related_accounts);
628
+ }
629
+ if (message.occupation !== "") {
630
+ writer.uint32(138).string(message.occupation);
631
+ }
632
+ if (message.income_source !== "") {
633
+ writer.uint32(146).string(message.income_source);
634
+ }
635
+ if (message.embossed_line_2 !== "") {
636
+ writer.uint32(154).string(message.embossed_line_2);
637
+ }
638
+ return writer;
639
+ },
640
+ decode(input, length) {
641
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
642
+ const end = length === undefined ? reader.len : reader.pos + length;
643
+ const message = createBaseCustomerProfile();
644
+ while (reader.pos < end) {
645
+ const tag = reader.uint32();
646
+ switch (tag >>> 3) {
647
+ case 1: {
648
+ if (tag !== 10) {
649
+ break;
650
+ }
651
+ message.first_name = reader.string();
652
+ continue;
653
+ }
654
+ case 2: {
655
+ if (tag !== 18) {
656
+ break;
657
+ }
658
+ message.middle_name = reader.string();
659
+ continue;
660
+ }
661
+ case 3: {
662
+ if (tag !== 26) {
663
+ break;
664
+ }
665
+ message.last_name = reader.string();
666
+ continue;
667
+ }
668
+ case 4: {
669
+ if (tag !== 34) {
670
+ break;
671
+ }
672
+ message.preferred_name = reader.string();
673
+ continue;
674
+ }
675
+ case 5: {
676
+ if (tag !== 42) {
677
+ break;
678
+ }
679
+ message.preferred_name_only_on_card = reader.string();
680
+ continue;
681
+ }
682
+ case 6: {
683
+ if (tag !== 50) {
684
+ break;
685
+ }
686
+ message.address_1 = reader.string();
687
+ continue;
688
+ }
689
+ case 7: {
690
+ if (tag !== 58) {
691
+ break;
692
+ }
693
+ message.address_2 = reader.string();
694
+ continue;
695
+ }
696
+ case 8: {
697
+ if (tag !== 66) {
698
+ break;
699
+ }
700
+ message.city = reader.string();
701
+ continue;
702
+ }
703
+ case 9: {
704
+ if (tag !== 74) {
705
+ break;
706
+ }
707
+ message.state = reader.string();
708
+ continue;
709
+ }
710
+ case 10: {
711
+ if (tag !== 82) {
712
+ break;
713
+ }
714
+ message.zip = reader.string();
715
+ continue;
716
+ }
717
+ case 11: {
718
+ if (tag !== 90) {
719
+ break;
720
+ }
721
+ message.country_code = reader.string();
722
+ continue;
723
+ }
724
+ case 12: {
725
+ if (tag !== 98) {
726
+ break;
727
+ }
728
+ message.mobile_phone = reader.string();
729
+ continue;
730
+ }
731
+ case 13: {
732
+ if (tag !== 106) {
733
+ break;
734
+ }
735
+ message.email = reader.string();
736
+ continue;
737
+ }
738
+ case 14: {
739
+ if (tag !== 114) {
740
+ break;
741
+ }
742
+ message.ship_address = exports.Address.decode(reader, reader.uint32());
743
+ continue;
744
+ }
745
+ case 15: {
746
+ if (tag !== 122) {
747
+ break;
748
+ }
749
+ message.express_mail = reader.string();
750
+ continue;
751
+ }
752
+ case 16: {
753
+ if (tag !== 128) {
754
+ break;
755
+ }
756
+ message.related_accounts = reader.int32();
757
+ continue;
758
+ }
759
+ case 17: {
760
+ if (tag !== 138) {
761
+ break;
762
+ }
763
+ message.occupation = reader.string();
764
+ continue;
765
+ }
766
+ case 18: {
767
+ if (tag !== 146) {
768
+ break;
769
+ }
770
+ message.income_source = reader.string();
771
+ continue;
772
+ }
773
+ case 19: {
774
+ if (tag !== 154) {
775
+ break;
776
+ }
777
+ message.embossed_line_2 = reader.string();
778
+ continue;
779
+ }
780
+ }
781
+ if ((tag & 7) === 4 || tag === 0) {
782
+ break;
783
+ }
784
+ reader.skip(tag & 7);
785
+ }
786
+ return message;
787
+ },
788
+ create(base) {
789
+ return exports.CustomerProfile.fromPartial(base ?? {});
790
+ },
791
+ fromPartial(object) {
792
+ const message = createBaseCustomerProfile();
793
+ message.first_name = object.first_name ?? "";
794
+ message.middle_name = object.middle_name ?? "";
795
+ message.last_name = object.last_name ?? "";
796
+ message.preferred_name = object.preferred_name ?? "";
797
+ message.preferred_name_only_on_card = object.preferred_name_only_on_card ?? "";
798
+ message.address_1 = object.address_1 ?? "";
799
+ message.address_2 = object.address_2 ?? "";
800
+ message.city = object.city ?? "";
801
+ message.state = object.state ?? "";
802
+ message.zip = object.zip ?? "";
803
+ message.country_code = object.country_code ?? "";
804
+ message.mobile_phone = object.mobile_phone ?? "";
805
+ message.email = object.email ?? "";
806
+ message.ship_address = (object.ship_address !== undefined && object.ship_address !== null)
807
+ ? exports.Address.fromPartial(object.ship_address)
808
+ : undefined;
809
+ message.express_mail = object.express_mail ?? "";
810
+ message.related_accounts = object.related_accounts ?? 0;
811
+ message.occupation = object.occupation ?? "";
812
+ message.income_source = object.income_source ?? "";
813
+ message.embossed_line_2 = object.embossed_line_2 ?? "";
814
+ return message;
815
+ },
816
+ };
817
+ function createBaseCard() {
818
+ return { card_id: "", card_status: "" };
819
+ }
820
+ exports.Card = {
821
+ encode(message, writer = new wire_1.BinaryWriter()) {
822
+ if (message.card_id !== "") {
823
+ writer.uint32(10).string(message.card_id);
824
+ }
825
+ if (message.card_status !== "") {
826
+ writer.uint32(18).string(message.card_status);
827
+ }
828
+ return writer;
829
+ },
830
+ decode(input, length) {
831
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
832
+ const end = length === undefined ? reader.len : reader.pos + length;
833
+ const message = createBaseCard();
834
+ while (reader.pos < end) {
835
+ const tag = reader.uint32();
836
+ switch (tag >>> 3) {
837
+ case 1: {
838
+ if (tag !== 10) {
839
+ break;
840
+ }
841
+ message.card_id = reader.string();
842
+ continue;
843
+ }
844
+ case 2: {
845
+ if (tag !== 18) {
846
+ break;
847
+ }
848
+ message.card_status = reader.string();
849
+ continue;
850
+ }
851
+ }
852
+ if ((tag & 7) === 4 || tag === 0) {
853
+ break;
854
+ }
855
+ reader.skip(tag & 7);
856
+ }
857
+ return message;
858
+ },
859
+ create(base) {
860
+ return exports.Card.fromPartial(base ?? {});
861
+ },
862
+ fromPartial(object) {
863
+ const message = createBaseCard();
864
+ message.card_id = object.card_id ?? "";
865
+ message.card_status = object.card_status ?? "";
866
+ return message;
867
+ },
868
+ };
869
+ function createBaseContract() {
870
+ return {
871
+ prn: "",
872
+ prod_id: "",
873
+ app_date: "",
874
+ status: "",
875
+ active_flag: "",
876
+ balance: 0,
877
+ contract_number: "",
878
+ cards: [],
879
+ };
880
+ }
881
+ exports.Contract = {
882
+ encode(message, writer = new wire_1.BinaryWriter()) {
883
+ if (message.prn !== "") {
884
+ writer.uint32(10).string(message.prn);
885
+ }
886
+ if (message.prod_id !== "") {
887
+ writer.uint32(18).string(message.prod_id);
888
+ }
889
+ if (message.app_date !== "") {
890
+ writer.uint32(26).string(message.app_date);
891
+ }
892
+ if (message.status !== "") {
893
+ writer.uint32(34).string(message.status);
894
+ }
895
+ if (message.active_flag !== "") {
896
+ writer.uint32(42).string(message.active_flag);
897
+ }
898
+ if (message.balance !== 0) {
899
+ writer.uint32(49).double(message.balance);
900
+ }
901
+ if (message.contract_number !== "") {
902
+ writer.uint32(58).string(message.contract_number);
903
+ }
904
+ for (const v of message.cards) {
905
+ exports.Card.encode(v, writer.uint32(66).fork()).join();
906
+ }
907
+ return writer;
908
+ },
909
+ decode(input, length) {
910
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
911
+ const end = length === undefined ? reader.len : reader.pos + length;
912
+ const message = createBaseContract();
913
+ while (reader.pos < end) {
914
+ const tag = reader.uint32();
915
+ switch (tag >>> 3) {
916
+ case 1: {
917
+ if (tag !== 10) {
918
+ break;
919
+ }
920
+ message.prn = reader.string();
921
+ continue;
922
+ }
923
+ case 2: {
924
+ if (tag !== 18) {
925
+ break;
926
+ }
927
+ message.prod_id = reader.string();
928
+ continue;
929
+ }
930
+ case 3: {
931
+ if (tag !== 26) {
932
+ break;
933
+ }
934
+ message.app_date = reader.string();
935
+ continue;
936
+ }
937
+ case 4: {
938
+ if (tag !== 34) {
939
+ break;
940
+ }
941
+ message.status = reader.string();
942
+ continue;
943
+ }
944
+ case 5: {
945
+ if (tag !== 42) {
946
+ break;
947
+ }
948
+ message.active_flag = reader.string();
949
+ continue;
950
+ }
951
+ case 6: {
952
+ if (tag !== 49) {
953
+ break;
954
+ }
955
+ message.balance = reader.double();
956
+ continue;
957
+ }
958
+ case 7: {
959
+ if (tag !== 58) {
960
+ break;
961
+ }
962
+ message.contract_number = reader.string();
963
+ continue;
964
+ }
965
+ case 8: {
966
+ if (tag !== 66) {
967
+ break;
968
+ }
969
+ message.cards.push(exports.Card.decode(reader, reader.uint32()));
970
+ continue;
971
+ }
972
+ }
973
+ if ((tag & 7) === 4 || tag === 0) {
974
+ break;
975
+ }
976
+ reader.skip(tag & 7);
977
+ }
978
+ return message;
979
+ },
980
+ create(base) {
981
+ return exports.Contract.fromPartial(base ?? {});
982
+ },
983
+ fromPartial(object) {
984
+ const message = createBaseContract();
985
+ message.prn = object.prn ?? "";
986
+ message.prod_id = object.prod_id ?? "";
987
+ message.app_date = object.app_date ?? "";
988
+ message.status = object.status ?? "";
989
+ message.active_flag = object.active_flag ?? "";
990
+ message.balance = object.balance ?? 0;
991
+ message.contract_number = object.contract_number ?? "";
992
+ message.cards = object.cards?.map((e) => exports.Card.fromPartial(e)) || [];
993
+ return message;
994
+ },
995
+ };
996
+ function createBaseRelatedData() {
997
+ return { prn: "", product_id: "", contract_number: "", status: "", active: "" };
998
+ }
999
+ exports.RelatedData = {
1000
+ encode(message, writer = new wire_1.BinaryWriter()) {
1001
+ if (message.prn !== "") {
1002
+ writer.uint32(10).string(message.prn);
1003
+ }
1004
+ if (message.product_id !== "") {
1005
+ writer.uint32(18).string(message.product_id);
1006
+ }
1007
+ if (message.contract_number !== "") {
1008
+ writer.uint32(26).string(message.contract_number);
1009
+ }
1010
+ if (message.status !== "") {
1011
+ writer.uint32(34).string(message.status);
1012
+ }
1013
+ if (message.active !== "") {
1014
+ writer.uint32(42).string(message.active);
1015
+ }
1016
+ return writer;
1017
+ },
1018
+ decode(input, length) {
1019
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1020
+ const end = length === undefined ? reader.len : reader.pos + length;
1021
+ const message = createBaseRelatedData();
1022
+ while (reader.pos < end) {
1023
+ const tag = reader.uint32();
1024
+ switch (tag >>> 3) {
1025
+ case 1: {
1026
+ if (tag !== 10) {
1027
+ break;
1028
+ }
1029
+ message.prn = reader.string();
1030
+ continue;
1031
+ }
1032
+ case 2: {
1033
+ if (tag !== 18) {
1034
+ break;
1035
+ }
1036
+ message.product_id = reader.string();
1037
+ continue;
1038
+ }
1039
+ case 3: {
1040
+ if (tag !== 26) {
1041
+ break;
1042
+ }
1043
+ message.contract_number = reader.string();
1044
+ continue;
1045
+ }
1046
+ case 4: {
1047
+ if (tag !== 34) {
1048
+ break;
1049
+ }
1050
+ message.status = reader.string();
1051
+ continue;
1052
+ }
1053
+ case 5: {
1054
+ if (tag !== 42) {
1055
+ break;
1056
+ }
1057
+ message.active = reader.string();
1058
+ continue;
1059
+ }
1060
+ }
1061
+ if ((tag & 7) === 4 || tag === 0) {
1062
+ break;
1063
+ }
1064
+ reader.skip(tag & 7);
1065
+ }
1066
+ return message;
1067
+ },
1068
+ create(base) {
1069
+ return exports.RelatedData.fromPartial(base ?? {});
1070
+ },
1071
+ fromPartial(object) {
1072
+ const message = createBaseRelatedData();
1073
+ message.prn = object.prn ?? "";
1074
+ message.product_id = object.product_id ?? "";
1075
+ message.contract_number = object.contract_number ?? "";
1076
+ message.status = object.status ?? "";
1077
+ message.active = object.active ?? "";
1078
+ return message;
1079
+ },
1080
+ };
1081
+ function createBaseContractVerify() {
1082
+ return {
1083
+ max_load_amount: "",
1084
+ balance: 0,
1085
+ external_account_id: "",
1086
+ pmt_ref_number: "",
1087
+ account_status: "",
1088
+ contract_number: "",
1089
+ product_id: "",
1090
+ };
1091
+ }
1092
+ exports.ContractVerify = {
1093
+ encode(message, writer = new wire_1.BinaryWriter()) {
1094
+ if (message.max_load_amount !== "") {
1095
+ writer.uint32(10).string(message.max_load_amount);
1096
+ }
1097
+ if (message.balance !== 0) {
1098
+ writer.uint32(17).double(message.balance);
1099
+ }
1100
+ if (message.external_account_id !== "") {
1101
+ writer.uint32(26).string(message.external_account_id);
1102
+ }
1103
+ if (message.pmt_ref_number !== "") {
1104
+ writer.uint32(34).string(message.pmt_ref_number);
1105
+ }
1106
+ if (message.account_status !== "") {
1107
+ writer.uint32(42).string(message.account_status);
1108
+ }
1109
+ if (message.contract_number !== "") {
1110
+ writer.uint32(50).string(message.contract_number);
1111
+ }
1112
+ if (message.product_id !== "") {
1113
+ writer.uint32(58).string(message.product_id);
1114
+ }
1115
+ return writer;
1116
+ },
1117
+ decode(input, length) {
1118
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1119
+ const end = length === undefined ? reader.len : reader.pos + length;
1120
+ const message = createBaseContractVerify();
1121
+ while (reader.pos < end) {
1122
+ const tag = reader.uint32();
1123
+ switch (tag >>> 3) {
1124
+ case 1: {
1125
+ if (tag !== 10) {
1126
+ break;
1127
+ }
1128
+ message.max_load_amount = reader.string();
1129
+ continue;
1130
+ }
1131
+ case 2: {
1132
+ if (tag !== 17) {
1133
+ break;
1134
+ }
1135
+ message.balance = reader.double();
1136
+ continue;
1137
+ }
1138
+ case 3: {
1139
+ if (tag !== 26) {
1140
+ break;
1141
+ }
1142
+ message.external_account_id = reader.string();
1143
+ continue;
1144
+ }
1145
+ case 4: {
1146
+ if (tag !== 34) {
1147
+ break;
1148
+ }
1149
+ message.pmt_ref_number = reader.string();
1150
+ continue;
1151
+ }
1152
+ case 5: {
1153
+ if (tag !== 42) {
1154
+ break;
1155
+ }
1156
+ message.account_status = reader.string();
1157
+ continue;
1158
+ }
1159
+ case 6: {
1160
+ if (tag !== 50) {
1161
+ break;
1162
+ }
1163
+ message.contract_number = reader.string();
1164
+ continue;
1165
+ }
1166
+ case 7: {
1167
+ if (tag !== 58) {
1168
+ break;
1169
+ }
1170
+ message.product_id = reader.string();
1171
+ continue;
1172
+ }
1173
+ }
1174
+ if ((tag & 7) === 4 || tag === 0) {
1175
+ break;
1176
+ }
1177
+ reader.skip(tag & 7);
1178
+ }
1179
+ return message;
1180
+ },
1181
+ create(base) {
1182
+ return exports.ContractVerify.fromPartial(base ?? {});
1183
+ },
1184
+ fromPartial(object) {
1185
+ const message = createBaseContractVerify();
1186
+ message.max_load_amount = object.max_load_amount ?? "";
1187
+ message.balance = object.balance ?? 0;
1188
+ message.external_account_id = object.external_account_id ?? "";
1189
+ message.pmt_ref_number = object.pmt_ref_number ?? "";
1190
+ message.account_status = object.account_status ?? "";
1191
+ message.contract_number = object.contract_number ?? "";
1192
+ message.product_id = object.product_id ?? "";
1193
+ return message;
1194
+ },
1195
+ };
1196
+ function createBaseContractSearch() {
1197
+ return {
1198
+ pmt_ref_number: "",
1199
+ first_name: "",
1200
+ middle_name: "",
1201
+ last_name: "",
1202
+ email: "",
1203
+ status: "",
1204
+ active: "",
1205
+ contract_number: "",
1206
+ product_id: "",
1207
+ group_id: "",
1208
+ application_date: "",
1209
+ };
1210
+ }
1211
+ exports.ContractSearch = {
1212
+ encode(message, writer = new wire_1.BinaryWriter()) {
1213
+ if (message.pmt_ref_number !== "") {
1214
+ writer.uint32(10).string(message.pmt_ref_number);
1215
+ }
1216
+ if (message.first_name !== "") {
1217
+ writer.uint32(18).string(message.first_name);
1218
+ }
1219
+ if (message.middle_name !== "") {
1220
+ writer.uint32(26).string(message.middle_name);
1221
+ }
1222
+ if (message.last_name !== "") {
1223
+ writer.uint32(34).string(message.last_name);
1224
+ }
1225
+ if (message.email !== "") {
1226
+ writer.uint32(42).string(message.email);
1227
+ }
1228
+ if (message.status !== "") {
1229
+ writer.uint32(50).string(message.status);
1230
+ }
1231
+ if (message.active !== "") {
1232
+ writer.uint32(58).string(message.active);
1233
+ }
1234
+ if (message.contract_number !== "") {
1235
+ writer.uint32(66).string(message.contract_number);
1236
+ }
1237
+ if (message.product_id !== "") {
1238
+ writer.uint32(74).string(message.product_id);
1239
+ }
1240
+ if (message.group_id !== "") {
1241
+ writer.uint32(82).string(message.group_id);
1242
+ }
1243
+ if (message.application_date !== "") {
1244
+ writer.uint32(90).string(message.application_date);
1245
+ }
1246
+ return writer;
1247
+ },
1248
+ decode(input, length) {
1249
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1250
+ const end = length === undefined ? reader.len : reader.pos + length;
1251
+ const message = createBaseContractSearch();
1252
+ while (reader.pos < end) {
1253
+ const tag = reader.uint32();
1254
+ switch (tag >>> 3) {
1255
+ case 1: {
1256
+ if (tag !== 10) {
1257
+ break;
1258
+ }
1259
+ message.pmt_ref_number = reader.string();
1260
+ continue;
1261
+ }
1262
+ case 2: {
1263
+ if (tag !== 18) {
1264
+ break;
1265
+ }
1266
+ message.first_name = reader.string();
1267
+ continue;
1268
+ }
1269
+ case 3: {
1270
+ if (tag !== 26) {
1271
+ break;
1272
+ }
1273
+ message.middle_name = reader.string();
1274
+ continue;
1275
+ }
1276
+ case 4: {
1277
+ if (tag !== 34) {
1278
+ break;
1279
+ }
1280
+ message.last_name = reader.string();
1281
+ continue;
1282
+ }
1283
+ case 5: {
1284
+ if (tag !== 42) {
1285
+ break;
1286
+ }
1287
+ message.email = reader.string();
1288
+ continue;
1289
+ }
1290
+ case 6: {
1291
+ if (tag !== 50) {
1292
+ break;
1293
+ }
1294
+ message.status = reader.string();
1295
+ continue;
1296
+ }
1297
+ case 7: {
1298
+ if (tag !== 58) {
1299
+ break;
1300
+ }
1301
+ message.active = reader.string();
1302
+ continue;
1303
+ }
1304
+ case 8: {
1305
+ if (tag !== 66) {
1306
+ break;
1307
+ }
1308
+ message.contract_number = reader.string();
1309
+ continue;
1310
+ }
1311
+ case 9: {
1312
+ if (tag !== 74) {
1313
+ break;
1314
+ }
1315
+ message.product_id = reader.string();
1316
+ continue;
1317
+ }
1318
+ case 10: {
1319
+ if (tag !== 82) {
1320
+ break;
1321
+ }
1322
+ message.group_id = reader.string();
1323
+ continue;
1324
+ }
1325
+ case 11: {
1326
+ if (tag !== 90) {
1327
+ break;
1328
+ }
1329
+ message.application_date = reader.string();
1330
+ continue;
1331
+ }
1332
+ }
1333
+ if ((tag & 7) === 4 || tag === 0) {
1334
+ break;
1335
+ }
1336
+ reader.skip(tag & 7);
1337
+ }
1338
+ return message;
1339
+ },
1340
+ create(base) {
1341
+ return exports.ContractSearch.fromPartial(base ?? {});
1342
+ },
1343
+ fromPartial(object) {
1344
+ const message = createBaseContractSearch();
1345
+ message.pmt_ref_number = object.pmt_ref_number ?? "";
1346
+ message.first_name = object.first_name ?? "";
1347
+ message.middle_name = object.middle_name ?? "";
1348
+ message.last_name = object.last_name ?? "";
1349
+ message.email = object.email ?? "";
1350
+ message.status = object.status ?? "";
1351
+ message.active = object.active ?? "";
1352
+ message.contract_number = object.contract_number ?? "";
1353
+ message.product_id = object.product_id ?? "";
1354
+ message.group_id = object.group_id ?? "";
1355
+ message.application_date = object.application_date ?? "";
1356
+ return message;
1357
+ },
1358
+ };
1359
+ function createBaseContractOverview() {
1360
+ return {
1361
+ pmt_ref_no: "",
1362
+ status: "",
1363
+ first_fund_date: "",
1364
+ application_date: "",
1365
+ balance: 0,
1366
+ currency_code: "",
1367
+ start_date: "",
1368
+ end_date: "",
1369
+ transaction_count: 0,
1370
+ authorization_count: 0,
1371
+ kyc_ref_no: "",
1372
+ curp: "",
1373
+ political_affiliation: "",
1374
+ place_of_birth: "",
1375
+ nationality: "",
1376
+ };
1377
+ }
1378
+ exports.ContractOverview = {
1379
+ encode(message, writer = new wire_1.BinaryWriter()) {
1380
+ if (message.pmt_ref_no !== "") {
1381
+ writer.uint32(10).string(message.pmt_ref_no);
1382
+ }
1383
+ if (message.status !== "") {
1384
+ writer.uint32(18).string(message.status);
1385
+ }
1386
+ if (message.first_fund_date !== "") {
1387
+ writer.uint32(26).string(message.first_fund_date);
1388
+ }
1389
+ if (message.application_date !== "") {
1390
+ writer.uint32(34).string(message.application_date);
1391
+ }
1392
+ if (message.balance !== 0) {
1393
+ writer.uint32(41).double(message.balance);
1394
+ }
1395
+ if (message.currency_code !== "") {
1396
+ writer.uint32(50).string(message.currency_code);
1397
+ }
1398
+ if (message.start_date !== "") {
1399
+ writer.uint32(58).string(message.start_date);
1400
+ }
1401
+ if (message.end_date !== "") {
1402
+ writer.uint32(66).string(message.end_date);
1403
+ }
1404
+ if (message.transaction_count !== 0) {
1405
+ writer.uint32(72).int32(message.transaction_count);
1406
+ }
1407
+ if (message.authorization_count !== 0) {
1408
+ writer.uint32(80).int32(message.authorization_count);
1409
+ }
1410
+ if (message.kyc_ref_no !== "") {
1411
+ writer.uint32(90).string(message.kyc_ref_no);
1412
+ }
1413
+ if (message.curp !== "") {
1414
+ writer.uint32(98).string(message.curp);
1415
+ }
1416
+ if (message.political_affiliation !== "") {
1417
+ writer.uint32(106).string(message.political_affiliation);
1418
+ }
1419
+ if (message.place_of_birth !== "") {
1420
+ writer.uint32(114).string(message.place_of_birth);
1421
+ }
1422
+ if (message.nationality !== "") {
1423
+ writer.uint32(122).string(message.nationality);
1424
+ }
1425
+ return writer;
1426
+ },
1427
+ decode(input, length) {
1428
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1429
+ const end = length === undefined ? reader.len : reader.pos + length;
1430
+ const message = createBaseContractOverview();
1431
+ while (reader.pos < end) {
1432
+ const tag = reader.uint32();
1433
+ switch (tag >>> 3) {
1434
+ case 1: {
1435
+ if (tag !== 10) {
1436
+ break;
1437
+ }
1438
+ message.pmt_ref_no = reader.string();
1439
+ continue;
1440
+ }
1441
+ case 2: {
1442
+ if (tag !== 18) {
1443
+ break;
1444
+ }
1445
+ message.status = reader.string();
1446
+ continue;
1447
+ }
1448
+ case 3: {
1449
+ if (tag !== 26) {
1450
+ break;
1451
+ }
1452
+ message.first_fund_date = reader.string();
1453
+ continue;
1454
+ }
1455
+ case 4: {
1456
+ if (tag !== 34) {
1457
+ break;
1458
+ }
1459
+ message.application_date = reader.string();
1460
+ continue;
1461
+ }
1462
+ case 5: {
1463
+ if (tag !== 41) {
1464
+ break;
1465
+ }
1466
+ message.balance = reader.double();
1467
+ continue;
1468
+ }
1469
+ case 6: {
1470
+ if (tag !== 50) {
1471
+ break;
1472
+ }
1473
+ message.currency_code = reader.string();
1474
+ continue;
1475
+ }
1476
+ case 7: {
1477
+ if (tag !== 58) {
1478
+ break;
1479
+ }
1480
+ message.start_date = reader.string();
1481
+ continue;
1482
+ }
1483
+ case 8: {
1484
+ if (tag !== 66) {
1485
+ break;
1486
+ }
1487
+ message.end_date = reader.string();
1488
+ continue;
1489
+ }
1490
+ case 9: {
1491
+ if (tag !== 72) {
1492
+ break;
1493
+ }
1494
+ message.transaction_count = reader.int32();
1495
+ continue;
1496
+ }
1497
+ case 10: {
1498
+ if (tag !== 80) {
1499
+ break;
1500
+ }
1501
+ message.authorization_count = reader.int32();
1502
+ continue;
1503
+ }
1504
+ case 11: {
1505
+ if (tag !== 90) {
1506
+ break;
1507
+ }
1508
+ message.kyc_ref_no = reader.string();
1509
+ continue;
1510
+ }
1511
+ case 12: {
1512
+ if (tag !== 98) {
1513
+ break;
1514
+ }
1515
+ message.curp = reader.string();
1516
+ continue;
1517
+ }
1518
+ case 13: {
1519
+ if (tag !== 106) {
1520
+ break;
1521
+ }
1522
+ message.political_affiliation = reader.string();
1523
+ continue;
1524
+ }
1525
+ case 14: {
1526
+ if (tag !== 114) {
1527
+ break;
1528
+ }
1529
+ message.place_of_birth = reader.string();
1530
+ continue;
1531
+ }
1532
+ case 15: {
1533
+ if (tag !== 122) {
1534
+ break;
1535
+ }
1536
+ message.nationality = reader.string();
1537
+ continue;
1538
+ }
1539
+ }
1540
+ if ((tag & 7) === 4 || tag === 0) {
1541
+ break;
1542
+ }
1543
+ reader.skip(tag & 7);
1544
+ }
1545
+ return message;
1546
+ },
1547
+ create(base) {
1548
+ return exports.ContractOverview.fromPartial(base ?? {});
1549
+ },
1550
+ fromPartial(object) {
1551
+ const message = createBaseContractOverview();
1552
+ message.pmt_ref_no = object.pmt_ref_no ?? "";
1553
+ message.status = object.status ?? "";
1554
+ message.first_fund_date = object.first_fund_date ?? "";
1555
+ message.application_date = object.application_date ?? "";
1556
+ message.balance = object.balance ?? 0;
1557
+ message.currency_code = object.currency_code ?? "";
1558
+ message.start_date = object.start_date ?? "";
1559
+ message.end_date = object.end_date ?? "";
1560
+ message.transaction_count = object.transaction_count ?? 0;
1561
+ message.authorization_count = object.authorization_count ?? 0;
1562
+ message.kyc_ref_no = object.kyc_ref_no ?? "";
1563
+ message.curp = object.curp ?? "";
1564
+ message.political_affiliation = object.political_affiliation ?? "";
1565
+ message.place_of_birth = object.place_of_birth ?? "";
1566
+ message.nationality = object.nationality ?? "";
1567
+ return message;
1568
+ },
1569
+ };
1570
+ function createBaseProfile() {
1571
+ return {
1572
+ id: "",
1573
+ id2: undefined,
1574
+ id3: undefined,
1575
+ id_type: 0,
1576
+ id2_type: undefined,
1577
+ id3_type: undefined,
1578
+ first_name: "",
1579
+ middle_name: undefined,
1580
+ last_name: "",
1581
+ address_1: undefined,
1582
+ address_2: undefined,
1583
+ business_name: undefined,
1584
+ city: undefined,
1585
+ state: "",
1586
+ postal_code: "",
1587
+ country_code: undefined,
1588
+ home_phone: undefined,
1589
+ mobile_phone: undefined,
1590
+ mobile_phone_country_code: undefined,
1591
+ carrier_id: undefined,
1592
+ email: undefined,
1593
+ dob: undefined,
1594
+ ship_to_address: undefined,
1595
+ express_mail: undefined,
1596
+ occupation: undefined,
1597
+ income_source: undefined,
1598
+ monthly_income: undefined,
1599
+ preferred_lang: undefined,
1600
+ preferred_name: "",
1601
+ };
1602
+ }
1603
+ exports.Profile = {
1604
+ encode(message, writer = new wire_1.BinaryWriter()) {
1605
+ if (message.id !== "") {
1606
+ writer.uint32(10).string(message.id);
1607
+ }
1608
+ if (message.id2 !== undefined) {
1609
+ writer.uint32(18).string(message.id2);
1610
+ }
1611
+ if (message.id3 !== undefined) {
1612
+ writer.uint32(26).string(message.id3);
1613
+ }
1614
+ if (message.id_type !== 0) {
1615
+ writer.uint32(32).int32(message.id_type);
1616
+ }
1617
+ if (message.id2_type !== undefined) {
1618
+ writer.uint32(40).int32(message.id2_type);
1619
+ }
1620
+ if (message.id3_type !== undefined) {
1621
+ writer.uint32(48).int32(message.id3_type);
1622
+ }
1623
+ if (message.first_name !== "") {
1624
+ writer.uint32(58).string(message.first_name);
1625
+ }
1626
+ if (message.middle_name !== undefined) {
1627
+ writer.uint32(66).string(message.middle_name);
1628
+ }
1629
+ if (message.last_name !== "") {
1630
+ writer.uint32(74).string(message.last_name);
1631
+ }
1632
+ if (message.address_1 !== undefined) {
1633
+ writer.uint32(82).string(message.address_1);
1634
+ }
1635
+ if (message.address_2 !== undefined) {
1636
+ writer.uint32(90).string(message.address_2);
1637
+ }
1638
+ if (message.business_name !== undefined) {
1639
+ writer.uint32(98).string(message.business_name);
1640
+ }
1641
+ if (message.city !== undefined) {
1642
+ writer.uint32(106).string(message.city);
1643
+ }
1644
+ if (message.state !== "") {
1645
+ writer.uint32(114).string(message.state);
1646
+ }
1647
+ if (message.postal_code !== "") {
1648
+ writer.uint32(122).string(message.postal_code);
1649
+ }
1650
+ if (message.country_code !== undefined) {
1651
+ writer.uint32(130).string(message.country_code);
1652
+ }
1653
+ if (message.home_phone !== undefined) {
1654
+ writer.uint32(138).string(message.home_phone);
1655
+ }
1656
+ if (message.mobile_phone !== undefined) {
1657
+ writer.uint32(146).string(message.mobile_phone);
1658
+ }
1659
+ if (message.mobile_phone_country_code !== undefined) {
1660
+ writer.uint32(154).string(message.mobile_phone_country_code);
1661
+ }
1662
+ if (message.carrier_id !== undefined) {
1663
+ writer.uint32(160).int32(message.carrier_id);
1664
+ }
1665
+ if (message.email !== undefined) {
1666
+ writer.uint32(170).string(message.email);
1667
+ }
1668
+ if (message.dob !== undefined) {
1669
+ writer.uint32(178).string(message.dob);
1670
+ }
1671
+ if (message.ship_to_address !== undefined) {
1672
+ exports.Address.encode(message.ship_to_address, writer.uint32(186).fork()).join();
1673
+ }
1674
+ if (message.express_mail !== undefined) {
1675
+ writer.uint32(194).string(message.express_mail);
1676
+ }
1677
+ if (message.occupation !== undefined) {
1678
+ writer.uint32(202).string(message.occupation);
1679
+ }
1680
+ if (message.income_source !== undefined) {
1681
+ writer.uint32(210).string(message.income_source);
1682
+ }
1683
+ if (message.monthly_income !== undefined) {
1684
+ writer.uint32(218).string(message.monthly_income);
1685
+ }
1686
+ if (message.preferred_lang !== undefined) {
1687
+ writer.uint32(226).string(message.preferred_lang);
1688
+ }
1689
+ if (message.preferred_name !== "") {
1690
+ writer.uint32(234).string(message.preferred_name);
1691
+ }
1692
+ return writer;
1693
+ },
1694
+ decode(input, length) {
1695
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1696
+ const end = length === undefined ? reader.len : reader.pos + length;
1697
+ const message = createBaseProfile();
1698
+ while (reader.pos < end) {
1699
+ const tag = reader.uint32();
1700
+ switch (tag >>> 3) {
1701
+ case 1: {
1702
+ if (tag !== 10) {
1703
+ break;
1704
+ }
1705
+ message.id = reader.string();
1706
+ continue;
1707
+ }
1708
+ case 2: {
1709
+ if (tag !== 18) {
1710
+ break;
1711
+ }
1712
+ message.id2 = reader.string();
1713
+ continue;
1714
+ }
1715
+ case 3: {
1716
+ if (tag !== 26) {
1717
+ break;
1718
+ }
1719
+ message.id3 = reader.string();
1720
+ continue;
1721
+ }
1722
+ case 4: {
1723
+ if (tag !== 32) {
1724
+ break;
1725
+ }
1726
+ message.id_type = reader.int32();
1727
+ continue;
1728
+ }
1729
+ case 5: {
1730
+ if (tag !== 40) {
1731
+ break;
1732
+ }
1733
+ message.id2_type = reader.int32();
1734
+ continue;
1735
+ }
1736
+ case 6: {
1737
+ if (tag !== 48) {
1738
+ break;
1739
+ }
1740
+ message.id3_type = reader.int32();
1741
+ continue;
1742
+ }
1743
+ case 7: {
1744
+ if (tag !== 58) {
1745
+ break;
1746
+ }
1747
+ message.first_name = reader.string();
1748
+ continue;
1749
+ }
1750
+ case 8: {
1751
+ if (tag !== 66) {
1752
+ break;
1753
+ }
1754
+ message.middle_name = reader.string();
1755
+ continue;
1756
+ }
1757
+ case 9: {
1758
+ if (tag !== 74) {
1759
+ break;
1760
+ }
1761
+ message.last_name = reader.string();
1762
+ continue;
1763
+ }
1764
+ case 10: {
1765
+ if (tag !== 82) {
1766
+ break;
1767
+ }
1768
+ message.address_1 = reader.string();
1769
+ continue;
1770
+ }
1771
+ case 11: {
1772
+ if (tag !== 90) {
1773
+ break;
1774
+ }
1775
+ message.address_2 = reader.string();
1776
+ continue;
1777
+ }
1778
+ case 12: {
1779
+ if (tag !== 98) {
1780
+ break;
1781
+ }
1782
+ message.business_name = reader.string();
1783
+ continue;
1784
+ }
1785
+ case 13: {
1786
+ if (tag !== 106) {
1787
+ break;
1788
+ }
1789
+ message.city = reader.string();
1790
+ continue;
1791
+ }
1792
+ case 14: {
1793
+ if (tag !== 114) {
1794
+ break;
1795
+ }
1796
+ message.state = reader.string();
1797
+ continue;
1798
+ }
1799
+ case 15: {
1800
+ if (tag !== 122) {
1801
+ break;
1802
+ }
1803
+ message.postal_code = reader.string();
1804
+ continue;
1805
+ }
1806
+ case 16: {
1807
+ if (tag !== 130) {
1808
+ break;
1809
+ }
1810
+ message.country_code = reader.string();
1811
+ continue;
1812
+ }
1813
+ case 17: {
1814
+ if (tag !== 138) {
1815
+ break;
1816
+ }
1817
+ message.home_phone = reader.string();
1818
+ continue;
1819
+ }
1820
+ case 18: {
1821
+ if (tag !== 146) {
1822
+ break;
1823
+ }
1824
+ message.mobile_phone = reader.string();
1825
+ continue;
1826
+ }
1827
+ case 19: {
1828
+ if (tag !== 154) {
1829
+ break;
1830
+ }
1831
+ message.mobile_phone_country_code = reader.string();
1832
+ continue;
1833
+ }
1834
+ case 20: {
1835
+ if (tag !== 160) {
1836
+ break;
1837
+ }
1838
+ message.carrier_id = reader.int32();
1839
+ continue;
1840
+ }
1841
+ case 21: {
1842
+ if (tag !== 170) {
1843
+ break;
1844
+ }
1845
+ message.email = reader.string();
1846
+ continue;
1847
+ }
1848
+ case 22: {
1849
+ if (tag !== 178) {
1850
+ break;
1851
+ }
1852
+ message.dob = reader.string();
1853
+ continue;
1854
+ }
1855
+ case 23: {
1856
+ if (tag !== 186) {
1857
+ break;
1858
+ }
1859
+ message.ship_to_address = exports.Address.decode(reader, reader.uint32());
1860
+ continue;
1861
+ }
1862
+ case 24: {
1863
+ if (tag !== 194) {
1864
+ break;
1865
+ }
1866
+ message.express_mail = reader.string();
1867
+ continue;
1868
+ }
1869
+ case 25: {
1870
+ if (tag !== 202) {
1871
+ break;
1872
+ }
1873
+ message.occupation = reader.string();
1874
+ continue;
1875
+ }
1876
+ case 26: {
1877
+ if (tag !== 210) {
1878
+ break;
1879
+ }
1880
+ message.income_source = reader.string();
1881
+ continue;
1882
+ }
1883
+ case 27: {
1884
+ if (tag !== 218) {
1885
+ break;
1886
+ }
1887
+ message.monthly_income = reader.string();
1888
+ continue;
1889
+ }
1890
+ case 28: {
1891
+ if (tag !== 226) {
1892
+ break;
1893
+ }
1894
+ message.preferred_lang = reader.string();
1895
+ continue;
1896
+ }
1897
+ case 29: {
1898
+ if (tag !== 234) {
1899
+ break;
1900
+ }
1901
+ message.preferred_name = reader.string();
1902
+ continue;
1903
+ }
1904
+ }
1905
+ if ((tag & 7) === 4 || tag === 0) {
1906
+ break;
1907
+ }
1908
+ reader.skip(tag & 7);
1909
+ }
1910
+ return message;
1911
+ },
1912
+ create(base) {
1913
+ return exports.Profile.fromPartial(base ?? {});
1914
+ },
1915
+ fromPartial(object) {
1916
+ const message = createBaseProfile();
1917
+ message.id = object.id ?? "";
1918
+ message.id2 = object.id2 ?? undefined;
1919
+ message.id3 = object.id3 ?? undefined;
1920
+ message.id_type = object.id_type ?? 0;
1921
+ message.id2_type = object.id2_type ?? undefined;
1922
+ message.id3_type = object.id3_type ?? undefined;
1923
+ message.first_name = object.first_name ?? "";
1924
+ message.middle_name = object.middle_name ?? undefined;
1925
+ message.last_name = object.last_name ?? "";
1926
+ message.address_1 = object.address_1 ?? undefined;
1927
+ message.address_2 = object.address_2 ?? undefined;
1928
+ message.business_name = object.business_name ?? undefined;
1929
+ message.city = object.city ?? undefined;
1930
+ message.state = object.state ?? "";
1931
+ message.postal_code = object.postal_code ?? "";
1932
+ message.country_code = object.country_code ?? undefined;
1933
+ message.home_phone = object.home_phone ?? undefined;
1934
+ message.mobile_phone = object.mobile_phone ?? undefined;
1935
+ message.mobile_phone_country_code = object.mobile_phone_country_code ?? undefined;
1936
+ message.carrier_id = object.carrier_id ?? undefined;
1937
+ message.email = object.email ?? undefined;
1938
+ message.dob = object.dob ?? undefined;
1939
+ message.ship_to_address = (object.ship_to_address !== undefined && object.ship_to_address !== null)
1940
+ ? exports.Address.fromPartial(object.ship_to_address)
1941
+ : undefined;
1942
+ message.express_mail = object.express_mail ?? undefined;
1943
+ message.occupation = object.occupation ?? undefined;
1944
+ message.income_source = object.income_source ?? undefined;
1945
+ message.monthly_income = object.monthly_income ?? undefined;
1946
+ message.preferred_lang = object.preferred_lang ?? undefined;
1947
+ message.preferred_name = object.preferred_name ?? "";
1948
+ return message;
1949
+ },
1950
+ };
1951
+ function createBaseTransaction() {
1952
+ return {
1953
+ pmt_ref_no: "",
1954
+ act_id: undefined,
1955
+ act_type: undefined,
1956
+ mcc: "",
1957
+ post_ts: undefined,
1958
+ amt: "",
1959
+ details: "",
1960
+ description: undefined,
1961
+ source_id: "",
1962
+ bal_id: "",
1963
+ prod_id: "",
1964
+ auth_ts: "",
1965
+ trans_code: "",
1966
+ ach_transaction_id: undefined,
1967
+ external_trans_id: undefined,
1968
+ original_auth_id: undefined,
1969
+ network_id: undefined,
1970
+ local_amt: undefined,
1971
+ local_curr_code: undefined,
1972
+ settle_amt: undefined,
1973
+ settle_curr_code: undefined,
1974
+ billing_amt: undefined,
1975
+ billing_curr_code: undefined,
1976
+ credit_ind: undefined,
1977
+ iac_tax: undefined,
1978
+ iva_tax: undefined,
1979
+ funding_account_prn: undefined,
1980
+ spending_account_prn: undefined,
1981
+ };
1982
+ }
1983
+ exports.Transaction = {
1984
+ encode(message, writer = new wire_1.BinaryWriter()) {
1985
+ if (message.pmt_ref_no !== "") {
1986
+ writer.uint32(10).string(message.pmt_ref_no);
1987
+ }
1988
+ if (message.act_id !== undefined) {
1989
+ writer.uint32(18).string(message.act_id);
1990
+ }
1991
+ if (message.act_type !== undefined) {
1992
+ writer.uint32(26).string(message.act_type);
1993
+ }
1994
+ if (message.mcc !== "") {
1995
+ writer.uint32(34).string(message.mcc);
1996
+ }
1997
+ if (message.post_ts !== undefined) {
1998
+ writer.uint32(42).string(message.post_ts);
1999
+ }
2000
+ if (message.amt !== "") {
2001
+ writer.uint32(50).string(message.amt);
2002
+ }
2003
+ if (message.details !== "") {
2004
+ writer.uint32(58).string(message.details);
2005
+ }
2006
+ if (message.description !== undefined) {
2007
+ writer.uint32(66).string(message.description);
2008
+ }
2009
+ if (message.source_id !== "") {
2010
+ writer.uint32(74).string(message.source_id);
2011
+ }
2012
+ if (message.bal_id !== "") {
2013
+ writer.uint32(82).string(message.bal_id);
2014
+ }
2015
+ if (message.prod_id !== "") {
2016
+ writer.uint32(90).string(message.prod_id);
2017
+ }
2018
+ if (message.auth_ts !== "") {
2019
+ writer.uint32(98).string(message.auth_ts);
2020
+ }
2021
+ if (message.trans_code !== "") {
2022
+ writer.uint32(106).string(message.trans_code);
2023
+ }
2024
+ if (message.ach_transaction_id !== undefined) {
2025
+ writer.uint32(114).string(message.ach_transaction_id);
2026
+ }
2027
+ if (message.external_trans_id !== undefined) {
2028
+ writer.uint32(122).string(message.external_trans_id);
2029
+ }
2030
+ if (message.original_auth_id !== undefined) {
2031
+ writer.uint32(130).string(message.original_auth_id);
2032
+ }
2033
+ if (message.network_id !== undefined) {
2034
+ writer.uint32(138).string(message.network_id);
2035
+ }
2036
+ if (message.local_amt !== undefined) {
2037
+ writer.uint32(146).string(message.local_amt);
2038
+ }
2039
+ if (message.local_curr_code !== undefined) {
2040
+ writer.uint32(154).string(message.local_curr_code);
2041
+ }
2042
+ if (message.settle_amt !== undefined) {
2043
+ writer.uint32(162).string(message.settle_amt);
2044
+ }
2045
+ if (message.settle_curr_code !== undefined) {
2046
+ writer.uint32(170).string(message.settle_curr_code);
2047
+ }
2048
+ if (message.billing_amt !== undefined) {
2049
+ writer.uint32(178).string(message.billing_amt);
2050
+ }
2051
+ if (message.billing_curr_code !== undefined) {
2052
+ writer.uint32(186).string(message.billing_curr_code);
2053
+ }
2054
+ if (message.credit_ind !== undefined) {
2055
+ writer.uint32(194).string(message.credit_ind);
2056
+ }
2057
+ if (message.iac_tax !== undefined) {
2058
+ writer.uint32(201).double(message.iac_tax);
2059
+ }
2060
+ if (message.iva_tax !== undefined) {
2061
+ writer.uint32(209).double(message.iva_tax);
2062
+ }
2063
+ if (message.funding_account_prn !== undefined) {
2064
+ writer.uint32(218).string(message.funding_account_prn);
2065
+ }
2066
+ if (message.spending_account_prn !== undefined) {
2067
+ writer.uint32(226).string(message.spending_account_prn);
2068
+ }
2069
+ return writer;
2070
+ },
2071
+ decode(input, length) {
2072
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2073
+ const end = length === undefined ? reader.len : reader.pos + length;
2074
+ const message = createBaseTransaction();
2075
+ while (reader.pos < end) {
2076
+ const tag = reader.uint32();
2077
+ switch (tag >>> 3) {
2078
+ case 1: {
2079
+ if (tag !== 10) {
2080
+ break;
2081
+ }
2082
+ message.pmt_ref_no = reader.string();
2083
+ continue;
2084
+ }
2085
+ case 2: {
2086
+ if (tag !== 18) {
2087
+ break;
2088
+ }
2089
+ message.act_id = reader.string();
2090
+ continue;
2091
+ }
2092
+ case 3: {
2093
+ if (tag !== 26) {
2094
+ break;
2095
+ }
2096
+ message.act_type = reader.string();
2097
+ continue;
2098
+ }
2099
+ case 4: {
2100
+ if (tag !== 34) {
2101
+ break;
2102
+ }
2103
+ message.mcc = reader.string();
2104
+ continue;
2105
+ }
2106
+ case 5: {
2107
+ if (tag !== 42) {
2108
+ break;
2109
+ }
2110
+ message.post_ts = reader.string();
2111
+ continue;
2112
+ }
2113
+ case 6: {
2114
+ if (tag !== 50) {
2115
+ break;
2116
+ }
2117
+ message.amt = reader.string();
2118
+ continue;
2119
+ }
2120
+ case 7: {
2121
+ if (tag !== 58) {
2122
+ break;
2123
+ }
2124
+ message.details = reader.string();
2125
+ continue;
2126
+ }
2127
+ case 8: {
2128
+ if (tag !== 66) {
2129
+ break;
2130
+ }
2131
+ message.description = reader.string();
2132
+ continue;
2133
+ }
2134
+ case 9: {
2135
+ if (tag !== 74) {
2136
+ break;
2137
+ }
2138
+ message.source_id = reader.string();
2139
+ continue;
2140
+ }
2141
+ case 10: {
2142
+ if (tag !== 82) {
2143
+ break;
2144
+ }
2145
+ message.bal_id = reader.string();
2146
+ continue;
2147
+ }
2148
+ case 11: {
2149
+ if (tag !== 90) {
2150
+ break;
2151
+ }
2152
+ message.prod_id = reader.string();
2153
+ continue;
2154
+ }
2155
+ case 12: {
2156
+ if (tag !== 98) {
2157
+ break;
2158
+ }
2159
+ message.auth_ts = reader.string();
2160
+ continue;
2161
+ }
2162
+ case 13: {
2163
+ if (tag !== 106) {
2164
+ break;
2165
+ }
2166
+ message.trans_code = reader.string();
2167
+ continue;
2168
+ }
2169
+ case 14: {
2170
+ if (tag !== 114) {
2171
+ break;
2172
+ }
2173
+ message.ach_transaction_id = reader.string();
2174
+ continue;
2175
+ }
2176
+ case 15: {
2177
+ if (tag !== 122) {
2178
+ break;
2179
+ }
2180
+ message.external_trans_id = reader.string();
2181
+ continue;
2182
+ }
2183
+ case 16: {
2184
+ if (tag !== 130) {
2185
+ break;
2186
+ }
2187
+ message.original_auth_id = reader.string();
2188
+ continue;
2189
+ }
2190
+ case 17: {
2191
+ if (tag !== 138) {
2192
+ break;
2193
+ }
2194
+ message.network_id = reader.string();
2195
+ continue;
2196
+ }
2197
+ case 18: {
2198
+ if (tag !== 146) {
2199
+ break;
2200
+ }
2201
+ message.local_amt = reader.string();
2202
+ continue;
2203
+ }
2204
+ case 19: {
2205
+ if (tag !== 154) {
2206
+ break;
2207
+ }
2208
+ message.local_curr_code = reader.string();
2209
+ continue;
2210
+ }
2211
+ case 20: {
2212
+ if (tag !== 162) {
2213
+ break;
2214
+ }
2215
+ message.settle_amt = reader.string();
2216
+ continue;
2217
+ }
2218
+ case 21: {
2219
+ if (tag !== 170) {
2220
+ break;
2221
+ }
2222
+ message.settle_curr_code = reader.string();
2223
+ continue;
2224
+ }
2225
+ case 22: {
2226
+ if (tag !== 178) {
2227
+ break;
2228
+ }
2229
+ message.billing_amt = reader.string();
2230
+ continue;
2231
+ }
2232
+ case 23: {
2233
+ if (tag !== 186) {
2234
+ break;
2235
+ }
2236
+ message.billing_curr_code = reader.string();
2237
+ continue;
2238
+ }
2239
+ case 24: {
2240
+ if (tag !== 194) {
2241
+ break;
2242
+ }
2243
+ message.credit_ind = reader.string();
2244
+ continue;
2245
+ }
2246
+ case 25: {
2247
+ if (tag !== 201) {
2248
+ break;
2249
+ }
2250
+ message.iac_tax = reader.double();
2251
+ continue;
2252
+ }
2253
+ case 26: {
2254
+ if (tag !== 209) {
2255
+ break;
2256
+ }
2257
+ message.iva_tax = reader.double();
2258
+ continue;
2259
+ }
2260
+ case 27: {
2261
+ if (tag !== 218) {
2262
+ break;
2263
+ }
2264
+ message.funding_account_prn = reader.string();
2265
+ continue;
2266
+ }
2267
+ case 28: {
2268
+ if (tag !== 226) {
2269
+ break;
2270
+ }
2271
+ message.spending_account_prn = reader.string();
2272
+ continue;
2273
+ }
2274
+ }
2275
+ if ((tag & 7) === 4 || tag === 0) {
2276
+ break;
2277
+ }
2278
+ reader.skip(tag & 7);
2279
+ }
2280
+ return message;
2281
+ },
2282
+ create(base) {
2283
+ return exports.Transaction.fromPartial(base ?? {});
2284
+ },
2285
+ fromPartial(object) {
2286
+ const message = createBaseTransaction();
2287
+ message.pmt_ref_no = object.pmt_ref_no ?? "";
2288
+ message.act_id = object.act_id ?? undefined;
2289
+ message.act_type = object.act_type ?? undefined;
2290
+ message.mcc = object.mcc ?? "";
2291
+ message.post_ts = object.post_ts ?? undefined;
2292
+ message.amt = object.amt ?? "";
2293
+ message.details = object.details ?? "";
2294
+ message.description = object.description ?? undefined;
2295
+ message.source_id = object.source_id ?? "";
2296
+ message.bal_id = object.bal_id ?? "";
2297
+ message.prod_id = object.prod_id ?? "";
2298
+ message.auth_ts = object.auth_ts ?? "";
2299
+ message.trans_code = object.trans_code ?? "";
2300
+ message.ach_transaction_id = object.ach_transaction_id ?? undefined;
2301
+ message.external_trans_id = object.external_trans_id ?? undefined;
2302
+ message.original_auth_id = object.original_auth_id ?? undefined;
2303
+ message.network_id = object.network_id ?? undefined;
2304
+ message.local_amt = object.local_amt ?? undefined;
2305
+ message.local_curr_code = object.local_curr_code ?? undefined;
2306
+ message.settle_amt = object.settle_amt ?? undefined;
2307
+ message.settle_curr_code = object.settle_curr_code ?? undefined;
2308
+ message.billing_amt = object.billing_amt ?? undefined;
2309
+ message.billing_curr_code = object.billing_curr_code ?? undefined;
2310
+ message.credit_ind = object.credit_ind ?? undefined;
2311
+ message.iac_tax = object.iac_tax ?? undefined;
2312
+ message.iva_tax = object.iva_tax ?? undefined;
2313
+ message.funding_account_prn = object.funding_account_prn ?? undefined;
2314
+ message.spending_account_prn = object.spending_account_prn ?? undefined;
2315
+ return message;
2316
+ },
2317
+ };
2318
+ function createBaseAuthorization() {
2319
+ return {
2320
+ auth_id: "",
2321
+ details: "",
2322
+ details_formatted: "",
2323
+ amount: "",
2324
+ timestamp: undefined,
2325
+ type: "",
2326
+ mcc: "",
2327
+ merchant_id: "",
2328
+ acq_id: "",
2329
+ terminal_id: "",
2330
+ can_be_expired: "",
2331
+ original_auth_id: undefined,
2332
+ network_code: undefined,
2333
+ local_amt: undefined,
2334
+ local_curr_code: undefined,
2335
+ settle_amt: undefined,
2336
+ settle_curr_code: undefined,
2337
+ billing_amt: undefined,
2338
+ billing_curr_code: undefined,
2339
+ iac_tax: undefined,
2340
+ iva_tax: undefined,
2341
+ latest_incremental_id: undefined,
2342
+ original_incremental_id: undefined,
2343
+ };
2344
+ }
2345
+ exports.Authorization = {
2346
+ encode(message, writer = new wire_1.BinaryWriter()) {
2347
+ if (message.auth_id !== "") {
2348
+ writer.uint32(10).string(message.auth_id);
2349
+ }
2350
+ if (message.details !== "") {
2351
+ writer.uint32(18).string(message.details);
2352
+ }
2353
+ if (message.details_formatted !== "") {
2354
+ writer.uint32(26).string(message.details_formatted);
2355
+ }
2356
+ if (message.amount !== "") {
2357
+ writer.uint32(34).string(message.amount);
2358
+ }
2359
+ if (message.timestamp !== undefined) {
2360
+ writer.uint32(42).string(message.timestamp);
2361
+ }
2362
+ if (message.type !== "") {
2363
+ writer.uint32(50).string(message.type);
2364
+ }
2365
+ if (message.mcc !== "") {
2366
+ writer.uint32(58).string(message.mcc);
2367
+ }
2368
+ if (message.merchant_id !== "") {
2369
+ writer.uint32(66).string(message.merchant_id);
2370
+ }
2371
+ if (message.acq_id !== "") {
2372
+ writer.uint32(74).string(message.acq_id);
2373
+ }
2374
+ if (message.terminal_id !== "") {
2375
+ writer.uint32(82).string(message.terminal_id);
2376
+ }
2377
+ if (message.can_be_expired !== "") {
2378
+ writer.uint32(90).string(message.can_be_expired);
2379
+ }
2380
+ if (message.original_auth_id !== undefined) {
2381
+ writer.uint32(98).string(message.original_auth_id);
2382
+ }
2383
+ if (message.network_code !== undefined) {
2384
+ writer.uint32(106).string(message.network_code);
2385
+ }
2386
+ if (message.local_amt !== undefined) {
2387
+ writer.uint32(114).string(message.local_amt);
2388
+ }
2389
+ if (message.local_curr_code !== undefined) {
2390
+ writer.uint32(122).string(message.local_curr_code);
2391
+ }
2392
+ if (message.settle_amt !== undefined) {
2393
+ writer.uint32(130).string(message.settle_amt);
2394
+ }
2395
+ if (message.settle_curr_code !== undefined) {
2396
+ writer.uint32(138).string(message.settle_curr_code);
2397
+ }
2398
+ if (message.billing_amt !== undefined) {
2399
+ writer.uint32(146).string(message.billing_amt);
2400
+ }
2401
+ if (message.billing_curr_code !== undefined) {
2402
+ writer.uint32(154).string(message.billing_curr_code);
2403
+ }
2404
+ if (message.iac_tax !== undefined) {
2405
+ writer.uint32(161).double(message.iac_tax);
2406
+ }
2407
+ if (message.iva_tax !== undefined) {
2408
+ writer.uint32(169).double(message.iva_tax);
2409
+ }
2410
+ if (message.latest_incremental_id !== undefined) {
2411
+ writer.uint32(178).string(message.latest_incremental_id);
2412
+ }
2413
+ if (message.original_incremental_id !== undefined) {
2414
+ writer.uint32(186).string(message.original_incremental_id);
2415
+ }
2416
+ return writer;
2417
+ },
2418
+ decode(input, length) {
2419
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2420
+ const end = length === undefined ? reader.len : reader.pos + length;
2421
+ const message = createBaseAuthorization();
2422
+ while (reader.pos < end) {
2423
+ const tag = reader.uint32();
2424
+ switch (tag >>> 3) {
2425
+ case 1: {
2426
+ if (tag !== 10) {
2427
+ break;
2428
+ }
2429
+ message.auth_id = reader.string();
2430
+ continue;
2431
+ }
2432
+ case 2: {
2433
+ if (tag !== 18) {
2434
+ break;
2435
+ }
2436
+ message.details = reader.string();
2437
+ continue;
2438
+ }
2439
+ case 3: {
2440
+ if (tag !== 26) {
2441
+ break;
2442
+ }
2443
+ message.details_formatted = reader.string();
2444
+ continue;
2445
+ }
2446
+ case 4: {
2447
+ if (tag !== 34) {
2448
+ break;
2449
+ }
2450
+ message.amount = reader.string();
2451
+ continue;
2452
+ }
2453
+ case 5: {
2454
+ if (tag !== 42) {
2455
+ break;
2456
+ }
2457
+ message.timestamp = reader.string();
2458
+ continue;
2459
+ }
2460
+ case 6: {
2461
+ if (tag !== 50) {
2462
+ break;
2463
+ }
2464
+ message.type = reader.string();
2465
+ continue;
2466
+ }
2467
+ case 7: {
2468
+ if (tag !== 58) {
2469
+ break;
2470
+ }
2471
+ message.mcc = reader.string();
2472
+ continue;
2473
+ }
2474
+ case 8: {
2475
+ if (tag !== 66) {
2476
+ break;
2477
+ }
2478
+ message.merchant_id = reader.string();
2479
+ continue;
2480
+ }
2481
+ case 9: {
2482
+ if (tag !== 74) {
2483
+ break;
2484
+ }
2485
+ message.acq_id = reader.string();
2486
+ continue;
2487
+ }
2488
+ case 10: {
2489
+ if (tag !== 82) {
2490
+ break;
2491
+ }
2492
+ message.terminal_id = reader.string();
2493
+ continue;
2494
+ }
2495
+ case 11: {
2496
+ if (tag !== 90) {
2497
+ break;
2498
+ }
2499
+ message.can_be_expired = reader.string();
2500
+ continue;
2501
+ }
2502
+ case 12: {
2503
+ if (tag !== 98) {
2504
+ break;
2505
+ }
2506
+ message.original_auth_id = reader.string();
2507
+ continue;
2508
+ }
2509
+ case 13: {
2510
+ if (tag !== 106) {
2511
+ break;
2512
+ }
2513
+ message.network_code = reader.string();
2514
+ continue;
2515
+ }
2516
+ case 14: {
2517
+ if (tag !== 114) {
2518
+ break;
2519
+ }
2520
+ message.local_amt = reader.string();
2521
+ continue;
2522
+ }
2523
+ case 15: {
2524
+ if (tag !== 122) {
2525
+ break;
2526
+ }
2527
+ message.local_curr_code = reader.string();
2528
+ continue;
2529
+ }
2530
+ case 16: {
2531
+ if (tag !== 130) {
2532
+ break;
2533
+ }
2534
+ message.settle_amt = reader.string();
2535
+ continue;
2536
+ }
2537
+ case 17: {
2538
+ if (tag !== 138) {
2539
+ break;
2540
+ }
2541
+ message.settle_curr_code = reader.string();
2542
+ continue;
2543
+ }
2544
+ case 18: {
2545
+ if (tag !== 146) {
2546
+ break;
2547
+ }
2548
+ message.billing_amt = reader.string();
2549
+ continue;
2550
+ }
2551
+ case 19: {
2552
+ if (tag !== 154) {
2553
+ break;
2554
+ }
2555
+ message.billing_curr_code = reader.string();
2556
+ continue;
2557
+ }
2558
+ case 20: {
2559
+ if (tag !== 161) {
2560
+ break;
2561
+ }
2562
+ message.iac_tax = reader.double();
2563
+ continue;
2564
+ }
2565
+ case 21: {
2566
+ if (tag !== 169) {
2567
+ break;
2568
+ }
2569
+ message.iva_tax = reader.double();
2570
+ continue;
2571
+ }
2572
+ case 22: {
2573
+ if (tag !== 178) {
2574
+ break;
2575
+ }
2576
+ message.latest_incremental_id = reader.string();
2577
+ continue;
2578
+ }
2579
+ case 23: {
2580
+ if (tag !== 186) {
2581
+ break;
2582
+ }
2583
+ message.original_incremental_id = reader.string();
2584
+ continue;
2585
+ }
2586
+ }
2587
+ if ((tag & 7) === 4 || tag === 0) {
2588
+ break;
2589
+ }
2590
+ reader.skip(tag & 7);
2591
+ }
2592
+ return message;
2593
+ },
2594
+ create(base) {
2595
+ return exports.Authorization.fromPartial(base ?? {});
2596
+ },
2597
+ fromPartial(object) {
2598
+ const message = createBaseAuthorization();
2599
+ message.auth_id = object.auth_id ?? "";
2600
+ message.details = object.details ?? "";
2601
+ message.details_formatted = object.details_formatted ?? "";
2602
+ message.amount = object.amount ?? "";
2603
+ message.timestamp = object.timestamp ?? undefined;
2604
+ message.type = object.type ?? "";
2605
+ message.mcc = object.mcc ?? "";
2606
+ message.merchant_id = object.merchant_id ?? "";
2607
+ message.acq_id = object.acq_id ?? "";
2608
+ message.terminal_id = object.terminal_id ?? "";
2609
+ message.can_be_expired = object.can_be_expired ?? "";
2610
+ message.original_auth_id = object.original_auth_id ?? undefined;
2611
+ message.network_code = object.network_code ?? undefined;
2612
+ message.local_amt = object.local_amt ?? undefined;
2613
+ message.local_curr_code = object.local_curr_code ?? undefined;
2614
+ message.settle_amt = object.settle_amt ?? undefined;
2615
+ message.settle_curr_code = object.settle_curr_code ?? undefined;
2616
+ message.billing_amt = object.billing_amt ?? undefined;
2617
+ message.billing_curr_code = object.billing_curr_code ?? undefined;
2618
+ message.iac_tax = object.iac_tax ?? undefined;
2619
+ message.iva_tax = object.iva_tax ?? undefined;
2620
+ message.latest_incremental_id = object.latest_incremental_id ?? undefined;
2621
+ message.original_incremental_id = object.original_incremental_id ?? undefined;
2622
+ return message;
2623
+ },
2624
+ };
2625
+ function createBaseFeeRelatedTransaction() {
2626
+ return { details: undefined, amt: 0, post_ts: "" };
2627
+ }
2628
+ exports.FeeRelatedTransaction = {
2629
+ encode(message, writer = new wire_1.BinaryWriter()) {
2630
+ if (message.details !== undefined) {
2631
+ writer.uint32(10).string(message.details);
2632
+ }
2633
+ if (message.amt !== 0) {
2634
+ writer.uint32(17).double(message.amt);
2635
+ }
2636
+ if (message.post_ts !== "") {
2637
+ writer.uint32(26).string(message.post_ts);
2638
+ }
2639
+ return writer;
2640
+ },
2641
+ decode(input, length) {
2642
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2643
+ const end = length === undefined ? reader.len : reader.pos + length;
2644
+ const message = createBaseFeeRelatedTransaction();
2645
+ while (reader.pos < end) {
2646
+ const tag = reader.uint32();
2647
+ switch (tag >>> 3) {
2648
+ case 1: {
2649
+ if (tag !== 10) {
2650
+ break;
2651
+ }
2652
+ message.details = reader.string();
2653
+ continue;
2654
+ }
2655
+ case 2: {
2656
+ if (tag !== 17) {
2657
+ break;
2658
+ }
2659
+ message.amt = reader.double();
2660
+ continue;
2661
+ }
2662
+ case 3: {
2663
+ if (tag !== 26) {
2664
+ break;
2665
+ }
2666
+ message.post_ts = reader.string();
2667
+ continue;
2668
+ }
2669
+ }
2670
+ if ((tag & 7) === 4 || tag === 0) {
2671
+ break;
2672
+ }
2673
+ reader.skip(tag & 7);
2674
+ }
2675
+ return message;
2676
+ },
2677
+ create(base) {
2678
+ return exports.FeeRelatedTransaction.fromPartial(base ?? {});
2679
+ },
2680
+ fromPartial(object) {
2681
+ const message = createBaseFeeRelatedTransaction();
2682
+ message.details = object.details ?? undefined;
2683
+ message.amt = object.amt ?? 0;
2684
+ message.post_ts = object.post_ts ?? "";
2685
+ return message;
2686
+ },
2687
+ };
2688
+ function createBasePendingFee() {
2689
+ return {
2690
+ fee_event_id: "",
2691
+ type: "",
2692
+ type_description: "",
2693
+ amt: "",
2694
+ fee_date: "",
2695
+ card_id: undefined,
2696
+ fee_description: "",
2697
+ related_transaction: undefined,
2698
+ };
2699
+ }
2700
+ exports.PendingFee = {
2701
+ encode(message, writer = new wire_1.BinaryWriter()) {
2702
+ if (message.fee_event_id !== "") {
2703
+ writer.uint32(10).string(message.fee_event_id);
2704
+ }
2705
+ if (message.type !== "") {
2706
+ writer.uint32(18).string(message.type);
2707
+ }
2708
+ if (message.type_description !== "") {
2709
+ writer.uint32(26).string(message.type_description);
2710
+ }
2711
+ if (message.amt !== "") {
2712
+ writer.uint32(34).string(message.amt);
2713
+ }
2714
+ if (message.fee_date !== "") {
2715
+ writer.uint32(42).string(message.fee_date);
2716
+ }
2717
+ if (message.card_id !== undefined) {
2718
+ writer.uint32(48).int64(message.card_id);
2719
+ }
2720
+ if (message.fee_description !== "") {
2721
+ writer.uint32(58).string(message.fee_description);
2722
+ }
2723
+ if (message.related_transaction !== undefined) {
2724
+ exports.FeeRelatedTransaction.encode(message.related_transaction, writer.uint32(66).fork()).join();
2725
+ }
2726
+ return writer;
2727
+ },
2728
+ decode(input, length) {
2729
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2730
+ const end = length === undefined ? reader.len : reader.pos + length;
2731
+ const message = createBasePendingFee();
2732
+ while (reader.pos < end) {
2733
+ const tag = reader.uint32();
2734
+ switch (tag >>> 3) {
2735
+ case 1: {
2736
+ if (tag !== 10) {
2737
+ break;
2738
+ }
2739
+ message.fee_event_id = reader.string();
2740
+ continue;
2741
+ }
2742
+ case 2: {
2743
+ if (tag !== 18) {
2744
+ break;
2745
+ }
2746
+ message.type = reader.string();
2747
+ continue;
2748
+ }
2749
+ case 3: {
2750
+ if (tag !== 26) {
2751
+ break;
2752
+ }
2753
+ message.type_description = reader.string();
2754
+ continue;
2755
+ }
2756
+ case 4: {
2757
+ if (tag !== 34) {
2758
+ break;
2759
+ }
2760
+ message.amt = reader.string();
2761
+ continue;
2762
+ }
2763
+ case 5: {
2764
+ if (tag !== 42) {
2765
+ break;
2766
+ }
2767
+ message.fee_date = reader.string();
2768
+ continue;
2769
+ }
2770
+ case 6: {
2771
+ if (tag !== 48) {
2772
+ break;
2773
+ }
2774
+ message.card_id = reader.int64().toString();
2775
+ continue;
2776
+ }
2777
+ case 7: {
2778
+ if (tag !== 58) {
2779
+ break;
2780
+ }
2781
+ message.fee_description = reader.string();
2782
+ continue;
2783
+ }
2784
+ case 8: {
2785
+ if (tag !== 66) {
2786
+ break;
2787
+ }
2788
+ message.related_transaction = exports.FeeRelatedTransaction.decode(reader, reader.uint32());
2789
+ continue;
2790
+ }
2791
+ }
2792
+ if ((tag & 7) === 4 || tag === 0) {
2793
+ break;
2794
+ }
2795
+ reader.skip(tag & 7);
2796
+ }
2797
+ return message;
2798
+ },
2799
+ create(base) {
2800
+ return exports.PendingFee.fromPartial(base ?? {});
2801
+ },
2802
+ fromPartial(object) {
2803
+ const message = createBasePendingFee();
2804
+ message.fee_event_id = object.fee_event_id ?? "";
2805
+ message.type = object.type ?? "";
2806
+ message.type_description = object.type_description ?? "";
2807
+ message.amt = object.amt ?? "";
2808
+ message.fee_date = object.fee_date ?? "";
2809
+ message.card_id = object.card_id ?? undefined;
2810
+ message.fee_description = object.fee_description ?? "";
2811
+ message.related_transaction = (object.related_transaction !== undefined && object.related_transaction !== null)
2812
+ ? exports.FeeRelatedTransaction.fromPartial(object.related_transaction)
2813
+ : undefined;
2814
+ return message;
2815
+ },
2816
+ };
2817
+ function createBaseSavingsInterest() {
2818
+ return { start_date: "", end_date: "", accrual_interest: "", interest_ytd: "", apy: "" };
2819
+ }
2820
+ exports.SavingsInterest = {
2821
+ encode(message, writer = new wire_1.BinaryWriter()) {
2822
+ if (message.start_date !== "") {
2823
+ writer.uint32(10).string(message.start_date);
2824
+ }
2825
+ if (message.end_date !== "") {
2826
+ writer.uint32(18).string(message.end_date);
2827
+ }
2828
+ if (message.accrual_interest !== "") {
2829
+ writer.uint32(26).string(message.accrual_interest);
2830
+ }
2831
+ if (message.interest_ytd !== "") {
2832
+ writer.uint32(34).string(message.interest_ytd);
2833
+ }
2834
+ if (message.apy !== "") {
2835
+ writer.uint32(42).string(message.apy);
2836
+ }
2837
+ return writer;
2838
+ },
2839
+ decode(input, length) {
2840
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2841
+ const end = length === undefined ? reader.len : reader.pos + length;
2842
+ const message = createBaseSavingsInterest();
2843
+ while (reader.pos < end) {
2844
+ const tag = reader.uint32();
2845
+ switch (tag >>> 3) {
2846
+ case 1: {
2847
+ if (tag !== 10) {
2848
+ break;
2849
+ }
2850
+ message.start_date = reader.string();
2851
+ continue;
2852
+ }
2853
+ case 2: {
2854
+ if (tag !== 18) {
2855
+ break;
2856
+ }
2857
+ message.end_date = reader.string();
2858
+ continue;
2859
+ }
2860
+ case 3: {
2861
+ if (tag !== 26) {
2862
+ break;
2863
+ }
2864
+ message.accrual_interest = reader.string();
2865
+ continue;
2866
+ }
2867
+ case 4: {
2868
+ if (tag !== 34) {
2869
+ break;
2870
+ }
2871
+ message.interest_ytd = reader.string();
2872
+ continue;
2873
+ }
2874
+ case 5: {
2875
+ if (tag !== 42) {
2876
+ break;
2877
+ }
2878
+ message.apy = reader.string();
2879
+ continue;
2880
+ }
2881
+ }
2882
+ if ((tag & 7) === 4 || tag === 0) {
2883
+ break;
2884
+ }
2885
+ reader.skip(tag & 7);
2886
+ }
2887
+ return message;
2888
+ },
2889
+ create(base) {
2890
+ return exports.SavingsInterest.fromPartial(base ?? {});
2891
+ },
2892
+ fromPartial(object) {
2893
+ const message = createBaseSavingsInterest();
2894
+ message.start_date = object.start_date ?? "";
2895
+ message.end_date = object.end_date ?? "";
2896
+ message.accrual_interest = object.accrual_interest ?? "";
2897
+ message.interest_ytd = object.interest_ytd ?? "";
2898
+ message.apy = object.apy ?? "";
2899
+ return message;
2900
+ },
2901
+ };
2902
+ function createBaseHold() {
2903
+ return {
2904
+ hold_id: "",
2905
+ create_dt: undefined,
2906
+ expiry_dt: undefined,
2907
+ source_id: undefined,
2908
+ change_ts: undefined,
2909
+ hold_type: undefined,
2910
+ ext_id: undefined,
2911
+ dscr: undefined,
2912
+ originating_system_id: undefined,
2913
+ agent_id: undefined,
2914
+ amount: 0,
2915
+ xid: undefined,
2916
+ expiring_system_id: undefined,
2917
+ expiring_agent_id: undefined,
2918
+ };
2919
+ }
2920
+ exports.Hold = {
2921
+ encode(message, writer = new wire_1.BinaryWriter()) {
2922
+ if (message.hold_id !== "") {
2923
+ writer.uint32(10).string(message.hold_id);
2924
+ }
2925
+ if (message.create_dt !== undefined) {
2926
+ writer.uint32(18).string(message.create_dt);
2927
+ }
2928
+ if (message.expiry_dt !== undefined) {
2929
+ writer.uint32(26).string(message.expiry_dt);
2930
+ }
2931
+ if (message.source_id !== undefined) {
2932
+ writer.uint32(34).string(message.source_id);
2933
+ }
2934
+ if (message.change_ts !== undefined) {
2935
+ writer.uint32(42).string(message.change_ts);
2936
+ }
2937
+ if (message.hold_type !== undefined) {
2938
+ writer.uint32(50).string(message.hold_type);
2939
+ }
2940
+ if (message.ext_id !== undefined) {
2941
+ writer.uint32(58).string(message.ext_id);
2942
+ }
2943
+ if (message.dscr !== undefined) {
2944
+ writer.uint32(66).string(message.dscr);
2945
+ }
2946
+ if (message.originating_system_id !== undefined) {
2947
+ writer.uint32(74).string(message.originating_system_id);
2948
+ }
2949
+ if (message.agent_id !== undefined) {
2950
+ writer.uint32(82).string(message.agent_id);
2951
+ }
2952
+ if (message.amount !== 0) {
2953
+ writer.uint32(89).double(message.amount);
2954
+ }
2955
+ if (message.xid !== undefined) {
2956
+ writer.uint32(98).string(message.xid);
2957
+ }
2958
+ if (message.expiring_system_id !== undefined) {
2959
+ writer.uint32(106).string(message.expiring_system_id);
2960
+ }
2961
+ if (message.expiring_agent_id !== undefined) {
2962
+ writer.uint32(114).string(message.expiring_agent_id);
2963
+ }
2964
+ return writer;
2965
+ },
2966
+ decode(input, length) {
2967
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2968
+ const end = length === undefined ? reader.len : reader.pos + length;
2969
+ const message = createBaseHold();
2970
+ while (reader.pos < end) {
2971
+ const tag = reader.uint32();
2972
+ switch (tag >>> 3) {
2973
+ case 1: {
2974
+ if (tag !== 10) {
2975
+ break;
2976
+ }
2977
+ message.hold_id = reader.string();
2978
+ continue;
2979
+ }
2980
+ case 2: {
2981
+ if (tag !== 18) {
2982
+ break;
2983
+ }
2984
+ message.create_dt = reader.string();
2985
+ continue;
2986
+ }
2987
+ case 3: {
2988
+ if (tag !== 26) {
2989
+ break;
2990
+ }
2991
+ message.expiry_dt = reader.string();
2992
+ continue;
2993
+ }
2994
+ case 4: {
2995
+ if (tag !== 34) {
2996
+ break;
2997
+ }
2998
+ message.source_id = reader.string();
2999
+ continue;
3000
+ }
3001
+ case 5: {
3002
+ if (tag !== 42) {
3003
+ break;
3004
+ }
3005
+ message.change_ts = reader.string();
3006
+ continue;
3007
+ }
3008
+ case 6: {
3009
+ if (tag !== 50) {
3010
+ break;
3011
+ }
3012
+ message.hold_type = reader.string();
3013
+ continue;
3014
+ }
3015
+ case 7: {
3016
+ if (tag !== 58) {
3017
+ break;
3018
+ }
3019
+ message.ext_id = reader.string();
3020
+ continue;
3021
+ }
3022
+ case 8: {
3023
+ if (tag !== 66) {
3024
+ break;
3025
+ }
3026
+ message.dscr = reader.string();
3027
+ continue;
3028
+ }
3029
+ case 9: {
3030
+ if (tag !== 74) {
3031
+ break;
3032
+ }
3033
+ message.originating_system_id = reader.string();
3034
+ continue;
3035
+ }
3036
+ case 10: {
3037
+ if (tag !== 82) {
3038
+ break;
3039
+ }
3040
+ message.agent_id = reader.string();
3041
+ continue;
3042
+ }
3043
+ case 11: {
3044
+ if (tag !== 89) {
3045
+ break;
3046
+ }
3047
+ message.amount = reader.double();
3048
+ continue;
3049
+ }
3050
+ case 12: {
3051
+ if (tag !== 98) {
3052
+ break;
3053
+ }
3054
+ message.xid = reader.string();
3055
+ continue;
3056
+ }
3057
+ case 13: {
3058
+ if (tag !== 106) {
3059
+ break;
3060
+ }
3061
+ message.expiring_system_id = reader.string();
3062
+ continue;
3063
+ }
3064
+ case 14: {
3065
+ if (tag !== 114) {
3066
+ break;
3067
+ }
3068
+ message.expiring_agent_id = reader.string();
3069
+ continue;
3070
+ }
3071
+ }
3072
+ if ((tag & 7) === 4 || tag === 0) {
3073
+ break;
3074
+ }
3075
+ reader.skip(tag & 7);
3076
+ }
3077
+ return message;
3078
+ },
3079
+ create(base) {
3080
+ return exports.Hold.fromPartial(base ?? {});
3081
+ },
3082
+ fromPartial(object) {
3083
+ const message = createBaseHold();
3084
+ message.hold_id = object.hold_id ?? "";
3085
+ message.create_dt = object.create_dt ?? undefined;
3086
+ message.expiry_dt = object.expiry_dt ?? undefined;
3087
+ message.source_id = object.source_id ?? undefined;
3088
+ message.change_ts = object.change_ts ?? undefined;
3089
+ message.hold_type = object.hold_type ?? undefined;
3090
+ message.ext_id = object.ext_id ?? undefined;
3091
+ message.dscr = object.dscr ?? undefined;
3092
+ message.originating_system_id = object.originating_system_id ?? undefined;
3093
+ message.agent_id = object.agent_id ?? undefined;
3094
+ message.amount = object.amount ?? 0;
3095
+ message.xid = object.xid ?? undefined;
3096
+ message.expiring_system_id = object.expiring_system_id ?? undefined;
3097
+ message.expiring_agent_id = object.expiring_agent_id ?? undefined;
3098
+ return message;
3099
+ },
3100
+ };
3101
+ //# sourceMappingURL=contracts_types.js.map