@felloh-org/lambda-wrapper 1.4.1 → 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.
|
@@ -15,7 +15,7 @@ var _transactionBatch = _interopRequireDefault(require("../transaction-batch"));
|
|
|
15
15
|
|
|
16
16
|
var _currency = require("../currency");
|
|
17
17
|
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -52,6 +52,9 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
52
52
|
}), _dec13 = (0, _typeorm.Column)({
|
|
53
53
|
type: "boolean",
|
|
54
54
|
default: true
|
|
55
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
56
|
+
type: "boolean",
|
|
57
|
+
default: false
|
|
55
58
|
}), _dec(_class = (_class2 = class Disbursal {
|
|
56
59
|
constructor() {
|
|
57
60
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
@@ -73,6 +76,8 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
73
76
|
_initializerDefineProperty(this, "provider_reference", _descriptor9, this);
|
|
74
77
|
|
|
75
78
|
_initializerDefineProperty(this, "is_ledgered", _descriptor10, this);
|
|
79
|
+
|
|
80
|
+
_initializerDefineProperty(this, "is_manual_review", _descriptor11, this);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
getPublicData() {
|
|
@@ -149,5 +154,12 @@ let Disbursal = (_dec = (0, _typeorm.Entity)({
|
|
|
149
154
|
initializer: function () {
|
|
150
155
|
return true;
|
|
151
156
|
}
|
|
157
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "is_manual_review", [_dec14], {
|
|
158
|
+
configurable: true,
|
|
159
|
+
enumerable: true,
|
|
160
|
+
writable: true,
|
|
161
|
+
initializer: function () {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
152
164
|
})), _class2)) || _class);
|
|
153
165
|
exports.default = Disbursal;
|
|
@@ -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
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class disbursalManualReview1670517416837 {
|
|
4
|
+
name = 'disbursalManualReview1670517416837'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "bank"."disbursal" ADD "is_manual_review" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "bank"."disbursal" DROP COLUMN "is_manual_review"`);
|
|
12
|
+
}
|
|
13
|
+
}
|