| 27 | #include <wire/wire_sync.h> |
| 28 | |
| 29 | static const char *invoice_status_str(const struct invoice_details *inv) |
| 30 | { |
| 31 | if (inv->state == PAID) |
| 32 | return "paid"; |
| 33 | if (inv->state == EXPIRED) |
| 34 | return "expired"; |
| 35 | return "unpaid"; |
| 36 | } |
| 37 | |
| 38 | static void json_add_invoice_fields(struct json_stream *response, |
| 39 | const struct invoice_details *inv) |
no outgoing calls
no test coverage detected