@stashfin/grpc 1.2.310 → 1.2.311

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.310",
3
+ "version": "1.2.311",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -13,6 +13,7 @@ export interface approveLoanRequest {
13
13
  export interface approveLoanRequest_Field {
14
14
  name: string;
15
15
  amount: number;
16
+ plan_id: number;
16
17
  }
17
18
  export interface approveLoanResponse {
18
19
  gateway_fees: number;
@@ -165,7 +165,7 @@ exports.approveLoanRequest = {
165
165
  },
166
166
  };
167
167
  function createBaseapproveLoanRequest_Field() {
168
- return { name: "", amount: 0 };
168
+ return { name: "", amount: 0, plan_id: 0 };
169
169
  }
170
170
  exports.approveLoanRequest_Field = {
171
171
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -175,6 +175,9 @@ exports.approveLoanRequest_Field = {
175
175
  if (message.amount !== 0) {
176
176
  writer.uint32(16).int32(message.amount);
177
177
  }
178
+ if (message.plan_id !== 0) {
179
+ writer.uint32(24).int32(message.plan_id);
180
+ }
178
181
  return writer;
179
182
  },
180
183
  decode(input, length) {
@@ -196,6 +199,12 @@ exports.approveLoanRequest_Field = {
196
199
  }
197
200
  message.amount = reader.int32();
198
201
  continue;
202
+ case 3:
203
+ if (tag !== 24) {
204
+ break;
205
+ }
206
+ message.plan_id = reader.int32();
207
+ continue;
199
208
  }
200
209
  if ((tag & 7) === 4 || tag === 0) {
201
210
  break;
@@ -208,6 +217,7 @@ exports.approveLoanRequest_Field = {
208
217
  return {
209
218
  name: isSet(object.name) ? globalThis.String(object.name) : "",
210
219
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
220
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
211
221
  };
212
222
  },
213
223
  toJSON(message) {
@@ -218,6 +228,9 @@ exports.approveLoanRequest_Field = {
218
228
  if (message.amount !== 0) {
219
229
  obj.amount = Math.round(message.amount);
220
230
  }
231
+ if (message.plan_id !== 0) {
232
+ obj.plan_id = Math.round(message.plan_id);
233
+ }
221
234
  return obj;
222
235
  },
223
236
  create(base) {
@@ -227,6 +240,7 @@ exports.approveLoanRequest_Field = {
227
240
  const message = createBaseapproveLoanRequest_Field();
228
241
  message.name = object.name ?? "";
229
242
  message.amount = object.amount ?? 0;
243
+ message.plan_id = object.plan_id ?? 0;
230
244
  return message;
231
245
  },
232
246
  };
@@ -7,6 +7,7 @@ export interface calculateEmiRequest {
7
7
  export interface calculateEmiRequest_Field {
8
8
  name: string;
9
9
  amount: number;
10
+ plan_id: number;
10
11
  }
11
12
  export interface calculateEmiResponse {
12
13
  disbursal_amount: number;
@@ -81,7 +81,7 @@ exports.calculateEmiRequest = {
81
81
  },
82
82
  };
83
83
  function createBasecalculateEmiRequest_Field() {
84
- return { name: "", amount: 0 };
84
+ return { name: "", amount: 0, plan_id: 0 };
85
85
  }
86
86
  exports.calculateEmiRequest_Field = {
87
87
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -91,6 +91,9 @@ exports.calculateEmiRequest_Field = {
91
91
  if (message.amount !== 0) {
92
92
  writer.uint32(16).int32(message.amount);
93
93
  }
94
+ if (message.plan_id !== 0) {
95
+ writer.uint32(24).int32(message.plan_id);
96
+ }
94
97
  return writer;
95
98
  },
96
99
  decode(input, length) {
@@ -112,6 +115,12 @@ exports.calculateEmiRequest_Field = {
112
115
  }
113
116
  message.amount = reader.int32();
114
117
  continue;
118
+ case 3:
119
+ if (tag !== 24) {
120
+ break;
121
+ }
122
+ message.plan_id = reader.int32();
123
+ continue;
115
124
  }
116
125
  if ((tag & 7) === 4 || tag === 0) {
117
126
  break;
@@ -124,6 +133,7 @@ exports.calculateEmiRequest_Field = {
124
133
  return {
125
134
  name: isSet(object.name) ? globalThis.String(object.name) : "",
126
135
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
136
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
127
137
  };
128
138
  },
129
139
  toJSON(message) {
@@ -134,6 +144,9 @@ exports.calculateEmiRequest_Field = {
134
144
  if (message.amount !== 0) {
135
145
  obj.amount = Math.round(message.amount);
136
146
  }
147
+ if (message.plan_id !== 0) {
148
+ obj.plan_id = Math.round(message.plan_id);
149
+ }
137
150
  return obj;
138
151
  },
139
152
  create(base) {
@@ -143,6 +156,7 @@ exports.calculateEmiRequest_Field = {
143
156
  const message = createBasecalculateEmiRequest_Field();
144
157
  message.name = object.name ?? "";
145
158
  message.amount = object.amount ?? 0;
159
+ message.plan_id = object.plan_id ?? 0;
146
160
  return message;
147
161
  },
148
162
  };
@@ -8,6 +8,7 @@ export interface loanSummaryRequest {
8
8
  export interface loanSummaryRequest_Field {
9
9
  name: string;
10
10
  amount: number;
11
+ plan_id: number;
11
12
  }
12
13
  export interface loanSummaryResponse {
13
14
  gateway_fees: number;
@@ -95,7 +95,7 @@ exports.loanSummaryRequest = {
95
95
  },
96
96
  };
97
97
  function createBaseloanSummaryRequest_Field() {
98
- return { name: "", amount: 0 };
98
+ return { name: "", amount: 0, plan_id: 0 };
99
99
  }
100
100
  exports.loanSummaryRequest_Field = {
101
101
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -105,6 +105,9 @@ exports.loanSummaryRequest_Field = {
105
105
  if (message.amount !== 0) {
106
106
  writer.uint32(16).int32(message.amount);
107
107
  }
108
+ if (message.plan_id !== 0) {
109
+ writer.uint32(24).int32(message.plan_id);
110
+ }
108
111
  return writer;
109
112
  },
110
113
  decode(input, length) {
@@ -126,6 +129,12 @@ exports.loanSummaryRequest_Field = {
126
129
  }
127
130
  message.amount = reader.int32();
128
131
  continue;
132
+ case 3:
133
+ if (tag !== 24) {
134
+ break;
135
+ }
136
+ message.plan_id = reader.int32();
137
+ continue;
129
138
  }
130
139
  if ((tag & 7) === 4 || tag === 0) {
131
140
  break;
@@ -138,6 +147,7 @@ exports.loanSummaryRequest_Field = {
138
147
  return {
139
148
  name: isSet(object.name) ? globalThis.String(object.name) : "",
140
149
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
150
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
141
151
  };
142
152
  },
143
153
  toJSON(message) {
@@ -148,6 +158,9 @@ exports.loanSummaryRequest_Field = {
148
158
  if (message.amount !== 0) {
149
159
  obj.amount = Math.round(message.amount);
150
160
  }
161
+ if (message.plan_id !== 0) {
162
+ obj.plan_id = Math.round(message.plan_id);
163
+ }
151
164
  return obj;
152
165
  },
153
166
  create(base) {
@@ -157,6 +170,7 @@ exports.loanSummaryRequest_Field = {
157
170
  const message = createBaseloanSummaryRequest_Field();
158
171
  message.name = object.name ?? "";
159
172
  message.amount = object.amount ?? 0;
173
+ message.plan_id = object.plan_id ?? 0;
160
174
  return message;
161
175
  },
162
176
  };