@stashfin/grpc 1.2.192 → 1.2.193
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/getcustomerbyid.d.ts +1 -1
- package/ts/customers/getcustomerbyid.js +8 -8
- package/ts/payments/nachpresentation.d.ts +1 -0
- package/ts/payments/nachpresentation.js +22 -8
- package/ts/payments/nachregistration.d.ts +1 -0
- package/ts/payments/nachregistration.js +30 -15
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ export interface getCustomerByIdResponse {
|
|
|
80
80
|
journey_inactive?: number | undefined;
|
|
81
81
|
repeat_journey?: number | undefined;
|
|
82
82
|
txn_rate?: number | undefined;
|
|
83
|
-
|
|
83
|
+
customer_id: number;
|
|
84
84
|
}
|
|
85
85
|
export interface Address {
|
|
86
86
|
house_flat_no?: string | undefined;
|
|
@@ -141,7 +141,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
141
141
|
journey_inactive: undefined,
|
|
142
142
|
repeat_journey: undefined,
|
|
143
143
|
txn_rate: undefined,
|
|
144
|
-
|
|
144
|
+
customer_id: 0,
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
exports.getCustomerByIdResponse = {
|
|
@@ -374,8 +374,8 @@ exports.getCustomerByIdResponse = {
|
|
|
374
374
|
if (message.txn_rate !== undefined) {
|
|
375
375
|
writer.uint32(613).float(message.txn_rate);
|
|
376
376
|
}
|
|
377
|
-
if (message.
|
|
378
|
-
writer.uint32(616).int64(message.
|
|
377
|
+
if (message.customer_id !== 0) {
|
|
378
|
+
writer.uint32(616).int64(message.customer_id);
|
|
379
379
|
}
|
|
380
380
|
return writer;
|
|
381
381
|
},
|
|
@@ -846,7 +846,7 @@ exports.getCustomerByIdResponse = {
|
|
|
846
846
|
if (tag !== 616) {
|
|
847
847
|
break;
|
|
848
848
|
}
|
|
849
|
-
message.
|
|
849
|
+
message.customer_id = longToNumber(reader.int64());
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
852
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -934,7 +934,7 @@ exports.getCustomerByIdResponse = {
|
|
|
934
934
|
journey_inactive: isSet(object.journey_inactive) ? globalThis.Number(object.journey_inactive) : undefined,
|
|
935
935
|
repeat_journey: isSet(object.repeat_journey) ? globalThis.Number(object.repeat_journey) : undefined,
|
|
936
936
|
txn_rate: isSet(object.txn_rate) ? globalThis.Number(object.txn_rate) : undefined,
|
|
937
|
-
|
|
937
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
938
938
|
};
|
|
939
939
|
},
|
|
940
940
|
toJSON(message) {
|
|
@@ -1167,8 +1167,8 @@ exports.getCustomerByIdResponse = {
|
|
|
1167
1167
|
if (message.txn_rate !== undefined) {
|
|
1168
1168
|
obj.txn_rate = message.txn_rate;
|
|
1169
1169
|
}
|
|
1170
|
-
if (message.
|
|
1171
|
-
obj.
|
|
1170
|
+
if (message.customer_id !== 0) {
|
|
1171
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
1172
1172
|
}
|
|
1173
1173
|
return obj;
|
|
1174
1174
|
},
|
|
@@ -1261,7 +1261,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1261
1261
|
message.journey_inactive = object.journey_inactive ?? undefined;
|
|
1262
1262
|
message.repeat_journey = object.repeat_journey ?? undefined;
|
|
1263
1263
|
message.txn_rate = object.txn_rate ?? undefined;
|
|
1264
|
-
message.
|
|
1264
|
+
message.customer_id = object.customer_id ?? 0;
|
|
1265
1265
|
return message;
|
|
1266
1266
|
},
|
|
1267
1267
|
};
|
|
@@ -14,21 +14,24 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "payments.nachpresentation";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, amount: 0, client_id: "", external_order_id: "" };
|
|
17
|
+
return { customer_id: 0, mode: "", amount: 0, client_id: "", external_order_id: "" };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
21
|
if (message.customer_id !== 0) {
|
|
22
22
|
writer.uint32(8).int64(message.customer_id);
|
|
23
23
|
}
|
|
24
|
+
if (message.mode !== "") {
|
|
25
|
+
writer.uint32(18).string(message.mode);
|
|
26
|
+
}
|
|
24
27
|
if (message.amount !== 0) {
|
|
25
|
-
writer.uint32(
|
|
28
|
+
writer.uint32(29).float(message.amount);
|
|
26
29
|
}
|
|
27
30
|
if (message.client_id !== "") {
|
|
28
|
-
writer.uint32(
|
|
31
|
+
writer.uint32(34).string(message.client_id);
|
|
29
32
|
}
|
|
30
33
|
if (message.external_order_id !== "") {
|
|
31
|
-
writer.uint32(
|
|
34
|
+
writer.uint32(42).string(message.external_order_id);
|
|
32
35
|
}
|
|
33
36
|
return writer;
|
|
34
37
|
},
|
|
@@ -46,21 +49,27 @@ exports.request = {
|
|
|
46
49
|
message.customer_id = longToNumber(reader.int64());
|
|
47
50
|
continue;
|
|
48
51
|
case 2:
|
|
49
|
-
if (tag !==
|
|
52
|
+
if (tag !== 18) {
|
|
50
53
|
break;
|
|
51
54
|
}
|
|
52
|
-
message.
|
|
55
|
+
message.mode = reader.string();
|
|
53
56
|
continue;
|
|
54
57
|
case 3:
|
|
55
|
-
if (tag !==
|
|
58
|
+
if (tag !== 29) {
|
|
56
59
|
break;
|
|
57
60
|
}
|
|
58
|
-
message.
|
|
61
|
+
message.amount = reader.float();
|
|
59
62
|
continue;
|
|
60
63
|
case 4:
|
|
61
64
|
if (tag !== 34) {
|
|
62
65
|
break;
|
|
63
66
|
}
|
|
67
|
+
message.client_id = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
64
73
|
message.external_order_id = reader.string();
|
|
65
74
|
continue;
|
|
66
75
|
}
|
|
@@ -74,6 +83,7 @@ exports.request = {
|
|
|
74
83
|
fromJSON(object) {
|
|
75
84
|
return {
|
|
76
85
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
86
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
77
87
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
78
88
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
79
89
|
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
@@ -84,6 +94,9 @@ exports.request = {
|
|
|
84
94
|
if (message.customer_id !== 0) {
|
|
85
95
|
obj.customer_id = Math.round(message.customer_id);
|
|
86
96
|
}
|
|
97
|
+
if (message.mode !== "") {
|
|
98
|
+
obj.mode = message.mode;
|
|
99
|
+
}
|
|
87
100
|
if (message.amount !== 0) {
|
|
88
101
|
obj.amount = message.amount;
|
|
89
102
|
}
|
|
@@ -101,6 +114,7 @@ exports.request = {
|
|
|
101
114
|
fromPartial(object) {
|
|
102
115
|
const message = createBaserequest();
|
|
103
116
|
message.customer_id = object.customer_id ?? 0;
|
|
117
|
+
message.mode = object.mode ?? "";
|
|
104
118
|
message.amount = object.amount ?? 0;
|
|
105
119
|
message.client_id = object.client_id ?? "";
|
|
106
120
|
message.external_order_id = object.external_order_id ?? "";
|
|
@@ -16,6 +16,7 @@ exports.protobufPackage = "payments.nachregistration";
|
|
|
16
16
|
function createBaserequest() {
|
|
17
17
|
return {
|
|
18
18
|
customer_id: 0,
|
|
19
|
+
mode: "",
|
|
19
20
|
client_id: "",
|
|
20
21
|
mandate_type: "",
|
|
21
22
|
bank_name: undefined,
|
|
@@ -30,26 +31,29 @@ exports.request = {
|
|
|
30
31
|
if (message.customer_id !== 0) {
|
|
31
32
|
writer.uint32(8).int64(message.customer_id);
|
|
32
33
|
}
|
|
34
|
+
if (message.mode !== "") {
|
|
35
|
+
writer.uint32(18).string(message.mode);
|
|
36
|
+
}
|
|
33
37
|
if (message.client_id !== "") {
|
|
34
|
-
writer.uint32(
|
|
38
|
+
writer.uint32(26).string(message.client_id);
|
|
35
39
|
}
|
|
36
40
|
if (message.mandate_type !== "") {
|
|
37
|
-
writer.uint32(
|
|
41
|
+
writer.uint32(34).string(message.mandate_type);
|
|
38
42
|
}
|
|
39
43
|
if (message.bank_name !== undefined) {
|
|
40
|
-
writer.uint32(
|
|
44
|
+
writer.uint32(42).string(message.bank_name);
|
|
41
45
|
}
|
|
42
46
|
if (message.bank_account_number !== undefined) {
|
|
43
|
-
writer.uint32(
|
|
47
|
+
writer.uint32(50).string(message.bank_account_number);
|
|
44
48
|
}
|
|
45
49
|
if (message.bank_ifsc !== undefined) {
|
|
46
|
-
writer.uint32(
|
|
50
|
+
writer.uint32(58).string(message.bank_ifsc);
|
|
47
51
|
}
|
|
48
52
|
if (message.maximum_amount !== 0) {
|
|
49
|
-
writer.uint32(
|
|
53
|
+
writer.uint32(69).float(message.maximum_amount);
|
|
50
54
|
}
|
|
51
55
|
if (message.external_order_id !== "") {
|
|
52
|
-
writer.uint32(
|
|
56
|
+
writer.uint32(74).string(message.external_order_id);
|
|
53
57
|
}
|
|
54
58
|
return writer;
|
|
55
59
|
},
|
|
@@ -70,40 +74,46 @@ exports.request = {
|
|
|
70
74
|
if (tag !== 18) {
|
|
71
75
|
break;
|
|
72
76
|
}
|
|
73
|
-
message.
|
|
77
|
+
message.mode = reader.string();
|
|
74
78
|
continue;
|
|
75
79
|
case 3:
|
|
76
80
|
if (tag !== 26) {
|
|
77
81
|
break;
|
|
78
82
|
}
|
|
79
|
-
message.
|
|
83
|
+
message.client_id = reader.string();
|
|
80
84
|
continue;
|
|
81
85
|
case 4:
|
|
82
86
|
if (tag !== 34) {
|
|
83
87
|
break;
|
|
84
88
|
}
|
|
85
|
-
message.
|
|
89
|
+
message.mandate_type = reader.string();
|
|
86
90
|
continue;
|
|
87
91
|
case 5:
|
|
88
92
|
if (tag !== 42) {
|
|
89
93
|
break;
|
|
90
94
|
}
|
|
91
|
-
message.
|
|
95
|
+
message.bank_name = reader.string();
|
|
92
96
|
continue;
|
|
93
97
|
case 6:
|
|
94
98
|
if (tag !== 50) {
|
|
95
99
|
break;
|
|
96
100
|
}
|
|
97
|
-
message.
|
|
101
|
+
message.bank_account_number = reader.string();
|
|
98
102
|
continue;
|
|
99
103
|
case 7:
|
|
100
|
-
if (tag !==
|
|
104
|
+
if (tag !== 58) {
|
|
101
105
|
break;
|
|
102
106
|
}
|
|
103
|
-
message.
|
|
107
|
+
message.bank_ifsc = reader.string();
|
|
104
108
|
continue;
|
|
105
109
|
case 8:
|
|
106
|
-
if (tag !==
|
|
110
|
+
if (tag !== 69) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.maximum_amount = reader.float();
|
|
114
|
+
continue;
|
|
115
|
+
case 9:
|
|
116
|
+
if (tag !== 74) {
|
|
107
117
|
break;
|
|
108
118
|
}
|
|
109
119
|
message.external_order_id = reader.string();
|
|
@@ -119,6 +129,7 @@ exports.request = {
|
|
|
119
129
|
fromJSON(object) {
|
|
120
130
|
return {
|
|
121
131
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
132
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
122
133
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
123
134
|
mandate_type: isSet(object.mandate_type) ? globalThis.String(object.mandate_type) : "",
|
|
124
135
|
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : undefined,
|
|
@@ -135,6 +146,9 @@ exports.request = {
|
|
|
135
146
|
if (message.customer_id !== 0) {
|
|
136
147
|
obj.customer_id = Math.round(message.customer_id);
|
|
137
148
|
}
|
|
149
|
+
if (message.mode !== "") {
|
|
150
|
+
obj.mode = message.mode;
|
|
151
|
+
}
|
|
138
152
|
if (message.client_id !== "") {
|
|
139
153
|
obj.client_id = message.client_id;
|
|
140
154
|
}
|
|
@@ -164,6 +178,7 @@ exports.request = {
|
|
|
164
178
|
fromPartial(object) {
|
|
165
179
|
const message = createBaserequest();
|
|
166
180
|
message.customer_id = object.customer_id ?? 0;
|
|
181
|
+
message.mode = object.mode ?? "";
|
|
167
182
|
message.client_id = object.client_id ?? "";
|
|
168
183
|
message.mandate_type = object.mandate_type ?? "";
|
|
169
184
|
message.bank_name = object.bank_name ?? undefined;
|