@felloh-org/lambda-wrapper 1.4.2 → 1.4.3

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.
@@ -193,6 +193,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
193
193
  response.organisation = this.organisation.getPublicCompactData();
194
194
  }
195
195
 
196
+ if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
197
+ response.disbursal = {
198
+ id: this.batch[0].disbursal.id
199
+ };
200
+ }
201
+
196
202
  return response;
197
203
  }
198
204
 
@@ -217,6 +223,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
217
223
  response.payment_link = this.payment_link.getPublicUltraCompactData();
218
224
  }
219
225
 
226
+ if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
227
+ response.disbursal = {
228
+ id: this.batch[0].disbursal.id
229
+ };
230
+ }
231
+
220
232
  if (this.ecommerce !== null && typeof this.ecommerce !== 'undefined' && typeof this.ecommerce.getPublicData === 'function') {
221
233
  response.ecommerce = this.ecommerce.getPublicUltraCompactData();
222
234
  }
@@ -229,6 +241,7 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
229
241
  response.organisation = this.organisation.getPublicCompactData();
230
242
  }
231
243
 
244
+ console.log();
232
245
  return response;
233
246
  }
234
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {