| 26 | #include <wallet/walletrpc.h> |
| 27 | |
| 28 | const char *invoice_status_str(enum invoice_status state) |
| 29 | { |
| 30 | switch (state) { |
| 31 | case PAID: |
| 32 | return "paid"; |
| 33 | case EXPIRED: |
| 34 | return "expired"; |
| 35 | case UNPAID: |
| 36 | return "unpaid"; |
| 37 | } |
| 38 | abort(); |
| 39 | } |
| 40 | |
| 41 | static void json_add_invoice_fields(struct json_stream *response, |
| 42 | const struct invoice_details *inv) |
no test coverage detected