Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-08-01 | No curl call in Anteraja implementation | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-24 | Each 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-19 | Minimum total weight is 1kg | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-19 | Merge the inline functions to pikul.c | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
So things are more straight forward, and this makes code more reusable. | |||
2021-07-19 | Implementations don't need the CURL* object that much | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-19 | Merge headers into common.h | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-18 | Insurance is not determined by user's decision | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
It depends on some weight threshhold. | |||
2021-07-18 | Weight times quantity to make up total | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Shouldn't have been added | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Correct previous commit | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | nitems include item quantities that are more than 1 | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Rename waybill to tracking_number | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Minimum unit price must be 1000 too for Anteraja | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Minimum subtotal is 1000 for Anteraja | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Tidy up a bit | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Postal codes for both sender & receiver | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-17 | Rename trx_id to order_number | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-16 | 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. | |||
2021-07-16 | parcel_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-16 | Fix 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-16 | Initialise items JSON before concatenating | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-16 | Order 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-16 | Generalise the response handler | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
so the common part gets to be reused. | |||
2021-07-16 | Services weight max length macro | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-16 | No need for shipping to be passed as pointer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
when it needs to be global anyway. | |||
2021-07-14 | Macros for Anteraja services | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-14 | When 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-14 | By default, Anteraja will not round up to minimum | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-14 | Log 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-14 | Use macro for format | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-07-13 | Debugs Anteraja response | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-06-28 | Swap parameter position | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-06-28 | Handle whose status is other than 200 | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
At the same time, refactor the JSON handling. | |||
2021-06-28 | Shorten the module's services function name | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-06-28 | Provision enum for Anteraja | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
2021-06-27 | Shipping API client framework | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ | |
with 1 module so far. |