@stripe/extensibility-sdk 0.26.0 → 0.27.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 (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
@@ -1 +1 @@
1
- {"version":3,"file":"recurring_billing_item_handling.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/recurring_billing_item_handling.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,KAAK,EACV,OAAO,EACP,yBAAyB,EAI1B,MAAM,uBAAuB,CAAC;AAwB/B,cAAc;AACd,yBAAiB,4BAA4B,CAAC;IAC5C,cAAc;IACd,KAAY,eAAe,GAAG,WAAW,GAAG,QAAQ,CAAC;IAErD,cAAc;IACd,KAAY,sBAAsB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAEvE,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,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE1C;;;OAGG;IACH,UAAiB,gBAAgB;QAC/B,qEAAqE;QACrE,MAAM,EAAE,SAAS,EAAE,CAAC;KACrB;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,+BAA+B;QAC/B,KAAK,EAAE,WAAW,EAAE,CAAC;QACrB,gFAAgF;QAChF,iBAAiB,EAAE,OAAO,CAAC;KAC5B;IAED;;;OAGG;IACH,UAAiB,WAAW;QAC1B,wEAAwE;QACxE,GAAG,EAAE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CAAC,EAAE,CAClB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,GACX,CACD,GAAG,EAAE,UAAU;QAAE,UAAU,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;KAAE,EACvD,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,OAAO,KACT,OAAO,CA0BX;IAED;;;OAGG;IACH,KAAY,0BAA0B,CAAC,MAAM,IAAI,CAC/C,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,wBAAwB,CAAC;IAE9B;;;OAGG;IACH,KAAY,mBAAmB,CAAC,MAAM,IAAI,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,iBAAiB,CAAC;IAEvB;;;OAGG;IACH,KAAY,kBAAkB,CAAC,MAAM,IAAI,CACvC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KACb,gBAAgB,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,WAAW,4BAA4B,CAAC,MAAM;IAClD,kBAAkB,EAAE,4BAA4B,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACpF,WAAW,EAAE,4BAA4B,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtE,UAAU,EAAE,4BAA4B,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;CACrE"}
1
+ {"version":3,"file":"recurring_billing_item_handling.d.ts","sourceRoot":"","sources":["../../../src/extensions/billing/recurring_billing_item_handling.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAA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26,14 +26,14 @@ __export(extensions_exports, {
26
26
  Extend: () => extend_exports
27
27
  });
28
28
  module.exports = __toCommonJS(extensions_exports);
29
- var import_stdlib8 = require("@stripe/extensibility-sdk/stdlib");
29
+ var import_stdlib8 = require("@stripe/extensibility-sdk");
30
30
 
31
31
  // src/extensions/billing/index.ts
32
32
  var billing_exports = {};
33
33
  __export(billing_exports, {
34
34
  Bill: () => bill_exports,
35
35
  CustomerBalanceApplication: () => CustomerBalanceApplication,
36
- InvoiceCollectionSetting: () => InvoiceCollectionSetting,
36
+ InvoiceCollectionOptions: () => InvoiceCollectionOptions,
37
37
  Prorations: () => Prorations,
38
38
  RecurringBillingItemHandling: () => RecurringBillingItemHandling
39
39
  });
@@ -45,7 +45,7 @@ __export(bill_exports, {
45
45
  });
46
46
 
47
47
  // src/extensions/billing/bill/discount_calculation.ts
48
- var import_stdlib = require("@stripe/extensibility-sdk/stdlib");
48
+ var import_stdlib = require("@stripe/extensibility-sdk");
49
49
  var DiscountCalculation;
50
50
  ((DiscountCalculation2) => {
51
51
  const billingReasonEnumValues = new import_stdlib._ProtoEnum({
@@ -477,7 +477,7 @@ var DiscountCalculation;
477
477
  })(DiscountCalculation || (DiscountCalculation = {}));
478
478
 
479
479
  // src/extensions/billing/customer_balance_application.ts
480
- var import_stdlib2 = require("@stripe/extensibility-sdk/stdlib");
480
+ var import_stdlib2 = require("@stripe/extensibility-sdk");
481
481
  var CustomerBalanceApplication;
482
482
  ((CustomerBalanceApplication2) => {
483
483
  const currencyEnumValues = new import_stdlib2._ProtoEnum({
@@ -768,18 +768,10 @@ var CustomerBalanceApplication;
768
768
  CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
769
769
  })(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
770
770
 
771
- // src/extensions/billing/invoice_collection_setting.ts
772
- var import_stdlib3 = require("@stripe/extensibility-sdk/stdlib");
773
- var InvoiceCollectionSetting;
774
- ((InvoiceCollectionSetting2) => {
775
- const parentTypeEnumValues = new import_stdlib3._ProtoEnum({
776
- PARENT_TYPE_SUBSCRIPTION: "subscription",
777
- PARENT_TYPE_CONTRACT: "contract",
778
- PARENT_TYPE_QUOTE: "quote",
779
- PARENT_TYPE_BILLING_CADENCE: "billing_cadence",
780
- PARENT_TYPE_SUBSCRIPTION_SCHEDULE: "subscription_schedule",
781
- PARENT_TYPE_STANDALONE: "standalone"
782
- });
771
+ // src/extensions/billing/invoice_collection_options.ts
772
+ var import_stdlib3 = require("@stripe/extensibility-sdk");
773
+ var InvoiceCollectionOptions;
774
+ ((InvoiceCollectionOptions2) => {
783
775
  const paymentMethodTypeEnumValues = new import_stdlib3._ProtoEnum({
784
776
  PAYMENT_METHOD_TYPE_CARD: "card",
785
777
  PAYMENT_METHOD_TYPE_ACH_DEBIT: "ach_debit",
@@ -810,25 +802,40 @@ var InvoiceCollectionSetting;
810
802
  PAYMENT_METHOD_TYPE_PROMPTPAY: "promptpay",
811
803
  PAYMENT_METHOD_TYPE_PAYNOW: "paynow",
812
804
  PAYMENT_METHOD_TYPE_GRABPAY: "grabpay",
813
- PAYMENT_METHOD_TYPE_FPX: "fpx"
805
+ PAYMENT_METHOD_TYPE_FPX: "fpx",
806
+ PAYMENT_METHOD_TYPE_BLIK: "blik"
814
807
  });
815
808
  const collectionMethodEnumValues = new import_stdlib3._ProtoEnum({
816
809
  COLLECTION_METHOD_SEND_INVOICE: "send_invoice",
817
810
  COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
818
811
  });
819
- const InvoiceCollectionResponseDescriptor = new import_stdlib3._ShapeDescriptor("InvoiceCollectionResponse", [
812
+ const InvoiceCollectionOptionsResultDescriptor = new import_stdlib3._ShapeDescriptor("InvoiceCollectionOptionsResult", [
820
813
  { type: "autoAdvance", transform: import_stdlib3._identity }
821
814
  ]);
822
- const InvoiceCollectionRequestDescriptor = new import_stdlib3._ShapeDescriptor(
823
- "InvoiceCollectionRequest",
815
+ const InvoiceCollectionOptionsInputDescriptor = new import_stdlib3._ShapeDescriptor(
816
+ "InvoiceCollectionOptionsInput",
824
817
  [
825
818
  {
826
- type: "collectionSettings",
827
- transform: (0, import_stdlib3._required)((0, import_stdlib3._translateShape)(() => CollectionSettingsDescriptor))
828
- },
829
- { type: "parent", transform: (0, import_stdlib3._required)((0, import_stdlib3._translateShape)(() => ParentDescriptor)) }
819
+ type: "collectionOptions",
820
+ transform: (0, import_stdlib3._required)((0, import_stdlib3._translateShape)(() => CollectionOptionsDescriptor))
821
+ }
830
822
  ],
831
823
  [
824
+ {
825
+ discriminant: "invoiceParentType",
826
+ optional: false,
827
+ branches: [
828
+ { wireKey: "cadence", typeKey: "cadence" },
829
+ { wireKey: "quote", typeKey: "quote" },
830
+ { wireKey: "schedule", typeKey: "schedule" },
831
+ {
832
+ wireKey: "subscription",
833
+ typeKey: "subscription",
834
+ transform: (0, import_stdlib3._translateShape)(() => SubscriptionParentDescriptor)
835
+ },
836
+ { wireKey: "contract", typeKey: "contract" }
837
+ ]
838
+ },
832
839
  {
833
840
  discriminant: "payer",
834
841
  optional: false,
@@ -846,19 +853,21 @@ var InvoiceCollectionSetting;
846
853
  { type: "id", transform: (0, import_stdlib3._required)() },
847
854
  { type: "metadata", transform: (0, import_stdlib3._required)((0, import_stdlib3._translateMap)(import_stdlib3._identity, import_stdlib3._identity)) }
848
855
  ]);
849
- const ParentDescriptor = new import_stdlib3._ShapeDescriptor("Parent", [
850
- { type: "type", transform: (0, import_stdlib3._required)((0, import_stdlib3._translateEnum)(parentTypeEnumValues)) },
851
- { type: "metadata", transform: (0, import_stdlib3._required)((0, import_stdlib3._translateMap)(import_stdlib3._identity, import_stdlib3._identity)) }
852
- ]);
853
- const CollectionSettingsDescriptor = new import_stdlib3._ShapeDescriptor(
854
- "CollectionSettings",
856
+ const SubscriptionParentDescriptor = new import_stdlib3._ShapeDescriptor(
857
+ "SubscriptionParent",
858
+ [
859
+ { type: "id", transform: (0, import_stdlib3._required)() },
860
+ { type: "metadata", transform: (0, import_stdlib3._required)((0, import_stdlib3._translateMap)(import_stdlib3._identity, import_stdlib3._identity)) }
861
+ ]
862
+ );
863
+ const CollectionOptionsDescriptor = new import_stdlib3._ShapeDescriptor(
864
+ "CollectionOptions",
855
865
  [
856
866
  { type: "autoAdvance", transform: (0, import_stdlib3._required)() },
857
867
  {
858
868
  type: "collectionMethod",
859
869
  transform: (0, import_stdlib3._required)((0, import_stdlib3._translateEnum)(collectionMethodEnumValues))
860
870
  },
861
- { type: "finalizationGracePeriod", transform: (0, import_stdlib3._required)() },
862
871
  {
863
872
  type: "paymentMethods",
864
873
  transform: (0, import_stdlib3._required)(
@@ -868,56 +877,64 @@ var InvoiceCollectionSetting;
868
877
  ]
869
878
  );
870
879
  let __stripe_shim_active__ = false;
871
- function prepareArgsCollectionOverride(proto) {
880
+ function prepareArgsOverrideOptions(proto) {
872
881
  if (__stripe_shim_active__) {
873
882
  return proto;
874
883
  }
875
884
  return (0, import_stdlib3._apply)(
876
- InvoiceCollectionRequestDescriptor,
885
+ InvoiceCollectionOptionsInputDescriptor,
877
886
  import_stdlib3._ProtoWireToType,
878
887
  proto
879
888
  );
880
889
  }
881
- InvoiceCollectionSetting2.prepareArgsCollectionOverride = prepareArgsCollectionOverride;
882
- function prepareResultCollectionOverride(result) {
890
+ InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
891
+ function prepareResultOverrideOptions(result) {
883
892
  if (__stripe_shim_active__) return result;
884
893
  return (0, import_stdlib3._apply)(
885
- InvoiceCollectionResponseDescriptor,
894
+ InvoiceCollectionOptionsResultDescriptor,
886
895
  import_stdlib3._TypeToProtoWire,
887
896
  result
888
897
  );
889
898
  }
890
- InvoiceCollectionSetting2.prepareResultCollectionOverride = prepareResultCollectionOverride;
891
- function $platformWrapCollectionOverride(configTransformer) {
899
+ InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
900
+ function $platformWrapOverrideOptions(configTransformer) {
892
901
  return (cls, wireArgs, wireConfig, ctx) => {
893
902
  __stripe_shim_active__ = true;
894
903
  const instance = new cls();
895
904
  const request = (0, import_stdlib3._apply)(
896
- InvoiceCollectionRequestDescriptor,
905
+ InvoiceCollectionOptionsInputDescriptor,
897
906
  import_stdlib3._ProtoWireToType,
898
907
  wireArgs
899
908
  );
900
909
  const config = configTransformer !== void 0 ? configTransformer(wireConfig, (0, import_stdlib3._configAppContextFromContext)(ctx)) : wireConfig;
901
- const result = instance.collectionOverride(request, config, ctx);
910
+ const result = instance.overrideOptions(request, config, ctx);
902
911
  if ((0, import_stdlib3._isPromiseLike)(result)) {
903
912
  return Promise.resolve(result).then((r) => {
904
913
  const typedR = r;
905
- return (0, import_stdlib3._apply)(InvoiceCollectionResponseDescriptor, import_stdlib3._TypeToProtoWire, typedR);
914
+ return (0, import_stdlib3._apply)(
915
+ InvoiceCollectionOptionsResultDescriptor,
916
+ import_stdlib3._TypeToProtoWire,
917
+ typedR
918
+ );
906
919
  });
907
920
  }
908
921
  const typedResult = result;
909
- return (0, import_stdlib3._apply)(InvoiceCollectionResponseDescriptor, import_stdlib3._TypeToProtoWire, typedResult);
922
+ return (0, import_stdlib3._apply)(
923
+ InvoiceCollectionOptionsResultDescriptor,
924
+ import_stdlib3._TypeToProtoWire,
925
+ typedResult
926
+ );
910
927
  };
911
928
  }
912
- InvoiceCollectionSetting2.$platformWrapCollectionOverride = $platformWrapCollectionOverride;
913
- const _prepareArgsAlias = prepareArgsCollectionOverride;
914
- InvoiceCollectionSetting2.prepareArgs = _prepareArgsAlias;
915
- const _prepareResultAlias = prepareResultCollectionOverride;
916
- InvoiceCollectionSetting2.prepareResult = _prepareResultAlias;
917
- })(InvoiceCollectionSetting || (InvoiceCollectionSetting = {}));
929
+ InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
930
+ const _prepareArgsAlias = prepareArgsOverrideOptions;
931
+ InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
932
+ const _prepareResultAlias = prepareResultOverrideOptions;
933
+ InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
934
+ })(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
918
935
 
919
936
  // src/extensions/billing/prorations.ts
920
- var import_stdlib4 = require("@stripe/extensibility-sdk/stdlib");
937
+ var import_stdlib4 = require("@stripe/extensibility-sdk");
921
938
  var Prorations;
922
939
  ((Prorations2) => {
923
940
  const pricingTierModeEnumValues = new import_stdlib4._ProtoEnum({
@@ -1413,7 +1430,7 @@ var Prorations;
1413
1430
  })(Prorations || (Prorations = {}));
1414
1431
 
1415
1432
  // src/extensions/billing/recurring_billing_item_handling.ts
1416
- var import_stdlib5 = require("@stripe/extensibility-sdk/stdlib");
1433
+ var import_stdlib5 = require("@stripe/extensibility-sdk");
1417
1434
  var RecurringBillingItemHandling;
1418
1435
  ((RecurringBillingItemHandling2) => {
1419
1436
  const pricingTierModeEnumValues = new import_stdlib5._ProtoEnum({
@@ -1725,9 +1742,51 @@ var RecurringBillingItemHandling;
1725
1742
  transform: (0, import_stdlib5._translateShape)(() => CustomPricingUnitOverageRateDescriptor)
1726
1743
  }
1727
1744
  ]
1745
+ },
1746
+ {
1747
+ discriminant: "creditedItems",
1748
+ optional: false,
1749
+ branches: [
1750
+ {
1751
+ wireKey: "invoiceLineItems",
1752
+ typeKey: "invoiceLineItems",
1753
+ transform: (0, import_stdlib5._translateShape)(() => InvoiceLineItemsDescriptor)
1754
+ },
1755
+ {
1756
+ wireKey: "invoiceItem",
1757
+ typeKey: "invoiceItem",
1758
+ transform: (0, import_stdlib5._translateShape)(() => CreditedInvoiceItemDescriptor)
1759
+ }
1760
+ ]
1761
+ }
1762
+ ]
1763
+ );
1764
+ const CreditedInvoiceItemDescriptor = new import_stdlib5._ShapeDescriptor(
1765
+ "CreditedInvoiceItem",
1766
+ [{ type: "id", transform: (0, import_stdlib5._required)() }]
1767
+ );
1768
+ const InvoiceLineItemsDescriptor = new import_stdlib5._ShapeDescriptor(
1769
+ "InvoiceLineItems",
1770
+ [
1771
+ {
1772
+ type: "invoice",
1773
+ transform: (0, import_stdlib5._required)((0, import_stdlib5._translateShape)(() => CreditedInvoiceDescriptor))
1774
+ },
1775
+ {
1776
+ type: "invoiceLineItems",
1777
+ transform: (0, import_stdlib5._required)(
1778
+ (0, import_stdlib5._translateArray)((0, import_stdlib5._translateShape)(() => CreditedInvoiceLineItemDescriptor))
1779
+ )
1728
1780
  }
1729
1781
  ]
1730
1782
  );
1783
+ const CreditedInvoiceLineItemDescriptor = new import_stdlib5._ShapeDescriptor("CreditedInvoiceLineItem", [
1784
+ { type: "id", transform: (0, import_stdlib5._required)() }
1785
+ ]);
1786
+ const CreditedInvoiceDescriptor = new import_stdlib5._ShapeDescriptor(
1787
+ "CreditedInvoice",
1788
+ [{ type: "id", transform: (0, import_stdlib5._required)() }]
1789
+ );
1731
1790
  const CustomPricingUnitOverageRateDescriptor = new import_stdlib5._ShapeDescriptor("CustomPricingUnitOverageRate", [
1732
1791
  { type: "id", transform: (0, import_stdlib5._required)() },
1733
1792
  { type: "metadata", transform: (0, import_stdlib5._required)((0, import_stdlib5._translateMap)(import_stdlib5._identity, import_stdlib5._identity)) },
@@ -2055,7 +2114,7 @@ __export(workflows_exports, {
2055
2114
  });
2056
2115
 
2057
2116
  // src/extensions/core/workflows/custom_action.ts
2058
- var import_stdlib6 = require("@stripe/extensibility-sdk/stdlib");
2117
+ var import_stdlib6 = require("@stripe/extensibility-sdk");
2059
2118
  var CustomAction;
2060
2119
  ((CustomAction3) => {
2061
2120
  const GetFormStateResponseDescriptor = new import_stdlib6._ShapeDescriptor(
@@ -2207,7 +2266,7 @@ __export(workflows_exports2, {
2207
2266
  });
2208
2267
 
2209
2268
  // src/extensions/extend/workflows/custom_action.ts
2210
- var import_stdlib7 = require("@stripe/extensibility-sdk/stdlib");
2269
+ var import_stdlib7 = require("@stripe/extensibility-sdk");
2211
2270
  var CustomAction2;
2212
2271
  ((CustomAction3) => {
2213
2272
  const GetFormStateResponseDescriptor = new import_stdlib7._ShapeDescriptor(
@@ -5,14 +5,14 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/extensions/index.ts
8
- import { Decimal } from "@stripe/extensibility-sdk/stdlib";
8
+ import { Decimal } from "@stripe/extensibility-sdk";
9
9
 
10
10
  // src/extensions/billing/index.ts
11
11
  var billing_exports = {};
12
12
  __export(billing_exports, {
13
13
  Bill: () => bill_exports,
14
14
  CustomerBalanceApplication: () => CustomerBalanceApplication,
15
- InvoiceCollectionSetting: () => InvoiceCollectionSetting,
15
+ InvoiceCollectionOptions: () => InvoiceCollectionOptions,
16
16
  Prorations: () => Prorations,
17
17
  RecurringBillingItemHandling: () => RecurringBillingItemHandling
18
18
  });
@@ -42,7 +42,7 @@ import {
42
42
  _translateMap,
43
43
  _translateShape,
44
44
  _translateUnion
45
- } from "@stripe/extensibility-sdk/stdlib";
45
+ } from "@stripe/extensibility-sdk";
46
46
  var DiscountCalculation;
47
47
  ((DiscountCalculation2) => {
48
48
  const billingReasonEnumValues = new _ProtoEnum({
@@ -486,7 +486,7 @@ import {
486
486
  _translateDecimal as _translateDecimal2,
487
487
  _translateEnum as _translateEnum2,
488
488
  _translateShape as _translateShape2
489
- } from "@stripe/extensibility-sdk/stdlib";
489
+ } from "@stripe/extensibility-sdk";
490
490
  var CustomerBalanceApplication;
491
491
  ((CustomerBalanceApplication2) => {
492
492
  const currencyEnumValues = new _ProtoEnum2({
@@ -777,7 +777,7 @@ var CustomerBalanceApplication;
777
777
  CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
778
778
  })(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
779
779
 
780
- // src/extensions/billing/invoice_collection_setting.ts
780
+ // src/extensions/billing/invoice_collection_options.ts
781
781
  import {
782
782
  _ProtoEnum as _ProtoEnum3,
783
783
  _ProtoWireToType as _ProtoWireToType3,
@@ -792,17 +792,9 @@ import {
792
792
  _translateEnum as _translateEnum3,
793
793
  _translateMap as _translateMap3,
794
794
  _translateShape as _translateShape3
795
- } from "@stripe/extensibility-sdk/stdlib";
796
- var InvoiceCollectionSetting;
797
- ((InvoiceCollectionSetting2) => {
798
- const parentTypeEnumValues = new _ProtoEnum3({
799
- PARENT_TYPE_SUBSCRIPTION: "subscription",
800
- PARENT_TYPE_CONTRACT: "contract",
801
- PARENT_TYPE_QUOTE: "quote",
802
- PARENT_TYPE_BILLING_CADENCE: "billing_cadence",
803
- PARENT_TYPE_SUBSCRIPTION_SCHEDULE: "subscription_schedule",
804
- PARENT_TYPE_STANDALONE: "standalone"
805
- });
795
+ } from "@stripe/extensibility-sdk";
796
+ var InvoiceCollectionOptions;
797
+ ((InvoiceCollectionOptions2) => {
806
798
  const paymentMethodTypeEnumValues = new _ProtoEnum3({
807
799
  PAYMENT_METHOD_TYPE_CARD: "card",
808
800
  PAYMENT_METHOD_TYPE_ACH_DEBIT: "ach_debit",
@@ -833,25 +825,40 @@ var InvoiceCollectionSetting;
833
825
  PAYMENT_METHOD_TYPE_PROMPTPAY: "promptpay",
834
826
  PAYMENT_METHOD_TYPE_PAYNOW: "paynow",
835
827
  PAYMENT_METHOD_TYPE_GRABPAY: "grabpay",
836
- PAYMENT_METHOD_TYPE_FPX: "fpx"
828
+ PAYMENT_METHOD_TYPE_FPX: "fpx",
829
+ PAYMENT_METHOD_TYPE_BLIK: "blik"
837
830
  });
838
831
  const collectionMethodEnumValues = new _ProtoEnum3({
839
832
  COLLECTION_METHOD_SEND_INVOICE: "send_invoice",
840
833
  COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
841
834
  });
842
- const InvoiceCollectionResponseDescriptor = new _ShapeDescriptor3("InvoiceCollectionResponse", [
835
+ const InvoiceCollectionOptionsResultDescriptor = new _ShapeDescriptor3("InvoiceCollectionOptionsResult", [
843
836
  { type: "autoAdvance", transform: _identity3 }
844
837
  ]);
845
- const InvoiceCollectionRequestDescriptor = new _ShapeDescriptor3(
846
- "InvoiceCollectionRequest",
838
+ const InvoiceCollectionOptionsInputDescriptor = new _ShapeDescriptor3(
839
+ "InvoiceCollectionOptionsInput",
847
840
  [
848
841
  {
849
- type: "collectionSettings",
850
- transform: _required3(_translateShape3(() => CollectionSettingsDescriptor))
851
- },
852
- { type: "parent", transform: _required3(_translateShape3(() => ParentDescriptor)) }
842
+ type: "collectionOptions",
843
+ transform: _required3(_translateShape3(() => CollectionOptionsDescriptor))
844
+ }
853
845
  ],
854
846
  [
847
+ {
848
+ discriminant: "invoiceParentType",
849
+ optional: false,
850
+ branches: [
851
+ { wireKey: "cadence", typeKey: "cadence" },
852
+ { wireKey: "quote", typeKey: "quote" },
853
+ { wireKey: "schedule", typeKey: "schedule" },
854
+ {
855
+ wireKey: "subscription",
856
+ typeKey: "subscription",
857
+ transform: _translateShape3(() => SubscriptionParentDescriptor)
858
+ },
859
+ { wireKey: "contract", typeKey: "contract" }
860
+ ]
861
+ },
855
862
  {
856
863
  discriminant: "payer",
857
864
  optional: false,
@@ -869,19 +876,21 @@ var InvoiceCollectionSetting;
869
876
  { type: "id", transform: _required3() },
870
877
  { type: "metadata", transform: _required3(_translateMap3(_identity3, _identity3)) }
871
878
  ]);
872
- const ParentDescriptor = new _ShapeDescriptor3("Parent", [
873
- { type: "type", transform: _required3(_translateEnum3(parentTypeEnumValues)) },
874
- { type: "metadata", transform: _required3(_translateMap3(_identity3, _identity3)) }
875
- ]);
876
- const CollectionSettingsDescriptor = new _ShapeDescriptor3(
877
- "CollectionSettings",
879
+ const SubscriptionParentDescriptor = new _ShapeDescriptor3(
880
+ "SubscriptionParent",
881
+ [
882
+ { type: "id", transform: _required3() },
883
+ { type: "metadata", transform: _required3(_translateMap3(_identity3, _identity3)) }
884
+ ]
885
+ );
886
+ const CollectionOptionsDescriptor = new _ShapeDescriptor3(
887
+ "CollectionOptions",
878
888
  [
879
889
  { type: "autoAdvance", transform: _required3() },
880
890
  {
881
891
  type: "collectionMethod",
882
892
  transform: _required3(_translateEnum3(collectionMethodEnumValues))
883
893
  },
884
- { type: "finalizationGracePeriod", transform: _required3() },
885
894
  {
886
895
  type: "paymentMethods",
887
896
  transform: _required3(
@@ -891,53 +900,61 @@ var InvoiceCollectionSetting;
891
900
  ]
892
901
  );
893
902
  let __stripe_shim_active__ = false;
894
- function prepareArgsCollectionOverride(proto) {
903
+ function prepareArgsOverrideOptions(proto) {
895
904
  if (__stripe_shim_active__) {
896
905
  return proto;
897
906
  }
898
907
  return _apply3(
899
- InvoiceCollectionRequestDescriptor,
908
+ InvoiceCollectionOptionsInputDescriptor,
900
909
  _ProtoWireToType3,
901
910
  proto
902
911
  );
903
912
  }
904
- InvoiceCollectionSetting2.prepareArgsCollectionOverride = prepareArgsCollectionOverride;
905
- function prepareResultCollectionOverride(result) {
913
+ InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
914
+ function prepareResultOverrideOptions(result) {
906
915
  if (__stripe_shim_active__) return result;
907
916
  return _apply3(
908
- InvoiceCollectionResponseDescriptor,
917
+ InvoiceCollectionOptionsResultDescriptor,
909
918
  _TypeToProtoWire3,
910
919
  result
911
920
  );
912
921
  }
913
- InvoiceCollectionSetting2.prepareResultCollectionOverride = prepareResultCollectionOverride;
914
- function $platformWrapCollectionOverride(configTransformer) {
922
+ InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
923
+ function $platformWrapOverrideOptions(configTransformer) {
915
924
  return (cls, wireArgs, wireConfig, ctx) => {
916
925
  __stripe_shim_active__ = true;
917
926
  const instance = new cls();
918
927
  const request = _apply3(
919
- InvoiceCollectionRequestDescriptor,
928
+ InvoiceCollectionOptionsInputDescriptor,
920
929
  _ProtoWireToType3,
921
930
  wireArgs
922
931
  );
923
932
  const config = configTransformer !== void 0 ? configTransformer(wireConfig, _configAppContextFromContext3(ctx)) : wireConfig;
924
- const result = instance.collectionOverride(request, config, ctx);
933
+ const result = instance.overrideOptions(request, config, ctx);
925
934
  if (_isPromiseLike3(result)) {
926
935
  return Promise.resolve(result).then((r) => {
927
936
  const typedR = r;
928
- return _apply3(InvoiceCollectionResponseDescriptor, _TypeToProtoWire3, typedR);
937
+ return _apply3(
938
+ InvoiceCollectionOptionsResultDescriptor,
939
+ _TypeToProtoWire3,
940
+ typedR
941
+ );
929
942
  });
930
943
  }
931
944
  const typedResult = result;
932
- return _apply3(InvoiceCollectionResponseDescriptor, _TypeToProtoWire3, typedResult);
945
+ return _apply3(
946
+ InvoiceCollectionOptionsResultDescriptor,
947
+ _TypeToProtoWire3,
948
+ typedResult
949
+ );
933
950
  };
934
951
  }
935
- InvoiceCollectionSetting2.$platformWrapCollectionOverride = $platformWrapCollectionOverride;
936
- const _prepareArgsAlias = prepareArgsCollectionOverride;
937
- InvoiceCollectionSetting2.prepareArgs = _prepareArgsAlias;
938
- const _prepareResultAlias = prepareResultCollectionOverride;
939
- InvoiceCollectionSetting2.prepareResult = _prepareResultAlias;
940
- })(InvoiceCollectionSetting || (InvoiceCollectionSetting = {}));
952
+ InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
953
+ const _prepareArgsAlias = prepareArgsOverrideOptions;
954
+ InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
955
+ const _prepareResultAlias = prepareResultOverrideOptions;
956
+ InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
957
+ })(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
941
958
 
942
959
  // src/extensions/billing/prorations.ts
943
960
  import {
@@ -956,7 +973,7 @@ import {
956
973
  _translateEnum as _translateEnum4,
957
974
  _translateMap as _translateMap4,
958
975
  _translateShape as _translateShape4
959
- } from "@stripe/extensibility-sdk/stdlib";
976
+ } from "@stripe/extensibility-sdk";
960
977
  var Prorations;
961
978
  ((Prorations2) => {
962
979
  const pricingTierModeEnumValues = new _ProtoEnum4({
@@ -1470,7 +1487,7 @@ import {
1470
1487
  _translateMap as _translateMap5,
1471
1488
  _translateShape as _translateShape5,
1472
1489
  _translateUnion as _translateUnion5
1473
- } from "@stripe/extensibility-sdk/stdlib";
1490
+ } from "@stripe/extensibility-sdk";
1474
1491
  var RecurringBillingItemHandling;
1475
1492
  ((RecurringBillingItemHandling2) => {
1476
1493
  const pricingTierModeEnumValues = new _ProtoEnum5({
@@ -1782,9 +1799,51 @@ var RecurringBillingItemHandling;
1782
1799
  transform: _translateShape5(() => CustomPricingUnitOverageRateDescriptor)
1783
1800
  }
1784
1801
  ]
1802
+ },
1803
+ {
1804
+ discriminant: "creditedItems",
1805
+ optional: false,
1806
+ branches: [
1807
+ {
1808
+ wireKey: "invoiceLineItems",
1809
+ typeKey: "invoiceLineItems",
1810
+ transform: _translateShape5(() => InvoiceLineItemsDescriptor)
1811
+ },
1812
+ {
1813
+ wireKey: "invoiceItem",
1814
+ typeKey: "invoiceItem",
1815
+ transform: _translateShape5(() => CreditedInvoiceItemDescriptor)
1816
+ }
1817
+ ]
1818
+ }
1819
+ ]
1820
+ );
1821
+ const CreditedInvoiceItemDescriptor = new _ShapeDescriptor5(
1822
+ "CreditedInvoiceItem",
1823
+ [{ type: "id", transform: _required5() }]
1824
+ );
1825
+ const InvoiceLineItemsDescriptor = new _ShapeDescriptor5(
1826
+ "InvoiceLineItems",
1827
+ [
1828
+ {
1829
+ type: "invoice",
1830
+ transform: _required5(_translateShape5(() => CreditedInvoiceDescriptor))
1831
+ },
1832
+ {
1833
+ type: "invoiceLineItems",
1834
+ transform: _required5(
1835
+ _translateArray5(_translateShape5(() => CreditedInvoiceLineItemDescriptor))
1836
+ )
1785
1837
  }
1786
1838
  ]
1787
1839
  );
1840
+ const CreditedInvoiceLineItemDescriptor = new _ShapeDescriptor5("CreditedInvoiceLineItem", [
1841
+ { type: "id", transform: _required5() }
1842
+ ]);
1843
+ const CreditedInvoiceDescriptor = new _ShapeDescriptor5(
1844
+ "CreditedInvoice",
1845
+ [{ type: "id", transform: _required5() }]
1846
+ );
1788
1847
  const CustomPricingUnitOverageRateDescriptor = new _ShapeDescriptor5("CustomPricingUnitOverageRate", [
1789
1848
  { type: "id", transform: _required5() },
1790
1849
  { type: "metadata", transform: _required5(_translateMap5(_identity5, _identity5)) },
@@ -2124,7 +2183,7 @@ import {
2124
2183
  _translateArray as _translateArray6,
2125
2184
  _translateMap as _translateMap6,
2126
2185
  _translateShape as _translateShape6
2127
- } from "@stripe/extensibility-sdk/stdlib";
2186
+ } from "@stripe/extensibility-sdk";
2128
2187
  var CustomAction;
2129
2188
  ((CustomAction3) => {
2130
2189
  const GetFormStateResponseDescriptor = new _ShapeDescriptor6(
@@ -2288,7 +2347,7 @@ import {
2288
2347
  _translateArray as _translateArray7,
2289
2348
  _translateMap as _translateMap7,
2290
2349
  _translateShape as _translateShape7
2291
- } from "@stripe/extensibility-sdk/stdlib";
2350
+ } from "@stripe/extensibility-sdk";
2292
2351
  var CustomAction2;
2293
2352
  ((CustomAction3) => {
2294
2353
  const GetFormStateResponseDescriptor = new _ShapeDescriptor7(