@felloh-org/lambda-wrapper 1.5.2 → 1.6.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.
@@ -20,10 +20,10 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
20
20
  schema: 'nuvei'
21
21
  }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
22
22
  type: "varchar",
23
- length: 24
23
+ length: 250
24
24
  }), _dec4 = (0, _typeorm.Column)({
25
25
  type: "varchar",
26
- length: 20
26
+ length: 36
27
27
  }), _dec5 = (0, _typeorm.Column)({
28
28
  type: "varchar",
29
29
  length: 20
@@ -31,21 +31,21 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
31
31
  type: "varchar",
32
32
  length: 20
33
33
  }), _dec7 = (0, _typeorm.Column)({
34
- type: "int"
34
+ type: "varchar",
35
+ length: 20
35
36
  }), _dec8 = (0, _typeorm.Column)({
37
+ type: "int"
38
+ }), _dec9 = (0, _typeorm.Column)({
36
39
  type: "varchar",
37
40
  length: 5
38
- }), _dec9 = (0, _typeorm.Column)({
41
+ }), _dec10 = (0, _typeorm.Column)({
39
42
  type: "varchar",
40
43
  length: 28,
41
44
  nullable: true
42
- }), _dec10 = (0, _typeorm.Column)({
45
+ }), _dec11 = (0, _typeorm.Column)({
43
46
  type: "varchar",
44
47
  length: 1,
45
48
  nullable: true
46
- }), _dec11 = (0, _typeorm.Column)({
47
- type: "varchar",
48
- length: 36
49
49
  }), _dec12 = (0, _typeorm.Column)({
50
50
  type: "varchar",
51
51
  length: 36
@@ -78,27 +78,27 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
78
78
  nullable: true
79
79
  }), _dec(_class = (_class2 = class Transaction {
80
80
  constructor() {
81
- _initializerDefineProperty(this, "order_id", _descriptor, this);
81
+ _initializerDefineProperty(this, "nuvei_transaction_id", _descriptor, this);
82
82
 
83
- _initializerDefineProperty(this, "transaction_id", _descriptor2, this);
83
+ _initializerDefineProperty(this, "order_id", _descriptor2, this);
84
84
 
85
- _initializerDefineProperty(this, "transaction_type", _descriptor3, this);
85
+ _initializerDefineProperty(this, "transaction_id", _descriptor3, this);
86
86
 
87
- _initializerDefineProperty(this, "transaction_status", _descriptor4, this);
87
+ _initializerDefineProperty(this, "transaction_type", _descriptor4, this);
88
88
 
89
- _initializerDefineProperty(this, "status", _descriptor5, this);
89
+ _initializerDefineProperty(this, "transaction_status", _descriptor5, this);
90
90
 
91
- _initializerDefineProperty(this, "amount", _descriptor6, this);
91
+ _initializerDefineProperty(this, "status", _descriptor6, this);
92
92
 
93
- _initializerDefineProperty(this, "currency", _descriptor7, this);
93
+ _initializerDefineProperty(this, "amount", _descriptor7, this);
94
94
 
95
- _initializerDefineProperty(this, "unique_cc", _descriptor8, this);
95
+ _initializerDefineProperty(this, "currency", _descriptor8, this);
96
96
 
97
- _initializerDefineProperty(this, "threeds_is_liability_on_issuer", _descriptor9, this);
97
+ _initializerDefineProperty(this, "unique_cc", _descriptor9, this);
98
98
 
99
- _initializerDefineProperty(this, "session_token", _descriptor10, this);
99
+ _initializerDefineProperty(this, "threeds_is_liability_on_issuer", _descriptor10, this);
100
100
 
101
- _initializerDefineProperty(this, "client_unique_id", _descriptor11, this);
101
+ _initializerDefineProperty(this, "session_token", _descriptor11, this);
102
102
 
103
103
  _initializerDefineProperty(this, "auth_code", _descriptor12, this);
104
104
 
@@ -119,59 +119,59 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
119
119
  _initializerDefineProperty(this, "batch_id", _descriptor20, this);
120
120
  }
121
121
 
122
- }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "order_id", [_dec2], {
122
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "nuvei_transaction_id", [_dec2], {
123
123
  configurable: true,
124
124
  enumerable: true,
125
125
  writable: true,
126
- initializer: function () {
127
- return undefined;
128
- }
129
- }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "transaction_id", [_dec3], {
126
+ initializer: null
127
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "order_id", [_dec3], {
130
128
  configurable: true,
131
129
  enumerable: true,
132
130
  writable: true,
133
- initializer: null
134
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "transaction_type", [_dec4], {
131
+ initializer: function () {
132
+ return undefined;
133
+ }
134
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "transaction_id", [_dec4], {
135
135
  configurable: true,
136
136
  enumerable: true,
137
137
  writable: true,
138
138
  initializer: null
139
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "transaction_status", [_dec5], {
139
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "transaction_type", [_dec5], {
140
140
  configurable: true,
141
141
  enumerable: true,
142
142
  writable: true,
143
143
  initializer: null
144
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec6], {
144
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "transaction_status", [_dec6], {
145
145
  configurable: true,
146
146
  enumerable: true,
147
147
  writable: true,
148
148
  initializer: null
149
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec7], {
149
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec7], {
150
150
  configurable: true,
151
151
  enumerable: true,
152
152
  writable: true,
153
153
  initializer: null
154
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec8], {
154
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec8], {
155
155
  configurable: true,
156
156
  enumerable: true,
157
157
  writable: true,
158
158
  initializer: null
159
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "unique_cc", [_dec9], {
159
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec9], {
160
160
  configurable: true,
161
161
  enumerable: true,
162
162
  writable: true,
163
163
  initializer: null
164
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "threeds_is_liability_on_issuer", [_dec10], {
164
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "unique_cc", [_dec10], {
165
165
  configurable: true,
166
166
  enumerable: true,
167
167
  writable: true,
168
168
  initializer: null
169
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "session_token", [_dec11], {
169
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "threeds_is_liability_on_issuer", [_dec11], {
170
170
  configurable: true,
171
171
  enumerable: true,
172
172
  writable: true,
173
173
  initializer: null
174
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "client_unique_id", [_dec12], {
174
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "session_token", [_dec12], {
175
175
  configurable: true,
176
176
  enumerable: true,
177
177
  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, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;
10
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;
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
 
@@ -19,222 +19,262 @@ let TransactionMetadata = (_dec = (0, _typeorm.Entity)({
19
19
  name: 'transaction_metadata',
20
20
  schema: 'nuvei'
21
21
  }), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
22
+ type: "varchar",
23
+ length: 36
24
+ }), _dec4 = (0, _typeorm.Column)({
22
25
  type: "timestamp without time zone",
23
26
  nullable: true
24
- }), _dec4 = (0, _typeorm.Column)({
27
+ }), _dec5 = (0, _typeorm.Column)({
25
28
  type: "varchar",
26
29
  length: 5
27
- }), _dec5 = (0, _typeorm.Column)({
30
+ }), _dec6 = (0, _typeorm.Column)({
28
31
  type: "varchar",
29
32
  length: "20"
30
- }), _dec6 = (0, _typeorm.Column)({
33
+ }), _dec7 = (0, _typeorm.Column)({
31
34
  type: "varchar",
32
35
  length: "20",
33
36
  nullable: true
34
- }), _dec7 = (0, _typeorm.Column)({
37
+ }), _dec8 = (0, _typeorm.Column)({
35
38
  type: "varchar",
36
39
  nullable: true,
37
40
  length: 25
38
- }), _dec8 = (0, _typeorm.Column)({
41
+ }), _dec9 = (0, _typeorm.Column)({
39
42
  type: "varchar",
40
43
  length: 25
41
- }), _dec9 = (0, _typeorm.Column)({
44
+ }), _dec10 = (0, _typeorm.Column)({
42
45
  type: "varchar",
43
46
  length: 25,
44
47
  default: "UNKNOWN"
45
- }), _dec10 = (0, _typeorm.Column)({
48
+ }), _dec11 = (0, _typeorm.Column)({
46
49
  type: "varchar",
47
50
  length: 30
48
- }), _dec11 = (0, _typeorm.Column)({
51
+ }), _dec12 = (0, _typeorm.Column)({
49
52
  type: "varchar",
50
53
  length: 20
51
- }), _dec12 = (0, _typeorm.Column)({
54
+ }), _dec13 = (0, _typeorm.Column)({
52
55
  type: "varchar",
53
56
  length: 150
54
- }), _dec13 = (0, _typeorm.Column)({
57
+ }), _dec14 = (0, _typeorm.Column)({
55
58
  type: "varchar",
56
59
  length: 5,
57
60
  nullable: true
58
- }), _dec14 = (0, _typeorm.Column)({
61
+ }), _dec15 = (0, _typeorm.Column)({
59
62
  type: "varchar",
60
63
  nullable: true,
61
64
  length: 150
62
- }), _dec15 = (0, _typeorm.Column)({
65
+ }), _dec16 = (0, _typeorm.Column)({
63
66
  type: "varchar",
64
67
  nullable: true,
65
68
  length: 25
66
- }), _dec16 = (0, _typeorm.Column)({
67
- type: "varchar",
68
- length: 5,
69
- nullable: true
70
69
  }), _dec17 = (0, _typeorm.Column)({
71
70
  type: "varchar",
72
71
  length: 5,
73
72
  nullable: true
74
73
  }), _dec18 = (0, _typeorm.Column)({
75
74
  type: "varchar",
76
- length: 20,
75
+ length: 5,
77
76
  nullable: true
78
77
  }), _dec19 = (0, _typeorm.Column)({
79
78
  type: "varchar",
80
- length: 20
79
+ length: 20,
80
+ nullable: true
81
81
  }), _dec20 = (0, _typeorm.Column)({
82
82
  type: "varchar",
83
83
  length: 20
84
84
  }), _dec21 = (0, _typeorm.Column)({
85
+ type: "varchar",
86
+ length: 20
87
+ }), _dec22 = (0, _typeorm.Column)({
88
+ type: "varchar",
89
+ length: 25
90
+ }), _dec23 = (0, _typeorm.Column)({
91
+ type: "varchar",
92
+ length: 25
93
+ }), _dec24 = (0, _typeorm.Column)({
94
+ type: "varchar",
95
+ length: 150
96
+ }), _dec25 = (0, _typeorm.Column)({
85
97
  type: "timestamp without time zone",
86
98
  nullable: true
87
- }), _dec22 = (0, _typeorm.Column)({
99
+ }), _dec26 = (0, _typeorm.Column)({
88
100
  type: "timestamp without time zone",
89
101
  nullable: true
90
102
  }), _dec(_class = (_class2 = class TransactionMetadata {
91
103
  constructor() {
92
- _initializerDefineProperty(this, "transaction_id", _descriptor, this);
104
+ _initializerDefineProperty(this, "nuvei_transaction_id", _descriptor, this);
105
+
106
+ _initializerDefineProperty(this, "transaction_id", _descriptor2, this);
107
+
108
+ _initializerDefineProperty(this, "transaction_date", _descriptor3, this);
109
+
110
+ _initializerDefineProperty(this, "currency", _descriptor4, this);
111
+
112
+ _initializerDefineProperty(this, "payment_brand", _descriptor5, this);
93
113
 
94
- _initializerDefineProperty(this, "transaction_date", _descriptor2, this);
114
+ _initializerDefineProperty(this, "payment_type", _descriptor6, this);
95
115
 
96
- _initializerDefineProperty(this, "currency", _descriptor3, this);
116
+ _initializerDefineProperty(this, "issuing_country", _descriptor7, this);
97
117
 
98
- _initializerDefineProperty(this, "payment_brand", _descriptor4, this);
118
+ _initializerDefineProperty(this, "bin", _descriptor8, this);
99
119
 
100
- _initializerDefineProperty(this, "payment_type", _descriptor5, this);
120
+ _initializerDefineProperty(this, "bin_type", _descriptor9, this);
101
121
 
102
- _initializerDefineProperty(this, "issuing_country", _descriptor6, this);
122
+ _initializerDefineProperty(this, "card_number", _descriptor10, this);
103
123
 
104
- _initializerDefineProperty(this, "bin", _descriptor7, this);
124
+ _initializerDefineProperty(this, "card_type", _descriptor11, this);
105
125
 
106
- _initializerDefineProperty(this, "bin_type", _descriptor8, this);
126
+ _initializerDefineProperty(this, "cardholder_name", _descriptor12, this);
107
127
 
108
- _initializerDefineProperty(this, "card_number", _descriptor9, this);
128
+ _initializerDefineProperty(this, "last_four_digits", _descriptor13, this);
109
129
 
110
- _initializerDefineProperty(this, "card_type", _descriptor10, this);
130
+ _initializerDefineProperty(this, "card_brand", _descriptor14, this);
111
131
 
112
- _initializerDefineProperty(this, "cardholder_name", _descriptor11, this);
132
+ _initializerDefineProperty(this, "card_product_brand", _descriptor15, this);
113
133
 
114
- _initializerDefineProperty(this, "last_four_digits", _descriptor12, this);
134
+ _initializerDefineProperty(this, "expiry_month", _descriptor16, this);
115
135
 
116
- _initializerDefineProperty(this, "card_brand", _descriptor13, this);
136
+ _initializerDefineProperty(this, "expiry_year", _descriptor17, this);
117
137
 
118
- _initializerDefineProperty(this, "card_product_brand", _descriptor14, this);
138
+ _initializerDefineProperty(this, "acquirer_id", _descriptor18, this);
119
139
 
120
- _initializerDefineProperty(this, "expiry_month", _descriptor15, this);
140
+ _initializerDefineProperty(this, "cvv_to_reply", _descriptor19, this);
121
141
 
122
- _initializerDefineProperty(this, "expiry_year", _descriptor16, this);
142
+ _initializerDefineProperty(this, "avs_code", _descriptor20, this);
123
143
 
124
- _initializerDefineProperty(this, "acquirer_id", _descriptor17, this);
144
+ _initializerDefineProperty(this, "status", _descriptor21, this);
125
145
 
126
- _initializerDefineProperty(this, "cvv_to_reply", _descriptor18, this);
146
+ _initializerDefineProperty(this, "reason_code", _descriptor22, this);
127
147
 
128
- _initializerDefineProperty(this, "avs_code", _descriptor19, this);
148
+ _initializerDefineProperty(this, "reason", _descriptor23, this);
129
149
 
130
- _initializerDefineProperty(this, "webhook_date", _descriptor20, this);
150
+ _initializerDefineProperty(this, "webhook_date", _descriptor24, this);
131
151
 
132
- _initializerDefineProperty(this, "report_date", _descriptor21, this);
152
+ _initializerDefineProperty(this, "report_date", _descriptor25, this);
133
153
  }
134
154
 
135
- }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction_id", [_dec2], {
155
+ }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "nuvei_transaction_id", [_dec2], {
136
156
  configurable: true,
137
157
  enumerable: true,
138
158
  writable: true,
139
159
  initializer: function () {
140
160
  return undefined;
141
161
  }
142
- }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "transaction_date", [_dec3], {
162
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "transaction_id", [_dec3], {
163
+ configurable: true,
164
+ enumerable: true,
165
+ writable: true,
166
+ initializer: null
167
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "transaction_date", [_dec4], {
168
+ configurable: true,
169
+ enumerable: true,
170
+ writable: true,
171
+ initializer: null
172
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec5], {
173
+ configurable: true,
174
+ enumerable: true,
175
+ writable: true,
176
+ initializer: null
177
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payment_brand", [_dec6], {
178
+ configurable: true,
179
+ enumerable: true,
180
+ writable: true,
181
+ initializer: null
182
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "payment_type", [_dec7], {
143
183
  configurable: true,
144
184
  enumerable: true,
145
185
  writable: true,
146
186
  initializer: null
147
- }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec4], {
187
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "issuing_country", [_dec8], {
148
188
  configurable: true,
149
189
  enumerable: true,
150
190
  writable: true,
151
191
  initializer: null
152
- }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "payment_brand", [_dec5], {
192
+ }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "bin", [_dec9], {
153
193
  configurable: true,
154
194
  enumerable: true,
155
195
  writable: true,
156
196
  initializer: null
157
- }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "payment_type", [_dec6], {
197
+ }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "bin_type", [_dec10], {
158
198
  configurable: true,
159
199
  enumerable: true,
160
200
  writable: true,
161
201
  initializer: null
162
- }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "issuing_country", [_dec7], {
202
+ }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "card_number", [_dec11], {
163
203
  configurable: true,
164
204
  enumerable: true,
165
205
  writable: true,
166
206
  initializer: null
167
- }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "bin", [_dec8], {
207
+ }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "card_type", [_dec12], {
168
208
  configurable: true,
169
209
  enumerable: true,
170
210
  writable: true,
171
211
  initializer: null
172
- }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "bin_type", [_dec9], {
212
+ }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "cardholder_name", [_dec13], {
173
213
  configurable: true,
174
214
  enumerable: true,
175
215
  writable: true,
176
216
  initializer: null
177
- }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "card_number", [_dec10], {
217
+ }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "last_four_digits", [_dec14], {
178
218
  configurable: true,
179
219
  enumerable: true,
180
220
  writable: true,
181
221
  initializer: null
182
- }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "card_type", [_dec11], {
222
+ }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "card_brand", [_dec15], {
183
223
  configurable: true,
184
224
  enumerable: true,
185
225
  writable: true,
186
226
  initializer: null
187
- }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "cardholder_name", [_dec12], {
227
+ }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "card_product_brand", [_dec16], {
188
228
  configurable: true,
189
229
  enumerable: true,
190
230
  writable: true,
191
231
  initializer: null
192
- }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "last_four_digits", [_dec13], {
232
+ }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "expiry_month", [_dec17], {
193
233
  configurable: true,
194
234
  enumerable: true,
195
235
  writable: true,
196
236
  initializer: null
197
- }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "card_brand", [_dec14], {
237
+ }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "expiry_year", [_dec18], {
198
238
  configurable: true,
199
239
  enumerable: true,
200
240
  writable: true,
201
241
  initializer: null
202
- }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "card_product_brand", [_dec15], {
242
+ }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "acquirer_id", [_dec19], {
203
243
  configurable: true,
204
244
  enumerable: true,
205
245
  writable: true,
206
246
  initializer: null
207
- }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "expiry_month", [_dec16], {
247
+ }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "cvv_to_reply", [_dec20], {
208
248
  configurable: true,
209
249
  enumerable: true,
210
250
  writable: true,
211
251
  initializer: null
212
- }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "expiry_year", [_dec17], {
252
+ }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "avs_code", [_dec21], {
213
253
  configurable: true,
214
254
  enumerable: true,
215
255
  writable: true,
216
256
  initializer: null
217
- }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "acquirer_id", [_dec18], {
257
+ }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec22], {
218
258
  configurable: true,
219
259
  enumerable: true,
220
260
  writable: true,
221
261
  initializer: null
222
- }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "cvv_to_reply", [_dec19], {
262
+ }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "reason_code", [_dec23], {
223
263
  configurable: true,
224
264
  enumerable: true,
225
265
  writable: true,
226
266
  initializer: null
227
- }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "avs_code", [_dec20], {
267
+ }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "reason", [_dec24], {
228
268
  configurable: true,
229
269
  enumerable: true,
230
270
  writable: true,
231
271
  initializer: null
232
- }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "webhook_date", [_dec21], {
272
+ }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "webhook_date", [_dec25], {
233
273
  configurable: true,
234
274
  enumerable: true,
235
275
  writable: true,
236
276
  initializer: null
237
- }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "report_date", [_dec22], {
277
+ }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "report_date", [_dec26], {
238
278
  configurable: true,
239
279
  enumerable: true,
240
280
  writable: true,
@@ -0,0 +1,51 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class addNuveiTransactionIdColumn1670932754369 {
4
+ name = 'addNuveiTransactionIdColumn1670932754369'
5
+
6
+ async up(queryRunner) {
7
+ /** NUVEI transaction modifications */
8
+ await queryRunner.query(`ALTER TABLE nuvei."transaction" RENAME COLUMN "transaction_id" TO "nuvei_transaction_id"`);
9
+
10
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" DROP CONSTRAINT "PK_9011283056620f5eaa7ad74cef6"`);
11
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" ADD CONSTRAINT "PK_7b19f2266867226eaa9cb56a7ff" PRIMARY KEY ("order_id", "nuvei_transaction_id")`);
12
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" DROP CONSTRAINT "PK_7b19f2266867226eaa9cb56a7ff"`);
13
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" ADD CONSTRAINT "PK_6e02e5a0a6a7400e1c944d1e946" PRIMARY KEY ("nuvei_transaction_id")`);
14
+
15
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" ADD "order_id_old" character varying(250)`);
16
+ await queryRunner.query(`update "nuvei"."transaction" set order_id_old = order_id`);
17
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" DROP COLUMN "order_id"`);
18
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" RENAME COLUMN "order_id_old" TO "order_id"`);
19
+
20
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" RENAME COLUMN "client_unique_id" TO "transaction_id"`);
21
+
22
+ /** NUVEI Metadata modifications */
23
+ await queryRunner.query(`ALTER TABLE nuvei."transaction_metadata" RENAME COLUMN transaction_id TO nuvei_transaction_id`);
24
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" ADD "transaction_id" character varying(36)`);
25
+
26
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" ADD "status" character varying(25)`);
27
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" ADD "reason_code" character varying(25)`);
28
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" ADD "reason" character varying(150)`);
29
+
30
+ }
31
+
32
+ async down(queryRunner) {
33
+ /** NUVEI transaction modifications */
34
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" DROP CONSTRAINT "PK_6e02e5a0a6a7400e1c944d1e946"`);
35
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" ADD CONSTRAINT "PK_7b19f2266867226eaa9cb56a7ff" PRIMARY KEY ("order_id", "nuvei_transaction_id")`);
36
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" DROP CONSTRAINT "PK_7b19f2266867226eaa9cb56a7ff"`);
37
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" ADD CONSTRAINT "PK_9011283056620f5eaa7ad74cef6" PRIMARY KEY ("order_id")`);
38
+
39
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" RENAME COLUMN "transaction_id" TO "client_unique_id"`);
40
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction" RENAME COLUMN "nuvei_transaction_id" TO "transaction_id"`);
41
+
42
+ /** NUVEI Metadata modifications */
43
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" DROP COLUMN "transaction_id"`);
44
+ await queryRunner.query(`ALTER TABLE nuvei."transaction_metadata" RENAME COLUMN "nuvei_transaction_id" TO "transaction_id"`);
45
+
46
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" DROP COLUMN "status"`);
47
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" DROP COLUMN "reason_code"`);
48
+ await queryRunner.query(`ALTER TABLE "nuvei"."transaction_metadata" DROP COLUMN "reason"`);
49
+
50
+ }
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {