-
Notifications
You must be signed in to change notification settings - Fork 89
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(incoming-payment): make it actionable #2827
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change will add two new table columns in the incomingPayments table on the backend service. ASE will be able to call cancel or approve incoming payment GraphQL API, and the timestamp of the call will be save in the database under these two fields. Normally, both of these two fields are optional.
This commit introduces possibility, to approve incoming payment through Admin API. API can be called with existing incoming payment as ID. Rafiki will fetch the incoming payment and update it's approvedAt field in the database. In case that payment does not exists or that it is not in the PENDING state, appropriate error is returned. #2811
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
Jul 30, 2024
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
It will be possible to cancel incoming payment due to some requirements. Rafiki just need to get a call to cancel incoming payment, with the payment ID. If transaction is in PENDING state and it is in the database, then it will get updated. It's cancelledAt field will be set to current time. #2811
…ncel incoming payment API #2811
golobitch
changed the title
feature(incoming-payment): make it actionable
feat(incoming-payment): make it actionable
Jul 31, 2024
…ing payments Introduced three new env variables that will set the behaviour of actionable incoming payments. One env variable will define if polling will be done, meaning that it will wait for the incoming payment to be accepted or rejected, and other two env variables defines timeout for polling and polling frequency
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
July 31, 2024 22:01
3bf19d6
to
076af94
Compare
mkurapov
reviewed
Aug 10, 2024
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
August 10, 2024 21:58
d214173
to
130314b
Compare
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
August 10, 2024 22:00
130314b
to
d666e81
Compare
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
August 10, 2024 22:55
d666e81
to
e434637
Compare
I will also add bruno collection to approve or cancel incoming payment through Admin API. Tomorrow :) |
mkurapov
reviewed
Aug 12, 2024
bruno/collections/Rafiki/Rafiki Admin APIs/Approve Incoming Payment.bru
Outdated
Show resolved
Hide resolved
…st.ts Co-authored-by: Max Kurapov <max@interledger.org>
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
August 14, 2024 19:45
fe7f430
to
f39d329
Compare
golobitch
force-pushed
the
feature/2811-actionable-incoming-payments
branch
from
August 14, 2024 20:44
f39d329
to
7ff5178
Compare
Our builds are failing due to Trivy scanner. Trivy scanner actually found that our Axios version v1.6.8 has a vulnerability - CVE-2024-39338. This was fixed in version 1.7.4, hence, the upgrade. fix #2860
5 tasks
BlairCurrey
reviewed
Aug 15, 2024
mkurapov
reviewed
Aug 19, 2024
ah I see you are still testing |
Yeah, I did a push from different computer, where I did not have all the changes ... now it should be everything |
mkurapov
approved these changes
Aug 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pkg: auth
Changes in the GNAP auth package.
pkg: backend
Changes in the backend package.
pkg: frontend
Changes in the frontend package.
pkg: mock-account-service-lib
pkg: mock-ase
type: source
Changes business logic
type: tests
Testing related
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request
approvedAt
andcancelledAt
columns to theincomingPayments
tableapproveIncomingPayment
mutation that accepts incoming payment id and if this payment is in the database and in PENDING state, it will update it'sapprovedAt
field to current time.cancellIncomingPayment
mutation that accepts incoming payment id and if this payment is in the database and in PENDING state it will update it'scancelledAt
field to current time.Context
fixes #2811Checklist
fixes #number