@stashfin/grpc 1.2.298 → 1.2.300
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
|
@@ -10,7 +10,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.initiatepaymentresponse = exports.redirectdata = exports.initiatepaymentrequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
-
const long_1 = __importDefault(require("long"));
|
|
14
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
14
|
exports.protobufPackage = "growth.initiatepayment";
|
|
16
15
|
function createBaseinitiatepaymentrequest() {
|
|
@@ -25,7 +24,7 @@ exports.initiatepaymentrequest = {
|
|
|
25
24
|
writer.uint32(18).string(message.report_type);
|
|
26
25
|
}
|
|
27
26
|
if (message.amount !== 0) {
|
|
28
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(25).double(message.amount);
|
|
29
28
|
}
|
|
30
29
|
return writer;
|
|
31
30
|
},
|
|
@@ -49,10 +48,10 @@ exports.initiatepaymentrequest = {
|
|
|
49
48
|
message.report_type = reader.string();
|
|
50
49
|
continue;
|
|
51
50
|
case 3:
|
|
52
|
-
if (tag !==
|
|
51
|
+
if (tag !== 25) {
|
|
53
52
|
break;
|
|
54
53
|
}
|
|
55
|
-
message.amount =
|
|
54
|
+
message.amount = reader.double();
|
|
56
55
|
continue;
|
|
57
56
|
}
|
|
58
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -78,7 +77,7 @@ exports.initiatepaymentrequest = {
|
|
|
78
77
|
obj.report_type = message.report_type;
|
|
79
78
|
}
|
|
80
79
|
if (message.amount !== 0) {
|
|
81
|
-
obj.amount =
|
|
80
|
+
obj.amount = message.amount;
|
|
82
81
|
}
|
|
83
82
|
return obj;
|
|
84
83
|
},
|
|
@@ -239,19 +238,6 @@ exports.initiatepaymentresponse = {
|
|
|
239
238
|
return message;
|
|
240
239
|
},
|
|
241
240
|
};
|
|
242
|
-
function longToNumber(long) {
|
|
243
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
244
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
245
|
-
}
|
|
246
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
247
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
248
|
-
}
|
|
249
|
-
return long.toNumber();
|
|
250
|
-
}
|
|
251
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
252
|
-
minimal_1.default.util.Long = long_1.default;
|
|
253
|
-
minimal_1.default.configure();
|
|
254
|
-
}
|
|
255
241
|
function isSet(value) {
|
|
256
242
|
return value !== null && value !== undefined;
|
|
257
243
|
}
|
|
@@ -4,7 +4,7 @@ export interface getVirtualAccountNumberRequest {
|
|
|
4
4
|
customer_id: number;
|
|
5
5
|
}
|
|
6
6
|
export interface getVirtualAccountNumberResponse {
|
|
7
|
-
account_number:
|
|
7
|
+
account_number: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const getVirtualAccountNumberRequest: {
|
|
10
10
|
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -63,12 +63,12 @@ exports.getVirtualAccountNumberRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBasegetVirtualAccountNumberResponse() {
|
|
66
|
-
return { account_number:
|
|
66
|
+
return { account_number: "" };
|
|
67
67
|
}
|
|
68
68
|
exports.getVirtualAccountNumberResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.account_number !==
|
|
71
|
-
writer.uint32(
|
|
70
|
+
if (message.account_number !== "") {
|
|
71
|
+
writer.uint32(10).string(message.account_number);
|
|
72
72
|
}
|
|
73
73
|
return writer;
|
|
74
74
|
},
|
|
@@ -80,10 +80,10 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
80
80
|
const tag = reader.uint32();
|
|
81
81
|
switch (tag >>> 3) {
|
|
82
82
|
case 1:
|
|
83
|
-
if (tag !==
|
|
83
|
+
if (tag !== 10) {
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
message.account_number = reader.
|
|
86
|
+
message.account_number = reader.string();
|
|
87
87
|
continue;
|
|
88
88
|
}
|
|
89
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,12 +94,12 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
94
94
|
return message;
|
|
95
95
|
},
|
|
96
96
|
fromJSON(object) {
|
|
97
|
-
return { account_number: isSet(object.account_number) ? globalThis.
|
|
97
|
+
return { account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "" };
|
|
98
98
|
},
|
|
99
99
|
toJSON(message) {
|
|
100
100
|
const obj = {};
|
|
101
|
-
if (message.account_number !==
|
|
102
|
-
obj.account_number =
|
|
101
|
+
if (message.account_number !== "") {
|
|
102
|
+
obj.account_number = message.account_number;
|
|
103
103
|
}
|
|
104
104
|
return obj;
|
|
105
105
|
},
|
|
@@ -108,7 +108,7 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
110
110
|
const message = createBasegetVirtualAccountNumberResponse();
|
|
111
|
-
message.account_number = object.account_number ??
|
|
111
|
+
message.account_number = object.account_number ?? "";
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
114
114
|
};
|