summaryrefslogtreecommitdiff
path: root/pikul.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 23:02:24 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 23:02:24 +0800
commit4482f46ee073110c7c52d73bc8a8006437eba6f2 (patch)
tree01dc7dcd827b96e873d7ee13eae22ab8fdd12eae /pikul.h
parent6960f565208af11828920f262d201e9db7a9aba4 (diff)
use_insurance turns out to be required
This one follows the example given for the boolean JSON value, which is written as true or false. The response is error 500, internal server error. Despite the example, it says max length is 1 in the middle part of the doc, so maybe it should be written as 1 or 0. Will be tried next.
Diffstat (limited to 'pikul.h')
-rw-r--r--pikul.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pikul.h b/pikul.h
index 0bb4e23..e2c6331 100644
--- a/pikul.h
+++ b/pikul.h
@@ -28,7 +28,7 @@ double pikul_cost(const char *origin, const char *destination, double weight, co
char *pikul_order(const char *trx_id, const char *service, const char *sender_name,
const char *sender_phone, const char *origin, const char *sender_address,
const char *receiver_name, const char *receiver_phone, const char *destination,
- const char *receiver_address, int nitems, char **items[], double subtotal);
+ const char *receiver_address, int nitems, char **items[], _Bool insurance, double subtotal);
void pikul_cleanup();
#ifdef __cplusplus