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

JST-664: Add a way to manually list and pay invoices #764

Merged
merged 5 commits into from
Jan 26, 2024

Conversation

SewerynKras
Copy link
Contributor

No description provided.

@SewerynKras SewerynKras marked this pull request as draft January 19, 2024 14:24
@SewerynKras SewerynKras marked this pull request as ready for review January 23, 2024 17:46
allocation: Allocation;
success: false;
amount: string;
reason: unknown;
Copy link
Contributor

Choose a reason for hiding this comment

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

Both variants of the type differ in the reason field this could be unified to a single type with reason?:unknown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reason is only defined if success: false so IMO a discriminated union like this one works best here

@SewerynKras SewerynKras merged commit d2445f2 into beta Jan 26, 2024
8 checks passed
@SewerynKras SewerynKras deleted the feature/JST-664/standalone-payment-module branch January 26, 2024 12:01
Copy link

🎉 This PR is included in version 2.0.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants