This endpoint fetches the last cart created by the customer. In other words, the cart will be fetched based on the latest products.Response#
Usage#
The latest()
method does not receive any parameters. Simply, the developer may call this method and be able to get the last cart created by the customer.Events#
This endpoint may trigger two events, the onLatestFetched and onLatestFailed events.onLatestFetched#
This event is triggered when fetching the last cart created by the customer is done without having any errors coming back from the backend.onLatestFailed#
This event is triggered when fetching the last cart created by the customer is not completed and an error has occurred. Modified at 2024-02-18 07:50:14