-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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/order claims 2 #8312
Chore/order claims 2 #8312
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM
ModuleRegistrationName.ORDER | ||
) | ||
|
||
const claimItems = input.changes.map((item) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Should we put this in a transformer in the workflow?
} | ||
) | ||
|
||
function prepareFulfillmentData({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: Think this is 1:1 with the other prepareFulfillmentData
– if so, we could extract to a utility
for (const action of modifiedShippingMethod_.actions) { | ||
if ( | ||
action.action === ChangeActionType.SHIPPING_ADD && | ||
action.return_id === orderReturn.id | ||
) { | ||
returnShippingMethod = shippingMethod | ||
break | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: If there is only one, we can just use .find()
on the actions. Think that's a bit cleaner no?
@@ -10,6 +10,7 @@ import { | |||
AuthenticatedMedusaRequest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Shouldn't we return the claim as well in all the /claims
Rest APIs? It seems we are doing it in some but not all.
@olivermrbl , I'm addressing you comments and a few more issues in the next PR in a few minutes. |
What:
Missing: