UoaWDCC / uasc-web

Project with the University of Auckland Snowsports Club Website & Booking System. Established in 2023.
https://uasc.co.nz
6 stars 2 forks source link

[BACKEND] Set up endpoint for admin to make date(s) available for booking #349

Closed bcho892 closed 5 months ago

bcho892 commented 5 months ago

Is your feature request related to a problem? Please describe.

The request body should contain:

{
Date: Timestamp[],
Description: optional,
Title: string
}

We want to create a new product (if required) in stripe with the details using #125 and also create a firestore document in the booking_slots using #186 (if required). We should NOT allow duplicate stripe products to be created so this should be checked first.

[!NOTE] You may want to first check firestore for a document with the date, if it exists, change the max_slots status to > 0

Also remove the stripe_product_id from booking_slot, replace with is_active

BEFORE MERGING

bcho892 commented 5 months ago

dont require removing stripe_product_id anymore because that's done in #133