summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-17Finally able to typemap char **[] rightꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
For now the item object is still flattened.
2021-07-16Typemap for char **[]ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
Not tested yet. Here so this compiles up to Perl module.
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-16parcel_total_weight turns out to be requiredꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
We use Interchange as a reference, and the unit weight is not saved to database for the transaction, only shipping cost. So to make it convenient for the library users, the total weight calculation is done by the library, so no need to pass any total weight argument.
2021-07-16Fix the truncated items JSONꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
By making sure it's always concatenated with a null terminated string, AND fix the index that gets null terminated in the end.
2021-07-16Initialise items JSON before concatenatingꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-16Update value parameter to subtotalꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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-16SWIG files, therefore deprecating Pikul-XSꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-16Generalise the response handlerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
so the common part gets to be reused.
2021-07-16Services weight max length macroꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-16No need for shipping to be passed as pointerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
when it needs to be global anyway.
2021-07-14Macros for Anteraja servicesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-14When debugging, debugs for all services/companiesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
because libcurl's verbose will hit anyway. There's no point trying to debug for a company and not the others.
2021-07-14By default, Anteraja will not round up to minimumꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-14Log that worksꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
Log will show up with libcurl's before the HTML, and only log that is within libcurl's, i.e. in the WRITEFUNCTION.
2021-07-14Use macro for formatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-13Unignore some filesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
which are executable or build or libtool related.
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-07-13Debugs Anteraja responseꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-29Update library nameꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-29Revert "Update repo URL"ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
This reverts commit b8236ef148464706893f5808dcbcabf61975ad1f.
2021-06-29Rename variablesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Join 2 linesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Join 2 linesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Ignore scans and configure wrappersꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Swap parameter positionꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Shorten pikul_company enum valuesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Shorten services_trail to just trailꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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-28Remove an enumꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Update repo URLꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Reorganise a bitꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Simplify the enumsꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Merge handler.c to pikul.cꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-28Provision enum for Anterajaꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-27Make headers function inlineꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-27Shipping API client frameworkꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
with 1 module so far.