| 2186 | } |
| 2187 | |
| 2188 | static struct command_result *param_payment_status(struct command *cmd, |
| 2189 | const char *name, |
| 2190 | const char *buffer, |
| 2191 | const jsmntok_t *tok, |
| 2192 | enum payment_status **status) |
| 2193 | { |
| 2194 | *status = tal(cmd, enum payment_status); |
| 2195 | if (string_to_payment_status(buffer + tok->start, |
| 2196 | tok->end - tok->start, |
| 2197 | *status)) |
| 2198 | return NULL; |
| 2199 | |
| 2200 | return command_fail_badparam(cmd, name, buffer, tok, |
| 2201 | "should be an invoice status"); |
| 2202 | } |
| 2203 | |
| 2204 | static struct command_result *json_listsendpays(struct command *cmd, |
| 2205 | const char *buffer, |
no test coverage detected