@stashfin/grpc 1.2.341 → 1.2.342

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 (35) hide show
  1. package/package.json +1 -1
  2. package/ts/customers/enach/updatetxnstatus.d.ts +1 -4
  3. package/ts/customers/enach/updatetxnstatus.js +8 -64
  4. package/ts/customers/getrpdlink.d.ts +40 -0
  5. package/ts/customers/getrpdlink.js +190 -0
  6. package/ts/customers/sendemailtoken.d.ts +35 -0
  7. package/ts/customers/{freedom/updateadditionalverification.js → sendemailtoken.js} +41 -28
  8. package/ts/customers/skipdlrcscreen.d.ts +35 -0
  9. package/ts/customers/skipdlrcscreen.js +117 -0
  10. package/ts/customers/step1.d.ts +69 -0
  11. package/ts/customers/step1.js +395 -0
  12. package/ts/customers/step10.d.ts +73 -0
  13. package/ts/customers/step10.js +459 -0
  14. package/ts/customers/step2.d.ts +68 -0
  15. package/ts/customers/step2.js +381 -0
  16. package/ts/customers/step7.d.ts +68 -0
  17. package/ts/customers/step7.js +381 -0
  18. package/ts/customers/step8.d.ts +69 -0
  19. package/ts/customers/step8.js +395 -0
  20. package/ts/customers/step9.d.ts +75 -0
  21. package/ts/customers/step9.js +489 -0
  22. package/ts/customers/stepstatic.d.ts +66 -0
  23. package/ts/customers/stepstatic.js +354 -0
  24. package/ts/customers/verifyemail.d.ts +35 -0
  25. package/ts/{loans/getvirtualaccountnumber.js → customers/verifyemail.js} +32 -32
  26. package/ts/customers.d.ts +0 -14
  27. package/ts/customers.js +0 -10
  28. package/ts/google/protobuf/timestamp.d.ts +127 -0
  29. package/ts/google/protobuf/timestamp.js +97 -0
  30. package/ts/loans/approveloan.d.ts +0 -1
  31. package/ts/loans/approveloan.js +1 -25
  32. package/ts/payments/fundtransfer.d.ts +1 -0
  33. package/ts/payments/fundtransfer.js +23 -1
  34. package/ts/customers/freedom/updateadditionalverification.d.ts +0 -34
  35. package/ts/loans/getvirtualaccountnumber.d.ts +0 -35
@@ -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
+ }
@@ -9,7 +9,6 @@ export interface approveLoanRequest {
9
9
  addonsData: approveLoanRequest_Field[];
10
10
  latitude: number;
11
11
  longitude: number;
12
- is_freedom?: boolean | undefined;
13
12
  }
14
13
  export interface approveLoanRequest_Field {
15
14
  name: string;
@@ -13,17 +13,7 @@ exports.approveLoanResponse = exports.approveLoanRequest_Field = exports.approve
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.approveloan";
15
15
  function createBaseapproveLoanRequest() {
16
- return {
17
- bank_id: 0,
18
- amount: 0,
19
- tenure: 0,
20
- customer_id: 0,
21
- ip: "",
22
- addonsData: [],
23
- latitude: 0,
24
- longitude: 0,
25
- is_freedom: undefined,
26
- };
16
+ return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "", addonsData: [], latitude: 0, longitude: 0 };
27
17
  }
28
18
  exports.approveLoanRequest = {
29
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -51,9 +41,6 @@ exports.approveLoanRequest = {
51
41
  if (message.longitude !== 0) {
52
42
  writer.uint32(69).float(message.longitude);
53
43
  }
54
- if (message.is_freedom !== undefined) {
55
- writer.uint32(72).bool(message.is_freedom);
56
- }
57
44
  return writer;
58
45
  },
59
46
  decode(input, length) {
@@ -111,12 +98,6 @@ exports.approveLoanRequest = {
111
98
  }
112
99
  message.longitude = reader.float();
113
100
  continue;
114
- case 9:
115
- if (tag !== 72) {
116
- break;
117
- }
118
- message.is_freedom = reader.bool();
119
- continue;
120
101
  }
121
102
  if ((tag & 7) === 4 || tag === 0) {
122
103
  break;
@@ -137,7 +118,6 @@ exports.approveLoanRequest = {
137
118
  : [],
138
119
  latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
139
120
  longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
140
- is_freedom: isSet(object.is_freedom) ? globalThis.Boolean(object.is_freedom) : undefined,
141
121
  };
142
122
  },
143
123
  toJSON(message) {
@@ -166,9 +146,6 @@ exports.approveLoanRequest = {
166
146
  if (message.longitude !== 0) {
167
147
  obj.longitude = message.longitude;
168
148
  }
169
- if (message.is_freedom !== undefined) {
170
- obj.is_freedom = message.is_freedom;
171
- }
172
149
  return obj;
173
150
  },
174
151
  create(base) {
@@ -184,7 +161,6 @@ exports.approveLoanRequest = {
184
161
  message.addonsData = object.addonsData?.map((e) => exports.approveLoanRequest_Field.fromPartial(e)) || [];
185
162
  message.latitude = object.latitude ?? 0;
186
163
  message.longitude = object.longitude ?? 0;
187
- message.is_freedom = object.is_freedom ?? undefined;
188
164
  return message;
189
165
  },
190
166
  };
@@ -25,6 +25,7 @@ export interface response {
25
25
  external_order_id: string;
26
26
  amount: number;
27
27
  message?: string | undefined;
28
+ txn_date?: string | undefined;
28
29
  }
29
30
  export declare const request: {
30
31
  encode(message: request, writer?: _m0.Writer): _m0.Writer;
@@ -297,7 +297,15 @@ exports.request_bank_details = {
297
297
  },
298
298
  };
299
299
  function createBaseresponse() {
300
- return { status: "", status_code: 0, customer_id: 0, external_order_id: "", amount: 0, message: undefined };
300
+ return {
301
+ status: "",
302
+ status_code: 0,
303
+ customer_id: 0,
304
+ external_order_id: "",
305
+ amount: 0,
306
+ message: undefined,
307
+ txn_date: undefined,
308
+ };
301
309
  }
302
310
  exports.response = {
303
311
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -319,6 +327,9 @@ exports.response = {
319
327
  if (message.message !== undefined) {
320
328
  writer.uint32(50).string(message.message);
321
329
  }
330
+ if (message.txn_date !== undefined) {
331
+ writer.uint32(58).string(message.txn_date);
332
+ }
322
333
  return writer;
323
334
  },
324
335
  decode(input, length) {
@@ -364,6 +375,12 @@ exports.response = {
364
375
  }
365
376
  message.message = reader.string();
366
377
  continue;
378
+ case 7:
379
+ if (tag !== 58) {
380
+ break;
381
+ }
382
+ message.txn_date = reader.string();
383
+ continue;
367
384
  }
368
385
  if ((tag & 7) === 4 || tag === 0) {
369
386
  break;
@@ -380,6 +397,7 @@ exports.response = {
380
397
  external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
381
398
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
382
399
  message: isSet(object.message) ? globalThis.String(object.message) : undefined,
400
+ txn_date: isSet(object.txn_date) ? globalThis.String(object.txn_date) : undefined,
383
401
  };
384
402
  },
385
403
  toJSON(message) {
@@ -402,6 +420,9 @@ exports.response = {
402
420
  if (message.message !== undefined) {
403
421
  obj.message = message.message;
404
422
  }
423
+ if (message.txn_date !== undefined) {
424
+ obj.txn_date = message.txn_date;
425
+ }
405
426
  return obj;
406
427
  },
407
428
  create(base) {
@@ -415,6 +436,7 @@ exports.response = {
415
436
  message.external_order_id = object.external_order_id ?? "";
416
437
  message.amount = object.amount ?? 0;
417
438
  message.message = object.message ?? undefined;
439
+ message.txn_date = object.txn_date ?? undefined;
418
440
  return message;
419
441
  },
420
442
  };
@@ -1,34 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.freedom.updateadditionalverification";
3
- export interface updateAdditionalVerificationRequest {
4
- }
5
- export interface updateAdditionalVerificationResponse {
6
- message: string;
7
- }
8
- export declare const updateAdditionalVerificationRequest: {
9
- encode(_: updateAdditionalVerificationRequest, writer?: _m0.Writer): _m0.Writer;
10
- decode(input: _m0.Reader | Uint8Array, length?: number): updateAdditionalVerificationRequest;
11
- fromJSON(_: any): updateAdditionalVerificationRequest;
12
- toJSON(_: updateAdditionalVerificationRequest): unknown;
13
- create<I extends Exact<DeepPartial<updateAdditionalVerificationRequest>, I>>(base?: I): updateAdditionalVerificationRequest;
14
- fromPartial<I extends Exact<DeepPartial<updateAdditionalVerificationRequest>, I>>(_: I): updateAdditionalVerificationRequest;
15
- };
16
- export declare const updateAdditionalVerificationResponse: {
17
- encode(message: updateAdditionalVerificationResponse, writer?: _m0.Writer): _m0.Writer;
18
- decode(input: _m0.Reader | Uint8Array, length?: number): updateAdditionalVerificationResponse;
19
- fromJSON(object: any): updateAdditionalVerificationResponse;
20
- toJSON(message: updateAdditionalVerificationResponse): unknown;
21
- create<I extends Exact<DeepPartial<updateAdditionalVerificationResponse>, I>>(base?: I): updateAdditionalVerificationResponse;
22
- fromPartial<I extends Exact<DeepPartial<updateAdditionalVerificationResponse>, I>>(object: I): updateAdditionalVerificationResponse;
23
- };
24
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
25
- 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 {} ? {
26
- [K in keyof T]?: DeepPartial<T[K]>;
27
- } : Partial<T>;
28
- type KeysOfUnion<T> = T extends T ? keyof T : never;
29
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
30
- [K in keyof P]: Exact<P[K], I[K]>;
31
- } & {
32
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
33
- };
34
- export {};
@@ -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 {};