Parse invoice in paid action response
This commit is contained in:
parent
112cd5874b
commit
0280bb1e61
36
items.go
36
items.go
@ -226,7 +226,17 @@ func (c *Client) PostDiscussion(title string, text string, sub string) (int, err
|
||||
Query: `
|
||||
mutation upsertDiscussion($title: String!, $text: String, $sub: String) {
|
||||
upsertDiscussion(title: $title, text: $text, sub: $sub) {
|
||||
result { id }
|
||||
result {
|
||||
id
|
||||
}
|
||||
invoice {
|
||||
id
|
||||
hash
|
||||
bolt11
|
||||
satsRequested
|
||||
expiresAt
|
||||
}
|
||||
paymentMethod
|
||||
}
|
||||
}`,
|
||||
Variables: map[string]interface{}{
|
||||
@ -262,7 +272,17 @@ func (c *Client) PostLink(url string, title string, text string, sub string) (in
|
||||
Query: `
|
||||
mutation upsertLink($url: String!, $title: String!, $text: String, $sub: String!) {
|
||||
upsertLink(url: $url, title: $title, text: $text, sub: $sub) {
|
||||
result { id }
|
||||
result {
|
||||
id
|
||||
}
|
||||
invoice {
|
||||
id
|
||||
hash
|
||||
bolt11
|
||||
satsRequested
|
||||
expiresAt
|
||||
}
|
||||
paymentMethod
|
||||
}
|
||||
}`,
|
||||
Variables: map[string]interface{}{
|
||||
@ -299,7 +319,17 @@ func (c *Client) CreateComment(parentId int, text string) (int, error) {
|
||||
Query: `
|
||||
mutation upsertComment($parentId: ID!, $text: String!) {
|
||||
upsertComment(parentId: $parentId, text: $text) {
|
||||
result { id }
|
||||
result {
|
||||
id
|
||||
}
|
||||
invoice {
|
||||
id
|
||||
hash
|
||||
bolt11
|
||||
satsRequested
|
||||
expiresAt
|
||||
}
|
||||
paymentMethod
|
||||
}
|
||||
}`,
|
||||
Variables: map[string]interface{}{
|
||||
|
Loading…
x
Reference in New Issue
Block a user