@stashfin/grpc 1.2.206 → 1.2.207

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.206",
3
+ "version": "1.2.207",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.enach.gettxnstatus";
3
+ export interface getTxnStatusRequest {
4
+ txn_id: string;
5
+ }
6
+ export interface getTxnStatusResponse {
7
+ status: string;
8
+ }
9
+ export declare const getTxnStatusRequest: {
10
+ encode(message: getTxnStatusRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): getTxnStatusRequest;
12
+ fromJSON(object: any): getTxnStatusRequest;
13
+ toJSON(message: getTxnStatusRequest): unknown;
14
+ create<I extends Exact<DeepPartial<getTxnStatusRequest>, I>>(base?: I): getTxnStatusRequest;
15
+ fromPartial<I extends Exact<DeepPartial<getTxnStatusRequest>, I>>(object: I): getTxnStatusRequest;
16
+ };
17
+ export declare const getTxnStatusResponse: {
18
+ encode(message: getTxnStatusResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): getTxnStatusResponse;
20
+ fromJSON(object: any): getTxnStatusResponse;
21
+ toJSON(message: getTxnStatusResponse): unknown;
22
+ create<I extends Exact<DeepPartial<getTxnStatusResponse>, I>>(base?: I): getTxnStatusResponse;
23
+ fromPartial<I extends Exact<DeepPartial<getTxnStatusResponse>, I>>(object: I): getTxnStatusResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.0
6
+ // source: customers/enach/gettxnstatus.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getTxnStatusResponse = exports.getTxnStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.enach.gettxnstatus";
15
+ function createBasegetTxnStatusRequest() {
16
+ return { txn_id: "" };
17
+ }
18
+ exports.getTxnStatusRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.txn_id !== "") {
21
+ writer.uint32(10).string(message.txn_id);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasegetTxnStatusRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.txn_id = reader.string();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.txn_id !== "") {
52
+ obj.txn_id = message.txn_id;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.getTxnStatusRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBasegetTxnStatusRequest();
61
+ message.txn_id = object.txn_id ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBasegetTxnStatusResponse() {
66
+ return { status: "" };
67
+ }
68
+ exports.getTxnStatusResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBasegetTxnStatusResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 10) {
84
+ break;
85
+ }
86
+ message.status = reader.string();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.getTxnStatusResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBasegetTxnStatusResponse();
111
+ message.status = object.status ?? "";
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.enach.updatetxnstatus";
3
+ export interface updateTxnStatusRequest {
4
+ txn_id: string;
5
+ }
6
+ export interface updateTxnStatusResponse {
7
+ status: string;
8
+ }
9
+ export declare const updateTxnStatusRequest: {
10
+ encode(message: updateTxnStatusRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateTxnStatusRequest;
12
+ fromJSON(object: any): updateTxnStatusRequest;
13
+ toJSON(message: updateTxnStatusRequest): unknown;
14
+ create<I extends Exact<DeepPartial<updateTxnStatusRequest>, I>>(base?: I): updateTxnStatusRequest;
15
+ fromPartial<I extends Exact<DeepPartial<updateTxnStatusRequest>, I>>(object: I): updateTxnStatusRequest;
16
+ };
17
+ export declare const updateTxnStatusResponse: {
18
+ encode(message: updateTxnStatusResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateTxnStatusResponse;
20
+ fromJSON(object: any): updateTxnStatusResponse;
21
+ toJSON(message: updateTxnStatusResponse): unknown;
22
+ create<I extends Exact<DeepPartial<updateTxnStatusResponse>, I>>(base?: I): updateTxnStatusResponse;
23
+ fromPartial<I extends Exact<DeepPartial<updateTxnStatusResponse>, I>>(object: I): updateTxnStatusResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.0
6
+ // source: customers/enach/updatetxnstatus.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.enach.updatetxnstatus";
15
+ function createBaseupdateTxnStatusRequest() {
16
+ return { txn_id: "" };
17
+ }
18
+ exports.updateTxnStatusRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.txn_id !== "") {
21
+ writer.uint32(10).string(message.txn_id);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseupdateTxnStatusRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.txn_id = reader.string();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.txn_id !== "") {
52
+ obj.txn_id = message.txn_id;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.updateTxnStatusRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseupdateTxnStatusRequest();
61
+ message.txn_id = object.txn_id ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseupdateTxnStatusResponse() {
66
+ return { status: "" };
67
+ }
68
+ exports.updateTxnStatusResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaseupdateTxnStatusResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 10) {
84
+ break;
85
+ }
86
+ message.status = reader.string();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.updateTxnStatusResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaseupdateTxnStatusResponse();
111
+ message.status = object.status ?? "";
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
package/ts/customers.d.ts CHANGED
@@ -17,7 +17,9 @@ import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
17
17
  import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
18
18
  import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
19
19
  import { disableMpinRequest, disableMpinResponse } from "./customers/disablempin";
20
+ import { getTxnStatusRequest, getTxnStatusResponse } from "./customers/enach/gettxnstatus";
20
21
  import { getWebUrlRequest, getWebUrlResponse } from "./customers/enach/getweburl";
22
+ import { updateTxnStatusRequest, updateTxnStatusResponse } from "./customers/enach/updatetxnstatus";
21
23
  import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetchrcprofile";
22
24
  import { getFloatingVideosRequest, getFloatingVideosResponse } from "./customers/floatingvideos";
23
25
  import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
@@ -652,6 +654,24 @@ export declare const customersService: {
652
654
  readonly responseSerialize: (value: getWebUrlResponse) => Buffer;
653
655
  readonly responseDeserialize: (value: Buffer) => getWebUrlResponse;
654
656
  };
657
+ readonly getEnachTxnStatus: {
658
+ readonly path: "/service.customers/getEnachTxnStatus";
659
+ readonly requestStream: false;
660
+ readonly responseStream: false;
661
+ readonly requestSerialize: (value: getTxnStatusRequest) => Buffer;
662
+ readonly requestDeserialize: (value: Buffer) => getTxnStatusRequest;
663
+ readonly responseSerialize: (value: getTxnStatusResponse) => Buffer;
664
+ readonly responseDeserialize: (value: Buffer) => getTxnStatusResponse;
665
+ };
666
+ readonly updateEnachTxnStatus: {
667
+ readonly path: "/service.customers/updateEnachTxnStatus";
668
+ readonly requestStream: false;
669
+ readonly responseStream: false;
670
+ readonly requestSerialize: (value: updateTxnStatusRequest) => Buffer;
671
+ readonly requestDeserialize: (value: Buffer) => updateTxnStatusRequest;
672
+ readonly responseSerialize: (value: updateTxnStatusResponse) => Buffer;
673
+ readonly responseDeserialize: (value: Buffer) => updateTxnStatusResponse;
674
+ };
655
675
  readonly cBSignup: {
656
676
  readonly path: "/service.customers/cBSignup";
657
677
  readonly requestStream: false;
@@ -737,6 +757,8 @@ export interface customersServer extends UntypedServiceImplementation {
737
757
  saveCreditBuilder: handleUnaryCall<saveCreditBuilderRequest, saveCreditBuilderResponse>;
738
758
  getCreditBuilder: handleUnaryCall<getCreditBuilderRequest, getCreditBuilderResponse>;
739
759
  getEnachUrl: handleUnaryCall<getWebUrlRequest, getWebUrlResponse>;
760
+ getEnachTxnStatus: handleUnaryCall<getTxnStatusRequest, getTxnStatusResponse>;
761
+ updateEnachTxnStatus: handleUnaryCall<updateTxnStatusRequest, updateTxnStatusResponse>;
740
762
  cBSignup: handleUnaryCall<cBSignupRequest, cBSignupResponse>;
741
763
  payNow: handleUnaryCall<payNowRequest, payNowResponse>;
742
764
  }
@@ -936,6 +958,12 @@ export interface customersClient extends Client {
936
958
  getEnachUrl(request: getWebUrlRequest, callback: (error: ServiceError | null, response: getWebUrlResponse) => void): ClientUnaryCall;
937
959
  getEnachUrl(request: getWebUrlRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getWebUrlResponse) => void): ClientUnaryCall;
938
960
  getEnachUrl(request: getWebUrlRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getWebUrlResponse) => void): ClientUnaryCall;
961
+ getEnachTxnStatus(request: getTxnStatusRequest, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
962
+ getEnachTxnStatus(request: getTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
963
+ getEnachTxnStatus(request: getTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
964
+ updateEnachTxnStatus(request: updateTxnStatusRequest, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
965
+ updateEnachTxnStatus(request: updateTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
966
+ updateEnachTxnStatus(request: updateTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
939
967
  cBSignup(request: cBSignupRequest, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
940
968
  cBSignup(request: cBSignupRequest, metadata: Metadata, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
941
969
  cBSignup(request: cBSignupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -26,7 +26,9 @@ const changempin_1 = require("./customers/changempin");
26
26
  const createcustomerreference_1 = require("./customers/createcustomerreference");
27
27
  const deleteprofile_1 = require("./customers/deleteprofile");
28
28
  const disablempin_1 = require("./customers/disablempin");
29
+ const gettxnstatus_1 = require("./customers/enach/gettxnstatus");
29
30
  const getweburl_1 = require("./customers/enach/getweburl");
31
+ const updatetxnstatus_1 = require("./customers/enach/updatetxnstatus");
30
32
  const fetchrcprofile_1 = require("./customers/fetchrcprofile");
31
33
  const floatingvideos_1 = require("./customers/floatingvideos");
32
34
  const forgotmpin_1 = require("./customers/forgotmpin");
@@ -660,6 +662,24 @@ exports.customersService = {
660
662
  responseSerialize: (value) => Buffer.from(getweburl_1.getWebUrlResponse.encode(value).finish()),
661
663
  responseDeserialize: (value) => getweburl_1.getWebUrlResponse.decode(value),
662
664
  },
665
+ getEnachTxnStatus: {
666
+ path: "/service.customers/getEnachTxnStatus",
667
+ requestStream: false,
668
+ responseStream: false,
669
+ requestSerialize: (value) => Buffer.from(gettxnstatus_1.getTxnStatusRequest.encode(value).finish()),
670
+ requestDeserialize: (value) => gettxnstatus_1.getTxnStatusRequest.decode(value),
671
+ responseSerialize: (value) => Buffer.from(gettxnstatus_1.getTxnStatusResponse.encode(value).finish()),
672
+ responseDeserialize: (value) => gettxnstatus_1.getTxnStatusResponse.decode(value),
673
+ },
674
+ updateEnachTxnStatus: {
675
+ path: "/service.customers/updateEnachTxnStatus",
676
+ requestStream: false,
677
+ responseStream: false,
678
+ requestSerialize: (value) => Buffer.from(updatetxnstatus_1.updateTxnStatusRequest.encode(value).finish()),
679
+ requestDeserialize: (value) => updatetxnstatus_1.updateTxnStatusRequest.decode(value),
680
+ responseSerialize: (value) => Buffer.from(updatetxnstatus_1.updateTxnStatusResponse.encode(value).finish()),
681
+ responseDeserialize: (value) => updatetxnstatus_1.updateTxnStatusResponse.decode(value),
682
+ },
663
683
  cBSignup: {
664
684
  path: "/service.customers/cBSignup",
665
685
  requestStream: false,
@@ -1,11 +1,8 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.forecloseamount";
3
3
  export interface forecloseAmountRequest {
4
- amount: number;
5
4
  customerid: number;
6
5
  loan_id: number;
7
- payment_id: number;
8
- mode: string;
9
6
  }
10
7
  export interface forecloseAmountResponse {
11
8
  foreclosed_amount: number;
@@ -13,24 +13,15 @@ exports.forecloseAmountResponse = exports.forecloseAmountRequest = exports.proto
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.forecloseamount";
15
15
  function createBaseforecloseAmountRequest() {
16
- return { amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
16
+ return { customerid: 0, loan_id: 0 };
17
17
  }
18
18
  exports.forecloseAmountRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.amount !== 0) {
21
- writer.uint32(8).int32(message.amount);
22
- }
23
20
  if (message.customerid !== 0) {
24
- writer.uint32(16).int32(message.customerid);
21
+ writer.uint32(8).int32(message.customerid);
25
22
  }
26
23
  if (message.loan_id !== 0) {
27
- writer.uint32(24).int32(message.loan_id);
28
- }
29
- if (message.payment_id !== 0) {
30
- writer.uint32(32).int32(message.payment_id);
31
- }
32
- if (message.mode !== "") {
33
- writer.uint32(42).string(message.mode);
24
+ writer.uint32(16).int32(message.loan_id);
34
25
  }
35
26
  return writer;
36
27
  },
@@ -45,32 +36,14 @@ exports.forecloseAmountRequest = {
45
36
  if (tag !== 8) {
46
37
  break;
47
38
  }
48
- message.amount = reader.int32();
39
+ message.customerid = reader.int32();
49
40
  continue;
50
41
  case 2:
51
42
  if (tag !== 16) {
52
43
  break;
53
44
  }
54
- message.customerid = reader.int32();
55
- continue;
56
- case 3:
57
- if (tag !== 24) {
58
- break;
59
- }
60
45
  message.loan_id = reader.int32();
61
46
  continue;
62
- case 4:
63
- if (tag !== 32) {
64
- break;
65
- }
66
- message.payment_id = reader.int32();
67
- continue;
68
- case 5:
69
- if (tag !== 42) {
70
- break;
71
- }
72
- message.mode = reader.string();
73
- continue;
74
47
  }
75
48
  if ((tag & 7) === 4 || tag === 0) {
76
49
  break;
@@ -81,30 +54,18 @@ exports.forecloseAmountRequest = {
81
54
  },
82
55
  fromJSON(object) {
83
56
  return {
84
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
85
57
  customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
86
58
  loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
87
- payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
88
- mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
89
59
  };
90
60
  },
91
61
  toJSON(message) {
92
62
  const obj = {};
93
- if (message.amount !== 0) {
94
- obj.amount = Math.round(message.amount);
95
- }
96
63
  if (message.customerid !== 0) {
97
64
  obj.customerid = Math.round(message.customerid);
98
65
  }
99
66
  if (message.loan_id !== 0) {
100
67
  obj.loan_id = Math.round(message.loan_id);
101
68
  }
102
- if (message.payment_id !== 0) {
103
- obj.payment_id = Math.round(message.payment_id);
104
- }
105
- if (message.mode !== "") {
106
- obj.mode = message.mode;
107
- }
108
69
  return obj;
109
70
  },
110
71
  create(base) {
@@ -112,11 +73,8 @@ exports.forecloseAmountRequest = {
112
73
  },
113
74
  fromPartial(object) {
114
75
  const message = createBaseforecloseAmountRequest();
115
- message.amount = object.amount ?? 0;
116
76
  message.customerid = object.customerid ?? 0;
117
77
  message.loan_id = object.loan_id ?? 0;
118
- message.payment_id = object.payment_id ?? 0;
119
- message.mode = object.mode ?? "";
120
78
  return message;
121
79
  },
122
80
  };