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

feat(api): cancel outgoing payment #2694

Merged
merged 22 commits into from May 13, 2024

Conversation

golobitch
Copy link
Collaborator

@golobitch golobitch commented May 1, 2024

  • feat(localenv): cancel outgoing payment on created webhook
  • feat(graphql): cancel outgoing payment api
  • feat(outgoing-payment): cancel outgoing payment service implementation

Changes proposed in this pull request

Add an API for canceling outgoing payment. This can be possible only if outgoing payment is in funding state. Normally, this API would be called by ASE to cancel the outgoing payment. It can be canceled due too numerous reasons like account not having enough balance or like his KYC is not valid, etc. ASE can also specify cancelation reason, and it will be written in meta under cancellationReason key.

Context

fixes #2688

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Documentation added
  • Make sure that all checks pass
  • Bruno collection updated

@golobitch golobitch linked an issue May 1, 2024 that may be closed by this pull request
4 tasks
@golobitch golobitch self-assigned this May 1, 2024
@github-actions github-actions bot added type: tests Testing related pkg: backend Changes in the backend package. pkg: frontend Changes in the frontend package. type: source Changes business logic pkg: mock-ase pkg: mock-account-service-lib labels May 1, 2024
Copy link

netlify bot commented May 1, 2024

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 33ae554
🔍 Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/663aa17d16cc8d00081eae3f

@golobitch golobitch changed the title feature(api): cancel outgoing payment feat(api): cancel outgoing payment May 2, 2024
@golobitch golobitch force-pushed the feature/2688-add-canceloutgoingpayment-graphql-api branch from 2989e03 to 4920165 Compare May 2, 2024 16:39
@github-actions github-actions bot added pkg: documentation Changes in the documentation package. type: documentation Improvements or additions to documentation labels May 2, 2024
@golobitch golobitch force-pushed the feature/2688-add-canceloutgoingpayment-graphql-api branch from 09adfdb to 57c6f8b Compare May 2, 2024 17:57
@golobitch golobitch marked this pull request as ready for review May 2, 2024 18:40
@golobitch golobitch force-pushed the feature/2688-add-canceloutgoingpayment-graphql-api branch from 57c6f8b to 1093442 Compare May 2, 2024 20:12
Copy link
Contributor

@mkurapov mkurapov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this & it worked for me 👍

@golobitch golobitch force-pushed the feature/2688-add-canceloutgoingpayment-graphql-api branch from 4f1368a to 7c9f5c0 Compare May 3, 2024 19:02
@golobitch golobitch requested a review from mkurapov May 4, 2024 18:58
Copy link
Contributor

@mkurapov mkurapov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments

golobitch and others added 4 commits May 7, 2024 22:26
@golobitch golobitch force-pushed the feature/2688-add-canceloutgoingpayment-graphql-api branch from f5e243f to 0d1b4dd Compare May 7, 2024 20:39
@golobitch golobitch requested a review from mkurapov May 8, 2024 19:13
@golobitch golobitch merged commit b4f6335 into main May 13, 2024
42 checks passed
@golobitch golobitch deleted the feature/2688-add-canceloutgoingpayment-graphql-api branch May 13, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package. pkg: documentation Changes in the documentation package. pkg: frontend Changes in the frontend package. pkg: mock-account-service-lib pkg: mock-ase type: documentation Improvements or additions to documentation type: source Changes business logic type: tests Testing related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cancelOutgoingPayment GraphQL API
2 participants