mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 10:39:49 +01:00
2c41c5d52d
We have "secret" and "hash" types which are often more appropriate. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
42 lines
966 B
JSON
42 lines
966 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"required": [
|
|
"offer_id",
|
|
"active",
|
|
"single_use",
|
|
"bolt12",
|
|
"used"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"offer_id": {
|
|
"type": "hash",
|
|
"description": "the merkle hash of the offer"
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"enum": [
|
|
false
|
|
],
|
|
"description": "Whether the offer can produce invoices/payments"
|
|
},
|
|
"single_use": {
|
|
"type": "boolean",
|
|
"description": "Whether the offer is disabled after first successful use"
|
|
},
|
|
"bolt12": {
|
|
"type": "string",
|
|
"description": "The bolt12 string representing this offer"
|
|
},
|
|
"used": {
|
|
"type": "boolean",
|
|
"description": "Whether the offer has had an invoice paid / payment made"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"description": "The label provided when offer was created"
|
|
}
|
|
}
|
|
}
|