@felloh-org/lambda-wrapper 1.11.89 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.89",
3
+ "version": "1.11.90",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {