-
Notifications
You must be signed in to change notification settings - Fork 630
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
[Shopify] Dispute processing in Shopify (Payments module) #25753
Conversation
@microsoft-github-policy-service agree [company="Vetatek"] |
@microsoft-github-policy-service agree |
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.
It would be nice to have some tests too
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Enums/ShpfyPaymentTransDisputeStatus.Enum.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Enums/ShpfyPaymentTransDisputeStatus.Enum.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Reports/ShpfySyncDisputes.Report.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Reports/ShpfySyncDisputes.Report.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Reports/ShpfySyncDisputes.Report.al
Outdated
Show resolved
Hide resolved
Added test too |
I've updated the PR with requested changes. Please review and let me know |
Can you please review the code and let me know if there's anything else you would like to see? |
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Codeunits/ShpfyPayments.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Enums/ShpfyDisputeReason.Enum.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Enums/ShpfyDisputeStatus.Enum.al
Outdated
Show resolved
Hide resolved
Apps/W1/Shopify/app/src/Payments/Enums/ShpfyDisputeType.Enum.al
Outdated
Show resolved
Hide resolved
Ported all changes as checked into the main repo.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one. Build ID: 18225. |
When there is a dispute related to a payment transaction, there is no clear way to see the status of the dispute and the finalized date within BC.
The committed code enables this. I have added an Enum that represents the dispute statuses from Shopify, and mapped them accordingly.
UpdateDisputeStatus() function in ShpfyPayments.Codeunit.al gets the list of disputes from the Shopify API, and updates the data in BC.
Considering that dispute processing is an async task and might happen at any point in time, I pull the data from Shopify via the report "Shpfy Sync Disputes", that can be scheduled via Job queue.
On another note, with the updates to the Disputes, values from "Shpfy Payment Transcation Type" would be very valued for extensibility purposes, so I removed the Internal access.
Fixes #26262
Fixes AB#498566