@openmeter/client 1.0.0-beta-1d51ec73a3d5 → 1.0.0-beta-488d1f16dc62
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 +17 -0
- package/dist/funcs/governance.d.ts +18 -0
- package/dist/funcs/governance.js +48 -0
- package/dist/funcs/index.d.ts +2 -0
- package/dist/funcs/index.js +2 -0
- package/dist/funcs/invoices.d.ts +51 -0
- package/dist/funcs/invoices.js +125 -0
- package/dist/index.d.ts +3 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/governance.d.ts +9 -0
- package/dist/models/operations/governance.js +2 -0
- package/dist/models/operations/invoices.d.ts +45 -0
- package/dist/models/operations/invoices.js +2 -0
- package/dist/models/schemas.d.ts +3498 -1002
- package/dist/models/schemas.js +72 -0
- package/dist/models/types.d.ts +59 -9
- package/dist/sdk/internal.d.ts +92 -1
- package/dist/sdk/internal.js +111 -0
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -13429,131 +13429,7 @@ export declare const updateBillingProfileResponse: z.ZodObject<{
|
|
|
13429
13429
|
export declare const deleteBillingProfilePathParams: z.ZodObject<{
|
|
13430
13430
|
id: z.ZodString;
|
|
13431
13431
|
}, z.core.$strip>;
|
|
13432
|
-
export declare const
|
|
13433
|
-
name: z.ZodString;
|
|
13434
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13435
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13436
|
-
key: z.ZodString;
|
|
13437
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13438
|
-
appType: z.ZodEnum<{
|
|
13439
|
-
sandbox: "sandbox";
|
|
13440
|
-
stripe: "stripe";
|
|
13441
|
-
external_invoicing: "external_invoicing";
|
|
13442
|
-
}>;
|
|
13443
|
-
taxCode: z.ZodString;
|
|
13444
|
-
}, z.core.$strip>>;
|
|
13445
|
-
}, z.core.$strip>;
|
|
13446
|
-
export declare const createTaxCodeResponse: z.ZodObject<{
|
|
13447
|
-
id: z.ZodString;
|
|
13448
|
-
name: z.ZodString;
|
|
13449
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13450
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13451
|
-
createdAt: z.ZodDate;
|
|
13452
|
-
updatedAt: z.ZodDate;
|
|
13453
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13454
|
-
key: z.ZodString;
|
|
13455
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13456
|
-
appType: z.ZodEnum<{
|
|
13457
|
-
sandbox: "sandbox";
|
|
13458
|
-
stripe: "stripe";
|
|
13459
|
-
external_invoicing: "external_invoicing";
|
|
13460
|
-
}>;
|
|
13461
|
-
taxCode: z.ZodString;
|
|
13462
|
-
}, z.core.$strip>>;
|
|
13463
|
-
}, z.core.$strip>;
|
|
13464
|
-
export declare const getTaxCodePathParams: z.ZodObject<{
|
|
13465
|
-
taxCodeId: z.ZodString;
|
|
13466
|
-
}, z.core.$strip>;
|
|
13467
|
-
export declare const getTaxCodeResponse: z.ZodObject<{
|
|
13468
|
-
id: z.ZodString;
|
|
13469
|
-
name: z.ZodString;
|
|
13470
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13471
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13472
|
-
createdAt: z.ZodDate;
|
|
13473
|
-
updatedAt: z.ZodDate;
|
|
13474
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13475
|
-
key: z.ZodString;
|
|
13476
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13477
|
-
appType: z.ZodEnum<{
|
|
13478
|
-
sandbox: "sandbox";
|
|
13479
|
-
stripe: "stripe";
|
|
13480
|
-
external_invoicing: "external_invoicing";
|
|
13481
|
-
}>;
|
|
13482
|
-
taxCode: z.ZodString;
|
|
13483
|
-
}, z.core.$strip>>;
|
|
13484
|
-
}, z.core.$strip>;
|
|
13485
|
-
export declare const listTaxCodesQueryParams: z.ZodObject<{
|
|
13486
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
13487
|
-
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13488
|
-
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13489
|
-
}, z.core.$strip>>;
|
|
13490
|
-
includeDeleted: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
13491
|
-
}, z.core.$strip>;
|
|
13492
|
-
export declare const listTaxCodesResponse: z.ZodObject<{
|
|
13493
|
-
data: z.ZodArray<z.ZodObject<{
|
|
13494
|
-
id: z.ZodString;
|
|
13495
|
-
name: z.ZodString;
|
|
13496
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13497
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13498
|
-
createdAt: z.ZodDate;
|
|
13499
|
-
updatedAt: z.ZodDate;
|
|
13500
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13501
|
-
key: z.ZodString;
|
|
13502
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13503
|
-
appType: z.ZodEnum<{
|
|
13504
|
-
sandbox: "sandbox";
|
|
13505
|
-
stripe: "stripe";
|
|
13506
|
-
external_invoicing: "external_invoicing";
|
|
13507
|
-
}>;
|
|
13508
|
-
taxCode: z.ZodString;
|
|
13509
|
-
}, z.core.$strip>>;
|
|
13510
|
-
}, z.core.$strip>>;
|
|
13511
|
-
meta: z.ZodObject<{
|
|
13512
|
-
page: z.ZodObject<{
|
|
13513
|
-
number: z.ZodNumber;
|
|
13514
|
-
size: z.ZodNumber;
|
|
13515
|
-
total: z.ZodNumber;
|
|
13516
|
-
}, z.core.$strip>;
|
|
13517
|
-
}, z.core.$strip>;
|
|
13518
|
-
}, z.core.$strip>;
|
|
13519
|
-
export declare const upsertTaxCodePathParams: z.ZodObject<{
|
|
13520
|
-
taxCodeId: z.ZodString;
|
|
13521
|
-
}, z.core.$strip>;
|
|
13522
|
-
export declare const upsertTaxCodeBody: z.ZodObject<{
|
|
13523
|
-
name: z.ZodString;
|
|
13524
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13525
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13526
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13527
|
-
appType: z.ZodEnum<{
|
|
13528
|
-
sandbox: "sandbox";
|
|
13529
|
-
stripe: "stripe";
|
|
13530
|
-
external_invoicing: "external_invoicing";
|
|
13531
|
-
}>;
|
|
13532
|
-
taxCode: z.ZodString;
|
|
13533
|
-
}, z.core.$strip>>;
|
|
13534
|
-
}, z.core.$strip>;
|
|
13535
|
-
export declare const upsertTaxCodeResponse: z.ZodObject<{
|
|
13536
|
-
id: z.ZodString;
|
|
13537
|
-
name: z.ZodString;
|
|
13538
|
-
description: z.ZodOptional<z.ZodString>;
|
|
13539
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13540
|
-
createdAt: z.ZodDate;
|
|
13541
|
-
updatedAt: z.ZodDate;
|
|
13542
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13543
|
-
key: z.ZodString;
|
|
13544
|
-
appMappings: z.ZodArray<z.ZodObject<{
|
|
13545
|
-
appType: z.ZodEnum<{
|
|
13546
|
-
sandbox: "sandbox";
|
|
13547
|
-
stripe: "stripe";
|
|
13548
|
-
external_invoicing: "external_invoicing";
|
|
13549
|
-
}>;
|
|
13550
|
-
taxCode: z.ZodString;
|
|
13551
|
-
}, z.core.$strip>>;
|
|
13552
|
-
}, z.core.$strip>;
|
|
13553
|
-
export declare const deleteTaxCodePathParams: z.ZodObject<{
|
|
13554
|
-
taxCodeId: z.ZodString;
|
|
13555
|
-
}, z.core.$strip>;
|
|
13556
|
-
export declare const listCurrenciesQueryParams: z.ZodObject<{
|
|
13432
|
+
export declare const listInvoicesQueryParams: z.ZodObject<{
|
|
13557
13433
|
page: z.ZodOptional<z.ZodObject<{
|
|
13558
13434
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13559
13435
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -13563,100 +13439,1394 @@ export declare const listCurrenciesQueryParams: z.ZodObject<{
|
|
|
13563
13439
|
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
13564
13440
|
}, z.core.$strip>>;
|
|
13565
13441
|
filter: z.ZodOptional<z.ZodObject<{
|
|
13566
|
-
|
|
13567
|
-
custom: "custom";
|
|
13568
|
-
fiat: "fiat";
|
|
13569
|
-
}>>;
|
|
13570
|
-
code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13442
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13571
13443
|
eq: z.ZodOptional<z.ZodString>;
|
|
13444
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13572
13445
|
neq: z.ZodOptional<z.ZodString>;
|
|
13573
|
-
|
|
13574
|
-
|
|
13446
|
+
}, z.core.$strip>]>>;
|
|
13447
|
+
customerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
13448
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
13575
13449
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13450
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
13451
|
+
}, z.core.$strip>]>>;
|
|
13452
|
+
issuedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodObject<{
|
|
13453
|
+
eq: z.ZodOptional<z.ZodDate>;
|
|
13454
|
+
lt: z.ZodOptional<z.ZodDate>;
|
|
13455
|
+
lte: z.ZodOptional<z.ZodDate>;
|
|
13456
|
+
gt: z.ZodOptional<z.ZodDate>;
|
|
13457
|
+
gte: z.ZodOptional<z.ZodDate>;
|
|
13458
|
+
}, z.core.$strip>]>>;
|
|
13459
|
+
servicePeriodStart: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodObject<{
|
|
13460
|
+
eq: z.ZodOptional<z.ZodDate>;
|
|
13461
|
+
lt: z.ZodOptional<z.ZodDate>;
|
|
13462
|
+
lte: z.ZodOptional<z.ZodDate>;
|
|
13463
|
+
gt: z.ZodOptional<z.ZodDate>;
|
|
13464
|
+
gte: z.ZodOptional<z.ZodDate>;
|
|
13465
|
+
}, z.core.$strip>]>>;
|
|
13466
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodObject<{
|
|
13467
|
+
eq: z.ZodOptional<z.ZodDate>;
|
|
13468
|
+
lt: z.ZodOptional<z.ZodDate>;
|
|
13469
|
+
lte: z.ZodOptional<z.ZodDate>;
|
|
13470
|
+
gt: z.ZodOptional<z.ZodDate>;
|
|
13471
|
+
gte: z.ZodOptional<z.ZodDate>;
|
|
13581
13472
|
}, z.core.$strip>]>>;
|
|
13582
13473
|
}, z.core.$strip>>;
|
|
13583
13474
|
}, z.core.$strip>;
|
|
13584
|
-
export declare const
|
|
13475
|
+
export declare const listInvoicesResponse: z.ZodObject<{
|
|
13585
13476
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13586
|
-
type: z.ZodLiteral<"fiat">;
|
|
13587
|
-
name: z.ZodString;
|
|
13588
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
13589
|
-
code: z.ZodString;
|
|
13590
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13591
|
-
type: z.ZodLiteral<"custom">;
|
|
13592
|
-
name: z.ZodString;
|
|
13593
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
13594
|
-
id: z.ZodString;
|
|
13595
|
-
code: z.ZodString;
|
|
13596
|
-
createdAt: z.ZodDate;
|
|
13597
|
-
}, z.core.$strip>], "type">>;
|
|
13598
|
-
meta: z.ZodObject<{
|
|
13599
|
-
page: z.ZodObject<{
|
|
13600
|
-
number: z.ZodNumber;
|
|
13601
|
-
size: z.ZodNumber;
|
|
13602
|
-
total: z.ZodNumber;
|
|
13603
|
-
}, z.core.$strip>;
|
|
13604
|
-
}, z.core.$strip>;
|
|
13605
|
-
}, z.core.$strip>;
|
|
13606
|
-
export declare const createCustomCurrencyBody: z.ZodObject<{
|
|
13607
|
-
name: z.ZodString;
|
|
13608
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
13609
|
-
code: z.ZodString;
|
|
13610
|
-
}, z.core.$strip>;
|
|
13611
|
-
export declare const createCustomCurrencyResponse: z.ZodObject<{
|
|
13612
|
-
type: z.ZodLiteral<"custom">;
|
|
13613
|
-
name: z.ZodString;
|
|
13614
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
13615
|
-
id: z.ZodString;
|
|
13616
|
-
code: z.ZodString;
|
|
13617
|
-
createdAt: z.ZodDate;
|
|
13618
|
-
}, z.core.$strip>;
|
|
13619
|
-
export declare const listCostBasesPathParams: z.ZodObject<{
|
|
13620
|
-
currencyId: z.ZodString;
|
|
13621
|
-
}, z.core.$strip>;
|
|
13622
|
-
export declare const listCostBasesQueryParams: z.ZodObject<{
|
|
13623
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
13624
|
-
fiatCode: z.ZodOptional<z.ZodString>;
|
|
13625
|
-
}, z.core.$strip>>;
|
|
13626
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
13627
|
-
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13628
|
-
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13629
|
-
}, z.core.$strip>>;
|
|
13630
|
-
}, z.core.$strip>;
|
|
13631
|
-
export declare const listCostBasesResponse: z.ZodObject<{
|
|
13632
|
-
data: z.ZodArray<z.ZodObject<{
|
|
13633
13477
|
id: z.ZodString;
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
13637
|
-
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
13478
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13479
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13638
13480
|
createdAt: z.ZodDate;
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13481
|
+
updatedAt: z.ZodDate;
|
|
13482
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13483
|
+
number: z.ZodString;
|
|
13484
|
+
currency: z.ZodString;
|
|
13485
|
+
supplier: z.ZodObject<{
|
|
13486
|
+
name: z.ZodOptional<z.ZodString>;
|
|
13487
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
13488
|
+
code: z.ZodOptional<z.ZodString>;
|
|
13489
|
+
}, z.core.$strip>>;
|
|
13490
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
13491
|
+
billingAddress: z.ZodObject<{
|
|
13492
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13493
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
13494
|
+
state: z.ZodOptional<z.ZodString>;
|
|
13495
|
+
city: z.ZodOptional<z.ZodString>;
|
|
13496
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
13497
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
13498
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
13499
|
+
}, z.core.$strip>;
|
|
13500
|
+
}, z.core.$strip>>;
|
|
13501
|
+
id: z.ZodOptional<z.ZodString>;
|
|
13645
13502
|
}, z.core.$strip>;
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
}, z.core.$strip
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13503
|
+
customer: z.ZodObject<{
|
|
13504
|
+
name: z.ZodString;
|
|
13505
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
13506
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
13507
|
+
}, z.core.$strip>>;
|
|
13508
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
13509
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13510
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
13511
|
+
state: z.ZodOptional<z.ZodString>;
|
|
13512
|
+
city: z.ZodOptional<z.ZodString>;
|
|
13513
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
13514
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
13515
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
13516
|
+
}, z.core.$strip>>;
|
|
13517
|
+
id: z.ZodString;
|
|
13518
|
+
key: z.ZodOptional<z.ZodString>;
|
|
13519
|
+
}, z.core.$strip>;
|
|
13520
|
+
totals: z.ZodObject<{
|
|
13521
|
+
amount: z.ZodString;
|
|
13522
|
+
taxesTotal: z.ZodString;
|
|
13523
|
+
taxesInclusiveTotal: z.ZodString;
|
|
13524
|
+
taxesExclusiveTotal: z.ZodString;
|
|
13525
|
+
chargesTotal: z.ZodString;
|
|
13526
|
+
discountsTotal: z.ZodString;
|
|
13527
|
+
creditsTotal: z.ZodString;
|
|
13528
|
+
total: z.ZodString;
|
|
13529
|
+
}, z.core.$strip>;
|
|
13530
|
+
servicePeriod: z.ZodObject<{
|
|
13531
|
+
from: z.ZodDate;
|
|
13532
|
+
to: z.ZodDate;
|
|
13533
|
+
}, z.core.$strip>;
|
|
13534
|
+
validationIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13535
|
+
code: z.ZodString;
|
|
13536
|
+
message: z.ZodString;
|
|
13537
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13538
|
+
severity: z.ZodEnum<{
|
|
13539
|
+
critical: "critical";
|
|
13540
|
+
warning: "warning";
|
|
13541
|
+
}>;
|
|
13542
|
+
field: z.ZodOptional<z.ZodString>;
|
|
13543
|
+
}, z.core.$strip>>>;
|
|
13544
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13545
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13546
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
13547
|
+
}, z.core.$strip>>;
|
|
13548
|
+
type: z.ZodLiteral<"standard">;
|
|
13549
|
+
status: z.ZodEnum<{
|
|
13550
|
+
voided: "voided";
|
|
13551
|
+
draft: "draft";
|
|
13552
|
+
issuing: "issuing";
|
|
13553
|
+
issued: "issued";
|
|
13554
|
+
payment_processing: "payment_processing";
|
|
13555
|
+
overdue: "overdue";
|
|
13556
|
+
paid: "paid";
|
|
13557
|
+
uncollectible: "uncollectible";
|
|
13558
|
+
}>;
|
|
13559
|
+
statusDetails: z.ZodObject<{
|
|
13560
|
+
immutable: z.ZodBoolean;
|
|
13561
|
+
failed: z.ZodBoolean;
|
|
13562
|
+
extendedStatus: z.ZodString;
|
|
13563
|
+
availableActions: z.ZodObject<{
|
|
13564
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
13565
|
+
resultingState: z.ZodString;
|
|
13566
|
+
}, z.core.$strip>>;
|
|
13567
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
13568
|
+
resultingState: z.ZodString;
|
|
13569
|
+
}, z.core.$strip>>;
|
|
13570
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
13571
|
+
resultingState: z.ZodString;
|
|
13572
|
+
}, z.core.$strip>>;
|
|
13573
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
13574
|
+
resultingState: z.ZodString;
|
|
13575
|
+
}, z.core.$strip>>;
|
|
13576
|
+
snapshotQuantities: z.ZodOptional<z.ZodObject<{
|
|
13577
|
+
resultingState: z.ZodString;
|
|
13578
|
+
}, z.core.$strip>>;
|
|
13579
|
+
}, z.core.$strip>;
|
|
13580
|
+
}, z.core.$strip>;
|
|
13581
|
+
issuedAt: z.ZodOptional<z.ZodDate>;
|
|
13582
|
+
draftUntil: z.ZodOptional<z.ZodDate>;
|
|
13583
|
+
quantitySnapshottedAt: z.ZodOptional<z.ZodDate>;
|
|
13584
|
+
collectionAt: z.ZodOptional<z.ZodDate>;
|
|
13585
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
13586
|
+
sentToCustomerAt: z.ZodOptional<z.ZodDate>;
|
|
13587
|
+
workflow: z.ZodObject<{
|
|
13588
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
13589
|
+
tax: z.ZodObject<{
|
|
13590
|
+
id: z.ZodString;
|
|
13591
|
+
}, z.core.$strip>;
|
|
13592
|
+
invoicing: z.ZodObject<{
|
|
13593
|
+
id: z.ZodString;
|
|
13594
|
+
}, z.core.$strip>;
|
|
13595
|
+
payment: z.ZodObject<{
|
|
13596
|
+
id: z.ZodString;
|
|
13597
|
+
}, z.core.$strip>;
|
|
13598
|
+
}, z.core.$strip>>;
|
|
13599
|
+
sourceBillingProfile: z.ZodObject<{
|
|
13600
|
+
id: z.ZodString;
|
|
13601
|
+
}, z.core.$strip>;
|
|
13602
|
+
workflow: z.ZodObject<{
|
|
13603
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
13604
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13605
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
13606
|
+
dueAfter: z.ZodOptional<z.ZodString>;
|
|
13607
|
+
}, z.core.$strip>>;
|
|
13608
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13609
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
13610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13611
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
13612
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
13613
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
13614
|
+
}, z.core.$strip>;
|
|
13615
|
+
}, z.core.$strip>;
|
|
13616
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13617
|
+
name: z.ZodString;
|
|
13618
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13619
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13620
|
+
createdAt: z.ZodDate;
|
|
13621
|
+
updatedAt: z.ZodDate;
|
|
13622
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13623
|
+
id: z.ZodOptional<z.ZodString>;
|
|
13624
|
+
type: z.ZodLiteral<"standard_line">;
|
|
13625
|
+
lifecycleController: z.ZodEnum<{
|
|
13626
|
+
manual: "manual";
|
|
13627
|
+
system: "system";
|
|
13628
|
+
}>;
|
|
13629
|
+
servicePeriod: z.ZodObject<{
|
|
13630
|
+
from: z.ZodDate;
|
|
13631
|
+
to: z.ZodDate;
|
|
13632
|
+
}, z.core.$strip>;
|
|
13633
|
+
totals: z.ZodObject<{
|
|
13634
|
+
amount: z.ZodString;
|
|
13635
|
+
taxesTotal: z.ZodString;
|
|
13636
|
+
taxesInclusiveTotal: z.ZodString;
|
|
13637
|
+
taxesExclusiveTotal: z.ZodString;
|
|
13638
|
+
chargesTotal: z.ZodString;
|
|
13639
|
+
discountsTotal: z.ZodString;
|
|
13640
|
+
creditsTotal: z.ZodString;
|
|
13641
|
+
total: z.ZodString;
|
|
13642
|
+
}, z.core.$strip>;
|
|
13643
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
13644
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13645
|
+
id: z.ZodString;
|
|
13646
|
+
reason: z.ZodEnum<{
|
|
13647
|
+
maximum_spend: "maximum_spend";
|
|
13648
|
+
ratecard_percentage: "ratecard_percentage";
|
|
13649
|
+
ratecard_usage: "ratecard_usage";
|
|
13650
|
+
}>;
|
|
13651
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13652
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13653
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13654
|
+
}, z.core.$strip>>;
|
|
13655
|
+
amount: z.ZodString;
|
|
13656
|
+
}, z.core.$strip>>>;
|
|
13657
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13658
|
+
id: z.ZodString;
|
|
13659
|
+
reason: z.ZodEnum<{
|
|
13660
|
+
maximum_spend: "maximum_spend";
|
|
13661
|
+
ratecard_percentage: "ratecard_percentage";
|
|
13662
|
+
ratecard_usage: "ratecard_usage";
|
|
13663
|
+
}>;
|
|
13664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13665
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13666
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13667
|
+
}, z.core.$strip>>;
|
|
13668
|
+
quantity: z.ZodString;
|
|
13669
|
+
}, z.core.$strip>>>;
|
|
13670
|
+
}, z.core.$strip>>;
|
|
13671
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13672
|
+
amount: z.ZodString;
|
|
13673
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13674
|
+
}, z.core.$strip>>>;
|
|
13675
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13676
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13677
|
+
}, z.core.$strip>>;
|
|
13678
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
13679
|
+
id: z.ZodString;
|
|
13680
|
+
phase: z.ZodObject<{
|
|
13681
|
+
id: z.ZodString;
|
|
13682
|
+
item: z.ZodObject<{
|
|
13683
|
+
id: z.ZodString;
|
|
13684
|
+
}, z.core.$strip>;
|
|
13685
|
+
}, z.core.$strip>;
|
|
13686
|
+
}, z.core.$strip>>;
|
|
13687
|
+
rateCard: z.ZodObject<{
|
|
13688
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13689
|
+
type: z.ZodLiteral<"free">;
|
|
13690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13691
|
+
type: z.ZodLiteral<"flat">;
|
|
13692
|
+
amount: z.ZodString;
|
|
13693
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13694
|
+
type: z.ZodLiteral<"unit">;
|
|
13695
|
+
amount: z.ZodString;
|
|
13696
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13697
|
+
type: z.ZodLiteral<"graduated">;
|
|
13698
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
13699
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
13700
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
13701
|
+
type: z.ZodLiteral<"flat">;
|
|
13702
|
+
amount: z.ZodString;
|
|
13703
|
+
}, z.core.$strip>>;
|
|
13704
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
13705
|
+
type: z.ZodLiteral<"unit">;
|
|
13706
|
+
amount: z.ZodString;
|
|
13707
|
+
}, z.core.$strip>>;
|
|
13708
|
+
}, z.core.$strip>>;
|
|
13709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13710
|
+
type: z.ZodLiteral<"volume">;
|
|
13711
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
13712
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
13713
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
13714
|
+
type: z.ZodLiteral<"flat">;
|
|
13715
|
+
amount: z.ZodString;
|
|
13716
|
+
}, z.core.$strip>>;
|
|
13717
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
13718
|
+
type: z.ZodLiteral<"unit">;
|
|
13719
|
+
amount: z.ZodString;
|
|
13720
|
+
}, z.core.$strip>>;
|
|
13721
|
+
}, z.core.$strip>>;
|
|
13722
|
+
}, z.core.$strip>], "type">;
|
|
13723
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
13724
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
13725
|
+
exclusive: "exclusive";
|
|
13726
|
+
inclusive: "inclusive";
|
|
13727
|
+
}>>;
|
|
13728
|
+
code: z.ZodObject<{
|
|
13729
|
+
id: z.ZodString;
|
|
13730
|
+
}, z.core.$strip>;
|
|
13731
|
+
}, z.core.$strip>>;
|
|
13732
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
13733
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
13734
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
13735
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
13736
|
+
}, z.core.$strip>>;
|
|
13737
|
+
}, z.core.$strip>;
|
|
13738
|
+
detailedLines: z.ZodArray<z.ZodObject<{
|
|
13739
|
+
id: z.ZodString;
|
|
13740
|
+
name: z.ZodString;
|
|
13741
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13742
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13743
|
+
createdAt: z.ZodDate;
|
|
13744
|
+
updatedAt: z.ZodDate;
|
|
13745
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13746
|
+
servicePeriod: z.ZodObject<{
|
|
13747
|
+
from: z.ZodDate;
|
|
13748
|
+
to: z.ZodDate;
|
|
13749
|
+
}, z.core.$strip>;
|
|
13750
|
+
totals: z.ZodObject<{
|
|
13751
|
+
amount: z.ZodString;
|
|
13752
|
+
taxesTotal: z.ZodString;
|
|
13753
|
+
taxesInclusiveTotal: z.ZodString;
|
|
13754
|
+
taxesExclusiveTotal: z.ZodString;
|
|
13755
|
+
chargesTotal: z.ZodString;
|
|
13756
|
+
discountsTotal: z.ZodString;
|
|
13757
|
+
creditsTotal: z.ZodString;
|
|
13758
|
+
total: z.ZodString;
|
|
13759
|
+
}, z.core.$strip>;
|
|
13760
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
13761
|
+
regular: "regular";
|
|
13762
|
+
commitment: "commitment";
|
|
13763
|
+
}>>;
|
|
13764
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
13765
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13766
|
+
id: z.ZodString;
|
|
13767
|
+
reason: z.ZodEnum<{
|
|
13768
|
+
maximum_spend: "maximum_spend";
|
|
13769
|
+
ratecard_percentage: "ratecard_percentage";
|
|
13770
|
+
ratecard_usage: "ratecard_usage";
|
|
13771
|
+
}>;
|
|
13772
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13773
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13774
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13775
|
+
}, z.core.$strip>>;
|
|
13776
|
+
amount: z.ZodString;
|
|
13777
|
+
}, z.core.$strip>>>;
|
|
13778
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13779
|
+
id: z.ZodString;
|
|
13780
|
+
reason: z.ZodEnum<{
|
|
13781
|
+
maximum_spend: "maximum_spend";
|
|
13782
|
+
ratecard_percentage: "ratecard_percentage";
|
|
13783
|
+
ratecard_usage: "ratecard_usage";
|
|
13784
|
+
}>;
|
|
13785
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13786
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13787
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13788
|
+
}, z.core.$strip>>;
|
|
13789
|
+
quantity: z.ZodString;
|
|
13790
|
+
}, z.core.$strip>>>;
|
|
13791
|
+
}, z.core.$strip>>;
|
|
13792
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13793
|
+
amount: z.ZodString;
|
|
13794
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13795
|
+
}, z.core.$strip>>>;
|
|
13796
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13797
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13798
|
+
}, z.core.$strip>>;
|
|
13799
|
+
quantity: z.ZodString;
|
|
13800
|
+
unitPrice: z.ZodString;
|
|
13801
|
+
}, z.core.$strip>>;
|
|
13802
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
13803
|
+
id: z.ZodString;
|
|
13804
|
+
}, z.core.$strip>>;
|
|
13805
|
+
}, z.core.$strip>], "type">>>;
|
|
13806
|
+
}, z.core.$strip>], "type">>;
|
|
13807
|
+
meta: z.ZodObject<{
|
|
13808
|
+
page: z.ZodObject<{
|
|
13809
|
+
number: z.ZodNumber;
|
|
13810
|
+
size: z.ZodNumber;
|
|
13811
|
+
total: z.ZodNumber;
|
|
13812
|
+
}, z.core.$strip>;
|
|
13813
|
+
}, z.core.$strip>;
|
|
13814
|
+
}, z.core.$strip>;
|
|
13815
|
+
export declare const getInvoicePathParams: z.ZodObject<{
|
|
13816
|
+
invoiceId: z.ZodString;
|
|
13817
|
+
}, z.core.$strip>;
|
|
13818
|
+
export declare const getInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13819
|
+
id: z.ZodString;
|
|
13820
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13821
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13822
|
+
createdAt: z.ZodDate;
|
|
13823
|
+
updatedAt: z.ZodDate;
|
|
13824
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13825
|
+
number: z.ZodString;
|
|
13826
|
+
currency: z.ZodString;
|
|
13827
|
+
supplier: z.ZodObject<{
|
|
13828
|
+
name: z.ZodOptional<z.ZodString>;
|
|
13829
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
13830
|
+
code: z.ZodOptional<z.ZodString>;
|
|
13831
|
+
}, z.core.$strip>>;
|
|
13832
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
13833
|
+
billingAddress: z.ZodObject<{
|
|
13834
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13835
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
13836
|
+
state: z.ZodOptional<z.ZodString>;
|
|
13837
|
+
city: z.ZodOptional<z.ZodString>;
|
|
13838
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
13839
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
13840
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
13841
|
+
}, z.core.$strip>;
|
|
13842
|
+
}, z.core.$strip>>;
|
|
13843
|
+
id: z.ZodOptional<z.ZodString>;
|
|
13844
|
+
}, z.core.$strip>;
|
|
13845
|
+
customer: z.ZodObject<{
|
|
13846
|
+
name: z.ZodString;
|
|
13847
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
13848
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
13849
|
+
}, z.core.$strip>>;
|
|
13850
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
13851
|
+
country: z.ZodOptional<z.ZodString>;
|
|
13852
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
13853
|
+
state: z.ZodOptional<z.ZodString>;
|
|
13854
|
+
city: z.ZodOptional<z.ZodString>;
|
|
13855
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
13856
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
13857
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
13858
|
+
}, z.core.$strip>>;
|
|
13859
|
+
id: z.ZodString;
|
|
13860
|
+
key: z.ZodOptional<z.ZodString>;
|
|
13861
|
+
}, z.core.$strip>;
|
|
13862
|
+
totals: z.ZodObject<{
|
|
13863
|
+
amount: z.ZodString;
|
|
13864
|
+
taxesTotal: z.ZodString;
|
|
13865
|
+
taxesInclusiveTotal: z.ZodString;
|
|
13866
|
+
taxesExclusiveTotal: z.ZodString;
|
|
13867
|
+
chargesTotal: z.ZodString;
|
|
13868
|
+
discountsTotal: z.ZodString;
|
|
13869
|
+
creditsTotal: z.ZodString;
|
|
13870
|
+
total: z.ZodString;
|
|
13871
|
+
}, z.core.$strip>;
|
|
13872
|
+
servicePeriod: z.ZodObject<{
|
|
13873
|
+
from: z.ZodDate;
|
|
13874
|
+
to: z.ZodDate;
|
|
13875
|
+
}, z.core.$strip>;
|
|
13876
|
+
validationIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13877
|
+
code: z.ZodString;
|
|
13878
|
+
message: z.ZodString;
|
|
13879
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13880
|
+
severity: z.ZodEnum<{
|
|
13881
|
+
critical: "critical";
|
|
13882
|
+
warning: "warning";
|
|
13883
|
+
}>;
|
|
13884
|
+
field: z.ZodOptional<z.ZodString>;
|
|
13885
|
+
}, z.core.$strip>>>;
|
|
13886
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13887
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13888
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
13889
|
+
}, z.core.$strip>>;
|
|
13890
|
+
type: z.ZodLiteral<"standard">;
|
|
13891
|
+
status: z.ZodEnum<{
|
|
13892
|
+
voided: "voided";
|
|
13893
|
+
draft: "draft";
|
|
13894
|
+
issuing: "issuing";
|
|
13895
|
+
issued: "issued";
|
|
13896
|
+
payment_processing: "payment_processing";
|
|
13897
|
+
overdue: "overdue";
|
|
13898
|
+
paid: "paid";
|
|
13899
|
+
uncollectible: "uncollectible";
|
|
13900
|
+
}>;
|
|
13901
|
+
statusDetails: z.ZodObject<{
|
|
13902
|
+
immutable: z.ZodBoolean;
|
|
13903
|
+
failed: z.ZodBoolean;
|
|
13904
|
+
extendedStatus: z.ZodString;
|
|
13905
|
+
availableActions: z.ZodObject<{
|
|
13906
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
13907
|
+
resultingState: z.ZodString;
|
|
13908
|
+
}, z.core.$strip>>;
|
|
13909
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
13910
|
+
resultingState: z.ZodString;
|
|
13911
|
+
}, z.core.$strip>>;
|
|
13912
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
13913
|
+
resultingState: z.ZodString;
|
|
13914
|
+
}, z.core.$strip>>;
|
|
13915
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
13916
|
+
resultingState: z.ZodString;
|
|
13917
|
+
}, z.core.$strip>>;
|
|
13918
|
+
snapshotQuantities: z.ZodOptional<z.ZodObject<{
|
|
13919
|
+
resultingState: z.ZodString;
|
|
13920
|
+
}, z.core.$strip>>;
|
|
13921
|
+
}, z.core.$strip>;
|
|
13922
|
+
}, z.core.$strip>;
|
|
13923
|
+
issuedAt: z.ZodOptional<z.ZodDate>;
|
|
13924
|
+
draftUntil: z.ZodOptional<z.ZodDate>;
|
|
13925
|
+
quantitySnapshottedAt: z.ZodOptional<z.ZodDate>;
|
|
13926
|
+
collectionAt: z.ZodOptional<z.ZodDate>;
|
|
13927
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
13928
|
+
sentToCustomerAt: z.ZodOptional<z.ZodDate>;
|
|
13929
|
+
workflow: z.ZodObject<{
|
|
13930
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
13931
|
+
tax: z.ZodObject<{
|
|
13932
|
+
id: z.ZodString;
|
|
13933
|
+
}, z.core.$strip>;
|
|
13934
|
+
invoicing: z.ZodObject<{
|
|
13935
|
+
id: z.ZodString;
|
|
13936
|
+
}, z.core.$strip>;
|
|
13937
|
+
payment: z.ZodObject<{
|
|
13938
|
+
id: z.ZodString;
|
|
13939
|
+
}, z.core.$strip>;
|
|
13940
|
+
}, z.core.$strip>>;
|
|
13941
|
+
sourceBillingProfile: z.ZodObject<{
|
|
13942
|
+
id: z.ZodString;
|
|
13943
|
+
}, z.core.$strip>;
|
|
13944
|
+
workflow: z.ZodObject<{
|
|
13945
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
13946
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13947
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
13948
|
+
dueAfter: z.ZodOptional<z.ZodString>;
|
|
13949
|
+
}, z.core.$strip>>;
|
|
13950
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13951
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
13952
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13953
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
13954
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
13955
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
13956
|
+
}, z.core.$strip>;
|
|
13957
|
+
}, z.core.$strip>;
|
|
13958
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13959
|
+
name: z.ZodString;
|
|
13960
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13961
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13962
|
+
createdAt: z.ZodDate;
|
|
13963
|
+
updatedAt: z.ZodDate;
|
|
13964
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
13965
|
+
id: z.ZodOptional<z.ZodString>;
|
|
13966
|
+
type: z.ZodLiteral<"standard_line">;
|
|
13967
|
+
lifecycleController: z.ZodEnum<{
|
|
13968
|
+
manual: "manual";
|
|
13969
|
+
system: "system";
|
|
13970
|
+
}>;
|
|
13971
|
+
servicePeriod: z.ZodObject<{
|
|
13972
|
+
from: z.ZodDate;
|
|
13973
|
+
to: z.ZodDate;
|
|
13974
|
+
}, z.core.$strip>;
|
|
13975
|
+
totals: z.ZodObject<{
|
|
13976
|
+
amount: z.ZodString;
|
|
13977
|
+
taxesTotal: z.ZodString;
|
|
13978
|
+
taxesInclusiveTotal: z.ZodString;
|
|
13979
|
+
taxesExclusiveTotal: z.ZodString;
|
|
13980
|
+
chargesTotal: z.ZodString;
|
|
13981
|
+
discountsTotal: z.ZodString;
|
|
13982
|
+
creditsTotal: z.ZodString;
|
|
13983
|
+
total: z.ZodString;
|
|
13984
|
+
}, z.core.$strip>;
|
|
13985
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
13986
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13987
|
+
id: z.ZodString;
|
|
13988
|
+
reason: z.ZodEnum<{
|
|
13989
|
+
maximum_spend: "maximum_spend";
|
|
13990
|
+
ratecard_percentage: "ratecard_percentage";
|
|
13991
|
+
ratecard_usage: "ratecard_usage";
|
|
13992
|
+
}>;
|
|
13993
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13994
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
13995
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
13996
|
+
}, z.core.$strip>>;
|
|
13997
|
+
amount: z.ZodString;
|
|
13998
|
+
}, z.core.$strip>>>;
|
|
13999
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14000
|
+
id: z.ZodString;
|
|
14001
|
+
reason: z.ZodEnum<{
|
|
14002
|
+
maximum_spend: "maximum_spend";
|
|
14003
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14004
|
+
ratecard_usage: "ratecard_usage";
|
|
14005
|
+
}>;
|
|
14006
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14007
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14008
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14009
|
+
}, z.core.$strip>>;
|
|
14010
|
+
quantity: z.ZodString;
|
|
14011
|
+
}, z.core.$strip>>>;
|
|
14012
|
+
}, z.core.$strip>>;
|
|
14013
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14014
|
+
amount: z.ZodString;
|
|
14015
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14016
|
+
}, z.core.$strip>>>;
|
|
14017
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14018
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14019
|
+
}, z.core.$strip>>;
|
|
14020
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
14021
|
+
id: z.ZodString;
|
|
14022
|
+
phase: z.ZodObject<{
|
|
14023
|
+
id: z.ZodString;
|
|
14024
|
+
item: z.ZodObject<{
|
|
14025
|
+
id: z.ZodString;
|
|
14026
|
+
}, z.core.$strip>;
|
|
14027
|
+
}, z.core.$strip>;
|
|
14028
|
+
}, z.core.$strip>>;
|
|
14029
|
+
rateCard: z.ZodObject<{
|
|
14030
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14031
|
+
type: z.ZodLiteral<"free">;
|
|
14032
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14033
|
+
type: z.ZodLiteral<"flat">;
|
|
14034
|
+
amount: z.ZodString;
|
|
14035
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14036
|
+
type: z.ZodLiteral<"unit">;
|
|
14037
|
+
amount: z.ZodString;
|
|
14038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14039
|
+
type: z.ZodLiteral<"graduated">;
|
|
14040
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14041
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14042
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14043
|
+
type: z.ZodLiteral<"flat">;
|
|
14044
|
+
amount: z.ZodString;
|
|
14045
|
+
}, z.core.$strip>>;
|
|
14046
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14047
|
+
type: z.ZodLiteral<"unit">;
|
|
14048
|
+
amount: z.ZodString;
|
|
14049
|
+
}, z.core.$strip>>;
|
|
14050
|
+
}, z.core.$strip>>;
|
|
14051
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14052
|
+
type: z.ZodLiteral<"volume">;
|
|
14053
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14054
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14055
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14056
|
+
type: z.ZodLiteral<"flat">;
|
|
14057
|
+
amount: z.ZodString;
|
|
14058
|
+
}, z.core.$strip>>;
|
|
14059
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14060
|
+
type: z.ZodLiteral<"unit">;
|
|
14061
|
+
amount: z.ZodString;
|
|
14062
|
+
}, z.core.$strip>>;
|
|
14063
|
+
}, z.core.$strip>>;
|
|
14064
|
+
}, z.core.$strip>], "type">;
|
|
14065
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
14066
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
14067
|
+
exclusive: "exclusive";
|
|
14068
|
+
inclusive: "inclusive";
|
|
14069
|
+
}>>;
|
|
14070
|
+
code: z.ZodObject<{
|
|
14071
|
+
id: z.ZodString;
|
|
14072
|
+
}, z.core.$strip>;
|
|
14073
|
+
}, z.core.$strip>>;
|
|
14074
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
14075
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14076
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
14077
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
14078
|
+
}, z.core.$strip>>;
|
|
14079
|
+
}, z.core.$strip>;
|
|
14080
|
+
detailedLines: z.ZodArray<z.ZodObject<{
|
|
14081
|
+
id: z.ZodString;
|
|
14082
|
+
name: z.ZodString;
|
|
14083
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14084
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14085
|
+
createdAt: z.ZodDate;
|
|
14086
|
+
updatedAt: z.ZodDate;
|
|
14087
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14088
|
+
servicePeriod: z.ZodObject<{
|
|
14089
|
+
from: z.ZodDate;
|
|
14090
|
+
to: z.ZodDate;
|
|
14091
|
+
}, z.core.$strip>;
|
|
14092
|
+
totals: z.ZodObject<{
|
|
14093
|
+
amount: z.ZodString;
|
|
14094
|
+
taxesTotal: z.ZodString;
|
|
14095
|
+
taxesInclusiveTotal: z.ZodString;
|
|
14096
|
+
taxesExclusiveTotal: z.ZodString;
|
|
14097
|
+
chargesTotal: z.ZodString;
|
|
14098
|
+
discountsTotal: z.ZodString;
|
|
14099
|
+
creditsTotal: z.ZodString;
|
|
14100
|
+
total: z.ZodString;
|
|
14101
|
+
}, z.core.$strip>;
|
|
14102
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
14103
|
+
regular: "regular";
|
|
14104
|
+
commitment: "commitment";
|
|
14105
|
+
}>>;
|
|
14106
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14107
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14108
|
+
id: z.ZodString;
|
|
14109
|
+
reason: z.ZodEnum<{
|
|
14110
|
+
maximum_spend: "maximum_spend";
|
|
14111
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14112
|
+
ratecard_usage: "ratecard_usage";
|
|
14113
|
+
}>;
|
|
14114
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14115
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14116
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14117
|
+
}, z.core.$strip>>;
|
|
14118
|
+
amount: z.ZodString;
|
|
14119
|
+
}, z.core.$strip>>>;
|
|
14120
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14121
|
+
id: z.ZodString;
|
|
14122
|
+
reason: z.ZodEnum<{
|
|
14123
|
+
maximum_spend: "maximum_spend";
|
|
14124
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14125
|
+
ratecard_usage: "ratecard_usage";
|
|
14126
|
+
}>;
|
|
14127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14128
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14129
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14130
|
+
}, z.core.$strip>>;
|
|
14131
|
+
quantity: z.ZodString;
|
|
14132
|
+
}, z.core.$strip>>>;
|
|
14133
|
+
}, z.core.$strip>>;
|
|
14134
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14135
|
+
amount: z.ZodString;
|
|
14136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14137
|
+
}, z.core.$strip>>>;
|
|
14138
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14139
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14140
|
+
}, z.core.$strip>>;
|
|
14141
|
+
quantity: z.ZodString;
|
|
14142
|
+
unitPrice: z.ZodString;
|
|
14143
|
+
}, z.core.$strip>>;
|
|
14144
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
14145
|
+
id: z.ZodString;
|
|
14146
|
+
}, z.core.$strip>>;
|
|
14147
|
+
}, z.core.$strip>], "type">>>;
|
|
14148
|
+
}, z.core.$strip>], "type">;
|
|
14149
|
+
export declare const updateInvoicePathParams: z.ZodObject<{
|
|
14150
|
+
invoiceId: z.ZodString;
|
|
14151
|
+
}, z.core.$strip>;
|
|
14152
|
+
export declare const updateInvoiceBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14153
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14154
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14155
|
+
supplier: z.ZodObject<{
|
|
14156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14157
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
14158
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14159
|
+
}, z.core.$strip>>;
|
|
14160
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
14161
|
+
billingAddress: z.ZodObject<{
|
|
14162
|
+
country: z.ZodOptional<z.ZodString>;
|
|
14163
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
14164
|
+
state: z.ZodOptional<z.ZodString>;
|
|
14165
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14166
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
14167
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
14168
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
14169
|
+
}, z.core.$strip>;
|
|
14170
|
+
}, z.core.$strip>>;
|
|
14171
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14172
|
+
}, z.core.$strip>;
|
|
14173
|
+
customer: z.ZodObject<{
|
|
14174
|
+
name: z.ZodString;
|
|
14175
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
14176
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
14177
|
+
}, z.core.$strip>>;
|
|
14178
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
14179
|
+
country: z.ZodOptional<z.ZodString>;
|
|
14180
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
14181
|
+
state: z.ZodOptional<z.ZodString>;
|
|
14182
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14183
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
14184
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
14185
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
14186
|
+
}, z.core.$strip>>;
|
|
14187
|
+
id: z.ZodString;
|
|
14188
|
+
key: z.ZodOptional<z.ZodString>;
|
|
14189
|
+
}, z.core.$strip>;
|
|
14190
|
+
type: z.ZodLiteral<"standard">;
|
|
14191
|
+
workflow: z.ZodObject<{
|
|
14192
|
+
workflow: z.ZodObject<{
|
|
14193
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
14194
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14195
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14196
|
+
}, z.core.$strip>>;
|
|
14197
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14198
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
14199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14200
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
14201
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14202
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
14203
|
+
}, z.core.$strip>;
|
|
14204
|
+
}, z.core.$strip>;
|
|
14205
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14206
|
+
name: z.ZodString;
|
|
14207
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14208
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14209
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14210
|
+
type: z.ZodLiteral<"standard_line">;
|
|
14211
|
+
servicePeriod: z.ZodObject<{
|
|
14212
|
+
from: z.ZodDate;
|
|
14213
|
+
to: z.ZodDate;
|
|
14214
|
+
}, z.core.$strip>;
|
|
14215
|
+
rateCard: z.ZodObject<{
|
|
14216
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14217
|
+
type: z.ZodLiteral<"free">;
|
|
14218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14219
|
+
type: z.ZodLiteral<"flat">;
|
|
14220
|
+
amount: z.ZodString;
|
|
14221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14222
|
+
type: z.ZodLiteral<"unit">;
|
|
14223
|
+
amount: z.ZodString;
|
|
14224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14225
|
+
type: z.ZodLiteral<"graduated">;
|
|
14226
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14227
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14228
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14229
|
+
type: z.ZodLiteral<"flat">;
|
|
14230
|
+
amount: z.ZodString;
|
|
14231
|
+
}, z.core.$strip>>;
|
|
14232
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14233
|
+
type: z.ZodLiteral<"unit">;
|
|
14234
|
+
amount: z.ZodString;
|
|
14235
|
+
}, z.core.$strip>>;
|
|
14236
|
+
}, z.core.$strip>>;
|
|
14237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14238
|
+
type: z.ZodLiteral<"volume">;
|
|
14239
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14240
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14241
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14242
|
+
type: z.ZodLiteral<"flat">;
|
|
14243
|
+
amount: z.ZodString;
|
|
14244
|
+
}, z.core.$strip>>;
|
|
14245
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14246
|
+
type: z.ZodLiteral<"unit">;
|
|
14247
|
+
amount: z.ZodString;
|
|
14248
|
+
}, z.core.$strip>>;
|
|
14249
|
+
}, z.core.$strip>>;
|
|
14250
|
+
}, z.core.$strip>], "type">;
|
|
14251
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
14252
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
14253
|
+
exclusive: "exclusive";
|
|
14254
|
+
inclusive: "inclusive";
|
|
14255
|
+
}>>;
|
|
14256
|
+
code: z.ZodObject<{
|
|
14257
|
+
id: z.ZodString;
|
|
14258
|
+
}, z.core.$strip>;
|
|
14259
|
+
}, z.core.$strip>>;
|
|
14260
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
14261
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14262
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
14263
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
14264
|
+
}, z.core.$strip>>;
|
|
14265
|
+
}, z.core.$strip>;
|
|
14266
|
+
}, z.core.$strip>], "type">>>;
|
|
14267
|
+
}, z.core.$strip>], "type">;
|
|
14268
|
+
export declare const updateInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14269
|
+
id: z.ZodString;
|
|
14270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14271
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14272
|
+
createdAt: z.ZodDate;
|
|
14273
|
+
updatedAt: z.ZodDate;
|
|
14274
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14275
|
+
number: z.ZodString;
|
|
14276
|
+
currency: z.ZodString;
|
|
14277
|
+
supplier: z.ZodObject<{
|
|
14278
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14279
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
14280
|
+
code: z.ZodOptional<z.ZodString>;
|
|
14281
|
+
}, z.core.$strip>>;
|
|
14282
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
14283
|
+
billingAddress: z.ZodObject<{
|
|
14284
|
+
country: z.ZodOptional<z.ZodString>;
|
|
14285
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
14286
|
+
state: z.ZodOptional<z.ZodString>;
|
|
14287
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14288
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
14289
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
14290
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
14291
|
+
}, z.core.$strip>;
|
|
14292
|
+
}, z.core.$strip>>;
|
|
14293
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14294
|
+
}, z.core.$strip>;
|
|
14295
|
+
customer: z.ZodObject<{
|
|
14296
|
+
name: z.ZodString;
|
|
14297
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
14298
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
14299
|
+
}, z.core.$strip>>;
|
|
14300
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
14301
|
+
country: z.ZodOptional<z.ZodString>;
|
|
14302
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
14303
|
+
state: z.ZodOptional<z.ZodString>;
|
|
14304
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14305
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
14306
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
14307
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
14308
|
+
}, z.core.$strip>>;
|
|
14309
|
+
id: z.ZodString;
|
|
14310
|
+
key: z.ZodOptional<z.ZodString>;
|
|
14311
|
+
}, z.core.$strip>;
|
|
14312
|
+
totals: z.ZodObject<{
|
|
14313
|
+
amount: z.ZodString;
|
|
14314
|
+
taxesTotal: z.ZodString;
|
|
14315
|
+
taxesInclusiveTotal: z.ZodString;
|
|
14316
|
+
taxesExclusiveTotal: z.ZodString;
|
|
14317
|
+
chargesTotal: z.ZodString;
|
|
14318
|
+
discountsTotal: z.ZodString;
|
|
14319
|
+
creditsTotal: z.ZodString;
|
|
14320
|
+
total: z.ZodString;
|
|
14321
|
+
}, z.core.$strip>;
|
|
14322
|
+
servicePeriod: z.ZodObject<{
|
|
14323
|
+
from: z.ZodDate;
|
|
14324
|
+
to: z.ZodDate;
|
|
14325
|
+
}, z.core.$strip>;
|
|
14326
|
+
validationIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14327
|
+
code: z.ZodString;
|
|
14328
|
+
message: z.ZodString;
|
|
14329
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14330
|
+
severity: z.ZodEnum<{
|
|
14331
|
+
critical: "critical";
|
|
14332
|
+
warning: "warning";
|
|
14333
|
+
}>;
|
|
14334
|
+
field: z.ZodOptional<z.ZodString>;
|
|
14335
|
+
}, z.core.$strip>>>;
|
|
14336
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14337
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14338
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
14339
|
+
}, z.core.$strip>>;
|
|
14340
|
+
type: z.ZodLiteral<"standard">;
|
|
14341
|
+
status: z.ZodEnum<{
|
|
14342
|
+
voided: "voided";
|
|
14343
|
+
draft: "draft";
|
|
14344
|
+
issuing: "issuing";
|
|
14345
|
+
issued: "issued";
|
|
14346
|
+
payment_processing: "payment_processing";
|
|
14347
|
+
overdue: "overdue";
|
|
14348
|
+
paid: "paid";
|
|
14349
|
+
uncollectible: "uncollectible";
|
|
14350
|
+
}>;
|
|
14351
|
+
statusDetails: z.ZodObject<{
|
|
14352
|
+
immutable: z.ZodBoolean;
|
|
14353
|
+
failed: z.ZodBoolean;
|
|
14354
|
+
extendedStatus: z.ZodString;
|
|
14355
|
+
availableActions: z.ZodObject<{
|
|
14356
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
14357
|
+
resultingState: z.ZodString;
|
|
14358
|
+
}, z.core.$strip>>;
|
|
14359
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
14360
|
+
resultingState: z.ZodString;
|
|
14361
|
+
}, z.core.$strip>>;
|
|
14362
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
14363
|
+
resultingState: z.ZodString;
|
|
14364
|
+
}, z.core.$strip>>;
|
|
14365
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
14366
|
+
resultingState: z.ZodString;
|
|
14367
|
+
}, z.core.$strip>>;
|
|
14368
|
+
snapshotQuantities: z.ZodOptional<z.ZodObject<{
|
|
14369
|
+
resultingState: z.ZodString;
|
|
14370
|
+
}, z.core.$strip>>;
|
|
14371
|
+
}, z.core.$strip>;
|
|
14372
|
+
}, z.core.$strip>;
|
|
14373
|
+
issuedAt: z.ZodOptional<z.ZodDate>;
|
|
14374
|
+
draftUntil: z.ZodOptional<z.ZodDate>;
|
|
14375
|
+
quantitySnapshottedAt: z.ZodOptional<z.ZodDate>;
|
|
14376
|
+
collectionAt: z.ZodOptional<z.ZodDate>;
|
|
14377
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
14378
|
+
sentToCustomerAt: z.ZodOptional<z.ZodDate>;
|
|
14379
|
+
workflow: z.ZodObject<{
|
|
14380
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
14381
|
+
tax: z.ZodObject<{
|
|
14382
|
+
id: z.ZodString;
|
|
14383
|
+
}, z.core.$strip>;
|
|
14384
|
+
invoicing: z.ZodObject<{
|
|
14385
|
+
id: z.ZodString;
|
|
14386
|
+
}, z.core.$strip>;
|
|
14387
|
+
payment: z.ZodObject<{
|
|
14388
|
+
id: z.ZodString;
|
|
14389
|
+
}, z.core.$strip>;
|
|
14390
|
+
}, z.core.$strip>>;
|
|
14391
|
+
sourceBillingProfile: z.ZodObject<{
|
|
14392
|
+
id: z.ZodString;
|
|
14393
|
+
}, z.core.$strip>;
|
|
14394
|
+
workflow: z.ZodObject<{
|
|
14395
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
14396
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14397
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14398
|
+
dueAfter: z.ZodOptional<z.ZodString>;
|
|
14399
|
+
}, z.core.$strip>>;
|
|
14400
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14401
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
14402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14403
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
14404
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14405
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
14406
|
+
}, z.core.$strip>;
|
|
14407
|
+
}, z.core.$strip>;
|
|
14408
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14409
|
+
name: z.ZodString;
|
|
14410
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14411
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14412
|
+
createdAt: z.ZodDate;
|
|
14413
|
+
updatedAt: z.ZodDate;
|
|
14414
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14415
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14416
|
+
type: z.ZodLiteral<"standard_line">;
|
|
14417
|
+
lifecycleController: z.ZodEnum<{
|
|
14418
|
+
manual: "manual";
|
|
14419
|
+
system: "system";
|
|
14420
|
+
}>;
|
|
14421
|
+
servicePeriod: z.ZodObject<{
|
|
14422
|
+
from: z.ZodDate;
|
|
14423
|
+
to: z.ZodDate;
|
|
14424
|
+
}, z.core.$strip>;
|
|
14425
|
+
totals: z.ZodObject<{
|
|
14426
|
+
amount: z.ZodString;
|
|
14427
|
+
taxesTotal: z.ZodString;
|
|
14428
|
+
taxesInclusiveTotal: z.ZodString;
|
|
14429
|
+
taxesExclusiveTotal: z.ZodString;
|
|
14430
|
+
chargesTotal: z.ZodString;
|
|
14431
|
+
discountsTotal: z.ZodString;
|
|
14432
|
+
creditsTotal: z.ZodString;
|
|
14433
|
+
total: z.ZodString;
|
|
14434
|
+
}, z.core.$strip>;
|
|
14435
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14436
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14437
|
+
id: z.ZodString;
|
|
14438
|
+
reason: z.ZodEnum<{
|
|
14439
|
+
maximum_spend: "maximum_spend";
|
|
14440
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14441
|
+
ratecard_usage: "ratecard_usage";
|
|
14442
|
+
}>;
|
|
14443
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14444
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14445
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14446
|
+
}, z.core.$strip>>;
|
|
14447
|
+
amount: z.ZodString;
|
|
14448
|
+
}, z.core.$strip>>>;
|
|
14449
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14450
|
+
id: z.ZodString;
|
|
14451
|
+
reason: z.ZodEnum<{
|
|
14452
|
+
maximum_spend: "maximum_spend";
|
|
14453
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14454
|
+
ratecard_usage: "ratecard_usage";
|
|
14455
|
+
}>;
|
|
14456
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14457
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14458
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14459
|
+
}, z.core.$strip>>;
|
|
14460
|
+
quantity: z.ZodString;
|
|
14461
|
+
}, z.core.$strip>>>;
|
|
14462
|
+
}, z.core.$strip>>;
|
|
14463
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14464
|
+
amount: z.ZodString;
|
|
14465
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14466
|
+
}, z.core.$strip>>>;
|
|
14467
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14468
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14469
|
+
}, z.core.$strip>>;
|
|
14470
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
14471
|
+
id: z.ZodString;
|
|
14472
|
+
phase: z.ZodObject<{
|
|
14473
|
+
id: z.ZodString;
|
|
14474
|
+
item: z.ZodObject<{
|
|
14475
|
+
id: z.ZodString;
|
|
14476
|
+
}, z.core.$strip>;
|
|
14477
|
+
}, z.core.$strip>;
|
|
14478
|
+
}, z.core.$strip>>;
|
|
14479
|
+
rateCard: z.ZodObject<{
|
|
14480
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14481
|
+
type: z.ZodLiteral<"free">;
|
|
14482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14483
|
+
type: z.ZodLiteral<"flat">;
|
|
14484
|
+
amount: z.ZodString;
|
|
14485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14486
|
+
type: z.ZodLiteral<"unit">;
|
|
14487
|
+
amount: z.ZodString;
|
|
14488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14489
|
+
type: z.ZodLiteral<"graduated">;
|
|
14490
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14491
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14492
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14493
|
+
type: z.ZodLiteral<"flat">;
|
|
14494
|
+
amount: z.ZodString;
|
|
14495
|
+
}, z.core.$strip>>;
|
|
14496
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14497
|
+
type: z.ZodLiteral<"unit">;
|
|
14498
|
+
amount: z.ZodString;
|
|
14499
|
+
}, z.core.$strip>>;
|
|
14500
|
+
}, z.core.$strip>>;
|
|
14501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14502
|
+
type: z.ZodLiteral<"volume">;
|
|
14503
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14504
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
14505
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
14506
|
+
type: z.ZodLiteral<"flat">;
|
|
14507
|
+
amount: z.ZodString;
|
|
14508
|
+
}, z.core.$strip>>;
|
|
14509
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
14510
|
+
type: z.ZodLiteral<"unit">;
|
|
14511
|
+
amount: z.ZodString;
|
|
14512
|
+
}, z.core.$strip>>;
|
|
14513
|
+
}, z.core.$strip>>;
|
|
14514
|
+
}, z.core.$strip>], "type">;
|
|
14515
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
14516
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
14517
|
+
exclusive: "exclusive";
|
|
14518
|
+
inclusive: "inclusive";
|
|
14519
|
+
}>>;
|
|
14520
|
+
code: z.ZodObject<{
|
|
14521
|
+
id: z.ZodString;
|
|
14522
|
+
}, z.core.$strip>;
|
|
14523
|
+
}, z.core.$strip>>;
|
|
14524
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
14525
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14526
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
14527
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
14528
|
+
}, z.core.$strip>>;
|
|
14529
|
+
}, z.core.$strip>;
|
|
14530
|
+
detailedLines: z.ZodArray<z.ZodObject<{
|
|
14531
|
+
id: z.ZodString;
|
|
14532
|
+
name: z.ZodString;
|
|
14533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14534
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14535
|
+
createdAt: z.ZodDate;
|
|
14536
|
+
updatedAt: z.ZodDate;
|
|
14537
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14538
|
+
servicePeriod: z.ZodObject<{
|
|
14539
|
+
from: z.ZodDate;
|
|
14540
|
+
to: z.ZodDate;
|
|
14541
|
+
}, z.core.$strip>;
|
|
14542
|
+
totals: z.ZodObject<{
|
|
14543
|
+
amount: z.ZodString;
|
|
14544
|
+
taxesTotal: z.ZodString;
|
|
14545
|
+
taxesInclusiveTotal: z.ZodString;
|
|
14546
|
+
taxesExclusiveTotal: z.ZodString;
|
|
14547
|
+
chargesTotal: z.ZodString;
|
|
14548
|
+
discountsTotal: z.ZodString;
|
|
14549
|
+
creditsTotal: z.ZodString;
|
|
14550
|
+
total: z.ZodString;
|
|
14551
|
+
}, z.core.$strip>;
|
|
14552
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
14553
|
+
regular: "regular";
|
|
14554
|
+
commitment: "commitment";
|
|
14555
|
+
}>>;
|
|
14556
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
14557
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14558
|
+
id: z.ZodString;
|
|
14559
|
+
reason: z.ZodEnum<{
|
|
14560
|
+
maximum_spend: "maximum_spend";
|
|
14561
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14562
|
+
ratecard_usage: "ratecard_usage";
|
|
14563
|
+
}>;
|
|
14564
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14565
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14566
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14567
|
+
}, z.core.$strip>>;
|
|
14568
|
+
amount: z.ZodString;
|
|
14569
|
+
}, z.core.$strip>>>;
|
|
14570
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14571
|
+
id: z.ZodString;
|
|
14572
|
+
reason: z.ZodEnum<{
|
|
14573
|
+
maximum_spend: "maximum_spend";
|
|
14574
|
+
ratecard_percentage: "ratecard_percentage";
|
|
14575
|
+
ratecard_usage: "ratecard_usage";
|
|
14576
|
+
}>;
|
|
14577
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14578
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14579
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14580
|
+
}, z.core.$strip>>;
|
|
14581
|
+
quantity: z.ZodString;
|
|
14582
|
+
}, z.core.$strip>>>;
|
|
14583
|
+
}, z.core.$strip>>;
|
|
14584
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14585
|
+
amount: z.ZodString;
|
|
14586
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14587
|
+
}, z.core.$strip>>>;
|
|
14588
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
14589
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
14590
|
+
}, z.core.$strip>>;
|
|
14591
|
+
quantity: z.ZodString;
|
|
14592
|
+
unitPrice: z.ZodString;
|
|
14593
|
+
}, z.core.$strip>>;
|
|
14594
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
14595
|
+
id: z.ZodString;
|
|
14596
|
+
}, z.core.$strip>>;
|
|
14597
|
+
}, z.core.$strip>], "type">>>;
|
|
14598
|
+
}, z.core.$strip>], "type">;
|
|
14599
|
+
export declare const deleteInvoicePathParams: z.ZodObject<{
|
|
14600
|
+
invoiceId: z.ZodString;
|
|
14601
|
+
}, z.core.$strip>;
|
|
14602
|
+
export declare const createTaxCodeBody: z.ZodObject<{
|
|
14603
|
+
name: z.ZodString;
|
|
14604
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14605
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14606
|
+
key: z.ZodString;
|
|
14607
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14608
|
+
appType: z.ZodEnum<{
|
|
14609
|
+
sandbox: "sandbox";
|
|
14610
|
+
stripe: "stripe";
|
|
14611
|
+
external_invoicing: "external_invoicing";
|
|
14612
|
+
}>;
|
|
14613
|
+
taxCode: z.ZodString;
|
|
14614
|
+
}, z.core.$strip>>;
|
|
14615
|
+
}, z.core.$strip>;
|
|
14616
|
+
export declare const createTaxCodeResponse: z.ZodObject<{
|
|
14617
|
+
id: z.ZodString;
|
|
14618
|
+
name: z.ZodString;
|
|
14619
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14620
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14621
|
+
createdAt: z.ZodDate;
|
|
14622
|
+
updatedAt: z.ZodDate;
|
|
14623
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14624
|
+
key: z.ZodString;
|
|
14625
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14626
|
+
appType: z.ZodEnum<{
|
|
14627
|
+
sandbox: "sandbox";
|
|
14628
|
+
stripe: "stripe";
|
|
14629
|
+
external_invoicing: "external_invoicing";
|
|
14630
|
+
}>;
|
|
14631
|
+
taxCode: z.ZodString;
|
|
14632
|
+
}, z.core.$strip>>;
|
|
14633
|
+
}, z.core.$strip>;
|
|
14634
|
+
export declare const getTaxCodePathParams: z.ZodObject<{
|
|
14635
|
+
taxCodeId: z.ZodString;
|
|
14636
|
+
}, z.core.$strip>;
|
|
14637
|
+
export declare const getTaxCodeResponse: z.ZodObject<{
|
|
14638
|
+
id: z.ZodString;
|
|
14639
|
+
name: z.ZodString;
|
|
14640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14641
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14642
|
+
createdAt: z.ZodDate;
|
|
14643
|
+
updatedAt: z.ZodDate;
|
|
14644
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14645
|
+
key: z.ZodString;
|
|
14646
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14647
|
+
appType: z.ZodEnum<{
|
|
14648
|
+
sandbox: "sandbox";
|
|
14649
|
+
stripe: "stripe";
|
|
14650
|
+
external_invoicing: "external_invoicing";
|
|
14651
|
+
}>;
|
|
14652
|
+
taxCode: z.ZodString;
|
|
14653
|
+
}, z.core.$strip>>;
|
|
14654
|
+
}, z.core.$strip>;
|
|
14655
|
+
export declare const listTaxCodesQueryParams: z.ZodObject<{
|
|
14656
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
14657
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14658
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14659
|
+
}, z.core.$strip>>;
|
|
14660
|
+
includeDeleted: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
14661
|
+
}, z.core.$strip>;
|
|
14662
|
+
export declare const listTaxCodesResponse: z.ZodObject<{
|
|
14663
|
+
data: z.ZodArray<z.ZodObject<{
|
|
14664
|
+
id: z.ZodString;
|
|
14665
|
+
name: z.ZodString;
|
|
14666
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14667
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14668
|
+
createdAt: z.ZodDate;
|
|
14669
|
+
updatedAt: z.ZodDate;
|
|
14670
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14671
|
+
key: z.ZodString;
|
|
14672
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14673
|
+
appType: z.ZodEnum<{
|
|
14674
|
+
sandbox: "sandbox";
|
|
14675
|
+
stripe: "stripe";
|
|
14676
|
+
external_invoicing: "external_invoicing";
|
|
14677
|
+
}>;
|
|
14678
|
+
taxCode: z.ZodString;
|
|
14679
|
+
}, z.core.$strip>>;
|
|
14680
|
+
}, z.core.$strip>>;
|
|
14681
|
+
meta: z.ZodObject<{
|
|
14682
|
+
page: z.ZodObject<{
|
|
14683
|
+
number: z.ZodNumber;
|
|
14684
|
+
size: z.ZodNumber;
|
|
14685
|
+
total: z.ZodNumber;
|
|
14686
|
+
}, z.core.$strip>;
|
|
14687
|
+
}, z.core.$strip>;
|
|
14688
|
+
}, z.core.$strip>;
|
|
14689
|
+
export declare const upsertTaxCodePathParams: z.ZodObject<{
|
|
14690
|
+
taxCodeId: z.ZodString;
|
|
14691
|
+
}, z.core.$strip>;
|
|
14692
|
+
export declare const upsertTaxCodeBody: z.ZodObject<{
|
|
14693
|
+
name: z.ZodString;
|
|
14694
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14695
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14696
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14697
|
+
appType: z.ZodEnum<{
|
|
14698
|
+
sandbox: "sandbox";
|
|
14699
|
+
stripe: "stripe";
|
|
14700
|
+
external_invoicing: "external_invoicing";
|
|
14701
|
+
}>;
|
|
14702
|
+
taxCode: z.ZodString;
|
|
14703
|
+
}, z.core.$strip>>;
|
|
14704
|
+
}, z.core.$strip>;
|
|
14705
|
+
export declare const upsertTaxCodeResponse: z.ZodObject<{
|
|
14706
|
+
id: z.ZodString;
|
|
14707
|
+
name: z.ZodString;
|
|
14708
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14709
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14710
|
+
createdAt: z.ZodDate;
|
|
14711
|
+
updatedAt: z.ZodDate;
|
|
14712
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
14713
|
+
key: z.ZodString;
|
|
14714
|
+
appMappings: z.ZodArray<z.ZodObject<{
|
|
14715
|
+
appType: z.ZodEnum<{
|
|
14716
|
+
sandbox: "sandbox";
|
|
14717
|
+
stripe: "stripe";
|
|
14718
|
+
external_invoicing: "external_invoicing";
|
|
14719
|
+
}>;
|
|
14720
|
+
taxCode: z.ZodString;
|
|
14721
|
+
}, z.core.$strip>>;
|
|
14722
|
+
}, z.core.$strip>;
|
|
14723
|
+
export declare const deleteTaxCodePathParams: z.ZodObject<{
|
|
14724
|
+
taxCodeId: z.ZodString;
|
|
14725
|
+
}, z.core.$strip>;
|
|
14726
|
+
export declare const listCurrenciesQueryParams: z.ZodObject<{
|
|
14727
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
14728
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14729
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14730
|
+
}, z.core.$strip>>;
|
|
14731
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
14732
|
+
by: z.ZodString;
|
|
14733
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
14734
|
+
}, z.core.$strip>>;
|
|
14735
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
14736
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
14737
|
+
custom: "custom";
|
|
14738
|
+
fiat: "fiat";
|
|
14739
|
+
}>>;
|
|
14740
|
+
code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
14741
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
14742
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
14743
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
14744
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14745
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14746
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
14747
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
14748
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
14749
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
14750
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
14751
|
+
}, z.core.$strip>]>>;
|
|
14752
|
+
}, z.core.$strip>>;
|
|
14753
|
+
}, z.core.$strip>;
|
|
14754
|
+
export declare const listCurrenciesResponse: z.ZodObject<{
|
|
14755
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14756
|
+
type: z.ZodLiteral<"fiat">;
|
|
14757
|
+
name: z.ZodString;
|
|
14758
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
14759
|
+
code: z.ZodString;
|
|
14760
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14761
|
+
type: z.ZodLiteral<"custom">;
|
|
14762
|
+
name: z.ZodString;
|
|
14763
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
14764
|
+
id: z.ZodString;
|
|
14765
|
+
code: z.ZodString;
|
|
14766
|
+
createdAt: z.ZodDate;
|
|
14767
|
+
}, z.core.$strip>], "type">>;
|
|
14768
|
+
meta: z.ZodObject<{
|
|
14769
|
+
page: z.ZodObject<{
|
|
14770
|
+
number: z.ZodNumber;
|
|
14771
|
+
size: z.ZodNumber;
|
|
14772
|
+
total: z.ZodNumber;
|
|
14773
|
+
}, z.core.$strip>;
|
|
14774
|
+
}, z.core.$strip>;
|
|
14775
|
+
}, z.core.$strip>;
|
|
14776
|
+
export declare const createCustomCurrencyBody: z.ZodObject<{
|
|
14777
|
+
name: z.ZodString;
|
|
14778
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
14779
|
+
code: z.ZodString;
|
|
14780
|
+
}, z.core.$strip>;
|
|
14781
|
+
export declare const createCustomCurrencyResponse: z.ZodObject<{
|
|
14782
|
+
type: z.ZodLiteral<"custom">;
|
|
14783
|
+
name: z.ZodString;
|
|
14784
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
14785
|
+
id: z.ZodString;
|
|
14786
|
+
code: z.ZodString;
|
|
14787
|
+
createdAt: z.ZodDate;
|
|
14788
|
+
}, z.core.$strip>;
|
|
14789
|
+
export declare const listCostBasesPathParams: z.ZodObject<{
|
|
14790
|
+
currencyId: z.ZodString;
|
|
14791
|
+
}, z.core.$strip>;
|
|
14792
|
+
export declare const listCostBasesQueryParams: z.ZodObject<{
|
|
14793
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
14794
|
+
fiatCode: z.ZodOptional<z.ZodString>;
|
|
14795
|
+
}, z.core.$strip>>;
|
|
14796
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
14797
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14798
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14799
|
+
}, z.core.$strip>>;
|
|
14800
|
+
}, z.core.$strip>;
|
|
14801
|
+
export declare const listCostBasesResponse: z.ZodObject<{
|
|
14802
|
+
data: z.ZodArray<z.ZodObject<{
|
|
14803
|
+
id: z.ZodString;
|
|
14804
|
+
fiatCode: z.ZodString;
|
|
14805
|
+
rate: z.ZodString;
|
|
14806
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
14807
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
14808
|
+
createdAt: z.ZodDate;
|
|
14809
|
+
}, z.core.$strip>>;
|
|
14810
|
+
meta: z.ZodObject<{
|
|
14811
|
+
page: z.ZodObject<{
|
|
14812
|
+
number: z.ZodNumber;
|
|
14813
|
+
size: z.ZodNumber;
|
|
14814
|
+
total: z.ZodNumber;
|
|
14815
|
+
}, z.core.$strip>;
|
|
14816
|
+
}, z.core.$strip>;
|
|
14817
|
+
}, z.core.$strip>;
|
|
14818
|
+
export declare const createCostBasisPathParams: z.ZodObject<{
|
|
14819
|
+
currencyId: z.ZodString;
|
|
14820
|
+
}, z.core.$strip>;
|
|
14821
|
+
export declare const createCostBasisBody: z.ZodObject<{
|
|
14822
|
+
fiatCode: z.ZodString;
|
|
14823
|
+
rate: z.ZodString;
|
|
14824
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
14825
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
14826
|
+
}, z.core.$strip>;
|
|
14827
|
+
export declare const createCostBasisResponse: z.ZodObject<{
|
|
14828
|
+
id: z.ZodString;
|
|
14829
|
+
fiatCode: z.ZodString;
|
|
13660
14830
|
rate: z.ZodString;
|
|
13661
14831
|
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
13662
14832
|
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
@@ -16581,40 +17751,118 @@ export declare const updatePlanAddonResponse: z.ZodObject<{
|
|
|
16581
17751
|
code: z.ZodString;
|
|
16582
17752
|
message: z.ZodString;
|
|
16583
17753
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16584
|
-
field: z.ZodString;
|
|
16585
|
-
}, z.core.$strip>>>;
|
|
16586
|
-
}, z.core.$strip>;
|
|
16587
|
-
export declare const deletePlanAddonPathParams: z.ZodObject<{
|
|
16588
|
-
planId: z.ZodString;
|
|
16589
|
-
planAddonId: z.ZodString;
|
|
16590
|
-
}, z.core.$strip>;
|
|
16591
|
-
export declare const getOrganizationDefaultTaxCodesResponse: z.ZodObject<{
|
|
16592
|
-
invoicingTaxCode: z.ZodObject<{
|
|
16593
|
-
id: z.ZodString;
|
|
16594
|
-
}, z.core.$strip>;
|
|
16595
|
-
creditGrantTaxCode: z.ZodObject<{
|
|
16596
|
-
id: z.ZodString;
|
|
16597
|
-
}, z.core.$strip>;
|
|
16598
|
-
createdAt: z.ZodDate;
|
|
16599
|
-
updatedAt: z.ZodDate;
|
|
16600
|
-
}, z.core.$strip>;
|
|
16601
|
-
export declare const updateOrganizationDefaultTaxCodesBody: z.ZodObject<{
|
|
16602
|
-
invoicingTaxCode: z.ZodOptional<z.ZodObject<{
|
|
16603
|
-
id: z.ZodString;
|
|
16604
|
-
}, z.core.$strip>>;
|
|
16605
|
-
creditGrantTaxCode: z.ZodOptional<z.ZodObject<{
|
|
16606
|
-
id: z.ZodString;
|
|
17754
|
+
field: z.ZodString;
|
|
17755
|
+
}, z.core.$strip>>>;
|
|
17756
|
+
}, z.core.$strip>;
|
|
17757
|
+
export declare const deletePlanAddonPathParams: z.ZodObject<{
|
|
17758
|
+
planId: z.ZodString;
|
|
17759
|
+
planAddonId: z.ZodString;
|
|
17760
|
+
}, z.core.$strip>;
|
|
17761
|
+
export declare const getOrganizationDefaultTaxCodesResponse: z.ZodObject<{
|
|
17762
|
+
invoicingTaxCode: z.ZodObject<{
|
|
17763
|
+
id: z.ZodString;
|
|
17764
|
+
}, z.core.$strip>;
|
|
17765
|
+
creditGrantTaxCode: z.ZodObject<{
|
|
17766
|
+
id: z.ZodString;
|
|
17767
|
+
}, z.core.$strip>;
|
|
17768
|
+
createdAt: z.ZodDate;
|
|
17769
|
+
updatedAt: z.ZodDate;
|
|
17770
|
+
}, z.core.$strip>;
|
|
17771
|
+
export declare const updateOrganizationDefaultTaxCodesBody: z.ZodObject<{
|
|
17772
|
+
invoicingTaxCode: z.ZodOptional<z.ZodObject<{
|
|
17773
|
+
id: z.ZodString;
|
|
17774
|
+
}, z.core.$strip>>;
|
|
17775
|
+
creditGrantTaxCode: z.ZodOptional<z.ZodObject<{
|
|
17776
|
+
id: z.ZodString;
|
|
17777
|
+
}, z.core.$strip>>;
|
|
17778
|
+
}, z.core.$strip>;
|
|
17779
|
+
export declare const updateOrganizationDefaultTaxCodesResponse: z.ZodObject<{
|
|
17780
|
+
invoicingTaxCode: z.ZodObject<{
|
|
17781
|
+
id: z.ZodString;
|
|
17782
|
+
}, z.core.$strip>;
|
|
17783
|
+
creditGrantTaxCode: z.ZodObject<{
|
|
17784
|
+
id: z.ZodString;
|
|
17785
|
+
}, z.core.$strip>;
|
|
17786
|
+
createdAt: z.ZodDate;
|
|
17787
|
+
updatedAt: z.ZodDate;
|
|
17788
|
+
}, z.core.$strip>;
|
|
17789
|
+
export declare const queryGovernanceAccessQueryParams: z.ZodObject<{
|
|
17790
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
17791
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
17792
|
+
after: z.ZodOptional<z.ZodString>;
|
|
17793
|
+
before: z.ZodOptional<z.ZodString>;
|
|
17794
|
+
}, z.core.$strip>>;
|
|
17795
|
+
}, z.core.$strip>;
|
|
17796
|
+
export declare const queryGovernanceAccessBody: z.ZodObject<{
|
|
17797
|
+
includeCredits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
17798
|
+
customer: z.ZodObject<{
|
|
17799
|
+
keys: z.ZodArray<z.ZodString>;
|
|
17800
|
+
}, z.core.$strip>;
|
|
17801
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
17802
|
+
keys: z.ZodArray<z.ZodString>;
|
|
17803
|
+
}, z.core.$strip>>;
|
|
17804
|
+
}, z.core.$strip>;
|
|
17805
|
+
export declare const queryGovernanceAccessResponse: z.ZodObject<{
|
|
17806
|
+
data: z.ZodArray<z.ZodObject<{
|
|
17807
|
+
matched: z.ZodArray<z.ZodString>;
|
|
17808
|
+
customer: z.ZodObject<{
|
|
17809
|
+
id: z.ZodString;
|
|
17810
|
+
name: z.ZodString;
|
|
17811
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17812
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
17813
|
+
createdAt: z.ZodDate;
|
|
17814
|
+
updatedAt: z.ZodDate;
|
|
17815
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
17816
|
+
key: z.ZodString;
|
|
17817
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
17818
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
17819
|
+
}, z.core.$strip>>;
|
|
17820
|
+
primaryEmail: z.ZodOptional<z.ZodString>;
|
|
17821
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
17822
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
17823
|
+
country: z.ZodOptional<z.ZodString>;
|
|
17824
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
17825
|
+
state: z.ZodOptional<z.ZodString>;
|
|
17826
|
+
city: z.ZodOptional<z.ZodString>;
|
|
17827
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
17828
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
17829
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
17830
|
+
}, z.core.$strip>>;
|
|
17831
|
+
}, z.core.$strip>;
|
|
17832
|
+
features: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17833
|
+
hasAccess: z.ZodBoolean;
|
|
17834
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
17835
|
+
code: z.ZodEnum<{
|
|
17836
|
+
unknown: "unknown";
|
|
17837
|
+
usage_limit_reached: "usage_limit_reached";
|
|
17838
|
+
feature_unavailable: "feature_unavailable";
|
|
17839
|
+
feature_not_found: "feature_not_found";
|
|
17840
|
+
no_credit_available: "no_credit_available";
|
|
17841
|
+
}>;
|
|
17842
|
+
message: z.ZodString;
|
|
17843
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17844
|
+
}, z.core.$strip>>;
|
|
17845
|
+
}, z.core.$strip>>;
|
|
17846
|
+
updatedAt: z.ZodDate;
|
|
17847
|
+
}, z.core.$strip>>;
|
|
17848
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
17849
|
+
code: z.ZodEnum<{
|
|
17850
|
+
unknown: "unknown";
|
|
17851
|
+
customer_not_found: "customer_not_found";
|
|
17852
|
+
}>;
|
|
17853
|
+
message: z.ZodString;
|
|
17854
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17855
|
+
customer: z.ZodOptional<z.ZodString>;
|
|
16607
17856
|
}, z.core.$strip>>;
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
17857
|
+
meta: z.ZodObject<{
|
|
17858
|
+
page: z.ZodObject<{
|
|
17859
|
+
first: z.ZodOptional<z.ZodString>;
|
|
17860
|
+
last: z.ZodOptional<z.ZodString>;
|
|
17861
|
+
next: z.ZodOptional<z.ZodString>;
|
|
17862
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
17863
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
17864
|
+
}, z.core.$strip>;
|
|
16615
17865
|
}, z.core.$strip>;
|
|
16616
|
-
createdAt: z.ZodDate;
|
|
16617
|
-
updatedAt: z.ZodDate;
|
|
16618
17866
|
}, z.core.$strip>;
|
|
16619
17867
|
export declare const labelsWire: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
16620
17868
|
export declare const currencyCodeWire: z.ZodString;
|
|
@@ -28966,21 +30214,273 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
|
|
|
28966
30214
|
}>>;
|
|
28967
30215
|
}, z.core.$strict>;
|
|
28968
30216
|
}, z.core.$strict>;
|
|
28969
|
-
export declare const createSubscriptionAddonPathParamsWire: z.ZodObject<{
|
|
30217
|
+
export declare const createSubscriptionAddonPathParamsWire: z.ZodObject<{
|
|
30218
|
+
subscriptionId: z.ZodString;
|
|
30219
|
+
}, z.core.$strip>;
|
|
30220
|
+
export declare const createSubscriptionAddonBodyWire: z.ZodObject<{
|
|
30221
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30222
|
+
addon: z.ZodObject<{
|
|
30223
|
+
id: z.ZodString;
|
|
30224
|
+
}, z.core.$strict>;
|
|
30225
|
+
quantity: z.ZodNumber;
|
|
30226
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
30227
|
+
immediate: "immediate";
|
|
30228
|
+
next_billing_cycle: "next_billing_cycle";
|
|
30229
|
+
}>, z.ZodString]>;
|
|
30230
|
+
}, z.core.$strict>;
|
|
30231
|
+
export declare const createSubscriptionAddonResponseWire: z.ZodObject<{
|
|
30232
|
+
id: z.ZodString;
|
|
30233
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30234
|
+
created_at: z.ZodString;
|
|
30235
|
+
updated_at: z.ZodString;
|
|
30236
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30237
|
+
name: z.ZodString;
|
|
30238
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30239
|
+
addon: z.ZodObject<{
|
|
30240
|
+
id: z.ZodString;
|
|
30241
|
+
}, z.core.$strict>;
|
|
30242
|
+
quantity: z.ZodNumber;
|
|
30243
|
+
quantity_at: z.ZodString;
|
|
30244
|
+
active_from: z.ZodString;
|
|
30245
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
30246
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
30247
|
+
active_from: z.ZodString;
|
|
30248
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
30249
|
+
quantity: z.ZodNumber;
|
|
30250
|
+
}, z.core.$strict>>;
|
|
30251
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
30252
|
+
rate_card: z.ZodObject<{
|
|
30253
|
+
name: z.ZodString;
|
|
30254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30255
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30256
|
+
key: z.ZodString;
|
|
30257
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
30258
|
+
id: z.ZodString;
|
|
30259
|
+
}, z.core.$strict>>;
|
|
30260
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
30261
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30262
|
+
type: z.ZodLiteral<"free">;
|
|
30263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30264
|
+
type: z.ZodLiteral<"flat">;
|
|
30265
|
+
amount: z.ZodString;
|
|
30266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30267
|
+
type: z.ZodLiteral<"unit">;
|
|
30268
|
+
amount: z.ZodString;
|
|
30269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30270
|
+
type: z.ZodLiteral<"graduated">;
|
|
30271
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
30272
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
30273
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
30274
|
+
type: z.ZodLiteral<"flat">;
|
|
30275
|
+
amount: z.ZodString;
|
|
30276
|
+
}, z.core.$strict>>;
|
|
30277
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
30278
|
+
type: z.ZodLiteral<"unit">;
|
|
30279
|
+
amount: z.ZodString;
|
|
30280
|
+
}, z.core.$strict>>;
|
|
30281
|
+
}, z.core.$strict>>;
|
|
30282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30283
|
+
type: z.ZodLiteral<"volume">;
|
|
30284
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
30285
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
30286
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
30287
|
+
type: z.ZodLiteral<"flat">;
|
|
30288
|
+
amount: z.ZodString;
|
|
30289
|
+
}, z.core.$strict>>;
|
|
30290
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
30291
|
+
type: z.ZodLiteral<"unit">;
|
|
30292
|
+
amount: z.ZodString;
|
|
30293
|
+
}, z.core.$strict>>;
|
|
30294
|
+
}, z.core.$strict>>;
|
|
30295
|
+
}, z.core.$strict>], "type">;
|
|
30296
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
30297
|
+
operation: z.ZodEnum<{
|
|
30298
|
+
multiply: "multiply";
|
|
30299
|
+
divide: "divide";
|
|
30300
|
+
}>;
|
|
30301
|
+
conversion_factor: z.ZodString;
|
|
30302
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30303
|
+
none: "none";
|
|
30304
|
+
floor: "floor";
|
|
30305
|
+
ceiling: "ceiling";
|
|
30306
|
+
half_up: "half_up";
|
|
30307
|
+
}>>>;
|
|
30308
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
30309
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
30310
|
+
}, z.core.$strict>>;
|
|
30311
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
30312
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
30313
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
30314
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
30315
|
+
}, z.core.$strict>>;
|
|
30316
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
30317
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
30318
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
30319
|
+
}, z.core.$strict>>;
|
|
30320
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
30321
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
30322
|
+
exclusive: "exclusive";
|
|
30323
|
+
inclusive: "inclusive";
|
|
30324
|
+
}>>;
|
|
30325
|
+
code: z.ZodObject<{
|
|
30326
|
+
id: z.ZodString;
|
|
30327
|
+
}, z.core.$strict>;
|
|
30328
|
+
}, z.core.$strict>>;
|
|
30329
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30330
|
+
type: z.ZodLiteral<"metered">;
|
|
30331
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30332
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
30333
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
30334
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30335
|
+
type: z.ZodLiteral<"static">;
|
|
30336
|
+
config: z.ZodUnknown;
|
|
30337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30338
|
+
type: z.ZodLiteral<"boolean">;
|
|
30339
|
+
}, z.core.$strict>], "type">>;
|
|
30340
|
+
}, z.core.$strict>;
|
|
30341
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
30342
|
+
}, z.core.$strict>>;
|
|
30343
|
+
}, z.core.$strict>;
|
|
30344
|
+
export declare const listSubscriptionAddonsPathParamsWire: z.ZodObject<{
|
|
30345
|
+
subscriptionId: z.ZodString;
|
|
30346
|
+
}, z.core.$strip>;
|
|
30347
|
+
export declare const listSubscriptionAddonsQueryParamsWire: z.ZodObject<{
|
|
30348
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
30349
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30350
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30351
|
+
}, z.core.$strict>>;
|
|
30352
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
30353
|
+
by: z.ZodString;
|
|
30354
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
30355
|
+
}, z.core.$strict>>;
|
|
30356
|
+
}, z.core.$strip>;
|
|
30357
|
+
export declare const listSubscriptionAddonsResponseWire: z.ZodObject<{
|
|
30358
|
+
data: z.ZodArray<z.ZodObject<{
|
|
30359
|
+
id: z.ZodString;
|
|
30360
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30361
|
+
created_at: z.ZodString;
|
|
30362
|
+
updated_at: z.ZodString;
|
|
30363
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30364
|
+
name: z.ZodString;
|
|
30365
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30366
|
+
addon: z.ZodObject<{
|
|
30367
|
+
id: z.ZodString;
|
|
30368
|
+
}, z.core.$strict>;
|
|
30369
|
+
quantity: z.ZodNumber;
|
|
30370
|
+
quantity_at: z.ZodString;
|
|
30371
|
+
active_from: z.ZodString;
|
|
30372
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
30373
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
30374
|
+
active_from: z.ZodString;
|
|
30375
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
30376
|
+
quantity: z.ZodNumber;
|
|
30377
|
+
}, z.core.$strict>>;
|
|
30378
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
30379
|
+
rate_card: z.ZodObject<{
|
|
30380
|
+
name: z.ZodString;
|
|
30381
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30382
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30383
|
+
key: z.ZodString;
|
|
30384
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
30385
|
+
id: z.ZodString;
|
|
30386
|
+
}, z.core.$strict>>;
|
|
30387
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
30388
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30389
|
+
type: z.ZodLiteral<"free">;
|
|
30390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30391
|
+
type: z.ZodLiteral<"flat">;
|
|
30392
|
+
amount: z.ZodString;
|
|
30393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30394
|
+
type: z.ZodLiteral<"unit">;
|
|
30395
|
+
amount: z.ZodString;
|
|
30396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30397
|
+
type: z.ZodLiteral<"graduated">;
|
|
30398
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
30399
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
30400
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
30401
|
+
type: z.ZodLiteral<"flat">;
|
|
30402
|
+
amount: z.ZodString;
|
|
30403
|
+
}, z.core.$strict>>;
|
|
30404
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
30405
|
+
type: z.ZodLiteral<"unit">;
|
|
30406
|
+
amount: z.ZodString;
|
|
30407
|
+
}, z.core.$strict>>;
|
|
30408
|
+
}, z.core.$strict>>;
|
|
30409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30410
|
+
type: z.ZodLiteral<"volume">;
|
|
30411
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
30412
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
30413
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
30414
|
+
type: z.ZodLiteral<"flat">;
|
|
30415
|
+
amount: z.ZodString;
|
|
30416
|
+
}, z.core.$strict>>;
|
|
30417
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
30418
|
+
type: z.ZodLiteral<"unit">;
|
|
30419
|
+
amount: z.ZodString;
|
|
30420
|
+
}, z.core.$strict>>;
|
|
30421
|
+
}, z.core.$strict>>;
|
|
30422
|
+
}, z.core.$strict>], "type">;
|
|
30423
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
30424
|
+
operation: z.ZodEnum<{
|
|
30425
|
+
multiply: "multiply";
|
|
30426
|
+
divide: "divide";
|
|
30427
|
+
}>;
|
|
30428
|
+
conversion_factor: z.ZodString;
|
|
30429
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30430
|
+
none: "none";
|
|
30431
|
+
floor: "floor";
|
|
30432
|
+
ceiling: "ceiling";
|
|
30433
|
+
half_up: "half_up";
|
|
30434
|
+
}>>>;
|
|
30435
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
30436
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
30437
|
+
}, z.core.$strict>>;
|
|
30438
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
30439
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
30440
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
30441
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
30442
|
+
}, z.core.$strict>>;
|
|
30443
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
30444
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
30445
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
30446
|
+
}, z.core.$strict>>;
|
|
30447
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
30448
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
30449
|
+
exclusive: "exclusive";
|
|
30450
|
+
inclusive: "inclusive";
|
|
30451
|
+
}>>;
|
|
30452
|
+
code: z.ZodObject<{
|
|
30453
|
+
id: z.ZodString;
|
|
30454
|
+
}, z.core.$strict>;
|
|
30455
|
+
}, z.core.$strict>>;
|
|
30456
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30457
|
+
type: z.ZodLiteral<"metered">;
|
|
30458
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30459
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
30460
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
30461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30462
|
+
type: z.ZodLiteral<"static">;
|
|
30463
|
+
config: z.ZodUnknown;
|
|
30464
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30465
|
+
type: z.ZodLiteral<"boolean">;
|
|
30466
|
+
}, z.core.$strict>], "type">>;
|
|
30467
|
+
}, z.core.$strict>;
|
|
30468
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
30469
|
+
}, z.core.$strict>>;
|
|
30470
|
+
}, z.core.$strict>>;
|
|
30471
|
+
meta: z.ZodObject<{
|
|
30472
|
+
page: z.ZodObject<{
|
|
30473
|
+
number: z.ZodNumber;
|
|
30474
|
+
size: z.ZodNumber;
|
|
30475
|
+
total: z.ZodNumber;
|
|
30476
|
+
}, z.core.$strict>;
|
|
30477
|
+
}, z.core.$strict>;
|
|
30478
|
+
}, z.core.$strict>;
|
|
30479
|
+
export declare const getSubscriptionAddonPathParamsWire: z.ZodObject<{
|
|
28970
30480
|
subscriptionId: z.ZodString;
|
|
30481
|
+
subscriptionAddonId: z.ZodString;
|
|
28971
30482
|
}, z.core.$strip>;
|
|
28972
|
-
export declare const
|
|
28973
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28974
|
-
addon: z.ZodObject<{
|
|
28975
|
-
id: z.ZodString;
|
|
28976
|
-
}, z.core.$strict>;
|
|
28977
|
-
quantity: z.ZodNumber;
|
|
28978
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
28979
|
-
immediate: "immediate";
|
|
28980
|
-
next_billing_cycle: "next_billing_cycle";
|
|
28981
|
-
}>, z.ZodString]>;
|
|
28982
|
-
}, z.core.$strict>;
|
|
28983
|
-
export declare const createSubscriptionAddonResponseWire: z.ZodObject<{
|
|
30483
|
+
export declare const getSubscriptionAddonResponseWire: z.ZodObject<{
|
|
28984
30484
|
id: z.ZodString;
|
|
28985
30485
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28986
30486
|
created_at: z.ZodString;
|
|
@@ -29093,132 +30593,263 @@ export declare const createSubscriptionAddonResponseWire: z.ZodObject<{
|
|
|
29093
30593
|
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
29094
30594
|
}, z.core.$strict>>;
|
|
29095
30595
|
}, z.core.$strict>;
|
|
29096
|
-
export declare const
|
|
29097
|
-
subscriptionId: z.ZodString;
|
|
29098
|
-
}, z.core.$strip>;
|
|
29099
|
-
export declare const listSubscriptionAddonsQueryParamsWire: z.ZodObject<{
|
|
30596
|
+
export declare const listAppsQueryParamsWire: z.ZodObject<{
|
|
29100
30597
|
page: z.ZodOptional<z.ZodObject<{
|
|
29101
30598
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29102
30599
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29103
30600
|
}, z.core.$strict>>;
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
|
|
30601
|
+
}, z.core.$strip>;
|
|
30602
|
+
export declare const listAppsResponseWire: z.ZodObject<{
|
|
30603
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30604
|
+
id: z.ZodString;
|
|
30605
|
+
name: z.ZodString;
|
|
30606
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30607
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30608
|
+
created_at: z.ZodString;
|
|
30609
|
+
updated_at: z.ZodString;
|
|
30610
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30611
|
+
type: z.ZodLiteral<"stripe">;
|
|
30612
|
+
definition: z.ZodObject<{
|
|
30613
|
+
type: z.ZodEnum<{
|
|
30614
|
+
sandbox: "sandbox";
|
|
30615
|
+
stripe: "stripe";
|
|
30616
|
+
external_invoicing: "external_invoicing";
|
|
30617
|
+
}>;
|
|
30618
|
+
name: z.ZodString;
|
|
30619
|
+
description: z.ZodString;
|
|
30620
|
+
}, z.core.$strict>;
|
|
30621
|
+
status: z.ZodEnum<{
|
|
30622
|
+
ready: "ready";
|
|
30623
|
+
unauthorized: "unauthorized";
|
|
30624
|
+
}>;
|
|
30625
|
+
account_id: z.ZodString;
|
|
30626
|
+
livemode: z.ZodBoolean;
|
|
30627
|
+
masked_api_key: z.ZodString;
|
|
30628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30629
|
+
id: z.ZodString;
|
|
30630
|
+
name: z.ZodString;
|
|
30631
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30632
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30633
|
+
created_at: z.ZodString;
|
|
30634
|
+
updated_at: z.ZodString;
|
|
30635
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30636
|
+
type: z.ZodLiteral<"sandbox">;
|
|
30637
|
+
definition: z.ZodObject<{
|
|
30638
|
+
type: z.ZodEnum<{
|
|
30639
|
+
sandbox: "sandbox";
|
|
30640
|
+
stripe: "stripe";
|
|
30641
|
+
external_invoicing: "external_invoicing";
|
|
30642
|
+
}>;
|
|
30643
|
+
name: z.ZodString;
|
|
30644
|
+
description: z.ZodString;
|
|
30645
|
+
}, z.core.$strict>;
|
|
30646
|
+
status: z.ZodEnum<{
|
|
30647
|
+
ready: "ready";
|
|
30648
|
+
unauthorized: "unauthorized";
|
|
30649
|
+
}>;
|
|
30650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30651
|
+
id: z.ZodString;
|
|
30652
|
+
name: z.ZodString;
|
|
30653
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30654
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30655
|
+
created_at: z.ZodString;
|
|
30656
|
+
updated_at: z.ZodString;
|
|
30657
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30658
|
+
type: z.ZodLiteral<"external_invoicing">;
|
|
30659
|
+
definition: z.ZodObject<{
|
|
30660
|
+
type: z.ZodEnum<{
|
|
30661
|
+
sandbox: "sandbox";
|
|
30662
|
+
stripe: "stripe";
|
|
30663
|
+
external_invoicing: "external_invoicing";
|
|
30664
|
+
}>;
|
|
30665
|
+
name: z.ZodString;
|
|
30666
|
+
description: z.ZodString;
|
|
30667
|
+
}, z.core.$strict>;
|
|
30668
|
+
status: z.ZodEnum<{
|
|
30669
|
+
ready: "ready";
|
|
30670
|
+
unauthorized: "unauthorized";
|
|
30671
|
+
}>;
|
|
30672
|
+
enable_draft_sync_hook: z.ZodBoolean;
|
|
30673
|
+
enable_issuing_sync_hook: z.ZodBoolean;
|
|
30674
|
+
}, z.core.$strict>], "type">>;
|
|
30675
|
+
meta: z.ZodObject<{
|
|
30676
|
+
page: z.ZodObject<{
|
|
30677
|
+
number: z.ZodNumber;
|
|
30678
|
+
size: z.ZodNumber;
|
|
30679
|
+
total: z.ZodNumber;
|
|
30680
|
+
}, z.core.$strict>;
|
|
30681
|
+
}, z.core.$strict>;
|
|
30682
|
+
}, z.core.$strict>;
|
|
30683
|
+
export declare const getAppPathParamsWire: z.ZodObject<{
|
|
30684
|
+
appId: z.ZodString;
|
|
30685
|
+
}, z.core.$strip>;
|
|
30686
|
+
export declare const getAppResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30687
|
+
id: z.ZodString;
|
|
30688
|
+
name: z.ZodString;
|
|
30689
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30690
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30691
|
+
created_at: z.ZodString;
|
|
30692
|
+
updated_at: z.ZodString;
|
|
30693
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30694
|
+
type: z.ZodLiteral<"stripe">;
|
|
30695
|
+
definition: z.ZodObject<{
|
|
30696
|
+
type: z.ZodEnum<{
|
|
30697
|
+
sandbox: "sandbox";
|
|
30698
|
+
stripe: "stripe";
|
|
30699
|
+
external_invoicing: "external_invoicing";
|
|
30700
|
+
}>;
|
|
30701
|
+
name: z.ZodString;
|
|
30702
|
+
description: z.ZodString;
|
|
30703
|
+
}, z.core.$strict>;
|
|
30704
|
+
status: z.ZodEnum<{
|
|
30705
|
+
ready: "ready";
|
|
30706
|
+
unauthorized: "unauthorized";
|
|
30707
|
+
}>;
|
|
30708
|
+
account_id: z.ZodString;
|
|
30709
|
+
livemode: z.ZodBoolean;
|
|
30710
|
+
masked_api_key: z.ZodString;
|
|
30711
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30712
|
+
id: z.ZodString;
|
|
30713
|
+
name: z.ZodString;
|
|
30714
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30715
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30716
|
+
created_at: z.ZodString;
|
|
30717
|
+
updated_at: z.ZodString;
|
|
30718
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30719
|
+
type: z.ZodLiteral<"sandbox">;
|
|
30720
|
+
definition: z.ZodObject<{
|
|
30721
|
+
type: z.ZodEnum<{
|
|
30722
|
+
sandbox: "sandbox";
|
|
30723
|
+
stripe: "stripe";
|
|
30724
|
+
external_invoicing: "external_invoicing";
|
|
30725
|
+
}>;
|
|
30726
|
+
name: z.ZodString;
|
|
30727
|
+
description: z.ZodString;
|
|
30728
|
+
}, z.core.$strict>;
|
|
30729
|
+
status: z.ZodEnum<{
|
|
30730
|
+
ready: "ready";
|
|
30731
|
+
unauthorized: "unauthorized";
|
|
30732
|
+
}>;
|
|
30733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30734
|
+
id: z.ZodString;
|
|
30735
|
+
name: z.ZodString;
|
|
30736
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30737
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30738
|
+
created_at: z.ZodString;
|
|
30739
|
+
updated_at: z.ZodString;
|
|
30740
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
30741
|
+
type: z.ZodLiteral<"external_invoicing">;
|
|
30742
|
+
definition: z.ZodObject<{
|
|
30743
|
+
type: z.ZodEnum<{
|
|
30744
|
+
sandbox: "sandbox";
|
|
30745
|
+
stripe: "stripe";
|
|
30746
|
+
external_invoicing: "external_invoicing";
|
|
30747
|
+
}>;
|
|
30748
|
+
name: z.ZodString;
|
|
30749
|
+
description: z.ZodString;
|
|
30750
|
+
}, z.core.$strict>;
|
|
30751
|
+
status: z.ZodEnum<{
|
|
30752
|
+
ready: "ready";
|
|
30753
|
+
unauthorized: "unauthorized";
|
|
30754
|
+
}>;
|
|
30755
|
+
enable_draft_sync_hook: z.ZodBoolean;
|
|
30756
|
+
enable_issuing_sync_hook: z.ZodBoolean;
|
|
30757
|
+
}, z.core.$strict>], "type">;
|
|
30758
|
+
export declare const listBillingProfilesQueryParamsWire: z.ZodObject<{
|
|
30759
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
30760
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30761
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29107
30762
|
}, z.core.$strict>>;
|
|
29108
30763
|
}, z.core.$strip>;
|
|
29109
|
-
export declare const
|
|
30764
|
+
export declare const listBillingProfilesResponseWire: z.ZodObject<{
|
|
29110
30765
|
data: z.ZodArray<z.ZodObject<{
|
|
29111
30766
|
id: z.ZodString;
|
|
30767
|
+
name: z.ZodString;
|
|
30768
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29112
30769
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29113
30770
|
created_at: z.ZodString;
|
|
29114
30771
|
updated_at: z.ZodString;
|
|
29115
30772
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
30773
|
+
supplier: z.ZodObject<{
|
|
30774
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30775
|
+
key: z.ZodOptional<z.ZodString>;
|
|
30776
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30777
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
30778
|
+
code: z.ZodOptional<z.ZodString>;
|
|
30779
|
+
}, z.core.$strict>>;
|
|
30780
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
30781
|
+
billing_address: z.ZodObject<{
|
|
30782
|
+
country: z.ZodOptional<z.ZodString>;
|
|
30783
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
30784
|
+
state: z.ZodOptional<z.ZodString>;
|
|
30785
|
+
city: z.ZodOptional<z.ZodString>;
|
|
30786
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
30787
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
30788
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
30789
|
+
}, z.core.$strict>;
|
|
30790
|
+
}, z.core.$strict>>;
|
|
29120
30791
|
}, z.core.$strict>;
|
|
29121
|
-
|
|
29122
|
-
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
29126
|
-
active_from: z.ZodString;
|
|
29127
|
-
active_to: z.ZodOptional<z.ZodString>;
|
|
29128
|
-
quantity: z.ZodNumber;
|
|
29129
|
-
}, z.core.$strict>>;
|
|
29130
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
29131
|
-
rate_card: z.ZodObject<{
|
|
29132
|
-
name: z.ZodString;
|
|
29133
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29134
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29135
|
-
key: z.ZodString;
|
|
29136
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
29137
|
-
id: z.ZodString;
|
|
29138
|
-
}, z.core.$strict>>;
|
|
29139
|
-
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
29140
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29141
|
-
type: z.ZodLiteral<"free">;
|
|
29142
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29143
|
-
type: z.ZodLiteral<"flat">;
|
|
29144
|
-
amount: z.ZodString;
|
|
29145
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29146
|
-
type: z.ZodLiteral<"unit">;
|
|
29147
|
-
amount: z.ZodString;
|
|
29148
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29149
|
-
type: z.ZodLiteral<"graduated">;
|
|
29150
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
29151
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
29152
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
29153
|
-
type: z.ZodLiteral<"flat">;
|
|
29154
|
-
amount: z.ZodString;
|
|
29155
|
-
}, z.core.$strict>>;
|
|
29156
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
29157
|
-
type: z.ZodLiteral<"unit">;
|
|
29158
|
-
amount: z.ZodString;
|
|
29159
|
-
}, z.core.$strict>>;
|
|
29160
|
-
}, z.core.$strict>>;
|
|
30792
|
+
workflow: z.ZodObject<{
|
|
30793
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
30794
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30795
|
+
type: z.ZodLiteral<"subscription">;
|
|
29161
30796
|
}, z.core.$strict>, z.ZodObject<{
|
|
29162
|
-
type: z.ZodLiteral<"
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
}, z.core.$strict>>;
|
|
29190
|
-
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
29191
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
29192
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
29193
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
29194
|
-
}, z.core.$strict>>;
|
|
29195
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
29196
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
29197
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
29198
|
-
}, z.core.$strict>>;
|
|
29199
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
30797
|
+
type: z.ZodLiteral<"anchored">;
|
|
30798
|
+
recurring_period: z.ZodObject<{
|
|
30799
|
+
anchor: z.ZodString;
|
|
30800
|
+
interval: z.ZodString;
|
|
30801
|
+
}, z.core.$strict>;
|
|
30802
|
+
}, z.core.$strict>], "type">>>;
|
|
30803
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30804
|
+
}, z.core.$strict>>;
|
|
30805
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
30806
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30807
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30808
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30809
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30810
|
+
bill_full_period: "bill_full_period";
|
|
30811
|
+
bill_actual_period: "bill_actual_period";
|
|
30812
|
+
}>>>;
|
|
30813
|
+
}, z.core.$strict>>;
|
|
30814
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30815
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
30816
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30817
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
30818
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30819
|
+
}, z.core.$strict>], "collection_method">>;
|
|
30820
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
30821
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30822
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30823
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
29200
30824
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29201
30825
|
exclusive: "exclusive";
|
|
29202
30826
|
inclusive: "inclusive";
|
|
29203
30827
|
}>>;
|
|
29204
|
-
|
|
30828
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
30829
|
+
code: z.ZodString;
|
|
30830
|
+
}, z.core.$strict>>;
|
|
30831
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
30832
|
+
code: z.ZodString;
|
|
30833
|
+
}, z.core.$strict>>;
|
|
30834
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
30835
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
29205
30836
|
id: z.ZodString;
|
|
29206
|
-
}, z.core.$strict
|
|
30837
|
+
}, z.core.$strict>>;
|
|
29207
30838
|
}, z.core.$strict>>;
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29214
|
-
type: z.ZodLiteral<"static">;
|
|
29215
|
-
config: z.ZodUnknown;
|
|
29216
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29217
|
-
type: z.ZodLiteral<"boolean">;
|
|
29218
|
-
}, z.core.$strict>], "type">>;
|
|
30839
|
+
}, z.core.$strict>>;
|
|
30840
|
+
}, z.core.$strict>;
|
|
30841
|
+
apps: z.ZodObject<{
|
|
30842
|
+
tax: z.ZodObject<{
|
|
30843
|
+
id: z.ZodString;
|
|
29219
30844
|
}, z.core.$strict>;
|
|
29220
|
-
|
|
29221
|
-
|
|
30845
|
+
invoicing: z.ZodObject<{
|
|
30846
|
+
id: z.ZodString;
|
|
30847
|
+
}, z.core.$strict>;
|
|
30848
|
+
payment: z.ZodObject<{
|
|
30849
|
+
id: z.ZodString;
|
|
30850
|
+
}, z.core.$strict>;
|
|
30851
|
+
}, z.core.$strict>;
|
|
30852
|
+
default: z.ZodBoolean;
|
|
29222
30853
|
}, z.core.$strict>>;
|
|
29223
30854
|
meta: z.ZodObject<{
|
|
29224
30855
|
page: z.ZodObject<{
|
|
@@ -29228,214 +30859,184 @@ export declare const listSubscriptionAddonsResponseWire: z.ZodObject<{
|
|
|
29228
30859
|
}, z.core.$strict>;
|
|
29229
30860
|
}, z.core.$strict>;
|
|
29230
30861
|
}, z.core.$strict>;
|
|
29231
|
-
export declare const
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
30862
|
+
export declare const createBillingProfileBodyWire: z.ZodObject<{
|
|
30863
|
+
name: z.ZodString;
|
|
30864
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30865
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30866
|
+
supplier: z.ZodObject<{
|
|
30867
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30868
|
+
key: z.ZodOptional<z.ZodString>;
|
|
30869
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30870
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
30871
|
+
code: z.ZodOptional<z.ZodString>;
|
|
30872
|
+
}, z.core.$strict>>;
|
|
30873
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
30874
|
+
billing_address: z.ZodObject<{
|
|
30875
|
+
country: z.ZodOptional<z.ZodString>;
|
|
30876
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
30877
|
+
state: z.ZodOptional<z.ZodString>;
|
|
30878
|
+
city: z.ZodOptional<z.ZodString>;
|
|
30879
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
30880
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
30881
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
30882
|
+
}, z.core.$strict>;
|
|
30883
|
+
}, z.core.$strict>>;
|
|
30884
|
+
}, z.core.$strict>;
|
|
30885
|
+
workflow: z.ZodObject<{
|
|
30886
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
30887
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30888
|
+
type: z.ZodLiteral<"subscription">;
|
|
30889
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30890
|
+
type: z.ZodLiteral<"anchored">;
|
|
30891
|
+
recurring_period: z.ZodObject<{
|
|
30892
|
+
anchor: z.ZodString;
|
|
30893
|
+
interval: z.ZodString;
|
|
30894
|
+
}, z.core.$strict>;
|
|
30895
|
+
}, z.core.$strict>], "type">>>;
|
|
30896
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30897
|
+
}, z.core.$strict>>;
|
|
30898
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
30899
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30900
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30901
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30902
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30903
|
+
bill_full_period: "bill_full_period";
|
|
30904
|
+
bill_actual_period: "bill_actual_period";
|
|
30905
|
+
}>>>;
|
|
30906
|
+
}, z.core.$strict>>;
|
|
30907
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30908
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
30909
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30910
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
30911
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30912
|
+
}, z.core.$strict>], "collection_method">>;
|
|
30913
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
30914
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30915
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30916
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
30917
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
30918
|
+
exclusive: "exclusive";
|
|
30919
|
+
inclusive: "inclusive";
|
|
30920
|
+
}>>;
|
|
30921
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
30922
|
+
code: z.ZodString;
|
|
30923
|
+
}, z.core.$strict>>;
|
|
30924
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
30925
|
+
code: z.ZodString;
|
|
30926
|
+
}, z.core.$strict>>;
|
|
30927
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
30928
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
30929
|
+
id: z.ZodString;
|
|
30930
|
+
}, z.core.$strict>>;
|
|
30931
|
+
}, z.core.$strict>>;
|
|
30932
|
+
}, z.core.$strict>>;
|
|
30933
|
+
}, z.core.$strict>;
|
|
30934
|
+
apps: z.ZodObject<{
|
|
30935
|
+
tax: z.ZodObject<{
|
|
30936
|
+
id: z.ZodString;
|
|
30937
|
+
}, z.core.$strict>;
|
|
30938
|
+
invoicing: z.ZodObject<{
|
|
30939
|
+
id: z.ZodString;
|
|
30940
|
+
}, z.core.$strict>;
|
|
30941
|
+
payment: z.ZodObject<{
|
|
30942
|
+
id: z.ZodString;
|
|
30943
|
+
}, z.core.$strict>;
|
|
30944
|
+
}, z.core.$strict>;
|
|
30945
|
+
default: z.ZodBoolean;
|
|
30946
|
+
}, z.core.$strict>;
|
|
30947
|
+
export declare const createBillingProfileResponseWire: z.ZodObject<{
|
|
29236
30948
|
id: z.ZodString;
|
|
30949
|
+
name: z.ZodString;
|
|
30950
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29237
30951
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29238
30952
|
created_at: z.ZodString;
|
|
29239
30953
|
updated_at: z.ZodString;
|
|
29240
30954
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29241
|
-
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
30955
|
+
supplier: z.ZodObject<{
|
|
30956
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30957
|
+
key: z.ZodOptional<z.ZodString>;
|
|
30958
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30959
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
30960
|
+
code: z.ZodOptional<z.ZodString>;
|
|
30961
|
+
}, z.core.$strict>>;
|
|
30962
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
30963
|
+
billing_address: z.ZodObject<{
|
|
30964
|
+
country: z.ZodOptional<z.ZodString>;
|
|
30965
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
30966
|
+
state: z.ZodOptional<z.ZodString>;
|
|
30967
|
+
city: z.ZodOptional<z.ZodString>;
|
|
30968
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
30969
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
30970
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
30971
|
+
}, z.core.$strict>;
|
|
30972
|
+
}, z.core.$strict>>;
|
|
29245
30973
|
}, z.core.$strict>;
|
|
29246
|
-
|
|
29247
|
-
|
|
29248
|
-
|
|
29249
|
-
|
|
29250
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
29251
|
-
active_from: z.ZodString;
|
|
29252
|
-
active_to: z.ZodOptional<z.ZodString>;
|
|
29253
|
-
quantity: z.ZodNumber;
|
|
29254
|
-
}, z.core.$strict>>;
|
|
29255
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
29256
|
-
rate_card: z.ZodObject<{
|
|
29257
|
-
name: z.ZodString;
|
|
29258
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29259
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29260
|
-
key: z.ZodString;
|
|
29261
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
29262
|
-
id: z.ZodString;
|
|
29263
|
-
}, z.core.$strict>>;
|
|
29264
|
-
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
29265
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29266
|
-
type: z.ZodLiteral<"free">;
|
|
29267
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29268
|
-
type: z.ZodLiteral<"flat">;
|
|
29269
|
-
amount: z.ZodString;
|
|
29270
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29271
|
-
type: z.ZodLiteral<"unit">;
|
|
29272
|
-
amount: z.ZodString;
|
|
29273
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29274
|
-
type: z.ZodLiteral<"graduated">;
|
|
29275
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
29276
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
29277
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
29278
|
-
type: z.ZodLiteral<"flat">;
|
|
29279
|
-
amount: z.ZodString;
|
|
29280
|
-
}, z.core.$strict>>;
|
|
29281
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
29282
|
-
type: z.ZodLiteral<"unit">;
|
|
29283
|
-
amount: z.ZodString;
|
|
29284
|
-
}, z.core.$strict>>;
|
|
29285
|
-
}, z.core.$strict>>;
|
|
30974
|
+
workflow: z.ZodObject<{
|
|
30975
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
30976
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30977
|
+
type: z.ZodLiteral<"subscription">;
|
|
29286
30978
|
}, z.core.$strict>, z.ZodObject<{
|
|
29287
|
-
type: z.ZodLiteral<"
|
|
29288
|
-
|
|
29289
|
-
|
|
29290
|
-
|
|
29291
|
-
|
|
29292
|
-
|
|
29293
|
-
|
|
29294
|
-
|
|
29295
|
-
|
|
29296
|
-
|
|
29297
|
-
|
|
29298
|
-
|
|
29299
|
-
|
|
29300
|
-
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
-
|
|
29304
|
-
|
|
29305
|
-
|
|
29306
|
-
|
|
29307
|
-
|
|
29308
|
-
|
|
29309
|
-
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
|
|
29313
|
-
|
|
29314
|
-
}, z.core.$strict>>;
|
|
29315
|
-
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
29316
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
29317
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
29318
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
29319
|
-
}, z.core.$strict>>;
|
|
29320
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
29321
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
29322
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
29323
|
-
}, z.core.$strict>>;
|
|
29324
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
30979
|
+
type: z.ZodLiteral<"anchored">;
|
|
30980
|
+
recurring_period: z.ZodObject<{
|
|
30981
|
+
anchor: z.ZodString;
|
|
30982
|
+
interval: z.ZodString;
|
|
30983
|
+
}, z.core.$strict>;
|
|
30984
|
+
}, z.core.$strict>], "type">>>;
|
|
30985
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30986
|
+
}, z.core.$strict>>;
|
|
30987
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
30988
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30989
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30990
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30991
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30992
|
+
bill_full_period: "bill_full_period";
|
|
30993
|
+
bill_actual_period: "bill_actual_period";
|
|
30994
|
+
}>>>;
|
|
30995
|
+
}, z.core.$strict>>;
|
|
30996
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30997
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
30998
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30999
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31000
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31001
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31002
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
31003
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31004
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31005
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
29325
31006
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29326
31007
|
exclusive: "exclusive";
|
|
29327
31008
|
inclusive: "inclusive";
|
|
29328
31009
|
}>>;
|
|
29329
|
-
|
|
31010
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
31011
|
+
code: z.ZodString;
|
|
31012
|
+
}, z.core.$strict>>;
|
|
31013
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
31014
|
+
code: z.ZodString;
|
|
31015
|
+
}, z.core.$strict>>;
|
|
31016
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
31017
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
29330
31018
|
id: z.ZodString;
|
|
29331
|
-
}, z.core.$strict
|
|
31019
|
+
}, z.core.$strict>>;
|
|
29332
31020
|
}, z.core.$strict>>;
|
|
29333
|
-
|
|
29334
|
-
|
|
29335
|
-
|
|
29336
|
-
|
|
29337
|
-
|
|
29338
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29339
|
-
type: z.ZodLiteral<"static">;
|
|
29340
|
-
config: z.ZodUnknown;
|
|
29341
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29342
|
-
type: z.ZodLiteral<"boolean">;
|
|
29343
|
-
}, z.core.$strict>], "type">>;
|
|
29344
|
-
}, z.core.$strict>;
|
|
29345
|
-
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
29346
|
-
}, z.core.$strict>>;
|
|
29347
|
-
}, z.core.$strict>;
|
|
29348
|
-
export declare const listAppsQueryParamsWire: z.ZodObject<{
|
|
29349
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
29350
|
-
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29351
|
-
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29352
|
-
}, z.core.$strict>>;
|
|
29353
|
-
}, z.core.$strip>;
|
|
29354
|
-
export declare const listAppsResponseWire: z.ZodObject<{
|
|
29355
|
-
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29356
|
-
id: z.ZodString;
|
|
29357
|
-
name: z.ZodString;
|
|
29358
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29359
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29360
|
-
created_at: z.ZodString;
|
|
29361
|
-
updated_at: z.ZodString;
|
|
29362
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29363
|
-
type: z.ZodLiteral<"stripe">;
|
|
29364
|
-
definition: z.ZodObject<{
|
|
29365
|
-
type: z.ZodEnum<{
|
|
29366
|
-
sandbox: "sandbox";
|
|
29367
|
-
stripe: "stripe";
|
|
29368
|
-
external_invoicing: "external_invoicing";
|
|
29369
|
-
}>;
|
|
29370
|
-
name: z.ZodString;
|
|
29371
|
-
description: z.ZodString;
|
|
29372
|
-
}, z.core.$strict>;
|
|
29373
|
-
status: z.ZodEnum<{
|
|
29374
|
-
ready: "ready";
|
|
29375
|
-
unauthorized: "unauthorized";
|
|
29376
|
-
}>;
|
|
29377
|
-
account_id: z.ZodString;
|
|
29378
|
-
livemode: z.ZodBoolean;
|
|
29379
|
-
masked_api_key: z.ZodString;
|
|
29380
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29381
|
-
id: z.ZodString;
|
|
29382
|
-
name: z.ZodString;
|
|
29383
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29384
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29385
|
-
created_at: z.ZodString;
|
|
29386
|
-
updated_at: z.ZodString;
|
|
29387
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29388
|
-
type: z.ZodLiteral<"sandbox">;
|
|
29389
|
-
definition: z.ZodObject<{
|
|
29390
|
-
type: z.ZodEnum<{
|
|
29391
|
-
sandbox: "sandbox";
|
|
29392
|
-
stripe: "stripe";
|
|
29393
|
-
external_invoicing: "external_invoicing";
|
|
29394
|
-
}>;
|
|
29395
|
-
name: z.ZodString;
|
|
29396
|
-
description: z.ZodString;
|
|
31021
|
+
}, z.core.$strict>>;
|
|
31022
|
+
}, z.core.$strict>;
|
|
31023
|
+
apps: z.ZodObject<{
|
|
31024
|
+
tax: z.ZodObject<{
|
|
31025
|
+
id: z.ZodString;
|
|
29397
31026
|
}, z.core.$strict>;
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
unauthorized: "unauthorized";
|
|
29401
|
-
}>;
|
|
29402
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29403
|
-
id: z.ZodString;
|
|
29404
|
-
name: z.ZodString;
|
|
29405
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29406
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29407
|
-
created_at: z.ZodString;
|
|
29408
|
-
updated_at: z.ZodString;
|
|
29409
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29410
|
-
type: z.ZodLiteral<"external_invoicing">;
|
|
29411
|
-
definition: z.ZodObject<{
|
|
29412
|
-
type: z.ZodEnum<{
|
|
29413
|
-
sandbox: "sandbox";
|
|
29414
|
-
stripe: "stripe";
|
|
29415
|
-
external_invoicing: "external_invoicing";
|
|
29416
|
-
}>;
|
|
29417
|
-
name: z.ZodString;
|
|
29418
|
-
description: z.ZodString;
|
|
31027
|
+
invoicing: z.ZodObject<{
|
|
31028
|
+
id: z.ZodString;
|
|
29419
31029
|
}, z.core.$strict>;
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
unauthorized: "unauthorized";
|
|
29423
|
-
}>;
|
|
29424
|
-
enable_draft_sync_hook: z.ZodBoolean;
|
|
29425
|
-
enable_issuing_sync_hook: z.ZodBoolean;
|
|
29426
|
-
}, z.core.$strict>], "type">>;
|
|
29427
|
-
meta: z.ZodObject<{
|
|
29428
|
-
page: z.ZodObject<{
|
|
29429
|
-
number: z.ZodNumber;
|
|
29430
|
-
size: z.ZodNumber;
|
|
29431
|
-
total: z.ZodNumber;
|
|
31030
|
+
payment: z.ZodObject<{
|
|
31031
|
+
id: z.ZodString;
|
|
29432
31032
|
}, z.core.$strict>;
|
|
29433
31033
|
}, z.core.$strict>;
|
|
31034
|
+
default: z.ZodBoolean;
|
|
29434
31035
|
}, z.core.$strict>;
|
|
29435
|
-
export declare const
|
|
29436
|
-
|
|
31036
|
+
export declare const getBillingProfilePathParamsWire: z.ZodObject<{
|
|
31037
|
+
id: z.ZodString;
|
|
29437
31038
|
}, z.core.$strip>;
|
|
29438
|
-
export declare const
|
|
31039
|
+
export declare const getBillingProfileResponseWire: z.ZodObject<{
|
|
29439
31040
|
id: z.ZodString;
|
|
29440
31041
|
name: z.ZodString;
|
|
29441
31042
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -29443,24 +31044,165 @@ export declare const getAppResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
29443
31044
|
created_at: z.ZodString;
|
|
29444
31045
|
updated_at: z.ZodString;
|
|
29445
31046
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
}
|
|
29453
|
-
|
|
29454
|
-
|
|
31047
|
+
supplier: z.ZodObject<{
|
|
31048
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31049
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31050
|
+
name: z.ZodOptional<z.ZodString>;
|
|
31051
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
31052
|
+
code: z.ZodOptional<z.ZodString>;
|
|
31053
|
+
}, z.core.$strict>>;
|
|
31054
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
31055
|
+
billing_address: z.ZodObject<{
|
|
31056
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31057
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31058
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31059
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31060
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31061
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31062
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31063
|
+
}, z.core.$strict>;
|
|
31064
|
+
}, z.core.$strict>>;
|
|
29455
31065
|
}, z.core.$strict>;
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29459
|
-
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
31066
|
+
workflow: z.ZodObject<{
|
|
31067
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
31068
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31069
|
+
type: z.ZodLiteral<"subscription">;
|
|
31070
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31071
|
+
type: z.ZodLiteral<"anchored">;
|
|
31072
|
+
recurring_period: z.ZodObject<{
|
|
31073
|
+
anchor: z.ZodString;
|
|
31074
|
+
interval: z.ZodString;
|
|
31075
|
+
}, z.core.$strict>;
|
|
31076
|
+
}, z.core.$strict>], "type">>>;
|
|
31077
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31078
|
+
}, z.core.$strict>>;
|
|
31079
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
31080
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31081
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31082
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31083
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
31084
|
+
bill_full_period: "bill_full_period";
|
|
31085
|
+
bill_actual_period: "bill_actual_period";
|
|
31086
|
+
}>>>;
|
|
31087
|
+
}, z.core.$strict>>;
|
|
31088
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31089
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
31090
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31091
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31092
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31093
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31094
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
31095
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31096
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31097
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
31098
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
31099
|
+
exclusive: "exclusive";
|
|
31100
|
+
inclusive: "inclusive";
|
|
31101
|
+
}>>;
|
|
31102
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
31103
|
+
code: z.ZodString;
|
|
31104
|
+
}, z.core.$strict>>;
|
|
31105
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
31106
|
+
code: z.ZodString;
|
|
31107
|
+
}, z.core.$strict>>;
|
|
31108
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
31109
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
31110
|
+
id: z.ZodString;
|
|
31111
|
+
}, z.core.$strict>>;
|
|
31112
|
+
}, z.core.$strict>>;
|
|
31113
|
+
}, z.core.$strict>>;
|
|
31114
|
+
}, z.core.$strict>;
|
|
31115
|
+
apps: z.ZodObject<{
|
|
31116
|
+
tax: z.ZodObject<{
|
|
31117
|
+
id: z.ZodString;
|
|
31118
|
+
}, z.core.$strict>;
|
|
31119
|
+
invoicing: z.ZodObject<{
|
|
31120
|
+
id: z.ZodString;
|
|
31121
|
+
}, z.core.$strict>;
|
|
31122
|
+
payment: z.ZodObject<{
|
|
31123
|
+
id: z.ZodString;
|
|
31124
|
+
}, z.core.$strict>;
|
|
31125
|
+
}, z.core.$strict>;
|
|
31126
|
+
default: z.ZodBoolean;
|
|
31127
|
+
}, z.core.$strict>;
|
|
31128
|
+
export declare const updateBillingProfilePathParamsWire: z.ZodObject<{
|
|
31129
|
+
id: z.ZodString;
|
|
31130
|
+
}, z.core.$strip>;
|
|
31131
|
+
export declare const updateBillingProfileBodyWire: z.ZodObject<{
|
|
31132
|
+
name: z.ZodString;
|
|
31133
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31134
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31135
|
+
supplier: z.ZodObject<{
|
|
31136
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31137
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31138
|
+
name: z.ZodOptional<z.ZodString>;
|
|
31139
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
31140
|
+
code: z.ZodOptional<z.ZodString>;
|
|
31141
|
+
}, z.core.$strict>>;
|
|
31142
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
31143
|
+
billing_address: z.ZodObject<{
|
|
31144
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31145
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31146
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31147
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31148
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31149
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31150
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31151
|
+
}, z.core.$strict>;
|
|
31152
|
+
}, z.core.$strict>>;
|
|
31153
|
+
}, z.core.$strict>;
|
|
31154
|
+
workflow: z.ZodObject<{
|
|
31155
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
31156
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31157
|
+
type: z.ZodLiteral<"subscription">;
|
|
31158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31159
|
+
type: z.ZodLiteral<"anchored">;
|
|
31160
|
+
recurring_period: z.ZodObject<{
|
|
31161
|
+
anchor: z.ZodString;
|
|
31162
|
+
interval: z.ZodString;
|
|
31163
|
+
}, z.core.$strict>;
|
|
31164
|
+
}, z.core.$strict>], "type">>>;
|
|
31165
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31166
|
+
}, z.core.$strict>>;
|
|
31167
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
31168
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31169
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31170
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31171
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
31172
|
+
bill_full_period: "bill_full_period";
|
|
31173
|
+
bill_actual_period: "bill_actual_period";
|
|
31174
|
+
}>>>;
|
|
31175
|
+
}, z.core.$strict>>;
|
|
31176
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31177
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
31178
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31179
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31180
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31181
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31182
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
31183
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31184
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31185
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
31186
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
31187
|
+
exclusive: "exclusive";
|
|
31188
|
+
inclusive: "inclusive";
|
|
31189
|
+
}>>;
|
|
31190
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
31191
|
+
code: z.ZodString;
|
|
31192
|
+
}, z.core.$strict>>;
|
|
31193
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
31194
|
+
code: z.ZodString;
|
|
31195
|
+
}, z.core.$strict>>;
|
|
31196
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
31197
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
31198
|
+
id: z.ZodString;
|
|
31199
|
+
}, z.core.$strict>>;
|
|
31200
|
+
}, z.core.$strict>>;
|
|
31201
|
+
}, z.core.$strict>>;
|
|
31202
|
+
}, z.core.$strict>;
|
|
31203
|
+
default: z.ZodBoolean;
|
|
31204
|
+
}, z.core.$strict>;
|
|
31205
|
+
export declare const updateBillingProfileResponseWire: z.ZodObject<{
|
|
29464
31206
|
id: z.ZodString;
|
|
29465
31207
|
name: z.ZodString;
|
|
29466
31208
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -29468,245 +31210,486 @@ export declare const getAppResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
29468
31210
|
created_at: z.ZodString;
|
|
29469
31211
|
updated_at: z.ZodString;
|
|
29470
31212
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29471
|
-
|
|
29472
|
-
|
|
29473
|
-
|
|
29474
|
-
|
|
29475
|
-
|
|
29476
|
-
|
|
29477
|
-
}
|
|
29478
|
-
|
|
29479
|
-
|
|
31213
|
+
supplier: z.ZodObject<{
|
|
31214
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31215
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31216
|
+
name: z.ZodOptional<z.ZodString>;
|
|
31217
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
31218
|
+
code: z.ZodOptional<z.ZodString>;
|
|
31219
|
+
}, z.core.$strict>>;
|
|
31220
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
31221
|
+
billing_address: z.ZodObject<{
|
|
31222
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31223
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31224
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31225
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31226
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31227
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31228
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31229
|
+
}, z.core.$strict>;
|
|
31230
|
+
}, z.core.$strict>>;
|
|
31231
|
+
}, z.core.$strict>;
|
|
31232
|
+
workflow: z.ZodObject<{
|
|
31233
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
31234
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31235
|
+
type: z.ZodLiteral<"subscription">;
|
|
31236
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31237
|
+
type: z.ZodLiteral<"anchored">;
|
|
31238
|
+
recurring_period: z.ZodObject<{
|
|
31239
|
+
anchor: z.ZodString;
|
|
31240
|
+
interval: z.ZodString;
|
|
31241
|
+
}, z.core.$strict>;
|
|
31242
|
+
}, z.core.$strict>], "type">>>;
|
|
31243
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31244
|
+
}, z.core.$strict>>;
|
|
31245
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
31246
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31247
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31248
|
+
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31249
|
+
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
31250
|
+
bill_full_period: "bill_full_period";
|
|
31251
|
+
bill_actual_period: "bill_actual_period";
|
|
31252
|
+
}>>>;
|
|
31253
|
+
}, z.core.$strict>>;
|
|
31254
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31255
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
31256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31257
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31258
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31259
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31260
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
31261
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31262
|
+
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31263
|
+
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
31264
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
31265
|
+
exclusive: "exclusive";
|
|
31266
|
+
inclusive: "inclusive";
|
|
31267
|
+
}>>;
|
|
31268
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
31269
|
+
code: z.ZodString;
|
|
31270
|
+
}, z.core.$strict>>;
|
|
31271
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
31272
|
+
code: z.ZodString;
|
|
31273
|
+
}, z.core.$strict>>;
|
|
31274
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
31275
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
31276
|
+
id: z.ZodString;
|
|
31277
|
+
}, z.core.$strict>>;
|
|
31278
|
+
}, z.core.$strict>>;
|
|
31279
|
+
}, z.core.$strict>>;
|
|
29480
31280
|
}, z.core.$strict>;
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
29485
|
-
|
|
29486
|
-
|
|
29487
|
-
|
|
29488
|
-
|
|
29489
|
-
|
|
29490
|
-
|
|
29491
|
-
updated_at: z.ZodString;
|
|
29492
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29493
|
-
type: z.ZodLiteral<"external_invoicing">;
|
|
29494
|
-
definition: z.ZodObject<{
|
|
29495
|
-
type: z.ZodEnum<{
|
|
29496
|
-
sandbox: "sandbox";
|
|
29497
|
-
stripe: "stripe";
|
|
29498
|
-
external_invoicing: "external_invoicing";
|
|
29499
|
-
}>;
|
|
29500
|
-
name: z.ZodString;
|
|
29501
|
-
description: z.ZodString;
|
|
31281
|
+
apps: z.ZodObject<{
|
|
31282
|
+
tax: z.ZodObject<{
|
|
31283
|
+
id: z.ZodString;
|
|
31284
|
+
}, z.core.$strict>;
|
|
31285
|
+
invoicing: z.ZodObject<{
|
|
31286
|
+
id: z.ZodString;
|
|
31287
|
+
}, z.core.$strict>;
|
|
31288
|
+
payment: z.ZodObject<{
|
|
31289
|
+
id: z.ZodString;
|
|
31290
|
+
}, z.core.$strict>;
|
|
29502
31291
|
}, z.core.$strict>;
|
|
29503
|
-
|
|
29504
|
-
|
|
29505
|
-
|
|
29506
|
-
|
|
29507
|
-
|
|
29508
|
-
|
|
29509
|
-
}, z.core.$strict>], "type">;
|
|
29510
|
-
export declare const listBillingProfilesQueryParamsWire: z.ZodObject<{
|
|
31292
|
+
default: z.ZodBoolean;
|
|
31293
|
+
}, z.core.$strict>;
|
|
31294
|
+
export declare const deleteBillingProfilePathParamsWire: z.ZodObject<{
|
|
31295
|
+
id: z.ZodString;
|
|
31296
|
+
}, z.core.$strip>;
|
|
31297
|
+
export declare const listInvoicesQueryParamsWire: z.ZodObject<{
|
|
29511
31298
|
page: z.ZodOptional<z.ZodObject<{
|
|
29512
31299
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29513
31300
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29514
31301
|
}, z.core.$strict>>;
|
|
31302
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
31303
|
+
by: z.ZodString;
|
|
31304
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
31305
|
+
}, z.core.$strict>>;
|
|
31306
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
31307
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31308
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
31309
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31310
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
31311
|
+
}, z.core.$strict>]>>;
|
|
31312
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31313
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
31314
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31315
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
31316
|
+
}, z.core.$strict>]>>;
|
|
31317
|
+
issued_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31318
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
31319
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
31320
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
31321
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
31322
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
31323
|
+
}, z.core.$strict>]>>;
|
|
31324
|
+
service_period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31325
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
31326
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
31327
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
31328
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
31329
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
31330
|
+
}, z.core.$strict>]>>;
|
|
31331
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31332
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
31333
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
31334
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
31335
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
31336
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
31337
|
+
}, z.core.$strict>]>>;
|
|
31338
|
+
}, z.core.$strict>>;
|
|
29515
31339
|
}, z.core.$strip>;
|
|
29516
|
-
export declare const
|
|
29517
|
-
data: z.ZodArray<z.ZodObject<{
|
|
31340
|
+
export declare const listInvoicesResponseWire: z.ZodObject<{
|
|
31341
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29518
31342
|
id: z.ZodString;
|
|
29519
|
-
name: z.ZodString;
|
|
29520
31343
|
description: z.ZodOptional<z.ZodString>;
|
|
29521
31344
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29522
31345
|
created_at: z.ZodString;
|
|
29523
31346
|
updated_at: z.ZodString;
|
|
29524
31347
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31348
|
+
number: z.ZodString;
|
|
31349
|
+
currency: z.ZodString;
|
|
29525
31350
|
supplier: z.ZodObject<{
|
|
29526
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29527
|
-
key: z.ZodOptional<z.ZodString>;
|
|
29528
31351
|
name: z.ZodOptional<z.ZodString>;
|
|
29529
31352
|
tax_id: z.ZodOptional<z.ZodObject<{
|
|
29530
31353
|
code: z.ZodOptional<z.ZodString>;
|
|
29531
31354
|
}, z.core.$strict>>;
|
|
29532
|
-
addresses: z.ZodOptional<z.ZodObject<{
|
|
29533
|
-
billing_address: z.ZodObject<{
|
|
29534
|
-
country: z.ZodOptional<z.ZodString>;
|
|
29535
|
-
postal_code: z.ZodOptional<z.ZodString>;
|
|
29536
|
-
state: z.ZodOptional<z.ZodString>;
|
|
29537
|
-
city: z.ZodOptional<z.ZodString>;
|
|
29538
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
29539
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
29540
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
29541
|
-
}, z.core.$strict>;
|
|
31355
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
31356
|
+
billing_address: z.ZodObject<{
|
|
31357
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31358
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31359
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31360
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31361
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31362
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31363
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31364
|
+
}, z.core.$strict>;
|
|
31365
|
+
}, z.core.$strict>>;
|
|
31366
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31367
|
+
}, z.core.$strict>;
|
|
31368
|
+
customer: z.ZodObject<{
|
|
31369
|
+
name: z.ZodString;
|
|
31370
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
31371
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
31372
|
+
}, z.core.$strict>>;
|
|
31373
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
31374
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31375
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31376
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31377
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31378
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31379
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31380
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31381
|
+
}, z.core.$strict>>;
|
|
31382
|
+
id: z.ZodString;
|
|
31383
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31384
|
+
}, z.core.$strict>;
|
|
31385
|
+
totals: z.ZodObject<{
|
|
31386
|
+
amount: z.ZodString;
|
|
31387
|
+
taxes_total: z.ZodString;
|
|
31388
|
+
taxes_inclusive_total: z.ZodString;
|
|
31389
|
+
taxes_exclusive_total: z.ZodString;
|
|
31390
|
+
charges_total: z.ZodString;
|
|
31391
|
+
discounts_total: z.ZodString;
|
|
31392
|
+
credits_total: z.ZodString;
|
|
31393
|
+
total: z.ZodString;
|
|
31394
|
+
}, z.core.$strict>;
|
|
31395
|
+
service_period: z.ZodObject<{
|
|
31396
|
+
from: z.ZodString;
|
|
31397
|
+
to: z.ZodString;
|
|
31398
|
+
}, z.core.$strict>;
|
|
31399
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31400
|
+
code: z.ZodString;
|
|
31401
|
+
message: z.ZodString;
|
|
31402
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31403
|
+
severity: z.ZodEnum<{
|
|
31404
|
+
critical: "critical";
|
|
31405
|
+
warning: "warning";
|
|
31406
|
+
}>;
|
|
31407
|
+
field: z.ZodOptional<z.ZodString>;
|
|
31408
|
+
}, z.core.$strict>>>;
|
|
31409
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31410
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31411
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
31412
|
+
}, z.core.$strict>>;
|
|
31413
|
+
type: z.ZodLiteral<"standard">;
|
|
31414
|
+
status: z.ZodEnum<{
|
|
31415
|
+
voided: "voided";
|
|
31416
|
+
draft: "draft";
|
|
31417
|
+
issuing: "issuing";
|
|
31418
|
+
issued: "issued";
|
|
31419
|
+
payment_processing: "payment_processing";
|
|
31420
|
+
overdue: "overdue";
|
|
31421
|
+
paid: "paid";
|
|
31422
|
+
uncollectible: "uncollectible";
|
|
31423
|
+
}>;
|
|
31424
|
+
status_details: z.ZodObject<{
|
|
31425
|
+
immutable: z.ZodBoolean;
|
|
31426
|
+
failed: z.ZodBoolean;
|
|
31427
|
+
extended_status: z.ZodString;
|
|
31428
|
+
available_actions: z.ZodObject<{
|
|
31429
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
31430
|
+
resulting_state: z.ZodString;
|
|
31431
|
+
}, z.core.$strict>>;
|
|
31432
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
31433
|
+
resulting_state: z.ZodString;
|
|
31434
|
+
}, z.core.$strict>>;
|
|
31435
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
31436
|
+
resulting_state: z.ZodString;
|
|
31437
|
+
}, z.core.$strict>>;
|
|
31438
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
31439
|
+
resulting_state: z.ZodString;
|
|
31440
|
+
}, z.core.$strict>>;
|
|
31441
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
31442
|
+
resulting_state: z.ZodString;
|
|
31443
|
+
}, z.core.$strict>>;
|
|
31444
|
+
}, z.core.$strict>;
|
|
31445
|
+
}, z.core.$strict>;
|
|
31446
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
31447
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
31448
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
31449
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
31450
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
31451
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
31452
|
+
workflow: z.ZodObject<{
|
|
31453
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
31454
|
+
tax: z.ZodObject<{
|
|
31455
|
+
id: z.ZodString;
|
|
31456
|
+
}, z.core.$strict>;
|
|
31457
|
+
invoicing: z.ZodObject<{
|
|
31458
|
+
id: z.ZodString;
|
|
31459
|
+
}, z.core.$strict>;
|
|
31460
|
+
payment: z.ZodObject<{
|
|
31461
|
+
id: z.ZodString;
|
|
31462
|
+
}, z.core.$strict>;
|
|
31463
|
+
}, z.core.$strict>>;
|
|
31464
|
+
source_billing_profile: z.ZodObject<{
|
|
31465
|
+
id: z.ZodString;
|
|
31466
|
+
}, z.core.$strict>;
|
|
31467
|
+
workflow: z.ZodObject<{
|
|
31468
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
31469
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31470
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31471
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
31472
|
+
}, z.core.$strict>>;
|
|
31473
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31474
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
31475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31476
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31477
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31478
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31479
|
+
}, z.core.$strict>;
|
|
31480
|
+
}, z.core.$strict>;
|
|
31481
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31482
|
+
name: z.ZodString;
|
|
31483
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31484
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31485
|
+
created_at: z.ZodString;
|
|
31486
|
+
updated_at: z.ZodString;
|
|
31487
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31488
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31489
|
+
type: z.ZodLiteral<"standard_line">;
|
|
31490
|
+
lifecycle_controller: z.ZodEnum<{
|
|
31491
|
+
manual: "manual";
|
|
31492
|
+
system: "system";
|
|
31493
|
+
}>;
|
|
31494
|
+
service_period: z.ZodObject<{
|
|
31495
|
+
from: z.ZodString;
|
|
31496
|
+
to: z.ZodString;
|
|
31497
|
+
}, z.core.$strict>;
|
|
31498
|
+
totals: z.ZodObject<{
|
|
31499
|
+
amount: z.ZodString;
|
|
31500
|
+
taxes_total: z.ZodString;
|
|
31501
|
+
taxes_inclusive_total: z.ZodString;
|
|
31502
|
+
taxes_exclusive_total: z.ZodString;
|
|
31503
|
+
charges_total: z.ZodString;
|
|
31504
|
+
discounts_total: z.ZodString;
|
|
31505
|
+
credits_total: z.ZodString;
|
|
31506
|
+
total: z.ZodString;
|
|
31507
|
+
}, z.core.$strict>;
|
|
31508
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31509
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31510
|
+
id: z.ZodString;
|
|
31511
|
+
reason: z.ZodEnum<{
|
|
31512
|
+
maximum_spend: "maximum_spend";
|
|
31513
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31514
|
+
ratecard_usage: "ratecard_usage";
|
|
31515
|
+
}>;
|
|
31516
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31517
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31518
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31519
|
+
}, z.core.$strict>>;
|
|
31520
|
+
amount: z.ZodString;
|
|
31521
|
+
}, z.core.$strict>>>;
|
|
31522
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31523
|
+
id: z.ZodString;
|
|
31524
|
+
reason: z.ZodEnum<{
|
|
31525
|
+
maximum_spend: "maximum_spend";
|
|
31526
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31527
|
+
ratecard_usage: "ratecard_usage";
|
|
31528
|
+
}>;
|
|
31529
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31530
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31531
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31532
|
+
}, z.core.$strict>>;
|
|
31533
|
+
quantity: z.ZodString;
|
|
31534
|
+
}, z.core.$strict>>>;
|
|
31535
|
+
}, z.core.$strict>>;
|
|
31536
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31537
|
+
amount: z.ZodString;
|
|
31538
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31539
|
+
}, z.core.$strict>>>;
|
|
31540
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31541
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
29542
31542
|
}, z.core.$strict>>;
|
|
29543
|
-
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
type: z.ZodLiteral<"anchored">;
|
|
29550
|
-
recurring_period: z.ZodObject<{
|
|
29551
|
-
anchor: z.ZodString;
|
|
29552
|
-
interval: z.ZodString;
|
|
31543
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
31544
|
+
id: z.ZodString;
|
|
31545
|
+
phase: z.ZodObject<{
|
|
31546
|
+
id: z.ZodString;
|
|
31547
|
+
item: z.ZodObject<{
|
|
31548
|
+
id: z.ZodString;
|
|
29553
31549
|
}, z.core.$strict>;
|
|
29554
|
-
}, z.core.$strict
|
|
29555
|
-
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29556
|
-
}, z.core.$strict>>;
|
|
29557
|
-
invoicing: z.ZodOptional<z.ZodObject<{
|
|
29558
|
-
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29559
|
-
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29560
|
-
progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29561
|
-
subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
29562
|
-
bill_full_period: "bill_full_period";
|
|
29563
|
-
bill_actual_period: "bill_actual_period";
|
|
29564
|
-
}>>>;
|
|
31550
|
+
}, z.core.$strict>;
|
|
29565
31551
|
}, z.core.$strict>>;
|
|
29566
|
-
|
|
29567
|
-
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
31552
|
+
rate_card: z.ZodObject<{
|
|
31553
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31554
|
+
type: z.ZodLiteral<"free">;
|
|
31555
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31556
|
+
type: z.ZodLiteral<"flat">;
|
|
31557
|
+
amount: z.ZodString;
|
|
31558
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31559
|
+
type: z.ZodLiteral<"unit">;
|
|
31560
|
+
amount: z.ZodString;
|
|
31561
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31562
|
+
type: z.ZodLiteral<"graduated">;
|
|
31563
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
31564
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
31565
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
31566
|
+
type: z.ZodLiteral<"flat">;
|
|
31567
|
+
amount: z.ZodString;
|
|
31568
|
+
}, z.core.$strict>>;
|
|
31569
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
31570
|
+
type: z.ZodLiteral<"unit">;
|
|
31571
|
+
amount: z.ZodString;
|
|
31572
|
+
}, z.core.$strict>>;
|
|
31573
|
+
}, z.core.$strict>>;
|
|
31574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31575
|
+
type: z.ZodLiteral<"volume">;
|
|
31576
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
31577
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
31578
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
31579
|
+
type: z.ZodLiteral<"flat">;
|
|
31580
|
+
amount: z.ZodString;
|
|
31581
|
+
}, z.core.$strict>>;
|
|
31582
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
31583
|
+
type: z.ZodLiteral<"unit">;
|
|
31584
|
+
amount: z.ZodString;
|
|
31585
|
+
}, z.core.$strict>>;
|
|
31586
|
+
}, z.core.$strict>>;
|
|
31587
|
+
}, z.core.$strict>], "type">;
|
|
31588
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
29576
31589
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29577
31590
|
exclusive: "exclusive";
|
|
29578
31591
|
inclusive: "inclusive";
|
|
29579
31592
|
}>>;
|
|
29580
|
-
|
|
29581
|
-
code: z.ZodString;
|
|
29582
|
-
}, z.core.$strict>>;
|
|
29583
|
-
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
29584
|
-
code: z.ZodString;
|
|
29585
|
-
}, z.core.$strict>>;
|
|
29586
|
-
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
29587
|
-
tax_code: z.ZodOptional<z.ZodObject<{
|
|
31593
|
+
code: z.ZodObject<{
|
|
29588
31594
|
id: z.ZodString;
|
|
29589
|
-
}, z.core.$strict
|
|
31595
|
+
}, z.core.$strict>;
|
|
31596
|
+
}, z.core.$strict>>;
|
|
31597
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
31598
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31599
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
31600
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
29590
31601
|
}, z.core.$strict>>;
|
|
29591
|
-
}, z.core.$strict>>;
|
|
29592
|
-
}, z.core.$strict>;
|
|
29593
|
-
apps: z.ZodObject<{
|
|
29594
|
-
tax: z.ZodObject<{
|
|
29595
|
-
id: z.ZodString;
|
|
29596
|
-
}, z.core.$strict>;
|
|
29597
|
-
invoicing: z.ZodObject<{
|
|
29598
|
-
id: z.ZodString;
|
|
29599
31602
|
}, z.core.$strict>;
|
|
29600
|
-
|
|
31603
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
29601
31604
|
id: z.ZodString;
|
|
29602
|
-
|
|
29603
|
-
|
|
29604
|
-
|
|
29605
|
-
|
|
29606
|
-
|
|
29607
|
-
|
|
29608
|
-
|
|
29609
|
-
|
|
29610
|
-
|
|
29611
|
-
}, z.core.$strict>;
|
|
29612
|
-
}, z.core.$strict>;
|
|
29613
|
-
}, z.core.$strict>;
|
|
29614
|
-
export declare const createBillingProfileBodyWire: z.ZodObject<{
|
|
29615
|
-
name: z.ZodString;
|
|
29616
|
-
description: z.ZodOptional<z.ZodString>;
|
|
29617
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29618
|
-
supplier: z.ZodObject<{
|
|
29619
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29620
|
-
key: z.ZodOptional<z.ZodString>;
|
|
29621
|
-
name: z.ZodOptional<z.ZodString>;
|
|
29622
|
-
tax_id: z.ZodOptional<z.ZodObject<{
|
|
29623
|
-
code: z.ZodOptional<z.ZodString>;
|
|
29624
|
-
}, z.core.$strict>>;
|
|
29625
|
-
addresses: z.ZodOptional<z.ZodObject<{
|
|
29626
|
-
billing_address: z.ZodObject<{
|
|
29627
|
-
country: z.ZodOptional<z.ZodString>;
|
|
29628
|
-
postal_code: z.ZodOptional<z.ZodString>;
|
|
29629
|
-
state: z.ZodOptional<z.ZodString>;
|
|
29630
|
-
city: z.ZodOptional<z.ZodString>;
|
|
29631
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
29632
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
29633
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
29634
|
-
}, z.core.$strict>;
|
|
29635
|
-
}, z.core.$strict>>;
|
|
29636
|
-
}, z.core.$strict>;
|
|
29637
|
-
workflow: z.ZodObject<{
|
|
29638
|
-
collection: z.ZodOptional<z.ZodObject<{
|
|
29639
|
-
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29640
|
-
type: z.ZodLiteral<"subscription">;
|
|
29641
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29642
|
-
type: z.ZodLiteral<"anchored">;
|
|
29643
|
-
recurring_period: z.ZodObject<{
|
|
29644
|
-
anchor: z.ZodString;
|
|
29645
|
-
interval: z.ZodString;
|
|
31605
|
+
name: z.ZodString;
|
|
31606
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31607
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31608
|
+
created_at: z.ZodString;
|
|
31609
|
+
updated_at: z.ZodString;
|
|
31610
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31611
|
+
service_period: z.ZodObject<{
|
|
31612
|
+
from: z.ZodString;
|
|
31613
|
+
to: z.ZodString;
|
|
29646
31614
|
}, z.core.$strict>;
|
|
29647
|
-
|
|
29648
|
-
|
|
29649
|
-
|
|
29650
|
-
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
|
|
29654
|
-
|
|
29655
|
-
|
|
29656
|
-
|
|
29657
|
-
|
|
29658
|
-
|
|
29659
|
-
|
|
29660
|
-
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
29661
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29662
|
-
collection_method: z.ZodLiteral<"send_invoice">;
|
|
29663
|
-
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29664
|
-
}, z.core.$strict>], "collection_method">>;
|
|
29665
|
-
tax: z.ZodOptional<z.ZodObject<{
|
|
29666
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29667
|
-
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29668
|
-
default_tax_config: z.ZodOptional<z.ZodObject<{
|
|
29669
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29670
|
-
exclusive: "exclusive";
|
|
29671
|
-
inclusive: "inclusive";
|
|
31615
|
+
totals: z.ZodObject<{
|
|
31616
|
+
amount: z.ZodString;
|
|
31617
|
+
taxes_total: z.ZodString;
|
|
31618
|
+
taxes_inclusive_total: z.ZodString;
|
|
31619
|
+
taxes_exclusive_total: z.ZodString;
|
|
31620
|
+
charges_total: z.ZodString;
|
|
31621
|
+
discounts_total: z.ZodString;
|
|
31622
|
+
credits_total: z.ZodString;
|
|
31623
|
+
total: z.ZodString;
|
|
31624
|
+
}, z.core.$strict>;
|
|
31625
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
31626
|
+
regular: "regular";
|
|
31627
|
+
commitment: "commitment";
|
|
29672
31628
|
}>>;
|
|
29673
|
-
|
|
29674
|
-
|
|
29675
|
-
|
|
29676
|
-
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
31629
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31630
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31631
|
+
id: z.ZodString;
|
|
31632
|
+
reason: z.ZodEnum<{
|
|
31633
|
+
maximum_spend: "maximum_spend";
|
|
31634
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31635
|
+
ratecard_usage: "ratecard_usage";
|
|
31636
|
+
}>;
|
|
31637
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31638
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31639
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31640
|
+
}, z.core.$strict>>;
|
|
31641
|
+
amount: z.ZodString;
|
|
31642
|
+
}, z.core.$strict>>>;
|
|
31643
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31644
|
+
id: z.ZodString;
|
|
31645
|
+
reason: z.ZodEnum<{
|
|
31646
|
+
maximum_spend: "maximum_spend";
|
|
31647
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31648
|
+
ratecard_usage: "ratecard_usage";
|
|
31649
|
+
}>;
|
|
31650
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31651
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31652
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31653
|
+
}, z.core.$strict>>;
|
|
31654
|
+
quantity: z.ZodString;
|
|
31655
|
+
}, z.core.$strict>>>;
|
|
29682
31656
|
}, z.core.$strict>>;
|
|
31657
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31658
|
+
amount: z.ZodString;
|
|
31659
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31660
|
+
}, z.core.$strict>>>;
|
|
31661
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31662
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31663
|
+
}, z.core.$strict>>;
|
|
31664
|
+
quantity: z.ZodString;
|
|
31665
|
+
unit_price: z.ZodString;
|
|
29683
31666
|
}, z.core.$strict>>;
|
|
29684
|
-
|
|
29685
|
-
|
|
29686
|
-
|
|
29687
|
-
|
|
29688
|
-
|
|
29689
|
-
|
|
29690
|
-
|
|
29691
|
-
|
|
29692
|
-
|
|
29693
|
-
|
|
29694
|
-
id: z.ZodString;
|
|
31667
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
31668
|
+
id: z.ZodString;
|
|
31669
|
+
}, z.core.$strict>>;
|
|
31670
|
+
}, z.core.$strict>], "type">>>;
|
|
31671
|
+
}, z.core.$strict>], "type">>;
|
|
31672
|
+
meta: z.ZodObject<{
|
|
31673
|
+
page: z.ZodObject<{
|
|
31674
|
+
number: z.ZodNumber;
|
|
31675
|
+
size: z.ZodNumber;
|
|
31676
|
+
total: z.ZodNumber;
|
|
29695
31677
|
}, z.core.$strict>;
|
|
29696
31678
|
}, z.core.$strict>;
|
|
29697
|
-
default: z.ZodBoolean;
|
|
29698
31679
|
}, z.core.$strict>;
|
|
29699
|
-
export declare const
|
|
31680
|
+
export declare const getInvoicePathParamsWire: z.ZodObject<{
|
|
31681
|
+
invoiceId: z.ZodString;
|
|
31682
|
+
}, z.core.$strip>;
|
|
31683
|
+
export declare const getInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29700
31684
|
id: z.ZodString;
|
|
29701
|
-
name: z.ZodString;
|
|
29702
31685
|
description: z.ZodOptional<z.ZodString>;
|
|
29703
31686
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29704
31687
|
created_at: z.ZodString;
|
|
29705
31688
|
updated_at: z.ZodString;
|
|
29706
31689
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31690
|
+
number: z.ZodString;
|
|
31691
|
+
currency: z.ZodString;
|
|
29707
31692
|
supplier: z.ZodObject<{
|
|
29708
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29709
|
-
key: z.ZodOptional<z.ZodString>;
|
|
29710
31693
|
name: z.ZodOptional<z.ZodString>;
|
|
29711
31694
|
tax_id: z.ZodOptional<z.ZodObject<{
|
|
29712
31695
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -29722,83 +31705,319 @@ export declare const createBillingProfileResponseWire: z.ZodObject<{
|
|
|
29722
31705
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
29723
31706
|
}, z.core.$strict>;
|
|
29724
31707
|
}, z.core.$strict>>;
|
|
31708
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31709
|
+
}, z.core.$strict>;
|
|
31710
|
+
customer: z.ZodObject<{
|
|
31711
|
+
name: z.ZodString;
|
|
31712
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
31713
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
31714
|
+
}, z.core.$strict>>;
|
|
31715
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
31716
|
+
country: z.ZodOptional<z.ZodString>;
|
|
31717
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
31718
|
+
state: z.ZodOptional<z.ZodString>;
|
|
31719
|
+
city: z.ZodOptional<z.ZodString>;
|
|
31720
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
31721
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
31722
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
31723
|
+
}, z.core.$strict>>;
|
|
31724
|
+
id: z.ZodString;
|
|
31725
|
+
key: z.ZodOptional<z.ZodString>;
|
|
31726
|
+
}, z.core.$strict>;
|
|
31727
|
+
totals: z.ZodObject<{
|
|
31728
|
+
amount: z.ZodString;
|
|
31729
|
+
taxes_total: z.ZodString;
|
|
31730
|
+
taxes_inclusive_total: z.ZodString;
|
|
31731
|
+
taxes_exclusive_total: z.ZodString;
|
|
31732
|
+
charges_total: z.ZodString;
|
|
31733
|
+
discounts_total: z.ZodString;
|
|
31734
|
+
credits_total: z.ZodString;
|
|
31735
|
+
total: z.ZodString;
|
|
31736
|
+
}, z.core.$strict>;
|
|
31737
|
+
service_period: z.ZodObject<{
|
|
31738
|
+
from: z.ZodString;
|
|
31739
|
+
to: z.ZodString;
|
|
31740
|
+
}, z.core.$strict>;
|
|
31741
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31742
|
+
code: z.ZodString;
|
|
31743
|
+
message: z.ZodString;
|
|
31744
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31745
|
+
severity: z.ZodEnum<{
|
|
31746
|
+
critical: "critical";
|
|
31747
|
+
warning: "warning";
|
|
31748
|
+
}>;
|
|
31749
|
+
field: z.ZodOptional<z.ZodString>;
|
|
31750
|
+
}, z.core.$strict>>>;
|
|
31751
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31752
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31753
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
31754
|
+
}, z.core.$strict>>;
|
|
31755
|
+
type: z.ZodLiteral<"standard">;
|
|
31756
|
+
status: z.ZodEnum<{
|
|
31757
|
+
voided: "voided";
|
|
31758
|
+
draft: "draft";
|
|
31759
|
+
issuing: "issuing";
|
|
31760
|
+
issued: "issued";
|
|
31761
|
+
payment_processing: "payment_processing";
|
|
31762
|
+
overdue: "overdue";
|
|
31763
|
+
paid: "paid";
|
|
31764
|
+
uncollectible: "uncollectible";
|
|
31765
|
+
}>;
|
|
31766
|
+
status_details: z.ZodObject<{
|
|
31767
|
+
immutable: z.ZodBoolean;
|
|
31768
|
+
failed: z.ZodBoolean;
|
|
31769
|
+
extended_status: z.ZodString;
|
|
31770
|
+
available_actions: z.ZodObject<{
|
|
31771
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
31772
|
+
resulting_state: z.ZodString;
|
|
31773
|
+
}, z.core.$strict>>;
|
|
31774
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
31775
|
+
resulting_state: z.ZodString;
|
|
31776
|
+
}, z.core.$strict>>;
|
|
31777
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
31778
|
+
resulting_state: z.ZodString;
|
|
31779
|
+
}, z.core.$strict>>;
|
|
31780
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
31781
|
+
resulting_state: z.ZodString;
|
|
31782
|
+
}, z.core.$strict>>;
|
|
31783
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
31784
|
+
resulting_state: z.ZodString;
|
|
31785
|
+
}, z.core.$strict>>;
|
|
31786
|
+
}, z.core.$strict>;
|
|
29725
31787
|
}, z.core.$strict>;
|
|
31788
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
31789
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
31790
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
31791
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
31792
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
31793
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
29726
31794
|
workflow: z.ZodObject<{
|
|
29727
|
-
|
|
29728
|
-
|
|
29729
|
-
|
|
31795
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
31796
|
+
tax: z.ZodObject<{
|
|
31797
|
+
id: z.ZodString;
|
|
31798
|
+
}, z.core.$strict>;
|
|
31799
|
+
invoicing: z.ZodObject<{
|
|
31800
|
+
id: z.ZodString;
|
|
31801
|
+
}, z.core.$strict>;
|
|
31802
|
+
payment: z.ZodObject<{
|
|
31803
|
+
id: z.ZodString;
|
|
31804
|
+
}, z.core.$strict>;
|
|
31805
|
+
}, z.core.$strict>>;
|
|
31806
|
+
source_billing_profile: z.ZodObject<{
|
|
31807
|
+
id: z.ZodString;
|
|
31808
|
+
}, z.core.$strict>;
|
|
31809
|
+
workflow: z.ZodObject<{
|
|
31810
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
31811
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31812
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31813
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
31814
|
+
}, z.core.$strict>>;
|
|
31815
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31816
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
29730
31817
|
}, z.core.$strict>, z.ZodObject<{
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29734
|
-
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
-
|
|
31818
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
31819
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31820
|
+
}, z.core.$strict>], "collection_method">>;
|
|
31821
|
+
}, z.core.$strict>;
|
|
31822
|
+
}, z.core.$strict>;
|
|
31823
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31824
|
+
name: z.ZodString;
|
|
31825
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31826
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31827
|
+
created_at: z.ZodString;
|
|
31828
|
+
updated_at: z.ZodString;
|
|
31829
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31830
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31831
|
+
type: z.ZodLiteral<"standard_line">;
|
|
31832
|
+
lifecycle_controller: z.ZodEnum<{
|
|
31833
|
+
manual: "manual";
|
|
31834
|
+
system: "system";
|
|
31835
|
+
}>;
|
|
31836
|
+
service_period: z.ZodObject<{
|
|
31837
|
+
from: z.ZodString;
|
|
31838
|
+
to: z.ZodString;
|
|
31839
|
+
}, z.core.$strict>;
|
|
31840
|
+
totals: z.ZodObject<{
|
|
31841
|
+
amount: z.ZodString;
|
|
31842
|
+
taxes_total: z.ZodString;
|
|
31843
|
+
taxes_inclusive_total: z.ZodString;
|
|
31844
|
+
taxes_exclusive_total: z.ZodString;
|
|
31845
|
+
charges_total: z.ZodString;
|
|
31846
|
+
discounts_total: z.ZodString;
|
|
31847
|
+
credits_total: z.ZodString;
|
|
31848
|
+
total: z.ZodString;
|
|
31849
|
+
}, z.core.$strict>;
|
|
31850
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31851
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31852
|
+
id: z.ZodString;
|
|
31853
|
+
reason: z.ZodEnum<{
|
|
31854
|
+
maximum_spend: "maximum_spend";
|
|
31855
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31856
|
+
ratecard_usage: "ratecard_usage";
|
|
31857
|
+
}>;
|
|
31858
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31859
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31860
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31861
|
+
}, z.core.$strict>>;
|
|
31862
|
+
amount: z.ZodString;
|
|
31863
|
+
}, z.core.$strict>>>;
|
|
31864
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31865
|
+
id: z.ZodString;
|
|
31866
|
+
reason: z.ZodEnum<{
|
|
31867
|
+
maximum_spend: "maximum_spend";
|
|
31868
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31869
|
+
ratecard_usage: "ratecard_usage";
|
|
31870
|
+
}>;
|
|
31871
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31872
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31873
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31874
|
+
}, z.core.$strict>>;
|
|
31875
|
+
quantity: z.ZodString;
|
|
31876
|
+
}, z.core.$strict>>>;
|
|
29738
31877
|
}, z.core.$strict>>;
|
|
29739
|
-
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
|
|
29743
|
-
|
|
29744
|
-
|
|
29745
|
-
bill_actual_period: "bill_actual_period";
|
|
29746
|
-
}>>>;
|
|
31878
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31879
|
+
amount: z.ZodString;
|
|
31880
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31881
|
+
}, z.core.$strict>>>;
|
|
31882
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31883
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
29747
31884
|
}, z.core.$strict>>;
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
|
|
31885
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
31886
|
+
id: z.ZodString;
|
|
31887
|
+
phase: z.ZodObject<{
|
|
31888
|
+
id: z.ZodString;
|
|
31889
|
+
item: z.ZodObject<{
|
|
31890
|
+
id: z.ZodString;
|
|
31891
|
+
}, z.core.$strict>;
|
|
31892
|
+
}, z.core.$strict>;
|
|
31893
|
+
}, z.core.$strict>>;
|
|
31894
|
+
rate_card: z.ZodObject<{
|
|
31895
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31896
|
+
type: z.ZodLiteral<"free">;
|
|
31897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31898
|
+
type: z.ZodLiteral<"flat">;
|
|
31899
|
+
amount: z.ZodString;
|
|
31900
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31901
|
+
type: z.ZodLiteral<"unit">;
|
|
31902
|
+
amount: z.ZodString;
|
|
31903
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31904
|
+
type: z.ZodLiteral<"graduated">;
|
|
31905
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
31906
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
31907
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
31908
|
+
type: z.ZodLiteral<"flat">;
|
|
31909
|
+
amount: z.ZodString;
|
|
31910
|
+
}, z.core.$strict>>;
|
|
31911
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
31912
|
+
type: z.ZodLiteral<"unit">;
|
|
31913
|
+
amount: z.ZodString;
|
|
31914
|
+
}, z.core.$strict>>;
|
|
31915
|
+
}, z.core.$strict>>;
|
|
31916
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31917
|
+
type: z.ZodLiteral<"volume">;
|
|
31918
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
31919
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
31920
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
31921
|
+
type: z.ZodLiteral<"flat">;
|
|
31922
|
+
amount: z.ZodString;
|
|
31923
|
+
}, z.core.$strict>>;
|
|
31924
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
31925
|
+
type: z.ZodLiteral<"unit">;
|
|
31926
|
+
amount: z.ZodString;
|
|
31927
|
+
}, z.core.$strict>>;
|
|
31928
|
+
}, z.core.$strict>>;
|
|
31929
|
+
}, z.core.$strict>], "type">;
|
|
31930
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
29758
31931
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29759
31932
|
exclusive: "exclusive";
|
|
29760
31933
|
inclusive: "inclusive";
|
|
29761
31934
|
}>>;
|
|
29762
|
-
|
|
29763
|
-
code: z.ZodString;
|
|
29764
|
-
}, z.core.$strict>>;
|
|
29765
|
-
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
29766
|
-
code: z.ZodString;
|
|
29767
|
-
}, z.core.$strict>>;
|
|
29768
|
-
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
29769
|
-
tax_code: z.ZodOptional<z.ZodObject<{
|
|
31935
|
+
code: z.ZodObject<{
|
|
29770
31936
|
id: z.ZodString;
|
|
29771
|
-
}, z.core.$strict
|
|
31937
|
+
}, z.core.$strict>;
|
|
31938
|
+
}, z.core.$strict>>;
|
|
31939
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
31940
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31941
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
31942
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
29772
31943
|
}, z.core.$strict>>;
|
|
29773
|
-
}, z.core.$strict>>;
|
|
29774
|
-
}, z.core.$strict>;
|
|
29775
|
-
apps: z.ZodObject<{
|
|
29776
|
-
tax: z.ZodObject<{
|
|
29777
|
-
id: z.ZodString;
|
|
29778
31944
|
}, z.core.$strict>;
|
|
29779
|
-
|
|
31945
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
29780
31946
|
id: z.ZodString;
|
|
29781
|
-
|
|
29782
|
-
|
|
31947
|
+
name: z.ZodString;
|
|
31948
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31949
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31950
|
+
created_at: z.ZodString;
|
|
31951
|
+
updated_at: z.ZodString;
|
|
31952
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
31953
|
+
service_period: z.ZodObject<{
|
|
31954
|
+
from: z.ZodString;
|
|
31955
|
+
to: z.ZodString;
|
|
31956
|
+
}, z.core.$strict>;
|
|
31957
|
+
totals: z.ZodObject<{
|
|
31958
|
+
amount: z.ZodString;
|
|
31959
|
+
taxes_total: z.ZodString;
|
|
31960
|
+
taxes_inclusive_total: z.ZodString;
|
|
31961
|
+
taxes_exclusive_total: z.ZodString;
|
|
31962
|
+
charges_total: z.ZodString;
|
|
31963
|
+
discounts_total: z.ZodString;
|
|
31964
|
+
credits_total: z.ZodString;
|
|
31965
|
+
total: z.ZodString;
|
|
31966
|
+
}, z.core.$strict>;
|
|
31967
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
31968
|
+
regular: "regular";
|
|
31969
|
+
commitment: "commitment";
|
|
31970
|
+
}>>;
|
|
31971
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
31972
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31973
|
+
id: z.ZodString;
|
|
31974
|
+
reason: z.ZodEnum<{
|
|
31975
|
+
maximum_spend: "maximum_spend";
|
|
31976
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31977
|
+
ratecard_usage: "ratecard_usage";
|
|
31978
|
+
}>;
|
|
31979
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31980
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31981
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31982
|
+
}, z.core.$strict>>;
|
|
31983
|
+
amount: z.ZodString;
|
|
31984
|
+
}, z.core.$strict>>>;
|
|
31985
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31986
|
+
id: z.ZodString;
|
|
31987
|
+
reason: z.ZodEnum<{
|
|
31988
|
+
maximum_spend: "maximum_spend";
|
|
31989
|
+
ratecard_percentage: "ratecard_percentage";
|
|
31990
|
+
ratecard_usage: "ratecard_usage";
|
|
31991
|
+
}>;
|
|
31992
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31993
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
31994
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
31995
|
+
}, z.core.$strict>>;
|
|
31996
|
+
quantity: z.ZodString;
|
|
31997
|
+
}, z.core.$strict>>>;
|
|
31998
|
+
}, z.core.$strict>>;
|
|
31999
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32000
|
+
amount: z.ZodString;
|
|
32001
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32002
|
+
}, z.core.$strict>>>;
|
|
32003
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32004
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32005
|
+
}, z.core.$strict>>;
|
|
32006
|
+
quantity: z.ZodString;
|
|
32007
|
+
unit_price: z.ZodString;
|
|
32008
|
+
}, z.core.$strict>>;
|
|
32009
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
29783
32010
|
id: z.ZodString;
|
|
29784
|
-
}, z.core.$strict
|
|
29785
|
-
}, z.core.$strict
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
id: z.ZodString;
|
|
32011
|
+
}, z.core.$strict>>;
|
|
32012
|
+
}, z.core.$strict>], "type">>>;
|
|
32013
|
+
}, z.core.$strict>], "type">;
|
|
32014
|
+
export declare const updateInvoicePathParamsWire: z.ZodObject<{
|
|
32015
|
+
invoiceId: z.ZodString;
|
|
29790
32016
|
}, z.core.$strip>;
|
|
29791
|
-
export declare const
|
|
29792
|
-
id: z.ZodString;
|
|
29793
|
-
name: z.ZodString;
|
|
32017
|
+
export declare const updateInvoiceBodyWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29794
32018
|
description: z.ZodOptional<z.ZodString>;
|
|
29795
32019
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29796
|
-
created_at: z.ZodString;
|
|
29797
|
-
updated_at: z.ZodString;
|
|
29798
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29799
32020
|
supplier: z.ZodObject<{
|
|
29800
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29801
|
-
key: z.ZodOptional<z.ZodString>;
|
|
29802
32021
|
name: z.ZodOptional<z.ZodString>;
|
|
29803
32022
|
tax_id: z.ZodOptional<z.ZodObject<{
|
|
29804
32023
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -29814,79 +32033,113 @@ export declare const getBillingProfileResponseWire: z.ZodObject<{
|
|
|
29814
32033
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
29815
32034
|
}, z.core.$strict>;
|
|
29816
32035
|
}, z.core.$strict>>;
|
|
32036
|
+
id: z.ZodOptional<z.ZodString>;
|
|
29817
32037
|
}, z.core.$strict>;
|
|
29818
|
-
|
|
29819
|
-
|
|
29820
|
-
|
|
29821
|
-
|
|
29822
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29823
|
-
type: z.ZodLiteral<"anchored">;
|
|
29824
|
-
recurring_period: z.ZodObject<{
|
|
29825
|
-
anchor: z.ZodString;
|
|
29826
|
-
interval: z.ZodString;
|
|
29827
|
-
}, z.core.$strict>;
|
|
29828
|
-
}, z.core.$strict>], "type">>>;
|
|
29829
|
-
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32038
|
+
customer: z.ZodObject<{
|
|
32039
|
+
name: z.ZodString;
|
|
32040
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
32041
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
29830
32042
|
}, z.core.$strict>>;
|
|
29831
|
-
|
|
29832
|
-
|
|
29833
|
-
|
|
29834
|
-
|
|
29835
|
-
|
|
29836
|
-
|
|
29837
|
-
|
|
29838
|
-
|
|
32043
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
32044
|
+
country: z.ZodOptional<z.ZodString>;
|
|
32045
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
32046
|
+
state: z.ZodOptional<z.ZodString>;
|
|
32047
|
+
city: z.ZodOptional<z.ZodString>;
|
|
32048
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
32049
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
32050
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
29839
32051
|
}, z.core.$strict>>;
|
|
29840
|
-
|
|
29841
|
-
|
|
29842
|
-
|
|
29843
|
-
|
|
29844
|
-
|
|
29845
|
-
|
|
29846
|
-
|
|
29847
|
-
|
|
29848
|
-
|
|
29849
|
-
|
|
32052
|
+
id: z.ZodString;
|
|
32053
|
+
key: z.ZodOptional<z.ZodString>;
|
|
32054
|
+
}, z.core.$strict>;
|
|
32055
|
+
type: z.ZodLiteral<"standard">;
|
|
32056
|
+
workflow: z.ZodObject<{
|
|
32057
|
+
workflow: z.ZodObject<{
|
|
32058
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
32059
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32060
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32061
|
+
}, z.core.$strict>>;
|
|
32062
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32063
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
32064
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32065
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
32066
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32067
|
+
}, z.core.$strict>], "collection_method">>;
|
|
32068
|
+
}, z.core.$strict>;
|
|
32069
|
+
}, z.core.$strict>;
|
|
32070
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32071
|
+
name: z.ZodString;
|
|
32072
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32073
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32074
|
+
id: z.ZodOptional<z.ZodString>;
|
|
32075
|
+
type: z.ZodLiteral<"standard_line">;
|
|
32076
|
+
service_period: z.ZodObject<{
|
|
32077
|
+
from: z.ZodString;
|
|
32078
|
+
to: z.ZodString;
|
|
32079
|
+
}, z.core.$strict>;
|
|
32080
|
+
rate_card: z.ZodObject<{
|
|
32081
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32082
|
+
type: z.ZodLiteral<"free">;
|
|
32083
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32084
|
+
type: z.ZodLiteral<"flat">;
|
|
32085
|
+
amount: z.ZodString;
|
|
32086
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32087
|
+
type: z.ZodLiteral<"unit">;
|
|
32088
|
+
amount: z.ZodString;
|
|
32089
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32090
|
+
type: z.ZodLiteral<"graduated">;
|
|
32091
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
32092
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
32093
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
32094
|
+
type: z.ZodLiteral<"flat">;
|
|
32095
|
+
amount: z.ZodString;
|
|
32096
|
+
}, z.core.$strict>>;
|
|
32097
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
32098
|
+
type: z.ZodLiteral<"unit">;
|
|
32099
|
+
amount: z.ZodString;
|
|
32100
|
+
}, z.core.$strict>>;
|
|
32101
|
+
}, z.core.$strict>>;
|
|
32102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32103
|
+
type: z.ZodLiteral<"volume">;
|
|
32104
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
32105
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
32106
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
32107
|
+
type: z.ZodLiteral<"flat">;
|
|
32108
|
+
amount: z.ZodString;
|
|
32109
|
+
}, z.core.$strict>>;
|
|
32110
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
32111
|
+
type: z.ZodLiteral<"unit">;
|
|
32112
|
+
amount: z.ZodString;
|
|
32113
|
+
}, z.core.$strict>>;
|
|
32114
|
+
}, z.core.$strict>>;
|
|
32115
|
+
}, z.core.$strict>], "type">;
|
|
32116
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
29850
32117
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
29851
32118
|
exclusive: "exclusive";
|
|
29852
32119
|
inclusive: "inclusive";
|
|
29853
32120
|
}>>;
|
|
29854
|
-
|
|
29855
|
-
code: z.ZodString;
|
|
29856
|
-
}, z.core.$strict>>;
|
|
29857
|
-
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
29858
|
-
code: z.ZodString;
|
|
29859
|
-
}, z.core.$strict>>;
|
|
29860
|
-
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
29861
|
-
tax_code: z.ZodOptional<z.ZodObject<{
|
|
32121
|
+
code: z.ZodObject<{
|
|
29862
32122
|
id: z.ZodString;
|
|
29863
|
-
}, z.core.$strict
|
|
32123
|
+
}, z.core.$strict>;
|
|
32124
|
+
}, z.core.$strict>>;
|
|
32125
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
32126
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
32127
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
32128
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
29864
32129
|
}, z.core.$strict>>;
|
|
29865
|
-
}, z.core.$strict>>;
|
|
29866
|
-
}, z.core.$strict>;
|
|
29867
|
-
apps: z.ZodObject<{
|
|
29868
|
-
tax: z.ZodObject<{
|
|
29869
|
-
id: z.ZodString;
|
|
29870
|
-
}, z.core.$strict>;
|
|
29871
|
-
invoicing: z.ZodObject<{
|
|
29872
|
-
id: z.ZodString;
|
|
29873
|
-
}, z.core.$strict>;
|
|
29874
|
-
payment: z.ZodObject<{
|
|
29875
|
-
id: z.ZodString;
|
|
29876
32130
|
}, z.core.$strict>;
|
|
29877
|
-
}, z.core.$strict
|
|
29878
|
-
|
|
29879
|
-
|
|
29880
|
-
export declare const updateBillingProfilePathParamsWire: z.ZodObject<{
|
|
32131
|
+
}, z.core.$strict>], "type">>>;
|
|
32132
|
+
}, z.core.$strict>], "type">;
|
|
32133
|
+
export declare const updateInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29881
32134
|
id: z.ZodString;
|
|
29882
|
-
}, z.core.$strip>;
|
|
29883
|
-
export declare const updateBillingProfileBodyWire: z.ZodObject<{
|
|
29884
|
-
name: z.ZodString;
|
|
29885
32135
|
description: z.ZodOptional<z.ZodString>;
|
|
29886
32136
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32137
|
+
created_at: z.ZodString;
|
|
32138
|
+
updated_at: z.ZodString;
|
|
32139
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
32140
|
+
number: z.ZodString;
|
|
32141
|
+
currency: z.ZodString;
|
|
29887
32142
|
supplier: z.ZodObject<{
|
|
29888
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29889
|
-
key: z.ZodOptional<z.ZodString>;
|
|
29890
32143
|
name: z.ZodOptional<z.ZodString>;
|
|
29891
32144
|
tax_id: z.ZodOptional<z.ZodObject<{
|
|
29892
32145
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -29902,149 +32155,314 @@ export declare const updateBillingProfileBodyWire: z.ZodObject<{
|
|
|
29902
32155
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
29903
32156
|
}, z.core.$strict>;
|
|
29904
32157
|
}, z.core.$strict>>;
|
|
32158
|
+
id: z.ZodOptional<z.ZodString>;
|
|
29905
32159
|
}, z.core.$strict>;
|
|
29906
|
-
|
|
29907
|
-
|
|
29908
|
-
|
|
29909
|
-
|
|
29910
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29911
|
-
type: z.ZodLiteral<"anchored">;
|
|
29912
|
-
recurring_period: z.ZodObject<{
|
|
29913
|
-
anchor: z.ZodString;
|
|
29914
|
-
interval: z.ZodString;
|
|
29915
|
-
}, z.core.$strict>;
|
|
29916
|
-
}, z.core.$strict>], "type">>>;
|
|
29917
|
-
interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32160
|
+
customer: z.ZodObject<{
|
|
32161
|
+
name: z.ZodString;
|
|
32162
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
32163
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
29918
32164
|
}, z.core.$strict>>;
|
|
29919
|
-
|
|
29920
|
-
|
|
29921
|
-
|
|
29922
|
-
|
|
29923
|
-
|
|
29924
|
-
|
|
29925
|
-
|
|
29926
|
-
|
|
32165
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
32166
|
+
country: z.ZodOptional<z.ZodString>;
|
|
32167
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
32168
|
+
state: z.ZodOptional<z.ZodString>;
|
|
32169
|
+
city: z.ZodOptional<z.ZodString>;
|
|
32170
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
32171
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
32172
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
29927
32173
|
}, z.core.$strict>>;
|
|
29928
|
-
|
|
29929
|
-
|
|
29930
|
-
|
|
29931
|
-
|
|
29932
|
-
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
-
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
|
|
29947
|
-
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
|
|
29951
|
-
|
|
32174
|
+
id: z.ZodString;
|
|
32175
|
+
key: z.ZodOptional<z.ZodString>;
|
|
32176
|
+
}, z.core.$strict>;
|
|
32177
|
+
totals: z.ZodObject<{
|
|
32178
|
+
amount: z.ZodString;
|
|
32179
|
+
taxes_total: z.ZodString;
|
|
32180
|
+
taxes_inclusive_total: z.ZodString;
|
|
32181
|
+
taxes_exclusive_total: z.ZodString;
|
|
32182
|
+
charges_total: z.ZodString;
|
|
32183
|
+
discounts_total: z.ZodString;
|
|
32184
|
+
credits_total: z.ZodString;
|
|
32185
|
+
total: z.ZodString;
|
|
32186
|
+
}, z.core.$strict>;
|
|
32187
|
+
service_period: z.ZodObject<{
|
|
32188
|
+
from: z.ZodString;
|
|
32189
|
+
to: z.ZodString;
|
|
32190
|
+
}, z.core.$strict>;
|
|
32191
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32192
|
+
code: z.ZodString;
|
|
32193
|
+
message: z.ZodString;
|
|
32194
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32195
|
+
severity: z.ZodEnum<{
|
|
32196
|
+
critical: "critical";
|
|
32197
|
+
warning: "warning";
|
|
32198
|
+
}>;
|
|
32199
|
+
field: z.ZodOptional<z.ZodString>;
|
|
32200
|
+
}, z.core.$strict>>>;
|
|
32201
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32202
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32203
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
32204
|
+
}, z.core.$strict>>;
|
|
32205
|
+
type: z.ZodLiteral<"standard">;
|
|
32206
|
+
status: z.ZodEnum<{
|
|
32207
|
+
voided: "voided";
|
|
32208
|
+
draft: "draft";
|
|
32209
|
+
issuing: "issuing";
|
|
32210
|
+
issued: "issued";
|
|
32211
|
+
payment_processing: "payment_processing";
|
|
32212
|
+
overdue: "overdue";
|
|
32213
|
+
paid: "paid";
|
|
32214
|
+
uncollectible: "uncollectible";
|
|
32215
|
+
}>;
|
|
32216
|
+
status_details: z.ZodObject<{
|
|
32217
|
+
immutable: z.ZodBoolean;
|
|
32218
|
+
failed: z.ZodBoolean;
|
|
32219
|
+
extended_status: z.ZodString;
|
|
32220
|
+
available_actions: z.ZodObject<{
|
|
32221
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
32222
|
+
resulting_state: z.ZodString;
|
|
32223
|
+
}, z.core.$strict>>;
|
|
32224
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
32225
|
+
resulting_state: z.ZodString;
|
|
32226
|
+
}, z.core.$strict>>;
|
|
32227
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
32228
|
+
resulting_state: z.ZodString;
|
|
32229
|
+
}, z.core.$strict>>;
|
|
32230
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
32231
|
+
resulting_state: z.ZodString;
|
|
32232
|
+
}, z.core.$strict>>;
|
|
32233
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
32234
|
+
resulting_state: z.ZodString;
|
|
29952
32235
|
}, z.core.$strict>>;
|
|
32236
|
+
}, z.core.$strict>;
|
|
32237
|
+
}, z.core.$strict>;
|
|
32238
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
32239
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
32240
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
32241
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
32242
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
32243
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
32244
|
+
workflow: z.ZodObject<{
|
|
32245
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
32246
|
+
tax: z.ZodObject<{
|
|
32247
|
+
id: z.ZodString;
|
|
32248
|
+
}, z.core.$strict>;
|
|
32249
|
+
invoicing: z.ZodObject<{
|
|
32250
|
+
id: z.ZodString;
|
|
32251
|
+
}, z.core.$strict>;
|
|
32252
|
+
payment: z.ZodObject<{
|
|
32253
|
+
id: z.ZodString;
|
|
32254
|
+
}, z.core.$strict>;
|
|
29953
32255
|
}, z.core.$strict>>;
|
|
32256
|
+
source_billing_profile: z.ZodObject<{
|
|
32257
|
+
id: z.ZodString;
|
|
32258
|
+
}, z.core.$strict>;
|
|
32259
|
+
workflow: z.ZodObject<{
|
|
32260
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
32261
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32262
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32263
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
32264
|
+
}, z.core.$strict>>;
|
|
32265
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32266
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
32267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32268
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
32269
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32270
|
+
}, z.core.$strict>], "collection_method">>;
|
|
32271
|
+
}, z.core.$strict>;
|
|
29954
32272
|
}, z.core.$strict>;
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
-
created_at: z.ZodString;
|
|
29963
|
-
updated_at: z.ZodString;
|
|
29964
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29965
|
-
supplier: z.ZodObject<{
|
|
32273
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32274
|
+
name: z.ZodString;
|
|
32275
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32276
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32277
|
+
created_at: z.ZodString;
|
|
32278
|
+
updated_at: z.ZodString;
|
|
32279
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
29966
32280
|
id: z.ZodOptional<z.ZodString>;
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
32281
|
+
type: z.ZodLiteral<"standard_line">;
|
|
32282
|
+
lifecycle_controller: z.ZodEnum<{
|
|
32283
|
+
manual: "manual";
|
|
32284
|
+
system: "system";
|
|
32285
|
+
}>;
|
|
32286
|
+
service_period: z.ZodObject<{
|
|
32287
|
+
from: z.ZodString;
|
|
32288
|
+
to: z.ZodString;
|
|
32289
|
+
}, z.core.$strict>;
|
|
32290
|
+
totals: z.ZodObject<{
|
|
32291
|
+
amount: z.ZodString;
|
|
32292
|
+
taxes_total: z.ZodString;
|
|
32293
|
+
taxes_inclusive_total: z.ZodString;
|
|
32294
|
+
taxes_exclusive_total: z.ZodString;
|
|
32295
|
+
charges_total: z.ZodString;
|
|
32296
|
+
discounts_total: z.ZodString;
|
|
32297
|
+
credits_total: z.ZodString;
|
|
32298
|
+
total: z.ZodString;
|
|
32299
|
+
}, z.core.$strict>;
|
|
32300
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
32301
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32302
|
+
id: z.ZodString;
|
|
32303
|
+
reason: z.ZodEnum<{
|
|
32304
|
+
maximum_spend: "maximum_spend";
|
|
32305
|
+
ratecard_percentage: "ratecard_percentage";
|
|
32306
|
+
ratecard_usage: "ratecard_usage";
|
|
32307
|
+
}>;
|
|
32308
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32309
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32310
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32311
|
+
}, z.core.$strict>>;
|
|
32312
|
+
amount: z.ZodString;
|
|
32313
|
+
}, z.core.$strict>>>;
|
|
32314
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32315
|
+
id: z.ZodString;
|
|
32316
|
+
reason: z.ZodEnum<{
|
|
32317
|
+
maximum_spend: "maximum_spend";
|
|
32318
|
+
ratecard_percentage: "ratecard_percentage";
|
|
32319
|
+
ratecard_usage: "ratecard_usage";
|
|
32320
|
+
}>;
|
|
32321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32322
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32323
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32324
|
+
}, z.core.$strict>>;
|
|
32325
|
+
quantity: z.ZodString;
|
|
32326
|
+
}, z.core.$strict>>>;
|
|
32327
|
+
}, z.core.$strict>>;
|
|
32328
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32329
|
+
amount: z.ZodString;
|
|
32330
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32331
|
+
}, z.core.$strict>>>;
|
|
32332
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32333
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
29971
32334
|
}, z.core.$strict>>;
|
|
29972
|
-
|
|
29973
|
-
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
|
|
29977
|
-
|
|
29978
|
-
|
|
29979
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
29980
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
32335
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
32336
|
+
id: z.ZodString;
|
|
32337
|
+
phase: z.ZodObject<{
|
|
32338
|
+
id: z.ZodString;
|
|
32339
|
+
item: z.ZodObject<{
|
|
32340
|
+
id: z.ZodString;
|
|
32341
|
+
}, z.core.$strict>;
|
|
29981
32342
|
}, z.core.$strict>;
|
|
29982
32343
|
}, z.core.$strict>>;
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29987
|
-
type: z.ZodLiteral<"subscription">;
|
|
32344
|
+
rate_card: z.ZodObject<{
|
|
32345
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32346
|
+
type: z.ZodLiteral<"free">;
|
|
29988
32347
|
}, z.core.$strict>, z.ZodObject<{
|
|
29989
|
-
type: z.ZodLiteral<"
|
|
29990
|
-
|
|
29991
|
-
|
|
29992
|
-
|
|
29993
|
-
|
|
29994
|
-
}, z.core.$strict
|
|
29995
|
-
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
|
|
30004
|
-
|
|
30005
|
-
|
|
30006
|
-
|
|
30007
|
-
|
|
30008
|
-
|
|
30009
|
-
|
|
30010
|
-
|
|
30011
|
-
|
|
30012
|
-
|
|
30013
|
-
|
|
30014
|
-
|
|
30015
|
-
|
|
32348
|
+
type: z.ZodLiteral<"flat">;
|
|
32349
|
+
amount: z.ZodString;
|
|
32350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32351
|
+
type: z.ZodLiteral<"unit">;
|
|
32352
|
+
amount: z.ZodString;
|
|
32353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32354
|
+
type: z.ZodLiteral<"graduated">;
|
|
32355
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
32356
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
32357
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
32358
|
+
type: z.ZodLiteral<"flat">;
|
|
32359
|
+
amount: z.ZodString;
|
|
32360
|
+
}, z.core.$strict>>;
|
|
32361
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
32362
|
+
type: z.ZodLiteral<"unit">;
|
|
32363
|
+
amount: z.ZodString;
|
|
32364
|
+
}, z.core.$strict>>;
|
|
32365
|
+
}, z.core.$strict>>;
|
|
32366
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32367
|
+
type: z.ZodLiteral<"volume">;
|
|
32368
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
32369
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
32370
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
32371
|
+
type: z.ZodLiteral<"flat">;
|
|
32372
|
+
amount: z.ZodString;
|
|
32373
|
+
}, z.core.$strict>>;
|
|
32374
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
32375
|
+
type: z.ZodLiteral<"unit">;
|
|
32376
|
+
amount: z.ZodString;
|
|
32377
|
+
}, z.core.$strict>>;
|
|
32378
|
+
}, z.core.$strict>>;
|
|
32379
|
+
}, z.core.$strict>], "type">;
|
|
32380
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
30016
32381
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
30017
32382
|
exclusive: "exclusive";
|
|
30018
32383
|
inclusive: "inclusive";
|
|
30019
32384
|
}>>;
|
|
30020
|
-
|
|
30021
|
-
code: z.ZodString;
|
|
30022
|
-
}, z.core.$strict>>;
|
|
30023
|
-
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
30024
|
-
code: z.ZodString;
|
|
30025
|
-
}, z.core.$strict>>;
|
|
30026
|
-
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
30027
|
-
tax_code: z.ZodOptional<z.ZodObject<{
|
|
32385
|
+
code: z.ZodObject<{
|
|
30028
32386
|
id: z.ZodString;
|
|
30029
|
-
}, z.core.$strict
|
|
32387
|
+
}, z.core.$strict>;
|
|
32388
|
+
}, z.core.$strict>>;
|
|
32389
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
32390
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
32391
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
32392
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
30030
32393
|
}, z.core.$strict>>;
|
|
30031
|
-
}, z.core.$strict>>;
|
|
30032
|
-
}, z.core.$strict>;
|
|
30033
|
-
apps: z.ZodObject<{
|
|
30034
|
-
tax: z.ZodObject<{
|
|
30035
|
-
id: z.ZodString;
|
|
30036
32394
|
}, z.core.$strict>;
|
|
30037
|
-
|
|
32395
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
30038
32396
|
id: z.ZodString;
|
|
30039
|
-
|
|
30040
|
-
|
|
32397
|
+
name: z.ZodString;
|
|
32398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32399
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32400
|
+
created_at: z.ZodString;
|
|
32401
|
+
updated_at: z.ZodString;
|
|
32402
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
32403
|
+
service_period: z.ZodObject<{
|
|
32404
|
+
from: z.ZodString;
|
|
32405
|
+
to: z.ZodString;
|
|
32406
|
+
}, z.core.$strict>;
|
|
32407
|
+
totals: z.ZodObject<{
|
|
32408
|
+
amount: z.ZodString;
|
|
32409
|
+
taxes_total: z.ZodString;
|
|
32410
|
+
taxes_inclusive_total: z.ZodString;
|
|
32411
|
+
taxes_exclusive_total: z.ZodString;
|
|
32412
|
+
charges_total: z.ZodString;
|
|
32413
|
+
discounts_total: z.ZodString;
|
|
32414
|
+
credits_total: z.ZodString;
|
|
32415
|
+
total: z.ZodString;
|
|
32416
|
+
}, z.core.$strict>;
|
|
32417
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
32418
|
+
regular: "regular";
|
|
32419
|
+
commitment: "commitment";
|
|
32420
|
+
}>>;
|
|
32421
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
32422
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32423
|
+
id: z.ZodString;
|
|
32424
|
+
reason: z.ZodEnum<{
|
|
32425
|
+
maximum_spend: "maximum_spend";
|
|
32426
|
+
ratecard_percentage: "ratecard_percentage";
|
|
32427
|
+
ratecard_usage: "ratecard_usage";
|
|
32428
|
+
}>;
|
|
32429
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32430
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32431
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32432
|
+
}, z.core.$strict>>;
|
|
32433
|
+
amount: z.ZodString;
|
|
32434
|
+
}, z.core.$strict>>>;
|
|
32435
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32436
|
+
id: z.ZodString;
|
|
32437
|
+
reason: z.ZodEnum<{
|
|
32438
|
+
maximum_spend: "maximum_spend";
|
|
32439
|
+
ratecard_percentage: "ratecard_percentage";
|
|
32440
|
+
ratecard_usage: "ratecard_usage";
|
|
32441
|
+
}>;
|
|
32442
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32443
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32444
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32445
|
+
}, z.core.$strict>>;
|
|
32446
|
+
quantity: z.ZodString;
|
|
32447
|
+
}, z.core.$strict>>>;
|
|
32448
|
+
}, z.core.$strict>>;
|
|
32449
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32450
|
+
amount: z.ZodString;
|
|
32451
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32452
|
+
}, z.core.$strict>>>;
|
|
32453
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
32454
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
32455
|
+
}, z.core.$strict>>;
|
|
32456
|
+
quantity: z.ZodString;
|
|
32457
|
+
unit_price: z.ZodString;
|
|
32458
|
+
}, z.core.$strict>>;
|
|
32459
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
30041
32460
|
id: z.ZodString;
|
|
30042
|
-
}, z.core.$strict
|
|
30043
|
-
}, z.core.$strict
|
|
30044
|
-
|
|
30045
|
-
|
|
30046
|
-
|
|
30047
|
-
id: z.ZodString;
|
|
32461
|
+
}, z.core.$strict>>;
|
|
32462
|
+
}, z.core.$strict>], "type">>>;
|
|
32463
|
+
}, z.core.$strict>], "type">;
|
|
32464
|
+
export declare const deleteInvoicePathParamsWire: z.ZodObject<{
|
|
32465
|
+
invoiceId: z.ZodString;
|
|
30048
32466
|
}, z.core.$strip>;
|
|
30049
32467
|
export declare const createTaxCodeBodyWire: z.ZodObject<{
|
|
30050
32468
|
name: z.ZodString;
|
|
@@ -33233,3 +35651,81 @@ export declare const updateOrganizationDefaultTaxCodesResponseWire: z.ZodObject<
|
|
|
33233
35651
|
created_at: z.ZodString;
|
|
33234
35652
|
updated_at: z.ZodString;
|
|
33235
35653
|
}, z.core.$strict>;
|
|
35654
|
+
export declare const queryGovernanceAccessQueryParamsWire: z.ZodObject<{
|
|
35655
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
35656
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
35657
|
+
after: z.ZodOptional<z.ZodString>;
|
|
35658
|
+
before: z.ZodOptional<z.ZodString>;
|
|
35659
|
+
}, z.core.$strict>>;
|
|
35660
|
+
}, z.core.$strip>;
|
|
35661
|
+
export declare const queryGovernanceAccessBodyWire: z.ZodObject<{
|
|
35662
|
+
include_credits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
35663
|
+
customer: z.ZodObject<{
|
|
35664
|
+
keys: z.ZodArray<z.ZodString>;
|
|
35665
|
+
}, z.core.$strict>;
|
|
35666
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
35667
|
+
keys: z.ZodArray<z.ZodString>;
|
|
35668
|
+
}, z.core.$strict>>;
|
|
35669
|
+
}, z.core.$strict>;
|
|
35670
|
+
export declare const queryGovernanceAccessResponseWire: z.ZodObject<{
|
|
35671
|
+
data: z.ZodArray<z.ZodObject<{
|
|
35672
|
+
matched: z.ZodArray<z.ZodString>;
|
|
35673
|
+
customer: z.ZodObject<{
|
|
35674
|
+
id: z.ZodString;
|
|
35675
|
+
name: z.ZodString;
|
|
35676
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35677
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35678
|
+
created_at: z.ZodString;
|
|
35679
|
+
updated_at: z.ZodString;
|
|
35680
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
35681
|
+
key: z.ZodString;
|
|
35682
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
35683
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
35684
|
+
}, z.core.$strict>>;
|
|
35685
|
+
primary_email: z.ZodOptional<z.ZodString>;
|
|
35686
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
35687
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
35688
|
+
country: z.ZodOptional<z.ZodString>;
|
|
35689
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
35690
|
+
state: z.ZodOptional<z.ZodString>;
|
|
35691
|
+
city: z.ZodOptional<z.ZodString>;
|
|
35692
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
35693
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
35694
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
35695
|
+
}, z.core.$strict>>;
|
|
35696
|
+
}, z.core.$strict>;
|
|
35697
|
+
features: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
35698
|
+
has_access: z.ZodBoolean;
|
|
35699
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
35700
|
+
code: z.ZodEnum<{
|
|
35701
|
+
unknown: "unknown";
|
|
35702
|
+
usage_limit_reached: "usage_limit_reached";
|
|
35703
|
+
feature_unavailable: "feature_unavailable";
|
|
35704
|
+
feature_not_found: "feature_not_found";
|
|
35705
|
+
no_credit_available: "no_credit_available";
|
|
35706
|
+
}>;
|
|
35707
|
+
message: z.ZodString;
|
|
35708
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35709
|
+
}, z.core.$strict>>;
|
|
35710
|
+
}, z.core.$strict>>;
|
|
35711
|
+
updated_at: z.ZodString;
|
|
35712
|
+
}, z.core.$strict>>;
|
|
35713
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
35714
|
+
code: z.ZodEnum<{
|
|
35715
|
+
unknown: "unknown";
|
|
35716
|
+
customer_not_found: "customer_not_found";
|
|
35717
|
+
}>;
|
|
35718
|
+
message: z.ZodString;
|
|
35719
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35720
|
+
customer: z.ZodOptional<z.ZodString>;
|
|
35721
|
+
}, z.core.$strict>>;
|
|
35722
|
+
meta: z.ZodObject<{
|
|
35723
|
+
page: z.ZodObject<{
|
|
35724
|
+
first: z.ZodOptional<z.ZodString>;
|
|
35725
|
+
last: z.ZodOptional<z.ZodString>;
|
|
35726
|
+
next: z.ZodOptional<z.ZodString>;
|
|
35727
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
35728
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
35729
|
+
}, z.core.$strict>;
|
|
35730
|
+
}, z.core.$strict>;
|
|
35731
|
+
}, z.core.$strict>;
|