@felloh-org/lambda-wrapper 1.11.88 → 1.11.90

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.
@@ -260,6 +260,10 @@ let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
260
260
  response.ecommerce = this.ecommerce.getPublicData();
261
261
  }
262
262
 
263
+ if (this.surcharge !== null && typeof this.surcharge !== 'undefined' && typeof this.surcharge.getPublicData === 'function') {
264
+ response.surcharge = this.surcharge.getPublicData();
265
+ }
266
+
263
267
  if (this.metadata !== null) {
264
268
  response.metadata = this.metadata;
265
269
  }
@@ -50,6 +50,13 @@ let TransactionSurcharge = exports.default = (_dec = (0, _typeorm.Entity)({
50
50
  _initializerDefineProperty(this, "updated_at", _descriptor5, this);
51
51
  }
52
52
 
53
+ getPublicData() {
54
+ return {
55
+ amount: this.amount,
56
+ currency: this.currency
57
+ };
58
+ }
59
+
53
60
  }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec2, _dec3], {
54
61
  configurable: true,
55
62
  enumerable: true,
@@ -118,7 +118,8 @@ let Organisation = exports.default = (_dec = (0, _typeorm.Entity)({
118
118
  currencies: this.currencies ? this.currencies : [],
119
119
  payment_methods: this.payment_methods ? this.payment_methods : [],
120
120
  parent: null,
121
- unpaid_invoice: this.unpaid_invoice
121
+ unpaid_invoice: this.unpaid_invoice,
122
+ surcharging_enabled: this.surcharging_enabled
122
123
  };
123
124
 
124
125
  if (this.parent !== null && typeof this.parent.getPublicCompactData === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.88",
3
+ "version": "1.11.90",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {