@felloh-org/lambda-wrapper 1.1.13 → 1.1.14
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.
|
@@ -150,6 +150,10 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
150
150
|
response.user = this.user.getPublicCompactData();
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
|
|
154
|
+
response.organisation = this.organisation.getPublicCompactData();
|
|
155
|
+
}
|
|
156
|
+
|
|
153
157
|
return response;
|
|
154
158
|
}
|
|
155
159
|
|
|
@@ -138,11 +138,15 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
138
138
|
response.booking = this.booking.getPublicData();
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
|
|
142
|
+
response.organisation = this.organisation.getPublicCompactData();
|
|
143
|
+
}
|
|
144
|
+
|
|
141
145
|
return response;
|
|
142
146
|
}
|
|
143
147
|
|
|
144
148
|
getPublicCompactData() {
|
|
145
|
-
|
|
149
|
+
const response = {
|
|
146
150
|
id: this.id,
|
|
147
151
|
amount: this.amount,
|
|
148
152
|
status: this.status.id,
|
|
@@ -151,6 +155,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
151
155
|
created_at: this.created_at,
|
|
152
156
|
completed_at: this.completed_at
|
|
153
157
|
};
|
|
158
|
+
|
|
159
|
+
if (this.organisation !== null && typeof this.organisation.id !== 'undefined') {
|
|
160
|
+
response.organisation = this.organisation.getPublicCompactData();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return response;
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|