summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-25Functions to free places memoryꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-25Origin & destination info retrieval implementationsꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Make sure the slot is nulledꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-24Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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-19Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Log order POSTꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Minimum total weight is 1kgꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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 branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Implementations don't need the CURL* object that muchꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Headers have been mergedꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-19Merge headers into common.hꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-18Conform to updated interfacesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-18Merge branch 'master' into sicepatꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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-18Weight times quantity to make up totalꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Shouldn't have been addedꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Correct previous commitꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17nitems include item quantities that are more than 1ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Should be the user's responsibility to free itꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Rename waybill to tracking_numberꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Minimum unit price must be 1000 too for Anterajaꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Minimum subtotal is 1000 for Anterajaꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Tidy up a bitꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Remove parameter names to save from retypingꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Postal codes for both sender & receiverꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17Rename trx_id to order_numberꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-07-17_Bool typemapꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
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ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀