You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`fetchinvoice` variant, for setting invreq_recurrence_cancel instead.
Signed-off-by: Rusty Russell <[email protected]>
Changelog-EXPERIMENTAL: `cancelrecurringinvoice` command to send new "don't expect any more invoice requests" msg to recurring bolt12 invoices.
Copy file name to clipboardExpand all lines: contrib/msggen/msggen/schema.json
+81Lines changed: 81 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4828,6 +4828,87 @@
4828
4828
}
4829
4829
]
4830
4830
},
4831
+
"cancelrecurringinvoice.json": {
4832
+
"$schema": "../rpc-schema-draft.json",
4833
+
"type": "object",
4834
+
"added": "v25.09",
4835
+
"rpc": "cancelrecurringinvoice",
4836
+
"title": "Command for sending a cancel message for a recurring offer",
4837
+
"description": [
4838
+
"NOTE: Recurring offers are experimental, and may be changed in backwards-incompable ways.",
4839
+
"",
4840
+
"The **cancelrecurringinvoice** RPC command sends a cancellation message in place of an invoice_request. The BOLT 12 specification suggests sending this as a courtesy in place of the next invoice_request (as would be sent by fetchinvoice)."
4841
+
],
4842
+
"request": {
4843
+
"required": [
4844
+
"offer",
4845
+
"recurrence_counter",
4846
+
"recurrence_label"
4847
+
],
4848
+
"additionalProperties": false,
4849
+
"properties": {
4850
+
"offer": {
4851
+
"type": "string",
4852
+
"description": [
4853
+
"Offer string (must be recurring) which we have been paying."
4854
+
]
4855
+
},
4856
+
"recurrence_counter": {
4857
+
"type": "u64",
4858
+
"description": [
4859
+
"One later than the last-specified recurrence_counter for the last invoice."
4860
+
]
4861
+
},
4862
+
"recurrence_label": {
4863
+
"type": "string",
4864
+
"description": [
4865
+
"This must be the same as prior fetchinvoice calls for the same recurrence, as it is used to link them together."
4866
+
]
4867
+
},
4868
+
"recurrence_start": {
4869
+
"type": "number",
4870
+
"description": [
4871
+
"Indicates what period number to start at (usually 0). This will be the same as previous fetchinvoice calls."
4872
+
]
4873
+
},
4874
+
"payer_note": {
4875
+
"type": "string",
4876
+
"description": [
4877
+
"To tell the issuer the reason for the cancellation."
4878
+
]
4879
+
},
4880
+
"bip353": {
4881
+
"type": "string",
4882
+
"description": [
4883
+
"BIP353 string (optionally with \u20bf) indicating where we fetched the offer from"
"title": "Command for sending a cancel message for a recurring offer",
7
+
"description": [
8
+
"NOTE: Recurring offers are experimental, and may be changed in backwards-incompable ways.",
9
+
"",
10
+
"The **cancelrecurringinvoice** RPC command sends a cancellation message in place of an invoice_request. The BOLT 12 specification suggests sending this as a courtesy in place of the next invoice_request (as would be sent by fetchinvoice)."
11
+
],
12
+
"request": {
13
+
"required": [
14
+
"offer",
15
+
"recurrence_counter",
16
+
"recurrence_label"
17
+
],
18
+
"additionalProperties": false,
19
+
"properties": {
20
+
"offer": {
21
+
"type": "string",
22
+
"description": [
23
+
"Offer string (must be recurring) which we have been paying."
24
+
]
25
+
},
26
+
"recurrence_counter": {
27
+
"type": "u64",
28
+
"description": [
29
+
"One later than the last-specified recurrence_counter for the last invoice."
30
+
]
31
+
},
32
+
"recurrence_label": {
33
+
"type": "string",
34
+
"description": [
35
+
"This must be the same as prior fetchinvoice calls for the same recurrence, as it is used to link them together."
36
+
]
37
+
},
38
+
"recurrence_start": {
39
+
"type": "number",
40
+
"description": [
41
+
"Indicates what period number to start at (usually 0). This will be the same as previous fetchinvoice calls."
42
+
]
43
+
},
44
+
"payer_note": {
45
+
"type": "string",
46
+
"description": [
47
+
"To tell the issuer the reason for the cancellation."
48
+
]
49
+
},
50
+
"bip353": {
51
+
"type": "string",
52
+
"description": [
53
+
"BIP353 string (optionally with ₿) indicating where we fetched the offer from"
0 commit comments