Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ganialhamad
Copy link

@ganialhamad ganialhamad commented Mar 20, 2024

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.

@anfibiacreativa anfibiacreativa changed the title refactor follow up / scenario 5 chore: refactor and add new types in connection with payments scenario Mar 28, 2024
@manekinekko manekinekko added the type: enhancement New feature or request label Apr 4, 2024
@manekinekko
Copy link
Collaborator

Thank you @gm-al for sending these changes. We'll review them asap and keep you posted.

@manekinekko
Copy link
Collaborator

@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" 
};

@ganialhamad
Copy link
Author

Thank you @manekinekko for the update. Sure, I will look at this PR soon and revert the extra changes.

@ganialhamad
Copy link
Author

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";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
status: "pending" | "active" | "cancelled" | "archived";
status: ReservationStatus;

Copy link
Collaborator

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";

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants