deco-cx / apps

App definitions by deco.cx
Apache License 2.0
82 stars 85 forks source link

WIP - [VTEX] Feat: add new types and cancel order action #945

Closed yuriassuncx closed 1 month ago

yuriassuncx commented 1 month ago

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:

  1. 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.
  2. 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.

github-actions[bot] commented 1 month ago

Tagging Options

Should a new tag be published when this PR is merged?