@felloh-org/lambda-wrapper 1.2.9 → 1.2.10

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.
@@ -160,11 +160,11 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
160
160
  organisation: null
161
161
  };
162
162
 
163
- if (this.booking !== null && typeof this.booking.id !== 'undefined') {
163
+ if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
164
164
  response.booking = this.booking.getPublicData();
165
165
  }
166
166
 
167
- if (this.payment_link !== null && typeof this.payment_link !== 'undefined') {
167
+ if (this.payment_link !== null && typeof this.payment_link !== 'undefined' && typeof this.payment_link.getPublicData === 'function') {
168
168
  response.payment_link = this.payment_link.getPublicData();
169
169
  }
170
170
 
@@ -172,7 +172,7 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
172
172
  response.metadata = this.metadata;
173
173
  }
174
174
 
175
- if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
175
+ if (this.organisation !== null && typeof this.organisation.id !== 'undefined' && typeof this.organisation.getPublicCompactData === 'function') {
176
176
  response.organisation = this.organisation.getPublicCompactData();
177
177
  }
178
178
 
@@ -192,15 +192,15 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
192
192
  provider_reference: this.provider_reference
193
193
  };
194
194
 
195
- if (this.booking !== null && typeof this.booking.id !== 'undefined') {
195
+ if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
196
196
  response.booking = this.booking.getPublicCompactData();
197
197
  }
198
198
 
199
- if (this.payment_link !== null && typeof this.payment_link !== 'undefined') {
199
+ if (this.payment_link !== null && typeof this.payment_link !== 'undefined' && typeof this.payment_link.getPublicUltraCompactData === 'function') {
200
200
  response.payment_link = this.payment_link.getPublicUltraCompactData();
201
201
  }
202
202
 
203
- if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
203
+ if (this.organisation !== null && typeof this.organisation.id !== 'undefined' && typeof this.organisation.getPublicCompactData === 'function') {
204
204
  response.organisation = this.organisation.getPublicCompactData();
205
205
  }
206
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {