@stashfin/grpc 1.2.415 → 1.2.416
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/customers/enach/updatetxnstatus.d.ts +1 -4
- package/ts/customers/enach/updatetxnstatus.js +8 -64
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/skipdlrcscreen.d.ts +35 -0
- package/ts/customers/skipdlrcscreen.js +117 -0
- package/ts/customers/step1.d.ts +69 -0
- package/ts/customers/step1.js +395 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +68 -0
- package/ts/customers/step2.js +381 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/{loans/getvirtualaccountnumber.js → customers/verifyemail.js} +32 -32
- package/ts/documents/getfinancialdoc.d.ts +2 -2
- package/ts/documents/getfinancialdoc.js +61 -60
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/getvirtualaccountnumber.d.ts +0 -35
|
@@ -14,7 +14,6 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
14
14
|
exports.protobufPackage = "documents.getfinancialdoc";
|
|
15
15
|
function createBasefinancialdocrequest() {
|
|
16
16
|
return {
|
|
17
|
-
loan_id: 0,
|
|
18
17
|
customer_id: 0,
|
|
19
18
|
approved_date: "",
|
|
20
19
|
tenure: 0,
|
|
@@ -36,59 +35,56 @@ function createBasefinancialdocrequest() {
|
|
|
36
35
|
}
|
|
37
36
|
exports.financialdocrequest = {
|
|
38
37
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
39
|
-
if (message.loan_id !== 0) {
|
|
40
|
-
writer.uint32(8).int32(message.loan_id);
|
|
41
|
-
}
|
|
42
38
|
if (message.customer_id !== 0) {
|
|
43
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(8).int32(message.customer_id);
|
|
44
40
|
}
|
|
45
41
|
if (message.approved_date !== "") {
|
|
46
|
-
writer.uint32(
|
|
42
|
+
writer.uint32(18).string(message.approved_date);
|
|
47
43
|
}
|
|
48
44
|
if (message.tenure !== 0) {
|
|
49
|
-
writer.uint32(
|
|
45
|
+
writer.uint32(24).int32(message.tenure);
|
|
50
46
|
}
|
|
51
47
|
if (message.processing_fees !== 0) {
|
|
52
|
-
writer.uint32(
|
|
48
|
+
writer.uint32(33).double(message.processing_fees);
|
|
53
49
|
}
|
|
54
50
|
if (message.credit_report_fees !== 0) {
|
|
55
|
-
writer.uint32(
|
|
51
|
+
writer.uint32(41).double(message.credit_report_fees);
|
|
56
52
|
}
|
|
57
53
|
if (message.insurance_fees !== 0) {
|
|
58
|
-
writer.uint32(
|
|
54
|
+
writer.uint32(49).double(message.insurance_fees);
|
|
59
55
|
}
|
|
60
56
|
if (message.disbured_amount !== 0) {
|
|
61
|
-
writer.uint32(
|
|
57
|
+
writer.uint32(57).double(message.disbured_amount);
|
|
62
58
|
}
|
|
63
59
|
if (message.sanctioned_amount !== 0) {
|
|
64
|
-
writer.uint32(
|
|
60
|
+
writer.uint32(65).double(message.sanctioned_amount);
|
|
65
61
|
}
|
|
66
62
|
if (message.apr_value !== 0) {
|
|
67
|
-
writer.uint32(
|
|
63
|
+
writer.uint32(73).double(message.apr_value);
|
|
68
64
|
}
|
|
69
65
|
if (message.roi !== 0) {
|
|
70
|
-
writer.uint32(
|
|
66
|
+
writer.uint32(81).double(message.roi);
|
|
71
67
|
}
|
|
72
68
|
if (message.txn_fees !== 0) {
|
|
73
|
-
writer.uint32(
|
|
69
|
+
writer.uint32(89).double(message.txn_fees);
|
|
74
70
|
}
|
|
75
71
|
if (message.txn_fees_gst !== 0) {
|
|
76
|
-
writer.uint32(
|
|
72
|
+
writer.uint32(97).double(message.txn_fees_gst);
|
|
77
73
|
}
|
|
78
74
|
if (message.txn_rate !== 0) {
|
|
79
|
-
writer.uint32(
|
|
75
|
+
writer.uint32(105).double(message.txn_rate);
|
|
80
76
|
}
|
|
81
77
|
if (message.processing_fees_rate !== 0) {
|
|
82
|
-
writer.uint32(
|
|
78
|
+
writer.uint32(113).double(message.processing_fees_rate);
|
|
83
79
|
}
|
|
84
80
|
if (message.processing_fees_gst !== 0) {
|
|
85
|
-
writer.uint32(
|
|
81
|
+
writer.uint32(121).double(message.processing_fees_gst);
|
|
86
82
|
}
|
|
87
83
|
if (message.emi_start_date !== "") {
|
|
88
|
-
writer.uint32(
|
|
84
|
+
writer.uint32(130).string(message.emi_start_date);
|
|
89
85
|
}
|
|
90
86
|
for (const v of message.installments) {
|
|
91
|
-
exports.financialdocrequest_Field.encode(v, writer.uint32(
|
|
87
|
+
exports.financialdocrequest_Field.encode(v, writer.uint32(138).fork()).ldelim();
|
|
92
88
|
}
|
|
93
89
|
return writer;
|
|
94
90
|
},
|
|
@@ -103,108 +99,102 @@ exports.financialdocrequest = {
|
|
|
103
99
|
if (tag !== 8) {
|
|
104
100
|
break;
|
|
105
101
|
}
|
|
106
|
-
message.
|
|
102
|
+
message.customer_id = reader.int32();
|
|
107
103
|
continue;
|
|
108
104
|
case 2:
|
|
109
|
-
if (tag !==
|
|
105
|
+
if (tag !== 18) {
|
|
110
106
|
break;
|
|
111
107
|
}
|
|
112
|
-
message.
|
|
108
|
+
message.approved_date = reader.string();
|
|
113
109
|
continue;
|
|
114
110
|
case 3:
|
|
115
|
-
if (tag !==
|
|
111
|
+
if (tag !== 24) {
|
|
116
112
|
break;
|
|
117
113
|
}
|
|
118
|
-
message.
|
|
114
|
+
message.tenure = reader.int32();
|
|
119
115
|
continue;
|
|
120
116
|
case 4:
|
|
121
|
-
if (tag !==
|
|
117
|
+
if (tag !== 33) {
|
|
122
118
|
break;
|
|
123
119
|
}
|
|
124
|
-
message.
|
|
120
|
+
message.processing_fees = reader.double();
|
|
125
121
|
continue;
|
|
126
122
|
case 5:
|
|
127
123
|
if (tag !== 41) {
|
|
128
124
|
break;
|
|
129
125
|
}
|
|
130
|
-
message.
|
|
126
|
+
message.credit_report_fees = reader.double();
|
|
131
127
|
continue;
|
|
132
128
|
case 6:
|
|
133
129
|
if (tag !== 49) {
|
|
134
130
|
break;
|
|
135
131
|
}
|
|
136
|
-
message.
|
|
132
|
+
message.insurance_fees = reader.double();
|
|
137
133
|
continue;
|
|
138
134
|
case 7:
|
|
139
135
|
if (tag !== 57) {
|
|
140
136
|
break;
|
|
141
137
|
}
|
|
142
|
-
message.
|
|
138
|
+
message.disbured_amount = reader.double();
|
|
143
139
|
continue;
|
|
144
140
|
case 8:
|
|
145
141
|
if (tag !== 65) {
|
|
146
142
|
break;
|
|
147
143
|
}
|
|
148
|
-
message.
|
|
144
|
+
message.sanctioned_amount = reader.double();
|
|
149
145
|
continue;
|
|
150
146
|
case 9:
|
|
151
147
|
if (tag !== 73) {
|
|
152
148
|
break;
|
|
153
149
|
}
|
|
154
|
-
message.
|
|
150
|
+
message.apr_value = reader.double();
|
|
155
151
|
continue;
|
|
156
152
|
case 10:
|
|
157
153
|
if (tag !== 81) {
|
|
158
154
|
break;
|
|
159
155
|
}
|
|
160
|
-
message.
|
|
156
|
+
message.roi = reader.double();
|
|
161
157
|
continue;
|
|
162
158
|
case 11:
|
|
163
159
|
if (tag !== 89) {
|
|
164
160
|
break;
|
|
165
161
|
}
|
|
166
|
-
message.
|
|
162
|
+
message.txn_fees = reader.double();
|
|
167
163
|
continue;
|
|
168
164
|
case 12:
|
|
169
165
|
if (tag !== 97) {
|
|
170
166
|
break;
|
|
171
167
|
}
|
|
172
|
-
message.
|
|
168
|
+
message.txn_fees_gst = reader.double();
|
|
173
169
|
continue;
|
|
174
170
|
case 13:
|
|
175
171
|
if (tag !== 105) {
|
|
176
172
|
break;
|
|
177
173
|
}
|
|
178
|
-
message.
|
|
174
|
+
message.txn_rate = reader.double();
|
|
179
175
|
continue;
|
|
180
176
|
case 14:
|
|
181
177
|
if (tag !== 113) {
|
|
182
178
|
break;
|
|
183
179
|
}
|
|
184
|
-
message.
|
|
180
|
+
message.processing_fees_rate = reader.double();
|
|
185
181
|
continue;
|
|
186
182
|
case 15:
|
|
187
183
|
if (tag !== 121) {
|
|
188
184
|
break;
|
|
189
185
|
}
|
|
190
|
-
message.
|
|
186
|
+
message.processing_fees_gst = reader.double();
|
|
191
187
|
continue;
|
|
192
188
|
case 16:
|
|
193
|
-
if (tag !==
|
|
189
|
+
if (tag !== 130) {
|
|
194
190
|
break;
|
|
195
191
|
}
|
|
196
|
-
message.
|
|
192
|
+
message.emi_start_date = reader.string();
|
|
197
193
|
continue;
|
|
198
194
|
case 17:
|
|
199
195
|
if (tag !== 138) {
|
|
200
196
|
break;
|
|
201
197
|
}
|
|
202
|
-
message.emi_start_date = reader.string();
|
|
203
|
-
continue;
|
|
204
|
-
case 18:
|
|
205
|
-
if (tag !== 146) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
198
|
message.installments.push(exports.financialdocrequest_Field.decode(reader, reader.uint32()));
|
|
209
199
|
continue;
|
|
210
200
|
}
|
|
@@ -217,7 +207,6 @@ exports.financialdocrequest = {
|
|
|
217
207
|
},
|
|
218
208
|
fromJSON(object) {
|
|
219
209
|
return {
|
|
220
|
-
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
221
210
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
222
211
|
approved_date: isSet(object.approved_date) ? globalThis.String(object.approved_date) : "",
|
|
223
212
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
@@ -241,9 +230,6 @@ exports.financialdocrequest = {
|
|
|
241
230
|
},
|
|
242
231
|
toJSON(message) {
|
|
243
232
|
const obj = {};
|
|
244
|
-
if (message.loan_id !== 0) {
|
|
245
|
-
obj.loan_id = Math.round(message.loan_id);
|
|
246
|
-
}
|
|
247
233
|
if (message.customer_id !== 0) {
|
|
248
234
|
obj.customer_id = Math.round(message.customer_id);
|
|
249
235
|
}
|
|
@@ -302,7 +288,6 @@ exports.financialdocrequest = {
|
|
|
302
288
|
},
|
|
303
289
|
fromPartial(object) {
|
|
304
290
|
const message = createBasefinancialdocrequest();
|
|
305
|
-
message.loan_id = object.loan_id ?? 0;
|
|
306
291
|
message.customer_id = object.customer_id ?? 0;
|
|
307
292
|
message.approved_date = object.approved_date ?? "";
|
|
308
293
|
message.tenure = object.tenure ?? 0;
|
|
@@ -528,12 +513,15 @@ exports.financialdocrequest_Field = {
|
|
|
528
513
|
},
|
|
529
514
|
};
|
|
530
515
|
function createBaseagreementdata() {
|
|
531
|
-
return {
|
|
516
|
+
return { financial_doc_url: "", sanction_latter_url: "" };
|
|
532
517
|
}
|
|
533
518
|
exports.agreementdata = {
|
|
534
519
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
535
|
-
if (message.
|
|
536
|
-
writer.uint32(10).string(message.
|
|
520
|
+
if (message.financial_doc_url !== "") {
|
|
521
|
+
writer.uint32(10).string(message.financial_doc_url);
|
|
522
|
+
}
|
|
523
|
+
if (message.sanction_latter_url !== "") {
|
|
524
|
+
writer.uint32(18).string(message.sanction_latter_url);
|
|
537
525
|
}
|
|
538
526
|
return writer;
|
|
539
527
|
},
|
|
@@ -548,7 +536,13 @@ exports.agreementdata = {
|
|
|
548
536
|
if (tag !== 10) {
|
|
549
537
|
break;
|
|
550
538
|
}
|
|
551
|
-
message.
|
|
539
|
+
message.financial_doc_url = reader.string();
|
|
540
|
+
continue;
|
|
541
|
+
case 2:
|
|
542
|
+
if (tag !== 18) {
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
message.sanction_latter_url = reader.string();
|
|
552
546
|
continue;
|
|
553
547
|
}
|
|
554
548
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -559,12 +553,18 @@ exports.agreementdata = {
|
|
|
559
553
|
return message;
|
|
560
554
|
},
|
|
561
555
|
fromJSON(object) {
|
|
562
|
-
return {
|
|
556
|
+
return {
|
|
557
|
+
financial_doc_url: isSet(object.financial_doc_url) ? globalThis.String(object.financial_doc_url) : "",
|
|
558
|
+
sanction_latter_url: isSet(object.sanction_latter_url) ? globalThis.String(object.sanction_latter_url) : "",
|
|
559
|
+
};
|
|
563
560
|
},
|
|
564
561
|
toJSON(message) {
|
|
565
562
|
const obj = {};
|
|
566
|
-
if (message.
|
|
567
|
-
obj.
|
|
563
|
+
if (message.financial_doc_url !== "") {
|
|
564
|
+
obj.financial_doc_url = message.financial_doc_url;
|
|
565
|
+
}
|
|
566
|
+
if (message.sanction_latter_url !== "") {
|
|
567
|
+
obj.sanction_latter_url = message.sanction_latter_url;
|
|
568
568
|
}
|
|
569
569
|
return obj;
|
|
570
570
|
},
|
|
@@ -573,7 +573,8 @@ exports.agreementdata = {
|
|
|
573
573
|
},
|
|
574
574
|
fromPartial(object) {
|
|
575
575
|
const message = createBaseagreementdata();
|
|
576
|
-
message.
|
|
576
|
+
message.financial_doc_url = object.financial_doc_url ?? "";
|
|
577
|
+
message.sanction_latter_url = object.sanction_latter_url ?? "";
|
|
577
578
|
return message;
|
|
578
579
|
},
|
|
579
580
|
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
|
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
6
|
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
7
|
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
8
|
+
* Gregorian calendar backwards to year one.
|
|
9
|
+
*
|
|
10
|
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
11
|
+
* second table is needed for interpretation, using a [24-hour linear
|
|
12
|
+
* smear](https://developers.google.com/time/smear).
|
|
13
|
+
*
|
|
14
|
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
15
|
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
16
|
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
17
|
+
*
|
|
18
|
+
* # Examples
|
|
19
|
+
*
|
|
20
|
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
21
|
+
*
|
|
22
|
+
* Timestamp timestamp;
|
|
23
|
+
* timestamp.set_seconds(time(NULL));
|
|
24
|
+
* timestamp.set_nanos(0);
|
|
25
|
+
*
|
|
26
|
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
27
|
+
*
|
|
28
|
+
* struct timeval tv;
|
|
29
|
+
* gettimeofday(&tv, NULL);
|
|
30
|
+
*
|
|
31
|
+
* Timestamp timestamp;
|
|
32
|
+
* timestamp.set_seconds(tv.tv_sec);
|
|
33
|
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
34
|
+
*
|
|
35
|
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
36
|
+
*
|
|
37
|
+
* FILETIME ft;
|
|
38
|
+
* GetSystemTimeAsFileTime(&ft);
|
|
39
|
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
40
|
+
*
|
|
41
|
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
42
|
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
43
|
+
* Timestamp timestamp;
|
|
44
|
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
45
|
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
46
|
+
*
|
|
47
|
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
48
|
+
*
|
|
49
|
+
* long millis = System.currentTimeMillis();
|
|
50
|
+
*
|
|
51
|
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
52
|
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
53
|
+
*
|
|
54
|
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
55
|
+
*
|
|
56
|
+
* Instant now = Instant.now();
|
|
57
|
+
*
|
|
58
|
+
* Timestamp timestamp =
|
|
59
|
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
60
|
+
* .setNanos(now.getNano()).build();
|
|
61
|
+
*
|
|
62
|
+
* Example 6: Compute Timestamp from current time in Python.
|
|
63
|
+
*
|
|
64
|
+
* timestamp = Timestamp()
|
|
65
|
+
* timestamp.GetCurrentTime()
|
|
66
|
+
*
|
|
67
|
+
* # JSON Mapping
|
|
68
|
+
*
|
|
69
|
+
* In JSON format, the Timestamp type is encoded as a string in the
|
|
70
|
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
71
|
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
72
|
+
* where {year} is always expressed using four digits while {month}, {day},
|
|
73
|
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
74
|
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
75
|
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
76
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
77
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
78
|
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
79
|
+
*
|
|
80
|
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
81
|
+
* 01:30 UTC on January 15, 2017.
|
|
82
|
+
*
|
|
83
|
+
* In JavaScript, one can convert a Date object to this format using the
|
|
84
|
+
* standard
|
|
85
|
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
86
|
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
87
|
+
* to this format using
|
|
88
|
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
89
|
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
90
|
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
91
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
92
|
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
|
+
*/
|
|
94
|
+
export interface Timestamp {
|
|
95
|
+
/**
|
|
96
|
+
* Represents seconds of UTC time since Unix epoch
|
|
97
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
98
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
99
|
+
*/
|
|
100
|
+
seconds: number;
|
|
101
|
+
/**
|
|
102
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
103
|
+
* second values with fractions must still have non-negative nanos values
|
|
104
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
105
|
+
* inclusive.
|
|
106
|
+
*/
|
|
107
|
+
nanos: number;
|
|
108
|
+
}
|
|
109
|
+
export declare const Timestamp: {
|
|
110
|
+
encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
|
|
112
|
+
fromJSON(object: any): Timestamp;
|
|
113
|
+
toJSON(message: Timestamp): unknown;
|
|
114
|
+
create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp;
|
|
115
|
+
fromPartial<I extends Exact<DeepPartial<Timestamp>, I>>(object: I): Timestamp;
|
|
116
|
+
};
|
|
117
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
118
|
+
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 {} ? {
|
|
119
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
120
|
+
} : Partial<T>;
|
|
121
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
122
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
123
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
124
|
+
} & {
|
|
125
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
126
|
+
};
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
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.27.3
|
|
6
|
+
// source: google/protobuf/timestamp.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.Timestamp = 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 = "google.protobuf";
|
|
16
|
+
function createBaseTimestamp() {
|
|
17
|
+
return { seconds: 0, nanos: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.Timestamp = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.seconds !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.seconds);
|
|
23
|
+
}
|
|
24
|
+
if (message.nanos !== 0) {
|
|
25
|
+
writer.uint32(16).int32(message.nanos);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseTimestamp();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.seconds = longToNumber(reader.int64());
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.nanos = reader.int32();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
59
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.seconds !== 0) {
|
|
65
|
+
obj.seconds = Math.round(message.seconds);
|
|
66
|
+
}
|
|
67
|
+
if (message.nanos !== 0) {
|
|
68
|
+
obj.nanos = Math.round(message.nanos);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseTimestamp();
|
|
77
|
+
message.seconds = object.seconds ?? 0;
|
|
78
|
+
message.nanos = object.nanos ?? 0;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function longToNumber(long) {
|
|
83
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
84
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
85
|
+
}
|
|
86
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
87
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
88
|
+
}
|
|
89
|
+
return long.toNumber();
|
|
90
|
+
}
|
|
91
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
92
|
+
minimal_1.default.util.Long = long_1.default;
|
|
93
|
+
minimal_1.default.configure();
|
|
94
|
+
}
|
|
95
|
+
function isSet(value) {
|
|
96
|
+
return value !== null && value !== undefined;
|
|
97
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
-
export interface getVirtualAccountNumberRequest {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface getVirtualAccountNumberResponse {
|
|
7
|
-
account_number: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
-
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
-
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
-
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
-
};
|
|
17
|
-
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
-
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
-
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
-
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
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 {};
|