@openmeter/client 1.0.0-beta-c16cbe1e4650 → 1.0.0-beta-d30d21dce71a
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 +7 -0
- package/dist/funcs/index.d.ts +1 -0
- package/dist/funcs/index.js +1 -0
- package/dist/funcs/invoices.d.ts +5 -0
- package/dist/funcs/invoices.js +10 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/models/operations/customers.d.ts +2 -2
- package/dist/models/operations/invoices.d.ts +7 -0
- package/dist/models/operations/invoices.js +2 -0
- package/dist/models/schemas.d.ts +2000 -208
- package/dist/models/schemas.js +386 -37
- package/dist/models/types.d.ts +475 -32
- package/dist/sdk/invoices.d.ts +9 -0
- package/dist/sdk/invoices.js +12 -0
- package/dist/sdk/sdk.d.ts +3 -0
- package/dist/sdk/sdk.js +5 -0
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -207,10 +207,9 @@ export declare const creditTransactionType: z.ZodEnum<{
|
|
|
207
207
|
export declare const chargesExpand: z.ZodEnum<{
|
|
208
208
|
real_time_usage: "real_time_usage";
|
|
209
209
|
}>;
|
|
210
|
-
export declare const
|
|
210
|
+
export declare const lifecycleController: z.ZodEnum<{
|
|
211
211
|
manual: "manual";
|
|
212
212
|
system: "system";
|
|
213
|
-
subscription: "subscription";
|
|
214
213
|
}>;
|
|
215
214
|
export declare const chargeStatus: z.ZodEnum<{
|
|
216
215
|
active: "active";
|
|
@@ -229,7 +228,7 @@ export declare const taxConfigExternalInvoicing: z.ZodObject<{
|
|
|
229
228
|
code: z.ZodString;
|
|
230
229
|
}, z.core.$strip>;
|
|
231
230
|
export declare const pricePaymentTerm: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
|
|
232
|
-
export declare const
|
|
231
|
+
export declare const chargeFlatFeeDiscounts: z.ZodObject<{
|
|
233
232
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
234
233
|
}, z.core.$strip>;
|
|
235
234
|
export declare const rateCardProrationMode: z.ZodEnum<{
|
|
@@ -273,6 +272,44 @@ export declare const workflowPaymentSendInvoiceSettings: z.ZodObject<{
|
|
|
273
272
|
collection_method: z.ZodLiteral<"send_invoice">;
|
|
274
273
|
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
275
274
|
}, z.core.$strip>;
|
|
275
|
+
export declare const invoiceNumber: z.ZodString;
|
|
276
|
+
export declare const invoiceValidationIssueSeverity: z.ZodEnum<{
|
|
277
|
+
critical: "critical";
|
|
278
|
+
warning: "warning";
|
|
279
|
+
}>;
|
|
280
|
+
export declare const invoiceExternalReferences: z.ZodObject<{
|
|
281
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
export declare const invoiceStandardStatus: z.ZodEnum<{
|
|
285
|
+
voided: "voided";
|
|
286
|
+
draft: "draft";
|
|
287
|
+
issuing: "issuing";
|
|
288
|
+
issued: "issued";
|
|
289
|
+
payment_processing: "payment_processing";
|
|
290
|
+
overdue: "overdue";
|
|
291
|
+
paid: "paid";
|
|
292
|
+
uncollectible: "uncollectible";
|
|
293
|
+
}>;
|
|
294
|
+
export declare const invoiceAvailableActionDetails: z.ZodObject<{
|
|
295
|
+
resulting_state: z.ZodString;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
export declare const invoiceWorkflowInvoicingSettings: z.ZodObject<{
|
|
298
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
299
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
300
|
+
}, z.core.$strip>;
|
|
301
|
+
export declare const invoiceDiscountReason: z.ZodEnum<{
|
|
302
|
+
maximum_spend: "maximum_spend";
|
|
303
|
+
ratecard_percentage: "ratecard_percentage";
|
|
304
|
+
ratecard_usage: "ratecard_usage";
|
|
305
|
+
}>;
|
|
306
|
+
export declare const invoiceLineExternalReferences: z.ZodObject<{
|
|
307
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
export declare const invoiceDetailedLineCostCategory: z.ZodEnum<{
|
|
310
|
+
regular: "regular";
|
|
311
|
+
commitment: "commitment";
|
|
312
|
+
}>;
|
|
276
313
|
export declare const currencyType: z.ZodEnum<{
|
|
277
314
|
custom: "custom";
|
|
278
315
|
fiat: "fiat";
|
|
@@ -400,14 +437,11 @@ export declare const chargeType: z.ZodEnum<{
|
|
|
400
437
|
flat_fee: "flat_fee";
|
|
401
438
|
usage_based: "usage_based";
|
|
402
439
|
}>;
|
|
403
|
-
export declare const
|
|
404
|
-
|
|
405
|
-
subscription: "subscription";
|
|
406
|
-
anchored: "anchored";
|
|
440
|
+
export declare const invoiceType: z.ZodEnum<{
|
|
441
|
+
standard: "standard";
|
|
407
442
|
}>;
|
|
408
|
-
export declare const
|
|
409
|
-
|
|
410
|
-
send_invoice: "send_invoice";
|
|
443
|
+
export declare const invoiceLineType: z.ZodEnum<{
|
|
444
|
+
standard_line: "standard_line";
|
|
411
445
|
}>;
|
|
412
446
|
export declare const priceType: z.ZodEnum<{
|
|
413
447
|
flat: "flat";
|
|
@@ -416,6 +450,14 @@ export declare const priceType: z.ZodEnum<{
|
|
|
416
450
|
graduated: "graduated";
|
|
417
451
|
volume: "volume";
|
|
418
452
|
}>;
|
|
453
|
+
export declare const collectionAlignment: z.ZodEnum<{
|
|
454
|
+
subscription: "subscription";
|
|
455
|
+
anchored: "anchored";
|
|
456
|
+
}>;
|
|
457
|
+
export declare const collectionMethod: z.ZodEnum<{
|
|
458
|
+
charge_automatically: "charge_automatically";
|
|
459
|
+
send_invoice: "send_invoice";
|
|
460
|
+
}>;
|
|
419
461
|
export declare const featureUnitCostType: z.ZodEnum<{
|
|
420
462
|
manual: "manual";
|
|
421
463
|
llm: "llm";
|
|
@@ -477,6 +519,10 @@ export declare const totals: z.ZodObject<{
|
|
|
477
519
|
credits_total: z.ZodString;
|
|
478
520
|
total: z.ZodString;
|
|
479
521
|
}, z.core.$strip>;
|
|
522
|
+
export declare const invoiceLineCreditsApplied: z.ZodObject<{
|
|
523
|
+
amount: z.ZodString;
|
|
524
|
+
description: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>;
|
|
480
526
|
export declare const featureManualUnitCost: z.ZodObject<{
|
|
481
527
|
type: z.ZodLiteral<"manual">;
|
|
482
528
|
amount: z.ZodString;
|
|
@@ -655,6 +701,9 @@ export declare const addonReference: z.ZodObject<{
|
|
|
655
701
|
export declare const appReference: z.ZodObject<{
|
|
656
702
|
id: z.ZodString;
|
|
657
703
|
}, z.core.$strip>;
|
|
704
|
+
export declare const chargeReference: z.ZodObject<{
|
|
705
|
+
id: z.ZodString;
|
|
706
|
+
}, z.core.$strip>;
|
|
658
707
|
export declare const currencyFiat: z.ZodObject<{
|
|
659
708
|
id: z.ZodString;
|
|
660
709
|
type: z.ZodLiteral<"fiat">;
|
|
@@ -1008,15 +1057,6 @@ export declare const customerKeyReference: z.ZodObject<{
|
|
|
1008
1057
|
export declare const customerUsageAttribution: z.ZodObject<{
|
|
1009
1058
|
subject_keys: z.ZodArray<z.ZodString>;
|
|
1010
1059
|
}, z.core.$strip>;
|
|
1011
|
-
export declare const billingAddress: z.ZodObject<{
|
|
1012
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1013
|
-
postal_code: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1015
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
1017
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
1018
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
1019
|
-
}, z.core.$strip>;
|
|
1020
1060
|
export declare const address: z.ZodObject<{
|
|
1021
1061
|
country: z.ZodOptional<z.ZodString>;
|
|
1022
1062
|
postal_code: z.ZodOptional<z.ZodString>;
|
|
@@ -1281,6 +1321,71 @@ export declare const workflowPaymentSettings: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
1281
1321
|
collection_method: z.ZodLiteral<"send_invoice">;
|
|
1282
1322
|
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1283
1323
|
}, z.core.$strip>], "collection_method">;
|
|
1324
|
+
export declare const invoiceValidationIssue: z.ZodObject<{
|
|
1325
|
+
code: z.ZodString;
|
|
1326
|
+
message: z.ZodString;
|
|
1327
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1328
|
+
severity: z.ZodEnum<{
|
|
1329
|
+
critical: "critical";
|
|
1330
|
+
warning: "warning";
|
|
1331
|
+
}>;
|
|
1332
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
}, z.core.$strip>;
|
|
1334
|
+
export declare const invoiceAvailableActions: z.ZodObject<{
|
|
1335
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
1336
|
+
resulting_state: z.ZodString;
|
|
1337
|
+
}, z.core.$strip>>;
|
|
1338
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
1339
|
+
resulting_state: z.ZodString;
|
|
1340
|
+
}, z.core.$strip>>;
|
|
1341
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
1342
|
+
resulting_state: z.ZodString;
|
|
1343
|
+
}, z.core.$strip>>;
|
|
1344
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1345
|
+
resulting_state: z.ZodString;
|
|
1346
|
+
}, z.core.$strip>>;
|
|
1347
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
1348
|
+
resulting_state: z.ZodString;
|
|
1349
|
+
}, z.core.$strip>>;
|
|
1350
|
+
}, z.core.$strip>;
|
|
1351
|
+
export declare const invoiceLineAmountDiscount: z.ZodObject<{
|
|
1352
|
+
id: z.ZodString;
|
|
1353
|
+
reason: z.ZodEnum<{
|
|
1354
|
+
maximum_spend: "maximum_spend";
|
|
1355
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1356
|
+
ratecard_usage: "ratecard_usage";
|
|
1357
|
+
}>;
|
|
1358
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
1360
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
amount: z.ZodString;
|
|
1363
|
+
}, z.core.$strip>;
|
|
1364
|
+
export declare const invoiceLineUsageDiscount: z.ZodObject<{
|
|
1365
|
+
id: z.ZodString;
|
|
1366
|
+
reason: z.ZodEnum<{
|
|
1367
|
+
maximum_spend: "maximum_spend";
|
|
1368
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1369
|
+
ratecard_usage: "ratecard_usage";
|
|
1370
|
+
}>;
|
|
1371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
1373
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
}, z.core.$strip>>;
|
|
1375
|
+
quantity: z.ZodString;
|
|
1376
|
+
}, z.core.$strip>;
|
|
1377
|
+
export declare const invoiceLineBaseDiscount: z.ZodObject<{
|
|
1378
|
+
id: z.ZodString;
|
|
1379
|
+
reason: z.ZodEnum<{
|
|
1380
|
+
maximum_spend: "maximum_spend";
|
|
1381
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1382
|
+
ratecard_usage: "ratecard_usage";
|
|
1383
|
+
}>;
|
|
1384
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
1386
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1284
1389
|
export declare const listCurrenciesParamsFilter: z.ZodObject<{
|
|
1285
1390
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1286
1391
|
custom: "custom";
|
|
@@ -1819,6 +1924,17 @@ export declare const profileAppReferences: z.ZodObject<{
|
|
|
1819
1924
|
id: z.ZodString;
|
|
1820
1925
|
}, z.core.$strip>;
|
|
1821
1926
|
}, z.core.$strip>;
|
|
1927
|
+
export declare const invoiceWorkflowAppsReferences: z.ZodObject<{
|
|
1928
|
+
tax: z.ZodObject<{
|
|
1929
|
+
id: z.ZodString;
|
|
1930
|
+
}, z.core.$strip>;
|
|
1931
|
+
invoicing: z.ZodObject<{
|
|
1932
|
+
id: z.ZodString;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
payment: z.ZodObject<{
|
|
1935
|
+
id: z.ZodString;
|
|
1936
|
+
}, z.core.$strip>;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1822
1938
|
export declare const listEventsParamsFilter: z.ZodObject<{
|
|
1823
1939
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1824
1940
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -2301,6 +2417,23 @@ export declare const partyAddresses: z.ZodObject<{
|
|
|
2301
2417
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
2302
2418
|
}, z.core.$strip>;
|
|
2303
2419
|
}, z.core.$strip>;
|
|
2420
|
+
export declare const invoiceCustomer: z.ZodObject<{
|
|
2421
|
+
id: z.ZodString;
|
|
2422
|
+
name: z.ZodString;
|
|
2423
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
2424
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
2425
|
+
}, z.core.$strip>>;
|
|
2426
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
2427
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2430
|
+
city: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
}, z.core.$strip>>;
|
|
2435
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
}, z.core.$strip>;
|
|
2304
2437
|
export declare const appStripeCreateCheckoutSessionConsentCollection: z.ZodObject<{
|
|
2305
2438
|
payment_method_reuse_agreement: z.ZodOptional<z.ZodObject<{
|
|
2306
2439
|
position: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2565,6 +2698,68 @@ export declare const upsertTaxCodeRequest: z.ZodObject<{
|
|
|
2565
2698
|
tax_code: z.ZodString;
|
|
2566
2699
|
}, z.core.$strip>>;
|
|
2567
2700
|
}, z.core.$strip>;
|
|
2701
|
+
export declare const invoiceWorkflow: z.ZodObject<{
|
|
2702
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
2703
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2704
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2705
|
+
}, z.core.$strip>>;
|
|
2706
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2707
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
2708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2709
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
2710
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2711
|
+
}, z.core.$strip>], "collection_method">>;
|
|
2712
|
+
}, z.core.$strip>;
|
|
2713
|
+
export declare const invoiceStatusDetails: z.ZodObject<{
|
|
2714
|
+
immutable: z.ZodBoolean;
|
|
2715
|
+
failed: z.ZodBoolean;
|
|
2716
|
+
extended_status: z.ZodString;
|
|
2717
|
+
available_actions: z.ZodObject<{
|
|
2718
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
2719
|
+
resulting_state: z.ZodString;
|
|
2720
|
+
}, z.core.$strip>>;
|
|
2721
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
2722
|
+
resulting_state: z.ZodString;
|
|
2723
|
+
}, z.core.$strip>>;
|
|
2724
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
2725
|
+
resulting_state: z.ZodString;
|
|
2726
|
+
}, z.core.$strip>>;
|
|
2727
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
2728
|
+
resulting_state: z.ZodString;
|
|
2729
|
+
}, z.core.$strip>>;
|
|
2730
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
2731
|
+
resulting_state: z.ZodString;
|
|
2732
|
+
}, z.core.$strip>>;
|
|
2733
|
+
}, z.core.$strip>;
|
|
2734
|
+
}, z.core.$strip>;
|
|
2735
|
+
export declare const invoiceLineDiscounts: z.ZodObject<{
|
|
2736
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2737
|
+
id: z.ZodString;
|
|
2738
|
+
reason: z.ZodEnum<{
|
|
2739
|
+
maximum_spend: "maximum_spend";
|
|
2740
|
+
ratecard_percentage: "ratecard_percentage";
|
|
2741
|
+
ratecard_usage: "ratecard_usage";
|
|
2742
|
+
}>;
|
|
2743
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2744
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
2745
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
2746
|
+
}, z.core.$strip>>;
|
|
2747
|
+
amount: z.ZodString;
|
|
2748
|
+
}, z.core.$strip>>>;
|
|
2749
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2750
|
+
id: z.ZodString;
|
|
2751
|
+
reason: z.ZodEnum<{
|
|
2752
|
+
maximum_spend: "maximum_spend";
|
|
2753
|
+
ratecard_percentage: "ratecard_percentage";
|
|
2754
|
+
ratecard_usage: "ratecard_usage";
|
|
2755
|
+
}>;
|
|
2756
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2757
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
2758
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
2759
|
+
}, z.core.$strip>>;
|
|
2760
|
+
quantity: z.ZodString;
|
|
2761
|
+
}, z.core.$strip>>>;
|
|
2762
|
+
}, z.core.$strip>;
|
|
2568
2763
|
export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2569
2764
|
id: z.ZodString;
|
|
2570
2765
|
type: z.ZodLiteral<"fiat">;
|
|
@@ -2865,7 +3060,7 @@ export declare const creditGrant: z.ZodObject<{
|
|
|
2865
3060
|
voided: "voided";
|
|
2866
3061
|
}>;
|
|
2867
3062
|
}, z.core.$strip>;
|
|
2868
|
-
export declare const
|
|
3063
|
+
export declare const createChargeFlatFeeRequest: z.ZodObject<{
|
|
2869
3064
|
name: z.ZodString;
|
|
2870
3065
|
description: z.ZodOptional<z.ZodString>;
|
|
2871
3066
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3188,6 +3383,24 @@ export declare const party: z.ZodObject<{
|
|
|
3188
3383
|
}, z.core.$strip>;
|
|
3189
3384
|
}, z.core.$strip>>;
|
|
3190
3385
|
}, z.core.$strip>;
|
|
3386
|
+
export declare const supplier: z.ZodObject<{
|
|
3387
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3388
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3389
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
3390
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3391
|
+
}, z.core.$strip>>;
|
|
3392
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
3393
|
+
billing_address: z.ZodObject<{
|
|
3394
|
+
country: z.ZodOptional<z.ZodString>;
|
|
3395
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
3396
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3397
|
+
city: z.ZodOptional<z.ZodString>;
|
|
3398
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
3399
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
3400
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
3401
|
+
}, z.core.$strip>;
|
|
3402
|
+
}, z.core.$strip>>;
|
|
3403
|
+
}, z.core.$strip>;
|
|
3191
3404
|
export declare const appStripeCreateCheckoutSessionRequestOptions: z.ZodObject<{
|
|
3192
3405
|
billing_address_collection: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3193
3406
|
auto: "auto";
|
|
@@ -3372,6 +3585,98 @@ export declare const taxCodePagePaginatedResponse: z.ZodObject<{
|
|
|
3372
3585
|
}, z.core.$strip>;
|
|
3373
3586
|
}, z.core.$strip>;
|
|
3374
3587
|
}, z.core.$strip>;
|
|
3588
|
+
export declare const invoiceWorkflowSettings: z.ZodObject<{
|
|
3589
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
3590
|
+
tax: z.ZodObject<{
|
|
3591
|
+
id: z.ZodString;
|
|
3592
|
+
}, z.core.$strip>;
|
|
3593
|
+
invoicing: z.ZodObject<{
|
|
3594
|
+
id: z.ZodString;
|
|
3595
|
+
}, z.core.$strip>;
|
|
3596
|
+
payment: z.ZodObject<{
|
|
3597
|
+
id: z.ZodString;
|
|
3598
|
+
}, z.core.$strip>;
|
|
3599
|
+
}, z.core.$strip>>;
|
|
3600
|
+
source_billing_profile: z.ZodObject<{
|
|
3601
|
+
id: z.ZodString;
|
|
3602
|
+
}, z.core.$strip>;
|
|
3603
|
+
workflow: z.ZodObject<{
|
|
3604
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
3605
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3606
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3607
|
+
}, z.core.$strip>>;
|
|
3608
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3609
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
3610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3611
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
3612
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3613
|
+
}, z.core.$strip>], "collection_method">>;
|
|
3614
|
+
}, z.core.$strip>;
|
|
3615
|
+
}, z.core.$strip>;
|
|
3616
|
+
export declare const invoiceDetailedLine: z.ZodObject<{
|
|
3617
|
+
id: z.ZodString;
|
|
3618
|
+
name: z.ZodString;
|
|
3619
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3620
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3621
|
+
created_at: z.ZodString;
|
|
3622
|
+
updated_at: z.ZodString;
|
|
3623
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
3624
|
+
service_period: z.ZodObject<{
|
|
3625
|
+
from: z.ZodString;
|
|
3626
|
+
to: z.ZodString;
|
|
3627
|
+
}, z.core.$strip>;
|
|
3628
|
+
totals: z.ZodObject<{
|
|
3629
|
+
amount: z.ZodString;
|
|
3630
|
+
taxes_total: z.ZodString;
|
|
3631
|
+
taxes_inclusive_total: z.ZodString;
|
|
3632
|
+
taxes_exclusive_total: z.ZodString;
|
|
3633
|
+
charges_total: z.ZodString;
|
|
3634
|
+
discounts_total: z.ZodString;
|
|
3635
|
+
credits_total: z.ZodString;
|
|
3636
|
+
total: z.ZodString;
|
|
3637
|
+
}, z.core.$strip>;
|
|
3638
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
3639
|
+
regular: "regular";
|
|
3640
|
+
commitment: "commitment";
|
|
3641
|
+
}>>;
|
|
3642
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
3643
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3644
|
+
id: z.ZodString;
|
|
3645
|
+
reason: z.ZodEnum<{
|
|
3646
|
+
maximum_spend: "maximum_spend";
|
|
3647
|
+
ratecard_percentage: "ratecard_percentage";
|
|
3648
|
+
ratecard_usage: "ratecard_usage";
|
|
3649
|
+
}>;
|
|
3650
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3651
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
3652
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
3653
|
+
}, z.core.$strip>>;
|
|
3654
|
+
amount: z.ZodString;
|
|
3655
|
+
}, z.core.$strip>>>;
|
|
3656
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3657
|
+
id: z.ZodString;
|
|
3658
|
+
reason: z.ZodEnum<{
|
|
3659
|
+
maximum_spend: "maximum_spend";
|
|
3660
|
+
ratecard_percentage: "ratecard_percentage";
|
|
3661
|
+
ratecard_usage: "ratecard_usage";
|
|
3662
|
+
}>;
|
|
3663
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3664
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
3665
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
3666
|
+
}, z.core.$strip>>;
|
|
3667
|
+
quantity: z.ZodString;
|
|
3668
|
+
}, z.core.$strip>>>;
|
|
3669
|
+
}, z.core.$strip>>;
|
|
3670
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3671
|
+
amount: z.ZodString;
|
|
3672
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3673
|
+
}, z.core.$strip>>>;
|
|
3674
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
3675
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
}, z.core.$strip>>;
|
|
3677
|
+
quantity: z.ZodString;
|
|
3678
|
+
unit_price: z.ZodString;
|
|
3679
|
+
}, z.core.$strip>;
|
|
3375
3680
|
export declare const currencyPagePaginatedResponse: z.ZodObject<{
|
|
3376
3681
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3377
3682
|
id: z.ZodString;
|
|
@@ -3810,43 +4115,116 @@ export declare const badRequest: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
3810
4115
|
source: z.ZodOptional<z.ZodString>;
|
|
3811
4116
|
}, z.core.$strip>]>>;
|
|
3812
4117
|
}, z.core.$strip>>;
|
|
3813
|
-
export declare const
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
4118
|
+
export declare const invoiceBase: z.ZodObject<{
|
|
4119
|
+
id: z.ZodString;
|
|
4120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4121
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4122
|
+
created_at: z.ZodString;
|
|
4123
|
+
updated_at: z.ZodString;
|
|
4124
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
4125
|
+
number: z.ZodString;
|
|
4126
|
+
currency: z.ZodString;
|
|
4127
|
+
supplier: z.ZodObject<{
|
|
4128
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4129
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4130
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
4131
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4132
|
+
}, z.core.$strip>>;
|
|
4133
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
4134
|
+
billing_address: z.ZodObject<{
|
|
4135
|
+
country: z.ZodOptional<z.ZodString>;
|
|
4136
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
4137
|
+
state: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
city: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
4140
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
4141
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
4142
|
+
}, z.core.$strip>;
|
|
4143
|
+
}, z.core.$strip>>;
|
|
4144
|
+
}, z.core.$strip>;
|
|
4145
|
+
customer: z.ZodObject<{
|
|
4146
|
+
id: z.ZodString;
|
|
4147
|
+
name: z.ZodString;
|
|
4148
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
4149
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
4150
|
+
}, z.core.$strip>>;
|
|
4151
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
4152
|
+
country: z.ZodOptional<z.ZodString>;
|
|
4153
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
4154
|
+
state: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
city: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
4157
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
4158
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
4159
|
+
}, z.core.$strip>>;
|
|
4160
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4161
|
+
}, z.core.$strip>;
|
|
4162
|
+
totals: z.ZodObject<{
|
|
4163
|
+
amount: z.ZodString;
|
|
4164
|
+
taxes_total: z.ZodString;
|
|
4165
|
+
taxes_inclusive_total: z.ZodString;
|
|
4166
|
+
taxes_exclusive_total: z.ZodString;
|
|
4167
|
+
charges_total: z.ZodString;
|
|
4168
|
+
discounts_total: z.ZodString;
|
|
4169
|
+
credits_total: z.ZodString;
|
|
4170
|
+
total: z.ZodString;
|
|
4171
|
+
}, z.core.$strip>;
|
|
4172
|
+
service_period: z.ZodObject<{
|
|
4173
|
+
from: z.ZodString;
|
|
4174
|
+
to: z.ZodString;
|
|
4175
|
+
}, z.core.$strip>;
|
|
4176
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4177
|
+
code: z.ZodString;
|
|
4178
|
+
message: z.ZodString;
|
|
4179
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4180
|
+
severity: z.ZodEnum<{
|
|
4181
|
+
critical: "critical";
|
|
4182
|
+
warning: "warning";
|
|
4183
|
+
}>;
|
|
4184
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4185
|
+
}, z.core.$strip>>>;
|
|
4186
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
4187
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
4188
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
4189
|
+
}, z.core.$strip>>;
|
|
4190
|
+
}, z.core.$strip>;
|
|
4191
|
+
export declare const customerStripeCreateCheckoutSessionRequest: z.ZodObject<{
|
|
4192
|
+
stripe_options: z.ZodObject<{
|
|
4193
|
+
billing_address_collection: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4194
|
+
auto: "auto";
|
|
4195
|
+
required: "required";
|
|
4196
|
+
}>>>;
|
|
4197
|
+
cancel_url: z.ZodOptional<z.ZodString>;
|
|
4198
|
+
client_reference_id: z.ZodOptional<z.ZodString>;
|
|
4199
|
+
customer_update: z.ZodOptional<z.ZodObject<{
|
|
4200
|
+
address: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4201
|
+
auto: "auto";
|
|
4202
|
+
never: "never";
|
|
4203
|
+
}>>>;
|
|
4204
|
+
name: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4205
|
+
auto: "auto";
|
|
4206
|
+
never: "never";
|
|
4207
|
+
}>>>;
|
|
4208
|
+
shipping: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4209
|
+
auto: "auto";
|
|
4210
|
+
never: "never";
|
|
4211
|
+
}>>>;
|
|
4212
|
+
}, z.core.$strip>>;
|
|
4213
|
+
consent_collection: z.ZodOptional<z.ZodObject<{
|
|
4214
|
+
payment_method_reuse_agreement: z.ZodOptional<z.ZodObject<{
|
|
4215
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
4216
|
+
auto: "auto";
|
|
4217
|
+
hidden: "hidden";
|
|
4218
|
+
}>>;
|
|
4219
|
+
}, z.core.$strip>>;
|
|
4220
|
+
promotions: z.ZodOptional<z.ZodEnum<{
|
|
4221
|
+
auto: "auto";
|
|
4222
|
+
none: "none";
|
|
4223
|
+
}>>;
|
|
4224
|
+
terms_of_service: z.ZodOptional<z.ZodEnum<{
|
|
4225
|
+
required: "required";
|
|
4226
|
+
none: "none";
|
|
4227
|
+
}>>;
|
|
3850
4228
|
}, z.core.$strip>>;
|
|
3851
4229
|
currency: z.ZodOptional<z.ZodString>;
|
|
3852
4230
|
custom_text: z.ZodOptional<z.ZodObject<{
|
|
@@ -4264,7 +4642,7 @@ export declare const governanceQueryResponse: z.ZodObject<{
|
|
|
4264
4642
|
}, z.core.$strip>;
|
|
4265
4643
|
}, z.core.$strip>;
|
|
4266
4644
|
}, z.core.$strip>;
|
|
4267
|
-
export declare const
|
|
4645
|
+
export declare const chargeFlatFee: z.ZodObject<{
|
|
4268
4646
|
id: z.ZodString;
|
|
4269
4647
|
name: z.ZodString;
|
|
4270
4648
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4276,10 +4654,9 @@ export declare const flatFeeCharge: z.ZodObject<{
|
|
|
4276
4654
|
customer: z.ZodObject<{
|
|
4277
4655
|
id: z.ZodString;
|
|
4278
4656
|
}, z.core.$strip>;
|
|
4279
|
-
|
|
4657
|
+
lifecycle_controller: z.ZodEnum<{
|
|
4280
4658
|
manual: "manual";
|
|
4281
4659
|
system: "system";
|
|
4282
|
-
subscription: "subscription";
|
|
4283
4660
|
}>;
|
|
4284
4661
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
4285
4662
|
id: z.ZodString;
|
|
@@ -4387,7 +4764,7 @@ export declare const flatFeeCharge: z.ZodObject<{
|
|
|
4387
4764
|
}, z.core.$strip>>;
|
|
4388
4765
|
}, z.core.$strip>], "type">;
|
|
4389
4766
|
}, z.core.$strip>;
|
|
4390
|
-
export declare const
|
|
4767
|
+
export declare const chargeUsageBased: z.ZodObject<{
|
|
4391
4768
|
id: z.ZodString;
|
|
4392
4769
|
name: z.ZodString;
|
|
4393
4770
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4399,10 +4776,9 @@ export declare const usageBasedCharge: z.ZodObject<{
|
|
|
4399
4776
|
customer: z.ZodObject<{
|
|
4400
4777
|
id: z.ZodString;
|
|
4401
4778
|
}, z.core.$strip>;
|
|
4402
|
-
|
|
4779
|
+
lifecycle_controller: z.ZodEnum<{
|
|
4403
4780
|
manual: "manual";
|
|
4404
4781
|
system: "system";
|
|
4405
|
-
subscription: "subscription";
|
|
4406
4782
|
}>;
|
|
4407
4783
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
4408
4784
|
id: z.ZodString;
|
|
@@ -4518,7 +4894,7 @@ export declare const usageBasedCharge: z.ZodObject<{
|
|
|
4518
4894
|
}, z.core.$strip>>;
|
|
4519
4895
|
}, z.core.$strip>], "type">;
|
|
4520
4896
|
}, z.core.$strip>;
|
|
4521
|
-
export declare const
|
|
4897
|
+
export declare const createChargeUsageBasedRequest: z.ZodObject<{
|
|
4522
4898
|
name: z.ZodString;
|
|
4523
4899
|
description: z.ZodOptional<z.ZodString>;
|
|
4524
4900
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -4599,6 +4975,57 @@ export declare const createUsageBasedChargeRequest: z.ZodObject<{
|
|
|
4599
4975
|
to: z.ZodString;
|
|
4600
4976
|
}, z.core.$strip>>;
|
|
4601
4977
|
}, z.core.$strip>;
|
|
4978
|
+
export declare const invoiceLineRateCard: z.ZodObject<{
|
|
4979
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4980
|
+
type: z.ZodLiteral<"free">;
|
|
4981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4982
|
+
type: z.ZodLiteral<"flat">;
|
|
4983
|
+
amount: z.ZodString;
|
|
4984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4985
|
+
type: z.ZodLiteral<"unit">;
|
|
4986
|
+
amount: z.ZodString;
|
|
4987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4988
|
+
type: z.ZodLiteral<"graduated">;
|
|
4989
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4990
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4991
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4992
|
+
type: z.ZodLiteral<"flat">;
|
|
4993
|
+
amount: z.ZodString;
|
|
4994
|
+
}, z.core.$strip>>;
|
|
4995
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4996
|
+
type: z.ZodLiteral<"unit">;
|
|
4997
|
+
amount: z.ZodString;
|
|
4998
|
+
}, z.core.$strip>>;
|
|
4999
|
+
}, z.core.$strip>>;
|
|
5000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5001
|
+
type: z.ZodLiteral<"volume">;
|
|
5002
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5003
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5004
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5005
|
+
type: z.ZodLiteral<"flat">;
|
|
5006
|
+
amount: z.ZodString;
|
|
5007
|
+
}, z.core.$strip>>;
|
|
5008
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5009
|
+
type: z.ZodLiteral<"unit">;
|
|
5010
|
+
amount: z.ZodString;
|
|
5011
|
+
}, z.core.$strip>>;
|
|
5012
|
+
}, z.core.$strip>>;
|
|
5013
|
+
}, z.core.$strip>], "type">;
|
|
5014
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5015
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5016
|
+
exclusive: "exclusive";
|
|
5017
|
+
inclusive: "inclusive";
|
|
5018
|
+
}>>;
|
|
5019
|
+
code: z.ZodObject<{
|
|
5020
|
+
id: z.ZodString;
|
|
5021
|
+
}, z.core.$strip>;
|
|
5022
|
+
}, z.core.$strip>>;
|
|
5023
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
5024
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5025
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5026
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5027
|
+
}, z.core.$strip>>;
|
|
5028
|
+
}, z.core.$strip>;
|
|
4602
5029
|
export declare const rateCard: z.ZodObject<{
|
|
4603
5030
|
name: z.ZodString;
|
|
4604
5031
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4827,10 +5254,9 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4827
5254
|
customer: z.ZodObject<{
|
|
4828
5255
|
id: z.ZodString;
|
|
4829
5256
|
}, z.core.$strip>;
|
|
4830
|
-
|
|
5257
|
+
lifecycle_controller: z.ZodEnum<{
|
|
4831
5258
|
manual: "manual";
|
|
4832
5259
|
system: "system";
|
|
4833
|
-
subscription: "subscription";
|
|
4834
5260
|
}>;
|
|
4835
5261
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
4836
5262
|
id: z.ZodString;
|
|
@@ -4949,10 +5375,9 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4949
5375
|
customer: z.ZodObject<{
|
|
4950
5376
|
id: z.ZodString;
|
|
4951
5377
|
}, z.core.$strip>;
|
|
4952
|
-
|
|
5378
|
+
lifecycle_controller: z.ZodEnum<{
|
|
4953
5379
|
manual: "manual";
|
|
4954
5380
|
system: "system";
|
|
4955
|
-
subscription: "subscription";
|
|
4956
5381
|
}>;
|
|
4957
5382
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
4958
5383
|
id: z.ZodString;
|
|
@@ -5204,21 +5629,78 @@ export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5204
5629
|
to: z.ZodString;
|
|
5205
5630
|
}, z.core.$strip>>;
|
|
5206
5631
|
}, z.core.$strip>], "type">;
|
|
5207
|
-
export declare const
|
|
5632
|
+
export declare const invoiceStandardLine: z.ZodObject<{
|
|
5633
|
+
id: z.ZodString;
|
|
5208
5634
|
name: z.ZodString;
|
|
5209
5635
|
description: z.ZodOptional<z.ZodString>;
|
|
5210
5636
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5637
|
+
created_at: z.ZodString;
|
|
5638
|
+
updated_at: z.ZodString;
|
|
5639
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5640
|
+
type: z.ZodLiteral<"standard_line">;
|
|
5641
|
+
lifecycle_controller: z.ZodEnum<{
|
|
5642
|
+
manual: "manual";
|
|
5643
|
+
system: "system";
|
|
5644
|
+
}>;
|
|
5645
|
+
service_period: z.ZodObject<{
|
|
5646
|
+
from: z.ZodString;
|
|
5647
|
+
to: z.ZodString;
|
|
5648
|
+
}, z.core.$strip>;
|
|
5649
|
+
totals: z.ZodObject<{
|
|
5650
|
+
amount: z.ZodString;
|
|
5651
|
+
taxes_total: z.ZodString;
|
|
5652
|
+
taxes_inclusive_total: z.ZodString;
|
|
5653
|
+
taxes_exclusive_total: z.ZodString;
|
|
5654
|
+
charges_total: z.ZodString;
|
|
5655
|
+
discounts_total: z.ZodString;
|
|
5656
|
+
credits_total: z.ZodString;
|
|
5657
|
+
total: z.ZodString;
|
|
5658
|
+
}, z.core.$strip>;
|
|
5659
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5660
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5661
|
+
id: z.ZodString;
|
|
5662
|
+
reason: z.ZodEnum<{
|
|
5663
|
+
maximum_spend: "maximum_spend";
|
|
5664
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5665
|
+
ratecard_usage: "ratecard_usage";
|
|
5666
|
+
}>;
|
|
5667
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5668
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5669
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5670
|
+
}, z.core.$strip>>;
|
|
5671
|
+
amount: z.ZodString;
|
|
5672
|
+
}, z.core.$strip>>>;
|
|
5673
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5674
|
+
id: z.ZodString;
|
|
5675
|
+
reason: z.ZodEnum<{
|
|
5676
|
+
maximum_spend: "maximum_spend";
|
|
5677
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5678
|
+
ratecard_usage: "ratecard_usage";
|
|
5679
|
+
}>;
|
|
5680
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5681
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5682
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5683
|
+
}, z.core.$strip>>;
|
|
5684
|
+
quantity: z.ZodString;
|
|
5685
|
+
}, z.core.$strip>>>;
|
|
5686
|
+
}, z.core.$strip>>;
|
|
5687
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5688
|
+
amount: z.ZodString;
|
|
5215
5689
|
description: z.ZodOptional<z.ZodString>;
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5690
|
+
}, z.core.$strip>>>;
|
|
5691
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5692
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5693
|
+
}, z.core.$strip>>;
|
|
5694
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
5695
|
+
id: z.ZodString;
|
|
5696
|
+
phase: z.ZodObject<{
|
|
5219
5697
|
id: z.ZodString;
|
|
5220
|
-
|
|
5221
|
-
|
|
5698
|
+
item: z.ZodObject<{
|
|
5699
|
+
id: z.ZodString;
|
|
5700
|
+
}, z.core.$strip>;
|
|
5701
|
+
}, z.core.$strip>;
|
|
5702
|
+
}, z.core.$strip>>;
|
|
5703
|
+
rate_card: z.ZodObject<{
|
|
5222
5704
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5223
5705
|
type: z.ZodLiteral<"free">;
|
|
5224
5706
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5254,30 +5736,6 @@ export declare const planPhase: z.ZodObject<{
|
|
|
5254
5736
|
}, z.core.$strip>>;
|
|
5255
5737
|
}, z.core.$strip>>;
|
|
5256
5738
|
}, z.core.$strip>], "type">;
|
|
5257
|
-
unit_config: z.ZodOptional<z.ZodObject<{
|
|
5258
|
-
operation: z.ZodEnum<{
|
|
5259
|
-
multiply: "multiply";
|
|
5260
|
-
divide: "divide";
|
|
5261
|
-
}>;
|
|
5262
|
-
conversion_factor: z.ZodString;
|
|
5263
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5264
|
-
none: "none";
|
|
5265
|
-
floor: "floor";
|
|
5266
|
-
ceiling: "ceiling";
|
|
5267
|
-
half_up: "half_up";
|
|
5268
|
-
}>>>;
|
|
5269
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5270
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
5271
|
-
}, z.core.$strip>>;
|
|
5272
|
-
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
5273
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
5274
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
5275
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
5276
|
-
}, z.core.$strip>>;
|
|
5277
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
5278
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5279
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
5280
|
-
}, z.core.$strip>>;
|
|
5281
5739
|
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5282
5740
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5283
5741
|
exclusive: "exclusive";
|
|
@@ -5287,45 +5745,202 @@ export declare const planPhase: z.ZodObject<{
|
|
|
5287
5745
|
id: z.ZodString;
|
|
5288
5746
|
}, z.core.$strip>;
|
|
5289
5747
|
}, z.core.$strip>>;
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5748
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
5749
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5750
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5751
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5752
|
+
}, z.core.$strip>>;
|
|
5753
|
+
}, z.core.$strip>;
|
|
5754
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
5755
|
+
id: z.ZodString;
|
|
5756
|
+
name: z.ZodString;
|
|
5757
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5758
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5759
|
+
created_at: z.ZodString;
|
|
5760
|
+
updated_at: z.ZodString;
|
|
5761
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5762
|
+
service_period: z.ZodObject<{
|
|
5763
|
+
from: z.ZodString;
|
|
5764
|
+
to: z.ZodString;
|
|
5765
|
+
}, z.core.$strip>;
|
|
5766
|
+
totals: z.ZodObject<{
|
|
5767
|
+
amount: z.ZodString;
|
|
5768
|
+
taxes_total: z.ZodString;
|
|
5769
|
+
taxes_inclusive_total: z.ZodString;
|
|
5770
|
+
taxes_exclusive_total: z.ZodString;
|
|
5771
|
+
charges_total: z.ZodString;
|
|
5772
|
+
discounts_total: z.ZodString;
|
|
5773
|
+
credits_total: z.ZodString;
|
|
5774
|
+
total: z.ZodString;
|
|
5775
|
+
}, z.core.$strip>;
|
|
5776
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
5777
|
+
regular: "regular";
|
|
5778
|
+
commitment: "commitment";
|
|
5779
|
+
}>>;
|
|
5780
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5781
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5782
|
+
id: z.ZodString;
|
|
5783
|
+
reason: z.ZodEnum<{
|
|
5784
|
+
maximum_spend: "maximum_spend";
|
|
5785
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5786
|
+
ratecard_usage: "ratecard_usage";
|
|
5787
|
+
}>;
|
|
5788
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5789
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5790
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5791
|
+
}, z.core.$strip>>;
|
|
5792
|
+
amount: z.ZodString;
|
|
5793
|
+
}, z.core.$strip>>>;
|
|
5794
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5795
|
+
id: z.ZodString;
|
|
5796
|
+
reason: z.ZodEnum<{
|
|
5797
|
+
maximum_spend: "maximum_spend";
|
|
5798
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5799
|
+
ratecard_usage: "ratecard_usage";
|
|
5800
|
+
}>;
|
|
5801
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5802
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5803
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5804
|
+
}, z.core.$strip>>;
|
|
5805
|
+
quantity: z.ZodString;
|
|
5806
|
+
}, z.core.$strip>>>;
|
|
5807
|
+
}, z.core.$strip>>;
|
|
5808
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5809
|
+
amount: z.ZodString;
|
|
5810
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5811
|
+
}, z.core.$strip>>>;
|
|
5812
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
5813
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5814
|
+
}, z.core.$strip>>;
|
|
5815
|
+
quantity: z.ZodString;
|
|
5816
|
+
unit_price: z.ZodString;
|
|
5817
|
+
}, z.core.$strip>>;
|
|
5818
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
5819
|
+
id: z.ZodString;
|
|
5820
|
+
}, z.core.$strip>>;
|
|
5821
|
+
}, z.core.$strip>;
|
|
5822
|
+
export declare const planPhase: z.ZodObject<{
|
|
5823
|
+
name: z.ZodString;
|
|
5824
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5825
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5826
|
+
key: z.ZodString;
|
|
5827
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5828
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
5829
|
+
name: z.ZodString;
|
|
5830
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5831
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5832
|
+
key: z.ZodString;
|
|
5833
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
5834
|
+
id: z.ZodString;
|
|
5835
|
+
}, z.core.$strip>>;
|
|
5836
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
5837
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5838
|
+
type: z.ZodLiteral<"free">;
|
|
5839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5840
|
+
type: z.ZodLiteral<"flat">;
|
|
5841
|
+
amount: z.ZodString;
|
|
5842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5843
|
+
type: z.ZodLiteral<"unit">;
|
|
5844
|
+
amount: z.ZodString;
|
|
5845
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5846
|
+
type: z.ZodLiteral<"graduated">;
|
|
5847
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5848
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5849
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5850
|
+
type: z.ZodLiteral<"flat">;
|
|
5851
|
+
amount: z.ZodString;
|
|
5852
|
+
}, z.core.$strip>>;
|
|
5853
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5854
|
+
type: z.ZodLiteral<"unit">;
|
|
5855
|
+
amount: z.ZodString;
|
|
5856
|
+
}, z.core.$strip>>;
|
|
5857
|
+
}, z.core.$strip>>;
|
|
5858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5859
|
+
type: z.ZodLiteral<"volume">;
|
|
5860
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5861
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5862
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5863
|
+
type: z.ZodLiteral<"flat">;
|
|
5864
|
+
amount: z.ZodString;
|
|
5865
|
+
}, z.core.$strip>>;
|
|
5866
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5867
|
+
type: z.ZodLiteral<"unit">;
|
|
5868
|
+
amount: z.ZodString;
|
|
5869
|
+
}, z.core.$strip>>;
|
|
5870
|
+
}, z.core.$strip>>;
|
|
5871
|
+
}, z.core.$strip>], "type">;
|
|
5872
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
5873
|
+
operation: z.ZodEnum<{
|
|
5874
|
+
multiply: "multiply";
|
|
5875
|
+
divide: "divide";
|
|
5876
|
+
}>;
|
|
5877
|
+
conversion_factor: z.ZodString;
|
|
5878
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5879
|
+
none: "none";
|
|
5880
|
+
floor: "floor";
|
|
5881
|
+
ceiling: "ceiling";
|
|
5882
|
+
half_up: "half_up";
|
|
5883
|
+
}>>>;
|
|
5884
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5885
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
5886
|
+
}, z.core.$strip>>;
|
|
5887
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
5888
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
5889
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
5890
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
5891
|
+
}, z.core.$strip>>;
|
|
5892
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5893
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5894
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5895
|
+
}, z.core.$strip>>;
|
|
5896
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5897
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5898
|
+
exclusive: "exclusive";
|
|
5899
|
+
inclusive: "inclusive";
|
|
5900
|
+
}>>;
|
|
5901
|
+
code: z.ZodObject<{
|
|
5902
|
+
id: z.ZodString;
|
|
5903
|
+
}, z.core.$strip>;
|
|
5904
|
+
}, z.core.$strip>>;
|
|
5905
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5906
|
+
type: z.ZodLiteral<"metered">;
|
|
5907
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5908
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5909
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
5910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5911
|
+
type: z.ZodLiteral<"static">;
|
|
5912
|
+
config: z.ZodUnknown;
|
|
5913
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5914
|
+
type: z.ZodLiteral<"boolean">;
|
|
5915
|
+
}, z.core.$strip>], "type">>;
|
|
5916
|
+
}, z.core.$strip>>;
|
|
5917
|
+
}, z.core.$strip>;
|
|
5918
|
+
export declare const addon: z.ZodObject<{
|
|
5919
|
+
id: z.ZodString;
|
|
5920
|
+
name: z.ZodString;
|
|
5921
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5922
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5923
|
+
created_at: z.ZodString;
|
|
5924
|
+
updated_at: z.ZodString;
|
|
5925
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5926
|
+
key: z.ZodString;
|
|
5927
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
5928
|
+
instance_type: z.ZodEnum<{
|
|
5929
|
+
multiple: "multiple";
|
|
5930
|
+
single: "single";
|
|
5931
|
+
}>;
|
|
5932
|
+
currency: z.ZodUnion<readonly [z.ZodString]>;
|
|
5933
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
5934
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
5935
|
+
status: z.ZodEnum<{
|
|
5936
|
+
active: "active";
|
|
5937
|
+
draft: "draft";
|
|
5938
|
+
archived: "archived";
|
|
5939
|
+
}>;
|
|
5940
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
5941
|
+
name: z.ZodString;
|
|
5942
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5943
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5329
5944
|
key: z.ZodString;
|
|
5330
5945
|
feature: z.ZodOptional<z.ZodObject<{
|
|
5331
5946
|
id: z.ZodString;
|
|
@@ -5877,10 +6492,9 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5877
6492
|
customer: z.ZodObject<{
|
|
5878
6493
|
id: z.ZodString;
|
|
5879
6494
|
}, z.core.$strip>;
|
|
5880
|
-
|
|
6495
|
+
lifecycle_controller: z.ZodEnum<{
|
|
5881
6496
|
manual: "manual";
|
|
5882
6497
|
system: "system";
|
|
5883
|
-
subscription: "subscription";
|
|
5884
6498
|
}>;
|
|
5885
6499
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
5886
6500
|
id: z.ZodString;
|
|
@@ -5999,10 +6613,9 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5999
6613
|
customer: z.ZodObject<{
|
|
6000
6614
|
id: z.ZodString;
|
|
6001
6615
|
}, z.core.$strip>;
|
|
6002
|
-
|
|
6616
|
+
lifecycle_controller: z.ZodEnum<{
|
|
6003
6617
|
manual: "manual";
|
|
6004
6618
|
system: "system";
|
|
6005
|
-
subscription: "subscription";
|
|
6006
6619
|
}>;
|
|
6007
6620
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
6008
6621
|
id: z.ZodString;
|
|
@@ -6126,7 +6739,7 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
6126
6739
|
}, z.core.$strip>;
|
|
6127
6740
|
}, z.core.$strip>;
|
|
6128
6741
|
}, z.core.$strip>;
|
|
6129
|
-
export declare const
|
|
6742
|
+
export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6130
6743
|
id: z.ZodString;
|
|
6131
6744
|
name: z.ZodString;
|
|
6132
6745
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6134,34 +6747,224 @@ export declare const plan: z.ZodObject<{
|
|
|
6134
6747
|
created_at: z.ZodString;
|
|
6135
6748
|
updated_at: z.ZodString;
|
|
6136
6749
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6142
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
6143
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
6144
|
-
status: z.ZodEnum<{
|
|
6145
|
-
active: "active";
|
|
6146
|
-
scheduled: "scheduled";
|
|
6147
|
-
draft: "draft";
|
|
6148
|
-
archived: "archived";
|
|
6750
|
+
type: z.ZodLiteral<"standard_line">;
|
|
6751
|
+
lifecycle_controller: z.ZodEnum<{
|
|
6752
|
+
manual: "manual";
|
|
6753
|
+
system: "system";
|
|
6149
6754
|
}>;
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6755
|
+
service_period: z.ZodObject<{
|
|
6756
|
+
from: z.ZodString;
|
|
6757
|
+
to: z.ZodString;
|
|
6758
|
+
}, z.core.$strip>;
|
|
6759
|
+
totals: z.ZodObject<{
|
|
6760
|
+
amount: z.ZodString;
|
|
6761
|
+
taxes_total: z.ZodString;
|
|
6762
|
+
taxes_inclusive_total: z.ZodString;
|
|
6763
|
+
taxes_exclusive_total: z.ZodString;
|
|
6764
|
+
charges_total: z.ZodString;
|
|
6765
|
+
discounts_total: z.ZodString;
|
|
6766
|
+
credits_total: z.ZodString;
|
|
6767
|
+
total: z.ZodString;
|
|
6768
|
+
}, z.core.$strip>;
|
|
6769
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6770
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6771
|
+
id: z.ZodString;
|
|
6772
|
+
reason: z.ZodEnum<{
|
|
6773
|
+
maximum_spend: "maximum_spend";
|
|
6774
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6775
|
+
ratecard_usage: "ratecard_usage";
|
|
6776
|
+
}>;
|
|
6158
6777
|
description: z.ZodOptional<z.ZodString>;
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6778
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6779
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6780
|
+
}, z.core.$strip>>;
|
|
6781
|
+
amount: z.ZodString;
|
|
6782
|
+
}, z.core.$strip>>>;
|
|
6783
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6784
|
+
id: z.ZodString;
|
|
6785
|
+
reason: z.ZodEnum<{
|
|
6786
|
+
maximum_spend: "maximum_spend";
|
|
6787
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6788
|
+
ratecard_usage: "ratecard_usage";
|
|
6789
|
+
}>;
|
|
6790
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6791
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6792
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6793
|
+
}, z.core.$strip>>;
|
|
6794
|
+
quantity: z.ZodString;
|
|
6795
|
+
}, z.core.$strip>>>;
|
|
6796
|
+
}, z.core.$strip>>;
|
|
6797
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6798
|
+
amount: z.ZodString;
|
|
6799
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6800
|
+
}, z.core.$strip>>>;
|
|
6801
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6802
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6803
|
+
}, z.core.$strip>>;
|
|
6804
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
6805
|
+
id: z.ZodString;
|
|
6806
|
+
phase: z.ZodObject<{
|
|
6807
|
+
id: z.ZodString;
|
|
6808
|
+
item: z.ZodObject<{
|
|
6162
6809
|
id: z.ZodString;
|
|
6810
|
+
}, z.core.$strip>;
|
|
6811
|
+
}, z.core.$strip>;
|
|
6812
|
+
}, z.core.$strip>>;
|
|
6813
|
+
rate_card: z.ZodObject<{
|
|
6814
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6815
|
+
type: z.ZodLiteral<"free">;
|
|
6816
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6817
|
+
type: z.ZodLiteral<"flat">;
|
|
6818
|
+
amount: z.ZodString;
|
|
6819
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6820
|
+
type: z.ZodLiteral<"unit">;
|
|
6821
|
+
amount: z.ZodString;
|
|
6822
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6823
|
+
type: z.ZodLiteral<"graduated">;
|
|
6824
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6825
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6826
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6827
|
+
type: z.ZodLiteral<"flat">;
|
|
6828
|
+
amount: z.ZodString;
|
|
6829
|
+
}, z.core.$strip>>;
|
|
6830
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6831
|
+
type: z.ZodLiteral<"unit">;
|
|
6832
|
+
amount: z.ZodString;
|
|
6833
|
+
}, z.core.$strip>>;
|
|
6163
6834
|
}, z.core.$strip>>;
|
|
6164
|
-
|
|
6835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6836
|
+
type: z.ZodLiteral<"volume">;
|
|
6837
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6838
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6839
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6840
|
+
type: z.ZodLiteral<"flat">;
|
|
6841
|
+
amount: z.ZodString;
|
|
6842
|
+
}, z.core.$strip>>;
|
|
6843
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6844
|
+
type: z.ZodLiteral<"unit">;
|
|
6845
|
+
amount: z.ZodString;
|
|
6846
|
+
}, z.core.$strip>>;
|
|
6847
|
+
}, z.core.$strip>>;
|
|
6848
|
+
}, z.core.$strip>], "type">;
|
|
6849
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
6850
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
6851
|
+
exclusive: "exclusive";
|
|
6852
|
+
inclusive: "inclusive";
|
|
6853
|
+
}>>;
|
|
6854
|
+
code: z.ZodObject<{
|
|
6855
|
+
id: z.ZodString;
|
|
6856
|
+
}, z.core.$strip>;
|
|
6857
|
+
}, z.core.$strip>>;
|
|
6858
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
6859
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6860
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
6861
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
6862
|
+
}, z.core.$strip>>;
|
|
6863
|
+
}, z.core.$strip>;
|
|
6864
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
6865
|
+
id: z.ZodString;
|
|
6866
|
+
name: z.ZodString;
|
|
6867
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6868
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6869
|
+
created_at: z.ZodString;
|
|
6870
|
+
updated_at: z.ZodString;
|
|
6871
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6872
|
+
service_period: z.ZodObject<{
|
|
6873
|
+
from: z.ZodString;
|
|
6874
|
+
to: z.ZodString;
|
|
6875
|
+
}, z.core.$strip>;
|
|
6876
|
+
totals: z.ZodObject<{
|
|
6877
|
+
amount: z.ZodString;
|
|
6878
|
+
taxes_total: z.ZodString;
|
|
6879
|
+
taxes_inclusive_total: z.ZodString;
|
|
6880
|
+
taxes_exclusive_total: z.ZodString;
|
|
6881
|
+
charges_total: z.ZodString;
|
|
6882
|
+
discounts_total: z.ZodString;
|
|
6883
|
+
credits_total: z.ZodString;
|
|
6884
|
+
total: z.ZodString;
|
|
6885
|
+
}, z.core.$strip>;
|
|
6886
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
6887
|
+
regular: "regular";
|
|
6888
|
+
commitment: "commitment";
|
|
6889
|
+
}>>;
|
|
6890
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6891
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6892
|
+
id: z.ZodString;
|
|
6893
|
+
reason: z.ZodEnum<{
|
|
6894
|
+
maximum_spend: "maximum_spend";
|
|
6895
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6896
|
+
ratecard_usage: "ratecard_usage";
|
|
6897
|
+
}>;
|
|
6898
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6899
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6900
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6901
|
+
}, z.core.$strip>>;
|
|
6902
|
+
amount: z.ZodString;
|
|
6903
|
+
}, z.core.$strip>>>;
|
|
6904
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6905
|
+
id: z.ZodString;
|
|
6906
|
+
reason: z.ZodEnum<{
|
|
6907
|
+
maximum_spend: "maximum_spend";
|
|
6908
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6909
|
+
ratecard_usage: "ratecard_usage";
|
|
6910
|
+
}>;
|
|
6911
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6912
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6913
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6914
|
+
}, z.core.$strip>>;
|
|
6915
|
+
quantity: z.ZodString;
|
|
6916
|
+
}, z.core.$strip>>>;
|
|
6917
|
+
}, z.core.$strip>>;
|
|
6918
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6919
|
+
amount: z.ZodString;
|
|
6920
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6921
|
+
}, z.core.$strip>>>;
|
|
6922
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6923
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6924
|
+
}, z.core.$strip>>;
|
|
6925
|
+
quantity: z.ZodString;
|
|
6926
|
+
unit_price: z.ZodString;
|
|
6927
|
+
}, z.core.$strip>>;
|
|
6928
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
6929
|
+
id: z.ZodString;
|
|
6930
|
+
}, z.core.$strip>>;
|
|
6931
|
+
}, z.core.$strip>], "type">;
|
|
6932
|
+
export declare const plan: z.ZodObject<{
|
|
6933
|
+
id: z.ZodString;
|
|
6934
|
+
name: z.ZodString;
|
|
6935
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6936
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6937
|
+
created_at: z.ZodString;
|
|
6938
|
+
updated_at: z.ZodString;
|
|
6939
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6940
|
+
key: z.ZodString;
|
|
6941
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
6942
|
+
currency: z.ZodString;
|
|
6943
|
+
billing_cadence: z.ZodString;
|
|
6944
|
+
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6945
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
6946
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
6947
|
+
status: z.ZodEnum<{
|
|
6948
|
+
active: "active";
|
|
6949
|
+
scheduled: "scheduled";
|
|
6950
|
+
draft: "draft";
|
|
6951
|
+
archived: "archived";
|
|
6952
|
+
}>;
|
|
6953
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
6954
|
+
name: z.ZodString;
|
|
6955
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6956
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6957
|
+
key: z.ZodString;
|
|
6958
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
6959
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
6960
|
+
name: z.ZodString;
|
|
6961
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6962
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6963
|
+
key: z.ZodString;
|
|
6964
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
6965
|
+
id: z.ZodString;
|
|
6966
|
+
}, z.core.$strip>>;
|
|
6967
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
6165
6968
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6166
6969
|
type: z.ZodLiteral<"free">;
|
|
6167
6970
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6686,8 +7489,146 @@ export declare const profilePagePaginatedResponse: z.ZodObject<{
|
|
|
6686
7489
|
}, z.core.$strip>;
|
|
6687
7490
|
}, z.core.$strip>;
|
|
6688
7491
|
}, z.core.$strip>;
|
|
6689
|
-
export declare const
|
|
6690
|
-
|
|
7492
|
+
export declare const invoiceStandard: z.ZodObject<{
|
|
7493
|
+
id: z.ZodString;
|
|
7494
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7495
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7496
|
+
created_at: z.ZodString;
|
|
7497
|
+
updated_at: z.ZodString;
|
|
7498
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7499
|
+
number: z.ZodString;
|
|
7500
|
+
currency: z.ZodString;
|
|
7501
|
+
supplier: z.ZodObject<{
|
|
7502
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7503
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7504
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
7505
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7506
|
+
}, z.core.$strip>>;
|
|
7507
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
7508
|
+
billing_address: z.ZodObject<{
|
|
7509
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7510
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7511
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7512
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7513
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7514
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7515
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
7516
|
+
}, z.core.$strip>;
|
|
7517
|
+
}, z.core.$strip>>;
|
|
7518
|
+
}, z.core.$strip>;
|
|
7519
|
+
customer: z.ZodObject<{
|
|
7520
|
+
id: z.ZodString;
|
|
7521
|
+
name: z.ZodString;
|
|
7522
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
7523
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
7524
|
+
}, z.core.$strip>>;
|
|
7525
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
7526
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7527
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7528
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7529
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7530
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7531
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7532
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
7533
|
+
}, z.core.$strip>>;
|
|
7534
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7535
|
+
}, z.core.$strip>;
|
|
7536
|
+
totals: z.ZodObject<{
|
|
7537
|
+
amount: z.ZodString;
|
|
7538
|
+
taxes_total: z.ZodString;
|
|
7539
|
+
taxes_inclusive_total: z.ZodString;
|
|
7540
|
+
taxes_exclusive_total: z.ZodString;
|
|
7541
|
+
charges_total: z.ZodString;
|
|
7542
|
+
discounts_total: z.ZodString;
|
|
7543
|
+
credits_total: z.ZodString;
|
|
7544
|
+
total: z.ZodString;
|
|
7545
|
+
}, z.core.$strip>;
|
|
7546
|
+
service_period: z.ZodObject<{
|
|
7547
|
+
from: z.ZodString;
|
|
7548
|
+
to: z.ZodString;
|
|
7549
|
+
}, z.core.$strip>;
|
|
7550
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7551
|
+
code: z.ZodString;
|
|
7552
|
+
message: z.ZodString;
|
|
7553
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7554
|
+
severity: z.ZodEnum<{
|
|
7555
|
+
critical: "critical";
|
|
7556
|
+
warning: "warning";
|
|
7557
|
+
}>;
|
|
7558
|
+
field: z.ZodOptional<z.ZodString>;
|
|
7559
|
+
}, z.core.$strip>>>;
|
|
7560
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7561
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7562
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
7563
|
+
}, z.core.$strip>>;
|
|
7564
|
+
type: z.ZodLiteral<"standard">;
|
|
7565
|
+
status: z.ZodEnum<{
|
|
7566
|
+
voided: "voided";
|
|
7567
|
+
draft: "draft";
|
|
7568
|
+
issuing: "issuing";
|
|
7569
|
+
issued: "issued";
|
|
7570
|
+
payment_processing: "payment_processing";
|
|
7571
|
+
overdue: "overdue";
|
|
7572
|
+
paid: "paid";
|
|
7573
|
+
uncollectible: "uncollectible";
|
|
7574
|
+
}>;
|
|
7575
|
+
status_details: z.ZodObject<{
|
|
7576
|
+
immutable: z.ZodBoolean;
|
|
7577
|
+
failed: z.ZodBoolean;
|
|
7578
|
+
extended_status: z.ZodString;
|
|
7579
|
+
available_actions: z.ZodObject<{
|
|
7580
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
7581
|
+
resulting_state: z.ZodString;
|
|
7582
|
+
}, z.core.$strip>>;
|
|
7583
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
7584
|
+
resulting_state: z.ZodString;
|
|
7585
|
+
}, z.core.$strip>>;
|
|
7586
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
7587
|
+
resulting_state: z.ZodString;
|
|
7588
|
+
}, z.core.$strip>>;
|
|
7589
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
7590
|
+
resulting_state: z.ZodString;
|
|
7591
|
+
}, z.core.$strip>>;
|
|
7592
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
7593
|
+
resulting_state: z.ZodString;
|
|
7594
|
+
}, z.core.$strip>>;
|
|
7595
|
+
}, z.core.$strip>;
|
|
7596
|
+
}, z.core.$strip>;
|
|
7597
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
7598
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
7599
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
7600
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
7601
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
7602
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
7603
|
+
workflow: z.ZodObject<{
|
|
7604
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
7605
|
+
tax: z.ZodObject<{
|
|
7606
|
+
id: z.ZodString;
|
|
7607
|
+
}, z.core.$strip>;
|
|
7608
|
+
invoicing: z.ZodObject<{
|
|
7609
|
+
id: z.ZodString;
|
|
7610
|
+
}, z.core.$strip>;
|
|
7611
|
+
payment: z.ZodObject<{
|
|
7612
|
+
id: z.ZodString;
|
|
7613
|
+
}, z.core.$strip>;
|
|
7614
|
+
}, z.core.$strip>>;
|
|
7615
|
+
source_billing_profile: z.ZodObject<{
|
|
7616
|
+
id: z.ZodString;
|
|
7617
|
+
}, z.core.$strip>;
|
|
7618
|
+
workflow: z.ZodObject<{
|
|
7619
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
7620
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7621
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7622
|
+
}, z.core.$strip>>;
|
|
7623
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7624
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
7625
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7626
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
7627
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7628
|
+
}, z.core.$strip>], "collection_method">>;
|
|
7629
|
+
}, z.core.$strip>;
|
|
7630
|
+
}, z.core.$strip>;
|
|
7631
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6691
7632
|
id: z.ZodString;
|
|
6692
7633
|
name: z.ZodString;
|
|
6693
7634
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6695,37 +7636,229 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
|
6695
7636
|
created_at: z.ZodString;
|
|
6696
7637
|
updated_at: z.ZodString;
|
|
6697
7638
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6703
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
6704
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
6705
|
-
status: z.ZodEnum<{
|
|
6706
|
-
active: "active";
|
|
6707
|
-
scheduled: "scheduled";
|
|
6708
|
-
draft: "draft";
|
|
6709
|
-
archived: "archived";
|
|
7639
|
+
type: z.ZodLiteral<"standard_line">;
|
|
7640
|
+
lifecycle_controller: z.ZodEnum<{
|
|
7641
|
+
manual: "manual";
|
|
7642
|
+
system: "system";
|
|
6710
7643
|
}>;
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
7644
|
+
service_period: z.ZodObject<{
|
|
7645
|
+
from: z.ZodString;
|
|
7646
|
+
to: z.ZodString;
|
|
7647
|
+
}, z.core.$strip>;
|
|
7648
|
+
totals: z.ZodObject<{
|
|
7649
|
+
amount: z.ZodString;
|
|
7650
|
+
taxes_total: z.ZodString;
|
|
7651
|
+
taxes_inclusive_total: z.ZodString;
|
|
7652
|
+
taxes_exclusive_total: z.ZodString;
|
|
7653
|
+
charges_total: z.ZodString;
|
|
7654
|
+
discounts_total: z.ZodString;
|
|
7655
|
+
credits_total: z.ZodString;
|
|
7656
|
+
total: z.ZodString;
|
|
7657
|
+
}, z.core.$strip>;
|
|
7658
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7659
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7660
|
+
id: z.ZodString;
|
|
7661
|
+
reason: z.ZodEnum<{
|
|
7662
|
+
maximum_spend: "maximum_spend";
|
|
7663
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7664
|
+
ratecard_usage: "ratecard_usage";
|
|
7665
|
+
}>;
|
|
6719
7666
|
description: z.ZodOptional<z.ZodString>;
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
6723
|
-
id: z.ZodString;
|
|
7667
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7668
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6724
7669
|
}, z.core.$strip>>;
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
7670
|
+
amount: z.ZodString;
|
|
7671
|
+
}, z.core.$strip>>>;
|
|
7672
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7673
|
+
id: z.ZodString;
|
|
7674
|
+
reason: z.ZodEnum<{
|
|
7675
|
+
maximum_spend: "maximum_spend";
|
|
7676
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7677
|
+
ratecard_usage: "ratecard_usage";
|
|
7678
|
+
}>;
|
|
7679
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7680
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7681
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7682
|
+
}, z.core.$strip>>;
|
|
7683
|
+
quantity: z.ZodString;
|
|
7684
|
+
}, z.core.$strip>>>;
|
|
7685
|
+
}, z.core.$strip>>;
|
|
7686
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7687
|
+
amount: z.ZodString;
|
|
7688
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7689
|
+
}, z.core.$strip>>>;
|
|
7690
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7691
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7692
|
+
}, z.core.$strip>>;
|
|
7693
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
7694
|
+
id: z.ZodString;
|
|
7695
|
+
phase: z.ZodObject<{
|
|
7696
|
+
id: z.ZodString;
|
|
7697
|
+
item: z.ZodObject<{
|
|
7698
|
+
id: z.ZodString;
|
|
7699
|
+
}, z.core.$strip>;
|
|
7700
|
+
}, z.core.$strip>;
|
|
7701
|
+
}, z.core.$strip>>;
|
|
7702
|
+
rate_card: z.ZodObject<{
|
|
7703
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7704
|
+
type: z.ZodLiteral<"free">;
|
|
7705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7706
|
+
type: z.ZodLiteral<"flat">;
|
|
7707
|
+
amount: z.ZodString;
|
|
7708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7709
|
+
type: z.ZodLiteral<"unit">;
|
|
7710
|
+
amount: z.ZodString;
|
|
7711
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7712
|
+
type: z.ZodLiteral<"graduated">;
|
|
7713
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7714
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7715
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7716
|
+
type: z.ZodLiteral<"flat">;
|
|
7717
|
+
amount: z.ZodString;
|
|
7718
|
+
}, z.core.$strip>>;
|
|
7719
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7720
|
+
type: z.ZodLiteral<"unit">;
|
|
7721
|
+
amount: z.ZodString;
|
|
7722
|
+
}, z.core.$strip>>;
|
|
7723
|
+
}, z.core.$strip>>;
|
|
7724
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7725
|
+
type: z.ZodLiteral<"volume">;
|
|
7726
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7727
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7728
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7729
|
+
type: z.ZodLiteral<"flat">;
|
|
7730
|
+
amount: z.ZodString;
|
|
7731
|
+
}, z.core.$strip>>;
|
|
7732
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7733
|
+
type: z.ZodLiteral<"unit">;
|
|
7734
|
+
amount: z.ZodString;
|
|
7735
|
+
}, z.core.$strip>>;
|
|
7736
|
+
}, z.core.$strip>>;
|
|
7737
|
+
}, z.core.$strip>], "type">;
|
|
7738
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
7739
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7740
|
+
exclusive: "exclusive";
|
|
7741
|
+
inclusive: "inclusive";
|
|
7742
|
+
}>>;
|
|
7743
|
+
code: z.ZodObject<{
|
|
7744
|
+
id: z.ZodString;
|
|
7745
|
+
}, z.core.$strip>;
|
|
7746
|
+
}, z.core.$strip>>;
|
|
7747
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
7748
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7749
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7750
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7751
|
+
}, z.core.$strip>>;
|
|
7752
|
+
}, z.core.$strip>;
|
|
7753
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
7754
|
+
id: z.ZodString;
|
|
7755
|
+
name: z.ZodString;
|
|
7756
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7757
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7758
|
+
created_at: z.ZodString;
|
|
7759
|
+
updated_at: z.ZodString;
|
|
7760
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7761
|
+
service_period: z.ZodObject<{
|
|
7762
|
+
from: z.ZodString;
|
|
7763
|
+
to: z.ZodString;
|
|
7764
|
+
}, z.core.$strip>;
|
|
7765
|
+
totals: z.ZodObject<{
|
|
7766
|
+
amount: z.ZodString;
|
|
7767
|
+
taxes_total: z.ZodString;
|
|
7768
|
+
taxes_inclusive_total: z.ZodString;
|
|
7769
|
+
taxes_exclusive_total: z.ZodString;
|
|
7770
|
+
charges_total: z.ZodString;
|
|
7771
|
+
discounts_total: z.ZodString;
|
|
7772
|
+
credits_total: z.ZodString;
|
|
7773
|
+
total: z.ZodString;
|
|
7774
|
+
}, z.core.$strip>;
|
|
7775
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
7776
|
+
regular: "regular";
|
|
7777
|
+
commitment: "commitment";
|
|
7778
|
+
}>>;
|
|
7779
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7780
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7781
|
+
id: z.ZodString;
|
|
7782
|
+
reason: z.ZodEnum<{
|
|
7783
|
+
maximum_spend: "maximum_spend";
|
|
7784
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7785
|
+
ratecard_usage: "ratecard_usage";
|
|
7786
|
+
}>;
|
|
7787
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7788
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7789
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7790
|
+
}, z.core.$strip>>;
|
|
7791
|
+
amount: z.ZodString;
|
|
7792
|
+
}, z.core.$strip>>>;
|
|
7793
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7794
|
+
id: z.ZodString;
|
|
7795
|
+
reason: z.ZodEnum<{
|
|
7796
|
+
maximum_spend: "maximum_spend";
|
|
7797
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7798
|
+
ratecard_usage: "ratecard_usage";
|
|
7799
|
+
}>;
|
|
7800
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7801
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7802
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7803
|
+
}, z.core.$strip>>;
|
|
7804
|
+
quantity: z.ZodString;
|
|
7805
|
+
}, z.core.$strip>>>;
|
|
7806
|
+
}, z.core.$strip>>;
|
|
7807
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7808
|
+
amount: z.ZodString;
|
|
7809
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7810
|
+
}, z.core.$strip>>>;
|
|
7811
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7812
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7813
|
+
}, z.core.$strip>>;
|
|
7814
|
+
quantity: z.ZodString;
|
|
7815
|
+
unit_price: z.ZodString;
|
|
7816
|
+
}, z.core.$strip>>;
|
|
7817
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
7818
|
+
id: z.ZodString;
|
|
7819
|
+
}, z.core.$strip>>;
|
|
7820
|
+
}, z.core.$strip>], "type">>>;
|
|
7821
|
+
}, z.core.$strip>;
|
|
7822
|
+
export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
7823
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7824
|
+
id: z.ZodString;
|
|
7825
|
+
name: z.ZodString;
|
|
7826
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7827
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7828
|
+
created_at: z.ZodString;
|
|
7829
|
+
updated_at: z.ZodString;
|
|
7830
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7831
|
+
key: z.ZodString;
|
|
7832
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
7833
|
+
currency: z.ZodString;
|
|
7834
|
+
billing_cadence: z.ZodString;
|
|
7835
|
+
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7836
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
7837
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
7838
|
+
status: z.ZodEnum<{
|
|
7839
|
+
active: "active";
|
|
7840
|
+
scheduled: "scheduled";
|
|
7841
|
+
draft: "draft";
|
|
7842
|
+
archived: "archived";
|
|
7843
|
+
}>;
|
|
7844
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
7845
|
+
name: z.ZodString;
|
|
7846
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7847
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7848
|
+
key: z.ZodString;
|
|
7849
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
7850
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
7851
|
+
name: z.ZodString;
|
|
7852
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7853
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7854
|
+
key: z.ZodString;
|
|
7855
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
7856
|
+
id: z.ZodString;
|
|
7857
|
+
}, z.core.$strip>>;
|
|
7858
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
7859
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7860
|
+
type: z.ZodLiteral<"free">;
|
|
7861
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6729
7862
|
type: z.ZodLiteral<"flat">;
|
|
6730
7863
|
amount: z.ZodString;
|
|
6731
7864
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6823,6 +7956,336 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
|
6823
7956
|
}, z.core.$strip>;
|
|
6824
7957
|
}, z.core.$strip>;
|
|
6825
7958
|
}, z.core.$strip>;
|
|
7959
|
+
export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7960
|
+
id: z.ZodString;
|
|
7961
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7962
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7963
|
+
created_at: z.ZodString;
|
|
7964
|
+
updated_at: z.ZodString;
|
|
7965
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7966
|
+
number: z.ZodString;
|
|
7967
|
+
currency: z.ZodString;
|
|
7968
|
+
supplier: z.ZodObject<{
|
|
7969
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7970
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7971
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
7972
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7973
|
+
}, z.core.$strip>>;
|
|
7974
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
7975
|
+
billing_address: z.ZodObject<{
|
|
7976
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7977
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7978
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7979
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7980
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7981
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7982
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
7983
|
+
}, z.core.$strip>;
|
|
7984
|
+
}, z.core.$strip>>;
|
|
7985
|
+
}, z.core.$strip>;
|
|
7986
|
+
customer: z.ZodObject<{
|
|
7987
|
+
id: z.ZodString;
|
|
7988
|
+
name: z.ZodString;
|
|
7989
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
7990
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
7991
|
+
}, z.core.$strip>>;
|
|
7992
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
7993
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7994
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7995
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7996
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7997
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7998
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7999
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
8000
|
+
}, z.core.$strip>>;
|
|
8001
|
+
key: z.ZodOptional<z.ZodString>;
|
|
8002
|
+
}, z.core.$strip>;
|
|
8003
|
+
totals: z.ZodObject<{
|
|
8004
|
+
amount: z.ZodString;
|
|
8005
|
+
taxes_total: z.ZodString;
|
|
8006
|
+
taxes_inclusive_total: z.ZodString;
|
|
8007
|
+
taxes_exclusive_total: z.ZodString;
|
|
8008
|
+
charges_total: z.ZodString;
|
|
8009
|
+
discounts_total: z.ZodString;
|
|
8010
|
+
credits_total: z.ZodString;
|
|
8011
|
+
total: z.ZodString;
|
|
8012
|
+
}, z.core.$strip>;
|
|
8013
|
+
service_period: z.ZodObject<{
|
|
8014
|
+
from: z.ZodString;
|
|
8015
|
+
to: z.ZodString;
|
|
8016
|
+
}, z.core.$strip>;
|
|
8017
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8018
|
+
code: z.ZodString;
|
|
8019
|
+
message: z.ZodString;
|
|
8020
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8021
|
+
severity: z.ZodEnum<{
|
|
8022
|
+
critical: "critical";
|
|
8023
|
+
warning: "warning";
|
|
8024
|
+
}>;
|
|
8025
|
+
field: z.ZodOptional<z.ZodString>;
|
|
8026
|
+
}, z.core.$strip>>>;
|
|
8027
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8028
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8029
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
8030
|
+
}, z.core.$strip>>;
|
|
8031
|
+
type: z.ZodLiteral<"standard">;
|
|
8032
|
+
status: z.ZodEnum<{
|
|
8033
|
+
voided: "voided";
|
|
8034
|
+
draft: "draft";
|
|
8035
|
+
issuing: "issuing";
|
|
8036
|
+
issued: "issued";
|
|
8037
|
+
payment_processing: "payment_processing";
|
|
8038
|
+
overdue: "overdue";
|
|
8039
|
+
paid: "paid";
|
|
8040
|
+
uncollectible: "uncollectible";
|
|
8041
|
+
}>;
|
|
8042
|
+
status_details: z.ZodObject<{
|
|
8043
|
+
immutable: z.ZodBoolean;
|
|
8044
|
+
failed: z.ZodBoolean;
|
|
8045
|
+
extended_status: z.ZodString;
|
|
8046
|
+
available_actions: z.ZodObject<{
|
|
8047
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
8048
|
+
resulting_state: z.ZodString;
|
|
8049
|
+
}, z.core.$strip>>;
|
|
8050
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
8051
|
+
resulting_state: z.ZodString;
|
|
8052
|
+
}, z.core.$strip>>;
|
|
8053
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
8054
|
+
resulting_state: z.ZodString;
|
|
8055
|
+
}, z.core.$strip>>;
|
|
8056
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
8057
|
+
resulting_state: z.ZodString;
|
|
8058
|
+
}, z.core.$strip>>;
|
|
8059
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
8060
|
+
resulting_state: z.ZodString;
|
|
8061
|
+
}, z.core.$strip>>;
|
|
8062
|
+
}, z.core.$strip>;
|
|
8063
|
+
}, z.core.$strip>;
|
|
8064
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
8065
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
8066
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
8067
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
8068
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
8069
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
8070
|
+
workflow: z.ZodObject<{
|
|
8071
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
8072
|
+
tax: z.ZodObject<{
|
|
8073
|
+
id: z.ZodString;
|
|
8074
|
+
}, z.core.$strip>;
|
|
8075
|
+
invoicing: z.ZodObject<{
|
|
8076
|
+
id: z.ZodString;
|
|
8077
|
+
}, z.core.$strip>;
|
|
8078
|
+
payment: z.ZodObject<{
|
|
8079
|
+
id: z.ZodString;
|
|
8080
|
+
}, z.core.$strip>;
|
|
8081
|
+
}, z.core.$strip>>;
|
|
8082
|
+
source_billing_profile: z.ZodObject<{
|
|
8083
|
+
id: z.ZodString;
|
|
8084
|
+
}, z.core.$strip>;
|
|
8085
|
+
workflow: z.ZodObject<{
|
|
8086
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
8087
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8088
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8089
|
+
}, z.core.$strip>>;
|
|
8090
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8091
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
8092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8093
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
8094
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8095
|
+
}, z.core.$strip>], "collection_method">>;
|
|
8096
|
+
}, z.core.$strip>;
|
|
8097
|
+
}, z.core.$strip>;
|
|
8098
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8099
|
+
id: z.ZodString;
|
|
8100
|
+
name: z.ZodString;
|
|
8101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8102
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8103
|
+
created_at: z.ZodString;
|
|
8104
|
+
updated_at: z.ZodString;
|
|
8105
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8106
|
+
type: z.ZodLiteral<"standard_line">;
|
|
8107
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8108
|
+
manual: "manual";
|
|
8109
|
+
system: "system";
|
|
8110
|
+
}>;
|
|
8111
|
+
service_period: z.ZodObject<{
|
|
8112
|
+
from: z.ZodString;
|
|
8113
|
+
to: z.ZodString;
|
|
8114
|
+
}, z.core.$strip>;
|
|
8115
|
+
totals: z.ZodObject<{
|
|
8116
|
+
amount: z.ZodString;
|
|
8117
|
+
taxes_total: z.ZodString;
|
|
8118
|
+
taxes_inclusive_total: z.ZodString;
|
|
8119
|
+
taxes_exclusive_total: z.ZodString;
|
|
8120
|
+
charges_total: z.ZodString;
|
|
8121
|
+
discounts_total: z.ZodString;
|
|
8122
|
+
credits_total: z.ZodString;
|
|
8123
|
+
total: z.ZodString;
|
|
8124
|
+
}, z.core.$strip>;
|
|
8125
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8126
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8127
|
+
id: z.ZodString;
|
|
8128
|
+
reason: z.ZodEnum<{
|
|
8129
|
+
maximum_spend: "maximum_spend";
|
|
8130
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8131
|
+
ratecard_usage: "ratecard_usage";
|
|
8132
|
+
}>;
|
|
8133
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8134
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8135
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8136
|
+
}, z.core.$strip>>;
|
|
8137
|
+
amount: z.ZodString;
|
|
8138
|
+
}, z.core.$strip>>>;
|
|
8139
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8140
|
+
id: z.ZodString;
|
|
8141
|
+
reason: z.ZodEnum<{
|
|
8142
|
+
maximum_spend: "maximum_spend";
|
|
8143
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8144
|
+
ratecard_usage: "ratecard_usage";
|
|
8145
|
+
}>;
|
|
8146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8147
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8148
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8149
|
+
}, z.core.$strip>>;
|
|
8150
|
+
quantity: z.ZodString;
|
|
8151
|
+
}, z.core.$strip>>>;
|
|
8152
|
+
}, z.core.$strip>>;
|
|
8153
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8154
|
+
amount: z.ZodString;
|
|
8155
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8156
|
+
}, z.core.$strip>>>;
|
|
8157
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8158
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8159
|
+
}, z.core.$strip>>;
|
|
8160
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
8161
|
+
id: z.ZodString;
|
|
8162
|
+
phase: z.ZodObject<{
|
|
8163
|
+
id: z.ZodString;
|
|
8164
|
+
item: z.ZodObject<{
|
|
8165
|
+
id: z.ZodString;
|
|
8166
|
+
}, z.core.$strip>;
|
|
8167
|
+
}, z.core.$strip>;
|
|
8168
|
+
}, z.core.$strip>>;
|
|
8169
|
+
rate_card: z.ZodObject<{
|
|
8170
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8171
|
+
type: z.ZodLiteral<"free">;
|
|
8172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8173
|
+
type: z.ZodLiteral<"flat">;
|
|
8174
|
+
amount: z.ZodString;
|
|
8175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8176
|
+
type: z.ZodLiteral<"unit">;
|
|
8177
|
+
amount: z.ZodString;
|
|
8178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8179
|
+
type: z.ZodLiteral<"graduated">;
|
|
8180
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8181
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8182
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8183
|
+
type: z.ZodLiteral<"flat">;
|
|
8184
|
+
amount: z.ZodString;
|
|
8185
|
+
}, z.core.$strip>>;
|
|
8186
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8187
|
+
type: z.ZodLiteral<"unit">;
|
|
8188
|
+
amount: z.ZodString;
|
|
8189
|
+
}, z.core.$strip>>;
|
|
8190
|
+
}, z.core.$strip>>;
|
|
8191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8192
|
+
type: z.ZodLiteral<"volume">;
|
|
8193
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8194
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8195
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8196
|
+
type: z.ZodLiteral<"flat">;
|
|
8197
|
+
amount: z.ZodString;
|
|
8198
|
+
}, z.core.$strip>>;
|
|
8199
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8200
|
+
type: z.ZodLiteral<"unit">;
|
|
8201
|
+
amount: z.ZodString;
|
|
8202
|
+
}, z.core.$strip>>;
|
|
8203
|
+
}, z.core.$strip>>;
|
|
8204
|
+
}, z.core.$strip>], "type">;
|
|
8205
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8206
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8207
|
+
exclusive: "exclusive";
|
|
8208
|
+
inclusive: "inclusive";
|
|
8209
|
+
}>>;
|
|
8210
|
+
code: z.ZodObject<{
|
|
8211
|
+
id: z.ZodString;
|
|
8212
|
+
}, z.core.$strip>;
|
|
8213
|
+
}, z.core.$strip>>;
|
|
8214
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
8215
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8216
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8217
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
8218
|
+
}, z.core.$strip>>;
|
|
8219
|
+
}, z.core.$strip>;
|
|
8220
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
8221
|
+
id: z.ZodString;
|
|
8222
|
+
name: z.ZodString;
|
|
8223
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8224
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8225
|
+
created_at: z.ZodString;
|
|
8226
|
+
updated_at: z.ZodString;
|
|
8227
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8228
|
+
service_period: z.ZodObject<{
|
|
8229
|
+
from: z.ZodString;
|
|
8230
|
+
to: z.ZodString;
|
|
8231
|
+
}, z.core.$strip>;
|
|
8232
|
+
totals: z.ZodObject<{
|
|
8233
|
+
amount: z.ZodString;
|
|
8234
|
+
taxes_total: z.ZodString;
|
|
8235
|
+
taxes_inclusive_total: z.ZodString;
|
|
8236
|
+
taxes_exclusive_total: z.ZodString;
|
|
8237
|
+
charges_total: z.ZodString;
|
|
8238
|
+
discounts_total: z.ZodString;
|
|
8239
|
+
credits_total: z.ZodString;
|
|
8240
|
+
total: z.ZodString;
|
|
8241
|
+
}, z.core.$strip>;
|
|
8242
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
8243
|
+
regular: "regular";
|
|
8244
|
+
commitment: "commitment";
|
|
8245
|
+
}>>;
|
|
8246
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8247
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8248
|
+
id: z.ZodString;
|
|
8249
|
+
reason: z.ZodEnum<{
|
|
8250
|
+
maximum_spend: "maximum_spend";
|
|
8251
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8252
|
+
ratecard_usage: "ratecard_usage";
|
|
8253
|
+
}>;
|
|
8254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8255
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8256
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8257
|
+
}, z.core.$strip>>;
|
|
8258
|
+
amount: z.ZodString;
|
|
8259
|
+
}, z.core.$strip>>>;
|
|
8260
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8261
|
+
id: z.ZodString;
|
|
8262
|
+
reason: z.ZodEnum<{
|
|
8263
|
+
maximum_spend: "maximum_spend";
|
|
8264
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8265
|
+
ratecard_usage: "ratecard_usage";
|
|
8266
|
+
}>;
|
|
8267
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8268
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8269
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8270
|
+
}, z.core.$strip>>;
|
|
8271
|
+
quantity: z.ZodString;
|
|
8272
|
+
}, z.core.$strip>>>;
|
|
8273
|
+
}, z.core.$strip>>;
|
|
8274
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8275
|
+
amount: z.ZodString;
|
|
8276
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8277
|
+
}, z.core.$strip>>>;
|
|
8278
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8279
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8280
|
+
}, z.core.$strip>>;
|
|
8281
|
+
quantity: z.ZodString;
|
|
8282
|
+
unit_price: z.ZodString;
|
|
8283
|
+
}, z.core.$strip>>;
|
|
8284
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
8285
|
+
id: z.ZodString;
|
|
8286
|
+
}, z.core.$strip>>;
|
|
8287
|
+
}, z.core.$strip>], "type">>>;
|
|
8288
|
+
}, z.core.$strip>], "type">;
|
|
6826
8289
|
export declare const listMeteringEventsQueryParams: z.ZodObject<{
|
|
6827
8290
|
page: z.ZodOptional<z.ZodObject<{
|
|
6828
8291
|
size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8033,10 +9496,9 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
8033
9496
|
customer: z.ZodObject<{
|
|
8034
9497
|
id: z.ZodString;
|
|
8035
9498
|
}, z.core.$strip>;
|
|
8036
|
-
|
|
9499
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8037
9500
|
manual: "manual";
|
|
8038
9501
|
system: "system";
|
|
8039
|
-
subscription: "subscription";
|
|
8040
9502
|
}>;
|
|
8041
9503
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
8042
9504
|
id: z.ZodString;
|
|
@@ -8155,10 +9617,9 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
8155
9617
|
customer: z.ZodObject<{
|
|
8156
9618
|
id: z.ZodString;
|
|
8157
9619
|
}, z.core.$strip>;
|
|
8158
|
-
|
|
9620
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8159
9621
|
manual: "manual";
|
|
8160
9622
|
system: "system";
|
|
8161
|
-
subscription: "subscription";
|
|
8162
9623
|
}>;
|
|
8163
9624
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
8164
9625
|
id: z.ZodString;
|
|
@@ -8433,10 +9894,9 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8433
9894
|
customer: z.ZodObject<{
|
|
8434
9895
|
id: z.ZodString;
|
|
8435
9896
|
}, z.core.$strip>;
|
|
8436
|
-
|
|
9897
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8437
9898
|
manual: "manual";
|
|
8438
9899
|
system: "system";
|
|
8439
|
-
subscription: "subscription";
|
|
8440
9900
|
}>;
|
|
8441
9901
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
8442
9902
|
id: z.ZodString;
|
|
@@ -8555,10 +10015,9 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8555
10015
|
customer: z.ZodObject<{
|
|
8556
10016
|
id: z.ZodString;
|
|
8557
10017
|
}, z.core.$strip>;
|
|
8558
|
-
|
|
10018
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8559
10019
|
manual: "manual";
|
|
8560
10020
|
system: "system";
|
|
8561
|
-
subscription: "subscription";
|
|
8562
10021
|
}>;
|
|
8563
10022
|
subscription: z.ZodOptional<z.ZodObject<{
|
|
8564
10023
|
id: z.ZodString;
|
|
@@ -9679,6 +11138,339 @@ export declare const updateBillingProfileResponse: z.ZodObject<{
|
|
|
9679
11138
|
export declare const deleteBillingProfilePathParams: z.ZodObject<{
|
|
9680
11139
|
id: z.ZodString;
|
|
9681
11140
|
}, z.core.$strip>;
|
|
11141
|
+
export declare const getInvoicePathParams: z.ZodObject<{
|
|
11142
|
+
invoiceId: z.ZodString;
|
|
11143
|
+
}, z.core.$strip>;
|
|
11144
|
+
export declare const getInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11145
|
+
id: z.ZodString;
|
|
11146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11147
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11148
|
+
created_at: z.ZodString;
|
|
11149
|
+
updated_at: z.ZodString;
|
|
11150
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
11151
|
+
number: z.ZodString;
|
|
11152
|
+
currency: z.ZodString;
|
|
11153
|
+
supplier: z.ZodObject<{
|
|
11154
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11155
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11156
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
11157
|
+
code: z.ZodOptional<z.ZodString>;
|
|
11158
|
+
}, z.core.$strip>>;
|
|
11159
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
11160
|
+
billing_address: z.ZodObject<{
|
|
11161
|
+
country: z.ZodOptional<z.ZodString>;
|
|
11162
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
11163
|
+
state: z.ZodOptional<z.ZodString>;
|
|
11164
|
+
city: z.ZodOptional<z.ZodString>;
|
|
11165
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
11166
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
11167
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
11168
|
+
}, z.core.$strip>;
|
|
11169
|
+
}, z.core.$strip>>;
|
|
11170
|
+
}, z.core.$strip>;
|
|
11171
|
+
customer: z.ZodObject<{
|
|
11172
|
+
id: z.ZodString;
|
|
11173
|
+
name: z.ZodString;
|
|
11174
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
11175
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
11176
|
+
}, z.core.$strip>>;
|
|
11177
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
11178
|
+
country: z.ZodOptional<z.ZodString>;
|
|
11179
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
11180
|
+
state: z.ZodOptional<z.ZodString>;
|
|
11181
|
+
city: z.ZodOptional<z.ZodString>;
|
|
11182
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
11183
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
11184
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
11185
|
+
}, z.core.$strip>>;
|
|
11186
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11187
|
+
}, z.core.$strip>;
|
|
11188
|
+
totals: z.ZodObject<{
|
|
11189
|
+
amount: z.ZodString;
|
|
11190
|
+
taxes_total: z.ZodString;
|
|
11191
|
+
taxes_inclusive_total: z.ZodString;
|
|
11192
|
+
taxes_exclusive_total: z.ZodString;
|
|
11193
|
+
charges_total: z.ZodString;
|
|
11194
|
+
discounts_total: z.ZodString;
|
|
11195
|
+
credits_total: z.ZodString;
|
|
11196
|
+
total: z.ZodString;
|
|
11197
|
+
}, z.core.$strip>;
|
|
11198
|
+
service_period: z.ZodObject<{
|
|
11199
|
+
from: z.ZodString;
|
|
11200
|
+
to: z.ZodString;
|
|
11201
|
+
}, z.core.$strip>;
|
|
11202
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11203
|
+
code: z.ZodString;
|
|
11204
|
+
message: z.ZodString;
|
|
11205
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11206
|
+
severity: z.ZodEnum<{
|
|
11207
|
+
critical: "critical";
|
|
11208
|
+
warning: "warning";
|
|
11209
|
+
}>;
|
|
11210
|
+
field: z.ZodOptional<z.ZodString>;
|
|
11211
|
+
}, z.core.$strip>>>;
|
|
11212
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11213
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11214
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
11215
|
+
}, z.core.$strip>>;
|
|
11216
|
+
type: z.ZodLiteral<"standard">;
|
|
11217
|
+
status: z.ZodEnum<{
|
|
11218
|
+
voided: "voided";
|
|
11219
|
+
draft: "draft";
|
|
11220
|
+
issuing: "issuing";
|
|
11221
|
+
issued: "issued";
|
|
11222
|
+
payment_processing: "payment_processing";
|
|
11223
|
+
overdue: "overdue";
|
|
11224
|
+
paid: "paid";
|
|
11225
|
+
uncollectible: "uncollectible";
|
|
11226
|
+
}>;
|
|
11227
|
+
status_details: z.ZodObject<{
|
|
11228
|
+
immutable: z.ZodBoolean;
|
|
11229
|
+
failed: z.ZodBoolean;
|
|
11230
|
+
extended_status: z.ZodString;
|
|
11231
|
+
available_actions: z.ZodObject<{
|
|
11232
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
11233
|
+
resulting_state: z.ZodString;
|
|
11234
|
+
}, z.core.$strip>>;
|
|
11235
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
11236
|
+
resulting_state: z.ZodString;
|
|
11237
|
+
}, z.core.$strip>>;
|
|
11238
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
11239
|
+
resulting_state: z.ZodString;
|
|
11240
|
+
}, z.core.$strip>>;
|
|
11241
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
11242
|
+
resulting_state: z.ZodString;
|
|
11243
|
+
}, z.core.$strip>>;
|
|
11244
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
11245
|
+
resulting_state: z.ZodString;
|
|
11246
|
+
}, z.core.$strip>>;
|
|
11247
|
+
}, z.core.$strip>;
|
|
11248
|
+
}, z.core.$strip>;
|
|
11249
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
11250
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
11251
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
11252
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
11253
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
11254
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
11255
|
+
workflow: z.ZodObject<{
|
|
11256
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
11257
|
+
tax: z.ZodObject<{
|
|
11258
|
+
id: z.ZodString;
|
|
11259
|
+
}, z.core.$strip>;
|
|
11260
|
+
invoicing: z.ZodObject<{
|
|
11261
|
+
id: z.ZodString;
|
|
11262
|
+
}, z.core.$strip>;
|
|
11263
|
+
payment: z.ZodObject<{
|
|
11264
|
+
id: z.ZodString;
|
|
11265
|
+
}, z.core.$strip>;
|
|
11266
|
+
}, z.core.$strip>>;
|
|
11267
|
+
source_billing_profile: z.ZodObject<{
|
|
11268
|
+
id: z.ZodString;
|
|
11269
|
+
}, z.core.$strip>;
|
|
11270
|
+
workflow: z.ZodObject<{
|
|
11271
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
11272
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11273
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11274
|
+
}, z.core.$strip>>;
|
|
11275
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11276
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
11277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11278
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
11279
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11280
|
+
}, z.core.$strip>], "collection_method">>;
|
|
11281
|
+
}, z.core.$strip>;
|
|
11282
|
+
}, z.core.$strip>;
|
|
11283
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11284
|
+
id: z.ZodString;
|
|
11285
|
+
name: z.ZodString;
|
|
11286
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11287
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11288
|
+
created_at: z.ZodString;
|
|
11289
|
+
updated_at: z.ZodString;
|
|
11290
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
11291
|
+
type: z.ZodLiteral<"standard_line">;
|
|
11292
|
+
lifecycle_controller: z.ZodEnum<{
|
|
11293
|
+
manual: "manual";
|
|
11294
|
+
system: "system";
|
|
11295
|
+
}>;
|
|
11296
|
+
service_period: z.ZodObject<{
|
|
11297
|
+
from: z.ZodString;
|
|
11298
|
+
to: z.ZodString;
|
|
11299
|
+
}, z.core.$strip>;
|
|
11300
|
+
totals: z.ZodObject<{
|
|
11301
|
+
amount: z.ZodString;
|
|
11302
|
+
taxes_total: z.ZodString;
|
|
11303
|
+
taxes_inclusive_total: z.ZodString;
|
|
11304
|
+
taxes_exclusive_total: z.ZodString;
|
|
11305
|
+
charges_total: z.ZodString;
|
|
11306
|
+
discounts_total: z.ZodString;
|
|
11307
|
+
credits_total: z.ZodString;
|
|
11308
|
+
total: z.ZodString;
|
|
11309
|
+
}, z.core.$strip>;
|
|
11310
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
11311
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11312
|
+
id: z.ZodString;
|
|
11313
|
+
reason: z.ZodEnum<{
|
|
11314
|
+
maximum_spend: "maximum_spend";
|
|
11315
|
+
ratecard_percentage: "ratecard_percentage";
|
|
11316
|
+
ratecard_usage: "ratecard_usage";
|
|
11317
|
+
}>;
|
|
11318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11319
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11320
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11321
|
+
}, z.core.$strip>>;
|
|
11322
|
+
amount: z.ZodString;
|
|
11323
|
+
}, z.core.$strip>>>;
|
|
11324
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11325
|
+
id: z.ZodString;
|
|
11326
|
+
reason: z.ZodEnum<{
|
|
11327
|
+
maximum_spend: "maximum_spend";
|
|
11328
|
+
ratecard_percentage: "ratecard_percentage";
|
|
11329
|
+
ratecard_usage: "ratecard_usage";
|
|
11330
|
+
}>;
|
|
11331
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11332
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11333
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11334
|
+
}, z.core.$strip>>;
|
|
11335
|
+
quantity: z.ZodString;
|
|
11336
|
+
}, z.core.$strip>>>;
|
|
11337
|
+
}, z.core.$strip>>;
|
|
11338
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11339
|
+
amount: z.ZodString;
|
|
11340
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11341
|
+
}, z.core.$strip>>>;
|
|
11342
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11343
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11344
|
+
}, z.core.$strip>>;
|
|
11345
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
11346
|
+
id: z.ZodString;
|
|
11347
|
+
phase: z.ZodObject<{
|
|
11348
|
+
id: z.ZodString;
|
|
11349
|
+
item: z.ZodObject<{
|
|
11350
|
+
id: z.ZodString;
|
|
11351
|
+
}, z.core.$strip>;
|
|
11352
|
+
}, z.core.$strip>;
|
|
11353
|
+
}, z.core.$strip>>;
|
|
11354
|
+
rate_card: z.ZodObject<{
|
|
11355
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11356
|
+
type: z.ZodLiteral<"free">;
|
|
11357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11358
|
+
type: z.ZodLiteral<"flat">;
|
|
11359
|
+
amount: z.ZodString;
|
|
11360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11361
|
+
type: z.ZodLiteral<"unit">;
|
|
11362
|
+
amount: z.ZodString;
|
|
11363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11364
|
+
type: z.ZodLiteral<"graduated">;
|
|
11365
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
11366
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
11367
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
11368
|
+
type: z.ZodLiteral<"flat">;
|
|
11369
|
+
amount: z.ZodString;
|
|
11370
|
+
}, z.core.$strip>>;
|
|
11371
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
11372
|
+
type: z.ZodLiteral<"unit">;
|
|
11373
|
+
amount: z.ZodString;
|
|
11374
|
+
}, z.core.$strip>>;
|
|
11375
|
+
}, z.core.$strip>>;
|
|
11376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11377
|
+
type: z.ZodLiteral<"volume">;
|
|
11378
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
11379
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
11380
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
11381
|
+
type: z.ZodLiteral<"flat">;
|
|
11382
|
+
amount: z.ZodString;
|
|
11383
|
+
}, z.core.$strip>>;
|
|
11384
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
11385
|
+
type: z.ZodLiteral<"unit">;
|
|
11386
|
+
amount: z.ZodString;
|
|
11387
|
+
}, z.core.$strip>>;
|
|
11388
|
+
}, z.core.$strip>>;
|
|
11389
|
+
}, z.core.$strip>], "type">;
|
|
11390
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
11391
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
11392
|
+
exclusive: "exclusive";
|
|
11393
|
+
inclusive: "inclusive";
|
|
11394
|
+
}>>;
|
|
11395
|
+
code: z.ZodObject<{
|
|
11396
|
+
id: z.ZodString;
|
|
11397
|
+
}, z.core.$strip>;
|
|
11398
|
+
}, z.core.$strip>>;
|
|
11399
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
11400
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
11401
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
11402
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
11403
|
+
}, z.core.$strip>>;
|
|
11404
|
+
}, z.core.$strip>;
|
|
11405
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
11406
|
+
id: z.ZodString;
|
|
11407
|
+
name: z.ZodString;
|
|
11408
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11409
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11410
|
+
created_at: z.ZodString;
|
|
11411
|
+
updated_at: z.ZodString;
|
|
11412
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
11413
|
+
service_period: z.ZodObject<{
|
|
11414
|
+
from: z.ZodString;
|
|
11415
|
+
to: z.ZodString;
|
|
11416
|
+
}, z.core.$strip>;
|
|
11417
|
+
totals: z.ZodObject<{
|
|
11418
|
+
amount: z.ZodString;
|
|
11419
|
+
taxes_total: z.ZodString;
|
|
11420
|
+
taxes_inclusive_total: z.ZodString;
|
|
11421
|
+
taxes_exclusive_total: z.ZodString;
|
|
11422
|
+
charges_total: z.ZodString;
|
|
11423
|
+
discounts_total: z.ZodString;
|
|
11424
|
+
credits_total: z.ZodString;
|
|
11425
|
+
total: z.ZodString;
|
|
11426
|
+
}, z.core.$strip>;
|
|
11427
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
11428
|
+
regular: "regular";
|
|
11429
|
+
commitment: "commitment";
|
|
11430
|
+
}>>;
|
|
11431
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
11432
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11433
|
+
id: z.ZodString;
|
|
11434
|
+
reason: z.ZodEnum<{
|
|
11435
|
+
maximum_spend: "maximum_spend";
|
|
11436
|
+
ratecard_percentage: "ratecard_percentage";
|
|
11437
|
+
ratecard_usage: "ratecard_usage";
|
|
11438
|
+
}>;
|
|
11439
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11440
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11441
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11442
|
+
}, z.core.$strip>>;
|
|
11443
|
+
amount: z.ZodString;
|
|
11444
|
+
}, z.core.$strip>>>;
|
|
11445
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11446
|
+
id: z.ZodString;
|
|
11447
|
+
reason: z.ZodEnum<{
|
|
11448
|
+
maximum_spend: "maximum_spend";
|
|
11449
|
+
ratecard_percentage: "ratecard_percentage";
|
|
11450
|
+
ratecard_usage: "ratecard_usage";
|
|
11451
|
+
}>;
|
|
11452
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11453
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11454
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11455
|
+
}, z.core.$strip>>;
|
|
11456
|
+
quantity: z.ZodString;
|
|
11457
|
+
}, z.core.$strip>>>;
|
|
11458
|
+
}, z.core.$strip>>;
|
|
11459
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11460
|
+
amount: z.ZodString;
|
|
11461
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11462
|
+
}, z.core.$strip>>>;
|
|
11463
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
11464
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
11465
|
+
}, z.core.$strip>>;
|
|
11466
|
+
quantity: z.ZodString;
|
|
11467
|
+
unit_price: z.ZodString;
|
|
11468
|
+
}, z.core.$strip>>;
|
|
11469
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
11470
|
+
id: z.ZodString;
|
|
11471
|
+
}, z.core.$strip>>;
|
|
11472
|
+
}, z.core.$strip>], "type">>>;
|
|
11473
|
+
}, z.core.$strip>], "type">;
|
|
9682
11474
|
export declare const createTaxCodeBody: z.ZodObject<{
|
|
9683
11475
|
name: z.ZodString;
|
|
9684
11476
|
description: z.ZodOptional<z.ZodString>;
|