@openmeter/client 1.0.0-beta-12e68f1db5c4 → 1.0.0-beta-7e82dfcabfc1

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.
@@ -253,10 +253,6 @@ export declare const subscriptionStatus: z.ZodEnum<{
253
253
  inactive: "inactive";
254
254
  scheduled: "scheduled";
255
255
  }>;
256
- export declare const subscriptionEditTimingEnum: z.ZodEnum<{
257
- immediate: "immediate";
258
- next_billing_cycle: "next_billing_cycle";
259
- }>;
260
256
  export declare const unitConfigOperation: z.ZodEnum<{
261
257
  divide: "divide";
262
258
  multiply: "multiply";
@@ -274,6 +270,10 @@ export declare const rateCardStaticEntitlement: z.ZodObject<{
274
270
  export declare const rateCardBooleanEntitlement: z.ZodObject<{
275
271
  type: z.ZodLiteral<"boolean">;
276
272
  }, z.core.$strip>;
273
+ export declare const subscriptionEditTimingEnum: z.ZodEnum<{
274
+ immediate: "immediate";
275
+ next_billing_cycle: "next_billing_cycle";
276
+ }>;
277
277
  export declare const appType: z.ZodEnum<{
278
278
  external_invoicing: "external_invoicing";
279
279
  sandbox: "sandbox";
@@ -789,10 +789,10 @@ export declare const subscriptionCostBasisPin: z.ZodObject<{
789
789
  invoiceCurrency: z.ZodString;
790
790
  costBasisId: z.ZodString;
791
791
  }, z.core.$strip>;
792
- export declare const addonReference: z.ZodObject<{
792
+ export declare const featureReference: z.ZodObject<{
793
793
  id: z.ZodString;
794
794
  }, z.core.$strip>;
795
- export declare const featureReference: z.ZodObject<{
795
+ export declare const addonReference: z.ZodObject<{
796
796
  id: z.ZodString;
797
797
  }, z.core.$strip>;
798
798
  export declare const appReference: z.ZodObject<{
@@ -1070,6 +1070,11 @@ export declare const createCreditGrantFilters: z.ZodObject<{
1070
1070
  export declare const creditGrantFilters: z.ZodObject<{
1071
1071
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
1072
1072
  }, z.core.$strip>;
1073
+ export declare const subscriptionPlanReference: z.ZodObject<{
1074
+ id: z.ZodString;
1075
+ key: z.ZodString;
1076
+ version: z.ZodNumber;
1077
+ }, z.core.$strip>;
1073
1078
  export declare const upsertPlanAddonRequest: z.ZodObject<{
1074
1079
  name: z.ZodString;
1075
1080
  description: z.ZodOptional<z.ZodString>;
@@ -1374,6 +1379,13 @@ export declare const rateCardProrationConfiguration: z.ZodObject<{
1374
1379
  prorate_prices: "prorate_prices";
1375
1380
  }>;
1376
1381
  }, z.core.$strip>;
1382
+ export declare const subscriptionProRatingConfig: z.ZodObject<{
1383
+ enabled: z.ZodBoolean;
1384
+ mode: z.ZodEnum<{
1385
+ no_proration: "no_proration";
1386
+ prorate_prices: "prorate_prices";
1387
+ }>;
1388
+ }, z.core.$strip>;
1377
1389
  export declare const subscriptionCreate: z.ZodObject<{
1378
1390
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1379
1391
  settlementMode: z.ZodOptional<z.ZodEnum<{
@@ -1395,10 +1407,6 @@ export declare const subscriptionCreate: z.ZodObject<{
1395
1407
  pinned: "pinned";
1396
1408
  }>>>;
1397
1409
  }, z.core.$strip>;
1398
- export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1399
- immediate: "immediate";
1400
- next_billing_cycle: "next_billing_cycle";
1401
- }>, z.ZodDate]>;
1402
1410
  export declare const unitConfig: z.ZodObject<{
1403
1411
  operation: z.ZodEnum<{
1404
1412
  divide: "divide";
@@ -1414,6 +1422,10 @@ export declare const unitConfig: z.ZodObject<{
1414
1422
  precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1415
1423
  displayUnit: z.ZodOptional<z.ZodString>;
1416
1424
  }, z.core.$strip>;
1425
+ export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1426
+ immediate: "immediate";
1427
+ next_billing_cycle: "next_billing_cycle";
1428
+ }>, z.ZodDate]>;
1417
1429
  export declare const taxCodeAppMapping: z.ZodObject<{
1418
1430
  appType: z.ZodEnum<{
1419
1431
  external_invoicing: "external_invoicing";
@@ -2024,36 +2036,6 @@ export declare const updateOrganizationDefaultTaxCodesRequest: z.ZodObject<{
2024
2036
  id: z.ZodString;
2025
2037
  }, z.core.$strip>>;
2026
2038
  }, z.core.$strip>;
2027
- export declare const subscription: z.ZodObject<{
2028
- id: z.ZodString;
2029
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2030
- createdAt: z.ZodDate;
2031
- updatedAt: z.ZodDate;
2032
- deletedAt: z.ZodOptional<z.ZodDate>;
2033
- customerId: z.ZodString;
2034
- planId: z.ZodOptional<z.ZodString>;
2035
- invoiceCurrency: z.ZodString;
2036
- costBasisMode: z.ZodDefault<z.ZodEnum<{
2037
- dynamic: "dynamic";
2038
- pinned: "pinned";
2039
- }>>;
2040
- costBasisPins: z.ZodArray<z.ZodObject<{
2041
- customCurrencyId: z.ZodString;
2042
- invoiceCurrency: z.ZodString;
2043
- costBasisId: z.ZodString;
2044
- }, z.core.$strip>>;
2045
- billingAnchor: z.ZodDate;
2046
- status: z.ZodEnum<{
2047
- active: "active";
2048
- canceled: "canceled";
2049
- inactive: "inactive";
2050
- scheduled: "scheduled";
2051
- }>;
2052
- settlementMode: z.ZodOptional<z.ZodEnum<{
2053
- credit_only: "credit_only";
2054
- credit_then_invoice: "credit_then_invoice";
2055
- }>>;
2056
- }, z.core.$strip>;
2057
2039
  export declare const planAddon: z.ZodObject<{
2058
2040
  id: z.ZodString;
2059
2041
  name: z.ZodString;
@@ -3353,107 +3335,6 @@ export declare const workflowTaxSettings: z.ZodObject<{
3353
3335
  }, z.core.$strip>>;
3354
3336
  }, z.core.$strip>>;
3355
3337
  }, z.core.$strip>;
3356
- export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
3357
- data: z.ZodArray<z.ZodObject<{
3358
- id: z.ZodString;
3359
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3360
- createdAt: z.ZodDate;
3361
- updatedAt: z.ZodDate;
3362
- deletedAt: z.ZodOptional<z.ZodDate>;
3363
- customerId: z.ZodString;
3364
- planId: z.ZodOptional<z.ZodString>;
3365
- invoiceCurrency: z.ZodString;
3366
- costBasisMode: z.ZodDefault<z.ZodEnum<{
3367
- dynamic: "dynamic";
3368
- pinned: "pinned";
3369
- }>>;
3370
- costBasisPins: z.ZodArray<z.ZodObject<{
3371
- customCurrencyId: z.ZodString;
3372
- invoiceCurrency: z.ZodString;
3373
- costBasisId: z.ZodString;
3374
- }, z.core.$strip>>;
3375
- billingAnchor: z.ZodDate;
3376
- status: z.ZodEnum<{
3377
- active: "active";
3378
- canceled: "canceled";
3379
- inactive: "inactive";
3380
- scheduled: "scheduled";
3381
- }>;
3382
- settlementMode: z.ZodOptional<z.ZodEnum<{
3383
- credit_only: "credit_only";
3384
- credit_then_invoice: "credit_then_invoice";
3385
- }>>;
3386
- }, z.core.$strip>>;
3387
- meta: z.ZodObject<{
3388
- page: z.ZodObject<{
3389
- number: z.ZodNumber;
3390
- size: z.ZodNumber;
3391
- total: z.ZodNumber;
3392
- }, z.core.$strip>;
3393
- }, z.core.$strip>;
3394
- }, z.core.$strip>;
3395
- export declare const subscriptionChangeResponse: z.ZodObject<{
3396
- current: z.ZodObject<{
3397
- id: z.ZodString;
3398
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3399
- createdAt: z.ZodDate;
3400
- updatedAt: z.ZodDate;
3401
- deletedAt: z.ZodOptional<z.ZodDate>;
3402
- customerId: z.ZodString;
3403
- planId: z.ZodOptional<z.ZodString>;
3404
- invoiceCurrency: z.ZodString;
3405
- costBasisMode: z.ZodDefault<z.ZodEnum<{
3406
- dynamic: "dynamic";
3407
- pinned: "pinned";
3408
- }>>;
3409
- costBasisPins: z.ZodArray<z.ZodObject<{
3410
- customCurrencyId: z.ZodString;
3411
- invoiceCurrency: z.ZodString;
3412
- costBasisId: z.ZodString;
3413
- }, z.core.$strip>>;
3414
- billingAnchor: z.ZodDate;
3415
- status: z.ZodEnum<{
3416
- active: "active";
3417
- canceled: "canceled";
3418
- inactive: "inactive";
3419
- scheduled: "scheduled";
3420
- }>;
3421
- settlementMode: z.ZodOptional<z.ZodEnum<{
3422
- credit_only: "credit_only";
3423
- credit_then_invoice: "credit_then_invoice";
3424
- }>>;
3425
- }, z.core.$strip>;
3426
- next: z.ZodObject<{
3427
- id: z.ZodString;
3428
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3429
- createdAt: z.ZodDate;
3430
- updatedAt: z.ZodDate;
3431
- deletedAt: z.ZodOptional<z.ZodDate>;
3432
- customerId: z.ZodString;
3433
- planId: z.ZodOptional<z.ZodString>;
3434
- invoiceCurrency: z.ZodString;
3435
- costBasisMode: z.ZodDefault<z.ZodEnum<{
3436
- dynamic: "dynamic";
3437
- pinned: "pinned";
3438
- }>>;
3439
- costBasisPins: z.ZodArray<z.ZodObject<{
3440
- customCurrencyId: z.ZodString;
3441
- invoiceCurrency: z.ZodString;
3442
- costBasisId: z.ZodString;
3443
- }, z.core.$strip>>;
3444
- billingAnchor: z.ZodDate;
3445
- status: z.ZodEnum<{
3446
- active: "active";
3447
- canceled: "canceled";
3448
- inactive: "inactive";
3449
- scheduled: "scheduled";
3450
- }>;
3451
- settlementMode: z.ZodOptional<z.ZodEnum<{
3452
- credit_only: "credit_only";
3453
- credit_then_invoice: "credit_then_invoice";
3454
- }>>;
3455
- }, z.core.$strip>;
3456
- }, z.core.$strip>;
3457
3338
  export declare const planAddonPagePaginatedResponse: z.ZodObject<{
3458
3339
  data: z.ZodArray<z.ZodObject<{
3459
3340
  id: z.ZodString;
@@ -6534,6 +6415,101 @@ export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
6534
6415
  to: z.ZodDate;
6535
6416
  }, z.core.$strip>>;
6536
6417
  }, z.core.$strip>], "type">;
6418
+ export declare const subscriptionItem: z.ZodObject<{
6419
+ id: z.ZodString;
6420
+ activeFrom: z.ZodDate;
6421
+ activeTo: z.ZodOptional<z.ZodDate>;
6422
+ rateCard: z.ZodObject<{
6423
+ name: z.ZodString;
6424
+ description: z.ZodOptional<z.ZodString>;
6425
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6426
+ key: z.ZodString;
6427
+ feature: z.ZodOptional<z.ZodObject<{
6428
+ id: z.ZodString;
6429
+ }, z.core.$strip>>;
6430
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
6431
+ billingCadence: z.ZodOptional<z.ZodString>;
6432
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6433
+ type: z.ZodLiteral<"free">;
6434
+ }, z.core.$strip>, z.ZodObject<{
6435
+ type: z.ZodLiteral<"flat">;
6436
+ amount: z.ZodString;
6437
+ }, z.core.$strip>, z.ZodObject<{
6438
+ type: z.ZodLiteral<"unit">;
6439
+ amount: z.ZodString;
6440
+ }, z.core.$strip>, z.ZodObject<{
6441
+ type: z.ZodLiteral<"graduated">;
6442
+ tiers: z.ZodArray<z.ZodObject<{
6443
+ upToAmount: z.ZodOptional<z.ZodString>;
6444
+ flatPrice: z.ZodOptional<z.ZodObject<{
6445
+ type: z.ZodLiteral<"flat">;
6446
+ amount: z.ZodString;
6447
+ }, z.core.$strip>>;
6448
+ unitPrice: z.ZodOptional<z.ZodObject<{
6449
+ type: z.ZodLiteral<"unit">;
6450
+ amount: z.ZodString;
6451
+ }, z.core.$strip>>;
6452
+ }, z.core.$strip>>;
6453
+ }, z.core.$strip>, z.ZodObject<{
6454
+ type: z.ZodLiteral<"volume">;
6455
+ tiers: z.ZodArray<z.ZodObject<{
6456
+ upToAmount: z.ZodOptional<z.ZodString>;
6457
+ flatPrice: z.ZodOptional<z.ZodObject<{
6458
+ type: z.ZodLiteral<"flat">;
6459
+ amount: z.ZodString;
6460
+ }, z.core.$strip>>;
6461
+ unitPrice: z.ZodOptional<z.ZodObject<{
6462
+ type: z.ZodLiteral<"unit">;
6463
+ amount: z.ZodString;
6464
+ }, z.core.$strip>>;
6465
+ }, z.core.$strip>>;
6466
+ }, z.core.$strip>], "type">;
6467
+ unitConfig: z.ZodOptional<z.ZodObject<{
6468
+ operation: z.ZodEnum<{
6469
+ divide: "divide";
6470
+ multiply: "multiply";
6471
+ }>;
6472
+ conversionFactor: z.ZodString;
6473
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6474
+ ceiling: "ceiling";
6475
+ floor: "floor";
6476
+ half_up: "half_up";
6477
+ none: "none";
6478
+ }>>>;
6479
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6480
+ displayUnit: z.ZodOptional<z.ZodString>;
6481
+ }, z.core.$strip>>;
6482
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6483
+ commitments: z.ZodOptional<z.ZodObject<{
6484
+ minimumAmount: z.ZodOptional<z.ZodString>;
6485
+ maximumAmount: z.ZodOptional<z.ZodString>;
6486
+ }, z.core.$strip>>;
6487
+ discounts: z.ZodOptional<z.ZodObject<{
6488
+ percentage: z.ZodOptional<z.ZodNumber>;
6489
+ usage: z.ZodOptional<z.ZodString>;
6490
+ }, z.core.$strip>>;
6491
+ taxConfig: z.ZodOptional<z.ZodObject<{
6492
+ behavior: z.ZodOptional<z.ZodEnum<{
6493
+ exclusive: "exclusive";
6494
+ inclusive: "inclusive";
6495
+ }>>;
6496
+ code: z.ZodObject<{
6497
+ id: z.ZodString;
6498
+ }, z.core.$strip>;
6499
+ }, z.core.$strip>>;
6500
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6501
+ type: z.ZodLiteral<"metered">;
6502
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6503
+ limit: z.ZodOptional<z.ZodNumber>;
6504
+ usagePeriod: z.ZodOptional<z.ZodString>;
6505
+ }, z.core.$strip>, z.ZodObject<{
6506
+ type: z.ZodLiteral<"static">;
6507
+ config: z.ZodUnknown;
6508
+ }, z.core.$strip>, z.ZodObject<{
6509
+ type: z.ZodLiteral<"boolean">;
6510
+ }, z.core.$strip>], "type">>;
6511
+ }, z.core.$strip>;
6512
+ }, z.core.$strip>;
6537
6513
  export declare const subscriptionAddonRateCard: z.ZodObject<{
6538
6514
  rateCard: z.ZodObject<{
6539
6515
  name: z.ZodString;
@@ -7903,27 +7879,134 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
7903
7879
  deletedAt: z.ZodOptional<z.ZodDate>;
7904
7880
  }, z.core.$strip>>;
7905
7881
  }, z.core.$strip>], "type">;
7906
- export declare const subscriptionAddon: z.ZodObject<{
7882
+ export declare const subscriptionPhase: z.ZodObject<{
7907
7883
  id: z.ZodString;
7884
+ name: z.ZodString;
7885
+ description: z.ZodOptional<z.ZodString>;
7908
7886
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7909
7887
  createdAt: z.ZodDate;
7910
7888
  updatedAt: z.ZodDate;
7911
7889
  deletedAt: z.ZodOptional<z.ZodDate>;
7912
- name: z.ZodString;
7913
- description: z.ZodOptional<z.ZodString>;
7914
- addon: z.ZodObject<{
7915
- id: z.ZodString;
7916
- }, z.core.$strip>;
7917
- quantity: z.ZodNumber;
7918
- quantityAt: z.ZodDate;
7890
+ key: z.ZodString;
7919
7891
  activeFrom: z.ZodDate;
7920
7892
  activeTo: z.ZodOptional<z.ZodDate>;
7921
- timeline: z.ZodArray<z.ZodObject<{
7893
+ items: z.ZodArray<z.ZodObject<{
7894
+ id: z.ZodString;
7922
7895
  activeFrom: z.ZodDate;
7923
7896
  activeTo: z.ZodOptional<z.ZodDate>;
7924
- quantity: z.ZodNumber;
7925
- }, z.core.$strip>>;
7926
- rateCards: z.ZodArray<z.ZodObject<{
7897
+ rateCard: z.ZodObject<{
7898
+ name: z.ZodString;
7899
+ description: z.ZodOptional<z.ZodString>;
7900
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7901
+ key: z.ZodString;
7902
+ feature: z.ZodOptional<z.ZodObject<{
7903
+ id: z.ZodString;
7904
+ }, z.core.$strip>>;
7905
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
7906
+ billingCadence: z.ZodOptional<z.ZodString>;
7907
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7908
+ type: z.ZodLiteral<"free">;
7909
+ }, z.core.$strip>, z.ZodObject<{
7910
+ type: z.ZodLiteral<"flat">;
7911
+ amount: z.ZodString;
7912
+ }, z.core.$strip>, z.ZodObject<{
7913
+ type: z.ZodLiteral<"unit">;
7914
+ amount: z.ZodString;
7915
+ }, z.core.$strip>, z.ZodObject<{
7916
+ type: z.ZodLiteral<"graduated">;
7917
+ tiers: z.ZodArray<z.ZodObject<{
7918
+ upToAmount: z.ZodOptional<z.ZodString>;
7919
+ flatPrice: z.ZodOptional<z.ZodObject<{
7920
+ type: z.ZodLiteral<"flat">;
7921
+ amount: z.ZodString;
7922
+ }, z.core.$strip>>;
7923
+ unitPrice: z.ZodOptional<z.ZodObject<{
7924
+ type: z.ZodLiteral<"unit">;
7925
+ amount: z.ZodString;
7926
+ }, z.core.$strip>>;
7927
+ }, z.core.$strip>>;
7928
+ }, z.core.$strip>, z.ZodObject<{
7929
+ type: z.ZodLiteral<"volume">;
7930
+ tiers: z.ZodArray<z.ZodObject<{
7931
+ upToAmount: z.ZodOptional<z.ZodString>;
7932
+ flatPrice: z.ZodOptional<z.ZodObject<{
7933
+ type: z.ZodLiteral<"flat">;
7934
+ amount: z.ZodString;
7935
+ }, z.core.$strip>>;
7936
+ unitPrice: z.ZodOptional<z.ZodObject<{
7937
+ type: z.ZodLiteral<"unit">;
7938
+ amount: z.ZodString;
7939
+ }, z.core.$strip>>;
7940
+ }, z.core.$strip>>;
7941
+ }, z.core.$strip>], "type">;
7942
+ unitConfig: z.ZodOptional<z.ZodObject<{
7943
+ operation: z.ZodEnum<{
7944
+ divide: "divide";
7945
+ multiply: "multiply";
7946
+ }>;
7947
+ conversionFactor: z.ZodString;
7948
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7949
+ ceiling: "ceiling";
7950
+ floor: "floor";
7951
+ half_up: "half_up";
7952
+ none: "none";
7953
+ }>>>;
7954
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7955
+ displayUnit: z.ZodOptional<z.ZodString>;
7956
+ }, z.core.$strip>>;
7957
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7958
+ commitments: z.ZodOptional<z.ZodObject<{
7959
+ minimumAmount: z.ZodOptional<z.ZodString>;
7960
+ maximumAmount: z.ZodOptional<z.ZodString>;
7961
+ }, z.core.$strip>>;
7962
+ discounts: z.ZodOptional<z.ZodObject<{
7963
+ percentage: z.ZodOptional<z.ZodNumber>;
7964
+ usage: z.ZodOptional<z.ZodString>;
7965
+ }, z.core.$strip>>;
7966
+ taxConfig: z.ZodOptional<z.ZodObject<{
7967
+ behavior: z.ZodOptional<z.ZodEnum<{
7968
+ exclusive: "exclusive";
7969
+ inclusive: "inclusive";
7970
+ }>>;
7971
+ code: z.ZodObject<{
7972
+ id: z.ZodString;
7973
+ }, z.core.$strip>;
7974
+ }, z.core.$strip>>;
7975
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7976
+ type: z.ZodLiteral<"metered">;
7977
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7978
+ limit: z.ZodOptional<z.ZodNumber>;
7979
+ usagePeriod: z.ZodOptional<z.ZodString>;
7980
+ }, z.core.$strip>, z.ZodObject<{
7981
+ type: z.ZodLiteral<"static">;
7982
+ config: z.ZodUnknown;
7983
+ }, z.core.$strip>, z.ZodObject<{
7984
+ type: z.ZodLiteral<"boolean">;
7985
+ }, z.core.$strip>], "type">>;
7986
+ }, z.core.$strip>;
7987
+ }, z.core.$strip>>;
7988
+ }, z.core.$strip>;
7989
+ export declare const subscriptionAddon: z.ZodObject<{
7990
+ id: z.ZodString;
7991
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7992
+ createdAt: z.ZodDate;
7993
+ updatedAt: z.ZodDate;
7994
+ deletedAt: z.ZodOptional<z.ZodDate>;
7995
+ name: z.ZodString;
7996
+ description: z.ZodOptional<z.ZodString>;
7997
+ addon: z.ZodObject<{
7998
+ id: z.ZodString;
7999
+ }, z.core.$strip>;
8000
+ quantity: z.ZodNumber;
8001
+ quantityAt: z.ZodDate;
8002
+ activeFrom: z.ZodDate;
8003
+ activeTo: z.ZodOptional<z.ZodDate>;
8004
+ timeline: z.ZodArray<z.ZodObject<{
8005
+ activeFrom: z.ZodDate;
8006
+ activeTo: z.ZodOptional<z.ZodDate>;
8007
+ quantity: z.ZodNumber;
8008
+ }, z.core.$strip>>;
8009
+ rateCards: z.ZodArray<z.ZodObject<{
7927
8010
  rateCard: z.ZodObject<{
7928
8011
  name: z.ZodString;
7929
8012
  description: z.ZodOptional<z.ZodString>;
@@ -9202,6 +9285,164 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
9202
9285
  }, z.core.$strip>;
9203
9286
  }, z.core.$strip>;
9204
9287
  }, z.core.$strip>;
9288
+ export declare const subscription: z.ZodObject<{
9289
+ id: z.ZodString;
9290
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9291
+ createdAt: z.ZodDate;
9292
+ updatedAt: z.ZodDate;
9293
+ deletedAt: z.ZodOptional<z.ZodDate>;
9294
+ name: z.ZodString;
9295
+ description: z.ZodOptional<z.ZodString>;
9296
+ activeFrom: z.ZodDate;
9297
+ activeTo: z.ZodOptional<z.ZodDate>;
9298
+ customerId: z.ZodString;
9299
+ planId: z.ZodOptional<z.ZodString>;
9300
+ plan: z.ZodOptional<z.ZodObject<{
9301
+ id: z.ZodString;
9302
+ key: z.ZodString;
9303
+ version: z.ZodNumber;
9304
+ }, z.core.$strip>>;
9305
+ invoiceCurrency: z.ZodString;
9306
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
9307
+ dynamic: "dynamic";
9308
+ pinned: "pinned";
9309
+ }>>;
9310
+ costBasisPins: z.ZodArray<z.ZodObject<{
9311
+ customCurrencyId: z.ZodString;
9312
+ invoiceCurrency: z.ZodString;
9313
+ costBasisId: z.ZodString;
9314
+ }, z.core.$strip>>;
9315
+ billingCadence: z.ZodString;
9316
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
9317
+ enabled: z.ZodBoolean;
9318
+ mode: z.ZodEnum<{
9319
+ no_proration: "no_proration";
9320
+ prorate_prices: "prorate_prices";
9321
+ }>;
9322
+ }, z.core.$strip>>;
9323
+ billingAnchor: z.ZodDate;
9324
+ status: z.ZodEnum<{
9325
+ active: "active";
9326
+ canceled: "canceled";
9327
+ inactive: "inactive";
9328
+ scheduled: "scheduled";
9329
+ }>;
9330
+ settlementMode: z.ZodOptional<z.ZodEnum<{
9331
+ credit_only: "credit_only";
9332
+ credit_then_invoice: "credit_then_invoice";
9333
+ }>>;
9334
+ currentPeriod: z.ZodOptional<z.ZodObject<{
9335
+ from: z.ZodDate;
9336
+ to: z.ZodDate;
9337
+ }, z.core.$strip>>;
9338
+ phases: z.ZodArray<z.ZodObject<{
9339
+ id: z.ZodString;
9340
+ name: z.ZodString;
9341
+ description: z.ZodOptional<z.ZodString>;
9342
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9343
+ createdAt: z.ZodDate;
9344
+ updatedAt: z.ZodDate;
9345
+ deletedAt: z.ZodOptional<z.ZodDate>;
9346
+ key: z.ZodString;
9347
+ activeFrom: z.ZodDate;
9348
+ activeTo: z.ZodOptional<z.ZodDate>;
9349
+ items: z.ZodArray<z.ZodObject<{
9350
+ id: z.ZodString;
9351
+ activeFrom: z.ZodDate;
9352
+ activeTo: z.ZodOptional<z.ZodDate>;
9353
+ rateCard: z.ZodObject<{
9354
+ name: z.ZodString;
9355
+ description: z.ZodOptional<z.ZodString>;
9356
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9357
+ key: z.ZodString;
9358
+ feature: z.ZodOptional<z.ZodObject<{
9359
+ id: z.ZodString;
9360
+ }, z.core.$strip>>;
9361
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9362
+ billingCadence: z.ZodOptional<z.ZodString>;
9363
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
9364
+ type: z.ZodLiteral<"free">;
9365
+ }, z.core.$strip>, z.ZodObject<{
9366
+ type: z.ZodLiteral<"flat">;
9367
+ amount: z.ZodString;
9368
+ }, z.core.$strip>, z.ZodObject<{
9369
+ type: z.ZodLiteral<"unit">;
9370
+ amount: z.ZodString;
9371
+ }, z.core.$strip>, z.ZodObject<{
9372
+ type: z.ZodLiteral<"graduated">;
9373
+ tiers: z.ZodArray<z.ZodObject<{
9374
+ upToAmount: z.ZodOptional<z.ZodString>;
9375
+ flatPrice: z.ZodOptional<z.ZodObject<{
9376
+ type: z.ZodLiteral<"flat">;
9377
+ amount: z.ZodString;
9378
+ }, z.core.$strip>>;
9379
+ unitPrice: z.ZodOptional<z.ZodObject<{
9380
+ type: z.ZodLiteral<"unit">;
9381
+ amount: z.ZodString;
9382
+ }, z.core.$strip>>;
9383
+ }, z.core.$strip>>;
9384
+ }, z.core.$strip>, z.ZodObject<{
9385
+ type: z.ZodLiteral<"volume">;
9386
+ tiers: z.ZodArray<z.ZodObject<{
9387
+ upToAmount: z.ZodOptional<z.ZodString>;
9388
+ flatPrice: z.ZodOptional<z.ZodObject<{
9389
+ type: z.ZodLiteral<"flat">;
9390
+ amount: z.ZodString;
9391
+ }, z.core.$strip>>;
9392
+ unitPrice: z.ZodOptional<z.ZodObject<{
9393
+ type: z.ZodLiteral<"unit">;
9394
+ amount: z.ZodString;
9395
+ }, z.core.$strip>>;
9396
+ }, z.core.$strip>>;
9397
+ }, z.core.$strip>], "type">;
9398
+ unitConfig: z.ZodOptional<z.ZodObject<{
9399
+ operation: z.ZodEnum<{
9400
+ divide: "divide";
9401
+ multiply: "multiply";
9402
+ }>;
9403
+ conversionFactor: z.ZodString;
9404
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9405
+ ceiling: "ceiling";
9406
+ floor: "floor";
9407
+ half_up: "half_up";
9408
+ none: "none";
9409
+ }>>>;
9410
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9411
+ displayUnit: z.ZodOptional<z.ZodString>;
9412
+ }, z.core.$strip>>;
9413
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
9414
+ commitments: z.ZodOptional<z.ZodObject<{
9415
+ minimumAmount: z.ZodOptional<z.ZodString>;
9416
+ maximumAmount: z.ZodOptional<z.ZodString>;
9417
+ }, z.core.$strip>>;
9418
+ discounts: z.ZodOptional<z.ZodObject<{
9419
+ percentage: z.ZodOptional<z.ZodNumber>;
9420
+ usage: z.ZodOptional<z.ZodString>;
9421
+ }, z.core.$strip>>;
9422
+ taxConfig: z.ZodOptional<z.ZodObject<{
9423
+ behavior: z.ZodOptional<z.ZodEnum<{
9424
+ exclusive: "exclusive";
9425
+ inclusive: "inclusive";
9426
+ }>>;
9427
+ code: z.ZodObject<{
9428
+ id: z.ZodString;
9429
+ }, z.core.$strip>;
9430
+ }, z.core.$strip>>;
9431
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9432
+ type: z.ZodLiteral<"metered">;
9433
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9434
+ limit: z.ZodOptional<z.ZodNumber>;
9435
+ usagePeriod: z.ZodOptional<z.ZodString>;
9436
+ }, z.core.$strip>, z.ZodObject<{
9437
+ type: z.ZodLiteral<"static">;
9438
+ config: z.ZodUnknown;
9439
+ }, z.core.$strip>, z.ZodObject<{
9440
+ type: z.ZodLiteral<"boolean">;
9441
+ }, z.core.$strip>], "type">>;
9442
+ }, z.core.$strip>;
9443
+ }, z.core.$strip>>;
9444
+ }, z.core.$strip>>;
9445
+ }, z.core.$strip>;
9205
9446
  export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
9206
9447
  data: z.ZodArray<z.ZodObject<{
9207
9448
  id: z.ZodString;
@@ -9930,6 +10171,491 @@ export declare const updateInvoiceStandardRequest: z.ZodObject<{
9930
10171
  }, z.core.$strip>;
9931
10172
  }, z.core.$strip>], "type">>>;
9932
10173
  }, z.core.$strip>;
10174
+ export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
10175
+ data: z.ZodArray<z.ZodObject<{
10176
+ id: z.ZodString;
10177
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10178
+ createdAt: z.ZodDate;
10179
+ updatedAt: z.ZodDate;
10180
+ deletedAt: z.ZodOptional<z.ZodDate>;
10181
+ name: z.ZodString;
10182
+ description: z.ZodOptional<z.ZodString>;
10183
+ activeFrom: z.ZodDate;
10184
+ activeTo: z.ZodOptional<z.ZodDate>;
10185
+ customerId: z.ZodString;
10186
+ planId: z.ZodOptional<z.ZodString>;
10187
+ plan: z.ZodOptional<z.ZodObject<{
10188
+ id: z.ZodString;
10189
+ key: z.ZodString;
10190
+ version: z.ZodNumber;
10191
+ }, z.core.$strip>>;
10192
+ invoiceCurrency: z.ZodString;
10193
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
10194
+ dynamic: "dynamic";
10195
+ pinned: "pinned";
10196
+ }>>;
10197
+ costBasisPins: z.ZodArray<z.ZodObject<{
10198
+ customCurrencyId: z.ZodString;
10199
+ invoiceCurrency: z.ZodString;
10200
+ costBasisId: z.ZodString;
10201
+ }, z.core.$strip>>;
10202
+ billingCadence: z.ZodString;
10203
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
10204
+ enabled: z.ZodBoolean;
10205
+ mode: z.ZodEnum<{
10206
+ no_proration: "no_proration";
10207
+ prorate_prices: "prorate_prices";
10208
+ }>;
10209
+ }, z.core.$strip>>;
10210
+ billingAnchor: z.ZodDate;
10211
+ status: z.ZodEnum<{
10212
+ active: "active";
10213
+ canceled: "canceled";
10214
+ inactive: "inactive";
10215
+ scheduled: "scheduled";
10216
+ }>;
10217
+ settlementMode: z.ZodOptional<z.ZodEnum<{
10218
+ credit_only: "credit_only";
10219
+ credit_then_invoice: "credit_then_invoice";
10220
+ }>>;
10221
+ currentPeriod: z.ZodOptional<z.ZodObject<{
10222
+ from: z.ZodDate;
10223
+ to: z.ZodDate;
10224
+ }, z.core.$strip>>;
10225
+ phases: z.ZodArray<z.ZodObject<{
10226
+ id: z.ZodString;
10227
+ name: z.ZodString;
10228
+ description: z.ZodOptional<z.ZodString>;
10229
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10230
+ createdAt: z.ZodDate;
10231
+ updatedAt: z.ZodDate;
10232
+ deletedAt: z.ZodOptional<z.ZodDate>;
10233
+ key: z.ZodString;
10234
+ activeFrom: z.ZodDate;
10235
+ activeTo: z.ZodOptional<z.ZodDate>;
10236
+ items: z.ZodArray<z.ZodObject<{
10237
+ id: z.ZodString;
10238
+ activeFrom: z.ZodDate;
10239
+ activeTo: z.ZodOptional<z.ZodDate>;
10240
+ rateCard: z.ZodObject<{
10241
+ name: z.ZodString;
10242
+ description: z.ZodOptional<z.ZodString>;
10243
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10244
+ key: z.ZodString;
10245
+ feature: z.ZodOptional<z.ZodObject<{
10246
+ id: z.ZodString;
10247
+ }, z.core.$strip>>;
10248
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10249
+ billingCadence: z.ZodOptional<z.ZodString>;
10250
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10251
+ type: z.ZodLiteral<"free">;
10252
+ }, z.core.$strip>, z.ZodObject<{
10253
+ type: z.ZodLiteral<"flat">;
10254
+ amount: z.ZodString;
10255
+ }, z.core.$strip>, z.ZodObject<{
10256
+ type: z.ZodLiteral<"unit">;
10257
+ amount: z.ZodString;
10258
+ }, z.core.$strip>, z.ZodObject<{
10259
+ type: z.ZodLiteral<"graduated">;
10260
+ tiers: z.ZodArray<z.ZodObject<{
10261
+ upToAmount: z.ZodOptional<z.ZodString>;
10262
+ flatPrice: z.ZodOptional<z.ZodObject<{
10263
+ type: z.ZodLiteral<"flat">;
10264
+ amount: z.ZodString;
10265
+ }, z.core.$strip>>;
10266
+ unitPrice: z.ZodOptional<z.ZodObject<{
10267
+ type: z.ZodLiteral<"unit">;
10268
+ amount: z.ZodString;
10269
+ }, z.core.$strip>>;
10270
+ }, z.core.$strip>>;
10271
+ }, z.core.$strip>, z.ZodObject<{
10272
+ type: z.ZodLiteral<"volume">;
10273
+ tiers: z.ZodArray<z.ZodObject<{
10274
+ upToAmount: z.ZodOptional<z.ZodString>;
10275
+ flatPrice: z.ZodOptional<z.ZodObject<{
10276
+ type: z.ZodLiteral<"flat">;
10277
+ amount: z.ZodString;
10278
+ }, z.core.$strip>>;
10279
+ unitPrice: z.ZodOptional<z.ZodObject<{
10280
+ type: z.ZodLiteral<"unit">;
10281
+ amount: z.ZodString;
10282
+ }, z.core.$strip>>;
10283
+ }, z.core.$strip>>;
10284
+ }, z.core.$strip>], "type">;
10285
+ unitConfig: z.ZodOptional<z.ZodObject<{
10286
+ operation: z.ZodEnum<{
10287
+ divide: "divide";
10288
+ multiply: "multiply";
10289
+ }>;
10290
+ conversionFactor: z.ZodString;
10291
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10292
+ ceiling: "ceiling";
10293
+ floor: "floor";
10294
+ half_up: "half_up";
10295
+ none: "none";
10296
+ }>>>;
10297
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10298
+ displayUnit: z.ZodOptional<z.ZodString>;
10299
+ }, z.core.$strip>>;
10300
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10301
+ commitments: z.ZodOptional<z.ZodObject<{
10302
+ minimumAmount: z.ZodOptional<z.ZodString>;
10303
+ maximumAmount: z.ZodOptional<z.ZodString>;
10304
+ }, z.core.$strip>>;
10305
+ discounts: z.ZodOptional<z.ZodObject<{
10306
+ percentage: z.ZodOptional<z.ZodNumber>;
10307
+ usage: z.ZodOptional<z.ZodString>;
10308
+ }, z.core.$strip>>;
10309
+ taxConfig: z.ZodOptional<z.ZodObject<{
10310
+ behavior: z.ZodOptional<z.ZodEnum<{
10311
+ exclusive: "exclusive";
10312
+ inclusive: "inclusive";
10313
+ }>>;
10314
+ code: z.ZodObject<{
10315
+ id: z.ZodString;
10316
+ }, z.core.$strip>;
10317
+ }, z.core.$strip>>;
10318
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10319
+ type: z.ZodLiteral<"metered">;
10320
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10321
+ limit: z.ZodOptional<z.ZodNumber>;
10322
+ usagePeriod: z.ZodOptional<z.ZodString>;
10323
+ }, z.core.$strip>, z.ZodObject<{
10324
+ type: z.ZodLiteral<"static">;
10325
+ config: z.ZodUnknown;
10326
+ }, z.core.$strip>, z.ZodObject<{
10327
+ type: z.ZodLiteral<"boolean">;
10328
+ }, z.core.$strip>], "type">>;
10329
+ }, z.core.$strip>;
10330
+ }, z.core.$strip>>;
10331
+ }, z.core.$strip>>;
10332
+ }, z.core.$strip>>;
10333
+ meta: z.ZodObject<{
10334
+ page: z.ZodObject<{
10335
+ number: z.ZodNumber;
10336
+ size: z.ZodNumber;
10337
+ total: z.ZodNumber;
10338
+ }, z.core.$strip>;
10339
+ }, z.core.$strip>;
10340
+ }, z.core.$strip>;
10341
+ export declare const subscriptionChangeResponse: z.ZodObject<{
10342
+ current: z.ZodObject<{
10343
+ id: z.ZodString;
10344
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10345
+ createdAt: z.ZodDate;
10346
+ updatedAt: z.ZodDate;
10347
+ deletedAt: z.ZodOptional<z.ZodDate>;
10348
+ name: z.ZodString;
10349
+ description: z.ZodOptional<z.ZodString>;
10350
+ activeFrom: z.ZodDate;
10351
+ activeTo: z.ZodOptional<z.ZodDate>;
10352
+ customerId: z.ZodString;
10353
+ planId: z.ZodOptional<z.ZodString>;
10354
+ plan: z.ZodOptional<z.ZodObject<{
10355
+ id: z.ZodString;
10356
+ key: z.ZodString;
10357
+ version: z.ZodNumber;
10358
+ }, z.core.$strip>>;
10359
+ invoiceCurrency: z.ZodString;
10360
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
10361
+ dynamic: "dynamic";
10362
+ pinned: "pinned";
10363
+ }>>;
10364
+ costBasisPins: z.ZodArray<z.ZodObject<{
10365
+ customCurrencyId: z.ZodString;
10366
+ invoiceCurrency: z.ZodString;
10367
+ costBasisId: z.ZodString;
10368
+ }, z.core.$strip>>;
10369
+ billingCadence: z.ZodString;
10370
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
10371
+ enabled: z.ZodBoolean;
10372
+ mode: z.ZodEnum<{
10373
+ no_proration: "no_proration";
10374
+ prorate_prices: "prorate_prices";
10375
+ }>;
10376
+ }, z.core.$strip>>;
10377
+ billingAnchor: z.ZodDate;
10378
+ status: z.ZodEnum<{
10379
+ active: "active";
10380
+ canceled: "canceled";
10381
+ inactive: "inactive";
10382
+ scheduled: "scheduled";
10383
+ }>;
10384
+ settlementMode: z.ZodOptional<z.ZodEnum<{
10385
+ credit_only: "credit_only";
10386
+ credit_then_invoice: "credit_then_invoice";
10387
+ }>>;
10388
+ currentPeriod: z.ZodOptional<z.ZodObject<{
10389
+ from: z.ZodDate;
10390
+ to: z.ZodDate;
10391
+ }, z.core.$strip>>;
10392
+ phases: z.ZodArray<z.ZodObject<{
10393
+ id: z.ZodString;
10394
+ name: z.ZodString;
10395
+ description: z.ZodOptional<z.ZodString>;
10396
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10397
+ createdAt: z.ZodDate;
10398
+ updatedAt: z.ZodDate;
10399
+ deletedAt: z.ZodOptional<z.ZodDate>;
10400
+ key: z.ZodString;
10401
+ activeFrom: z.ZodDate;
10402
+ activeTo: z.ZodOptional<z.ZodDate>;
10403
+ items: z.ZodArray<z.ZodObject<{
10404
+ id: z.ZodString;
10405
+ activeFrom: z.ZodDate;
10406
+ activeTo: z.ZodOptional<z.ZodDate>;
10407
+ rateCard: z.ZodObject<{
10408
+ name: z.ZodString;
10409
+ description: z.ZodOptional<z.ZodString>;
10410
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10411
+ key: z.ZodString;
10412
+ feature: z.ZodOptional<z.ZodObject<{
10413
+ id: z.ZodString;
10414
+ }, z.core.$strip>>;
10415
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10416
+ billingCadence: z.ZodOptional<z.ZodString>;
10417
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10418
+ type: z.ZodLiteral<"free">;
10419
+ }, z.core.$strip>, z.ZodObject<{
10420
+ type: z.ZodLiteral<"flat">;
10421
+ amount: z.ZodString;
10422
+ }, z.core.$strip>, z.ZodObject<{
10423
+ type: z.ZodLiteral<"unit">;
10424
+ amount: z.ZodString;
10425
+ }, z.core.$strip>, z.ZodObject<{
10426
+ type: z.ZodLiteral<"graduated">;
10427
+ tiers: z.ZodArray<z.ZodObject<{
10428
+ upToAmount: z.ZodOptional<z.ZodString>;
10429
+ flatPrice: z.ZodOptional<z.ZodObject<{
10430
+ type: z.ZodLiteral<"flat">;
10431
+ amount: z.ZodString;
10432
+ }, z.core.$strip>>;
10433
+ unitPrice: z.ZodOptional<z.ZodObject<{
10434
+ type: z.ZodLiteral<"unit">;
10435
+ amount: z.ZodString;
10436
+ }, z.core.$strip>>;
10437
+ }, z.core.$strip>>;
10438
+ }, z.core.$strip>, z.ZodObject<{
10439
+ type: z.ZodLiteral<"volume">;
10440
+ tiers: z.ZodArray<z.ZodObject<{
10441
+ upToAmount: z.ZodOptional<z.ZodString>;
10442
+ flatPrice: z.ZodOptional<z.ZodObject<{
10443
+ type: z.ZodLiteral<"flat">;
10444
+ amount: z.ZodString;
10445
+ }, z.core.$strip>>;
10446
+ unitPrice: z.ZodOptional<z.ZodObject<{
10447
+ type: z.ZodLiteral<"unit">;
10448
+ amount: z.ZodString;
10449
+ }, z.core.$strip>>;
10450
+ }, z.core.$strip>>;
10451
+ }, z.core.$strip>], "type">;
10452
+ unitConfig: z.ZodOptional<z.ZodObject<{
10453
+ operation: z.ZodEnum<{
10454
+ divide: "divide";
10455
+ multiply: "multiply";
10456
+ }>;
10457
+ conversionFactor: z.ZodString;
10458
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10459
+ ceiling: "ceiling";
10460
+ floor: "floor";
10461
+ half_up: "half_up";
10462
+ none: "none";
10463
+ }>>>;
10464
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10465
+ displayUnit: z.ZodOptional<z.ZodString>;
10466
+ }, z.core.$strip>>;
10467
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10468
+ commitments: z.ZodOptional<z.ZodObject<{
10469
+ minimumAmount: z.ZodOptional<z.ZodString>;
10470
+ maximumAmount: z.ZodOptional<z.ZodString>;
10471
+ }, z.core.$strip>>;
10472
+ discounts: z.ZodOptional<z.ZodObject<{
10473
+ percentage: z.ZodOptional<z.ZodNumber>;
10474
+ usage: z.ZodOptional<z.ZodString>;
10475
+ }, z.core.$strip>>;
10476
+ taxConfig: z.ZodOptional<z.ZodObject<{
10477
+ behavior: z.ZodOptional<z.ZodEnum<{
10478
+ exclusive: "exclusive";
10479
+ inclusive: "inclusive";
10480
+ }>>;
10481
+ code: z.ZodObject<{
10482
+ id: z.ZodString;
10483
+ }, z.core.$strip>;
10484
+ }, z.core.$strip>>;
10485
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10486
+ type: z.ZodLiteral<"metered">;
10487
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10488
+ limit: z.ZodOptional<z.ZodNumber>;
10489
+ usagePeriod: z.ZodOptional<z.ZodString>;
10490
+ }, z.core.$strip>, z.ZodObject<{
10491
+ type: z.ZodLiteral<"static">;
10492
+ config: z.ZodUnknown;
10493
+ }, z.core.$strip>, z.ZodObject<{
10494
+ type: z.ZodLiteral<"boolean">;
10495
+ }, z.core.$strip>], "type">>;
10496
+ }, z.core.$strip>;
10497
+ }, z.core.$strip>>;
10498
+ }, z.core.$strip>>;
10499
+ }, z.core.$strip>;
10500
+ next: z.ZodObject<{
10501
+ id: z.ZodString;
10502
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10503
+ createdAt: z.ZodDate;
10504
+ updatedAt: z.ZodDate;
10505
+ deletedAt: z.ZodOptional<z.ZodDate>;
10506
+ name: z.ZodString;
10507
+ description: z.ZodOptional<z.ZodString>;
10508
+ activeFrom: z.ZodDate;
10509
+ activeTo: z.ZodOptional<z.ZodDate>;
10510
+ customerId: z.ZodString;
10511
+ planId: z.ZodOptional<z.ZodString>;
10512
+ plan: z.ZodOptional<z.ZodObject<{
10513
+ id: z.ZodString;
10514
+ key: z.ZodString;
10515
+ version: z.ZodNumber;
10516
+ }, z.core.$strip>>;
10517
+ invoiceCurrency: z.ZodString;
10518
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
10519
+ dynamic: "dynamic";
10520
+ pinned: "pinned";
10521
+ }>>;
10522
+ costBasisPins: z.ZodArray<z.ZodObject<{
10523
+ customCurrencyId: z.ZodString;
10524
+ invoiceCurrency: z.ZodString;
10525
+ costBasisId: z.ZodString;
10526
+ }, z.core.$strip>>;
10527
+ billingCadence: z.ZodString;
10528
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
10529
+ enabled: z.ZodBoolean;
10530
+ mode: z.ZodEnum<{
10531
+ no_proration: "no_proration";
10532
+ prorate_prices: "prorate_prices";
10533
+ }>;
10534
+ }, z.core.$strip>>;
10535
+ billingAnchor: z.ZodDate;
10536
+ status: z.ZodEnum<{
10537
+ active: "active";
10538
+ canceled: "canceled";
10539
+ inactive: "inactive";
10540
+ scheduled: "scheduled";
10541
+ }>;
10542
+ settlementMode: z.ZodOptional<z.ZodEnum<{
10543
+ credit_only: "credit_only";
10544
+ credit_then_invoice: "credit_then_invoice";
10545
+ }>>;
10546
+ currentPeriod: z.ZodOptional<z.ZodObject<{
10547
+ from: z.ZodDate;
10548
+ to: z.ZodDate;
10549
+ }, z.core.$strip>>;
10550
+ phases: z.ZodArray<z.ZodObject<{
10551
+ id: z.ZodString;
10552
+ name: z.ZodString;
10553
+ description: z.ZodOptional<z.ZodString>;
10554
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10555
+ createdAt: z.ZodDate;
10556
+ updatedAt: z.ZodDate;
10557
+ deletedAt: z.ZodOptional<z.ZodDate>;
10558
+ key: z.ZodString;
10559
+ activeFrom: z.ZodDate;
10560
+ activeTo: z.ZodOptional<z.ZodDate>;
10561
+ items: z.ZodArray<z.ZodObject<{
10562
+ id: z.ZodString;
10563
+ activeFrom: z.ZodDate;
10564
+ activeTo: z.ZodOptional<z.ZodDate>;
10565
+ rateCard: z.ZodObject<{
10566
+ name: z.ZodString;
10567
+ description: z.ZodOptional<z.ZodString>;
10568
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10569
+ key: z.ZodString;
10570
+ feature: z.ZodOptional<z.ZodObject<{
10571
+ id: z.ZodString;
10572
+ }, z.core.$strip>>;
10573
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10574
+ billingCadence: z.ZodOptional<z.ZodString>;
10575
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10576
+ type: z.ZodLiteral<"free">;
10577
+ }, z.core.$strip>, z.ZodObject<{
10578
+ type: z.ZodLiteral<"flat">;
10579
+ amount: z.ZodString;
10580
+ }, z.core.$strip>, z.ZodObject<{
10581
+ type: z.ZodLiteral<"unit">;
10582
+ amount: z.ZodString;
10583
+ }, z.core.$strip>, z.ZodObject<{
10584
+ type: z.ZodLiteral<"graduated">;
10585
+ tiers: z.ZodArray<z.ZodObject<{
10586
+ upToAmount: z.ZodOptional<z.ZodString>;
10587
+ flatPrice: z.ZodOptional<z.ZodObject<{
10588
+ type: z.ZodLiteral<"flat">;
10589
+ amount: z.ZodString;
10590
+ }, z.core.$strip>>;
10591
+ unitPrice: z.ZodOptional<z.ZodObject<{
10592
+ type: z.ZodLiteral<"unit">;
10593
+ amount: z.ZodString;
10594
+ }, z.core.$strip>>;
10595
+ }, z.core.$strip>>;
10596
+ }, z.core.$strip>, z.ZodObject<{
10597
+ type: z.ZodLiteral<"volume">;
10598
+ tiers: z.ZodArray<z.ZodObject<{
10599
+ upToAmount: z.ZodOptional<z.ZodString>;
10600
+ flatPrice: z.ZodOptional<z.ZodObject<{
10601
+ type: z.ZodLiteral<"flat">;
10602
+ amount: z.ZodString;
10603
+ }, z.core.$strip>>;
10604
+ unitPrice: z.ZodOptional<z.ZodObject<{
10605
+ type: z.ZodLiteral<"unit">;
10606
+ amount: z.ZodString;
10607
+ }, z.core.$strip>>;
10608
+ }, z.core.$strip>>;
10609
+ }, z.core.$strip>], "type">;
10610
+ unitConfig: z.ZodOptional<z.ZodObject<{
10611
+ operation: z.ZodEnum<{
10612
+ divide: "divide";
10613
+ multiply: "multiply";
10614
+ }>;
10615
+ conversionFactor: z.ZodString;
10616
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10617
+ ceiling: "ceiling";
10618
+ floor: "floor";
10619
+ half_up: "half_up";
10620
+ none: "none";
10621
+ }>>>;
10622
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10623
+ displayUnit: z.ZodOptional<z.ZodString>;
10624
+ }, z.core.$strip>>;
10625
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10626
+ commitments: z.ZodOptional<z.ZodObject<{
10627
+ minimumAmount: z.ZodOptional<z.ZodString>;
10628
+ maximumAmount: z.ZodOptional<z.ZodString>;
10629
+ }, z.core.$strip>>;
10630
+ discounts: z.ZodOptional<z.ZodObject<{
10631
+ percentage: z.ZodOptional<z.ZodNumber>;
10632
+ usage: z.ZodOptional<z.ZodString>;
10633
+ }, z.core.$strip>>;
10634
+ taxConfig: z.ZodOptional<z.ZodObject<{
10635
+ behavior: z.ZodOptional<z.ZodEnum<{
10636
+ exclusive: "exclusive";
10637
+ inclusive: "inclusive";
10638
+ }>>;
10639
+ code: z.ZodObject<{
10640
+ id: z.ZodString;
10641
+ }, z.core.$strip>;
10642
+ }, z.core.$strip>>;
10643
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10644
+ type: z.ZodLiteral<"metered">;
10645
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10646
+ limit: z.ZodOptional<z.ZodNumber>;
10647
+ usagePeriod: z.ZodOptional<z.ZodString>;
10648
+ }, z.core.$strip>, z.ZodObject<{
10649
+ type: z.ZodLiteral<"static">;
10650
+ config: z.ZodUnknown;
10651
+ }, z.core.$strip>, z.ZodObject<{
10652
+ type: z.ZodLiteral<"boolean">;
10653
+ }, z.core.$strip>], "type">>;
10654
+ }, z.core.$strip>;
10655
+ }, z.core.$strip>>;
10656
+ }, z.core.$strip>>;
10657
+ }, z.core.$strip>;
10658
+ }, z.core.$strip>;
9933
10659
  export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
9934
10660
  id: z.ZodString;
9935
10661
  description: z.ZodOptional<z.ZodString>;
@@ -12943,8 +13669,17 @@ export declare const createSubscriptionResponse: z.ZodObject<{
12943
13669
  createdAt: z.ZodDate;
12944
13670
  updatedAt: z.ZodDate;
12945
13671
  deletedAt: z.ZodOptional<z.ZodDate>;
13672
+ name: z.ZodString;
13673
+ description: z.ZodOptional<z.ZodString>;
13674
+ activeFrom: z.ZodDate;
13675
+ activeTo: z.ZodOptional<z.ZodDate>;
12946
13676
  customerId: z.ZodString;
12947
13677
  planId: z.ZodOptional<z.ZodString>;
13678
+ plan: z.ZodOptional<z.ZodObject<{
13679
+ id: z.ZodString;
13680
+ key: z.ZodString;
13681
+ version: z.ZodNumber;
13682
+ }, z.core.$strip>>;
12948
13683
  invoiceCurrency: z.ZodString;
12949
13684
  costBasisMode: z.ZodDefault<z.ZodEnum<{
12950
13685
  dynamic: "dynamic";
@@ -12955,6 +13690,14 @@ export declare const createSubscriptionResponse: z.ZodObject<{
12955
13690
  invoiceCurrency: z.ZodString;
12956
13691
  costBasisId: z.ZodString;
12957
13692
  }, z.core.$strip>>;
13693
+ billingCadence: z.ZodString;
13694
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
13695
+ enabled: z.ZodBoolean;
13696
+ mode: z.ZodEnum<{
13697
+ no_proration: "no_proration";
13698
+ prorate_prices: "prorate_prices";
13699
+ }>;
13700
+ }, z.core.$strip>>;
12958
13701
  billingAnchor: z.ZodDate;
12959
13702
  status: z.ZodEnum<{
12960
13703
  active: "active";
@@ -12966,6 +13709,117 @@ export declare const createSubscriptionResponse: z.ZodObject<{
12966
13709
  credit_only: "credit_only";
12967
13710
  credit_then_invoice: "credit_then_invoice";
12968
13711
  }>>;
13712
+ currentPeriod: z.ZodOptional<z.ZodObject<{
13713
+ from: z.ZodDate;
13714
+ to: z.ZodDate;
13715
+ }, z.core.$strip>>;
13716
+ phases: z.ZodArray<z.ZodObject<{
13717
+ id: z.ZodString;
13718
+ name: z.ZodString;
13719
+ description: z.ZodOptional<z.ZodString>;
13720
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13721
+ createdAt: z.ZodDate;
13722
+ updatedAt: z.ZodDate;
13723
+ deletedAt: z.ZodOptional<z.ZodDate>;
13724
+ key: z.ZodString;
13725
+ activeFrom: z.ZodDate;
13726
+ activeTo: z.ZodOptional<z.ZodDate>;
13727
+ items: z.ZodArray<z.ZodObject<{
13728
+ id: z.ZodString;
13729
+ activeFrom: z.ZodDate;
13730
+ activeTo: z.ZodOptional<z.ZodDate>;
13731
+ rateCard: z.ZodObject<{
13732
+ name: z.ZodString;
13733
+ description: z.ZodOptional<z.ZodString>;
13734
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13735
+ key: z.ZodString;
13736
+ feature: z.ZodOptional<z.ZodObject<{
13737
+ id: z.ZodString;
13738
+ }, z.core.$strip>>;
13739
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
13740
+ billingCadence: z.ZodOptional<z.ZodString>;
13741
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
13742
+ type: z.ZodLiteral<"free">;
13743
+ }, z.core.$strip>, z.ZodObject<{
13744
+ type: z.ZodLiteral<"flat">;
13745
+ amount: z.ZodString;
13746
+ }, z.core.$strip>, z.ZodObject<{
13747
+ type: z.ZodLiteral<"unit">;
13748
+ amount: z.ZodString;
13749
+ }, z.core.$strip>, z.ZodObject<{
13750
+ type: z.ZodLiteral<"graduated">;
13751
+ tiers: z.ZodArray<z.ZodObject<{
13752
+ upToAmount: z.ZodOptional<z.ZodString>;
13753
+ flatPrice: z.ZodOptional<z.ZodObject<{
13754
+ type: z.ZodLiteral<"flat">;
13755
+ amount: z.ZodString;
13756
+ }, z.core.$strip>>;
13757
+ unitPrice: z.ZodOptional<z.ZodObject<{
13758
+ type: z.ZodLiteral<"unit">;
13759
+ amount: z.ZodString;
13760
+ }, z.core.$strip>>;
13761
+ }, z.core.$strip>>;
13762
+ }, z.core.$strip>, z.ZodObject<{
13763
+ type: z.ZodLiteral<"volume">;
13764
+ tiers: z.ZodArray<z.ZodObject<{
13765
+ upToAmount: z.ZodOptional<z.ZodString>;
13766
+ flatPrice: z.ZodOptional<z.ZodObject<{
13767
+ type: z.ZodLiteral<"flat">;
13768
+ amount: z.ZodString;
13769
+ }, z.core.$strip>>;
13770
+ unitPrice: z.ZodOptional<z.ZodObject<{
13771
+ type: z.ZodLiteral<"unit">;
13772
+ amount: z.ZodString;
13773
+ }, z.core.$strip>>;
13774
+ }, z.core.$strip>>;
13775
+ }, z.core.$strip>], "type">;
13776
+ unitConfig: z.ZodOptional<z.ZodObject<{
13777
+ operation: z.ZodEnum<{
13778
+ divide: "divide";
13779
+ multiply: "multiply";
13780
+ }>;
13781
+ conversionFactor: z.ZodString;
13782
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
13783
+ ceiling: "ceiling";
13784
+ floor: "floor";
13785
+ half_up: "half_up";
13786
+ none: "none";
13787
+ }>>>;
13788
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13789
+ displayUnit: z.ZodOptional<z.ZodString>;
13790
+ }, z.core.$strip>>;
13791
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
13792
+ commitments: z.ZodOptional<z.ZodObject<{
13793
+ minimumAmount: z.ZodOptional<z.ZodString>;
13794
+ maximumAmount: z.ZodOptional<z.ZodString>;
13795
+ }, z.core.$strip>>;
13796
+ discounts: z.ZodOptional<z.ZodObject<{
13797
+ percentage: z.ZodOptional<z.ZodNumber>;
13798
+ usage: z.ZodOptional<z.ZodString>;
13799
+ }, z.core.$strip>>;
13800
+ taxConfig: z.ZodOptional<z.ZodObject<{
13801
+ behavior: z.ZodOptional<z.ZodEnum<{
13802
+ exclusive: "exclusive";
13803
+ inclusive: "inclusive";
13804
+ }>>;
13805
+ code: z.ZodObject<{
13806
+ id: z.ZodString;
13807
+ }, z.core.$strip>;
13808
+ }, z.core.$strip>>;
13809
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
13810
+ type: z.ZodLiteral<"metered">;
13811
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13812
+ limit: z.ZodOptional<z.ZodNumber>;
13813
+ usagePeriod: z.ZodOptional<z.ZodString>;
13814
+ }, z.core.$strip>, z.ZodObject<{
13815
+ type: z.ZodLiteral<"static">;
13816
+ config: z.ZodUnknown;
13817
+ }, z.core.$strip>, z.ZodObject<{
13818
+ type: z.ZodLiteral<"boolean">;
13819
+ }, z.core.$strip>], "type">>;
13820
+ }, z.core.$strip>;
13821
+ }, z.core.$strip>>;
13822
+ }, z.core.$strip>>;
12969
13823
  }, z.core.$strip>;
12970
13824
  export declare const listSubscriptionsQueryParams: z.ZodObject<{
12971
13825
  page: z.ZodOptional<z.ZodObject<{
@@ -13011,8 +13865,17 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
13011
13865
  createdAt: z.ZodDate;
13012
13866
  updatedAt: z.ZodDate;
13013
13867
  deletedAt: z.ZodOptional<z.ZodDate>;
13868
+ name: z.ZodString;
13869
+ description: z.ZodOptional<z.ZodString>;
13870
+ activeFrom: z.ZodDate;
13871
+ activeTo: z.ZodOptional<z.ZodDate>;
13014
13872
  customerId: z.ZodString;
13015
13873
  planId: z.ZodOptional<z.ZodString>;
13874
+ plan: z.ZodOptional<z.ZodObject<{
13875
+ id: z.ZodString;
13876
+ key: z.ZodString;
13877
+ version: z.ZodNumber;
13878
+ }, z.core.$strip>>;
13016
13879
  invoiceCurrency: z.ZodString;
13017
13880
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13018
13881
  dynamic: "dynamic";
@@ -13023,6 +13886,14 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
13023
13886
  invoiceCurrency: z.ZodString;
13024
13887
  costBasisId: z.ZodString;
13025
13888
  }, z.core.$strip>>;
13889
+ billingCadence: z.ZodString;
13890
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
13891
+ enabled: z.ZodBoolean;
13892
+ mode: z.ZodEnum<{
13893
+ no_proration: "no_proration";
13894
+ prorate_prices: "prorate_prices";
13895
+ }>;
13896
+ }, z.core.$strip>>;
13026
13897
  billingAnchor: z.ZodDate;
13027
13898
  status: z.ZodEnum<{
13028
13899
  active: "active";
@@ -13034,6 +13905,117 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
13034
13905
  credit_only: "credit_only";
13035
13906
  credit_then_invoice: "credit_then_invoice";
13036
13907
  }>>;
13908
+ currentPeriod: z.ZodOptional<z.ZodObject<{
13909
+ from: z.ZodDate;
13910
+ to: z.ZodDate;
13911
+ }, z.core.$strip>>;
13912
+ phases: z.ZodArray<z.ZodObject<{
13913
+ id: z.ZodString;
13914
+ name: z.ZodString;
13915
+ description: z.ZodOptional<z.ZodString>;
13916
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13917
+ createdAt: z.ZodDate;
13918
+ updatedAt: z.ZodDate;
13919
+ deletedAt: z.ZodOptional<z.ZodDate>;
13920
+ key: z.ZodString;
13921
+ activeFrom: z.ZodDate;
13922
+ activeTo: z.ZodOptional<z.ZodDate>;
13923
+ items: z.ZodArray<z.ZodObject<{
13924
+ id: z.ZodString;
13925
+ activeFrom: z.ZodDate;
13926
+ activeTo: z.ZodOptional<z.ZodDate>;
13927
+ rateCard: z.ZodObject<{
13928
+ name: z.ZodString;
13929
+ description: z.ZodOptional<z.ZodString>;
13930
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13931
+ key: z.ZodString;
13932
+ feature: z.ZodOptional<z.ZodObject<{
13933
+ id: z.ZodString;
13934
+ }, z.core.$strip>>;
13935
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
13936
+ billingCadence: z.ZodOptional<z.ZodString>;
13937
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
13938
+ type: z.ZodLiteral<"free">;
13939
+ }, z.core.$strip>, z.ZodObject<{
13940
+ type: z.ZodLiteral<"flat">;
13941
+ amount: z.ZodString;
13942
+ }, z.core.$strip>, z.ZodObject<{
13943
+ type: z.ZodLiteral<"unit">;
13944
+ amount: z.ZodString;
13945
+ }, z.core.$strip>, z.ZodObject<{
13946
+ type: z.ZodLiteral<"graduated">;
13947
+ tiers: z.ZodArray<z.ZodObject<{
13948
+ upToAmount: z.ZodOptional<z.ZodString>;
13949
+ flatPrice: z.ZodOptional<z.ZodObject<{
13950
+ type: z.ZodLiteral<"flat">;
13951
+ amount: z.ZodString;
13952
+ }, z.core.$strip>>;
13953
+ unitPrice: z.ZodOptional<z.ZodObject<{
13954
+ type: z.ZodLiteral<"unit">;
13955
+ amount: z.ZodString;
13956
+ }, z.core.$strip>>;
13957
+ }, z.core.$strip>>;
13958
+ }, z.core.$strip>, z.ZodObject<{
13959
+ type: z.ZodLiteral<"volume">;
13960
+ tiers: z.ZodArray<z.ZodObject<{
13961
+ upToAmount: z.ZodOptional<z.ZodString>;
13962
+ flatPrice: z.ZodOptional<z.ZodObject<{
13963
+ type: z.ZodLiteral<"flat">;
13964
+ amount: z.ZodString;
13965
+ }, z.core.$strip>>;
13966
+ unitPrice: z.ZodOptional<z.ZodObject<{
13967
+ type: z.ZodLiteral<"unit">;
13968
+ amount: z.ZodString;
13969
+ }, z.core.$strip>>;
13970
+ }, z.core.$strip>>;
13971
+ }, z.core.$strip>], "type">;
13972
+ unitConfig: z.ZodOptional<z.ZodObject<{
13973
+ operation: z.ZodEnum<{
13974
+ divide: "divide";
13975
+ multiply: "multiply";
13976
+ }>;
13977
+ conversionFactor: z.ZodString;
13978
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
13979
+ ceiling: "ceiling";
13980
+ floor: "floor";
13981
+ half_up: "half_up";
13982
+ none: "none";
13983
+ }>>>;
13984
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13985
+ displayUnit: z.ZodOptional<z.ZodString>;
13986
+ }, z.core.$strip>>;
13987
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
13988
+ commitments: z.ZodOptional<z.ZodObject<{
13989
+ minimumAmount: z.ZodOptional<z.ZodString>;
13990
+ maximumAmount: z.ZodOptional<z.ZodString>;
13991
+ }, z.core.$strip>>;
13992
+ discounts: z.ZodOptional<z.ZodObject<{
13993
+ percentage: z.ZodOptional<z.ZodNumber>;
13994
+ usage: z.ZodOptional<z.ZodString>;
13995
+ }, z.core.$strip>>;
13996
+ taxConfig: z.ZodOptional<z.ZodObject<{
13997
+ behavior: z.ZodOptional<z.ZodEnum<{
13998
+ exclusive: "exclusive";
13999
+ inclusive: "inclusive";
14000
+ }>>;
14001
+ code: z.ZodObject<{
14002
+ id: z.ZodString;
14003
+ }, z.core.$strip>;
14004
+ }, z.core.$strip>>;
14005
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14006
+ type: z.ZodLiteral<"metered">;
14007
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14008
+ limit: z.ZodOptional<z.ZodNumber>;
14009
+ usagePeriod: z.ZodOptional<z.ZodString>;
14010
+ }, z.core.$strip>, z.ZodObject<{
14011
+ type: z.ZodLiteral<"static">;
14012
+ config: z.ZodUnknown;
14013
+ }, z.core.$strip>, z.ZodObject<{
14014
+ type: z.ZodLiteral<"boolean">;
14015
+ }, z.core.$strip>], "type">>;
14016
+ }, z.core.$strip>;
14017
+ }, z.core.$strip>>;
14018
+ }, z.core.$strip>>;
13037
14019
  }, z.core.$strip>>;
13038
14020
  meta: z.ZodObject<{
13039
14021
  page: z.ZodObject<{
@@ -13052,8 +14034,17 @@ export declare const getSubscriptionResponse: z.ZodObject<{
13052
14034
  createdAt: z.ZodDate;
13053
14035
  updatedAt: z.ZodDate;
13054
14036
  deletedAt: z.ZodOptional<z.ZodDate>;
14037
+ name: z.ZodString;
14038
+ description: z.ZodOptional<z.ZodString>;
14039
+ activeFrom: z.ZodDate;
14040
+ activeTo: z.ZodOptional<z.ZodDate>;
13055
14041
  customerId: z.ZodString;
13056
14042
  planId: z.ZodOptional<z.ZodString>;
14043
+ plan: z.ZodOptional<z.ZodObject<{
14044
+ id: z.ZodString;
14045
+ key: z.ZodString;
14046
+ version: z.ZodNumber;
14047
+ }, z.core.$strip>>;
13057
14048
  invoiceCurrency: z.ZodString;
13058
14049
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13059
14050
  dynamic: "dynamic";
@@ -13064,6 +14055,14 @@ export declare const getSubscriptionResponse: z.ZodObject<{
13064
14055
  invoiceCurrency: z.ZodString;
13065
14056
  costBasisId: z.ZodString;
13066
14057
  }, z.core.$strip>>;
14058
+ billingCadence: z.ZodString;
14059
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
14060
+ enabled: z.ZodBoolean;
14061
+ mode: z.ZodEnum<{
14062
+ no_proration: "no_proration";
14063
+ prorate_prices: "prorate_prices";
14064
+ }>;
14065
+ }, z.core.$strip>>;
13067
14066
  billingAnchor: z.ZodDate;
13068
14067
  status: z.ZodEnum<{
13069
14068
  active: "active";
@@ -13075,6 +14074,117 @@ export declare const getSubscriptionResponse: z.ZodObject<{
13075
14074
  credit_only: "credit_only";
13076
14075
  credit_then_invoice: "credit_then_invoice";
13077
14076
  }>>;
14077
+ currentPeriod: z.ZodOptional<z.ZodObject<{
14078
+ from: z.ZodDate;
14079
+ to: z.ZodDate;
14080
+ }, z.core.$strip>>;
14081
+ phases: z.ZodArray<z.ZodObject<{
14082
+ id: z.ZodString;
14083
+ name: z.ZodString;
14084
+ description: z.ZodOptional<z.ZodString>;
14085
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14086
+ createdAt: z.ZodDate;
14087
+ updatedAt: z.ZodDate;
14088
+ deletedAt: z.ZodOptional<z.ZodDate>;
14089
+ key: z.ZodString;
14090
+ activeFrom: z.ZodDate;
14091
+ activeTo: z.ZodOptional<z.ZodDate>;
14092
+ items: z.ZodArray<z.ZodObject<{
14093
+ id: z.ZodString;
14094
+ activeFrom: z.ZodDate;
14095
+ activeTo: z.ZodOptional<z.ZodDate>;
14096
+ rateCard: z.ZodObject<{
14097
+ name: z.ZodString;
14098
+ description: z.ZodOptional<z.ZodString>;
14099
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14100
+ key: z.ZodString;
14101
+ feature: z.ZodOptional<z.ZodObject<{
14102
+ id: z.ZodString;
14103
+ }, z.core.$strip>>;
14104
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14105
+ billingCadence: z.ZodOptional<z.ZodString>;
14106
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
14107
+ type: z.ZodLiteral<"free">;
14108
+ }, z.core.$strip>, z.ZodObject<{
14109
+ type: z.ZodLiteral<"flat">;
14110
+ amount: z.ZodString;
14111
+ }, z.core.$strip>, z.ZodObject<{
14112
+ type: z.ZodLiteral<"unit">;
14113
+ amount: z.ZodString;
14114
+ }, z.core.$strip>, z.ZodObject<{
14115
+ type: z.ZodLiteral<"graduated">;
14116
+ tiers: z.ZodArray<z.ZodObject<{
14117
+ upToAmount: z.ZodOptional<z.ZodString>;
14118
+ flatPrice: z.ZodOptional<z.ZodObject<{
14119
+ type: z.ZodLiteral<"flat">;
14120
+ amount: z.ZodString;
14121
+ }, z.core.$strip>>;
14122
+ unitPrice: z.ZodOptional<z.ZodObject<{
14123
+ type: z.ZodLiteral<"unit">;
14124
+ amount: z.ZodString;
14125
+ }, z.core.$strip>>;
14126
+ }, z.core.$strip>>;
14127
+ }, z.core.$strip>, z.ZodObject<{
14128
+ type: z.ZodLiteral<"volume">;
14129
+ tiers: z.ZodArray<z.ZodObject<{
14130
+ upToAmount: z.ZodOptional<z.ZodString>;
14131
+ flatPrice: z.ZodOptional<z.ZodObject<{
14132
+ type: z.ZodLiteral<"flat">;
14133
+ amount: z.ZodString;
14134
+ }, z.core.$strip>>;
14135
+ unitPrice: z.ZodOptional<z.ZodObject<{
14136
+ type: z.ZodLiteral<"unit">;
14137
+ amount: z.ZodString;
14138
+ }, z.core.$strip>>;
14139
+ }, z.core.$strip>>;
14140
+ }, z.core.$strip>], "type">;
14141
+ unitConfig: z.ZodOptional<z.ZodObject<{
14142
+ operation: z.ZodEnum<{
14143
+ divide: "divide";
14144
+ multiply: "multiply";
14145
+ }>;
14146
+ conversionFactor: z.ZodString;
14147
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14148
+ ceiling: "ceiling";
14149
+ floor: "floor";
14150
+ half_up: "half_up";
14151
+ none: "none";
14152
+ }>>>;
14153
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14154
+ displayUnit: z.ZodOptional<z.ZodString>;
14155
+ }, z.core.$strip>>;
14156
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
14157
+ commitments: z.ZodOptional<z.ZodObject<{
14158
+ minimumAmount: z.ZodOptional<z.ZodString>;
14159
+ maximumAmount: z.ZodOptional<z.ZodString>;
14160
+ }, z.core.$strip>>;
14161
+ discounts: z.ZodOptional<z.ZodObject<{
14162
+ percentage: z.ZodOptional<z.ZodNumber>;
14163
+ usage: z.ZodOptional<z.ZodString>;
14164
+ }, z.core.$strip>>;
14165
+ taxConfig: z.ZodOptional<z.ZodObject<{
14166
+ behavior: z.ZodOptional<z.ZodEnum<{
14167
+ exclusive: "exclusive";
14168
+ inclusive: "inclusive";
14169
+ }>>;
14170
+ code: z.ZodObject<{
14171
+ id: z.ZodString;
14172
+ }, z.core.$strip>;
14173
+ }, z.core.$strip>>;
14174
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14175
+ type: z.ZodLiteral<"metered">;
14176
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14177
+ limit: z.ZodOptional<z.ZodNumber>;
14178
+ usagePeriod: z.ZodOptional<z.ZodString>;
14179
+ }, z.core.$strip>, z.ZodObject<{
14180
+ type: z.ZodLiteral<"static">;
14181
+ config: z.ZodUnknown;
14182
+ }, z.core.$strip>, z.ZodObject<{
14183
+ type: z.ZodLiteral<"boolean">;
14184
+ }, z.core.$strip>], "type">>;
14185
+ }, z.core.$strip>;
14186
+ }, z.core.$strip>>;
14187
+ }, z.core.$strip>>;
13078
14188
  }, z.core.$strip>;
13079
14189
  export declare const cancelSubscriptionPathParams: z.ZodObject<{
13080
14190
  subscriptionId: z.ZodString;
@@ -13091,8 +14201,17 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
13091
14201
  createdAt: z.ZodDate;
13092
14202
  updatedAt: z.ZodDate;
13093
14203
  deletedAt: z.ZodOptional<z.ZodDate>;
14204
+ name: z.ZodString;
14205
+ description: z.ZodOptional<z.ZodString>;
14206
+ activeFrom: z.ZodDate;
14207
+ activeTo: z.ZodOptional<z.ZodDate>;
13094
14208
  customerId: z.ZodString;
13095
14209
  planId: z.ZodOptional<z.ZodString>;
14210
+ plan: z.ZodOptional<z.ZodObject<{
14211
+ id: z.ZodString;
14212
+ key: z.ZodString;
14213
+ version: z.ZodNumber;
14214
+ }, z.core.$strip>>;
13096
14215
  invoiceCurrency: z.ZodString;
13097
14216
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13098
14217
  dynamic: "dynamic";
@@ -13103,6 +14222,14 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
13103
14222
  invoiceCurrency: z.ZodString;
13104
14223
  costBasisId: z.ZodString;
13105
14224
  }, z.core.$strip>>;
14225
+ billingCadence: z.ZodString;
14226
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
14227
+ enabled: z.ZodBoolean;
14228
+ mode: z.ZodEnum<{
14229
+ no_proration: "no_proration";
14230
+ prorate_prices: "prorate_prices";
14231
+ }>;
14232
+ }, z.core.$strip>>;
13106
14233
  billingAnchor: z.ZodDate;
13107
14234
  status: z.ZodEnum<{
13108
14235
  active: "active";
@@ -13114,6 +14241,117 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
13114
14241
  credit_only: "credit_only";
13115
14242
  credit_then_invoice: "credit_then_invoice";
13116
14243
  }>>;
14244
+ currentPeriod: z.ZodOptional<z.ZodObject<{
14245
+ from: z.ZodDate;
14246
+ to: z.ZodDate;
14247
+ }, z.core.$strip>>;
14248
+ phases: z.ZodArray<z.ZodObject<{
14249
+ id: z.ZodString;
14250
+ name: z.ZodString;
14251
+ description: z.ZodOptional<z.ZodString>;
14252
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14253
+ createdAt: z.ZodDate;
14254
+ updatedAt: z.ZodDate;
14255
+ deletedAt: z.ZodOptional<z.ZodDate>;
14256
+ key: z.ZodString;
14257
+ activeFrom: z.ZodDate;
14258
+ activeTo: z.ZodOptional<z.ZodDate>;
14259
+ items: z.ZodArray<z.ZodObject<{
14260
+ id: z.ZodString;
14261
+ activeFrom: z.ZodDate;
14262
+ activeTo: z.ZodOptional<z.ZodDate>;
14263
+ rateCard: z.ZodObject<{
14264
+ name: z.ZodString;
14265
+ description: z.ZodOptional<z.ZodString>;
14266
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14267
+ key: z.ZodString;
14268
+ feature: z.ZodOptional<z.ZodObject<{
14269
+ id: z.ZodString;
14270
+ }, z.core.$strip>>;
14271
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14272
+ billingCadence: z.ZodOptional<z.ZodString>;
14273
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
14274
+ type: z.ZodLiteral<"free">;
14275
+ }, z.core.$strip>, z.ZodObject<{
14276
+ type: z.ZodLiteral<"flat">;
14277
+ amount: z.ZodString;
14278
+ }, z.core.$strip>, z.ZodObject<{
14279
+ type: z.ZodLiteral<"unit">;
14280
+ amount: z.ZodString;
14281
+ }, z.core.$strip>, z.ZodObject<{
14282
+ type: z.ZodLiteral<"graduated">;
14283
+ tiers: z.ZodArray<z.ZodObject<{
14284
+ upToAmount: z.ZodOptional<z.ZodString>;
14285
+ flatPrice: z.ZodOptional<z.ZodObject<{
14286
+ type: z.ZodLiteral<"flat">;
14287
+ amount: z.ZodString;
14288
+ }, z.core.$strip>>;
14289
+ unitPrice: z.ZodOptional<z.ZodObject<{
14290
+ type: z.ZodLiteral<"unit">;
14291
+ amount: z.ZodString;
14292
+ }, z.core.$strip>>;
14293
+ }, z.core.$strip>>;
14294
+ }, z.core.$strip>, z.ZodObject<{
14295
+ type: z.ZodLiteral<"volume">;
14296
+ tiers: z.ZodArray<z.ZodObject<{
14297
+ upToAmount: z.ZodOptional<z.ZodString>;
14298
+ flatPrice: z.ZodOptional<z.ZodObject<{
14299
+ type: z.ZodLiteral<"flat">;
14300
+ amount: z.ZodString;
14301
+ }, z.core.$strip>>;
14302
+ unitPrice: z.ZodOptional<z.ZodObject<{
14303
+ type: z.ZodLiteral<"unit">;
14304
+ amount: z.ZodString;
14305
+ }, z.core.$strip>>;
14306
+ }, z.core.$strip>>;
14307
+ }, z.core.$strip>], "type">;
14308
+ unitConfig: z.ZodOptional<z.ZodObject<{
14309
+ operation: z.ZodEnum<{
14310
+ divide: "divide";
14311
+ multiply: "multiply";
14312
+ }>;
14313
+ conversionFactor: z.ZodString;
14314
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14315
+ ceiling: "ceiling";
14316
+ floor: "floor";
14317
+ half_up: "half_up";
14318
+ none: "none";
14319
+ }>>>;
14320
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14321
+ displayUnit: z.ZodOptional<z.ZodString>;
14322
+ }, z.core.$strip>>;
14323
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
14324
+ commitments: z.ZodOptional<z.ZodObject<{
14325
+ minimumAmount: z.ZodOptional<z.ZodString>;
14326
+ maximumAmount: z.ZodOptional<z.ZodString>;
14327
+ }, z.core.$strip>>;
14328
+ discounts: z.ZodOptional<z.ZodObject<{
14329
+ percentage: z.ZodOptional<z.ZodNumber>;
14330
+ usage: z.ZodOptional<z.ZodString>;
14331
+ }, z.core.$strip>>;
14332
+ taxConfig: z.ZodOptional<z.ZodObject<{
14333
+ behavior: z.ZodOptional<z.ZodEnum<{
14334
+ exclusive: "exclusive";
14335
+ inclusive: "inclusive";
14336
+ }>>;
14337
+ code: z.ZodObject<{
14338
+ id: z.ZodString;
14339
+ }, z.core.$strip>;
14340
+ }, z.core.$strip>>;
14341
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14342
+ type: z.ZodLiteral<"metered">;
14343
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14344
+ limit: z.ZodOptional<z.ZodNumber>;
14345
+ usagePeriod: z.ZodOptional<z.ZodString>;
14346
+ }, z.core.$strip>, z.ZodObject<{
14347
+ type: z.ZodLiteral<"static">;
14348
+ config: z.ZodUnknown;
14349
+ }, z.core.$strip>, z.ZodObject<{
14350
+ type: z.ZodLiteral<"boolean">;
14351
+ }, z.core.$strip>], "type">>;
14352
+ }, z.core.$strip>;
14353
+ }, z.core.$strip>>;
14354
+ }, z.core.$strip>>;
13117
14355
  }, z.core.$strip>;
13118
14356
  export declare const unscheduleCancelationPathParams: z.ZodObject<{
13119
14357
  subscriptionId: z.ZodString;
@@ -13124,8 +14362,17 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
13124
14362
  createdAt: z.ZodDate;
13125
14363
  updatedAt: z.ZodDate;
13126
14364
  deletedAt: z.ZodOptional<z.ZodDate>;
14365
+ name: z.ZodString;
14366
+ description: z.ZodOptional<z.ZodString>;
14367
+ activeFrom: z.ZodDate;
14368
+ activeTo: z.ZodOptional<z.ZodDate>;
13127
14369
  customerId: z.ZodString;
13128
14370
  planId: z.ZodOptional<z.ZodString>;
14371
+ plan: z.ZodOptional<z.ZodObject<{
14372
+ id: z.ZodString;
14373
+ key: z.ZodString;
14374
+ version: z.ZodNumber;
14375
+ }, z.core.$strip>>;
13129
14376
  invoiceCurrency: z.ZodString;
13130
14377
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13131
14378
  dynamic: "dynamic";
@@ -13136,6 +14383,14 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
13136
14383
  invoiceCurrency: z.ZodString;
13137
14384
  costBasisId: z.ZodString;
13138
14385
  }, z.core.$strip>>;
14386
+ billingCadence: z.ZodString;
14387
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
14388
+ enabled: z.ZodBoolean;
14389
+ mode: z.ZodEnum<{
14390
+ no_proration: "no_proration";
14391
+ prorate_prices: "prorate_prices";
14392
+ }>;
14393
+ }, z.core.$strip>>;
13139
14394
  billingAnchor: z.ZodDate;
13140
14395
  status: z.ZodEnum<{
13141
14396
  active: "active";
@@ -13147,6 +14402,117 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
13147
14402
  credit_only: "credit_only";
13148
14403
  credit_then_invoice: "credit_then_invoice";
13149
14404
  }>>;
14405
+ currentPeriod: z.ZodOptional<z.ZodObject<{
14406
+ from: z.ZodDate;
14407
+ to: z.ZodDate;
14408
+ }, z.core.$strip>>;
14409
+ phases: z.ZodArray<z.ZodObject<{
14410
+ id: z.ZodString;
14411
+ name: z.ZodString;
14412
+ description: z.ZodOptional<z.ZodString>;
14413
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14414
+ createdAt: z.ZodDate;
14415
+ updatedAt: z.ZodDate;
14416
+ deletedAt: z.ZodOptional<z.ZodDate>;
14417
+ key: z.ZodString;
14418
+ activeFrom: z.ZodDate;
14419
+ activeTo: z.ZodOptional<z.ZodDate>;
14420
+ items: z.ZodArray<z.ZodObject<{
14421
+ id: z.ZodString;
14422
+ activeFrom: z.ZodDate;
14423
+ activeTo: z.ZodOptional<z.ZodDate>;
14424
+ rateCard: z.ZodObject<{
14425
+ name: z.ZodString;
14426
+ description: z.ZodOptional<z.ZodString>;
14427
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14428
+ key: z.ZodString;
14429
+ feature: z.ZodOptional<z.ZodObject<{
14430
+ id: z.ZodString;
14431
+ }, z.core.$strip>>;
14432
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14433
+ billingCadence: z.ZodOptional<z.ZodString>;
14434
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
14435
+ type: z.ZodLiteral<"free">;
14436
+ }, z.core.$strip>, z.ZodObject<{
14437
+ type: z.ZodLiteral<"flat">;
14438
+ amount: z.ZodString;
14439
+ }, z.core.$strip>, z.ZodObject<{
14440
+ type: z.ZodLiteral<"unit">;
14441
+ amount: z.ZodString;
14442
+ }, z.core.$strip>, z.ZodObject<{
14443
+ type: z.ZodLiteral<"graduated">;
14444
+ tiers: z.ZodArray<z.ZodObject<{
14445
+ upToAmount: z.ZodOptional<z.ZodString>;
14446
+ flatPrice: z.ZodOptional<z.ZodObject<{
14447
+ type: z.ZodLiteral<"flat">;
14448
+ amount: z.ZodString;
14449
+ }, z.core.$strip>>;
14450
+ unitPrice: z.ZodOptional<z.ZodObject<{
14451
+ type: z.ZodLiteral<"unit">;
14452
+ amount: z.ZodString;
14453
+ }, z.core.$strip>>;
14454
+ }, z.core.$strip>>;
14455
+ }, z.core.$strip>, z.ZodObject<{
14456
+ type: z.ZodLiteral<"volume">;
14457
+ tiers: z.ZodArray<z.ZodObject<{
14458
+ upToAmount: z.ZodOptional<z.ZodString>;
14459
+ flatPrice: z.ZodOptional<z.ZodObject<{
14460
+ type: z.ZodLiteral<"flat">;
14461
+ amount: z.ZodString;
14462
+ }, z.core.$strip>>;
14463
+ unitPrice: z.ZodOptional<z.ZodObject<{
14464
+ type: z.ZodLiteral<"unit">;
14465
+ amount: z.ZodString;
14466
+ }, z.core.$strip>>;
14467
+ }, z.core.$strip>>;
14468
+ }, z.core.$strip>], "type">;
14469
+ unitConfig: z.ZodOptional<z.ZodObject<{
14470
+ operation: z.ZodEnum<{
14471
+ divide: "divide";
14472
+ multiply: "multiply";
14473
+ }>;
14474
+ conversionFactor: z.ZodString;
14475
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14476
+ ceiling: "ceiling";
14477
+ floor: "floor";
14478
+ half_up: "half_up";
14479
+ none: "none";
14480
+ }>>>;
14481
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14482
+ displayUnit: z.ZodOptional<z.ZodString>;
14483
+ }, z.core.$strip>>;
14484
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
14485
+ commitments: z.ZodOptional<z.ZodObject<{
14486
+ minimumAmount: z.ZodOptional<z.ZodString>;
14487
+ maximumAmount: z.ZodOptional<z.ZodString>;
14488
+ }, z.core.$strip>>;
14489
+ discounts: z.ZodOptional<z.ZodObject<{
14490
+ percentage: z.ZodOptional<z.ZodNumber>;
14491
+ usage: z.ZodOptional<z.ZodString>;
14492
+ }, z.core.$strip>>;
14493
+ taxConfig: z.ZodOptional<z.ZodObject<{
14494
+ behavior: z.ZodOptional<z.ZodEnum<{
14495
+ exclusive: "exclusive";
14496
+ inclusive: "inclusive";
14497
+ }>>;
14498
+ code: z.ZodObject<{
14499
+ id: z.ZodString;
14500
+ }, z.core.$strip>;
14501
+ }, z.core.$strip>>;
14502
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14503
+ type: z.ZodLiteral<"metered">;
14504
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14505
+ limit: z.ZodOptional<z.ZodNumber>;
14506
+ usagePeriod: z.ZodOptional<z.ZodString>;
14507
+ }, z.core.$strip>, z.ZodObject<{
14508
+ type: z.ZodLiteral<"static">;
14509
+ config: z.ZodUnknown;
14510
+ }, z.core.$strip>, z.ZodObject<{
14511
+ type: z.ZodLiteral<"boolean">;
14512
+ }, z.core.$strip>], "type">>;
14513
+ }, z.core.$strip>;
14514
+ }, z.core.$strip>>;
14515
+ }, z.core.$strip>>;
13150
14516
  }, z.core.$strip>;
13151
14517
  export declare const changeSubscriptionPathParams: z.ZodObject<{
13152
14518
  subscriptionId: z.ZodString;
@@ -13183,8 +14549,17 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13183
14549
  createdAt: z.ZodDate;
13184
14550
  updatedAt: z.ZodDate;
13185
14551
  deletedAt: z.ZodOptional<z.ZodDate>;
14552
+ name: z.ZodString;
14553
+ description: z.ZodOptional<z.ZodString>;
14554
+ activeFrom: z.ZodDate;
14555
+ activeTo: z.ZodOptional<z.ZodDate>;
13186
14556
  customerId: z.ZodString;
13187
14557
  planId: z.ZodOptional<z.ZodString>;
14558
+ plan: z.ZodOptional<z.ZodObject<{
14559
+ id: z.ZodString;
14560
+ key: z.ZodString;
14561
+ version: z.ZodNumber;
14562
+ }, z.core.$strip>>;
13188
14563
  invoiceCurrency: z.ZodString;
13189
14564
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13190
14565
  dynamic: "dynamic";
@@ -13195,6 +14570,14 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13195
14570
  invoiceCurrency: z.ZodString;
13196
14571
  costBasisId: z.ZodString;
13197
14572
  }, z.core.$strip>>;
14573
+ billingCadence: z.ZodString;
14574
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
14575
+ enabled: z.ZodBoolean;
14576
+ mode: z.ZodEnum<{
14577
+ no_proration: "no_proration";
14578
+ prorate_prices: "prorate_prices";
14579
+ }>;
14580
+ }, z.core.$strip>>;
13198
14581
  billingAnchor: z.ZodDate;
13199
14582
  status: z.ZodEnum<{
13200
14583
  active: "active";
@@ -13206,6 +14589,117 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13206
14589
  credit_only: "credit_only";
13207
14590
  credit_then_invoice: "credit_then_invoice";
13208
14591
  }>>;
14592
+ currentPeriod: z.ZodOptional<z.ZodObject<{
14593
+ from: z.ZodDate;
14594
+ to: z.ZodDate;
14595
+ }, z.core.$strip>>;
14596
+ phases: z.ZodArray<z.ZodObject<{
14597
+ id: z.ZodString;
14598
+ name: z.ZodString;
14599
+ description: z.ZodOptional<z.ZodString>;
14600
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14601
+ createdAt: z.ZodDate;
14602
+ updatedAt: z.ZodDate;
14603
+ deletedAt: z.ZodOptional<z.ZodDate>;
14604
+ key: z.ZodString;
14605
+ activeFrom: z.ZodDate;
14606
+ activeTo: z.ZodOptional<z.ZodDate>;
14607
+ items: z.ZodArray<z.ZodObject<{
14608
+ id: z.ZodString;
14609
+ activeFrom: z.ZodDate;
14610
+ activeTo: z.ZodOptional<z.ZodDate>;
14611
+ rateCard: z.ZodObject<{
14612
+ name: z.ZodString;
14613
+ description: z.ZodOptional<z.ZodString>;
14614
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14615
+ key: z.ZodString;
14616
+ feature: z.ZodOptional<z.ZodObject<{
14617
+ id: z.ZodString;
14618
+ }, z.core.$strip>>;
14619
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14620
+ billingCadence: z.ZodOptional<z.ZodString>;
14621
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
14622
+ type: z.ZodLiteral<"free">;
14623
+ }, z.core.$strip>, z.ZodObject<{
14624
+ type: z.ZodLiteral<"flat">;
14625
+ amount: z.ZodString;
14626
+ }, z.core.$strip>, z.ZodObject<{
14627
+ type: z.ZodLiteral<"unit">;
14628
+ amount: z.ZodString;
14629
+ }, z.core.$strip>, z.ZodObject<{
14630
+ type: z.ZodLiteral<"graduated">;
14631
+ tiers: z.ZodArray<z.ZodObject<{
14632
+ upToAmount: z.ZodOptional<z.ZodString>;
14633
+ flatPrice: z.ZodOptional<z.ZodObject<{
14634
+ type: z.ZodLiteral<"flat">;
14635
+ amount: z.ZodString;
14636
+ }, z.core.$strip>>;
14637
+ unitPrice: z.ZodOptional<z.ZodObject<{
14638
+ type: z.ZodLiteral<"unit">;
14639
+ amount: z.ZodString;
14640
+ }, z.core.$strip>>;
14641
+ }, z.core.$strip>>;
14642
+ }, z.core.$strip>, z.ZodObject<{
14643
+ type: z.ZodLiteral<"volume">;
14644
+ tiers: z.ZodArray<z.ZodObject<{
14645
+ upToAmount: z.ZodOptional<z.ZodString>;
14646
+ flatPrice: z.ZodOptional<z.ZodObject<{
14647
+ type: z.ZodLiteral<"flat">;
14648
+ amount: z.ZodString;
14649
+ }, z.core.$strip>>;
14650
+ unitPrice: z.ZodOptional<z.ZodObject<{
14651
+ type: z.ZodLiteral<"unit">;
14652
+ amount: z.ZodString;
14653
+ }, z.core.$strip>>;
14654
+ }, z.core.$strip>>;
14655
+ }, z.core.$strip>], "type">;
14656
+ unitConfig: z.ZodOptional<z.ZodObject<{
14657
+ operation: z.ZodEnum<{
14658
+ divide: "divide";
14659
+ multiply: "multiply";
14660
+ }>;
14661
+ conversionFactor: z.ZodString;
14662
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14663
+ ceiling: "ceiling";
14664
+ floor: "floor";
14665
+ half_up: "half_up";
14666
+ none: "none";
14667
+ }>>>;
14668
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14669
+ displayUnit: z.ZodOptional<z.ZodString>;
14670
+ }, z.core.$strip>>;
14671
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
14672
+ commitments: z.ZodOptional<z.ZodObject<{
14673
+ minimumAmount: z.ZodOptional<z.ZodString>;
14674
+ maximumAmount: z.ZodOptional<z.ZodString>;
14675
+ }, z.core.$strip>>;
14676
+ discounts: z.ZodOptional<z.ZodObject<{
14677
+ percentage: z.ZodOptional<z.ZodNumber>;
14678
+ usage: z.ZodOptional<z.ZodString>;
14679
+ }, z.core.$strip>>;
14680
+ taxConfig: z.ZodOptional<z.ZodObject<{
14681
+ behavior: z.ZodOptional<z.ZodEnum<{
14682
+ exclusive: "exclusive";
14683
+ inclusive: "inclusive";
14684
+ }>>;
14685
+ code: z.ZodObject<{
14686
+ id: z.ZodString;
14687
+ }, z.core.$strip>;
14688
+ }, z.core.$strip>>;
14689
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14690
+ type: z.ZodLiteral<"metered">;
14691
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14692
+ limit: z.ZodOptional<z.ZodNumber>;
14693
+ usagePeriod: z.ZodOptional<z.ZodString>;
14694
+ }, z.core.$strip>, z.ZodObject<{
14695
+ type: z.ZodLiteral<"static">;
14696
+ config: z.ZodUnknown;
14697
+ }, z.core.$strip>, z.ZodObject<{
14698
+ type: z.ZodLiteral<"boolean">;
14699
+ }, z.core.$strip>], "type">>;
14700
+ }, z.core.$strip>;
14701
+ }, z.core.$strip>>;
14702
+ }, z.core.$strip>>;
13209
14703
  }, z.core.$strip>;
13210
14704
  next: z.ZodObject<{
13211
14705
  id: z.ZodString;
@@ -13213,8 +14707,17 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13213
14707
  createdAt: z.ZodDate;
13214
14708
  updatedAt: z.ZodDate;
13215
14709
  deletedAt: z.ZodOptional<z.ZodDate>;
14710
+ name: z.ZodString;
14711
+ description: z.ZodOptional<z.ZodString>;
14712
+ activeFrom: z.ZodDate;
14713
+ activeTo: z.ZodOptional<z.ZodDate>;
13216
14714
  customerId: z.ZodString;
13217
14715
  planId: z.ZodOptional<z.ZodString>;
14716
+ plan: z.ZodOptional<z.ZodObject<{
14717
+ id: z.ZodString;
14718
+ key: z.ZodString;
14719
+ version: z.ZodNumber;
14720
+ }, z.core.$strip>>;
13218
14721
  invoiceCurrency: z.ZodString;
13219
14722
  costBasisMode: z.ZodDefault<z.ZodEnum<{
13220
14723
  dynamic: "dynamic";
@@ -13225,6 +14728,14 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13225
14728
  invoiceCurrency: z.ZodString;
13226
14729
  costBasisId: z.ZodString;
13227
14730
  }, z.core.$strip>>;
14731
+ billingCadence: z.ZodString;
14732
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
14733
+ enabled: z.ZodBoolean;
14734
+ mode: z.ZodEnum<{
14735
+ no_proration: "no_proration";
14736
+ prorate_prices: "prorate_prices";
14737
+ }>;
14738
+ }, z.core.$strip>>;
13228
14739
  billingAnchor: z.ZodDate;
13229
14740
  status: z.ZodEnum<{
13230
14741
  active: "active";
@@ -13236,6 +14747,117 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13236
14747
  credit_only: "credit_only";
13237
14748
  credit_then_invoice: "credit_then_invoice";
13238
14749
  }>>;
14750
+ currentPeriod: z.ZodOptional<z.ZodObject<{
14751
+ from: z.ZodDate;
14752
+ to: z.ZodDate;
14753
+ }, z.core.$strip>>;
14754
+ phases: z.ZodArray<z.ZodObject<{
14755
+ id: z.ZodString;
14756
+ name: z.ZodString;
14757
+ description: z.ZodOptional<z.ZodString>;
14758
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14759
+ createdAt: z.ZodDate;
14760
+ updatedAt: z.ZodDate;
14761
+ deletedAt: z.ZodOptional<z.ZodDate>;
14762
+ key: z.ZodString;
14763
+ activeFrom: z.ZodDate;
14764
+ activeTo: z.ZodOptional<z.ZodDate>;
14765
+ items: z.ZodArray<z.ZodObject<{
14766
+ id: z.ZodString;
14767
+ activeFrom: z.ZodDate;
14768
+ activeTo: z.ZodOptional<z.ZodDate>;
14769
+ rateCard: z.ZodObject<{
14770
+ name: z.ZodString;
14771
+ description: z.ZodOptional<z.ZodString>;
14772
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14773
+ key: z.ZodString;
14774
+ feature: z.ZodOptional<z.ZodObject<{
14775
+ id: z.ZodString;
14776
+ }, z.core.$strip>>;
14777
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
14778
+ billingCadence: z.ZodOptional<z.ZodString>;
14779
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
14780
+ type: z.ZodLiteral<"free">;
14781
+ }, z.core.$strip>, z.ZodObject<{
14782
+ type: z.ZodLiteral<"flat">;
14783
+ amount: z.ZodString;
14784
+ }, z.core.$strip>, z.ZodObject<{
14785
+ type: z.ZodLiteral<"unit">;
14786
+ amount: z.ZodString;
14787
+ }, z.core.$strip>, z.ZodObject<{
14788
+ type: z.ZodLiteral<"graduated">;
14789
+ tiers: z.ZodArray<z.ZodObject<{
14790
+ upToAmount: z.ZodOptional<z.ZodString>;
14791
+ flatPrice: z.ZodOptional<z.ZodObject<{
14792
+ type: z.ZodLiteral<"flat">;
14793
+ amount: z.ZodString;
14794
+ }, z.core.$strip>>;
14795
+ unitPrice: z.ZodOptional<z.ZodObject<{
14796
+ type: z.ZodLiteral<"unit">;
14797
+ amount: z.ZodString;
14798
+ }, z.core.$strip>>;
14799
+ }, z.core.$strip>>;
14800
+ }, z.core.$strip>, z.ZodObject<{
14801
+ type: z.ZodLiteral<"volume">;
14802
+ tiers: z.ZodArray<z.ZodObject<{
14803
+ upToAmount: z.ZodOptional<z.ZodString>;
14804
+ flatPrice: z.ZodOptional<z.ZodObject<{
14805
+ type: z.ZodLiteral<"flat">;
14806
+ amount: z.ZodString;
14807
+ }, z.core.$strip>>;
14808
+ unitPrice: z.ZodOptional<z.ZodObject<{
14809
+ type: z.ZodLiteral<"unit">;
14810
+ amount: z.ZodString;
14811
+ }, z.core.$strip>>;
14812
+ }, z.core.$strip>>;
14813
+ }, z.core.$strip>], "type">;
14814
+ unitConfig: z.ZodOptional<z.ZodObject<{
14815
+ operation: z.ZodEnum<{
14816
+ divide: "divide";
14817
+ multiply: "multiply";
14818
+ }>;
14819
+ conversionFactor: z.ZodString;
14820
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14821
+ ceiling: "ceiling";
14822
+ floor: "floor";
14823
+ half_up: "half_up";
14824
+ none: "none";
14825
+ }>>>;
14826
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14827
+ displayUnit: z.ZodOptional<z.ZodString>;
14828
+ }, z.core.$strip>>;
14829
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
14830
+ commitments: z.ZodOptional<z.ZodObject<{
14831
+ minimumAmount: z.ZodOptional<z.ZodString>;
14832
+ maximumAmount: z.ZodOptional<z.ZodString>;
14833
+ }, z.core.$strip>>;
14834
+ discounts: z.ZodOptional<z.ZodObject<{
14835
+ percentage: z.ZodOptional<z.ZodNumber>;
14836
+ usage: z.ZodOptional<z.ZodString>;
14837
+ }, z.core.$strip>>;
14838
+ taxConfig: z.ZodOptional<z.ZodObject<{
14839
+ behavior: z.ZodOptional<z.ZodEnum<{
14840
+ exclusive: "exclusive";
14841
+ inclusive: "inclusive";
14842
+ }>>;
14843
+ code: z.ZodObject<{
14844
+ id: z.ZodString;
14845
+ }, z.core.$strip>;
14846
+ }, z.core.$strip>>;
14847
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
14848
+ type: z.ZodLiteral<"metered">;
14849
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14850
+ limit: z.ZodOptional<z.ZodNumber>;
14851
+ usagePeriod: z.ZodOptional<z.ZodString>;
14852
+ }, z.core.$strip>, z.ZodObject<{
14853
+ type: z.ZodLiteral<"static">;
14854
+ config: z.ZodUnknown;
14855
+ }, z.core.$strip>, z.ZodObject<{
14856
+ type: z.ZodLiteral<"boolean">;
14857
+ }, z.core.$strip>], "type">>;
14858
+ }, z.core.$strip>;
14859
+ }, z.core.$strip>>;
14860
+ }, z.core.$strip>>;
13239
14861
  }, z.core.$strip>;
13240
14862
  }, z.core.$strip>;
13241
14863
  export declare const createSubscriptionAddonPathParams: z.ZodObject<{
@@ -21025,10 +22647,6 @@ export declare const subscriptionStatusWire: z.ZodEnum<{
21025
22647
  inactive: "inactive";
21026
22648
  scheduled: "scheduled";
21027
22649
  }>;
21028
- export declare const subscriptionEditTimingEnumWire: z.ZodEnum<{
21029
- immediate: "immediate";
21030
- next_billing_cycle: "next_billing_cycle";
21031
- }>;
21032
22650
  export declare const unitConfigOperationWire: z.ZodEnum<{
21033
22651
  divide: "divide";
21034
22652
  multiply: "multiply";
@@ -21046,6 +22664,10 @@ export declare const rateCardStaticEntitlementWire: z.ZodObject<{
21046
22664
  export declare const rateCardBooleanEntitlementWire: z.ZodObject<{
21047
22665
  type: z.ZodLiteral<"boolean">;
21048
22666
  }, z.core.$strict>;
22667
+ export declare const subscriptionEditTimingEnumWire: z.ZodEnum<{
22668
+ immediate: "immediate";
22669
+ next_billing_cycle: "next_billing_cycle";
22670
+ }>;
21049
22671
  export declare const appTypeWire: z.ZodEnum<{
21050
22672
  external_invoicing: "external_invoicing";
21051
22673
  sandbox: "sandbox";
@@ -21561,10 +23183,10 @@ export declare const subscriptionCostBasisPinWire: z.ZodObject<{
21561
23183
  invoice_currency: z.ZodString;
21562
23184
  cost_basis_id: z.ZodString;
21563
23185
  }, z.core.$strict>;
21564
- export declare const addonReferenceWire: z.ZodObject<{
23186
+ export declare const featureReferenceWire: z.ZodObject<{
21565
23187
  id: z.ZodString;
21566
23188
  }, z.core.$strict>;
21567
- export declare const featureReferenceWire: z.ZodObject<{
23189
+ export declare const addonReferenceWire: z.ZodObject<{
21568
23190
  id: z.ZodString;
21569
23191
  }, z.core.$strict>;
21570
23192
  export declare const appReferenceWire: z.ZodObject<{
@@ -21842,6 +23464,11 @@ export declare const createCreditGrantFiltersWire: z.ZodObject<{
21842
23464
  export declare const creditGrantFiltersWire: z.ZodObject<{
21843
23465
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
21844
23466
  }, z.core.$strict>;
23467
+ export declare const subscriptionPlanReferenceWire: z.ZodObject<{
23468
+ id: z.ZodString;
23469
+ key: z.ZodString;
23470
+ version: z.ZodNumber;
23471
+ }, z.core.$strict>;
21845
23472
  export declare const upsertPlanAddonRequestWire: z.ZodObject<{
21846
23473
  name: z.ZodString;
21847
23474
  description: z.ZodOptional<z.ZodString>;
@@ -22146,6 +23773,13 @@ export declare const rateCardProrationConfigurationWire: z.ZodObject<{
22146
23773
  prorate_prices: "prorate_prices";
22147
23774
  }>;
22148
23775
  }, z.core.$strict>;
23776
+ export declare const subscriptionProRatingConfigWire: z.ZodObject<{
23777
+ enabled: z.ZodBoolean;
23778
+ mode: z.ZodEnum<{
23779
+ no_proration: "no_proration";
23780
+ prorate_prices: "prorate_prices";
23781
+ }>;
23782
+ }, z.core.$strict>;
22149
23783
  export declare const subscriptionCreateWire: z.ZodObject<{
22150
23784
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22151
23785
  settlement_mode: z.ZodOptional<z.ZodEnum<{
@@ -22167,10 +23801,6 @@ export declare const subscriptionCreateWire: z.ZodObject<{
22167
23801
  pinned: "pinned";
22168
23802
  }>>;
22169
23803
  }, z.core.$strict>;
22170
- export declare const subscriptionEditTimingWire: z.ZodUnion<readonly [z.ZodEnum<{
22171
- immediate: "immediate";
22172
- next_billing_cycle: "next_billing_cycle";
22173
- }>, z.ZodString]>;
22174
23804
  export declare const unitConfigWire: z.ZodObject<{
22175
23805
  operation: z.ZodEnum<{
22176
23806
  divide: "divide";
@@ -22186,6 +23816,10 @@ export declare const unitConfigWire: z.ZodObject<{
22186
23816
  precision: z.ZodOptional<z.ZodNumber>;
22187
23817
  display_unit: z.ZodOptional<z.ZodString>;
22188
23818
  }, z.core.$strict>;
23819
+ export declare const subscriptionEditTimingWire: z.ZodUnion<readonly [z.ZodEnum<{
23820
+ immediate: "immediate";
23821
+ next_billing_cycle: "next_billing_cycle";
23822
+ }>, z.ZodString]>;
22189
23823
  export declare const taxCodeAppMappingWire: z.ZodObject<{
22190
23824
  app_type: z.ZodEnum<{
22191
23825
  external_invoicing: "external_invoicing";
@@ -22796,36 +24430,6 @@ export declare const updateOrganizationDefaultTaxCodesRequestWire: z.ZodObject<{
22796
24430
  id: z.ZodString;
22797
24431
  }, z.core.$strict>>;
22798
24432
  }, z.core.$strict>;
22799
- export declare const subscriptionWire: z.ZodObject<{
22800
- id: z.ZodString;
22801
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22802
- created_at: z.ZodString;
22803
- updated_at: z.ZodString;
22804
- deleted_at: z.ZodOptional<z.ZodString>;
22805
- customer_id: z.ZodString;
22806
- plan_id: z.ZodOptional<z.ZodString>;
22807
- invoice_currency: z.ZodString;
22808
- cost_basis_mode: z.ZodEnum<{
22809
- dynamic: "dynamic";
22810
- pinned: "pinned";
22811
- }>;
22812
- cost_basis_pins: z.ZodArray<z.ZodObject<{
22813
- custom_currency_id: z.ZodString;
22814
- invoice_currency: z.ZodString;
22815
- cost_basis_id: z.ZodString;
22816
- }, z.core.$strict>>;
22817
- billing_anchor: z.ZodString;
22818
- status: z.ZodEnum<{
22819
- active: "active";
22820
- canceled: "canceled";
22821
- inactive: "inactive";
22822
- scheduled: "scheduled";
22823
- }>;
22824
- settlement_mode: z.ZodOptional<z.ZodEnum<{
22825
- credit_only: "credit_only";
22826
- credit_then_invoice: "credit_then_invoice";
22827
- }>>;
22828
- }, z.core.$strict>;
22829
24433
  export declare const planAddonWire: z.ZodObject<{
22830
24434
  id: z.ZodString;
22831
24435
  name: z.ZodString;
@@ -24125,107 +25729,6 @@ export declare const workflowTaxSettingsWire: z.ZodObject<{
24125
25729
  }, z.core.$strict>>;
24126
25730
  }, z.core.$strict>>;
24127
25731
  }, z.core.$strict>;
24128
- export declare const subscriptionPagePaginatedResponseWire: z.ZodObject<{
24129
- data: z.ZodArray<z.ZodObject<{
24130
- id: z.ZodString;
24131
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24132
- created_at: z.ZodString;
24133
- updated_at: z.ZodString;
24134
- deleted_at: z.ZodOptional<z.ZodString>;
24135
- customer_id: z.ZodString;
24136
- plan_id: z.ZodOptional<z.ZodString>;
24137
- invoice_currency: z.ZodString;
24138
- cost_basis_mode: z.ZodEnum<{
24139
- dynamic: "dynamic";
24140
- pinned: "pinned";
24141
- }>;
24142
- cost_basis_pins: z.ZodArray<z.ZodObject<{
24143
- custom_currency_id: z.ZodString;
24144
- invoice_currency: z.ZodString;
24145
- cost_basis_id: z.ZodString;
24146
- }, z.core.$strict>>;
24147
- billing_anchor: z.ZodString;
24148
- status: z.ZodEnum<{
24149
- active: "active";
24150
- canceled: "canceled";
24151
- inactive: "inactive";
24152
- scheduled: "scheduled";
24153
- }>;
24154
- settlement_mode: z.ZodOptional<z.ZodEnum<{
24155
- credit_only: "credit_only";
24156
- credit_then_invoice: "credit_then_invoice";
24157
- }>>;
24158
- }, z.core.$strict>>;
24159
- meta: z.ZodObject<{
24160
- page: z.ZodObject<{
24161
- number: z.ZodNumber;
24162
- size: z.ZodNumber;
24163
- total: z.ZodNumber;
24164
- }, z.core.$strict>;
24165
- }, z.core.$strict>;
24166
- }, z.core.$strict>;
24167
- export declare const subscriptionChangeResponseWire: z.ZodObject<{
24168
- current: z.ZodObject<{
24169
- id: z.ZodString;
24170
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24171
- created_at: z.ZodString;
24172
- updated_at: z.ZodString;
24173
- deleted_at: z.ZodOptional<z.ZodString>;
24174
- customer_id: z.ZodString;
24175
- plan_id: z.ZodOptional<z.ZodString>;
24176
- invoice_currency: z.ZodString;
24177
- cost_basis_mode: z.ZodEnum<{
24178
- dynamic: "dynamic";
24179
- pinned: "pinned";
24180
- }>;
24181
- cost_basis_pins: z.ZodArray<z.ZodObject<{
24182
- custom_currency_id: z.ZodString;
24183
- invoice_currency: z.ZodString;
24184
- cost_basis_id: z.ZodString;
24185
- }, z.core.$strict>>;
24186
- billing_anchor: z.ZodString;
24187
- status: z.ZodEnum<{
24188
- active: "active";
24189
- canceled: "canceled";
24190
- inactive: "inactive";
24191
- scheduled: "scheduled";
24192
- }>;
24193
- settlement_mode: z.ZodOptional<z.ZodEnum<{
24194
- credit_only: "credit_only";
24195
- credit_then_invoice: "credit_then_invoice";
24196
- }>>;
24197
- }, z.core.$strict>;
24198
- next: z.ZodObject<{
24199
- id: z.ZodString;
24200
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24201
- created_at: z.ZodString;
24202
- updated_at: z.ZodString;
24203
- deleted_at: z.ZodOptional<z.ZodString>;
24204
- customer_id: z.ZodString;
24205
- plan_id: z.ZodOptional<z.ZodString>;
24206
- invoice_currency: z.ZodString;
24207
- cost_basis_mode: z.ZodEnum<{
24208
- dynamic: "dynamic";
24209
- pinned: "pinned";
24210
- }>;
24211
- cost_basis_pins: z.ZodArray<z.ZodObject<{
24212
- custom_currency_id: z.ZodString;
24213
- invoice_currency: z.ZodString;
24214
- cost_basis_id: z.ZodString;
24215
- }, z.core.$strict>>;
24216
- billing_anchor: z.ZodString;
24217
- status: z.ZodEnum<{
24218
- active: "active";
24219
- canceled: "canceled";
24220
- inactive: "inactive";
24221
- scheduled: "scheduled";
24222
- }>;
24223
- settlement_mode: z.ZodOptional<z.ZodEnum<{
24224
- credit_only: "credit_only";
24225
- credit_then_invoice: "credit_then_invoice";
24226
- }>>;
24227
- }, z.core.$strict>;
24228
- }, z.core.$strict>;
24229
25732
  export declare const planAddonPagePaginatedResponseWire: z.ZodObject<{
24230
25733
  data: z.ZodArray<z.ZodObject<{
24231
25734
  id: z.ZodString;
@@ -27306,6 +28809,101 @@ export declare const createChargeRequestWire: z.ZodDiscriminatedUnion<[z.ZodObje
27306
28809
  to: z.ZodString;
27307
28810
  }, z.core.$strict>>;
27308
28811
  }, z.core.$strict>], "type">;
28812
+ export declare const subscriptionItemWire: z.ZodObject<{
28813
+ id: z.ZodString;
28814
+ active_from: z.ZodString;
28815
+ active_to: z.ZodOptional<z.ZodString>;
28816
+ rate_card: z.ZodObject<{
28817
+ name: z.ZodString;
28818
+ description: z.ZodOptional<z.ZodString>;
28819
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28820
+ key: z.ZodString;
28821
+ feature: z.ZodOptional<z.ZodObject<{
28822
+ id: z.ZodString;
28823
+ }, z.core.$strict>>;
28824
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
28825
+ billing_cadence: z.ZodOptional<z.ZodString>;
28826
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
28827
+ type: z.ZodLiteral<"free">;
28828
+ }, z.core.$strict>, z.ZodObject<{
28829
+ type: z.ZodLiteral<"flat">;
28830
+ amount: z.ZodString;
28831
+ }, z.core.$strict>, z.ZodObject<{
28832
+ type: z.ZodLiteral<"unit">;
28833
+ amount: z.ZodString;
28834
+ }, z.core.$strict>, z.ZodObject<{
28835
+ type: z.ZodLiteral<"graduated">;
28836
+ tiers: z.ZodArray<z.ZodObject<{
28837
+ up_to_amount: z.ZodOptional<z.ZodString>;
28838
+ flat_price: z.ZodOptional<z.ZodObject<{
28839
+ type: z.ZodLiteral<"flat">;
28840
+ amount: z.ZodString;
28841
+ }, z.core.$strict>>;
28842
+ unit_price: z.ZodOptional<z.ZodObject<{
28843
+ type: z.ZodLiteral<"unit">;
28844
+ amount: z.ZodString;
28845
+ }, z.core.$strict>>;
28846
+ }, z.core.$strict>>;
28847
+ }, z.core.$strict>, z.ZodObject<{
28848
+ type: z.ZodLiteral<"volume">;
28849
+ tiers: z.ZodArray<z.ZodObject<{
28850
+ up_to_amount: z.ZodOptional<z.ZodString>;
28851
+ flat_price: z.ZodOptional<z.ZodObject<{
28852
+ type: z.ZodLiteral<"flat">;
28853
+ amount: z.ZodString;
28854
+ }, z.core.$strict>>;
28855
+ unit_price: z.ZodOptional<z.ZodObject<{
28856
+ type: z.ZodLiteral<"unit">;
28857
+ amount: z.ZodString;
28858
+ }, z.core.$strict>>;
28859
+ }, z.core.$strict>>;
28860
+ }, z.core.$strict>], "type">;
28861
+ unit_config: z.ZodOptional<z.ZodObject<{
28862
+ operation: z.ZodEnum<{
28863
+ divide: "divide";
28864
+ multiply: "multiply";
28865
+ }>;
28866
+ conversion_factor: z.ZodString;
28867
+ rounding: z.ZodOptional<z.ZodEnum<{
28868
+ ceiling: "ceiling";
28869
+ floor: "floor";
28870
+ half_up: "half_up";
28871
+ none: "none";
28872
+ }>>;
28873
+ precision: z.ZodOptional<z.ZodNumber>;
28874
+ display_unit: z.ZodOptional<z.ZodString>;
28875
+ }, z.core.$strict>>;
28876
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
28877
+ commitments: z.ZodOptional<z.ZodObject<{
28878
+ minimum_amount: z.ZodOptional<z.ZodString>;
28879
+ maximum_amount: z.ZodOptional<z.ZodString>;
28880
+ }, z.core.$strict>>;
28881
+ discounts: z.ZodOptional<z.ZodObject<{
28882
+ percentage: z.ZodOptional<z.ZodNumber>;
28883
+ usage: z.ZodOptional<z.ZodString>;
28884
+ }, z.core.$strict>>;
28885
+ tax_config: z.ZodOptional<z.ZodObject<{
28886
+ behavior: z.ZodOptional<z.ZodEnum<{
28887
+ exclusive: "exclusive";
28888
+ inclusive: "inclusive";
28889
+ }>>;
28890
+ code: z.ZodObject<{
28891
+ id: z.ZodString;
28892
+ }, z.core.$strict>;
28893
+ }, z.core.$strict>>;
28894
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
28895
+ type: z.ZodLiteral<"metered">;
28896
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
28897
+ limit: z.ZodOptional<z.ZodNumber>;
28898
+ usage_period: z.ZodOptional<z.ZodString>;
28899
+ }, z.core.$strict>, z.ZodObject<{
28900
+ type: z.ZodLiteral<"static">;
28901
+ config: z.ZodUnknown;
28902
+ }, z.core.$strict>, z.ZodObject<{
28903
+ type: z.ZodLiteral<"boolean">;
28904
+ }, z.core.$strict>], "type">>;
28905
+ }, z.core.$strict>;
28906
+ }, z.core.$strict>;
27309
28907
  export declare const subscriptionAddonRateCardWire: z.ZodObject<{
27310
28908
  rate_card: z.ZodObject<{
27311
28909
  name: z.ZodString;
@@ -28675,27 +30273,134 @@ export declare const chargeWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
28675
30273
  deleted_at: z.ZodOptional<z.ZodString>;
28676
30274
  }, z.core.$strict>>;
28677
30275
  }, z.core.$strict>], "type">;
28678
- export declare const subscriptionAddonWire: z.ZodObject<{
30276
+ export declare const subscriptionPhaseWire: z.ZodObject<{
28679
30277
  id: z.ZodString;
30278
+ name: z.ZodString;
30279
+ description: z.ZodOptional<z.ZodString>;
28680
30280
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28681
30281
  created_at: z.ZodString;
28682
30282
  updated_at: z.ZodString;
28683
30283
  deleted_at: z.ZodOptional<z.ZodString>;
28684
- name: z.ZodString;
28685
- description: z.ZodOptional<z.ZodString>;
28686
- addon: z.ZodObject<{
28687
- id: z.ZodString;
28688
- }, z.core.$strict>;
28689
- quantity: z.ZodNumber;
28690
- quantity_at: z.ZodString;
30284
+ key: z.ZodString;
28691
30285
  active_from: z.ZodString;
28692
30286
  active_to: z.ZodOptional<z.ZodString>;
28693
- timeline: z.ZodArray<z.ZodObject<{
30287
+ items: z.ZodArray<z.ZodObject<{
30288
+ id: z.ZodString;
28694
30289
  active_from: z.ZodString;
28695
30290
  active_to: z.ZodOptional<z.ZodString>;
28696
- quantity: z.ZodNumber;
28697
- }, z.core.$strict>>;
28698
- rate_cards: z.ZodArray<z.ZodObject<{
30291
+ rate_card: z.ZodObject<{
30292
+ name: z.ZodString;
30293
+ description: z.ZodOptional<z.ZodString>;
30294
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30295
+ key: z.ZodString;
30296
+ feature: z.ZodOptional<z.ZodObject<{
30297
+ id: z.ZodString;
30298
+ }, z.core.$strict>>;
30299
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
30300
+ billing_cadence: z.ZodOptional<z.ZodString>;
30301
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
30302
+ type: z.ZodLiteral<"free">;
30303
+ }, z.core.$strict>, z.ZodObject<{
30304
+ type: z.ZodLiteral<"flat">;
30305
+ amount: z.ZodString;
30306
+ }, z.core.$strict>, z.ZodObject<{
30307
+ type: z.ZodLiteral<"unit">;
30308
+ amount: z.ZodString;
30309
+ }, z.core.$strict>, z.ZodObject<{
30310
+ type: z.ZodLiteral<"graduated">;
30311
+ tiers: z.ZodArray<z.ZodObject<{
30312
+ up_to_amount: z.ZodOptional<z.ZodString>;
30313
+ flat_price: z.ZodOptional<z.ZodObject<{
30314
+ type: z.ZodLiteral<"flat">;
30315
+ amount: z.ZodString;
30316
+ }, z.core.$strict>>;
30317
+ unit_price: z.ZodOptional<z.ZodObject<{
30318
+ type: z.ZodLiteral<"unit">;
30319
+ amount: z.ZodString;
30320
+ }, z.core.$strict>>;
30321
+ }, z.core.$strict>>;
30322
+ }, z.core.$strict>, z.ZodObject<{
30323
+ type: z.ZodLiteral<"volume">;
30324
+ tiers: z.ZodArray<z.ZodObject<{
30325
+ up_to_amount: z.ZodOptional<z.ZodString>;
30326
+ flat_price: z.ZodOptional<z.ZodObject<{
30327
+ type: z.ZodLiteral<"flat">;
30328
+ amount: z.ZodString;
30329
+ }, z.core.$strict>>;
30330
+ unit_price: z.ZodOptional<z.ZodObject<{
30331
+ type: z.ZodLiteral<"unit">;
30332
+ amount: z.ZodString;
30333
+ }, z.core.$strict>>;
30334
+ }, z.core.$strict>>;
30335
+ }, z.core.$strict>], "type">;
30336
+ unit_config: z.ZodOptional<z.ZodObject<{
30337
+ operation: z.ZodEnum<{
30338
+ divide: "divide";
30339
+ multiply: "multiply";
30340
+ }>;
30341
+ conversion_factor: z.ZodString;
30342
+ rounding: z.ZodOptional<z.ZodEnum<{
30343
+ ceiling: "ceiling";
30344
+ floor: "floor";
30345
+ half_up: "half_up";
30346
+ none: "none";
30347
+ }>>;
30348
+ precision: z.ZodOptional<z.ZodNumber>;
30349
+ display_unit: z.ZodOptional<z.ZodString>;
30350
+ }, z.core.$strict>>;
30351
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
30352
+ commitments: z.ZodOptional<z.ZodObject<{
30353
+ minimum_amount: z.ZodOptional<z.ZodString>;
30354
+ maximum_amount: z.ZodOptional<z.ZodString>;
30355
+ }, z.core.$strict>>;
30356
+ discounts: z.ZodOptional<z.ZodObject<{
30357
+ percentage: z.ZodOptional<z.ZodNumber>;
30358
+ usage: z.ZodOptional<z.ZodString>;
30359
+ }, z.core.$strict>>;
30360
+ tax_config: z.ZodOptional<z.ZodObject<{
30361
+ behavior: z.ZodOptional<z.ZodEnum<{
30362
+ exclusive: "exclusive";
30363
+ inclusive: "inclusive";
30364
+ }>>;
30365
+ code: z.ZodObject<{
30366
+ id: z.ZodString;
30367
+ }, z.core.$strict>;
30368
+ }, z.core.$strict>>;
30369
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
30370
+ type: z.ZodLiteral<"metered">;
30371
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
30372
+ limit: z.ZodOptional<z.ZodNumber>;
30373
+ usage_period: z.ZodOptional<z.ZodString>;
30374
+ }, z.core.$strict>, z.ZodObject<{
30375
+ type: z.ZodLiteral<"static">;
30376
+ config: z.ZodUnknown;
30377
+ }, z.core.$strict>, z.ZodObject<{
30378
+ type: z.ZodLiteral<"boolean">;
30379
+ }, z.core.$strict>], "type">>;
30380
+ }, z.core.$strict>;
30381
+ }, z.core.$strict>>;
30382
+ }, z.core.$strict>;
30383
+ export declare const subscriptionAddonWire: z.ZodObject<{
30384
+ id: z.ZodString;
30385
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30386
+ created_at: z.ZodString;
30387
+ updated_at: z.ZodString;
30388
+ deleted_at: z.ZodOptional<z.ZodString>;
30389
+ name: z.ZodString;
30390
+ description: z.ZodOptional<z.ZodString>;
30391
+ addon: z.ZodObject<{
30392
+ id: z.ZodString;
30393
+ }, z.core.$strict>;
30394
+ quantity: z.ZodNumber;
30395
+ quantity_at: z.ZodString;
30396
+ active_from: z.ZodString;
30397
+ active_to: z.ZodOptional<z.ZodString>;
30398
+ timeline: z.ZodArray<z.ZodObject<{
30399
+ active_from: z.ZodString;
30400
+ active_to: z.ZodOptional<z.ZodString>;
30401
+ quantity: z.ZodNumber;
30402
+ }, z.core.$strict>>;
30403
+ rate_cards: z.ZodArray<z.ZodObject<{
28699
30404
  rate_card: z.ZodObject<{
28700
30405
  name: z.ZodString;
28701
30406
  description: z.ZodOptional<z.ZodString>;
@@ -29974,6 +31679,164 @@ export declare const chargePagePaginatedResponseWire: z.ZodObject<{
29974
31679
  }, z.core.$strict>;
29975
31680
  }, z.core.$strict>;
29976
31681
  }, z.core.$strict>;
31682
+ export declare const subscriptionWire: z.ZodObject<{
31683
+ id: z.ZodString;
31684
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31685
+ created_at: z.ZodString;
31686
+ updated_at: z.ZodString;
31687
+ deleted_at: z.ZodOptional<z.ZodString>;
31688
+ name: z.ZodString;
31689
+ description: z.ZodOptional<z.ZodString>;
31690
+ active_from: z.ZodString;
31691
+ active_to: z.ZodOptional<z.ZodString>;
31692
+ customer_id: z.ZodString;
31693
+ plan_id: z.ZodOptional<z.ZodString>;
31694
+ plan: z.ZodOptional<z.ZodObject<{
31695
+ id: z.ZodString;
31696
+ key: z.ZodString;
31697
+ version: z.ZodNumber;
31698
+ }, z.core.$strict>>;
31699
+ invoice_currency: z.ZodString;
31700
+ cost_basis_mode: z.ZodEnum<{
31701
+ dynamic: "dynamic";
31702
+ pinned: "pinned";
31703
+ }>;
31704
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
31705
+ custom_currency_id: z.ZodString;
31706
+ invoice_currency: z.ZodString;
31707
+ cost_basis_id: z.ZodString;
31708
+ }, z.core.$strict>>;
31709
+ billing_cadence: z.ZodString;
31710
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
31711
+ enabled: z.ZodBoolean;
31712
+ mode: z.ZodEnum<{
31713
+ no_proration: "no_proration";
31714
+ prorate_prices: "prorate_prices";
31715
+ }>;
31716
+ }, z.core.$strict>>;
31717
+ billing_anchor: z.ZodString;
31718
+ status: z.ZodEnum<{
31719
+ active: "active";
31720
+ canceled: "canceled";
31721
+ inactive: "inactive";
31722
+ scheduled: "scheduled";
31723
+ }>;
31724
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
31725
+ credit_only: "credit_only";
31726
+ credit_then_invoice: "credit_then_invoice";
31727
+ }>>;
31728
+ current_period: z.ZodOptional<z.ZodObject<{
31729
+ from: z.ZodString;
31730
+ to: z.ZodString;
31731
+ }, z.core.$strict>>;
31732
+ phases: z.ZodArray<z.ZodObject<{
31733
+ id: z.ZodString;
31734
+ name: z.ZodString;
31735
+ description: z.ZodOptional<z.ZodString>;
31736
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31737
+ created_at: z.ZodString;
31738
+ updated_at: z.ZodString;
31739
+ deleted_at: z.ZodOptional<z.ZodString>;
31740
+ key: z.ZodString;
31741
+ active_from: z.ZodString;
31742
+ active_to: z.ZodOptional<z.ZodString>;
31743
+ items: z.ZodArray<z.ZodObject<{
31744
+ id: z.ZodString;
31745
+ active_from: z.ZodString;
31746
+ active_to: z.ZodOptional<z.ZodString>;
31747
+ rate_card: z.ZodObject<{
31748
+ name: z.ZodString;
31749
+ description: z.ZodOptional<z.ZodString>;
31750
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31751
+ key: z.ZodString;
31752
+ feature: z.ZodOptional<z.ZodObject<{
31753
+ id: z.ZodString;
31754
+ }, z.core.$strict>>;
31755
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
31756
+ billing_cadence: z.ZodOptional<z.ZodString>;
31757
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
31758
+ type: z.ZodLiteral<"free">;
31759
+ }, z.core.$strict>, z.ZodObject<{
31760
+ type: z.ZodLiteral<"flat">;
31761
+ amount: z.ZodString;
31762
+ }, z.core.$strict>, z.ZodObject<{
31763
+ type: z.ZodLiteral<"unit">;
31764
+ amount: z.ZodString;
31765
+ }, z.core.$strict>, z.ZodObject<{
31766
+ type: z.ZodLiteral<"graduated">;
31767
+ tiers: z.ZodArray<z.ZodObject<{
31768
+ up_to_amount: z.ZodOptional<z.ZodString>;
31769
+ flat_price: z.ZodOptional<z.ZodObject<{
31770
+ type: z.ZodLiteral<"flat">;
31771
+ amount: z.ZodString;
31772
+ }, z.core.$strict>>;
31773
+ unit_price: z.ZodOptional<z.ZodObject<{
31774
+ type: z.ZodLiteral<"unit">;
31775
+ amount: z.ZodString;
31776
+ }, z.core.$strict>>;
31777
+ }, z.core.$strict>>;
31778
+ }, z.core.$strict>, z.ZodObject<{
31779
+ type: z.ZodLiteral<"volume">;
31780
+ tiers: z.ZodArray<z.ZodObject<{
31781
+ up_to_amount: z.ZodOptional<z.ZodString>;
31782
+ flat_price: z.ZodOptional<z.ZodObject<{
31783
+ type: z.ZodLiteral<"flat">;
31784
+ amount: z.ZodString;
31785
+ }, z.core.$strict>>;
31786
+ unit_price: z.ZodOptional<z.ZodObject<{
31787
+ type: z.ZodLiteral<"unit">;
31788
+ amount: z.ZodString;
31789
+ }, z.core.$strict>>;
31790
+ }, z.core.$strict>>;
31791
+ }, z.core.$strict>], "type">;
31792
+ unit_config: z.ZodOptional<z.ZodObject<{
31793
+ operation: z.ZodEnum<{
31794
+ divide: "divide";
31795
+ multiply: "multiply";
31796
+ }>;
31797
+ conversion_factor: z.ZodString;
31798
+ rounding: z.ZodOptional<z.ZodEnum<{
31799
+ ceiling: "ceiling";
31800
+ floor: "floor";
31801
+ half_up: "half_up";
31802
+ none: "none";
31803
+ }>>;
31804
+ precision: z.ZodOptional<z.ZodNumber>;
31805
+ display_unit: z.ZodOptional<z.ZodString>;
31806
+ }, z.core.$strict>>;
31807
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
31808
+ commitments: z.ZodOptional<z.ZodObject<{
31809
+ minimum_amount: z.ZodOptional<z.ZodString>;
31810
+ maximum_amount: z.ZodOptional<z.ZodString>;
31811
+ }, z.core.$strict>>;
31812
+ discounts: z.ZodOptional<z.ZodObject<{
31813
+ percentage: z.ZodOptional<z.ZodNumber>;
31814
+ usage: z.ZodOptional<z.ZodString>;
31815
+ }, z.core.$strict>>;
31816
+ tax_config: z.ZodOptional<z.ZodObject<{
31817
+ behavior: z.ZodOptional<z.ZodEnum<{
31818
+ exclusive: "exclusive";
31819
+ inclusive: "inclusive";
31820
+ }>>;
31821
+ code: z.ZodObject<{
31822
+ id: z.ZodString;
31823
+ }, z.core.$strict>;
31824
+ }, z.core.$strict>>;
31825
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
31826
+ type: z.ZodLiteral<"metered">;
31827
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
31828
+ limit: z.ZodOptional<z.ZodNumber>;
31829
+ usage_period: z.ZodOptional<z.ZodString>;
31830
+ }, z.core.$strict>, z.ZodObject<{
31831
+ type: z.ZodLiteral<"static">;
31832
+ config: z.ZodUnknown;
31833
+ }, z.core.$strict>, z.ZodObject<{
31834
+ type: z.ZodLiteral<"boolean">;
31835
+ }, z.core.$strict>], "type">>;
31836
+ }, z.core.$strict>;
31837
+ }, z.core.$strict>>;
31838
+ }, z.core.$strict>>;
31839
+ }, z.core.$strict>;
29977
31840
  export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
29978
31841
  data: z.ZodArray<z.ZodObject<{
29979
31842
  id: z.ZodString;
@@ -30702,6 +32565,491 @@ export declare const updateInvoiceStandardRequestWire: z.ZodObject<{
30702
32565
  }, z.core.$strict>;
30703
32566
  }, z.core.$strict>], "type">>>;
30704
32567
  }, z.core.$strict>;
32568
+ export declare const subscriptionPagePaginatedResponseWire: z.ZodObject<{
32569
+ data: z.ZodArray<z.ZodObject<{
32570
+ id: z.ZodString;
32571
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32572
+ created_at: z.ZodString;
32573
+ updated_at: z.ZodString;
32574
+ deleted_at: z.ZodOptional<z.ZodString>;
32575
+ name: z.ZodString;
32576
+ description: z.ZodOptional<z.ZodString>;
32577
+ active_from: z.ZodString;
32578
+ active_to: z.ZodOptional<z.ZodString>;
32579
+ customer_id: z.ZodString;
32580
+ plan_id: z.ZodOptional<z.ZodString>;
32581
+ plan: z.ZodOptional<z.ZodObject<{
32582
+ id: z.ZodString;
32583
+ key: z.ZodString;
32584
+ version: z.ZodNumber;
32585
+ }, z.core.$strict>>;
32586
+ invoice_currency: z.ZodString;
32587
+ cost_basis_mode: z.ZodEnum<{
32588
+ dynamic: "dynamic";
32589
+ pinned: "pinned";
32590
+ }>;
32591
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
32592
+ custom_currency_id: z.ZodString;
32593
+ invoice_currency: z.ZodString;
32594
+ cost_basis_id: z.ZodString;
32595
+ }, z.core.$strict>>;
32596
+ billing_cadence: z.ZodString;
32597
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
32598
+ enabled: z.ZodBoolean;
32599
+ mode: z.ZodEnum<{
32600
+ no_proration: "no_proration";
32601
+ prorate_prices: "prorate_prices";
32602
+ }>;
32603
+ }, z.core.$strict>>;
32604
+ billing_anchor: z.ZodString;
32605
+ status: z.ZodEnum<{
32606
+ active: "active";
32607
+ canceled: "canceled";
32608
+ inactive: "inactive";
32609
+ scheduled: "scheduled";
32610
+ }>;
32611
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
32612
+ credit_only: "credit_only";
32613
+ credit_then_invoice: "credit_then_invoice";
32614
+ }>>;
32615
+ current_period: z.ZodOptional<z.ZodObject<{
32616
+ from: z.ZodString;
32617
+ to: z.ZodString;
32618
+ }, z.core.$strict>>;
32619
+ phases: z.ZodArray<z.ZodObject<{
32620
+ id: z.ZodString;
32621
+ name: z.ZodString;
32622
+ description: z.ZodOptional<z.ZodString>;
32623
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32624
+ created_at: z.ZodString;
32625
+ updated_at: z.ZodString;
32626
+ deleted_at: z.ZodOptional<z.ZodString>;
32627
+ key: z.ZodString;
32628
+ active_from: z.ZodString;
32629
+ active_to: z.ZodOptional<z.ZodString>;
32630
+ items: z.ZodArray<z.ZodObject<{
32631
+ id: z.ZodString;
32632
+ active_from: z.ZodString;
32633
+ active_to: z.ZodOptional<z.ZodString>;
32634
+ rate_card: z.ZodObject<{
32635
+ name: z.ZodString;
32636
+ description: z.ZodOptional<z.ZodString>;
32637
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32638
+ key: z.ZodString;
32639
+ feature: z.ZodOptional<z.ZodObject<{
32640
+ id: z.ZodString;
32641
+ }, z.core.$strict>>;
32642
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
32643
+ billing_cadence: z.ZodOptional<z.ZodString>;
32644
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
32645
+ type: z.ZodLiteral<"free">;
32646
+ }, z.core.$strict>, z.ZodObject<{
32647
+ type: z.ZodLiteral<"flat">;
32648
+ amount: z.ZodString;
32649
+ }, z.core.$strict>, z.ZodObject<{
32650
+ type: z.ZodLiteral<"unit">;
32651
+ amount: z.ZodString;
32652
+ }, z.core.$strict>, z.ZodObject<{
32653
+ type: z.ZodLiteral<"graduated">;
32654
+ tiers: z.ZodArray<z.ZodObject<{
32655
+ up_to_amount: z.ZodOptional<z.ZodString>;
32656
+ flat_price: z.ZodOptional<z.ZodObject<{
32657
+ type: z.ZodLiteral<"flat">;
32658
+ amount: z.ZodString;
32659
+ }, z.core.$strict>>;
32660
+ unit_price: z.ZodOptional<z.ZodObject<{
32661
+ type: z.ZodLiteral<"unit">;
32662
+ amount: z.ZodString;
32663
+ }, z.core.$strict>>;
32664
+ }, z.core.$strict>>;
32665
+ }, z.core.$strict>, z.ZodObject<{
32666
+ type: z.ZodLiteral<"volume">;
32667
+ tiers: z.ZodArray<z.ZodObject<{
32668
+ up_to_amount: z.ZodOptional<z.ZodString>;
32669
+ flat_price: z.ZodOptional<z.ZodObject<{
32670
+ type: z.ZodLiteral<"flat">;
32671
+ amount: z.ZodString;
32672
+ }, z.core.$strict>>;
32673
+ unit_price: z.ZodOptional<z.ZodObject<{
32674
+ type: z.ZodLiteral<"unit">;
32675
+ amount: z.ZodString;
32676
+ }, z.core.$strict>>;
32677
+ }, z.core.$strict>>;
32678
+ }, z.core.$strict>], "type">;
32679
+ unit_config: z.ZodOptional<z.ZodObject<{
32680
+ operation: z.ZodEnum<{
32681
+ divide: "divide";
32682
+ multiply: "multiply";
32683
+ }>;
32684
+ conversion_factor: z.ZodString;
32685
+ rounding: z.ZodOptional<z.ZodEnum<{
32686
+ ceiling: "ceiling";
32687
+ floor: "floor";
32688
+ half_up: "half_up";
32689
+ none: "none";
32690
+ }>>;
32691
+ precision: z.ZodOptional<z.ZodNumber>;
32692
+ display_unit: z.ZodOptional<z.ZodString>;
32693
+ }, z.core.$strict>>;
32694
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
32695
+ commitments: z.ZodOptional<z.ZodObject<{
32696
+ minimum_amount: z.ZodOptional<z.ZodString>;
32697
+ maximum_amount: z.ZodOptional<z.ZodString>;
32698
+ }, z.core.$strict>>;
32699
+ discounts: z.ZodOptional<z.ZodObject<{
32700
+ percentage: z.ZodOptional<z.ZodNumber>;
32701
+ usage: z.ZodOptional<z.ZodString>;
32702
+ }, z.core.$strict>>;
32703
+ tax_config: z.ZodOptional<z.ZodObject<{
32704
+ behavior: z.ZodOptional<z.ZodEnum<{
32705
+ exclusive: "exclusive";
32706
+ inclusive: "inclusive";
32707
+ }>>;
32708
+ code: z.ZodObject<{
32709
+ id: z.ZodString;
32710
+ }, z.core.$strict>;
32711
+ }, z.core.$strict>>;
32712
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
32713
+ type: z.ZodLiteral<"metered">;
32714
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
32715
+ limit: z.ZodOptional<z.ZodNumber>;
32716
+ usage_period: z.ZodOptional<z.ZodString>;
32717
+ }, z.core.$strict>, z.ZodObject<{
32718
+ type: z.ZodLiteral<"static">;
32719
+ config: z.ZodUnknown;
32720
+ }, z.core.$strict>, z.ZodObject<{
32721
+ type: z.ZodLiteral<"boolean">;
32722
+ }, z.core.$strict>], "type">>;
32723
+ }, z.core.$strict>;
32724
+ }, z.core.$strict>>;
32725
+ }, z.core.$strict>>;
32726
+ }, z.core.$strict>>;
32727
+ meta: z.ZodObject<{
32728
+ page: z.ZodObject<{
32729
+ number: z.ZodNumber;
32730
+ size: z.ZodNumber;
32731
+ total: z.ZodNumber;
32732
+ }, z.core.$strict>;
32733
+ }, z.core.$strict>;
32734
+ }, z.core.$strict>;
32735
+ export declare const subscriptionChangeResponseWire: z.ZodObject<{
32736
+ current: z.ZodObject<{
32737
+ id: z.ZodString;
32738
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32739
+ created_at: z.ZodString;
32740
+ updated_at: z.ZodString;
32741
+ deleted_at: z.ZodOptional<z.ZodString>;
32742
+ name: z.ZodString;
32743
+ description: z.ZodOptional<z.ZodString>;
32744
+ active_from: z.ZodString;
32745
+ active_to: z.ZodOptional<z.ZodString>;
32746
+ customer_id: z.ZodString;
32747
+ plan_id: z.ZodOptional<z.ZodString>;
32748
+ plan: z.ZodOptional<z.ZodObject<{
32749
+ id: z.ZodString;
32750
+ key: z.ZodString;
32751
+ version: z.ZodNumber;
32752
+ }, z.core.$strict>>;
32753
+ invoice_currency: z.ZodString;
32754
+ cost_basis_mode: z.ZodEnum<{
32755
+ dynamic: "dynamic";
32756
+ pinned: "pinned";
32757
+ }>;
32758
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
32759
+ custom_currency_id: z.ZodString;
32760
+ invoice_currency: z.ZodString;
32761
+ cost_basis_id: z.ZodString;
32762
+ }, z.core.$strict>>;
32763
+ billing_cadence: z.ZodString;
32764
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
32765
+ enabled: z.ZodBoolean;
32766
+ mode: z.ZodEnum<{
32767
+ no_proration: "no_proration";
32768
+ prorate_prices: "prorate_prices";
32769
+ }>;
32770
+ }, z.core.$strict>>;
32771
+ billing_anchor: z.ZodString;
32772
+ status: z.ZodEnum<{
32773
+ active: "active";
32774
+ canceled: "canceled";
32775
+ inactive: "inactive";
32776
+ scheduled: "scheduled";
32777
+ }>;
32778
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
32779
+ credit_only: "credit_only";
32780
+ credit_then_invoice: "credit_then_invoice";
32781
+ }>>;
32782
+ current_period: z.ZodOptional<z.ZodObject<{
32783
+ from: z.ZodString;
32784
+ to: z.ZodString;
32785
+ }, z.core.$strict>>;
32786
+ phases: z.ZodArray<z.ZodObject<{
32787
+ id: z.ZodString;
32788
+ name: z.ZodString;
32789
+ description: z.ZodOptional<z.ZodString>;
32790
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32791
+ created_at: z.ZodString;
32792
+ updated_at: z.ZodString;
32793
+ deleted_at: z.ZodOptional<z.ZodString>;
32794
+ key: z.ZodString;
32795
+ active_from: z.ZodString;
32796
+ active_to: z.ZodOptional<z.ZodString>;
32797
+ items: z.ZodArray<z.ZodObject<{
32798
+ id: z.ZodString;
32799
+ active_from: z.ZodString;
32800
+ active_to: z.ZodOptional<z.ZodString>;
32801
+ rate_card: z.ZodObject<{
32802
+ name: z.ZodString;
32803
+ description: z.ZodOptional<z.ZodString>;
32804
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32805
+ key: z.ZodString;
32806
+ feature: z.ZodOptional<z.ZodObject<{
32807
+ id: z.ZodString;
32808
+ }, z.core.$strict>>;
32809
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
32810
+ billing_cadence: z.ZodOptional<z.ZodString>;
32811
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
32812
+ type: z.ZodLiteral<"free">;
32813
+ }, z.core.$strict>, z.ZodObject<{
32814
+ type: z.ZodLiteral<"flat">;
32815
+ amount: z.ZodString;
32816
+ }, z.core.$strict>, z.ZodObject<{
32817
+ type: z.ZodLiteral<"unit">;
32818
+ amount: z.ZodString;
32819
+ }, z.core.$strict>, z.ZodObject<{
32820
+ type: z.ZodLiteral<"graduated">;
32821
+ tiers: z.ZodArray<z.ZodObject<{
32822
+ up_to_amount: z.ZodOptional<z.ZodString>;
32823
+ flat_price: z.ZodOptional<z.ZodObject<{
32824
+ type: z.ZodLiteral<"flat">;
32825
+ amount: z.ZodString;
32826
+ }, z.core.$strict>>;
32827
+ unit_price: z.ZodOptional<z.ZodObject<{
32828
+ type: z.ZodLiteral<"unit">;
32829
+ amount: z.ZodString;
32830
+ }, z.core.$strict>>;
32831
+ }, z.core.$strict>>;
32832
+ }, z.core.$strict>, z.ZodObject<{
32833
+ type: z.ZodLiteral<"volume">;
32834
+ tiers: z.ZodArray<z.ZodObject<{
32835
+ up_to_amount: z.ZodOptional<z.ZodString>;
32836
+ flat_price: z.ZodOptional<z.ZodObject<{
32837
+ type: z.ZodLiteral<"flat">;
32838
+ amount: z.ZodString;
32839
+ }, z.core.$strict>>;
32840
+ unit_price: z.ZodOptional<z.ZodObject<{
32841
+ type: z.ZodLiteral<"unit">;
32842
+ amount: z.ZodString;
32843
+ }, z.core.$strict>>;
32844
+ }, z.core.$strict>>;
32845
+ }, z.core.$strict>], "type">;
32846
+ unit_config: z.ZodOptional<z.ZodObject<{
32847
+ operation: z.ZodEnum<{
32848
+ divide: "divide";
32849
+ multiply: "multiply";
32850
+ }>;
32851
+ conversion_factor: z.ZodString;
32852
+ rounding: z.ZodOptional<z.ZodEnum<{
32853
+ ceiling: "ceiling";
32854
+ floor: "floor";
32855
+ half_up: "half_up";
32856
+ none: "none";
32857
+ }>>;
32858
+ precision: z.ZodOptional<z.ZodNumber>;
32859
+ display_unit: z.ZodOptional<z.ZodString>;
32860
+ }, z.core.$strict>>;
32861
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
32862
+ commitments: z.ZodOptional<z.ZodObject<{
32863
+ minimum_amount: z.ZodOptional<z.ZodString>;
32864
+ maximum_amount: z.ZodOptional<z.ZodString>;
32865
+ }, z.core.$strict>>;
32866
+ discounts: z.ZodOptional<z.ZodObject<{
32867
+ percentage: z.ZodOptional<z.ZodNumber>;
32868
+ usage: z.ZodOptional<z.ZodString>;
32869
+ }, z.core.$strict>>;
32870
+ tax_config: z.ZodOptional<z.ZodObject<{
32871
+ behavior: z.ZodOptional<z.ZodEnum<{
32872
+ exclusive: "exclusive";
32873
+ inclusive: "inclusive";
32874
+ }>>;
32875
+ code: z.ZodObject<{
32876
+ id: z.ZodString;
32877
+ }, z.core.$strict>;
32878
+ }, z.core.$strict>>;
32879
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
32880
+ type: z.ZodLiteral<"metered">;
32881
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
32882
+ limit: z.ZodOptional<z.ZodNumber>;
32883
+ usage_period: z.ZodOptional<z.ZodString>;
32884
+ }, z.core.$strict>, z.ZodObject<{
32885
+ type: z.ZodLiteral<"static">;
32886
+ config: z.ZodUnknown;
32887
+ }, z.core.$strict>, z.ZodObject<{
32888
+ type: z.ZodLiteral<"boolean">;
32889
+ }, z.core.$strict>], "type">>;
32890
+ }, z.core.$strict>;
32891
+ }, z.core.$strict>>;
32892
+ }, z.core.$strict>>;
32893
+ }, z.core.$strict>;
32894
+ next: z.ZodObject<{
32895
+ id: z.ZodString;
32896
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32897
+ created_at: z.ZodString;
32898
+ updated_at: z.ZodString;
32899
+ deleted_at: z.ZodOptional<z.ZodString>;
32900
+ name: z.ZodString;
32901
+ description: z.ZodOptional<z.ZodString>;
32902
+ active_from: z.ZodString;
32903
+ active_to: z.ZodOptional<z.ZodString>;
32904
+ customer_id: z.ZodString;
32905
+ plan_id: z.ZodOptional<z.ZodString>;
32906
+ plan: z.ZodOptional<z.ZodObject<{
32907
+ id: z.ZodString;
32908
+ key: z.ZodString;
32909
+ version: z.ZodNumber;
32910
+ }, z.core.$strict>>;
32911
+ invoice_currency: z.ZodString;
32912
+ cost_basis_mode: z.ZodEnum<{
32913
+ dynamic: "dynamic";
32914
+ pinned: "pinned";
32915
+ }>;
32916
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
32917
+ custom_currency_id: z.ZodString;
32918
+ invoice_currency: z.ZodString;
32919
+ cost_basis_id: z.ZodString;
32920
+ }, z.core.$strict>>;
32921
+ billing_cadence: z.ZodString;
32922
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
32923
+ enabled: z.ZodBoolean;
32924
+ mode: z.ZodEnum<{
32925
+ no_proration: "no_proration";
32926
+ prorate_prices: "prorate_prices";
32927
+ }>;
32928
+ }, z.core.$strict>>;
32929
+ billing_anchor: z.ZodString;
32930
+ status: z.ZodEnum<{
32931
+ active: "active";
32932
+ canceled: "canceled";
32933
+ inactive: "inactive";
32934
+ scheduled: "scheduled";
32935
+ }>;
32936
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
32937
+ credit_only: "credit_only";
32938
+ credit_then_invoice: "credit_then_invoice";
32939
+ }>>;
32940
+ current_period: z.ZodOptional<z.ZodObject<{
32941
+ from: z.ZodString;
32942
+ to: z.ZodString;
32943
+ }, z.core.$strict>>;
32944
+ phases: z.ZodArray<z.ZodObject<{
32945
+ id: z.ZodString;
32946
+ name: z.ZodString;
32947
+ description: z.ZodOptional<z.ZodString>;
32948
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32949
+ created_at: z.ZodString;
32950
+ updated_at: z.ZodString;
32951
+ deleted_at: z.ZodOptional<z.ZodString>;
32952
+ key: z.ZodString;
32953
+ active_from: z.ZodString;
32954
+ active_to: z.ZodOptional<z.ZodString>;
32955
+ items: z.ZodArray<z.ZodObject<{
32956
+ id: z.ZodString;
32957
+ active_from: z.ZodString;
32958
+ active_to: z.ZodOptional<z.ZodString>;
32959
+ rate_card: z.ZodObject<{
32960
+ name: z.ZodString;
32961
+ description: z.ZodOptional<z.ZodString>;
32962
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32963
+ key: z.ZodString;
32964
+ feature: z.ZodOptional<z.ZodObject<{
32965
+ id: z.ZodString;
32966
+ }, z.core.$strict>>;
32967
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
32968
+ billing_cadence: z.ZodOptional<z.ZodString>;
32969
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
32970
+ type: z.ZodLiteral<"free">;
32971
+ }, z.core.$strict>, z.ZodObject<{
32972
+ type: z.ZodLiteral<"flat">;
32973
+ amount: z.ZodString;
32974
+ }, z.core.$strict>, z.ZodObject<{
32975
+ type: z.ZodLiteral<"unit">;
32976
+ amount: z.ZodString;
32977
+ }, z.core.$strict>, z.ZodObject<{
32978
+ type: z.ZodLiteral<"graduated">;
32979
+ tiers: z.ZodArray<z.ZodObject<{
32980
+ up_to_amount: z.ZodOptional<z.ZodString>;
32981
+ flat_price: z.ZodOptional<z.ZodObject<{
32982
+ type: z.ZodLiteral<"flat">;
32983
+ amount: z.ZodString;
32984
+ }, z.core.$strict>>;
32985
+ unit_price: z.ZodOptional<z.ZodObject<{
32986
+ type: z.ZodLiteral<"unit">;
32987
+ amount: z.ZodString;
32988
+ }, z.core.$strict>>;
32989
+ }, z.core.$strict>>;
32990
+ }, z.core.$strict>, z.ZodObject<{
32991
+ type: z.ZodLiteral<"volume">;
32992
+ tiers: z.ZodArray<z.ZodObject<{
32993
+ up_to_amount: z.ZodOptional<z.ZodString>;
32994
+ flat_price: z.ZodOptional<z.ZodObject<{
32995
+ type: z.ZodLiteral<"flat">;
32996
+ amount: z.ZodString;
32997
+ }, z.core.$strict>>;
32998
+ unit_price: z.ZodOptional<z.ZodObject<{
32999
+ type: z.ZodLiteral<"unit">;
33000
+ amount: z.ZodString;
33001
+ }, z.core.$strict>>;
33002
+ }, z.core.$strict>>;
33003
+ }, z.core.$strict>], "type">;
33004
+ unit_config: z.ZodOptional<z.ZodObject<{
33005
+ operation: z.ZodEnum<{
33006
+ divide: "divide";
33007
+ multiply: "multiply";
33008
+ }>;
33009
+ conversion_factor: z.ZodString;
33010
+ rounding: z.ZodOptional<z.ZodEnum<{
33011
+ ceiling: "ceiling";
33012
+ floor: "floor";
33013
+ half_up: "half_up";
33014
+ none: "none";
33015
+ }>>;
33016
+ precision: z.ZodOptional<z.ZodNumber>;
33017
+ display_unit: z.ZodOptional<z.ZodString>;
33018
+ }, z.core.$strict>>;
33019
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
33020
+ commitments: z.ZodOptional<z.ZodObject<{
33021
+ minimum_amount: z.ZodOptional<z.ZodString>;
33022
+ maximum_amount: z.ZodOptional<z.ZodString>;
33023
+ }, z.core.$strict>>;
33024
+ discounts: z.ZodOptional<z.ZodObject<{
33025
+ percentage: z.ZodOptional<z.ZodNumber>;
33026
+ usage: z.ZodOptional<z.ZodString>;
33027
+ }, z.core.$strict>>;
33028
+ tax_config: z.ZodOptional<z.ZodObject<{
33029
+ behavior: z.ZodOptional<z.ZodEnum<{
33030
+ exclusive: "exclusive";
33031
+ inclusive: "inclusive";
33032
+ }>>;
33033
+ code: z.ZodObject<{
33034
+ id: z.ZodString;
33035
+ }, z.core.$strict>;
33036
+ }, z.core.$strict>>;
33037
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
33038
+ type: z.ZodLiteral<"metered">;
33039
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
33040
+ limit: z.ZodOptional<z.ZodNumber>;
33041
+ usage_period: z.ZodOptional<z.ZodString>;
33042
+ }, z.core.$strict>, z.ZodObject<{
33043
+ type: z.ZodLiteral<"static">;
33044
+ config: z.ZodUnknown;
33045
+ }, z.core.$strict>, z.ZodObject<{
33046
+ type: z.ZodLiteral<"boolean">;
33047
+ }, z.core.$strict>], "type">>;
33048
+ }, z.core.$strict>;
33049
+ }, z.core.$strict>>;
33050
+ }, z.core.$strict>>;
33051
+ }, z.core.$strict>;
33052
+ }, z.core.$strict>;
30705
33053
  export declare const invoiceWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
30706
33054
  id: z.ZodString;
30707
33055
  description: z.ZodOptional<z.ZodString>;
@@ -33703,8 +36051,17 @@ export declare const createSubscriptionResponseWire: z.ZodObject<{
33703
36051
  created_at: z.ZodString;
33704
36052
  updated_at: z.ZodString;
33705
36053
  deleted_at: z.ZodOptional<z.ZodString>;
36054
+ name: z.ZodString;
36055
+ description: z.ZodOptional<z.ZodString>;
36056
+ active_from: z.ZodString;
36057
+ active_to: z.ZodOptional<z.ZodString>;
33706
36058
  customer_id: z.ZodString;
33707
36059
  plan_id: z.ZodOptional<z.ZodString>;
36060
+ plan: z.ZodOptional<z.ZodObject<{
36061
+ id: z.ZodString;
36062
+ key: z.ZodString;
36063
+ version: z.ZodNumber;
36064
+ }, z.core.$strict>>;
33708
36065
  invoice_currency: z.ZodString;
33709
36066
  cost_basis_mode: z.ZodEnum<{
33710
36067
  dynamic: "dynamic";
@@ -33715,6 +36072,14 @@ export declare const createSubscriptionResponseWire: z.ZodObject<{
33715
36072
  invoice_currency: z.ZodString;
33716
36073
  cost_basis_id: z.ZodString;
33717
36074
  }, z.core.$strict>>;
36075
+ billing_cadence: z.ZodString;
36076
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36077
+ enabled: z.ZodBoolean;
36078
+ mode: z.ZodEnum<{
36079
+ no_proration: "no_proration";
36080
+ prorate_prices: "prorate_prices";
36081
+ }>;
36082
+ }, z.core.$strict>>;
33718
36083
  billing_anchor: z.ZodString;
33719
36084
  status: z.ZodEnum<{
33720
36085
  active: "active";
@@ -33726,6 +36091,117 @@ export declare const createSubscriptionResponseWire: z.ZodObject<{
33726
36091
  credit_only: "credit_only";
33727
36092
  credit_then_invoice: "credit_then_invoice";
33728
36093
  }>>;
36094
+ current_period: z.ZodOptional<z.ZodObject<{
36095
+ from: z.ZodString;
36096
+ to: z.ZodString;
36097
+ }, z.core.$strict>>;
36098
+ phases: z.ZodArray<z.ZodObject<{
36099
+ id: z.ZodString;
36100
+ name: z.ZodString;
36101
+ description: z.ZodOptional<z.ZodString>;
36102
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36103
+ created_at: z.ZodString;
36104
+ updated_at: z.ZodString;
36105
+ deleted_at: z.ZodOptional<z.ZodString>;
36106
+ key: z.ZodString;
36107
+ active_from: z.ZodString;
36108
+ active_to: z.ZodOptional<z.ZodString>;
36109
+ items: z.ZodArray<z.ZodObject<{
36110
+ id: z.ZodString;
36111
+ active_from: z.ZodString;
36112
+ active_to: z.ZodOptional<z.ZodString>;
36113
+ rate_card: z.ZodObject<{
36114
+ name: z.ZodString;
36115
+ description: z.ZodOptional<z.ZodString>;
36116
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36117
+ key: z.ZodString;
36118
+ feature: z.ZodOptional<z.ZodObject<{
36119
+ id: z.ZodString;
36120
+ }, z.core.$strict>>;
36121
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36122
+ billing_cadence: z.ZodOptional<z.ZodString>;
36123
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36124
+ type: z.ZodLiteral<"free">;
36125
+ }, z.core.$strict>, z.ZodObject<{
36126
+ type: z.ZodLiteral<"flat">;
36127
+ amount: z.ZodString;
36128
+ }, z.core.$strict>, z.ZodObject<{
36129
+ type: z.ZodLiteral<"unit">;
36130
+ amount: z.ZodString;
36131
+ }, z.core.$strict>, z.ZodObject<{
36132
+ type: z.ZodLiteral<"graduated">;
36133
+ tiers: z.ZodArray<z.ZodObject<{
36134
+ up_to_amount: z.ZodOptional<z.ZodString>;
36135
+ flat_price: z.ZodOptional<z.ZodObject<{
36136
+ type: z.ZodLiteral<"flat">;
36137
+ amount: z.ZodString;
36138
+ }, z.core.$strict>>;
36139
+ unit_price: z.ZodOptional<z.ZodObject<{
36140
+ type: z.ZodLiteral<"unit">;
36141
+ amount: z.ZodString;
36142
+ }, z.core.$strict>>;
36143
+ }, z.core.$strict>>;
36144
+ }, z.core.$strict>, z.ZodObject<{
36145
+ type: z.ZodLiteral<"volume">;
36146
+ tiers: z.ZodArray<z.ZodObject<{
36147
+ up_to_amount: z.ZodOptional<z.ZodString>;
36148
+ flat_price: z.ZodOptional<z.ZodObject<{
36149
+ type: z.ZodLiteral<"flat">;
36150
+ amount: z.ZodString;
36151
+ }, z.core.$strict>>;
36152
+ unit_price: z.ZodOptional<z.ZodObject<{
36153
+ type: z.ZodLiteral<"unit">;
36154
+ amount: z.ZodString;
36155
+ }, z.core.$strict>>;
36156
+ }, z.core.$strict>>;
36157
+ }, z.core.$strict>], "type">;
36158
+ unit_config: z.ZodOptional<z.ZodObject<{
36159
+ operation: z.ZodEnum<{
36160
+ divide: "divide";
36161
+ multiply: "multiply";
36162
+ }>;
36163
+ conversion_factor: z.ZodString;
36164
+ rounding: z.ZodOptional<z.ZodEnum<{
36165
+ ceiling: "ceiling";
36166
+ floor: "floor";
36167
+ half_up: "half_up";
36168
+ none: "none";
36169
+ }>>;
36170
+ precision: z.ZodOptional<z.ZodNumber>;
36171
+ display_unit: z.ZodOptional<z.ZodString>;
36172
+ }, z.core.$strict>>;
36173
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36174
+ commitments: z.ZodOptional<z.ZodObject<{
36175
+ minimum_amount: z.ZodOptional<z.ZodString>;
36176
+ maximum_amount: z.ZodOptional<z.ZodString>;
36177
+ }, z.core.$strict>>;
36178
+ discounts: z.ZodOptional<z.ZodObject<{
36179
+ percentage: z.ZodOptional<z.ZodNumber>;
36180
+ usage: z.ZodOptional<z.ZodString>;
36181
+ }, z.core.$strict>>;
36182
+ tax_config: z.ZodOptional<z.ZodObject<{
36183
+ behavior: z.ZodOptional<z.ZodEnum<{
36184
+ exclusive: "exclusive";
36185
+ inclusive: "inclusive";
36186
+ }>>;
36187
+ code: z.ZodObject<{
36188
+ id: z.ZodString;
36189
+ }, z.core.$strict>;
36190
+ }, z.core.$strict>>;
36191
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36192
+ type: z.ZodLiteral<"metered">;
36193
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36194
+ limit: z.ZodOptional<z.ZodNumber>;
36195
+ usage_period: z.ZodOptional<z.ZodString>;
36196
+ }, z.core.$strict>, z.ZodObject<{
36197
+ type: z.ZodLiteral<"static">;
36198
+ config: z.ZodUnknown;
36199
+ }, z.core.$strict>, z.ZodObject<{
36200
+ type: z.ZodLiteral<"boolean">;
36201
+ }, z.core.$strict>], "type">>;
36202
+ }, z.core.$strict>;
36203
+ }, z.core.$strict>>;
36204
+ }, z.core.$strict>>;
33729
36205
  }, z.core.$strict>;
33730
36206
  export declare const listSubscriptionsQueryParamsWire: z.ZodObject<{
33731
36207
  page: z.ZodOptional<z.ZodObject<{
@@ -33768,8 +36244,17 @@ export declare const listSubscriptionsResponseWire: z.ZodObject<{
33768
36244
  created_at: z.ZodString;
33769
36245
  updated_at: z.ZodString;
33770
36246
  deleted_at: z.ZodOptional<z.ZodString>;
36247
+ name: z.ZodString;
36248
+ description: z.ZodOptional<z.ZodString>;
36249
+ active_from: z.ZodString;
36250
+ active_to: z.ZodOptional<z.ZodString>;
33771
36251
  customer_id: z.ZodString;
33772
36252
  plan_id: z.ZodOptional<z.ZodString>;
36253
+ plan: z.ZodOptional<z.ZodObject<{
36254
+ id: z.ZodString;
36255
+ key: z.ZodString;
36256
+ version: z.ZodNumber;
36257
+ }, z.core.$strict>>;
33773
36258
  invoice_currency: z.ZodString;
33774
36259
  cost_basis_mode: z.ZodEnum<{
33775
36260
  dynamic: "dynamic";
@@ -33780,6 +36265,14 @@ export declare const listSubscriptionsResponseWire: z.ZodObject<{
33780
36265
  invoice_currency: z.ZodString;
33781
36266
  cost_basis_id: z.ZodString;
33782
36267
  }, z.core.$strict>>;
36268
+ billing_cadence: z.ZodString;
36269
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36270
+ enabled: z.ZodBoolean;
36271
+ mode: z.ZodEnum<{
36272
+ no_proration: "no_proration";
36273
+ prorate_prices: "prorate_prices";
36274
+ }>;
36275
+ }, z.core.$strict>>;
33783
36276
  billing_anchor: z.ZodString;
33784
36277
  status: z.ZodEnum<{
33785
36278
  active: "active";
@@ -33791,6 +36284,117 @@ export declare const listSubscriptionsResponseWire: z.ZodObject<{
33791
36284
  credit_only: "credit_only";
33792
36285
  credit_then_invoice: "credit_then_invoice";
33793
36286
  }>>;
36287
+ current_period: z.ZodOptional<z.ZodObject<{
36288
+ from: z.ZodString;
36289
+ to: z.ZodString;
36290
+ }, z.core.$strict>>;
36291
+ phases: z.ZodArray<z.ZodObject<{
36292
+ id: z.ZodString;
36293
+ name: z.ZodString;
36294
+ description: z.ZodOptional<z.ZodString>;
36295
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36296
+ created_at: z.ZodString;
36297
+ updated_at: z.ZodString;
36298
+ deleted_at: z.ZodOptional<z.ZodString>;
36299
+ key: z.ZodString;
36300
+ active_from: z.ZodString;
36301
+ active_to: z.ZodOptional<z.ZodString>;
36302
+ items: z.ZodArray<z.ZodObject<{
36303
+ id: z.ZodString;
36304
+ active_from: z.ZodString;
36305
+ active_to: z.ZodOptional<z.ZodString>;
36306
+ rate_card: z.ZodObject<{
36307
+ name: z.ZodString;
36308
+ description: z.ZodOptional<z.ZodString>;
36309
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36310
+ key: z.ZodString;
36311
+ feature: z.ZodOptional<z.ZodObject<{
36312
+ id: z.ZodString;
36313
+ }, z.core.$strict>>;
36314
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36315
+ billing_cadence: z.ZodOptional<z.ZodString>;
36316
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36317
+ type: z.ZodLiteral<"free">;
36318
+ }, z.core.$strict>, z.ZodObject<{
36319
+ type: z.ZodLiteral<"flat">;
36320
+ amount: z.ZodString;
36321
+ }, z.core.$strict>, z.ZodObject<{
36322
+ type: z.ZodLiteral<"unit">;
36323
+ amount: z.ZodString;
36324
+ }, z.core.$strict>, z.ZodObject<{
36325
+ type: z.ZodLiteral<"graduated">;
36326
+ tiers: z.ZodArray<z.ZodObject<{
36327
+ up_to_amount: z.ZodOptional<z.ZodString>;
36328
+ flat_price: z.ZodOptional<z.ZodObject<{
36329
+ type: z.ZodLiteral<"flat">;
36330
+ amount: z.ZodString;
36331
+ }, z.core.$strict>>;
36332
+ unit_price: z.ZodOptional<z.ZodObject<{
36333
+ type: z.ZodLiteral<"unit">;
36334
+ amount: z.ZodString;
36335
+ }, z.core.$strict>>;
36336
+ }, z.core.$strict>>;
36337
+ }, z.core.$strict>, z.ZodObject<{
36338
+ type: z.ZodLiteral<"volume">;
36339
+ tiers: z.ZodArray<z.ZodObject<{
36340
+ up_to_amount: z.ZodOptional<z.ZodString>;
36341
+ flat_price: z.ZodOptional<z.ZodObject<{
36342
+ type: z.ZodLiteral<"flat">;
36343
+ amount: z.ZodString;
36344
+ }, z.core.$strict>>;
36345
+ unit_price: z.ZodOptional<z.ZodObject<{
36346
+ type: z.ZodLiteral<"unit">;
36347
+ amount: z.ZodString;
36348
+ }, z.core.$strict>>;
36349
+ }, z.core.$strict>>;
36350
+ }, z.core.$strict>], "type">;
36351
+ unit_config: z.ZodOptional<z.ZodObject<{
36352
+ operation: z.ZodEnum<{
36353
+ divide: "divide";
36354
+ multiply: "multiply";
36355
+ }>;
36356
+ conversion_factor: z.ZodString;
36357
+ rounding: z.ZodOptional<z.ZodEnum<{
36358
+ ceiling: "ceiling";
36359
+ floor: "floor";
36360
+ half_up: "half_up";
36361
+ none: "none";
36362
+ }>>;
36363
+ precision: z.ZodOptional<z.ZodNumber>;
36364
+ display_unit: z.ZodOptional<z.ZodString>;
36365
+ }, z.core.$strict>>;
36366
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36367
+ commitments: z.ZodOptional<z.ZodObject<{
36368
+ minimum_amount: z.ZodOptional<z.ZodString>;
36369
+ maximum_amount: z.ZodOptional<z.ZodString>;
36370
+ }, z.core.$strict>>;
36371
+ discounts: z.ZodOptional<z.ZodObject<{
36372
+ percentage: z.ZodOptional<z.ZodNumber>;
36373
+ usage: z.ZodOptional<z.ZodString>;
36374
+ }, z.core.$strict>>;
36375
+ tax_config: z.ZodOptional<z.ZodObject<{
36376
+ behavior: z.ZodOptional<z.ZodEnum<{
36377
+ exclusive: "exclusive";
36378
+ inclusive: "inclusive";
36379
+ }>>;
36380
+ code: z.ZodObject<{
36381
+ id: z.ZodString;
36382
+ }, z.core.$strict>;
36383
+ }, z.core.$strict>>;
36384
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36385
+ type: z.ZodLiteral<"metered">;
36386
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36387
+ limit: z.ZodOptional<z.ZodNumber>;
36388
+ usage_period: z.ZodOptional<z.ZodString>;
36389
+ }, z.core.$strict>, z.ZodObject<{
36390
+ type: z.ZodLiteral<"static">;
36391
+ config: z.ZodUnknown;
36392
+ }, z.core.$strict>, z.ZodObject<{
36393
+ type: z.ZodLiteral<"boolean">;
36394
+ }, z.core.$strict>], "type">>;
36395
+ }, z.core.$strict>;
36396
+ }, z.core.$strict>>;
36397
+ }, z.core.$strict>>;
33794
36398
  }, z.core.$strict>>;
33795
36399
  meta: z.ZodObject<{
33796
36400
  page: z.ZodObject<{
@@ -33809,8 +36413,17 @@ export declare const getSubscriptionResponseWire: z.ZodObject<{
33809
36413
  created_at: z.ZodString;
33810
36414
  updated_at: z.ZodString;
33811
36415
  deleted_at: z.ZodOptional<z.ZodString>;
36416
+ name: z.ZodString;
36417
+ description: z.ZodOptional<z.ZodString>;
36418
+ active_from: z.ZodString;
36419
+ active_to: z.ZodOptional<z.ZodString>;
33812
36420
  customer_id: z.ZodString;
33813
36421
  plan_id: z.ZodOptional<z.ZodString>;
36422
+ plan: z.ZodOptional<z.ZodObject<{
36423
+ id: z.ZodString;
36424
+ key: z.ZodString;
36425
+ version: z.ZodNumber;
36426
+ }, z.core.$strict>>;
33814
36427
  invoice_currency: z.ZodString;
33815
36428
  cost_basis_mode: z.ZodEnum<{
33816
36429
  dynamic: "dynamic";
@@ -33821,6 +36434,14 @@ export declare const getSubscriptionResponseWire: z.ZodObject<{
33821
36434
  invoice_currency: z.ZodString;
33822
36435
  cost_basis_id: z.ZodString;
33823
36436
  }, z.core.$strict>>;
36437
+ billing_cadence: z.ZodString;
36438
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36439
+ enabled: z.ZodBoolean;
36440
+ mode: z.ZodEnum<{
36441
+ no_proration: "no_proration";
36442
+ prorate_prices: "prorate_prices";
36443
+ }>;
36444
+ }, z.core.$strict>>;
33824
36445
  billing_anchor: z.ZodString;
33825
36446
  status: z.ZodEnum<{
33826
36447
  active: "active";
@@ -33832,6 +36453,117 @@ export declare const getSubscriptionResponseWire: z.ZodObject<{
33832
36453
  credit_only: "credit_only";
33833
36454
  credit_then_invoice: "credit_then_invoice";
33834
36455
  }>>;
36456
+ current_period: z.ZodOptional<z.ZodObject<{
36457
+ from: z.ZodString;
36458
+ to: z.ZodString;
36459
+ }, z.core.$strict>>;
36460
+ phases: z.ZodArray<z.ZodObject<{
36461
+ id: z.ZodString;
36462
+ name: z.ZodString;
36463
+ description: z.ZodOptional<z.ZodString>;
36464
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36465
+ created_at: z.ZodString;
36466
+ updated_at: z.ZodString;
36467
+ deleted_at: z.ZodOptional<z.ZodString>;
36468
+ key: z.ZodString;
36469
+ active_from: z.ZodString;
36470
+ active_to: z.ZodOptional<z.ZodString>;
36471
+ items: z.ZodArray<z.ZodObject<{
36472
+ id: z.ZodString;
36473
+ active_from: z.ZodString;
36474
+ active_to: z.ZodOptional<z.ZodString>;
36475
+ rate_card: z.ZodObject<{
36476
+ name: z.ZodString;
36477
+ description: z.ZodOptional<z.ZodString>;
36478
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36479
+ key: z.ZodString;
36480
+ feature: z.ZodOptional<z.ZodObject<{
36481
+ id: z.ZodString;
36482
+ }, z.core.$strict>>;
36483
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36484
+ billing_cadence: z.ZodOptional<z.ZodString>;
36485
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36486
+ type: z.ZodLiteral<"free">;
36487
+ }, z.core.$strict>, z.ZodObject<{
36488
+ type: z.ZodLiteral<"flat">;
36489
+ amount: z.ZodString;
36490
+ }, z.core.$strict>, z.ZodObject<{
36491
+ type: z.ZodLiteral<"unit">;
36492
+ amount: z.ZodString;
36493
+ }, z.core.$strict>, z.ZodObject<{
36494
+ type: z.ZodLiteral<"graduated">;
36495
+ tiers: z.ZodArray<z.ZodObject<{
36496
+ up_to_amount: z.ZodOptional<z.ZodString>;
36497
+ flat_price: z.ZodOptional<z.ZodObject<{
36498
+ type: z.ZodLiteral<"flat">;
36499
+ amount: z.ZodString;
36500
+ }, z.core.$strict>>;
36501
+ unit_price: z.ZodOptional<z.ZodObject<{
36502
+ type: z.ZodLiteral<"unit">;
36503
+ amount: z.ZodString;
36504
+ }, z.core.$strict>>;
36505
+ }, z.core.$strict>>;
36506
+ }, z.core.$strict>, z.ZodObject<{
36507
+ type: z.ZodLiteral<"volume">;
36508
+ tiers: z.ZodArray<z.ZodObject<{
36509
+ up_to_amount: z.ZodOptional<z.ZodString>;
36510
+ flat_price: z.ZodOptional<z.ZodObject<{
36511
+ type: z.ZodLiteral<"flat">;
36512
+ amount: z.ZodString;
36513
+ }, z.core.$strict>>;
36514
+ unit_price: z.ZodOptional<z.ZodObject<{
36515
+ type: z.ZodLiteral<"unit">;
36516
+ amount: z.ZodString;
36517
+ }, z.core.$strict>>;
36518
+ }, z.core.$strict>>;
36519
+ }, z.core.$strict>], "type">;
36520
+ unit_config: z.ZodOptional<z.ZodObject<{
36521
+ operation: z.ZodEnum<{
36522
+ divide: "divide";
36523
+ multiply: "multiply";
36524
+ }>;
36525
+ conversion_factor: z.ZodString;
36526
+ rounding: z.ZodOptional<z.ZodEnum<{
36527
+ ceiling: "ceiling";
36528
+ floor: "floor";
36529
+ half_up: "half_up";
36530
+ none: "none";
36531
+ }>>;
36532
+ precision: z.ZodOptional<z.ZodNumber>;
36533
+ display_unit: z.ZodOptional<z.ZodString>;
36534
+ }, z.core.$strict>>;
36535
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36536
+ commitments: z.ZodOptional<z.ZodObject<{
36537
+ minimum_amount: z.ZodOptional<z.ZodString>;
36538
+ maximum_amount: z.ZodOptional<z.ZodString>;
36539
+ }, z.core.$strict>>;
36540
+ discounts: z.ZodOptional<z.ZodObject<{
36541
+ percentage: z.ZodOptional<z.ZodNumber>;
36542
+ usage: z.ZodOptional<z.ZodString>;
36543
+ }, z.core.$strict>>;
36544
+ tax_config: z.ZodOptional<z.ZodObject<{
36545
+ behavior: z.ZodOptional<z.ZodEnum<{
36546
+ exclusive: "exclusive";
36547
+ inclusive: "inclusive";
36548
+ }>>;
36549
+ code: z.ZodObject<{
36550
+ id: z.ZodString;
36551
+ }, z.core.$strict>;
36552
+ }, z.core.$strict>>;
36553
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36554
+ type: z.ZodLiteral<"metered">;
36555
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36556
+ limit: z.ZodOptional<z.ZodNumber>;
36557
+ usage_period: z.ZodOptional<z.ZodString>;
36558
+ }, z.core.$strict>, z.ZodObject<{
36559
+ type: z.ZodLiteral<"static">;
36560
+ config: z.ZodUnknown;
36561
+ }, z.core.$strict>, z.ZodObject<{
36562
+ type: z.ZodLiteral<"boolean">;
36563
+ }, z.core.$strict>], "type">>;
36564
+ }, z.core.$strict>;
36565
+ }, z.core.$strict>>;
36566
+ }, z.core.$strict>>;
33835
36567
  }, z.core.$strict>;
33836
36568
  export declare const cancelSubscriptionPathParamsWire: z.ZodObject<{
33837
36569
  subscriptionId: z.ZodString;
@@ -33848,8 +36580,17 @@ export declare const cancelSubscriptionResponseWire: z.ZodObject<{
33848
36580
  created_at: z.ZodString;
33849
36581
  updated_at: z.ZodString;
33850
36582
  deleted_at: z.ZodOptional<z.ZodString>;
36583
+ name: z.ZodString;
36584
+ description: z.ZodOptional<z.ZodString>;
36585
+ active_from: z.ZodString;
36586
+ active_to: z.ZodOptional<z.ZodString>;
33851
36587
  customer_id: z.ZodString;
33852
36588
  plan_id: z.ZodOptional<z.ZodString>;
36589
+ plan: z.ZodOptional<z.ZodObject<{
36590
+ id: z.ZodString;
36591
+ key: z.ZodString;
36592
+ version: z.ZodNumber;
36593
+ }, z.core.$strict>>;
33853
36594
  invoice_currency: z.ZodString;
33854
36595
  cost_basis_mode: z.ZodEnum<{
33855
36596
  dynamic: "dynamic";
@@ -33860,6 +36601,14 @@ export declare const cancelSubscriptionResponseWire: z.ZodObject<{
33860
36601
  invoice_currency: z.ZodString;
33861
36602
  cost_basis_id: z.ZodString;
33862
36603
  }, z.core.$strict>>;
36604
+ billing_cadence: z.ZodString;
36605
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36606
+ enabled: z.ZodBoolean;
36607
+ mode: z.ZodEnum<{
36608
+ no_proration: "no_proration";
36609
+ prorate_prices: "prorate_prices";
36610
+ }>;
36611
+ }, z.core.$strict>>;
33863
36612
  billing_anchor: z.ZodString;
33864
36613
  status: z.ZodEnum<{
33865
36614
  active: "active";
@@ -33871,6 +36620,117 @@ export declare const cancelSubscriptionResponseWire: z.ZodObject<{
33871
36620
  credit_only: "credit_only";
33872
36621
  credit_then_invoice: "credit_then_invoice";
33873
36622
  }>>;
36623
+ current_period: z.ZodOptional<z.ZodObject<{
36624
+ from: z.ZodString;
36625
+ to: z.ZodString;
36626
+ }, z.core.$strict>>;
36627
+ phases: z.ZodArray<z.ZodObject<{
36628
+ id: z.ZodString;
36629
+ name: z.ZodString;
36630
+ description: z.ZodOptional<z.ZodString>;
36631
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36632
+ created_at: z.ZodString;
36633
+ updated_at: z.ZodString;
36634
+ deleted_at: z.ZodOptional<z.ZodString>;
36635
+ key: z.ZodString;
36636
+ active_from: z.ZodString;
36637
+ active_to: z.ZodOptional<z.ZodString>;
36638
+ items: z.ZodArray<z.ZodObject<{
36639
+ id: z.ZodString;
36640
+ active_from: z.ZodString;
36641
+ active_to: z.ZodOptional<z.ZodString>;
36642
+ rate_card: z.ZodObject<{
36643
+ name: z.ZodString;
36644
+ description: z.ZodOptional<z.ZodString>;
36645
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36646
+ key: z.ZodString;
36647
+ feature: z.ZodOptional<z.ZodObject<{
36648
+ id: z.ZodString;
36649
+ }, z.core.$strict>>;
36650
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36651
+ billing_cadence: z.ZodOptional<z.ZodString>;
36652
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36653
+ type: z.ZodLiteral<"free">;
36654
+ }, z.core.$strict>, z.ZodObject<{
36655
+ type: z.ZodLiteral<"flat">;
36656
+ amount: z.ZodString;
36657
+ }, z.core.$strict>, z.ZodObject<{
36658
+ type: z.ZodLiteral<"unit">;
36659
+ amount: z.ZodString;
36660
+ }, z.core.$strict>, z.ZodObject<{
36661
+ type: z.ZodLiteral<"graduated">;
36662
+ tiers: z.ZodArray<z.ZodObject<{
36663
+ up_to_amount: z.ZodOptional<z.ZodString>;
36664
+ flat_price: z.ZodOptional<z.ZodObject<{
36665
+ type: z.ZodLiteral<"flat">;
36666
+ amount: z.ZodString;
36667
+ }, z.core.$strict>>;
36668
+ unit_price: z.ZodOptional<z.ZodObject<{
36669
+ type: z.ZodLiteral<"unit">;
36670
+ amount: z.ZodString;
36671
+ }, z.core.$strict>>;
36672
+ }, z.core.$strict>>;
36673
+ }, z.core.$strict>, z.ZodObject<{
36674
+ type: z.ZodLiteral<"volume">;
36675
+ tiers: z.ZodArray<z.ZodObject<{
36676
+ up_to_amount: z.ZodOptional<z.ZodString>;
36677
+ flat_price: z.ZodOptional<z.ZodObject<{
36678
+ type: z.ZodLiteral<"flat">;
36679
+ amount: z.ZodString;
36680
+ }, z.core.$strict>>;
36681
+ unit_price: z.ZodOptional<z.ZodObject<{
36682
+ type: z.ZodLiteral<"unit">;
36683
+ amount: z.ZodString;
36684
+ }, z.core.$strict>>;
36685
+ }, z.core.$strict>>;
36686
+ }, z.core.$strict>], "type">;
36687
+ unit_config: z.ZodOptional<z.ZodObject<{
36688
+ operation: z.ZodEnum<{
36689
+ divide: "divide";
36690
+ multiply: "multiply";
36691
+ }>;
36692
+ conversion_factor: z.ZodString;
36693
+ rounding: z.ZodOptional<z.ZodEnum<{
36694
+ ceiling: "ceiling";
36695
+ floor: "floor";
36696
+ half_up: "half_up";
36697
+ none: "none";
36698
+ }>>;
36699
+ precision: z.ZodOptional<z.ZodNumber>;
36700
+ display_unit: z.ZodOptional<z.ZodString>;
36701
+ }, z.core.$strict>>;
36702
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36703
+ commitments: z.ZodOptional<z.ZodObject<{
36704
+ minimum_amount: z.ZodOptional<z.ZodString>;
36705
+ maximum_amount: z.ZodOptional<z.ZodString>;
36706
+ }, z.core.$strict>>;
36707
+ discounts: z.ZodOptional<z.ZodObject<{
36708
+ percentage: z.ZodOptional<z.ZodNumber>;
36709
+ usage: z.ZodOptional<z.ZodString>;
36710
+ }, z.core.$strict>>;
36711
+ tax_config: z.ZodOptional<z.ZodObject<{
36712
+ behavior: z.ZodOptional<z.ZodEnum<{
36713
+ exclusive: "exclusive";
36714
+ inclusive: "inclusive";
36715
+ }>>;
36716
+ code: z.ZodObject<{
36717
+ id: z.ZodString;
36718
+ }, z.core.$strict>;
36719
+ }, z.core.$strict>>;
36720
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36721
+ type: z.ZodLiteral<"metered">;
36722
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36723
+ limit: z.ZodOptional<z.ZodNumber>;
36724
+ usage_period: z.ZodOptional<z.ZodString>;
36725
+ }, z.core.$strict>, z.ZodObject<{
36726
+ type: z.ZodLiteral<"static">;
36727
+ config: z.ZodUnknown;
36728
+ }, z.core.$strict>, z.ZodObject<{
36729
+ type: z.ZodLiteral<"boolean">;
36730
+ }, z.core.$strict>], "type">>;
36731
+ }, z.core.$strict>;
36732
+ }, z.core.$strict>>;
36733
+ }, z.core.$strict>>;
33874
36734
  }, z.core.$strict>;
33875
36735
  export declare const unscheduleCancelationPathParamsWire: z.ZodObject<{
33876
36736
  subscriptionId: z.ZodString;
@@ -33881,8 +36741,17 @@ export declare const unscheduleCancelationResponseWire: z.ZodObject<{
33881
36741
  created_at: z.ZodString;
33882
36742
  updated_at: z.ZodString;
33883
36743
  deleted_at: z.ZodOptional<z.ZodString>;
36744
+ name: z.ZodString;
36745
+ description: z.ZodOptional<z.ZodString>;
36746
+ active_from: z.ZodString;
36747
+ active_to: z.ZodOptional<z.ZodString>;
33884
36748
  customer_id: z.ZodString;
33885
36749
  plan_id: z.ZodOptional<z.ZodString>;
36750
+ plan: z.ZodOptional<z.ZodObject<{
36751
+ id: z.ZodString;
36752
+ key: z.ZodString;
36753
+ version: z.ZodNumber;
36754
+ }, z.core.$strict>>;
33886
36755
  invoice_currency: z.ZodString;
33887
36756
  cost_basis_mode: z.ZodEnum<{
33888
36757
  dynamic: "dynamic";
@@ -33893,6 +36762,14 @@ export declare const unscheduleCancelationResponseWire: z.ZodObject<{
33893
36762
  invoice_currency: z.ZodString;
33894
36763
  cost_basis_id: z.ZodString;
33895
36764
  }, z.core.$strict>>;
36765
+ billing_cadence: z.ZodString;
36766
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36767
+ enabled: z.ZodBoolean;
36768
+ mode: z.ZodEnum<{
36769
+ no_proration: "no_proration";
36770
+ prorate_prices: "prorate_prices";
36771
+ }>;
36772
+ }, z.core.$strict>>;
33896
36773
  billing_anchor: z.ZodString;
33897
36774
  status: z.ZodEnum<{
33898
36775
  active: "active";
@@ -33904,6 +36781,117 @@ export declare const unscheduleCancelationResponseWire: z.ZodObject<{
33904
36781
  credit_only: "credit_only";
33905
36782
  credit_then_invoice: "credit_then_invoice";
33906
36783
  }>>;
36784
+ current_period: z.ZodOptional<z.ZodObject<{
36785
+ from: z.ZodString;
36786
+ to: z.ZodString;
36787
+ }, z.core.$strict>>;
36788
+ phases: z.ZodArray<z.ZodObject<{
36789
+ id: z.ZodString;
36790
+ name: z.ZodString;
36791
+ description: z.ZodOptional<z.ZodString>;
36792
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36793
+ created_at: z.ZodString;
36794
+ updated_at: z.ZodString;
36795
+ deleted_at: z.ZodOptional<z.ZodString>;
36796
+ key: z.ZodString;
36797
+ active_from: z.ZodString;
36798
+ active_to: z.ZodOptional<z.ZodString>;
36799
+ items: z.ZodArray<z.ZodObject<{
36800
+ id: z.ZodString;
36801
+ active_from: z.ZodString;
36802
+ active_to: z.ZodOptional<z.ZodString>;
36803
+ rate_card: z.ZodObject<{
36804
+ name: z.ZodString;
36805
+ description: z.ZodOptional<z.ZodString>;
36806
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36807
+ key: z.ZodString;
36808
+ feature: z.ZodOptional<z.ZodObject<{
36809
+ id: z.ZodString;
36810
+ }, z.core.$strict>>;
36811
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36812
+ billing_cadence: z.ZodOptional<z.ZodString>;
36813
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36814
+ type: z.ZodLiteral<"free">;
36815
+ }, z.core.$strict>, z.ZodObject<{
36816
+ type: z.ZodLiteral<"flat">;
36817
+ amount: z.ZodString;
36818
+ }, z.core.$strict>, z.ZodObject<{
36819
+ type: z.ZodLiteral<"unit">;
36820
+ amount: z.ZodString;
36821
+ }, z.core.$strict>, z.ZodObject<{
36822
+ type: z.ZodLiteral<"graduated">;
36823
+ tiers: z.ZodArray<z.ZodObject<{
36824
+ up_to_amount: z.ZodOptional<z.ZodString>;
36825
+ flat_price: z.ZodOptional<z.ZodObject<{
36826
+ type: z.ZodLiteral<"flat">;
36827
+ amount: z.ZodString;
36828
+ }, z.core.$strict>>;
36829
+ unit_price: z.ZodOptional<z.ZodObject<{
36830
+ type: z.ZodLiteral<"unit">;
36831
+ amount: z.ZodString;
36832
+ }, z.core.$strict>>;
36833
+ }, z.core.$strict>>;
36834
+ }, z.core.$strict>, z.ZodObject<{
36835
+ type: z.ZodLiteral<"volume">;
36836
+ tiers: z.ZodArray<z.ZodObject<{
36837
+ up_to_amount: z.ZodOptional<z.ZodString>;
36838
+ flat_price: z.ZodOptional<z.ZodObject<{
36839
+ type: z.ZodLiteral<"flat">;
36840
+ amount: z.ZodString;
36841
+ }, z.core.$strict>>;
36842
+ unit_price: z.ZodOptional<z.ZodObject<{
36843
+ type: z.ZodLiteral<"unit">;
36844
+ amount: z.ZodString;
36845
+ }, z.core.$strict>>;
36846
+ }, z.core.$strict>>;
36847
+ }, z.core.$strict>], "type">;
36848
+ unit_config: z.ZodOptional<z.ZodObject<{
36849
+ operation: z.ZodEnum<{
36850
+ divide: "divide";
36851
+ multiply: "multiply";
36852
+ }>;
36853
+ conversion_factor: z.ZodString;
36854
+ rounding: z.ZodOptional<z.ZodEnum<{
36855
+ ceiling: "ceiling";
36856
+ floor: "floor";
36857
+ half_up: "half_up";
36858
+ none: "none";
36859
+ }>>;
36860
+ precision: z.ZodOptional<z.ZodNumber>;
36861
+ display_unit: z.ZodOptional<z.ZodString>;
36862
+ }, z.core.$strict>>;
36863
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36864
+ commitments: z.ZodOptional<z.ZodObject<{
36865
+ minimum_amount: z.ZodOptional<z.ZodString>;
36866
+ maximum_amount: z.ZodOptional<z.ZodString>;
36867
+ }, z.core.$strict>>;
36868
+ discounts: z.ZodOptional<z.ZodObject<{
36869
+ percentage: z.ZodOptional<z.ZodNumber>;
36870
+ usage: z.ZodOptional<z.ZodString>;
36871
+ }, z.core.$strict>>;
36872
+ tax_config: z.ZodOptional<z.ZodObject<{
36873
+ behavior: z.ZodOptional<z.ZodEnum<{
36874
+ exclusive: "exclusive";
36875
+ inclusive: "inclusive";
36876
+ }>>;
36877
+ code: z.ZodObject<{
36878
+ id: z.ZodString;
36879
+ }, z.core.$strict>;
36880
+ }, z.core.$strict>>;
36881
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36882
+ type: z.ZodLiteral<"metered">;
36883
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36884
+ limit: z.ZodOptional<z.ZodNumber>;
36885
+ usage_period: z.ZodOptional<z.ZodString>;
36886
+ }, z.core.$strict>, z.ZodObject<{
36887
+ type: z.ZodLiteral<"static">;
36888
+ config: z.ZodUnknown;
36889
+ }, z.core.$strict>, z.ZodObject<{
36890
+ type: z.ZodLiteral<"boolean">;
36891
+ }, z.core.$strict>], "type">>;
36892
+ }, z.core.$strict>;
36893
+ }, z.core.$strict>>;
36894
+ }, z.core.$strict>>;
33907
36895
  }, z.core.$strict>;
33908
36896
  export declare const changeSubscriptionPathParamsWire: z.ZodObject<{
33909
36897
  subscriptionId: z.ZodString;
@@ -33940,8 +36928,17 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33940
36928
  created_at: z.ZodString;
33941
36929
  updated_at: z.ZodString;
33942
36930
  deleted_at: z.ZodOptional<z.ZodString>;
36931
+ name: z.ZodString;
36932
+ description: z.ZodOptional<z.ZodString>;
36933
+ active_from: z.ZodString;
36934
+ active_to: z.ZodOptional<z.ZodString>;
33943
36935
  customer_id: z.ZodString;
33944
36936
  plan_id: z.ZodOptional<z.ZodString>;
36937
+ plan: z.ZodOptional<z.ZodObject<{
36938
+ id: z.ZodString;
36939
+ key: z.ZodString;
36940
+ version: z.ZodNumber;
36941
+ }, z.core.$strict>>;
33945
36942
  invoice_currency: z.ZodString;
33946
36943
  cost_basis_mode: z.ZodEnum<{
33947
36944
  dynamic: "dynamic";
@@ -33952,6 +36949,14 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33952
36949
  invoice_currency: z.ZodString;
33953
36950
  cost_basis_id: z.ZodString;
33954
36951
  }, z.core.$strict>>;
36952
+ billing_cadence: z.ZodString;
36953
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
36954
+ enabled: z.ZodBoolean;
36955
+ mode: z.ZodEnum<{
36956
+ no_proration: "no_proration";
36957
+ prorate_prices: "prorate_prices";
36958
+ }>;
36959
+ }, z.core.$strict>>;
33955
36960
  billing_anchor: z.ZodString;
33956
36961
  status: z.ZodEnum<{
33957
36962
  active: "active";
@@ -33963,6 +36968,117 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33963
36968
  credit_only: "credit_only";
33964
36969
  credit_then_invoice: "credit_then_invoice";
33965
36970
  }>>;
36971
+ current_period: z.ZodOptional<z.ZodObject<{
36972
+ from: z.ZodString;
36973
+ to: z.ZodString;
36974
+ }, z.core.$strict>>;
36975
+ phases: z.ZodArray<z.ZodObject<{
36976
+ id: z.ZodString;
36977
+ name: z.ZodString;
36978
+ description: z.ZodOptional<z.ZodString>;
36979
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36980
+ created_at: z.ZodString;
36981
+ updated_at: z.ZodString;
36982
+ deleted_at: z.ZodOptional<z.ZodString>;
36983
+ key: z.ZodString;
36984
+ active_from: z.ZodString;
36985
+ active_to: z.ZodOptional<z.ZodString>;
36986
+ items: z.ZodArray<z.ZodObject<{
36987
+ id: z.ZodString;
36988
+ active_from: z.ZodString;
36989
+ active_to: z.ZodOptional<z.ZodString>;
36990
+ rate_card: z.ZodObject<{
36991
+ name: z.ZodString;
36992
+ description: z.ZodOptional<z.ZodString>;
36993
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36994
+ key: z.ZodString;
36995
+ feature: z.ZodOptional<z.ZodObject<{
36996
+ id: z.ZodString;
36997
+ }, z.core.$strict>>;
36998
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36999
+ billing_cadence: z.ZodOptional<z.ZodString>;
37000
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
37001
+ type: z.ZodLiteral<"free">;
37002
+ }, z.core.$strict>, z.ZodObject<{
37003
+ type: z.ZodLiteral<"flat">;
37004
+ amount: z.ZodString;
37005
+ }, z.core.$strict>, z.ZodObject<{
37006
+ type: z.ZodLiteral<"unit">;
37007
+ amount: z.ZodString;
37008
+ }, z.core.$strict>, z.ZodObject<{
37009
+ type: z.ZodLiteral<"graduated">;
37010
+ tiers: z.ZodArray<z.ZodObject<{
37011
+ up_to_amount: z.ZodOptional<z.ZodString>;
37012
+ flat_price: z.ZodOptional<z.ZodObject<{
37013
+ type: z.ZodLiteral<"flat">;
37014
+ amount: z.ZodString;
37015
+ }, z.core.$strict>>;
37016
+ unit_price: z.ZodOptional<z.ZodObject<{
37017
+ type: z.ZodLiteral<"unit">;
37018
+ amount: z.ZodString;
37019
+ }, z.core.$strict>>;
37020
+ }, z.core.$strict>>;
37021
+ }, z.core.$strict>, z.ZodObject<{
37022
+ type: z.ZodLiteral<"volume">;
37023
+ tiers: z.ZodArray<z.ZodObject<{
37024
+ up_to_amount: z.ZodOptional<z.ZodString>;
37025
+ flat_price: z.ZodOptional<z.ZodObject<{
37026
+ type: z.ZodLiteral<"flat">;
37027
+ amount: z.ZodString;
37028
+ }, z.core.$strict>>;
37029
+ unit_price: z.ZodOptional<z.ZodObject<{
37030
+ type: z.ZodLiteral<"unit">;
37031
+ amount: z.ZodString;
37032
+ }, z.core.$strict>>;
37033
+ }, z.core.$strict>>;
37034
+ }, z.core.$strict>], "type">;
37035
+ unit_config: z.ZodOptional<z.ZodObject<{
37036
+ operation: z.ZodEnum<{
37037
+ divide: "divide";
37038
+ multiply: "multiply";
37039
+ }>;
37040
+ conversion_factor: z.ZodString;
37041
+ rounding: z.ZodOptional<z.ZodEnum<{
37042
+ ceiling: "ceiling";
37043
+ floor: "floor";
37044
+ half_up: "half_up";
37045
+ none: "none";
37046
+ }>>;
37047
+ precision: z.ZodOptional<z.ZodNumber>;
37048
+ display_unit: z.ZodOptional<z.ZodString>;
37049
+ }, z.core.$strict>>;
37050
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
37051
+ commitments: z.ZodOptional<z.ZodObject<{
37052
+ minimum_amount: z.ZodOptional<z.ZodString>;
37053
+ maximum_amount: z.ZodOptional<z.ZodString>;
37054
+ }, z.core.$strict>>;
37055
+ discounts: z.ZodOptional<z.ZodObject<{
37056
+ percentage: z.ZodOptional<z.ZodNumber>;
37057
+ usage: z.ZodOptional<z.ZodString>;
37058
+ }, z.core.$strict>>;
37059
+ tax_config: z.ZodOptional<z.ZodObject<{
37060
+ behavior: z.ZodOptional<z.ZodEnum<{
37061
+ exclusive: "exclusive";
37062
+ inclusive: "inclusive";
37063
+ }>>;
37064
+ code: z.ZodObject<{
37065
+ id: z.ZodString;
37066
+ }, z.core.$strict>;
37067
+ }, z.core.$strict>>;
37068
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37069
+ type: z.ZodLiteral<"metered">;
37070
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37071
+ limit: z.ZodOptional<z.ZodNumber>;
37072
+ usage_period: z.ZodOptional<z.ZodString>;
37073
+ }, z.core.$strict>, z.ZodObject<{
37074
+ type: z.ZodLiteral<"static">;
37075
+ config: z.ZodUnknown;
37076
+ }, z.core.$strict>, z.ZodObject<{
37077
+ type: z.ZodLiteral<"boolean">;
37078
+ }, z.core.$strict>], "type">>;
37079
+ }, z.core.$strict>;
37080
+ }, z.core.$strict>>;
37081
+ }, z.core.$strict>>;
33966
37082
  }, z.core.$strict>;
33967
37083
  next: z.ZodObject<{
33968
37084
  id: z.ZodString;
@@ -33970,8 +37086,17 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33970
37086
  created_at: z.ZodString;
33971
37087
  updated_at: z.ZodString;
33972
37088
  deleted_at: z.ZodOptional<z.ZodString>;
37089
+ name: z.ZodString;
37090
+ description: z.ZodOptional<z.ZodString>;
37091
+ active_from: z.ZodString;
37092
+ active_to: z.ZodOptional<z.ZodString>;
33973
37093
  customer_id: z.ZodString;
33974
37094
  plan_id: z.ZodOptional<z.ZodString>;
37095
+ plan: z.ZodOptional<z.ZodObject<{
37096
+ id: z.ZodString;
37097
+ key: z.ZodString;
37098
+ version: z.ZodNumber;
37099
+ }, z.core.$strict>>;
33975
37100
  invoice_currency: z.ZodString;
33976
37101
  cost_basis_mode: z.ZodEnum<{
33977
37102
  dynamic: "dynamic";
@@ -33982,6 +37107,14 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33982
37107
  invoice_currency: z.ZodString;
33983
37108
  cost_basis_id: z.ZodString;
33984
37109
  }, z.core.$strict>>;
37110
+ billing_cadence: z.ZodString;
37111
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
37112
+ enabled: z.ZodBoolean;
37113
+ mode: z.ZodEnum<{
37114
+ no_proration: "no_proration";
37115
+ prorate_prices: "prorate_prices";
37116
+ }>;
37117
+ }, z.core.$strict>>;
33985
37118
  billing_anchor: z.ZodString;
33986
37119
  status: z.ZodEnum<{
33987
37120
  active: "active";
@@ -33993,6 +37126,117 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33993
37126
  credit_only: "credit_only";
33994
37127
  credit_then_invoice: "credit_then_invoice";
33995
37128
  }>>;
37129
+ current_period: z.ZodOptional<z.ZodObject<{
37130
+ from: z.ZodString;
37131
+ to: z.ZodString;
37132
+ }, z.core.$strict>>;
37133
+ phases: z.ZodArray<z.ZodObject<{
37134
+ id: z.ZodString;
37135
+ name: z.ZodString;
37136
+ description: z.ZodOptional<z.ZodString>;
37137
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37138
+ created_at: z.ZodString;
37139
+ updated_at: z.ZodString;
37140
+ deleted_at: z.ZodOptional<z.ZodString>;
37141
+ key: z.ZodString;
37142
+ active_from: z.ZodString;
37143
+ active_to: z.ZodOptional<z.ZodString>;
37144
+ items: z.ZodArray<z.ZodObject<{
37145
+ id: z.ZodString;
37146
+ active_from: z.ZodString;
37147
+ active_to: z.ZodOptional<z.ZodString>;
37148
+ rate_card: z.ZodObject<{
37149
+ name: z.ZodString;
37150
+ description: z.ZodOptional<z.ZodString>;
37151
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37152
+ key: z.ZodString;
37153
+ feature: z.ZodOptional<z.ZodObject<{
37154
+ id: z.ZodString;
37155
+ }, z.core.$strict>>;
37156
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
37157
+ billing_cadence: z.ZodOptional<z.ZodString>;
37158
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
37159
+ type: z.ZodLiteral<"free">;
37160
+ }, z.core.$strict>, z.ZodObject<{
37161
+ type: z.ZodLiteral<"flat">;
37162
+ amount: z.ZodString;
37163
+ }, z.core.$strict>, z.ZodObject<{
37164
+ type: z.ZodLiteral<"unit">;
37165
+ amount: z.ZodString;
37166
+ }, z.core.$strict>, z.ZodObject<{
37167
+ type: z.ZodLiteral<"graduated">;
37168
+ tiers: z.ZodArray<z.ZodObject<{
37169
+ up_to_amount: z.ZodOptional<z.ZodString>;
37170
+ flat_price: z.ZodOptional<z.ZodObject<{
37171
+ type: z.ZodLiteral<"flat">;
37172
+ amount: z.ZodString;
37173
+ }, z.core.$strict>>;
37174
+ unit_price: z.ZodOptional<z.ZodObject<{
37175
+ type: z.ZodLiteral<"unit">;
37176
+ amount: z.ZodString;
37177
+ }, z.core.$strict>>;
37178
+ }, z.core.$strict>>;
37179
+ }, z.core.$strict>, z.ZodObject<{
37180
+ type: z.ZodLiteral<"volume">;
37181
+ tiers: z.ZodArray<z.ZodObject<{
37182
+ up_to_amount: z.ZodOptional<z.ZodString>;
37183
+ flat_price: z.ZodOptional<z.ZodObject<{
37184
+ type: z.ZodLiteral<"flat">;
37185
+ amount: z.ZodString;
37186
+ }, z.core.$strict>>;
37187
+ unit_price: z.ZodOptional<z.ZodObject<{
37188
+ type: z.ZodLiteral<"unit">;
37189
+ amount: z.ZodString;
37190
+ }, z.core.$strict>>;
37191
+ }, z.core.$strict>>;
37192
+ }, z.core.$strict>], "type">;
37193
+ unit_config: z.ZodOptional<z.ZodObject<{
37194
+ operation: z.ZodEnum<{
37195
+ divide: "divide";
37196
+ multiply: "multiply";
37197
+ }>;
37198
+ conversion_factor: z.ZodString;
37199
+ rounding: z.ZodOptional<z.ZodEnum<{
37200
+ ceiling: "ceiling";
37201
+ floor: "floor";
37202
+ half_up: "half_up";
37203
+ none: "none";
37204
+ }>>;
37205
+ precision: z.ZodOptional<z.ZodNumber>;
37206
+ display_unit: z.ZodOptional<z.ZodString>;
37207
+ }, z.core.$strict>>;
37208
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
37209
+ commitments: z.ZodOptional<z.ZodObject<{
37210
+ minimum_amount: z.ZodOptional<z.ZodString>;
37211
+ maximum_amount: z.ZodOptional<z.ZodString>;
37212
+ }, z.core.$strict>>;
37213
+ discounts: z.ZodOptional<z.ZodObject<{
37214
+ percentage: z.ZodOptional<z.ZodNumber>;
37215
+ usage: z.ZodOptional<z.ZodString>;
37216
+ }, z.core.$strict>>;
37217
+ tax_config: z.ZodOptional<z.ZodObject<{
37218
+ behavior: z.ZodOptional<z.ZodEnum<{
37219
+ exclusive: "exclusive";
37220
+ inclusive: "inclusive";
37221
+ }>>;
37222
+ code: z.ZodObject<{
37223
+ id: z.ZodString;
37224
+ }, z.core.$strict>;
37225
+ }, z.core.$strict>>;
37226
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37227
+ type: z.ZodLiteral<"metered">;
37228
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37229
+ limit: z.ZodOptional<z.ZodNumber>;
37230
+ usage_period: z.ZodOptional<z.ZodString>;
37231
+ }, z.core.$strict>, z.ZodObject<{
37232
+ type: z.ZodLiteral<"static">;
37233
+ config: z.ZodUnknown;
37234
+ }, z.core.$strict>, z.ZodObject<{
37235
+ type: z.ZodLiteral<"boolean">;
37236
+ }, z.core.$strict>], "type">>;
37237
+ }, z.core.$strict>;
37238
+ }, z.core.$strict>>;
37239
+ }, z.core.$strict>>;
33996
37240
  }, z.core.$strict>;
33997
37241
  }, z.core.$strict>;
33998
37242
  export declare const createSubscriptionAddonPathParamsWire: z.ZodObject<{