@felloh-org/lambda-wrapper 1.1.1 → 1.1.2
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 _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
|
15
15
|
|
|
16
16
|
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
17
17
|
|
|
18
|
-
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;
|
|
18
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -68,7 +68,11 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
68
68
|
default: false
|
|
69
69
|
}), _dec19 = (0, _typeorm.Column)({
|
|
70
70
|
type: "timestamp with time zone"
|
|
71
|
-
}), _dec20 = (0, _typeorm.
|
|
71
|
+
}), _dec20 = (0, _typeorm.Column)({
|
|
72
|
+
type: "varchar",
|
|
73
|
+
length: "50",
|
|
74
|
+
default: 'active'
|
|
75
|
+
}), _dec21 = (0, _typeorm.CreateDateColumn)(), _dec(_class = (_class2 = class PaymentLink {
|
|
72
76
|
constructor() {
|
|
73
77
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
74
78
|
|
|
@@ -100,7 +104,9 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
100
104
|
|
|
101
105
|
_initializerDefineProperty(this, "expires_at", _descriptor15, this);
|
|
102
106
|
|
|
103
|
-
_initializerDefineProperty(this, "
|
|
107
|
+
_initializerDefineProperty(this, "status", _descriptor16, this);
|
|
108
|
+
|
|
109
|
+
_initializerDefineProperty(this, "created_at", _descriptor17, this);
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
generateExpiryDate() {
|
|
@@ -250,7 +256,14 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
250
256
|
initializer: function () {
|
|
251
257
|
return this.generateExpiryDate();
|
|
252
258
|
}
|
|
253
|
-
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
259
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec20], {
|
|
260
|
+
configurable: true,
|
|
261
|
+
enumerable: true,
|
|
262
|
+
writable: true,
|
|
263
|
+
initializer: function () {
|
|
264
|
+
return "";
|
|
265
|
+
}
|
|
266
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec21], {
|
|
254
267
|
configurable: true,
|
|
255
268
|
enumerable: true,
|
|
256
269
|
writable: true,
|
|
@@ -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, _dec8, _dec9, _dec10, _dec11,
|
|
10
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
|
|
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
|
|
|
@@ -38,14 +38,11 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
38
38
|
type: "varchar",
|
|
39
39
|
length: 50
|
|
40
40
|
}), _dec9 = (0, _typeorm.Column)({
|
|
41
|
-
type: "varchar",
|
|
42
|
-
length: 50
|
|
43
|
-
}), _dec10 = (0, _typeorm.Column)({
|
|
44
41
|
type: "int",
|
|
45
42
|
nullable: true
|
|
46
|
-
}),
|
|
43
|
+
}), _dec10 = (0, _typeorm.Column)({
|
|
47
44
|
type: "timestamp without time zone"
|
|
48
|
-
}),
|
|
45
|
+
}), _dec11 = (0, _typeorm.Column)({
|
|
49
46
|
type: "varchar",
|
|
50
47
|
length: 1500
|
|
51
48
|
}), _dec(_class = (_class2 = class Transaction {
|
|
@@ -64,13 +61,11 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
64
61
|
|
|
65
62
|
_initializerDefineProperty(this, "merchant_account_id", _descriptor7, this);
|
|
66
63
|
|
|
67
|
-
_initializerDefineProperty(this, "
|
|
64
|
+
_initializerDefineProperty(this, "status", _descriptor8, this);
|
|
68
65
|
|
|
69
|
-
_initializerDefineProperty(this, "
|
|
66
|
+
_initializerDefineProperty(this, "processing_time", _descriptor9, this);
|
|
70
67
|
|
|
71
|
-
_initializerDefineProperty(this, "
|
|
72
|
-
|
|
73
|
-
_initializerDefineProperty(this, "merchant_name", _descriptor11, this);
|
|
68
|
+
_initializerDefineProperty(this, "merchant_name", _descriptor10, this);
|
|
74
69
|
}
|
|
75
70
|
|
|
76
71
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ndc", [_dec2], {
|
|
@@ -110,24 +105,19 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
110
105
|
enumerable: true,
|
|
111
106
|
writable: true,
|
|
112
107
|
initializer: null
|
|
113
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "
|
|
114
|
-
configurable: true,
|
|
115
|
-
enumerable: true,
|
|
116
|
-
writable: true,
|
|
117
|
-
initializer: null
|
|
118
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec10], {
|
|
108
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec9], {
|
|
119
109
|
configurable: true,
|
|
120
110
|
enumerable: true,
|
|
121
111
|
writable: true,
|
|
122
112
|
initializer: null
|
|
123
|
-
}),
|
|
113
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "processing_time", [_dec10], {
|
|
124
114
|
configurable: true,
|
|
125
115
|
enumerable: true,
|
|
126
116
|
writable: true,
|
|
127
117
|
initializer: function () {
|
|
128
118
|
return null;
|
|
129
119
|
}
|
|
130
|
-
}),
|
|
120
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "merchant_name", [_dec11], {
|
|
131
121
|
configurable: true,
|
|
132
122
|
enumerable: true,
|
|
133
123
|
writable: true,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { MigrationInterface, QueryRunner } = require("typeorm");
|
|
2
|
+
|
|
3
|
+
module.exports = class addPaymentLinkStatus1649925229394 {
|
|
4
|
+
name = 'addPaymentLinkStatus1649925229394'
|
|
5
|
+
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" ADD "status" character varying(50) NOT NULL DEFAULT 'active'`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async down(queryRunner) {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE "payment"."payment_Link" DROP COLUMN "status"`);
|
|
12
|
+
}
|
|
13
|
+
}
|