-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2879/mk/updated-balances
- Loading branch information
Showing
32 changed files
with
1,751 additions
and
65 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
bruno/collections/Rafiki/Rafiki Admin APIs/Approve Incoming Payment.bru
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
meta { | ||
name: Approve Incoming Payment | ||
type: graphql | ||
seq: 47 | ||
} | ||
|
||
post { | ||
url: {{PeerGraphqlHost}}/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
mutation ApproveIncomingPayment($input: ApproveIncomingPaymentInput!) { | ||
approveIncomingPayment(input:$input) { | ||
payment { | ||
id | ||
} | ||
} | ||
} | ||
} | ||
|
||
body:graphql:vars { | ||
{ | ||
"input": { | ||
"id": "{{incomingPaymentId}}" | ||
} | ||
} | ||
} | ||
|
||
script:pre-request { | ||
const scripts = require('./scripts'); | ||
|
||
scripts.addApiSignatureHeader(); | ||
} |
36 changes: 36 additions & 0 deletions
36
bruno/collections/Rafiki/Rafiki Admin APIs/Cancel Incoming Payment.bru
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
meta { | ||
name: Cancel Incoming Payment | ||
type: graphql | ||
seq: 48 | ||
} | ||
|
||
post { | ||
url: {{PeerGraphqlHost}}/graphql | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
mutation CancelIncomingPayment($input: CancelIncomingPaymentInput!) { | ||
cancelIncomingPayment(input: $input) { | ||
payment { | ||
id | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
body:graphql:vars { | ||
{ | ||
"input": { | ||
"id": "{{incomingPaymentId}}" | ||
} | ||
} | ||
} | ||
|
||
script:pre-request { | ||
const scripts = require('./scripts'); | ||
|
||
scripts.addApiSignatureHeader(); | ||
} |
56 changes: 56 additions & 0 deletions
56
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.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
packages/backend/migrations/20240729210134_incoming_payment_cancel_approved_timestamp.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = function (knex) { | ||
return knex.schema.alterTable('incomingPayments', (table) => { | ||
table.timestamp('approvedAt').nullable() | ||
table.timestamp('cancelledAt').nullable() | ||
}) | ||
} | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = function (knex) { | ||
return knex.schema.alterTable('incomingPayments', (table) => { | ||
table.dropColumn('approvedAt') | ||
table.dropColumn('cancelledAt') | ||
}) | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/backend/migrations/20240820101201_add_deleted_at_grants.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = function (knex) { | ||
return knex.schema.alterTable('grants', (table) => { | ||
table.dropUnique(['authServerId', 'accessType', 'accessActions']) | ||
table.timestamp('deletedAt').nullable() | ||
}) | ||
} | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = function (knex) { | ||
return knex.schema.alterTable('grants', (table) => { | ||
table.unique(['authServerId', 'accessType', 'accessActions']) | ||
table.dropColumn('deletedAt') | ||
}) | ||
} |
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 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 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
Oops, something went wrong.