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

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.
@@ -100,11 +100,11 @@ export interface QueryFilterString {
100
100
  /** Custom text displayed at various stages of the checkout flow. */
101
101
  export interface AppStripeCheckoutSessionCustomTextParams {
102
102
  /** Text displayed after the payment confirmation button. */
103
- after_submit?: {
103
+ afterSubmit?: {
104
104
  message?: string;
105
105
  };
106
106
  /** Text displayed alongside shipping address collection. */
107
- shipping_address?: {
107
+ shippingAddress?: {
108
108
  message?: string;
109
109
  };
110
110
  /** Text displayed alongside the payment confirmation button. */
@@ -112,7 +112,7 @@ export interface AppStripeCheckoutSessionCustomTextParams {
112
112
  message?: string;
113
113
  };
114
114
  /** Text replacing the default terms of service agreement text. */
115
- terms_of_service_acceptance?: {
115
+ termsOfServiceAcceptance?: {
116
116
  message?: string;
117
117
  };
118
118
  }
@@ -124,7 +124,7 @@ export interface AppStripeCreateCustomerPortalSessionOptions {
124
124
  * to use for this session, describing its functionality and features. If not
125
125
  * specified, the session uses the default configuration.
126
126
  */
127
- configuration_id?: string;
127
+ configurationId?: string;
128
128
  /**
129
129
  * The IETF
130
130
  * [language tag](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-locale)
@@ -137,7 +137,7 @@ export interface AppStripeCreateCustomerPortalSessionOptions {
137
137
  * [URL to redirect](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url)
138
138
  * the customer to after they have completed their requested actions.
139
139
  */
140
- return_url?: string;
140
+ returnUrl?: string;
141
141
  }
142
142
  /**
143
143
  * Labels store metadata of an entity that can be used for filtering an entity list
@@ -202,7 +202,7 @@ export interface WorkflowCollectionAlignmentSubscription {
202
202
  */
203
203
  export interface WorkflowPaymentChargeAutomaticallySettings {
204
204
  /** The collection method for the invoice. */
205
- collection_method: 'charge_automatically';
205
+ collectionMethod: 'charge_automatically';
206
206
  }
207
207
  /**
208
208
  * Payment settings for a billing workflow when the collection method is send
@@ -210,24 +210,24 @@ export interface WorkflowPaymentChargeAutomaticallySettings {
210
210
  */
211
211
  export interface WorkflowPaymentSendInvoiceSettings {
212
212
  /** The collection method for the invoice. */
213
- collection_method: 'send_invoice';
213
+ collectionMethod: 'send_invoice';
214
214
  /**
215
215
  * The period after which the invoice is due. With some payment solutions it's only
216
216
  * applicable for manual collection method.
217
217
  */
218
- due_after: string;
218
+ dueAfter: string;
219
219
  }
220
220
  /** External identifiers assigned to an invoice by third-party systems. */
221
221
  export interface InvoiceExternalReferences {
222
222
  /** The ID assigned by the external invoicing app (e.g. Stripe invoice ID). */
223
- invoicing_id?: string;
223
+ invoicingId?: string;
224
224
  /** The ID assigned by the external payment app (e.g. Stripe payment intent ID). */
225
- payment_id?: string;
225
+ paymentId?: string;
226
226
  }
227
227
  /** Details about an available invoice action including the resulting state. */
228
228
  export interface InvoiceAvailableActionDetails {
229
229
  /** The extended status the invoice will transition to after performing this action. */
230
- resulting_state: string;
230
+ resultingState: string;
231
231
  }
232
232
  /**
233
233
  * Invoice-level invoicing settings.
@@ -238,14 +238,63 @@ export interface InvoiceAvailableActionDetails {
238
238
  */
239
239
  export interface InvoiceWorkflowInvoicingSettings {
240
240
  /** Whether to automatically issue the invoice after the draft_period has passed. */
241
- auto_advance: boolean;
241
+ autoAdvance: boolean;
242
242
  /** The period for the invoice to be kept in draft status for manual reviews. */
243
- draft_period: string;
243
+ draftPeriod: string;
244
+ /** The period after which the invoice is considered overdue if not paid. */
245
+ dueAfter?: string;
244
246
  }
245
247
  /** External identifiers for an invoice line item assigned by third-party systems. */
246
248
  export interface InvoiceLineExternalReferences {
247
249
  /** The ID assigned by the external invoicing app. */
248
- invoicing_id?: string;
250
+ invoicingId?: string;
251
+ }
252
+ /**
253
+ * Labels store metadata of an entity that can be used for filtering an entity list
254
+ * or for searching across entity types.
255
+ *
256
+ * Keys must be of length 1-63 characters, and cannot start with "kong", "konnect",
257
+ * "mesh", "kic", or "\_".
258
+ */
259
+ export type UpdateLabels = Record<string, string>;
260
+ /**
261
+ * Invoice-level invoicing settings.
262
+ *
263
+ * A subset of BillingWorkflowInvoicingSettings limited to fields that are
264
+ * meaningful per-invoice. progressive_billing is omitted as it is a gather-time /
265
+ * profile-level decision.
266
+ */
267
+ export interface UpdateBillingInvoiceWorkflowInvoicingSettings {
268
+ /** Whether to automatically issue the invoice after the draft_period has passed. */
269
+ autoAdvance: boolean;
270
+ /** The period for the invoice to be kept in draft status for manual reviews. */
271
+ draftPeriod: string;
272
+ }
273
+ /**
274
+ * Payment settings for a billing workflow when the collection method is charge
275
+ * automatically.
276
+ */
277
+ export interface UpdateBillingWorkflowPaymentChargeAutomaticallySettings {
278
+ /** The collection method for the invoice. */
279
+ collectionMethod: 'charge_automatically';
280
+ }
281
+ /**
282
+ * Payment settings for a billing workflow when the collection method is send
283
+ * invoice.
284
+ */
285
+ export interface UpdateBillingWorkflowPaymentSendInvoiceSettings {
286
+ /** The collection method for the invoice. */
287
+ collectionMethod: 'send_invoice';
288
+ /**
289
+ * The period after which the invoice is due. With some payment solutions it's only
290
+ * applicable for manual collection method.
291
+ */
292
+ dueAfter: string;
293
+ }
294
+ /** Free price. */
295
+ export interface UpdatePriceFree {
296
+ /** The type of the price. */
297
+ type: 'free';
249
298
  }
250
299
  /** LLM Provider */
251
300
  export interface LlmCostProvider {
@@ -410,9 +459,9 @@ export interface UpdateMeterRequest {
410
459
  /** Stripe customer data. */
411
460
  export interface AppCustomerDataStripe {
412
461
  /** The Stripe customer ID used. */
413
- customer_id?: string;
462
+ customerId?: string;
414
463
  /** The Stripe default payment method ID. */
415
- default_payment_method_id?: string;
464
+ defaultPaymentMethodId?: string;
416
465
  /** Labels for this Stripe integration on the customer. */
417
466
  labels?: Labels;
418
467
  }
@@ -440,7 +489,7 @@ export interface CurrencyFiat {
440
489
  /** Filter options for listing cost bases. */
441
490
  export interface ListCostBasesParamsFilter {
442
491
  /** Filter cost bases by fiat currency code. */
443
- fiat_code?: string;
492
+ fiatCode?: string;
444
493
  }
445
494
  /** Monetary amount in a specific currency. */
446
495
  export interface CurrencyAmount {
@@ -482,17 +531,17 @@ export interface Totals {
482
531
  /** The total value of the resource before taxes, discounts and commitments. */
483
532
  amount: string;
484
533
  /** The total tax amount applied to the resource. */
485
- taxes_total: string;
534
+ taxesTotal: string;
486
535
  /** The total tax amount already included in the resource amount. */
487
- taxes_inclusive_total: string;
536
+ taxesInclusiveTotal: string;
488
537
  /** The total tax amount added on top of the resource amount. */
489
- taxes_exclusive_total: string;
538
+ taxesExclusiveTotal: string;
490
539
  /** The total amount contributed by additional charges. */
491
- charges_total: string;
540
+ chargesTotal: string;
492
541
  /** The total amount deducted through discounts. */
493
- discounts_total: string;
542
+ discountsTotal: string;
494
543
  /** The total amount deducted through credits before taxes are applied. */
495
- credits_total: string;
544
+ creditsTotal: string;
496
545
  /** The final total value of the resource after taxes, discounts and commitments. */
497
546
  total: string;
498
547
  }
@@ -502,9 +551,9 @@ export interface Totals {
502
551
  */
503
552
  export interface SpendCommitments {
504
553
  /** The customer is committed to spend at least the amount. */
505
- minimum_amount?: string;
554
+ minimumAmount?: string;
506
555
  /** The customer is limited to spend at most the amount. */
507
- maximum_amount?: string;
556
+ maximumAmount?: string;
508
557
  }
509
558
  /** A credit allocation applied to an invoice line item. */
510
559
  export interface InvoiceLineCreditsApplied {
@@ -513,6 +562,36 @@ export interface InvoiceLineCreditsApplied {
513
562
  /** Optional human-readable description of the credit allocation. */
514
563
  description?: string;
515
564
  }
565
+ /** Flat price. */
566
+ export interface UpdatePriceFlat {
567
+ /** The type of the price. */
568
+ type: 'flat';
569
+ /** The amount of the flat price. */
570
+ amount: string;
571
+ }
572
+ /**
573
+ * Unit price.
574
+ *
575
+ * Charges a fixed rate per billing unit. When UnitConfig is present on the rate
576
+ * card, billing units are the converted quantities (e.g. GB instead of bytes).
577
+ */
578
+ export interface UpdatePriceUnit {
579
+ /** The type of the price. */
580
+ type: 'unit';
581
+ /** The amount of the unit price. */
582
+ amount: string;
583
+ }
584
+ /** Discount configuration for a rate card. */
585
+ export interface UpdateDiscounts {
586
+ /** Percentage discount applied to the price (0–100). */
587
+ percentage?: number;
588
+ /**
589
+ * Number of usage units granted free before billing starts. Only applies to
590
+ * usage-based lines (not flat fees). Usage is treated as zero until this amount is
591
+ * exhausted.
592
+ */
593
+ usage?: string;
594
+ }
516
595
  /** A fixed per-unit cost amount. */
517
596
  export interface FeatureManualUnitCost {
518
597
  /** The type discriminator for manual unit cost. */
@@ -523,28 +602,28 @@ export interface FeatureManualUnitCost {
523
602
  /** Resolved per-token pricing from the LLM cost database. */
524
603
  export interface FeatureLlmUnitCostPricing {
525
604
  /** Cost per input token in USD. */
526
- input_per_token: string;
605
+ inputPerToken: string;
527
606
  /** Cost per output token in USD. */
528
- output_per_token: string;
607
+ outputPerToken: string;
529
608
  /** Cost per cache read token in USD. */
530
- cache_read_per_token?: string;
609
+ cacheReadPerToken?: string;
531
610
  /** Cost per reasoning token in USD. */
532
- reasoning_per_token?: string;
611
+ reasoningPerToken?: string;
533
612
  /** Cost per cache write token in USD. */
534
- cache_write_per_token?: string;
613
+ cacheWritePerToken?: string;
535
614
  }
536
615
  /** Token pricing for an LLM model, denominated per token. */
537
616
  export interface LlmCostModelPricing {
538
617
  /** Input price per token (USD). */
539
- input_per_token: string;
618
+ inputPerToken: string;
540
619
  /** Output price per token (USD). */
541
- output_per_token: string;
620
+ outputPerToken: string;
542
621
  /** Cache read price per token (USD). */
543
- cache_read_per_token?: string;
622
+ cacheReadPerToken?: string;
544
623
  /** Cache write price per token (USD). */
545
- cache_write_per_token?: string;
624
+ cacheWritePerToken?: string;
546
625
  /** Reasoning output price per token (USD). */
547
- reasoning_per_token?: string;
626
+ reasoningPerToken?: string;
548
627
  }
549
628
  /**
550
629
  * A query filter for a numeric attribute. Operators are mutually exclusive, only
@@ -613,7 +692,7 @@ export interface ListLlmCostPricesParamsFilter {
613
692
  exists?: boolean;
614
693
  };
615
694
  /** Filter by model ID. e.g. ?filter[model_id][eq]=gpt-4 */
616
- model_id?: string | {
695
+ modelId?: string | {
617
696
  eq?: string;
618
697
  neq?: string;
619
698
  contains?: string;
@@ -626,7 +705,7 @@ export interface ListLlmCostPricesParamsFilter {
626
705
  exists?: boolean;
627
706
  };
628
707
  /** Filter by model name. e.g. ?filter[model_name][contains]=gpt */
629
- model_name?: string | {
708
+ modelName?: string | {
630
709
  eq?: string;
631
710
  neq?: string;
632
711
  contains?: string;
@@ -749,6 +828,10 @@ export interface ChargeReference {
749
828
  /** Unique identifier for the charge. */
750
829
  id: string;
751
830
  }
831
+ /** TaxCode reference. */
832
+ export interface UpdateResourceReference {
833
+ id: string;
834
+ }
752
835
  /** Metering event following the CloudEvents specification. */
753
836
  export interface Event {
754
837
  /** Identifies the event. */
@@ -809,14 +892,14 @@ export interface AppStripeCreateCustomerPortalSessionResult {
809
892
  */
810
893
  id: string;
811
894
  /** The ID of the stripe customer. */
812
- stripe_customer_id: string;
895
+ stripeCustomerId: string;
813
896
  /**
814
897
  * Configuration used to customize the customer portal.
815
898
  *
816
899
  * See:
817
900
  * https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-configuration
818
901
  */
819
- configuration_id: string;
902
+ configurationId: string;
820
903
  /**
821
904
  * Livemode.
822
905
  *
@@ -830,14 +913,14 @@ export interface AppStripeCreateCustomerPortalSessionResult {
830
913
  * See:
831
914
  * https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-created
832
915
  */
833
- created_at: string;
916
+ createdAt: string;
834
917
  /**
835
918
  * Return URL.
836
919
  *
837
920
  * See:
838
921
  * https://docs.stripe.com/api/customer_portal/sessions/object#portal_session_object-return_url
839
922
  */
840
- return_url: string;
923
+ returnUrl: string;
841
924
  /**
842
925
  * The IETF language tag of the locale customer portal is displayed in.
843
926
  *
@@ -873,17 +956,36 @@ export interface ClosedPeriod {
873
956
  /** A subscription add-on event. */
874
957
  export interface SubscriptionAddonTimelineSegment {
875
958
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
876
- active_from: string;
959
+ activeFrom: string;
877
960
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
878
- active_to?: string;
961
+ activeTo?: string;
879
962
  /** The quantity of the add-on for the given period. */
880
963
  quantity: number;
881
964
  }
965
+ /**
966
+ * A period with defined start and end dates.
967
+ *
968
+ * The period is always inclusive at the start and exclusive at the end.
969
+ */
970
+ export interface UpdateClosedPeriod {
971
+ /**
972
+ * The start of the period.
973
+ *
974
+ * The period is inclusive at the start.
975
+ */
976
+ from: string;
977
+ /**
978
+ * The end of the period.
979
+ *
980
+ * The period is exclusive at the end.
981
+ */
982
+ to: string;
983
+ }
882
984
  /** Describes currency basis supported by billing system. */
883
985
  export interface CostBasis {
884
986
  id: string;
885
987
  /** The fiat currency code for the cost basis. */
886
- fiat_code: string;
988
+ fiatCode: string;
887
989
  /** The cost rate for the currency. */
888
990
  rate: string;
889
991
  /**
@@ -891,20 +993,20 @@ export interface CostBasis {
891
993
  * effective. If not provided, it will be effective immediately and will be set to
892
994
  * `now` by the system.
893
995
  */
894
- effective_from?: string;
996
+ effectiveFrom?: string;
895
997
  /**
896
998
  * An ISO-8601 timestamp representation of the date until which the cost basis is
897
999
  * effective. If provided, it must be later than `effective_from`. If not provided,
898
1000
  * it remains effective until superseded.
899
1001
  */
900
- effective_to?: string;
1002
+ effectiveTo?: string;
901
1003
  /** An ISO-8601 timestamp representation of entity creation date. */
902
- created_at: string;
1004
+ createdAt: string;
903
1005
  }
904
1006
  /** CostBasis create request. */
905
1007
  export interface CreateCostBasisRequest {
906
1008
  /** The fiat currency code for the cost basis. */
907
- fiat_code: string;
1009
+ fiatCode: string;
908
1010
  /** The cost rate for the currency. */
909
1011
  rate: string;
910
1012
  /**
@@ -912,13 +1014,13 @@ export interface CreateCostBasisRequest {
912
1014
  * effective. If not provided, it will be effective immediately and will be set to
913
1015
  * `now` by the system.
914
1016
  */
915
- effective_from?: string;
1017
+ effectiveFrom?: string;
916
1018
  /**
917
1019
  * An ISO-8601 timestamp representation of the date until which the cost basis is
918
1020
  * effective. If provided, it must be later than `effective_from`. If not provided,
919
1021
  * it remains effective until superseded.
920
1022
  */
921
- effective_to?: string;
1023
+ effectiveTo?: string;
922
1024
  }
923
1025
  /** A row in the result of a feature cost query. */
924
1026
  export interface FeatureCostQueryRow {
@@ -963,11 +1065,11 @@ export interface Resource {
963
1065
  description?: string;
964
1066
  labels?: Labels;
965
1067
  /** An ISO-8601 timestamp representation of entity creation date. */
966
- created_at: string;
1068
+ createdAt: string;
967
1069
  /** An ISO-8601 timestamp representation of entity last update date. */
968
- updated_at: string;
1070
+ updatedAt: string;
969
1071
  /** An ISO-8601 timestamp representation of entity deletion date. */
970
- deleted_at?: string;
1072
+ deletedAt?: string;
971
1073
  }
972
1074
  /** Represents common fields of immutable resources. */
973
1075
  export interface ResourceImmutable {
@@ -986,7 +1088,7 @@ export interface ResourceImmutable {
986
1088
  description?: string;
987
1089
  labels?: Labels;
988
1090
  /** An ISO-8601 timestamp representation of entity creation date. */
989
- created_at: string;
1091
+ createdAt: string;
990
1092
  }
991
1093
  /**
992
1094
  * A query filter for a time attribute. Operators are mutually exclusive, only one
@@ -1142,13 +1244,13 @@ export interface UpsertPlanAddonRequest {
1142
1244
  description?: string;
1143
1245
  labels?: Labels;
1144
1246
  /** The key of the plan phase from which the add-on becomes available for purchase. */
1145
- from_plan_phase: string;
1247
+ fromPlanPhase: string;
1146
1248
  /**
1147
1249
  * The maximum number of times the add-on can be purchased for the plan. For
1148
1250
  * single-instance add-ons this field must be omitted. For multi-instance add-ons
1149
1251
  * when omitted, unlimited quantity can be purchased.
1150
1252
  */
1151
- max_quantity?: number;
1253
+ maxQuantity?: number;
1152
1254
  }
1153
1255
  /** Represents common fields of resources with a key. */
1154
1256
  export interface ResourceWithKey {
@@ -1167,11 +1269,11 @@ export interface ResourceWithKey {
1167
1269
  description?: string;
1168
1270
  labels?: Labels;
1169
1271
  /** An ISO-8601 timestamp representation of entity creation date. */
1170
- created_at: string;
1272
+ createdAt: string;
1171
1273
  /** An ISO-8601 timestamp representation of entity last update date. */
1172
- updated_at: string;
1274
+ updatedAt: string;
1173
1275
  /** An ISO-8601 timestamp representation of entity deletion date. */
1174
- deleted_at?: string;
1276
+ deletedAt?: string;
1175
1277
  key: string;
1176
1278
  }
1177
1279
  /** Meter create request. */
@@ -1193,12 +1295,12 @@ export interface CreateMeterRequest {
1193
1295
  /** The aggregation type to use for the meter. */
1194
1296
  aggregation: 'sum' | 'count' | 'unique_count' | 'avg' | 'min' | 'max' | 'latest';
1195
1297
  /** The event type to include in the aggregation. */
1196
- event_type: string;
1298
+ eventType: string;
1197
1299
  /**
1198
1300
  * The date since the meter should include events. Useful to skip old events. If
1199
1301
  * not specified, all historical events are included.
1200
1302
  */
1201
- events_from?: string;
1303
+ eventsFrom?: string;
1202
1304
  /**
1203
1305
  * JSONPath expression to extract the value from the ingested event's data
1204
1306
  * property.
@@ -1209,7 +1311,7 @@ export interface CreateMeterRequest {
1209
1311
  * For unique_count aggregation, the ingested value must be a string. For count
1210
1312
  * aggregation the value_property is ignored.
1211
1313
  */
1212
- value_property?: string;
1314
+ valueProperty?: string;
1213
1315
  /**
1214
1316
  * Named JSONPath expressions to extract the group by values from the event data.
1215
1317
  *
@@ -1234,21 +1336,21 @@ export interface Meter {
1234
1336
  description?: string;
1235
1337
  labels?: Labels;
1236
1338
  /** An ISO-8601 timestamp representation of entity creation date. */
1237
- created_at: string;
1339
+ createdAt: string;
1238
1340
  /** An ISO-8601 timestamp representation of entity last update date. */
1239
- updated_at: string;
1341
+ updatedAt: string;
1240
1342
  /** An ISO-8601 timestamp representation of entity deletion date. */
1241
- deleted_at?: string;
1343
+ deletedAt?: string;
1242
1344
  key: string;
1243
1345
  /** The aggregation type to use for the meter. */
1244
1346
  aggregation: 'sum' | 'count' | 'unique_count' | 'avg' | 'min' | 'max' | 'latest';
1245
1347
  /** The event type to include in the aggregation. */
1246
- event_type: string;
1348
+ eventType: string;
1247
1349
  /**
1248
1350
  * The date since the meter should include events. Useful to skip old events. If
1249
1351
  * not specified, all historical events are included.
1250
1352
  */
1251
- events_from?: string;
1353
+ eventsFrom?: string;
1252
1354
  /**
1253
1355
  * JSONPath expression to extract the value from the ingested event's data
1254
1356
  * property.
@@ -1259,7 +1361,7 @@ export interface Meter {
1259
1361
  * For unique_count aggregation, the ingested value must be a string. For count
1260
1362
  * aggregation the value_property is ignored.
1261
1363
  */
1262
- value_property?: string;
1364
+ valueProperty?: string;
1263
1365
  /**
1264
1366
  * Named JSONPath expressions to extract the group by values from the event data.
1265
1367
  *
@@ -1310,7 +1412,18 @@ export interface CustomerUsageAttribution {
1310
1412
  * The subjects that are attributed to the customer. Can be empty when no usage
1311
1413
  * event subjects are associated with the customer.
1312
1414
  */
1313
- subject_keys: string[];
1415
+ subjectKeys: string[];
1416
+ }
1417
+ /**
1418
+ * Mapping to attribute metered usage to the customer. One customer can have zero
1419
+ * or more subjects, but one subject can only belong to one customer.
1420
+ */
1421
+ export interface UpdateCustomerUsageAttribution {
1422
+ /**
1423
+ * The subjects that are attributed to the customer. Can be empty when no usage
1424
+ * event subjects are associated with the customer.
1425
+ */
1426
+ subjectKeys: string[];
1314
1427
  }
1315
1428
  /** Address */
1316
1429
  export interface Address {
@@ -1320,7 +1433,27 @@ export interface Address {
1320
1433
  */
1321
1434
  country?: string;
1322
1435
  /** Postal code. */
1323
- postal_code?: string;
1436
+ postalCode?: string;
1437
+ /** State or province. */
1438
+ state?: string;
1439
+ /** City. */
1440
+ city?: string;
1441
+ /** First line of the address. */
1442
+ line1?: string;
1443
+ /** Second line of the address. */
1444
+ line2?: string;
1445
+ /** Phone number. */
1446
+ phoneNumber?: string;
1447
+ }
1448
+ /** Address */
1449
+ export interface UpdateAddress {
1450
+ /**
1451
+ * Country code in [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html)
1452
+ * alpha-2 format.
1453
+ */
1454
+ country?: string;
1455
+ /** Postal code. */
1456
+ postalCode?: string;
1324
1457
  /** State or province. */
1325
1458
  state?: string;
1326
1459
  /** City. */
@@ -1330,7 +1463,7 @@ export interface Address {
1330
1463
  /** Second line of the address. */
1331
1464
  line2?: string;
1332
1465
  /** Phone number. */
1333
- phone_number?: string;
1466
+ phoneNumber?: string;
1334
1467
  }
1335
1468
  /** Controls which customer fields can be updated by the checkout session. */
1336
1469
  export interface AppStripeCreateCheckoutSessionCustomerUpdate {
@@ -1381,34 +1514,34 @@ export interface AppStripeCreateCheckoutSessionTaxIdCollection {
1381
1514
  */
1382
1515
  export interface AppStripeCreateCheckoutSessionResult {
1383
1516
  /** The customer ID in the billing system. */
1384
- customer_id: string;
1517
+ customerId: string;
1385
1518
  /** The Stripe customer ID. */
1386
- stripe_customer_id: string;
1519
+ stripeCustomerId: string;
1387
1520
  /** The Stripe checkout session ID. */
1388
- session_id: string;
1521
+ sessionId: string;
1389
1522
  /** The setup intent ID created for collecting the payment method. */
1390
- setup_intent_id: string;
1523
+ setupIntentId: string;
1391
1524
  /**
1392
1525
  * Client secret for initializing Stripe.js on the client side.
1393
1526
  *
1394
1527
  * Required for embedded checkout sessions. See:
1395
1528
  * https://docs.stripe.com/payments/checkout/custom-success-page
1396
1529
  */
1397
- client_secret?: string;
1530
+ clientSecret?: string;
1398
1531
  /**
1399
1532
  * The client reference ID provided in the request.
1400
1533
  *
1401
1534
  * Useful for reconciling the session with your internal systems.
1402
1535
  */
1403
- client_reference_id?: string;
1536
+ clientReferenceId?: string;
1404
1537
  /** Customer's email address if provided to Stripe. */
1405
- customer_email?: string;
1538
+ customerEmail?: string;
1406
1539
  /** Currency code for the checkout session. */
1407
1540
  currency?: string;
1408
1541
  /** Timestamp when the checkout session was created. */
1409
- created_at: string;
1542
+ createdAt: string;
1410
1543
  /** Timestamp when the checkout session will expire. */
1411
- expires_at?: string;
1544
+ expiresAt?: string;
1412
1545
  /** Metadata attached to the checkout session. */
1413
1546
  metadata?: Record<string, string>;
1414
1547
  /**
@@ -1427,11 +1560,11 @@ export interface AppStripeCreateCheckoutSessionResult {
1427
1560
  */
1428
1561
  mode: 'setup';
1429
1562
  /** The cancel URL where customers are redirected if they cancel. */
1430
- cancel_url?: string;
1563
+ cancelUrl?: string;
1431
1564
  /** The success URL where customers are redirected after completion. */
1432
- success_url?: string;
1565
+ successUrl?: string;
1433
1566
  /** The return URL for embedded sessions after authentication. */
1434
- return_url?: string;
1567
+ returnUrl?: string;
1435
1568
  }
1436
1569
  /**
1437
1570
  * Request to create a Stripe Customer Portal Session for the customer.
@@ -1443,19 +1576,19 @@ export interface AppStripeCreateCheckoutSessionResult {
1443
1576
  */
1444
1577
  export interface CustomerStripeCreateCustomerPortalSessionRequest {
1445
1578
  /** Options for configuring the Stripe Customer Portal Session. */
1446
- stripe_options: AppStripeCreateCustomerPortalSessionOptions;
1579
+ stripeOptions: AppStripeCreateCustomerPortalSessionOptions;
1447
1580
  }
1448
1581
  /** Entitlement access result. */
1449
1582
  export interface EntitlementAccessResult {
1450
1583
  /** The type of the entitlement. */
1451
1584
  type: 'metered' | 'static' | 'boolean';
1452
1585
  /** The feature key of the entitlement. */
1453
- feature_key: string;
1586
+ featureKey: string;
1454
1587
  /**
1455
1588
  * Whether the customer has access to the feature. Always true for `boolean` and
1456
1589
  * `static` entitlements. Depends on balance for `metered` entitlements.
1457
1590
  */
1458
- has_access: boolean;
1591
+ hasAccess: boolean;
1459
1592
  /**
1460
1593
  * Only available for static entitlements. Config is the JSON parsable
1461
1594
  * configuration of the entitlement. Useful to describe per customer configuration.
@@ -1475,13 +1608,13 @@ export interface CreateCreditGrantPurchase {
1475
1608
  *
1476
1609
  * Defaults to 1.0.
1477
1610
  */
1478
- per_unit_cost_basis: string;
1611
+ perUnitCostBasis: string;
1479
1612
  /**
1480
1613
  * Controls when credits become available for consumption.
1481
1614
  *
1482
1615
  * Defaults to `on_creation`.
1483
1616
  */
1484
- availability_policy: 'on_creation';
1617
+ availabilityPolicy: 'on_creation';
1485
1618
  }
1486
1619
  /** The entitlement template of a metered entitlement. */
1487
1620
  export interface RateCardMeteredEntitlement {
@@ -1491,7 +1624,7 @@ export interface RateCardMeteredEntitlement {
1491
1624
  * If soft limit is true, the subject can use the feature even if the entitlement
1492
1625
  * is exhausted; access remains granted.
1493
1626
  */
1494
- is_soft_limit: boolean;
1627
+ isSoftLimit: boolean;
1495
1628
  /**
1496
1629
  * The amount of usage granted each usage period, in the feature's unit. Usage is
1497
1630
  * counted against this allowance and the balance resets every usage period. When
@@ -1503,7 +1636,7 @@ export interface RateCardMeteredEntitlement {
1503
1636
  * The reset interval of the metered entitlement in ISO8601 format. Defaults to the
1504
1637
  * billing cadence of the rate card.
1505
1638
  */
1506
- usage_period?: string;
1639
+ usagePeriod?: string;
1507
1640
  }
1508
1641
  /** Recurring period with an anchor and an interval. */
1509
1642
  export interface RecurringPeriod {
@@ -1525,7 +1658,7 @@ export interface CreditGrantPurchase {
1525
1658
  *
1526
1659
  * Defaults to 1.0.
1527
1660
  */
1528
- per_unit_cost_basis: string;
1661
+ perUnitCostBasis: string;
1529
1662
  /** The purchase amount. Calculated from `per_unit_cost_basis` and credit `amount`. */
1530
1663
  amount: string;
1531
1664
  /**
@@ -1533,9 +1666,9 @@ export interface CreditGrantPurchase {
1533
1666
  *
1534
1667
  * Defaults to `on_creation`.
1535
1668
  */
1536
- availability_policy: 'on_creation';
1669
+ availabilityPolicy: 'on_creation';
1537
1670
  /** Current payment settlement status. */
1538
- settlement_status?: 'pending' | 'authorized' | 'settled';
1671
+ settlementStatus?: 'pending' | 'authorized' | 'settled';
1539
1672
  }
1540
1673
  /**
1541
1674
  * Request body for updating the external payment settlement status of a credit
@@ -1577,7 +1710,7 @@ export interface GetCreditBalanceParamsFilter {
1577
1710
  * Filter credit balance by feature key. Omit to return the total portfolio value.
1578
1711
  * Use `exists=false` to return only unrestricted balance.
1579
1712
  */
1580
- feature_key?: string | {
1713
+ featureKey?: string | {
1581
1714
  eq?: string;
1582
1715
  neq?: string;
1583
1716
  contains?: string;
@@ -1659,7 +1792,7 @@ export interface SubscriptionCreate {
1659
1792
  * invoiced.
1660
1793
  * - `credit_only`: Usage is settled exclusively against credits.
1661
1794
  */
1662
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
1795
+ settlementMode?: 'credit_then_invoice' | 'credit_only';
1663
1796
  /** The customer to create the subscription for. */
1664
1797
  customer: {
1665
1798
  id?: string;
@@ -1683,7 +1816,7 @@ export interface SubscriptionCreate {
1683
1816
  * If not provided, the subscription will be created with the subscription's
1684
1817
  * creation time as the billing anchor.
1685
1818
  */
1686
- billing_anchor?: string;
1819
+ billingAnchor?: string;
1687
1820
  }
1688
1821
  /** The proration configuration of the rate card. */
1689
1822
  export interface RateCardProrationConfiguration {
@@ -1695,15 +1828,15 @@ export interface Subscription {
1695
1828
  id: string;
1696
1829
  labels?: Labels;
1697
1830
  /** An ISO-8601 timestamp representation of entity creation date. */
1698
- created_at: string;
1831
+ createdAt: string;
1699
1832
  /** An ISO-8601 timestamp representation of entity last update date. */
1700
- updated_at: string;
1833
+ updatedAt: string;
1701
1834
  /** An ISO-8601 timestamp representation of entity deletion date. */
1702
- deleted_at?: string;
1835
+ deletedAt?: string;
1703
1836
  /** The customer ID of the subscription. */
1704
- customer_id: string;
1837
+ customerId: string;
1705
1838
  /** The plan ID of the subscription. Set if subscription is created from a plan. */
1706
- plan_id?: string;
1839
+ planId?: string;
1707
1840
  /**
1708
1841
  * A billing anchor is the fixed point in time that determines the subscription's
1709
1842
  * recurring billing cycle. It affects when charges occur and how prorations are
@@ -1713,7 +1846,7 @@ export interface Subscription {
1713
1846
  * - Subscription anniversary (day customer signed up)
1714
1847
  * - Custom date (customer-specified day)
1715
1848
  */
1716
- billing_anchor: string;
1849
+ billingAnchor: string;
1717
1850
  /** The status of the subscription. */
1718
1851
  status: 'active' | 'inactive' | 'canceled' | 'scheduled';
1719
1852
  /**
@@ -1725,7 +1858,7 @@ export interface Subscription {
1725
1858
  * invoiced.
1726
1859
  * - `credit_only`: Usage is settled exclusively against credits.
1727
1860
  */
1728
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
1861
+ settlementMode?: 'credit_then_invoice' | 'credit_only';
1729
1862
  }
1730
1863
  /**
1731
1864
  * Unit conversion configuration.
@@ -1762,7 +1895,7 @@ export interface UnitConfig {
1762
1895
  *
1763
1896
  * Must be a positive non-zero value.
1764
1897
  */
1765
- conversion_factor: string;
1898
+ conversionFactor: string;
1766
1899
  /**
1767
1900
  * The rounding mode applied to the converted quantity for invoicing.
1768
1901
  *
@@ -1783,7 +1916,7 @@ export interface UnitConfig {
1783
1916
  *
1784
1917
  * Optional. When omitted, no unit label is rendered.
1785
1918
  */
1786
- display_unit?: string;
1919
+ displayUnit?: string;
1787
1920
  }
1788
1921
  /**
1789
1922
  * Available apps for billing integrations to connect with third-party services.
@@ -1802,9 +1935,9 @@ export interface AppCatalogItem {
1802
1935
  /** Mapping of app types to tax codes. */
1803
1936
  export interface TaxCodeAppMapping {
1804
1937
  /** The app type that the tax code is associated with. */
1805
- app_type: 'sandbox' | 'stripe' | 'external_invoicing';
1938
+ appType: 'sandbox' | 'stripe' | 'external_invoicing';
1806
1939
  /** Tax code. */
1807
- tax_code: string;
1940
+ taxCode: string;
1808
1941
  }
1809
1942
  /**
1810
1943
  * Identity stores the details required to identify an entity for tax purposes in a
@@ -1814,16 +1947,24 @@ export interface PartyTaxIdentity {
1814
1947
  /** Normalized tax identification code shown on the original identity document. */
1815
1948
  code?: string;
1816
1949
  }
1950
+ /**
1951
+ * Identity stores the details required to identify an entity for tax purposes in a
1952
+ * specific country.
1953
+ */
1954
+ export interface UpdateBillingPartyTaxIdentity {
1955
+ /** Normalized tax identification code shown on the original identity document. */
1956
+ code?: string;
1957
+ }
1817
1958
  /** Invoice settings for a billing workflow. */
1818
1959
  export interface WorkflowInvoicingSettings {
1819
1960
  /** Whether to automatically issue the invoice after the draftPeriod has passed. */
1820
- auto_advance: boolean;
1961
+ autoAdvance: boolean;
1821
1962
  /** The period for the invoice to be kept in draft status for manual reviews. */
1822
- draft_period: string;
1963
+ draftPeriod: string;
1823
1964
  /** Should progressive billing be allowed for this workflow? */
1824
- progressive_billing: boolean;
1965
+ progressiveBilling: boolean;
1825
1966
  /** Controls how subscription-ending shortened service periods are billed. */
1826
- subscription_end_proration_mode: 'bill_full_period' | 'bill_actual_period';
1967
+ subscriptionEndProrationMode: 'bill_full_period' | 'bill_actual_period';
1827
1968
  }
1828
1969
  /**
1829
1970
  * A validation issue found during invoice processing.
@@ -1864,7 +2005,7 @@ export interface InvoiceAvailableActions {
1864
2005
  /** Retry a failed workflow step. */
1865
2006
  retry?: InvoiceAvailableActionDetails;
1866
2007
  /** Snapshot the current usage quantities. */
1867
- snapshot_quantities?: InvoiceAvailableActionDetails;
2008
+ snapshotQuantities?: InvoiceAvailableActionDetails;
1868
2009
  }
1869
2010
  /** A monetary amount discount applied to an invoice line item. */
1870
2011
  export interface InvoiceLineAmountDiscount {
@@ -1875,7 +2016,7 @@ export interface InvoiceLineAmountDiscount {
1875
2016
  /** Optional human-readable description of the discount. */
1876
2017
  description?: string;
1877
2018
  /** External identifiers for this discount. */
1878
- external_references?: InvoiceLineExternalReferences;
2019
+ externalReferences?: InvoiceLineExternalReferences;
1879
2020
  /** The monetary amount deducted. */
1880
2021
  amount: string;
1881
2022
  }
@@ -1888,7 +2029,7 @@ export interface InvoiceLineUsageDiscount {
1888
2029
  /** Optional human-readable description of the discount. */
1889
2030
  description?: string;
1890
2031
  /** External identifiers for this discount. */
1891
- external_references?: InvoiceLineExternalReferences;
2032
+ externalReferences?: InvoiceLineExternalReferences;
1892
2033
  /** The usage quantity deducted (in billing units). */
1893
2034
  quantity: string;
1894
2035
  }
@@ -1901,7 +2042,7 @@ export interface InvoiceLineBaseDiscount {
1901
2042
  /** Optional human-readable description of the discount. */
1902
2043
  description?: string;
1903
2044
  /** External identifiers for this discount. */
1904
- external_references?: InvoiceLineExternalReferences;
2045
+ externalReferences?: InvoiceLineExternalReferences;
1905
2046
  }
1906
2047
  /** Filter options for listing currencies. */
1907
2048
  export interface ListCurrenciesParamsFilter {
@@ -1936,7 +2077,7 @@ export interface CurrencyCustom {
1936
2077
  id: string;
1937
2078
  code: string;
1938
2079
  /** An ISO-8601 timestamp representation of the custom currency creation date. */
1939
- created_at: string;
2080
+ createdAt: string;
1940
2081
  }
1941
2082
  /** CurrencyCustom create request. */
1942
2083
  export interface CreateCurrencyCustomRequest {
@@ -1960,7 +2101,7 @@ export interface GovernanceQueryRequest {
1960
2101
  *
1961
2102
  * Defaults to `false`.
1962
2103
  */
1963
- include_credits: boolean;
2104
+ includeCredits: boolean;
1964
2105
  customer: GovernanceQueryRequestCustomers;
1965
2106
  feature?: GovernanceQueryRequestFeatures;
1966
2107
  }
@@ -1989,14 +2130,14 @@ export interface AppCustomerData {
1989
2130
  /** Used if the customer has a linked Stripe app. */
1990
2131
  stripe?: AppCustomerDataStripe;
1991
2132
  /** Used if the customer has a linked external invoicing app. */
1992
- external_invoicing?: AppCustomerDataExternalInvoicing;
2133
+ externalInvoicing?: AppCustomerDataExternalInvoicing;
1993
2134
  }
1994
2135
  /** AppCustomerData upsert request. */
1995
2136
  export interface UpsertAppCustomerDataRequest {
1996
2137
  /** Used if the customer has a linked Stripe app. */
1997
2138
  stripe?: AppCustomerDataStripe;
1998
2139
  /** Used if the customer has a linked external invoicing app. */
1999
- external_invoicing?: AppCustomerDataExternalInvoicing;
2140
+ externalInvoicing?: AppCustomerDataExternalInvoicing;
2000
2141
  }
2001
2142
  /**
2002
2143
  * A credit adjustment can be used to make manual adjustments to a customer's
@@ -2065,7 +2206,7 @@ export interface ListCreditTransactionsParamsFilter {
2065
2206
  * transactions. Use `exists=false` to return only unrestricted credit
2066
2207
  * transactions.
2067
2208
  */
2068
- feature_key?: string | {
2209
+ featureKey?: string | {
2069
2210
  eq?: string;
2070
2211
  neq?: string;
2071
2212
  contains?: string;
@@ -2100,9 +2241,9 @@ export interface CreditTransaction {
2100
2241
  description?: string;
2101
2242
  labels?: Labels;
2102
2243
  /** An ISO-8601 timestamp representation of entity creation date. */
2103
- created_at: string;
2244
+ createdAt: string;
2104
2245
  /** The date and time the transaction was booked. */
2105
- booked_at: string;
2246
+ bookedAt: string;
2106
2247
  /** The type of credit transaction. */
2107
2248
  type: 'funded' | 'consumed' | 'expired';
2108
2249
  /** Currency of the balance affected by the transaction. */
@@ -2113,7 +2254,7 @@ export interface CreditTransaction {
2113
2254
  */
2114
2255
  amount: string;
2115
2256
  /** The available balance before and after the transaction. */
2116
- available_balance: {
2257
+ availableBalance: {
2117
2258
  before: string;
2118
2259
  after: string;
2119
2260
  };
@@ -2130,11 +2271,11 @@ export interface PriceTier {
2130
2271
  * Up to and including this quantity will be contained in the tier. If undefined,
2131
2272
  * the tier is open-ended (the last tier).
2132
2273
  */
2133
- up_to_amount?: string;
2274
+ upToAmount?: string;
2134
2275
  /** The flat price component of the tier. Charged once when the tier is entered. */
2135
- flat_price?: PriceFlat;
2276
+ flatPrice?: PriceFlat;
2136
2277
  /** The unit price component of the tier. Charged per billing unit within the tier. */
2137
- unit_price?: PriceUnit;
2278
+ unitPrice?: PriceUnit;
2138
2279
  }
2139
2280
  /**
2140
2281
  * The totals of a change.
@@ -2151,6 +2292,24 @@ export interface ChargeTotals {
2151
2292
  */
2152
2293
  realtime?: Totals;
2153
2294
  }
2295
+ /**
2296
+ * A price tier used in graduated and volume pricing.
2297
+ *
2298
+ * At least one price component (flat_price or unit_price) must be set. When
2299
+ * UnitConfig is present on the rate card, up_to_amount is expressed in converted
2300
+ * billing units.
2301
+ */
2302
+ export interface UpdatePriceTier {
2303
+ /**
2304
+ * Up to and including this quantity will be contained in the tier. If undefined,
2305
+ * the tier is open-ended (the last tier).
2306
+ */
2307
+ upToAmount?: string;
2308
+ /** The flat price component of the tier. Charged once when the tier is entered. */
2309
+ flatPrice?: UpdatePriceFlat;
2310
+ /** The unit price component of the tier. Charged per billing unit within the tier. */
2311
+ unitPrice?: UpdatePriceUnit;
2312
+ }
2154
2313
  /**
2155
2314
  * LLM cost lookup configuration. Each dimension (provider, model, token type) can
2156
2315
  * be specified as either a static value or a meter group-by property name
@@ -2163,7 +2322,7 @@ export interface FeatureLlmUnitCost {
2163
2322
  * Meter group-by property that holds the LLM provider. Use this when the meter has
2164
2323
  * a group-by dimension for provider. Mutually exclusive with `provider`.
2165
2324
  */
2166
- provider_property?: string;
2325
+ providerProperty?: string;
2167
2326
  /**
2168
2327
  * Static LLM provider value (e.g., "openai", "anthropic"). Use this when the
2169
2328
  * feature tracks a single provider. Mutually exclusive with `provider_property`.
@@ -2173,7 +2332,7 @@ export interface FeatureLlmUnitCost {
2173
2332
  * Meter group-by property that holds the model ID. Use this when the meter has a
2174
2333
  * group-by dimension for model. Mutually exclusive with `model`.
2175
2334
  */
2176
- model_property?: string;
2335
+ modelProperty?: string;
2177
2336
  /**
2178
2337
  * Static model ID value (e.g., "gpt-4", "claude-3-5-sonnet"). Use this when the
2179
2338
  * feature tracks a single model. Mutually exclusive with `model_property`.
@@ -2183,13 +2342,13 @@ export interface FeatureLlmUnitCost {
2183
2342
  * Meter group-by property that holds the token type. Use this when the meter has a
2184
2343
  * group-by dimension for token type. Mutually exclusive with `token_type`.
2185
2344
  */
2186
- token_type_property?: string;
2345
+ tokenTypeProperty?: string;
2187
2346
  /**
2188
2347
  * Static token type value. Use this when the feature tracks a single token type
2189
2348
  * (e.g., only input tokens). `request` is an alias for `input`, `response` is an
2190
2349
  * alias for `output`. Mutually exclusive with `token_type_property`.
2191
2350
  */
2192
- token_type?: 'input' | 'output' | 'cache_read' | 'cache_write' | 'reasoning' | 'request' | 'response';
2351
+ tokenType?: 'input' | 'output' | 'cache_read' | 'cache_write' | 'reasoning' | 'request' | 'response';
2193
2352
  /**
2194
2353
  * Resolved per-token pricing from the LLM cost database. Populated in responses
2195
2354
  * when the provider and model can be determined, either from static values or from
@@ -2215,13 +2374,13 @@ export interface LlmCostPrice {
2215
2374
  /** Where this price came from. */
2216
2375
  source: 'manual' | 'system';
2217
2376
  /** When this price becomes effective. */
2218
- effective_from: string;
2377
+ effectiveFrom: string;
2219
2378
  /** When this price expires. Omitted when the price is currently effective. */
2220
- effective_to?: string;
2379
+ effectiveTo?: string;
2221
2380
  /** Creation timestamp. */
2222
- created_at: string;
2381
+ createdAt: string;
2223
2382
  /** Last update timestamp. */
2224
- updated_at: string;
2383
+ updatedAt: string;
2225
2384
  }
2226
2385
  /**
2227
2386
  * Input for creating a per-namespace price override. Unique per provider, model
@@ -2232,17 +2391,17 @@ export interface LlmCostOverrideCreate {
2232
2391
  /** Provider/vendor of the model. */
2233
2392
  provider: string;
2234
2393
  /** Canonical model identifier. */
2235
- model_id: string;
2394
+ modelId: string;
2236
2395
  /** Human-readable model name. */
2237
- model_name?: string;
2396
+ modelName?: string;
2238
2397
  /** Token pricing data. */
2239
2398
  pricing: LlmCostModelPricing;
2240
2399
  /** Currency code. */
2241
2400
  currency: string;
2242
2401
  /** When this override becomes effective. */
2243
- effective_from: string;
2402
+ effectiveFrom: string;
2244
2403
  /** When this override expires. */
2245
- effective_to?: string;
2404
+ effectiveTo?: string;
2246
2405
  }
2247
2406
  /** Filter options for listing customers. */
2248
2407
  export interface ListCustomersParamsFilter {
@@ -2270,7 +2429,7 @@ export interface ListCustomersParamsFilter {
2270
2429
  lte?: string;
2271
2430
  exists?: boolean;
2272
2431
  };
2273
- primary_email?: string | {
2432
+ primaryEmail?: string | {
2274
2433
  eq?: string;
2275
2434
  neq?: string;
2276
2435
  contains?: string;
@@ -2282,7 +2441,7 @@ export interface ListCustomersParamsFilter {
2282
2441
  lte?: string;
2283
2442
  exists?: boolean;
2284
2443
  };
2285
- usage_attribution_subject_key?: string | {
2444
+ usageAttributionSubjectKey?: string | {
2286
2445
  eq?: string;
2287
2446
  neq?: string;
2288
2447
  contains?: string;
@@ -2294,7 +2453,7 @@ export interface ListCustomersParamsFilter {
2294
2453
  lte?: string;
2295
2454
  exists?: boolean;
2296
2455
  };
2297
- plan_key?: string | {
2456
+ planKey?: string | {
2298
2457
  eq?: string;
2299
2458
  neq?: string;
2300
2459
  contains?: string;
@@ -2306,7 +2465,7 @@ export interface ListCustomersParamsFilter {
2306
2465
  lte?: string;
2307
2466
  exists?: boolean;
2308
2467
  };
2309
- billing_profile_id?: string | {
2468
+ billingProfileId?: string | {
2310
2469
  eq?: string;
2311
2470
  oeq?: string[];
2312
2471
  neq?: string;
@@ -2319,7 +2478,7 @@ export interface ListSubscriptionsParamsFilter {
2319
2478
  oeq?: string[];
2320
2479
  neq?: string;
2321
2480
  };
2322
- customer_id?: string | {
2481
+ customerId?: string | {
2323
2482
  eq?: string;
2324
2483
  oeq?: string[];
2325
2484
  neq?: string;
@@ -2329,12 +2488,12 @@ export interface ListSubscriptionsParamsFilter {
2329
2488
  oeq?: string[];
2330
2489
  neq?: string;
2331
2490
  };
2332
- plan_id?: string | {
2491
+ planId?: string | {
2333
2492
  eq?: string;
2334
2493
  oeq?: string[];
2335
2494
  neq?: string;
2336
2495
  };
2337
- plan_key?: string | {
2496
+ planKey?: string | {
2338
2497
  eq?: string;
2339
2498
  oeq?: string[];
2340
2499
  neq?: string;
@@ -2342,7 +2501,7 @@ export interface ListSubscriptionsParamsFilter {
2342
2501
  }
2343
2502
  /** Filter options for listing features. */
2344
2503
  export interface ListFeatureParamsFilter {
2345
- meter_id?: string | {
2504
+ meterId?: string | {
2346
2505
  eq?: string;
2347
2506
  oeq?: string[];
2348
2507
  neq?: string;
@@ -2424,7 +2583,7 @@ export interface CreateCreditGrantTaxConfig {
2424
2583
  /** Tax behavior applied to the invoice line item. */
2425
2584
  behavior?: 'inclusive' | 'exclusive';
2426
2585
  /** Tax code applied to the invoice line item. */
2427
- tax_code?: CreateResourceReference;
2586
+ taxCode?: CreateResourceReference;
2428
2587
  }
2429
2588
  /**
2430
2589
  * Tax configuration for a credit grant.
@@ -2436,7 +2595,7 @@ export interface CreditGrantTaxConfig {
2436
2595
  /** Tax behavior applied to the invoice line item. */
2437
2596
  behavior?: 'inclusive' | 'exclusive';
2438
2597
  /** Tax code applied to the invoice line item. */
2439
- tax_code?: TaxCodeReference;
2598
+ taxCode?: TaxCodeReference;
2440
2599
  }
2441
2600
  /** Set of provider specific tax configs. */
2442
2601
  export interface TaxConfig {
@@ -2450,9 +2609,9 @@ export interface TaxConfig {
2450
2609
  /** Stripe tax config. */
2451
2610
  stripe?: TaxConfigStripe;
2452
2611
  /** External invoicing tax config. */
2453
- external_invoicing?: TaxConfigExternalInvoicing;
2612
+ externalInvoicing?: TaxConfigExternalInvoicing;
2454
2613
  /** Tax code ID. */
2455
- tax_code_id?: string;
2614
+ taxCodeId?: string;
2456
2615
  /**
2457
2616
  * Tax code reference.
2458
2617
  *
@@ -2460,7 +2619,7 @@ export interface TaxConfig {
2460
2619
  * precedence. When `stripe.code` is also provided, `tax_code` still wins and
2461
2620
  * `stripe.code` is ignored.
2462
2621
  */
2463
- tax_code?: TaxCodeReference;
2622
+ taxCode?: TaxCodeReference;
2464
2623
  }
2465
2624
  /** The tax config of the rate card. */
2466
2625
  export interface RateCardTaxConfig {
@@ -2475,20 +2634,20 @@ export interface RateCardTaxConfig {
2475
2634
  */
2476
2635
  export interface OrganizationDefaultTaxCodes {
2477
2636
  /** Default tax code for invoicing. */
2478
- invoicing_tax_code: TaxCodeReference;
2637
+ invoicingTaxCode: TaxCodeReference;
2479
2638
  /** Default tax code for credit grants. */
2480
- credit_grant_tax_code: TaxCodeReference;
2639
+ creditGrantTaxCode: TaxCodeReference;
2481
2640
  /** Timestamp of creation. */
2482
- created_at: string;
2641
+ createdAt: string;
2483
2642
  /** Timestamp of last update. */
2484
- updated_at: string;
2643
+ updatedAt: string;
2485
2644
  }
2486
2645
  /** OrganizationDefaultTaxCodes update request. */
2487
2646
  export interface UpdateOrganizationDefaultTaxCodesRequest {
2488
2647
  /** Default tax code for invoicing. */
2489
- invoicing_tax_code?: TaxCodeReference;
2648
+ invoicingTaxCode?: TaxCodeReference;
2490
2649
  /** Default tax code for credit grants. */
2491
- credit_grant_tax_code?: TaxCodeReference;
2650
+ creditGrantTaxCode?: TaxCodeReference;
2492
2651
  }
2493
2652
  /**
2494
2653
  * PlanAddon represents an association between a plan and an add-on, controlling
@@ -2510,23 +2669,23 @@ export interface PlanAddon {
2510
2669
  description?: string;
2511
2670
  labels?: Labels;
2512
2671
  /** An ISO-8601 timestamp representation of entity creation date. */
2513
- created_at: string;
2672
+ createdAt: string;
2514
2673
  /** An ISO-8601 timestamp representation of entity last update date. */
2515
- updated_at: string;
2674
+ updatedAt: string;
2516
2675
  /** An ISO-8601 timestamp representation of entity deletion date. */
2517
- deleted_at?: string;
2676
+ deletedAt?: string;
2518
2677
  /** The add-on associated with the plan. */
2519
2678
  addon: AddonReference;
2520
2679
  /** The key of the plan phase from which the add-on becomes available for purchase. */
2521
- from_plan_phase: string;
2680
+ fromPlanPhase: string;
2522
2681
  /**
2523
2682
  * The maximum number of times the add-on can be purchased for the plan. For
2524
2683
  * single-instance add-ons this field must be omitted. For multi-instance add-ons
2525
2684
  * when omitted, unlimited quantity can be purchased.
2526
2685
  */
2527
- max_quantity?: number;
2686
+ maxQuantity?: number;
2528
2687
  /** List of validation errors. */
2529
- validation_errors?: ProductCatalogValidationError[];
2688
+ validationErrors?: ProductCatalogValidationError[];
2530
2689
  }
2531
2690
  /** PlanAddon create request. */
2532
2691
  export interface CreatePlanAddonRequest {
@@ -2546,13 +2705,13 @@ export interface CreatePlanAddonRequest {
2546
2705
  /** The add-on associated with the plan. */
2547
2706
  addon: AddonReference;
2548
2707
  /** The key of the plan phase from which the add-on becomes available for purchase. */
2549
- from_plan_phase: string;
2708
+ fromPlanPhase: string;
2550
2709
  /**
2551
2710
  * The maximum number of times the add-on can be purchased for the plan. For
2552
2711
  * single-instance add-ons this field must be omitted. For multi-instance add-ons
2553
2712
  * when omitted, unlimited quantity can be purchased.
2554
2713
  */
2555
- max_quantity?: number;
2714
+ maxQuantity?: number;
2556
2715
  }
2557
2716
  /** References to the applications used by a billing profile. */
2558
2717
  export interface ProfileAppReferences {
@@ -2575,6 +2734,11 @@ export interface InvoiceWorkflowAppsReferences {
2575
2734
  /** The payment app used for this workflow */
2576
2735
  payment: AppReference;
2577
2736
  }
2737
+ /** The tax config of the rate card. */
2738
+ export interface UpdateRateCardTaxConfig {
2739
+ behavior?: 'inclusive' | 'exclusive';
2740
+ code: UpdateResourceReference;
2741
+ }
2578
2742
  /** Filter options for listing ingested events. */
2579
2743
  export interface ListEventsParamsFilter {
2580
2744
  /** Filter events by ID. */
@@ -2630,7 +2794,7 @@ export interface ListEventsParamsFilter {
2630
2794
  exists?: boolean;
2631
2795
  };
2632
2796
  /** Filter events by the associated customer ID. */
2633
- customer_id?: string | {
2797
+ customerId?: string | {
2634
2798
  eq?: string;
2635
2799
  oeq?: string[];
2636
2800
  neq?: string;
@@ -2644,7 +2808,7 @@ export interface ListEventsParamsFilter {
2644
2808
  gte?: string;
2645
2809
  };
2646
2810
  /** Filter events by the time the event was ingested. */
2647
- ingested_at?: string | {
2811
+ ingestedAt?: string | {
2648
2812
  eq?: string;
2649
2813
  lt?: string;
2650
2814
  lte?: string;
@@ -2652,7 +2816,7 @@ export interface ListEventsParamsFilter {
2652
2816
  gte?: string;
2653
2817
  };
2654
2818
  /** Filter events by the time the event was stored. */
2655
- stored_at?: string | {
2819
+ storedAt?: string | {
2656
2820
  eq?: string;
2657
2821
  lt?: string;
2658
2822
  lte?: string;
@@ -2669,13 +2833,13 @@ export interface ListInvoicesParamsFilter {
2669
2833
  neq?: string;
2670
2834
  };
2671
2835
  /** Filter by customer ID. */
2672
- customer_id?: string | {
2836
+ customerId?: string | {
2673
2837
  eq?: string;
2674
2838
  oeq?: string[];
2675
2839
  neq?: string;
2676
2840
  };
2677
2841
  /** Filter by the time the invoice was issued. */
2678
- issued_at?: string | {
2842
+ issuedAt?: string | {
2679
2843
  eq?: string;
2680
2844
  lt?: string;
2681
2845
  lte?: string;
@@ -2683,7 +2847,7 @@ export interface ListInvoicesParamsFilter {
2683
2847
  gte?: string;
2684
2848
  };
2685
2849
  /** Filter by service period start. */
2686
- service_period_start?: string | {
2850
+ servicePeriodStart?: string | {
2687
2851
  eq?: string;
2688
2852
  lt?: string;
2689
2853
  lte?: string;
@@ -2691,7 +2855,7 @@ export interface ListInvoicesParamsFilter {
2691
2855
  gte?: string;
2692
2856
  };
2693
2857
  /** Filter by invoice creation time. */
2694
- created_at?: string | {
2858
+ createdAt?: string | {
2695
2859
  eq?: string;
2696
2860
  lt?: string;
2697
2861
  lte?: string;
@@ -2714,22 +2878,22 @@ export interface ResourceFilters {
2714
2878
  exists?: boolean;
2715
2879
  };
2716
2880
  labels?: LabelsFieldFilter;
2717
- public_labels?: LabelsFieldFilter;
2718
- created_at?: string | {
2881
+ publicLabels?: LabelsFieldFilter;
2882
+ createdAt?: string | {
2719
2883
  eq?: string;
2720
2884
  lt?: string;
2721
2885
  lte?: string;
2722
2886
  gt?: string;
2723
2887
  gte?: string;
2724
2888
  };
2725
- updated_at?: string | {
2889
+ updatedAt?: string | {
2726
2890
  eq?: string;
2727
2891
  lt?: string;
2728
2892
  lte?: string;
2729
2893
  gt?: string;
2730
2894
  gte?: string;
2731
2895
  };
2732
- deleted_at?: string | {
2896
+ deletedAt?: string | {
2733
2897
  eq?: string;
2734
2898
  lt?: string;
2735
2899
  lte?: string;
@@ -2763,7 +2927,7 @@ export interface FieldFilters {
2763
2927
  lte?: string;
2764
2928
  exists?: boolean;
2765
2929
  };
2766
- string_exact?: string | {
2930
+ stringExact?: string | {
2767
2931
  eq?: string;
2768
2932
  oeq?: string[];
2769
2933
  neq?: string;
@@ -2789,11 +2953,11 @@ export interface IngestedEvent {
2789
2953
  /** The customer if the event is associated with a customer. */
2790
2954
  customer?: CustomerReference;
2791
2955
  /** The date and time the event was ingested and its processing started. */
2792
- ingested_at: string;
2956
+ ingestedAt: string;
2793
2957
  /** The date and time the event was stored in the database. */
2794
- stored_at: string;
2958
+ storedAt: string;
2795
2959
  /** The validation errors of the ingested event. */
2796
- validation_errors?: IngestedEventValidationError[];
2960
+ validationErrors?: IngestedEventValidationError[];
2797
2961
  }
2798
2962
  /** Meter query result. */
2799
2963
  export interface MeterQueryResult {
@@ -2855,13 +3019,13 @@ export interface CreateCustomerRequest {
2855
3019
  labels?: Labels;
2856
3020
  key: string;
2857
3021
  /** Mapping to attribute metered usage to the customer by the event subject. */
2858
- usage_attribution?: CustomerUsageAttribution;
3022
+ usageAttribution?: CustomerUsageAttribution;
2859
3023
  /** The primary email address of the customer. */
2860
- primary_email?: string;
3024
+ primaryEmail?: string;
2861
3025
  /** Currency of the customer. Used for billing, tax and invoicing. */
2862
3026
  currency?: string;
2863
3027
  /** The billing address of the customer. Used for tax and invoicing. */
2864
- billing_address?: Address;
3028
+ billingAddress?: Address;
2865
3029
  }
2866
3030
  /**
2867
3031
  * Customers can be individuals or organizations that can subscribe to plans and
@@ -2883,20 +3047,20 @@ export interface Customer {
2883
3047
  description?: string;
2884
3048
  labels?: Labels;
2885
3049
  /** An ISO-8601 timestamp representation of entity creation date. */
2886
- created_at: string;
3050
+ createdAt: string;
2887
3051
  /** An ISO-8601 timestamp representation of entity last update date. */
2888
- updated_at: string;
3052
+ updatedAt: string;
2889
3053
  /** An ISO-8601 timestamp representation of entity deletion date. */
2890
- deleted_at?: string;
3054
+ deletedAt?: string;
2891
3055
  key: string;
2892
3056
  /** Mapping to attribute metered usage to the customer by the event subject. */
2893
- usage_attribution?: CustomerUsageAttribution;
3057
+ usageAttribution?: CustomerUsageAttribution;
2894
3058
  /** The primary email address of the customer. */
2895
- primary_email?: string;
3059
+ primaryEmail?: string;
2896
3060
  /** Currency of the customer. Used for billing, tax and invoicing. */
2897
3061
  currency?: string;
2898
3062
  /** The billing address of the customer. Used for tax and invoicing. */
2899
- billing_address?: Address;
3063
+ billingAddress?: Address;
2900
3064
  }
2901
3065
  /** Customer upsert request. */
2902
3066
  export interface UpsertCustomerRequest {
@@ -2914,22 +3078,48 @@ export interface UpsertCustomerRequest {
2914
3078
  description?: string;
2915
3079
  labels?: Labels;
2916
3080
  /** Mapping to attribute metered usage to the customer by the event subject. */
2917
- usage_attribution?: CustomerUsageAttribution;
3081
+ usageAttribution?: CustomerUsageAttribution;
2918
3082
  /** The primary email address of the customer. */
2919
- primary_email?: string;
3083
+ primaryEmail?: string;
2920
3084
  /** Currency of the customer. Used for billing, tax and invoicing. */
2921
3085
  currency?: string;
2922
3086
  /** The billing address of the customer. Used for tax and invoicing. */
2923
- billing_address?: Address;
3087
+ billingAddress?: Address;
2924
3088
  }
2925
3089
  /** A collection of addresses for the party. */
2926
3090
  export interface PartyAddresses {
2927
3091
  /** Billing address. */
2928
- billing_address: Address;
3092
+ billingAddress: Address;
2929
3093
  }
2930
3094
  /** Snapshot of the customer's information at the time the invoice was issued. */
2931
3095
  export interface InvoiceCustomer {
3096
+ /**
3097
+ * Display name of the resource.
3098
+ *
3099
+ * Between 1 and 256 characters.
3100
+ */
3101
+ name: string;
3102
+ /** Mapping to attribute metered usage to the customer by the event subject. */
3103
+ usageAttribution?: CustomerUsageAttribution;
3104
+ /** The billing address of the customer. Used for tax and invoicing. */
3105
+ billingAddress?: Address;
2932
3106
  id: string;
3107
+ /**
3108
+ * Optional external resource key for the customer.
3109
+ *
3110
+ * Omitted when the customer was created without a key. Unlike on the customer
3111
+ * resource itself, the key is optional here because the invoice snapshot may
3112
+ * predate or omit it.
3113
+ */
3114
+ key?: string;
3115
+ }
3116
+ /** A collection of addresses for the party. */
3117
+ export interface UpdateBillingPartyAddresses {
3118
+ /** Billing address. */
3119
+ billingAddress: UpdateAddress;
3120
+ }
3121
+ /** Snapshot of the customer's information at the time the invoice was issued. */
3122
+ export interface UpdateInvoiceCustomer {
2933
3123
  /**
2934
3124
  * Display name of the resource.
2935
3125
  *
@@ -2937,9 +3127,10 @@ export interface InvoiceCustomer {
2937
3127
  */
2938
3128
  name: string;
2939
3129
  /** Mapping to attribute metered usage to the customer by the event subject. */
2940
- usage_attribution?: CustomerUsageAttribution;
3130
+ usageAttribution?: UpdateCustomerUsageAttribution;
2941
3131
  /** The billing address of the customer. Used for tax and invoicing. */
2942
- billing_address?: Address;
3132
+ billingAddress?: UpdateAddress;
3133
+ id: string;
2943
3134
  /**
2944
3135
  * Optional external resource key for the customer.
2945
3136
  *
@@ -2952,7 +3143,7 @@ export interface InvoiceCustomer {
2952
3143
  /** Checkout Session consent collection configuration. */
2953
3144
  export interface AppStripeCreateCheckoutSessionConsentCollection {
2954
3145
  /** Controls the visibility of payment method reuse agreement. */
2955
- payment_method_reuse_agreement?: AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement;
3146
+ paymentMethodReuseAgreement?: AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement;
2956
3147
  /**
2957
3148
  * Enables collection of promotional communication consent.
2958
3149
  *
@@ -2965,7 +3156,7 @@ export interface AppStripeCreateCheckoutSessionConsentCollection {
2965
3156
  *
2966
3157
  * Requires a valid terms of service URL in your Stripe Dashboard settings.
2967
3158
  */
2968
- terms_of_service?: 'none' | 'required';
3159
+ termsOfService?: 'none' | 'required';
2969
3160
  }
2970
3161
  /** List customer entitlement access response data. */
2971
3162
  export interface ListCustomerEntitlementAccessResponseData {
@@ -2980,7 +3171,7 @@ export interface WorkflowCollectionAlignmentAnchored {
2980
3171
  /** The type of alignment. */
2981
3172
  type: 'anchored';
2982
3173
  /** The recurring period for the alignment. */
2983
- recurring_period: RecurringPeriod;
3174
+ recurringPeriod: RecurringPeriod;
2984
3175
  }
2985
3176
  /**
2986
3177
  * Flat fee intent fields from the system lifecycle controller shadowed by a manual
@@ -3001,26 +3192,26 @@ export interface ChargeFlatFeeSystemIntent {
3001
3192
  description?: string;
3002
3193
  labels?: Labels;
3003
3194
  /** The timestamp when the charge is intended to be invoiced. */
3004
- invoice_at: string;
3195
+ invoiceAt: string;
3005
3196
  /** The effective service period covered by the charge. */
3006
- service_period: ClosedPeriod;
3197
+ servicePeriod: ClosedPeriod;
3007
3198
  /** The full, unprorated service period of the charge. */
3008
- full_service_period: ClosedPeriod;
3199
+ fullServicePeriod: ClosedPeriod;
3009
3200
  /** The billing period the charge belongs to. */
3010
- billing_period: ClosedPeriod;
3201
+ billingPeriod: ClosedPeriod;
3011
3202
  /** Payment term of the flat fee charge. */
3012
- payment_term: 'in_advance' | 'in_arrears';
3203
+ paymentTerm: 'in_advance' | 'in_arrears';
3013
3204
  /** The discounts applied to the charge. */
3014
3205
  discounts?: ChargeFlatFeeDiscounts;
3015
3206
  /** The proration configuration of the charge. */
3016
- proration_configuration: RateCardProrationConfiguration;
3207
+ prorationConfiguration: RateCardProrationConfiguration;
3017
3208
  /** The amount before proration of the system lifecycle controller flat fee intent. */
3018
- amount_before_proration: CurrencyAmount;
3209
+ amountBeforeProration: CurrencyAmount;
3019
3210
  /**
3020
3211
  * The timestamp when the system lifecycle controller intent was deleted. The
3021
3212
  * effective charge can remain visible while a manual override is active.
3022
3213
  */
3023
- deleted_at?: string;
3214
+ deletedAt?: string;
3024
3215
  }
3025
3216
  /** Page paginated response. */
3026
3217
  export interface SubscriptionPagePaginatedResponse {
@@ -3051,7 +3242,7 @@ export interface SubscriptionChange {
3051
3242
  * invoiced.
3052
3243
  * - `credit_only`: Usage is settled exclusively against credits.
3053
3244
  */
3054
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
3245
+ settlementMode?: 'credit_then_invoice' | 'credit_only';
3055
3246
  /** The customer to create the subscription for. */
3056
3247
  customer: {
3057
3248
  id?: string;
@@ -3075,7 +3266,7 @@ export interface SubscriptionChange {
3075
3266
  * If not provided, the subscription will be created with the subscription's
3076
3267
  * creation time as the billing anchor.
3077
3268
  */
3078
- billing_anchor?: string;
3269
+ billingAnchor?: string;
3079
3270
  /**
3080
3271
  * Timing configuration for the change, when the change should take effect. For
3081
3272
  * changing a subscription, the accepted values depend on the subscription
@@ -3103,21 +3294,21 @@ export interface CreateSubscriptionAddonRequest {
3103
3294
  */
3104
3295
  export interface InvoiceUsageQuantityDetail {
3105
3296
  /** The raw quantity as reported by the meter (native units). */
3106
- raw_quantity: string;
3297
+ rawQuantity: string;
3107
3298
  /**
3108
3299
  * The precise decimal value after applying the conversion operation and factor,
3109
3300
  * before rounding.
3110
3301
  */
3111
- converted_quantity: string;
3302
+ convertedQuantity: string;
3112
3303
  /** The quantity after rounding, used for pricing. */
3113
- invoiced_quantity: string;
3304
+ invoicedQuantity: string;
3114
3305
  /** The display unit label (e.g., "GB", "hours", "M tokens"). */
3115
- display_unit?: string;
3306
+ displayUnit?: string;
3116
3307
  /**
3117
3308
  * Snapshot of the UnitConfig that was in effect at billing time. Ensures
3118
3309
  * historical invoices reflect the config that was actually applied.
3119
3310
  */
3120
- applied_unit_config: UnitConfig;
3311
+ appliedUnitConfig: UnitConfig;
3121
3312
  }
3122
3313
  /** Stripe app. */
3123
3314
  export interface AppStripe {
@@ -3136,11 +3327,11 @@ export interface AppStripe {
3136
3327
  description?: string;
3137
3328
  labels?: Labels;
3138
3329
  /** An ISO-8601 timestamp representation of entity creation date. */
3139
- created_at: string;
3330
+ createdAt: string;
3140
3331
  /** An ISO-8601 timestamp representation of entity last update date. */
3141
- updated_at: string;
3332
+ updatedAt: string;
3142
3333
  /** An ISO-8601 timestamp representation of entity deletion date. */
3143
- deleted_at?: string;
3334
+ deletedAt?: string;
3144
3335
  /** The app type. */
3145
3336
  type: 'stripe';
3146
3337
  /** The app catalog definition that this installed app is based on. */
@@ -3148,11 +3339,11 @@ export interface AppStripe {
3148
3339
  /** Status of the app connection. */
3149
3340
  status: 'ready' | 'unauthorized';
3150
3341
  /** The Stripe account ID associated with the connected Stripe account. */
3151
- account_id: string;
3342
+ accountId: string;
3152
3343
  /** Indicates whether the app is connected to a live Stripe account. */
3153
3344
  livemode: boolean;
3154
3345
  /** The masked Stripe API key that only exposes the first and last few characters. */
3155
- masked_api_key: string;
3346
+ maskedApiKey: string;
3156
3347
  }
3157
3348
  /** Sandbox app can be used for testing billing features. */
3158
3349
  export interface AppSandbox {
@@ -3171,11 +3362,11 @@ export interface AppSandbox {
3171
3362
  description?: string;
3172
3363
  labels?: Labels;
3173
3364
  /** An ISO-8601 timestamp representation of entity creation date. */
3174
- created_at: string;
3365
+ createdAt: string;
3175
3366
  /** An ISO-8601 timestamp representation of entity last update date. */
3176
- updated_at: string;
3367
+ updatedAt: string;
3177
3368
  /** An ISO-8601 timestamp representation of entity deletion date. */
3178
- deleted_at?: string;
3369
+ deletedAt?: string;
3179
3370
  /** The app type. */
3180
3371
  type: 'sandbox';
3181
3372
  /** The app catalog definition that this installed app is based on. */
@@ -3218,11 +3409,11 @@ export interface AppExternalInvoicing {
3218
3409
  description?: string;
3219
3410
  labels?: Labels;
3220
3411
  /** An ISO-8601 timestamp representation of entity creation date. */
3221
- created_at: string;
3412
+ createdAt: string;
3222
3413
  /** An ISO-8601 timestamp representation of entity last update date. */
3223
- updated_at: string;
3414
+ updatedAt: string;
3224
3415
  /** An ISO-8601 timestamp representation of entity deletion date. */
3225
- deleted_at?: string;
3416
+ deletedAt?: string;
3226
3417
  /** The app type. */
3227
3418
  type: 'external_invoicing';
3228
3419
  /** The app catalog definition that this installed app is based on. */
@@ -3240,7 +3431,7 @@ export interface AppExternalInvoicing {
3240
3431
  * When disabled, invoices automatically progress through the draft state based on
3241
3432
  * the configured workflow timing.
3242
3433
  */
3243
- enable_draft_sync_hook: boolean;
3434
+ enableDraftSyncHook: boolean;
3244
3435
  /**
3245
3436
  * Enable issuing synchronization hook.
3246
3437
  *
@@ -3252,7 +3443,7 @@ export interface AppExternalInvoicing {
3252
3443
  * When disabled, invoices automatically progress through the issuing state and are
3253
3444
  * immediately marked as issued.
3254
3445
  */
3255
- enable_issuing_sync_hook: boolean;
3446
+ enableIssuingSyncHook: boolean;
3256
3447
  }
3257
3448
  /** TaxCode create request. */
3258
3449
  export interface CreateTaxCodeRequest {
@@ -3271,7 +3462,7 @@ export interface CreateTaxCodeRequest {
3271
3462
  labels?: Labels;
3272
3463
  key: string;
3273
3464
  /** Mapping of app types to tax codes. */
3274
- app_mappings: TaxCodeAppMapping[];
3465
+ appMappings: TaxCodeAppMapping[];
3275
3466
  }
3276
3467
  /** Tax codes by provider. */
3277
3468
  export interface TaxCode {
@@ -3290,14 +3481,14 @@ export interface TaxCode {
3290
3481
  description?: string;
3291
3482
  labels?: Labels;
3292
3483
  /** An ISO-8601 timestamp representation of entity creation date. */
3293
- created_at: string;
3484
+ createdAt: string;
3294
3485
  /** An ISO-8601 timestamp representation of entity last update date. */
3295
- updated_at: string;
3486
+ updatedAt: string;
3296
3487
  /** An ISO-8601 timestamp representation of entity deletion date. */
3297
- deleted_at?: string;
3488
+ deletedAt?: string;
3298
3489
  key: string;
3299
3490
  /** Mapping of app types to tax codes. */
3300
- app_mappings: TaxCodeAppMapping[];
3491
+ appMappings: TaxCodeAppMapping[];
3301
3492
  }
3302
3493
  /** TaxCode upsert request. */
3303
3494
  export interface UpsertTaxCodeRequest {
@@ -3315,7 +3506,7 @@ export interface UpsertTaxCodeRequest {
3315
3506
  description?: string;
3316
3507
  labels?: Labels;
3317
3508
  /** Mapping of app types to tax codes. */
3318
- app_mappings: TaxCodeAppMapping[];
3509
+ appMappings: TaxCodeAppMapping[];
3319
3510
  }
3320
3511
  /**
3321
3512
  * Invoice-level snapshot of the workflow configuration.
@@ -3340,9 +3531,9 @@ export interface InvoiceStatusDetails {
3340
3531
  * Fine-grained internal status string providing additional workflow detail beyond
3341
3532
  * the top-level status enum.
3342
3533
  */
3343
- extended_status: string;
3534
+ extendedStatus: string;
3344
3535
  /** The set of state-transition actions currently available for this invoice. */
3345
- available_actions: InvoiceAvailableActions;
3536
+ availableActions: InvoiceAvailableActions;
3346
3537
  }
3347
3538
  /** Discounts applied to an invoice line item. */
3348
3539
  export interface InvoiceLineDiscounts {
@@ -3351,6 +3542,19 @@ export interface InvoiceLineDiscounts {
3351
3542
  /** Usage quantity discounts (e.g. free tier usage allowances). */
3352
3543
  usage?: InvoiceLineUsageDiscount[];
3353
3544
  }
3545
+ /**
3546
+ * Invoice-level snapshot of the workflow configuration.
3547
+ *
3548
+ * Contains only the settings that are meaningful for an already-created invoice:
3549
+ * invoicing behaviour and payment settings. Collection alignment and tax policy
3550
+ * are gather-time / profile-wide concerns and are not included.
3551
+ */
3552
+ export interface UpdateBillingInvoiceWorkflow {
3553
+ /** Invoicing settings for this invoice. */
3554
+ invoicing?: UpdateBillingInvoiceWorkflowInvoicingSettings;
3555
+ /** Payment settings for this invoice. */
3556
+ payment?: UpdateBillingWorkflowPaymentChargeAutomaticallySettings | UpdateBillingWorkflowPaymentSendInvoiceSettings;
3557
+ }
3354
3558
  /** Access status for a single feature. */
3355
3559
  export interface GovernanceFeatureAccess {
3356
3560
  /**
@@ -3361,7 +3565,7 @@ export interface GovernanceFeatureAccess {
3361
3565
  * the usage limit has been reached, or (when applicable) credits have been
3362
3566
  * exhausted.
3363
3567
  */
3364
- has_access: boolean;
3568
+ hasAccess: boolean;
3365
3569
  /**
3366
3570
  * Optional reason when the customer does not have access to the feature. Populated
3367
3571
  * when `has_access` is `false`.
@@ -3375,9 +3579,9 @@ export interface CustomerData {
3375
3579
  *
3376
3580
  * If not provided, the default billing profile will be used.
3377
3581
  */
3378
- billing_profile?: ProfileReference;
3582
+ billingProfile?: ProfileReference;
3379
3583
  /** App customer data. */
3380
- app_data?: AppCustomerData;
3584
+ appData?: AppCustomerData;
3381
3585
  }
3382
3586
  /** CustomerBillingData upsert request. */
3383
3587
  export interface UpsertCustomerBillingDataRequest {
@@ -3386,14 +3590,14 @@ export interface UpsertCustomerBillingDataRequest {
3386
3590
  *
3387
3591
  * If not provided, the default billing profile will be used.
3388
3592
  */
3389
- billing_profile?: ProfileReference;
3593
+ billingProfile?: ProfileReference;
3390
3594
  /** App customer data. */
3391
- app_data?: AppCustomerData;
3595
+ appData?: AppCustomerData;
3392
3596
  }
3393
3597
  /** The balances of the credits of a customer. */
3394
3598
  export interface CreditBalances {
3395
3599
  /** The timestamp of the balance retrieval. */
3396
- retrieved_at: string;
3600
+ retrievedAt: string;
3397
3601
  /** The balances by currencies. */
3398
3602
  balances: CreditBalance[];
3399
3603
  }
@@ -3432,6 +3636,36 @@ export interface PriceVolume {
3432
3636
  /** The tiers of the volume price. At least one tier is required. */
3433
3637
  tiers: PriceTier[];
3434
3638
  }
3639
+ /**
3640
+ * Graduated tiered price.
3641
+ *
3642
+ * Each tier's rate applies only to the usage within that tier. Pricing can change
3643
+ * as cumulative usage crosses tier boundaries.
3644
+ *
3645
+ * When UnitConfig is present on the rate card, tier boundaries (up_to_amount) are
3646
+ * expressed in converted billing units.
3647
+ */
3648
+ export interface UpdatePriceGraduated {
3649
+ /** The type of the price. */
3650
+ type: 'graduated';
3651
+ /** The tiers of the graduated price. At least one tier is required. */
3652
+ tiers: UpdatePriceTier[];
3653
+ }
3654
+ /**
3655
+ * Volume tiered price.
3656
+ *
3657
+ * The maximum quantity within a period determines the per-unit price for all units
3658
+ * in that period.
3659
+ *
3660
+ * When UnitConfig is present on the rate card, tier boundaries (up_to_amount) are
3661
+ * expressed in converted billing units.
3662
+ */
3663
+ export interface UpdatePriceVolume {
3664
+ /** The type of the price. */
3665
+ type: 'volume';
3666
+ /** The tiers of the volume price. At least one tier is required. */
3667
+ tiers: UpdatePriceTier[];
3668
+ }
3435
3669
  /** Page paginated response. */
3436
3670
  export interface PricePagePaginatedResponse {
3437
3671
  data: LlmCostPrice[];
@@ -3453,7 +3687,7 @@ export interface CreateCreditGrantRequest {
3453
3687
  description?: string;
3454
3688
  labels?: CreateLabels;
3455
3689
  /** Funding method of the grant. */
3456
- funding_method: 'none' | 'invoice' | 'external';
3690
+ fundingMethod: 'none' | 'invoice' | 'external';
3457
3691
  /** The currency of the granted credits. */
3458
3692
  currency: string;
3459
3693
  /** Granted credit amount. */
@@ -3468,7 +3702,7 @@ export interface CreateCreditGrantRequest {
3468
3702
  * credit grant tax code is applied, if that's not set the global default taxcode
3469
3703
  * is used.
3470
3704
  */
3471
- tax_config?: CreateCreditGrantTaxConfig;
3705
+ taxConfig?: CreateCreditGrantTaxConfig;
3472
3706
  filters?: CreateCreditGrantFilters;
3473
3707
  /** Draw-down priority of the grant. Lower values have higher priority. */
3474
3708
  priority: number;
@@ -3477,13 +3711,13 @@ export interface CreateCreditGrantRequest {
3477
3711
  *
3478
3712
  * Defaults to the current date and time.
3479
3713
  */
3480
- effective_at?: string;
3714
+ effectiveAt?: string;
3481
3715
  /**
3482
3716
  * The duration after which the credit grant expires.
3483
3717
  *
3484
3718
  * Defaults to never expiring.
3485
3719
  */
3486
- expires_after?: string;
3720
+ expiresAfter?: string;
3487
3721
  /**
3488
3722
  * Idempotency key for the credit grant creation request.
3489
3723
  *
@@ -3514,13 +3748,13 @@ export interface CreditGrant {
3514
3748
  description?: string;
3515
3749
  labels?: Labels;
3516
3750
  /** An ISO-8601 timestamp representation of entity creation date. */
3517
- created_at: string;
3751
+ createdAt: string;
3518
3752
  /** An ISO-8601 timestamp representation of entity last update date. */
3519
- updated_at: string;
3753
+ updatedAt: string;
3520
3754
  /** An ISO-8601 timestamp representation of entity deletion date. */
3521
- deleted_at?: string;
3755
+ deletedAt?: string;
3522
3756
  /** Funding method of the grant. */
3523
- funding_method: 'none' | 'invoice' | 'external';
3757
+ fundingMethod: 'none' | 'invoice' | 'external';
3524
3758
  /** The currency of the granted credits. */
3525
3759
  currency: string;
3526
3760
  /** Granted credit amount. */
@@ -3535,7 +3769,7 @@ export interface CreditGrant {
3535
3769
  * credit grant tax code is applied, if that's not set the global default taxcode
3536
3770
  * is used.
3537
3771
  */
3538
- tax_config?: CreditGrantTaxConfig;
3772
+ taxConfig?: CreditGrantTaxConfig;
3539
3773
  /** Available when `funding_method` is `invoice`. */
3540
3774
  invoice?: CreditGrantInvoiceReference;
3541
3775
  filters?: CreditGrantFilters;
@@ -3546,7 +3780,7 @@ export interface CreditGrant {
3546
3780
  *
3547
3781
  * Defaults to the current date and time.
3548
3782
  */
3549
- effective_at?: string;
3783
+ effectiveAt?: string;
3550
3784
  /**
3551
3785
  * Idempotency key for the credit grant creation request.
3552
3786
  *
@@ -3559,9 +3793,9 @@ export interface CreditGrant {
3559
3793
  *
3560
3794
  * Calculated from the grant effective time and `expires_after` if provided.
3561
3795
  */
3562
- expires_at?: string;
3796
+ expiresAt?: string;
3563
3797
  /** Timestamp when the grant was voided. */
3564
- voided_at?: string;
3798
+ voidedAt?: string;
3565
3799
  /** Current lifecycle status of the grant. */
3566
3800
  status: 'pending' | 'active' | 'expired' | 'voided';
3567
3801
  }
@@ -3585,29 +3819,29 @@ export interface CreateChargeFlatFeeRequest {
3585
3819
  /** The currency of the charge. */
3586
3820
  currency: string;
3587
3821
  /** The timestamp when the charge is intended to be invoiced. */
3588
- invoice_at: string;
3822
+ invoiceAt: string;
3589
3823
  /** The effective service period covered by the charge. */
3590
- service_period: ClosedPeriod;
3824
+ servicePeriod: ClosedPeriod;
3591
3825
  /** Unique reference ID of the charge. */
3592
- unique_reference_id?: string;
3826
+ uniqueReferenceId?: string;
3593
3827
  /** Settlement mode of the charge. */
3594
- settlement_mode: 'credit_then_invoice' | 'credit_only';
3828
+ settlementMode: 'credit_then_invoice' | 'credit_only';
3595
3829
  /** Tax configuration of the charge. */
3596
- tax_config?: TaxConfig;
3830
+ taxConfig?: TaxConfig;
3597
3831
  /** Payment term of the flat fee charge. */
3598
- payment_term: 'in_advance' | 'in_arrears';
3832
+ paymentTerm: 'in_advance' | 'in_arrears';
3599
3833
  /** The discounts applied to the charge. */
3600
3834
  discounts?: ChargeFlatFeeDiscounts;
3601
3835
  /** The feature associated with the charge, when applicable. */
3602
- feature_key?: string;
3836
+ featureKey?: string;
3603
3837
  /** The proration configuration of the charge. */
3604
- proration_configuration: RateCardProrationConfiguration;
3838
+ prorationConfiguration: RateCardProrationConfiguration;
3605
3839
  /** The amount before proration of the charge. */
3606
- amount_before_proration: CurrencyAmount;
3840
+ amountBeforeProration: CurrencyAmount;
3607
3841
  /** The full, unprorated service period of the charge. */
3608
- full_service_period?: ClosedPeriod;
3842
+ fullServicePeriod?: ClosedPeriod;
3609
3843
  /** The billing period the charge belongs to. */
3610
- billing_period?: ClosedPeriod;
3844
+ billingPeriod?: ClosedPeriod;
3611
3845
  }
3612
3846
  /** Tax settings for a billing workflow. */
3613
3847
  export interface WorkflowTaxSettings {
@@ -3631,7 +3865,7 @@ export interface WorkflowTaxSettings {
3631
3865
  * default tax code is used instead. Existing tax-code values may still be removed,
3632
3866
  * and `behavior` remains fully supported.
3633
3867
  */
3634
- default_tax_config?: TaxConfig;
3868
+ defaultTaxConfig?: TaxConfig;
3635
3869
  }
3636
3870
  /** Page paginated response. */
3637
3871
  export interface PlanAddonPagePaginatedResponse {
@@ -3661,9 +3895,9 @@ export interface MeterQueryRequest {
3661
3895
  * (http://www.iana.org/time-zones). The time zone is used to determine the start
3662
3896
  * and end of the time buckets. If not specified, the UTC timezone will be used.
3663
3897
  */
3664
- time_zone: string;
3898
+ timeZone: string;
3665
3899
  /** The dimensions to group the results by. */
3666
- group_by_dimensions?: string[];
3900
+ groupByDimensions?: string[];
3667
3901
  /** Filters to apply to the query. */
3668
3902
  filters?: MeterQueryFilters;
3669
3903
  }
@@ -3684,7 +3918,7 @@ export interface Party {
3684
3918
  * The entity's legal identification used for tax purposes. They may have other
3685
3919
  * numbers, but we're only interested in those valid for tax purposes.
3686
3920
  */
3687
- tax_id?: PartyTaxIdentity;
3921
+ taxId?: PartyTaxIdentity;
3688
3922
  /** Address for where information should be sent if needed. */
3689
3923
  addresses?: PartyAddresses;
3690
3924
  }
@@ -3696,17 +3930,37 @@ export interface Party {
3696
3930
  * omitted because it is not part of the snapshotted supplier data.
3697
3931
  */
3698
3932
  export interface Supplier {
3933
+ /** Legal name or representation of the party. */
3934
+ name?: string;
3935
+ /**
3936
+ * The entity's legal identification used for tax purposes. They may have other
3937
+ * numbers, but we're only interested in those valid for tax purposes.
3938
+ */
3939
+ taxId?: PartyTaxIdentity;
3940
+ /** Address for where information should be sent if needed. */
3941
+ addresses?: PartyAddresses;
3699
3942
  /** Unique identifier for the party. */
3700
3943
  id?: string;
3944
+ }
3945
+ /**
3946
+ * Snapshot of the supplier's information at the time the invoice was issued.
3947
+ *
3948
+ * Structurally a read-only subset of `BillingParty` (the type configured on the
3949
+ * billing profile), so the snapshot stays aligned with the source. `key` is
3950
+ * omitted because it is not part of the snapshotted supplier data.
3951
+ */
3952
+ export interface UpdateSupplier {
3701
3953
  /** Legal name or representation of the party. */
3702
3954
  name?: string;
3703
3955
  /**
3704
3956
  * The entity's legal identification used for tax purposes. They may have other
3705
3957
  * numbers, but we're only interested in those valid for tax purposes.
3706
3958
  */
3707
- tax_id?: PartyTaxIdentity;
3959
+ taxId?: UpdateBillingPartyTaxIdentity;
3708
3960
  /** Address for where information should be sent if needed. */
3709
- addresses?: PartyAddresses;
3961
+ addresses?: UpdateBillingPartyAddresses;
3962
+ /** Unique identifier for the party. */
3963
+ id?: string;
3710
3964
  }
3711
3965
  /**
3712
3966
  * Configuration options for creating a Stripe Checkout Session.
@@ -3721,23 +3975,23 @@ export interface AppStripeCreateCheckoutSessionRequestOptions {
3721
3975
  * Defaults to auto, which only collects the address when necessary for tax
3722
3976
  * calculation.
3723
3977
  */
3724
- billing_address_collection: 'auto' | 'required';
3978
+ billingAddressCollection: 'auto' | 'required';
3725
3979
  /**
3726
3980
  * URL to redirect customers who cancel the checkout session.
3727
3981
  *
3728
3982
  * Not allowed when ui_mode is "embedded".
3729
3983
  */
3730
- cancel_url?: string;
3984
+ cancelUrl?: string;
3731
3985
  /**
3732
3986
  * Unique reference string for reconciling sessions with internal systems.
3733
3987
  *
3734
3988
  * Can be a customer ID, cart ID, or any other identifier.
3735
3989
  */
3736
- client_reference_id?: string;
3990
+ clientReferenceId?: string;
3737
3991
  /** Controls which customer fields can be updated by the checkout session. */
3738
- customer_update?: AppStripeCreateCheckoutSessionCustomerUpdate;
3992
+ customerUpdate?: AppStripeCreateCheckoutSessionCustomerUpdate;
3739
3993
  /** Configuration for collecting customer consent during checkout. */
3740
- consent_collection?: AppStripeCreateCheckoutSessionConsentCollection;
3994
+ consentCollection?: AppStripeCreateCheckoutSessionConsentCollection;
3741
3995
  /**
3742
3996
  * Three-letter ISO 4217 currency code in uppercase.
3743
3997
  *
@@ -3745,13 +3999,13 @@ export interface AppStripeCreateCheckoutSessionRequestOptions {
3745
3999
  */
3746
4000
  currency?: string;
3747
4001
  /** Custom text to display during checkout at various stages. */
3748
- custom_text?: AppStripeCheckoutSessionCustomTextParams;
4002
+ customText?: AppStripeCheckoutSessionCustomTextParams;
3749
4003
  /**
3750
4004
  * Unix timestamp when the checkout session expires.
3751
4005
  *
3752
4006
  * Can be 30 minutes to 24 hours from creation. Defaults to 24 hours.
3753
4007
  */
3754
- expires_at?: bigint;
4008
+ expiresAt?: bigint;
3755
4009
  /**
3756
4010
  * IETF language tag for the checkout UI locale.
3757
4011
  *
@@ -3770,36 +4024,36 @@ export interface AppStripeCreateCheckoutSessionRequestOptions {
3770
4024
  * Required if ui_mode is "embedded" and redirect-based payment methods are
3771
4025
  * enabled.
3772
4026
  */
3773
- return_url?: string;
4027
+ returnUrl?: string;
3774
4028
  /**
3775
4029
  * Success URL to redirect customers after completing payment or setup.
3776
4030
  *
3777
4031
  * Not allowed when ui_mode is "embedded". See:
3778
4032
  * https://docs.stripe.com/payments/checkout/custom-success-page
3779
4033
  */
3780
- success_url?: string;
4034
+ successUrl?: string;
3781
4035
  /**
3782
4036
  * The UI mode for the checkout session.
3783
4037
  *
3784
4038
  * "hosted" displays a Stripe-hosted page. "embedded" integrates directly into your
3785
4039
  * app. Defaults to "hosted".
3786
4040
  */
3787
- ui_mode: 'embedded' | 'hosted';
4041
+ uiMode: 'embedded' | 'hosted';
3788
4042
  /**
3789
4043
  * List of payment method types to enable (e.g., "card", "us_bank_account").
3790
4044
  *
3791
4045
  * If not specified, Stripe enables all relevant payment methods.
3792
4046
  */
3793
- payment_method_types?: string[];
4047
+ paymentMethodTypes?: string[];
3794
4048
  /**
3795
4049
  * Redirect behavior for embedded checkout sessions.
3796
4050
  *
3797
4051
  * Controls when to redirect users after completion. See:
3798
4052
  * https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form
3799
4053
  */
3800
- redirect_on_completion?: 'always' | 'if_required' | 'never';
4054
+ redirectOnCompletion?: 'always' | 'if_required' | 'never';
3801
4055
  /** Configuration for collecting tax IDs during checkout. */
3802
- tax_id_collection?: AppStripeCreateCheckoutSessionTaxIdCollection;
4056
+ taxIdCollection?: AppStripeCreateCheckoutSessionTaxIdCollection;
3803
4057
  }
3804
4058
  /** Page paginated response. */
3805
4059
  export interface TaxCodePagePaginatedResponse {
@@ -3811,7 +4065,7 @@ export interface InvoiceWorkflowSettings {
3811
4065
  /** The apps that will be used to orchestrate the invoice's workflow. */
3812
4066
  apps?: InvoiceWorkflowAppsReferences;
3813
4067
  /** The billing profile that was the source of this workflow snapshot. */
3814
- source_billing_profile: ProfileReference;
4068
+ sourceBillingProfile: ProfileReference;
3815
4069
  /**
3816
4070
  * The workflow configuration that was active when the invoice was created.
3817
4071
  *
@@ -3844,13 +4098,13 @@ export interface InvoiceDetailedLine {
3844
4098
  description?: string;
3845
4099
  labels?: Labels;
3846
4100
  /** An ISO-8601 timestamp representation of entity creation date. */
3847
- created_at: string;
4101
+ createdAt: string;
3848
4102
  /** An ISO-8601 timestamp representation of entity last update date. */
3849
- updated_at: string;
4103
+ updatedAt: string;
3850
4104
  /** An ISO-8601 timestamp representation of entity deletion date. */
3851
- deleted_at?: string;
4105
+ deletedAt?: string;
3852
4106
  /** The service period covered by this detailed line. */
3853
- service_period: ClosedPeriod;
4107
+ servicePeriod: ClosedPeriod;
3854
4108
  /** Aggregated financial totals for the detailed line. */
3855
4109
  totals: Totals;
3856
4110
  /** The cost category of this detailed line. */
@@ -3858,13 +4112,25 @@ export interface InvoiceDetailedLine {
3858
4112
  /** Discounts applied to this detailed line. */
3859
4113
  discounts?: InvoiceLineDiscounts;
3860
4114
  /** Credit applied to this detailed line. */
3861
- credits_applied?: InvoiceLineCreditsApplied[];
4115
+ creditsApplied?: InvoiceLineCreditsApplied[];
3862
4116
  /** External identifiers for this detailed line. */
3863
- external_references?: InvoiceLineExternalReferences;
4117
+ externalReferences?: InvoiceLineExternalReferences;
3864
4118
  /** The quantity of the detailed line. */
3865
4119
  quantity: string;
3866
4120
  /** The unit price of the detailed line. */
3867
- unit_price: string;
4121
+ unitPrice: string;
4122
+ }
4123
+ /** Snapshot of the billing workflow configuration captured at invoice creation. */
4124
+ export interface UpdateInvoiceWorkflowSettings {
4125
+ /**
4126
+ * The workflow configuration that was active when the invoice was created.
4127
+ *
4128
+ * Only the fields that are meaningful at the per-invoice level are included:
4129
+ * invoicing behaviour (auto-advance, draft period) and payment settings
4130
+ * (collection method, due date). Profile-wide settings such as collection
4131
+ * alignment, progressive billing, and tax policy are omitted.
4132
+ */
4133
+ workflow: UpdateBillingInvoiceWorkflow;
3868
4134
  }
3869
4135
  /** Page paginated response. */
3870
4136
  export interface CurrencyPagePaginatedResponse {
@@ -3895,7 +4161,7 @@ export interface GovernanceQueryResult {
3895
4161
  * Timestamp of the most recent change to the customer's access state reflected in
3896
4162
  * this result.
3897
4163
  */
3898
- updated_at: string;
4164
+ updatedAt: string;
3899
4165
  }
3900
4166
  /** A capability or billable dimension offered by a provider. */
3901
4167
  export interface Feature {
@@ -3914,11 +4180,11 @@ export interface Feature {
3914
4180
  description?: string;
3915
4181
  labels?: Labels;
3916
4182
  /** An ISO-8601 timestamp representation of entity creation date. */
3917
- created_at: string;
4183
+ createdAt: string;
3918
4184
  /** An ISO-8601 timestamp representation of entity last update date. */
3919
- updated_at: string;
4185
+ updatedAt: string;
3920
4186
  /** An ISO-8601 timestamp representation of entity deletion date. */
3921
- deleted_at?: string;
4187
+ deletedAt?: string;
3922
4188
  key: string;
3923
4189
  /**
3924
4190
  * The meter that the feature is associated with and based on which usage is
@@ -3930,7 +4196,7 @@ export interface Feature {
3930
4196
  * "llm" to look up cost from the LLM cost database based on meter group-by
3931
4197
  * properties.
3932
4198
  */
3933
- unit_cost?: FeatureManualUnitCost | FeatureLlmUnitCost;
4199
+ unitCost?: FeatureManualUnitCost | FeatureLlmUnitCost;
3934
4200
  }
3935
4201
  /** Feature create request. */
3936
4202
  export interface CreateFeatureRequest {
@@ -3958,7 +4224,7 @@ export interface CreateFeatureRequest {
3958
4224
  * "llm" to look up cost from the LLM cost database based on meter group-by
3959
4225
  * properties.
3960
4226
  */
3961
- unit_cost?: FeatureManualUnitCost | FeatureLlmUnitCost;
4227
+ unitCost?: FeatureManualUnitCost | FeatureLlmUnitCost;
3962
4228
  }
3963
4229
  /**
3964
4230
  * Request body for updating a feature. Currently only the unit_cost field can be
@@ -3971,7 +4237,7 @@ export interface UpdateFeatureRequest {
3971
4237
  * properties. Set to `null` to clear the existing unit cost; omit to leave it
3972
4238
  * unchanged.
3973
4239
  */
3974
- unit_cost?: FeatureManualUnitCost | FeatureLlmUnitCost | null;
4240
+ unitCost?: FeatureManualUnitCost | FeatureLlmUnitCost | null;
3975
4241
  }
3976
4242
  /** Page paginated response. */
3977
4243
  export interface CreditGrantPagePaginatedResponse {
@@ -3981,7 +4247,7 @@ export interface CreditGrantPagePaginatedResponse {
3981
4247
  /** Bad Request. */
3982
4248
  export interface BadRequest extends BaseError {
3983
4249
  /** The list of parameters that failed validation. */
3984
- invalid_parameters: (InvalidParameterStandard | InvalidParameterMinimumLength | InvalidParameterMaximumLength | InvalidParameterChoiceItem | InvalidParameterDependentItem)[];
4250
+ invalidParameters: (InvalidParameterStandard | InvalidParameterMinimumLength | InvalidParameterMaximumLength | InvalidParameterChoiceItem | InvalidParameterDependentItem)[];
3985
4251
  }
3986
4252
  /**
3987
4253
  * Base fields shared by all invoice types.
@@ -3998,11 +4264,11 @@ export interface InvoiceBase {
3998
4264
  description?: string;
3999
4265
  labels?: Labels;
4000
4266
  /** An ISO-8601 timestamp representation of entity creation date. */
4001
- created_at: string;
4267
+ createdAt: string;
4002
4268
  /** An ISO-8601 timestamp representation of entity last update date. */
4003
- updated_at: string;
4269
+ updatedAt: string;
4004
4270
  /** An ISO-8601 timestamp representation of entity deletion date. */
4005
- deleted_at?: string;
4271
+ deletedAt?: string;
4006
4272
  /** Human-readable invoice number generated by the invoicing app. */
4007
4273
  number: string;
4008
4274
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -4023,16 +4289,16 @@ export interface InvoiceBase {
4023
4289
  * to `to`. In other cases those fields will be filled with the actual service
4024
4290
  * period.
4025
4291
  */
4026
- service_period: ClosedPeriod;
4292
+ servicePeriod: ClosedPeriod;
4027
4293
  /**
4028
4294
  * Validation issues found during invoice processing.
4029
4295
  *
4030
4296
  * Present only when there are one or more validation findings. An empty list is
4031
4297
  * omitted.
4032
4298
  */
4033
- validation_issues?: InvoiceValidationIssue[];
4299
+ validationIssues?: InvoiceValidationIssue[];
4034
4300
  /** External identifiers assigned to this invoice by third-party systems. */
4035
- external_references?: InvoiceExternalReferences;
4301
+ externalReferences?: InvoiceExternalReferences;
4036
4302
  }
4037
4303
  /**
4038
4304
  * Request to create a Stripe Checkout Session for the customer.
@@ -4048,7 +4314,7 @@ export interface CustomerStripeCreateCheckoutSessionRequest {
4048
4314
  * These options are passed directly to Stripe's
4049
4315
  * [checkout session creation API](https://docs.stripe.com/api/checkout/sessions/create).
4050
4316
  */
4051
- stripe_options: AppStripeCreateCheckoutSessionRequestOptions;
4317
+ stripeOptions: AppStripeCreateCheckoutSessionRequestOptions;
4052
4318
  }
4053
4319
  /**
4054
4320
  * Workflow collection specifies how to collect the pending line items for an
@@ -4109,11 +4375,11 @@ export interface ChargeFlatFee {
4109
4375
  description?: string;
4110
4376
  labels?: Labels;
4111
4377
  /** An ISO-8601 timestamp representation of entity creation date. */
4112
- created_at: string;
4378
+ createdAt: string;
4113
4379
  /** An ISO-8601 timestamp representation of entity last update date. */
4114
- updated_at: string;
4380
+ updatedAt: string;
4115
4381
  /** An ISO-8601 timestamp representation of entity deletion date. */
4116
- deleted_at?: string;
4382
+ deletedAt?: string;
4117
4383
  /** The type of the charge. */
4118
4384
  type: 'flat_fee';
4119
4385
  /** The customer owning the charge. */
@@ -4122,7 +4388,7 @@ export interface ChargeFlatFee {
4122
4388
  * Indicates whether the charge lifecycle is controlled by OpenMeter or manually
4123
4389
  * overridden by the API user.
4124
4390
  */
4125
- lifecycle_controller: 'system' | 'manual';
4391
+ lifecycleController: 'system' | 'manual';
4126
4392
  /**
4127
4393
  * The subscription that originated the charge, when the charge was created from a
4128
4394
  * subscription item.
@@ -4133,34 +4399,34 @@ export interface ChargeFlatFee {
4133
4399
  /** The lifecycle status of the charge. */
4134
4400
  status: 'created' | 'active' | 'final' | 'deleted';
4135
4401
  /** The timestamp when the charge is intended to be invoiced. */
4136
- invoice_at: string;
4402
+ invoiceAt: string;
4137
4403
  /** The effective service period covered by the charge. */
4138
- service_period: ClosedPeriod;
4404
+ servicePeriod: ClosedPeriod;
4139
4405
  /** The full, unprorated service period of the charge. */
4140
- full_service_period: ClosedPeriod;
4406
+ fullServicePeriod: ClosedPeriod;
4141
4407
  /** The billing period the charge belongs to. */
4142
- billing_period: ClosedPeriod;
4408
+ billingPeriod: ClosedPeriod;
4143
4409
  /**
4144
4410
  * The earliest time when the charge should be advanced again by background
4145
4411
  * processing.
4146
4412
  */
4147
- advance_after?: string;
4413
+ advanceAfter?: string;
4148
4414
  /** Unique reference ID of the charge. */
4149
- unique_reference_id?: string;
4415
+ uniqueReferenceId?: string;
4150
4416
  /** Settlement mode of the charge. */
4151
- settlement_mode: 'credit_then_invoice' | 'credit_only';
4417
+ settlementMode: 'credit_then_invoice' | 'credit_only';
4152
4418
  /** Tax configuration of the charge. */
4153
- tax_config?: TaxConfig;
4419
+ taxConfig?: TaxConfig;
4154
4420
  /** Payment term of the flat fee charge. */
4155
- payment_term: 'in_advance' | 'in_arrears';
4421
+ paymentTerm: 'in_advance' | 'in_arrears';
4156
4422
  /** The discounts applied to the charge. */
4157
4423
  discounts?: ChargeFlatFeeDiscounts;
4158
4424
  /** The feature associated with the charge, when applicable. */
4159
- feature_key?: string;
4425
+ featureKey?: string;
4160
4426
  /** The proration configuration of the charge. */
4161
- proration_configuration: RateCardProrationConfiguration;
4427
+ prorationConfiguration: RateCardProrationConfiguration;
4162
4428
  /** The amount after proration of the charge. */
4163
- amount_after_proration: CurrencyAmount;
4429
+ amountAfterProration: CurrencyAmount;
4164
4430
  /** The price of the charge. */
4165
4431
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
4166
4432
  /**
@@ -4168,7 +4434,7 @@ export interface ChargeFlatFee {
4168
4434
  * active manual override. The top-level charge fields remain the effective
4169
4435
  * customer-facing intent.
4170
4436
  */
4171
- system_intent?: ChargeFlatFeeSystemIntent;
4437
+ systemIntent?: ChargeFlatFeeSystemIntent;
4172
4438
  }
4173
4439
  /**
4174
4440
  * Usage-based intent fields from the system lifecycle controller shadowed by a
@@ -4189,13 +4455,13 @@ export interface ChargeUsageBasedSystemIntent {
4189
4455
  description?: string;
4190
4456
  labels?: Labels;
4191
4457
  /** The timestamp when the charge is intended to be invoiced. */
4192
- invoice_at: string;
4458
+ invoiceAt: string;
4193
4459
  /** The effective service period covered by the charge. */
4194
- service_period: ClosedPeriod;
4460
+ servicePeriod: ClosedPeriod;
4195
4461
  /** The full, unprorated service period of the charge. */
4196
- full_service_period: ClosedPeriod;
4462
+ fullServicePeriod: ClosedPeriod;
4197
4463
  /** The billing period the charge belongs to. */
4198
- billing_period: ClosedPeriod;
4464
+ billingPeriod: ClosedPeriod;
4199
4465
  /** Discounts applied to the usage-based charge. */
4200
4466
  discounts?: RateCardDiscounts;
4201
4467
  /** The price of the charge. */
@@ -4204,7 +4470,7 @@ export interface ChargeUsageBasedSystemIntent {
4204
4470
  * The timestamp when the system lifecycle controller intent was deleted. The
4205
4471
  * effective charge can remain visible while a manual override is active.
4206
4472
  */
4207
- deleted_at?: string;
4473
+ deletedAt?: string;
4208
4474
  }
4209
4475
  /** Usage-based charge create request. */
4210
4476
  export interface CreateChargeUsageBasedRequest {
@@ -4226,25 +4492,25 @@ export interface CreateChargeUsageBasedRequest {
4226
4492
  /** The currency of the charge. */
4227
4493
  currency: string;
4228
4494
  /** The timestamp when the charge is intended to be invoiced. */
4229
- invoice_at: string;
4495
+ invoiceAt: string;
4230
4496
  /** The effective service period covered by the charge. */
4231
- service_period: ClosedPeriod;
4497
+ servicePeriod: ClosedPeriod;
4232
4498
  /** Unique reference ID of the charge. */
4233
- unique_reference_id?: string;
4499
+ uniqueReferenceId?: string;
4234
4500
  /** Settlement mode of the charge. */
4235
- settlement_mode: 'credit_then_invoice' | 'credit_only';
4501
+ settlementMode: 'credit_then_invoice' | 'credit_only';
4236
4502
  /** Tax configuration of the charge. */
4237
- tax_config?: TaxConfig;
4503
+ taxConfig?: TaxConfig;
4238
4504
  /** Discounts applied to the usage-based charge. */
4239
4505
  discounts?: RateCardDiscounts;
4240
4506
  /** The feature associated with the charge. */
4241
- feature_key: string;
4507
+ featureKey: string;
4242
4508
  /** The price of the charge. */
4243
4509
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
4244
4510
  /** The full, unprorated service period of the charge. */
4245
- full_service_period?: ClosedPeriod;
4511
+ fullServicePeriod?: ClosedPeriod;
4246
4512
  /** The billing period the charge belongs to. */
4247
- billing_period?: ClosedPeriod;
4513
+ billingPeriod?: ClosedPeriod;
4248
4514
  }
4249
4515
  /** A rate card defines the pricing and entitlement of a feature or service. */
4250
4516
  export interface RateCard {
@@ -4268,7 +4534,7 @@ export interface RateCard {
4268
4534
  * The billing cadence of the rate card. When null, the charge is one-time
4269
4535
  * (non-recurring). Only valid for flat prices.
4270
4536
  */
4271
- billing_cadence?: string;
4537
+ billingCadence?: string;
4272
4538
  /** The price of the rate card. */
4273
4539
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
4274
4540
  /**
@@ -4281,12 +4547,12 @@ export interface RateCard {
4281
4547
  * Accepted on create and update only when the UnitConfig feature is enabled on the
4282
4548
  * deployment; otherwise rejected.
4283
4549
  */
4284
- unit_config?: UnitConfig;
4550
+ unitConfig?: UnitConfig;
4285
4551
  /**
4286
4552
  * The payment term of the rate card. In advance payment term can only be used for
4287
4553
  * flat prices.
4288
4554
  */
4289
- payment_term: 'in_advance' | 'in_arrears';
4555
+ paymentTerm: 'in_advance' | 'in_arrears';
4290
4556
  /**
4291
4557
  * Spend commitments for this rate card. Only applicable to usage-based prices
4292
4558
  * (unit, graduated, volume).
@@ -4295,7 +4561,7 @@ export interface RateCard {
4295
4561
  /** The discounts of the rate card. */
4296
4562
  discounts?: RateCardDiscounts;
4297
4563
  /** The tax config of the rate card. */
4298
- tax_config?: RateCardTaxConfig;
4564
+ taxConfig?: RateCardTaxConfig;
4299
4565
  /**
4300
4566
  * The entitlement template granted to subscribers of a plan or addon containing
4301
4567
  * this rate card. Requires `feature` to be set.
@@ -4307,12 +4573,23 @@ export interface InvoiceLineRateCard {
4307
4573
  /** The price definition used to calculate charges for this line. */
4308
4574
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
4309
4575
  /** Tax configuration snapshot for this line. */
4310
- tax_config?: RateCardTaxConfig;
4576
+ taxConfig?: RateCardTaxConfig;
4311
4577
  /** The feature key associated with this line's rate card. */
4312
- feature_key?: string;
4578
+ featureKey?: string;
4313
4579
  /** Discount configuration from the rate card. */
4314
4580
  discounts?: RateCardDiscounts;
4315
4581
  }
4582
+ /** Rate card configuration snapshot for a usage-based invoice line. */
4583
+ export interface UpdateInvoiceLineRateCard {
4584
+ /** The price definition used to calculate charges for this line. */
4585
+ price: UpdatePriceFree | UpdatePriceFlat | UpdatePriceUnit | UpdatePriceGraduated | UpdatePriceVolume;
4586
+ /** Tax configuration snapshot for this line. */
4587
+ taxConfig?: UpdateRateCardTaxConfig;
4588
+ /** The feature key associated with this line's rate card. */
4589
+ featureKey?: string;
4590
+ /** Discount configuration from the rate card. */
4591
+ discounts?: UpdateDiscounts;
4592
+ }
4316
4593
  /** Page paginated response. */
4317
4594
  export interface FeaturePagePaginatedResponse {
4318
4595
  data: Feature[];
@@ -4346,11 +4623,11 @@ export interface ChargeUsageBased {
4346
4623
  description?: string;
4347
4624
  labels?: Labels;
4348
4625
  /** An ISO-8601 timestamp representation of entity creation date. */
4349
- created_at: string;
4626
+ createdAt: string;
4350
4627
  /** An ISO-8601 timestamp representation of entity last update date. */
4351
- updated_at: string;
4628
+ updatedAt: string;
4352
4629
  /** An ISO-8601 timestamp representation of entity deletion date. */
4353
- deleted_at?: string;
4630
+ deletedAt?: string;
4354
4631
  /** The type of the charge. */
4355
4632
  type: 'usage_based';
4356
4633
  /** The customer owning the charge. */
@@ -4359,7 +4636,7 @@ export interface ChargeUsageBased {
4359
4636
  * Indicates whether the charge lifecycle is controlled by OpenMeter or manually
4360
4637
  * overridden by the API user.
4361
4638
  */
4362
- lifecycle_controller: 'system' | 'manual';
4639
+ lifecycleController: 'system' | 'manual';
4363
4640
  /**
4364
4641
  * The subscription that originated the charge, when the charge was created from a
4365
4642
  * subscription item.
@@ -4370,28 +4647,28 @@ export interface ChargeUsageBased {
4370
4647
  /** The lifecycle status of the charge. */
4371
4648
  status: 'created' | 'active' | 'final' | 'deleted';
4372
4649
  /** The timestamp when the charge is intended to be invoiced. */
4373
- invoice_at: string;
4650
+ invoiceAt: string;
4374
4651
  /** The effective service period covered by the charge. */
4375
- service_period: ClosedPeriod;
4652
+ servicePeriod: ClosedPeriod;
4376
4653
  /** The full, unprorated service period of the charge. */
4377
- full_service_period: ClosedPeriod;
4654
+ fullServicePeriod: ClosedPeriod;
4378
4655
  /** The billing period the charge belongs to. */
4379
- billing_period: ClosedPeriod;
4656
+ billingPeriod: ClosedPeriod;
4380
4657
  /**
4381
4658
  * The earliest time when the charge should be advanced again by background
4382
4659
  * processing.
4383
4660
  */
4384
- advance_after?: string;
4661
+ advanceAfter?: string;
4385
4662
  /** Unique reference ID of the charge. */
4386
- unique_reference_id?: string;
4663
+ uniqueReferenceId?: string;
4387
4664
  /** Settlement mode of the charge. */
4388
- settlement_mode: 'credit_then_invoice' | 'credit_only';
4665
+ settlementMode: 'credit_then_invoice' | 'credit_only';
4389
4666
  /** Tax configuration of the charge. */
4390
- tax_config?: TaxConfig;
4667
+ taxConfig?: TaxConfig;
4391
4668
  /** Discounts applied to the usage-based charge. */
4392
4669
  discounts?: RateCardDiscounts;
4393
4670
  /** The feature associated with the charge. */
4394
- feature_key: string;
4671
+ featureKey: string;
4395
4672
  /** Aggregated booked and realtime totals for the charge. */
4396
4673
  totals: ChargeTotals;
4397
4674
  /** The price of the charge. */
@@ -4401,14 +4678,14 @@ export interface ChargeUsageBased {
4401
4678
  * active manual override. The top-level charge fields remain the effective
4402
4679
  * customer-facing intent.
4403
4680
  */
4404
- system_intent?: ChargeUsageBasedSystemIntent;
4681
+ systemIntent?: ChargeUsageBasedSystemIntent;
4405
4682
  }
4406
4683
  /** A rate card for a subscription add-on. */
4407
4684
  export interface SubscriptionAddonRateCard {
4408
4685
  /** The rate card. */
4409
- rate_card: RateCard;
4686
+ rateCard: RateCard;
4410
4687
  /** The IDs of the subscription items that this rate card belongs to. */
4411
- affected_subscription_item_ids: string[];
4688
+ affectedSubscriptionItemIds: string[];
4412
4689
  }
4413
4690
  /**
4414
4691
  * The plan phase or pricing ramp allows changing a plan's rate cards over time as
@@ -4435,7 +4712,7 @@ export interface PlanPhase {
4435
4712
  */
4436
4713
  duration?: string;
4437
4714
  /** The rate cards of the plan. */
4438
- rate_cards: RateCard[];
4715
+ rateCards: RateCard[];
4439
4716
  }
4440
4717
  /**
4441
4718
  * Add-on allows extending subscriptions with compatible plans with additional
@@ -4457,11 +4734,11 @@ export interface Addon {
4457
4734
  description?: string;
4458
4735
  labels?: Labels;
4459
4736
  /** An ISO-8601 timestamp representation of entity creation date. */
4460
- created_at: string;
4737
+ createdAt: string;
4461
4738
  /** An ISO-8601 timestamp representation of entity last update date. */
4462
- updated_at: string;
4739
+ updatedAt: string;
4463
4740
  /** An ISO-8601 timestamp representation of entity deletion date. */
4464
- deleted_at?: string;
4741
+ deletedAt?: string;
4465
4742
  /**
4466
4743
  * A key is a semi-unique string that is used to identify the add-on. It is used to
4467
4744
  * reference the latest `active` version of the add-on and is unique with the
@@ -4471,19 +4748,19 @@ export interface Addon {
4471
4748
  /** Version of the add-on. Incremented when the add-on is updated. */
4472
4749
  version: number;
4473
4750
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
4474
- instance_type: 'single' | 'multiple';
4751
+ instanceType: 'single' | 'multiple';
4475
4752
  /** The currency code of the add-on. */
4476
4753
  currency: string;
4477
4754
  /**
4478
4755
  * The date and time when the add-on becomes effective. When not specified, the
4479
4756
  * add-on is a draft.
4480
4757
  */
4481
- effective_from?: string;
4758
+ effectiveFrom?: string;
4482
4759
  /**
4483
4760
  * The date and time when the add-on is no longer effective. When not specified,
4484
4761
  * the add-on is effective indefinitely.
4485
4762
  */
4486
- effective_to?: string;
4763
+ effectiveTo?: string;
4487
4764
  /**
4488
4765
  * The status of the add-on. Computed based on the effective start and end dates:
4489
4766
  *
@@ -4494,9 +4771,9 @@ export interface Addon {
4494
4771
  */
4495
4772
  status: 'draft' | 'active' | 'archived';
4496
4773
  /** The rate cards of the add-on. */
4497
- rate_cards: RateCard[];
4774
+ rateCards: RateCard[];
4498
4775
  /** List of validation errors. */
4499
- validation_errors?: ProductCatalogValidationError[];
4776
+ validationErrors?: ProductCatalogValidationError[];
4500
4777
  }
4501
4778
  /** Addon create request. */
4502
4779
  export interface CreateAddonRequest {
@@ -4520,11 +4797,11 @@ export interface CreateAddonRequest {
4520
4797
  */
4521
4798
  key: string;
4522
4799
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
4523
- instance_type: 'single' | 'multiple';
4800
+ instanceType: 'single' | 'multiple';
4524
4801
  /** The currency code of the add-on. */
4525
4802
  currency: string;
4526
4803
  /** The rate cards of the add-on. */
4527
- rate_cards: RateCard[];
4804
+ rateCards: RateCard[];
4528
4805
  }
4529
4806
  /** Addon upsert request. */
4530
4807
  export interface UpsertAddonRequest {
@@ -4542,9 +4819,9 @@ export interface UpsertAddonRequest {
4542
4819
  description?: string;
4543
4820
  labels?: Labels;
4544
4821
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
4545
- instance_type: 'single' | 'multiple';
4822
+ instanceType: 'single' | 'multiple';
4546
4823
  /** The rate cards of the add-on. */
4547
- rate_cards: RateCard[];
4824
+ rateCards: RateCard[];
4548
4825
  }
4549
4826
  /**
4550
4827
  * A top-level line item on an invoice.
@@ -4554,7 +4831,6 @@ export interface UpsertAddonRequest {
4554
4831
  * present.
4555
4832
  */
4556
4833
  export interface InvoiceStandardLine {
4557
- id: string;
4558
4834
  /**
4559
4835
  * Display name of the resource.
4560
4836
  *
@@ -4569,18 +4845,26 @@ export interface InvoiceStandardLine {
4569
4845
  description?: string;
4570
4846
  labels?: Labels;
4571
4847
  /** An ISO-8601 timestamp representation of entity creation date. */
4572
- created_at: string;
4848
+ createdAt: string;
4573
4849
  /** An ISO-8601 timestamp representation of entity last update date. */
4574
- updated_at: string;
4850
+ updatedAt: string;
4575
4851
  /** An ISO-8601 timestamp representation of entity deletion date. */
4576
- deleted_at?: string;
4852
+ deletedAt?: string;
4853
+ /**
4854
+ * ID of the line.
4855
+ *
4856
+ * Optional on update: omit to create a new line, or supply the ID of an existing
4857
+ * line to edit it. Existing lines omitted from an update's `lines` array are
4858
+ * deleted.
4859
+ */
4860
+ id?: string;
4577
4861
  /** The type of charge this line item represents. */
4578
4862
  type: 'standard_line';
4579
4863
  /**
4580
4864
  * Indicates whether this line item's lifecycle is controlled by OpenMeter or
4581
4865
  * manually overridden by the API user.
4582
4866
  */
4583
- lifecycle_controller: 'system' | 'manual';
4867
+ lifecycleController: 'system' | 'manual';
4584
4868
  /**
4585
4869
  * The service period covered by this invoice, spanning the earliest line start to
4586
4870
  * the latest line end across all of its lines.
@@ -4588,28 +4872,70 @@ export interface InvoiceStandardLine {
4588
4872
  * For an invoice with no lines the period is empty, which means `from` will be
4589
4873
  * equal to `to`.
4590
4874
  */
4591
- service_period: ClosedPeriod;
4875
+ servicePeriod: ClosedPeriod;
4592
4876
  /** Aggregated financial totals for the line item. */
4593
4877
  totals: Totals;
4594
4878
  /** Discounts applied to this line item. */
4595
4879
  discounts?: InvoiceLineDiscounts;
4596
4880
  /** Credit applied to this line item. */
4597
- credits_applied?: InvoiceLineCreditsApplied[];
4881
+ creditsApplied?: InvoiceLineCreditsApplied[];
4598
4882
  /** External identifiers for this line item assigned by third-party systems. */
4599
- external_references?: InvoiceLineExternalReferences;
4883
+ externalReferences?: InvoiceLineExternalReferences;
4600
4884
  /** Reference to the subscription item that generated this line. */
4601
4885
  subscription?: SubscriptionReference;
4602
4886
  /** The rate card configuration snapshot used to price this line item. */
4603
- rate_card: InvoiceLineRateCard;
4887
+ rateCard: InvoiceLineRateCard;
4604
4888
  /**
4605
4889
  * Detailed sub-lines that this line has been broken down into.
4606
4890
  *
4607
4891
  * Present when line has individual details.
4608
4892
  */
4609
- detailed_lines: InvoiceDetailedLine[];
4893
+ detailedLines: InvoiceDetailedLine[];
4610
4894
  /** Reference to the charge associated with this line item. */
4611
4895
  charge?: ChargeReference;
4612
4896
  }
4897
+ /**
4898
+ * A top-level line item on an invoice.
4899
+ *
4900
+ * Each line represents a single charge, typically associated with a rate card from
4901
+ * a subscription. Detailed (child) lines are nested under `detailed_lines` when
4902
+ * present.
4903
+ */
4904
+ export interface UpdateInvoiceStandardLine {
4905
+ /**
4906
+ * Display name of the resource.
4907
+ *
4908
+ * Between 1 and 256 characters.
4909
+ */
4910
+ name: string;
4911
+ /**
4912
+ * Optional description of the resource.
4913
+ *
4914
+ * Maximum 1024 characters.
4915
+ */
4916
+ description?: string;
4917
+ labels?: UpdateLabels;
4918
+ /**
4919
+ * ID of the line.
4920
+ *
4921
+ * Optional on update: omit to create a new line, or supply the ID of an existing
4922
+ * line to edit it. Existing lines omitted from an update's `lines` array are
4923
+ * deleted.
4924
+ */
4925
+ id?: string;
4926
+ /** The type of charge this line item represents. */
4927
+ type: 'standard_line';
4928
+ /**
4929
+ * The service period covered by this invoice, spanning the earliest line start to
4930
+ * the latest line end across all of its lines.
4931
+ *
4932
+ * For an invoice with no lines the period is empty, which means `from` will be
4933
+ * equal to `to`.
4934
+ */
4935
+ servicePeriod: UpdateClosedPeriod;
4936
+ /** The rate card configuration snapshot used to price this line item. */
4937
+ rateCard: UpdateInvoiceLineRateCard;
4938
+ }
4613
4939
  /**
4614
4940
  * Billing profiles contain the settings for billing and controls invoice
4615
4941
  * generation.
@@ -4630,11 +4956,11 @@ export interface Profile {
4630
4956
  description?: string;
4631
4957
  labels?: Labels;
4632
4958
  /** An ISO-8601 timestamp representation of entity creation date. */
4633
- created_at: string;
4959
+ createdAt: string;
4634
4960
  /** An ISO-8601 timestamp representation of entity last update date. */
4635
- updated_at: string;
4961
+ updatedAt: string;
4636
4962
  /** An ISO-8601 timestamp representation of entity deletion date. */
4637
- deleted_at?: string;
4963
+ deletedAt?: string;
4638
4964
  /**
4639
4965
  * The name and contact information for the supplier this billing profile
4640
4966
  * represents
@@ -4704,11 +5030,11 @@ export interface SubscriptionAddon {
4704
5030
  id: string;
4705
5031
  labels?: Labels;
4706
5032
  /** An ISO-8601 timestamp representation of entity creation date. */
4707
- created_at: string;
5033
+ createdAt: string;
4708
5034
  /** An ISO-8601 timestamp representation of entity last update date. */
4709
- updated_at: string;
5035
+ updatedAt: string;
4710
5036
  /** An ISO-8601 timestamp representation of entity deletion date. */
4711
- deleted_at?: string;
5037
+ deletedAt?: string;
4712
5038
  /**
4713
5039
  * Display name of the resource.
4714
5040
  *
@@ -4729,15 +5055,15 @@ export interface SubscriptionAddon {
4729
5055
  * An ISO-8601 timestamp representation of which point in time the quantity was
4730
5056
  * resolved to.
4731
5057
  */
4732
- quantity_at: string;
5058
+ quantityAt: string;
4733
5059
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
4734
- active_from: string;
5060
+ activeFrom: string;
4735
5061
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
4736
- active_to?: string;
5062
+ activeTo?: string;
4737
5063
  /** The timeline of the add-on. The returned periods are sorted and continuous. */
4738
5064
  timeline: SubscriptionAddonTimelineSegment[];
4739
5065
  /** The rate cards of the add-on. */
4740
- rate_cards: SubscriptionAddonRateCard[];
5066
+ rateCards: SubscriptionAddonRateCard[];
4741
5067
  }
4742
5068
  /** Plans provide a template for subscriptions. */
4743
5069
  export interface Plan {
@@ -4756,11 +5082,11 @@ export interface Plan {
4756
5082
  description?: string;
4757
5083
  labels?: Labels;
4758
5084
  /** An ISO-8601 timestamp representation of entity creation date. */
4759
- created_at: string;
5085
+ createdAt: string;
4760
5086
  /** An ISO-8601 timestamp representation of entity last update date. */
4761
- updated_at: string;
5087
+ updatedAt: string;
4762
5088
  /** An ISO-8601 timestamp representation of entity deletion date. */
4763
- deleted_at?: string;
5089
+ deletedAt?: string;
4764
5090
  /**
4765
5091
  * A key is a semi-unique string that is used to identify the plan. It is used to
4766
5092
  * reference the latest `active` version of the plan and is unique with the version
@@ -4775,19 +5101,19 @@ export interface Plan {
4775
5101
  /** The currency code of the plan. */
4776
5102
  currency: string;
4777
5103
  /** The billing cadence for subscriptions using this plan. */
4778
- billing_cadence: string;
5104
+ billingCadence: string;
4779
5105
  /** Whether pro-rating is enabled for this plan. */
4780
- pro_rating_enabled: boolean;
5106
+ proRatingEnabled: boolean;
4781
5107
  /**
4782
5108
  * The date and time when the plan becomes `active`. When not specified, the plan
4783
5109
  * is in `draft` status.
4784
5110
  */
4785
- effective_from?: string;
5111
+ effectiveFrom?: string;
4786
5112
  /**
4787
5113
  * A scheduled date and time when the plan becomes `archived`. When not specified,
4788
5114
  * the plan is in `active` status indefinitely.
4789
5115
  */
4790
- effective_to?: string;
5116
+ effectiveTo?: string;
4791
5117
  /**
4792
5118
  * The status of the plan. Computed based on the effective start and end dates:
4793
5119
  *
@@ -4812,12 +5138,12 @@ export interface Plan {
4812
5138
  * invoiced.
4813
5139
  * - `credit_only`: Usage is settled exclusively against credits.
4814
5140
  */
4815
- settlement_mode: 'credit_then_invoice' | 'credit_only';
5141
+ settlementMode: 'credit_then_invoice' | 'credit_only';
4816
5142
  /**
4817
5143
  * List of validation errors in `draft` state that prevent the plan from being
4818
5144
  * published.
4819
5145
  */
4820
- validation_errors?: ProductCatalogValidationError[];
5146
+ validationErrors?: ProductCatalogValidationError[];
4821
5147
  }
4822
5148
  /** Plan create request. */
4823
5149
  export interface CreatePlanRequest {
@@ -4843,9 +5169,9 @@ export interface CreatePlanRequest {
4843
5169
  /** The currency code of the plan. */
4844
5170
  currency: string;
4845
5171
  /** The billing cadence for subscriptions using this plan. */
4846
- billing_cadence: string;
5172
+ billingCadence: string;
4847
5173
  /** Whether pro-rating is enabled for this plan. */
4848
- pro_rating_enabled: boolean;
5174
+ proRatingEnabled: boolean;
4849
5175
  /**
4850
5176
  * The plan phases define the pricing ramp for a subscription. A phase switch
4851
5177
  * occurs only at the end of a billing period. At least one phase is required.
@@ -4868,7 +5194,7 @@ export interface UpsertPlanRequest {
4868
5194
  description?: string;
4869
5195
  labels?: Labels;
4870
5196
  /** Whether pro-rating is enabled for this plan. */
4871
- pro_rating_enabled: boolean;
5197
+ proRatingEnabled: boolean;
4872
5198
  /**
4873
5199
  * The plan phases define the pricing ramp for a subscription. A phase switch
4874
5200
  * occurs only at the end of a billing period. At least one phase is required.
@@ -4911,11 +5237,11 @@ export interface InvoiceStandard {
4911
5237
  description?: string;
4912
5238
  labels?: Labels;
4913
5239
  /** An ISO-8601 timestamp representation of entity creation date. */
4914
- created_at: string;
5240
+ createdAt: string;
4915
5241
  /** An ISO-8601 timestamp representation of entity last update date. */
4916
- updated_at: string;
5242
+ updatedAt: string;
4917
5243
  /** An ISO-8601 timestamp representation of entity deletion date. */
4918
- deleted_at?: string;
5244
+ deletedAt?: string;
4919
5245
  /** Human-readable invoice number generated by the invoicing app. */
4920
5246
  number: string;
4921
5247
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -4936,48 +5262,82 @@ export interface InvoiceStandard {
4936
5262
  * to `to`. In other cases those fields will be filled with the actual service
4937
5263
  * period.
4938
5264
  */
4939
- service_period: ClosedPeriod;
5265
+ servicePeriod: ClosedPeriod;
4940
5266
  /**
4941
5267
  * Validation issues found during invoice processing.
4942
5268
  *
4943
5269
  * Present only when there are one or more validation findings. An empty list is
4944
5270
  * omitted.
4945
5271
  */
4946
- validation_issues?: InvoiceValidationIssue[];
5272
+ validationIssues?: InvoiceValidationIssue[];
4947
5273
  /** External identifiers assigned to this invoice by third-party systems. */
4948
- external_references?: InvoiceExternalReferences;
5274
+ externalReferences?: InvoiceExternalReferences;
4949
5275
  /** Discriminator field identifying this as a standard invoice. */
4950
5276
  type: 'standard';
4951
5277
  /** Current lifecycle status of the invoice. */
4952
5278
  status: 'draft' | 'issuing' | 'issued' | 'payment_processing' | 'overdue' | 'paid' | 'uncollectible' | 'voided';
4953
5279
  /** Detailed status information including available actions and workflow state. */
4954
- status_details: InvoiceStatusDetails;
5280
+ statusDetails: InvoiceStatusDetails;
4955
5281
  /** Timestamp when the invoice was issued to the customer. */
4956
- issued_at?: string;
5282
+ issuedAt?: string;
4957
5283
  /**
4958
5284
  * Timestamp until which the invoice remains in draft state.
4959
5285
  *
4960
5286
  * The invoice advances automatically once this time is reached.
4961
5287
  */
4962
- draft_until?: string;
5288
+ draftUntil?: string;
4963
5289
  /** Timestamp when usage quantities were last snapshotted for this invoice. */
4964
- quantity_snapshotted_at?: string;
5290
+ quantitySnapshottedAt?: string;
4965
5291
  /** Timestamp when collection was initiated for this invoice. */
4966
- collection_at?: string;
5292
+ collectionAt?: string;
4967
5293
  /** Timestamp when payment is due. */
4968
- due_at?: string;
5294
+ dueAt?: string;
4969
5295
  /** Timestamp when the invoice was sent to the customer. */
4970
- sent_to_customer_at?: string;
5296
+ sentToCustomerAt?: string;
4971
5297
  /** Workflow configuration snapshot captured at invoice creation time. */
4972
5298
  workflow: InvoiceWorkflowSettings;
4973
5299
  /**
4974
5300
  * Line items on this invoice.
4975
5301
  *
4976
5302
  * Always returned on single-resource GET; omitted on list endpoints unless
4977
- * explicitly expanded.
5303
+ * explicitly expanded. Editable via update: existing lines are matched by `id`,
5304
+ * lines without an `id` are created, and lines present on the invoice but omitted
5305
+ * from the update request are deleted. Detailed (child) lines are always computed
5306
+ * and cannot be edited directly.
4978
5307
  */
4979
5308
  lines?: InvoiceStandardLine[];
4980
5309
  }
5310
+ /** InvoiceStandard update request. */
5311
+ export interface UpdateInvoiceStandardRequest {
5312
+ /**
5313
+ * Optional description of the resource.
5314
+ *
5315
+ * Maximum 1024 characters.
5316
+ */
5317
+ description?: string;
5318
+ labels?: UpdateLabels;
5319
+ /**
5320
+ * Snapshot of the supplier's contact information at the time the invoice was
5321
+ * issued.
5322
+ */
5323
+ supplier: UpdateSupplier;
5324
+ /** Snapshot of the customer's information at the time the invoice was issued. */
5325
+ customer: UpdateInvoiceCustomer;
5326
+ /** Discriminator field identifying this as a standard invoice. */
5327
+ type: 'standard';
5328
+ /** Workflow configuration snapshot captured at invoice creation time. */
5329
+ workflow: UpdateInvoiceWorkflowSettings;
5330
+ /**
5331
+ * Line items on this invoice.
5332
+ *
5333
+ * Always returned on single-resource GET; omitted on list endpoints unless
5334
+ * explicitly expanded. Editable via update: existing lines are matched by `id`,
5335
+ * lines without an `id` are created, and lines present on the invoice but omitted
5336
+ * from the update request are deleted. Detailed (child) lines are always computed
5337
+ * and cannot be edited directly.
5338
+ */
5339
+ lines?: UpdateInvoiceStandardLine[];
5340
+ }
4981
5341
  /** Page paginated response. */
4982
5342
  export interface InvoicePagePaginatedResponse {
4983
5343
  data: InvoiceStandard[];
@@ -5007,18 +5367,35 @@ export interface BaseErrorInput {
5007
5367
  }
5008
5368
  export interface WorkflowPaymentSendInvoiceSettingsInput {
5009
5369
  /** The collection method for the invoice. */
5010
- collection_method: 'send_invoice';
5370
+ collectionMethod: 'send_invoice';
5011
5371
  /**
5012
5372
  * The period after which the invoice is due. With some payment solutions it's only
5013
5373
  * applicable for manual collection method.
5014
5374
  */
5015
- due_after?: string;
5375
+ dueAfter?: string;
5016
5376
  }
5017
5377
  export interface InvoiceWorkflowInvoicingSettingsInput {
5018
5378
  /** Whether to automatically issue the invoice after the draft_period has passed. */
5019
- auto_advance?: boolean;
5379
+ autoAdvance?: boolean;
5020
5380
  /** The period for the invoice to be kept in draft status for manual reviews. */
5021
- draft_period?: string;
5381
+ draftPeriod?: string;
5382
+ /** The period after which the invoice is considered overdue if not paid. */
5383
+ dueAfter?: string;
5384
+ }
5385
+ export interface UpdateBillingInvoiceWorkflowInvoicingSettingsInput {
5386
+ /** Whether to automatically issue the invoice after the draft_period has passed. */
5387
+ autoAdvance?: boolean;
5388
+ /** The period for the invoice to be kept in draft status for manual reviews. */
5389
+ draftPeriod?: string;
5390
+ }
5391
+ export interface UpdateBillingWorkflowPaymentSendInvoiceSettingsInput {
5392
+ /** The collection method for the invoice. */
5393
+ collectionMethod: 'send_invoice';
5394
+ /**
5395
+ * The period after which the invoice is due. With some payment solutions it's only
5396
+ * applicable for manual collection method.
5397
+ */
5398
+ dueAfter?: string;
5022
5399
  }
5023
5400
  export interface EventInput {
5024
5401
  /** Identifies the event. */
@@ -5119,13 +5496,13 @@ export interface CreateCreditGrantPurchaseInput {
5119
5496
  *
5120
5497
  * Defaults to 1.0.
5121
5498
  */
5122
- per_unit_cost_basis?: string;
5499
+ perUnitCostBasis?: string;
5123
5500
  /**
5124
5501
  * Controls when credits become available for consumption.
5125
5502
  *
5126
5503
  * Defaults to `on_creation`.
5127
5504
  */
5128
- availability_policy?: 'on_creation';
5505
+ availabilityPolicy?: 'on_creation';
5129
5506
  }
5130
5507
  export interface RateCardMeteredEntitlementInput {
5131
5508
  /** The type of the entitlement template. */
@@ -5134,7 +5511,7 @@ export interface RateCardMeteredEntitlementInput {
5134
5511
  * If soft limit is true, the subject can use the feature even if the entitlement
5135
5512
  * is exhausted; access remains granted.
5136
5513
  */
5137
- is_soft_limit?: boolean;
5514
+ isSoftLimit?: boolean;
5138
5515
  /**
5139
5516
  * The amount of usage granted each usage period, in the feature's unit. Usage is
5140
5517
  * counted against this allowance and the balance resets every usage period. When
@@ -5146,7 +5523,7 @@ export interface RateCardMeteredEntitlementInput {
5146
5523
  * The reset interval of the metered entitlement in ISO8601 format. Defaults to the
5147
5524
  * billing cadence of the rate card.
5148
5525
  */
5149
- usage_period?: string;
5526
+ usagePeriod?: string;
5150
5527
  }
5151
5528
  export interface CreditGrantPurchaseInput {
5152
5529
  /** Currency of the purchase amount. */
@@ -5160,7 +5537,7 @@ export interface CreditGrantPurchaseInput {
5160
5537
  *
5161
5538
  * Defaults to 1.0.
5162
5539
  */
5163
- per_unit_cost_basis?: string;
5540
+ perUnitCostBasis?: string;
5164
5541
  /** The purchase amount. Calculated from `per_unit_cost_basis` and credit `amount`. */
5165
5542
  amount: string;
5166
5543
  /**
@@ -5168,9 +5545,9 @@ export interface CreditGrantPurchaseInput {
5168
5545
  *
5169
5546
  * Defaults to `on_creation`.
5170
5547
  */
5171
- availability_policy?: 'on_creation';
5548
+ availabilityPolicy?: 'on_creation';
5172
5549
  /** Current payment settlement status. */
5173
- settlement_status?: 'pending' | 'authorized' | 'settled';
5550
+ settlementStatus?: 'pending' | 'authorized' | 'settled';
5174
5551
  }
5175
5552
  export interface UnitConfigInput {
5176
5553
  /** The arithmetic operation to apply to the raw metered quantity. */
@@ -5183,7 +5560,7 @@ export interface UnitConfigInput {
5183
5560
  *
5184
5561
  * Must be a positive non-zero value.
5185
5562
  */
5186
- conversion_factor: string;
5563
+ conversionFactor: string;
5187
5564
  /**
5188
5565
  * The rounding mode applied to the converted quantity for invoicing.
5189
5566
  *
@@ -5204,17 +5581,17 @@ export interface UnitConfigInput {
5204
5581
  *
5205
5582
  * Optional. When omitted, no unit label is rendered.
5206
5583
  */
5207
- display_unit?: string;
5584
+ displayUnit?: string;
5208
5585
  }
5209
5586
  export interface WorkflowInvoicingSettingsInput {
5210
5587
  /** Whether to automatically issue the invoice after the draftPeriod has passed. */
5211
- auto_advance?: boolean;
5588
+ autoAdvance?: boolean;
5212
5589
  /** The period for the invoice to be kept in draft status for manual reviews. */
5213
- draft_period?: string;
5590
+ draftPeriod?: string;
5214
5591
  /** Should progressive billing be allowed for this workflow? */
5215
- progressive_billing?: boolean;
5592
+ progressiveBilling?: boolean;
5216
5593
  /** Controls how subscription-ending shortened service periods are billed. */
5217
- subscription_end_proration_mode?: 'bill_full_period' | 'bill_actual_period';
5594
+ subscriptionEndProrationMode?: 'bill_full_period' | 'bill_actual_period';
5218
5595
  }
5219
5596
  export interface GovernanceQueryRequestInput {
5220
5597
  /**
@@ -5223,7 +5600,7 @@ export interface GovernanceQueryRequestInput {
5223
5600
  *
5224
5601
  * Defaults to `false`.
5225
5602
  */
5226
- include_credits?: boolean;
5603
+ includeCredits?: boolean;
5227
5604
  customer: GovernanceQueryRequestCustomers;
5228
5605
  feature?: GovernanceQueryRequestFeatures;
5229
5606
  }
@@ -5233,11 +5610,11 @@ export interface IngestedEventInput {
5233
5610
  /** The customer if the event is associated with a customer. */
5234
5611
  customer?: CustomerReference;
5235
5612
  /** The date and time the event was ingested and its processing started. */
5236
- ingested_at: string;
5613
+ ingestedAt: string;
5237
5614
  /** The date and time the event was stored in the database. */
5238
- stored_at: string;
5615
+ storedAt: string;
5239
5616
  /** The validation errors of the ingested event. */
5240
- validation_errors?: IngestedEventValidationError[];
5617
+ validationErrors?: IngestedEventValidationError[];
5241
5618
  }
5242
5619
  export interface SubscriptionCancelInput {
5243
5620
  /** If not provided the subscription is canceled immediately. */
@@ -5245,21 +5622,21 @@ export interface SubscriptionCancelInput {
5245
5622
  }
5246
5623
  export interface InvoiceUsageQuantityDetailInput {
5247
5624
  /** The raw quantity as reported by the meter (native units). */
5248
- raw_quantity: string;
5625
+ rawQuantity: string;
5249
5626
  /**
5250
5627
  * The precise decimal value after applying the conversion operation and factor,
5251
5628
  * before rounding.
5252
5629
  */
5253
- converted_quantity: string;
5630
+ convertedQuantity: string;
5254
5631
  /** The quantity after rounding, used for pricing. */
5255
- invoiced_quantity: string;
5632
+ invoicedQuantity: string;
5256
5633
  /** The display unit label (e.g., "GB", "hours", "M tokens"). */
5257
- display_unit?: string;
5634
+ displayUnit?: string;
5258
5635
  /**
5259
5636
  * Snapshot of the UnitConfig that was in effect at billing time. Ensures
5260
5637
  * historical invoices reflect the config that was actually applied.
5261
5638
  */
5262
- applied_unit_config: UnitConfigInput;
5639
+ appliedUnitConfig: UnitConfigInput;
5263
5640
  }
5264
5641
  export interface InvoiceWorkflowInput {
5265
5642
  /** Invoicing settings for this invoice. */
@@ -5267,6 +5644,12 @@ export interface InvoiceWorkflowInput {
5267
5644
  /** Payment settings for this invoice. */
5268
5645
  payment?: WorkflowPaymentChargeAutomaticallySettings | WorkflowPaymentSendInvoiceSettingsInput;
5269
5646
  }
5647
+ export interface UpdateBillingInvoiceWorkflowInput {
5648
+ /** Invoicing settings for this invoice. */
5649
+ invoicing?: UpdateBillingInvoiceWorkflowInvoicingSettingsInput;
5650
+ /** Payment settings for this invoice. */
5651
+ payment?: UpdateBillingWorkflowPaymentChargeAutomaticallySettings | UpdateBillingWorkflowPaymentSendInvoiceSettingsInput;
5652
+ }
5270
5653
  export interface CreateCreditGrantRequestInput {
5271
5654
  /**
5272
5655
  * Display name of the resource.
@@ -5282,7 +5665,7 @@ export interface CreateCreditGrantRequestInput {
5282
5665
  description?: string;
5283
5666
  labels?: CreateLabels;
5284
5667
  /** Funding method of the grant. */
5285
- funding_method: 'none' | 'invoice' | 'external';
5668
+ fundingMethod: 'none' | 'invoice' | 'external';
5286
5669
  /** The currency of the granted credits. */
5287
5670
  currency: string;
5288
5671
  /** Granted credit amount. */
@@ -5297,7 +5680,7 @@ export interface CreateCreditGrantRequestInput {
5297
5680
  * credit grant tax code is applied, if that's not set the global default taxcode
5298
5681
  * is used.
5299
5682
  */
5300
- tax_config?: CreateCreditGrantTaxConfig;
5683
+ taxConfig?: CreateCreditGrantTaxConfig;
5301
5684
  filters?: CreateCreditGrantFilters;
5302
5685
  /** Draw-down priority of the grant. Lower values have higher priority. */
5303
5686
  priority?: number;
@@ -5306,13 +5689,13 @@ export interface CreateCreditGrantRequestInput {
5306
5689
  *
5307
5690
  * Defaults to the current date and time.
5308
5691
  */
5309
- effective_at?: string;
5692
+ effectiveAt?: string;
5310
5693
  /**
5311
5694
  * The duration after which the credit grant expires.
5312
5695
  *
5313
5696
  * Defaults to never expiring.
5314
5697
  */
5315
- expires_after?: string;
5698
+ expiresAfter?: string;
5316
5699
  /**
5317
5700
  * Idempotency key for the credit grant creation request.
5318
5701
  *
@@ -5337,13 +5720,13 @@ export interface CreditGrantInput {
5337
5720
  description?: string;
5338
5721
  labels?: Labels;
5339
5722
  /** An ISO-8601 timestamp representation of entity creation date. */
5340
- created_at: string;
5723
+ createdAt: string;
5341
5724
  /** An ISO-8601 timestamp representation of entity last update date. */
5342
- updated_at: string;
5725
+ updatedAt: string;
5343
5726
  /** An ISO-8601 timestamp representation of entity deletion date. */
5344
- deleted_at?: string;
5727
+ deletedAt?: string;
5345
5728
  /** Funding method of the grant. */
5346
- funding_method: 'none' | 'invoice' | 'external';
5729
+ fundingMethod: 'none' | 'invoice' | 'external';
5347
5730
  /** The currency of the granted credits. */
5348
5731
  currency: string;
5349
5732
  /** Granted credit amount. */
@@ -5358,7 +5741,7 @@ export interface CreditGrantInput {
5358
5741
  * credit grant tax code is applied, if that's not set the global default taxcode
5359
5742
  * is used.
5360
5743
  */
5361
- tax_config?: CreditGrantTaxConfig;
5744
+ taxConfig?: CreditGrantTaxConfig;
5362
5745
  /** Available when `funding_method` is `invoice`. */
5363
5746
  invoice?: CreditGrantInvoiceReference;
5364
5747
  filters?: CreditGrantFilters;
@@ -5369,7 +5752,7 @@ export interface CreditGrantInput {
5369
5752
  *
5370
5753
  * Defaults to the current date and time.
5371
5754
  */
5372
- effective_at?: string;
5755
+ effectiveAt?: string;
5373
5756
  /**
5374
5757
  * Idempotency key for the credit grant creation request.
5375
5758
  *
@@ -5382,9 +5765,9 @@ export interface CreditGrantInput {
5382
5765
  *
5383
5766
  * Calculated from the grant effective time and `expires_after` if provided.
5384
5767
  */
5385
- expires_at?: string;
5768
+ expiresAt?: string;
5386
5769
  /** Timestamp when the grant was voided. */
5387
- voided_at?: string;
5770
+ voidedAt?: string;
5388
5771
  /** Current lifecycle status of the grant. */
5389
5772
  status: 'pending' | 'active' | 'expired' | 'voided';
5390
5773
  }
@@ -5409,7 +5792,7 @@ export interface WorkflowTaxSettingsInput {
5409
5792
  * default tax code is used instead. Existing tax-code values may still be removed,
5410
5793
  * and `behavior` remains fully supported.
5411
5794
  */
5412
- default_tax_config?: TaxConfig;
5795
+ defaultTaxConfig?: TaxConfig;
5413
5796
  }
5414
5797
  export interface IngestedEventPaginatedResponseInput {
5415
5798
  data: IngestedEventInput[];
@@ -5430,9 +5813,9 @@ export interface MeterQueryRequestInput {
5430
5813
  * (http://www.iana.org/time-zones). The time zone is used to determine the start
5431
5814
  * and end of the time buckets. If not specified, the UTC timezone will be used.
5432
5815
  */
5433
- time_zone?: string;
5816
+ timeZone?: string;
5434
5817
  /** The dimensions to group the results by. */
5435
- group_by_dimensions?: string[];
5818
+ groupByDimensions?: string[];
5436
5819
  /** Filters to apply to the query. */
5437
5820
  filters?: MeterQueryFilters;
5438
5821
  }
@@ -5443,23 +5826,23 @@ export interface AppStripeCreateCheckoutSessionRequestOptionsInput {
5443
5826
  * Defaults to auto, which only collects the address when necessary for tax
5444
5827
  * calculation.
5445
5828
  */
5446
- billing_address_collection?: 'auto' | 'required';
5829
+ billingAddressCollection?: 'auto' | 'required';
5447
5830
  /**
5448
5831
  * URL to redirect customers who cancel the checkout session.
5449
5832
  *
5450
5833
  * Not allowed when ui_mode is "embedded".
5451
5834
  */
5452
- cancel_url?: string;
5835
+ cancelUrl?: string;
5453
5836
  /**
5454
5837
  * Unique reference string for reconciling sessions with internal systems.
5455
5838
  *
5456
5839
  * Can be a customer ID, cart ID, or any other identifier.
5457
5840
  */
5458
- client_reference_id?: string;
5841
+ clientReferenceId?: string;
5459
5842
  /** Controls which customer fields can be updated by the checkout session. */
5460
- customer_update?: AppStripeCreateCheckoutSessionCustomerUpdateInput;
5843
+ customerUpdate?: AppStripeCreateCheckoutSessionCustomerUpdateInput;
5461
5844
  /** Configuration for collecting customer consent during checkout. */
5462
- consent_collection?: AppStripeCreateCheckoutSessionConsentCollection;
5845
+ consentCollection?: AppStripeCreateCheckoutSessionConsentCollection;
5463
5846
  /**
5464
5847
  * Three-letter ISO 4217 currency code in uppercase.
5465
5848
  *
@@ -5467,13 +5850,13 @@ export interface AppStripeCreateCheckoutSessionRequestOptionsInput {
5467
5850
  */
5468
5851
  currency?: string;
5469
5852
  /** Custom text to display during checkout at various stages. */
5470
- custom_text?: AppStripeCheckoutSessionCustomTextParams;
5853
+ customText?: AppStripeCheckoutSessionCustomTextParams;
5471
5854
  /**
5472
5855
  * Unix timestamp when the checkout session expires.
5473
5856
  *
5474
5857
  * Can be 30 minutes to 24 hours from creation. Defaults to 24 hours.
5475
5858
  */
5476
- expires_at?: bigint;
5859
+ expiresAt?: bigint;
5477
5860
  /**
5478
5861
  * IETF language tag for the checkout UI locale.
5479
5862
  *
@@ -5492,42 +5875,42 @@ export interface AppStripeCreateCheckoutSessionRequestOptionsInput {
5492
5875
  * Required if ui_mode is "embedded" and redirect-based payment methods are
5493
5876
  * enabled.
5494
5877
  */
5495
- return_url?: string;
5878
+ returnUrl?: string;
5496
5879
  /**
5497
5880
  * Success URL to redirect customers after completing payment or setup.
5498
5881
  *
5499
5882
  * Not allowed when ui_mode is "embedded". See:
5500
5883
  * https://docs.stripe.com/payments/checkout/custom-success-page
5501
5884
  */
5502
- success_url?: string;
5885
+ successUrl?: string;
5503
5886
  /**
5504
5887
  * The UI mode for the checkout session.
5505
5888
  *
5506
5889
  * "hosted" displays a Stripe-hosted page. "embedded" integrates directly into your
5507
5890
  * app. Defaults to "hosted".
5508
5891
  */
5509
- ui_mode?: 'embedded' | 'hosted';
5892
+ uiMode?: 'embedded' | 'hosted';
5510
5893
  /**
5511
5894
  * List of payment method types to enable (e.g., "card", "us_bank_account").
5512
5895
  *
5513
5896
  * If not specified, Stripe enables all relevant payment methods.
5514
5897
  */
5515
- payment_method_types?: string[];
5898
+ paymentMethodTypes?: string[];
5516
5899
  /**
5517
5900
  * Redirect behavior for embedded checkout sessions.
5518
5901
  *
5519
5902
  * Controls when to redirect users after completion. See:
5520
5903
  * https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form
5521
5904
  */
5522
- redirect_on_completion?: 'always' | 'if_required' | 'never';
5905
+ redirectOnCompletion?: 'always' | 'if_required' | 'never';
5523
5906
  /** Configuration for collecting tax IDs during checkout. */
5524
- tax_id_collection?: AppStripeCreateCheckoutSessionTaxIdCollectionInput;
5907
+ taxIdCollection?: AppStripeCreateCheckoutSessionTaxIdCollectionInput;
5525
5908
  }
5526
5909
  export interface InvoiceWorkflowSettingsInput {
5527
5910
  /** The apps that will be used to orchestrate the invoice's workflow. */
5528
5911
  apps?: InvoiceWorkflowAppsReferences;
5529
5912
  /** The billing profile that was the source of this workflow snapshot. */
5530
- source_billing_profile: ProfileReference;
5913
+ sourceBillingProfile: ProfileReference;
5531
5914
  /**
5532
5915
  * The workflow configuration that was active when the invoice was created.
5533
5916
  *
@@ -5554,13 +5937,13 @@ export interface InvoiceDetailedLineInput {
5554
5937
  description?: string;
5555
5938
  labels?: Labels;
5556
5939
  /** An ISO-8601 timestamp representation of entity creation date. */
5557
- created_at: string;
5940
+ createdAt: string;
5558
5941
  /** An ISO-8601 timestamp representation of entity last update date. */
5559
- updated_at: string;
5942
+ updatedAt: string;
5560
5943
  /** An ISO-8601 timestamp representation of entity deletion date. */
5561
- deleted_at?: string;
5944
+ deletedAt?: string;
5562
5945
  /** The service period covered by this detailed line. */
5563
- service_period: ClosedPeriod;
5946
+ servicePeriod: ClosedPeriod;
5564
5947
  /** Aggregated financial totals for the detailed line. */
5565
5948
  totals: Totals;
5566
5949
  /** The cost category of this detailed line. */
@@ -5568,13 +5951,24 @@ export interface InvoiceDetailedLineInput {
5568
5951
  /** Discounts applied to this detailed line. */
5569
5952
  discounts?: InvoiceLineDiscounts;
5570
5953
  /** Credit applied to this detailed line. */
5571
- credits_applied?: InvoiceLineCreditsApplied[];
5954
+ creditsApplied?: InvoiceLineCreditsApplied[];
5572
5955
  /** External identifiers for this detailed line. */
5573
- external_references?: InvoiceLineExternalReferences;
5956
+ externalReferences?: InvoiceLineExternalReferences;
5574
5957
  /** The quantity of the detailed line. */
5575
5958
  quantity: string;
5576
5959
  /** The unit price of the detailed line. */
5577
- unit_price: string;
5960
+ unitPrice: string;
5961
+ }
5962
+ export interface UpdateInvoiceWorkflowSettingsInput {
5963
+ /**
5964
+ * The workflow configuration that was active when the invoice was created.
5965
+ *
5966
+ * Only the fields that are meaningful at the per-invoice level are included:
5967
+ * invoicing behaviour (auto-advance, draft period) and payment settings
5968
+ * (collection method, due date). Profile-wide settings such as collection
5969
+ * alignment, progressive billing, and tax policy are omitted.
5970
+ */
5971
+ workflow: UpdateBillingInvoiceWorkflowInput;
5578
5972
  }
5579
5973
  export interface CreditGrantPagePaginatedResponseInput {
5580
5974
  data: CreditGrantInput[];
@@ -5582,7 +5976,7 @@ export interface CreditGrantPagePaginatedResponseInput {
5582
5976
  }
5583
5977
  export interface BadRequestInput extends BaseErrorInput {
5584
5978
  /** The list of parameters that failed validation. */
5585
- invalid_parameters: (InvalidParameterStandard | InvalidParameterMinimumLength | InvalidParameterMaximumLength | InvalidParameterChoiceItem | InvalidParameterDependentItem)[];
5979
+ invalidParameters: (InvalidParameterStandard | InvalidParameterMinimumLength | InvalidParameterMaximumLength | InvalidParameterChoiceItem | InvalidParameterDependentItem)[];
5586
5980
  }
5587
5981
  export interface CustomerStripeCreateCheckoutSessionRequestInput {
5588
5982
  /**
@@ -5591,7 +5985,7 @@ export interface CustomerStripeCreateCheckoutSessionRequestInput {
5591
5985
  * These options are passed directly to Stripe's
5592
5986
  * [checkout session creation API](https://docs.stripe.com/api/checkout/sessions/create).
5593
5987
  */
5594
- stripe_options: AppStripeCreateCheckoutSessionRequestOptionsInput;
5988
+ stripeOptions: AppStripeCreateCheckoutSessionRequestOptionsInput;
5595
5989
  }
5596
5990
  export interface WorkflowCollectionSettingsInput {
5597
5991
  /** The alignment for collecting the pending line items into an invoice. */
@@ -5626,7 +6020,7 @@ export interface RateCardInput {
5626
6020
  * The billing cadence of the rate card. When null, the charge is one-time
5627
6021
  * (non-recurring). Only valid for flat prices.
5628
6022
  */
5629
- billing_cadence?: string;
6023
+ billingCadence?: string;
5630
6024
  /** The price of the rate card. */
5631
6025
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
5632
6026
  /**
@@ -5639,12 +6033,12 @@ export interface RateCardInput {
5639
6033
  * Accepted on create and update only when the UnitConfig feature is enabled on the
5640
6034
  * deployment; otherwise rejected.
5641
6035
  */
5642
- unit_config?: UnitConfigInput;
6036
+ unitConfig?: UnitConfigInput;
5643
6037
  /**
5644
6038
  * The payment term of the rate card. In advance payment term can only be used for
5645
6039
  * flat prices.
5646
6040
  */
5647
- payment_term?: 'in_advance' | 'in_arrears';
6041
+ paymentTerm?: 'in_advance' | 'in_arrears';
5648
6042
  /**
5649
6043
  * Spend commitments for this rate card. Only applicable to usage-based prices
5650
6044
  * (unit, graduated, volume).
@@ -5653,7 +6047,7 @@ export interface RateCardInput {
5653
6047
  /** The discounts of the rate card. */
5654
6048
  discounts?: RateCardDiscounts;
5655
6049
  /** The tax config of the rate card. */
5656
- tax_config?: RateCardTaxConfig;
6050
+ taxConfig?: RateCardTaxConfig;
5657
6051
  /**
5658
6052
  * The entitlement template granted to subscribers of a plan or addon containing
5659
6053
  * this rate card. Requires `feature` to be set.
@@ -5672,9 +6066,9 @@ export interface WorkflowInput {
5672
6066
  }
5673
6067
  export interface SubscriptionAddonRateCardInput {
5674
6068
  /** The rate card. */
5675
- rate_card: RateCardInput;
6069
+ rateCard: RateCardInput;
5676
6070
  /** The IDs of the subscription items that this rate card belongs to. */
5677
- affected_subscription_item_ids: string[];
6071
+ affectedSubscriptionItemIds: string[];
5678
6072
  }
5679
6073
  export interface PlanPhaseInput {
5680
6074
  /**
@@ -5697,7 +6091,7 @@ export interface PlanPhaseInput {
5697
6091
  */
5698
6092
  duration?: string;
5699
6093
  /** The rate cards of the plan. */
5700
- rate_cards: RateCardInput[];
6094
+ rateCards: RateCardInput[];
5701
6095
  }
5702
6096
  export interface AddonInput {
5703
6097
  id: string;
@@ -5715,11 +6109,11 @@ export interface AddonInput {
5715
6109
  description?: string;
5716
6110
  labels?: Labels;
5717
6111
  /** An ISO-8601 timestamp representation of entity creation date. */
5718
- created_at: string;
6112
+ createdAt: string;
5719
6113
  /** An ISO-8601 timestamp representation of entity last update date. */
5720
- updated_at: string;
6114
+ updatedAt: string;
5721
6115
  /** An ISO-8601 timestamp representation of entity deletion date. */
5722
- deleted_at?: string;
6116
+ deletedAt?: string;
5723
6117
  /**
5724
6118
  * A key is a semi-unique string that is used to identify the add-on. It is used to
5725
6119
  * reference the latest `active` version of the add-on and is unique with the
@@ -5729,19 +6123,19 @@ export interface AddonInput {
5729
6123
  /** Version of the add-on. Incremented when the add-on is updated. */
5730
6124
  version?: number;
5731
6125
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
5732
- instance_type: 'single' | 'multiple';
6126
+ instanceType: 'single' | 'multiple';
5733
6127
  /** The currency code of the add-on. */
5734
6128
  currency: string;
5735
6129
  /**
5736
6130
  * The date and time when the add-on becomes effective. When not specified, the
5737
6131
  * add-on is a draft.
5738
6132
  */
5739
- effective_from?: string;
6133
+ effectiveFrom?: string;
5740
6134
  /**
5741
6135
  * The date and time when the add-on is no longer effective. When not specified,
5742
6136
  * the add-on is effective indefinitely.
5743
6137
  */
5744
- effective_to?: string;
6138
+ effectiveTo?: string;
5745
6139
  /**
5746
6140
  * The status of the add-on. Computed based on the effective start and end dates:
5747
6141
  *
@@ -5752,9 +6146,9 @@ export interface AddonInput {
5752
6146
  */
5753
6147
  status: 'draft' | 'active' | 'archived';
5754
6148
  /** The rate cards of the add-on. */
5755
- rate_cards: RateCardInput[];
6149
+ rateCards: RateCardInput[];
5756
6150
  /** List of validation errors. */
5757
- validation_errors?: ProductCatalogValidationError[];
6151
+ validationErrors?: ProductCatalogValidationError[];
5758
6152
  }
5759
6153
  export interface CreateAddonRequestInput {
5760
6154
  /**
@@ -5777,11 +6171,11 @@ export interface CreateAddonRequestInput {
5777
6171
  */
5778
6172
  key: string;
5779
6173
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
5780
- instance_type: 'single' | 'multiple';
6174
+ instanceType: 'single' | 'multiple';
5781
6175
  /** The currency code of the add-on. */
5782
6176
  currency: string;
5783
6177
  /** The rate cards of the add-on. */
5784
- rate_cards: RateCardInput[];
6178
+ rateCards: RateCardInput[];
5785
6179
  }
5786
6180
  export interface UpsertAddonRequestInput {
5787
6181
  /**
@@ -5798,12 +6192,11 @@ export interface UpsertAddonRequestInput {
5798
6192
  description?: string;
5799
6193
  labels?: Labels;
5800
6194
  /** The InstanceType of the add-ons. Can be "single" or "multiple". */
5801
- instance_type: 'single' | 'multiple';
6195
+ instanceType: 'single' | 'multiple';
5802
6196
  /** The rate cards of the add-on. */
5803
- rate_cards: RateCardInput[];
6197
+ rateCards: RateCardInput[];
5804
6198
  }
5805
6199
  export interface InvoiceStandardLineInput {
5806
- id: string;
5807
6200
  /**
5808
6201
  * Display name of the resource.
5809
6202
  *
@@ -5818,18 +6211,26 @@ export interface InvoiceStandardLineInput {
5818
6211
  description?: string;
5819
6212
  labels?: Labels;
5820
6213
  /** An ISO-8601 timestamp representation of entity creation date. */
5821
- created_at: string;
6214
+ createdAt: string;
5822
6215
  /** An ISO-8601 timestamp representation of entity last update date. */
5823
- updated_at: string;
6216
+ updatedAt: string;
5824
6217
  /** An ISO-8601 timestamp representation of entity deletion date. */
5825
- deleted_at?: string;
6218
+ deletedAt?: string;
6219
+ /**
6220
+ * ID of the line.
6221
+ *
6222
+ * Optional on update: omit to create a new line, or supply the ID of an existing
6223
+ * line to edit it. Existing lines omitted from an update's `lines` array are
6224
+ * deleted.
6225
+ */
6226
+ id?: string;
5826
6227
  /** The type of charge this line item represents. */
5827
6228
  type: 'standard_line';
5828
6229
  /**
5829
6230
  * Indicates whether this line item's lifecycle is controlled by OpenMeter or
5830
6231
  * manually overridden by the API user.
5831
6232
  */
5832
- lifecycle_controller: 'system' | 'manual';
6233
+ lifecycleController: 'system' | 'manual';
5833
6234
  /**
5834
6235
  * The service period covered by this invoice, spanning the earliest line start to
5835
6236
  * the latest line end across all of its lines.
@@ -5837,25 +6238,25 @@ export interface InvoiceStandardLineInput {
5837
6238
  * For an invoice with no lines the period is empty, which means `from` will be
5838
6239
  * equal to `to`.
5839
6240
  */
5840
- service_period: ClosedPeriod;
6241
+ servicePeriod: ClosedPeriod;
5841
6242
  /** Aggregated financial totals for the line item. */
5842
6243
  totals: Totals;
5843
6244
  /** Discounts applied to this line item. */
5844
6245
  discounts?: InvoiceLineDiscounts;
5845
6246
  /** Credit applied to this line item. */
5846
- credits_applied?: InvoiceLineCreditsApplied[];
6247
+ creditsApplied?: InvoiceLineCreditsApplied[];
5847
6248
  /** External identifiers for this line item assigned by third-party systems. */
5848
- external_references?: InvoiceLineExternalReferences;
6249
+ externalReferences?: InvoiceLineExternalReferences;
5849
6250
  /** Reference to the subscription item that generated this line. */
5850
6251
  subscription?: SubscriptionReference;
5851
6252
  /** The rate card configuration snapshot used to price this line item. */
5852
- rate_card: InvoiceLineRateCard;
6253
+ rateCard: InvoiceLineRateCard;
5853
6254
  /**
5854
6255
  * Detailed sub-lines that this line has been broken down into.
5855
6256
  *
5856
6257
  * Present when line has individual details.
5857
6258
  */
5858
- detailed_lines: InvoiceDetailedLineInput[];
6259
+ detailedLines: InvoiceDetailedLineInput[];
5859
6260
  /** Reference to the charge associated with this line item. */
5860
6261
  charge?: ChargeReference;
5861
6262
  }
@@ -5875,11 +6276,11 @@ export interface ProfileInput {
5875
6276
  description?: string;
5876
6277
  labels?: Labels;
5877
6278
  /** An ISO-8601 timestamp representation of entity creation date. */
5878
- created_at: string;
6279
+ createdAt: string;
5879
6280
  /** An ISO-8601 timestamp representation of entity last update date. */
5880
- updated_at: string;
6281
+ updatedAt: string;
5881
6282
  /** An ISO-8601 timestamp representation of entity deletion date. */
5882
- deleted_at?: string;
6283
+ deletedAt?: string;
5883
6284
  /**
5884
6285
  * The name and contact information for the supplier this billing profile
5885
6286
  * represents
@@ -5946,11 +6347,11 @@ export interface SubscriptionAddonInput {
5946
6347
  id: string;
5947
6348
  labels?: Labels;
5948
6349
  /** An ISO-8601 timestamp representation of entity creation date. */
5949
- created_at: string;
6350
+ createdAt: string;
5950
6351
  /** An ISO-8601 timestamp representation of entity last update date. */
5951
- updated_at: string;
6352
+ updatedAt: string;
5952
6353
  /** An ISO-8601 timestamp representation of entity deletion date. */
5953
- deleted_at?: string;
6354
+ deletedAt?: string;
5954
6355
  /**
5955
6356
  * Display name of the resource.
5956
6357
  *
@@ -5971,15 +6372,15 @@ export interface SubscriptionAddonInput {
5971
6372
  * An ISO-8601 timestamp representation of which point in time the quantity was
5972
6373
  * resolved to.
5973
6374
  */
5974
- quantity_at: string;
6375
+ quantityAt: string;
5975
6376
  /** An ISO-8601 timestamp representation of the cadence start of the resource. */
5976
- active_from: string;
6377
+ activeFrom: string;
5977
6378
  /** An ISO-8601 timestamp representation of the cadence end of the resource. */
5978
- active_to?: string;
6379
+ activeTo?: string;
5979
6380
  /** The timeline of the add-on. The returned periods are sorted and continuous. */
5980
6381
  timeline: SubscriptionAddonTimelineSegment[];
5981
6382
  /** The rate cards of the add-on. */
5982
- rate_cards: SubscriptionAddonRateCardInput[];
6383
+ rateCards: SubscriptionAddonRateCardInput[];
5983
6384
  }
5984
6385
  export interface PlanInput {
5985
6386
  id: string;
@@ -5997,11 +6398,11 @@ export interface PlanInput {
5997
6398
  description?: string;
5998
6399
  labels?: Labels;
5999
6400
  /** An ISO-8601 timestamp representation of entity creation date. */
6000
- created_at: string;
6401
+ createdAt: string;
6001
6402
  /** An ISO-8601 timestamp representation of entity last update date. */
6002
- updated_at: string;
6403
+ updatedAt: string;
6003
6404
  /** An ISO-8601 timestamp representation of entity deletion date. */
6004
- deleted_at?: string;
6405
+ deletedAt?: string;
6005
6406
  /**
6006
6407
  * A key is a semi-unique string that is used to identify the plan. It is used to
6007
6408
  * reference the latest `active` version of the plan and is unique with the version
@@ -6016,19 +6417,19 @@ export interface PlanInput {
6016
6417
  /** The currency code of the plan. */
6017
6418
  currency: string;
6018
6419
  /** The billing cadence for subscriptions using this plan. */
6019
- billing_cadence: string;
6420
+ billingCadence: string;
6020
6421
  /** Whether pro-rating is enabled for this plan. */
6021
- pro_rating_enabled?: boolean;
6422
+ proRatingEnabled?: boolean;
6022
6423
  /**
6023
6424
  * The date and time when the plan becomes `active`. When not specified, the plan
6024
6425
  * is in `draft` status.
6025
6426
  */
6026
- effective_from?: string;
6427
+ effectiveFrom?: string;
6027
6428
  /**
6028
6429
  * A scheduled date and time when the plan becomes `archived`. When not specified,
6029
6430
  * the plan is in `active` status indefinitely.
6030
6431
  */
6031
- effective_to?: string;
6432
+ effectiveTo?: string;
6032
6433
  /**
6033
6434
  * The status of the plan. Computed based on the effective start and end dates:
6034
6435
  *
@@ -6053,12 +6454,12 @@ export interface PlanInput {
6053
6454
  * invoiced.
6054
6455
  * - `credit_only`: Usage is settled exclusively against credits.
6055
6456
  */
6056
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
6457
+ settlementMode?: 'credit_then_invoice' | 'credit_only';
6057
6458
  /**
6058
6459
  * List of validation errors in `draft` state that prevent the plan from being
6059
6460
  * published.
6060
6461
  */
6061
- validation_errors?: ProductCatalogValidationError[];
6462
+ validationErrors?: ProductCatalogValidationError[];
6062
6463
  }
6063
6464
  export interface CreatePlanRequestInput {
6064
6465
  /**
@@ -6083,9 +6484,9 @@ export interface CreatePlanRequestInput {
6083
6484
  /** The currency code of the plan. */
6084
6485
  currency: string;
6085
6486
  /** The billing cadence for subscriptions using this plan. */
6086
- billing_cadence: string;
6487
+ billingCadence: string;
6087
6488
  /** Whether pro-rating is enabled for this plan. */
6088
- pro_rating_enabled?: boolean;
6489
+ proRatingEnabled?: boolean;
6089
6490
  /**
6090
6491
  * The plan phases define the pricing ramp for a subscription. A phase switch
6091
6492
  * occurs only at the end of a billing period. At least one phase is required.
@@ -6107,7 +6508,7 @@ export interface UpsertPlanRequestInput {
6107
6508
  description?: string;
6108
6509
  labels?: Labels;
6109
6510
  /** Whether pro-rating is enabled for this plan. */
6110
- pro_rating_enabled?: boolean;
6511
+ proRatingEnabled?: boolean;
6111
6512
  /**
6112
6513
  * The plan phases define the pricing ramp for a subscription. A phase switch
6113
6514
  * occurs only at the end of a billing period. At least one phase is required.
@@ -6140,11 +6541,11 @@ export interface InvoiceStandardInput {
6140
6541
  description?: string;
6141
6542
  labels?: Labels;
6142
6543
  /** An ISO-8601 timestamp representation of entity creation date. */
6143
- created_at: string;
6544
+ createdAt: string;
6144
6545
  /** An ISO-8601 timestamp representation of entity last update date. */
6145
- updated_at: string;
6546
+ updatedAt: string;
6146
6547
  /** An ISO-8601 timestamp representation of entity deletion date. */
6147
- deleted_at?: string;
6548
+ deletedAt?: string;
6148
6549
  /** Human-readable invoice number generated by the invoicing app. */
6149
6550
  number: string;
6150
6551
  /** Three-letter ISO 4217 currency code for the invoice. */
@@ -6165,48 +6566,81 @@ export interface InvoiceStandardInput {
6165
6566
  * to `to`. In other cases those fields will be filled with the actual service
6166
6567
  * period.
6167
6568
  */
6168
- service_period: ClosedPeriod;
6569
+ servicePeriod: ClosedPeriod;
6169
6570
  /**
6170
6571
  * Validation issues found during invoice processing.
6171
6572
  *
6172
6573
  * Present only when there are one or more validation findings. An empty list is
6173
6574
  * omitted.
6174
6575
  */
6175
- validation_issues?: InvoiceValidationIssue[];
6576
+ validationIssues?: InvoiceValidationIssue[];
6176
6577
  /** External identifiers assigned to this invoice by third-party systems. */
6177
- external_references?: InvoiceExternalReferences;
6578
+ externalReferences?: InvoiceExternalReferences;
6178
6579
  /** Discriminator field identifying this as a standard invoice. */
6179
6580
  type: 'standard';
6180
6581
  /** Current lifecycle status of the invoice. */
6181
6582
  status: 'draft' | 'issuing' | 'issued' | 'payment_processing' | 'overdue' | 'paid' | 'uncollectible' | 'voided';
6182
6583
  /** Detailed status information including available actions and workflow state. */
6183
- status_details: InvoiceStatusDetails;
6584
+ statusDetails: InvoiceStatusDetails;
6184
6585
  /** Timestamp when the invoice was issued to the customer. */
6185
- issued_at?: string;
6586
+ issuedAt?: string;
6186
6587
  /**
6187
6588
  * Timestamp until which the invoice remains in draft state.
6188
6589
  *
6189
6590
  * The invoice advances automatically once this time is reached.
6190
6591
  */
6191
- draft_until?: string;
6592
+ draftUntil?: string;
6192
6593
  /** Timestamp when usage quantities were last snapshotted for this invoice. */
6193
- quantity_snapshotted_at?: string;
6594
+ quantitySnapshottedAt?: string;
6194
6595
  /** Timestamp when collection was initiated for this invoice. */
6195
- collection_at?: string;
6596
+ collectionAt?: string;
6196
6597
  /** Timestamp when payment is due. */
6197
- due_at?: string;
6598
+ dueAt?: string;
6198
6599
  /** Timestamp when the invoice was sent to the customer. */
6199
- sent_to_customer_at?: string;
6600
+ sentToCustomerAt?: string;
6200
6601
  /** Workflow configuration snapshot captured at invoice creation time. */
6201
6602
  workflow: InvoiceWorkflowSettingsInput;
6202
6603
  /**
6203
6604
  * Line items on this invoice.
6204
6605
  *
6205
6606
  * Always returned on single-resource GET; omitted on list endpoints unless
6206
- * explicitly expanded.
6607
+ * explicitly expanded. Editable via update: existing lines are matched by `id`,
6608
+ * lines without an `id` are created, and lines present on the invoice but omitted
6609
+ * from the update request are deleted. Detailed (child) lines are always computed
6610
+ * and cannot be edited directly.
6207
6611
  */
6208
6612
  lines?: InvoiceStandardLineInput[];
6209
6613
  }
6614
+ export interface UpdateInvoiceStandardRequestInput {
6615
+ /**
6616
+ * Optional description of the resource.
6617
+ *
6618
+ * Maximum 1024 characters.
6619
+ */
6620
+ description?: string;
6621
+ labels?: UpdateLabels;
6622
+ /**
6623
+ * Snapshot of the supplier's contact information at the time the invoice was
6624
+ * issued.
6625
+ */
6626
+ supplier: UpdateSupplier;
6627
+ /** Snapshot of the customer's information at the time the invoice was issued. */
6628
+ customer: UpdateInvoiceCustomer;
6629
+ /** Discriminator field identifying this as a standard invoice. */
6630
+ type: 'standard';
6631
+ /** Workflow configuration snapshot captured at invoice creation time. */
6632
+ workflow: UpdateInvoiceWorkflowSettingsInput;
6633
+ /**
6634
+ * Line items on this invoice.
6635
+ *
6636
+ * Always returned on single-resource GET; omitted on list endpoints unless
6637
+ * explicitly expanded. Editable via update: existing lines are matched by `id`,
6638
+ * lines without an `id` are created, and lines present on the invoice but omitted
6639
+ * from the update request are deleted. Detailed (child) lines are always computed
6640
+ * and cannot be edited directly.
6641
+ */
6642
+ lines?: UpdateInvoiceStandardLine[];
6643
+ }
6210
6644
  export interface InvoicePagePaginatedResponseInput {
6211
6645
  data: InvoiceStandardInput[];
6212
6646
  meta: PaginatedMeta;