@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 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` | `Order \| undefined` | Finalized order convenience reference |
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
 
@@ -1,5 +1,5 @@
1
- import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod, Order, SazitoClient, CredentialsManager, SazitoResponse, PaymentGateway, ShippingAssignment, CartProduct } from '@sazito/client-sdk';
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?: Order;
156
+ order?: CheckoutOrder;
157
157
  message?: string;
158
158
  }
159
159
  interface CheckoutError {
@@ -1,5 +1,5 @@
1
- import { Cart, Invoice, ApplicableShippingMethods, InvoiceItem, ShippingRate, PaymentMethod, Order, SazitoClient, CredentialsManager, SazitoResponse, PaymentGateway, ShippingAssignment, CartProduct } from '@sazito/client-sdk';
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?: Order;
156
+ order?: CheckoutOrder;
157
157
  message?: string;
158
158
  }
159
159
  interface CheckoutError {