@sazito/checkout 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
3
- import { Order, Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod } from '@sazito/client-sdk';
3
+ import { CheckoutOrder, Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod } from '@sazito/client-sdk';
4
4
 
5
5
  /**
6
6
  * Checkout domain types.
@@ -154,7 +154,7 @@ interface ShippingGroup {
154
154
  }
155
155
  interface CheckoutResult {
156
156
  status: CheckoutResultStatus;
157
- order?: Order;
157
+ order?: CheckoutOrder;
158
158
  message?: string;
159
159
  }
160
160
  interface CheckoutError {
@@ -373,7 +373,7 @@ interface RenderResultProps {
373
373
  /** Normalized result status. Falls back to `pending` while resolving. */
374
374
  status: CheckoutResultStatus;
375
375
  /** Finalized order returned by Sazito on a successful payment. */
376
- order?: Order;
376
+ order?: CheckoutOrder;
377
377
  /** Configured destination for the continue-shopping action. */
378
378
  continueShoppingUrl?: string;
379
379
  /** Return to the payment step after a failed or stock-violated result. */
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
3
- import { Order, Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod } from '@sazito/client-sdk';
3
+ import { CheckoutOrder, Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod } from '@sazito/client-sdk';
4
4
 
5
5
  /**
6
6
  * Checkout domain types.
@@ -154,7 +154,7 @@ interface ShippingGroup {
154
154
  }
155
155
  interface CheckoutResult {
156
156
  status: CheckoutResultStatus;
157
- order?: Order;
157
+ order?: CheckoutOrder;
158
158
  message?: string;
159
159
  }
160
160
  interface CheckoutError {
@@ -373,7 +373,7 @@ interface RenderResultProps {
373
373
  /** Normalized result status. Falls back to `pending` while resolving. */
374
374
  status: CheckoutResultStatus;
375
375
  /** Finalized order returned by Sazito on a successful payment. */
376
- order?: Order;
376
+ order?: CheckoutOrder;
377
377
  /** Configured destination for the continue-shopping action. */
378
378
  continueShoppingUrl?: string;
379
379
  /** Return to the payment step after a failed or stock-violated result. */