@felloh-org/lambda-wrapper 1.2.37 → 1.3.0
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/dist/entity/payment/organisation-payment-provider/index.js +32 -8
- package/dist/migration/payment/1667918366826-insert_applepay_and_googlepay_transaction_types.js +14 -0
- package/dist/migration/payment/1667925229730-organisation_payment_provider_add_applepay_googlepay_columns.js +15 -0
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var _currency = _interopRequireDefault(require("../../bank/currency"));
|
|
|
19
19
|
|
|
20
20
|
var _organisationPaymentProviderMethod = _interopRequireDefault(require("../organisation-payment-provider-method"));
|
|
21
21
|
|
|
22
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
|
|
22
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -73,7 +73,13 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
73
73
|
}), _dec15 = (0, _typeorm.Column)({
|
|
74
74
|
type: "boolean",
|
|
75
75
|
default: false
|
|
76
|
-
}), _dec16 = (0, _typeorm.
|
|
76
|
+
}), _dec16 = (0, _typeorm.Column)({
|
|
77
|
+
type: "boolean",
|
|
78
|
+
default: false
|
|
79
|
+
}), _dec17 = (0, _typeorm.Column)({
|
|
80
|
+
type: "boolean",
|
|
81
|
+
default: false
|
|
82
|
+
}), _dec18 = (0, _typeorm.CreateDateColumn)(), _dec19 = (0, _typeorm.UpdateDateColumn)(), _dec20 = (0, _typeorm.DeleteDateColumn)(), _dec(_class = (_class2 = class OrganisationPaymentProvider {
|
|
77
83
|
constructor() {
|
|
78
84
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
79
85
|
|
|
@@ -97,11 +103,15 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
97
103
|
|
|
98
104
|
_initializerDefineProperty(this, "is_active", _descriptor11, this);
|
|
99
105
|
|
|
100
|
-
_initializerDefineProperty(this, "
|
|
106
|
+
_initializerDefineProperty(this, "googlepay_enabled", _descriptor12, this);
|
|
107
|
+
|
|
108
|
+
_initializerDefineProperty(this, "applepay_enabled", _descriptor13, this);
|
|
101
109
|
|
|
102
|
-
_initializerDefineProperty(this, "
|
|
110
|
+
_initializerDefineProperty(this, "created_at", _descriptor14, this);
|
|
103
111
|
|
|
104
|
-
_initializerDefineProperty(this, "
|
|
112
|
+
_initializerDefineProperty(this, "updated_at", _descriptor15, this);
|
|
113
|
+
|
|
114
|
+
_initializerDefineProperty(this, "deleted_at", _descriptor16, this);
|
|
105
115
|
}
|
|
106
116
|
|
|
107
117
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -175,17 +185,31 @@ let OrganisationPaymentProvider = (_dec = (0, _typeorm.Entity)({
|
|
|
175
185
|
initializer: function () {
|
|
176
186
|
return false;
|
|
177
187
|
}
|
|
178
|
-
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
188
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "googlepay_enabled", [_dec16], {
|
|
189
|
+
configurable: true,
|
|
190
|
+
enumerable: true,
|
|
191
|
+
writable: true,
|
|
192
|
+
initializer: function () {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "applepay_enabled", [_dec17], {
|
|
196
|
+
configurable: true,
|
|
197
|
+
enumerable: true,
|
|
198
|
+
writable: true,
|
|
199
|
+
initializer: function () {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec18], {
|
|
179
203
|
configurable: true,
|
|
180
204
|
enumerable: true,
|
|
181
205
|
writable: true,
|
|
182
206
|
initializer: null
|
|
183
|
-
}),
|
|
207
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec19], {
|
|
184
208
|
configurable: true,
|
|
185
209
|
enumerable: true,
|
|
186
210
|
writable: true,
|
|
187
211
|
initializer: null
|
|
188
|
-
}),
|
|
212
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "deleted_at", [_dec20], {
|
|
189
213
|
configurable: true,
|
|
190
214
|
enumerable: true,
|
|
191
215
|
writable: true,
|
package/dist/migration/payment/1667918366826-insert_applepay_and_googlepay_transaction_types.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class InsertApplepayAndGooglepayTransactionTypes1667918366826 {
|
|
4
|
+
name = 'InsertApplepayAndGooglepayTransactionTypes1667918366826'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`INSERT INTO "payment"."transaction_type" (id) VALUES ('GOOGLEPAY'), ('APPLEPAY')`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`DELETE FROM "payment"."transaction_type" WHERE id = 'GOOGLEPAY' or id ='APPLEPAY'`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class organisationPaymentProviderAddApplepayGooglepayColumns1667925229730 {
|
|
4
|
+
name = 'organisationPaymentProviderAddApplepayGooglepayColumns1667925229730'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "googlepay_enabled" boolean NOT NULL DEFAULT false`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" ADD "applepay_enabled" boolean NOT NULL DEFAULT false`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async down(queryRunner) {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "applepay_enabled"`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "payment"."organisation_payment_provider" DROP COLUMN "googlepay_enabled"`);
|
|
14
|
+
}
|
|
15
|
+
}
|