@stashfin/grpc 1.2.262 → 1.2.264

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 (163) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.js +2 -2
  3. package/ts/bureau/getdbrcolending.js +2 -2
  4. package/ts/bureau/getdemogs.js +2 -2
  5. package/ts/bureau/getobligation.js +2 -2
  6. package/ts/bureau/getreport.d.ts +3 -3
  7. package/ts/bureau/getreport.js +2 -2
  8. package/ts/bureau.js +2 -2
  9. package/ts/colender/disburseLoan.js +2 -2
  10. package/ts/colender/forecloseLoan.js +2 -2
  11. package/ts/colender/repayLoan.js +2 -2
  12. package/ts/colender.js +2 -2
  13. package/ts/customers/aa/getbanklist.js +2 -2
  14. package/ts/customers/aa/initiate.js +2 -2
  15. package/ts/customers/addaddress.js +2 -2
  16. package/ts/customers/addbankaccountdetails.js +2 -2
  17. package/ts/customers/addfathersname.js +2 -2
  18. package/ts/customers/addgstnumber.js +2 -2
  19. package/ts/customers/addmoredetails.js +2 -2
  20. package/ts/customers/addsuspendedcustomer.js +2 -2
  21. package/ts/customers/adduserapps.js +2 -2
  22. package/ts/customers/bulksms.js +2 -2
  23. package/ts/customers/cb/cbsignup.js +2 -2
  24. package/ts/customers/cb/getcbtxnstatus.js +2 -2
  25. package/ts/customers/cb/getcreditbuilder.js +2 -2
  26. package/ts/customers/cb/paynow.js +2 -2
  27. package/ts/customers/cb/savecreditbuilder.js +2 -2
  28. package/ts/customers/cb/updatecbtxnstatus.js +2 -2
  29. package/ts/customers/changempin.js +2 -2
  30. package/ts/customers/createcustomerreference.js +2 -2
  31. package/ts/customers/deleteprofile.js +2 -2
  32. package/ts/customers/disablempin.js +2 -2
  33. package/ts/customers/enach/gettxnstatus.js +2 -2
  34. package/ts/customers/enach/getweburl.js +2 -2
  35. package/ts/customers/enach/updatetxnstatus.js +2 -2
  36. package/ts/customers/fetchrcprofile.js +2 -2
  37. package/ts/customers/floatingvideos.js +2 -2
  38. package/ts/customers/forgotmpin.js +2 -2
  39. package/ts/customers/forgotmpinverify.js +2 -2
  40. package/ts/customers/freedom/addressconfirmation.js +2 -2
  41. package/ts/customers/freedom/freedompaynow.js +2 -2
  42. package/ts/customers/freedom/getfreedomtxnstatus.js +2 -2
  43. package/ts/customers/freedom/updatefreedomtxnstatus.js +2 -2
  44. package/ts/customers/getaddresslist.js +2 -2
  45. package/ts/customers/getappsubmittedscreen.js +2 -2
  46. package/ts/customers/getbankaccountdetails.js +2 -2
  47. package/ts/customers/getbasicinfo.js +2 -2
  48. package/ts/customers/getcities.js +2 -2
  49. package/ts/customers/getcompanyaccdetails.js +2 -2
  50. package/ts/customers/getcustomerbyid.js +2 -2
  51. package/ts/customers/getdashboard.js +2 -2
  52. package/ts/customers/getdashboardmaincard.js +2 -2
  53. package/ts/customers/getdocuments.js +2 -2
  54. package/ts/customers/getlimit.js +2 -2
  55. package/ts/customers/getoccupationlist.js +2 -2
  56. package/ts/customers/getprofessionalinfo.js +2 -2
  57. package/ts/customers/getprofile.js +2 -2
  58. package/ts/customers/getselfieetxnid.js +2 -2
  59. package/ts/customers/getstates.js +2 -2
  60. package/ts/customers/getstep.js +2 -2
  61. package/ts/customers/logout.js +2 -2
  62. package/ts/customers/pd/getbanklist.js +2 -2
  63. package/ts/customers/pd/validatebankaccount.js +2 -2
  64. package/ts/customers/profilebasic.js +2 -2
  65. package/ts/customers/profileupdatetnc.js +2 -2
  66. package/ts/customers/rpd/getrpdlink.js +2 -2
  67. package/ts/customers/rpd/getrpdtransactionstatus.js +2 -2
  68. package/ts/customers/rpd/mockpayment.js +2 -2
  69. package/ts/customers/savebasicdetails.js +2 -2
  70. package/ts/customers/savelimit.js +2 -2
  71. package/ts/customers/saveunlocklimit.js +2 -2
  72. package/ts/customers/sendotp.js +2 -2
  73. package/ts/customers/sendotptoemail.js +2 -2
  74. package/ts/customers/setmpin.js +2 -2
  75. package/ts/customers/skipscreen.js +2 -2
  76. package/ts/customers/updatecustomerbyid.js +2 -2
  77. package/ts/customers/updatedlnumber.js +2 -2
  78. package/ts/customers/updatedob.js +2 -2
  79. package/ts/customers/updatelocstatus.js +2 -2
  80. package/ts/customers/updatemobilesendotp.js +2 -2
  81. package/ts/customers/updatemobileverifyotp.js +2 -2
  82. package/ts/customers/updateokyctxn.js +2 -2
  83. package/ts/customers/updateselfieetxn.js +2 -2
  84. package/ts/customers/updatevehiclenumber.js +2 -2
  85. package/ts/customers/uploaddocuments.js +2 -2
  86. package/ts/customers/validatepan.js +2 -2
  87. package/ts/customers/verifympin.js +2 -2
  88. package/ts/customers/verifyotp.js +2 -2
  89. package/ts/customers/verifyotptoemail.js +2 -2
  90. package/ts/customers.d.ts +0 -28
  91. package/ts/customers.js +2 -22
  92. package/ts/decisionengine/decisionengine.js +2 -2
  93. package/ts/decisionengine.js +2 -2
  94. package/ts/example.js +2 -2
  95. package/ts/growth/checkplanstatus.js +2 -2
  96. package/ts/growth/getattachplandetails.js +2 -2
  97. package/ts/growth/getchrplans.js +2 -2
  98. package/ts/growth/getcredithealthreport.js +2 -2
  99. package/ts/growth/initiatepayment.js +2 -2
  100. package/ts/growth/processchrpayment.js +2 -2
  101. package/ts/growth.js +2 -2
  102. package/ts/loans/amortization.js +2 -2
  103. package/ts/loans/approveloan.d.ts +0 -1
  104. package/ts/loans/approveloan.js +6 -21
  105. package/ts/loans/banklist.js +2 -2
  106. package/ts/loans/calculateemi.js +2 -2
  107. package/ts/loans/creditlimit.js +2 -2
  108. package/ts/loans/fcppayment.d.ts +1 -0
  109. package/ts/loans/fcppayment.js +19 -5
  110. package/ts/loans/forecloseamount.js +2 -2
  111. package/ts/loans/foreclosepayment.d.ts +1 -0
  112. package/ts/loans/foreclosepayment.js +19 -5
  113. package/ts/loans/futurepaymentmoredetails.js +2 -2
  114. package/ts/loans/getbilldetails.js +2 -2
  115. package/ts/loans/getcustomerloanstatus.js +2 -2
  116. package/ts/loans/getloanbyid.d.ts +0 -1
  117. package/ts/loans/getloanbyid.js +2 -17
  118. package/ts/loans/getnextdueamount.js +2 -2
  119. package/ts/loans/getpendingemiamount.js +2 -2
  120. package/ts/loans/getsummarystaticfields.js +2 -2
  121. package/ts/loans/gettransactionstatus.js +2 -2
  122. package/ts/loans/getvirtualbankinfo.js +2 -2
  123. package/ts/loans/loansummary.d.ts +0 -1
  124. package/ts/loans/loansummary.js +6 -21
  125. package/ts/loans/paymentallocation.js +2 -2
  126. package/ts/loans/paymenthistory.js +2 -2
  127. package/ts/loans/paynow.js +2 -2
  128. package/ts/loans/refund.d.ts +1 -0
  129. package/ts/loans/refund.js +19 -5
  130. package/ts/loans/restructureloan.js +2 -2
  131. package/ts/loans/rollback.d.ts +1 -0
  132. package/ts/loans/rollback.js +19 -5
  133. package/ts/loans/sendemail.js +2 -2
  134. package/ts/loans/sendnocemail.js +2 -2
  135. package/ts/loans/transactionlist.js +2 -2
  136. package/ts/loans/updateinstallments.d.ts +2 -0
  137. package/ts/loans/updateinstallments.js +45 -8
  138. package/ts/loans/updateloan.js +2 -2
  139. package/ts/loans/updatetransactionstatus.js +2 -2
  140. package/ts/loans.d.ts +0 -14
  141. package/ts/loans.js +2 -12
  142. package/ts/payments/checkpaymentstatus.js +2 -2
  143. package/ts/payments/getpaymentoptions.js +2 -2
  144. package/ts/payments/initiatepayment.js +2 -2
  145. package/ts/payments/nachpresentation.js +2 -2
  146. package/ts/payments/nachregistration.js +2 -2
  147. package/ts/payments.js +2 -2
  148. package/ts/stashcash/creditsc.js +2 -2
  149. package/ts/stashcash/debitsc.js +2 -2
  150. package/ts/stashcash/getscbalance.js +2 -2
  151. package/ts/stashcash/getschistory.js +2 -2
  152. package/ts/stashcash/reversesc.js +2 -2
  153. package/ts/stashcash.js +2 -2
  154. package/ts/bureau/getbureaulist.d.ts +0 -52
  155. package/ts/bureau/getbureaulist.js +0 -276
  156. package/ts/customers/getpaymentoptions.d.ts +0 -51
  157. package/ts/customers/getpaymentoptions.js +0 -243
  158. package/ts/customers/getrpdlink.d.ts +0 -40
  159. package/ts/customers/getrpdlink.js +0 -190
  160. package/ts/customers/updatecategory.d.ts +0 -36
  161. package/ts/customers/updatecategory.js +0 -147
  162. package/ts/loans/getusedlimit.d.ts +0 -35
  163. package/ts/loans/getusedlimit.js +0 -117
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash/creditsc.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash/debitsc.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash/getscbalance.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash/getschistory.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash/reversesc.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
package/ts/stashcash.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.2
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
6
  // source: stashcash.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.stashcashClient = exports.stashcashService = exports.protobufPackage = void 0;
@@ -1,52 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "bureau.getbureaulist";
3
- export interface bureauListRequest {
4
- customer_id: number;
5
- }
6
- export interface bureauListResponse {
7
- status: string;
8
- data: Report[];
9
- }
10
- export interface Report {
11
- id?: number | undefined;
12
- score?: number | undefined;
13
- created_at?: string | undefined;
14
- bureau_id?: number | undefined;
15
- report_path?: string | undefined;
16
- product_code?: string | undefined;
17
- }
18
- export declare const bureauListRequest: {
19
- encode(message: bureauListRequest, writer?: _m0.Writer): _m0.Writer;
20
- decode(input: _m0.Reader | Uint8Array, length?: number): bureauListRequest;
21
- fromJSON(object: any): bureauListRequest;
22
- toJSON(message: bureauListRequest): unknown;
23
- create<I extends Exact<DeepPartial<bureauListRequest>, I>>(base?: I): bureauListRequest;
24
- fromPartial<I extends Exact<DeepPartial<bureauListRequest>, I>>(object: I): bureauListRequest;
25
- };
26
- export declare const bureauListResponse: {
27
- encode(message: bureauListResponse, writer?: _m0.Writer): _m0.Writer;
28
- decode(input: _m0.Reader | Uint8Array, length?: number): bureauListResponse;
29
- fromJSON(object: any): bureauListResponse;
30
- toJSON(message: bureauListResponse): unknown;
31
- create<I extends Exact<DeepPartial<bureauListResponse>, I>>(base?: I): bureauListResponse;
32
- fromPartial<I extends Exact<DeepPartial<bureauListResponse>, I>>(object: I): bureauListResponse;
33
- };
34
- export declare const Report: {
35
- encode(message: Report, writer?: _m0.Writer): _m0.Writer;
36
- decode(input: _m0.Reader | Uint8Array, length?: number): Report;
37
- fromJSON(object: any): Report;
38
- toJSON(message: Report): unknown;
39
- create<I extends Exact<DeepPartial<Report>, I>>(base?: I): Report;
40
- fromPartial<I extends Exact<DeepPartial<Report>, I>>(object: I): Report;
41
- };
42
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
43
- 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 {} ? {
44
- [K in keyof T]?: DeepPartial<T[K]>;
45
- } : Partial<T>;
46
- type KeysOfUnion<T> = T extends T ? keyof T : never;
47
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
48
- [K in keyof P]: Exact<P[K], I[K]>;
49
- } & {
50
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
51
- };
52
- export {};
@@ -1,276 +0,0 @@
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.1
6
- // source: bureau/getbureaulist.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.Report = exports.bureauListResponse = exports.bureauListRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const long_1 = __importDefault(require("long"));
14
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
- exports.protobufPackage = "bureau.getbureaulist";
16
- function createBasebureauListRequest() {
17
- return { customer_id: 0 };
18
- }
19
- exports.bureauListRequest = {
20
- encode(message, writer = minimal_1.default.Writer.create()) {
21
- if (message.customer_id !== 0) {
22
- writer.uint32(8).int64(message.customer_id);
23
- }
24
- return writer;
25
- },
26
- decode(input, length) {
27
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
28
- let end = length === undefined ? reader.len : reader.pos + length;
29
- const message = createBasebureauListRequest();
30
- while (reader.pos < end) {
31
- const tag = reader.uint32();
32
- switch (tag >>> 3) {
33
- case 1:
34
- if (tag !== 8) {
35
- break;
36
- }
37
- message.customer_id = longToNumber(reader.int64());
38
- continue;
39
- }
40
- if ((tag & 7) === 4 || tag === 0) {
41
- break;
42
- }
43
- reader.skipType(tag & 7);
44
- }
45
- return message;
46
- },
47
- fromJSON(object) {
48
- return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
49
- },
50
- toJSON(message) {
51
- const obj = {};
52
- if (message.customer_id !== 0) {
53
- obj.customer_id = Math.round(message.customer_id);
54
- }
55
- return obj;
56
- },
57
- create(base) {
58
- return exports.bureauListRequest.fromPartial(base ?? {});
59
- },
60
- fromPartial(object) {
61
- const message = createBasebureauListRequest();
62
- message.customer_id = object.customer_id ?? 0;
63
- return message;
64
- },
65
- };
66
- function createBasebureauListResponse() {
67
- return { status: "", data: [] };
68
- }
69
- exports.bureauListResponse = {
70
- encode(message, writer = minimal_1.default.Writer.create()) {
71
- if (message.status !== "") {
72
- writer.uint32(10).string(message.status);
73
- }
74
- for (const v of message.data) {
75
- exports.Report.encode(v, writer.uint32(18).fork()).ldelim();
76
- }
77
- return writer;
78
- },
79
- decode(input, length) {
80
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
81
- let end = length === undefined ? reader.len : reader.pos + length;
82
- const message = createBasebureauListResponse();
83
- while (reader.pos < end) {
84
- const tag = reader.uint32();
85
- switch (tag >>> 3) {
86
- case 1:
87
- if (tag !== 10) {
88
- break;
89
- }
90
- message.status = reader.string();
91
- continue;
92
- case 2:
93
- if (tag !== 18) {
94
- break;
95
- }
96
- message.data.push(exports.Report.decode(reader, reader.uint32()));
97
- continue;
98
- }
99
- if ((tag & 7) === 4 || tag === 0) {
100
- break;
101
- }
102
- reader.skipType(tag & 7);
103
- }
104
- return message;
105
- },
106
- fromJSON(object) {
107
- return {
108
- status: isSet(object.status) ? globalThis.String(object.status) : "",
109
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.Report.fromJSON(e)) : [],
110
- };
111
- },
112
- toJSON(message) {
113
- const obj = {};
114
- if (message.status !== "") {
115
- obj.status = message.status;
116
- }
117
- if (message.data?.length) {
118
- obj.data = message.data.map((e) => exports.Report.toJSON(e));
119
- }
120
- return obj;
121
- },
122
- create(base) {
123
- return exports.bureauListResponse.fromPartial(base ?? {});
124
- },
125
- fromPartial(object) {
126
- const message = createBasebureauListResponse();
127
- message.status = object.status ?? "";
128
- message.data = object.data?.map((e) => exports.Report.fromPartial(e)) || [];
129
- return message;
130
- },
131
- };
132
- function createBaseReport() {
133
- return {
134
- id: undefined,
135
- score: undefined,
136
- created_at: undefined,
137
- bureau_id: undefined,
138
- report_path: undefined,
139
- product_code: undefined,
140
- };
141
- }
142
- exports.Report = {
143
- encode(message, writer = minimal_1.default.Writer.create()) {
144
- if (message.id !== undefined) {
145
- writer.uint32(8).int64(message.id);
146
- }
147
- if (message.score !== undefined) {
148
- writer.uint32(16).int32(message.score);
149
- }
150
- if (message.created_at !== undefined) {
151
- writer.uint32(34).string(message.created_at);
152
- }
153
- if (message.bureau_id !== undefined) {
154
- writer.uint32(40).int32(message.bureau_id);
155
- }
156
- if (message.report_path !== undefined) {
157
- writer.uint32(50).string(message.report_path);
158
- }
159
- if (message.product_code !== undefined) {
160
- writer.uint32(58).string(message.product_code);
161
- }
162
- return writer;
163
- },
164
- decode(input, length) {
165
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
166
- let end = length === undefined ? reader.len : reader.pos + length;
167
- const message = createBaseReport();
168
- while (reader.pos < end) {
169
- const tag = reader.uint32();
170
- switch (tag >>> 3) {
171
- case 1:
172
- if (tag !== 8) {
173
- break;
174
- }
175
- message.id = longToNumber(reader.int64());
176
- continue;
177
- case 2:
178
- if (tag !== 16) {
179
- break;
180
- }
181
- message.score = reader.int32();
182
- continue;
183
- case 4:
184
- if (tag !== 34) {
185
- break;
186
- }
187
- message.created_at = reader.string();
188
- continue;
189
- case 5:
190
- if (tag !== 40) {
191
- break;
192
- }
193
- message.bureau_id = reader.int32();
194
- continue;
195
- case 6:
196
- if (tag !== 50) {
197
- break;
198
- }
199
- message.report_path = reader.string();
200
- continue;
201
- case 7:
202
- if (tag !== 58) {
203
- break;
204
- }
205
- message.product_code = reader.string();
206
- continue;
207
- }
208
- if ((tag & 7) === 4 || tag === 0) {
209
- break;
210
- }
211
- reader.skipType(tag & 7);
212
- }
213
- return message;
214
- },
215
- fromJSON(object) {
216
- return {
217
- id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
218
- score: isSet(object.score) ? globalThis.Number(object.score) : undefined,
219
- created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
220
- bureau_id: isSet(object.bureau_id) ? globalThis.Number(object.bureau_id) : undefined,
221
- report_path: isSet(object.report_path) ? globalThis.String(object.report_path) : undefined,
222
- product_code: isSet(object.product_code) ? globalThis.String(object.product_code) : undefined,
223
- };
224
- },
225
- toJSON(message) {
226
- const obj = {};
227
- if (message.id !== undefined) {
228
- obj.id = Math.round(message.id);
229
- }
230
- if (message.score !== undefined) {
231
- obj.score = Math.round(message.score);
232
- }
233
- if (message.created_at !== undefined) {
234
- obj.created_at = message.created_at;
235
- }
236
- if (message.bureau_id !== undefined) {
237
- obj.bureau_id = Math.round(message.bureau_id);
238
- }
239
- if (message.report_path !== undefined) {
240
- obj.report_path = message.report_path;
241
- }
242
- if (message.product_code !== undefined) {
243
- obj.product_code = message.product_code;
244
- }
245
- return obj;
246
- },
247
- create(base) {
248
- return exports.Report.fromPartial(base ?? {});
249
- },
250
- fromPartial(object) {
251
- const message = createBaseReport();
252
- message.id = object.id ?? undefined;
253
- message.score = object.score ?? undefined;
254
- message.created_at = object.created_at ?? undefined;
255
- message.bureau_id = object.bureau_id ?? undefined;
256
- message.report_path = object.report_path ?? undefined;
257
- message.product_code = object.product_code ?? undefined;
258
- return message;
259
- },
260
- };
261
- function longToNumber(long) {
262
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
263
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
264
- }
265
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
266
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
267
- }
268
- return long.toNumber();
269
- }
270
- if (minimal_1.default.util.Long !== long_1.default) {
271
- minimal_1.default.util.Long = long_1.default;
272
- minimal_1.default.configure();
273
- }
274
- function isSet(value) {
275
- return value !== null && value !== undefined;
276
- }
@@ -1,51 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.getpaymentoptions";
3
- export interface paymentOptionRequest {
4
- order_id: string;
5
- }
6
- export interface paymentOptionResponse {
7
- options: PaymentOption[];
8
- }
9
- export interface PaymentOption {
10
- modes: string[];
11
- gateway: string;
12
- amount: number;
13
- service_fee: number;
14
- other_fees: number;
15
- total_amount: number;
16
- }
17
- export declare const paymentOptionRequest: {
18
- encode(message: paymentOptionRequest, writer?: _m0.Writer): _m0.Writer;
19
- decode(input: _m0.Reader | Uint8Array, length?: number): paymentOptionRequest;
20
- fromJSON(object: any): paymentOptionRequest;
21
- toJSON(message: paymentOptionRequest): unknown;
22
- create<I extends Exact<DeepPartial<paymentOptionRequest>, I>>(base?: I): paymentOptionRequest;
23
- fromPartial<I extends Exact<DeepPartial<paymentOptionRequest>, I>>(object: I): paymentOptionRequest;
24
- };
25
- export declare const paymentOptionResponse: {
26
- encode(message: paymentOptionResponse, writer?: _m0.Writer): _m0.Writer;
27
- decode(input: _m0.Reader | Uint8Array, length?: number): paymentOptionResponse;
28
- fromJSON(object: any): paymentOptionResponse;
29
- toJSON(message: paymentOptionResponse): unknown;
30
- create<I extends Exact<DeepPartial<paymentOptionResponse>, I>>(base?: I): paymentOptionResponse;
31
- fromPartial<I extends Exact<DeepPartial<paymentOptionResponse>, I>>(object: I): paymentOptionResponse;
32
- };
33
- export declare const PaymentOption: {
34
- encode(message: PaymentOption, writer?: _m0.Writer): _m0.Writer;
35
- decode(input: _m0.Reader | Uint8Array, length?: number): PaymentOption;
36
- fromJSON(object: any): PaymentOption;
37
- toJSON(message: PaymentOption): unknown;
38
- create<I extends Exact<DeepPartial<PaymentOption>, I>>(base?: I): PaymentOption;
39
- fromPartial<I extends Exact<DeepPartial<PaymentOption>, I>>(object: I): PaymentOption;
40
- };
41
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
42
- 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 {} ? {
43
- [K in keyof T]?: DeepPartial<T[K]>;
44
- } : Partial<T>;
45
- type KeysOfUnion<T> = T extends T ? keyof T : never;
46
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
47
- [K in keyof P]: Exact<P[K], I[K]>;
48
- } & {
49
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
50
- };
51
- export {};