-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(core): Modified refundProcess to be extensible #2942
feat(core): Modified refundProcess to be extensible #2942
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi! Thank you, this is a very good PR. Not an easy one either as your first Vendure contribution - it's dealing with one of the more complex parts of the Vendure internals. But you've done it exactly as I would. I have one reservation about merging this as-is though: I'm not really happy with creating a new But logically I think that refund stuff belongs with the In hindsight I think I should have named it What are your thoughts on this? |
Hi! Thank you for your positive feedback on this PR. As you mentioned, this PR extends the refund process by creating a top-level config object called refundOptions, aiming to maintain consistency with other state machine configurations. I agree with your opinion, and I also believe that we should name it refundProcess and apply this naming convention to other state machine configurations in the future. However, as you mentioned, this is my first Vendure contribution. Therefore, I thought it would be a better choice to create a refundOptions config object rather than changing the convention based on my personal judgment. |
OK here's what we do: remove the In a future release we will deprecate the |
Thank you! |
As discussed, I have added a commit to move refundProcess under paymentOptions. Renaming other state processes might be burdensome, but I am available to help if you decide to proceed with those changes. |
Description
Unlike other state machines, the 'refund state' was previously implemented in a way that made extension impossible without modifying the core. I have modified it to allow for extension
Checklist
📌 Always:
👍 Most of the time: