@openmeter/client 1.0.0-beta-fda362f409dd → 1.0.0-beta-d8b5c0006ffd

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.
@@ -218,9 +218,6 @@ export declare const chargeStatus: z.ZodEnum<{
218
218
  final: "final";
219
219
  deleted: "deleted";
220
220
  }>;
221
- export declare const priceFree: z.ZodObject<{
222
- type: z.ZodLiteral<"free">;
223
- }, z.core.$strip>;
224
221
  export declare const settlementMode: z.ZodEnum<{
225
222
  credit_then_invoice: "credit_then_invoice";
226
223
  credit_only: "credit_only";
@@ -239,6 +236,9 @@ export declare const rateCardProrationMode: z.ZodEnum<{
239
236
  no_proration: "no_proration";
240
237
  prorate_prices: "prorate_prices";
241
238
  }>;
239
+ export declare const priceFree: z.ZodObject<{
240
+ type: z.ZodLiteral<"free">;
241
+ }, z.core.$strip>;
242
242
  export declare const subscriptionStatus: z.ZodEnum<{
243
243
  active: "active";
244
244
  inactive: "inactive";
@@ -452,6 +452,10 @@ export declare const createCurrencyCode: z.ZodUnion<readonly [z.ZodString]>;
452
452
  export declare const listCostBasesParamsFilter: z.ZodObject<{
453
453
  fiat_code: z.ZodOptional<z.ZodString>;
454
454
  }, z.core.$strip>;
455
+ export declare const currencyAmount: z.ZodObject<{
456
+ amount: z.ZodString;
457
+ currency: z.ZodString;
458
+ }, z.core.$strip>;
455
459
  export declare const priceFlat: z.ZodObject<{
456
460
  type: z.ZodLiteral<"flat">;
457
461
  amount: z.ZodString;
@@ -460,10 +464,6 @@ export declare const priceUnit: z.ZodObject<{
460
464
  type: z.ZodLiteral<"unit">;
461
465
  amount: z.ZodString;
462
466
  }, z.core.$strip>;
463
- export declare const currencyAmount: z.ZodObject<{
464
- amount: z.ZodString;
465
- currency: z.ZodString;
466
- }, z.core.$strip>;
467
467
  export declare const rateCardDiscounts: z.ZodObject<{
468
468
  percentage: z.ZodOptional<z.ZodNumber>;
469
469
  usage: z.ZodOptional<z.ZodString>;
@@ -1190,10 +1190,10 @@ export declare const listPlansParamsFilter: z.ZodObject<{
1190
1190
  }, z.core.$strip>;
1191
1191
  export declare const subscriptionCreate: z.ZodObject<{
1192
1192
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1193
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1193
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
1194
1194
  credit_then_invoice: "credit_then_invoice";
1195
1195
  credit_only: "credit_only";
1196
- }>>>;
1196
+ }>>;
1197
1197
  customer: z.ZodObject<{
1198
1198
  id: z.ZodOptional<z.ZodString>;
1199
1199
  key: z.ZodOptional<z.ZodString>;
@@ -1226,10 +1226,10 @@ export declare const subscription: z.ZodObject<{
1226
1226
  canceled: "canceled";
1227
1227
  scheduled: "scheduled";
1228
1228
  }>;
1229
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1229
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
1230
1230
  credit_then_invoice: "credit_then_invoice";
1231
1231
  credit_only: "credit_only";
1232
- }>>>;
1232
+ }>>;
1233
1233
  }, z.core.$strip>;
1234
1234
  export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1235
1235
  immediate: "immediate";
@@ -2331,10 +2331,10 @@ export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
2331
2331
  canceled: "canceled";
2332
2332
  scheduled: "scheduled";
2333
2333
  }>;
2334
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2334
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2335
2335
  credit_then_invoice: "credit_then_invoice";
2336
2336
  credit_only: "credit_only";
2337
- }>>>;
2337
+ }>>;
2338
2338
  }, z.core.$strip>>;
2339
2339
  meta: z.ZodObject<{
2340
2340
  page: z.ZodObject<{
@@ -2360,10 +2360,10 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
2360
2360
  canceled: "canceled";
2361
2361
  scheduled: "scheduled";
2362
2362
  }>;
2363
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2363
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2364
2364
  credit_then_invoice: "credit_then_invoice";
2365
2365
  credit_only: "credit_only";
2366
- }>>>;
2366
+ }>>;
2367
2367
  }, z.core.$strip>;
2368
2368
  next: z.ZodObject<{
2369
2369
  id: z.ZodString;
@@ -2380,10 +2380,10 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
2380
2380
  canceled: "canceled";
2381
2381
  scheduled: "scheduled";
2382
2382
  }>;
2383
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2383
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2384
2384
  credit_then_invoice: "credit_then_invoice";
2385
2385
  credit_only: "credit_only";
2386
- }>>>;
2386
+ }>>;
2387
2387
  }, z.core.$strip>;
2388
2388
  }, z.core.$strip>;
2389
2389
  export declare const subscriptionCancel: z.ZodObject<{
@@ -2394,10 +2394,10 @@ export declare const subscriptionCancel: z.ZodObject<{
2394
2394
  }, z.core.$strip>;
2395
2395
  export declare const subscriptionChange: z.ZodObject<{
2396
2396
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2397
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2397
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2398
2398
  credit_then_invoice: "credit_then_invoice";
2399
2399
  credit_only: "credit_only";
2400
- }>>>;
2400
+ }>>;
2401
2401
  customer: z.ZodObject<{
2402
2402
  id: z.ZodOptional<z.ZodString>;
2403
2403
  key: z.ZodOptional<z.ZodString>;
@@ -2833,6 +2833,62 @@ export declare const creditGrant: z.ZodObject<{
2833
2833
  voided: "voided";
2834
2834
  }>;
2835
2835
  }, z.core.$strip>;
2836
+ export declare const createFlatFeeChargeRequest: z.ZodObject<{
2837
+ name: z.ZodString;
2838
+ description: z.ZodOptional<z.ZodString>;
2839
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2840
+ type: z.ZodLiteral<"flat_fee">;
2841
+ currency: z.ZodString;
2842
+ invoice_at: z.ZodString;
2843
+ service_period: z.ZodObject<{
2844
+ from: z.ZodString;
2845
+ to: z.ZodString;
2846
+ }, z.core.$strip>;
2847
+ unique_reference_id: z.ZodOptional<z.ZodString>;
2848
+ settlement_mode: z.ZodEnum<{
2849
+ credit_then_invoice: "credit_then_invoice";
2850
+ credit_only: "credit_only";
2851
+ }>;
2852
+ tax_config: z.ZodOptional<z.ZodObject<{
2853
+ behavior: z.ZodOptional<z.ZodEnum<{
2854
+ exclusive: "exclusive";
2855
+ inclusive: "inclusive";
2856
+ }>>;
2857
+ stripe: z.ZodOptional<z.ZodObject<{
2858
+ code: z.ZodString;
2859
+ }, z.core.$strip>>;
2860
+ external_invoicing: z.ZodOptional<z.ZodObject<{
2861
+ code: z.ZodString;
2862
+ }, z.core.$strip>>;
2863
+ tax_code_id: z.ZodOptional<z.ZodString>;
2864
+ tax_code: z.ZodOptional<z.ZodObject<{
2865
+ id: z.ZodString;
2866
+ }, z.core.$strip>>;
2867
+ }, z.core.$strip>>;
2868
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
2869
+ discounts: z.ZodOptional<z.ZodObject<{
2870
+ percentage: z.ZodOptional<z.ZodNumber>;
2871
+ }, z.core.$strip>>;
2872
+ feature_key: z.ZodOptional<z.ZodString>;
2873
+ proration_configuration: z.ZodObject<{
2874
+ mode: z.ZodEnum<{
2875
+ no_proration: "no_proration";
2876
+ prorate_prices: "prorate_prices";
2877
+ }>;
2878
+ }, z.core.$strip>;
2879
+ amount_before_proration: z.ZodObject<{
2880
+ amount: z.ZodString;
2881
+ currency: z.ZodString;
2882
+ }, z.core.$strip>;
2883
+ full_service_period: z.ZodOptional<z.ZodObject<{
2884
+ from: z.ZodString;
2885
+ to: z.ZodString;
2886
+ }, z.core.$strip>>;
2887
+ billing_period: z.ZodOptional<z.ZodObject<{
2888
+ from: z.ZodString;
2889
+ to: z.ZodString;
2890
+ }, z.core.$strip>>;
2891
+ }, z.core.$strip>;
2836
2892
  export declare const workflowTaxSettings: z.ZodObject<{
2837
2893
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2838
2894
  enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -4223,41 +4279,6 @@ export declare const flatFeeCharge: z.ZodObject<{
4223
4279
  to: z.ZodString;
4224
4280
  }, z.core.$strip>;
4225
4281
  advance_after: z.ZodOptional<z.ZodString>;
4226
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4227
- type: z.ZodLiteral<"free">;
4228
- }, z.core.$strip>, z.ZodObject<{
4229
- type: z.ZodLiteral<"flat">;
4230
- amount: z.ZodString;
4231
- }, z.core.$strip>, z.ZodObject<{
4232
- type: z.ZodLiteral<"unit">;
4233
- amount: z.ZodString;
4234
- }, z.core.$strip>, z.ZodObject<{
4235
- type: z.ZodLiteral<"graduated">;
4236
- tiers: z.ZodArray<z.ZodObject<{
4237
- up_to_amount: z.ZodOptional<z.ZodString>;
4238
- flat_price: z.ZodOptional<z.ZodObject<{
4239
- type: z.ZodLiteral<"flat">;
4240
- amount: z.ZodString;
4241
- }, z.core.$strip>>;
4242
- unit_price: z.ZodOptional<z.ZodObject<{
4243
- type: z.ZodLiteral<"unit">;
4244
- amount: z.ZodString;
4245
- }, z.core.$strip>>;
4246
- }, z.core.$strip>>;
4247
- }, z.core.$strip>, z.ZodObject<{
4248
- type: z.ZodLiteral<"volume">;
4249
- tiers: z.ZodArray<z.ZodObject<{
4250
- up_to_amount: z.ZodOptional<z.ZodString>;
4251
- flat_price: z.ZodOptional<z.ZodObject<{
4252
- type: z.ZodLiteral<"flat">;
4253
- amount: z.ZodString;
4254
- }, z.core.$strip>>;
4255
- unit_price: z.ZodOptional<z.ZodObject<{
4256
- type: z.ZodLiteral<"unit">;
4257
- amount: z.ZodString;
4258
- }, z.core.$strip>>;
4259
- }, z.core.$strip>>;
4260
- }, z.core.$strip>], "type">;
4261
4282
  unique_reference_id: z.ZodOptional<z.ZodString>;
4262
4283
  settlement_mode: z.ZodEnum<{
4263
4284
  credit_then_invoice: "credit_then_invoice";
@@ -4290,10 +4311,49 @@ export declare const flatFeeCharge: z.ZodObject<{
4290
4311
  prorate_prices: "prorate_prices";
4291
4312
  }>;
4292
4313
  }, z.core.$strip>;
4314
+ amount_before_proration: z.ZodObject<{
4315
+ amount: z.ZodString;
4316
+ currency: z.ZodString;
4317
+ }, z.core.$strip>;
4293
4318
  amount_after_proration: z.ZodObject<{
4294
4319
  amount: z.ZodString;
4295
4320
  currency: z.ZodString;
4296
4321
  }, z.core.$strip>;
4322
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4323
+ type: z.ZodLiteral<"free">;
4324
+ }, z.core.$strip>, z.ZodObject<{
4325
+ type: z.ZodLiteral<"flat">;
4326
+ amount: z.ZodString;
4327
+ }, z.core.$strip>, z.ZodObject<{
4328
+ type: z.ZodLiteral<"unit">;
4329
+ amount: z.ZodString;
4330
+ }, z.core.$strip>, z.ZodObject<{
4331
+ type: z.ZodLiteral<"graduated">;
4332
+ tiers: z.ZodArray<z.ZodObject<{
4333
+ up_to_amount: z.ZodOptional<z.ZodString>;
4334
+ flat_price: z.ZodOptional<z.ZodObject<{
4335
+ type: z.ZodLiteral<"flat">;
4336
+ amount: z.ZodString;
4337
+ }, z.core.$strip>>;
4338
+ unit_price: z.ZodOptional<z.ZodObject<{
4339
+ type: z.ZodLiteral<"unit">;
4340
+ amount: z.ZodString;
4341
+ }, z.core.$strip>>;
4342
+ }, z.core.$strip>>;
4343
+ }, z.core.$strip>, z.ZodObject<{
4344
+ type: z.ZodLiteral<"volume">;
4345
+ tiers: z.ZodArray<z.ZodObject<{
4346
+ up_to_amount: z.ZodOptional<z.ZodString>;
4347
+ flat_price: z.ZodOptional<z.ZodObject<{
4348
+ type: z.ZodLiteral<"flat">;
4349
+ amount: z.ZodString;
4350
+ }, z.core.$strip>>;
4351
+ unit_price: z.ZodOptional<z.ZodObject<{
4352
+ type: z.ZodLiteral<"unit">;
4353
+ amount: z.ZodString;
4354
+ }, z.core.$strip>>;
4355
+ }, z.core.$strip>>;
4356
+ }, z.core.$strip>], "type">;
4297
4357
  }, z.core.$strip>;
4298
4358
  export declare const usageBasedCharge: z.ZodObject<{
4299
4359
  id: z.ZodString;
@@ -4342,6 +4402,54 @@ export declare const usageBasedCharge: z.ZodObject<{
4342
4402
  to: z.ZodString;
4343
4403
  }, z.core.$strip>;
4344
4404
  advance_after: z.ZodOptional<z.ZodString>;
4405
+ unique_reference_id: z.ZodOptional<z.ZodString>;
4406
+ settlement_mode: z.ZodEnum<{
4407
+ credit_then_invoice: "credit_then_invoice";
4408
+ credit_only: "credit_only";
4409
+ }>;
4410
+ tax_config: z.ZodOptional<z.ZodObject<{
4411
+ behavior: z.ZodOptional<z.ZodEnum<{
4412
+ exclusive: "exclusive";
4413
+ inclusive: "inclusive";
4414
+ }>>;
4415
+ stripe: z.ZodOptional<z.ZodObject<{
4416
+ code: z.ZodString;
4417
+ }, z.core.$strip>>;
4418
+ external_invoicing: z.ZodOptional<z.ZodObject<{
4419
+ code: z.ZodString;
4420
+ }, z.core.$strip>>;
4421
+ tax_code_id: z.ZodOptional<z.ZodString>;
4422
+ tax_code: z.ZodOptional<z.ZodObject<{
4423
+ id: z.ZodString;
4424
+ }, z.core.$strip>>;
4425
+ }, z.core.$strip>>;
4426
+ discounts: z.ZodOptional<z.ZodObject<{
4427
+ percentage: z.ZodOptional<z.ZodNumber>;
4428
+ usage: z.ZodOptional<z.ZodString>;
4429
+ }, z.core.$strip>>;
4430
+ feature_key: z.ZodString;
4431
+ totals: z.ZodObject<{
4432
+ booked: z.ZodObject<{
4433
+ amount: z.ZodString;
4434
+ taxes_total: z.ZodString;
4435
+ taxes_inclusive_total: z.ZodString;
4436
+ taxes_exclusive_total: z.ZodString;
4437
+ charges_total: z.ZodString;
4438
+ discounts_total: z.ZodString;
4439
+ credits_total: z.ZodString;
4440
+ total: z.ZodString;
4441
+ }, z.core.$strip>;
4442
+ realtime: z.ZodOptional<z.ZodObject<{
4443
+ amount: z.ZodString;
4444
+ taxes_total: z.ZodString;
4445
+ taxes_inclusive_total: z.ZodString;
4446
+ taxes_exclusive_total: z.ZodString;
4447
+ charges_total: z.ZodString;
4448
+ discounts_total: z.ZodString;
4449
+ credits_total: z.ZodString;
4450
+ total: z.ZodString;
4451
+ }, z.core.$strip>>;
4452
+ }, z.core.$strip>;
4345
4453
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4346
4454
  type: z.ZodLiteral<"free">;
4347
4455
  }, z.core.$strip>, z.ZodObject<{
@@ -4377,6 +4485,18 @@ export declare const usageBasedCharge: z.ZodObject<{
4377
4485
  }, z.core.$strip>>;
4378
4486
  }, z.core.$strip>>;
4379
4487
  }, z.core.$strip>], "type">;
4488
+ }, z.core.$strip>;
4489
+ export declare const createUsageBasedChargeRequest: z.ZodObject<{
4490
+ name: z.ZodString;
4491
+ description: z.ZodOptional<z.ZodString>;
4492
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4493
+ type: z.ZodLiteral<"usage_based">;
4494
+ currency: z.ZodString;
4495
+ invoice_at: z.ZodString;
4496
+ service_period: z.ZodObject<{
4497
+ from: z.ZodString;
4498
+ to: z.ZodString;
4499
+ }, z.core.$strip>;
4380
4500
  unique_reference_id: z.ZodOptional<z.ZodString>;
4381
4501
  settlement_mode: z.ZodEnum<{
4382
4502
  credit_then_invoice: "credit_then_invoice";
@@ -4403,38 +4523,6 @@ export declare const usageBasedCharge: z.ZodObject<{
4403
4523
  usage: z.ZodOptional<z.ZodString>;
4404
4524
  }, z.core.$strip>>;
4405
4525
  feature_key: z.ZodString;
4406
- totals: z.ZodObject<{
4407
- booked: z.ZodObject<{
4408
- amount: z.ZodString;
4409
- taxes_total: z.ZodString;
4410
- taxes_inclusive_total: z.ZodString;
4411
- taxes_exclusive_total: z.ZodString;
4412
- charges_total: z.ZodString;
4413
- discounts_total: z.ZodString;
4414
- credits_total: z.ZodString;
4415
- total: z.ZodString;
4416
- }, z.core.$strip>;
4417
- realtime: z.ZodOptional<z.ZodObject<{
4418
- amount: z.ZodString;
4419
- taxes_total: z.ZodString;
4420
- taxes_inclusive_total: z.ZodString;
4421
- taxes_exclusive_total: z.ZodString;
4422
- charges_total: z.ZodString;
4423
- discounts_total: z.ZodString;
4424
- credits_total: z.ZodString;
4425
- total: z.ZodString;
4426
- }, z.core.$strip>>;
4427
- }, z.core.$strip>;
4428
- }, z.core.$strip>;
4429
- export declare const rateCard: z.ZodObject<{
4430
- name: z.ZodString;
4431
- description: z.ZodOptional<z.ZodString>;
4432
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4433
- key: z.ZodString;
4434
- feature: z.ZodOptional<z.ZodObject<{
4435
- id: z.ZodString;
4436
- }, z.core.$strip>>;
4437
- billing_cadence: z.ZodOptional<z.ZodString>;
4438
4526
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4439
4527
  type: z.ZodLiteral<"free">;
4440
4528
  }, z.core.$strip>, z.ZodObject<{
@@ -4470,13 +4558,66 @@ export declare const rateCard: z.ZodObject<{
4470
4558
  }, z.core.$strip>>;
4471
4559
  }, z.core.$strip>>;
4472
4560
  }, z.core.$strip>], "type">;
4473
- payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
4474
- commitments: z.ZodOptional<z.ZodObject<{
4475
- minimum_amount: z.ZodOptional<z.ZodString>;
4476
- maximum_amount: z.ZodOptional<z.ZodString>;
4561
+ full_service_period: z.ZodOptional<z.ZodObject<{
4562
+ from: z.ZodString;
4563
+ to: z.ZodString;
4477
4564
  }, z.core.$strip>>;
4478
- discounts: z.ZodOptional<z.ZodObject<{
4479
- percentage: z.ZodOptional<z.ZodNumber>;
4565
+ billing_period: z.ZodOptional<z.ZodObject<{
4566
+ from: z.ZodString;
4567
+ to: z.ZodString;
4568
+ }, z.core.$strip>>;
4569
+ }, z.core.$strip>;
4570
+ export declare const rateCard: z.ZodObject<{
4571
+ name: z.ZodString;
4572
+ description: z.ZodOptional<z.ZodString>;
4573
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4574
+ key: z.ZodString;
4575
+ feature: z.ZodOptional<z.ZodObject<{
4576
+ id: z.ZodString;
4577
+ }, z.core.$strip>>;
4578
+ billing_cadence: z.ZodOptional<z.ZodString>;
4579
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4580
+ type: z.ZodLiteral<"free">;
4581
+ }, z.core.$strip>, z.ZodObject<{
4582
+ type: z.ZodLiteral<"flat">;
4583
+ amount: z.ZodString;
4584
+ }, z.core.$strip>, z.ZodObject<{
4585
+ type: z.ZodLiteral<"unit">;
4586
+ amount: z.ZodString;
4587
+ }, z.core.$strip>, z.ZodObject<{
4588
+ type: z.ZodLiteral<"graduated">;
4589
+ tiers: z.ZodArray<z.ZodObject<{
4590
+ up_to_amount: z.ZodOptional<z.ZodString>;
4591
+ flat_price: z.ZodOptional<z.ZodObject<{
4592
+ type: z.ZodLiteral<"flat">;
4593
+ amount: z.ZodString;
4594
+ }, z.core.$strip>>;
4595
+ unit_price: z.ZodOptional<z.ZodObject<{
4596
+ type: z.ZodLiteral<"unit">;
4597
+ amount: z.ZodString;
4598
+ }, z.core.$strip>>;
4599
+ }, z.core.$strip>>;
4600
+ }, z.core.$strip>, z.ZodObject<{
4601
+ type: z.ZodLiteral<"volume">;
4602
+ tiers: z.ZodArray<z.ZodObject<{
4603
+ up_to_amount: z.ZodOptional<z.ZodString>;
4604
+ flat_price: z.ZodOptional<z.ZodObject<{
4605
+ type: z.ZodLiteral<"flat">;
4606
+ amount: z.ZodString;
4607
+ }, z.core.$strip>>;
4608
+ unit_price: z.ZodOptional<z.ZodObject<{
4609
+ type: z.ZodLiteral<"unit">;
4610
+ amount: z.ZodString;
4611
+ }, z.core.$strip>>;
4612
+ }, z.core.$strip>>;
4613
+ }, z.core.$strip>], "type">;
4614
+ payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
4615
+ commitments: z.ZodOptional<z.ZodObject<{
4616
+ minimum_amount: z.ZodOptional<z.ZodString>;
4617
+ maximum_amount: z.ZodOptional<z.ZodString>;
4618
+ }, z.core.$strip>>;
4619
+ discounts: z.ZodOptional<z.ZodObject<{
4620
+ percentage: z.ZodOptional<z.ZodNumber>;
4480
4621
  usage: z.ZodOptional<z.ZodString>;
4481
4622
  }, z.core.$strip>>;
4482
4623
  tax_config: z.ZodOptional<z.ZodObject<{
@@ -4670,41 +4811,6 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
4670
4811
  to: z.ZodString;
4671
4812
  }, z.core.$strip>;
4672
4813
  advance_after: z.ZodOptional<z.ZodString>;
4673
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4674
- type: z.ZodLiteral<"free">;
4675
- }, z.core.$strip>, z.ZodObject<{
4676
- type: z.ZodLiteral<"flat">;
4677
- amount: z.ZodString;
4678
- }, z.core.$strip>, z.ZodObject<{
4679
- type: z.ZodLiteral<"unit">;
4680
- amount: z.ZodString;
4681
- }, z.core.$strip>, z.ZodObject<{
4682
- type: z.ZodLiteral<"graduated">;
4683
- tiers: z.ZodArray<z.ZodObject<{
4684
- up_to_amount: z.ZodOptional<z.ZodString>;
4685
- flat_price: z.ZodOptional<z.ZodObject<{
4686
- type: z.ZodLiteral<"flat">;
4687
- amount: z.ZodString;
4688
- }, z.core.$strip>>;
4689
- unit_price: z.ZodOptional<z.ZodObject<{
4690
- type: z.ZodLiteral<"unit">;
4691
- amount: z.ZodString;
4692
- }, z.core.$strip>>;
4693
- }, z.core.$strip>>;
4694
- }, z.core.$strip>, z.ZodObject<{
4695
- type: z.ZodLiteral<"volume">;
4696
- tiers: z.ZodArray<z.ZodObject<{
4697
- up_to_amount: z.ZodOptional<z.ZodString>;
4698
- flat_price: z.ZodOptional<z.ZodObject<{
4699
- type: z.ZodLiteral<"flat">;
4700
- amount: z.ZodString;
4701
- }, z.core.$strip>>;
4702
- unit_price: z.ZodOptional<z.ZodObject<{
4703
- type: z.ZodLiteral<"unit">;
4704
- amount: z.ZodString;
4705
- }, z.core.$strip>>;
4706
- }, z.core.$strip>>;
4707
- }, z.core.$strip>], "type">;
4708
4814
  unique_reference_id: z.ZodOptional<z.ZodString>;
4709
4815
  settlement_mode: z.ZodEnum<{
4710
4816
  credit_then_invoice: "credit_then_invoice";
@@ -4737,10 +4843,49 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
4737
4843
  prorate_prices: "prorate_prices";
4738
4844
  }>;
4739
4845
  }, z.core.$strip>;
4846
+ amount_before_proration: z.ZodObject<{
4847
+ amount: z.ZodString;
4848
+ currency: z.ZodString;
4849
+ }, z.core.$strip>;
4740
4850
  amount_after_proration: z.ZodObject<{
4741
4851
  amount: z.ZodString;
4742
4852
  currency: z.ZodString;
4743
4853
  }, z.core.$strip>;
4854
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4855
+ type: z.ZodLiteral<"free">;
4856
+ }, z.core.$strip>, z.ZodObject<{
4857
+ type: z.ZodLiteral<"flat">;
4858
+ amount: z.ZodString;
4859
+ }, z.core.$strip>, z.ZodObject<{
4860
+ type: z.ZodLiteral<"unit">;
4861
+ amount: z.ZodString;
4862
+ }, z.core.$strip>, z.ZodObject<{
4863
+ type: z.ZodLiteral<"graduated">;
4864
+ tiers: z.ZodArray<z.ZodObject<{
4865
+ up_to_amount: z.ZodOptional<z.ZodString>;
4866
+ flat_price: z.ZodOptional<z.ZodObject<{
4867
+ type: z.ZodLiteral<"flat">;
4868
+ amount: z.ZodString;
4869
+ }, z.core.$strip>>;
4870
+ unit_price: z.ZodOptional<z.ZodObject<{
4871
+ type: z.ZodLiteral<"unit">;
4872
+ amount: z.ZodString;
4873
+ }, z.core.$strip>>;
4874
+ }, z.core.$strip>>;
4875
+ }, z.core.$strip>, z.ZodObject<{
4876
+ type: z.ZodLiteral<"volume">;
4877
+ tiers: z.ZodArray<z.ZodObject<{
4878
+ up_to_amount: z.ZodOptional<z.ZodString>;
4879
+ flat_price: z.ZodOptional<z.ZodObject<{
4880
+ type: z.ZodLiteral<"flat">;
4881
+ amount: z.ZodString;
4882
+ }, z.core.$strip>>;
4883
+ unit_price: z.ZodOptional<z.ZodObject<{
4884
+ type: z.ZodLiteral<"unit">;
4885
+ amount: z.ZodString;
4886
+ }, z.core.$strip>>;
4887
+ }, z.core.$strip>>;
4888
+ }, z.core.$strip>], "type">;
4744
4889
  }, z.core.$strip>, z.ZodObject<{
4745
4890
  id: z.ZodString;
4746
4891
  name: z.ZodString;
@@ -4788,6 +4933,54 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
4788
4933
  to: z.ZodString;
4789
4934
  }, z.core.$strip>;
4790
4935
  advance_after: z.ZodOptional<z.ZodString>;
4936
+ unique_reference_id: z.ZodOptional<z.ZodString>;
4937
+ settlement_mode: z.ZodEnum<{
4938
+ credit_then_invoice: "credit_then_invoice";
4939
+ credit_only: "credit_only";
4940
+ }>;
4941
+ tax_config: z.ZodOptional<z.ZodObject<{
4942
+ behavior: z.ZodOptional<z.ZodEnum<{
4943
+ exclusive: "exclusive";
4944
+ inclusive: "inclusive";
4945
+ }>>;
4946
+ stripe: z.ZodOptional<z.ZodObject<{
4947
+ code: z.ZodString;
4948
+ }, z.core.$strip>>;
4949
+ external_invoicing: z.ZodOptional<z.ZodObject<{
4950
+ code: z.ZodString;
4951
+ }, z.core.$strip>>;
4952
+ tax_code_id: z.ZodOptional<z.ZodString>;
4953
+ tax_code: z.ZodOptional<z.ZodObject<{
4954
+ id: z.ZodString;
4955
+ }, z.core.$strip>>;
4956
+ }, z.core.$strip>>;
4957
+ discounts: z.ZodOptional<z.ZodObject<{
4958
+ percentage: z.ZodOptional<z.ZodNumber>;
4959
+ usage: z.ZodOptional<z.ZodString>;
4960
+ }, z.core.$strip>>;
4961
+ feature_key: z.ZodString;
4962
+ totals: z.ZodObject<{
4963
+ booked: z.ZodObject<{
4964
+ amount: z.ZodString;
4965
+ taxes_total: z.ZodString;
4966
+ taxes_inclusive_total: z.ZodString;
4967
+ taxes_exclusive_total: z.ZodString;
4968
+ charges_total: z.ZodString;
4969
+ discounts_total: z.ZodString;
4970
+ credits_total: z.ZodString;
4971
+ total: z.ZodString;
4972
+ }, z.core.$strip>;
4973
+ realtime: z.ZodOptional<z.ZodObject<{
4974
+ amount: z.ZodString;
4975
+ taxes_total: z.ZodString;
4976
+ taxes_inclusive_total: z.ZodString;
4977
+ taxes_exclusive_total: z.ZodString;
4978
+ charges_total: z.ZodString;
4979
+ discounts_total: z.ZodString;
4980
+ credits_total: z.ZodString;
4981
+ total: z.ZodString;
4982
+ }, z.core.$strip>>;
4983
+ }, z.core.$strip>;
4791
4984
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4792
4985
  type: z.ZodLiteral<"free">;
4793
4986
  }, z.core.$strip>, z.ZodObject<{
@@ -4823,6 +5016,18 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
4823
5016
  }, z.core.$strip>>;
4824
5017
  }, z.core.$strip>>;
4825
5018
  }, z.core.$strip>], "type">;
5019
+ }, z.core.$strip>], "type">;
5020
+ export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
5021
+ name: z.ZodString;
5022
+ description: z.ZodOptional<z.ZodString>;
5023
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5024
+ type: z.ZodLiteral<"flat_fee">;
5025
+ currency: z.ZodString;
5026
+ invoice_at: z.ZodString;
5027
+ service_period: z.ZodObject<{
5028
+ from: z.ZodString;
5029
+ to: z.ZodString;
5030
+ }, z.core.$strip>;
4826
5031
  unique_reference_id: z.ZodOptional<z.ZodString>;
4827
5032
  settlement_mode: z.ZodEnum<{
4828
5033
  credit_then_invoice: "credit_then_invoice";
@@ -4844,65 +5049,141 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
4844
5049
  id: z.ZodString;
4845
5050
  }, z.core.$strip>>;
4846
5051
  }, z.core.$strip>>;
5052
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
4847
5053
  discounts: z.ZodOptional<z.ZodObject<{
4848
5054
  percentage: z.ZodOptional<z.ZodNumber>;
4849
- usage: z.ZodOptional<z.ZodString>;
4850
5055
  }, z.core.$strip>>;
4851
- feature_key: z.ZodString;
4852
- totals: z.ZodObject<{
4853
- booked: z.ZodObject<{
4854
- amount: z.ZodString;
4855
- taxes_total: z.ZodString;
4856
- taxes_inclusive_total: z.ZodString;
4857
- taxes_exclusive_total: z.ZodString;
4858
- charges_total: z.ZodString;
4859
- discounts_total: z.ZodString;
4860
- credits_total: z.ZodString;
4861
- total: z.ZodString;
4862
- }, z.core.$strip>;
4863
- realtime: z.ZodOptional<z.ZodObject<{
4864
- amount: z.ZodString;
4865
- taxes_total: z.ZodString;
4866
- taxes_inclusive_total: z.ZodString;
4867
- taxes_exclusive_total: z.ZodString;
4868
- charges_total: z.ZodString;
4869
- discounts_total: z.ZodString;
4870
- credits_total: z.ZodString;
4871
- total: z.ZodString;
4872
- }, z.core.$strip>>;
5056
+ feature_key: z.ZodOptional<z.ZodString>;
5057
+ proration_configuration: z.ZodObject<{
5058
+ mode: z.ZodEnum<{
5059
+ no_proration: "no_proration";
5060
+ prorate_prices: "prorate_prices";
5061
+ }>;
4873
5062
  }, z.core.$strip>;
4874
- }, z.core.$strip>], "type">;
4875
- export declare const planPhase: z.ZodObject<{
5063
+ amount_before_proration: z.ZodObject<{
5064
+ amount: z.ZodString;
5065
+ currency: z.ZodString;
5066
+ }, z.core.$strip>;
5067
+ full_service_period: z.ZodOptional<z.ZodObject<{
5068
+ from: z.ZodString;
5069
+ to: z.ZodString;
5070
+ }, z.core.$strip>>;
5071
+ billing_period: z.ZodOptional<z.ZodObject<{
5072
+ from: z.ZodString;
5073
+ to: z.ZodString;
5074
+ }, z.core.$strip>>;
5075
+ }, z.core.$strip>, z.ZodObject<{
4876
5076
  name: z.ZodString;
4877
5077
  description: z.ZodOptional<z.ZodString>;
4878
5078
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4879
- key: z.ZodString;
4880
- duration: z.ZodOptional<z.ZodString>;
4881
- rate_cards: z.ZodArray<z.ZodObject<{
4882
- name: z.ZodString;
4883
- description: z.ZodOptional<z.ZodString>;
4884
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4885
- key: z.ZodString;
4886
- feature: z.ZodOptional<z.ZodObject<{
4887
- id: z.ZodString;
4888
- }, z.core.$strip>>;
4889
- billing_cadence: z.ZodOptional<z.ZodString>;
4890
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
4891
- type: z.ZodLiteral<"free">;
4892
- }, z.core.$strip>, z.ZodObject<{
4893
- type: z.ZodLiteral<"flat">;
4894
- amount: z.ZodString;
4895
- }, z.core.$strip>, z.ZodObject<{
4896
- type: z.ZodLiteral<"unit">;
4897
- amount: z.ZodString;
4898
- }, z.core.$strip>, z.ZodObject<{
4899
- type: z.ZodLiteral<"graduated">;
4900
- tiers: z.ZodArray<z.ZodObject<{
4901
- up_to_amount: z.ZodOptional<z.ZodString>;
4902
- flat_price: z.ZodOptional<z.ZodObject<{
4903
- type: z.ZodLiteral<"flat">;
4904
- amount: z.ZodString;
4905
- }, z.core.$strip>>;
5079
+ type: z.ZodLiteral<"usage_based">;
5080
+ currency: z.ZodString;
5081
+ invoice_at: z.ZodString;
5082
+ service_period: z.ZodObject<{
5083
+ from: z.ZodString;
5084
+ to: z.ZodString;
5085
+ }, z.core.$strip>;
5086
+ unique_reference_id: z.ZodOptional<z.ZodString>;
5087
+ settlement_mode: z.ZodEnum<{
5088
+ credit_then_invoice: "credit_then_invoice";
5089
+ credit_only: "credit_only";
5090
+ }>;
5091
+ tax_config: z.ZodOptional<z.ZodObject<{
5092
+ behavior: z.ZodOptional<z.ZodEnum<{
5093
+ exclusive: "exclusive";
5094
+ inclusive: "inclusive";
5095
+ }>>;
5096
+ stripe: z.ZodOptional<z.ZodObject<{
5097
+ code: z.ZodString;
5098
+ }, z.core.$strip>>;
5099
+ external_invoicing: z.ZodOptional<z.ZodObject<{
5100
+ code: z.ZodString;
5101
+ }, z.core.$strip>>;
5102
+ tax_code_id: z.ZodOptional<z.ZodString>;
5103
+ tax_code: z.ZodOptional<z.ZodObject<{
5104
+ id: z.ZodString;
5105
+ }, z.core.$strip>>;
5106
+ }, z.core.$strip>>;
5107
+ discounts: z.ZodOptional<z.ZodObject<{
5108
+ percentage: z.ZodOptional<z.ZodNumber>;
5109
+ usage: z.ZodOptional<z.ZodString>;
5110
+ }, z.core.$strip>>;
5111
+ feature_key: z.ZodString;
5112
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5113
+ type: z.ZodLiteral<"free">;
5114
+ }, z.core.$strip>, z.ZodObject<{
5115
+ type: z.ZodLiteral<"flat">;
5116
+ amount: z.ZodString;
5117
+ }, z.core.$strip>, z.ZodObject<{
5118
+ type: z.ZodLiteral<"unit">;
5119
+ amount: z.ZodString;
5120
+ }, z.core.$strip>, z.ZodObject<{
5121
+ type: z.ZodLiteral<"graduated">;
5122
+ tiers: z.ZodArray<z.ZodObject<{
5123
+ up_to_amount: z.ZodOptional<z.ZodString>;
5124
+ flat_price: z.ZodOptional<z.ZodObject<{
5125
+ type: z.ZodLiteral<"flat">;
5126
+ amount: z.ZodString;
5127
+ }, z.core.$strip>>;
5128
+ unit_price: z.ZodOptional<z.ZodObject<{
5129
+ type: z.ZodLiteral<"unit">;
5130
+ amount: z.ZodString;
5131
+ }, z.core.$strip>>;
5132
+ }, z.core.$strip>>;
5133
+ }, z.core.$strip>, z.ZodObject<{
5134
+ type: z.ZodLiteral<"volume">;
5135
+ tiers: z.ZodArray<z.ZodObject<{
5136
+ up_to_amount: z.ZodOptional<z.ZodString>;
5137
+ flat_price: z.ZodOptional<z.ZodObject<{
5138
+ type: z.ZodLiteral<"flat">;
5139
+ amount: z.ZodString;
5140
+ }, z.core.$strip>>;
5141
+ unit_price: z.ZodOptional<z.ZodObject<{
5142
+ type: z.ZodLiteral<"unit">;
5143
+ amount: z.ZodString;
5144
+ }, z.core.$strip>>;
5145
+ }, z.core.$strip>>;
5146
+ }, z.core.$strip>], "type">;
5147
+ full_service_period: z.ZodOptional<z.ZodObject<{
5148
+ from: z.ZodString;
5149
+ to: z.ZodString;
5150
+ }, z.core.$strip>>;
5151
+ billing_period: z.ZodOptional<z.ZodObject<{
5152
+ from: z.ZodString;
5153
+ to: z.ZodString;
5154
+ }, z.core.$strip>>;
5155
+ }, z.core.$strip>], "type">;
5156
+ export declare const planPhase: z.ZodObject<{
5157
+ name: z.ZodString;
5158
+ description: z.ZodOptional<z.ZodString>;
5159
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5160
+ key: z.ZodString;
5161
+ duration: z.ZodOptional<z.ZodString>;
5162
+ rate_cards: z.ZodArray<z.ZodObject<{
5163
+ name: z.ZodString;
5164
+ description: z.ZodOptional<z.ZodString>;
5165
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5166
+ key: z.ZodString;
5167
+ feature: z.ZodOptional<z.ZodObject<{
5168
+ id: z.ZodString;
5169
+ }, z.core.$strip>>;
5170
+ billing_cadence: z.ZodOptional<z.ZodString>;
5171
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5172
+ type: z.ZodLiteral<"free">;
5173
+ }, z.core.$strip>, z.ZodObject<{
5174
+ type: z.ZodLiteral<"flat">;
5175
+ amount: z.ZodString;
5176
+ }, z.core.$strip>, z.ZodObject<{
5177
+ type: z.ZodLiteral<"unit">;
5178
+ amount: z.ZodString;
5179
+ }, z.core.$strip>, z.ZodObject<{
5180
+ type: z.ZodLiteral<"graduated">;
5181
+ tiers: z.ZodArray<z.ZodObject<{
5182
+ up_to_amount: z.ZodOptional<z.ZodString>;
5183
+ flat_price: z.ZodOptional<z.ZodObject<{
5184
+ type: z.ZodLiteral<"flat">;
5185
+ amount: z.ZodString;
5186
+ }, z.core.$strip>>;
4906
5187
  unit_price: z.ZodOptional<z.ZodObject<{
4907
5188
  type: z.ZodLiteral<"unit">;
4908
5189
  amount: z.ZodString;
@@ -5508,41 +5789,6 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
5508
5789
  to: z.ZodString;
5509
5790
  }, z.core.$strip>;
5510
5791
  advance_after: z.ZodOptional<z.ZodString>;
5511
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5512
- type: z.ZodLiteral<"free">;
5513
- }, z.core.$strip>, z.ZodObject<{
5514
- type: z.ZodLiteral<"flat">;
5515
- amount: z.ZodString;
5516
- }, z.core.$strip>, z.ZodObject<{
5517
- type: z.ZodLiteral<"unit">;
5518
- amount: z.ZodString;
5519
- }, z.core.$strip>, z.ZodObject<{
5520
- type: z.ZodLiteral<"graduated">;
5521
- tiers: z.ZodArray<z.ZodObject<{
5522
- up_to_amount: z.ZodOptional<z.ZodString>;
5523
- flat_price: z.ZodOptional<z.ZodObject<{
5524
- type: z.ZodLiteral<"flat">;
5525
- amount: z.ZodString;
5526
- }, z.core.$strip>>;
5527
- unit_price: z.ZodOptional<z.ZodObject<{
5528
- type: z.ZodLiteral<"unit">;
5529
- amount: z.ZodString;
5530
- }, z.core.$strip>>;
5531
- }, z.core.$strip>>;
5532
- }, z.core.$strip>, z.ZodObject<{
5533
- type: z.ZodLiteral<"volume">;
5534
- tiers: z.ZodArray<z.ZodObject<{
5535
- up_to_amount: z.ZodOptional<z.ZodString>;
5536
- flat_price: z.ZodOptional<z.ZodObject<{
5537
- type: z.ZodLiteral<"flat">;
5538
- amount: z.ZodString;
5539
- }, z.core.$strip>>;
5540
- unit_price: z.ZodOptional<z.ZodObject<{
5541
- type: z.ZodLiteral<"unit">;
5542
- amount: z.ZodString;
5543
- }, z.core.$strip>>;
5544
- }, z.core.$strip>>;
5545
- }, z.core.$strip>], "type">;
5546
5792
  unique_reference_id: z.ZodOptional<z.ZodString>;
5547
5793
  settlement_mode: z.ZodEnum<{
5548
5794
  credit_then_invoice: "credit_then_invoice";
@@ -5575,10 +5821,49 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
5575
5821
  prorate_prices: "prorate_prices";
5576
5822
  }>;
5577
5823
  }, z.core.$strip>;
5824
+ amount_before_proration: z.ZodObject<{
5825
+ amount: z.ZodString;
5826
+ currency: z.ZodString;
5827
+ }, z.core.$strip>;
5578
5828
  amount_after_proration: z.ZodObject<{
5579
5829
  amount: z.ZodString;
5580
5830
  currency: z.ZodString;
5581
5831
  }, z.core.$strip>;
5832
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5833
+ type: z.ZodLiteral<"free">;
5834
+ }, z.core.$strip>, z.ZodObject<{
5835
+ type: z.ZodLiteral<"flat">;
5836
+ amount: z.ZodString;
5837
+ }, z.core.$strip>, z.ZodObject<{
5838
+ type: z.ZodLiteral<"unit">;
5839
+ amount: z.ZodString;
5840
+ }, z.core.$strip>, z.ZodObject<{
5841
+ type: z.ZodLiteral<"graduated">;
5842
+ tiers: z.ZodArray<z.ZodObject<{
5843
+ up_to_amount: z.ZodOptional<z.ZodString>;
5844
+ flat_price: z.ZodOptional<z.ZodObject<{
5845
+ type: z.ZodLiteral<"flat">;
5846
+ amount: z.ZodString;
5847
+ }, z.core.$strip>>;
5848
+ unit_price: z.ZodOptional<z.ZodObject<{
5849
+ type: z.ZodLiteral<"unit">;
5850
+ amount: z.ZodString;
5851
+ }, z.core.$strip>>;
5852
+ }, z.core.$strip>>;
5853
+ }, z.core.$strip>, z.ZodObject<{
5854
+ type: z.ZodLiteral<"volume">;
5855
+ tiers: z.ZodArray<z.ZodObject<{
5856
+ up_to_amount: z.ZodOptional<z.ZodString>;
5857
+ flat_price: z.ZodOptional<z.ZodObject<{
5858
+ type: z.ZodLiteral<"flat">;
5859
+ amount: z.ZodString;
5860
+ }, z.core.$strip>>;
5861
+ unit_price: z.ZodOptional<z.ZodObject<{
5862
+ type: z.ZodLiteral<"unit">;
5863
+ amount: z.ZodString;
5864
+ }, z.core.$strip>>;
5865
+ }, z.core.$strip>>;
5866
+ }, z.core.$strip>], "type">;
5582
5867
  }, z.core.$strip>, z.ZodObject<{
5583
5868
  id: z.ZodString;
5584
5869
  name: z.ZodString;
@@ -5626,41 +5911,6 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
5626
5911
  to: z.ZodString;
5627
5912
  }, z.core.$strip>;
5628
5913
  advance_after: z.ZodOptional<z.ZodString>;
5629
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5630
- type: z.ZodLiteral<"free">;
5631
- }, z.core.$strip>, z.ZodObject<{
5632
- type: z.ZodLiteral<"flat">;
5633
- amount: z.ZodString;
5634
- }, z.core.$strip>, z.ZodObject<{
5635
- type: z.ZodLiteral<"unit">;
5636
- amount: z.ZodString;
5637
- }, z.core.$strip>, z.ZodObject<{
5638
- type: z.ZodLiteral<"graduated">;
5639
- tiers: z.ZodArray<z.ZodObject<{
5640
- up_to_amount: z.ZodOptional<z.ZodString>;
5641
- flat_price: z.ZodOptional<z.ZodObject<{
5642
- type: z.ZodLiteral<"flat">;
5643
- amount: z.ZodString;
5644
- }, z.core.$strip>>;
5645
- unit_price: z.ZodOptional<z.ZodObject<{
5646
- type: z.ZodLiteral<"unit">;
5647
- amount: z.ZodString;
5648
- }, z.core.$strip>>;
5649
- }, z.core.$strip>>;
5650
- }, z.core.$strip>, z.ZodObject<{
5651
- type: z.ZodLiteral<"volume">;
5652
- tiers: z.ZodArray<z.ZodObject<{
5653
- up_to_amount: z.ZodOptional<z.ZodString>;
5654
- flat_price: z.ZodOptional<z.ZodObject<{
5655
- type: z.ZodLiteral<"flat">;
5656
- amount: z.ZodString;
5657
- }, z.core.$strip>>;
5658
- unit_price: z.ZodOptional<z.ZodObject<{
5659
- type: z.ZodLiteral<"unit">;
5660
- amount: z.ZodString;
5661
- }, z.core.$strip>>;
5662
- }, z.core.$strip>>;
5663
- }, z.core.$strip>], "type">;
5664
5914
  unique_reference_id: z.ZodOptional<z.ZodString>;
5665
5915
  settlement_mode: z.ZodEnum<{
5666
5916
  credit_then_invoice: "credit_then_invoice";
@@ -5709,6 +5959,41 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
5709
5959
  total: z.ZodString;
5710
5960
  }, z.core.$strip>>;
5711
5961
  }, z.core.$strip>;
5962
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
5963
+ type: z.ZodLiteral<"free">;
5964
+ }, z.core.$strip>, z.ZodObject<{
5965
+ type: z.ZodLiteral<"flat">;
5966
+ amount: z.ZodString;
5967
+ }, z.core.$strip>, z.ZodObject<{
5968
+ type: z.ZodLiteral<"unit">;
5969
+ amount: z.ZodString;
5970
+ }, z.core.$strip>, z.ZodObject<{
5971
+ type: z.ZodLiteral<"graduated">;
5972
+ tiers: z.ZodArray<z.ZodObject<{
5973
+ up_to_amount: z.ZodOptional<z.ZodString>;
5974
+ flat_price: z.ZodOptional<z.ZodObject<{
5975
+ type: z.ZodLiteral<"flat">;
5976
+ amount: z.ZodString;
5977
+ }, z.core.$strip>>;
5978
+ unit_price: z.ZodOptional<z.ZodObject<{
5979
+ type: z.ZodLiteral<"unit">;
5980
+ amount: z.ZodString;
5981
+ }, z.core.$strip>>;
5982
+ }, z.core.$strip>>;
5983
+ }, z.core.$strip>, z.ZodObject<{
5984
+ type: z.ZodLiteral<"volume">;
5985
+ tiers: z.ZodArray<z.ZodObject<{
5986
+ up_to_amount: z.ZodOptional<z.ZodString>;
5987
+ flat_price: z.ZodOptional<z.ZodObject<{
5988
+ type: z.ZodLiteral<"flat">;
5989
+ amount: z.ZodString;
5990
+ }, z.core.$strip>>;
5991
+ unit_price: z.ZodOptional<z.ZodObject<{
5992
+ type: z.ZodLiteral<"unit">;
5993
+ amount: z.ZodString;
5994
+ }, z.core.$strip>>;
5995
+ }, z.core.$strip>>;
5996
+ }, z.core.$strip>], "type">;
5712
5997
  }, z.core.$strip>], "type">>;
5713
5998
  meta: z.ZodObject<{
5714
5999
  page: z.ZodObject<{
@@ -7557,13 +7842,53 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
7557
7842
  to: z.ZodString;
7558
7843
  }, z.core.$strip>;
7559
7844
  advance_after: z.ZodOptional<z.ZodString>;
7560
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7561
- type: z.ZodLiteral<"free">;
7562
- }, z.core.$strip>, z.ZodObject<{
7563
- type: z.ZodLiteral<"flat">;
7564
- amount: z.ZodString;
7565
- }, z.core.$strip>, z.ZodObject<{
7566
- type: z.ZodLiteral<"unit">;
7845
+ unique_reference_id: z.ZodOptional<z.ZodString>;
7846
+ settlement_mode: z.ZodEnum<{
7847
+ credit_then_invoice: "credit_then_invoice";
7848
+ credit_only: "credit_only";
7849
+ }>;
7850
+ tax_config: z.ZodOptional<z.ZodObject<{
7851
+ behavior: z.ZodOptional<z.ZodEnum<{
7852
+ exclusive: "exclusive";
7853
+ inclusive: "inclusive";
7854
+ }>>;
7855
+ stripe: z.ZodOptional<z.ZodObject<{
7856
+ code: z.ZodString;
7857
+ }, z.core.$strip>>;
7858
+ external_invoicing: z.ZodOptional<z.ZodObject<{
7859
+ code: z.ZodString;
7860
+ }, z.core.$strip>>;
7861
+ tax_code_id: z.ZodOptional<z.ZodString>;
7862
+ tax_code: z.ZodOptional<z.ZodObject<{
7863
+ id: z.ZodString;
7864
+ }, z.core.$strip>>;
7865
+ }, z.core.$strip>>;
7866
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
7867
+ discounts: z.ZodOptional<z.ZodObject<{
7868
+ percentage: z.ZodOptional<z.ZodNumber>;
7869
+ }, z.core.$strip>>;
7870
+ feature_key: z.ZodOptional<z.ZodString>;
7871
+ proration_configuration: z.ZodObject<{
7872
+ mode: z.ZodEnum<{
7873
+ no_proration: "no_proration";
7874
+ prorate_prices: "prorate_prices";
7875
+ }>;
7876
+ }, z.core.$strip>;
7877
+ amount_before_proration: z.ZodObject<{
7878
+ amount: z.ZodString;
7879
+ currency: z.ZodString;
7880
+ }, z.core.$strip>;
7881
+ amount_after_proration: z.ZodObject<{
7882
+ amount: z.ZodString;
7883
+ currency: z.ZodString;
7884
+ }, z.core.$strip>;
7885
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7886
+ type: z.ZodLiteral<"free">;
7887
+ }, z.core.$strip>, z.ZodObject<{
7888
+ type: z.ZodLiteral<"flat">;
7889
+ amount: z.ZodString;
7890
+ }, z.core.$strip>, z.ZodObject<{
7891
+ type: z.ZodLiteral<"unit">;
7567
7892
  amount: z.ZodString;
7568
7893
  }, z.core.$strip>, z.ZodObject<{
7569
7894
  type: z.ZodLiteral<"graduated">;
@@ -7592,6 +7917,53 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
7592
7917
  }, z.core.$strip>>;
7593
7918
  }, z.core.$strip>>;
7594
7919
  }, z.core.$strip>], "type">;
7920
+ }, z.core.$strip>, z.ZodObject<{
7921
+ id: z.ZodString;
7922
+ name: z.ZodString;
7923
+ description: z.ZodOptional<z.ZodString>;
7924
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7925
+ created_at: z.ZodString;
7926
+ updated_at: z.ZodString;
7927
+ deleted_at: z.ZodOptional<z.ZodString>;
7928
+ type: z.ZodLiteral<"usage_based">;
7929
+ customer: z.ZodObject<{
7930
+ id: z.ZodString;
7931
+ }, z.core.$strip>;
7932
+ managed_by: z.ZodEnum<{
7933
+ manual: "manual";
7934
+ system: "system";
7935
+ subscription: "subscription";
7936
+ }>;
7937
+ subscription: z.ZodOptional<z.ZodObject<{
7938
+ id: z.ZodString;
7939
+ phase: z.ZodObject<{
7940
+ id: z.ZodString;
7941
+ item: z.ZodObject<{
7942
+ id: z.ZodString;
7943
+ }, z.core.$strip>;
7944
+ }, z.core.$strip>;
7945
+ }, z.core.$strip>>;
7946
+ currency: z.ZodString;
7947
+ status: z.ZodEnum<{
7948
+ active: "active";
7949
+ created: "created";
7950
+ final: "final";
7951
+ deleted: "deleted";
7952
+ }>;
7953
+ invoice_at: z.ZodString;
7954
+ service_period: z.ZodObject<{
7955
+ from: z.ZodString;
7956
+ to: z.ZodString;
7957
+ }, z.core.$strip>;
7958
+ full_service_period: z.ZodObject<{
7959
+ from: z.ZodString;
7960
+ to: z.ZodString;
7961
+ }, z.core.$strip>;
7962
+ billing_period: z.ZodObject<{
7963
+ from: z.ZodString;
7964
+ to: z.ZodString;
7965
+ }, z.core.$strip>;
7966
+ advance_after: z.ZodOptional<z.ZodString>;
7595
7967
  unique_reference_id: z.ZodOptional<z.ZodString>;
7596
7968
  settlement_mode: z.ZodEnum<{
7597
7969
  credit_then_invoice: "credit_then_invoice";
@@ -7613,166 +7985,475 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
7613
7985
  id: z.ZodString;
7614
7986
  }, z.core.$strip>>;
7615
7987
  }, z.core.$strip>>;
7616
- payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
7617
7988
  discounts: z.ZodOptional<z.ZodObject<{
7618
7989
  percentage: z.ZodOptional<z.ZodNumber>;
7990
+ usage: z.ZodOptional<z.ZodString>;
7619
7991
  }, z.core.$strip>>;
7620
- feature_key: z.ZodOptional<z.ZodString>;
7621
- proration_configuration: z.ZodObject<{
7622
- mode: z.ZodEnum<{
7623
- no_proration: "no_proration";
7624
- prorate_prices: "prorate_prices";
7625
- }>;
7992
+ feature_key: z.ZodString;
7993
+ totals: z.ZodObject<{
7994
+ booked: z.ZodObject<{
7995
+ amount: z.ZodString;
7996
+ taxes_total: z.ZodString;
7997
+ taxes_inclusive_total: z.ZodString;
7998
+ taxes_exclusive_total: z.ZodString;
7999
+ charges_total: z.ZodString;
8000
+ discounts_total: z.ZodString;
8001
+ credits_total: z.ZodString;
8002
+ total: z.ZodString;
8003
+ }, z.core.$strip>;
8004
+ realtime: z.ZodOptional<z.ZodObject<{
8005
+ amount: z.ZodString;
8006
+ taxes_total: z.ZodString;
8007
+ taxes_inclusive_total: z.ZodString;
8008
+ taxes_exclusive_total: z.ZodString;
8009
+ charges_total: z.ZodString;
8010
+ discounts_total: z.ZodString;
8011
+ credits_total: z.ZodString;
8012
+ total: z.ZodString;
8013
+ }, z.core.$strip>>;
7626
8014
  }, z.core.$strip>;
7627
- amount_after_proration: z.ZodObject<{
8015
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8016
+ type: z.ZodLiteral<"free">;
8017
+ }, z.core.$strip>, z.ZodObject<{
8018
+ type: z.ZodLiteral<"flat">;
7628
8019
  amount: z.ZodString;
7629
- currency: z.ZodString;
8020
+ }, z.core.$strip>, z.ZodObject<{
8021
+ type: z.ZodLiteral<"unit">;
8022
+ amount: z.ZodString;
8023
+ }, z.core.$strip>, z.ZodObject<{
8024
+ type: z.ZodLiteral<"graduated">;
8025
+ tiers: z.ZodArray<z.ZodObject<{
8026
+ up_to_amount: z.ZodOptional<z.ZodString>;
8027
+ flat_price: z.ZodOptional<z.ZodObject<{
8028
+ type: z.ZodLiteral<"flat">;
8029
+ amount: z.ZodString;
8030
+ }, z.core.$strip>>;
8031
+ unit_price: z.ZodOptional<z.ZodObject<{
8032
+ type: z.ZodLiteral<"unit">;
8033
+ amount: z.ZodString;
8034
+ }, z.core.$strip>>;
8035
+ }, z.core.$strip>>;
8036
+ }, z.core.$strip>, z.ZodObject<{
8037
+ type: z.ZodLiteral<"volume">;
8038
+ tiers: z.ZodArray<z.ZodObject<{
8039
+ up_to_amount: z.ZodOptional<z.ZodString>;
8040
+ flat_price: z.ZodOptional<z.ZodObject<{
8041
+ type: z.ZodLiteral<"flat">;
8042
+ amount: z.ZodString;
8043
+ }, z.core.$strip>>;
8044
+ unit_price: z.ZodOptional<z.ZodObject<{
8045
+ type: z.ZodLiteral<"unit">;
8046
+ amount: z.ZodString;
8047
+ }, z.core.$strip>>;
8048
+ }, z.core.$strip>>;
8049
+ }, z.core.$strip>], "type">;
8050
+ }, z.core.$strip>], "type">>;
8051
+ meta: z.ZodObject<{
8052
+ page: z.ZodObject<{
8053
+ number: z.ZodNumber;
8054
+ size: z.ZodNumber;
8055
+ total: z.ZodNumber;
8056
+ }, z.core.$strip>;
8057
+ }, z.core.$strip>;
8058
+ }, z.core.$strip>;
8059
+ export declare const createCustomerChargesPathParams: z.ZodObject<{
8060
+ customerId: z.ZodString;
8061
+ }, z.core.$strip>;
8062
+ export declare const createCustomerChargesBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
8063
+ name: z.ZodString;
8064
+ description: z.ZodOptional<z.ZodString>;
8065
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8066
+ type: z.ZodLiteral<"flat_fee">;
8067
+ currency: z.ZodString;
8068
+ invoice_at: z.ZodString;
8069
+ service_period: z.ZodObject<{
8070
+ from: z.ZodString;
8071
+ to: z.ZodString;
8072
+ }, z.core.$strip>;
8073
+ unique_reference_id: z.ZodOptional<z.ZodString>;
8074
+ settlement_mode: z.ZodEnum<{
8075
+ credit_then_invoice: "credit_then_invoice";
8076
+ credit_only: "credit_only";
8077
+ }>;
8078
+ tax_config: z.ZodOptional<z.ZodObject<{
8079
+ behavior: z.ZodOptional<z.ZodEnum<{
8080
+ exclusive: "exclusive";
8081
+ inclusive: "inclusive";
8082
+ }>>;
8083
+ stripe: z.ZodOptional<z.ZodObject<{
8084
+ code: z.ZodString;
8085
+ }, z.core.$strip>>;
8086
+ external_invoicing: z.ZodOptional<z.ZodObject<{
8087
+ code: z.ZodString;
8088
+ }, z.core.$strip>>;
8089
+ tax_code_id: z.ZodOptional<z.ZodString>;
8090
+ tax_code: z.ZodOptional<z.ZodObject<{
8091
+ id: z.ZodString;
8092
+ }, z.core.$strip>>;
8093
+ }, z.core.$strip>>;
8094
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
8095
+ discounts: z.ZodOptional<z.ZodObject<{
8096
+ percentage: z.ZodOptional<z.ZodNumber>;
8097
+ }, z.core.$strip>>;
8098
+ feature_key: z.ZodOptional<z.ZodString>;
8099
+ proration_configuration: z.ZodObject<{
8100
+ mode: z.ZodEnum<{
8101
+ no_proration: "no_proration";
8102
+ prorate_prices: "prorate_prices";
8103
+ }>;
8104
+ }, z.core.$strip>;
8105
+ amount_before_proration: z.ZodObject<{
8106
+ amount: z.ZodString;
8107
+ currency: z.ZodString;
8108
+ }, z.core.$strip>;
8109
+ full_service_period: z.ZodOptional<z.ZodObject<{
8110
+ from: z.ZodString;
8111
+ to: z.ZodString;
8112
+ }, z.core.$strip>>;
8113
+ billing_period: z.ZodOptional<z.ZodObject<{
8114
+ from: z.ZodString;
8115
+ to: z.ZodString;
8116
+ }, z.core.$strip>>;
8117
+ }, z.core.$strip>, z.ZodObject<{
8118
+ name: z.ZodString;
8119
+ description: z.ZodOptional<z.ZodString>;
8120
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8121
+ type: z.ZodLiteral<"usage_based">;
8122
+ currency: z.ZodString;
8123
+ invoice_at: z.ZodString;
8124
+ service_period: z.ZodObject<{
8125
+ from: z.ZodString;
8126
+ to: z.ZodString;
8127
+ }, z.core.$strip>;
8128
+ unique_reference_id: z.ZodOptional<z.ZodString>;
8129
+ settlement_mode: z.ZodEnum<{
8130
+ credit_then_invoice: "credit_then_invoice";
8131
+ credit_only: "credit_only";
8132
+ }>;
8133
+ tax_config: z.ZodOptional<z.ZodObject<{
8134
+ behavior: z.ZodOptional<z.ZodEnum<{
8135
+ exclusive: "exclusive";
8136
+ inclusive: "inclusive";
8137
+ }>>;
8138
+ stripe: z.ZodOptional<z.ZodObject<{
8139
+ code: z.ZodString;
8140
+ }, z.core.$strip>>;
8141
+ external_invoicing: z.ZodOptional<z.ZodObject<{
8142
+ code: z.ZodString;
8143
+ }, z.core.$strip>>;
8144
+ tax_code_id: z.ZodOptional<z.ZodString>;
8145
+ tax_code: z.ZodOptional<z.ZodObject<{
8146
+ id: z.ZodString;
8147
+ }, z.core.$strip>>;
8148
+ }, z.core.$strip>>;
8149
+ discounts: z.ZodOptional<z.ZodObject<{
8150
+ percentage: z.ZodOptional<z.ZodNumber>;
8151
+ usage: z.ZodOptional<z.ZodString>;
8152
+ }, z.core.$strip>>;
8153
+ feature_key: z.ZodString;
8154
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8155
+ type: z.ZodLiteral<"free">;
8156
+ }, z.core.$strip>, z.ZodObject<{
8157
+ type: z.ZodLiteral<"flat">;
8158
+ amount: z.ZodString;
8159
+ }, z.core.$strip>, z.ZodObject<{
8160
+ type: z.ZodLiteral<"unit">;
8161
+ amount: z.ZodString;
8162
+ }, z.core.$strip>, z.ZodObject<{
8163
+ type: z.ZodLiteral<"graduated">;
8164
+ tiers: z.ZodArray<z.ZodObject<{
8165
+ up_to_amount: z.ZodOptional<z.ZodString>;
8166
+ flat_price: z.ZodOptional<z.ZodObject<{
8167
+ type: z.ZodLiteral<"flat">;
8168
+ amount: z.ZodString;
8169
+ }, z.core.$strip>>;
8170
+ unit_price: z.ZodOptional<z.ZodObject<{
8171
+ type: z.ZodLiteral<"unit">;
8172
+ amount: z.ZodString;
8173
+ }, z.core.$strip>>;
8174
+ }, z.core.$strip>>;
8175
+ }, z.core.$strip>, z.ZodObject<{
8176
+ type: z.ZodLiteral<"volume">;
8177
+ tiers: z.ZodArray<z.ZodObject<{
8178
+ up_to_amount: z.ZodOptional<z.ZodString>;
8179
+ flat_price: z.ZodOptional<z.ZodObject<{
8180
+ type: z.ZodLiteral<"flat">;
8181
+ amount: z.ZodString;
8182
+ }, z.core.$strip>>;
8183
+ unit_price: z.ZodOptional<z.ZodObject<{
8184
+ type: z.ZodLiteral<"unit">;
8185
+ amount: z.ZodString;
8186
+ }, z.core.$strip>>;
8187
+ }, z.core.$strip>>;
8188
+ }, z.core.$strip>], "type">;
8189
+ full_service_period: z.ZodOptional<z.ZodObject<{
8190
+ from: z.ZodString;
8191
+ to: z.ZodString;
8192
+ }, z.core.$strip>>;
8193
+ billing_period: z.ZodOptional<z.ZodObject<{
8194
+ from: z.ZodString;
8195
+ to: z.ZodString;
8196
+ }, z.core.$strip>>;
8197
+ }, z.core.$strip>], "type">;
8198
+ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
8199
+ id: z.ZodString;
8200
+ name: z.ZodString;
8201
+ description: z.ZodOptional<z.ZodString>;
8202
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8203
+ created_at: z.ZodString;
8204
+ updated_at: z.ZodString;
8205
+ deleted_at: z.ZodOptional<z.ZodString>;
8206
+ type: z.ZodLiteral<"flat_fee">;
8207
+ customer: z.ZodObject<{
8208
+ id: z.ZodString;
8209
+ }, z.core.$strip>;
8210
+ managed_by: z.ZodEnum<{
8211
+ manual: "manual";
8212
+ system: "system";
8213
+ subscription: "subscription";
8214
+ }>;
8215
+ subscription: z.ZodOptional<z.ZodObject<{
8216
+ id: z.ZodString;
8217
+ phase: z.ZodObject<{
8218
+ id: z.ZodString;
8219
+ item: z.ZodObject<{
8220
+ id: z.ZodString;
8221
+ }, z.core.$strip>;
7630
8222
  }, z.core.$strip>;
8223
+ }, z.core.$strip>>;
8224
+ currency: z.ZodString;
8225
+ status: z.ZodEnum<{
8226
+ active: "active";
8227
+ created: "created";
8228
+ final: "final";
8229
+ deleted: "deleted";
8230
+ }>;
8231
+ invoice_at: z.ZodString;
8232
+ service_period: z.ZodObject<{
8233
+ from: z.ZodString;
8234
+ to: z.ZodString;
8235
+ }, z.core.$strip>;
8236
+ full_service_period: z.ZodObject<{
8237
+ from: z.ZodString;
8238
+ to: z.ZodString;
8239
+ }, z.core.$strip>;
8240
+ billing_period: z.ZodObject<{
8241
+ from: z.ZodString;
8242
+ to: z.ZodString;
8243
+ }, z.core.$strip>;
8244
+ advance_after: z.ZodOptional<z.ZodString>;
8245
+ unique_reference_id: z.ZodOptional<z.ZodString>;
8246
+ settlement_mode: z.ZodEnum<{
8247
+ credit_then_invoice: "credit_then_invoice";
8248
+ credit_only: "credit_only";
8249
+ }>;
8250
+ tax_config: z.ZodOptional<z.ZodObject<{
8251
+ behavior: z.ZodOptional<z.ZodEnum<{
8252
+ exclusive: "exclusive";
8253
+ inclusive: "inclusive";
8254
+ }>>;
8255
+ stripe: z.ZodOptional<z.ZodObject<{
8256
+ code: z.ZodString;
8257
+ }, z.core.$strip>>;
8258
+ external_invoicing: z.ZodOptional<z.ZodObject<{
8259
+ code: z.ZodString;
8260
+ }, z.core.$strip>>;
8261
+ tax_code_id: z.ZodOptional<z.ZodString>;
8262
+ tax_code: z.ZodOptional<z.ZodObject<{
8263
+ id: z.ZodString;
8264
+ }, z.core.$strip>>;
8265
+ }, z.core.$strip>>;
8266
+ payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
8267
+ discounts: z.ZodOptional<z.ZodObject<{
8268
+ percentage: z.ZodOptional<z.ZodNumber>;
8269
+ }, z.core.$strip>>;
8270
+ feature_key: z.ZodOptional<z.ZodString>;
8271
+ proration_configuration: z.ZodObject<{
8272
+ mode: z.ZodEnum<{
8273
+ no_proration: "no_proration";
8274
+ prorate_prices: "prorate_prices";
8275
+ }>;
8276
+ }, z.core.$strip>;
8277
+ amount_before_proration: z.ZodObject<{
8278
+ amount: z.ZodString;
8279
+ currency: z.ZodString;
8280
+ }, z.core.$strip>;
8281
+ amount_after_proration: z.ZodObject<{
8282
+ amount: z.ZodString;
8283
+ currency: z.ZodString;
8284
+ }, z.core.$strip>;
8285
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8286
+ type: z.ZodLiteral<"free">;
8287
+ }, z.core.$strip>, z.ZodObject<{
8288
+ type: z.ZodLiteral<"flat">;
8289
+ amount: z.ZodString;
8290
+ }, z.core.$strip>, z.ZodObject<{
8291
+ type: z.ZodLiteral<"unit">;
8292
+ amount: z.ZodString;
8293
+ }, z.core.$strip>, z.ZodObject<{
8294
+ type: z.ZodLiteral<"graduated">;
8295
+ tiers: z.ZodArray<z.ZodObject<{
8296
+ up_to_amount: z.ZodOptional<z.ZodString>;
8297
+ flat_price: z.ZodOptional<z.ZodObject<{
8298
+ type: z.ZodLiteral<"flat">;
8299
+ amount: z.ZodString;
8300
+ }, z.core.$strip>>;
8301
+ unit_price: z.ZodOptional<z.ZodObject<{
8302
+ type: z.ZodLiteral<"unit">;
8303
+ amount: z.ZodString;
8304
+ }, z.core.$strip>>;
8305
+ }, z.core.$strip>>;
7631
8306
  }, z.core.$strip>, z.ZodObject<{
8307
+ type: z.ZodLiteral<"volume">;
8308
+ tiers: z.ZodArray<z.ZodObject<{
8309
+ up_to_amount: z.ZodOptional<z.ZodString>;
8310
+ flat_price: z.ZodOptional<z.ZodObject<{
8311
+ type: z.ZodLiteral<"flat">;
8312
+ amount: z.ZodString;
8313
+ }, z.core.$strip>>;
8314
+ unit_price: z.ZodOptional<z.ZodObject<{
8315
+ type: z.ZodLiteral<"unit">;
8316
+ amount: z.ZodString;
8317
+ }, z.core.$strip>>;
8318
+ }, z.core.$strip>>;
8319
+ }, z.core.$strip>], "type">;
8320
+ }, z.core.$strip>, z.ZodObject<{
8321
+ id: z.ZodString;
8322
+ name: z.ZodString;
8323
+ description: z.ZodOptional<z.ZodString>;
8324
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8325
+ created_at: z.ZodString;
8326
+ updated_at: z.ZodString;
8327
+ deleted_at: z.ZodOptional<z.ZodString>;
8328
+ type: z.ZodLiteral<"usage_based">;
8329
+ customer: z.ZodObject<{
8330
+ id: z.ZodString;
8331
+ }, z.core.$strip>;
8332
+ managed_by: z.ZodEnum<{
8333
+ manual: "manual";
8334
+ system: "system";
8335
+ subscription: "subscription";
8336
+ }>;
8337
+ subscription: z.ZodOptional<z.ZodObject<{
7632
8338
  id: z.ZodString;
7633
- name: z.ZodString;
7634
- description: z.ZodOptional<z.ZodString>;
7635
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7636
- created_at: z.ZodString;
7637
- updated_at: z.ZodString;
7638
- deleted_at: z.ZodOptional<z.ZodString>;
7639
- type: z.ZodLiteral<"usage_based">;
7640
- customer: z.ZodObject<{
7641
- id: z.ZodString;
7642
- }, z.core.$strip>;
7643
- managed_by: z.ZodEnum<{
7644
- manual: "manual";
7645
- system: "system";
7646
- subscription: "subscription";
7647
- }>;
7648
- subscription: z.ZodOptional<z.ZodObject<{
8339
+ phase: z.ZodObject<{
7649
8340
  id: z.ZodString;
7650
- phase: z.ZodObject<{
8341
+ item: z.ZodObject<{
7651
8342
  id: z.ZodString;
7652
- item: z.ZodObject<{
7653
- id: z.ZodString;
7654
- }, z.core.$strip>;
7655
8343
  }, z.core.$strip>;
7656
- }, z.core.$strip>>;
7657
- currency: z.ZodString;
7658
- status: z.ZodEnum<{
7659
- active: "active";
7660
- created: "created";
7661
- final: "final";
7662
- deleted: "deleted";
7663
- }>;
7664
- invoice_at: z.ZodString;
7665
- service_period: z.ZodObject<{
7666
- from: z.ZodString;
7667
- to: z.ZodString;
7668
- }, z.core.$strip>;
7669
- full_service_period: z.ZodObject<{
7670
- from: z.ZodString;
7671
- to: z.ZodString;
7672
- }, z.core.$strip>;
7673
- billing_period: z.ZodObject<{
7674
- from: z.ZodString;
7675
- to: z.ZodString;
7676
8344
  }, z.core.$strip>;
7677
- advance_after: z.ZodOptional<z.ZodString>;
7678
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7679
- type: z.ZodLiteral<"free">;
7680
- }, z.core.$strip>, z.ZodObject<{
7681
- type: z.ZodLiteral<"flat">;
8345
+ }, z.core.$strip>>;
8346
+ currency: z.ZodString;
8347
+ status: z.ZodEnum<{
8348
+ active: "active";
8349
+ created: "created";
8350
+ final: "final";
8351
+ deleted: "deleted";
8352
+ }>;
8353
+ invoice_at: z.ZodString;
8354
+ service_period: z.ZodObject<{
8355
+ from: z.ZodString;
8356
+ to: z.ZodString;
8357
+ }, z.core.$strip>;
8358
+ full_service_period: z.ZodObject<{
8359
+ from: z.ZodString;
8360
+ to: z.ZodString;
8361
+ }, z.core.$strip>;
8362
+ billing_period: z.ZodObject<{
8363
+ from: z.ZodString;
8364
+ to: z.ZodString;
8365
+ }, z.core.$strip>;
8366
+ advance_after: z.ZodOptional<z.ZodString>;
8367
+ unique_reference_id: z.ZodOptional<z.ZodString>;
8368
+ settlement_mode: z.ZodEnum<{
8369
+ credit_then_invoice: "credit_then_invoice";
8370
+ credit_only: "credit_only";
8371
+ }>;
8372
+ tax_config: z.ZodOptional<z.ZodObject<{
8373
+ behavior: z.ZodOptional<z.ZodEnum<{
8374
+ exclusive: "exclusive";
8375
+ inclusive: "inclusive";
8376
+ }>>;
8377
+ stripe: z.ZodOptional<z.ZodObject<{
8378
+ code: z.ZodString;
8379
+ }, z.core.$strip>>;
8380
+ external_invoicing: z.ZodOptional<z.ZodObject<{
8381
+ code: z.ZodString;
8382
+ }, z.core.$strip>>;
8383
+ tax_code_id: z.ZodOptional<z.ZodString>;
8384
+ tax_code: z.ZodOptional<z.ZodObject<{
8385
+ id: z.ZodString;
8386
+ }, z.core.$strip>>;
8387
+ }, z.core.$strip>>;
8388
+ discounts: z.ZodOptional<z.ZodObject<{
8389
+ percentage: z.ZodOptional<z.ZodNumber>;
8390
+ usage: z.ZodOptional<z.ZodString>;
8391
+ }, z.core.$strip>>;
8392
+ feature_key: z.ZodString;
8393
+ totals: z.ZodObject<{
8394
+ booked: z.ZodObject<{
7682
8395
  amount: z.ZodString;
7683
- }, z.core.$strip>, z.ZodObject<{
7684
- type: z.ZodLiteral<"unit">;
8396
+ taxes_total: z.ZodString;
8397
+ taxes_inclusive_total: z.ZodString;
8398
+ taxes_exclusive_total: z.ZodString;
8399
+ charges_total: z.ZodString;
8400
+ discounts_total: z.ZodString;
8401
+ credits_total: z.ZodString;
8402
+ total: z.ZodString;
8403
+ }, z.core.$strip>;
8404
+ realtime: z.ZodOptional<z.ZodObject<{
7685
8405
  amount: z.ZodString;
7686
- }, z.core.$strip>, z.ZodObject<{
7687
- type: z.ZodLiteral<"graduated">;
7688
- tiers: z.ZodArray<z.ZodObject<{
7689
- up_to_amount: z.ZodOptional<z.ZodString>;
7690
- flat_price: z.ZodOptional<z.ZodObject<{
7691
- type: z.ZodLiteral<"flat">;
7692
- amount: z.ZodString;
7693
- }, z.core.$strip>>;
7694
- unit_price: z.ZodOptional<z.ZodObject<{
7695
- type: z.ZodLiteral<"unit">;
7696
- amount: z.ZodString;
7697
- }, z.core.$strip>>;
7698
- }, z.core.$strip>>;
7699
- }, z.core.$strip>, z.ZodObject<{
7700
- type: z.ZodLiteral<"volume">;
7701
- tiers: z.ZodArray<z.ZodObject<{
7702
- up_to_amount: z.ZodOptional<z.ZodString>;
7703
- flat_price: z.ZodOptional<z.ZodObject<{
7704
- type: z.ZodLiteral<"flat">;
7705
- amount: z.ZodString;
7706
- }, z.core.$strip>>;
7707
- unit_price: z.ZodOptional<z.ZodObject<{
7708
- type: z.ZodLiteral<"unit">;
7709
- amount: z.ZodString;
7710
- }, z.core.$strip>>;
7711
- }, z.core.$strip>>;
7712
- }, z.core.$strip>], "type">;
7713
- unique_reference_id: z.ZodOptional<z.ZodString>;
7714
- settlement_mode: z.ZodEnum<{
7715
- credit_then_invoice: "credit_then_invoice";
7716
- credit_only: "credit_only";
7717
- }>;
7718
- tax_config: z.ZodOptional<z.ZodObject<{
7719
- behavior: z.ZodOptional<z.ZodEnum<{
7720
- exclusive: "exclusive";
7721
- inclusive: "inclusive";
7722
- }>>;
7723
- stripe: z.ZodOptional<z.ZodObject<{
7724
- code: z.ZodString;
7725
- }, z.core.$strip>>;
7726
- external_invoicing: z.ZodOptional<z.ZodObject<{
7727
- code: z.ZodString;
8406
+ taxes_total: z.ZodString;
8407
+ taxes_inclusive_total: z.ZodString;
8408
+ taxes_exclusive_total: z.ZodString;
8409
+ charges_total: z.ZodString;
8410
+ discounts_total: z.ZodString;
8411
+ credits_total: z.ZodString;
8412
+ total: z.ZodString;
8413
+ }, z.core.$strip>>;
8414
+ }, z.core.$strip>;
8415
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8416
+ type: z.ZodLiteral<"free">;
8417
+ }, z.core.$strip>, z.ZodObject<{
8418
+ type: z.ZodLiteral<"flat">;
8419
+ amount: z.ZodString;
8420
+ }, z.core.$strip>, z.ZodObject<{
8421
+ type: z.ZodLiteral<"unit">;
8422
+ amount: z.ZodString;
8423
+ }, z.core.$strip>, z.ZodObject<{
8424
+ type: z.ZodLiteral<"graduated">;
8425
+ tiers: z.ZodArray<z.ZodObject<{
8426
+ up_to_amount: z.ZodOptional<z.ZodString>;
8427
+ flat_price: z.ZodOptional<z.ZodObject<{
8428
+ type: z.ZodLiteral<"flat">;
8429
+ amount: z.ZodString;
7728
8430
  }, z.core.$strip>>;
7729
- tax_code_id: z.ZodOptional<z.ZodString>;
7730
- tax_code: z.ZodOptional<z.ZodObject<{
7731
- id: z.ZodString;
8431
+ unit_price: z.ZodOptional<z.ZodObject<{
8432
+ type: z.ZodLiteral<"unit">;
8433
+ amount: z.ZodString;
7732
8434
  }, z.core.$strip>>;
7733
8435
  }, z.core.$strip>>;
7734
- discounts: z.ZodOptional<z.ZodObject<{
7735
- percentage: z.ZodOptional<z.ZodNumber>;
7736
- usage: z.ZodOptional<z.ZodString>;
7737
- }, z.core.$strip>>;
7738
- feature_key: z.ZodString;
7739
- totals: z.ZodObject<{
7740
- booked: z.ZodObject<{
8436
+ }, z.core.$strip>, z.ZodObject<{
8437
+ type: z.ZodLiteral<"volume">;
8438
+ tiers: z.ZodArray<z.ZodObject<{
8439
+ up_to_amount: z.ZodOptional<z.ZodString>;
8440
+ flat_price: z.ZodOptional<z.ZodObject<{
8441
+ type: z.ZodLiteral<"flat">;
7741
8442
  amount: z.ZodString;
7742
- taxes_total: z.ZodString;
7743
- taxes_inclusive_total: z.ZodString;
7744
- taxes_exclusive_total: z.ZodString;
7745
- charges_total: z.ZodString;
7746
- discounts_total: z.ZodString;
7747
- credits_total: z.ZodString;
7748
- total: z.ZodString;
7749
- }, z.core.$strip>;
7750
- realtime: z.ZodOptional<z.ZodObject<{
8443
+ }, z.core.$strip>>;
8444
+ unit_price: z.ZodOptional<z.ZodObject<{
8445
+ type: z.ZodLiteral<"unit">;
7751
8446
  amount: z.ZodString;
7752
- taxes_total: z.ZodString;
7753
- taxes_inclusive_total: z.ZodString;
7754
- taxes_exclusive_total: z.ZodString;
7755
- charges_total: z.ZodString;
7756
- discounts_total: z.ZodString;
7757
- credits_total: z.ZodString;
7758
- total: z.ZodString;
7759
8447
  }, z.core.$strip>>;
7760
- }, z.core.$strip>;
7761
- }, z.core.$strip>], "type">>;
7762
- meta: z.ZodObject<{
7763
- page: z.ZodObject<{
7764
- number: z.ZodNumber;
7765
- size: z.ZodNumber;
7766
- total: z.ZodNumber;
7767
- }, z.core.$strip>;
7768
- }, z.core.$strip>;
7769
- }, z.core.$strip>;
8448
+ }, z.core.$strip>>;
8449
+ }, z.core.$strip>], "type">;
8450
+ }, z.core.$strip>], "type">;
7770
8451
  export declare const createSubscriptionBody: z.ZodObject<{
7771
8452
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7772
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8453
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7773
8454
  credit_then_invoice: "credit_then_invoice";
7774
8455
  credit_only: "credit_only";
7775
- }>>>;
8456
+ }>>;
7776
8457
  customer: z.ZodObject<{
7777
8458
  id: z.ZodOptional<z.ZodString>;
7778
8459
  key: z.ZodOptional<z.ZodString>;
@@ -7799,10 +8480,10 @@ export declare const createSubscriptionResponse: z.ZodObject<{
7799
8480
  canceled: "canceled";
7800
8481
  scheduled: "scheduled";
7801
8482
  }>;
7802
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8483
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7803
8484
  credit_then_invoice: "credit_then_invoice";
7804
8485
  credit_only: "credit_only";
7805
- }>>>;
8486
+ }>>;
7806
8487
  }, z.core.$strip>;
7807
8488
  export declare const listSubscriptionsQueryParams: z.ZodObject<{
7808
8489
  page: z.ZodOptional<z.ZodObject<{
@@ -7857,10 +8538,10 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
7857
8538
  canceled: "canceled";
7858
8539
  scheduled: "scheduled";
7859
8540
  }>;
7860
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8541
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7861
8542
  credit_then_invoice: "credit_then_invoice";
7862
8543
  credit_only: "credit_only";
7863
- }>>>;
8544
+ }>>;
7864
8545
  }, z.core.$strip>>;
7865
8546
  meta: z.ZodObject<{
7866
8547
  page: z.ZodObject<{
@@ -7888,10 +8569,10 @@ export declare const getSubscriptionResponse: z.ZodObject<{
7888
8569
  canceled: "canceled";
7889
8570
  scheduled: "scheduled";
7890
8571
  }>;
7891
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8572
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7892
8573
  credit_then_invoice: "credit_then_invoice";
7893
8574
  credit_only: "credit_only";
7894
- }>>>;
8575
+ }>>;
7895
8576
  }, z.core.$strip>;
7896
8577
  export declare const cancelSubscriptionPathParams: z.ZodObject<{
7897
8578
  subscriptionId: z.ZodString;
@@ -7917,10 +8598,10 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
7917
8598
  canceled: "canceled";
7918
8599
  scheduled: "scheduled";
7919
8600
  }>;
7920
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8601
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7921
8602
  credit_then_invoice: "credit_then_invoice";
7922
8603
  credit_only: "credit_only";
7923
- }>>>;
8604
+ }>>;
7924
8605
  }, z.core.$strip>;
7925
8606
  export declare const unscheduleCancelationPathParams: z.ZodObject<{
7926
8607
  subscriptionId: z.ZodString;
@@ -7940,20 +8621,20 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
7940
8621
  canceled: "canceled";
7941
8622
  scheduled: "scheduled";
7942
8623
  }>;
7943
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8624
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7944
8625
  credit_then_invoice: "credit_then_invoice";
7945
8626
  credit_only: "credit_only";
7946
- }>>>;
8627
+ }>>;
7947
8628
  }, z.core.$strip>;
7948
8629
  export declare const changeSubscriptionPathParams: z.ZodObject<{
7949
8630
  subscriptionId: z.ZodString;
7950
8631
  }, z.core.$strip>;
7951
8632
  export declare const changeSubscriptionBody: z.ZodObject<{
7952
8633
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7953
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8634
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7954
8635
  credit_then_invoice: "credit_then_invoice";
7955
8636
  credit_only: "credit_only";
7956
- }>>>;
8637
+ }>>;
7957
8638
  customer: z.ZodObject<{
7958
8639
  id: z.ZodOptional<z.ZodString>;
7959
8640
  key: z.ZodOptional<z.ZodString>;
@@ -7985,10 +8666,10 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
7985
8666
  canceled: "canceled";
7986
8667
  scheduled: "scheduled";
7987
8668
  }>;
7988
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8669
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7989
8670
  credit_then_invoice: "credit_then_invoice";
7990
8671
  credit_only: "credit_only";
7991
- }>>>;
8672
+ }>>;
7992
8673
  }, z.core.$strip>;
7993
8674
  next: z.ZodObject<{
7994
8675
  id: z.ZodString;
@@ -8005,10 +8686,10 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
8005
8686
  canceled: "canceled";
8006
8687
  scheduled: "scheduled";
8007
8688
  }>;
8008
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8689
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
8009
8690
  credit_then_invoice: "credit_then_invoice";
8010
8691
  credit_only: "credit_only";
8011
- }>>>;
8692
+ }>>;
8012
8693
  }, z.core.$strip>;
8013
8694
  }, z.core.$strip>;
8014
8695
  export declare const listSubscriptionAddonsPathParams: z.ZodObject<{