@felloh-org/lambda-wrapper 1.2.10 → 1.2.12
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.
|
@@ -200,6 +200,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
200
200
|
response.payment_link = this.payment_link.getPublicUltraCompactData();
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
if (this.metadata !== null) {
|
|
204
|
+
response.metadata = this.metadata;
|
|
205
|
+
}
|
|
206
|
+
|
|
203
207
|
if (this.organisation !== null && typeof this.organisation.id !== 'undefined' && typeof this.organisation.getPublicCompactData === 'function') {
|
|
204
208
|
response.organisation = this.organisation.getPublicCompactData();
|
|
205
209
|
}
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _typeorm = require("typeorm");
|
|
9
9
|
|
|
10
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
|
|
11
11
|
|
|
12
12
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
13
|
|
|
@@ -33,7 +33,10 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
33
33
|
}), _dec6 = (0, _typeorm.Column)({
|
|
34
34
|
type: "boolean",
|
|
35
35
|
default: false
|
|
36
|
-
}), _dec7 = (0, _typeorm.
|
|
36
|
+
}), _dec7 = (0, _typeorm.Column)({
|
|
37
|
+
type: "int",
|
|
38
|
+
nullable: true
|
|
39
|
+
}), _dec8 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class Merchant {
|
|
37
40
|
constructor() {
|
|
38
41
|
_initializerDefineProperty(this, "merchant_number", _descriptor, this);
|
|
39
42
|
|
|
@@ -45,7 +48,9 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
45
48
|
|
|
46
49
|
_initializerDefineProperty(this, "in_omnipay", _descriptor5, this);
|
|
47
50
|
|
|
48
|
-
_initializerDefineProperty(this, "
|
|
51
|
+
_initializerDefineProperty(this, "rolling_reserve", _descriptor6, this);
|
|
52
|
+
|
|
53
|
+
_initializerDefineProperty(this, "created_at", _descriptor7, this);
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "merchant_number", [_dec2], {
|
|
@@ -81,7 +86,14 @@ let Merchant = (_dec = (0, _typeorm.Entity)({
|
|
|
81
86
|
enumerable: true,
|
|
82
87
|
writable: true,
|
|
83
88
|
initializer: null
|
|
84
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
89
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "rolling_reserve", [_dec7], {
|
|
90
|
+
configurable: true,
|
|
91
|
+
enumerable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
initializer: function () {
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec8], {
|
|
85
97
|
configurable: true,
|
|
86
98
|
enumerable: true,
|
|
87
99
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class trustRollingReserve1663666433231 {
|
|
4
|
+
name = 'trustRollingReserve1663666433231'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" ADD "rolling_reserve" integer`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "trust_payments"."merchant" DROP COLUMN "rolling_reserve"`);
|
|
12
|
+
}
|
|
13
|
+
}
|