@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 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/cart",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Typed REST client for the Throttle Cart API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",