feat(core-flows,types): Refunds can only be performed when order is imbalanced (#8944)

* feat(core-flows,types): Refunds can only be performed when order is imbalanced

* Apply suggestions from code review

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* chore: fix tests

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Riqwan ThamirandOli Juhl authored and GitHub committed 2024-09-03 13:53:20 +02:00
1 parent 9a34e03ae1
commit 230acb700b
8 files changed
+382 -581

No files matched your search

@@ -149,6 +149,7 @@ export async function createOrderSeeder({ api }) {
await api.post(`/store/carts`, {
currency_code: "usd",
email: "tony@stark-industries.com",
region_id: region.id,
shipping_address: {
address_1: "test address 1",
address_2: "test address 2",