@stashfin/grpc 1.2.417 → 1.2.418
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
|
@@ -2,6 +2,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "decisionengine.saveConsent";
|
|
3
3
|
export interface saveConsentRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
+
banner_code?: string | undefined;
|
|
5
6
|
}
|
|
6
7
|
export interface saveConsentResponse {
|
|
7
8
|
success: boolean;
|
|
@@ -13,13 +13,16 @@ exports.saveConsentResponse = exports.saveConsentRequest = exports.protobufPacka
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "decisionengine.saveConsent";
|
|
15
15
|
function createBasesaveConsentRequest() {
|
|
16
|
-
return { customer_id: 0 };
|
|
16
|
+
return { customer_id: 0, banner_code: undefined };
|
|
17
17
|
}
|
|
18
18
|
exports.saveConsentRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
+
if (message.banner_code !== undefined) {
|
|
24
|
+
writer.uint32(18).string(message.banner_code);
|
|
25
|
+
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
@@ -35,6 +38,12 @@ exports.saveConsentRequest = {
|
|
|
35
38
|
}
|
|
36
39
|
message.customer_id = reader.int32();
|
|
37
40
|
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.banner_code = reader.string();
|
|
46
|
+
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
49
|
break;
|
|
@@ -44,13 +53,19 @@ exports.saveConsentRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
58
|
+
banner_code: isSet(object.banner_code) ? globalThis.String(object.banner_code) : undefined,
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
63
|
if (message.customer_id !== 0) {
|
|
52
64
|
obj.customer_id = Math.round(message.customer_id);
|
|
53
65
|
}
|
|
66
|
+
if (message.banner_code !== undefined) {
|
|
67
|
+
obj.banner_code = message.banner_code;
|
|
68
|
+
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
@@ -59,6 +74,7 @@ exports.saveConsentRequest = {
|
|
|
59
74
|
fromPartial(object) {
|
|
60
75
|
const message = createBasesaveConsentRequest();
|
|
61
76
|
message.customer_id = object.customer_id ?? 0;
|
|
77
|
+
message.banner_code = object.banner_code ?? undefined;
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|