@usethrottle/cart 3.9.1 → 3.10.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
@@ -92,9 +92,16 @@ interface LineItem {
92
92
  taxAmount: number;
93
93
  discountAmount: number;
94
94
  total: number;
95
+ /**
96
+ * Display metadata. `count` is the number of payments to show, and is not
97
+ * enforced. On the plan line Throttle writes for a recurring checkout,
98
+ * `intervalUnit`/`intervalCount` describe a custom cadence.
99
+ */
95
100
  recurring: {
96
101
  interval: string;
97
102
  count: number | null;
103
+ intervalUnit?: string | null;
104
+ intervalCount?: number | null;
98
105
  } | null;
99
106
  imageUrl: string | null;
100
107
  position: number;
@@ -173,9 +180,16 @@ interface AddLineItemInput {
173
180
  quantity?: number;
174
181
  taxAmount?: number;
175
182
  discountAmount?: number;
183
+ /**
184
+ * Display metadata. `count` is the number of payments to show, and is not
185
+ * enforced. On the plan line Throttle writes for a recurring checkout,
186
+ * `intervalUnit`/`intervalCount` describe a custom cadence.
187
+ */
176
188
  recurring?: {
177
189
  interval: string;
178
190
  count: number | null;
191
+ intervalUnit?: string | null;
192
+ intervalCount?: number | null;
179
193
  } | null;
180
194
  imageUrl?: string;
181
195
  /**
package/dist/index.d.ts CHANGED
@@ -92,9 +92,16 @@ interface LineItem {
92
92
  taxAmount: number;
93
93
  discountAmount: number;
94
94
  total: number;
95
+ /**
96
+ * Display metadata. `count` is the number of payments to show, and is not
97
+ * enforced. On the plan line Throttle writes for a recurring checkout,
98
+ * `intervalUnit`/`intervalCount` describe a custom cadence.
99
+ */
95
100
  recurring: {
96
101
  interval: string;
97
102
  count: number | null;
103
+ intervalUnit?: string | null;
104
+ intervalCount?: number | null;
98
105
  } | null;
99
106
  imageUrl: string | null;
100
107
  position: number;
@@ -173,9 +180,16 @@ interface AddLineItemInput {
173
180
  quantity?: number;
174
181
  taxAmount?: number;
175
182
  discountAmount?: number;
183
+ /**
184
+ * Display metadata. `count` is the number of payments to show, and is not
185
+ * enforced. On the plan line Throttle writes for a recurring checkout,
186
+ * `intervalUnit`/`intervalCount` describe a custom cadence.
187
+ */
176
188
  recurring?: {
177
189
  interval: string;
178
190
  count: number | null;
191
+ intervalUnit?: string | null;
192
+ intervalCount?: number | null;
179
193
  } | null;
180
194
  imageUrl?: string;
181
195
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/cart",
3
- "version": "3.9.1",
3
+ "version": "3.10.0",
4
4
  "description": "Typed REST client for the Throttle Cart API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",