@peable.to/contracts 6.1.0 → 6.2.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.
Files changed (31) hide show
  1. package/dist/cjs/resources/billingEngine/index.js +4 -1
  2. package/dist/cjs/resources/billingEngine/quotes.js +342 -0
  3. package/dist/cjs/resources/events/events.js +4 -0
  4. package/dist/cjs/vocabulary/errors.js +3 -0
  5. package/dist/cjs/vocabulary/events.js +4 -0
  6. package/dist/cjs/vocabulary/index.js +1 -0
  7. package/dist/cjs/vocabulary/invoices.js +3 -0
  8. package/dist/cjs/vocabulary/quotes.js +31 -0
  9. package/dist/esm/resources/billingEngine/index.js +4 -1
  10. package/dist/esm/resources/billingEngine/quotes.js +339 -0
  11. package/dist/esm/resources/events/events.js +4 -0
  12. package/dist/esm/vocabulary/errors.js +3 -0
  13. package/dist/esm/vocabulary/events.js +4 -0
  14. package/dist/esm/vocabulary/index.js +1 -0
  15. package/dist/esm/vocabulary/invoices.js +3 -0
  16. package/dist/esm/vocabulary/quotes.js +28 -0
  17. package/dist/types/resources/billingEngine/index.d.ts +839 -1
  18. package/dist/types/resources/billingEngine/invoices.d.ts +12 -0
  19. package/dist/types/resources/billingEngine/quotes.d.ts +1032 -0
  20. package/dist/types/resources/events/events.d.ts +16 -0
  21. package/dist/types/resources/events/index.d.ts +54 -2
  22. package/dist/types/resources/events/webhookDeliveries.d.ts +12 -0
  23. package/dist/types/resources/events/webhookEndpoints.d.ts +52 -4
  24. package/dist/types/resources/payments/disputes.d.ts +10 -10
  25. package/dist/types/resources/payments/index.d.ts +6 -6
  26. package/dist/types/vocabulary/errors.d.ts +3 -0
  27. package/dist/types/vocabulary/events.d.ts +4 -0
  28. package/dist/types/vocabulary/index.d.ts +1 -0
  29. package/dist/types/vocabulary/invoices.d.ts +1 -1
  30. package/dist/types/vocabulary/quotes.d.ts +27 -0
  31. package/package.json +1 -1
@@ -0,0 +1,1032 @@
1
+ import { z } from 'zod';
2
+ import { type Expand } from '../../common/objects';
3
+ export declare const quoteSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ object: z.ZodLiteral<"quote">;
6
+ livemode: z.ZodBoolean;
7
+ number: z.ZodNullable<z.ZodString>;
8
+ status: z.ZodEnum<{
9
+ canceled: "canceled";
10
+ draft: "draft";
11
+ open: "open";
12
+ accepted: "accepted";
13
+ }>;
14
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
15
+ currency: z.ZodEnum<{
16
+ FAIR: "FAIR";
17
+ EUR: "EUR";
18
+ USD: "USD";
19
+ GBP: "GBP";
20
+ CHF: "CHF";
21
+ SEK: "SEK";
22
+ NOK: "NOK";
23
+ DKK: "DKK";
24
+ PLN: "PLN";
25
+ CZK: "CZK";
26
+ CAD: "CAD";
27
+ AUD: "AUD";
28
+ JPY: "JPY";
29
+ }>;
30
+ collection_method: z.ZodEnum<{
31
+ charge_automatically: "charge_automatically";
32
+ send_invoice: "send_invoice";
33
+ }>;
34
+ invoice_settings: z.ZodObject<{
35
+ days_until_due: z.ZodNullable<z.ZodNumber>;
36
+ }, z.core.$strict>;
37
+ subscription_data: z.ZodObject<{
38
+ description: z.ZodNullable<z.ZodString>;
39
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
40
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
41
+ }, z.core.$strict>;
42
+ discount: z.ZodNullable<z.ZodObject<{
43
+ object: z.ZodLiteral<"discount">;
44
+ coupon: z.ZodString;
45
+ promotion_code: z.ZodNullable<z.ZodString>;
46
+ start: z.ZodNumber;
47
+ end: z.ZodNullable<z.ZodNumber>;
48
+ }, z.core.$strict>>;
49
+ automatic_tax: z.ZodObject<{
50
+ enabled: z.ZodBoolean;
51
+ status: z.ZodNullable<z.ZodEnum<{
52
+ requires_location_inputs: "requires_location_inputs";
53
+ failed: "failed";
54
+ complete: "complete";
55
+ }>>;
56
+ tax_calculation: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strict>;
58
+ amount_subtotal: z.ZodString;
59
+ amount_total: z.ZodString;
60
+ total_details: z.ZodObject<{
61
+ amount_discount: z.ZodString;
62
+ amount_shipping: z.ZodString;
63
+ amount_tax: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strict>;
65
+ expires_at: z.ZodNumber;
66
+ header: z.ZodNullable<z.ZodString>;
67
+ description: z.ZodNullable<z.ZodString>;
68
+ footer: z.ZodNullable<z.ZodString>;
69
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
70
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
71
+ status_transitions: z.ZodObject<{
72
+ finalized_at: z.ZodNullable<z.ZodNumber>;
73
+ accepted_at: z.ZodNullable<z.ZodNumber>;
74
+ canceled_at: z.ZodNullable<z.ZodNumber>;
75
+ }, z.core.$strict>;
76
+ test_clock: z.ZodNullable<z.ZodString>;
77
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
78
+ created: z.ZodNumber;
79
+ }, z.core.$strict>;
80
+ export type Quote = Expand<z.output<typeof quoteSchema>>;
81
+ declare module '../../common/objects' {
82
+ interface ObjectMap {
83
+ quote: Quote;
84
+ }
85
+ }
86
+ export declare const createQuoteParams: z.ZodObject<{
87
+ customer: z.ZodString;
88
+ line_items: z.ZodArray<z.ZodObject<{
89
+ price: z.ZodString;
90
+ quantity: z.ZodOptional<z.ZodNumber>;
91
+ }, z.core.$strict>>;
92
+ collection_method: z.ZodOptional<z.ZodEnum<{
93
+ charge_automatically: "charge_automatically";
94
+ send_invoice: "send_invoice";
95
+ }>>;
96
+ invoice_settings: z.ZodOptional<z.ZodObject<{
97
+ days_until_due: z.ZodOptional<z.ZodNumber>;
98
+ }, z.core.$strict>>;
99
+ subscription_data: z.ZodOptional<z.ZodObject<{
100
+ description: z.ZodOptional<z.ZodString>;
101
+ trial_period_days: z.ZodOptional<z.ZodNumber>;
102
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
103
+ }, z.core.$strict>>;
104
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ coupon: z.ZodOptional<z.ZodString>;
106
+ promotion_code: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strict>>>;
108
+ automatic_tax: z.ZodOptional<z.ZodObject<{
109
+ enabled: z.ZodBoolean;
110
+ }, z.core.$strict>>;
111
+ expires_at: z.ZodOptional<z.ZodNumber>;
112
+ header: z.ZodOptional<z.ZodString>;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ footer: z.ZodOptional<z.ZodString>;
115
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
116
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
117
+ }, z.core.$strict>;
118
+ export type CreateQuoteParams = z.input<typeof createQuoteParams>;
119
+ /** Drafts only, except `metadata`. A field sent as `""` is cleared. */
120
+ export declare const updateQuoteParams: z.ZodObject<{
121
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ price: z.ZodString;
123
+ quantity: z.ZodOptional<z.ZodNumber>;
124
+ }, z.core.$strict>>>;
125
+ collection_method: z.ZodOptional<z.ZodEnum<{
126
+ charge_automatically: "charge_automatically";
127
+ send_invoice: "send_invoice";
128
+ }>>;
129
+ invoice_settings: z.ZodOptional<z.ZodObject<{
130
+ days_until_due: z.ZodOptional<z.ZodNumber>;
131
+ }, z.core.$strict>>;
132
+ subscription_data: z.ZodOptional<z.ZodObject<{
133
+ description: z.ZodOptional<z.ZodString>;
134
+ trial_period_days: z.ZodOptional<z.ZodNumber>;
135
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
136
+ }, z.core.$strict>>;
137
+ discounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
138
+ coupon: z.ZodOptional<z.ZodString>;
139
+ promotion_code: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strict>>, z.ZodLiteral<"">]>>;
141
+ automatic_tax: z.ZodOptional<z.ZodObject<{
142
+ enabled: z.ZodBoolean;
143
+ }, z.core.$strict>>;
144
+ expires_at: z.ZodOptional<z.ZodNumber>;
145
+ header: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
146
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
147
+ footer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
148
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
149
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
150
+ }, z.core.$strict>;
151
+ export type UpdateQuoteParams = z.input<typeof updateQuoteParams>;
152
+ export declare const finalizeQuoteParams: z.ZodObject<{
153
+ expires_at: z.ZodOptional<z.ZodNumber>;
154
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
155
+ }, z.core.$strict>;
156
+ export type FinalizeQuoteParams = z.input<typeof finalizeQuoteParams>;
157
+ /** The body of `accept` and `cancel`: nothing but `expand[]`. */
158
+ export declare const quoteActionParams: z.ZodObject<{
159
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
160
+ }, z.core.$strict>;
161
+ export type QuoteActionParams = z.input<typeof quoteActionParams>;
162
+ export declare const listQuotesQuery: z.ZodObject<{
163
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
164
+ starting_after: z.ZodOptional<z.ZodString>;
165
+ ending_before: z.ZodOptional<z.ZodString>;
166
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
167
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
168
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
169
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
170
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
171
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
172
+ gt?: number | undefined;
173
+ gte?: number | undefined;
174
+ lt?: number | undefined;
175
+ lte?: number | undefined;
176
+ }>>]>>;
177
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
178
+ customer: z.ZodOptional<z.ZodString>;
179
+ status: z.ZodOptional<z.ZodEnum<{
180
+ canceled: "canceled";
181
+ draft: "draft";
182
+ open: "open";
183
+ accepted: "accepted";
184
+ }>>;
185
+ }, z.core.$strict>;
186
+ export type QuoteListParams = z.input<typeof listQuotesQuery>;
187
+ /** A quote's lines, in their order; `created` does not apply to them. */
188
+ export declare const listQuoteLineItemsQuery: z.ZodObject<{
189
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
190
+ starting_after: z.ZodOptional<z.ZodString>;
191
+ ending_before: z.ZodOptional<z.ZodString>;
192
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
193
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
194
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
195
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
196
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
197
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
198
+ gt?: number | undefined;
199
+ gte?: number | undefined;
200
+ lt?: number | undefined;
201
+ lte?: number | undefined;
202
+ }>>]>>;
203
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
204
+ }, z.core.$strict>;
205
+ export type QuoteLineItemListParams = z.input<typeof listQuoteLineItemsQuery>;
206
+ export declare const quoteRoutes: readonly [{
207
+ readonly operationId: "createQuote";
208
+ readonly method: "post";
209
+ readonly path: "/v1/quotes";
210
+ readonly tag: "Quotes";
211
+ readonly summary: "Create a quote";
212
+ readonly description: "A draft for one customer, priced from catalog Prices with the catalog's own pricing. Its tax is computed when it finalizes.";
213
+ readonly auth: "service";
214
+ readonly scope: "payments:write";
215
+ readonly idempotent: true;
216
+ readonly body: z.ZodObject<{
217
+ customer: z.ZodString;
218
+ line_items: z.ZodArray<z.ZodObject<{
219
+ price: z.ZodString;
220
+ quantity: z.ZodOptional<z.ZodNumber>;
221
+ }, z.core.$strict>>;
222
+ collection_method: z.ZodOptional<z.ZodEnum<{
223
+ charge_automatically: "charge_automatically";
224
+ send_invoice: "send_invoice";
225
+ }>>;
226
+ invoice_settings: z.ZodOptional<z.ZodObject<{
227
+ days_until_due: z.ZodOptional<z.ZodNumber>;
228
+ }, z.core.$strict>>;
229
+ subscription_data: z.ZodOptional<z.ZodObject<{
230
+ description: z.ZodOptional<z.ZodString>;
231
+ trial_period_days: z.ZodOptional<z.ZodNumber>;
232
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
233
+ }, z.core.$strict>>;
234
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
235
+ coupon: z.ZodOptional<z.ZodString>;
236
+ promotion_code: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>>>;
238
+ automatic_tax: z.ZodOptional<z.ZodObject<{
239
+ enabled: z.ZodBoolean;
240
+ }, z.core.$strict>>;
241
+ expires_at: z.ZodOptional<z.ZodNumber>;
242
+ header: z.ZodOptional<z.ZodString>;
243
+ description: z.ZodOptional<z.ZodString>;
244
+ footer: z.ZodOptional<z.ZodString>;
245
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
246
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
247
+ }, z.core.$strict>;
248
+ readonly response: z.ZodObject<{
249
+ id: z.ZodString;
250
+ object: z.ZodLiteral<"quote">;
251
+ livemode: z.ZodBoolean;
252
+ number: z.ZodNullable<z.ZodString>;
253
+ status: z.ZodEnum<{
254
+ canceled: "canceled";
255
+ draft: "draft";
256
+ open: "open";
257
+ accepted: "accepted";
258
+ }>;
259
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
260
+ currency: z.ZodEnum<{
261
+ FAIR: "FAIR";
262
+ EUR: "EUR";
263
+ USD: "USD";
264
+ GBP: "GBP";
265
+ CHF: "CHF";
266
+ SEK: "SEK";
267
+ NOK: "NOK";
268
+ DKK: "DKK";
269
+ PLN: "PLN";
270
+ CZK: "CZK";
271
+ CAD: "CAD";
272
+ AUD: "AUD";
273
+ JPY: "JPY";
274
+ }>;
275
+ collection_method: z.ZodEnum<{
276
+ charge_automatically: "charge_automatically";
277
+ send_invoice: "send_invoice";
278
+ }>;
279
+ invoice_settings: z.ZodObject<{
280
+ days_until_due: z.ZodNullable<z.ZodNumber>;
281
+ }, z.core.$strict>;
282
+ subscription_data: z.ZodObject<{
283
+ description: z.ZodNullable<z.ZodString>;
284
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
285
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
286
+ }, z.core.$strict>;
287
+ discount: z.ZodNullable<z.ZodObject<{
288
+ object: z.ZodLiteral<"discount">;
289
+ coupon: z.ZodString;
290
+ promotion_code: z.ZodNullable<z.ZodString>;
291
+ start: z.ZodNumber;
292
+ end: z.ZodNullable<z.ZodNumber>;
293
+ }, z.core.$strict>>;
294
+ automatic_tax: z.ZodObject<{
295
+ enabled: z.ZodBoolean;
296
+ status: z.ZodNullable<z.ZodEnum<{
297
+ requires_location_inputs: "requires_location_inputs";
298
+ failed: "failed";
299
+ complete: "complete";
300
+ }>>;
301
+ tax_calculation: z.ZodNullable<z.ZodString>;
302
+ }, z.core.$strict>;
303
+ amount_subtotal: z.ZodString;
304
+ amount_total: z.ZodString;
305
+ total_details: z.ZodObject<{
306
+ amount_discount: z.ZodString;
307
+ amount_shipping: z.ZodString;
308
+ amount_tax: z.ZodNullable<z.ZodString>;
309
+ }, z.core.$strict>;
310
+ expires_at: z.ZodNumber;
311
+ header: z.ZodNullable<z.ZodString>;
312
+ description: z.ZodNullable<z.ZodString>;
313
+ footer: z.ZodNullable<z.ZodString>;
314
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
315
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
316
+ status_transitions: z.ZodObject<{
317
+ finalized_at: z.ZodNullable<z.ZodNumber>;
318
+ accepted_at: z.ZodNullable<z.ZodNumber>;
319
+ canceled_at: z.ZodNullable<z.ZodNumber>;
320
+ }, z.core.$strict>;
321
+ test_clock: z.ZodNullable<z.ZodString>;
322
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
323
+ created: z.ZodNumber;
324
+ }, z.core.$strict>;
325
+ readonly sdk: "quotes.create";
326
+ readonly expandable: "quote";
327
+ }, {
328
+ readonly operationId: "listQuotes";
329
+ readonly method: "get";
330
+ readonly path: "/v1/quotes";
331
+ readonly tag: "Quotes";
332
+ readonly summary: "List quotes";
333
+ readonly auth: "service";
334
+ readonly scope: "payments:read";
335
+ readonly query: z.ZodObject<{
336
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
337
+ starting_after: z.ZodOptional<z.ZodString>;
338
+ ending_before: z.ZodOptional<z.ZodString>;
339
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
340
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
341
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
342
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
343
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
344
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
345
+ gt?: number | undefined;
346
+ gte?: number | undefined;
347
+ lt?: number | undefined;
348
+ lte?: number | undefined;
349
+ }>>]>>;
350
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
351
+ customer: z.ZodOptional<z.ZodString>;
352
+ status: z.ZodOptional<z.ZodEnum<{
353
+ canceled: "canceled";
354
+ draft: "draft";
355
+ open: "open";
356
+ accepted: "accepted";
357
+ }>>;
358
+ }, z.core.$strict>;
359
+ readonly response: z.ZodObject<{
360
+ object: z.ZodLiteral<"list">;
361
+ data: z.ZodArray<z.ZodObject<{
362
+ id: z.ZodString;
363
+ object: z.ZodLiteral<"quote">;
364
+ livemode: z.ZodBoolean;
365
+ number: z.ZodNullable<z.ZodString>;
366
+ status: z.ZodEnum<{
367
+ canceled: "canceled";
368
+ draft: "draft";
369
+ open: "open";
370
+ accepted: "accepted";
371
+ }>;
372
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
373
+ currency: z.ZodEnum<{
374
+ FAIR: "FAIR";
375
+ EUR: "EUR";
376
+ USD: "USD";
377
+ GBP: "GBP";
378
+ CHF: "CHF";
379
+ SEK: "SEK";
380
+ NOK: "NOK";
381
+ DKK: "DKK";
382
+ PLN: "PLN";
383
+ CZK: "CZK";
384
+ CAD: "CAD";
385
+ AUD: "AUD";
386
+ JPY: "JPY";
387
+ }>;
388
+ collection_method: z.ZodEnum<{
389
+ charge_automatically: "charge_automatically";
390
+ send_invoice: "send_invoice";
391
+ }>;
392
+ invoice_settings: z.ZodObject<{
393
+ days_until_due: z.ZodNullable<z.ZodNumber>;
394
+ }, z.core.$strict>;
395
+ subscription_data: z.ZodObject<{
396
+ description: z.ZodNullable<z.ZodString>;
397
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
398
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
399
+ }, z.core.$strict>;
400
+ discount: z.ZodNullable<z.ZodObject<{
401
+ object: z.ZodLiteral<"discount">;
402
+ coupon: z.ZodString;
403
+ promotion_code: z.ZodNullable<z.ZodString>;
404
+ start: z.ZodNumber;
405
+ end: z.ZodNullable<z.ZodNumber>;
406
+ }, z.core.$strict>>;
407
+ automatic_tax: z.ZodObject<{
408
+ enabled: z.ZodBoolean;
409
+ status: z.ZodNullable<z.ZodEnum<{
410
+ requires_location_inputs: "requires_location_inputs";
411
+ failed: "failed";
412
+ complete: "complete";
413
+ }>>;
414
+ tax_calculation: z.ZodNullable<z.ZodString>;
415
+ }, z.core.$strict>;
416
+ amount_subtotal: z.ZodString;
417
+ amount_total: z.ZodString;
418
+ total_details: z.ZodObject<{
419
+ amount_discount: z.ZodString;
420
+ amount_shipping: z.ZodString;
421
+ amount_tax: z.ZodNullable<z.ZodString>;
422
+ }, z.core.$strict>;
423
+ expires_at: z.ZodNumber;
424
+ header: z.ZodNullable<z.ZodString>;
425
+ description: z.ZodNullable<z.ZodString>;
426
+ footer: z.ZodNullable<z.ZodString>;
427
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
428
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
429
+ status_transitions: z.ZodObject<{
430
+ finalized_at: z.ZodNullable<z.ZodNumber>;
431
+ accepted_at: z.ZodNullable<z.ZodNumber>;
432
+ canceled_at: z.ZodNullable<z.ZodNumber>;
433
+ }, z.core.$strict>;
434
+ test_clock: z.ZodNullable<z.ZodString>;
435
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
436
+ created: z.ZodNumber;
437
+ }, z.core.$strict>>;
438
+ has_more: z.ZodBoolean;
439
+ url: z.ZodString;
440
+ }, z.core.$strict>;
441
+ readonly sdk: "quotes.list";
442
+ readonly expandable: "quote";
443
+ }, {
444
+ readonly operationId: "retrieveQuote";
445
+ readonly method: "get";
446
+ readonly path: "/v1/quotes/{id}";
447
+ readonly tag: "Quotes";
448
+ readonly summary: "Retrieve a quote";
449
+ readonly auth: "service";
450
+ readonly scope: "payments:read";
451
+ readonly params: {
452
+ readonly id: "The quote (`qt_…`).";
453
+ };
454
+ readonly query: z.ZodObject<{
455
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
456
+ }, z.core.$strict>;
457
+ readonly response: z.ZodObject<{
458
+ id: z.ZodString;
459
+ object: z.ZodLiteral<"quote">;
460
+ livemode: z.ZodBoolean;
461
+ number: z.ZodNullable<z.ZodString>;
462
+ status: z.ZodEnum<{
463
+ canceled: "canceled";
464
+ draft: "draft";
465
+ open: "open";
466
+ accepted: "accepted";
467
+ }>;
468
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
469
+ currency: z.ZodEnum<{
470
+ FAIR: "FAIR";
471
+ EUR: "EUR";
472
+ USD: "USD";
473
+ GBP: "GBP";
474
+ CHF: "CHF";
475
+ SEK: "SEK";
476
+ NOK: "NOK";
477
+ DKK: "DKK";
478
+ PLN: "PLN";
479
+ CZK: "CZK";
480
+ CAD: "CAD";
481
+ AUD: "AUD";
482
+ JPY: "JPY";
483
+ }>;
484
+ collection_method: z.ZodEnum<{
485
+ charge_automatically: "charge_automatically";
486
+ send_invoice: "send_invoice";
487
+ }>;
488
+ invoice_settings: z.ZodObject<{
489
+ days_until_due: z.ZodNullable<z.ZodNumber>;
490
+ }, z.core.$strict>;
491
+ subscription_data: z.ZodObject<{
492
+ description: z.ZodNullable<z.ZodString>;
493
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
494
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
495
+ }, z.core.$strict>;
496
+ discount: z.ZodNullable<z.ZodObject<{
497
+ object: z.ZodLiteral<"discount">;
498
+ coupon: z.ZodString;
499
+ promotion_code: z.ZodNullable<z.ZodString>;
500
+ start: z.ZodNumber;
501
+ end: z.ZodNullable<z.ZodNumber>;
502
+ }, z.core.$strict>>;
503
+ automatic_tax: z.ZodObject<{
504
+ enabled: z.ZodBoolean;
505
+ status: z.ZodNullable<z.ZodEnum<{
506
+ requires_location_inputs: "requires_location_inputs";
507
+ failed: "failed";
508
+ complete: "complete";
509
+ }>>;
510
+ tax_calculation: z.ZodNullable<z.ZodString>;
511
+ }, z.core.$strict>;
512
+ amount_subtotal: z.ZodString;
513
+ amount_total: z.ZodString;
514
+ total_details: z.ZodObject<{
515
+ amount_discount: z.ZodString;
516
+ amount_shipping: z.ZodString;
517
+ amount_tax: z.ZodNullable<z.ZodString>;
518
+ }, z.core.$strict>;
519
+ expires_at: z.ZodNumber;
520
+ header: z.ZodNullable<z.ZodString>;
521
+ description: z.ZodNullable<z.ZodString>;
522
+ footer: z.ZodNullable<z.ZodString>;
523
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
524
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
525
+ status_transitions: z.ZodObject<{
526
+ finalized_at: z.ZodNullable<z.ZodNumber>;
527
+ accepted_at: z.ZodNullable<z.ZodNumber>;
528
+ canceled_at: z.ZodNullable<z.ZodNumber>;
529
+ }, z.core.$strict>;
530
+ test_clock: z.ZodNullable<z.ZodString>;
531
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
532
+ created: z.ZodNumber;
533
+ }, z.core.$strict>;
534
+ readonly sdk: "quotes.retrieve";
535
+ readonly expandable: "quote";
536
+ }, {
537
+ readonly operationId: "updateQuote";
538
+ readonly method: "post";
539
+ readonly path: "/v1/quotes/{id}";
540
+ readonly tag: "Quotes";
541
+ readonly summary: "Update a quote";
542
+ readonly description: "Drafts only, except `metadata`. `line_items` replaces every line; a field sent as `\"\"` is cleared; `metadata` is a patch.";
543
+ readonly auth: "service";
544
+ readonly scope: "payments:write";
545
+ readonly idempotent: true;
546
+ readonly params: {
547
+ readonly id: "The quote (`qt_…`).";
548
+ };
549
+ readonly body: z.ZodObject<{
550
+ line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
551
+ price: z.ZodString;
552
+ quantity: z.ZodOptional<z.ZodNumber>;
553
+ }, z.core.$strict>>>;
554
+ collection_method: z.ZodOptional<z.ZodEnum<{
555
+ charge_automatically: "charge_automatically";
556
+ send_invoice: "send_invoice";
557
+ }>>;
558
+ invoice_settings: z.ZodOptional<z.ZodObject<{
559
+ days_until_due: z.ZodOptional<z.ZodNumber>;
560
+ }, z.core.$strict>>;
561
+ subscription_data: z.ZodOptional<z.ZodObject<{
562
+ description: z.ZodOptional<z.ZodString>;
563
+ trial_period_days: z.ZodOptional<z.ZodNumber>;
564
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
565
+ }, z.core.$strict>>;
566
+ discounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
567
+ coupon: z.ZodOptional<z.ZodString>;
568
+ promotion_code: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$strict>>, z.ZodLiteral<"">]>>;
570
+ automatic_tax: z.ZodOptional<z.ZodObject<{
571
+ enabled: z.ZodBoolean;
572
+ }, z.core.$strict>>;
573
+ expires_at: z.ZodOptional<z.ZodNumber>;
574
+ header: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
575
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
576
+ footer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
577
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
578
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
579
+ }, z.core.$strict>;
580
+ readonly response: z.ZodObject<{
581
+ id: z.ZodString;
582
+ object: z.ZodLiteral<"quote">;
583
+ livemode: z.ZodBoolean;
584
+ number: z.ZodNullable<z.ZodString>;
585
+ status: z.ZodEnum<{
586
+ canceled: "canceled";
587
+ draft: "draft";
588
+ open: "open";
589
+ accepted: "accepted";
590
+ }>;
591
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
592
+ currency: z.ZodEnum<{
593
+ FAIR: "FAIR";
594
+ EUR: "EUR";
595
+ USD: "USD";
596
+ GBP: "GBP";
597
+ CHF: "CHF";
598
+ SEK: "SEK";
599
+ NOK: "NOK";
600
+ DKK: "DKK";
601
+ PLN: "PLN";
602
+ CZK: "CZK";
603
+ CAD: "CAD";
604
+ AUD: "AUD";
605
+ JPY: "JPY";
606
+ }>;
607
+ collection_method: z.ZodEnum<{
608
+ charge_automatically: "charge_automatically";
609
+ send_invoice: "send_invoice";
610
+ }>;
611
+ invoice_settings: z.ZodObject<{
612
+ days_until_due: z.ZodNullable<z.ZodNumber>;
613
+ }, z.core.$strict>;
614
+ subscription_data: z.ZodObject<{
615
+ description: z.ZodNullable<z.ZodString>;
616
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
617
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
618
+ }, z.core.$strict>;
619
+ discount: z.ZodNullable<z.ZodObject<{
620
+ object: z.ZodLiteral<"discount">;
621
+ coupon: z.ZodString;
622
+ promotion_code: z.ZodNullable<z.ZodString>;
623
+ start: z.ZodNumber;
624
+ end: z.ZodNullable<z.ZodNumber>;
625
+ }, z.core.$strict>>;
626
+ automatic_tax: z.ZodObject<{
627
+ enabled: z.ZodBoolean;
628
+ status: z.ZodNullable<z.ZodEnum<{
629
+ requires_location_inputs: "requires_location_inputs";
630
+ failed: "failed";
631
+ complete: "complete";
632
+ }>>;
633
+ tax_calculation: z.ZodNullable<z.ZodString>;
634
+ }, z.core.$strict>;
635
+ amount_subtotal: z.ZodString;
636
+ amount_total: z.ZodString;
637
+ total_details: z.ZodObject<{
638
+ amount_discount: z.ZodString;
639
+ amount_shipping: z.ZodString;
640
+ amount_tax: z.ZodNullable<z.ZodString>;
641
+ }, z.core.$strict>;
642
+ expires_at: z.ZodNumber;
643
+ header: z.ZodNullable<z.ZodString>;
644
+ description: z.ZodNullable<z.ZodString>;
645
+ footer: z.ZodNullable<z.ZodString>;
646
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
647
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
648
+ status_transitions: z.ZodObject<{
649
+ finalized_at: z.ZodNullable<z.ZodNumber>;
650
+ accepted_at: z.ZodNullable<z.ZodNumber>;
651
+ canceled_at: z.ZodNullable<z.ZodNumber>;
652
+ }, z.core.$strict>;
653
+ test_clock: z.ZodNullable<z.ZodString>;
654
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
655
+ created: z.ZodNumber;
656
+ }, z.core.$strict>;
657
+ readonly sdk: "quotes.update";
658
+ readonly expandable: "quote";
659
+ }, {
660
+ readonly operationId: "finalizeQuote";
661
+ readonly method: "post";
662
+ readonly path: "/v1/quotes/{id}/finalize";
663
+ readonly tag: "Quotes";
664
+ readonly summary: "Finalize a draft quote";
665
+ readonly description: "It gets its number, its discount and its Peable Tax. Tax fails closed: a quote whose tax cannot be computed stays a draft (`automatic_tax.status` says why).";
666
+ readonly auth: "service";
667
+ readonly scope: "payments:write";
668
+ readonly idempotent: true;
669
+ readonly params: {
670
+ readonly id: "The quote (`qt_…`).";
671
+ };
672
+ readonly body: z.ZodObject<{
673
+ expires_at: z.ZodOptional<z.ZodNumber>;
674
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
675
+ }, z.core.$strict>;
676
+ readonly response: z.ZodObject<{
677
+ id: z.ZodString;
678
+ object: z.ZodLiteral<"quote">;
679
+ livemode: z.ZodBoolean;
680
+ number: z.ZodNullable<z.ZodString>;
681
+ status: z.ZodEnum<{
682
+ canceled: "canceled";
683
+ draft: "draft";
684
+ open: "open";
685
+ accepted: "accepted";
686
+ }>;
687
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
688
+ currency: z.ZodEnum<{
689
+ FAIR: "FAIR";
690
+ EUR: "EUR";
691
+ USD: "USD";
692
+ GBP: "GBP";
693
+ CHF: "CHF";
694
+ SEK: "SEK";
695
+ NOK: "NOK";
696
+ DKK: "DKK";
697
+ PLN: "PLN";
698
+ CZK: "CZK";
699
+ CAD: "CAD";
700
+ AUD: "AUD";
701
+ JPY: "JPY";
702
+ }>;
703
+ collection_method: z.ZodEnum<{
704
+ charge_automatically: "charge_automatically";
705
+ send_invoice: "send_invoice";
706
+ }>;
707
+ invoice_settings: z.ZodObject<{
708
+ days_until_due: z.ZodNullable<z.ZodNumber>;
709
+ }, z.core.$strict>;
710
+ subscription_data: z.ZodObject<{
711
+ description: z.ZodNullable<z.ZodString>;
712
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
713
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
714
+ }, z.core.$strict>;
715
+ discount: z.ZodNullable<z.ZodObject<{
716
+ object: z.ZodLiteral<"discount">;
717
+ coupon: z.ZodString;
718
+ promotion_code: z.ZodNullable<z.ZodString>;
719
+ start: z.ZodNumber;
720
+ end: z.ZodNullable<z.ZodNumber>;
721
+ }, z.core.$strict>>;
722
+ automatic_tax: z.ZodObject<{
723
+ enabled: z.ZodBoolean;
724
+ status: z.ZodNullable<z.ZodEnum<{
725
+ requires_location_inputs: "requires_location_inputs";
726
+ failed: "failed";
727
+ complete: "complete";
728
+ }>>;
729
+ tax_calculation: z.ZodNullable<z.ZodString>;
730
+ }, z.core.$strict>;
731
+ amount_subtotal: z.ZodString;
732
+ amount_total: z.ZodString;
733
+ total_details: z.ZodObject<{
734
+ amount_discount: z.ZodString;
735
+ amount_shipping: z.ZodString;
736
+ amount_tax: z.ZodNullable<z.ZodString>;
737
+ }, z.core.$strict>;
738
+ expires_at: z.ZodNumber;
739
+ header: z.ZodNullable<z.ZodString>;
740
+ description: z.ZodNullable<z.ZodString>;
741
+ footer: z.ZodNullable<z.ZodString>;
742
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
743
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
744
+ status_transitions: z.ZodObject<{
745
+ finalized_at: z.ZodNullable<z.ZodNumber>;
746
+ accepted_at: z.ZodNullable<z.ZodNumber>;
747
+ canceled_at: z.ZodNullable<z.ZodNumber>;
748
+ }, z.core.$strict>;
749
+ test_clock: z.ZodNullable<z.ZodString>;
750
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
751
+ created: z.ZodNumber;
752
+ }, z.core.$strict>;
753
+ readonly sdk: "quotes.finalizeQuote";
754
+ readonly expandable: "quote";
755
+ }, {
756
+ readonly operationId: "acceptQuote";
757
+ readonly method: "post";
758
+ readonly path: "/v1/quotes/{id}/accept";
759
+ readonly tag: "Quotes";
760
+ readonly summary: "Accept an open quote";
761
+ readonly description: "The customer said yes. One-time lines become an invoice; recurring lines a subscription whose first invoice also carries the one-time lines. The invoice is finalized (tax before finalize) and collected as the engine collects any other: charged when `charge_automatically` and the customer has a card, otherwise paid on its hosted page — where FairCoin is always offered.";
762
+ readonly auth: "service";
763
+ readonly scope: "payments:write";
764
+ readonly idempotent: true;
765
+ readonly params: {
766
+ readonly id: "The quote (`qt_…`).";
767
+ };
768
+ readonly body: z.ZodObject<{
769
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
770
+ }, z.core.$strict>;
771
+ readonly response: z.ZodObject<{
772
+ id: z.ZodString;
773
+ object: z.ZodLiteral<"quote">;
774
+ livemode: z.ZodBoolean;
775
+ number: z.ZodNullable<z.ZodString>;
776
+ status: z.ZodEnum<{
777
+ canceled: "canceled";
778
+ draft: "draft";
779
+ open: "open";
780
+ accepted: "accepted";
781
+ }>;
782
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
783
+ currency: z.ZodEnum<{
784
+ FAIR: "FAIR";
785
+ EUR: "EUR";
786
+ USD: "USD";
787
+ GBP: "GBP";
788
+ CHF: "CHF";
789
+ SEK: "SEK";
790
+ NOK: "NOK";
791
+ DKK: "DKK";
792
+ PLN: "PLN";
793
+ CZK: "CZK";
794
+ CAD: "CAD";
795
+ AUD: "AUD";
796
+ JPY: "JPY";
797
+ }>;
798
+ collection_method: z.ZodEnum<{
799
+ charge_automatically: "charge_automatically";
800
+ send_invoice: "send_invoice";
801
+ }>;
802
+ invoice_settings: z.ZodObject<{
803
+ days_until_due: z.ZodNullable<z.ZodNumber>;
804
+ }, z.core.$strict>;
805
+ subscription_data: z.ZodObject<{
806
+ description: z.ZodNullable<z.ZodString>;
807
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
808
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
809
+ }, z.core.$strict>;
810
+ discount: z.ZodNullable<z.ZodObject<{
811
+ object: z.ZodLiteral<"discount">;
812
+ coupon: z.ZodString;
813
+ promotion_code: z.ZodNullable<z.ZodString>;
814
+ start: z.ZodNumber;
815
+ end: z.ZodNullable<z.ZodNumber>;
816
+ }, z.core.$strict>>;
817
+ automatic_tax: z.ZodObject<{
818
+ enabled: z.ZodBoolean;
819
+ status: z.ZodNullable<z.ZodEnum<{
820
+ requires_location_inputs: "requires_location_inputs";
821
+ failed: "failed";
822
+ complete: "complete";
823
+ }>>;
824
+ tax_calculation: z.ZodNullable<z.ZodString>;
825
+ }, z.core.$strict>;
826
+ amount_subtotal: z.ZodString;
827
+ amount_total: z.ZodString;
828
+ total_details: z.ZodObject<{
829
+ amount_discount: z.ZodString;
830
+ amount_shipping: z.ZodString;
831
+ amount_tax: z.ZodNullable<z.ZodString>;
832
+ }, z.core.$strict>;
833
+ expires_at: z.ZodNumber;
834
+ header: z.ZodNullable<z.ZodString>;
835
+ description: z.ZodNullable<z.ZodString>;
836
+ footer: z.ZodNullable<z.ZodString>;
837
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
838
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
839
+ status_transitions: z.ZodObject<{
840
+ finalized_at: z.ZodNullable<z.ZodNumber>;
841
+ accepted_at: z.ZodNullable<z.ZodNumber>;
842
+ canceled_at: z.ZodNullable<z.ZodNumber>;
843
+ }, z.core.$strict>;
844
+ test_clock: z.ZodNullable<z.ZodString>;
845
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
846
+ created: z.ZodNumber;
847
+ }, z.core.$strict>;
848
+ readonly sdk: "quotes.accept";
849
+ readonly expandable: "quote";
850
+ }, {
851
+ readonly operationId: "cancelQuote";
852
+ readonly method: "post";
853
+ readonly path: "/v1/quotes/{id}/cancel";
854
+ readonly tag: "Quotes";
855
+ readonly summary: "Cancel a quote";
856
+ readonly description: "A draft or an open quote; an accepted one cannot be cancelled.";
857
+ readonly auth: "service";
858
+ readonly scope: "payments:write";
859
+ readonly idempotent: true;
860
+ readonly params: {
861
+ readonly id: "The quote (`qt_…`).";
862
+ };
863
+ readonly body: z.ZodObject<{
864
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
865
+ }, z.core.$strict>;
866
+ readonly response: z.ZodObject<{
867
+ id: z.ZodString;
868
+ object: z.ZodLiteral<"quote">;
869
+ livemode: z.ZodBoolean;
870
+ number: z.ZodNullable<z.ZodString>;
871
+ status: z.ZodEnum<{
872
+ canceled: "canceled";
873
+ draft: "draft";
874
+ open: "open";
875
+ accepted: "accepted";
876
+ }>;
877
+ customer: z.ZodType<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">, z.core.$ZodTypeInternals<string | import("../..").Ref<"customer">, string | import("../..").Ref<"customer">>>;
878
+ currency: z.ZodEnum<{
879
+ FAIR: "FAIR";
880
+ EUR: "EUR";
881
+ USD: "USD";
882
+ GBP: "GBP";
883
+ CHF: "CHF";
884
+ SEK: "SEK";
885
+ NOK: "NOK";
886
+ DKK: "DKK";
887
+ PLN: "PLN";
888
+ CZK: "CZK";
889
+ CAD: "CAD";
890
+ AUD: "AUD";
891
+ JPY: "JPY";
892
+ }>;
893
+ collection_method: z.ZodEnum<{
894
+ charge_automatically: "charge_automatically";
895
+ send_invoice: "send_invoice";
896
+ }>;
897
+ invoice_settings: z.ZodObject<{
898
+ days_until_due: z.ZodNullable<z.ZodNumber>;
899
+ }, z.core.$strict>;
900
+ subscription_data: z.ZodObject<{
901
+ description: z.ZodNullable<z.ZodString>;
902
+ trial_period_days: z.ZodNullable<z.ZodNumber>;
903
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
904
+ }, z.core.$strict>;
905
+ discount: z.ZodNullable<z.ZodObject<{
906
+ object: z.ZodLiteral<"discount">;
907
+ coupon: z.ZodString;
908
+ promotion_code: z.ZodNullable<z.ZodString>;
909
+ start: z.ZodNumber;
910
+ end: z.ZodNullable<z.ZodNumber>;
911
+ }, z.core.$strict>>;
912
+ automatic_tax: z.ZodObject<{
913
+ enabled: z.ZodBoolean;
914
+ status: z.ZodNullable<z.ZodEnum<{
915
+ requires_location_inputs: "requires_location_inputs";
916
+ failed: "failed";
917
+ complete: "complete";
918
+ }>>;
919
+ tax_calculation: z.ZodNullable<z.ZodString>;
920
+ }, z.core.$strict>;
921
+ amount_subtotal: z.ZodString;
922
+ amount_total: z.ZodString;
923
+ total_details: z.ZodObject<{
924
+ amount_discount: z.ZodString;
925
+ amount_shipping: z.ZodString;
926
+ amount_tax: z.ZodNullable<z.ZodString>;
927
+ }, z.core.$strict>;
928
+ expires_at: z.ZodNumber;
929
+ header: z.ZodNullable<z.ZodString>;
930
+ description: z.ZodNullable<z.ZodString>;
931
+ footer: z.ZodNullable<z.ZodString>;
932
+ invoice: z.ZodNullable<z.ZodType<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">, z.core.$ZodTypeInternals<string | import("../..").Ref<"invoice">, string | import("../..").Ref<"invoice">>>>;
933
+ subscription: z.ZodNullable<z.ZodType<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">, z.core.$ZodTypeInternals<string | import("../..").Ref<"subscription">, string | import("../..").Ref<"subscription">>>>;
934
+ status_transitions: z.ZodObject<{
935
+ finalized_at: z.ZodNullable<z.ZodNumber>;
936
+ accepted_at: z.ZodNullable<z.ZodNumber>;
937
+ canceled_at: z.ZodNullable<z.ZodNumber>;
938
+ }, z.core.$strict>;
939
+ test_clock: z.ZodNullable<z.ZodString>;
940
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
941
+ created: z.ZodNumber;
942
+ }, z.core.$strict>;
943
+ readonly sdk: "quotes.cancel";
944
+ readonly expandable: "quote";
945
+ }, {
946
+ readonly operationId: "listQuoteLineItems";
947
+ readonly method: "get";
948
+ readonly path: "/v1/quotes/{id}/line_items";
949
+ readonly tag: "Quotes";
950
+ readonly summary: "List a quote's line items";
951
+ readonly description: "In their order (at most twenty); the cursor is a line's own `li_…`.";
952
+ readonly auth: "service";
953
+ readonly scope: "payments:read";
954
+ readonly params: {
955
+ readonly id: "The quote (`qt_…`).";
956
+ };
957
+ readonly query: z.ZodObject<{
958
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
959
+ starting_after: z.ZodOptional<z.ZodString>;
960
+ ending_before: z.ZodOptional<z.ZodString>;
961
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
962
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
963
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
964
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
965
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
966
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
967
+ gt?: number | undefined;
968
+ gte?: number | undefined;
969
+ lt?: number | undefined;
970
+ lte?: number | undefined;
971
+ }>>]>>;
972
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
973
+ }, z.core.$strict>;
974
+ readonly response: z.ZodObject<{
975
+ object: z.ZodLiteral<"list">;
976
+ data: z.ZodArray<z.ZodObject<{
977
+ id: z.ZodString;
978
+ object: z.ZodLiteral<"item">;
979
+ description: z.ZodString;
980
+ price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
981
+ product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
982
+ images: z.ZodArray<z.ZodString>;
983
+ quantity: z.ZodNumber;
984
+ adjustable_quantity: z.ZodNullable<z.ZodObject<{
985
+ enabled: z.ZodBoolean;
986
+ minimum: z.ZodNullable<z.ZodNumber>;
987
+ maximum: z.ZodNullable<z.ZodNumber>;
988
+ }, z.core.$strict>>;
989
+ currency: z.ZodEnum<{
990
+ FAIR: "FAIR";
991
+ EUR: "EUR";
992
+ USD: "USD";
993
+ GBP: "GBP";
994
+ CHF: "CHF";
995
+ SEK: "SEK";
996
+ NOK: "NOK";
997
+ DKK: "DKK";
998
+ PLN: "PLN";
999
+ CZK: "CZK";
1000
+ CAD: "CAD";
1001
+ AUD: "AUD";
1002
+ JPY: "JPY";
1003
+ }>;
1004
+ unit_amount: z.ZodNullable<z.ZodString>;
1005
+ amount_subtotal: z.ZodString;
1006
+ amount_discount: z.ZodString;
1007
+ amount_tax: z.ZodString;
1008
+ amount_total: z.ZodString;
1009
+ }, z.core.$strict>>;
1010
+ has_more: z.ZodBoolean;
1011
+ url: z.ZodString;
1012
+ }, z.core.$strict>;
1013
+ readonly sdk: "quotes.listLineItems";
1014
+ readonly expandable: "item";
1015
+ }, {
1016
+ readonly operationId: "retrieveQuotePdf";
1017
+ readonly method: "get";
1018
+ readonly path: "/v1/quotes/{id}/pdf";
1019
+ readonly tag: "Quotes";
1020
+ readonly summary: "Download a quote's PDF";
1021
+ readonly description: "A draft renders marked as a draft, without a number.";
1022
+ readonly auth: "service";
1023
+ readonly scope: "payments:read";
1024
+ readonly params: {
1025
+ readonly id: "The quote (`qt_…`).";
1026
+ };
1027
+ readonly response: {
1028
+ readonly kind: "binary";
1029
+ readonly contentType: "application/pdf";
1030
+ };
1031
+ readonly sdk: "quotes.pdf";
1032
+ }];