Skip to content

Commit

Permalink
feat(backend): update Incoming Payment mutation (#2923)
Browse files Browse the repository at this point in the history
* update incoming payment mutation

* feat(bruno): add updateIncomingPayment mutation

* test update change response to fix error of validatin graphql

* add update whit main branch and stard add test files to update incominpayment

* variables

* run first case

* resolved errors in the test

* changes to updateIncomingpayment test

* load old test

* add test to service updateIncomingPayment and resolve observations

* format in files

* change coments

* run format

* add comment:The new metadata object to save for the incoming payment. It will overwrite any existing metadata.

* run generate to graphql

---------

Co-authored-by: Max Kurapov <[email protected]>
Co-authored-by: dianaOneOut36 <diana@DESKTOP-I4MC2Q0>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent 49310c7 commit 73db09d
Show file tree
Hide file tree
Showing 13 changed files with 466 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
meta {
name: Update Incoming Payment
type: graphql
seq: 47
}

post {
url: {{RafikiGraphqlHost}}/graphql
body: graphql
auth: none
}

body:graphql {
mutation UpdateIncomingPayment($input: UpdateIncomingPaymentInput!) {
updateIncomingPayment(input: $input) {
payment {
id
metadata
}
}
}
}

body:graphql:vars {
{
"input": {
"id": "{{incomingPaymentId}}",
"metadata": {
"description": "Updated description"
}
}
}
}

script:pre-request {
const scripts = require('./scripts');

scripts.addApiSignatureHeader();
}
15 changes: 15 additions & 0 deletions localenv/mock-account-servicing-entity/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions packages/backend/src/graphql/generated/graphql.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions packages/backend/src/graphql/generated/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 73db09d

Please sign in to comment.