Monday, November 4, 2024
1 change · master
Resolved issues and error corrections
Point of Sale order creation now makes the new order available immediately, preventing follow-up actions from running before key order details are ready. This improves reliability for due settlements, delivery integrations, and related fiscal or compliance flows.
Original PR description
`add_new_order` method is now synchronous and returns the new order. This allows to directly use the new order in the next steps without the need to await the promise. The `pos_order` reference is now added to the order by calling `getNextOrderRefs` that's isn't awaited anymore. That's means that during a small amount of time, the order didn't have following fields: `pos_reference`, `tracking_number` and `sequence_number`