@felloh-org/lambda-wrapper 1.2.28 → 1.2.30
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.
|
@@ -31,8 +31,10 @@ var _organisationPaymentProviderMethod = _interopRequireDefault(require("./organ
|
|
|
31
31
|
|
|
32
32
|
var _paymentProvider = _interopRequireDefault(require("./payment-provider"));
|
|
33
33
|
|
|
34
|
+
var _transactionReason = _interopRequireDefault(require("./transaction-reason"));
|
|
35
|
+
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
37
|
|
|
36
|
-
const ENTITIES = [_chargeback.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default];
|
|
38
|
+
const ENTITIES = [_chargeback.default, _organisationPaymentProvider.default, _organisationPaymentProviderMethod.default, _paymentLink.default, _paymentProvider.default, _transaction.default, _transactionEvent.default, _transactionEventType.default, _transactionMethod.default, _transactionStatus.default, _transactionSource.default, _transactionType.default, _transactionMetadata.default, _transactionReason.default];
|
|
37
39
|
var _default = ENTITIES;
|
|
38
40
|
exports.default = _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typeorm = require("typeorm");
|
|
9
|
+
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
11
|
+
|
|
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
|
+
|
|
14
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
+
|
|
16
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
+
|
|
18
|
+
let TransactionReason = (_dec = (0, _typeorm.Entity)({
|
|
19
|
+
name: 'transaction_reason',
|
|
20
|
+
schema: 'payment'
|
|
21
|
+
}), _dec2 = (0, _typeorm.PrimaryColumn)({
|
|
22
|
+
type: "text"
|
|
23
|
+
}), _dec3 = (0, _typeorm.Column)({
|
|
24
|
+
type: "text",
|
|
25
|
+
nullable: true
|
|
26
|
+
}), _dec4 = (0, _typeorm.Column)({
|
|
27
|
+
type: "text",
|
|
28
|
+
nullable: true
|
|
29
|
+
}), _dec5 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class TransactionReason {
|
|
30
|
+
constructor() {
|
|
31
|
+
_initializerDefineProperty(this, "message", _descriptor, this);
|
|
32
|
+
|
|
33
|
+
_initializerDefineProperty(this, "translation", _descriptor2, this);
|
|
34
|
+
|
|
35
|
+
_initializerDefineProperty(this, "description", _descriptor3, this);
|
|
36
|
+
|
|
37
|
+
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec2], {
|
|
41
|
+
configurable: true,
|
|
42
|
+
enumerable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
initializer: null
|
|
45
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "translation", [_dec3], {
|
|
46
|
+
configurable: true,
|
|
47
|
+
enumerable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
initializer: null
|
|
50
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec4], {
|
|
51
|
+
configurable: true,
|
|
52
|
+
enumerable: true,
|
|
53
|
+
writable: true,
|
|
54
|
+
initializer: null
|
|
55
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec5], {
|
|
56
|
+
configurable: true,
|
|
57
|
+
enumerable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
initializer: null
|
|
60
|
+
})), _class2)) || _class);
|
|
61
|
+
exports.default = TransactionReason;
|
package/dist/index.js
CHANGED
|
@@ -393,6 +393,12 @@ Object.defineProperty(exports, "TransactionMethodEntity", {
|
|
|
393
393
|
return _transactionMethod.default;
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
+
Object.defineProperty(exports, "TransactionReasonEntity", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
get: function () {
|
|
399
|
+
return _transactionReason.default;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
396
402
|
Object.defineProperty(exports, "TransactionSourceEntity", {
|
|
397
403
|
enumerable: true,
|
|
398
404
|
get: function () {
|
|
@@ -546,6 +552,8 @@ var _transactionMetadata = _interopRequireDefault(require("./entity/payment/tran
|
|
|
546
552
|
|
|
547
553
|
var _transactionSource = _interopRequireDefault(require("./entity/payment/transaction-source"));
|
|
548
554
|
|
|
555
|
+
var _transactionReason = _interopRequireDefault(require("./entity/payment/transaction-reason"));
|
|
556
|
+
|
|
549
557
|
var _country = _interopRequireDefault(require("./entity/reference/country"));
|
|
550
558
|
|
|
551
559
|
var _transaction3 = _interopRequireDefault(require("./entity/total-processing/transaction"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class transactionReason1665959547444 {
|
|
4
|
+
name = 'transactionReason1665959547444'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE "payment"."transaction_reason" ("message" text NOT NULL, "translation" text, "description" text, "created_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_5c5e201fcc61dc53685dcadd384" PRIMARY KEY ("message"))`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`DROP TABLE "payment"."transaction_reason"`);
|
|
12
|
+
}
|
|
13
|
+
}
|