This PR implements a new action to cancel orders in the VTEX API and adds a new type for OrderItem.
Key Changes:
Cancel Order Action:
Introduced an asynchronous function that cancels an order using the appropriate endpoint, returning the details of the canceled order or null on failure.
New Type for OrderItem:
Added the Package interface, which includes information about invoices, tracking number, tracking url and delivery status, enhancing the structure of order items.
Motivation:
These changes aim to improve the cancellation functionality and the handling of order data within the application.
What is this Contribution About?
This PR implements a new action to cancel orders in the VTEX API and adds a new type for
OrderItem
.Key Changes:
Cancel Order Action:
null
on failure.New Type for
OrderItem
:Package
interface, which includes information about invoices, tracking number, tracking url and delivery status, enhancing the structure of order items.Motivation: These changes aim to improve the cancellation functionality and the handling of order data within the application.