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(backend): outgoing payments page resolver #2872

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Cancel Outgoing Payment
type: graphql
seq: 43
seq: 46
Copy link
Contributor

Choose a reason for hiding this comment

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

ah, alphabetical now?

}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Withdraw Asset Liquidity
type: graphql
seq: 6
seq: 7
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Withdraw Incoming Payment Liquidity
type: graphql
seq: 26
seq: 28
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Incoming Payment
type: graphql
seq: 24
seq: 26
}

post {
Expand Down Expand Up @@ -57,7 +57,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("incomingPaymentId", body.data.createIncomingPayment.payment.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Or Update Peer By Url
type: graphql
seq: 9
seq: 10
}

post {
Expand Down Expand Up @@ -45,7 +45,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("peerId", body.data.createOrUpdatePeerByUrl?.peer.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Outgoing Payment From Incoming Payment
type: graphql
seq: 32
seq: 34
}

post {
Expand Down Expand Up @@ -89,7 +89,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("outgoingPaymentId", body.data.createOutgoingPaymentFromIncomingPayment.payment.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Withdraw Outgoing Payment Liquidity
type: graphql
seq: 37
seq: 40
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Outgoing Payment
type: graphql
seq: 31
seq: 33
}

post {
Expand Down Expand Up @@ -84,7 +84,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("outgoingPaymentId", body.data.createOutgoingPayment.payment.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Withdraw Peer Liquidity
type: graphql
seq: 15
seq: 16
}

post {
Expand Down
4 changes: 2 additions & 2 deletions bruno/collections/Rafiki/Rafiki Admin APIs/Create Peer.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Peer
type: graphql
seq: 8
seq: 9
}

post {
Expand Down Expand Up @@ -54,7 +54,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("peerId", body.data.createPeer.peer.id);
}
Expand Down
4 changes: 2 additions & 2 deletions bruno/collections/Rafiki/Rafiki Admin APIs/Create Quote.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Quote
type: graphql
seq: 29
seq: 31
}

post {
Expand Down Expand Up @@ -87,7 +87,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("quoteId", body.data.createQuote.quote.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Receiver (remote Incoming Payment)
type: graphql
seq: 27
seq: 29
}

post {
Expand Down Expand Up @@ -62,7 +62,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("receiverId", body.data.createReceiver.receiver.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Wallet Address Key
type: graphql
seq: 22
seq: 24
}

post {
Expand Down Expand Up @@ -53,7 +53,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("walletAddressKeyId", body.data.createWalletAddressKey.walletAddressKey.id);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Wallet Address Withdrawal
type: graphql
seq: 39
seq: 42
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Create Wallet Address
type: graphql
seq: 18
seq: 19
}

post {
Expand Down Expand Up @@ -61,7 +61,7 @@ script:pre-request {

script:post-response {
const body = res.getBody();

if (body?.data) {
bru.setEnvVar("walletAddressId", body.data.createWalletAddress.walletAddress.id);
bru.setEnvVar("walletAddressUrl", body.data.createWalletAddress.walletAddress.url);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Delete Asset
type: graphql
seq: 43
seq: 47
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Delete Peer.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Delete Peer
type: graphql
seq: 13
seq: 14
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Deposit Asset Liquidity
type: graphql
seq: 5
seq: 6
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Deposit Event Liquidity
type: graphql
seq: 35
seq: 38
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Deposit Outgoing Payment Liquidity
type: graphql
seq: 36
seq: 39
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Deposit Peer Liquidity
type: graphql
seq: 14
seq: 15
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Accounting Ledger Transfers
type: graphql
seq: 1
seq: 2
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Get Asset.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Asset
type: graphql
seq: 3
seq: 4
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Get Assets.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Assets
type: graphql
seq: 4
seq: 5
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Incoming Payment
type: graphql
seq: 25
seq: 27
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Outgoing Payment
type: graphql
seq: 33
seq: 35
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
meta {
name: Get Outgoing Payments
type: graphql
seq: 36
}

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

body:graphql {
query OutgoingPayments($filter: OutgoingPaymentFilter) {
outgoingPayments(filter: $filter) {
edges {
node {
id
client
}
cursor
}
}
}
}

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

scripts.addApiSignatureHeader();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Payments
type: graphql
seq: 34
seq: 37
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Get Peer.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Peer
type: graphql
seq: 11
seq: 12
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Get Peers.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Peers
type: graphql
seq: 12
seq: 13
}

post {
Expand Down
2 changes: 1 addition & 1 deletion bruno/collections/Rafiki/Rafiki Admin APIs/Get Quote.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Quote
type: graphql
seq: 30
seq: 32
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Get Receiver (remote Incoming Payment)
type: graphql
seq: 28
seq: 30
}

post {
Expand Down
Loading
Loading