@openmeter/client 1.0.0-beta-d6d4cd22dad8 → 1.0.0-beta-cf787e580aa1

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.
@@ -243,6 +243,10 @@ export declare const rateCardProrationMode: z.ZodEnum<{
243
243
  export declare const priceFree: z.ZodObject<{
244
244
  type: z.ZodLiteral<"free">;
245
245
  }, z.core.$strip>;
246
+ export declare const subscriptionCostBasisMode: z.ZodEnum<{
247
+ dynamic: "dynamic";
248
+ pinned: "pinned";
249
+ }>;
246
250
  export declare const subscriptionStatus: z.ZodEnum<{
247
251
  active: "active";
248
252
  canceled: "canceled";
@@ -780,6 +784,11 @@ export declare const subscriptionReference: z.ZodObject<{
780
784
  }, z.core.$strip>;
781
785
  }, z.core.$strip>;
782
786
  }, z.core.$strip>;
787
+ export declare const subscriptionCostBasisPin: z.ZodObject<{
788
+ customCurrencyId: z.ZodString;
789
+ invoiceCurrency: z.ZodString;
790
+ costBasisId: z.ZodString;
791
+ }, z.core.$strip>;
783
792
  export declare const addonReference: z.ZodObject<{
784
793
  id: z.ZodString;
785
794
  }, z.core.$strip>;
@@ -1359,6 +1368,12 @@ export declare const voidCreditGrantRequest: z.ZodObject<{
1359
1368
  none: "none";
1360
1369
  }>>>;
1361
1370
  }, z.core.$strip>;
1371
+ export declare const rateCardProrationConfiguration: z.ZodObject<{
1372
+ mode: z.ZodEnum<{
1373
+ no_proration: "no_proration";
1374
+ prorate_prices: "prorate_prices";
1375
+ }>;
1376
+ }, z.core.$strip>;
1362
1377
  export declare const subscriptionCreate: z.ZodObject<{
1363
1378
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1364
1379
  settlementMode: z.ZodOptional<z.ZodEnum<{
@@ -1375,32 +1390,10 @@ export declare const subscriptionCreate: z.ZodObject<{
1375
1390
  version: z.ZodOptional<z.ZodNumber>;
1376
1391
  }, z.core.$strip>;
1377
1392
  billingAnchor: z.ZodOptional<z.ZodDate>;
1378
- }, z.core.$strip>;
1379
- export declare const rateCardProrationConfiguration: z.ZodObject<{
1380
- mode: z.ZodEnum<{
1381
- no_proration: "no_proration";
1382
- prorate_prices: "prorate_prices";
1383
- }>;
1384
- }, z.core.$strip>;
1385
- export declare const subscription: z.ZodObject<{
1386
- id: z.ZodString;
1387
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1388
- createdAt: z.ZodDate;
1389
- updatedAt: z.ZodDate;
1390
- deletedAt: z.ZodOptional<z.ZodDate>;
1391
- customerId: z.ZodString;
1392
- planId: z.ZodOptional<z.ZodString>;
1393
- billingAnchor: z.ZodDate;
1394
- status: z.ZodEnum<{
1395
- active: "active";
1396
- canceled: "canceled";
1397
- inactive: "inactive";
1398
- scheduled: "scheduled";
1399
- }>;
1400
- settlementMode: z.ZodOptional<z.ZodEnum<{
1401
- credit_only: "credit_only";
1402
- credit_then_invoice: "credit_then_invoice";
1403
- }>>;
1393
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1394
+ dynamic: "dynamic";
1395
+ pinned: "pinned";
1396
+ }>>>;
1404
1397
  }, z.core.$strip>;
1405
1398
  export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1406
1399
  immediate: "immediate";
@@ -2031,6 +2024,36 @@ export declare const updateOrganizationDefaultTaxCodesRequest: z.ZodObject<{
2031
2024
  id: z.ZodString;
2032
2025
  }, z.core.$strip>>;
2033
2026
  }, 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>;
2034
2057
  export declare const planAddon: z.ZodObject<{
2035
2058
  id: z.ZodString;
2036
2059
  name: z.ZodString;
@@ -2751,77 +2774,6 @@ export declare const chargeFlatFeeSystemIntent: z.ZodObject<{
2751
2774
  }, z.core.$strip>;
2752
2775
  deletedAt: z.ZodOptional<z.ZodDate>;
2753
2776
  }, z.core.$strip>;
2754
- export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
2755
- data: z.ZodArray<z.ZodObject<{
2756
- id: z.ZodString;
2757
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2758
- createdAt: z.ZodDate;
2759
- updatedAt: z.ZodDate;
2760
- deletedAt: z.ZodOptional<z.ZodDate>;
2761
- customerId: z.ZodString;
2762
- planId: z.ZodOptional<z.ZodString>;
2763
- billingAnchor: z.ZodDate;
2764
- status: z.ZodEnum<{
2765
- active: "active";
2766
- canceled: "canceled";
2767
- inactive: "inactive";
2768
- scheduled: "scheduled";
2769
- }>;
2770
- settlementMode: z.ZodOptional<z.ZodEnum<{
2771
- credit_only: "credit_only";
2772
- credit_then_invoice: "credit_then_invoice";
2773
- }>>;
2774
- }, z.core.$strip>>;
2775
- meta: z.ZodObject<{
2776
- page: z.ZodObject<{
2777
- number: z.ZodNumber;
2778
- size: z.ZodNumber;
2779
- total: z.ZodNumber;
2780
- }, z.core.$strip>;
2781
- }, z.core.$strip>;
2782
- }, z.core.$strip>;
2783
- export declare const subscriptionChangeResponse: z.ZodObject<{
2784
- current: z.ZodObject<{
2785
- id: z.ZodString;
2786
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2787
- createdAt: z.ZodDate;
2788
- updatedAt: z.ZodDate;
2789
- deletedAt: z.ZodOptional<z.ZodDate>;
2790
- customerId: z.ZodString;
2791
- planId: z.ZodOptional<z.ZodString>;
2792
- billingAnchor: z.ZodDate;
2793
- status: z.ZodEnum<{
2794
- active: "active";
2795
- canceled: "canceled";
2796
- inactive: "inactive";
2797
- scheduled: "scheduled";
2798
- }>;
2799
- settlementMode: z.ZodOptional<z.ZodEnum<{
2800
- credit_only: "credit_only";
2801
- credit_then_invoice: "credit_then_invoice";
2802
- }>>;
2803
- }, z.core.$strip>;
2804
- next: z.ZodObject<{
2805
- id: z.ZodString;
2806
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2807
- createdAt: z.ZodDate;
2808
- updatedAt: z.ZodDate;
2809
- deletedAt: z.ZodOptional<z.ZodDate>;
2810
- customerId: z.ZodString;
2811
- planId: z.ZodOptional<z.ZodString>;
2812
- billingAnchor: z.ZodDate;
2813
- status: z.ZodEnum<{
2814
- active: "active";
2815
- canceled: "canceled";
2816
- inactive: "inactive";
2817
- scheduled: "scheduled";
2818
- }>;
2819
- settlementMode: z.ZodOptional<z.ZodEnum<{
2820
- credit_only: "credit_only";
2821
- credit_then_invoice: "credit_then_invoice";
2822
- }>>;
2823
- }, z.core.$strip>;
2824
- }, z.core.$strip>;
2825
2777
  export declare const subscriptionCancel: z.ZodObject<{
2826
2778
  timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2827
2779
  immediate: "immediate";
@@ -2844,6 +2796,10 @@ export declare const subscriptionChange: z.ZodObject<{
2844
2796
  version: z.ZodOptional<z.ZodNumber>;
2845
2797
  }, z.core.$strip>;
2846
2798
  billingAnchor: z.ZodOptional<z.ZodDate>;
2799
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2800
+ dynamic: "dynamic";
2801
+ pinned: "pinned";
2802
+ }>>>;
2847
2803
  timing: z.ZodUnion<readonly [z.ZodEnum<{
2848
2804
  immediate: "immediate";
2849
2805
  next_billing_cycle: "next_billing_cycle";
@@ -3397,6 +3353,107 @@ export declare const workflowTaxSettings: z.ZodObject<{
3397
3353
  }, z.core.$strip>>;
3398
3354
  }, z.core.$strip>>;
3399
3355
  }, 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>;
3400
3457
  export declare const planAddonPagePaginatedResponse: z.ZodObject<{
3401
3458
  data: z.ZodArray<z.ZodObject<{
3402
3459
  id: z.ZodString;
@@ -12875,6 +12932,10 @@ export declare const createSubscriptionBody: z.ZodObject<{
12875
12932
  version: z.ZodOptional<z.ZodNumber>;
12876
12933
  }, z.core.$strip>;
12877
12934
  billingAnchor: z.ZodOptional<z.ZodDate>;
12935
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12936
+ dynamic: "dynamic";
12937
+ pinned: "pinned";
12938
+ }>>>;
12878
12939
  }, z.core.$strip>;
12879
12940
  export declare const createSubscriptionResponse: z.ZodObject<{
12880
12941
  id: z.ZodString;
@@ -12884,6 +12945,16 @@ export declare const createSubscriptionResponse: z.ZodObject<{
12884
12945
  deletedAt: z.ZodOptional<z.ZodDate>;
12885
12946
  customerId: z.ZodString;
12886
12947
  planId: z.ZodOptional<z.ZodString>;
12948
+ invoiceCurrency: z.ZodString;
12949
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
12950
+ dynamic: "dynamic";
12951
+ pinned: "pinned";
12952
+ }>>;
12953
+ costBasisPins: z.ZodArray<z.ZodObject<{
12954
+ customCurrencyId: z.ZodString;
12955
+ invoiceCurrency: z.ZodString;
12956
+ costBasisId: z.ZodString;
12957
+ }, z.core.$strip>>;
12887
12958
  billingAnchor: z.ZodDate;
12888
12959
  status: z.ZodEnum<{
12889
12960
  active: "active";
@@ -12942,6 +13013,16 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
12942
13013
  deletedAt: z.ZodOptional<z.ZodDate>;
12943
13014
  customerId: z.ZodString;
12944
13015
  planId: z.ZodOptional<z.ZodString>;
13016
+ invoiceCurrency: z.ZodString;
13017
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13018
+ dynamic: "dynamic";
13019
+ pinned: "pinned";
13020
+ }>>;
13021
+ costBasisPins: z.ZodArray<z.ZodObject<{
13022
+ customCurrencyId: z.ZodString;
13023
+ invoiceCurrency: z.ZodString;
13024
+ costBasisId: z.ZodString;
13025
+ }, z.core.$strip>>;
12945
13026
  billingAnchor: z.ZodDate;
12946
13027
  status: z.ZodEnum<{
12947
13028
  active: "active";
@@ -12973,6 +13054,16 @@ export declare const getSubscriptionResponse: z.ZodObject<{
12973
13054
  deletedAt: z.ZodOptional<z.ZodDate>;
12974
13055
  customerId: z.ZodString;
12975
13056
  planId: z.ZodOptional<z.ZodString>;
13057
+ invoiceCurrency: z.ZodString;
13058
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13059
+ dynamic: "dynamic";
13060
+ pinned: "pinned";
13061
+ }>>;
13062
+ costBasisPins: z.ZodArray<z.ZodObject<{
13063
+ customCurrencyId: z.ZodString;
13064
+ invoiceCurrency: z.ZodString;
13065
+ costBasisId: z.ZodString;
13066
+ }, z.core.$strip>>;
12976
13067
  billingAnchor: z.ZodDate;
12977
13068
  status: z.ZodEnum<{
12978
13069
  active: "active";
@@ -13002,6 +13093,16 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
13002
13093
  deletedAt: z.ZodOptional<z.ZodDate>;
13003
13094
  customerId: z.ZodString;
13004
13095
  planId: z.ZodOptional<z.ZodString>;
13096
+ invoiceCurrency: z.ZodString;
13097
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13098
+ dynamic: "dynamic";
13099
+ pinned: "pinned";
13100
+ }>>;
13101
+ costBasisPins: z.ZodArray<z.ZodObject<{
13102
+ customCurrencyId: z.ZodString;
13103
+ invoiceCurrency: z.ZodString;
13104
+ costBasisId: z.ZodString;
13105
+ }, z.core.$strip>>;
13005
13106
  billingAnchor: z.ZodDate;
13006
13107
  status: z.ZodEnum<{
13007
13108
  active: "active";
@@ -13025,6 +13126,16 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
13025
13126
  deletedAt: z.ZodOptional<z.ZodDate>;
13026
13127
  customerId: z.ZodString;
13027
13128
  planId: z.ZodOptional<z.ZodString>;
13129
+ invoiceCurrency: z.ZodString;
13130
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13131
+ dynamic: "dynamic";
13132
+ pinned: "pinned";
13133
+ }>>;
13134
+ costBasisPins: z.ZodArray<z.ZodObject<{
13135
+ customCurrencyId: z.ZodString;
13136
+ invoiceCurrency: z.ZodString;
13137
+ costBasisId: z.ZodString;
13138
+ }, z.core.$strip>>;
13028
13139
  billingAnchor: z.ZodDate;
13029
13140
  status: z.ZodEnum<{
13030
13141
  active: "active";
@@ -13056,6 +13167,10 @@ export declare const changeSubscriptionBody: z.ZodObject<{
13056
13167
  version: z.ZodOptional<z.ZodNumber>;
13057
13168
  }, z.core.$strip>;
13058
13169
  billingAnchor: z.ZodOptional<z.ZodDate>;
13170
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
13171
+ dynamic: "dynamic";
13172
+ pinned: "pinned";
13173
+ }>>>;
13059
13174
  timing: z.ZodUnion<readonly [z.ZodEnum<{
13060
13175
  immediate: "immediate";
13061
13176
  next_billing_cycle: "next_billing_cycle";
@@ -13070,6 +13185,16 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13070
13185
  deletedAt: z.ZodOptional<z.ZodDate>;
13071
13186
  customerId: z.ZodString;
13072
13187
  planId: z.ZodOptional<z.ZodString>;
13188
+ invoiceCurrency: z.ZodString;
13189
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13190
+ dynamic: "dynamic";
13191
+ pinned: "pinned";
13192
+ }>>;
13193
+ costBasisPins: z.ZodArray<z.ZodObject<{
13194
+ customCurrencyId: z.ZodString;
13195
+ invoiceCurrency: z.ZodString;
13196
+ costBasisId: z.ZodString;
13197
+ }, z.core.$strip>>;
13073
13198
  billingAnchor: z.ZodDate;
13074
13199
  status: z.ZodEnum<{
13075
13200
  active: "active";
@@ -13090,6 +13215,16 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
13090
13215
  deletedAt: z.ZodOptional<z.ZodDate>;
13091
13216
  customerId: z.ZodString;
13092
13217
  planId: z.ZodOptional<z.ZodString>;
13218
+ invoiceCurrency: z.ZodString;
13219
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
13220
+ dynamic: "dynamic";
13221
+ pinned: "pinned";
13222
+ }>>;
13223
+ costBasisPins: z.ZodArray<z.ZodObject<{
13224
+ customCurrencyId: z.ZodString;
13225
+ invoiceCurrency: z.ZodString;
13226
+ costBasisId: z.ZodString;
13227
+ }, z.core.$strip>>;
13093
13228
  billingAnchor: z.ZodDate;
13094
13229
  status: z.ZodEnum<{
13095
13230
  active: "active";
@@ -20880,6 +21015,10 @@ export declare const rateCardProrationModeWire: z.ZodEnum<{
20880
21015
  export declare const priceFreeWire: z.ZodObject<{
20881
21016
  type: z.ZodLiteral<"free">;
20882
21017
  }, z.core.$strict>;
21018
+ export declare const subscriptionCostBasisModeWire: z.ZodEnum<{
21019
+ dynamic: "dynamic";
21020
+ pinned: "pinned";
21021
+ }>;
20883
21022
  export declare const subscriptionStatusWire: z.ZodEnum<{
20884
21023
  active: "active";
20885
21024
  canceled: "canceled";
@@ -21417,6 +21556,11 @@ export declare const subscriptionReferenceWire: z.ZodObject<{
21417
21556
  }, z.core.$strict>;
21418
21557
  }, z.core.$strict>;
21419
21558
  }, z.core.$strict>;
21559
+ export declare const subscriptionCostBasisPinWire: z.ZodObject<{
21560
+ custom_currency_id: z.ZodString;
21561
+ invoice_currency: z.ZodString;
21562
+ cost_basis_id: z.ZodString;
21563
+ }, z.core.$strict>;
21420
21564
  export declare const addonReferenceWire: z.ZodObject<{
21421
21565
  id: z.ZodString;
21422
21566
  }, z.core.$strict>;
@@ -21996,6 +22140,12 @@ export declare const voidCreditGrantRequestWire: z.ZodObject<{
21996
22140
  none: "none";
21997
22141
  }>>;
21998
22142
  }, z.core.$strict>;
22143
+ export declare const rateCardProrationConfigurationWire: z.ZodObject<{
22144
+ mode: z.ZodEnum<{
22145
+ no_proration: "no_proration";
22146
+ prorate_prices: "prorate_prices";
22147
+ }>;
22148
+ }, z.core.$strict>;
21999
22149
  export declare const subscriptionCreateWire: z.ZodObject<{
22000
22150
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22001
22151
  settlement_mode: z.ZodOptional<z.ZodEnum<{
@@ -22012,31 +22162,9 @@ export declare const subscriptionCreateWire: z.ZodObject<{
22012
22162
  version: z.ZodOptional<z.ZodNumber>;
22013
22163
  }, z.core.$strict>;
22014
22164
  billing_anchor: z.ZodOptional<z.ZodString>;
22015
- }, z.core.$strict>;
22016
- export declare const rateCardProrationConfigurationWire: z.ZodObject<{
22017
- mode: z.ZodEnum<{
22018
- no_proration: "no_proration";
22019
- prorate_prices: "prorate_prices";
22020
- }>;
22021
- }, z.core.$strict>;
22022
- export declare const subscriptionWire: z.ZodObject<{
22023
- id: z.ZodString;
22024
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22025
- created_at: z.ZodString;
22026
- updated_at: z.ZodString;
22027
- deleted_at: z.ZodOptional<z.ZodString>;
22028
- customer_id: z.ZodString;
22029
- plan_id: z.ZodOptional<z.ZodString>;
22030
- billing_anchor: z.ZodString;
22031
- status: z.ZodEnum<{
22032
- active: "active";
22033
- canceled: "canceled";
22034
- inactive: "inactive";
22035
- scheduled: "scheduled";
22036
- }>;
22037
- settlement_mode: z.ZodOptional<z.ZodEnum<{
22038
- credit_only: "credit_only";
22039
- credit_then_invoice: "credit_then_invoice";
22165
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
22166
+ dynamic: "dynamic";
22167
+ pinned: "pinned";
22040
22168
  }>>;
22041
22169
  }, z.core.$strict>;
22042
22170
  export declare const subscriptionEditTimingWire: z.ZodUnion<readonly [z.ZodEnum<{
@@ -22668,6 +22796,36 @@ export declare const updateOrganizationDefaultTaxCodesRequestWire: z.ZodObject<{
22668
22796
  id: z.ZodString;
22669
22797
  }, z.core.$strict>>;
22670
22798
  }, 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>;
22671
22829
  export declare const planAddonWire: z.ZodObject<{
22672
22830
  id: z.ZodString;
22673
22831
  name: z.ZodString;
@@ -23388,77 +23546,6 @@ export declare const chargeFlatFeeSystemIntentWire: z.ZodObject<{
23388
23546
  }, z.core.$strict>;
23389
23547
  deleted_at: z.ZodOptional<z.ZodString>;
23390
23548
  }, z.core.$strict>;
23391
- export declare const subscriptionPagePaginatedResponseWire: z.ZodObject<{
23392
- data: z.ZodArray<z.ZodObject<{
23393
- id: z.ZodString;
23394
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23395
- created_at: z.ZodString;
23396
- updated_at: z.ZodString;
23397
- deleted_at: z.ZodOptional<z.ZodString>;
23398
- customer_id: z.ZodString;
23399
- plan_id: z.ZodOptional<z.ZodString>;
23400
- billing_anchor: z.ZodString;
23401
- status: z.ZodEnum<{
23402
- active: "active";
23403
- canceled: "canceled";
23404
- inactive: "inactive";
23405
- scheduled: "scheduled";
23406
- }>;
23407
- settlement_mode: z.ZodOptional<z.ZodEnum<{
23408
- credit_only: "credit_only";
23409
- credit_then_invoice: "credit_then_invoice";
23410
- }>>;
23411
- }, z.core.$strict>>;
23412
- meta: z.ZodObject<{
23413
- page: z.ZodObject<{
23414
- number: z.ZodNumber;
23415
- size: z.ZodNumber;
23416
- total: z.ZodNumber;
23417
- }, z.core.$strict>;
23418
- }, z.core.$strict>;
23419
- }, z.core.$strict>;
23420
- export declare const subscriptionChangeResponseWire: z.ZodObject<{
23421
- current: z.ZodObject<{
23422
- id: z.ZodString;
23423
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23424
- created_at: z.ZodString;
23425
- updated_at: z.ZodString;
23426
- deleted_at: z.ZodOptional<z.ZodString>;
23427
- customer_id: z.ZodString;
23428
- plan_id: z.ZodOptional<z.ZodString>;
23429
- billing_anchor: z.ZodString;
23430
- status: z.ZodEnum<{
23431
- active: "active";
23432
- canceled: "canceled";
23433
- inactive: "inactive";
23434
- scheduled: "scheduled";
23435
- }>;
23436
- settlement_mode: z.ZodOptional<z.ZodEnum<{
23437
- credit_only: "credit_only";
23438
- credit_then_invoice: "credit_then_invoice";
23439
- }>>;
23440
- }, z.core.$strict>;
23441
- next: z.ZodObject<{
23442
- id: z.ZodString;
23443
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23444
- created_at: z.ZodString;
23445
- updated_at: z.ZodString;
23446
- deleted_at: z.ZodOptional<z.ZodString>;
23447
- customer_id: z.ZodString;
23448
- plan_id: z.ZodOptional<z.ZodString>;
23449
- billing_anchor: z.ZodString;
23450
- status: z.ZodEnum<{
23451
- active: "active";
23452
- canceled: "canceled";
23453
- inactive: "inactive";
23454
- scheduled: "scheduled";
23455
- }>;
23456
- settlement_mode: z.ZodOptional<z.ZodEnum<{
23457
- credit_only: "credit_only";
23458
- credit_then_invoice: "credit_then_invoice";
23459
- }>>;
23460
- }, z.core.$strict>;
23461
- }, z.core.$strict>;
23462
23549
  export declare const subscriptionCancelWire: z.ZodObject<{
23463
23550
  timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
23464
23551
  immediate: "immediate";
@@ -23481,6 +23568,10 @@ export declare const subscriptionChangeWire: z.ZodObject<{
23481
23568
  version: z.ZodOptional<z.ZodNumber>;
23482
23569
  }, z.core.$strict>;
23483
23570
  billing_anchor: z.ZodOptional<z.ZodString>;
23571
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
23572
+ dynamic: "dynamic";
23573
+ pinned: "pinned";
23574
+ }>>;
23484
23575
  timing: z.ZodUnion<readonly [z.ZodEnum<{
23485
23576
  immediate: "immediate";
23486
23577
  next_billing_cycle: "next_billing_cycle";
@@ -24034,6 +24125,107 @@ export declare const workflowTaxSettingsWire: z.ZodObject<{
24034
24125
  }, z.core.$strict>>;
24035
24126
  }, z.core.$strict>>;
24036
24127
  }, 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>;
24037
24229
  export declare const planAddonPagePaginatedResponseWire: z.ZodObject<{
24038
24230
  data: z.ZodArray<z.ZodObject<{
24039
24231
  id: z.ZodString;
@@ -33500,6 +33692,10 @@ export declare const createSubscriptionBodyWire: z.ZodObject<{
33500
33692
  version: z.ZodOptional<z.ZodNumber>;
33501
33693
  }, z.core.$strict>;
33502
33694
  billing_anchor: z.ZodOptional<z.ZodString>;
33695
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
33696
+ dynamic: "dynamic";
33697
+ pinned: "pinned";
33698
+ }>>;
33503
33699
  }, z.core.$strict>;
33504
33700
  export declare const createSubscriptionResponseWire: z.ZodObject<{
33505
33701
  id: z.ZodString;
@@ -33509,6 +33705,16 @@ export declare const createSubscriptionResponseWire: z.ZodObject<{
33509
33705
  deleted_at: z.ZodOptional<z.ZodString>;
33510
33706
  customer_id: z.ZodString;
33511
33707
  plan_id: z.ZodOptional<z.ZodString>;
33708
+ invoice_currency: z.ZodString;
33709
+ cost_basis_mode: z.ZodEnum<{
33710
+ dynamic: "dynamic";
33711
+ pinned: "pinned";
33712
+ }>;
33713
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33714
+ custom_currency_id: z.ZodString;
33715
+ invoice_currency: z.ZodString;
33716
+ cost_basis_id: z.ZodString;
33717
+ }, z.core.$strict>>;
33512
33718
  billing_anchor: z.ZodString;
33513
33719
  status: z.ZodEnum<{
33514
33720
  active: "active";
@@ -33564,6 +33770,16 @@ export declare const listSubscriptionsResponseWire: z.ZodObject<{
33564
33770
  deleted_at: z.ZodOptional<z.ZodString>;
33565
33771
  customer_id: z.ZodString;
33566
33772
  plan_id: z.ZodOptional<z.ZodString>;
33773
+ invoice_currency: z.ZodString;
33774
+ cost_basis_mode: z.ZodEnum<{
33775
+ dynamic: "dynamic";
33776
+ pinned: "pinned";
33777
+ }>;
33778
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33779
+ custom_currency_id: z.ZodString;
33780
+ invoice_currency: z.ZodString;
33781
+ cost_basis_id: z.ZodString;
33782
+ }, z.core.$strict>>;
33567
33783
  billing_anchor: z.ZodString;
33568
33784
  status: z.ZodEnum<{
33569
33785
  active: "active";
@@ -33595,6 +33811,16 @@ export declare const getSubscriptionResponseWire: z.ZodObject<{
33595
33811
  deleted_at: z.ZodOptional<z.ZodString>;
33596
33812
  customer_id: z.ZodString;
33597
33813
  plan_id: z.ZodOptional<z.ZodString>;
33814
+ invoice_currency: z.ZodString;
33815
+ cost_basis_mode: z.ZodEnum<{
33816
+ dynamic: "dynamic";
33817
+ pinned: "pinned";
33818
+ }>;
33819
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33820
+ custom_currency_id: z.ZodString;
33821
+ invoice_currency: z.ZodString;
33822
+ cost_basis_id: z.ZodString;
33823
+ }, z.core.$strict>>;
33598
33824
  billing_anchor: z.ZodString;
33599
33825
  status: z.ZodEnum<{
33600
33826
  active: "active";
@@ -33624,6 +33850,16 @@ export declare const cancelSubscriptionResponseWire: z.ZodObject<{
33624
33850
  deleted_at: z.ZodOptional<z.ZodString>;
33625
33851
  customer_id: z.ZodString;
33626
33852
  plan_id: z.ZodOptional<z.ZodString>;
33853
+ invoice_currency: z.ZodString;
33854
+ cost_basis_mode: z.ZodEnum<{
33855
+ dynamic: "dynamic";
33856
+ pinned: "pinned";
33857
+ }>;
33858
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33859
+ custom_currency_id: z.ZodString;
33860
+ invoice_currency: z.ZodString;
33861
+ cost_basis_id: z.ZodString;
33862
+ }, z.core.$strict>>;
33627
33863
  billing_anchor: z.ZodString;
33628
33864
  status: z.ZodEnum<{
33629
33865
  active: "active";
@@ -33647,6 +33883,16 @@ export declare const unscheduleCancelationResponseWire: z.ZodObject<{
33647
33883
  deleted_at: z.ZodOptional<z.ZodString>;
33648
33884
  customer_id: z.ZodString;
33649
33885
  plan_id: z.ZodOptional<z.ZodString>;
33886
+ invoice_currency: z.ZodString;
33887
+ cost_basis_mode: z.ZodEnum<{
33888
+ dynamic: "dynamic";
33889
+ pinned: "pinned";
33890
+ }>;
33891
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33892
+ custom_currency_id: z.ZodString;
33893
+ invoice_currency: z.ZodString;
33894
+ cost_basis_id: z.ZodString;
33895
+ }, z.core.$strict>>;
33650
33896
  billing_anchor: z.ZodString;
33651
33897
  status: z.ZodEnum<{
33652
33898
  active: "active";
@@ -33678,6 +33924,10 @@ export declare const changeSubscriptionBodyWire: z.ZodObject<{
33678
33924
  version: z.ZodOptional<z.ZodNumber>;
33679
33925
  }, z.core.$strict>;
33680
33926
  billing_anchor: z.ZodOptional<z.ZodString>;
33927
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
33928
+ dynamic: "dynamic";
33929
+ pinned: "pinned";
33930
+ }>>;
33681
33931
  timing: z.ZodUnion<readonly [z.ZodEnum<{
33682
33932
  immediate: "immediate";
33683
33933
  next_billing_cycle: "next_billing_cycle";
@@ -33692,6 +33942,16 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33692
33942
  deleted_at: z.ZodOptional<z.ZodString>;
33693
33943
  customer_id: z.ZodString;
33694
33944
  plan_id: z.ZodOptional<z.ZodString>;
33945
+ invoice_currency: z.ZodString;
33946
+ cost_basis_mode: z.ZodEnum<{
33947
+ dynamic: "dynamic";
33948
+ pinned: "pinned";
33949
+ }>;
33950
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33951
+ custom_currency_id: z.ZodString;
33952
+ invoice_currency: z.ZodString;
33953
+ cost_basis_id: z.ZodString;
33954
+ }, z.core.$strict>>;
33695
33955
  billing_anchor: z.ZodString;
33696
33956
  status: z.ZodEnum<{
33697
33957
  active: "active";
@@ -33712,6 +33972,16 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
33712
33972
  deleted_at: z.ZodOptional<z.ZodString>;
33713
33973
  customer_id: z.ZodString;
33714
33974
  plan_id: z.ZodOptional<z.ZodString>;
33975
+ invoice_currency: z.ZodString;
33976
+ cost_basis_mode: z.ZodEnum<{
33977
+ dynamic: "dynamic";
33978
+ pinned: "pinned";
33979
+ }>;
33980
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
33981
+ custom_currency_id: z.ZodString;
33982
+ invoice_currency: z.ZodString;
33983
+ cost_basis_id: z.ZodString;
33984
+ }, z.core.$strict>>;
33715
33985
  billing_anchor: z.ZodString;
33716
33986
  status: z.ZodEnum<{
33717
33987
  active: "active";