-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: refactor and add new types in connection with payments scenario #456
base: main
Are you sure you want to change the base?
Conversation
Thank you @gm-al for sending these changes. We'll review them asap and keep you posted. |
@gm-al after chatting with the team, it looks like this PR introduced changes that are out of scope of the initial issue. Would you mind keeping only the Stripe enum types and revert all other changes? enum ReservationStatus {
Pending = "pending",
Active = "active",
Cancelled = "cancelled" ,
Archived = "archived"
}; |
Thank you @manekinekko for the update. Sure, I will look at this PR soon and revert the extra changes. |
hey @manekinekko sorry for the delay. I updated the PR, let me know if there is something else i need to adjust. |
@@ -10,7 +10,7 @@ export interface Reservation { | |||
to: Date; | |||
status: "pending" | "active" | "cancelled" | "archived"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: "pending" | "active" | "cancelled" | "archived"; | |
status: ReservationStatus; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add this import to this file:
import { ReservationStatus } from "./reservation-status";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
This is a follow-up PR for #117—issue: #124. I did expand a little on the scope of this PR by moving the interfaces from the model folder to a separate folder so imports can be from a common source.