@felloh-org/lambda-wrapper 1.4.2 → 1.4.4
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.
|
@@ -154,7 +154,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
154
154
|
return date;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
getPublicData() {
|
|
157
|
+
getPublicData(showTemporaryFlag = false) {
|
|
158
158
|
const response = {
|
|
159
159
|
id: this.id,
|
|
160
160
|
amount: this.amount,
|
|
@@ -181,7 +181,7 @@ let PaymentLink = (_dec = (0, _typeorm.Entity)({
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
if (this.booking !== null && typeof this.booking.id !== 'undefined') {
|
|
184
|
-
response.booking = this.booking.getPublicData();
|
|
184
|
+
response.booking = this.booking.getPublicData(showTemporaryFlag);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
if (typeof this.transactions !== 'undefined') {
|
|
@@ -193,6 +193,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
193
193
|
response.organisation = this.organisation.getPublicCompactData();
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
|
|
197
|
+
response.disbursal = {
|
|
198
|
+
id: this.batch[0].disbursal.id
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
196
202
|
return response;
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -217,6 +223,12 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
217
223
|
response.payment_link = this.payment_link.getPublicUltraCompactData();
|
|
218
224
|
}
|
|
219
225
|
|
|
226
|
+
if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
|
|
227
|
+
response.disbursal = {
|
|
228
|
+
id: this.batch[0].disbursal.id
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
220
232
|
if (this.ecommerce !== null && typeof this.ecommerce !== 'undefined' && typeof this.ecommerce.getPublicData === 'function') {
|
|
221
233
|
response.ecommerce = this.ecommerce.getPublicUltraCompactData();
|
|
222
234
|
}
|
|
@@ -229,6 +241,7 @@ let Transaction = (_dec = (0, _typeorm.Entity)({
|
|
|
229
241
|
response.organisation = this.organisation.getPublicCompactData();
|
|
230
242
|
}
|
|
231
243
|
|
|
244
|
+
console.log();
|
|
232
245
|
return response;
|
|
233
246
|
}
|
|
234
247
|
|