@usethrottle/cart 3.4.0 → 3.5.0
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/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -206,6 +206,14 @@ interface ShippingTaxCartCalculateInput {
|
|
|
206
206
|
kind?: 'cart_estimate' | 'checkout_final';
|
|
207
207
|
selectedShippingMethodId?: string | null;
|
|
208
208
|
persist?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Inline shipping address. When set it is persisted to the cart (like
|
|
211
|
+
* `carts.update`) before calculation, so you can set the destination and get
|
|
212
|
+
* rates in a single request instead of a separate update + calculate.
|
|
213
|
+
*/
|
|
214
|
+
shippingAddress?: ShippingTaxAddress | null;
|
|
215
|
+
/** Inline billing address; persisted to the cart before calculation. */
|
|
216
|
+
billingAddress?: ShippingTaxAddress | null;
|
|
209
217
|
}
|
|
210
218
|
interface ShippingTaxMethod {
|
|
211
219
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,14 @@ interface ShippingTaxCartCalculateInput {
|
|
|
206
206
|
kind?: 'cart_estimate' | 'checkout_final';
|
|
207
207
|
selectedShippingMethodId?: string | null;
|
|
208
208
|
persist?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Inline shipping address. When set it is persisted to the cart (like
|
|
211
|
+
* `carts.update`) before calculation, so you can set the destination and get
|
|
212
|
+
* rates in a single request instead of a separate update + calculate.
|
|
213
|
+
*/
|
|
214
|
+
shippingAddress?: ShippingTaxAddress | null;
|
|
215
|
+
/** Inline billing address; persisted to the cart before calculation. */
|
|
216
|
+
billingAddress?: ShippingTaxAddress | null;
|
|
209
217
|
}
|
|
210
218
|
interface ShippingTaxMethod {
|
|
211
219
|
id: string;
|