@stripe/extensibility-sdk 0.26.0 → 1.0.0

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 (38) hide show
  1. package/README.md +29 -4
  2. package/dist/extensibility-sdk-alpha.d.ts +83 -58
  3. package/dist/extensibility-sdk-beta.d.ts +83 -58
  4. package/dist/extensibility-sdk-extensions-alpha.d.ts +82 -54
  5. package/dist/extensibility-sdk-extensions-beta.d.ts +82 -54
  6. package/dist/extensibility-sdk-extensions-internal.d.ts +82 -54
  7. package/dist/extensibility-sdk-extensions-public.d.ts +82 -54
  8. package/dist/extensibility-sdk-internal.d.ts +83 -58
  9. package/dist/extensibility-sdk-public.d.ts +83 -58
  10. package/dist/extensions/billing/index.d.ts +1 -1
  11. package/dist/extensions/billing/invoice_collection_options.d.ts +111 -0
  12. package/dist/extensions/billing/invoice_collection_options.d.ts.map +1 -0
  13. package/dist/extensions/billing/recurring_billing_item_handling.d.ts +43 -0
  14. package/dist/extensions/billing/recurring_billing_item_handling.d.ts.map +1 -1
  15. package/dist/extensions/index.cjs +111 -52
  16. package/dist/extensions/index.js +111 -52
  17. package/dist/index.cjs +103 -56
  18. package/dist/index.js +103 -55
  19. package/dist/internal.cjs +7 -7
  20. package/dist/internal.js +7 -7
  21. package/dist/stdlib/decimal.d.ts +1 -1
  22. package/dist/stdlib/index.d.ts +1 -5
  23. package/dist/stdlib/index.d.ts.map +1 -1
  24. package/dist/stdlib/refs.d.ts +0 -8
  25. package/dist/stdlib/refs.d.ts.map +1 -1
  26. package/dist/stdlib/scalars.d.ts +0 -4
  27. package/dist/stdlib/scalars.d.ts.map +1 -1
  28. package/dist/stdlib/to-const.d.ts +1 -1
  29. package/dist/tsconfig.build.tsbuildinfo +1 -1
  30. package/package.json +2 -10
  31. package/dist/extensibility-sdk-stdlib-alpha.d.ts +0 -579
  32. package/dist/extensibility-sdk-stdlib-beta.d.ts +0 -579
  33. package/dist/extensibility-sdk-stdlib-internal.d.ts +0 -971
  34. package/dist/extensibility-sdk-stdlib-public.d.ts +0 -579
  35. package/dist/extensions/billing/invoice_collection_setting.d.ts +0 -117
  36. package/dist/extensions/billing/invoice_collection_setting.d.ts.map +0 -1
  37. package/dist/stdlib/index.cjs +0 -1754
  38. package/dist/stdlib/index.js +0 -1697
package/dist/index.cjs CHANGED
@@ -28,7 +28,6 @@ __export(src_exports, {
28
28
  Extend: () => extend_exports,
29
29
  Integer: () => Integer,
30
30
  PositiveInteger: () => PositiveInteger,
31
- Ref: () => Ref,
32
31
  _ConfigEnum: () => _ConfigEnum,
33
32
  _JsonWireToType: () => _JsonWireToType,
34
33
  _ProtoEnum: () => _ProtoEnum,
@@ -1162,16 +1161,6 @@ var PositiveInteger = {
1162
1161
  }
1163
1162
  };
1164
1163
 
1165
- // src/stdlib/refs.ts
1166
- var Ref = {
1167
- create: (step) => {
1168
- return {
1169
- type: step.object,
1170
- id: step.id
1171
- };
1172
- }
1173
- };
1174
-
1175
1164
  // src/stdlib/types.ts
1176
1165
  var _WireReadError = class extends Error {
1177
1166
  /**
@@ -1727,7 +1716,7 @@ var billing_exports = {};
1727
1716
  __export(billing_exports, {
1728
1717
  Bill: () => bill_exports,
1729
1718
  CustomerBalanceApplication: () => CustomerBalanceApplication,
1730
- InvoiceCollectionSetting: () => InvoiceCollectionSetting,
1719
+ InvoiceCollectionOptions: () => InvoiceCollectionOptions,
1731
1720
  Prorations: () => Prorations,
1732
1721
  RecurringBillingItemHandling: () => RecurringBillingItemHandling
1733
1722
  });
@@ -2460,17 +2449,9 @@ var CustomerBalanceApplication;
2460
2449
  CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
2461
2450
  })(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
2462
2451
 
2463
- // src/extensions/billing/invoice_collection_setting.ts
2464
- var InvoiceCollectionSetting;
2465
- ((InvoiceCollectionSetting2) => {
2466
- const parentTypeEnumValues = new _ProtoEnum({
2467
- PARENT_TYPE_SUBSCRIPTION: "subscription",
2468
- PARENT_TYPE_CONTRACT: "contract",
2469
- PARENT_TYPE_QUOTE: "quote",
2470
- PARENT_TYPE_BILLING_CADENCE: "billing_cadence",
2471
- PARENT_TYPE_SUBSCRIPTION_SCHEDULE: "subscription_schedule",
2472
- PARENT_TYPE_STANDALONE: "standalone"
2473
- });
2452
+ // src/extensions/billing/invoice_collection_options.ts
2453
+ var InvoiceCollectionOptions;
2454
+ ((InvoiceCollectionOptions2) => {
2474
2455
  const paymentMethodTypeEnumValues = new _ProtoEnum({
2475
2456
  PAYMENT_METHOD_TYPE_CARD: "card",
2476
2457
  PAYMENT_METHOD_TYPE_ACH_DEBIT: "ach_debit",
@@ -2501,25 +2482,40 @@ var InvoiceCollectionSetting;
2501
2482
  PAYMENT_METHOD_TYPE_PROMPTPAY: "promptpay",
2502
2483
  PAYMENT_METHOD_TYPE_PAYNOW: "paynow",
2503
2484
  PAYMENT_METHOD_TYPE_GRABPAY: "grabpay",
2504
- PAYMENT_METHOD_TYPE_FPX: "fpx"
2485
+ PAYMENT_METHOD_TYPE_FPX: "fpx",
2486
+ PAYMENT_METHOD_TYPE_BLIK: "blik"
2505
2487
  });
2506
2488
  const collectionMethodEnumValues = new _ProtoEnum({
2507
2489
  COLLECTION_METHOD_SEND_INVOICE: "send_invoice",
2508
2490
  COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
2509
2491
  });
2510
- const InvoiceCollectionResponseDescriptor = new _ShapeDescriptor("InvoiceCollectionResponse", [
2492
+ const InvoiceCollectionOptionsResultDescriptor = new _ShapeDescriptor("InvoiceCollectionOptionsResult", [
2511
2493
  { type: "autoAdvance", transform: _identity }
2512
2494
  ]);
2513
- const InvoiceCollectionRequestDescriptor = new _ShapeDescriptor(
2514
- "InvoiceCollectionRequest",
2495
+ const InvoiceCollectionOptionsInputDescriptor = new _ShapeDescriptor(
2496
+ "InvoiceCollectionOptionsInput",
2515
2497
  [
2516
2498
  {
2517
- type: "collectionSettings",
2518
- transform: _required(_translateShape(() => CollectionSettingsDescriptor))
2519
- },
2520
- { type: "parent", transform: _required(_translateShape(() => ParentDescriptor)) }
2499
+ type: "collectionOptions",
2500
+ transform: _required(_translateShape(() => CollectionOptionsDescriptor))
2501
+ }
2521
2502
  ],
2522
2503
  [
2504
+ {
2505
+ discriminant: "invoiceParentType",
2506
+ optional: false,
2507
+ branches: [
2508
+ { wireKey: "cadence", typeKey: "cadence" },
2509
+ { wireKey: "quote", typeKey: "quote" },
2510
+ { wireKey: "schedule", typeKey: "schedule" },
2511
+ {
2512
+ wireKey: "subscription",
2513
+ typeKey: "subscription",
2514
+ transform: _translateShape(() => SubscriptionParentDescriptor)
2515
+ },
2516
+ { wireKey: "contract", typeKey: "contract" }
2517
+ ]
2518
+ },
2523
2519
  {
2524
2520
  discriminant: "payer",
2525
2521
  optional: false,
@@ -2537,19 +2533,21 @@ var InvoiceCollectionSetting;
2537
2533
  { type: "id", transform: _required() },
2538
2534
  { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2539
2535
  ]);
2540
- const ParentDescriptor = new _ShapeDescriptor("Parent", [
2541
- { type: "type", transform: _required(_translateEnum(parentTypeEnumValues)) },
2542
- { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2543
- ]);
2544
- const CollectionSettingsDescriptor = new _ShapeDescriptor(
2545
- "CollectionSettings",
2536
+ const SubscriptionParentDescriptor = new _ShapeDescriptor(
2537
+ "SubscriptionParent",
2538
+ [
2539
+ { type: "id", transform: _required() },
2540
+ { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2541
+ ]
2542
+ );
2543
+ const CollectionOptionsDescriptor = new _ShapeDescriptor(
2544
+ "CollectionOptions",
2546
2545
  [
2547
2546
  { type: "autoAdvance", transform: _required() },
2548
2547
  {
2549
2548
  type: "collectionMethod",
2550
2549
  transform: _required(_translateEnum(collectionMethodEnumValues))
2551
2550
  },
2552
- { type: "finalizationGracePeriod", transform: _required() },
2553
2551
  {
2554
2552
  type: "paymentMethods",
2555
2553
  transform: _required(
@@ -2559,53 +2557,61 @@ var InvoiceCollectionSetting;
2559
2557
  ]
2560
2558
  );
2561
2559
  let __stripe_shim_active__ = false;
2562
- function prepareArgsCollectionOverride(proto) {
2560
+ function prepareArgsOverrideOptions(proto) {
2563
2561
  if (__stripe_shim_active__) {
2564
2562
  return proto;
2565
2563
  }
2566
2564
  return _apply(
2567
- InvoiceCollectionRequestDescriptor,
2565
+ InvoiceCollectionOptionsInputDescriptor,
2568
2566
  _ProtoWireToType,
2569
2567
  proto
2570
2568
  );
2571
2569
  }
2572
- InvoiceCollectionSetting2.prepareArgsCollectionOverride = prepareArgsCollectionOverride;
2573
- function prepareResultCollectionOverride(result) {
2570
+ InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
2571
+ function prepareResultOverrideOptions(result) {
2574
2572
  if (__stripe_shim_active__) return result;
2575
2573
  return _apply(
2576
- InvoiceCollectionResponseDescriptor,
2574
+ InvoiceCollectionOptionsResultDescriptor,
2577
2575
  _TypeToProtoWire,
2578
2576
  result
2579
2577
  );
2580
2578
  }
2581
- InvoiceCollectionSetting2.prepareResultCollectionOverride = prepareResultCollectionOverride;
2582
- function $platformWrapCollectionOverride(configTransformer) {
2579
+ InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
2580
+ function $platformWrapOverrideOptions(configTransformer) {
2583
2581
  return (cls, wireArgs, wireConfig, ctx) => {
2584
2582
  __stripe_shim_active__ = true;
2585
2583
  const instance = new cls();
2586
2584
  const request = _apply(
2587
- InvoiceCollectionRequestDescriptor,
2585
+ InvoiceCollectionOptionsInputDescriptor,
2588
2586
  _ProtoWireToType,
2589
2587
  wireArgs
2590
2588
  );
2591
2589
  const config = configTransformer !== void 0 ? configTransformer(wireConfig, _configAppContextFromContext(ctx)) : wireConfig;
2592
- const result = instance.collectionOverride(request, config, ctx);
2590
+ const result = instance.overrideOptions(request, config, ctx);
2593
2591
  if (_isPromiseLike(result)) {
2594
2592
  return Promise.resolve(result).then((r) => {
2595
2593
  const typedR = r;
2596
- return _apply(InvoiceCollectionResponseDescriptor, _TypeToProtoWire, typedR);
2594
+ return _apply(
2595
+ InvoiceCollectionOptionsResultDescriptor,
2596
+ _TypeToProtoWire,
2597
+ typedR
2598
+ );
2597
2599
  });
2598
2600
  }
2599
2601
  const typedResult = result;
2600
- return _apply(InvoiceCollectionResponseDescriptor, _TypeToProtoWire, typedResult);
2602
+ return _apply(
2603
+ InvoiceCollectionOptionsResultDescriptor,
2604
+ _TypeToProtoWire,
2605
+ typedResult
2606
+ );
2601
2607
  };
2602
2608
  }
2603
- InvoiceCollectionSetting2.$platformWrapCollectionOverride = $platformWrapCollectionOverride;
2604
- const _prepareArgsAlias = prepareArgsCollectionOverride;
2605
- InvoiceCollectionSetting2.prepareArgs = _prepareArgsAlias;
2606
- const _prepareResultAlias = prepareResultCollectionOverride;
2607
- InvoiceCollectionSetting2.prepareResult = _prepareResultAlias;
2608
- })(InvoiceCollectionSetting || (InvoiceCollectionSetting = {}));
2609
+ InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
2610
+ const _prepareArgsAlias = prepareArgsOverrideOptions;
2611
+ InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
2612
+ const _prepareResultAlias = prepareResultOverrideOptions;
2613
+ InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
2614
+ })(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
2609
2615
 
2610
2616
  // src/extensions/billing/prorations.ts
2611
2617
  var Prorations;
@@ -3414,9 +3420,51 @@ var RecurringBillingItemHandling;
3414
3420
  transform: _translateShape(() => CustomPricingUnitOverageRateDescriptor)
3415
3421
  }
3416
3422
  ]
3423
+ },
3424
+ {
3425
+ discriminant: "creditedItems",
3426
+ optional: false,
3427
+ branches: [
3428
+ {
3429
+ wireKey: "invoiceLineItems",
3430
+ typeKey: "invoiceLineItems",
3431
+ transform: _translateShape(() => InvoiceLineItemsDescriptor)
3432
+ },
3433
+ {
3434
+ wireKey: "invoiceItem",
3435
+ typeKey: "invoiceItem",
3436
+ transform: _translateShape(() => CreditedInvoiceItemDescriptor)
3437
+ }
3438
+ ]
3417
3439
  }
3418
3440
  ]
3419
3441
  );
3442
+ const CreditedInvoiceItemDescriptor = new _ShapeDescriptor(
3443
+ "CreditedInvoiceItem",
3444
+ [{ type: "id", transform: _required() }]
3445
+ );
3446
+ const InvoiceLineItemsDescriptor = new _ShapeDescriptor(
3447
+ "InvoiceLineItems",
3448
+ [
3449
+ {
3450
+ type: "invoice",
3451
+ transform: _required(_translateShape(() => CreditedInvoiceDescriptor))
3452
+ },
3453
+ {
3454
+ type: "invoiceLineItems",
3455
+ transform: _required(
3456
+ _translateArray(_translateShape(() => CreditedInvoiceLineItemDescriptor))
3457
+ )
3458
+ }
3459
+ ]
3460
+ );
3461
+ const CreditedInvoiceLineItemDescriptor = new _ShapeDescriptor("CreditedInvoiceLineItem", [
3462
+ { type: "id", transform: _required() }
3463
+ ]);
3464
+ const CreditedInvoiceDescriptor = new _ShapeDescriptor(
3465
+ "CreditedInvoice",
3466
+ [{ type: "id", transform: _required() }]
3467
+ );
3420
3468
  const CustomPricingUnitOverageRateDescriptor = new _ShapeDescriptor("CustomPricingUnitOverageRate", [
3421
3469
  { type: "id", transform: _required() },
3422
3470
  { type: "metadata", transform: _required(_translateMap(_identity, _identity)) },
@@ -4042,7 +4090,6 @@ var CustomAction2;
4042
4090
  Extend,
4043
4091
  Integer,
4044
4092
  PositiveInteger,
4045
- Ref,
4046
4093
  _ConfigEnum,
4047
4094
  _JsonWireToType,
4048
4095
  _ProtoEnum,
package/dist/index.js CHANGED
@@ -1109,16 +1109,6 @@ var PositiveInteger = {
1109
1109
  }
1110
1110
  };
1111
1111
 
1112
- // src/stdlib/refs.ts
1113
- var Ref = {
1114
- create: (step) => {
1115
- return {
1116
- type: step.object,
1117
- id: step.id
1118
- };
1119
- }
1120
- };
1121
-
1122
1112
  // src/stdlib/types.ts
1123
1113
  var _WireReadError = class extends Error {
1124
1114
  /**
@@ -1674,7 +1664,7 @@ var billing_exports = {};
1674
1664
  __export(billing_exports, {
1675
1665
  Bill: () => bill_exports,
1676
1666
  CustomerBalanceApplication: () => CustomerBalanceApplication,
1677
- InvoiceCollectionSetting: () => InvoiceCollectionSetting,
1667
+ InvoiceCollectionOptions: () => InvoiceCollectionOptions,
1678
1668
  Prorations: () => Prorations,
1679
1669
  RecurringBillingItemHandling: () => RecurringBillingItemHandling
1680
1670
  });
@@ -2407,17 +2397,9 @@ var CustomerBalanceApplication;
2407
2397
  CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
2408
2398
  })(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
2409
2399
 
2410
- // src/extensions/billing/invoice_collection_setting.ts
2411
- var InvoiceCollectionSetting;
2412
- ((InvoiceCollectionSetting2) => {
2413
- const parentTypeEnumValues = new _ProtoEnum({
2414
- PARENT_TYPE_SUBSCRIPTION: "subscription",
2415
- PARENT_TYPE_CONTRACT: "contract",
2416
- PARENT_TYPE_QUOTE: "quote",
2417
- PARENT_TYPE_BILLING_CADENCE: "billing_cadence",
2418
- PARENT_TYPE_SUBSCRIPTION_SCHEDULE: "subscription_schedule",
2419
- PARENT_TYPE_STANDALONE: "standalone"
2420
- });
2400
+ // src/extensions/billing/invoice_collection_options.ts
2401
+ var InvoiceCollectionOptions;
2402
+ ((InvoiceCollectionOptions2) => {
2421
2403
  const paymentMethodTypeEnumValues = new _ProtoEnum({
2422
2404
  PAYMENT_METHOD_TYPE_CARD: "card",
2423
2405
  PAYMENT_METHOD_TYPE_ACH_DEBIT: "ach_debit",
@@ -2448,25 +2430,40 @@ var InvoiceCollectionSetting;
2448
2430
  PAYMENT_METHOD_TYPE_PROMPTPAY: "promptpay",
2449
2431
  PAYMENT_METHOD_TYPE_PAYNOW: "paynow",
2450
2432
  PAYMENT_METHOD_TYPE_GRABPAY: "grabpay",
2451
- PAYMENT_METHOD_TYPE_FPX: "fpx"
2433
+ PAYMENT_METHOD_TYPE_FPX: "fpx",
2434
+ PAYMENT_METHOD_TYPE_BLIK: "blik"
2452
2435
  });
2453
2436
  const collectionMethodEnumValues = new _ProtoEnum({
2454
2437
  COLLECTION_METHOD_SEND_INVOICE: "send_invoice",
2455
2438
  COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
2456
2439
  });
2457
- const InvoiceCollectionResponseDescriptor = new _ShapeDescriptor("InvoiceCollectionResponse", [
2440
+ const InvoiceCollectionOptionsResultDescriptor = new _ShapeDescriptor("InvoiceCollectionOptionsResult", [
2458
2441
  { type: "autoAdvance", transform: _identity }
2459
2442
  ]);
2460
- const InvoiceCollectionRequestDescriptor = new _ShapeDescriptor(
2461
- "InvoiceCollectionRequest",
2443
+ const InvoiceCollectionOptionsInputDescriptor = new _ShapeDescriptor(
2444
+ "InvoiceCollectionOptionsInput",
2462
2445
  [
2463
2446
  {
2464
- type: "collectionSettings",
2465
- transform: _required(_translateShape(() => CollectionSettingsDescriptor))
2466
- },
2467
- { type: "parent", transform: _required(_translateShape(() => ParentDescriptor)) }
2447
+ type: "collectionOptions",
2448
+ transform: _required(_translateShape(() => CollectionOptionsDescriptor))
2449
+ }
2468
2450
  ],
2469
2451
  [
2452
+ {
2453
+ discriminant: "invoiceParentType",
2454
+ optional: false,
2455
+ branches: [
2456
+ { wireKey: "cadence", typeKey: "cadence" },
2457
+ { wireKey: "quote", typeKey: "quote" },
2458
+ { wireKey: "schedule", typeKey: "schedule" },
2459
+ {
2460
+ wireKey: "subscription",
2461
+ typeKey: "subscription",
2462
+ transform: _translateShape(() => SubscriptionParentDescriptor)
2463
+ },
2464
+ { wireKey: "contract", typeKey: "contract" }
2465
+ ]
2466
+ },
2470
2467
  {
2471
2468
  discriminant: "payer",
2472
2469
  optional: false,
@@ -2484,19 +2481,21 @@ var InvoiceCollectionSetting;
2484
2481
  { type: "id", transform: _required() },
2485
2482
  { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2486
2483
  ]);
2487
- const ParentDescriptor = new _ShapeDescriptor("Parent", [
2488
- { type: "type", transform: _required(_translateEnum(parentTypeEnumValues)) },
2489
- { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2490
- ]);
2491
- const CollectionSettingsDescriptor = new _ShapeDescriptor(
2492
- "CollectionSettings",
2484
+ const SubscriptionParentDescriptor = new _ShapeDescriptor(
2485
+ "SubscriptionParent",
2486
+ [
2487
+ { type: "id", transform: _required() },
2488
+ { type: "metadata", transform: _required(_translateMap(_identity, _identity)) }
2489
+ ]
2490
+ );
2491
+ const CollectionOptionsDescriptor = new _ShapeDescriptor(
2492
+ "CollectionOptions",
2493
2493
  [
2494
2494
  { type: "autoAdvance", transform: _required() },
2495
2495
  {
2496
2496
  type: "collectionMethod",
2497
2497
  transform: _required(_translateEnum(collectionMethodEnumValues))
2498
2498
  },
2499
- { type: "finalizationGracePeriod", transform: _required() },
2500
2499
  {
2501
2500
  type: "paymentMethods",
2502
2501
  transform: _required(
@@ -2506,53 +2505,61 @@ var InvoiceCollectionSetting;
2506
2505
  ]
2507
2506
  );
2508
2507
  let __stripe_shim_active__ = false;
2509
- function prepareArgsCollectionOverride(proto) {
2508
+ function prepareArgsOverrideOptions(proto) {
2510
2509
  if (__stripe_shim_active__) {
2511
2510
  return proto;
2512
2511
  }
2513
2512
  return _apply(
2514
- InvoiceCollectionRequestDescriptor,
2513
+ InvoiceCollectionOptionsInputDescriptor,
2515
2514
  _ProtoWireToType,
2516
2515
  proto
2517
2516
  );
2518
2517
  }
2519
- InvoiceCollectionSetting2.prepareArgsCollectionOverride = prepareArgsCollectionOverride;
2520
- function prepareResultCollectionOverride(result) {
2518
+ InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
2519
+ function prepareResultOverrideOptions(result) {
2521
2520
  if (__stripe_shim_active__) return result;
2522
2521
  return _apply(
2523
- InvoiceCollectionResponseDescriptor,
2522
+ InvoiceCollectionOptionsResultDescriptor,
2524
2523
  _TypeToProtoWire,
2525
2524
  result
2526
2525
  );
2527
2526
  }
2528
- InvoiceCollectionSetting2.prepareResultCollectionOverride = prepareResultCollectionOverride;
2529
- function $platformWrapCollectionOverride(configTransformer) {
2527
+ InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
2528
+ function $platformWrapOverrideOptions(configTransformer) {
2530
2529
  return (cls, wireArgs, wireConfig, ctx) => {
2531
2530
  __stripe_shim_active__ = true;
2532
2531
  const instance = new cls();
2533
2532
  const request = _apply(
2534
- InvoiceCollectionRequestDescriptor,
2533
+ InvoiceCollectionOptionsInputDescriptor,
2535
2534
  _ProtoWireToType,
2536
2535
  wireArgs
2537
2536
  );
2538
2537
  const config = configTransformer !== void 0 ? configTransformer(wireConfig, _configAppContextFromContext(ctx)) : wireConfig;
2539
- const result = instance.collectionOverride(request, config, ctx);
2538
+ const result = instance.overrideOptions(request, config, ctx);
2540
2539
  if (_isPromiseLike(result)) {
2541
2540
  return Promise.resolve(result).then((r) => {
2542
2541
  const typedR = r;
2543
- return _apply(InvoiceCollectionResponseDescriptor, _TypeToProtoWire, typedR);
2542
+ return _apply(
2543
+ InvoiceCollectionOptionsResultDescriptor,
2544
+ _TypeToProtoWire,
2545
+ typedR
2546
+ );
2544
2547
  });
2545
2548
  }
2546
2549
  const typedResult = result;
2547
- return _apply(InvoiceCollectionResponseDescriptor, _TypeToProtoWire, typedResult);
2550
+ return _apply(
2551
+ InvoiceCollectionOptionsResultDescriptor,
2552
+ _TypeToProtoWire,
2553
+ typedResult
2554
+ );
2548
2555
  };
2549
2556
  }
2550
- InvoiceCollectionSetting2.$platformWrapCollectionOverride = $platformWrapCollectionOverride;
2551
- const _prepareArgsAlias = prepareArgsCollectionOverride;
2552
- InvoiceCollectionSetting2.prepareArgs = _prepareArgsAlias;
2553
- const _prepareResultAlias = prepareResultCollectionOverride;
2554
- InvoiceCollectionSetting2.prepareResult = _prepareResultAlias;
2555
- })(InvoiceCollectionSetting || (InvoiceCollectionSetting = {}));
2557
+ InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
2558
+ const _prepareArgsAlias = prepareArgsOverrideOptions;
2559
+ InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
2560
+ const _prepareResultAlias = prepareResultOverrideOptions;
2561
+ InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
2562
+ })(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
2556
2563
 
2557
2564
  // src/extensions/billing/prorations.ts
2558
2565
  var Prorations;
@@ -3361,9 +3368,51 @@ var RecurringBillingItemHandling;
3361
3368
  transform: _translateShape(() => CustomPricingUnitOverageRateDescriptor)
3362
3369
  }
3363
3370
  ]
3371
+ },
3372
+ {
3373
+ discriminant: "creditedItems",
3374
+ optional: false,
3375
+ branches: [
3376
+ {
3377
+ wireKey: "invoiceLineItems",
3378
+ typeKey: "invoiceLineItems",
3379
+ transform: _translateShape(() => InvoiceLineItemsDescriptor)
3380
+ },
3381
+ {
3382
+ wireKey: "invoiceItem",
3383
+ typeKey: "invoiceItem",
3384
+ transform: _translateShape(() => CreditedInvoiceItemDescriptor)
3385
+ }
3386
+ ]
3364
3387
  }
3365
3388
  ]
3366
3389
  );
3390
+ const CreditedInvoiceItemDescriptor = new _ShapeDescriptor(
3391
+ "CreditedInvoiceItem",
3392
+ [{ type: "id", transform: _required() }]
3393
+ );
3394
+ const InvoiceLineItemsDescriptor = new _ShapeDescriptor(
3395
+ "InvoiceLineItems",
3396
+ [
3397
+ {
3398
+ type: "invoice",
3399
+ transform: _required(_translateShape(() => CreditedInvoiceDescriptor))
3400
+ },
3401
+ {
3402
+ type: "invoiceLineItems",
3403
+ transform: _required(
3404
+ _translateArray(_translateShape(() => CreditedInvoiceLineItemDescriptor))
3405
+ )
3406
+ }
3407
+ ]
3408
+ );
3409
+ const CreditedInvoiceLineItemDescriptor = new _ShapeDescriptor("CreditedInvoiceLineItem", [
3410
+ { type: "id", transform: _required() }
3411
+ ]);
3412
+ const CreditedInvoiceDescriptor = new _ShapeDescriptor(
3413
+ "CreditedInvoice",
3414
+ [{ type: "id", transform: _required() }]
3415
+ );
3367
3416
  const CustomPricingUnitOverageRateDescriptor = new _ShapeDescriptor("CustomPricingUnitOverageRate", [
3368
3417
  { type: "id", transform: _required() },
3369
3418
  { type: "metadata", transform: _required(_translateMap(_identity, _identity)) },
@@ -3988,7 +4037,6 @@ export {
3988
4037
  extend_exports as Extend,
3989
4038
  Integer,
3990
4039
  PositiveInteger,
3991
- Ref,
3992
4040
  _ConfigEnum,
3993
4041
  _JsonWireToType,
3994
4042
  _ProtoEnum,
package/dist/internal.cjs CHANGED
@@ -54,15 +54,15 @@ var EXTENSION_INTERFACES = [
54
54
  ]
55
55
  },
56
56
  {
57
- interfaceId: "billing.invoice_collection_setting",
58
- sdkFqn: "billing/invoice_collection_setting.InvoiceCollectionSetting",
59
- namespacePath: ["Billing", "InvoiceCollectionSetting"],
57
+ interfaceId: "billing.invoice_collection_options",
58
+ sdkFqn: "billing/invoice_collection_options.InvoiceCollectionOptions",
59
+ namespacePath: ["Billing", "InvoiceCollectionOptions"],
60
60
  methods: [
61
61
  {
62
- outputName: "collectionOverride",
63
- prepareArgsName: "prepareArgsCollectionOverride",
64
- prepareResultName: "prepareResultCollectionOverride",
65
- platformWrapName: "$platformWrapCollectionOverride"
62
+ outputName: "overrideOptions",
63
+ prepareArgsName: "prepareArgsOverrideOptions",
64
+ prepareResultName: "prepareResultOverrideOptions",
65
+ platformWrapName: "$platformWrapOverrideOptions"
66
66
  }
67
67
  ]
68
68
  },
package/dist/internal.js CHANGED
@@ -27,15 +27,15 @@ var EXTENSION_INTERFACES = [
27
27
  ]
28
28
  },
29
29
  {
30
- interfaceId: "billing.invoice_collection_setting",
31
- sdkFqn: "billing/invoice_collection_setting.InvoiceCollectionSetting",
32
- namespacePath: ["Billing", "InvoiceCollectionSetting"],
30
+ interfaceId: "billing.invoice_collection_options",
31
+ sdkFqn: "billing/invoice_collection_options.InvoiceCollectionOptions",
32
+ namespacePath: ["Billing", "InvoiceCollectionOptions"],
33
33
  methods: [
34
34
  {
35
- outputName: "collectionOverride",
36
- prepareArgsName: "prepareArgsCollectionOverride",
37
- prepareResultName: "prepareResultCollectionOverride",
38
- platformWrapName: "$platformWrapCollectionOverride"
35
+ outputName: "overrideOptions",
36
+ prepareArgsName: "prepareArgsOverrideOptions",
37
+ prepareResultName: "prepareResultOverrideOptions",
38
+ platformWrapName: "$platformWrapOverrideOptions"
39
39
  }
40
40
  ]
41
41
  },
@@ -125,7 +125,7 @@ export declare const DEFAULT_DIV_PRECISION = 34;
125
125
  *
126
126
  * @example
127
127
  * ```ts
128
- * import { Decimal, RoundDirection } from '@stripe/extensibility-sdk/stdlib';
128
+ * import { Decimal, RoundDirection } from '@stripe/extensibility-sdk';
129
129
  *
130
130
  * const price = Decimal.from('19.99');
131
131
  * const tax = price.mul(Decimal.from('0.0825'));
@@ -1,7 +1,3 @@
1
- /**
2
- * @deprecated Import from `@stripe/extensibility-sdk` instead.
3
- * @packageDocumentation
4
- */
5
1
  /**
6
2
  * @internal
7
3
  */
@@ -9,7 +5,7 @@ export { __brand, __stripeType } from './brand.js';
9
5
  export type { BrandSymbol, StripeTypeSymbol } from './brand.js';
10
6
  export { Integer, PositiveInteger, __positiveIntegerBrand } from './scalars.js';
11
7
  export type { IntegerRoundDirection, IntegerCompanion, PositiveIntegerCompanion, } from './scalars.js';
12
- export { Ref } from './refs.js';
8
+ export type { Ref } from './refs.js';
13
9
  export type { ExtractObjectTag } from './type-utils.js';
14
10
  export { __decimalBrand, Decimal, DecimalRoundingPresets, DEFAULT_DIV_PRECISION, } from './decimal.js';
15
11
  export type { RoundDirection, DecimalRoundingOptions, DecimalLike, DecimalCompanion, } from './decimal.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stdlib/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,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,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stdlib/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAChF,YAAY,EACV,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,cAAc,EACd,OAAO,EACP,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,EACZ,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,GACd,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -29,12 +29,4 @@ export type Ref<T extends {
29
29
  readonly __type?: T;
30
30
  readonly [__stripeType]: 'string';
31
31
  };
32
- /** Factory for creating {@link (Ref:type)} values from an object with `object` and `id` fields. @public */
33
- export declare const Ref: {
34
- create: <T extends {
35
- readonly object: string;
36
- }>(step: T & {
37
- readonly id: string;
38
- }) => Ref<T>;
39
- };
40
32
  //# sourceMappingURL=refs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/stdlib/refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,IAAI;IACrF,4EAA4E;IAC5E,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC1B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG;IACF,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC;CACnC,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,GAAG;aACL,CAAC,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,QACtC,CAAC,GAAG;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAChC,GAAG,CAAC,CAAC,CAAC;CAOV,CAAC"}
1
+ {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/stdlib/refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,IAAI;IACrF,4EAA4E;IAC5E,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC1B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG;IACF,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC;CACnC,CAAC"}
@@ -6,10 +6,6 @@ export type JsonObject = object & {
6
6
  readonly [__brand]: 'JsonObject';
7
7
  readonly [__stripeType]: 'map<string>';
8
8
  };
9
- /** Factory for creating {@link JsonObject} branded values. @public */
10
- export declare const JsonObject: {
11
- create: (value: object) => JsonObject;
12
- };
13
9
  /** A branded integer — a `number` guaranteed to satisfy `Number.isInteger`. @public */
14
10
  export type Integer = number & {
15
11
  readonly [__integerBrand]: true;
@@ -1 +1 @@
1
- {"version":3,"file":"scalars.d.ts","sourceRoot":"","sources":["../../src/stdlib/scalars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