@openmeter/client 1.0.0-beta-f229b44f8064 → 1.0.0-beta-4ffb0202fcfc

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.
@@ -2512,6 +2512,39 @@ export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
2512
2512
  interval: z.ZodString;
2513
2513
  }, z.core.$strip>;
2514
2514
  }, z.core.$strip>;
2515
+ export declare const chargeFlatFeeSystemIntent: z.ZodObject<{
2516
+ name: z.ZodString;
2517
+ description: z.ZodOptional<z.ZodString>;
2518
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2519
+ invoice_at: z.ZodString;
2520
+ service_period: z.ZodObject<{
2521
+ from: z.ZodString;
2522
+ to: z.ZodString;
2523
+ }, z.core.$strip>;
2524
+ full_service_period: z.ZodObject<{
2525
+ from: z.ZodString;
2526
+ to: z.ZodString;
2527
+ }, z.core.$strip>;
2528
+ billing_period: z.ZodObject<{
2529
+ from: z.ZodString;
2530
+ to: z.ZodString;
2531
+ }, z.core.$strip>;
2532
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
2533
+ discounts: z.ZodOptional<z.ZodObject<{
2534
+ percentage: z.ZodOptional<z.ZodNumber>;
2535
+ }, z.core.$strip>>;
2536
+ proration_configuration: z.ZodObject<{
2537
+ mode: z.ZodEnum<{
2538
+ no_proration: "no_proration";
2539
+ prorate_prices: "prorate_prices";
2540
+ }>;
2541
+ }, z.core.$strip>;
2542
+ amount_before_proration: z.ZodObject<{
2543
+ amount: z.ZodString;
2544
+ currency: z.ZodString;
2545
+ }, z.core.$strip>;
2546
+ deleted_at: z.ZodOptional<z.ZodString>;
2547
+ }, z.core.$strip>;
2515
2548
  export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
2516
2549
  data: z.ZodArray<z.ZodObject<{
2517
2550
  id: z.ZodString;
@@ -4770,39 +4803,44 @@ export declare const chargeFlatFee: z.ZodObject<{
4770
4803
  }, z.core.$strip>>;
4771
4804
  }, z.core.$strip>>;
4772
4805
  }, z.core.$strip>], "type">;
4806
+ system_intent: z.ZodOptional<z.ZodObject<{
4807
+ name: z.ZodString;
4808
+ description: z.ZodOptional<z.ZodString>;
4809
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4810
+ invoice_at: z.ZodString;
4811
+ service_period: z.ZodObject<{
4812
+ from: z.ZodString;
4813
+ to: z.ZodString;
4814
+ }, z.core.$strip>;
4815
+ full_service_period: z.ZodObject<{
4816
+ from: z.ZodString;
4817
+ to: z.ZodString;
4818
+ }, z.core.$strip>;
4819
+ billing_period: z.ZodObject<{
4820
+ from: z.ZodString;
4821
+ to: z.ZodString;
4822
+ }, z.core.$strip>;
4823
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
4824
+ discounts: z.ZodOptional<z.ZodObject<{
4825
+ percentage: z.ZodOptional<z.ZodNumber>;
4826
+ }, z.core.$strip>>;
4827
+ proration_configuration: z.ZodObject<{
4828
+ mode: z.ZodEnum<{
4829
+ no_proration: "no_proration";
4830
+ prorate_prices: "prorate_prices";
4831
+ }>;
4832
+ }, z.core.$strip>;
4833
+ amount_before_proration: z.ZodObject<{
4834
+ amount: z.ZodString;
4835
+ currency: z.ZodString;
4836
+ }, z.core.$strip>;
4837
+ deleted_at: z.ZodOptional<z.ZodString>;
4838
+ }, z.core.$strip>>;
4773
4839
  }, z.core.$strip>;
4774
- export declare const chargeUsageBased: z.ZodObject<{
4775
- id: z.ZodString;
4840
+ export declare const chargeUsageBasedSystemIntent: z.ZodObject<{
4776
4841
  name: z.ZodString;
4777
4842
  description: z.ZodOptional<z.ZodString>;
4778
4843
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4779
- created_at: z.ZodString;
4780
- updated_at: z.ZodString;
4781
- deleted_at: z.ZodOptional<z.ZodString>;
4782
- type: z.ZodLiteral<"usage_based">;
4783
- customer: z.ZodObject<{
4784
- id: z.ZodString;
4785
- }, z.core.$strip>;
4786
- lifecycle_controller: z.ZodEnum<{
4787
- manual: "manual";
4788
- system: "system";
4789
- }>;
4790
- subscription: z.ZodOptional<z.ZodObject<{
4791
- id: z.ZodString;
4792
- phase: z.ZodObject<{
4793
- id: z.ZodString;
4794
- item: z.ZodObject<{
4795
- id: z.ZodString;
4796
- }, z.core.$strip>;
4797
- }, z.core.$strip>;
4798
- }, z.core.$strip>>;
4799
- currency: z.ZodString;
4800
- status: z.ZodEnum<{
4801
- active: "active";
4802
- created: "created";
4803
- final: "final";
4804
- deleted: "deleted";
4805
- }>;
4806
4844
  invoice_at: z.ZodString;
4807
4845
  service_period: z.ZodObject<{
4808
4846
  from: z.ZodString;
@@ -4816,55 +4854,10 @@ export declare const chargeUsageBased: z.ZodObject<{
4816
4854
  from: z.ZodString;
4817
4855
  to: z.ZodString;
4818
4856
  }, z.core.$strip>;
4819
- advance_after: z.ZodOptional<z.ZodString>;
4820
- unique_reference_id: z.ZodOptional<z.ZodString>;
4821
- settlement_mode: z.ZodEnum<{
4822
- credit_then_invoice: "credit_then_invoice";
4823
- credit_only: "credit_only";
4824
- }>;
4825
- tax_config: z.ZodOptional<z.ZodObject<{
4826
- behavior: z.ZodOptional<z.ZodEnum<{
4827
- exclusive: "exclusive";
4828
- inclusive: "inclusive";
4829
- }>>;
4830
- stripe: z.ZodOptional<z.ZodObject<{
4831
- code: z.ZodString;
4832
- }, z.core.$strip>>;
4833
- external_invoicing: z.ZodOptional<z.ZodObject<{
4834
- code: z.ZodString;
4835
- }, z.core.$strip>>;
4836
- tax_code_id: z.ZodOptional<z.ZodString>;
4837
- tax_code: z.ZodOptional<z.ZodObject<{
4838
- id: z.ZodString;
4839
- }, z.core.$strip>>;
4840
- }, z.core.$strip>>;
4841
4857
  discounts: z.ZodOptional<z.ZodObject<{
4842
4858
  percentage: z.ZodOptional<z.ZodNumber>;
4843
4859
  usage: z.ZodOptional<z.ZodString>;
4844
4860
  }, z.core.$strip>>;
4845
- feature_key: z.ZodString;
4846
- totals: z.ZodObject<{
4847
- booked: z.ZodObject<{
4848
- amount: z.ZodString;
4849
- taxes_total: z.ZodString;
4850
- taxes_inclusive_total: z.ZodString;
4851
- taxes_exclusive_total: z.ZodString;
4852
- charges_total: z.ZodString;
4853
- discounts_total: z.ZodString;
4854
- credits_total: z.ZodString;
4855
- total: z.ZodString;
4856
- }, z.core.$strip>;
4857
- realtime: z.ZodOptional<z.ZodObject<{
4858
- amount: z.ZodString;
4859
- taxes_total: z.ZodString;
4860
- taxes_inclusive_total: z.ZodString;
4861
- taxes_exclusive_total: z.ZodString;
4862
- charges_total: z.ZodString;
4863
- discounts_total: z.ZodString;
4864
- credits_total: z.ZodString;
4865
- total: z.ZodString;
4866
- }, z.core.$strip>>;
4867
- }, z.core.$strip>;
4868
4861
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4869
4862
  type: z.ZodLiteral<"free">;
4870
4863
  }, z.core.$strip>, z.ZodObject<{
@@ -4900,6 +4893,7 @@ export declare const chargeUsageBased: z.ZodObject<{
4900
4893
  }, z.core.$strip>>;
4901
4894
  }, z.core.$strip>>;
4902
4895
  }, z.core.$strip>], "type">;
4896
+ deleted_at: z.ZodOptional<z.ZodString>;
4903
4897
  }, z.core.$strip>;
4904
4898
  export declare const createChargeUsageBasedRequest: z.ZodObject<{
4905
4899
  name: z.ZodString;
@@ -5249,7 +5243,7 @@ export declare const workflow: z.ZodObject<{
5249
5243
  }, z.core.$strip>>;
5250
5244
  }, z.core.$strip>>;
5251
5245
  }, z.core.$strip>;
5252
- export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
5246
+ export declare const chargeUsageBased: z.ZodObject<{
5253
5247
  id: z.ZodString;
5254
5248
  name: z.ZodString;
5255
5249
  description: z.ZodOptional<z.ZodString>;
@@ -5257,7 +5251,7 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
5257
5251
  created_at: z.ZodString;
5258
5252
  updated_at: z.ZodString;
5259
5253
  deleted_at: z.ZodOptional<z.ZodString>;
5260
- type: z.ZodLiteral<"flat_fee">;
5254
+ type: z.ZodLiteral<"usage_based">;
5261
5255
  customer: z.ZodObject<{
5262
5256
  id: z.ZodString;
5263
5257
  }, z.core.$strip>;
@@ -5316,20 +5310,32 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
5316
5310
  id: z.ZodString;
5317
5311
  }, z.core.$strip>>;
5318
5312
  }, z.core.$strip>>;
5319
- payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
5320
5313
  discounts: z.ZodOptional<z.ZodObject<{
5321
5314
  percentage: z.ZodOptional<z.ZodNumber>;
5315
+ usage: z.ZodOptional<z.ZodString>;
5322
5316
  }, z.core.$strip>>;
5323
- feature_key: z.ZodOptional<z.ZodString>;
5324
- proration_configuration: z.ZodObject<{
5325
- mode: z.ZodEnum<{
5326
- no_proration: "no_proration";
5327
- prorate_prices: "prorate_prices";
5328
- }>;
5329
- }, z.core.$strip>;
5330
- amount_after_proration: z.ZodObject<{
5331
- amount: z.ZodString;
5332
- currency: z.ZodString;
5317
+ feature_key: z.ZodString;
5318
+ totals: z.ZodObject<{
5319
+ booked: z.ZodObject<{
5320
+ amount: z.ZodString;
5321
+ taxes_total: z.ZodString;
5322
+ taxes_inclusive_total: z.ZodString;
5323
+ taxes_exclusive_total: z.ZodString;
5324
+ charges_total: z.ZodString;
5325
+ discounts_total: z.ZodString;
5326
+ credits_total: z.ZodString;
5327
+ total: z.ZodString;
5328
+ }, z.core.$strip>;
5329
+ realtime: z.ZodOptional<z.ZodObject<{
5330
+ amount: z.ZodString;
5331
+ taxes_total: z.ZodString;
5332
+ taxes_inclusive_total: z.ZodString;
5333
+ taxes_exclusive_total: z.ZodString;
5334
+ charges_total: z.ZodString;
5335
+ discounts_total: z.ZodString;
5336
+ credits_total: z.ZodString;
5337
+ total: z.ZodString;
5338
+ }, z.core.$strip>>;
5333
5339
  }, z.core.$strip>;
5334
5340
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5335
5341
  type: z.ZodLiteral<"free">;
@@ -5366,151 +5372,80 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
5366
5372
  }, z.core.$strip>>;
5367
5373
  }, z.core.$strip>>;
5368
5374
  }, z.core.$strip>], "type">;
5369
- }, z.core.$strip>, z.ZodObject<{
5370
- id: z.ZodString;
5375
+ system_intent: z.ZodOptional<z.ZodObject<{
5376
+ name: z.ZodString;
5377
+ description: z.ZodOptional<z.ZodString>;
5378
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5379
+ invoice_at: z.ZodString;
5380
+ service_period: z.ZodObject<{
5381
+ from: z.ZodString;
5382
+ to: z.ZodString;
5383
+ }, z.core.$strip>;
5384
+ full_service_period: z.ZodObject<{
5385
+ from: z.ZodString;
5386
+ to: z.ZodString;
5387
+ }, z.core.$strip>;
5388
+ billing_period: z.ZodObject<{
5389
+ from: z.ZodString;
5390
+ to: z.ZodString;
5391
+ }, z.core.$strip>;
5392
+ discounts: z.ZodOptional<z.ZodObject<{
5393
+ percentage: z.ZodOptional<z.ZodNumber>;
5394
+ usage: z.ZodOptional<z.ZodString>;
5395
+ }, z.core.$strip>>;
5396
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5397
+ type: z.ZodLiteral<"free">;
5398
+ }, z.core.$strip>, z.ZodObject<{
5399
+ type: z.ZodLiteral<"flat">;
5400
+ amount: z.ZodString;
5401
+ }, z.core.$strip>, z.ZodObject<{
5402
+ type: z.ZodLiteral<"unit">;
5403
+ amount: z.ZodString;
5404
+ }, z.core.$strip>, z.ZodObject<{
5405
+ type: z.ZodLiteral<"graduated">;
5406
+ tiers: z.ZodArray<z.ZodObject<{
5407
+ up_to_amount: z.ZodOptional<z.ZodString>;
5408
+ flat_price: z.ZodOptional<z.ZodObject<{
5409
+ type: z.ZodLiteral<"flat">;
5410
+ amount: z.ZodString;
5411
+ }, z.core.$strip>>;
5412
+ unit_price: z.ZodOptional<z.ZodObject<{
5413
+ type: z.ZodLiteral<"unit">;
5414
+ amount: z.ZodString;
5415
+ }, z.core.$strip>>;
5416
+ }, z.core.$strip>>;
5417
+ }, z.core.$strip>, z.ZodObject<{
5418
+ type: z.ZodLiteral<"volume">;
5419
+ tiers: z.ZodArray<z.ZodObject<{
5420
+ up_to_amount: z.ZodOptional<z.ZodString>;
5421
+ flat_price: z.ZodOptional<z.ZodObject<{
5422
+ type: z.ZodLiteral<"flat">;
5423
+ amount: z.ZodString;
5424
+ }, z.core.$strip>>;
5425
+ unit_price: z.ZodOptional<z.ZodObject<{
5426
+ type: z.ZodLiteral<"unit">;
5427
+ amount: z.ZodString;
5428
+ }, z.core.$strip>>;
5429
+ }, z.core.$strip>>;
5430
+ }, z.core.$strip>], "type">;
5431
+ deleted_at: z.ZodOptional<z.ZodString>;
5432
+ }, z.core.$strip>>;
5433
+ }, z.core.$strip>;
5434
+ export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
5371
5435
  name: z.ZodString;
5372
5436
  description: z.ZodOptional<z.ZodString>;
5373
5437
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5374
- created_at: z.ZodString;
5375
- updated_at: z.ZodString;
5376
- deleted_at: z.ZodOptional<z.ZodString>;
5377
- type: z.ZodLiteral<"usage_based">;
5378
- customer: z.ZodObject<{
5379
- id: z.ZodString;
5438
+ type: z.ZodLiteral<"flat_fee">;
5439
+ currency: z.ZodString;
5440
+ invoice_at: z.ZodString;
5441
+ service_period: z.ZodObject<{
5442
+ from: z.ZodString;
5443
+ to: z.ZodString;
5380
5444
  }, z.core.$strip>;
5381
- lifecycle_controller: z.ZodEnum<{
5382
- manual: "manual";
5383
- system: "system";
5384
- }>;
5385
- subscription: z.ZodOptional<z.ZodObject<{
5386
- id: z.ZodString;
5387
- phase: z.ZodObject<{
5388
- id: z.ZodString;
5389
- item: z.ZodObject<{
5390
- id: z.ZodString;
5391
- }, z.core.$strip>;
5392
- }, z.core.$strip>;
5393
- }, z.core.$strip>>;
5394
- currency: z.ZodString;
5395
- status: z.ZodEnum<{
5396
- active: "active";
5397
- created: "created";
5398
- final: "final";
5399
- deleted: "deleted";
5400
- }>;
5401
- invoice_at: z.ZodString;
5402
- service_period: z.ZodObject<{
5403
- from: z.ZodString;
5404
- to: z.ZodString;
5405
- }, z.core.$strip>;
5406
- full_service_period: z.ZodObject<{
5407
- from: z.ZodString;
5408
- to: z.ZodString;
5409
- }, z.core.$strip>;
5410
- billing_period: z.ZodObject<{
5411
- from: z.ZodString;
5412
- to: z.ZodString;
5413
- }, z.core.$strip>;
5414
- advance_after: z.ZodOptional<z.ZodString>;
5415
- unique_reference_id: z.ZodOptional<z.ZodString>;
5416
- settlement_mode: z.ZodEnum<{
5417
- credit_then_invoice: "credit_then_invoice";
5418
- credit_only: "credit_only";
5419
- }>;
5420
- tax_config: z.ZodOptional<z.ZodObject<{
5421
- behavior: z.ZodOptional<z.ZodEnum<{
5422
- exclusive: "exclusive";
5423
- inclusive: "inclusive";
5424
- }>>;
5425
- stripe: z.ZodOptional<z.ZodObject<{
5426
- code: z.ZodString;
5427
- }, z.core.$strip>>;
5428
- external_invoicing: z.ZodOptional<z.ZodObject<{
5429
- code: z.ZodString;
5430
- }, z.core.$strip>>;
5431
- tax_code_id: z.ZodOptional<z.ZodString>;
5432
- tax_code: z.ZodOptional<z.ZodObject<{
5433
- id: z.ZodString;
5434
- }, z.core.$strip>>;
5435
- }, z.core.$strip>>;
5436
- discounts: z.ZodOptional<z.ZodObject<{
5437
- percentage: z.ZodOptional<z.ZodNumber>;
5438
- usage: z.ZodOptional<z.ZodString>;
5439
- }, z.core.$strip>>;
5440
- feature_key: z.ZodString;
5441
- totals: z.ZodObject<{
5442
- booked: z.ZodObject<{
5443
- amount: z.ZodString;
5444
- taxes_total: z.ZodString;
5445
- taxes_inclusive_total: z.ZodString;
5446
- taxes_exclusive_total: z.ZodString;
5447
- charges_total: z.ZodString;
5448
- discounts_total: z.ZodString;
5449
- credits_total: z.ZodString;
5450
- total: z.ZodString;
5451
- }, z.core.$strip>;
5452
- realtime: z.ZodOptional<z.ZodObject<{
5453
- amount: z.ZodString;
5454
- taxes_total: z.ZodString;
5455
- taxes_inclusive_total: z.ZodString;
5456
- taxes_exclusive_total: z.ZodString;
5457
- charges_total: z.ZodString;
5458
- discounts_total: z.ZodString;
5459
- credits_total: z.ZodString;
5460
- total: z.ZodString;
5461
- }, z.core.$strip>>;
5462
- }, z.core.$strip>;
5463
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5464
- type: z.ZodLiteral<"free">;
5465
- }, z.core.$strip>, z.ZodObject<{
5466
- type: z.ZodLiteral<"flat">;
5467
- amount: z.ZodString;
5468
- }, z.core.$strip>, z.ZodObject<{
5469
- type: z.ZodLiteral<"unit">;
5470
- amount: z.ZodString;
5471
- }, z.core.$strip>, z.ZodObject<{
5472
- type: z.ZodLiteral<"graduated">;
5473
- tiers: z.ZodArray<z.ZodObject<{
5474
- up_to_amount: z.ZodOptional<z.ZodString>;
5475
- flat_price: z.ZodOptional<z.ZodObject<{
5476
- type: z.ZodLiteral<"flat">;
5477
- amount: z.ZodString;
5478
- }, z.core.$strip>>;
5479
- unit_price: z.ZodOptional<z.ZodObject<{
5480
- type: z.ZodLiteral<"unit">;
5481
- amount: z.ZodString;
5482
- }, z.core.$strip>>;
5483
- }, z.core.$strip>>;
5484
- }, z.core.$strip>, z.ZodObject<{
5485
- type: z.ZodLiteral<"volume">;
5486
- tiers: z.ZodArray<z.ZodObject<{
5487
- up_to_amount: z.ZodOptional<z.ZodString>;
5488
- flat_price: z.ZodOptional<z.ZodObject<{
5489
- type: z.ZodLiteral<"flat">;
5490
- amount: z.ZodString;
5491
- }, z.core.$strip>>;
5492
- unit_price: z.ZodOptional<z.ZodObject<{
5493
- type: z.ZodLiteral<"unit">;
5494
- amount: z.ZodString;
5495
- }, z.core.$strip>>;
5496
- }, z.core.$strip>>;
5497
- }, z.core.$strip>], "type">;
5498
- }, z.core.$strip>], "type">;
5499
- export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
5500
- name: z.ZodString;
5501
- description: z.ZodOptional<z.ZodString>;
5502
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5503
- type: z.ZodLiteral<"flat_fee">;
5504
- currency: z.ZodString;
5505
- invoice_at: z.ZodString;
5506
- service_period: z.ZodObject<{
5507
- from: z.ZodString;
5508
- to: z.ZodString;
5509
- }, z.core.$strip>;
5510
- unique_reference_id: z.ZodOptional<z.ZodString>;
5511
- settlement_mode: z.ZodEnum<{
5512
- credit_then_invoice: "credit_then_invoice";
5513
- credit_only: "credit_only";
5445
+ unique_reference_id: z.ZodOptional<z.ZodString>;
5446
+ settlement_mode: z.ZodEnum<{
5447
+ credit_then_invoice: "credit_then_invoice";
5448
+ credit_only: "credit_only";
5514
5449
  }>;
5515
5450
  tax_config: z.ZodOptional<z.ZodObject<{
5516
5451
  behavior: z.ZodOptional<z.ZodEnum<{
@@ -6574,89 +6509,306 @@ export declare const upsertBillingProfileRequest: z.ZodObject<{
6574
6509
  }, z.core.$strip>;
6575
6510
  default: z.ZodBoolean;
6576
6511
  }, z.core.$strip>;
6577
- export declare const chargePagePaginatedResponse: z.ZodObject<{
6578
- data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6512
+ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
6513
+ id: z.ZodString;
6514
+ name: z.ZodString;
6515
+ description: z.ZodOptional<z.ZodString>;
6516
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6517
+ created_at: z.ZodString;
6518
+ updated_at: z.ZodString;
6519
+ deleted_at: z.ZodOptional<z.ZodString>;
6520
+ type: z.ZodLiteral<"flat_fee">;
6521
+ customer: z.ZodObject<{
6579
6522
  id: z.ZodString;
6580
- name: z.ZodString;
6581
- description: z.ZodOptional<z.ZodString>;
6582
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6583
- created_at: z.ZodString;
6584
- updated_at: z.ZodString;
6585
- deleted_at: z.ZodOptional<z.ZodString>;
6586
- type: z.ZodLiteral<"flat_fee">;
6587
- customer: z.ZodObject<{
6588
- id: z.ZodString;
6589
- }, z.core.$strip>;
6590
- lifecycle_controller: z.ZodEnum<{
6591
- manual: "manual";
6592
- system: "system";
6593
- }>;
6594
- subscription: z.ZodOptional<z.ZodObject<{
6523
+ }, z.core.$strip>;
6524
+ lifecycle_controller: z.ZodEnum<{
6525
+ manual: "manual";
6526
+ system: "system";
6527
+ }>;
6528
+ subscription: z.ZodOptional<z.ZodObject<{
6529
+ id: z.ZodString;
6530
+ phase: z.ZodObject<{
6595
6531
  id: z.ZodString;
6596
- phase: z.ZodObject<{
6532
+ item: z.ZodObject<{
6597
6533
  id: z.ZodString;
6598
- item: z.ZodObject<{
6599
- id: z.ZodString;
6600
- }, z.core.$strip>;
6601
6534
  }, z.core.$strip>;
6602
- }, z.core.$strip>>;
6603
- currency: z.ZodString;
6604
- status: z.ZodEnum<{
6605
- active: "active";
6606
- created: "created";
6607
- final: "final";
6608
- deleted: "deleted";
6609
- }>;
6610
- invoice_at: z.ZodString;
6611
- service_period: z.ZodObject<{
6612
- from: z.ZodString;
6613
- to: z.ZodString;
6614
- }, z.core.$strip>;
6615
- full_service_period: z.ZodObject<{
6616
- from: z.ZodString;
6617
- to: z.ZodString;
6618
- }, z.core.$strip>;
6619
- billing_period: z.ZodObject<{
6620
- from: z.ZodString;
6621
- to: z.ZodString;
6622
6535
  }, z.core.$strip>;
6623
- advance_after: z.ZodOptional<z.ZodString>;
6624
- unique_reference_id: z.ZodOptional<z.ZodString>;
6625
- settlement_mode: z.ZodEnum<{
6626
- credit_then_invoice: "credit_then_invoice";
6627
- credit_only: "credit_only";
6628
- }>;
6629
- tax_config: z.ZodOptional<z.ZodObject<{
6630
- behavior: z.ZodOptional<z.ZodEnum<{
6631
- exclusive: "exclusive";
6632
- inclusive: "inclusive";
6633
- }>>;
6634
- stripe: z.ZodOptional<z.ZodObject<{
6635
- code: z.ZodString;
6636
- }, z.core.$strip>>;
6637
- external_invoicing: z.ZodOptional<z.ZodObject<{
6638
- code: z.ZodString;
6639
- }, z.core.$strip>>;
6640
- tax_code_id: z.ZodOptional<z.ZodString>;
6641
- tax_code: z.ZodOptional<z.ZodObject<{
6642
- id: z.ZodString;
6643
- }, z.core.$strip>>;
6536
+ }, z.core.$strip>>;
6537
+ currency: z.ZodString;
6538
+ status: z.ZodEnum<{
6539
+ active: "active";
6540
+ created: "created";
6541
+ final: "final";
6542
+ deleted: "deleted";
6543
+ }>;
6544
+ invoice_at: z.ZodString;
6545
+ service_period: z.ZodObject<{
6546
+ from: z.ZodString;
6547
+ to: z.ZodString;
6548
+ }, z.core.$strip>;
6549
+ full_service_period: z.ZodObject<{
6550
+ from: z.ZodString;
6551
+ to: z.ZodString;
6552
+ }, z.core.$strip>;
6553
+ billing_period: z.ZodObject<{
6554
+ from: z.ZodString;
6555
+ to: z.ZodString;
6556
+ }, z.core.$strip>;
6557
+ advance_after: z.ZodOptional<z.ZodString>;
6558
+ unique_reference_id: z.ZodOptional<z.ZodString>;
6559
+ settlement_mode: z.ZodEnum<{
6560
+ credit_then_invoice: "credit_then_invoice";
6561
+ credit_only: "credit_only";
6562
+ }>;
6563
+ tax_config: z.ZodOptional<z.ZodObject<{
6564
+ behavior: z.ZodOptional<z.ZodEnum<{
6565
+ exclusive: "exclusive";
6566
+ inclusive: "inclusive";
6567
+ }>>;
6568
+ stripe: z.ZodOptional<z.ZodObject<{
6569
+ code: z.ZodString;
6644
6570
  }, z.core.$strip>>;
6645
- payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
6646
- discounts: z.ZodOptional<z.ZodObject<{
6647
- percentage: z.ZodOptional<z.ZodNumber>;
6571
+ external_invoicing: z.ZodOptional<z.ZodObject<{
6572
+ code: z.ZodString;
6648
6573
  }, z.core.$strip>>;
6649
- feature_key: z.ZodOptional<z.ZodString>;
6650
- proration_configuration: z.ZodObject<{
6651
- mode: z.ZodEnum<{
6652
- no_proration: "no_proration";
6653
- prorate_prices: "prorate_prices";
6654
- }>;
6574
+ tax_code_id: z.ZodOptional<z.ZodString>;
6575
+ tax_code: z.ZodOptional<z.ZodObject<{
6576
+ id: z.ZodString;
6577
+ }, z.core.$strip>>;
6578
+ }, z.core.$strip>>;
6579
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
6580
+ discounts: z.ZodOptional<z.ZodObject<{
6581
+ percentage: z.ZodOptional<z.ZodNumber>;
6582
+ }, z.core.$strip>>;
6583
+ feature_key: z.ZodOptional<z.ZodString>;
6584
+ proration_configuration: z.ZodObject<{
6585
+ mode: z.ZodEnum<{
6586
+ no_proration: "no_proration";
6587
+ prorate_prices: "prorate_prices";
6588
+ }>;
6589
+ }, z.core.$strip>;
6590
+ amount_after_proration: z.ZodObject<{
6591
+ amount: z.ZodString;
6592
+ currency: z.ZodString;
6593
+ }, z.core.$strip>;
6594
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6595
+ type: z.ZodLiteral<"free">;
6596
+ }, z.core.$strip>, z.ZodObject<{
6597
+ type: z.ZodLiteral<"flat">;
6598
+ amount: z.ZodString;
6599
+ }, z.core.$strip>, z.ZodObject<{
6600
+ type: z.ZodLiteral<"unit">;
6601
+ amount: z.ZodString;
6602
+ }, z.core.$strip>, z.ZodObject<{
6603
+ type: z.ZodLiteral<"graduated">;
6604
+ tiers: z.ZodArray<z.ZodObject<{
6605
+ up_to_amount: z.ZodOptional<z.ZodString>;
6606
+ flat_price: z.ZodOptional<z.ZodObject<{
6607
+ type: z.ZodLiteral<"flat">;
6608
+ amount: z.ZodString;
6609
+ }, z.core.$strip>>;
6610
+ unit_price: z.ZodOptional<z.ZodObject<{
6611
+ type: z.ZodLiteral<"unit">;
6612
+ amount: z.ZodString;
6613
+ }, z.core.$strip>>;
6614
+ }, z.core.$strip>>;
6615
+ }, z.core.$strip>, z.ZodObject<{
6616
+ type: z.ZodLiteral<"volume">;
6617
+ tiers: z.ZodArray<z.ZodObject<{
6618
+ up_to_amount: z.ZodOptional<z.ZodString>;
6619
+ flat_price: z.ZodOptional<z.ZodObject<{
6620
+ type: z.ZodLiteral<"flat">;
6621
+ amount: z.ZodString;
6622
+ }, z.core.$strip>>;
6623
+ unit_price: z.ZodOptional<z.ZodObject<{
6624
+ type: z.ZodLiteral<"unit">;
6625
+ amount: z.ZodString;
6626
+ }, z.core.$strip>>;
6627
+ }, z.core.$strip>>;
6628
+ }, z.core.$strip>], "type">;
6629
+ system_intent: z.ZodOptional<z.ZodObject<{
6630
+ name: z.ZodString;
6631
+ description: z.ZodOptional<z.ZodString>;
6632
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6633
+ invoice_at: z.ZodString;
6634
+ service_period: z.ZodObject<{
6635
+ from: z.ZodString;
6636
+ to: z.ZodString;
6655
6637
  }, z.core.$strip>;
6656
- amount_after_proration: z.ZodObject<{
6638
+ full_service_period: z.ZodObject<{
6639
+ from: z.ZodString;
6640
+ to: z.ZodString;
6641
+ }, z.core.$strip>;
6642
+ billing_period: z.ZodObject<{
6643
+ from: z.ZodString;
6644
+ to: z.ZodString;
6645
+ }, z.core.$strip>;
6646
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
6647
+ discounts: z.ZodOptional<z.ZodObject<{
6648
+ percentage: z.ZodOptional<z.ZodNumber>;
6649
+ }, z.core.$strip>>;
6650
+ proration_configuration: z.ZodObject<{
6651
+ mode: z.ZodEnum<{
6652
+ no_proration: "no_proration";
6653
+ prorate_prices: "prorate_prices";
6654
+ }>;
6655
+ }, z.core.$strip>;
6656
+ amount_before_proration: z.ZodObject<{
6657
6657
  amount: z.ZodString;
6658
6658
  currency: z.ZodString;
6659
6659
  }, z.core.$strip>;
6660
+ deleted_at: z.ZodOptional<z.ZodString>;
6661
+ }, z.core.$strip>>;
6662
+ }, z.core.$strip>, z.ZodObject<{
6663
+ id: z.ZodString;
6664
+ name: z.ZodString;
6665
+ description: z.ZodOptional<z.ZodString>;
6666
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6667
+ created_at: z.ZodString;
6668
+ updated_at: z.ZodString;
6669
+ deleted_at: z.ZodOptional<z.ZodString>;
6670
+ type: z.ZodLiteral<"usage_based">;
6671
+ customer: z.ZodObject<{
6672
+ id: z.ZodString;
6673
+ }, z.core.$strip>;
6674
+ lifecycle_controller: z.ZodEnum<{
6675
+ manual: "manual";
6676
+ system: "system";
6677
+ }>;
6678
+ subscription: z.ZodOptional<z.ZodObject<{
6679
+ id: z.ZodString;
6680
+ phase: z.ZodObject<{
6681
+ id: z.ZodString;
6682
+ item: z.ZodObject<{
6683
+ id: z.ZodString;
6684
+ }, z.core.$strip>;
6685
+ }, z.core.$strip>;
6686
+ }, z.core.$strip>>;
6687
+ currency: z.ZodString;
6688
+ status: z.ZodEnum<{
6689
+ active: "active";
6690
+ created: "created";
6691
+ final: "final";
6692
+ deleted: "deleted";
6693
+ }>;
6694
+ invoice_at: z.ZodString;
6695
+ service_period: z.ZodObject<{
6696
+ from: z.ZodString;
6697
+ to: z.ZodString;
6698
+ }, z.core.$strip>;
6699
+ full_service_period: z.ZodObject<{
6700
+ from: z.ZodString;
6701
+ to: z.ZodString;
6702
+ }, z.core.$strip>;
6703
+ billing_period: z.ZodObject<{
6704
+ from: z.ZodString;
6705
+ to: z.ZodString;
6706
+ }, z.core.$strip>;
6707
+ advance_after: z.ZodOptional<z.ZodString>;
6708
+ unique_reference_id: z.ZodOptional<z.ZodString>;
6709
+ settlement_mode: z.ZodEnum<{
6710
+ credit_then_invoice: "credit_then_invoice";
6711
+ credit_only: "credit_only";
6712
+ }>;
6713
+ tax_config: z.ZodOptional<z.ZodObject<{
6714
+ behavior: z.ZodOptional<z.ZodEnum<{
6715
+ exclusive: "exclusive";
6716
+ inclusive: "inclusive";
6717
+ }>>;
6718
+ stripe: z.ZodOptional<z.ZodObject<{
6719
+ code: z.ZodString;
6720
+ }, z.core.$strip>>;
6721
+ external_invoicing: z.ZodOptional<z.ZodObject<{
6722
+ code: z.ZodString;
6723
+ }, z.core.$strip>>;
6724
+ tax_code_id: z.ZodOptional<z.ZodString>;
6725
+ tax_code: z.ZodOptional<z.ZodObject<{
6726
+ id: z.ZodString;
6727
+ }, z.core.$strip>>;
6728
+ }, z.core.$strip>>;
6729
+ discounts: z.ZodOptional<z.ZodObject<{
6730
+ percentage: z.ZodOptional<z.ZodNumber>;
6731
+ usage: z.ZodOptional<z.ZodString>;
6732
+ }, z.core.$strip>>;
6733
+ feature_key: z.ZodString;
6734
+ totals: z.ZodObject<{
6735
+ booked: z.ZodObject<{
6736
+ amount: z.ZodString;
6737
+ taxes_total: z.ZodString;
6738
+ taxes_inclusive_total: z.ZodString;
6739
+ taxes_exclusive_total: z.ZodString;
6740
+ charges_total: z.ZodString;
6741
+ discounts_total: z.ZodString;
6742
+ credits_total: z.ZodString;
6743
+ total: z.ZodString;
6744
+ }, z.core.$strip>;
6745
+ realtime: z.ZodOptional<z.ZodObject<{
6746
+ amount: z.ZodString;
6747
+ taxes_total: z.ZodString;
6748
+ taxes_inclusive_total: z.ZodString;
6749
+ taxes_exclusive_total: z.ZodString;
6750
+ charges_total: z.ZodString;
6751
+ discounts_total: z.ZodString;
6752
+ credits_total: z.ZodString;
6753
+ total: z.ZodString;
6754
+ }, z.core.$strip>>;
6755
+ }, z.core.$strip>;
6756
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6757
+ type: z.ZodLiteral<"free">;
6758
+ }, z.core.$strip>, z.ZodObject<{
6759
+ type: z.ZodLiteral<"flat">;
6760
+ amount: z.ZodString;
6761
+ }, z.core.$strip>, z.ZodObject<{
6762
+ type: z.ZodLiteral<"unit">;
6763
+ amount: z.ZodString;
6764
+ }, z.core.$strip>, z.ZodObject<{
6765
+ type: z.ZodLiteral<"graduated">;
6766
+ tiers: z.ZodArray<z.ZodObject<{
6767
+ up_to_amount: z.ZodOptional<z.ZodString>;
6768
+ flat_price: z.ZodOptional<z.ZodObject<{
6769
+ type: z.ZodLiteral<"flat">;
6770
+ amount: z.ZodString;
6771
+ }, z.core.$strip>>;
6772
+ unit_price: z.ZodOptional<z.ZodObject<{
6773
+ type: z.ZodLiteral<"unit">;
6774
+ amount: z.ZodString;
6775
+ }, z.core.$strip>>;
6776
+ }, z.core.$strip>>;
6777
+ }, z.core.$strip>, z.ZodObject<{
6778
+ type: z.ZodLiteral<"volume">;
6779
+ tiers: z.ZodArray<z.ZodObject<{
6780
+ up_to_amount: z.ZodOptional<z.ZodString>;
6781
+ flat_price: z.ZodOptional<z.ZodObject<{
6782
+ type: z.ZodLiteral<"flat">;
6783
+ amount: z.ZodString;
6784
+ }, z.core.$strip>>;
6785
+ unit_price: z.ZodOptional<z.ZodObject<{
6786
+ type: z.ZodLiteral<"unit">;
6787
+ amount: z.ZodString;
6788
+ }, z.core.$strip>>;
6789
+ }, z.core.$strip>>;
6790
+ }, z.core.$strip>], "type">;
6791
+ system_intent: z.ZodOptional<z.ZodObject<{
6792
+ name: z.ZodString;
6793
+ description: z.ZodOptional<z.ZodString>;
6794
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6795
+ invoice_at: z.ZodString;
6796
+ service_period: z.ZodObject<{
6797
+ from: z.ZodString;
6798
+ to: z.ZodString;
6799
+ }, z.core.$strip>;
6800
+ full_service_period: z.ZodObject<{
6801
+ from: z.ZodString;
6802
+ to: z.ZodString;
6803
+ }, z.core.$strip>;
6804
+ billing_period: z.ZodObject<{
6805
+ from: z.ZodString;
6806
+ to: z.ZodString;
6807
+ }, z.core.$strip>;
6808
+ discounts: z.ZodOptional<z.ZodObject<{
6809
+ percentage: z.ZodOptional<z.ZodNumber>;
6810
+ usage: z.ZodOptional<z.ZodString>;
6811
+ }, z.core.$strip>>;
6660
6812
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6661
6813
  type: z.ZodLiteral<"free">;
6662
6814
  }, z.core.$strip>, z.ZodObject<{
@@ -6692,144 +6844,9 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
6692
6844
  }, z.core.$strip>>;
6693
6845
  }, z.core.$strip>>;
6694
6846
  }, z.core.$strip>], "type">;
6695
- }, z.core.$strip>, z.ZodObject<{
6696
- id: z.ZodString;
6697
- name: z.ZodString;
6698
- description: z.ZodOptional<z.ZodString>;
6699
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6700
- created_at: z.ZodString;
6701
- updated_at: z.ZodString;
6702
6847
  deleted_at: z.ZodOptional<z.ZodString>;
6703
- type: z.ZodLiteral<"usage_based">;
6704
- customer: z.ZodObject<{
6705
- id: z.ZodString;
6706
- }, z.core.$strip>;
6707
- lifecycle_controller: z.ZodEnum<{
6708
- manual: "manual";
6709
- system: "system";
6710
- }>;
6711
- subscription: z.ZodOptional<z.ZodObject<{
6712
- id: z.ZodString;
6713
- phase: z.ZodObject<{
6714
- id: z.ZodString;
6715
- item: z.ZodObject<{
6716
- id: z.ZodString;
6717
- }, z.core.$strip>;
6718
- }, z.core.$strip>;
6719
- }, z.core.$strip>>;
6720
- currency: z.ZodString;
6721
- status: z.ZodEnum<{
6722
- active: "active";
6723
- created: "created";
6724
- final: "final";
6725
- deleted: "deleted";
6726
- }>;
6727
- invoice_at: z.ZodString;
6728
- service_period: z.ZodObject<{
6729
- from: z.ZodString;
6730
- to: z.ZodString;
6731
- }, z.core.$strip>;
6732
- full_service_period: z.ZodObject<{
6733
- from: z.ZodString;
6734
- to: z.ZodString;
6735
- }, z.core.$strip>;
6736
- billing_period: z.ZodObject<{
6737
- from: z.ZodString;
6738
- to: z.ZodString;
6739
- }, z.core.$strip>;
6740
- advance_after: z.ZodOptional<z.ZodString>;
6741
- unique_reference_id: z.ZodOptional<z.ZodString>;
6742
- settlement_mode: z.ZodEnum<{
6743
- credit_then_invoice: "credit_then_invoice";
6744
- credit_only: "credit_only";
6745
- }>;
6746
- tax_config: z.ZodOptional<z.ZodObject<{
6747
- behavior: z.ZodOptional<z.ZodEnum<{
6748
- exclusive: "exclusive";
6749
- inclusive: "inclusive";
6750
- }>>;
6751
- stripe: z.ZodOptional<z.ZodObject<{
6752
- code: z.ZodString;
6753
- }, z.core.$strip>>;
6754
- external_invoicing: z.ZodOptional<z.ZodObject<{
6755
- code: z.ZodString;
6756
- }, z.core.$strip>>;
6757
- tax_code_id: z.ZodOptional<z.ZodString>;
6758
- tax_code: z.ZodOptional<z.ZodObject<{
6759
- id: z.ZodString;
6760
- }, z.core.$strip>>;
6761
- }, z.core.$strip>>;
6762
- discounts: z.ZodOptional<z.ZodObject<{
6763
- percentage: z.ZodOptional<z.ZodNumber>;
6764
- usage: z.ZodOptional<z.ZodString>;
6765
- }, z.core.$strip>>;
6766
- feature_key: z.ZodString;
6767
- totals: z.ZodObject<{
6768
- booked: z.ZodObject<{
6769
- amount: z.ZodString;
6770
- taxes_total: z.ZodString;
6771
- taxes_inclusive_total: z.ZodString;
6772
- taxes_exclusive_total: z.ZodString;
6773
- charges_total: z.ZodString;
6774
- discounts_total: z.ZodString;
6775
- credits_total: z.ZodString;
6776
- total: z.ZodString;
6777
- }, z.core.$strip>;
6778
- realtime: z.ZodOptional<z.ZodObject<{
6779
- amount: z.ZodString;
6780
- taxes_total: z.ZodString;
6781
- taxes_inclusive_total: z.ZodString;
6782
- taxes_exclusive_total: z.ZodString;
6783
- charges_total: z.ZodString;
6784
- discounts_total: z.ZodString;
6785
- credits_total: z.ZodString;
6786
- total: z.ZodString;
6787
- }, z.core.$strip>>;
6788
- }, z.core.$strip>;
6789
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6790
- type: z.ZodLiteral<"free">;
6791
- }, z.core.$strip>, z.ZodObject<{
6792
- type: z.ZodLiteral<"flat">;
6793
- amount: z.ZodString;
6794
- }, z.core.$strip>, z.ZodObject<{
6795
- type: z.ZodLiteral<"unit">;
6796
- amount: z.ZodString;
6797
- }, z.core.$strip>, z.ZodObject<{
6798
- type: z.ZodLiteral<"graduated">;
6799
- tiers: z.ZodArray<z.ZodObject<{
6800
- up_to_amount: z.ZodOptional<z.ZodString>;
6801
- flat_price: z.ZodOptional<z.ZodObject<{
6802
- type: z.ZodLiteral<"flat">;
6803
- amount: z.ZodString;
6804
- }, z.core.$strip>>;
6805
- unit_price: z.ZodOptional<z.ZodObject<{
6806
- type: z.ZodLiteral<"unit">;
6807
- amount: z.ZodString;
6808
- }, z.core.$strip>>;
6809
- }, z.core.$strip>>;
6810
- }, z.core.$strip>, z.ZodObject<{
6811
- type: z.ZodLiteral<"volume">;
6812
- tiers: z.ZodArray<z.ZodObject<{
6813
- up_to_amount: z.ZodOptional<z.ZodString>;
6814
- flat_price: z.ZodOptional<z.ZodObject<{
6815
- type: z.ZodLiteral<"flat">;
6816
- amount: z.ZodString;
6817
- }, z.core.$strip>>;
6818
- unit_price: z.ZodOptional<z.ZodObject<{
6819
- type: z.ZodLiteral<"unit">;
6820
- amount: z.ZodString;
6821
- }, z.core.$strip>>;
6822
- }, z.core.$strip>>;
6823
- }, z.core.$strip>], "type">;
6824
- }, z.core.$strip>], "type">>;
6825
- meta: z.ZodObject<{
6826
- page: z.ZodObject<{
6827
- number: z.ZodNumber;
6828
- size: z.ZodNumber;
6829
- total: z.ZodNumber;
6830
- }, z.core.$strip>;
6831
- }, z.core.$strip>;
6832
- }, z.core.$strip>;
6848
+ }, z.core.$strip>>;
6849
+ }, z.core.$strip>], "type">;
6833
6850
  export declare const subscriptionAddon: z.ZodObject<{
6834
6851
  id: z.ZodString;
6835
6852
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -7473,10 +7490,309 @@ export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
7473
7490
  id: z.ZodString;
7474
7491
  item: z.ZodObject<{
7475
7492
  id: z.ZodString;
7476
- }, z.core.$strip>;
7493
+ }, z.core.$strip>;
7494
+ }, z.core.$strip>;
7495
+ }, z.core.$strip>>;
7496
+ rate_card: z.ZodObject<{
7497
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7498
+ type: z.ZodLiteral<"free">;
7499
+ }, z.core.$strip>, z.ZodObject<{
7500
+ type: z.ZodLiteral<"flat">;
7501
+ amount: z.ZodString;
7502
+ }, z.core.$strip>, z.ZodObject<{
7503
+ type: z.ZodLiteral<"unit">;
7504
+ amount: z.ZodString;
7505
+ }, z.core.$strip>, z.ZodObject<{
7506
+ type: z.ZodLiteral<"graduated">;
7507
+ tiers: z.ZodArray<z.ZodObject<{
7508
+ up_to_amount: z.ZodOptional<z.ZodString>;
7509
+ flat_price: z.ZodOptional<z.ZodObject<{
7510
+ type: z.ZodLiteral<"flat">;
7511
+ amount: z.ZodString;
7512
+ }, z.core.$strip>>;
7513
+ unit_price: z.ZodOptional<z.ZodObject<{
7514
+ type: z.ZodLiteral<"unit">;
7515
+ amount: z.ZodString;
7516
+ }, z.core.$strip>>;
7517
+ }, z.core.$strip>>;
7518
+ }, z.core.$strip>, z.ZodObject<{
7519
+ type: z.ZodLiteral<"volume">;
7520
+ tiers: z.ZodArray<z.ZodObject<{
7521
+ up_to_amount: z.ZodOptional<z.ZodString>;
7522
+ flat_price: z.ZodOptional<z.ZodObject<{
7523
+ type: z.ZodLiteral<"flat">;
7524
+ amount: z.ZodString;
7525
+ }, z.core.$strip>>;
7526
+ unit_price: z.ZodOptional<z.ZodObject<{
7527
+ type: z.ZodLiteral<"unit">;
7528
+ amount: z.ZodString;
7529
+ }, z.core.$strip>>;
7530
+ }, z.core.$strip>>;
7531
+ }, z.core.$strip>], "type">;
7532
+ tax_config: z.ZodOptional<z.ZodObject<{
7533
+ behavior: z.ZodOptional<z.ZodEnum<{
7534
+ exclusive: "exclusive";
7535
+ inclusive: "inclusive";
7536
+ }>>;
7537
+ code: z.ZodObject<{
7538
+ id: z.ZodString;
7539
+ }, z.core.$strip>;
7540
+ }, z.core.$strip>>;
7541
+ feature_key: z.ZodOptional<z.ZodString>;
7542
+ discounts: z.ZodOptional<z.ZodObject<{
7543
+ percentage: z.ZodOptional<z.ZodNumber>;
7544
+ usage: z.ZodOptional<z.ZodString>;
7545
+ }, z.core.$strip>>;
7546
+ }, z.core.$strip>;
7547
+ detailed_lines: z.ZodArray<z.ZodObject<{
7548
+ id: z.ZodString;
7549
+ name: z.ZodString;
7550
+ description: z.ZodOptional<z.ZodString>;
7551
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7552
+ created_at: z.ZodString;
7553
+ updated_at: z.ZodString;
7554
+ deleted_at: z.ZodOptional<z.ZodString>;
7555
+ service_period: z.ZodObject<{
7556
+ from: z.ZodString;
7557
+ to: z.ZodString;
7558
+ }, z.core.$strip>;
7559
+ totals: z.ZodObject<{
7560
+ amount: z.ZodString;
7561
+ taxes_total: z.ZodString;
7562
+ taxes_inclusive_total: z.ZodString;
7563
+ taxes_exclusive_total: z.ZodString;
7564
+ charges_total: z.ZodString;
7565
+ discounts_total: z.ZodString;
7566
+ credits_total: z.ZodString;
7567
+ total: z.ZodString;
7568
+ }, z.core.$strip>;
7569
+ category: z.ZodDefault<z.ZodEnum<{
7570
+ regular: "regular";
7571
+ commitment: "commitment";
7572
+ }>>;
7573
+ discounts: z.ZodOptional<z.ZodObject<{
7574
+ amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
7575
+ id: z.ZodString;
7576
+ reason: z.ZodEnum<{
7577
+ maximum_spend: "maximum_spend";
7578
+ ratecard_percentage: "ratecard_percentage";
7579
+ ratecard_usage: "ratecard_usage";
7580
+ }>;
7581
+ description: z.ZodOptional<z.ZodString>;
7582
+ external_references: z.ZodOptional<z.ZodObject<{
7583
+ invoicing_id: z.ZodOptional<z.ZodString>;
7584
+ }, z.core.$strip>>;
7585
+ amount: z.ZodString;
7586
+ }, z.core.$strip>>>;
7587
+ usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
7588
+ id: z.ZodString;
7589
+ reason: z.ZodEnum<{
7590
+ maximum_spend: "maximum_spend";
7591
+ ratecard_percentage: "ratecard_percentage";
7592
+ ratecard_usage: "ratecard_usage";
7593
+ }>;
7594
+ description: z.ZodOptional<z.ZodString>;
7595
+ external_references: z.ZodOptional<z.ZodObject<{
7596
+ invoicing_id: z.ZodOptional<z.ZodString>;
7597
+ }, z.core.$strip>>;
7598
+ quantity: z.ZodString;
7599
+ }, z.core.$strip>>>;
7600
+ }, z.core.$strip>>;
7601
+ credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
7602
+ amount: z.ZodString;
7603
+ description: z.ZodOptional<z.ZodString>;
7604
+ }, z.core.$strip>>>;
7605
+ external_references: z.ZodOptional<z.ZodObject<{
7606
+ invoicing_id: z.ZodOptional<z.ZodString>;
7607
+ }, z.core.$strip>>;
7608
+ quantity: z.ZodString;
7609
+ unit_price: z.ZodString;
7610
+ }, z.core.$strip>>;
7611
+ charge: z.ZodOptional<z.ZodObject<{
7612
+ id: z.ZodString;
7613
+ }, z.core.$strip>>;
7614
+ }, z.core.$strip>], "type">;
7615
+ export declare const profilePagePaginatedResponse: z.ZodObject<{
7616
+ data: z.ZodArray<z.ZodObject<{
7617
+ id: z.ZodString;
7618
+ name: z.ZodString;
7619
+ description: z.ZodOptional<z.ZodString>;
7620
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7621
+ created_at: z.ZodString;
7622
+ updated_at: z.ZodString;
7623
+ deleted_at: z.ZodOptional<z.ZodString>;
7624
+ supplier: z.ZodObject<{
7625
+ id: z.ZodOptional<z.ZodString>;
7626
+ key: z.ZodOptional<z.ZodString>;
7627
+ name: z.ZodOptional<z.ZodString>;
7628
+ tax_id: z.ZodOptional<z.ZodObject<{
7629
+ code: z.ZodOptional<z.ZodString>;
7630
+ }, z.core.$strip>>;
7631
+ addresses: z.ZodOptional<z.ZodObject<{
7632
+ billing_address: z.ZodObject<{
7633
+ country: z.ZodOptional<z.ZodString>;
7634
+ postal_code: z.ZodOptional<z.ZodString>;
7635
+ state: z.ZodOptional<z.ZodString>;
7636
+ city: z.ZodOptional<z.ZodString>;
7637
+ line1: z.ZodOptional<z.ZodString>;
7638
+ line2: z.ZodOptional<z.ZodString>;
7639
+ phone_number: z.ZodOptional<z.ZodString>;
7640
+ }, z.core.$strip>;
7641
+ }, z.core.$strip>>;
7642
+ }, z.core.$strip>;
7643
+ workflow: z.ZodObject<{
7644
+ collection: z.ZodOptional<z.ZodObject<{
7645
+ alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7646
+ type: z.ZodLiteral<"subscription">;
7647
+ }, z.core.$strip>, z.ZodObject<{
7648
+ type: z.ZodLiteral<"anchored">;
7649
+ recurring_period: z.ZodObject<{
7650
+ anchor: z.ZodString;
7651
+ interval: z.ZodString;
7652
+ }, z.core.$strip>;
7653
+ }, z.core.$strip>], "type">>>;
7654
+ interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7655
+ }, z.core.$strip>>;
7656
+ invoicing: z.ZodOptional<z.ZodObject<{
7657
+ auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7658
+ draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7659
+ progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7660
+ subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7661
+ bill_full_period: "bill_full_period";
7662
+ bill_actual_period: "bill_actual_period";
7663
+ }>>>;
7664
+ }, z.core.$strip>>;
7665
+ payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7666
+ collection_method: z.ZodLiteral<"charge_automatically">;
7667
+ }, z.core.$strip>, z.ZodObject<{
7668
+ collection_method: z.ZodLiteral<"send_invoice">;
7669
+ due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7670
+ }, z.core.$strip>], "collection_method">>;
7671
+ tax: z.ZodOptional<z.ZodObject<{
7672
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7673
+ enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7674
+ default_tax_config: z.ZodOptional<z.ZodObject<{
7675
+ behavior: z.ZodOptional<z.ZodEnum<{
7676
+ exclusive: "exclusive";
7677
+ inclusive: "inclusive";
7678
+ }>>;
7679
+ stripe: z.ZodOptional<z.ZodObject<{
7680
+ code: z.ZodString;
7681
+ }, z.core.$strip>>;
7682
+ external_invoicing: z.ZodOptional<z.ZodObject<{
7683
+ code: z.ZodString;
7684
+ }, z.core.$strip>>;
7685
+ tax_code_id: z.ZodOptional<z.ZodString>;
7686
+ tax_code: z.ZodOptional<z.ZodObject<{
7687
+ id: z.ZodString;
7688
+ }, z.core.$strip>>;
7689
+ }, z.core.$strip>>;
7690
+ }, z.core.$strip>>;
7691
+ }, z.core.$strip>;
7692
+ apps: z.ZodObject<{
7693
+ tax: z.ZodObject<{
7694
+ id: z.ZodString;
7695
+ }, z.core.$strip>;
7696
+ invoicing: z.ZodObject<{
7697
+ id: z.ZodString;
7698
+ }, z.core.$strip>;
7699
+ payment: z.ZodObject<{
7700
+ id: z.ZodString;
7701
+ }, z.core.$strip>;
7702
+ }, z.core.$strip>;
7703
+ default: z.ZodBoolean;
7704
+ }, z.core.$strip>>;
7705
+ meta: z.ZodObject<{
7706
+ page: z.ZodObject<{
7707
+ number: z.ZodNumber;
7708
+ size: z.ZodNumber;
7709
+ total: z.ZodNumber;
7710
+ }, z.core.$strip>;
7711
+ }, z.core.$strip>;
7712
+ }, z.core.$strip>;
7713
+ export declare const chargePagePaginatedResponse: z.ZodObject<{
7714
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7715
+ id: z.ZodString;
7716
+ name: z.ZodString;
7717
+ description: z.ZodOptional<z.ZodString>;
7718
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7719
+ created_at: z.ZodString;
7720
+ updated_at: z.ZodString;
7721
+ deleted_at: z.ZodOptional<z.ZodString>;
7722
+ type: z.ZodLiteral<"flat_fee">;
7723
+ customer: z.ZodObject<{
7724
+ id: z.ZodString;
7725
+ }, z.core.$strip>;
7726
+ lifecycle_controller: z.ZodEnum<{
7727
+ manual: "manual";
7728
+ system: "system";
7729
+ }>;
7730
+ subscription: z.ZodOptional<z.ZodObject<{
7731
+ id: z.ZodString;
7732
+ phase: z.ZodObject<{
7733
+ id: z.ZodString;
7734
+ item: z.ZodObject<{
7735
+ id: z.ZodString;
7736
+ }, z.core.$strip>;
7737
+ }, z.core.$strip>;
7738
+ }, z.core.$strip>>;
7739
+ currency: z.ZodString;
7740
+ status: z.ZodEnum<{
7741
+ active: "active";
7742
+ created: "created";
7743
+ final: "final";
7744
+ deleted: "deleted";
7745
+ }>;
7746
+ invoice_at: z.ZodString;
7747
+ service_period: z.ZodObject<{
7748
+ from: z.ZodString;
7749
+ to: z.ZodString;
7750
+ }, z.core.$strip>;
7751
+ full_service_period: z.ZodObject<{
7752
+ from: z.ZodString;
7753
+ to: z.ZodString;
7754
+ }, z.core.$strip>;
7755
+ billing_period: z.ZodObject<{
7756
+ from: z.ZodString;
7757
+ to: z.ZodString;
7758
+ }, z.core.$strip>;
7759
+ advance_after: z.ZodOptional<z.ZodString>;
7760
+ unique_reference_id: z.ZodOptional<z.ZodString>;
7761
+ settlement_mode: z.ZodEnum<{
7762
+ credit_then_invoice: "credit_then_invoice";
7763
+ credit_only: "credit_only";
7764
+ }>;
7765
+ tax_config: z.ZodOptional<z.ZodObject<{
7766
+ behavior: z.ZodOptional<z.ZodEnum<{
7767
+ exclusive: "exclusive";
7768
+ inclusive: "inclusive";
7769
+ }>>;
7770
+ stripe: z.ZodOptional<z.ZodObject<{
7771
+ code: z.ZodString;
7772
+ }, z.core.$strip>>;
7773
+ external_invoicing: z.ZodOptional<z.ZodObject<{
7774
+ code: z.ZodString;
7775
+ }, z.core.$strip>>;
7776
+ tax_code_id: z.ZodOptional<z.ZodString>;
7777
+ tax_code: z.ZodOptional<z.ZodObject<{
7778
+ id: z.ZodString;
7779
+ }, z.core.$strip>>;
7780
+ }, z.core.$strip>>;
7781
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
7782
+ discounts: z.ZodOptional<z.ZodObject<{
7783
+ percentage: z.ZodOptional<z.ZodNumber>;
7784
+ }, z.core.$strip>>;
7785
+ feature_key: z.ZodOptional<z.ZodString>;
7786
+ proration_configuration: z.ZodObject<{
7787
+ mode: z.ZodEnum<{
7788
+ no_proration: "no_proration";
7789
+ prorate_prices: "prorate_prices";
7790
+ }>;
7791
+ }, z.core.$strip>;
7792
+ amount_after_proration: z.ZodObject<{
7793
+ amount: z.ZodString;
7794
+ currency: z.ZodString;
7477
7795
  }, z.core.$strip>;
7478
- }, z.core.$strip>>;
7479
- rate_card: z.ZodObject<{
7480
7796
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7481
7797
  type: z.ZodLiteral<"free">;
7482
7798
  }, z.core.$strip>, z.ZodObject<{
@@ -7512,22 +7828,40 @@ export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
7512
7828
  }, z.core.$strip>>;
7513
7829
  }, z.core.$strip>>;
7514
7830
  }, z.core.$strip>], "type">;
7515
- tax_config: z.ZodOptional<z.ZodObject<{
7516
- behavior: z.ZodOptional<z.ZodEnum<{
7517
- exclusive: "exclusive";
7518
- inclusive: "inclusive";
7519
- }>>;
7520
- code: z.ZodObject<{
7521
- id: z.ZodString;
7831
+ system_intent: z.ZodOptional<z.ZodObject<{
7832
+ name: z.ZodString;
7833
+ description: z.ZodOptional<z.ZodString>;
7834
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7835
+ invoice_at: z.ZodString;
7836
+ service_period: z.ZodObject<{
7837
+ from: z.ZodString;
7838
+ to: z.ZodString;
7522
7839
  }, z.core.$strip>;
7840
+ full_service_period: z.ZodObject<{
7841
+ from: z.ZodString;
7842
+ to: z.ZodString;
7843
+ }, z.core.$strip>;
7844
+ billing_period: z.ZodObject<{
7845
+ from: z.ZodString;
7846
+ to: z.ZodString;
7847
+ }, z.core.$strip>;
7848
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
7849
+ discounts: z.ZodOptional<z.ZodObject<{
7850
+ percentage: z.ZodOptional<z.ZodNumber>;
7851
+ }, z.core.$strip>>;
7852
+ proration_configuration: z.ZodObject<{
7853
+ mode: z.ZodEnum<{
7854
+ no_proration: "no_proration";
7855
+ prorate_prices: "prorate_prices";
7856
+ }>;
7857
+ }, z.core.$strip>;
7858
+ amount_before_proration: z.ZodObject<{
7859
+ amount: z.ZodString;
7860
+ currency: z.ZodString;
7861
+ }, z.core.$strip>;
7862
+ deleted_at: z.ZodOptional<z.ZodString>;
7523
7863
  }, z.core.$strip>>;
7524
- feature_key: z.ZodOptional<z.ZodString>;
7525
- discounts: z.ZodOptional<z.ZodObject<{
7526
- percentage: z.ZodOptional<z.ZodNumber>;
7527
- usage: z.ZodOptional<z.ZodString>;
7528
- }, z.core.$strip>>;
7529
- }, z.core.$strip>;
7530
- detailed_lines: z.ZodArray<z.ZodObject<{
7864
+ }, z.core.$strip>, z.ZodObject<{
7531
7865
  id: z.ZodString;
7532
7866
  name: z.ZodString;
7533
7867
  description: z.ZodOptional<z.ZodString>;
@@ -7535,156 +7869,186 @@ export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
7535
7869
  created_at: z.ZodString;
7536
7870
  updated_at: z.ZodString;
7537
7871
  deleted_at: z.ZodOptional<z.ZodString>;
7872
+ type: z.ZodLiteral<"usage_based">;
7873
+ customer: z.ZodObject<{
7874
+ id: z.ZodString;
7875
+ }, z.core.$strip>;
7876
+ lifecycle_controller: z.ZodEnum<{
7877
+ manual: "manual";
7878
+ system: "system";
7879
+ }>;
7880
+ subscription: z.ZodOptional<z.ZodObject<{
7881
+ id: z.ZodString;
7882
+ phase: z.ZodObject<{
7883
+ id: z.ZodString;
7884
+ item: z.ZodObject<{
7885
+ id: z.ZodString;
7886
+ }, z.core.$strip>;
7887
+ }, z.core.$strip>;
7888
+ }, z.core.$strip>>;
7889
+ currency: z.ZodString;
7890
+ status: z.ZodEnum<{
7891
+ active: "active";
7892
+ created: "created";
7893
+ final: "final";
7894
+ deleted: "deleted";
7895
+ }>;
7896
+ invoice_at: z.ZodString;
7538
7897
  service_period: z.ZodObject<{
7539
7898
  from: z.ZodString;
7540
7899
  to: z.ZodString;
7541
7900
  }, z.core.$strip>;
7542
- totals: z.ZodObject<{
7543
- amount: z.ZodString;
7544
- taxes_total: z.ZodString;
7545
- taxes_inclusive_total: z.ZodString;
7546
- taxes_exclusive_total: z.ZodString;
7547
- charges_total: z.ZodString;
7548
- discounts_total: z.ZodString;
7549
- credits_total: z.ZodString;
7550
- total: z.ZodString;
7901
+ full_service_period: z.ZodObject<{
7902
+ from: z.ZodString;
7903
+ to: z.ZodString;
7551
7904
  }, z.core.$strip>;
7552
- category: z.ZodDefault<z.ZodEnum<{
7553
- regular: "regular";
7554
- commitment: "commitment";
7555
- }>>;
7556
- discounts: z.ZodOptional<z.ZodObject<{
7557
- amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
7558
- id: z.ZodString;
7559
- reason: z.ZodEnum<{
7560
- maximum_spend: "maximum_spend";
7561
- ratecard_percentage: "ratecard_percentage";
7562
- ratecard_usage: "ratecard_usage";
7563
- }>;
7564
- description: z.ZodOptional<z.ZodString>;
7565
- external_references: z.ZodOptional<z.ZodObject<{
7566
- invoicing_id: z.ZodOptional<z.ZodString>;
7567
- }, z.core.$strip>>;
7568
- amount: z.ZodString;
7569
- }, z.core.$strip>>>;
7570
- usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
7905
+ billing_period: z.ZodObject<{
7906
+ from: z.ZodString;
7907
+ to: z.ZodString;
7908
+ }, z.core.$strip>;
7909
+ advance_after: z.ZodOptional<z.ZodString>;
7910
+ unique_reference_id: z.ZodOptional<z.ZodString>;
7911
+ settlement_mode: z.ZodEnum<{
7912
+ credit_then_invoice: "credit_then_invoice";
7913
+ credit_only: "credit_only";
7914
+ }>;
7915
+ tax_config: z.ZodOptional<z.ZodObject<{
7916
+ behavior: z.ZodOptional<z.ZodEnum<{
7917
+ exclusive: "exclusive";
7918
+ inclusive: "inclusive";
7919
+ }>>;
7920
+ stripe: z.ZodOptional<z.ZodObject<{
7921
+ code: z.ZodString;
7922
+ }, z.core.$strip>>;
7923
+ external_invoicing: z.ZodOptional<z.ZodObject<{
7924
+ code: z.ZodString;
7925
+ }, z.core.$strip>>;
7926
+ tax_code_id: z.ZodOptional<z.ZodString>;
7927
+ tax_code: z.ZodOptional<z.ZodObject<{
7571
7928
  id: z.ZodString;
7572
- reason: z.ZodEnum<{
7573
- maximum_spend: "maximum_spend";
7574
- ratecard_percentage: "ratecard_percentage";
7575
- ratecard_usage: "ratecard_usage";
7576
- }>;
7577
- description: z.ZodOptional<z.ZodString>;
7578
- external_references: z.ZodOptional<z.ZodObject<{
7579
- invoicing_id: z.ZodOptional<z.ZodString>;
7580
- }, z.core.$strip>>;
7581
- quantity: z.ZodString;
7582
- }, z.core.$strip>>>;
7929
+ }, z.core.$strip>>;
7583
7930
  }, z.core.$strip>>;
7584
- credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
7585
- amount: z.ZodString;
7586
- description: z.ZodOptional<z.ZodString>;
7587
- }, z.core.$strip>>>;
7588
- external_references: z.ZodOptional<z.ZodObject<{
7589
- invoicing_id: z.ZodOptional<z.ZodString>;
7931
+ discounts: z.ZodOptional<z.ZodObject<{
7932
+ percentage: z.ZodOptional<z.ZodNumber>;
7933
+ usage: z.ZodOptional<z.ZodString>;
7590
7934
  }, z.core.$strip>>;
7591
- quantity: z.ZodString;
7592
- unit_price: z.ZodString;
7593
- }, z.core.$strip>>;
7594
- charge: z.ZodOptional<z.ZodObject<{
7595
- id: z.ZodString;
7596
- }, z.core.$strip>>;
7597
- }, z.core.$strip>], "type">;
7598
- export declare const profilePagePaginatedResponse: z.ZodObject<{
7599
- data: z.ZodArray<z.ZodObject<{
7600
- id: z.ZodString;
7601
- name: z.ZodString;
7602
- description: z.ZodOptional<z.ZodString>;
7603
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7604
- created_at: z.ZodString;
7605
- updated_at: z.ZodString;
7606
- deleted_at: z.ZodOptional<z.ZodString>;
7607
- supplier: z.ZodObject<{
7608
- id: z.ZodOptional<z.ZodString>;
7609
- key: z.ZodOptional<z.ZodString>;
7610
- name: z.ZodOptional<z.ZodString>;
7611
- tax_id: z.ZodOptional<z.ZodObject<{
7612
- code: z.ZodOptional<z.ZodString>;
7613
- }, z.core.$strip>>;
7614
- addresses: z.ZodOptional<z.ZodObject<{
7615
- billing_address: z.ZodObject<{
7616
- country: z.ZodOptional<z.ZodString>;
7617
- postal_code: z.ZodOptional<z.ZodString>;
7618
- state: z.ZodOptional<z.ZodString>;
7619
- city: z.ZodOptional<z.ZodString>;
7620
- line1: z.ZodOptional<z.ZodString>;
7621
- line2: z.ZodOptional<z.ZodString>;
7622
- phone_number: z.ZodOptional<z.ZodString>;
7623
- }, z.core.$strip>;
7935
+ feature_key: z.ZodString;
7936
+ totals: z.ZodObject<{
7937
+ booked: z.ZodObject<{
7938
+ amount: z.ZodString;
7939
+ taxes_total: z.ZodString;
7940
+ taxes_inclusive_total: z.ZodString;
7941
+ taxes_exclusive_total: z.ZodString;
7942
+ charges_total: z.ZodString;
7943
+ discounts_total: z.ZodString;
7944
+ credits_total: z.ZodString;
7945
+ total: z.ZodString;
7946
+ }, z.core.$strip>;
7947
+ realtime: z.ZodOptional<z.ZodObject<{
7948
+ amount: z.ZodString;
7949
+ taxes_total: z.ZodString;
7950
+ taxes_inclusive_total: z.ZodString;
7951
+ taxes_exclusive_total: z.ZodString;
7952
+ charges_total: z.ZodString;
7953
+ discounts_total: z.ZodString;
7954
+ credits_total: z.ZodString;
7955
+ total: z.ZodString;
7624
7956
  }, z.core.$strip>>;
7625
7957
  }, z.core.$strip>;
7626
- workflow: z.ZodObject<{
7627
- collection: z.ZodOptional<z.ZodObject<{
7628
- alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7629
- type: z.ZodLiteral<"subscription">;
7630
- }, z.core.$strip>, z.ZodObject<{
7631
- type: z.ZodLiteral<"anchored">;
7632
- recurring_period: z.ZodObject<{
7633
- anchor: z.ZodString;
7634
- interval: z.ZodString;
7635
- }, z.core.$strip>;
7636
- }, z.core.$strip>], "type">>>;
7637
- interval: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7958
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7959
+ type: z.ZodLiteral<"free">;
7960
+ }, z.core.$strip>, z.ZodObject<{
7961
+ type: z.ZodLiteral<"flat">;
7962
+ amount: z.ZodString;
7963
+ }, z.core.$strip>, z.ZodObject<{
7964
+ type: z.ZodLiteral<"unit">;
7965
+ amount: z.ZodString;
7966
+ }, z.core.$strip>, z.ZodObject<{
7967
+ type: z.ZodLiteral<"graduated">;
7968
+ tiers: z.ZodArray<z.ZodObject<{
7969
+ up_to_amount: z.ZodOptional<z.ZodString>;
7970
+ flat_price: z.ZodOptional<z.ZodObject<{
7971
+ type: z.ZodLiteral<"flat">;
7972
+ amount: z.ZodString;
7973
+ }, z.core.$strip>>;
7974
+ unit_price: z.ZodOptional<z.ZodObject<{
7975
+ type: z.ZodLiteral<"unit">;
7976
+ amount: z.ZodString;
7977
+ }, z.core.$strip>>;
7638
7978
  }, z.core.$strip>>;
7639
- invoicing: z.ZodOptional<z.ZodObject<{
7640
- auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7641
- draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7642
- progressive_billing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7643
- subscription_end_proration_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7644
- bill_full_period: "bill_full_period";
7645
- bill_actual_period: "bill_actual_period";
7646
- }>>>;
7979
+ }, z.core.$strip>, z.ZodObject<{
7980
+ type: z.ZodLiteral<"volume">;
7981
+ tiers: z.ZodArray<z.ZodObject<{
7982
+ up_to_amount: z.ZodOptional<z.ZodString>;
7983
+ flat_price: z.ZodOptional<z.ZodObject<{
7984
+ type: z.ZodLiteral<"flat">;
7985
+ amount: z.ZodString;
7986
+ }, z.core.$strip>>;
7987
+ unit_price: z.ZodOptional<z.ZodObject<{
7988
+ type: z.ZodLiteral<"unit">;
7989
+ amount: z.ZodString;
7990
+ }, z.core.$strip>>;
7647
7991
  }, z.core.$strip>>;
7648
- payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7649
- collection_method: z.ZodLiteral<"charge_automatically">;
7992
+ }, z.core.$strip>], "type">;
7993
+ system_intent: z.ZodOptional<z.ZodObject<{
7994
+ name: z.ZodString;
7995
+ description: z.ZodOptional<z.ZodString>;
7996
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7997
+ invoice_at: z.ZodString;
7998
+ service_period: z.ZodObject<{
7999
+ from: z.ZodString;
8000
+ to: z.ZodString;
8001
+ }, z.core.$strip>;
8002
+ full_service_period: z.ZodObject<{
8003
+ from: z.ZodString;
8004
+ to: z.ZodString;
8005
+ }, z.core.$strip>;
8006
+ billing_period: z.ZodObject<{
8007
+ from: z.ZodString;
8008
+ to: z.ZodString;
8009
+ }, z.core.$strip>;
8010
+ discounts: z.ZodOptional<z.ZodObject<{
8011
+ percentage: z.ZodOptional<z.ZodNumber>;
8012
+ usage: z.ZodOptional<z.ZodString>;
8013
+ }, z.core.$strip>>;
8014
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8015
+ type: z.ZodLiteral<"free">;
7650
8016
  }, z.core.$strip>, z.ZodObject<{
7651
- collection_method: z.ZodLiteral<"send_invoice">;
7652
- due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7653
- }, z.core.$strip>], "collection_method">>;
7654
- tax: z.ZodOptional<z.ZodObject<{
7655
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7656
- enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7657
- default_tax_config: z.ZodOptional<z.ZodObject<{
7658
- behavior: z.ZodOptional<z.ZodEnum<{
7659
- exclusive: "exclusive";
7660
- inclusive: "inclusive";
7661
- }>>;
7662
- stripe: z.ZodOptional<z.ZodObject<{
7663
- code: z.ZodString;
8017
+ type: z.ZodLiteral<"flat">;
8018
+ amount: z.ZodString;
8019
+ }, z.core.$strip>, z.ZodObject<{
8020
+ type: z.ZodLiteral<"unit">;
8021
+ amount: z.ZodString;
8022
+ }, z.core.$strip>, z.ZodObject<{
8023
+ type: z.ZodLiteral<"graduated">;
8024
+ tiers: z.ZodArray<z.ZodObject<{
8025
+ up_to_amount: z.ZodOptional<z.ZodString>;
8026
+ flat_price: z.ZodOptional<z.ZodObject<{
8027
+ type: z.ZodLiteral<"flat">;
8028
+ amount: z.ZodString;
7664
8029
  }, z.core.$strip>>;
7665
- external_invoicing: z.ZodOptional<z.ZodObject<{
7666
- code: z.ZodString;
8030
+ unit_price: z.ZodOptional<z.ZodObject<{
8031
+ type: z.ZodLiteral<"unit">;
8032
+ amount: z.ZodString;
7667
8033
  }, z.core.$strip>>;
7668
- tax_code_id: z.ZodOptional<z.ZodString>;
7669
- tax_code: z.ZodOptional<z.ZodObject<{
7670
- id: z.ZodString;
8034
+ }, z.core.$strip>>;
8035
+ }, z.core.$strip>, z.ZodObject<{
8036
+ type: z.ZodLiteral<"volume">;
8037
+ tiers: z.ZodArray<z.ZodObject<{
8038
+ up_to_amount: z.ZodOptional<z.ZodString>;
8039
+ flat_price: z.ZodOptional<z.ZodObject<{
8040
+ type: z.ZodLiteral<"flat">;
8041
+ amount: z.ZodString;
8042
+ }, z.core.$strip>>;
8043
+ unit_price: z.ZodOptional<z.ZodObject<{
8044
+ type: z.ZodLiteral<"unit">;
8045
+ amount: z.ZodString;
7671
8046
  }, z.core.$strip>>;
7672
8047
  }, z.core.$strip>>;
7673
- }, z.core.$strip>>;
7674
- }, z.core.$strip>;
7675
- apps: z.ZodObject<{
7676
- tax: z.ZodObject<{
7677
- id: z.ZodString;
7678
- }, z.core.$strip>;
7679
- invoicing: z.ZodObject<{
7680
- id: z.ZodString;
7681
- }, z.core.$strip>;
7682
- payment: z.ZodObject<{
7683
- id: z.ZodString;
7684
- }, z.core.$strip>;
7685
- }, z.core.$strip>;
7686
- default: z.ZodBoolean;
7687
- }, z.core.$strip>>;
8048
+ }, z.core.$strip>], "type">;
8049
+ deleted_at: z.ZodOptional<z.ZodString>;
8050
+ }, z.core.$strip>>;
8051
+ }, z.core.$strip>], "type">>;
7688
8052
  meta: z.ZodObject<{
7689
8053
  page: z.ZodObject<{
7690
8054
  number: z.ZodNumber;
@@ -10283,6 +10647,39 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
10283
10647
  }, z.core.$strip>>;
10284
10648
  }, z.core.$strip>>;
10285
10649
  }, z.core.$strip>], "type">;
10650
+ system_intent: z.ZodOptional<z.ZodObject<{
10651
+ name: z.ZodString;
10652
+ description: z.ZodOptional<z.ZodString>;
10653
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10654
+ invoice_at: z.ZodString;
10655
+ service_period: z.ZodObject<{
10656
+ from: z.ZodString;
10657
+ to: z.ZodString;
10658
+ }, z.core.$strip>;
10659
+ full_service_period: z.ZodObject<{
10660
+ from: z.ZodString;
10661
+ to: z.ZodString;
10662
+ }, z.core.$strip>;
10663
+ billing_period: z.ZodObject<{
10664
+ from: z.ZodString;
10665
+ to: z.ZodString;
10666
+ }, z.core.$strip>;
10667
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
10668
+ discounts: z.ZodOptional<z.ZodObject<{
10669
+ percentage: z.ZodOptional<z.ZodNumber>;
10670
+ }, z.core.$strip>>;
10671
+ proration_configuration: z.ZodObject<{
10672
+ mode: z.ZodEnum<{
10673
+ no_proration: "no_proration";
10674
+ prorate_prices: "prorate_prices";
10675
+ }>;
10676
+ }, z.core.$strip>;
10677
+ amount_before_proration: z.ZodObject<{
10678
+ amount: z.ZodString;
10679
+ currency: z.ZodString;
10680
+ }, z.core.$strip>;
10681
+ deleted_at: z.ZodOptional<z.ZodString>;
10682
+ }, z.core.$strip>>;
10286
10683
  }, z.core.$strip>, z.ZodObject<{
10287
10684
  id: z.ZodString;
10288
10685
  name: z.ZodString;
@@ -10412,6 +10809,64 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
10412
10809
  }, z.core.$strip>>;
10413
10810
  }, z.core.$strip>>;
10414
10811
  }, z.core.$strip>], "type">;
10812
+ system_intent: z.ZodOptional<z.ZodObject<{
10813
+ name: z.ZodString;
10814
+ description: z.ZodOptional<z.ZodString>;
10815
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10816
+ invoice_at: z.ZodString;
10817
+ service_period: z.ZodObject<{
10818
+ from: z.ZodString;
10819
+ to: z.ZodString;
10820
+ }, z.core.$strip>;
10821
+ full_service_period: z.ZodObject<{
10822
+ from: z.ZodString;
10823
+ to: z.ZodString;
10824
+ }, z.core.$strip>;
10825
+ billing_period: z.ZodObject<{
10826
+ from: z.ZodString;
10827
+ to: z.ZodString;
10828
+ }, z.core.$strip>;
10829
+ discounts: z.ZodOptional<z.ZodObject<{
10830
+ percentage: z.ZodOptional<z.ZodNumber>;
10831
+ usage: z.ZodOptional<z.ZodString>;
10832
+ }, z.core.$strip>>;
10833
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10834
+ type: z.ZodLiteral<"free">;
10835
+ }, z.core.$strip>, z.ZodObject<{
10836
+ type: z.ZodLiteral<"flat">;
10837
+ amount: z.ZodString;
10838
+ }, z.core.$strip>, z.ZodObject<{
10839
+ type: z.ZodLiteral<"unit">;
10840
+ amount: z.ZodString;
10841
+ }, z.core.$strip>, z.ZodObject<{
10842
+ type: z.ZodLiteral<"graduated">;
10843
+ tiers: z.ZodArray<z.ZodObject<{
10844
+ up_to_amount: z.ZodOptional<z.ZodString>;
10845
+ flat_price: z.ZodOptional<z.ZodObject<{
10846
+ type: z.ZodLiteral<"flat">;
10847
+ amount: z.ZodString;
10848
+ }, z.core.$strip>>;
10849
+ unit_price: z.ZodOptional<z.ZodObject<{
10850
+ type: z.ZodLiteral<"unit">;
10851
+ amount: z.ZodString;
10852
+ }, z.core.$strip>>;
10853
+ }, z.core.$strip>>;
10854
+ }, z.core.$strip>, z.ZodObject<{
10855
+ type: z.ZodLiteral<"volume">;
10856
+ tiers: z.ZodArray<z.ZodObject<{
10857
+ up_to_amount: z.ZodOptional<z.ZodString>;
10858
+ flat_price: z.ZodOptional<z.ZodObject<{
10859
+ type: z.ZodLiteral<"flat">;
10860
+ amount: z.ZodString;
10861
+ }, z.core.$strip>>;
10862
+ unit_price: z.ZodOptional<z.ZodObject<{
10863
+ type: z.ZodLiteral<"unit">;
10864
+ amount: z.ZodString;
10865
+ }, z.core.$strip>>;
10866
+ }, z.core.$strip>>;
10867
+ }, z.core.$strip>], "type">;
10868
+ deleted_at: z.ZodOptional<z.ZodString>;
10869
+ }, z.core.$strip>>;
10415
10870
  }, z.core.$strip>], "type">>;
10416
10871
  meta: z.ZodObject<{
10417
10872
  page: z.ZodObject<{
@@ -10677,6 +11132,39 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
10677
11132
  }, z.core.$strip>>;
10678
11133
  }, z.core.$strip>>;
10679
11134
  }, z.core.$strip>], "type">;
11135
+ system_intent: z.ZodOptional<z.ZodObject<{
11136
+ name: z.ZodString;
11137
+ description: z.ZodOptional<z.ZodString>;
11138
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11139
+ invoice_at: z.ZodString;
11140
+ service_period: z.ZodObject<{
11141
+ from: z.ZodString;
11142
+ to: z.ZodString;
11143
+ }, z.core.$strip>;
11144
+ full_service_period: z.ZodObject<{
11145
+ from: z.ZodString;
11146
+ to: z.ZodString;
11147
+ }, z.core.$strip>;
11148
+ billing_period: z.ZodObject<{
11149
+ from: z.ZodString;
11150
+ to: z.ZodString;
11151
+ }, z.core.$strip>;
11152
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
11153
+ discounts: z.ZodOptional<z.ZodObject<{
11154
+ percentage: z.ZodOptional<z.ZodNumber>;
11155
+ }, z.core.$strip>>;
11156
+ proration_configuration: z.ZodObject<{
11157
+ mode: z.ZodEnum<{
11158
+ no_proration: "no_proration";
11159
+ prorate_prices: "prorate_prices";
11160
+ }>;
11161
+ }, z.core.$strip>;
11162
+ amount_before_proration: z.ZodObject<{
11163
+ amount: z.ZodString;
11164
+ currency: z.ZodString;
11165
+ }, z.core.$strip>;
11166
+ deleted_at: z.ZodOptional<z.ZodString>;
11167
+ }, z.core.$strip>>;
10680
11168
  }, z.core.$strip>, z.ZodObject<{
10681
11169
  id: z.ZodString;
10682
11170
  name: z.ZodString;
@@ -10806,6 +11294,64 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
10806
11294
  }, z.core.$strip>>;
10807
11295
  }, z.core.$strip>>;
10808
11296
  }, z.core.$strip>], "type">;
11297
+ system_intent: z.ZodOptional<z.ZodObject<{
11298
+ name: z.ZodString;
11299
+ description: z.ZodOptional<z.ZodString>;
11300
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11301
+ invoice_at: z.ZodString;
11302
+ service_period: z.ZodObject<{
11303
+ from: z.ZodString;
11304
+ to: z.ZodString;
11305
+ }, z.core.$strip>;
11306
+ full_service_period: z.ZodObject<{
11307
+ from: z.ZodString;
11308
+ to: z.ZodString;
11309
+ }, z.core.$strip>;
11310
+ billing_period: z.ZodObject<{
11311
+ from: z.ZodString;
11312
+ to: z.ZodString;
11313
+ }, z.core.$strip>;
11314
+ discounts: z.ZodOptional<z.ZodObject<{
11315
+ percentage: z.ZodOptional<z.ZodNumber>;
11316
+ usage: z.ZodOptional<z.ZodString>;
11317
+ }, z.core.$strip>>;
11318
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
11319
+ type: z.ZodLiteral<"free">;
11320
+ }, z.core.$strip>, z.ZodObject<{
11321
+ type: z.ZodLiteral<"flat">;
11322
+ amount: z.ZodString;
11323
+ }, z.core.$strip>, z.ZodObject<{
11324
+ type: z.ZodLiteral<"unit">;
11325
+ amount: z.ZodString;
11326
+ }, z.core.$strip>, z.ZodObject<{
11327
+ type: z.ZodLiteral<"graduated">;
11328
+ tiers: z.ZodArray<z.ZodObject<{
11329
+ up_to_amount: z.ZodOptional<z.ZodString>;
11330
+ flat_price: z.ZodOptional<z.ZodObject<{
11331
+ type: z.ZodLiteral<"flat">;
11332
+ amount: z.ZodString;
11333
+ }, z.core.$strip>>;
11334
+ unit_price: z.ZodOptional<z.ZodObject<{
11335
+ type: z.ZodLiteral<"unit">;
11336
+ amount: z.ZodString;
11337
+ }, z.core.$strip>>;
11338
+ }, z.core.$strip>>;
11339
+ }, z.core.$strip>, z.ZodObject<{
11340
+ type: z.ZodLiteral<"volume">;
11341
+ tiers: z.ZodArray<z.ZodObject<{
11342
+ up_to_amount: z.ZodOptional<z.ZodString>;
11343
+ flat_price: z.ZodOptional<z.ZodObject<{
11344
+ type: z.ZodLiteral<"flat">;
11345
+ amount: z.ZodString;
11346
+ }, z.core.$strip>>;
11347
+ unit_price: z.ZodOptional<z.ZodObject<{
11348
+ type: z.ZodLiteral<"unit">;
11349
+ amount: z.ZodString;
11350
+ }, z.core.$strip>>;
11351
+ }, z.core.$strip>>;
11352
+ }, z.core.$strip>], "type">;
11353
+ deleted_at: z.ZodOptional<z.ZodString>;
11354
+ }, z.core.$strip>>;
10809
11355
  }, z.core.$strip>], "type">;
10810
11356
  export declare const createSubscriptionBody: z.ZodObject<{
10811
11357
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;