Commits

Thomas Tornevall authored 78341318f36
Mostly for WOO-716 * Removed further timeout-checks, as they can't be used with ecom2. Also cleaned up further getConnections. * Updated further docblocks. * Updated getPaymentId to reflect how we want to handle order references in future (we should probably rename it too). * Updated setOrderLines to reflect the way orderlines should be handled via ecom (Beware and take height for the RCO traditional way!). * Started to correct process_payment and preProcessOrder (Remember-RCO note). * Updated plugin to NOT use setOrderLines when handling MAPI (for the sake of RCO). * Updated and cleaned up processSimplified (a bit) to prepare the MAPI request. * Fixed a bunch of customerType-enums (ecom2) and how we handle customer types (including fixes for getAddress). * Removed order_id_type from config, as we will use a natural way to create order id's (as long as it is not RCO). * WOO-750: Removed processHosted to simplifiy the flow handling. * Splitted up orderline handler for simplified and rco. * setOrderLines for RCO is now getOrderLinesRco. * resursDefaultReference should no longer be necessary if we handle references properly. * Disabled setMetaData for customer id for now (See task 810). * Finalized getMapiOrderProductRow which is the generic handler for all products. * Added getMapiCustomOrderLine for all custom order rows that is not a product. * Updared getFromProduct to include helpers for both MAPI and RCO. * process_payment/preProcessOrder: disabled setProperPaymentReference as we try to avoid using external id's. * Restored processResursOrder from recent changes when MAPI was a module. API-types is no longer relevant. * Updated: getOrderLinesMapi. * Added: getMapiArticleRows, getMapiFeeRows, getMapiShippingRows, getMapiCouponRows,