feat: Add more metadata to Stripe transaction (#11221)

* Add booker info, event type title, and organizer info into Stripe metadata

* Add back bookingTitle in addition to eventTitle

* Remove .tool-versions

* Fix typo

---------

Co-authored-by: alannnc <[email protected]>
This commit is contained in:
Kevin Crimiandalannnc authored and GitHub committed 2023-09-14 04:10:42 +00:00
1 parent efcfd7bb9b
commit 3a05ae6f74
4 files changed
+27 -6

No files matched your search

@@ -1722,6 +1722,7 @@ async function handler(
eventType,
eventTypePaymentAppCredential as IEventTypePaymentCredentialType,
booking,
fullName,
bookerEmail
);
@@ -1911,7 +1912,7 @@ async function handler(
const createBookingObj = {
include: {
user: {
select: { email: true, name: true, timeZone: true },
select: { email: true, name: true, timeZone: true, username: true },
},
attendees: true,
payment: true,
@@ -2279,6 +2280,7 @@ async function handler(
eventType,
eventTypePaymentAppCredential as IEventTypePaymentCredentialType,
booking,
fullName,
bookerEmail
);
@@ -2466,6 +2468,7 @@ const findBookingQuery = async (bookingId: number) => {
name: true,
email: true,
timeZone: true,
username: true,
},
},
eventType: {