@felloh-org/lambda-wrapper 1.1.41 → 1.1.42
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 _paymentProvider = _interopRequireDefault(require("../payment-provider"));
|
|
|
15
15
|
|
|
16
16
|
var _transactionMethod = _interopRequireDefault(require("../transaction-method"));
|
|
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;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _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
|
|
|
@@ -59,7 +59,12 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
59
59
|
}), _dec12 = (0, _typeorm.Column)({
|
|
60
60
|
type: "varchar",
|
|
61
61
|
length: "4"
|
|
62
|
-
}), _dec13 = (0, _typeorm.
|
|
62
|
+
}), _dec13 = (0, _typeorm.Column)({
|
|
63
|
+
type: "boolean",
|
|
64
|
+
default: false
|
|
65
|
+
}), _dec14 = (0, _typeorm.Column)({
|
|
66
|
+
type: "int"
|
|
67
|
+
}), _dec15 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class OrganisationPaymentProvider {
|
|
63
68
|
constructor() {
|
|
64
69
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
65
70
|
|
|
@@ -77,7 +82,11 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
77
82
|
|
|
78
83
|
_initializerDefineProperty(this, "secret_key_last_four", _descriptor8, this);
|
|
79
84
|
|
|
80
|
-
_initializerDefineProperty(this, "
|
|
85
|
+
_initializerDefineProperty(this, "is_active", _descriptor9, this);
|
|
86
|
+
|
|
87
|
+
_initializerDefineProperty(this, "weight", _descriptor10, this);
|
|
88
|
+
|
|
89
|
+
_initializerDefineProperty(this, "created_at", _descriptor11, this);
|
|
81
90
|
}
|
|
82
91
|
|
|
83
92
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -132,7 +141,19 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
132
141
|
initializer: function () {
|
|
133
142
|
return "";
|
|
134
143
|
}
|
|
135
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
144
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "is_active", [_dec13], {
|
|
145
|
+
configurable: true,
|
|
146
|
+
enumerable: true,
|
|
147
|
+
writable: true,
|
|
148
|
+
initializer: function () {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "weight", [_dec14], {
|
|
152
|
+
configurable: true,
|
|
153
|
+
enumerable: true,
|
|
154
|
+
writable: true,
|
|
155
|
+
initializer: null
|
|
156
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec15], {
|
|
136
157
|
configurable: true,
|
|
137
158
|
enumerable: true,
|
|
138
159
|
writable: true,
|
|
@@ -9,7 +9,7 @@ var _typeorm = require("typeorm");
|
|
|
9
9
|
|
|
10
10
|
var _uuid = require("uuid");
|
|
11
11
|
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
12
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
13
13
|
|
|
14
14
|
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 }); }
|
|
15
15
|
|
|
@@ -24,13 +24,18 @@ let PaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
24
24
|
type: "varchar",
|
|
25
25
|
length: "150",
|
|
26
26
|
nullable: true
|
|
27
|
-
}), _dec4 = (0, _typeorm.
|
|
27
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
28
|
+
type: "boolean",
|
|
29
|
+
default: false
|
|
30
|
+
}), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class PaymentProvider {
|
|
28
31
|
constructor() {
|
|
29
32
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
30
33
|
|
|
31
34
|
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
32
35
|
|
|
33
|
-
_initializerDefineProperty(this, "
|
|
36
|
+
_initializerDefineProperty(this, "is_active", _descriptor3, this);
|
|
37
|
+
|
|
38
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -47,7 +52,14 @@ let PaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
47
52
|
initializer: function () {
|
|
48
53
|
return "";
|
|
49
54
|
}
|
|
50
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
55
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "is_active", [_dec4], {
|
|
56
|
+
configurable: true,
|
|
57
|
+
enumerable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
initializer: function () {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
51
63
|
configurable: true,
|
|
52
64
|
enumerable: true,
|
|
53
65
|
writable: true,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class paymentProviderActiveWeighting1658478874188 {
|
|
4
|
+
name = 'paymentProviderActiveWeighting1658478874188'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_provider" ADD "is_active" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "is_active" boolean NOT NULL DEFAULT false`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "weight" integer NOT NULL`);
|
|
10
|
+
await queryRunner.query(`UPDATE "payment"."payment_provider" SET "is_active" = true`);
|
|
11
|
+
await queryRunner.query(`UPDATE "payment"."organisation_payment_provider" SET "is_active" = true, "weight" = 100`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async down(queryRunner) {
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "weight"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "is_active"`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_provider" DROP COLUMN "is_active"`);
|
|
18
|
+
}
|
|
19
|
+
}
|