@felloh-org/lambda-wrapper 1.2.37 → 1.3.1
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/event/transaction/complete/index.js +24 -0
- package/dist/index.js +8 -0
- 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,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _baseEvent = _interopRequireDefault(require("../../base-event"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const EVENT_TYPE = 'transaction:complete';
|
|
13
|
+
|
|
14
|
+
class TransactionComplete extends _baseEvent.default {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.setDetailType(EVENT_TYPE);
|
|
18
|
+
this.setDetailParam('transaction', {});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var _default = TransactionComplete;
|
|
24
|
+
exports.default = _default;
|
package/dist/index.js
CHANGED
|
@@ -375,6 +375,12 @@ Object.defineProperty(exports, "TransactionBatchEntity", {
|
|
|
375
375
|
return _transactionBatch.default;
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
|
+
Object.defineProperty(exports, "TransactionCompleteEvent", {
|
|
379
|
+
enumerable: true,
|
|
380
|
+
get: function () {
|
|
381
|
+
return _complete.default;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
378
384
|
Object.defineProperty(exports, "TransactionEntity", {
|
|
379
385
|
enumerable: true,
|
|
380
386
|
get: function () {
|
|
@@ -624,6 +630,8 @@ var _reset = _interopRequireDefault(require("./event/user/password/reset"));
|
|
|
624
630
|
|
|
625
631
|
var _sandboxRegistration = _interopRequireDefault(require("./event/user/sandbox-registration"));
|
|
626
632
|
|
|
633
|
+
var _complete = _interopRequireDefault(require("./event/transaction/complete"));
|
|
634
|
+
|
|
627
635
|
var _model = _interopRequireDefault(require("./model"));
|
|
628
636
|
|
|
629
637
|
var _response = _interopRequireWildcard(require("./model/response"));
|
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
|
+
}
|