Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / payments / index.ts
blob96a59f49d9c3745984fcf9afb8b7a9663caeaed8
1 export { getPaymentMethodStatus, queryPaymentMethodStatus } from './core/api';
2 export { DEFAULT_TAX_BILLING_ADDRESS, type BillingAddress, type BillingAddressProperty } from './core/billing-address';
3 export { getErrors, isExpired, type CardModel } from './core/cardDetails';
4 export {
5     ADDON_NAMES,
6     AddonKey,
7     AddonLimit,
8     Autopay,
9     CURRENCIES,
10     CurrencySymbols,
11     DEFAULT_CURRENCY,
12     DOMAIN_ADDON_PREFIX,
13     FREE_SUBSCRIPTION,
14     INVOICE_STATE,
15     INVOICE_TYPE,
16     IP_ADDON_PREFIX,
17     MAX_ADDRESS_ADDON,
18     MAX_BITCOIN_AMOUNT,
19     MAX_CREDIT_AMOUNT,
20     MAX_DOMAIN_PLUS_ADDON,
21     MAX_DOMAIN_PRO_ADDON,
22     MAX_IPS_ADDON,
23     MAX_MEMBER_ADDON,
24     MAX_MEMBER_SCRIBE_ADDON,
25     MAX_MEMBER_VPN_B2B_ADDON,
26     MAX_PAYPAL_AMOUNT,
27     MAX_VPN_ADDON,
28     MEMBER_ADDON_PREFIX,
29     MIN_BITCOIN_AMOUNT,
30     MIN_CREDIT_AMOUNT,
31     MIN_PAYPAL_AMOUNT_CHARGEBEE,
32     MIN_PAYPAL_AMOUNT_INHOUSE,
33     MethodStorage,
34     PAYMENT_METHOD_TYPES,
35     PAYMENT_TOKEN_STATUS,
36     PLANS,
37     PLAN_NAMES,
38     PLAN_SERVICES,
39     PLAN_TYPES,
40     SCRIBE_ADDON_PREFIX,
41     UNPAID_STATE,
42 } from './core/constants';
43 export {
44     convertPaymentIntentData,
45     type PaymentVerificator,
46     type PaymentVerificatorV5,
47     type PaymentVerificatorV5Params,
48 } from './core/createPaymentToken';
49 export {
50     ensureTokenChargeable,
51     ensureTokenChargeableV5,
52     type EnsureTokenChargeableInputs,
53     type EnsureTokenChargeableTranslations,
54 } from './core/ensureTokenChargeable';
55 export {
56     extendStatus,
57     getAvailableCurrencies,
58     getCurrencyRate,
59     getFallbackCurrency,
60     getPreferredCurrency,
61     isChargebeePaymentMethod,
62     isCreditNoteInvoice,
63     isCurrencyConversionInvoice,
64     isFreeSubscription,
65     isMainCurrency,
66     isRegionalCurrency,
67     isRegularInvoice,
68     isSignupFlow,
69     mainCurrencies,
70     type GetPreferredCurrencyParams,
71 } from './core/helpers';
72 export type {
73     AmountAndCurrency,
74     AvailablePaymentMethod,
75     CardPayment,
76     ChargeablePaymentParameters,
77     ChargeablePaymentToken,
78     ChargeableV5PaymentParameters,
79     ChargeableV5PaymentToken,
80     ChargebeeFetchedPaymentToken,
81     ChargebeeIframeEvents,
82     ChargebeeIframeHandles,
83     ChargebeeKillSwitch,
84     ChargebeeKillSwitchData,
85     CheckWithAutomaticOptions,
86     Currency,
87     ExistingPayment,
88     ExistingPaymentMethod,
89     ExtendedTokenPayment,
90     ForceEnableChargebee,
91     FreeSubscription,
92     InitializeCreditCardOptions,
93     Invoice,
94     InvoiceResponse,
95     LatestSubscription,
96     MaxKeys,
97     MultiCheckOptions,
98     MultiCheckSubscriptionData,
99     NonChargeablePaymentToken,
100     NonChargeableV5PaymentToken,
101     PayPalDetails,
102     PaymentMethodCardDetails,
103     PaymentMethodFlows,
104     PaymentMethodPaypal,
105     PaymentMethodSepa,
106     PaymentMethodStatus,
107     PaymentMethodStatusExtended,
108     PaymentMethodType,
109     PaymentTokenResult,
110     PaymentsApi,
111     PaypalPayment,
112     PlainPaymentMethodType,
113     PlanIDs,
114     RemoveEventListener,
115     RequestOptions,
116     SavedCardDetails,
117     SavedPaymentMethod,
118     SavedPaymentMethodExternal,
119     SavedPaymentMethodInternal,
120     SepaDetails,
121     TokenPayment,
122     TokenPaymentMethod,
123     V5PaymentToken,
124     WrappedCardPayment,
125     WrappedCryptoPayment,
126     WrappedPaypalPayment,
127 } from './core/interface';
128 export { PaymentMethods, initializePaymentMethods } from './core/methods';
129 export {
130     CardPaymentProcessor,
131     InvalidCardDataError,
132     type CardPaymentProcessorState,
133 } from './core/payment-processors/cardPayment';
134 export {
135     ChargebeeCardPaymentProcessor,
136     type ChargebeeCardPaymentProcessorState,
137 } from './core/payment-processors/chargebeeCardPayment';
138 export {
139     ChargebeePaypalPaymentProcessor,
140     type ChargebeePaypalModalHandles,
141 } from './core/payment-processors/chargebeePaypalPayment';
142 export { PaymentProcessor } from './core/payment-processors/paymentProcessor';
143 export { PaypalPaymentProcessor } from './core/payment-processors/paypalPayment';
144 export { SavedChargebeePaymentProcessor } from './core/payment-processors/savedChargebeePayment';
145 export { SavedPaymentProcessor } from './core/payment-processors/savedPayment';
146 export { extractIBAN } from './core/sepa';
147 export { getScribeAddonNameByPlan } from './core/subscription/helpers';
148 export type { FullPlansMap } from './core/subscription/interface';
149 export {
150     getAvailableCycles,
151     getPlanByName,
152     getPlansMap,
153     hasCycle,
154     planToPlanIDs,
155 } from './core/subscription/plans-map-wrapper';
156 export { SelectedPlan } from './core/subscription/selected-plan';
157 export {
158     isCardPayment,
159     isCheckWithAutomaticOptions,
160     isExistingPaymentMethod,
161     isPaymentMethodStatusExtended,
162     isPaypalDetails,
163     isPaypalPayment,
164     isSavedCardDetails,
165     isSavedPaymentMethodExternal,
166     isSavedPaymentMethodInternal,
167     isSavedPaymentMethodSepa,
168     isStringPLAN,
169     isTokenPayment,
170     isTokenPaymentMethod,
171     isV5PaymentToken,
172     isWrappedPaymentsVersion,
173     methodMatches,
174 } from './core/type-guards';
175 export {
176     canUseChargebee,
177     isOnSessionMigration,
178     isSplittedUser,
179     onSessionMigrationChargebeeStatus,
180     onSessionMigrationPaymentsVersion,
181     paymentMethodPaymentsVersion,
182     toV5PaymentToken,
183     v5PaymentTokenToLegacyPaymentToken,
184 } from './core/utils';