@felloh-org/lambda-wrapper 1.11.75 → 1.11.77

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.
@@ -36,7 +36,7 @@ let BandRate = exports.default = (_dec = (0, _typeorm.Entity)({
36
36
  referencedColumnName: 'id'
37
37
  }), _dec6 = (0, _typeorm.Column)('decimal', {
38
38
  precision: 6,
39
- scale: 2,
39
+ scale: 3,
40
40
  nullable: true
41
41
  }), _dec(_class = (_class2 = class BandRate {
42
42
  constructor() {
@@ -36,19 +36,19 @@ let Fee = exports.default = (_dec = (0, _typeorm.Entity)({
36
36
  nullable: true
37
37
  }), _dec7 = (0, _typeorm.Column)('decimal', {
38
38
  precision: 6,
39
- scale: 2,
39
+ scale: 3,
40
40
  nullable: true
41
41
  }), _dec8 = (0, _typeorm.Column)('decimal', {
42
42
  precision: 6,
43
- scale: 2,
43
+ scale: 3,
44
44
  nullable: true
45
45
  }), _dec9 = (0, _typeorm.Column)('decimal', {
46
46
  precision: 6,
47
- scale: 2,
47
+ scale: 3,
48
48
  nullable: true
49
49
  }), _dec10 = (0, _typeorm.Column)('decimal', {
50
50
  precision: 6,
51
- scale: 2,
51
+ scale: 3,
52
52
  nullable: true
53
53
  }), _dec(_class = (_class2 = class Fee {
54
54
  constructor() {
@@ -0,0 +1,19 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class updatePrecissionFee1709030948477 {
4
+ name = 'updatePrecissionFee1709030948477'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "cost" TYPE numeric(6,3)`);
8
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "interchange" TYPE numeric(6,3)`);
9
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "scheme_fee" TYPE numeric(6,3)`);
10
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "acquirer" TYPE numeric(6,3)`);
11
+ }
12
+
13
+ async down(queryRunner) {
14
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "acquirer" TYPE numeric(6,2)`);
15
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "scheme_fee" TYPE numeric(6,2)`);
16
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "interchange" TYPE numeric(6,2)`);
17
+ await queryRunner.query(`ALTER TABLE "acquirer"."fee" ALTER COLUMN "cost" TYPE numeric(6,2)`);
18
+ }
19
+ }
@@ -0,0 +1,13 @@
1
+ const { MigrationInterface, QueryRunner } = require("typeorm");
2
+
3
+ module.exports = class updatePrecissionBandRate1709822228302 {
4
+ name = 'updatePrecissionBandRate1709822228302'
5
+
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "acquirer"."band_rate" ALTER COLUMN "rate" TYPE numeric(6,3)`);
8
+ }
9
+
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "acquirer"."band_rate" ALTER COLUMN "rate" TYPE numeric(6,2)`);
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.75",
3
+ "version": "1.11.77",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {