@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/README.md
CHANGED
|
@@ -209,7 +209,7 @@ polling remain managed by the checkout engine.
|
|
|
209
209
|
|---|---|---|
|
|
210
210
|
| `result` | `CheckoutResult \| null` | Full result, backend message, and optional order |
|
|
211
211
|
| `status` | `success \| failed \| pending \| stock_violated` | Normalized result status |
|
|
212
|
-
| `order` | `
|
|
212
|
+
| `order` | `CheckoutOrder \| undefined` | Finalized order convenience reference |
|
|
213
213
|
| `continueShoppingUrl` | `string \| undefined` | Configured storefront destination |
|
|
214
214
|
| `onRetry` | `() => void` | Return to the payment step |
|
|
215
215
|
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod,
|
|
2
|
-
export { ApplicableShippingMethods, Cart, CartProduct, Invoice, InvoiceItem, InvoiceShippingAddress, ItemShippingRate, Order, OrderInvoice, OrderInvoiceItem, OrderPublicId, OrderShippingItem, PaymentAction, PaymentGateway, PaymentMethod, ShippingAddress, ShippingAddressInput, ShippingAssignment, ShippingItem, ShippingMethod, ShippingRate } from '@sazito/client-sdk';
|
|
1
|
+
import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod, CheckoutOrder, SazitoClient, CredentialsManager, SazitoResponse, PaymentGateway, ShippingAssignment, CartProduct } from '@sazito/client-sdk';
|
|
2
|
+
export { ApplicableShippingMethods, Cart, CartProduct, CheckoutInvoice, CheckoutInvoiceItem, CheckoutOrder, CheckoutShippingItem, Invoice, InvoiceItem, InvoiceShippingAddress, ItemShippingRate, Order, OrderInvoice, OrderInvoiceItem, OrderPublicId, OrderShippingItem, PaymentAction, PaymentGateway, PaymentMethod, ShippingAddress, ShippingAddressInput, ShippingAssignment, ShippingItem, ShippingMethod, ShippingRate } from '@sazito/client-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Checkout domain types.
|
|
@@ -153,7 +153,7 @@ interface ShippingGroup {
|
|
|
153
153
|
}
|
|
154
154
|
interface CheckoutResult {
|
|
155
155
|
status: CheckoutResultStatus;
|
|
156
|
-
order?:
|
|
156
|
+
order?: CheckoutOrder;
|
|
157
157
|
message?: string;
|
|
158
158
|
}
|
|
159
159
|
interface CheckoutError {
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod,
|
|
2
|
-
export { ApplicableShippingMethods, Cart, CartProduct, Invoice, InvoiceItem, InvoiceShippingAddress, ItemShippingRate, Order, OrderInvoice, OrderInvoiceItem, OrderPublicId, OrderShippingItem, PaymentAction, PaymentGateway, PaymentMethod, ShippingAddress, ShippingAddressInput, ShippingAssignment, ShippingItem, ShippingMethod, ShippingRate } from '@sazito/client-sdk';
|
|
1
|
+
import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod, CheckoutOrder, SazitoClient, CredentialsManager, SazitoResponse, PaymentGateway, ShippingAssignment, CartProduct } from '@sazito/client-sdk';
|
|
2
|
+
export { ApplicableShippingMethods, Cart, CartProduct, CheckoutInvoice, CheckoutInvoiceItem, CheckoutOrder, CheckoutShippingItem, Invoice, InvoiceItem, InvoiceShippingAddress, ItemShippingRate, Order, OrderInvoice, OrderInvoiceItem, OrderPublicId, OrderShippingItem, PaymentAction, PaymentGateway, PaymentMethod, ShippingAddress, ShippingAddressInput, ShippingAssignment, ShippingItem, ShippingMethod, ShippingRate } from '@sazito/client-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Checkout domain types.
|
|
@@ -153,7 +153,7 @@ interface ShippingGroup {
|
|
|
153
153
|
}
|
|
154
154
|
interface CheckoutResult {
|
|
155
155
|
status: CheckoutResultStatus;
|
|
156
|
-
order?:
|
|
156
|
+
order?: CheckoutOrder;
|
|
157
157
|
message?: string;
|
|
158
158
|
}
|
|
159
159
|
interface CheckoutError {
|