@stripe/extensibility-sdk 1.0.1 → 1.3.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.
- package/README.md +17 -15
- package/dist/config-values/generate.cjs +1 -1
- package/dist/config-values/generate.d.ts +1 -1
- package/dist/config-values/generate.d.ts.map +1 -1
- package/dist/config-values/generate.js +1 -1
- package/dist/extensibility-sdk-alpha.d.ts +29 -157
- package/dist/extensibility-sdk-beta.d.ts +29 -157
- package/dist/extensibility-sdk-config-values-internal.d.ts +1 -1
- package/dist/extensibility-sdk-extensions-alpha.d.ts +7 -157
- package/dist/extensibility-sdk-extensions-beta.d.ts +7 -157
- package/dist/extensibility-sdk-extensions-billing-bill-discount_calculation-alpha.d.ts +631 -0
- package/dist/extensibility-sdk-extensions-billing-bill-discount_calculation-beta.d.ts +631 -0
- package/dist/extensibility-sdk-extensions-billing-bill-discount_calculation-internal.d.ts +666 -0
- package/dist/extensibility-sdk-extensions-billing-bill-discount_calculation-public.d.ts +631 -0
- package/dist/extensibility-sdk-extensions-billing-customer_balance_application-alpha.d.ts +475 -0
- package/dist/extensibility-sdk-extensions-billing-customer_balance_application-beta.d.ts +475 -0
- package/dist/extensibility-sdk-extensions-billing-customer_balance_application-internal.d.ts +510 -0
- package/dist/extensibility-sdk-extensions-billing-customer_balance_application-public.d.ts +475 -0
- package/dist/extensibility-sdk-extensions-billing-invoice_collection_options-alpha.d.ts +110 -0
- package/dist/extensibility-sdk-extensions-billing-invoice_collection_options-beta.d.ts +110 -0
- package/dist/extensibility-sdk-extensions-billing-invoice_collection_options-internal.d.ts +123 -0
- package/dist/extensibility-sdk-extensions-billing-invoice_collection_options-public.d.ts +110 -0
- package/dist/extensibility-sdk-extensions-billing-prorations-alpha.d.ts +607 -0
- package/dist/extensibility-sdk-extensions-billing-prorations-beta.d.ts +607 -0
- package/dist/extensibility-sdk-extensions-billing-prorations-internal.d.ts +642 -0
- package/dist/extensibility-sdk-extensions-billing-prorations-public.d.ts +607 -0
- package/dist/extensibility-sdk-extensions-billing-recurring_billing_item_handling-alpha.d.ts +735 -0
- package/dist/extensibility-sdk-extensions-billing-recurring_billing_item_handling-beta.d.ts +735 -0
- package/dist/extensibility-sdk-extensions-billing-recurring_billing_item_handling-internal.d.ts +772 -0
- package/dist/extensibility-sdk-extensions-billing-recurring_billing_item_handling-public.d.ts +735 -0
- package/dist/extensibility-sdk-extensions-core-workflows-custom_action-alpha.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-core-workflows-custom_action-beta.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-core-workflows-custom_action-internal.d.ts +140 -0
- package/dist/extensibility-sdk-extensions-core-workflows-custom_action-public.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-extend-workflows-custom_action-alpha.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-extend-workflows-custom_action-beta.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-extend-workflows-custom_action-internal.d.ts +140 -0
- package/dist/extensibility-sdk-extensions-extend-workflows-custom_action-public.d.ts +126 -0
- package/dist/extensibility-sdk-extensions-internal.d.ts +7 -157
- package/dist/extensibility-sdk-extensions-public.d.ts +7 -157
- package/dist/extensibility-sdk-internal-internal.d.ts +2 -2
- package/dist/extensibility-sdk-internal.d.ts +145 -162
- package/dist/extensibility-sdk-public.d.ts +29 -157
- package/dist/extensibility-sdk-stdlib-alpha.d.ts +593 -0
- package/dist/extensibility-sdk-stdlib-beta.d.ts +593 -0
- package/dist/extensibility-sdk-stdlib-internal.d.ts +1096 -0
- package/dist/extensibility-sdk-stdlib-public.d.ts +593 -0
- package/dist/extensions/billing/bill/discount_calculation.cjs +437 -0
- package/dist/extensions/billing/bill/discount_calculation.d.ts +0 -20
- package/dist/extensions/billing/bill/discount_calculation.d.ts.map +1 -1
- package/dist/extensions/billing/bill/discount_calculation.js +430 -0
- package/dist/extensions/billing/customer_balance_application.cjs +297 -0
- package/dist/extensions/billing/customer_balance_application.d.ts +0 -20
- package/dist/extensions/billing/customer_balance_application.d.ts.map +1 -1
- package/dist/extensions/billing/customer_balance_application.js +284 -0
- package/dist/extensions/billing/invoice_collection_options.cjs +166 -0
- package/dist/extensions/billing/invoice_collection_options.d.ts +4 -24
- package/dist/extensions/billing/invoice_collection_options.d.ts.map +1 -1
- package/dist/extensions/billing/invoice_collection_options.js +155 -0
- package/dist/extensions/billing/prorations.cjs +501 -0
- package/dist/extensions/billing/prorations.d.ts +0 -20
- package/dist/extensions/billing/prorations.d.ts.map +1 -1
- package/dist/extensions/billing/prorations.js +492 -0
- package/dist/extensions/billing/recurring_billing_item_handling.cjs +639 -0
- package/dist/extensions/billing/recurring_billing_item_handling.d.ts +0 -30
- package/dist/extensions/billing/recurring_billing_item_handling.d.ts.map +1 -1
- package/dist/extensions/billing/recurring_billing_item_handling.js +632 -0
- package/dist/extensions/core/workflows/custom_action.cjs +124 -0
- package/dist/extensions/core/workflows/custom_action.d.ts +1 -21
- package/dist/extensions/core/workflows/custom_action.d.ts.map +1 -1
- package/dist/extensions/core/workflows/custom_action.js +111 -0
- package/dist/extensions/extend/workflows/custom_action.cjs +124 -0
- package/dist/extensions/extend/workflows/custom_action.d.ts +1 -21
- package/dist/extensions/extend/workflows/custom_action.d.ts.map +1 -1
- package/dist/extensions/extend/workflows/custom_action.js +111 -0
- package/dist/extensions/index.cjs +27 -265
- package/dist/extensions/index.js +27 -265
- package/dist/extensions/registry.d.ts +2 -2
- package/dist/extensions/registry.d.ts.map +1 -1
- package/dist/index.cjs +452 -2390
- package/dist/index.js +479 -2286
- package/dist/internal.cjs +22 -54
- package/dist/internal.js +22 -54
- package/dist/stdlib/generated.d.ts +1 -1
- package/dist/stdlib/generated.d.ts.map +1 -1
- package/dist/stdlib/index.cjs +2003 -0
- package/dist/stdlib/index.d.ts +2 -2
- package/dist/stdlib/index.d.ts.map +1 -1
- package/dist/stdlib/index.js +1943 -0
- package/dist/stdlib/transform-strategies.d.ts +46 -6
- package/dist/stdlib/transform-strategies.d.ts.map +1 -1
- package/dist/stdlib/types.d.ts +82 -0
- package/dist/stdlib/types.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +65 -1
- package/dist/stdlib/extension-method.d.ts +0 -27
- package/dist/stdlib/extension-method.d.ts.map +0 -1
|
@@ -26,7 +26,7 @@ __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");
|
|
29
|
+
var import_stdlib8 = require("@stripe/extensibility-sdk/stdlib");
|
|
30
30
|
|
|
31
31
|
// src/extensions/billing/index.ts
|
|
32
32
|
var billing_exports = {};
|
|
@@ -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");
|
|
48
|
+
var import_stdlib = require("@stripe/extensibility-sdk/stdlib");
|
|
49
49
|
var DiscountCalculation;
|
|
50
50
|
((DiscountCalculation2) => {
|
|
51
51
|
const billingReasonEnumValues = new import_stdlib._ProtoEnum({
|
|
@@ -197,6 +197,7 @@ var DiscountCalculation;
|
|
|
197
197
|
CURRENCY_MKD: "mkd",
|
|
198
198
|
CURRENCY_MMK: "mmk",
|
|
199
199
|
CURRENCY_MNT: "mnt",
|
|
200
|
+
CURRENCY_MON: "mon",
|
|
200
201
|
CURRENCY_MOP: "mop",
|
|
201
202
|
CURRENCY_MRO: "mro",
|
|
202
203
|
CURRENCY_MRU: "mru",
|
|
@@ -214,6 +215,7 @@ var DiscountCalculation;
|
|
|
214
215
|
CURRENCY_NPR: "npr",
|
|
215
216
|
CURRENCY_NZD: "nzd",
|
|
216
217
|
CURRENCY_OMR: "omr",
|
|
218
|
+
CURRENCY_ORD: "ord",
|
|
217
219
|
CURRENCY_PAB: "pab",
|
|
218
220
|
CURRENCY_PEN: "pen",
|
|
219
221
|
CURRENCY_PGK: "pgk",
|
|
@@ -265,6 +267,7 @@ var DiscountCalculation;
|
|
|
265
267
|
CURRENCY_USDB: "usdb",
|
|
266
268
|
CURRENCY_USDC: "usdc",
|
|
267
269
|
CURRENCY_USDG: "usdg",
|
|
270
|
+
CURRENCY_USDSUI: "usdsui",
|
|
268
271
|
CURRENCY_USDP: "usdp",
|
|
269
272
|
CURRENCY_USDT: "usdt",
|
|
270
273
|
CURRENCY_USN: "usn",
|
|
@@ -286,6 +289,7 @@ var DiscountCalculation;
|
|
|
286
289
|
CURRENCY_XPF: "xpf",
|
|
287
290
|
CURRENCY_XPL: "xpl",
|
|
288
291
|
CURRENCY_XUSD: "xusd",
|
|
292
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
289
293
|
CURRENCY_YER: "yer",
|
|
290
294
|
CURRENCY_ZAR: "zar",
|
|
291
295
|
CURRENCY_ZMK: "zmk",
|
|
@@ -427,30 +431,8 @@ var DiscountCalculation;
|
|
|
427
431
|
}
|
|
428
432
|
]
|
|
429
433
|
);
|
|
430
|
-
let __stripe_shim_active__ = false;
|
|
431
|
-
function prepareArgsComputeDiscounts(proto) {
|
|
432
|
-
if (__stripe_shim_active__) {
|
|
433
|
-
return proto;
|
|
434
|
-
}
|
|
435
|
-
return (0, import_stdlib._apply)(
|
|
436
|
-
DiscountableItemDescriptor,
|
|
437
|
-
import_stdlib._ProtoWireToType,
|
|
438
|
-
proto
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
DiscountCalculation2.prepareArgsComputeDiscounts = prepareArgsComputeDiscounts;
|
|
442
|
-
function prepareResultComputeDiscounts(result) {
|
|
443
|
-
if (__stripe_shim_active__) return result;
|
|
444
|
-
return (0, import_stdlib._apply)(
|
|
445
|
-
DiscountResultDescriptor,
|
|
446
|
-
import_stdlib._TypeToProtoWire,
|
|
447
|
-
result
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
DiscountCalculation2.prepareResultComputeDiscounts = prepareResultComputeDiscounts;
|
|
451
434
|
function $platformWrapComputeDiscounts(configTransformer) {
|
|
452
435
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
453
|
-
__stripe_shim_active__ = true;
|
|
454
436
|
const instance = new cls();
|
|
455
437
|
const request = (0, import_stdlib._apply)(
|
|
456
438
|
DiscountableItemDescriptor,
|
|
@@ -470,14 +452,10 @@ var DiscountCalculation;
|
|
|
470
452
|
};
|
|
471
453
|
}
|
|
472
454
|
DiscountCalculation2.$platformWrapComputeDiscounts = $platformWrapComputeDiscounts;
|
|
473
|
-
const _prepareArgsAlias = prepareArgsComputeDiscounts;
|
|
474
|
-
DiscountCalculation2.prepareArgs = _prepareArgsAlias;
|
|
475
|
-
const _prepareResultAlias = prepareResultComputeDiscounts;
|
|
476
|
-
DiscountCalculation2.prepareResult = _prepareResultAlias;
|
|
477
455
|
})(DiscountCalculation || (DiscountCalculation = {}));
|
|
478
456
|
|
|
479
457
|
// src/extensions/billing/customer_balance_application.ts
|
|
480
|
-
var import_stdlib2 = require("@stripe/extensibility-sdk");
|
|
458
|
+
var import_stdlib2 = require("@stripe/extensibility-sdk/stdlib");
|
|
481
459
|
var CustomerBalanceApplication;
|
|
482
460
|
((CustomerBalanceApplication2) => {
|
|
483
461
|
const currencyEnumValues = new import_stdlib2._ProtoEnum({
|
|
@@ -594,6 +572,7 @@ var CustomerBalanceApplication;
|
|
|
594
572
|
CURRENCY_MKD: "mkd",
|
|
595
573
|
CURRENCY_MMK: "mmk",
|
|
596
574
|
CURRENCY_MNT: "mnt",
|
|
575
|
+
CURRENCY_MON: "mon",
|
|
597
576
|
CURRENCY_MOP: "mop",
|
|
598
577
|
CURRENCY_MRO: "mro",
|
|
599
578
|
CURRENCY_MRU: "mru",
|
|
@@ -611,6 +590,7 @@ var CustomerBalanceApplication;
|
|
|
611
590
|
CURRENCY_NPR: "npr",
|
|
612
591
|
CURRENCY_NZD: "nzd",
|
|
613
592
|
CURRENCY_OMR: "omr",
|
|
593
|
+
CURRENCY_ORD: "ord",
|
|
614
594
|
CURRENCY_PAB: "pab",
|
|
615
595
|
CURRENCY_PEN: "pen",
|
|
616
596
|
CURRENCY_PGK: "pgk",
|
|
@@ -662,6 +642,7 @@ var CustomerBalanceApplication;
|
|
|
662
642
|
CURRENCY_USDB: "usdb",
|
|
663
643
|
CURRENCY_USDC: "usdc",
|
|
664
644
|
CURRENCY_USDG: "usdg",
|
|
645
|
+
CURRENCY_USDSUI: "usdsui",
|
|
665
646
|
CURRENCY_USDP: "usdp",
|
|
666
647
|
CURRENCY_USDT: "usdt",
|
|
667
648
|
CURRENCY_USN: "usn",
|
|
@@ -683,6 +664,7 @@ var CustomerBalanceApplication;
|
|
|
683
664
|
CURRENCY_XPF: "xpf",
|
|
684
665
|
CURRENCY_XPL: "xpl",
|
|
685
666
|
CURRENCY_XUSD: "xusd",
|
|
667
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
686
668
|
CURRENCY_YER: "yer",
|
|
687
669
|
CURRENCY_ZAR: "zar",
|
|
688
670
|
CURRENCY_ZMK: "zmk",
|
|
@@ -711,30 +693,8 @@ var CustomerBalanceApplication;
|
|
|
711
693
|
{ type: "amount", transform: (0, import_stdlib2._required)(import_stdlib2._translateDecimal) },
|
|
712
694
|
{ type: "currency", transform: (0, import_stdlib2._required)((0, import_stdlib2._translateEnum)(currencyEnumValues)) }
|
|
713
695
|
]);
|
|
714
|
-
let __stripe_shim_active__ = false;
|
|
715
|
-
function prepareArgsComputeAppliedCustomerBalance(proto) {
|
|
716
|
-
if (__stripe_shim_active__) {
|
|
717
|
-
return proto;
|
|
718
|
-
}
|
|
719
|
-
return (0, import_stdlib2._apply)(
|
|
720
|
-
CustomerBalanceApplicationInputDescriptor,
|
|
721
|
-
import_stdlib2._ProtoWireToType,
|
|
722
|
-
proto
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
CustomerBalanceApplication2.prepareArgsComputeAppliedCustomerBalance = prepareArgsComputeAppliedCustomerBalance;
|
|
726
|
-
function prepareResultComputeAppliedCustomerBalance(result) {
|
|
727
|
-
if (__stripe_shim_active__) return result;
|
|
728
|
-
return (0, import_stdlib2._apply)(
|
|
729
|
-
CustomerBalanceApplicationResultDescriptor,
|
|
730
|
-
import_stdlib2._TypeToProtoWire,
|
|
731
|
-
result
|
|
732
|
-
);
|
|
733
|
-
}
|
|
734
|
-
CustomerBalanceApplication2.prepareResultComputeAppliedCustomerBalance = prepareResultComputeAppliedCustomerBalance;
|
|
735
696
|
function $platformWrapComputeAppliedCustomerBalance(configTransformer) {
|
|
736
697
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
737
|
-
__stripe_shim_active__ = true;
|
|
738
698
|
const instance = new cls();
|
|
739
699
|
const request = (0, import_stdlib2._apply)(
|
|
740
700
|
CustomerBalanceApplicationInputDescriptor,
|
|
@@ -762,14 +722,10 @@ var CustomerBalanceApplication;
|
|
|
762
722
|
};
|
|
763
723
|
}
|
|
764
724
|
CustomerBalanceApplication2.$platformWrapComputeAppliedCustomerBalance = $platformWrapComputeAppliedCustomerBalance;
|
|
765
|
-
const _prepareArgsAlias = prepareArgsComputeAppliedCustomerBalance;
|
|
766
|
-
CustomerBalanceApplication2.prepareArgs = _prepareArgsAlias;
|
|
767
|
-
const _prepareResultAlias = prepareResultComputeAppliedCustomerBalance;
|
|
768
|
-
CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
|
|
769
725
|
})(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
|
|
770
726
|
|
|
771
727
|
// src/extensions/billing/invoice_collection_options.ts
|
|
772
|
-
var import_stdlib3 = require("@stripe/extensibility-sdk");
|
|
728
|
+
var import_stdlib3 = require("@stripe/extensibility-sdk/stdlib");
|
|
773
729
|
var InvoiceCollectionOptions;
|
|
774
730
|
((InvoiceCollectionOptions2) => {
|
|
775
731
|
const paymentMethodTypeEnumValues = new import_stdlib3._ProtoEnum({
|
|
@@ -810,7 +766,7 @@ var InvoiceCollectionOptions;
|
|
|
810
766
|
COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
|
|
811
767
|
});
|
|
812
768
|
const InvoiceCollectionOptionsResultDescriptor = new import_stdlib3._ShapeDescriptor("InvoiceCollectionOptionsResult", [
|
|
813
|
-
{ type: "autoAdvance", transform: import_stdlib3.
|
|
769
|
+
{ type: "autoAdvance", transform: (0, import_stdlib3._required)() }
|
|
814
770
|
]);
|
|
815
771
|
const InvoiceCollectionOptionsInputDescriptor = new import_stdlib3._ShapeDescriptor(
|
|
816
772
|
"InvoiceCollectionOptionsInput",
|
|
@@ -876,30 +832,8 @@ var InvoiceCollectionOptions;
|
|
|
876
832
|
}
|
|
877
833
|
]
|
|
878
834
|
);
|
|
879
|
-
let __stripe_shim_active__ = false;
|
|
880
|
-
function prepareArgsOverrideOptions(proto) {
|
|
881
|
-
if (__stripe_shim_active__) {
|
|
882
|
-
return proto;
|
|
883
|
-
}
|
|
884
|
-
return (0, import_stdlib3._apply)(
|
|
885
|
-
InvoiceCollectionOptionsInputDescriptor,
|
|
886
|
-
import_stdlib3._ProtoWireToType,
|
|
887
|
-
proto
|
|
888
|
-
);
|
|
889
|
-
}
|
|
890
|
-
InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
|
|
891
|
-
function prepareResultOverrideOptions(result) {
|
|
892
|
-
if (__stripe_shim_active__) return result;
|
|
893
|
-
return (0, import_stdlib3._apply)(
|
|
894
|
-
InvoiceCollectionOptionsResultDescriptor,
|
|
895
|
-
import_stdlib3._TypeToProtoWire,
|
|
896
|
-
result
|
|
897
|
-
);
|
|
898
|
-
}
|
|
899
|
-
InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
|
|
900
835
|
function $platformWrapOverrideOptions(configTransformer) {
|
|
901
836
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
902
|
-
__stripe_shim_active__ = true;
|
|
903
837
|
const instance = new cls();
|
|
904
838
|
const request = (0, import_stdlib3._apply)(
|
|
905
839
|
InvoiceCollectionOptionsInputDescriptor,
|
|
@@ -927,14 +861,10 @@ var InvoiceCollectionOptions;
|
|
|
927
861
|
};
|
|
928
862
|
}
|
|
929
863
|
InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
|
|
930
|
-
const _prepareArgsAlias = prepareArgsOverrideOptions;
|
|
931
|
-
InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
|
|
932
|
-
const _prepareResultAlias = prepareResultOverrideOptions;
|
|
933
|
-
InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
|
|
934
864
|
})(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
|
|
935
865
|
|
|
936
866
|
// src/extensions/billing/prorations.ts
|
|
937
|
-
var import_stdlib4 = require("@stripe/extensibility-sdk");
|
|
867
|
+
var import_stdlib4 = require("@stripe/extensibility-sdk/stdlib");
|
|
938
868
|
var Prorations;
|
|
939
869
|
((Prorations2) => {
|
|
940
870
|
const pricingTierModeEnumValues = new import_stdlib4._ProtoEnum({
|
|
@@ -1077,6 +1007,7 @@ var Prorations;
|
|
|
1077
1007
|
CURRENCY_MKD: "mkd",
|
|
1078
1008
|
CURRENCY_MMK: "mmk",
|
|
1079
1009
|
CURRENCY_MNT: "mnt",
|
|
1010
|
+
CURRENCY_MON: "mon",
|
|
1080
1011
|
CURRENCY_MOP: "mop",
|
|
1081
1012
|
CURRENCY_MRO: "mro",
|
|
1082
1013
|
CURRENCY_MRU: "mru",
|
|
@@ -1094,6 +1025,7 @@ var Prorations;
|
|
|
1094
1025
|
CURRENCY_NPR: "npr",
|
|
1095
1026
|
CURRENCY_NZD: "nzd",
|
|
1096
1027
|
CURRENCY_OMR: "omr",
|
|
1028
|
+
CURRENCY_ORD: "ord",
|
|
1097
1029
|
CURRENCY_PAB: "pab",
|
|
1098
1030
|
CURRENCY_PEN: "pen",
|
|
1099
1031
|
CURRENCY_PGK: "pgk",
|
|
@@ -1145,6 +1077,7 @@ var Prorations;
|
|
|
1145
1077
|
CURRENCY_USDB: "usdb",
|
|
1146
1078
|
CURRENCY_USDC: "usdc",
|
|
1147
1079
|
CURRENCY_USDG: "usdg",
|
|
1080
|
+
CURRENCY_USDSUI: "usdsui",
|
|
1148
1081
|
CURRENCY_USDP: "usdp",
|
|
1149
1082
|
CURRENCY_USDT: "usdt",
|
|
1150
1083
|
CURRENCY_USN: "usn",
|
|
@@ -1166,6 +1099,7 @@ var Prorations;
|
|
|
1166
1099
|
CURRENCY_XPF: "xpf",
|
|
1167
1100
|
CURRENCY_XPL: "xpl",
|
|
1168
1101
|
CURRENCY_XUSD: "xusd",
|
|
1102
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
1169
1103
|
CURRENCY_YER: "yer",
|
|
1170
1104
|
CURRENCY_ZAR: "zar",
|
|
1171
1105
|
CURRENCY_ZMK: "zmk",
|
|
@@ -1380,30 +1314,8 @@ var Prorations;
|
|
|
1380
1314
|
{ type: "startDate", transform: (0, import_stdlib4._required)(import_stdlib4._translateDateTime) },
|
|
1381
1315
|
{ type: "endDate", transform: (0, import_stdlib4._required)(import_stdlib4._translateDateTime) }
|
|
1382
1316
|
]);
|
|
1383
|
-
let __stripe_shim_active__ = false;
|
|
1384
|
-
function prepareArgsProrateItems(proto) {
|
|
1385
|
-
if (__stripe_shim_active__) {
|
|
1386
|
-
return proto;
|
|
1387
|
-
}
|
|
1388
|
-
return (0, import_stdlib4._apply)(
|
|
1389
|
-
ProrateItemsInputDescriptor,
|
|
1390
|
-
import_stdlib4._ProtoWireToType,
|
|
1391
|
-
proto
|
|
1392
|
-
);
|
|
1393
|
-
}
|
|
1394
|
-
Prorations2.prepareArgsProrateItems = prepareArgsProrateItems;
|
|
1395
|
-
function prepareResultProrateItems(result) {
|
|
1396
|
-
if (__stripe_shim_active__) return result;
|
|
1397
|
-
return (0, import_stdlib4._apply)(
|
|
1398
|
-
ProrateItemsResultDescriptor,
|
|
1399
|
-
import_stdlib4._TypeToProtoWire,
|
|
1400
|
-
result
|
|
1401
|
-
);
|
|
1402
|
-
}
|
|
1403
|
-
Prorations2.prepareResultProrateItems = prepareResultProrateItems;
|
|
1404
1317
|
function $platformWrapProrateItems(configTransformer) {
|
|
1405
1318
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
1406
|
-
__stripe_shim_active__ = true;
|
|
1407
1319
|
const instance = new cls();
|
|
1408
1320
|
const request = (0, import_stdlib4._apply)(
|
|
1409
1321
|
ProrateItemsInputDescriptor,
|
|
@@ -1423,14 +1335,10 @@ var Prorations;
|
|
|
1423
1335
|
};
|
|
1424
1336
|
}
|
|
1425
1337
|
Prorations2.$platformWrapProrateItems = $platformWrapProrateItems;
|
|
1426
|
-
const _prepareArgsAlias = prepareArgsProrateItems;
|
|
1427
|
-
Prorations2.prepareArgs = _prepareArgsAlias;
|
|
1428
|
-
const _prepareResultAlias = prepareResultProrateItems;
|
|
1429
|
-
Prorations2.prepareResult = _prepareResultAlias;
|
|
1430
1338
|
})(Prorations || (Prorations = {}));
|
|
1431
1339
|
|
|
1432
1340
|
// src/extensions/billing/recurring_billing_item_handling.ts
|
|
1433
|
-
var import_stdlib5 = require("@stripe/extensibility-sdk");
|
|
1341
|
+
var import_stdlib5 = require("@stripe/extensibility-sdk/stdlib");
|
|
1434
1342
|
var RecurringBillingItemHandling;
|
|
1435
1343
|
((RecurringBillingItemHandling2) => {
|
|
1436
1344
|
const pricingTierModeEnumValues = new import_stdlib5._ProtoEnum({
|
|
@@ -1573,6 +1481,7 @@ var RecurringBillingItemHandling;
|
|
|
1573
1481
|
CURRENCY_MKD: "mkd",
|
|
1574
1482
|
CURRENCY_MMK: "mmk",
|
|
1575
1483
|
CURRENCY_MNT: "mnt",
|
|
1484
|
+
CURRENCY_MON: "mon",
|
|
1576
1485
|
CURRENCY_MOP: "mop",
|
|
1577
1486
|
CURRENCY_MRO: "mro",
|
|
1578
1487
|
CURRENCY_MRU: "mru",
|
|
@@ -1590,6 +1499,7 @@ var RecurringBillingItemHandling;
|
|
|
1590
1499
|
CURRENCY_NPR: "npr",
|
|
1591
1500
|
CURRENCY_NZD: "nzd",
|
|
1592
1501
|
CURRENCY_OMR: "omr",
|
|
1502
|
+
CURRENCY_ORD: "ord",
|
|
1593
1503
|
CURRENCY_PAB: "pab",
|
|
1594
1504
|
CURRENCY_PEN: "pen",
|
|
1595
1505
|
CURRENCY_PGK: "pgk",
|
|
@@ -1641,6 +1551,7 @@ var RecurringBillingItemHandling;
|
|
|
1641
1551
|
CURRENCY_USDB: "usdb",
|
|
1642
1552
|
CURRENCY_USDC: "usdc",
|
|
1643
1553
|
CURRENCY_USDG: "usdg",
|
|
1554
|
+
CURRENCY_USDSUI: "usdsui",
|
|
1644
1555
|
CURRENCY_USDP: "usdp",
|
|
1645
1556
|
CURRENCY_USDT: "usdt",
|
|
1646
1557
|
CURRENCY_USN: "usn",
|
|
@@ -1662,6 +1573,7 @@ var RecurringBillingItemHandling;
|
|
|
1662
1573
|
CURRENCY_XPF: "xpf",
|
|
1663
1574
|
CURRENCY_XPL: "xpl",
|
|
1664
1575
|
CURRENCY_XUSD: "xusd",
|
|
1576
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
1665
1577
|
CURRENCY_YER: "yer",
|
|
1666
1578
|
CURRENCY_ZAR: "zar",
|
|
1667
1579
|
CURRENCY_ZMK: "zmk",
|
|
@@ -1972,30 +1884,8 @@ var RecurringBillingItemHandling;
|
|
|
1972
1884
|
}
|
|
1973
1885
|
]
|
|
1974
1886
|
);
|
|
1975
|
-
let __stripe_shim_active__ = false;
|
|
1976
|
-
function prepareArgsBeforeItemCreation(proto) {
|
|
1977
|
-
if (__stripe_shim_active__) {
|
|
1978
|
-
return proto;
|
|
1979
|
-
}
|
|
1980
|
-
return (0, import_stdlib5._apply)(
|
|
1981
|
-
BeforeItemCreationInputDescriptor,
|
|
1982
|
-
import_stdlib5._ProtoWireToType,
|
|
1983
|
-
proto
|
|
1984
|
-
);
|
|
1985
|
-
}
|
|
1986
|
-
RecurringBillingItemHandling2.prepareArgsBeforeItemCreation = prepareArgsBeforeItemCreation;
|
|
1987
|
-
function prepareResultBeforeItemCreation(result) {
|
|
1988
|
-
if (__stripe_shim_active__) return result;
|
|
1989
|
-
return (0, import_stdlib5._apply)(
|
|
1990
|
-
BeforeItemCreationResultDescriptor,
|
|
1991
|
-
import_stdlib5._TypeToProtoWire,
|
|
1992
|
-
result
|
|
1993
|
-
);
|
|
1994
|
-
}
|
|
1995
|
-
RecurringBillingItemHandling2.prepareResultBeforeItemCreation = prepareResultBeforeItemCreation;
|
|
1996
1887
|
function $platformWrapBeforeItemCreation(configTransformer) {
|
|
1997
1888
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
1998
|
-
__stripe_shim_active__ = true;
|
|
1999
1889
|
const instance = new cls();
|
|
2000
1890
|
const request = (0, import_stdlib5._apply)(
|
|
2001
1891
|
BeforeItemCreationInputDescriptor,
|
|
@@ -2015,29 +1905,8 @@ var RecurringBillingItemHandling;
|
|
|
2015
1905
|
};
|
|
2016
1906
|
}
|
|
2017
1907
|
RecurringBillingItemHandling2.$platformWrapBeforeItemCreation = $platformWrapBeforeItemCreation;
|
|
2018
|
-
function prepareArgsFilterItems(proto) {
|
|
2019
|
-
if (__stripe_shim_active__) {
|
|
2020
|
-
return proto;
|
|
2021
|
-
}
|
|
2022
|
-
return (0, import_stdlib5._apply)(
|
|
2023
|
-
FilterItemsInputDescriptor,
|
|
2024
|
-
import_stdlib5._ProtoWireToType,
|
|
2025
|
-
proto
|
|
2026
|
-
);
|
|
2027
|
-
}
|
|
2028
|
-
RecurringBillingItemHandling2.prepareArgsFilterItems = prepareArgsFilterItems;
|
|
2029
|
-
function prepareResultFilterItems(result) {
|
|
2030
|
-
if (__stripe_shim_active__) return result;
|
|
2031
|
-
return (0, import_stdlib5._apply)(
|
|
2032
|
-
FilterItemsResultDescriptor,
|
|
2033
|
-
import_stdlib5._TypeToProtoWire,
|
|
2034
|
-
result
|
|
2035
|
-
);
|
|
2036
|
-
}
|
|
2037
|
-
RecurringBillingItemHandling2.prepareResultFilterItems = prepareResultFilterItems;
|
|
2038
1908
|
function $platformWrapFilterItems(configTransformer) {
|
|
2039
1909
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2040
|
-
__stripe_shim_active__ = true;
|
|
2041
1910
|
const instance = new cls();
|
|
2042
1911
|
const request = (0, import_stdlib5._apply)(
|
|
2043
1912
|
FilterItemsInputDescriptor,
|
|
@@ -2057,29 +1926,8 @@ var RecurringBillingItemHandling;
|
|
|
2057
1926
|
};
|
|
2058
1927
|
}
|
|
2059
1928
|
RecurringBillingItemHandling2.$platformWrapFilterItems = $platformWrapFilterItems;
|
|
2060
|
-
function prepareArgsGroupItems(proto) {
|
|
2061
|
-
if (__stripe_shim_active__) {
|
|
2062
|
-
return proto;
|
|
2063
|
-
}
|
|
2064
|
-
return (0, import_stdlib5._apply)(
|
|
2065
|
-
GroupItemsInputDescriptor,
|
|
2066
|
-
import_stdlib5._ProtoWireToType,
|
|
2067
|
-
proto
|
|
2068
|
-
);
|
|
2069
|
-
}
|
|
2070
|
-
RecurringBillingItemHandling2.prepareArgsGroupItems = prepareArgsGroupItems;
|
|
2071
|
-
function prepareResultGroupItems(result) {
|
|
2072
|
-
if (__stripe_shim_active__) return result;
|
|
2073
|
-
return (0, import_stdlib5._apply)(
|
|
2074
|
-
GroupItemsResultDescriptor,
|
|
2075
|
-
import_stdlib5._TypeToProtoWire,
|
|
2076
|
-
result
|
|
2077
|
-
);
|
|
2078
|
-
}
|
|
2079
|
-
RecurringBillingItemHandling2.prepareResultGroupItems = prepareResultGroupItems;
|
|
2080
1929
|
function $platformWrapGroupItems(configTransformer) {
|
|
2081
1930
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2082
|
-
__stripe_shim_active__ = true;
|
|
2083
1931
|
const instance = new cls();
|
|
2084
1932
|
const request = (0, import_stdlib5._apply)(
|
|
2085
1933
|
GroupItemsInputDescriptor,
|
|
@@ -2114,13 +1962,13 @@ __export(workflows_exports, {
|
|
|
2114
1962
|
});
|
|
2115
1963
|
|
|
2116
1964
|
// src/extensions/core/workflows/custom_action.ts
|
|
2117
|
-
var import_stdlib6 = require("@stripe/extensibility-sdk");
|
|
1965
|
+
var import_stdlib6 = require("@stripe/extensibility-sdk/stdlib");
|
|
2118
1966
|
var CustomAction;
|
|
2119
1967
|
((CustomAction3) => {
|
|
2120
1968
|
const GetFormStateResponseDescriptor = new import_stdlib6._ShapeDescriptor(
|
|
2121
1969
|
"GetFormStateResponse",
|
|
2122
1970
|
[
|
|
2123
|
-
{ type: "values", transform: (0, import_stdlib6.
|
|
1971
|
+
{ type: "values", transform: (0, import_stdlib6._translateMap)(import_stdlib6._identity, import_stdlib6._identity) },
|
|
2124
1972
|
{
|
|
2125
1973
|
type: "config",
|
|
2126
1974
|
transform: (0, import_stdlib6._required)(
|
|
@@ -2166,30 +2014,8 @@ var CustomAction;
|
|
|
2166
2014
|
const ExecuteCustomActionRequestDescriptor = new import_stdlib6._ShapeDescriptor("ExecuteCustomActionRequest", [
|
|
2167
2015
|
{ type: "customInput", transform: (0, import_stdlib6._required)((0, import_stdlib6._translateMap)(import_stdlib6._identity, import_stdlib6._identity)) }
|
|
2168
2016
|
]);
|
|
2169
|
-
let __stripe_shim_active__ = false;
|
|
2170
|
-
function prepareArgsExecute(proto) {
|
|
2171
|
-
if (__stripe_shim_active__) {
|
|
2172
|
-
return proto;
|
|
2173
|
-
}
|
|
2174
|
-
return (0, import_stdlib6._apply)(
|
|
2175
|
-
ExecuteCustomActionRequestDescriptor,
|
|
2176
|
-
import_stdlib6._ProtoWireToType,
|
|
2177
|
-
proto
|
|
2178
|
-
);
|
|
2179
|
-
}
|
|
2180
|
-
CustomAction3.prepareArgsExecute = prepareArgsExecute;
|
|
2181
|
-
function prepareResultExecute(result) {
|
|
2182
|
-
if (__stripe_shim_active__) return result;
|
|
2183
|
-
return (0, import_stdlib6._apply)(
|
|
2184
|
-
ExecuteCustomActionResponseDescriptor,
|
|
2185
|
-
import_stdlib6._TypeToProtoWire,
|
|
2186
|
-
result
|
|
2187
|
-
);
|
|
2188
|
-
}
|
|
2189
|
-
CustomAction3.prepareResultExecute = prepareResultExecute;
|
|
2190
2017
|
function $platformWrapExecute(configTransformer) {
|
|
2191
2018
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2192
|
-
__stripe_shim_active__ = true;
|
|
2193
2019
|
const instance = new cls();
|
|
2194
2020
|
const request = (0, import_stdlib6._apply)(
|
|
2195
2021
|
ExecuteCustomActionRequestDescriptor,
|
|
@@ -2209,29 +2035,8 @@ var CustomAction;
|
|
|
2209
2035
|
};
|
|
2210
2036
|
}
|
|
2211
2037
|
CustomAction3.$platformWrapExecute = $platformWrapExecute;
|
|
2212
|
-
function prepareArgsGetFormState(proto) {
|
|
2213
|
-
if (__stripe_shim_active__) {
|
|
2214
|
-
return proto;
|
|
2215
|
-
}
|
|
2216
|
-
return (0, import_stdlib6._apply)(
|
|
2217
|
-
GetFormStateRequestDescriptor,
|
|
2218
|
-
import_stdlib6._ProtoWireToType,
|
|
2219
|
-
proto
|
|
2220
|
-
);
|
|
2221
|
-
}
|
|
2222
|
-
CustomAction3.prepareArgsGetFormState = prepareArgsGetFormState;
|
|
2223
|
-
function prepareResultGetFormState(result) {
|
|
2224
|
-
if (__stripe_shim_active__) return result;
|
|
2225
|
-
return (0, import_stdlib6._apply)(
|
|
2226
|
-
GetFormStateResponseDescriptor,
|
|
2227
|
-
import_stdlib6._TypeToProtoWire,
|
|
2228
|
-
result
|
|
2229
|
-
);
|
|
2230
|
-
}
|
|
2231
|
-
CustomAction3.prepareResultGetFormState = prepareResultGetFormState;
|
|
2232
2038
|
function $platformWrapGetFormState(configTransformer) {
|
|
2233
2039
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2234
|
-
__stripe_shim_active__ = true;
|
|
2235
2040
|
const instance = new cls();
|
|
2236
2041
|
const request = (0, import_stdlib6._apply)(
|
|
2237
2042
|
GetFormStateRequestDescriptor,
|
|
@@ -2266,13 +2071,13 @@ __export(workflows_exports2, {
|
|
|
2266
2071
|
});
|
|
2267
2072
|
|
|
2268
2073
|
// src/extensions/extend/workflows/custom_action.ts
|
|
2269
|
-
var import_stdlib7 = require("@stripe/extensibility-sdk");
|
|
2074
|
+
var import_stdlib7 = require("@stripe/extensibility-sdk/stdlib");
|
|
2270
2075
|
var CustomAction2;
|
|
2271
2076
|
((CustomAction3) => {
|
|
2272
2077
|
const GetFormStateResponseDescriptor = new import_stdlib7._ShapeDescriptor(
|
|
2273
2078
|
"GetFormStateResponse",
|
|
2274
2079
|
[
|
|
2275
|
-
{ type: "values", transform: (0, import_stdlib7.
|
|
2080
|
+
{ type: "values", transform: (0, import_stdlib7._translateMap)(import_stdlib7._identity, import_stdlib7._identity) },
|
|
2276
2081
|
{
|
|
2277
2082
|
type: "config",
|
|
2278
2083
|
transform: (0, import_stdlib7._required)(
|
|
@@ -2318,30 +2123,8 @@ var CustomAction2;
|
|
|
2318
2123
|
const ExecuteCustomActionRequestDescriptor = new import_stdlib7._ShapeDescriptor("ExecuteCustomActionRequest", [
|
|
2319
2124
|
{ type: "customInput", transform: (0, import_stdlib7._required)((0, import_stdlib7._translateMap)(import_stdlib7._identity, import_stdlib7._identity)) }
|
|
2320
2125
|
]);
|
|
2321
|
-
let __stripe_shim_active__ = false;
|
|
2322
|
-
function prepareArgsExecute(proto) {
|
|
2323
|
-
if (__stripe_shim_active__) {
|
|
2324
|
-
return proto;
|
|
2325
|
-
}
|
|
2326
|
-
return (0, import_stdlib7._apply)(
|
|
2327
|
-
ExecuteCustomActionRequestDescriptor,
|
|
2328
|
-
import_stdlib7._ProtoWireToType,
|
|
2329
|
-
proto
|
|
2330
|
-
);
|
|
2331
|
-
}
|
|
2332
|
-
CustomAction3.prepareArgsExecute = prepareArgsExecute;
|
|
2333
|
-
function prepareResultExecute(result) {
|
|
2334
|
-
if (__stripe_shim_active__) return result;
|
|
2335
|
-
return (0, import_stdlib7._apply)(
|
|
2336
|
-
ExecuteCustomActionResponseDescriptor,
|
|
2337
|
-
import_stdlib7._TypeToProtoWire,
|
|
2338
|
-
result
|
|
2339
|
-
);
|
|
2340
|
-
}
|
|
2341
|
-
CustomAction3.prepareResultExecute = prepareResultExecute;
|
|
2342
2126
|
function $platformWrapExecute(configTransformer) {
|
|
2343
2127
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2344
|
-
__stripe_shim_active__ = true;
|
|
2345
2128
|
const instance = new cls();
|
|
2346
2129
|
const request = (0, import_stdlib7._apply)(
|
|
2347
2130
|
ExecuteCustomActionRequestDescriptor,
|
|
@@ -2361,29 +2144,8 @@ var CustomAction2;
|
|
|
2361
2144
|
};
|
|
2362
2145
|
}
|
|
2363
2146
|
CustomAction3.$platformWrapExecute = $platformWrapExecute;
|
|
2364
|
-
function prepareArgsGetFormState(proto) {
|
|
2365
|
-
if (__stripe_shim_active__) {
|
|
2366
|
-
return proto;
|
|
2367
|
-
}
|
|
2368
|
-
return (0, import_stdlib7._apply)(
|
|
2369
|
-
GetFormStateRequestDescriptor,
|
|
2370
|
-
import_stdlib7._ProtoWireToType,
|
|
2371
|
-
proto
|
|
2372
|
-
);
|
|
2373
|
-
}
|
|
2374
|
-
CustomAction3.prepareArgsGetFormState = prepareArgsGetFormState;
|
|
2375
|
-
function prepareResultGetFormState(result) {
|
|
2376
|
-
if (__stripe_shim_active__) return result;
|
|
2377
|
-
return (0, import_stdlib7._apply)(
|
|
2378
|
-
GetFormStateResponseDescriptor,
|
|
2379
|
-
import_stdlib7._TypeToProtoWire,
|
|
2380
|
-
result
|
|
2381
|
-
);
|
|
2382
|
-
}
|
|
2383
|
-
CustomAction3.prepareResultGetFormState = prepareResultGetFormState;
|
|
2384
2147
|
function $platformWrapGetFormState(configTransformer) {
|
|
2385
2148
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2386
|
-
__stripe_shim_active__ = true;
|
|
2387
2149
|
const instance = new cls();
|
|
2388
2150
|
const request = (0, import_stdlib7._apply)(
|
|
2389
2151
|
GetFormStateRequestDescriptor,
|