@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.
- package/README.md +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +3 -3
- package/dist/next/index.d.ts +3 -3
- package/dist/next/index.js.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/next/index.d.cts
CHANGED
|
@@ -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 {
|
|
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?:
|
|
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?:
|
|
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. */
|
package/dist/next/index.d.ts
CHANGED
|
@@ -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 {
|
|
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?:
|
|
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?:
|
|
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. */
|