@felloh-org/lambda-wrapper 1.11.10 → 1.11.11
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.
|
@@ -50,7 +50,7 @@ class PaymentInitiationObject extends _dependencyAware.default {
|
|
|
50
50
|
let result = null;
|
|
51
51
|
|
|
52
52
|
if (initiationType === _paymentInitationTypes.default.PAYMENT_LINK) {
|
|
53
|
-
result = await this.paymentLinkRepository.createQueryBuilder('payment_link').leftJoinAndSelect('payment_link.organisation', 'organisation').leftJoinAndSelect('payment_link.booking', 'booking').leftJoinAndMapOne('payment_link.currency', _currency.default, 'currency_join', 'currency_join.id = payment_link.currency').where('payment_link.id = :initiation_object_ID', {
|
|
53
|
+
result = await this.paymentLinkRepository.createQueryBuilder('payment_link').leftJoinAndSelect('payment_link.organisation', 'organisation').leftJoinAndSelect('payment_link.booking', 'booking').leftJoinAndSelect('payment_link.customer', 'customer').leftJoinAndMapOne('payment_link.currency', _currency.default, 'currency_join', 'currency_join.id = payment_link.currency').where('payment_link.id = :initiation_object_ID', {
|
|
54
54
|
initiation_object_ID: initiationObjectID
|
|
55
55
|
}).getOne(); // Throw an error response if the payment link does not exist
|
|
56
56
|
|
|
@@ -66,7 +66,7 @@ class PaymentInitiationObject extends _dependencyAware.default {
|
|
|
66
66
|
throw notFoundResponse;
|
|
67
67
|
}
|
|
68
68
|
} else if (initiationType === _paymentInitationTypes.default.ECOMMERCE) {
|
|
69
|
-
result = await this.ecommerceRepository.createQueryBuilder('ecommerce').leftJoinAndSelect('ecommerce.organisation', 'organisation').leftJoinAndSelect('ecommerce.booking', 'booking').leftJoinAndMapOne('ecommerce.currency', _currency.default, 'currency_join', 'currency_join.id = ecommerce.currency').where('ecommerce.id = :initiation_object_ID', {
|
|
69
|
+
result = await this.ecommerceRepository.createQueryBuilder('ecommerce').leftJoinAndSelect('ecommerce.organisation', 'organisation').leftJoinAndSelect('ecommerce.booking', 'booking').leftJoinAndSelect('ecommerce.customer', 'customer').leftJoinAndMapOne('ecommerce.currency', _currency.default, 'currency_join', 'currency_join.id = ecommerce.currency').where('ecommerce.id = :initiation_object_ID', {
|
|
70
70
|
initiation_object_ID: initiationObjectID
|
|
71
71
|
}).getOne(); // Throw an error response if the payment link does not exist
|
|
72
72
|
|