@stripe/extensibility-sdk 0.23.0 → 0.24.1

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.
Files changed (28) hide show
  1. package/dist/extensibility-sdk-alpha.d.ts +34 -37
  2. package/dist/extensibility-sdk-beta.d.ts +34 -37
  3. package/dist/extensibility-sdk-extensions-alpha.d.ts +39 -37
  4. package/dist/extensibility-sdk-extensions-beta.d.ts +39 -37
  5. package/dist/extensibility-sdk-extensions-internal.d.ts +39 -37
  6. package/dist/extensibility-sdk-extensions-public.d.ts +39 -37
  7. package/dist/extensibility-sdk-internal.d.ts +34 -37
  8. package/dist/extensibility-sdk-public.d.ts +34 -37
  9. package/dist/extensions/billing/bill/discount_calculation.d.ts +4 -5
  10. package/dist/extensions/billing/bill/discount_calculation.d.ts.map +1 -1
  11. package/dist/extensions/billing/customer_balance_application.d.ts +6 -6
  12. package/dist/extensions/billing/customer_balance_application.d.ts.map +1 -1
  13. package/dist/extensions/billing/invoice_collection_setting.d.ts +4 -4
  14. package/dist/extensions/billing/invoice_collection_setting.d.ts.map +1 -1
  15. package/dist/extensions/billing/prorations.d.ts +4 -4
  16. package/dist/extensions/billing/prorations.d.ts.map +1 -1
  17. package/dist/extensions/billing/recurring_billing_item_handling.d.ts +6 -6
  18. package/dist/extensions/billing/recurring_billing_item_handling.d.ts.map +1 -1
  19. package/dist/extensions/core/workflows/custom_action.d.ts +5 -6
  20. package/dist/extensions/core/workflows/custom_action.d.ts.map +1 -1
  21. package/dist/extensions/extend/workflows/custom_action.d.ts +5 -6
  22. package/dist/extensions/extend/workflows/custom_action.d.ts.map +1 -1
  23. package/dist/extensions/index.cjs +0 -2
  24. package/dist/extensions/index.d.ts +6 -2
  25. package/dist/extensions/index.d.ts.map +1 -1
  26. package/dist/extensions/index.js +1 -2
  27. package/dist/tsconfig.build.tsbuildinfo +1 -1
  28. package/package.json +3 -3
@@ -313,22 +313,21 @@ declare namespace CustomAction {
313
313
  * Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
314
314
  * @public
315
315
  */
316
- type ExecuteFunction<Config extends Record<string, unknown>> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
316
+ type ExecuteFunction<Config> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
317
317
  /**
318
318
  * Returns the current form state for the action's configuration UI. Called at configuration time (not runtime) to power dynamic form behavior, including dropdown options, dynamic JSON schemas, field visibility, and validation.
319
319
  * @public
320
320
  */
321
- type GetFormStateFunction<Config extends Record<string, unknown>> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
321
+ type GetFormStateFunction<Config> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
322
322
  }
323
323
 
324
324
  /**
325
325
  * @example
326
326
  * ```ts
327
- * import type { Core } from '@stripe/extensibility-sdk/extensions';
328
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
327
+ * import type { Core, Context } from '@stripe/extensibility-sdk';
329
328
  *
330
329
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
331
- * interface MyCustomActionConfig extends Record<string, unknown> {}
330
+ * interface MyCustomActionConfig {}
332
331
  *
333
332
  * export default class MyCustomAction implements Core.Workflows
334
333
  * .CustomAction<MyCustomActionConfig> {
@@ -359,7 +358,7 @@ declare namespace CustomAction {
359
358
  * ```
360
359
  * @public
361
360
  */
362
- declare interface CustomAction<Config extends Record<string, unknown>> {
361
+ declare interface CustomAction<Config> {
363
362
  execute: CustomAction.ExecuteFunction<Config>;
364
363
  getFormState?: CustomAction.GetFormStateFunction<Config>;
365
364
  }
@@ -450,22 +449,21 @@ declare namespace CustomAction_2 {
450
449
  * Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
451
450
  * @public
452
451
  */
453
- type ExecuteFunction<Config extends Record<string, unknown>> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
452
+ type ExecuteFunction<Config> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
454
453
  /**
455
454
  * Returns the current form state for the action's configuration UI. Called at configuration time (not runtime) to power dynamic form behavior, including dropdown options, dynamic JSON schemas, field visibility, and validation.
456
455
  * @public
457
456
  */
458
- type GetFormStateFunction<Config extends Record<string, unknown>> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
457
+ type GetFormStateFunction<Config> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
459
458
  }
460
459
 
461
460
  /**
462
461
  * @example
463
462
  * ```ts
464
- * import type { Extend } from '@stripe/extensibility-sdk/extensions';
465
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
463
+ * import type { Extend, Context } from '@stripe/extensibility-sdk';
466
464
  *
467
465
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
468
- * interface MyCustomActionConfig extends Record<string, unknown> {}
466
+ * interface MyCustomActionConfig {}
469
467
  *
470
468
  * export default class MyCustomAction implements Extend.Workflows
471
469
  * .CustomAction<MyCustomActionConfig> {
@@ -496,7 +494,7 @@ declare namespace CustomAction_2 {
496
494
  * ```
497
495
  * @public
498
496
  */
499
- declare interface CustomAction_2<Config extends Record<string, unknown>> {
497
+ declare interface CustomAction_2<Config> {
500
498
  execute: CustomAction_2.ExecuteFunction<Config>;
501
499
  getFormState?: CustomAction_2.GetFormStateFunction<Config>;
502
500
  }
@@ -547,21 +545,21 @@ declare namespace CustomerBalanceApplication {
547
545
  * Determines how much of the customer's balance to apply toward a bill total. The script receives the invoice total and current customer balance, then returns how much of that balance to apply.
548
546
  * @public
549
547
  */
550
- type ComputeAppliedCustomerBalanceFunction<Config extends Record<string, unknown>> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
548
+ type ComputeAppliedCustomerBalanceFunction<Config> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
551
549
  }
552
550
 
553
551
  /**
554
552
  * @example
555
553
  * ```ts
556
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
554
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
557
555
  *
558
556
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
559
- * interface MyCustomerBalanceApplicationConfig extends Record<string, unknown> {}
557
+ * interface MyBalanceAppConfig {}
560
558
  *
561
- * export default class MyCustomerBalanceApplication implements Billing.CustomerBalanceApplication<MyCustomerBalanceApplicationConfig> {
559
+ * export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
562
560
  * computeAppliedCustomerBalance(
563
561
  * request: Billing.CustomerBalanceApplication.CustomerBalanceApplicationInput,
564
- * _config: MyCustomerBalanceApplicationConfig,
562
+ * _config: MyBalanceAppConfig,
565
563
  * _context: Context
566
564
  * ) {
567
565
  * // TODO: implement your customer balance logic here
@@ -575,7 +573,7 @@ declare namespace CustomerBalanceApplication {
575
573
  * ```
576
574
  * @public
577
575
  */
578
- declare interface CustomerBalanceApplication<Config extends Record<string, unknown>> {
576
+ declare interface CustomerBalanceApplication<Config> {
579
577
  computeAppliedCustomerBalance: CustomerBalanceApplication.ComputeAppliedCustomerBalanceFunction<Config>;
580
578
  }
581
579
 
@@ -1008,17 +1006,16 @@ declare namespace DiscountCalculation {
1008
1006
  * Computes discount amounts for a discountable item and returns a discount result.
1009
1007
  * @public
1010
1008
  */
1011
- type ComputeDiscountsFunction<Config extends Record<string, unknown>> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
1009
+ type ComputeDiscountsFunction<Config> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
1012
1010
  }
1013
1011
 
1014
1012
  /**
1015
1013
  * @example
1016
1014
  * ```ts
1017
- * import type { Billing } from '@stripe/extensibility-sdk/extensions';
1018
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
1015
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1019
1016
  *
1020
1017
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1021
- * interface MyDiscountCalculationConfig extends Record<string, unknown> {}
1018
+ * interface MyDiscountCalculationConfig {}
1022
1019
  *
1023
1020
  * export default class MyDiscountCalculation implements Billing.Bill
1024
1021
  * .DiscountCalculation<MyDiscountCalculationConfig> {
@@ -1038,7 +1035,7 @@ declare namespace DiscountCalculation {
1038
1035
  * ```
1039
1036
  * @public
1040
1037
  */
1041
- declare interface DiscountCalculation<Config extends Record<string, unknown>> {
1038
+ declare interface DiscountCalculation<Config> {
1042
1039
  computeDiscounts: DiscountCalculation.ComputeDiscountsFunction<Config>;
1043
1040
  }
1044
1041
 
@@ -1217,16 +1214,16 @@ declare namespace InvoiceCollectionSetting {
1217
1214
  * Overrides invoice collection settings before a draft invoice is created.
1218
1215
  * @public
1219
1216
  */
1220
- type CollectionOverrideFunction<Config extends Record<string, unknown>> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
1217
+ type CollectionOverrideFunction<Config> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
1221
1218
  }
1222
1219
 
1223
1220
  /**
1224
1221
  * @example
1225
1222
  * ```ts
1226
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1223
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1227
1224
  *
1228
1225
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1229
- * interface MyInvoiceCollectionSettingConfig extends Record<string, unknown> {}
1226
+ * interface MyInvoiceCollectionSettingConfig {}
1230
1227
  *
1231
1228
  * export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
1232
1229
  * collectionOverride(
@@ -1243,7 +1240,7 @@ declare namespace InvoiceCollectionSetting {
1243
1240
  * ```
1244
1241
  * @public
1245
1242
  */
1246
- declare interface InvoiceCollectionSetting<Config extends Record<string, unknown>> {
1243
+ declare interface InvoiceCollectionSetting<Config> {
1247
1244
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1248
1245
  }
1249
1246
 
@@ -1562,16 +1559,16 @@ declare namespace Prorations {
1562
1559
  * Calculates prorated amounts for subscription items when changes occur mid-billing period. The script receives the invoice items, then returns computed proration factors for each item.
1563
1560
  * @public
1564
1561
  */
1565
- type ProrateItemsFunction<Config extends Record<string, unknown>> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
1562
+ type ProrateItemsFunction<Config> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
1566
1563
  }
1567
1564
 
1568
1565
  /**
1569
1566
  * @example
1570
1567
  * ```ts
1571
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1568
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1572
1569
  *
1573
1570
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1574
- * interface MyProrationsConfig extends Record<string, unknown> {}
1571
+ * interface MyProrationsConfig {}
1575
1572
  *
1576
1573
  * export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
1577
1574
  * prorateItems(
@@ -1590,7 +1587,7 @@ declare namespace Prorations {
1590
1587
  * ```
1591
1588
  * @public
1592
1589
  */
1593
- declare interface Prorations<Config extends Record<string, unknown>> {
1590
+ declare interface Prorations<Config> {
1594
1591
  prorateItems: Prorations.ProrateItemsFunction<Config>;
1595
1592
  }
1596
1593
 
@@ -1875,26 +1872,26 @@ declare namespace RecurringBillingItemHandling {
1875
1872
  * Runs before invoice items are created. Decides whether each item should be created or skipped.
1876
1873
  * @public
1877
1874
  */
1878
- type BeforeItemCreationFunction<Config extends Record<string, unknown>> = (request: BeforeItemCreationInput, config: Config, context: Context) => BeforeItemCreationResult;
1875
+ type BeforeItemCreationFunction<Config> = (request: BeforeItemCreationInput, config: Config, context: Context) => BeforeItemCreationResult;
1879
1876
  /**
1880
1877
  * Runs before invoices are created. Decides which items to include on the invoice. Items not included are deferred as pending invoice items.
1881
1878
  * @public
1882
1879
  */
1883
- type FilterItemsFunction<Config extends Record<string, unknown>> = (request: FilterItemsInput, config: Config, context: Context) => FilterItemsResult;
1880
+ type FilterItemsFunction<Config> = (request: FilterItemsInput, config: Config, context: Context) => FilterItemsResult;
1884
1881
  /**
1885
1882
  * Runs before invoices are created. Decides how items are grouped across one or more invoices.
1886
1883
  * @public
1887
1884
  */
1888
- type GroupItemsFunction<Config extends Record<string, unknown>> = (request: GroupItemsInput, config: Config, context: Context) => GroupItemsResult;
1885
+ type GroupItemsFunction<Config> = (request: GroupItemsInput, config: Config, context: Context) => GroupItemsResult;
1889
1886
  }
1890
1887
 
1891
1888
  /**
1892
1889
  * @example
1893
1890
  * ```ts
1894
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1891
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1895
1892
  *
1896
1893
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1897
- * interface MyRecurringBillingItemHandlingConfig extends Record<string, unknown> {}
1894
+ * interface MyRecurringBillingItemHandlingConfig {}
1898
1895
  *
1899
1896
  * export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
1900
1897
  * beforeItemCreation(
@@ -1937,7 +1934,7 @@ declare namespace RecurringBillingItemHandling {
1937
1934
  * ```
1938
1935
  * @public
1939
1936
  */
1940
- declare interface RecurringBillingItemHandling<Config extends Record<string, unknown>> {
1937
+ declare interface RecurringBillingItemHandling<Config> {
1941
1938
  beforeItemCreation: RecurringBillingItemHandling.BeforeItemCreationFunction<Config>;
1942
1939
  filterItems: RecurringBillingItemHandling.FilterItemsFunction<Config>;
1943
1940
  groupItems: RecurringBillingItemHandling.GroupItemsFunction<Config>;
@@ -196,22 +196,21 @@ declare namespace CustomAction {
196
196
  * Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
197
197
  * @public
198
198
  */
199
- type ExecuteFunction<Config extends Record<string, unknown>> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
199
+ type ExecuteFunction<Config> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
200
200
  /**
201
201
  * Returns the current form state for the action's configuration UI. Called at configuration time (not runtime) to power dynamic form behavior, including dropdown options, dynamic JSON schemas, field visibility, and validation.
202
202
  * @public
203
203
  */
204
- type GetFormStateFunction<Config extends Record<string, unknown>> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
204
+ type GetFormStateFunction<Config> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
205
205
  }
206
206
 
207
207
  /**
208
208
  * @example
209
209
  * ```ts
210
- * import type { Core } from '@stripe/extensibility-sdk/extensions';
211
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
210
+ * import type { Core, Context } from '@stripe/extensibility-sdk';
212
211
  *
213
212
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
214
- * interface MyCustomActionConfig extends Record<string, unknown> {}
213
+ * interface MyCustomActionConfig {}
215
214
  *
216
215
  * export default class MyCustomAction implements Core.Workflows
217
216
  * .CustomAction<MyCustomActionConfig> {
@@ -242,7 +241,7 @@ declare namespace CustomAction {
242
241
  * ```
243
242
  * @public
244
243
  */
245
- declare interface CustomAction<Config extends Record<string, unknown>> {
244
+ declare interface CustomAction<Config> {
246
245
  execute: CustomAction.ExecuteFunction<Config>;
247
246
  getFormState?: CustomAction.GetFormStateFunction<Config>;
248
247
  }
@@ -331,22 +330,21 @@ declare namespace CustomAction_2 {
331
330
  * Executes the custom action at workflow runtime. Called when a workflow triggers this action, with the configured input values.
332
331
  * @public
333
332
  */
334
- type ExecuteFunction<Config extends Record<string, unknown>> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
333
+ type ExecuteFunction<Config> = (request: ExecuteCustomActionRequest, config: Config, context: Context) => ExecuteCustomActionResponse | PromiseLike<ExecuteCustomActionResponse>;
335
334
  /**
336
335
  * Returns the current form state for the action's configuration UI. Called at configuration time (not runtime) to power dynamic form behavior, including dropdown options, dynamic JSON schemas, field visibility, and validation.
337
336
  * @public
338
337
  */
339
- type GetFormStateFunction<Config extends Record<string, unknown>> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
338
+ type GetFormStateFunction<Config> = (request: GetFormStateRequest, config: Config, context: Context) => GetFormStateResponse | PromiseLike<GetFormStateResponse>;
340
339
  }
341
340
 
342
341
  /**
343
342
  * @example
344
343
  * ```ts
345
- * import type { Extend } from '@stripe/extensibility-sdk/extensions';
346
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
344
+ * import type { Extend, Context } from '@stripe/extensibility-sdk';
347
345
  *
348
346
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
349
- * interface MyCustomActionConfig extends Record<string, unknown> {}
347
+ * interface MyCustomActionConfig {}
350
348
  *
351
349
  * export default class MyCustomAction implements Extend.Workflows
352
350
  * .CustomAction<MyCustomActionConfig> {
@@ -377,7 +375,7 @@ declare namespace CustomAction_2 {
377
375
  * ```
378
376
  * @public
379
377
  */
380
- declare interface CustomAction_2<Config extends Record<string, unknown>> {
378
+ declare interface CustomAction_2<Config> {
381
379
  execute: CustomAction_2.ExecuteFunction<Config>;
382
380
  getFormState?: CustomAction_2.GetFormStateFunction<Config>;
383
381
  }
@@ -427,21 +425,21 @@ declare namespace CustomerBalanceApplication {
427
425
  * Determines how much of the customer's balance to apply toward a bill total. The script receives the invoice total and current customer balance, then returns how much of that balance to apply.
428
426
  * @public
429
427
  */
430
- type ComputeAppliedCustomerBalanceFunction<Config extends Record<string, unknown>> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
428
+ type ComputeAppliedCustomerBalanceFunction<Config> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
431
429
  }
432
430
 
433
431
  /**
434
432
  * @example
435
433
  * ```ts
436
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
434
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
437
435
  *
438
436
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
439
- * interface MyCustomerBalanceApplicationConfig extends Record<string, unknown> {}
437
+ * interface MyBalanceAppConfig {}
440
438
  *
441
- * export default class MyCustomerBalanceApplication implements Billing.CustomerBalanceApplication<MyCustomerBalanceApplicationConfig> {
439
+ * export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
442
440
  * computeAppliedCustomerBalance(
443
441
  * request: Billing.CustomerBalanceApplication.CustomerBalanceApplicationInput,
444
- * _config: MyCustomerBalanceApplicationConfig,
442
+ * _config: MyBalanceAppConfig,
445
443
  * _context: Context
446
444
  * ) {
447
445
  * // TODO: implement your customer balance logic here
@@ -455,7 +453,7 @@ declare namespace CustomerBalanceApplication {
455
453
  * ```
456
454
  * @public
457
455
  */
458
- declare interface CustomerBalanceApplication<Config extends Record<string, unknown>> {
456
+ declare interface CustomerBalanceApplication<Config> {
459
457
  computeAppliedCustomerBalance: CustomerBalanceApplication.ComputeAppliedCustomerBalanceFunction<Config>;
460
458
  }
461
459
 
@@ -878,17 +876,16 @@ declare namespace DiscountCalculation {
878
876
  * Computes discount amounts for a discountable item and returns a discount result.
879
877
  * @public
880
878
  */
881
- type ComputeDiscountsFunction<Config extends Record<string, unknown>> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
879
+ type ComputeDiscountsFunction<Config> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
882
880
  }
883
881
 
884
882
  /**
885
883
  * @example
886
884
  * ```ts
887
- * import type { Billing } from '@stripe/extensibility-sdk/extensions';
888
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
885
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
889
886
  *
890
887
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
891
- * interface MyDiscountCalculationConfig extends Record<string, unknown> {}
888
+ * interface MyDiscountCalculationConfig {}
892
889
  *
893
890
  * export default class MyDiscountCalculation implements Billing.Bill
894
891
  * .DiscountCalculation<MyDiscountCalculationConfig> {
@@ -908,7 +905,7 @@ declare namespace DiscountCalculation {
908
905
  * ```
909
906
  * @public
910
907
  */
911
- declare interface DiscountCalculation<Config extends Record<string, unknown>> {
908
+ declare interface DiscountCalculation<Config> {
912
909
  computeDiscounts: DiscountCalculation.ComputeDiscountsFunction<Config>;
913
910
  }
914
911
 
@@ -1044,16 +1041,16 @@ declare namespace InvoiceCollectionSetting {
1044
1041
  * Overrides invoice collection settings before a draft invoice is created.
1045
1042
  * @public
1046
1043
  */
1047
- type CollectionOverrideFunction<Config extends Record<string, unknown>> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
1044
+ type CollectionOverrideFunction<Config> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
1048
1045
  }
1049
1046
 
1050
1047
  /**
1051
1048
  * @example
1052
1049
  * ```ts
1053
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1050
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1054
1051
  *
1055
1052
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1056
- * interface MyInvoiceCollectionSettingConfig extends Record<string, unknown> {}
1053
+ * interface MyInvoiceCollectionSettingConfig {}
1057
1054
  *
1058
1055
  * export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
1059
1056
  * collectionOverride(
@@ -1070,7 +1067,7 @@ declare namespace InvoiceCollectionSetting {
1070
1067
  * ```
1071
1068
  * @public
1072
1069
  */
1073
- declare interface InvoiceCollectionSetting<Config extends Record<string, unknown>> {
1070
+ declare interface InvoiceCollectionSetting<Config> {
1074
1071
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
1075
1072
  }
1076
1073
 
@@ -1341,16 +1338,16 @@ declare namespace Prorations {
1341
1338
  * Calculates prorated amounts for subscription items when changes occur mid-billing period. The script receives the invoice items, then returns computed proration factors for each item.
1342
1339
  * @public
1343
1340
  */
1344
- type ProrateItemsFunction<Config extends Record<string, unknown>> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
1341
+ type ProrateItemsFunction<Config> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
1345
1342
  }
1346
1343
 
1347
1344
  /**
1348
1345
  * @example
1349
1346
  * ```ts
1350
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1347
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1351
1348
  *
1352
1349
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1353
- * interface MyProrationsConfig extends Record<string, unknown> {}
1350
+ * interface MyProrationsConfig {}
1354
1351
  *
1355
1352
  * export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
1356
1353
  * prorateItems(
@@ -1369,7 +1366,7 @@ declare namespace Prorations {
1369
1366
  * ```
1370
1367
  * @public
1371
1368
  */
1372
- declare interface Prorations<Config extends Record<string, unknown>> {
1369
+ declare interface Prorations<Config> {
1373
1370
  prorateItems: Prorations.ProrateItemsFunction<Config>;
1374
1371
  }
1375
1372
 
@@ -1614,26 +1611,26 @@ declare namespace RecurringBillingItemHandling {
1614
1611
  * Runs before invoice items are created. Decides whether each item should be created or skipped.
1615
1612
  * @public
1616
1613
  */
1617
- type BeforeItemCreationFunction<Config extends Record<string, unknown>> = (request: BeforeItemCreationInput, config: Config, context: Context) => BeforeItemCreationResult;
1614
+ type BeforeItemCreationFunction<Config> = (request: BeforeItemCreationInput, config: Config, context: Context) => BeforeItemCreationResult;
1618
1615
  /**
1619
1616
  * Runs before invoices are created. Decides which items to include on the invoice. Items not included are deferred as pending invoice items.
1620
1617
  * @public
1621
1618
  */
1622
- type FilterItemsFunction<Config extends Record<string, unknown>> = (request: FilterItemsInput, config: Config, context: Context) => FilterItemsResult;
1619
+ type FilterItemsFunction<Config> = (request: FilterItemsInput, config: Config, context: Context) => FilterItemsResult;
1623
1620
  /**
1624
1621
  * Runs before invoices are created. Decides how items are grouped across one or more invoices.
1625
1622
  * @public
1626
1623
  */
1627
- type GroupItemsFunction<Config extends Record<string, unknown>> = (request: GroupItemsInput, config: Config, context: Context) => GroupItemsResult;
1624
+ type GroupItemsFunction<Config> = (request: GroupItemsInput, config: Config, context: Context) => GroupItemsResult;
1628
1625
  }
1629
1626
 
1630
1627
  /**
1631
1628
  * @example
1632
1629
  * ```ts
1633
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
1630
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
1634
1631
  *
1635
1632
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1636
- * interface MyRecurringBillingItemHandlingConfig extends Record<string, unknown> {}
1633
+ * interface MyRecurringBillingItemHandlingConfig {}
1637
1634
  *
1638
1635
  * export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
1639
1636
  * beforeItemCreation(
@@ -1676,7 +1673,7 @@ declare namespace RecurringBillingItemHandling {
1676
1673
  * ```
1677
1674
  * @public
1678
1675
  */
1679
- declare interface RecurringBillingItemHandling<Config extends Record<string, unknown>> {
1676
+ declare interface RecurringBillingItemHandling<Config> {
1680
1677
  beforeItemCreation: RecurringBillingItemHandling.BeforeItemCreationFunction<Config>;
1681
1678
  filterItems: RecurringBillingItemHandling.FilterItemsFunction<Config>;
1682
1679
  groupItems: RecurringBillingItemHandling.GroupItemsFunction<Config>;
@@ -189,16 +189,15 @@ export declare namespace DiscountCalculation {
189
189
  * Computes discount amounts for a discountable item and returns a discount result.
190
190
  * @public
191
191
  */
192
- type ComputeDiscountsFunction<Config extends Record<string, unknown>> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
192
+ type ComputeDiscountsFunction<Config> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
193
193
  }
194
194
  /**
195
195
  * @example
196
196
  * ```ts
197
- * import type { Billing } from '@stripe/extensibility-sdk/extensions';
198
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
197
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
199
198
  *
200
199
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
201
- * interface MyDiscountCalculationConfig extends Record<string, unknown> {}
200
+ * interface MyDiscountCalculationConfig {}
202
201
  *
203
202
  * export default class MyDiscountCalculation implements Billing.Bill
204
203
  * .DiscountCalculation<MyDiscountCalculationConfig> {
@@ -218,7 +217,7 @@ export declare namespace DiscountCalculation {
218
217
  * ```
219
218
  * @public
220
219
  */
221
- export interface DiscountCalculation<Config extends Record<string, unknown>> {
220
+ export interface DiscountCalculation<Config> {
222
221
  computeDiscounts: DiscountCalculation.ComputeDiscountsFunction<Config>;
223
222
  }
224
223
  //# sourceMappingURL=discount_calculation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"discount_calculation.d.ts","sourceRoot":"","sources":["../../../../src/extensions/billing/bill/discount_calculation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,EACV,OAAO,EACP,yBAAyB,EAI1B,MAAM,0BAA0B,CAAC;AAwBlC,cAAc;AACd,yBAAiB,mBAAmB,CAAC;IACnC,cAAc;IACd,KAAY,aAAa,GACrB,wCAAwC,GACxC,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,q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C;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,mBAAmB,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzE,gBAAgB,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;CACxE"}
1
+ {"version":3,"file":"discount_calculation.d.ts","sourceRoot":"","sources":["../../../../src/extensions/billing/bill/discount_calculation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,EACV,OAAO,EACP,yBAAyB,EAI1B,MAAM,0BAA0B,CAAC;AAwBlC,cAAc;AACd,yBAAiB,mBAAmB,CAAC;IACnC,cAAc;IACd,KAAY,aAAa,GACrB,wCAAwC,GACxC,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,wBAAwB,GACxB,0BAA0B,GAC1B,qBAAqB,GACrB,UAAU,GACV,cAAc,CAAC;IAEnB,cAAc;IACd,KAAY,eAAe,GAAG,WAAW,GAAG,QAAQ,CAAC;IAErD,cAAc;IACd,KAAY,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;IAEjD,cAAc;IACd,KAAY,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC;IAElD,cAAc;IACd,KAAY,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAE/C,cAAc;IACd,KAAY,sBAAsB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAEvE;;;OAGG;IACH,UAAiB,cAAc;QAC7B,sCAAsC;QACtC,QAAQ,EAAE,QAAQ,CAAC;KACpB;IAED;;;OAGG;IACH,UAAiB,QAAQ;QACvB,kEAAkE;QAClE,MAAM,EAAE,cAAc,CAAC;KACxB;IAED;;;OAGG;IAC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AC,MAAM,EAAE,cAAc,GAAG,cAAc,CAQpF;IAED,gBAAgB;IAChB,SAAgB,6BAA6B,CAC3C,iBAAiB,CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EAC7D,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CA0BX;IAID;;;OAGG;IACI,MAAM,WAAW,oCAAoB,CAAC;IAG7C;;;OAGG;IACI,MAAM,aAAa,sCAAsB,CAAC;IAEjD;;;OAGG;IACH,KAAY,wBAAwB,CAAC,MAAM,IAAI,CAC7C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,cAAc,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,gBAAgB,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;CACxE"}
@@ -47,20 +47,20 @@ export declare namespace CustomerBalanceApplication {
47
47
  * Determines how much of the customer's balance to apply toward a bill total. The script receives the invoice total and current customer balance, then returns how much of that balance to apply.
48
48
  * @public
49
49
  */
50
- type ComputeAppliedCustomerBalanceFunction<Config extends Record<string, unknown>> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
50
+ type ComputeAppliedCustomerBalanceFunction<Config> = (request: CustomerBalanceApplicationInput, config: Config, context: Context) => CustomerBalanceApplicationResult;
51
51
  }
52
52
  /**
53
53
  * @example
54
54
  * ```ts
55
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
55
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
56
56
  *
57
57
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
58
- * interface MyCustomerBalanceApplicationConfig extends Record<string, unknown> {}
58
+ * interface MyBalanceAppConfig {}
59
59
  *
60
- * export default class MyCustomerBalanceApplication implements Billing.CustomerBalanceApplication<MyCustomerBalanceApplicationConfig> {
60
+ * export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
61
61
  * computeAppliedCustomerBalance(
62
62
  * request: Billing.CustomerBalanceApplication.CustomerBalanceApplicationInput,
63
- * _config: MyCustomerBalanceApplicationConfig,
63
+ * _config: MyBalanceAppConfig,
64
64
  * _context: Context
65
65
  * ) {
66
66
  * // TODO: implement your customer balance logic here
@@ -74,7 +74,7 @@ export declare namespace CustomerBalanceApplication {
74
74
  * ```
75
75
  * @public
76
76
  */
77
- export interface CustomerBalanceApplication<Config extends Record<string, unknown>> {
77
+ export interface CustomerBalanceApplication<Config> {
78
78
  computeAppliedCustomerBalance: CustomerBalanceApplication.ComputeAppliedCustomerBalanceFunction<Config>;
79
79
  }
80
80
  //# sourceMappingURL=customer_balance_application.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer_balance_application.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/customer_balance_application.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,uBAAuB,CAAC;AAwB/B,cAAc;AACd,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,gCAAgC;QAC/C,iNAAiN;QACjN,sBAAsB,EAAE,cAAc,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,+BAA+B;QAC9C,4EAA4E;QAC5E,WAAW,EAAE,cAAc,CAAC;QAC5B,oJAAoJ;QACpJ,eAAe,EAAE,cAAc,CAAC;KACjC;IA2PD;;;OAGG;IACH,SAAgB,wCAAwC,CACtD,KAAK,EAAE,OAAO,GACb,+BAA+B,CAWjC;IAED;;;OAGG;IACH,SAAgB,0CAA0C,CACxD,MAAM,EAAE,gCAAgC,GACvC,gCAAgC,CAQlC;IAED,gBAAgB;IAChB,SAAgB,0CAA0C,CACxD,iBAAiB,CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,6BAA6B,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EAC1E,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CAkCX;IAID;;;OAGG;IACI,MAAM,WAAW,iDAAoB,CAAC;IAG7C;;;OAGG;IACI,MAAM,aAAa,mDAAsB,CAAC;IAEjD;;;OAGG;IACH,KAAY,qCAAqC,CAC/C,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACpC,CACF,OAAO,EAAE,+BAA+B,EACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,gCAAgC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,0BAA0B,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAChF,6BAA6B,EAAE,0BAA0B,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;CACzG"}
1
+ {"version":3,"file":"customer_balance_application.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/customer_balance_application.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,uBAAuB,CAAC;AAwB/B,cAAc;AACd,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,gCAAgC;QAC/C,iNAAiN;QACjN,sBAAsB,EAAE,cAAc,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,+BAA+B;QAC9C,4EAA4E;QAC5E,WAAW,EAAE,cAAc,CAAC;QAC5B,oJAAoJ;QACpJ,eAAe,EAAE,cAAc,CAAC;KACjC;IA2PD;;;OAGG;IACH,SAAgB,wCAAwC,CACtD,KAAK,EAAE,OAAO,GACb,+BAA+B,CAWjC;IAED;;;OAGG;IACH,SAAgB,0CAA0C,CACxD,MAAM,EAAE,gCAAgC,GACvC,gCAAgC,CAQlC;IAED,gBAAgB;IAChB,SAAgB,0CAA0C,CACxD,iBAAiB,CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,6BAA6B,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EAC1E,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CAkCX;IAID;;;OAGG;IACI,MAAM,WAAW,iDAAoB,CAAC;IAG7C;;;OAGG;IACI,MAAM,aAAa,mDAAsB,CAAC;IAEjD;;;OAGG;IACH,KAAY,qCAAqC,CAAC,MAAM,IAAI,CAC1D,OAAO,EAAE,+BAA+B,EACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,gCAAgC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,0BAA0B,CAAC,MAAM;IAChD,6BAA6B,EAAE,0BAA0B,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;CACzG"}
@@ -82,15 +82,15 @@ export declare namespace InvoiceCollectionSetting {
82
82
  * Overrides invoice collection settings before a draft invoice is created.
83
83
  * @public
84
84
  */
85
- type CollectionOverrideFunction<Config extends Record<string, unknown>> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
85
+ type CollectionOverrideFunction<Config> = (request: InvoiceCollectionRequest, config: Config, context: Context) => InvoiceCollectionResponse;
86
86
  }
87
87
  /**
88
88
  * @example
89
89
  * ```ts
90
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
90
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
91
91
  *
92
92
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
93
- * interface MyInvoiceCollectionSettingConfig extends Record<string, unknown> {}
93
+ * interface MyInvoiceCollectionSettingConfig {}
94
94
  *
95
95
  * export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
96
96
  * collectionOverride(
@@ -107,7 +107,7 @@ export declare namespace InvoiceCollectionSetting {
107
107
  * ```
108
108
  * @public
109
109
  */
110
- export interface InvoiceCollectionSetting<Config extends Record<string, unknown>> {
110
+ export interface InvoiceCollectionSetting<Config> {
111
111
  collectionOverride: InvoiceCollectionSetting.CollectionOverrideFunction<Config>;
112
112
  }
113
113
  //# sourceMappingURL=invoice_collection_setting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice_collection_setting.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/invoice_collection_setting.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,uBAAuB,CAAC;AAwB/B,cAAc;AACd,yBAAiB,wBAAwB,CAAC;IACxC,cAAc;IACd,KAAY,UAAU,GAClB,cAAc,GACd,UAAU,GACV,OAAO,GACP,iBAAiB,GACjB,uBAAuB,GACvB,YAAY,CAAC;IAEjB,cAAc;IACd,KAAY,iBAAiB,GACzB,MAAM,GACN,WAAW,GACX,qBAAqB,GACrB,YAAY,GACZ,sBAAsB,GACtB,YAAY,GACZ,eAAe,GACf,iB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AAE,CAAC;KACrC;IAuHD;;;OAGG;IACH,SAAgB,6BAA6B,CAC3C,KAAK,EAAE,OAAO,GACb,wBAAwB,CAW1B;IAED;;;OAGG;IACH,SAAgB,+BAA+B,CAC7C,MAAM,EAAE,yBAAyB,GAChC,yBAAyB,CAQ3B;IAED,gBAAgB;IAChB,SAAgB,+BAA+B,CAC7C,iBAAiB,CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EAC/D,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CA0BX;IAID;;;OAGG;IACI,MAAM,WAAW,sCAAoB,CAAC;IAG7C;;;OAGG;IACI,MAAM,aAAa,wCAAsB,CAAC;IAEjD;;;OAGG;IACH,KAAY,0BAA0B,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAC/E,OAAO,EAAE,wBAAwB,EACjC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,yBAAyB,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,wBAAwB,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9E,kBAAkB,EAAE,wBAAwB,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;CACjF"}
1
+ {"version":3,"file":"invoice_collection_setting.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/invoice_collection_setting.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAEV,yBAAyB,EAI1B,MAAM,uBAAuB,CAAC;AAwB/B,cAAc;AACd,yBAAiB,wBAAwB,C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M,CAAC,CAAC;KAClC;IAED;;;OAGG;IACH,UAAiB,kBAAkB;QACjC,wEAAwE;QACxE,WAAW,EAAE,OAAO,CAAC;QACrB,2EAA2E;QAC3E,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,2DAA2D;QAC3D,uBAAuB,EAAE,MAAM,CAAC;QAChC,uDAAuD;QACvD,cAAc,EAAE,iBAAiB,EAAE,CAAC;KACrC;IAuHD;;;OAGG;IACH,SAAgB,6BAA6B,CAC3C,KAAK,EAAE,OAAO,GACb,wBAAwB,CAW1B;IAED;;;OAGG;IACH,SAAgB,+BAA+B,CAC7C,MAAM,EAAE,yBAAyB,GAChC,yBAAyB,CAQ3B;IAED,gBAAgB;IAChB,SAAgB,+BAA+B,CAC7C,iBAAiB,CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EAC/D,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CA0BX;IAID;;;OAGG;IACI,MAAM,WAAW,sCAAoB,CAAC;IAG7C;;;OAGG;IACI,MAAM,aAAa,wCAAsB,CAAC;IAEjD;;;OAGG;IACH,KAAY,0BAA0B,CAAC,MAAM,IAAI,CAC/C,OAAO,EAAE,wBAAwB,EACjC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,yBAAyB,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,wBAAwB,CAAC,MAAM;IAC9C,kBAAkB,EAAE,wBAAwB,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;CACjF"}
@@ -180,15 +180,15 @@ export declare namespace Prorations {
180
180
  * Calculates prorated amounts for subscription items when changes occur mid-billing period. The script receives the invoice items, then returns computed proration factors for each item.
181
181
  * @public
182
182
  */
183
- type ProrateItemsFunction<Config extends Record<string, unknown>> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
183
+ type ProrateItemsFunction<Config> = (request: ProrateItemsInput, config: Config, context: Context) => ProrateItemsResult;
184
184
  }
185
185
  /**
186
186
  * @example
187
187
  * ```ts
188
- * import type { Billing, Context } from '@stripe/extensibility-sdk/extensions';
188
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
189
189
  *
190
190
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
191
- * interface MyProrationsConfig extends Record<string, unknown> {}
191
+ * interface MyProrationsConfig {}
192
192
  *
193
193
  * export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
194
194
  * prorateItems(
@@ -207,7 +207,7 @@ export declare namespace Prorations {
207
207
  * ```
208
208
  * @public
209
209
  */
210
- export interface Prorations<Config extends Record<string, unknown>> {
210
+ export interface Prorations<Config> {
211
211
  prorateItems: Prorations.ProrateItemsFunction<Config>;
212
212
  }
213
213
  //# sourceMappingURL=prorations.d.ts.map