@alexochihua/protos 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +2 -2
  2. package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
  3. package/dist/generated/kapital/cards/v1/cards.js +36 -2795
  4. package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
  5. package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
  6. package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
  7. package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
  8. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
  9. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
  10. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
  11. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
  12. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
  13. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
  14. package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
  15. package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
  16. package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
  17. package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
  18. package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
  19. package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
  20. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
  21. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
  22. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
  23. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
  24. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
  25. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
  26. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
  27. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
  28. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
  29. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
  30. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
  31. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
  32. package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
  33. package/dist/generated/kapital/offers/v1/offers.js +1097 -0
  34. package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
  35. package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
  36. package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
  37. package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
  38. package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
  39. package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
  40. package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
  41. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
  42. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
  43. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
  44. package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
  45. package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
  46. package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
  47. package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
  48. package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
  49. package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
  50. package/dist/index.d.ts +25 -13
  51. package/dist/index.js +26 -14
  52. package/dist/index.js.map +1 -1
  53. package/package.json +277 -193
  54. package/proto/kapital/cards/v1/cards.proto +3 -269
  55. package/proto/kapital/cards/v1/cards_types.proto +26 -110
  56. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
  57. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
  58. package/proto/kapital/commissions/v1/commissions.proto +69 -0
  59. package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
  60. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
  61. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
  62. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
  63. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
  64. package/proto/kapital/offers/v1/offers.proto +111 -0
  65. package/proto/kapital/offers/v1/offers_types.proto +54 -0
  66. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
  67. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
  68. package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
  69. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
@@ -5,94 +5,122 @@
5
5
  // protoc unknown
6
6
  // source: kapital/cards/v1/cards_types.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ContractCardReissue = exports.SpendControls = exports.EmbossedCard = exports.FreezeInfo = exports.CardContractCards = exports.ContractContractCards = exports.RelatedContractCards = exports.AddressContractCards = exports.CustomerContractCards = exports.protobufPackage = void 0;
8
+ exports.Card = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  exports.protobufPackage = "kapital.cards.v1";
12
- function createBaseCustomerContractCards() {
12
+ function createBaseCard() {
13
13
  return {
14
- first_name: "",
15
- middle_name: undefined,
16
- last_name: "",
17
- address_1: "",
18
- address_2: undefined,
19
- city: "",
20
- state: "",
21
- postal_code: "",
22
- country_code: "",
23
- phone: undefined,
24
- mobile_phone: "",
25
- mobile_phone_country_code: undefined,
26
- email: undefined,
27
- ship_to_address: undefined,
28
- express_mail: "",
29
- related_contracts: [],
30
- occupation: undefined,
31
- income_source: undefined,
14
+ id: "",
15
+ activation_status: "",
16
+ available_balance: "",
17
+ bin: "",
18
+ card_brand: "",
19
+ card_type: "",
20
+ cardholder: "",
21
+ client_id: "",
22
+ client_name: "",
23
+ contract_id: "",
24
+ credit_limit: "",
25
+ is_active: false,
26
+ is_virtual: false,
27
+ limit_amount: "",
28
+ pan: "",
29
+ payment_due_date: "",
30
+ physical_card_id: "",
31
+ product: "",
32
+ product_id: "",
33
+ status: "",
34
+ status_id: "",
35
+ created_by: "",
36
+ updated_by: "",
37
+ created_at: "",
38
+ updated_at: "",
32
39
  };
33
40
  }
34
- exports.CustomerContractCards = {
41
+ exports.Card = {
35
42
  encode(message, writer = new wire_1.BinaryWriter()) {
36
- if (message.first_name !== "") {
37
- writer.uint32(10).string(message.first_name);
43
+ if (message.id !== "") {
44
+ writer.uint32(10).string(message.id);
45
+ }
46
+ if (message.activation_status !== "") {
47
+ writer.uint32(18).string(message.activation_status);
48
+ }
49
+ if (message.available_balance !== "") {
50
+ writer.uint32(26).string(message.available_balance);
51
+ }
52
+ if (message.bin !== "") {
53
+ writer.uint32(34).string(message.bin);
54
+ }
55
+ if (message.card_brand !== "") {
56
+ writer.uint32(42).string(message.card_brand);
57
+ }
58
+ if (message.card_type !== "") {
59
+ writer.uint32(50).string(message.card_type);
60
+ }
61
+ if (message.cardholder !== "") {
62
+ writer.uint32(58).string(message.cardholder);
38
63
  }
39
- if (message.middle_name !== undefined) {
40
- writer.uint32(18).string(message.middle_name);
64
+ if (message.client_id !== "") {
65
+ writer.uint32(66).string(message.client_id);
41
66
  }
42
- if (message.last_name !== "") {
43
- writer.uint32(26).string(message.last_name);
67
+ if (message.client_name !== "") {
68
+ writer.uint32(74).string(message.client_name);
44
69
  }
45
- if (message.address_1 !== "") {
46
- writer.uint32(34).string(message.address_1);
70
+ if (message.contract_id !== "") {
71
+ writer.uint32(82).string(message.contract_id);
47
72
  }
48
- if (message.address_2 !== undefined) {
49
- writer.uint32(42).string(message.address_2);
73
+ if (message.credit_limit !== "") {
74
+ writer.uint32(90).string(message.credit_limit);
50
75
  }
51
- if (message.city !== "") {
52
- writer.uint32(50).string(message.city);
76
+ if (message.is_active !== false) {
77
+ writer.uint32(96).bool(message.is_active);
53
78
  }
54
- if (message.state !== "") {
55
- writer.uint32(58).string(message.state);
79
+ if (message.is_virtual !== false) {
80
+ writer.uint32(104).bool(message.is_virtual);
56
81
  }
57
- if (message.postal_code !== "") {
58
- writer.uint32(66).string(message.postal_code);
82
+ if (message.limit_amount !== "") {
83
+ writer.uint32(114).string(message.limit_amount);
59
84
  }
60
- if (message.country_code !== "") {
61
- writer.uint32(74).string(message.country_code);
85
+ if (message.pan !== "") {
86
+ writer.uint32(122).string(message.pan);
62
87
  }
63
- if (message.phone !== undefined) {
64
- writer.uint32(82).string(message.phone);
88
+ if (message.payment_due_date !== "") {
89
+ writer.uint32(130).string(message.payment_due_date);
65
90
  }
66
- if (message.mobile_phone !== "") {
67
- writer.uint32(90).string(message.mobile_phone);
91
+ if (message.physical_card_id !== "") {
92
+ writer.uint32(138).string(message.physical_card_id);
68
93
  }
69
- if (message.mobile_phone_country_code !== undefined) {
70
- writer.uint32(98).string(message.mobile_phone_country_code);
94
+ if (message.product !== "") {
95
+ writer.uint32(146).string(message.product);
71
96
  }
72
- if (message.email !== undefined) {
73
- writer.uint32(106).string(message.email);
97
+ if (message.product_id !== "") {
98
+ writer.uint32(154).string(message.product_id);
99
+ }
100
+ if (message.status !== "") {
101
+ writer.uint32(162).string(message.status);
74
102
  }
75
- if (message.ship_to_address !== undefined) {
76
- exports.AddressContractCards.encode(message.ship_to_address, writer.uint32(114).fork()).join();
103
+ if (message.status_id !== "") {
104
+ writer.uint32(170).string(message.status_id);
77
105
  }
78
- if (message.express_mail !== "") {
79
- writer.uint32(122).string(message.express_mail);
106
+ if (message.created_by !== "") {
107
+ writer.uint32(178).string(message.created_by);
80
108
  }
81
- for (const v of message.related_contracts) {
82
- exports.RelatedContractCards.encode(v, writer.uint32(130).fork()).join();
109
+ if (message.updated_by !== "") {
110
+ writer.uint32(186).string(message.updated_by);
83
111
  }
84
- if (message.occupation !== undefined) {
85
- writer.uint32(138).string(message.occupation);
112
+ if (message.created_at !== "") {
113
+ writer.uint32(194).string(message.created_at);
86
114
  }
87
- if (message.income_source !== undefined) {
88
- writer.uint32(146).string(message.income_source);
115
+ if (message.updated_at !== "") {
116
+ writer.uint32(202).string(message.updated_at);
89
117
  }
90
118
  return writer;
91
119
  },
92
120
  decode(input, length) {
93
121
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
94
122
  const end = length === undefined ? reader.len : reader.pos + length;
95
- const message = createBaseCustomerContractCards();
123
+ const message = createBaseCard();
96
124
  while (reader.pos < end) {
97
125
  const tag = reader.uint32();
98
126
  switch (tag >>> 3) {
@@ -100,499 +128,175 @@ exports.CustomerContractCards = {
100
128
  if (tag !== 10) {
101
129
  break;
102
130
  }
103
- message.first_name = reader.string();
131
+ message.id = reader.string();
104
132
  continue;
105
133
  }
106
134
  case 2: {
107
135
  if (tag !== 18) {
108
136
  break;
109
137
  }
110
- message.middle_name = reader.string();
138
+ message.activation_status = reader.string();
111
139
  continue;
112
140
  }
113
141
  case 3: {
114
142
  if (tag !== 26) {
115
143
  break;
116
144
  }
117
- message.last_name = reader.string();
145
+ message.available_balance = reader.string();
118
146
  continue;
119
147
  }
120
148
  case 4: {
121
149
  if (tag !== 34) {
122
150
  break;
123
151
  }
124
- message.address_1 = reader.string();
152
+ message.bin = reader.string();
125
153
  continue;
126
154
  }
127
155
  case 5: {
128
156
  if (tag !== 42) {
129
157
  break;
130
158
  }
131
- message.address_2 = reader.string();
159
+ message.card_brand = reader.string();
132
160
  continue;
133
161
  }
134
162
  case 6: {
135
163
  if (tag !== 50) {
136
164
  break;
137
165
  }
138
- message.city = reader.string();
166
+ message.card_type = reader.string();
139
167
  continue;
140
168
  }
141
169
  case 7: {
142
170
  if (tag !== 58) {
143
171
  break;
144
172
  }
145
- message.state = reader.string();
173
+ message.cardholder = reader.string();
146
174
  continue;
147
175
  }
148
176
  case 8: {
149
177
  if (tag !== 66) {
150
178
  break;
151
179
  }
152
- message.postal_code = reader.string();
180
+ message.client_id = reader.string();
153
181
  continue;
154
182
  }
155
183
  case 9: {
156
184
  if (tag !== 74) {
157
185
  break;
158
186
  }
159
- message.country_code = reader.string();
187
+ message.client_name = reader.string();
160
188
  continue;
161
189
  }
162
190
  case 10: {
163
191
  if (tag !== 82) {
164
192
  break;
165
193
  }
166
- message.phone = reader.string();
194
+ message.contract_id = reader.string();
167
195
  continue;
168
196
  }
169
197
  case 11: {
170
198
  if (tag !== 90) {
171
199
  break;
172
200
  }
173
- message.mobile_phone = reader.string();
201
+ message.credit_limit = reader.string();
174
202
  continue;
175
203
  }
176
204
  case 12: {
177
- if (tag !== 98) {
205
+ if (tag !== 96) {
178
206
  break;
179
207
  }
180
- message.mobile_phone_country_code = reader.string();
208
+ message.is_active = reader.bool();
181
209
  continue;
182
210
  }
183
211
  case 13: {
184
- if (tag !== 106) {
212
+ if (tag !== 104) {
185
213
  break;
186
214
  }
187
- message.email = reader.string();
215
+ message.is_virtual = reader.bool();
188
216
  continue;
189
217
  }
190
218
  case 14: {
191
219
  if (tag !== 114) {
192
220
  break;
193
221
  }
194
- message.ship_to_address = exports.AddressContractCards.decode(reader, reader.uint32());
222
+ message.limit_amount = reader.string();
195
223
  continue;
196
224
  }
197
225
  case 15: {
198
226
  if (tag !== 122) {
199
227
  break;
200
228
  }
201
- message.express_mail = reader.string();
229
+ message.pan = reader.string();
202
230
  continue;
203
231
  }
204
232
  case 16: {
205
233
  if (tag !== 130) {
206
234
  break;
207
235
  }
208
- message.related_contracts.push(exports.RelatedContractCards.decode(reader, reader.uint32()));
236
+ message.payment_due_date = reader.string();
209
237
  continue;
210
238
  }
211
239
  case 17: {
212
240
  if (tag !== 138) {
213
241
  break;
214
242
  }
215
- message.occupation = reader.string();
243
+ message.physical_card_id = reader.string();
216
244
  continue;
217
245
  }
218
246
  case 18: {
219
247
  if (tag !== 146) {
220
248
  break;
221
249
  }
222
- message.income_source = reader.string();
223
- continue;
224
- }
225
- }
226
- if ((tag & 7) === 4 || tag === 0) {
227
- break;
228
- }
229
- reader.skip(tag & 7);
230
- }
231
- return message;
232
- },
233
- create(base) {
234
- return exports.CustomerContractCards.fromPartial(base ?? {});
235
- },
236
- fromPartial(object) {
237
- const message = createBaseCustomerContractCards();
238
- message.first_name = object.first_name ?? "";
239
- message.middle_name = object.middle_name ?? undefined;
240
- message.last_name = object.last_name ?? "";
241
- message.address_1 = object.address_1 ?? "";
242
- message.address_2 = object.address_2 ?? undefined;
243
- message.city = object.city ?? "";
244
- message.state = object.state ?? "";
245
- message.postal_code = object.postal_code ?? "";
246
- message.country_code = object.country_code ?? "";
247
- message.phone = object.phone ?? undefined;
248
- message.mobile_phone = object.mobile_phone ?? "";
249
- message.mobile_phone_country_code = object.mobile_phone_country_code ?? undefined;
250
- message.email = object.email ?? undefined;
251
- message.ship_to_address = (object.ship_to_address !== undefined && object.ship_to_address !== null)
252
- ? exports.AddressContractCards.fromPartial(object.ship_to_address)
253
- : undefined;
254
- message.express_mail = object.express_mail ?? "";
255
- message.related_contracts = object.related_contracts?.map((e) => exports.RelatedContractCards.fromPartial(e)) || [];
256
- message.occupation = object.occupation ?? undefined;
257
- message.income_source = object.income_source ?? undefined;
258
- return message;
259
- },
260
- };
261
- function createBaseAddressContractCards() {
262
- return { address_1: "", address_2: undefined, city: "", state: "", postal_code: "", country_code: "" };
263
- }
264
- exports.AddressContractCards = {
265
- encode(message, writer = new wire_1.BinaryWriter()) {
266
- if (message.address_1 !== "") {
267
- writer.uint32(10).string(message.address_1);
268
- }
269
- if (message.address_2 !== undefined) {
270
- writer.uint32(18).string(message.address_2);
271
- }
272
- if (message.city !== "") {
273
- writer.uint32(26).string(message.city);
274
- }
275
- if (message.state !== "") {
276
- writer.uint32(34).string(message.state);
277
- }
278
- if (message.postal_code !== "") {
279
- writer.uint32(42).string(message.postal_code);
280
- }
281
- if (message.country_code !== "") {
282
- writer.uint32(50).string(message.country_code);
283
- }
284
- return writer;
285
- },
286
- decode(input, length) {
287
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
288
- const end = length === undefined ? reader.len : reader.pos + length;
289
- const message = createBaseAddressContractCards();
290
- while (reader.pos < end) {
291
- const tag = reader.uint32();
292
- switch (tag >>> 3) {
293
- case 1: {
294
- if (tag !== 10) {
295
- break;
296
- }
297
- message.address_1 = reader.string();
298
- continue;
299
- }
300
- case 2: {
301
- if (tag !== 18) {
302
- break;
303
- }
304
- message.address_2 = reader.string();
305
- continue;
306
- }
307
- case 3: {
308
- if (tag !== 26) {
309
- break;
310
- }
311
- message.city = reader.string();
312
- continue;
313
- }
314
- case 4: {
315
- if (tag !== 34) {
316
- break;
317
- }
318
- message.state = reader.string();
319
- continue;
320
- }
321
- case 5: {
322
- if (tag !== 42) {
323
- break;
324
- }
325
- message.postal_code = reader.string();
326
- continue;
327
- }
328
- case 6: {
329
- if (tag !== 50) {
330
- break;
331
- }
332
- message.country_code = reader.string();
333
- continue;
334
- }
335
- }
336
- if ((tag & 7) === 4 || tag === 0) {
337
- break;
338
- }
339
- reader.skip(tag & 7);
340
- }
341
- return message;
342
- },
343
- create(base) {
344
- return exports.AddressContractCards.fromPartial(base ?? {});
345
- },
346
- fromPartial(object) {
347
- const message = createBaseAddressContractCards();
348
- message.address_1 = object.address_1 ?? "";
349
- message.address_2 = object.address_2 ?? undefined;
350
- message.city = object.city ?? "";
351
- message.state = object.state ?? "";
352
- message.postal_code = object.postal_code ?? "";
353
- message.country_code = object.country_code ?? "";
354
- return message;
355
- },
356
- };
357
- function createBaseRelatedContractCards() {
358
- return {
359
- pmt_ref_no: "",
360
- product_id: "",
361
- active: "",
362
- status: "",
363
- group_id: undefined,
364
- application_date: "",
365
- start_date: "",
366
- bill_cycle_day: undefined,
367
- };
368
- }
369
- exports.RelatedContractCards = {
370
- encode(message, writer = new wire_1.BinaryWriter()) {
371
- if (message.pmt_ref_no !== "") {
372
- writer.uint32(10).string(message.pmt_ref_no);
373
- }
374
- if (message.product_id !== "") {
375
- writer.uint32(18).string(message.product_id);
376
- }
377
- if (message.active !== "") {
378
- writer.uint32(26).string(message.active);
379
- }
380
- if (message.status !== "") {
381
- writer.uint32(34).string(message.status);
382
- }
383
- if (message.group_id !== undefined) {
384
- writer.uint32(42).string(message.group_id);
385
- }
386
- if (message.application_date !== "") {
387
- writer.uint32(50).string(message.application_date);
388
- }
389
- if (message.start_date !== "") {
390
- writer.uint32(58).string(message.start_date);
391
- }
392
- if (message.bill_cycle_day !== undefined) {
393
- writer.uint32(66).string(message.bill_cycle_day);
394
- }
395
- return writer;
396
- },
397
- decode(input, length) {
398
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
399
- const end = length === undefined ? reader.len : reader.pos + length;
400
- const message = createBaseRelatedContractCards();
401
- while (reader.pos < end) {
402
- const tag = reader.uint32();
403
- switch (tag >>> 3) {
404
- case 1: {
405
- if (tag !== 10) {
406
- break;
407
- }
408
- message.pmt_ref_no = reader.string();
250
+ message.product = reader.string();
409
251
  continue;
410
252
  }
411
- case 2: {
412
- if (tag !== 18) {
253
+ case 19: {
254
+ if (tag !== 154) {
413
255
  break;
414
256
  }
415
257
  message.product_id = reader.string();
416
258
  continue;
417
259
  }
418
- case 3: {
419
- if (tag !== 26) {
420
- break;
421
- }
422
- message.active = reader.string();
423
- continue;
424
- }
425
- case 4: {
426
- if (tag !== 34) {
260
+ case 20: {
261
+ if (tag !== 162) {
427
262
  break;
428
263
  }
429
264
  message.status = reader.string();
430
265
  continue;
431
266
  }
432
- case 5: {
433
- if (tag !== 42) {
434
- break;
435
- }
436
- message.group_id = reader.string();
437
- continue;
438
- }
439
- case 6: {
440
- if (tag !== 50) {
441
- break;
442
- }
443
- message.application_date = reader.string();
444
- continue;
445
- }
446
- case 7: {
447
- if (tag !== 58) {
448
- break;
449
- }
450
- message.start_date = reader.string();
451
- continue;
452
- }
453
- case 8: {
454
- if (tag !== 66) {
455
- break;
456
- }
457
- message.bill_cycle_day = reader.string();
458
- continue;
459
- }
460
- }
461
- if ((tag & 7) === 4 || tag === 0) {
462
- break;
463
- }
464
- reader.skip(tag & 7);
465
- }
466
- return message;
467
- },
468
- create(base) {
469
- return exports.RelatedContractCards.fromPartial(base ?? {});
470
- },
471
- fromPartial(object) {
472
- const message = createBaseRelatedContractCards();
473
- message.pmt_ref_no = object.pmt_ref_no ?? "";
474
- message.product_id = object.product_id ?? "";
475
- message.active = object.active ?? "";
476
- message.status = object.status ?? "";
477
- message.group_id = object.group_id ?? undefined;
478
- message.application_date = object.application_date ?? "";
479
- message.start_date = object.start_date ?? "";
480
- message.bill_cycle_day = object.bill_cycle_day ?? undefined;
481
- return message;
482
- },
483
- };
484
- function createBaseContractContractCards() {
485
- return {
486
- active: "",
487
- application_date: "",
488
- bill_cycle_day: undefined,
489
- group_id: undefined,
490
- pmt_ref_no: "",
491
- product_id: "",
492
- start_date: "",
493
- status: "",
494
- cards: [],
495
- };
496
- }
497
- exports.ContractContractCards = {
498
- encode(message, writer = new wire_1.BinaryWriter()) {
499
- if (message.active !== "") {
500
- writer.uint32(10).string(message.active);
501
- }
502
- if (message.application_date !== "") {
503
- writer.uint32(18).string(message.application_date);
504
- }
505
- if (message.bill_cycle_day !== undefined) {
506
- writer.uint32(26).string(message.bill_cycle_day);
507
- }
508
- if (message.group_id !== undefined) {
509
- writer.uint32(34).string(message.group_id);
510
- }
511
- if (message.pmt_ref_no !== "") {
512
- writer.uint32(42).string(message.pmt_ref_no);
513
- }
514
- if (message.product_id !== "") {
515
- writer.uint32(50).string(message.product_id);
516
- }
517
- if (message.start_date !== "") {
518
- writer.uint32(58).string(message.start_date);
519
- }
520
- if (message.status !== "") {
521
- writer.uint32(66).string(message.status);
522
- }
523
- for (const v of message.cards) {
524
- exports.CardContractCards.encode(v, writer.uint32(74).fork()).join();
525
- }
526
- return writer;
527
- },
528
- decode(input, length) {
529
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
530
- const end = length === undefined ? reader.len : reader.pos + length;
531
- const message = createBaseContractContractCards();
532
- while (reader.pos < end) {
533
- const tag = reader.uint32();
534
- switch (tag >>> 3) {
535
- case 1: {
536
- if (tag !== 10) {
537
- break;
538
- }
539
- message.active = reader.string();
540
- continue;
541
- }
542
- case 2: {
543
- if (tag !== 18) {
544
- break;
545
- }
546
- message.application_date = reader.string();
547
- continue;
548
- }
549
- case 3: {
550
- if (tag !== 26) {
551
- break;
552
- }
553
- message.bill_cycle_day = reader.string();
554
- continue;
555
- }
556
- case 4: {
557
- if (tag !== 34) {
558
- break;
559
- }
560
- message.group_id = reader.string();
561
- continue;
562
- }
563
- case 5: {
564
- if (tag !== 42) {
267
+ case 21: {
268
+ if (tag !== 170) {
565
269
  break;
566
270
  }
567
- message.pmt_ref_no = reader.string();
271
+ message.status_id = reader.string();
568
272
  continue;
569
273
  }
570
- case 6: {
571
- if (tag !== 50) {
274
+ case 22: {
275
+ if (tag !== 178) {
572
276
  break;
573
277
  }
574
- message.product_id = reader.string();
278
+ message.created_by = reader.string();
575
279
  continue;
576
280
  }
577
- case 7: {
578
- if (tag !== 58) {
281
+ case 23: {
282
+ if (tag !== 186) {
579
283
  break;
580
284
  }
581
- message.start_date = reader.string();
285
+ message.updated_by = reader.string();
582
286
  continue;
583
287
  }
584
- case 8: {
585
- if (tag !== 66) {
288
+ case 24: {
289
+ if (tag !== 194) {
586
290
  break;
587
291
  }
588
- message.status = reader.string();
292
+ message.created_at = reader.string();
589
293
  continue;
590
294
  }
591
- case 9: {
592
- if (tag !== 74) {
295
+ case 25: {
296
+ if (tag !== 202) {
593
297
  break;
594
298
  }
595
- message.cards.push(exports.CardContractCards.decode(reader, reader.uint32()));
299
+ message.updated_at = reader.string();
596
300
  continue;
597
301
  }
598
302
  }
@@ -604,664 +308,35 @@ exports.ContractContractCards = {
604
308
  return message;
605
309
  },
606
310
  create(base) {
607
- return exports.ContractContractCards.fromPartial(base ?? {});
311
+ return exports.Card.fromPartial(base ?? {});
608
312
  },
609
313
  fromPartial(object) {
610
- const message = createBaseContractContractCards();
611
- message.active = object.active ?? "";
612
- message.application_date = object.application_date ?? "";
613
- message.bill_cycle_day = object.bill_cycle_day ?? undefined;
614
- message.group_id = object.group_id ?? undefined;
615
- message.pmt_ref_no = object.pmt_ref_no ?? "";
314
+ const message = createBaseCard();
315
+ message.id = object.id ?? "";
316
+ message.activation_status = object.activation_status ?? "";
317
+ message.available_balance = object.available_balance ?? "";
318
+ message.bin = object.bin ?? "";
319
+ message.card_brand = object.card_brand ?? "";
320
+ message.card_type = object.card_type ?? "";
321
+ message.cardholder = object.cardholder ?? "";
322
+ message.client_id = object.client_id ?? "";
323
+ message.client_name = object.client_name ?? "";
324
+ message.contract_id = object.contract_id ?? "";
325
+ message.credit_limit = object.credit_limit ?? "";
326
+ message.is_active = object.is_active ?? false;
327
+ message.is_virtual = object.is_virtual ?? false;
328
+ message.limit_amount = object.limit_amount ?? "";
329
+ message.pan = object.pan ?? "";
330
+ message.payment_due_date = object.payment_due_date ?? "";
331
+ message.physical_card_id = object.physical_card_id ?? "";
332
+ message.product = object.product ?? "";
616
333
  message.product_id = object.product_id ?? "";
617
- message.start_date = object.start_date ?? "";
618
- message.status = object.status ?? "";
619
- message.cards = object.cards?.map((e) => exports.CardContractCards.fromPartial(e)) || [];
620
- return message;
621
- },
622
- };
623
- function createBaseCardContractCards() {
624
- return {
625
- card_id: "",
626
- card_number: "",
627
- emboss_uuid: "",
628
- card_status: "",
629
- expiry_date: "",
630
- external_card_id: undefined,
631
- pin_fail_count: "",
632
- pin_fail_date: undefined,
633
- freeze_info: undefined,
634
- embossed_cards: [],
635
- };
636
- }
637
- exports.CardContractCards = {
638
- encode(message, writer = new wire_1.BinaryWriter()) {
639
- if (message.card_id !== "") {
640
- writer.uint32(10).string(message.card_id);
641
- }
642
- if (message.card_number !== "") {
643
- writer.uint32(18).string(message.card_number);
644
- }
645
- if (message.emboss_uuid !== "") {
646
- writer.uint32(26).string(message.emboss_uuid);
647
- }
648
- if (message.card_status !== "") {
649
- writer.uint32(34).string(message.card_status);
650
- }
651
- if (message.expiry_date !== "") {
652
- writer.uint32(42).string(message.expiry_date);
653
- }
654
- if (message.external_card_id !== undefined) {
655
- writer.uint32(50).string(message.external_card_id);
656
- }
657
- if (message.pin_fail_count !== "") {
658
- writer.uint32(58).string(message.pin_fail_count);
659
- }
660
- if (message.pin_fail_date !== undefined) {
661
- writer.uint32(66).string(message.pin_fail_date);
662
- }
663
- if (message.freeze_info !== undefined) {
664
- exports.FreezeInfo.encode(message.freeze_info, writer.uint32(74).fork()).join();
665
- }
666
- for (const v of message.embossed_cards) {
667
- exports.EmbossedCard.encode(v, writer.uint32(82).fork()).join();
668
- }
669
- return writer;
670
- },
671
- decode(input, length) {
672
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
673
- const end = length === undefined ? reader.len : reader.pos + length;
674
- const message = createBaseCardContractCards();
675
- while (reader.pos < end) {
676
- const tag = reader.uint32();
677
- switch (tag >>> 3) {
678
- case 1: {
679
- if (tag !== 10) {
680
- break;
681
- }
682
- message.card_id = reader.string();
683
- continue;
684
- }
685
- case 2: {
686
- if (tag !== 18) {
687
- break;
688
- }
689
- message.card_number = reader.string();
690
- continue;
691
- }
692
- case 3: {
693
- if (tag !== 26) {
694
- break;
695
- }
696
- message.emboss_uuid = reader.string();
697
- continue;
698
- }
699
- case 4: {
700
- if (tag !== 34) {
701
- break;
702
- }
703
- message.card_status = reader.string();
704
- continue;
705
- }
706
- case 5: {
707
- if (tag !== 42) {
708
- break;
709
- }
710
- message.expiry_date = reader.string();
711
- continue;
712
- }
713
- case 6: {
714
- if (tag !== 50) {
715
- break;
716
- }
717
- message.external_card_id = reader.string();
718
- continue;
719
- }
720
- case 7: {
721
- if (tag !== 58) {
722
- break;
723
- }
724
- message.pin_fail_count = reader.string();
725
- continue;
726
- }
727
- case 8: {
728
- if (tag !== 66) {
729
- break;
730
- }
731
- message.pin_fail_date = reader.string();
732
- continue;
733
- }
734
- case 9: {
735
- if (tag !== 74) {
736
- break;
737
- }
738
- message.freeze_info = exports.FreezeInfo.decode(reader, reader.uint32());
739
- continue;
740
- }
741
- case 10: {
742
- if (tag !== 82) {
743
- break;
744
- }
745
- message.embossed_cards.push(exports.EmbossedCard.decode(reader, reader.uint32()));
746
- continue;
747
- }
748
- }
749
- if ((tag & 7) === 4 || tag === 0) {
750
- break;
751
- }
752
- reader.skip(tag & 7);
753
- }
754
- return message;
755
- },
756
- create(base) {
757
- return exports.CardContractCards.fromPartial(base ?? {});
758
- },
759
- fromPartial(object) {
760
- const message = createBaseCardContractCards();
761
- message.card_id = object.card_id ?? "";
762
- message.card_number = object.card_number ?? "";
763
- message.emboss_uuid = object.emboss_uuid ?? "";
764
- message.card_status = object.card_status ?? "";
765
- message.expiry_date = object.expiry_date ?? "";
766
- message.external_card_id = object.external_card_id ?? undefined;
767
- message.pin_fail_count = object.pin_fail_count ?? "";
768
- message.pin_fail_date = object.pin_fail_date ?? undefined;
769
- message.freeze_info = (object.freeze_info !== undefined && object.freeze_info !== null)
770
- ? exports.FreezeInfo.fromPartial(object.freeze_info)
771
- : undefined;
772
- message.embossed_cards = object.embossed_cards?.map((e) => exports.EmbossedCard.fromPartial(e)) || [];
773
- return message;
774
- },
775
- };
776
- function createBaseFreezeInfo() {
777
- return { status: "", start_date: undefined, end_date: undefined };
778
- }
779
- exports.FreezeInfo = {
780
- encode(message, writer = new wire_1.BinaryWriter()) {
781
- if (message.status !== "") {
782
- writer.uint32(10).string(message.status);
783
- }
784
- if (message.start_date !== undefined) {
785
- writer.uint32(18).string(message.start_date);
786
- }
787
- if (message.end_date !== undefined) {
788
- writer.uint32(26).string(message.end_date);
789
- }
790
- return writer;
791
- },
792
- decode(input, length) {
793
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
794
- const end = length === undefined ? reader.len : reader.pos + length;
795
- const message = createBaseFreezeInfo();
796
- while (reader.pos < end) {
797
- const tag = reader.uint32();
798
- switch (tag >>> 3) {
799
- case 1: {
800
- if (tag !== 10) {
801
- break;
802
- }
803
- message.status = reader.string();
804
- continue;
805
- }
806
- case 2: {
807
- if (tag !== 18) {
808
- break;
809
- }
810
- message.start_date = reader.string();
811
- continue;
812
- }
813
- case 3: {
814
- if (tag !== 26) {
815
- break;
816
- }
817
- message.end_date = reader.string();
818
- continue;
819
- }
820
- }
821
- if ((tag & 7) === 4 || tag === 0) {
822
- break;
823
- }
824
- reader.skip(tag & 7);
825
- }
826
- return message;
827
- },
828
- create(base) {
829
- return exports.FreezeInfo.fromPartial(base ?? {});
830
- },
831
- fromPartial(object) {
832
- const message = createBaseFreezeInfo();
833
- message.status = object.status ?? "";
834
- message.start_date = object.start_date ?? undefined;
835
- message.end_date = object.end_date ?? undefined;
836
- return message;
837
- },
838
- };
839
- function createBaseEmbossedCard() {
840
- return {
841
- created_date: "",
842
- emboss_uuid: "",
843
- emboss_date: "",
844
- expiry_date: "",
845
- status: "",
846
- shipping_type: "",
847
- product_id: "",
848
- };
849
- }
850
- exports.EmbossedCard = {
851
- encode(message, writer = new wire_1.BinaryWriter()) {
852
- if (message.created_date !== "") {
853
- writer.uint32(10).string(message.created_date);
854
- }
855
- if (message.emboss_uuid !== "") {
856
- writer.uint32(18).string(message.emboss_uuid);
857
- }
858
- if (message.emboss_date !== "") {
859
- writer.uint32(26).string(message.emboss_date);
860
- }
861
- if (message.expiry_date !== "") {
862
- writer.uint32(34).string(message.expiry_date);
863
- }
864
- if (message.status !== "") {
865
- writer.uint32(42).string(message.status);
866
- }
867
- if (message.shipping_type !== "") {
868
- writer.uint32(50).string(message.shipping_type);
869
- }
870
- if (message.product_id !== "") {
871
- writer.uint32(58).string(message.product_id);
872
- }
873
- return writer;
874
- },
875
- decode(input, length) {
876
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
877
- const end = length === undefined ? reader.len : reader.pos + length;
878
- const message = createBaseEmbossedCard();
879
- while (reader.pos < end) {
880
- const tag = reader.uint32();
881
- switch (tag >>> 3) {
882
- case 1: {
883
- if (tag !== 10) {
884
- break;
885
- }
886
- message.created_date = reader.string();
887
- continue;
888
- }
889
- case 2: {
890
- if (tag !== 18) {
891
- break;
892
- }
893
- message.emboss_uuid = reader.string();
894
- continue;
895
- }
896
- case 3: {
897
- if (tag !== 26) {
898
- break;
899
- }
900
- message.emboss_date = reader.string();
901
- continue;
902
- }
903
- case 4: {
904
- if (tag !== 34) {
905
- break;
906
- }
907
- message.expiry_date = reader.string();
908
- continue;
909
- }
910
- case 5: {
911
- if (tag !== 42) {
912
- break;
913
- }
914
- message.status = reader.string();
915
- continue;
916
- }
917
- case 6: {
918
- if (tag !== 50) {
919
- break;
920
- }
921
- message.shipping_type = reader.string();
922
- continue;
923
- }
924
- case 7: {
925
- if (tag !== 58) {
926
- break;
927
- }
928
- message.product_id = reader.string();
929
- continue;
930
- }
931
- }
932
- if ((tag & 7) === 4 || tag === 0) {
933
- break;
934
- }
935
- reader.skip(tag & 7);
936
- }
937
- return message;
938
- },
939
- create(base) {
940
- return exports.EmbossedCard.fromPartial(base ?? {});
941
- },
942
- fromPartial(object) {
943
- const message = createBaseEmbossedCard();
944
- message.created_date = object.created_date ?? "";
945
- message.emboss_uuid = object.emboss_uuid ?? "";
946
- message.emboss_date = object.emboss_date ?? "";
947
- message.expiry_date = object.expiry_date ?? "";
948
- message.status = object.status ?? "";
949
- message.shipping_type = object.shipping_type ?? "";
950
- message.product_id = object.product_id ?? "";
951
- return message;
952
- },
953
- };
954
- function createBaseSpendControls() {
955
- return { available_credit: undefined, single_use: undefined, credit_limit: undefined };
956
- }
957
- exports.SpendControls = {
958
- encode(message, writer = new wire_1.BinaryWriter()) {
959
- if (message.available_credit !== undefined) {
960
- writer.uint32(10).string(message.available_credit);
961
- }
962
- if (message.single_use !== undefined) {
963
- writer.uint32(18).string(message.single_use);
964
- }
965
- if (message.credit_limit !== undefined) {
966
- writer.uint32(26).string(message.credit_limit);
967
- }
968
- return writer;
969
- },
970
- decode(input, length) {
971
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
972
- const end = length === undefined ? reader.len : reader.pos + length;
973
- const message = createBaseSpendControls();
974
- while (reader.pos < end) {
975
- const tag = reader.uint32();
976
- switch (tag >>> 3) {
977
- case 1: {
978
- if (tag !== 10) {
979
- break;
980
- }
981
- message.available_credit = reader.string();
982
- continue;
983
- }
984
- case 2: {
985
- if (tag !== 18) {
986
- break;
987
- }
988
- message.single_use = reader.string();
989
- continue;
990
- }
991
- case 3: {
992
- if (tag !== 26) {
993
- break;
994
- }
995
- message.credit_limit = reader.string();
996
- continue;
997
- }
998
- }
999
- if ((tag & 7) === 4 || tag === 0) {
1000
- break;
1001
- }
1002
- reader.skip(tag & 7);
1003
- }
1004
- return message;
1005
- },
1006
- create(base) {
1007
- return exports.SpendControls.fromPartial(base ?? {});
1008
- },
1009
- fromPartial(object) {
1010
- const message = createBaseSpendControls();
1011
- message.available_credit = object.available_credit ?? undefined;
1012
- message.single_use = object.single_use ?? undefined;
1013
- message.credit_limit = object.credit_limit ?? undefined;
1014
- return message;
1015
- },
1016
- };
1017
- function createBaseContractCardReissue() {
1018
- return {
1019
- card_number: "",
1020
- expiry_date: undefined,
1021
- card_security_code: undefined,
1022
- status: "",
1023
- card_id: "",
1024
- emboss_uuid: undefined,
1025
- external_card_id: undefined,
1026
- pmt_ref_no: "",
1027
- first_name: undefined,
1028
- middle_name: undefined,
1029
- last_name: undefined,
1030
- encrypted_card_number: undefined,
1031
- encrypted_expiry_date: undefined,
1032
- embossed_cards: [],
1033
- pin_fail_count: undefined,
1034
- pin_fail_date: undefined,
1035
- freeze_info: undefined,
1036
- spend_controls: undefined,
1037
- };
1038
- }
1039
- exports.ContractCardReissue = {
1040
- encode(message, writer = new wire_1.BinaryWriter()) {
1041
- if (message.card_number !== "") {
1042
- writer.uint32(10).string(message.card_number);
1043
- }
1044
- if (message.expiry_date !== undefined) {
1045
- writer.uint32(18).string(message.expiry_date);
1046
- }
1047
- if (message.card_security_code !== undefined) {
1048
- writer.uint32(26).string(message.card_security_code);
1049
- }
1050
- if (message.status !== "") {
1051
- writer.uint32(34).string(message.status);
1052
- }
1053
- if (message.card_id !== "") {
1054
- writer.uint32(42).string(message.card_id);
1055
- }
1056
- if (message.emboss_uuid !== undefined) {
1057
- writer.uint32(50).string(message.emboss_uuid);
1058
- }
1059
- if (message.external_card_id !== undefined) {
1060
- writer.uint32(58).string(message.external_card_id);
1061
- }
1062
- if (message.pmt_ref_no !== "") {
1063
- writer.uint32(66).string(message.pmt_ref_no);
1064
- }
1065
- if (message.first_name !== undefined) {
1066
- writer.uint32(74).string(message.first_name);
1067
- }
1068
- if (message.middle_name !== undefined) {
1069
- writer.uint32(82).string(message.middle_name);
1070
- }
1071
- if (message.last_name !== undefined) {
1072
- writer.uint32(90).string(message.last_name);
1073
- }
1074
- if (message.encrypted_card_number !== undefined) {
1075
- writer.uint32(98).string(message.encrypted_card_number);
1076
- }
1077
- if (message.encrypted_expiry_date !== undefined) {
1078
- writer.uint32(106).string(message.encrypted_expiry_date);
1079
- }
1080
- for (const v of message.embossed_cards) {
1081
- exports.EmbossedCard.encode(v, writer.uint32(114).fork()).join();
1082
- }
1083
- if (message.pin_fail_count !== undefined) {
1084
- writer.uint32(122).string(message.pin_fail_count);
1085
- }
1086
- if (message.pin_fail_date !== undefined) {
1087
- writer.uint32(130).string(message.pin_fail_date);
1088
- }
1089
- if (message.freeze_info !== undefined) {
1090
- exports.FreezeInfo.encode(message.freeze_info, writer.uint32(138).fork()).join();
1091
- }
1092
- if (message.spend_controls !== undefined) {
1093
- exports.SpendControls.encode(message.spend_controls, writer.uint32(146).fork()).join();
1094
- }
1095
- return writer;
1096
- },
1097
- decode(input, length) {
1098
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1099
- const end = length === undefined ? reader.len : reader.pos + length;
1100
- const message = createBaseContractCardReissue();
1101
- while (reader.pos < end) {
1102
- const tag = reader.uint32();
1103
- switch (tag >>> 3) {
1104
- case 1: {
1105
- if (tag !== 10) {
1106
- break;
1107
- }
1108
- message.card_number = reader.string();
1109
- continue;
1110
- }
1111
- case 2: {
1112
- if (tag !== 18) {
1113
- break;
1114
- }
1115
- message.expiry_date = reader.string();
1116
- continue;
1117
- }
1118
- case 3: {
1119
- if (tag !== 26) {
1120
- break;
1121
- }
1122
- message.card_security_code = reader.string();
1123
- continue;
1124
- }
1125
- case 4: {
1126
- if (tag !== 34) {
1127
- break;
1128
- }
1129
- message.status = reader.string();
1130
- continue;
1131
- }
1132
- case 5: {
1133
- if (tag !== 42) {
1134
- break;
1135
- }
1136
- message.card_id = reader.string();
1137
- continue;
1138
- }
1139
- case 6: {
1140
- if (tag !== 50) {
1141
- break;
1142
- }
1143
- message.emboss_uuid = reader.string();
1144
- continue;
1145
- }
1146
- case 7: {
1147
- if (tag !== 58) {
1148
- break;
1149
- }
1150
- message.external_card_id = reader.string();
1151
- continue;
1152
- }
1153
- case 8: {
1154
- if (tag !== 66) {
1155
- break;
1156
- }
1157
- message.pmt_ref_no = reader.string();
1158
- continue;
1159
- }
1160
- case 9: {
1161
- if (tag !== 74) {
1162
- break;
1163
- }
1164
- message.first_name = reader.string();
1165
- continue;
1166
- }
1167
- case 10: {
1168
- if (tag !== 82) {
1169
- break;
1170
- }
1171
- message.middle_name = reader.string();
1172
- continue;
1173
- }
1174
- case 11: {
1175
- if (tag !== 90) {
1176
- break;
1177
- }
1178
- message.last_name = reader.string();
1179
- continue;
1180
- }
1181
- case 12: {
1182
- if (tag !== 98) {
1183
- break;
1184
- }
1185
- message.encrypted_card_number = reader.string();
1186
- continue;
1187
- }
1188
- case 13: {
1189
- if (tag !== 106) {
1190
- break;
1191
- }
1192
- message.encrypted_expiry_date = reader.string();
1193
- continue;
1194
- }
1195
- case 14: {
1196
- if (tag !== 114) {
1197
- break;
1198
- }
1199
- message.embossed_cards.push(exports.EmbossedCard.decode(reader, reader.uint32()));
1200
- continue;
1201
- }
1202
- case 15: {
1203
- if (tag !== 122) {
1204
- break;
1205
- }
1206
- message.pin_fail_count = reader.string();
1207
- continue;
1208
- }
1209
- case 16: {
1210
- if (tag !== 130) {
1211
- break;
1212
- }
1213
- message.pin_fail_date = reader.string();
1214
- continue;
1215
- }
1216
- case 17: {
1217
- if (tag !== 138) {
1218
- break;
1219
- }
1220
- message.freeze_info = exports.FreezeInfo.decode(reader, reader.uint32());
1221
- continue;
1222
- }
1223
- case 18: {
1224
- if (tag !== 146) {
1225
- break;
1226
- }
1227
- message.spend_controls = exports.SpendControls.decode(reader, reader.uint32());
1228
- continue;
1229
- }
1230
- }
1231
- if ((tag & 7) === 4 || tag === 0) {
1232
- break;
1233
- }
1234
- reader.skip(tag & 7);
1235
- }
1236
- return message;
1237
- },
1238
- create(base) {
1239
- return exports.ContractCardReissue.fromPartial(base ?? {});
1240
- },
1241
- fromPartial(object) {
1242
- const message = createBaseContractCardReissue();
1243
- message.card_number = object.card_number ?? "";
1244
- message.expiry_date = object.expiry_date ?? undefined;
1245
- message.card_security_code = object.card_security_code ?? undefined;
1246
334
  message.status = object.status ?? "";
1247
- message.card_id = object.card_id ?? "";
1248
- message.emboss_uuid = object.emboss_uuid ?? undefined;
1249
- message.external_card_id = object.external_card_id ?? undefined;
1250
- message.pmt_ref_no = object.pmt_ref_no ?? "";
1251
- message.first_name = object.first_name ?? undefined;
1252
- message.middle_name = object.middle_name ?? undefined;
1253
- message.last_name = object.last_name ?? undefined;
1254
- message.encrypted_card_number = object.encrypted_card_number ?? undefined;
1255
- message.encrypted_expiry_date = object.encrypted_expiry_date ?? undefined;
1256
- message.embossed_cards = object.embossed_cards?.map((e) => exports.EmbossedCard.fromPartial(e)) || [];
1257
- message.pin_fail_count = object.pin_fail_count ?? undefined;
1258
- message.pin_fail_date = object.pin_fail_date ?? undefined;
1259
- message.freeze_info = (object.freeze_info !== undefined && object.freeze_info !== null)
1260
- ? exports.FreezeInfo.fromPartial(object.freeze_info)
1261
- : undefined;
1262
- message.spend_controls = (object.spend_controls !== undefined && object.spend_controls !== null)
1263
- ? exports.SpendControls.fromPartial(object.spend_controls)
1264
- : undefined;
335
+ message.status_id = object.status_id ?? "";
336
+ message.created_by = object.created_by ?? "";
337
+ message.updated_by = object.updated_by ?? "";
338
+ message.created_at = object.created_at ?? "";
339
+ message.updated_at = object.updated_at ?? "";
1265
340
  return message;
1266
341
  },
1267
342
  };