@stashfin/grpc 1.2.152 → 1.2.153
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,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.BankDetails = exports.Address = exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "customers.getcustomerbyid";
|
|
15
16
|
function createBasegetCustomerByIdRequest() {
|
|
@@ -140,6 +141,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
140
141
|
journey_inactive: undefined,
|
|
141
142
|
repeat_journey: undefined,
|
|
142
143
|
txn_rate: undefined,
|
|
144
|
+
id: 0,
|
|
143
145
|
};
|
|
144
146
|
}
|
|
145
147
|
exports.getCustomerByIdResponse = {
|
|
@@ -372,6 +374,9 @@ exports.getCustomerByIdResponse = {
|
|
|
372
374
|
if (message.txn_rate !== undefined) {
|
|
373
375
|
writer.uint32(613).float(message.txn_rate);
|
|
374
376
|
}
|
|
377
|
+
if (message.id !== 0) {
|
|
378
|
+
writer.uint32(616).int64(message.id);
|
|
379
|
+
}
|
|
375
380
|
return writer;
|
|
376
381
|
},
|
|
377
382
|
decode(input, length) {
|
|
@@ -837,6 +842,12 @@ exports.getCustomerByIdResponse = {
|
|
|
837
842
|
}
|
|
838
843
|
message.txn_rate = reader.float();
|
|
839
844
|
continue;
|
|
845
|
+
case 77:
|
|
846
|
+
if (tag !== 616) {
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
message.id = longToNumber(reader.int64());
|
|
850
|
+
continue;
|
|
840
851
|
}
|
|
841
852
|
if ((tag & 7) === 4 || tag === 0) {
|
|
842
853
|
break;
|
|
@@ -923,6 +934,7 @@ exports.getCustomerByIdResponse = {
|
|
|
923
934
|
journey_inactive: isSet(object.journey_inactive) ? globalThis.Number(object.journey_inactive) : undefined,
|
|
924
935
|
repeat_journey: isSet(object.repeat_journey) ? globalThis.Number(object.repeat_journey) : undefined,
|
|
925
936
|
txn_rate: isSet(object.txn_rate) ? globalThis.Number(object.txn_rate) : undefined,
|
|
937
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
926
938
|
};
|
|
927
939
|
},
|
|
928
940
|
toJSON(message) {
|
|
@@ -1155,6 +1167,9 @@ exports.getCustomerByIdResponse = {
|
|
|
1155
1167
|
if (message.txn_rate !== undefined) {
|
|
1156
1168
|
obj.txn_rate = message.txn_rate;
|
|
1157
1169
|
}
|
|
1170
|
+
if (message.id !== 0) {
|
|
1171
|
+
obj.id = Math.round(message.id);
|
|
1172
|
+
}
|
|
1158
1173
|
return obj;
|
|
1159
1174
|
},
|
|
1160
1175
|
create(base) {
|
|
@@ -1246,6 +1261,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1246
1261
|
message.journey_inactive = object.journey_inactive ?? undefined;
|
|
1247
1262
|
message.repeat_journey = object.repeat_journey ?? undefined;
|
|
1248
1263
|
message.txn_rate = object.txn_rate ?? undefined;
|
|
1264
|
+
message.id = object.id ?? 0;
|
|
1249
1265
|
return message;
|
|
1250
1266
|
},
|
|
1251
1267
|
};
|
|
@@ -1473,6 +1489,19 @@ exports.BankDetails = {
|
|
|
1473
1489
|
return message;
|
|
1474
1490
|
},
|
|
1475
1491
|
};
|
|
1492
|
+
function longToNumber(long) {
|
|
1493
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
1494
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1495
|
+
}
|
|
1496
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
1497
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1498
|
+
}
|
|
1499
|
+
return long.toNumber();
|
|
1500
|
+
}
|
|
1501
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1502
|
+
minimal_1.default.util.Long = long_1.default;
|
|
1503
|
+
minimal_1.default.configure();
|
|
1504
|
+
}
|
|
1476
1505
|
function isSet(value) {
|
|
1477
1506
|
return value !== null && value !== undefined;
|
|
1478
1507
|
}
|