@stashfin/grpc 1.2.328 → 1.2.330
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
|
@@ -11,6 +11,8 @@ export interface getSetuBillDetailsResponse {
|
|
|
11
11
|
data: getSetuBillDetailsResponse_Field[];
|
|
12
12
|
total_amount: number;
|
|
13
13
|
order_id: string;
|
|
14
|
+
customer_id: number;
|
|
15
|
+
customer_name: string;
|
|
14
16
|
}
|
|
15
17
|
export interface getSetuBillDetailsResponse_Field {
|
|
16
18
|
bill_amount: number;
|
|
@@ -134,7 +134,7 @@ exports.getSetuBillDetailsRequest_Field = {
|
|
|
134
134
|
},
|
|
135
135
|
};
|
|
136
136
|
function createBasegetSetuBillDetailsResponse() {
|
|
137
|
-
return { data: [], total_amount: 0, order_id: "" };
|
|
137
|
+
return { data: [], total_amount: 0, order_id: "", customer_id: 0, customer_name: "" };
|
|
138
138
|
}
|
|
139
139
|
exports.getSetuBillDetailsResponse = {
|
|
140
140
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -147,6 +147,12 @@ exports.getSetuBillDetailsResponse = {
|
|
|
147
147
|
if (message.order_id !== "") {
|
|
148
148
|
writer.uint32(26).string(message.order_id);
|
|
149
149
|
}
|
|
150
|
+
if (message.customer_id !== 0) {
|
|
151
|
+
writer.uint32(32).int32(message.customer_id);
|
|
152
|
+
}
|
|
153
|
+
if (message.customer_name !== "") {
|
|
154
|
+
writer.uint32(42).string(message.customer_name);
|
|
155
|
+
}
|
|
150
156
|
return writer;
|
|
151
157
|
},
|
|
152
158
|
decode(input, length) {
|
|
@@ -174,6 +180,18 @@ exports.getSetuBillDetailsResponse = {
|
|
|
174
180
|
}
|
|
175
181
|
message.order_id = reader.string();
|
|
176
182
|
continue;
|
|
183
|
+
case 4:
|
|
184
|
+
if (tag !== 32) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.customer_id = reader.int32();
|
|
188
|
+
continue;
|
|
189
|
+
case 5:
|
|
190
|
+
if (tag !== 42) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.customer_name = reader.string();
|
|
194
|
+
continue;
|
|
177
195
|
}
|
|
178
196
|
if ((tag & 7) === 4 || tag === 0) {
|
|
179
197
|
break;
|
|
@@ -189,6 +207,8 @@ exports.getSetuBillDetailsResponse = {
|
|
|
189
207
|
: [],
|
|
190
208
|
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
191
209
|
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
210
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
211
|
+
customer_name: isSet(object.customer_name) ? globalThis.String(object.customer_name) : "",
|
|
192
212
|
};
|
|
193
213
|
},
|
|
194
214
|
toJSON(message) {
|
|
@@ -202,6 +222,12 @@ exports.getSetuBillDetailsResponse = {
|
|
|
202
222
|
if (message.order_id !== "") {
|
|
203
223
|
obj.order_id = message.order_id;
|
|
204
224
|
}
|
|
225
|
+
if (message.customer_id !== 0) {
|
|
226
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
227
|
+
}
|
|
228
|
+
if (message.customer_name !== "") {
|
|
229
|
+
obj.customer_name = message.customer_name;
|
|
230
|
+
}
|
|
205
231
|
return obj;
|
|
206
232
|
},
|
|
207
233
|
create(base) {
|
|
@@ -212,6 +238,8 @@ exports.getSetuBillDetailsResponse = {
|
|
|
212
238
|
message.data = object.data?.map((e) => exports.getSetuBillDetailsResponse_Field.fromPartial(e)) || [];
|
|
213
239
|
message.total_amount = object.total_amount ?? 0;
|
|
214
240
|
message.order_id = object.order_id ?? "";
|
|
241
|
+
message.customer_id = object.customer_id ?? 0;
|
|
242
|
+
message.customer_name = object.customer_name ?? "";
|
|
215
243
|
return message;
|
|
216
244
|
},
|
|
217
245
|
};
|