@stashfin/grpc 1.2.867 → 1.2.868
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.
- package/package.json +1 -1
- package/ts/bbps/getbillforreminder.d.ts +54 -24
- package/ts/bbps/getbillforreminder.js +368 -175
package/package.json
CHANGED
|
@@ -27,28 +27,42 @@ export interface AdditionalValidationDetail {
|
|
|
27
27
|
parameter_name: string;
|
|
28
28
|
value: string;
|
|
29
29
|
}
|
|
30
|
-
/** Response message
|
|
30
|
+
/** Response message for bill fetch */
|
|
31
31
|
export interface BillFetchResponse {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/** Bill data structure (similar to getbills.proto) */
|
|
37
|
-
export interface BillData {
|
|
38
|
-
id: number;
|
|
32
|
+
customer_id: number;
|
|
33
|
+
validation_id: string;
|
|
34
|
+
biller_id: string;
|
|
35
|
+
vendor_id: number;
|
|
39
36
|
utility_id: number;
|
|
40
37
|
utility_name: string;
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
provider_name: string;
|
|
39
|
+
provider_logo: string;
|
|
40
|
+
customer_name: string;
|
|
43
41
|
account_no: string;
|
|
44
42
|
bill_amount: number;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
bill_number: string;
|
|
44
|
+
customer_params: CustomerParams[];
|
|
45
|
+
additional_validation_details: AdditionalValidationDetails[];
|
|
46
|
+
bill_date?: string | undefined;
|
|
47
|
+
bill_duedate?: string | undefined;
|
|
48
|
+
bill_status: string;
|
|
49
|
+
additional_details: AdditionalDetail[];
|
|
50
|
+
billperiod?: string | undefined;
|
|
51
|
+
}
|
|
52
|
+
/** Customer parameters structure */
|
|
53
|
+
export interface CustomerParams {
|
|
54
|
+
parameter_name: string;
|
|
55
|
+
value: string;
|
|
56
|
+
}
|
|
57
|
+
/** Additional validation details structure */
|
|
58
|
+
export interface AdditionalValidationDetails {
|
|
59
|
+
parameter_name: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}
|
|
62
|
+
/** Additional details structure for key-value pairs */
|
|
63
|
+
export interface AdditionalDetail {
|
|
64
|
+
key: string;
|
|
65
|
+
value: string;
|
|
52
66
|
}
|
|
53
67
|
export declare const BillFetchRequest: {
|
|
54
68
|
encode(message: BillFetchRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -90,13 +104,29 @@ export declare const BillFetchResponse: {
|
|
|
90
104
|
create<I extends Exact<DeepPartial<BillFetchResponse>, I>>(base?: I): BillFetchResponse;
|
|
91
105
|
fromPartial<I extends Exact<DeepPartial<BillFetchResponse>, I>>(object: I): BillFetchResponse;
|
|
92
106
|
};
|
|
93
|
-
export declare const
|
|
94
|
-
encode(message:
|
|
95
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
96
|
-
fromJSON(object: any):
|
|
97
|
-
toJSON(message:
|
|
98
|
-
create<I extends Exact<DeepPartial<
|
|
99
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
107
|
+
export declare const CustomerParams: {
|
|
108
|
+
encode(message: CustomerParams, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CustomerParams;
|
|
110
|
+
fromJSON(object: any): CustomerParams;
|
|
111
|
+
toJSON(message: CustomerParams): unknown;
|
|
112
|
+
create<I extends Exact<DeepPartial<CustomerParams>, I>>(base?: I): CustomerParams;
|
|
113
|
+
fromPartial<I extends Exact<DeepPartial<CustomerParams>, I>>(object: I): CustomerParams;
|
|
114
|
+
};
|
|
115
|
+
export declare const AdditionalValidationDetails: {
|
|
116
|
+
encode(message: AdditionalValidationDetails, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AdditionalValidationDetails;
|
|
118
|
+
fromJSON(object: any): AdditionalValidationDetails;
|
|
119
|
+
toJSON(message: AdditionalValidationDetails): unknown;
|
|
120
|
+
create<I extends Exact<DeepPartial<AdditionalValidationDetails>, I>>(base?: I): AdditionalValidationDetails;
|
|
121
|
+
fromPartial<I extends Exact<DeepPartial<AdditionalValidationDetails>, I>>(object: I): AdditionalValidationDetails;
|
|
122
|
+
};
|
|
123
|
+
export declare const AdditionalDetail: {
|
|
124
|
+
encode(message: AdditionalDetail, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AdditionalDetail;
|
|
126
|
+
fromJSON(object: any): AdditionalDetail;
|
|
127
|
+
toJSON(message: AdditionalDetail): unknown;
|
|
128
|
+
create<I extends Exact<DeepPartial<AdditionalDetail>, I>>(base?: I): AdditionalDetail;
|
|
129
|
+
fromPartial<I extends Exact<DeepPartial<AdditionalDetail>, I>>(object: I): AdditionalDetail;
|
|
100
130
|
};
|
|
101
131
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
102
132
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.AdditionalDetail = exports.AdditionalValidationDetails = exports.CustomerParams = exports.BillFetchResponse = exports.AdditionalValidationDetail = exports.Authenticator = exports.CustomerProfile = exports.BillFetchRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const long_1 = __importDefault(require("long"));
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -389,155 +389,93 @@ exports.AdditionalValidationDetail = {
|
|
|
389
389
|
},
|
|
390
390
|
};
|
|
391
391
|
function createBaseBillFetchResponse() {
|
|
392
|
-
return { success: false, message: "", bill_data: undefined };
|
|
393
|
-
}
|
|
394
|
-
exports.BillFetchResponse = {
|
|
395
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
396
|
-
if (message.success !== false) {
|
|
397
|
-
writer.uint32(8).bool(message.success);
|
|
398
|
-
}
|
|
399
|
-
if (message.message !== "") {
|
|
400
|
-
writer.uint32(18).string(message.message);
|
|
401
|
-
}
|
|
402
|
-
if (message.bill_data !== undefined) {
|
|
403
|
-
exports.BillData.encode(message.bill_data, writer.uint32(26).fork()).ldelim();
|
|
404
|
-
}
|
|
405
|
-
return writer;
|
|
406
|
-
},
|
|
407
|
-
decode(input, length) {
|
|
408
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
409
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
410
|
-
const message = createBaseBillFetchResponse();
|
|
411
|
-
while (reader.pos < end) {
|
|
412
|
-
const tag = reader.uint32();
|
|
413
|
-
switch (tag >>> 3) {
|
|
414
|
-
case 1:
|
|
415
|
-
if (tag !== 8) {
|
|
416
|
-
break;
|
|
417
|
-
}
|
|
418
|
-
message.success = reader.bool();
|
|
419
|
-
continue;
|
|
420
|
-
case 2:
|
|
421
|
-
if (tag !== 18) {
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
message.message = reader.string();
|
|
425
|
-
continue;
|
|
426
|
-
case 3:
|
|
427
|
-
if (tag !== 26) {
|
|
428
|
-
break;
|
|
429
|
-
}
|
|
430
|
-
message.bill_data = exports.BillData.decode(reader, reader.uint32());
|
|
431
|
-
continue;
|
|
432
|
-
}
|
|
433
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
reader.skipType(tag & 7);
|
|
437
|
-
}
|
|
438
|
-
return message;
|
|
439
|
-
},
|
|
440
|
-
fromJSON(object) {
|
|
441
|
-
return {
|
|
442
|
-
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
443
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
444
|
-
bill_data: isSet(object.bill_data) ? exports.BillData.fromJSON(object.bill_data) : undefined,
|
|
445
|
-
};
|
|
446
|
-
},
|
|
447
|
-
toJSON(message) {
|
|
448
|
-
const obj = {};
|
|
449
|
-
if (message.success !== false) {
|
|
450
|
-
obj.success = message.success;
|
|
451
|
-
}
|
|
452
|
-
if (message.message !== "") {
|
|
453
|
-
obj.message = message.message;
|
|
454
|
-
}
|
|
455
|
-
if (message.bill_data !== undefined) {
|
|
456
|
-
obj.bill_data = exports.BillData.toJSON(message.bill_data);
|
|
457
|
-
}
|
|
458
|
-
return obj;
|
|
459
|
-
},
|
|
460
|
-
create(base) {
|
|
461
|
-
return exports.BillFetchResponse.fromPartial(base ?? {});
|
|
462
|
-
},
|
|
463
|
-
fromPartial(object) {
|
|
464
|
-
const message = createBaseBillFetchResponse();
|
|
465
|
-
message.success = object.success ?? false;
|
|
466
|
-
message.message = object.message ?? "";
|
|
467
|
-
message.bill_data = (object.bill_data !== undefined && object.bill_data !== null)
|
|
468
|
-
? exports.BillData.fromPartial(object.bill_data)
|
|
469
|
-
: undefined;
|
|
470
|
-
return message;
|
|
471
|
-
},
|
|
472
|
-
};
|
|
473
|
-
function createBaseBillData() {
|
|
474
392
|
return {
|
|
475
|
-
|
|
393
|
+
customer_id: 0,
|
|
394
|
+
validation_id: "",
|
|
395
|
+
biller_id: "",
|
|
396
|
+
vendor_id: 0,
|
|
476
397
|
utility_id: 0,
|
|
477
398
|
utility_name: "",
|
|
478
|
-
|
|
479
|
-
|
|
399
|
+
provider_name: "",
|
|
400
|
+
provider_logo: "",
|
|
401
|
+
customer_name: "",
|
|
480
402
|
account_no: "",
|
|
481
403
|
bill_amount: 0,
|
|
482
|
-
|
|
483
|
-
is_due: false,
|
|
484
|
-
note: "",
|
|
485
|
-
is_pending: false,
|
|
486
|
-
is_failed: false,
|
|
404
|
+
bill_number: "",
|
|
487
405
|
customer_params: [],
|
|
488
406
|
additional_validation_details: [],
|
|
407
|
+
bill_date: undefined,
|
|
408
|
+
bill_duedate: undefined,
|
|
409
|
+
bill_status: "",
|
|
410
|
+
additional_details: [],
|
|
411
|
+
billperiod: undefined,
|
|
489
412
|
};
|
|
490
413
|
}
|
|
491
|
-
exports.
|
|
414
|
+
exports.BillFetchResponse = {
|
|
492
415
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
493
|
-
if (message.
|
|
494
|
-
writer.uint32(8).int64(message.
|
|
416
|
+
if (message.customer_id !== 0) {
|
|
417
|
+
writer.uint32(8).int64(message.customer_id);
|
|
495
418
|
}
|
|
496
|
-
if (message.
|
|
497
|
-
writer.uint32(
|
|
419
|
+
if (message.validation_id !== "") {
|
|
420
|
+
writer.uint32(18).string(message.validation_id);
|
|
498
421
|
}
|
|
499
|
-
if (message.
|
|
500
|
-
writer.uint32(26).string(message.
|
|
422
|
+
if (message.biller_id !== "") {
|
|
423
|
+
writer.uint32(26).string(message.biller_id);
|
|
501
424
|
}
|
|
502
425
|
if (message.vendor_id !== 0) {
|
|
503
426
|
writer.uint32(32).int32(message.vendor_id);
|
|
504
427
|
}
|
|
505
|
-
if (message.
|
|
506
|
-
writer.uint32(
|
|
428
|
+
if (message.utility_id !== 0) {
|
|
429
|
+
writer.uint32(40).int32(message.utility_id);
|
|
507
430
|
}
|
|
508
|
-
if (message.
|
|
509
|
-
writer.uint32(50).string(message.
|
|
431
|
+
if (message.utility_name !== "") {
|
|
432
|
+
writer.uint32(50).string(message.utility_name);
|
|
510
433
|
}
|
|
511
|
-
if (message.
|
|
512
|
-
writer.uint32(
|
|
434
|
+
if (message.provider_name !== "") {
|
|
435
|
+
writer.uint32(58).string(message.provider_name);
|
|
513
436
|
}
|
|
514
437
|
if (message.provider_logo !== "") {
|
|
515
438
|
writer.uint32(66).string(message.provider_logo);
|
|
516
439
|
}
|
|
517
|
-
if (message.
|
|
518
|
-
writer.uint32(
|
|
440
|
+
if (message.customer_name !== "") {
|
|
441
|
+
writer.uint32(74).string(message.customer_name);
|
|
519
442
|
}
|
|
520
|
-
if (message.
|
|
521
|
-
writer.uint32(82).string(message.
|
|
443
|
+
if (message.account_no !== "") {
|
|
444
|
+
writer.uint32(82).string(message.account_no);
|
|
522
445
|
}
|
|
523
|
-
if (message.
|
|
524
|
-
writer.uint32(
|
|
446
|
+
if (message.bill_amount !== 0) {
|
|
447
|
+
writer.uint32(89).double(message.bill_amount);
|
|
525
448
|
}
|
|
526
|
-
if (message.
|
|
527
|
-
writer.uint32(
|
|
449
|
+
if (message.bill_number !== "") {
|
|
450
|
+
writer.uint32(98).string(message.bill_number);
|
|
528
451
|
}
|
|
529
452
|
for (const v of message.customer_params) {
|
|
530
|
-
exports.
|
|
453
|
+
exports.CustomerParams.encode(v, writer.uint32(106).fork()).ldelim();
|
|
531
454
|
}
|
|
532
455
|
for (const v of message.additional_validation_details) {
|
|
533
|
-
exports.
|
|
456
|
+
exports.AdditionalValidationDetails.encode(v, writer.uint32(114).fork()).ldelim();
|
|
457
|
+
}
|
|
458
|
+
if (message.bill_date !== undefined) {
|
|
459
|
+
writer.uint32(122).string(message.bill_date);
|
|
460
|
+
}
|
|
461
|
+
if (message.bill_duedate !== undefined) {
|
|
462
|
+
writer.uint32(130).string(message.bill_duedate);
|
|
463
|
+
}
|
|
464
|
+
if (message.bill_status !== "") {
|
|
465
|
+
writer.uint32(138).string(message.bill_status);
|
|
466
|
+
}
|
|
467
|
+
for (const v of message.additional_details) {
|
|
468
|
+
exports.AdditionalDetail.encode(v, writer.uint32(146).fork()).ldelim();
|
|
469
|
+
}
|
|
470
|
+
if (message.billperiod !== undefined) {
|
|
471
|
+
writer.uint32(154).string(message.billperiod);
|
|
534
472
|
}
|
|
535
473
|
return writer;
|
|
536
474
|
},
|
|
537
475
|
decode(input, length) {
|
|
538
476
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
539
477
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
540
|
-
const message =
|
|
478
|
+
const message = createBaseBillFetchResponse();
|
|
541
479
|
while (reader.pos < end) {
|
|
542
480
|
const tag = reader.uint32();
|
|
543
481
|
switch (tag >>> 3) {
|
|
@@ -545,19 +483,19 @@ exports.BillData = {
|
|
|
545
483
|
if (tag !== 8) {
|
|
546
484
|
break;
|
|
547
485
|
}
|
|
548
|
-
message.
|
|
486
|
+
message.customer_id = longToNumber(reader.int64());
|
|
549
487
|
continue;
|
|
550
488
|
case 2:
|
|
551
|
-
if (tag !==
|
|
489
|
+
if (tag !== 18) {
|
|
552
490
|
break;
|
|
553
491
|
}
|
|
554
|
-
message.
|
|
492
|
+
message.validation_id = reader.string();
|
|
555
493
|
continue;
|
|
556
494
|
case 3:
|
|
557
495
|
if (tag !== 26) {
|
|
558
496
|
break;
|
|
559
497
|
}
|
|
560
|
-
message.
|
|
498
|
+
message.biller_id = reader.string();
|
|
561
499
|
continue;
|
|
562
500
|
case 4:
|
|
563
501
|
if (tag !== 32) {
|
|
@@ -566,22 +504,22 @@ exports.BillData = {
|
|
|
566
504
|
message.vendor_id = reader.int32();
|
|
567
505
|
continue;
|
|
568
506
|
case 5:
|
|
569
|
-
if (tag !==
|
|
507
|
+
if (tag !== 40) {
|
|
570
508
|
break;
|
|
571
509
|
}
|
|
572
|
-
message.
|
|
510
|
+
message.utility_id = reader.int32();
|
|
573
511
|
continue;
|
|
574
512
|
case 6:
|
|
575
513
|
if (tag !== 50) {
|
|
576
514
|
break;
|
|
577
515
|
}
|
|
578
|
-
message.
|
|
516
|
+
message.utility_name = reader.string();
|
|
579
517
|
continue;
|
|
580
518
|
case 7:
|
|
581
|
-
if (tag !==
|
|
519
|
+
if (tag !== 58) {
|
|
582
520
|
break;
|
|
583
521
|
}
|
|
584
|
-
message.
|
|
522
|
+
message.provider_name = reader.string();
|
|
585
523
|
continue;
|
|
586
524
|
case 8:
|
|
587
525
|
if (tag !== 66) {
|
|
@@ -590,40 +528,70 @@ exports.BillData = {
|
|
|
590
528
|
message.provider_logo = reader.string();
|
|
591
529
|
continue;
|
|
592
530
|
case 9:
|
|
593
|
-
if (tag !==
|
|
531
|
+
if (tag !== 74) {
|
|
594
532
|
break;
|
|
595
533
|
}
|
|
596
|
-
message.
|
|
534
|
+
message.customer_name = reader.string();
|
|
597
535
|
continue;
|
|
598
536
|
case 10:
|
|
599
537
|
if (tag !== 82) {
|
|
600
538
|
break;
|
|
601
539
|
}
|
|
602
|
-
message.
|
|
540
|
+
message.account_no = reader.string();
|
|
603
541
|
continue;
|
|
604
542
|
case 11:
|
|
605
|
-
if (tag !==
|
|
543
|
+
if (tag !== 89) {
|
|
606
544
|
break;
|
|
607
545
|
}
|
|
608
|
-
message.
|
|
546
|
+
message.bill_amount = reader.double();
|
|
609
547
|
continue;
|
|
610
548
|
case 12:
|
|
611
|
-
if (tag !==
|
|
549
|
+
if (tag !== 98) {
|
|
612
550
|
break;
|
|
613
551
|
}
|
|
614
|
-
message.
|
|
552
|
+
message.bill_number = reader.string();
|
|
615
553
|
continue;
|
|
616
554
|
case 13:
|
|
617
555
|
if (tag !== 106) {
|
|
618
556
|
break;
|
|
619
557
|
}
|
|
620
|
-
message.customer_params.push(exports.
|
|
558
|
+
message.customer_params.push(exports.CustomerParams.decode(reader, reader.uint32()));
|
|
621
559
|
continue;
|
|
622
560
|
case 14:
|
|
623
561
|
if (tag !== 114) {
|
|
624
562
|
break;
|
|
625
563
|
}
|
|
626
|
-
message.additional_validation_details.push(exports.
|
|
564
|
+
message.additional_validation_details.push(exports.AdditionalValidationDetails.decode(reader, reader.uint32()));
|
|
565
|
+
continue;
|
|
566
|
+
case 15:
|
|
567
|
+
if (tag !== 122) {
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
message.bill_date = reader.string();
|
|
571
|
+
continue;
|
|
572
|
+
case 16:
|
|
573
|
+
if (tag !== 130) {
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
message.bill_duedate = reader.string();
|
|
577
|
+
continue;
|
|
578
|
+
case 17:
|
|
579
|
+
if (tag !== 138) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
message.bill_status = reader.string();
|
|
583
|
+
continue;
|
|
584
|
+
case 18:
|
|
585
|
+
if (tag !== 146) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
message.additional_details.push(exports.AdditionalDetail.decode(reader, reader.uint32()));
|
|
589
|
+
continue;
|
|
590
|
+
case 19:
|
|
591
|
+
if (tag !== 154) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
message.billperiod = reader.string();
|
|
627
595
|
continue;
|
|
628
596
|
}
|
|
629
597
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -635,30 +603,46 @@ exports.BillData = {
|
|
|
635
603
|
},
|
|
636
604
|
fromJSON(object) {
|
|
637
605
|
return {
|
|
638
|
-
|
|
606
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
607
|
+
validation_id: isSet(object.validation_id) ? globalThis.String(object.validation_id) : "",
|
|
608
|
+
biller_id: isSet(object.biller_id) ? globalThis.String(object.biller_id) : "",
|
|
609
|
+
vendor_id: isSet(object.vendor_id) ? globalThis.Number(object.vendor_id) : 0,
|
|
639
610
|
utility_id: isSet(object.utility_id) ? globalThis.Number(object.utility_id) : 0,
|
|
640
611
|
utility_name: isSet(object.utility_name) ? globalThis.String(object.utility_name) : "",
|
|
641
|
-
|
|
642
|
-
|
|
612
|
+
provider_name: isSet(object.provider_name) ? globalThis.String(object.provider_name) : "",
|
|
613
|
+
provider_logo: isSet(object.provider_logo) ? globalThis.String(object.provider_logo) : "",
|
|
614
|
+
customer_name: isSet(object.customer_name) ? globalThis.String(object.customer_name) : "",
|
|
643
615
|
account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : "",
|
|
644
616
|
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
645
|
-
|
|
646
|
-
is_due: isSet(object.is_due) ? globalThis.Boolean(object.is_due) : false,
|
|
647
|
-
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
648
|
-
is_pending: isSet(object.is_pending) ? globalThis.Boolean(object.is_pending) : false,
|
|
649
|
-
is_failed: isSet(object.is_failed) ? globalThis.Boolean(object.is_failed) : false,
|
|
617
|
+
bill_number: isSet(object.bill_number) ? globalThis.String(object.bill_number) : "",
|
|
650
618
|
customer_params: globalThis.Array.isArray(object?.customer_params)
|
|
651
|
-
? object.customer_params.map((e) => exports.
|
|
619
|
+
? object.customer_params.map((e) => exports.CustomerParams.fromJSON(e))
|
|
652
620
|
: [],
|
|
653
621
|
additional_validation_details: globalThis.Array.isArray(object?.additional_validation_details)
|
|
654
|
-
? object.additional_validation_details.map((e) => exports.
|
|
622
|
+
? object.additional_validation_details.map((e) => exports.AdditionalValidationDetails.fromJSON(e))
|
|
623
|
+
: [],
|
|
624
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : undefined,
|
|
625
|
+
bill_duedate: isSet(object.bill_duedate) ? globalThis.String(object.bill_duedate) : undefined,
|
|
626
|
+
bill_status: isSet(object.bill_status) ? globalThis.String(object.bill_status) : "",
|
|
627
|
+
additional_details: globalThis.Array.isArray(object?.additional_details)
|
|
628
|
+
? object.additional_details.map((e) => exports.AdditionalDetail.fromJSON(e))
|
|
655
629
|
: [],
|
|
630
|
+
billperiod: isSet(object.billperiod) ? globalThis.String(object.billperiod) : undefined,
|
|
656
631
|
};
|
|
657
632
|
},
|
|
658
633
|
toJSON(message) {
|
|
659
634
|
const obj = {};
|
|
660
|
-
if (message.
|
|
661
|
-
obj.
|
|
635
|
+
if (message.customer_id !== 0) {
|
|
636
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
637
|
+
}
|
|
638
|
+
if (message.validation_id !== "") {
|
|
639
|
+
obj.validation_id = message.validation_id;
|
|
640
|
+
}
|
|
641
|
+
if (message.biller_id !== "") {
|
|
642
|
+
obj.biller_id = message.biller_id;
|
|
643
|
+
}
|
|
644
|
+
if (message.vendor_id !== 0) {
|
|
645
|
+
obj.vendor_id = Math.round(message.vendor_id);
|
|
662
646
|
}
|
|
663
647
|
if (message.utility_id !== 0) {
|
|
664
648
|
obj.utility_id = Math.round(message.utility_id);
|
|
@@ -666,11 +650,14 @@ exports.BillData = {
|
|
|
666
650
|
if (message.utility_name !== "") {
|
|
667
651
|
obj.utility_name = message.utility_name;
|
|
668
652
|
}
|
|
669
|
-
if (message.
|
|
670
|
-
obj.
|
|
653
|
+
if (message.provider_name !== "") {
|
|
654
|
+
obj.provider_name = message.provider_name;
|
|
671
655
|
}
|
|
672
|
-
if (message.
|
|
673
|
-
obj.
|
|
656
|
+
if (message.provider_logo !== "") {
|
|
657
|
+
obj.provider_logo = message.provider_logo;
|
|
658
|
+
}
|
|
659
|
+
if (message.customer_name !== "") {
|
|
660
|
+
obj.customer_name = message.customer_name;
|
|
674
661
|
}
|
|
675
662
|
if (message.account_no !== "") {
|
|
676
663
|
obj.account_no = message.account_no;
|
|
@@ -678,49 +665,255 @@ exports.BillData = {
|
|
|
678
665
|
if (message.bill_amount !== 0) {
|
|
679
666
|
obj.bill_amount = message.bill_amount;
|
|
680
667
|
}
|
|
681
|
-
if (message.
|
|
682
|
-
obj.
|
|
668
|
+
if (message.bill_number !== "") {
|
|
669
|
+
obj.bill_number = message.bill_number;
|
|
683
670
|
}
|
|
684
|
-
if (message.
|
|
685
|
-
obj.
|
|
671
|
+
if (message.customer_params?.length) {
|
|
672
|
+
obj.customer_params = message.customer_params.map((e) => exports.CustomerParams.toJSON(e));
|
|
686
673
|
}
|
|
687
|
-
if (message.
|
|
688
|
-
obj.
|
|
674
|
+
if (message.additional_validation_details?.length) {
|
|
675
|
+
obj.additional_validation_details = message.additional_validation_details.map((e) => exports.AdditionalValidationDetails.toJSON(e));
|
|
689
676
|
}
|
|
690
|
-
if (message.
|
|
691
|
-
obj.
|
|
677
|
+
if (message.bill_date !== undefined) {
|
|
678
|
+
obj.bill_date = message.bill_date;
|
|
692
679
|
}
|
|
693
|
-
if (message.
|
|
694
|
-
obj.
|
|
680
|
+
if (message.bill_duedate !== undefined) {
|
|
681
|
+
obj.bill_duedate = message.bill_duedate;
|
|
695
682
|
}
|
|
696
|
-
if (message.
|
|
697
|
-
obj.
|
|
683
|
+
if (message.bill_status !== "") {
|
|
684
|
+
obj.bill_status = message.bill_status;
|
|
698
685
|
}
|
|
699
|
-
if (message.
|
|
700
|
-
obj.
|
|
686
|
+
if (message.additional_details?.length) {
|
|
687
|
+
obj.additional_details = message.additional_details.map((e) => exports.AdditionalDetail.toJSON(e));
|
|
688
|
+
}
|
|
689
|
+
if (message.billperiod !== undefined) {
|
|
690
|
+
obj.billperiod = message.billperiod;
|
|
701
691
|
}
|
|
702
692
|
return obj;
|
|
703
693
|
},
|
|
704
694
|
create(base) {
|
|
705
|
-
return exports.
|
|
695
|
+
return exports.BillFetchResponse.fromPartial(base ?? {});
|
|
706
696
|
},
|
|
707
697
|
fromPartial(object) {
|
|
708
|
-
const message =
|
|
709
|
-
message.
|
|
698
|
+
const message = createBaseBillFetchResponse();
|
|
699
|
+
message.customer_id = object.customer_id ?? 0;
|
|
700
|
+
message.validation_id = object.validation_id ?? "";
|
|
701
|
+
message.biller_id = object.biller_id ?? "";
|
|
702
|
+
message.vendor_id = object.vendor_id ?? 0;
|
|
710
703
|
message.utility_id = object.utility_id ?? 0;
|
|
711
704
|
message.utility_name = object.utility_name ?? "";
|
|
712
|
-
message.
|
|
713
|
-
message.
|
|
705
|
+
message.provider_name = object.provider_name ?? "";
|
|
706
|
+
message.provider_logo = object.provider_logo ?? "";
|
|
707
|
+
message.customer_name = object.customer_name ?? "";
|
|
714
708
|
message.account_no = object.account_no ?? "";
|
|
715
709
|
message.bill_amount = object.bill_amount ?? 0;
|
|
716
|
-
message.
|
|
717
|
-
message.
|
|
718
|
-
message.note = object.note ?? "";
|
|
719
|
-
message.is_pending = object.is_pending ?? false;
|
|
720
|
-
message.is_failed = object.is_failed ?? false;
|
|
721
|
-
message.customer_params = object.customer_params?.map((e) => exports.Authenticator.fromPartial(e)) || [];
|
|
710
|
+
message.bill_number = object.bill_number ?? "";
|
|
711
|
+
message.customer_params = object.customer_params?.map((e) => exports.CustomerParams.fromPartial(e)) || [];
|
|
722
712
|
message.additional_validation_details =
|
|
723
|
-
object.additional_validation_details?.map((e) => exports.
|
|
713
|
+
object.additional_validation_details?.map((e) => exports.AdditionalValidationDetails.fromPartial(e)) || [];
|
|
714
|
+
message.bill_date = object.bill_date ?? undefined;
|
|
715
|
+
message.bill_duedate = object.bill_duedate ?? undefined;
|
|
716
|
+
message.bill_status = object.bill_status ?? "";
|
|
717
|
+
message.additional_details = object.additional_details?.map((e) => exports.AdditionalDetail.fromPartial(e)) || [];
|
|
718
|
+
message.billperiod = object.billperiod ?? undefined;
|
|
719
|
+
return message;
|
|
720
|
+
},
|
|
721
|
+
};
|
|
722
|
+
function createBaseCustomerParams() {
|
|
723
|
+
return { parameter_name: "", value: "" };
|
|
724
|
+
}
|
|
725
|
+
exports.CustomerParams = {
|
|
726
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
727
|
+
if (message.parameter_name !== "") {
|
|
728
|
+
writer.uint32(10).string(message.parameter_name);
|
|
729
|
+
}
|
|
730
|
+
if (message.value !== "") {
|
|
731
|
+
writer.uint32(18).string(message.value);
|
|
732
|
+
}
|
|
733
|
+
return writer;
|
|
734
|
+
},
|
|
735
|
+
decode(input, length) {
|
|
736
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
737
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
738
|
+
const message = createBaseCustomerParams();
|
|
739
|
+
while (reader.pos < end) {
|
|
740
|
+
const tag = reader.uint32();
|
|
741
|
+
switch (tag >>> 3) {
|
|
742
|
+
case 1:
|
|
743
|
+
if (tag !== 10) {
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
message.parameter_name = reader.string();
|
|
747
|
+
continue;
|
|
748
|
+
case 2:
|
|
749
|
+
if (tag !== 18) {
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
message.value = reader.string();
|
|
753
|
+
continue;
|
|
754
|
+
}
|
|
755
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
reader.skipType(tag & 7);
|
|
759
|
+
}
|
|
760
|
+
return message;
|
|
761
|
+
},
|
|
762
|
+
fromJSON(object) {
|
|
763
|
+
return {
|
|
764
|
+
parameter_name: isSet(object.parameter_name) ? globalThis.String(object.parameter_name) : "",
|
|
765
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
766
|
+
};
|
|
767
|
+
},
|
|
768
|
+
toJSON(message) {
|
|
769
|
+
const obj = {};
|
|
770
|
+
if (message.parameter_name !== "") {
|
|
771
|
+
obj.parameter_name = message.parameter_name;
|
|
772
|
+
}
|
|
773
|
+
if (message.value !== "") {
|
|
774
|
+
obj.value = message.value;
|
|
775
|
+
}
|
|
776
|
+
return obj;
|
|
777
|
+
},
|
|
778
|
+
create(base) {
|
|
779
|
+
return exports.CustomerParams.fromPartial(base ?? {});
|
|
780
|
+
},
|
|
781
|
+
fromPartial(object) {
|
|
782
|
+
const message = createBaseCustomerParams();
|
|
783
|
+
message.parameter_name = object.parameter_name ?? "";
|
|
784
|
+
message.value = object.value ?? "";
|
|
785
|
+
return message;
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
function createBaseAdditionalValidationDetails() {
|
|
789
|
+
return { parameter_name: "", value: "" };
|
|
790
|
+
}
|
|
791
|
+
exports.AdditionalValidationDetails = {
|
|
792
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
793
|
+
if (message.parameter_name !== "") {
|
|
794
|
+
writer.uint32(10).string(message.parameter_name);
|
|
795
|
+
}
|
|
796
|
+
if (message.value !== "") {
|
|
797
|
+
writer.uint32(18).string(message.value);
|
|
798
|
+
}
|
|
799
|
+
return writer;
|
|
800
|
+
},
|
|
801
|
+
decode(input, length) {
|
|
802
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
803
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
804
|
+
const message = createBaseAdditionalValidationDetails();
|
|
805
|
+
while (reader.pos < end) {
|
|
806
|
+
const tag = reader.uint32();
|
|
807
|
+
switch (tag >>> 3) {
|
|
808
|
+
case 1:
|
|
809
|
+
if (tag !== 10) {
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
message.parameter_name = reader.string();
|
|
813
|
+
continue;
|
|
814
|
+
case 2:
|
|
815
|
+
if (tag !== 18) {
|
|
816
|
+
break;
|
|
817
|
+
}
|
|
818
|
+
message.value = reader.string();
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
reader.skipType(tag & 7);
|
|
825
|
+
}
|
|
826
|
+
return message;
|
|
827
|
+
},
|
|
828
|
+
fromJSON(object) {
|
|
829
|
+
return {
|
|
830
|
+
parameter_name: isSet(object.parameter_name) ? globalThis.String(object.parameter_name) : "",
|
|
831
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
832
|
+
};
|
|
833
|
+
},
|
|
834
|
+
toJSON(message) {
|
|
835
|
+
const obj = {};
|
|
836
|
+
if (message.parameter_name !== "") {
|
|
837
|
+
obj.parameter_name = message.parameter_name;
|
|
838
|
+
}
|
|
839
|
+
if (message.value !== "") {
|
|
840
|
+
obj.value = message.value;
|
|
841
|
+
}
|
|
842
|
+
return obj;
|
|
843
|
+
},
|
|
844
|
+
create(base) {
|
|
845
|
+
return exports.AdditionalValidationDetails.fromPartial(base ?? {});
|
|
846
|
+
},
|
|
847
|
+
fromPartial(object) {
|
|
848
|
+
const message = createBaseAdditionalValidationDetails();
|
|
849
|
+
message.parameter_name = object.parameter_name ?? "";
|
|
850
|
+
message.value = object.value ?? "";
|
|
851
|
+
return message;
|
|
852
|
+
},
|
|
853
|
+
};
|
|
854
|
+
function createBaseAdditionalDetail() {
|
|
855
|
+
return { key: "", value: "" };
|
|
856
|
+
}
|
|
857
|
+
exports.AdditionalDetail = {
|
|
858
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
859
|
+
if (message.key !== "") {
|
|
860
|
+
writer.uint32(10).string(message.key);
|
|
861
|
+
}
|
|
862
|
+
if (message.value !== "") {
|
|
863
|
+
writer.uint32(18).string(message.value);
|
|
864
|
+
}
|
|
865
|
+
return writer;
|
|
866
|
+
},
|
|
867
|
+
decode(input, length) {
|
|
868
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
869
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
870
|
+
const message = createBaseAdditionalDetail();
|
|
871
|
+
while (reader.pos < end) {
|
|
872
|
+
const tag = reader.uint32();
|
|
873
|
+
switch (tag >>> 3) {
|
|
874
|
+
case 1:
|
|
875
|
+
if (tag !== 10) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
message.key = reader.string();
|
|
879
|
+
continue;
|
|
880
|
+
case 2:
|
|
881
|
+
if (tag !== 18) {
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
message.value = reader.string();
|
|
885
|
+
continue;
|
|
886
|
+
}
|
|
887
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
reader.skipType(tag & 7);
|
|
891
|
+
}
|
|
892
|
+
return message;
|
|
893
|
+
},
|
|
894
|
+
fromJSON(object) {
|
|
895
|
+
return {
|
|
896
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
897
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
898
|
+
};
|
|
899
|
+
},
|
|
900
|
+
toJSON(message) {
|
|
901
|
+
const obj = {};
|
|
902
|
+
if (message.key !== "") {
|
|
903
|
+
obj.key = message.key;
|
|
904
|
+
}
|
|
905
|
+
if (message.value !== "") {
|
|
906
|
+
obj.value = message.value;
|
|
907
|
+
}
|
|
908
|
+
return obj;
|
|
909
|
+
},
|
|
910
|
+
create(base) {
|
|
911
|
+
return exports.AdditionalDetail.fromPartial(base ?? {});
|
|
912
|
+
},
|
|
913
|
+
fromPartial(object) {
|
|
914
|
+
const message = createBaseAdditionalDetail();
|
|
915
|
+
message.key = object.key ?? "";
|
|
916
|
+
message.value = object.value ?? "";
|
|
724
917
|
return message;
|
|
725
918
|
},
|
|
726
919
|
};
|