summaryrefslogtreecommitdiff
path: root/pikul.c
AgeCommit message (Collapse)Author
2022-08-14Init uninitialised with NULLꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2022-01-12Perl version can log to a fileꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Make sure the slot is nulledꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Make sure services is filled with NULLꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Each shipping info is retained in its own slotꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
Slot/enum 0 is reserved for Pikul. libcurl WRITEFUNCTION callback userData parameter is now used for the shipping instance, but may also be used for something else in turns.
2021-07-22No special services structꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-22Remove commented codeꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-22pikul_codes shouldn't be neededꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-20Anticipate situation before there's any address infoꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-20Function for listing services ready in HTMLꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-20Function to get list of just the service codesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Log order POSTꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Merge the inline functions to pikul.cꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
So things are more straight forward, and this makes code more reusable.
2021-07-19Implementations don't need the CURL* object that muchꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Merge headers into common.hꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-18The qualifiers have been unnecessaryꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-18Insurance is not determined by user's decisionꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
It depends on some weight threshhold.
2021-07-17Should be the user's responsibility to free itꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Rename waybill to tracking_numberꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Postal codes for both sender & receiverꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Rename trx_id to order_numberꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-16use_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.
2021-07-16Order functionality draftꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
Not tested yet. Now the item object is still flattened as an array, initially to hurry the interfacing with the Perl module. But we were stuck with having to typemap char *** anyway, so we switch to SWIG because of the potential of ease. Still, we need to typemap char ***, but now that we're at SWIG, we might as well typemap a custom item struct.
2021-07-16Generalise the response handlerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
so the common part gets to be reused.
2021-07-16No need for shipping to be passed as pointerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
when it needs to be global anyway.
2021-07-13Anticipate empty services arrayꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
There might be cases where there is the JSON object "services", there's the array, but it's empty.
2021-06-29Rename variablesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Join 2 linesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Swap parameter positionꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Shorten pikul_company enum valuesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Handle whose status is other than 200ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
At the same time, refactor the JSON handling.
2021-06-28Rename services to last in recurseꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Shorten the module's services function nameꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Reorganise a bitꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Merge handler.c to pikul.cꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-27Make headers function inlineꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-27Shipping API client frameworkꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
with 1 module so far.