Skip to content
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

Merged
merged 29 commits into from
Apr 10, 2024

Conversation

daniloziva
Copy link
Contributor

@daniloziva daniloziva commented Jan 19, 2024

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

@daniloziva daniloziva requested a review from a team as a code owner January 19, 2024 12:21
@daniloziva
Copy link
Contributor Author

@microsoft-github-policy-service agree [company="Vetatek"]

@daniloziva
Copy link
Contributor Author

@microsoft-github-policy-service agree

@daniloziva daniloziva changed the title Dispute processing in Shopify (Payments module) [Shopify] Dispute processing in Shopify (Payments module) Jan 19, 2024
Copy link
Contributor

@onbuyuka onbuyuka left a 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

@daniloziva
Copy link
Contributor Author

It would be nice to have some tests too

Added test too

@daniloziva daniloziva closed this Jan 22, 2024
@daniloziva daniloziva reopened this Jan 22, 2024
@daniloziva
Copy link
Contributor Author

@onbuyuka

I've updated the PR with requested changes. Please review and let me know

@daniloziva
Copy link
Contributor Author

It would be nice to have some tests too

@onbuyuka

Can you please review the code and let me know if there's anything else you would like to see?

@daniloziva daniloziva closed this Jan 26, 2024
@daniloziva daniloziva reopened this Jan 26, 2024
haoranpb
haoranpb previously approved these changes Apr 9, 2024
nikolakukrika
nikolakukrika previously approved these changes Apr 9, 2024
onbuyuka
onbuyuka previously approved these changes Apr 10, 2024
Ported all changes as checked into the main repo.
@JesperSchulz JesperSchulz merged commit eaeff6c into microsoft:main Apr 10, 2024
9 of 10 checks passed
@JesperSchulz JesperSchulz added the ships-in-future-update Fix ships in a future update label Apr 15, 2024
@JesperSchulz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linked Issue is linked to a Azure Boards work item processing-PR The PR is currently being reviewed ships-in-future-update Fix ships in a future update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Internal] [Shopify] Dispute processing in Shopify (Payments module)
6 participants