@stripe/extensibility-sdk 1.1.0 → 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
package/dist/extensions/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/extensions/index.ts
|
|
8
|
-
import { Decimal } from "@stripe/extensibility-sdk";
|
|
8
|
+
import { Decimal } from "@stripe/extensibility-sdk/stdlib";
|
|
9
9
|
|
|
10
10
|
// src/extensions/billing/index.ts
|
|
11
11
|
var billing_exports = {};
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
_translateMap,
|
|
43
43
|
_translateShape,
|
|
44
44
|
_translateUnion
|
|
45
|
-
} from "@stripe/extensibility-sdk";
|
|
45
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
46
46
|
var DiscountCalculation;
|
|
47
47
|
((DiscountCalculation2) => {
|
|
48
48
|
const billingReasonEnumValues = new _ProtoEnum({
|
|
@@ -194,6 +194,7 @@ var DiscountCalculation;
|
|
|
194
194
|
CURRENCY_MKD: "mkd",
|
|
195
195
|
CURRENCY_MMK: "mmk",
|
|
196
196
|
CURRENCY_MNT: "mnt",
|
|
197
|
+
CURRENCY_MON: "mon",
|
|
197
198
|
CURRENCY_MOP: "mop",
|
|
198
199
|
CURRENCY_MRO: "mro",
|
|
199
200
|
CURRENCY_MRU: "mru",
|
|
@@ -211,6 +212,7 @@ var DiscountCalculation;
|
|
|
211
212
|
CURRENCY_NPR: "npr",
|
|
212
213
|
CURRENCY_NZD: "nzd",
|
|
213
214
|
CURRENCY_OMR: "omr",
|
|
215
|
+
CURRENCY_ORD: "ord",
|
|
214
216
|
CURRENCY_PAB: "pab",
|
|
215
217
|
CURRENCY_PEN: "pen",
|
|
216
218
|
CURRENCY_PGK: "pgk",
|
|
@@ -262,6 +264,7 @@ var DiscountCalculation;
|
|
|
262
264
|
CURRENCY_USDB: "usdb",
|
|
263
265
|
CURRENCY_USDC: "usdc",
|
|
264
266
|
CURRENCY_USDG: "usdg",
|
|
267
|
+
CURRENCY_USDSUI: "usdsui",
|
|
265
268
|
CURRENCY_USDP: "usdp",
|
|
266
269
|
CURRENCY_USDT: "usdt",
|
|
267
270
|
CURRENCY_USN: "usn",
|
|
@@ -283,6 +286,7 @@ var DiscountCalculation;
|
|
|
283
286
|
CURRENCY_XPF: "xpf",
|
|
284
287
|
CURRENCY_XPL: "xpl",
|
|
285
288
|
CURRENCY_XUSD: "xusd",
|
|
289
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
286
290
|
CURRENCY_YER: "yer",
|
|
287
291
|
CURRENCY_ZAR: "zar",
|
|
288
292
|
CURRENCY_ZMK: "zmk",
|
|
@@ -424,30 +428,8 @@ var DiscountCalculation;
|
|
|
424
428
|
}
|
|
425
429
|
]
|
|
426
430
|
);
|
|
427
|
-
let __stripe_shim_active__ = false;
|
|
428
|
-
function prepareArgsComputeDiscounts(proto) {
|
|
429
|
-
if (__stripe_shim_active__) {
|
|
430
|
-
return proto;
|
|
431
|
-
}
|
|
432
|
-
return _apply(
|
|
433
|
-
DiscountableItemDescriptor,
|
|
434
|
-
_ProtoWireToType,
|
|
435
|
-
proto
|
|
436
|
-
);
|
|
437
|
-
}
|
|
438
|
-
DiscountCalculation2.prepareArgsComputeDiscounts = prepareArgsComputeDiscounts;
|
|
439
|
-
function prepareResultComputeDiscounts(result) {
|
|
440
|
-
if (__stripe_shim_active__) return result;
|
|
441
|
-
return _apply(
|
|
442
|
-
DiscountResultDescriptor,
|
|
443
|
-
_TypeToProtoWire,
|
|
444
|
-
result
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
DiscountCalculation2.prepareResultComputeDiscounts = prepareResultComputeDiscounts;
|
|
448
431
|
function $platformWrapComputeDiscounts(configTransformer) {
|
|
449
432
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
450
|
-
__stripe_shim_active__ = true;
|
|
451
433
|
const instance = new cls();
|
|
452
434
|
const request = _apply(
|
|
453
435
|
DiscountableItemDescriptor,
|
|
@@ -467,10 +449,6 @@ var DiscountCalculation;
|
|
|
467
449
|
};
|
|
468
450
|
}
|
|
469
451
|
DiscountCalculation2.$platformWrapComputeDiscounts = $platformWrapComputeDiscounts;
|
|
470
|
-
const _prepareArgsAlias = prepareArgsComputeDiscounts;
|
|
471
|
-
DiscountCalculation2.prepareArgs = _prepareArgsAlias;
|
|
472
|
-
const _prepareResultAlias = prepareResultComputeDiscounts;
|
|
473
|
-
DiscountCalculation2.prepareResult = _prepareResultAlias;
|
|
474
452
|
})(DiscountCalculation || (DiscountCalculation = {}));
|
|
475
453
|
|
|
476
454
|
// src/extensions/billing/customer_balance_application.ts
|
|
@@ -486,7 +464,7 @@ import {
|
|
|
486
464
|
_translateDecimal as _translateDecimal2,
|
|
487
465
|
_translateEnum as _translateEnum2,
|
|
488
466
|
_translateShape as _translateShape2
|
|
489
|
-
} from "@stripe/extensibility-sdk";
|
|
467
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
490
468
|
var CustomerBalanceApplication;
|
|
491
469
|
((CustomerBalanceApplication2) => {
|
|
492
470
|
const currencyEnumValues = new _ProtoEnum2({
|
|
@@ -603,6 +581,7 @@ var CustomerBalanceApplication;
|
|
|
603
581
|
CURRENCY_MKD: "mkd",
|
|
604
582
|
CURRENCY_MMK: "mmk",
|
|
605
583
|
CURRENCY_MNT: "mnt",
|
|
584
|
+
CURRENCY_MON: "mon",
|
|
606
585
|
CURRENCY_MOP: "mop",
|
|
607
586
|
CURRENCY_MRO: "mro",
|
|
608
587
|
CURRENCY_MRU: "mru",
|
|
@@ -620,6 +599,7 @@ var CustomerBalanceApplication;
|
|
|
620
599
|
CURRENCY_NPR: "npr",
|
|
621
600
|
CURRENCY_NZD: "nzd",
|
|
622
601
|
CURRENCY_OMR: "omr",
|
|
602
|
+
CURRENCY_ORD: "ord",
|
|
623
603
|
CURRENCY_PAB: "pab",
|
|
624
604
|
CURRENCY_PEN: "pen",
|
|
625
605
|
CURRENCY_PGK: "pgk",
|
|
@@ -671,6 +651,7 @@ var CustomerBalanceApplication;
|
|
|
671
651
|
CURRENCY_USDB: "usdb",
|
|
672
652
|
CURRENCY_USDC: "usdc",
|
|
673
653
|
CURRENCY_USDG: "usdg",
|
|
654
|
+
CURRENCY_USDSUI: "usdsui",
|
|
674
655
|
CURRENCY_USDP: "usdp",
|
|
675
656
|
CURRENCY_USDT: "usdt",
|
|
676
657
|
CURRENCY_USN: "usn",
|
|
@@ -692,6 +673,7 @@ var CustomerBalanceApplication;
|
|
|
692
673
|
CURRENCY_XPF: "xpf",
|
|
693
674
|
CURRENCY_XPL: "xpl",
|
|
694
675
|
CURRENCY_XUSD: "xusd",
|
|
676
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
695
677
|
CURRENCY_YER: "yer",
|
|
696
678
|
CURRENCY_ZAR: "zar",
|
|
697
679
|
CURRENCY_ZMK: "zmk",
|
|
@@ -720,30 +702,8 @@ var CustomerBalanceApplication;
|
|
|
720
702
|
{ type: "amount", transform: _required2(_translateDecimal2) },
|
|
721
703
|
{ type: "currency", transform: _required2(_translateEnum2(currencyEnumValues)) }
|
|
722
704
|
]);
|
|
723
|
-
let __stripe_shim_active__ = false;
|
|
724
|
-
function prepareArgsComputeAppliedCustomerBalance(proto) {
|
|
725
|
-
if (__stripe_shim_active__) {
|
|
726
|
-
return proto;
|
|
727
|
-
}
|
|
728
|
-
return _apply2(
|
|
729
|
-
CustomerBalanceApplicationInputDescriptor,
|
|
730
|
-
_ProtoWireToType2,
|
|
731
|
-
proto
|
|
732
|
-
);
|
|
733
|
-
}
|
|
734
|
-
CustomerBalanceApplication2.prepareArgsComputeAppliedCustomerBalance = prepareArgsComputeAppliedCustomerBalance;
|
|
735
|
-
function prepareResultComputeAppliedCustomerBalance(result) {
|
|
736
|
-
if (__stripe_shim_active__) return result;
|
|
737
|
-
return _apply2(
|
|
738
|
-
CustomerBalanceApplicationResultDescriptor,
|
|
739
|
-
_TypeToProtoWire2,
|
|
740
|
-
result
|
|
741
|
-
);
|
|
742
|
-
}
|
|
743
|
-
CustomerBalanceApplication2.prepareResultComputeAppliedCustomerBalance = prepareResultComputeAppliedCustomerBalance;
|
|
744
705
|
function $platformWrapComputeAppliedCustomerBalance(configTransformer) {
|
|
745
706
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
746
|
-
__stripe_shim_active__ = true;
|
|
747
707
|
const instance = new cls();
|
|
748
708
|
const request = _apply2(
|
|
749
709
|
CustomerBalanceApplicationInputDescriptor,
|
|
@@ -771,10 +731,6 @@ var CustomerBalanceApplication;
|
|
|
771
731
|
};
|
|
772
732
|
}
|
|
773
733
|
CustomerBalanceApplication2.$platformWrapComputeAppliedCustomerBalance = $platformWrapComputeAppliedCustomerBalance;
|
|
774
|
-
const _prepareArgsAlias = prepareArgsComputeAppliedCustomerBalance;
|
|
775
|
-
CustomerBalanceApplication2.prepareArgs = _prepareArgsAlias;
|
|
776
|
-
const _prepareResultAlias = prepareResultComputeAppliedCustomerBalance;
|
|
777
|
-
CustomerBalanceApplication2.prepareResult = _prepareResultAlias;
|
|
778
734
|
})(CustomerBalanceApplication || (CustomerBalanceApplication = {}));
|
|
779
735
|
|
|
780
736
|
// src/extensions/billing/invoice_collection_options.ts
|
|
@@ -792,7 +748,7 @@ import {
|
|
|
792
748
|
_translateEnum as _translateEnum3,
|
|
793
749
|
_translateMap as _translateMap3,
|
|
794
750
|
_translateShape as _translateShape3
|
|
795
|
-
} from "@stripe/extensibility-sdk";
|
|
751
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
796
752
|
var InvoiceCollectionOptions;
|
|
797
753
|
((InvoiceCollectionOptions2) => {
|
|
798
754
|
const paymentMethodTypeEnumValues = new _ProtoEnum3({
|
|
@@ -833,7 +789,7 @@ var InvoiceCollectionOptions;
|
|
|
833
789
|
COLLECTION_METHOD_CHARGE_AUTOMATICALLY: "charge_automatically"
|
|
834
790
|
});
|
|
835
791
|
const InvoiceCollectionOptionsResultDescriptor = new _ShapeDescriptor3("InvoiceCollectionOptionsResult", [
|
|
836
|
-
{ type: "autoAdvance", transform:
|
|
792
|
+
{ type: "autoAdvance", transform: _required3() }
|
|
837
793
|
]);
|
|
838
794
|
const InvoiceCollectionOptionsInputDescriptor = new _ShapeDescriptor3(
|
|
839
795
|
"InvoiceCollectionOptionsInput",
|
|
@@ -899,30 +855,8 @@ var InvoiceCollectionOptions;
|
|
|
899
855
|
}
|
|
900
856
|
]
|
|
901
857
|
);
|
|
902
|
-
let __stripe_shim_active__ = false;
|
|
903
|
-
function prepareArgsOverrideOptions(proto) {
|
|
904
|
-
if (__stripe_shim_active__) {
|
|
905
|
-
return proto;
|
|
906
|
-
}
|
|
907
|
-
return _apply3(
|
|
908
|
-
InvoiceCollectionOptionsInputDescriptor,
|
|
909
|
-
_ProtoWireToType3,
|
|
910
|
-
proto
|
|
911
|
-
);
|
|
912
|
-
}
|
|
913
|
-
InvoiceCollectionOptions2.prepareArgsOverrideOptions = prepareArgsOverrideOptions;
|
|
914
|
-
function prepareResultOverrideOptions(result) {
|
|
915
|
-
if (__stripe_shim_active__) return result;
|
|
916
|
-
return _apply3(
|
|
917
|
-
InvoiceCollectionOptionsResultDescriptor,
|
|
918
|
-
_TypeToProtoWire3,
|
|
919
|
-
result
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
InvoiceCollectionOptions2.prepareResultOverrideOptions = prepareResultOverrideOptions;
|
|
923
858
|
function $platformWrapOverrideOptions(configTransformer) {
|
|
924
859
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
925
|
-
__stripe_shim_active__ = true;
|
|
926
860
|
const instance = new cls();
|
|
927
861
|
const request = _apply3(
|
|
928
862
|
InvoiceCollectionOptionsInputDescriptor,
|
|
@@ -950,10 +884,6 @@ var InvoiceCollectionOptions;
|
|
|
950
884
|
};
|
|
951
885
|
}
|
|
952
886
|
InvoiceCollectionOptions2.$platformWrapOverrideOptions = $platformWrapOverrideOptions;
|
|
953
|
-
const _prepareArgsAlias = prepareArgsOverrideOptions;
|
|
954
|
-
InvoiceCollectionOptions2.prepareArgs = _prepareArgsAlias;
|
|
955
|
-
const _prepareResultAlias = prepareResultOverrideOptions;
|
|
956
|
-
InvoiceCollectionOptions2.prepareResult = _prepareResultAlias;
|
|
957
887
|
})(InvoiceCollectionOptions || (InvoiceCollectionOptions = {}));
|
|
958
888
|
|
|
959
889
|
// src/extensions/billing/prorations.ts
|
|
@@ -973,7 +903,7 @@ import {
|
|
|
973
903
|
_translateEnum as _translateEnum4,
|
|
974
904
|
_translateMap as _translateMap4,
|
|
975
905
|
_translateShape as _translateShape4
|
|
976
|
-
} from "@stripe/extensibility-sdk";
|
|
906
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
977
907
|
var Prorations;
|
|
978
908
|
((Prorations2) => {
|
|
979
909
|
const pricingTierModeEnumValues = new _ProtoEnum4({
|
|
@@ -1116,6 +1046,7 @@ var Prorations;
|
|
|
1116
1046
|
CURRENCY_MKD: "mkd",
|
|
1117
1047
|
CURRENCY_MMK: "mmk",
|
|
1118
1048
|
CURRENCY_MNT: "mnt",
|
|
1049
|
+
CURRENCY_MON: "mon",
|
|
1119
1050
|
CURRENCY_MOP: "mop",
|
|
1120
1051
|
CURRENCY_MRO: "mro",
|
|
1121
1052
|
CURRENCY_MRU: "mru",
|
|
@@ -1133,6 +1064,7 @@ var Prorations;
|
|
|
1133
1064
|
CURRENCY_NPR: "npr",
|
|
1134
1065
|
CURRENCY_NZD: "nzd",
|
|
1135
1066
|
CURRENCY_OMR: "omr",
|
|
1067
|
+
CURRENCY_ORD: "ord",
|
|
1136
1068
|
CURRENCY_PAB: "pab",
|
|
1137
1069
|
CURRENCY_PEN: "pen",
|
|
1138
1070
|
CURRENCY_PGK: "pgk",
|
|
@@ -1184,6 +1116,7 @@ var Prorations;
|
|
|
1184
1116
|
CURRENCY_USDB: "usdb",
|
|
1185
1117
|
CURRENCY_USDC: "usdc",
|
|
1186
1118
|
CURRENCY_USDG: "usdg",
|
|
1119
|
+
CURRENCY_USDSUI: "usdsui",
|
|
1187
1120
|
CURRENCY_USDP: "usdp",
|
|
1188
1121
|
CURRENCY_USDT: "usdt",
|
|
1189
1122
|
CURRENCY_USN: "usn",
|
|
@@ -1205,6 +1138,7 @@ var Prorations;
|
|
|
1205
1138
|
CURRENCY_XPF: "xpf",
|
|
1206
1139
|
CURRENCY_XPL: "xpl",
|
|
1207
1140
|
CURRENCY_XUSD: "xusd",
|
|
1141
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
1208
1142
|
CURRENCY_YER: "yer",
|
|
1209
1143
|
CURRENCY_ZAR: "zar",
|
|
1210
1144
|
CURRENCY_ZMK: "zmk",
|
|
@@ -1419,30 +1353,8 @@ var Prorations;
|
|
|
1419
1353
|
{ type: "startDate", transform: _required4(_translateDateTime4) },
|
|
1420
1354
|
{ type: "endDate", transform: _required4(_translateDateTime4) }
|
|
1421
1355
|
]);
|
|
1422
|
-
let __stripe_shim_active__ = false;
|
|
1423
|
-
function prepareArgsProrateItems(proto) {
|
|
1424
|
-
if (__stripe_shim_active__) {
|
|
1425
|
-
return proto;
|
|
1426
|
-
}
|
|
1427
|
-
return _apply4(
|
|
1428
|
-
ProrateItemsInputDescriptor,
|
|
1429
|
-
_ProtoWireToType4,
|
|
1430
|
-
proto
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
Prorations2.prepareArgsProrateItems = prepareArgsProrateItems;
|
|
1434
|
-
function prepareResultProrateItems(result) {
|
|
1435
|
-
if (__stripe_shim_active__) return result;
|
|
1436
|
-
return _apply4(
|
|
1437
|
-
ProrateItemsResultDescriptor,
|
|
1438
|
-
_TypeToProtoWire4,
|
|
1439
|
-
result
|
|
1440
|
-
);
|
|
1441
|
-
}
|
|
1442
|
-
Prorations2.prepareResultProrateItems = prepareResultProrateItems;
|
|
1443
1356
|
function $platformWrapProrateItems(configTransformer) {
|
|
1444
1357
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
1445
|
-
__stripe_shim_active__ = true;
|
|
1446
1358
|
const instance = new cls();
|
|
1447
1359
|
const request = _apply4(
|
|
1448
1360
|
ProrateItemsInputDescriptor,
|
|
@@ -1462,10 +1374,6 @@ var Prorations;
|
|
|
1462
1374
|
};
|
|
1463
1375
|
}
|
|
1464
1376
|
Prorations2.$platformWrapProrateItems = $platformWrapProrateItems;
|
|
1465
|
-
const _prepareArgsAlias = prepareArgsProrateItems;
|
|
1466
|
-
Prorations2.prepareArgs = _prepareArgsAlias;
|
|
1467
|
-
const _prepareResultAlias = prepareResultProrateItems;
|
|
1468
|
-
Prorations2.prepareResult = _prepareResultAlias;
|
|
1469
1377
|
})(Prorations || (Prorations = {}));
|
|
1470
1378
|
|
|
1471
1379
|
// src/extensions/billing/recurring_billing_item_handling.ts
|
|
@@ -1487,7 +1395,7 @@ import {
|
|
|
1487
1395
|
_translateMap as _translateMap5,
|
|
1488
1396
|
_translateShape as _translateShape5,
|
|
1489
1397
|
_translateUnion as _translateUnion5
|
|
1490
|
-
} from "@stripe/extensibility-sdk";
|
|
1398
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
1491
1399
|
var RecurringBillingItemHandling;
|
|
1492
1400
|
((RecurringBillingItemHandling2) => {
|
|
1493
1401
|
const pricingTierModeEnumValues = new _ProtoEnum5({
|
|
@@ -1630,6 +1538,7 @@ var RecurringBillingItemHandling;
|
|
|
1630
1538
|
CURRENCY_MKD: "mkd",
|
|
1631
1539
|
CURRENCY_MMK: "mmk",
|
|
1632
1540
|
CURRENCY_MNT: "mnt",
|
|
1541
|
+
CURRENCY_MON: "mon",
|
|
1633
1542
|
CURRENCY_MOP: "mop",
|
|
1634
1543
|
CURRENCY_MRO: "mro",
|
|
1635
1544
|
CURRENCY_MRU: "mru",
|
|
@@ -1647,6 +1556,7 @@ var RecurringBillingItemHandling;
|
|
|
1647
1556
|
CURRENCY_NPR: "npr",
|
|
1648
1557
|
CURRENCY_NZD: "nzd",
|
|
1649
1558
|
CURRENCY_OMR: "omr",
|
|
1559
|
+
CURRENCY_ORD: "ord",
|
|
1650
1560
|
CURRENCY_PAB: "pab",
|
|
1651
1561
|
CURRENCY_PEN: "pen",
|
|
1652
1562
|
CURRENCY_PGK: "pgk",
|
|
@@ -1698,6 +1608,7 @@ var RecurringBillingItemHandling;
|
|
|
1698
1608
|
CURRENCY_USDB: "usdb",
|
|
1699
1609
|
CURRENCY_USDC: "usdc",
|
|
1700
1610
|
CURRENCY_USDG: "usdg",
|
|
1611
|
+
CURRENCY_USDSUI: "usdsui",
|
|
1701
1612
|
CURRENCY_USDP: "usdp",
|
|
1702
1613
|
CURRENCY_USDT: "usdt",
|
|
1703
1614
|
CURRENCY_USN: "usn",
|
|
@@ -1719,6 +1630,7 @@ var RecurringBillingItemHandling;
|
|
|
1719
1630
|
CURRENCY_XPF: "xpf",
|
|
1720
1631
|
CURRENCY_XPL: "xpl",
|
|
1721
1632
|
CURRENCY_XUSD: "xusd",
|
|
1633
|
+
CURRENCY_OPEN_USD: "open_usd",
|
|
1722
1634
|
CURRENCY_YER: "yer",
|
|
1723
1635
|
CURRENCY_ZAR: "zar",
|
|
1724
1636
|
CURRENCY_ZMK: "zmk",
|
|
@@ -2029,30 +1941,8 @@ var RecurringBillingItemHandling;
|
|
|
2029
1941
|
}
|
|
2030
1942
|
]
|
|
2031
1943
|
);
|
|
2032
|
-
let __stripe_shim_active__ = false;
|
|
2033
|
-
function prepareArgsBeforeItemCreation(proto) {
|
|
2034
|
-
if (__stripe_shim_active__) {
|
|
2035
|
-
return proto;
|
|
2036
|
-
}
|
|
2037
|
-
return _apply5(
|
|
2038
|
-
BeforeItemCreationInputDescriptor,
|
|
2039
|
-
_ProtoWireToType5,
|
|
2040
|
-
proto
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
RecurringBillingItemHandling2.prepareArgsBeforeItemCreation = prepareArgsBeforeItemCreation;
|
|
2044
|
-
function prepareResultBeforeItemCreation(result) {
|
|
2045
|
-
if (__stripe_shim_active__) return result;
|
|
2046
|
-
return _apply5(
|
|
2047
|
-
BeforeItemCreationResultDescriptor,
|
|
2048
|
-
_TypeToProtoWire5,
|
|
2049
|
-
result
|
|
2050
|
-
);
|
|
2051
|
-
}
|
|
2052
|
-
RecurringBillingItemHandling2.prepareResultBeforeItemCreation = prepareResultBeforeItemCreation;
|
|
2053
1944
|
function $platformWrapBeforeItemCreation(configTransformer) {
|
|
2054
1945
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2055
|
-
__stripe_shim_active__ = true;
|
|
2056
1946
|
const instance = new cls();
|
|
2057
1947
|
const request = _apply5(
|
|
2058
1948
|
BeforeItemCreationInputDescriptor,
|
|
@@ -2072,29 +1962,8 @@ var RecurringBillingItemHandling;
|
|
|
2072
1962
|
};
|
|
2073
1963
|
}
|
|
2074
1964
|
RecurringBillingItemHandling2.$platformWrapBeforeItemCreation = $platformWrapBeforeItemCreation;
|
|
2075
|
-
function prepareArgsFilterItems(proto) {
|
|
2076
|
-
if (__stripe_shim_active__) {
|
|
2077
|
-
return proto;
|
|
2078
|
-
}
|
|
2079
|
-
return _apply5(
|
|
2080
|
-
FilterItemsInputDescriptor,
|
|
2081
|
-
_ProtoWireToType5,
|
|
2082
|
-
proto
|
|
2083
|
-
);
|
|
2084
|
-
}
|
|
2085
|
-
RecurringBillingItemHandling2.prepareArgsFilterItems = prepareArgsFilterItems;
|
|
2086
|
-
function prepareResultFilterItems(result) {
|
|
2087
|
-
if (__stripe_shim_active__) return result;
|
|
2088
|
-
return _apply5(
|
|
2089
|
-
FilterItemsResultDescriptor,
|
|
2090
|
-
_TypeToProtoWire5,
|
|
2091
|
-
result
|
|
2092
|
-
);
|
|
2093
|
-
}
|
|
2094
|
-
RecurringBillingItemHandling2.prepareResultFilterItems = prepareResultFilterItems;
|
|
2095
1965
|
function $platformWrapFilterItems(configTransformer) {
|
|
2096
1966
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2097
|
-
__stripe_shim_active__ = true;
|
|
2098
1967
|
const instance = new cls();
|
|
2099
1968
|
const request = _apply5(
|
|
2100
1969
|
FilterItemsInputDescriptor,
|
|
@@ -2114,29 +1983,8 @@ var RecurringBillingItemHandling;
|
|
|
2114
1983
|
};
|
|
2115
1984
|
}
|
|
2116
1985
|
RecurringBillingItemHandling2.$platformWrapFilterItems = $platformWrapFilterItems;
|
|
2117
|
-
function prepareArgsGroupItems(proto) {
|
|
2118
|
-
if (__stripe_shim_active__) {
|
|
2119
|
-
return proto;
|
|
2120
|
-
}
|
|
2121
|
-
return _apply5(
|
|
2122
|
-
GroupItemsInputDescriptor,
|
|
2123
|
-
_ProtoWireToType5,
|
|
2124
|
-
proto
|
|
2125
|
-
);
|
|
2126
|
-
}
|
|
2127
|
-
RecurringBillingItemHandling2.prepareArgsGroupItems = prepareArgsGroupItems;
|
|
2128
|
-
function prepareResultGroupItems(result) {
|
|
2129
|
-
if (__stripe_shim_active__) return result;
|
|
2130
|
-
return _apply5(
|
|
2131
|
-
GroupItemsResultDescriptor,
|
|
2132
|
-
_TypeToProtoWire5,
|
|
2133
|
-
result
|
|
2134
|
-
);
|
|
2135
|
-
}
|
|
2136
|
-
RecurringBillingItemHandling2.prepareResultGroupItems = prepareResultGroupItems;
|
|
2137
1986
|
function $platformWrapGroupItems(configTransformer) {
|
|
2138
1987
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2139
|
-
__stripe_shim_active__ = true;
|
|
2140
1988
|
const instance = new cls();
|
|
2141
1989
|
const request = _apply5(
|
|
2142
1990
|
GroupItemsInputDescriptor,
|
|
@@ -2183,13 +2031,13 @@ import {
|
|
|
2183
2031
|
_translateArray as _translateArray6,
|
|
2184
2032
|
_translateMap as _translateMap6,
|
|
2185
2033
|
_translateShape as _translateShape6
|
|
2186
|
-
} from "@stripe/extensibility-sdk";
|
|
2034
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
2187
2035
|
var CustomAction;
|
|
2188
2036
|
((CustomAction3) => {
|
|
2189
2037
|
const GetFormStateResponseDescriptor = new _ShapeDescriptor6(
|
|
2190
2038
|
"GetFormStateResponse",
|
|
2191
2039
|
[
|
|
2192
|
-
{ type: "values", transform:
|
|
2040
|
+
{ type: "values", transform: _translateMap6(_identity6, _identity6) },
|
|
2193
2041
|
{
|
|
2194
2042
|
type: "config",
|
|
2195
2043
|
transform: _required6(
|
|
@@ -2235,30 +2083,8 @@ var CustomAction;
|
|
|
2235
2083
|
const ExecuteCustomActionRequestDescriptor = new _ShapeDescriptor6("ExecuteCustomActionRequest", [
|
|
2236
2084
|
{ type: "customInput", transform: _required6(_translateMap6(_identity6, _identity6)) }
|
|
2237
2085
|
]);
|
|
2238
|
-
let __stripe_shim_active__ = false;
|
|
2239
|
-
function prepareArgsExecute(proto) {
|
|
2240
|
-
if (__stripe_shim_active__) {
|
|
2241
|
-
return proto;
|
|
2242
|
-
}
|
|
2243
|
-
return _apply6(
|
|
2244
|
-
ExecuteCustomActionRequestDescriptor,
|
|
2245
|
-
_ProtoWireToType6,
|
|
2246
|
-
proto
|
|
2247
|
-
);
|
|
2248
|
-
}
|
|
2249
|
-
CustomAction3.prepareArgsExecute = prepareArgsExecute;
|
|
2250
|
-
function prepareResultExecute(result) {
|
|
2251
|
-
if (__stripe_shim_active__) return result;
|
|
2252
|
-
return _apply6(
|
|
2253
|
-
ExecuteCustomActionResponseDescriptor,
|
|
2254
|
-
_TypeToProtoWire6,
|
|
2255
|
-
result
|
|
2256
|
-
);
|
|
2257
|
-
}
|
|
2258
|
-
CustomAction3.prepareResultExecute = prepareResultExecute;
|
|
2259
2086
|
function $platformWrapExecute(configTransformer) {
|
|
2260
2087
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2261
|
-
__stripe_shim_active__ = true;
|
|
2262
2088
|
const instance = new cls();
|
|
2263
2089
|
const request = _apply6(
|
|
2264
2090
|
ExecuteCustomActionRequestDescriptor,
|
|
@@ -2278,29 +2104,8 @@ var CustomAction;
|
|
|
2278
2104
|
};
|
|
2279
2105
|
}
|
|
2280
2106
|
CustomAction3.$platformWrapExecute = $platformWrapExecute;
|
|
2281
|
-
function prepareArgsGetFormState(proto) {
|
|
2282
|
-
if (__stripe_shim_active__) {
|
|
2283
|
-
return proto;
|
|
2284
|
-
}
|
|
2285
|
-
return _apply6(
|
|
2286
|
-
GetFormStateRequestDescriptor,
|
|
2287
|
-
_ProtoWireToType6,
|
|
2288
|
-
proto
|
|
2289
|
-
);
|
|
2290
|
-
}
|
|
2291
|
-
CustomAction3.prepareArgsGetFormState = prepareArgsGetFormState;
|
|
2292
|
-
function prepareResultGetFormState(result) {
|
|
2293
|
-
if (__stripe_shim_active__) return result;
|
|
2294
|
-
return _apply6(
|
|
2295
|
-
GetFormStateResponseDescriptor,
|
|
2296
|
-
_TypeToProtoWire6,
|
|
2297
|
-
result
|
|
2298
|
-
);
|
|
2299
|
-
}
|
|
2300
|
-
CustomAction3.prepareResultGetFormState = prepareResultGetFormState;
|
|
2301
2107
|
function $platformWrapGetFormState(configTransformer) {
|
|
2302
2108
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2303
|
-
__stripe_shim_active__ = true;
|
|
2304
2109
|
const instance = new cls();
|
|
2305
2110
|
const request = _apply6(
|
|
2306
2111
|
GetFormStateRequestDescriptor,
|
|
@@ -2347,13 +2152,13 @@ import {
|
|
|
2347
2152
|
_translateArray as _translateArray7,
|
|
2348
2153
|
_translateMap as _translateMap7,
|
|
2349
2154
|
_translateShape as _translateShape7
|
|
2350
|
-
} from "@stripe/extensibility-sdk";
|
|
2155
|
+
} from "@stripe/extensibility-sdk/stdlib";
|
|
2351
2156
|
var CustomAction2;
|
|
2352
2157
|
((CustomAction3) => {
|
|
2353
2158
|
const GetFormStateResponseDescriptor = new _ShapeDescriptor7(
|
|
2354
2159
|
"GetFormStateResponse",
|
|
2355
2160
|
[
|
|
2356
|
-
{ type: "values", transform:
|
|
2161
|
+
{ type: "values", transform: _translateMap7(_identity7, _identity7) },
|
|
2357
2162
|
{
|
|
2358
2163
|
type: "config",
|
|
2359
2164
|
transform: _required7(
|
|
@@ -2399,30 +2204,8 @@ var CustomAction2;
|
|
|
2399
2204
|
const ExecuteCustomActionRequestDescriptor = new _ShapeDescriptor7("ExecuteCustomActionRequest", [
|
|
2400
2205
|
{ type: "customInput", transform: _required7(_translateMap7(_identity7, _identity7)) }
|
|
2401
2206
|
]);
|
|
2402
|
-
let __stripe_shim_active__ = false;
|
|
2403
|
-
function prepareArgsExecute(proto) {
|
|
2404
|
-
if (__stripe_shim_active__) {
|
|
2405
|
-
return proto;
|
|
2406
|
-
}
|
|
2407
|
-
return _apply7(
|
|
2408
|
-
ExecuteCustomActionRequestDescriptor,
|
|
2409
|
-
_ProtoWireToType7,
|
|
2410
|
-
proto
|
|
2411
|
-
);
|
|
2412
|
-
}
|
|
2413
|
-
CustomAction3.prepareArgsExecute = prepareArgsExecute;
|
|
2414
|
-
function prepareResultExecute(result) {
|
|
2415
|
-
if (__stripe_shim_active__) return result;
|
|
2416
|
-
return _apply7(
|
|
2417
|
-
ExecuteCustomActionResponseDescriptor,
|
|
2418
|
-
_TypeToProtoWire7,
|
|
2419
|
-
result
|
|
2420
|
-
);
|
|
2421
|
-
}
|
|
2422
|
-
CustomAction3.prepareResultExecute = prepareResultExecute;
|
|
2423
2207
|
function $platformWrapExecute(configTransformer) {
|
|
2424
2208
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2425
|
-
__stripe_shim_active__ = true;
|
|
2426
2209
|
const instance = new cls();
|
|
2427
2210
|
const request = _apply7(
|
|
2428
2211
|
ExecuteCustomActionRequestDescriptor,
|
|
@@ -2442,29 +2225,8 @@ var CustomAction2;
|
|
|
2442
2225
|
};
|
|
2443
2226
|
}
|
|
2444
2227
|
CustomAction3.$platformWrapExecute = $platformWrapExecute;
|
|
2445
|
-
function prepareArgsGetFormState(proto) {
|
|
2446
|
-
if (__stripe_shim_active__) {
|
|
2447
|
-
return proto;
|
|
2448
|
-
}
|
|
2449
|
-
return _apply7(
|
|
2450
|
-
GetFormStateRequestDescriptor,
|
|
2451
|
-
_ProtoWireToType7,
|
|
2452
|
-
proto
|
|
2453
|
-
);
|
|
2454
|
-
}
|
|
2455
|
-
CustomAction3.prepareArgsGetFormState = prepareArgsGetFormState;
|
|
2456
|
-
function prepareResultGetFormState(result) {
|
|
2457
|
-
if (__stripe_shim_active__) return result;
|
|
2458
|
-
return _apply7(
|
|
2459
|
-
GetFormStateResponseDescriptor,
|
|
2460
|
-
_TypeToProtoWire7,
|
|
2461
|
-
result
|
|
2462
|
-
);
|
|
2463
|
-
}
|
|
2464
|
-
CustomAction3.prepareResultGetFormState = prepareResultGetFormState;
|
|
2465
2228
|
function $platformWrapGetFormState(configTransformer) {
|
|
2466
2229
|
return (cls, wireArgs, wireConfig, ctx) => {
|
|
2467
|
-
__stripe_shim_active__ = true;
|
|
2468
2230
|
const instance = new cls();
|
|
2469
2231
|
const request = _apply7(
|
|
2470
2232
|
GetFormStateRequestDescriptor,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/** @internal */
|
|
2
2
|
export interface ExtensionMethodEntry {
|
|
3
3
|
outputName: string;
|
|
4
|
-
prepareArgsName: string;
|
|
5
|
-
prepareResultName: string;
|
|
6
4
|
platformWrapName: string;
|
|
7
5
|
}
|
|
8
6
|
/** @internal */
|
|
@@ -10,6 +8,8 @@ export interface ExtensionInterfaceEntry {
|
|
|
10
8
|
interfaceId: string;
|
|
11
9
|
sdkFqn: string;
|
|
12
10
|
namespacePath: string[];
|
|
11
|
+
runtimeModuleSpecifier: string;
|
|
12
|
+
runtimeExportName: string;
|
|
13
13
|
methods: ExtensionMethodEntry[];
|
|
14
14
|
}
|
|
15
15
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/extensions/registry.ts"],"names":[],"mappings":"AAEA,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/extensions/registry.ts"],"names":[],"mappings":"AAEA,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACjC;AA8FD,gBAAgB;AAChB,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAEnE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAExE,CAAC"}
|