Skip to content

Commit 9e22874

Browse files
offers: enable label for invoicerequest
1 parent cfbfe5d commit 9e22874

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/schemas/invoicerequest.request.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"type": "string",
2121
"description": ""
2222
},
23+
"label": {
24+
"type": "string",
25+
"description": ""
26+
},
2327
"absolute_expiry": {
2428
"type": "u64",
2529
"description": ""

plugins/offers_offer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ struct command_result *json_invoicerequest(struct command *cmd,
467467
json_add_bool(req->js, "exposeid", true);
468468
json_add_bool(req->js, "single_use", *single_use);
469469
if (label)
470-
json_add_string(req->js, "label", label);
470+
json_add_string(req->js, "recurrence_label", label);
471471
return send_outreq(cmd->plugin, req);
472472
}
473473

0 commit comments

Comments
 (0)