Add returns/RMA foundation hooks to Lunar v1.x#2443
Open
tazzytazzy wants to merge 3 commits intolunarphp:1.xfrom
Open
Add returns/RMA foundation hooks to Lunar v1.x#2443tazzytazzy wants to merge 3 commits intolunarphp:1.xfrom
tazzytazzy wants to merge 3 commits intolunarphp:1.xfrom
Conversation
…ble returns/RMA integrations in Lunar v1.x - add OrderPaid plus canonical refund orchestration via RefundTransaction - add pre-refund authorization DTOs/contracts and refund lifecycle events - expand PaymentRefund with refund transaction context and allocation passthrough - add OrderLineCapabilitiesInterface with the default conservative resolver - route admin refund actions through the orchestration path - document the new refund and order hook surface in the Lunar docs Test coverage: - refund allowed, denied, driver-failed, and thrown-exception paths - RefundRequested ordering before the driver call - RefundCompleted and RefundFailed dispatch behavior - allocation passthrough and refund transaction hydration - default and override order-line capability behavior, including unplaced lines - admin header and bulk refund flows - OrderPaid coverage for Offline, Stripe, Opayo, and Paypal - Paypal expanded PaymentRefund coverage Verified with: - vendor/bin/pint --dirty --format agent - vendor/bin/pest tests/core/Unit/Actions/Orders/RefundTransactionTest.php tests/core/Unit/Base/OrderLineCapabilitiesTest.php tests/core/Unit/PaymentTypes/OfflinePaymentTypeTest.php tests/stripe/Unit/StripePaymentTypeTest.php tests/opayo/Feature/OpayoPaymentTypeTest.php tests/admin/Feature/Filament/Resources/OrderResource/Pages/ManageOrderTest.php tests/paypal/Unit/PaypalPaymentTypeTest.php Result: - 34 tests passed - 207 assertions
Contributor
Author
|
I'm working on resolving these failures. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preliminary release of adding to the hook surface needed to unblock reusable returns/RMA integrations in Lunar v1.x.
Let me know what you think. Probably few tweaks here and there might be needed to help align with your goals. Let me know and I'll work on it.
Test coverage:
Verified with:
Result: