@funkit/connect-rn 10.0.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/dist/{chunk-R3RNNOBY.js → chunk-4YEMLHEX.js} +86 -12
- package/dist/chunk-4YEMLHEX.js.map +7 -0
- package/dist/{chunk-264ZLQVH.js → chunk-HD4PRG6A.js} +3 -3
- package/dist/{chunk-264ZLQVH.js.map → chunk-HD4PRG6A.js.map} +2 -2
- package/dist/{chunk-K2VB5PT5.js → chunk-W2JG7SK2.js} +322 -9
- package/dist/chunk-W2JG7SK2.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana.js +3 -3
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19938 -16160
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +3 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +680 -12
- package/dist/preview.js.map +4 -4
- package/dist/src/components/LoadingSpinner.d.ts +1 -6
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +2 -1
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +2 -2
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +3 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +4 -2
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts +1 -0
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/contact/useFlowContact.d.ts +1 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -1
- package/dist/src/fiat/entry/depositMatch.d.ts +10 -4
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -1
- package/dist/src/fiat/entry/useCaptureHold.d.ts +12 -2
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryPress.d.ts +25 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/usePayOnArrival.d.ts +22 -0
- package/dist/src/fiat/entry/usePayOnArrival.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +9 -2
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts +12 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/otp/FunReauthStep.d.ts +15 -0
- package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -0
- package/dist/src/fiat/otp/otpScreenProps.d.ts +5 -2
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/otp/useFunSession.d.ts +31 -0
- package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts +2 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/otp/useResendCooldown.d.ts +8 -3
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -1
- package/dist/src/fiat/payment/applePayAttempt.d.ts +2 -2
- package/dist/src/fiat/payment/failoverKind.d.ts +20 -0
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +19 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +25 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReport.d.ts +11 -0
- package/dist/src/fiat/payment/paymentReport.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReroute.d.ts +4 -2
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +50 -3
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +11 -3
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +35 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/processing/depositProcessing.d.ts +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -1
- package/dist/src/fiat/processing/failoverArtwork.d.ts +19 -0
- package/dist/src/fiat/processing/failoverArtwork.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +17 -0
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts +8 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts +34 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +15 -5
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +87 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +7 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +12 -2
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +22 -0
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts +21 -0
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteRefusal.d.ts +7 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +2 -2
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +10 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts +3 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +2 -1
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +3 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +6 -2
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +8 -6
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts +2 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoListPage.d.ts +2 -1
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts +2 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts +2 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +3 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +5 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +5 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +3 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +7 -2
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +12 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +16 -3
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +6 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +1 -3
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WalletDepositStep.d.ts +22 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts +3 -3
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +67 -5
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +7 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +5 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +14 -2
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +2 -2
- package/dist/src/flow/useFeeDetails.d.ts +5 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +38 -0
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -0
- package/dist/src/flow/useWalletSceneTransition.d.ts +58 -0
- package/dist/src/flow/useWalletSceneTransition.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +29 -3
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/feeDetailsProperties.d.ts +13 -0
- package/dist/src/hooks/track/feeDetailsProperties.d.ts.map +1 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts +3 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +4 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
- package/dist/src/hooks/useAppActive.d.ts +7 -0
- package/dist/src/hooks/useAppActive.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +2 -2
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSettledOpacity.d.ts +3 -1
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -1
- package/dist/src/icons/funIconUri.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/icons/phantomIcon.d.ts +2 -0
- package/dist/src/icons/phantomIcon.d.ts.map +1 -0
- package/dist/src/locales/i18n.d.ts +8 -8
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +1 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +57 -4
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts +31 -2
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts +31 -0
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts.map +1 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts +22 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts.map +1 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts +10 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -0
- package/dist/src/preview/replay/replayFetch.d.ts +27 -0
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +422 -282
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +9 -5
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +10 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +3 -3
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +13 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +4 -1
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +5 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +16 -2
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +2 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -1
- package/dist/src/statsig/hostAppVersion.d.ts +2 -0
- package/dist/src/statsig/hostAppVersion.d.ts.map +1 -0
- package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +49 -44
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +1659 -1494
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +147 -132
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +2 -2
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +50 -20
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -9
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/package.json +13 -12
- package/dist/chunk-K2VB5PT5.js.map +0 -7
- package/dist/chunk-R3RNNOBY.js.map +0 -7
|
@@ -7,7 +7,7 @@ export declare function useApplePayTerminal(readinessTiming: ApplePayReadinessTi
|
|
|
7
7
|
onBackToEntry: () => void;
|
|
8
8
|
};
|
|
9
9
|
export declare function useApplePayStages(flow: FiatFlow, provider: FiatProvider | undefined, readinessTiming: ApplePayReadinessTiming | undefined, setVerifiedQuote: (quote: Quote) => void): {
|
|
10
|
-
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow[
|
|
10
|
+
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow['submit']>[1], send?: () => Promise<boolean | undefined>) => Promise<boolean>;
|
|
11
11
|
};
|
|
12
12
|
export declare function useApplePayAttempt({ amount, fiat, flow, flowStep, provider, quoteState, resetFlow, selectedQuoteRef, setVerifiedQuote, }: {
|
|
13
13
|
amount: string;
|
|
@@ -25,7 +25,7 @@ export declare function useApplePayAttempt({ amount, fiat, flow, flowStep, provi
|
|
|
25
25
|
readinessTiming: ApplePayReadinessTiming | undefined;
|
|
26
26
|
reportApplePayTerminal: (outcome: ApplePayTerminalOutcome) => void;
|
|
27
27
|
reportApplePayUncovered: () => void;
|
|
28
|
-
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow[
|
|
28
|
+
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow['submit']>[1], send?: () => Promise<boolean | undefined>) => Promise<boolean>;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=applePayAttempt.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PaymentReroute } from './paymentReroute';
|
|
2
|
+
import type { PaymentFailureKind } from './paymentSurfaceFailure';
|
|
3
|
+
/**
|
|
4
|
+
* The fail state the failover sheet shows (Figma 5813-5533); `undefined`
|
|
5
|
+
* while the two-way payment-failed sheet answers instead.
|
|
6
|
+
*/
|
|
7
|
+
export type FailoverPromptKind = 'cardNotFound' | 'prepaidDeclined' | 'prepaidDeclinedAlone' | 'cardDeclined' | 'bankApproval' | 'insufficientFunds' | 'insufficientFundsAtMinimum';
|
|
8
|
+
/**
|
|
9
|
+
* Which fail state answers a failure, if the design gives it one (ENG-7225).
|
|
10
|
+
* - With no other provider to move to, a closed sheet gets card declined,
|
|
11
|
+
* and a prepaid decline asks for a debit card; both pay again at the same
|
|
12
|
+
* provider: product's choice
|
|
13
|
+
* - A bank holding the charge, or Stripe declining with no reason, pays again
|
|
14
|
+
* where it was even when another provider would price it: only the buyer's
|
|
15
|
+
* approval or another card changes the outcome
|
|
16
|
+
* - Insufficient funds lowers the amount first (ENG-7232). Where it can't
|
|
17
|
+
* (at the minimum, or a host-locked amount) it asks for another card
|
|
18
|
+
*/
|
|
19
|
+
export declare function failoverKindFor(code: string, kind: PaymentFailureKind, reroute: PaymentReroute | undefined, canLowerAmount?: boolean): FailoverPromptKind | undefined;
|
|
20
|
+
//# sourceMappingURL=failoverKind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failoverKind.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,iBAAiB,GACjB,sBAAsB,GACtB,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,4BAA4B,CAAA;AAShC;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,cAAc,UAAQ,GACrB,kBAAkB,GAAG,SAAS,CAmBhC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { FailoverPromptProps } from '../processing/FailoverPrompt';
|
|
3
|
+
import type { FailoverPromptKind } from './failoverKind';
|
|
4
|
+
import type { PaymentFailureAnswer } from './usePaymentFailureAnswer';
|
|
5
|
+
/**
|
|
6
|
+
* The failover sheet's copy and ways on: the fail state it is showing, or,
|
|
7
|
+
* with none, the verified hand-back while a failover's payment waits.
|
|
8
|
+
*/
|
|
9
|
+
export declare function failoverPrompt(answer: Pick<PaymentFailureAnswer, 'failover' | 'switchPartner' | 'switching' | 'dismiss' | 'payAgain'>, t: TFunction, verified?: {
|
|
10
|
+
onPay: () => void;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}): FailoverPromptProps | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* What the verified hand-back does to the card sheet as the hold comes and
|
|
15
|
+
* goes. A hold that lifts under it (a poll moved the round on) leaves it
|
|
16
|
+
* nothing to show, and an empty card can't be closed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function verifiedSheetMove(held: boolean, showing: string | null, failover: FailoverPromptKind | undefined): 'open' | 'close' | undefined;
|
|
19
|
+
//# sourceMappingURL=failoverPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CACV,oBAAoB,EACpB,UAAU,GAAG,eAAe,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CACpE,EACD,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GACpD,mBAAmB,GAAG,SAAS,CAiIjC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,EAAE,kBAAkB,GAAG,SAAS,GACvC,MAAM,GAAG,OAAO,GAAG,SAAS,CAK9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Quote } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The amount an insufficient-funds decline lowers the deposit to: half of it,
|
|
4
|
+
* never under the quote's minimum (product, ENG-7232). `undefined` when it is
|
|
5
|
+
* at the minimum already, or no minimum is known: half could then fall under
|
|
6
|
+
* every provider's, so the buyer is asked for another card instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare function insufficientFundsAmount(amount: string, minimum: string | undefined): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* What an insufficient-funds decline on this deposit lowers it to, or
|
|
11
|
+
* `undefined` when it must not lower: a host-locked amount is the host's to
|
|
12
|
+
* set, and the buyer is asked for another card instead.
|
|
13
|
+
* - The declined price is the round's own quote once a sign-in moved it
|
|
14
|
+
* there, else the amount screen's
|
|
15
|
+
* - Its floor is the declined quote's own: `roundMinimum` for a round's
|
|
16
|
+
* price, else the amount screen's `minimum`. With neither, nothing lowers
|
|
17
|
+
*/
|
|
18
|
+
export declare function insufficientFundsAmountFor({ roundQuote, roundMinimum, entryQuote, minimum, lockAmount, }: {
|
|
19
|
+
roundQuote: Pick<Quote, 'fiat'> | undefined;
|
|
20
|
+
roundMinimum?: string;
|
|
21
|
+
entryQuote: Pick<Quote, 'fiat'> | undefined;
|
|
22
|
+
minimum: string | undefined;
|
|
23
|
+
lockAmount: boolean | undefined;
|
|
24
|
+
}): string | undefined;
|
|
25
|
+
//# sourceMappingURL=insufficientFundsAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insufficientFundsAmount.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/insufficientFundsAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAW,MAAM,sBAAsB,CAAA;AAI1D;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,GAAG,SAAS,CAOpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EACV,YAAY,EACZ,UAAU,EACV,OAAO,EACP,UAAU,GACX,EAAE;IACD,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,GAAG,MAAM,GAAG,SAAS,CAOrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FiatProvider, SurfaceResult, SurfaceTransition } from '@funkit/connect-core';
|
|
2
|
+
import type { DepositFailedInput } from '../../hooks/track/useTrackFiatPaymentEvents';
|
|
3
|
+
export declare function paymentRequestId(result: SurfaceResult): string | null;
|
|
4
|
+
/** Snapshot the report before retries or KYC can replace its payment context. */
|
|
5
|
+
export declare function orderCreateFailure(surface: SurfaceTransition | undefined, result: SurfaceResult, { provider, quoteProvider, shownQuoteRef, attempt, }: {
|
|
6
|
+
provider?: FiatProvider;
|
|
7
|
+
quoteProvider?: FiatProvider;
|
|
8
|
+
shownQuoteRef?: string;
|
|
9
|
+
attempt: number;
|
|
10
|
+
}): DepositFailedInput | undefined;
|
|
11
|
+
//# sourceMappingURL=paymentReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentReport.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentReport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAErF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAIrE;AAED,iFAAiF;AACjF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,iBAAiB,GAAG,SAAS,EACtC,MAAM,EAAE,aAAa,EACrB,EACE,QAAQ,EACR,aAAa,EACb,aAAa,EACb,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,aAAa,CAAC,EAAE,YAAY,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,GACA,kBAAkB,GAAG,SAAS,CAkBhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EntryCta, FiatProvider, FiatQuoteMinimum, FiatRoutingOverrides, ProviderSelection, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
2
|
import type { ApplePayCardTypes } from '../../native/applePayWallet';
|
|
3
|
-
import type
|
|
3
|
+
import { type PaymentFailureKind } from './paymentSurfaceFailure';
|
|
4
4
|
/**
|
|
5
5
|
* The selection as an allow-list for `POST /fiat/quote`, which takes no order.
|
|
6
6
|
*
|
|
@@ -30,9 +30,11 @@ export declare function walletDeferredProviders(paymentMethod: string, wallet: A
|
|
|
30
30
|
*
|
|
31
31
|
* - Any failure but a cancel moves on: the code cannot say whether another
|
|
32
32
|
* provider would take the same buyer, so the buyer is offered the chance.
|
|
33
|
+
* - So does a cancel the failover answers (`failsOverOnCancel`).
|
|
33
34
|
*/
|
|
34
|
-
export declare function paymentRerouteOverrides({ failure, paymentMethod, failedProvider, selection, current, }: {
|
|
35
|
+
export declare function paymentRerouteOverrides({ failure, failureCode, paymentMethod, failedProvider, selection, current, }: {
|
|
35
36
|
failure: PaymentFailureKind | undefined;
|
|
37
|
+
failureCode?: string;
|
|
36
38
|
paymentMethod: string;
|
|
37
39
|
failedProvider: FiatProvider | undefined;
|
|
38
40
|
selection: ProviderSelection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAA;AAWhC;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,iBAAiB,EAC5B,OAAO,EAAE,oBAAoB,GAAG,SAAS,GACxC,oBAAoB,GAAG,SAAS,CAalC;AAMD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,OAAO,GACvB,SAAS,YAAY,EAAE,CAEzB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAC/B,SAAS,YAAY,EAAE,CAOzB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,aAAa,EACb,cAAc,EACd,SAAS,EACT,OAAO,GACR,EAAE;IACD,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,YAAY,GAAG,SAAS,CAAA;IACxC,SAAS,EAAE,iBAAiB,CAAA;IAC5B,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,CAoBnC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAa1D;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAAA;AAElD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE;IACD,KAAK,EAAE,IAAI,CACT,kBAAkB,EAClB,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACrD,CAAA;IACD,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;CACpB,GAAG,cAAc,GAAG,SAAS,CAkB7B"}
|
|
@@ -28,6 +28,8 @@ export declare function isOrderFailureCode(code: string): boolean;
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function orderFailureCode(flow: Pick<FiatFlow, 'page' | 'stepResponse'>): string | undefined;
|
|
30
30
|
export declare function paymentFailureKind(code: string): PaymentFailureKind;
|
|
31
|
+
/** A cancel the failover still answers: the host hears a cancel, the buyer sees the drawer. */
|
|
32
|
+
export declare function failsOverOnCancel(code: string): boolean;
|
|
31
33
|
/**
|
|
32
34
|
* What the amount screen does once a payment surface gave up.
|
|
33
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAOpE;;;;;;;;;GASG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAC1C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAShD,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAC,GAC5C,MAAM,GAAG,SAAS,CAkBpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAiBnE;AAED,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,eAAe,EACf,GAAgB,GACjB,EAAE;IACD,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,CAQrB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,SAAS,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,SAAS,EAC3C,GAAG,GAAE,MAAmB,GACvB,OAAO,CAQT"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FiatProvider, type FiatQuoteMinimum } from '@funkit/connect-core';
|
|
2
2
|
import type { DepositCardScreen } from '../processing/DepositCardSheet';
|
|
3
3
|
import type { NestedSheet } from '../../hooks/useNestedSheet';
|
|
4
|
+
import { type FailoverPromptKind } from './failoverKind';
|
|
4
5
|
import type { PaymentReroute } from './paymentReroute';
|
|
5
6
|
import type { PaymentAttempts } from './usePaymentAttempts';
|
|
6
7
|
export interface PaymentFailureAnswerOptions {
|
|
@@ -22,12 +23,18 @@ export interface PaymentFailureAnswerOptions {
|
|
|
22
23
|
found: PaymentReroute | undefined;
|
|
23
24
|
providers: readonly FiatProvider[];
|
|
24
25
|
} | undefined;
|
|
26
|
+
/** The reroute probe has answered, or none runs. */
|
|
27
|
+
isRerouteSettled: boolean;
|
|
25
28
|
/** The providers earlier failures already moved past. */
|
|
26
29
|
skipped: readonly FiatProvider[];
|
|
27
30
|
/** The buyer closed the pay sheet without paying: nothing to answer. */
|
|
28
31
|
onCancelled: (from: PaymentFailureSource) => void;
|
|
29
|
-
/**
|
|
30
|
-
|
|
32
|
+
/**
|
|
33
|
+
* "Try a different card", or the sheet dismissed: the same provider, paid
|
|
34
|
+
* again. `reopen` when the buyer's own tap asked to pay again, so a sheet
|
|
35
|
+
* the provider can reopen opens rather than waiting for another tap.
|
|
36
|
+
*/
|
|
37
|
+
onRetry: (from: PaymentFailureSource, reopen?: boolean) => void;
|
|
31
38
|
/** "Try with a different provider": a new quote without the provider that failed. */
|
|
32
39
|
onReroute: (failedProvider: FiatProvider) => void;
|
|
33
40
|
/** A fresh quote on the same terms: no provider known to leave out. */
|
|
@@ -38,6 +45,18 @@ export interface PaymentFailureAnswerOptions {
|
|
|
38
45
|
* host gave the amount screen no picker.
|
|
39
46
|
*/
|
|
40
47
|
onChangeMethod: (() => void) | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* What an insufficient-funds decline lowers the deposit to, or `undefined`
|
|
50
|
+
* at the minimum already, where nothing is left to lower.
|
|
51
|
+
*/
|
|
52
|
+
loweredAmount: string | undefined;
|
|
53
|
+
/** Lowers the amount behind the prompt, which quotes it there. */
|
|
54
|
+
onLowerAmount: (amount: string) => void;
|
|
55
|
+
/**
|
|
56
|
+
* A new quote at the lowered amount, paid at once when `pay`, at the
|
|
57
|
+
* provider that declined: the screen's own quote may rank another first by now.
|
|
58
|
+
*/
|
|
59
|
+
onRequoteLowered: (pay: boolean, failedProvider: FiatProvider | undefined) => void;
|
|
41
60
|
}
|
|
42
61
|
/**
|
|
43
62
|
* Where the failure was seen, which decides what "pay again" means:
|
|
@@ -55,6 +74,8 @@ export type PaymentFailureSource = 'quote' | 'capture' | 'order';
|
|
|
55
74
|
export type PaymentFailureAlternative = 'provider' | 'minimum' | 'method' | 'none';
|
|
56
75
|
export interface PaymentFailureAnswer {
|
|
57
76
|
sheet: NestedSheet<DepositCardScreen>;
|
|
77
|
+
/** Which fail state the failover sheet is showing. */
|
|
78
|
+
failover: FailoverPromptKind | undefined;
|
|
58
79
|
/**
|
|
59
80
|
* What the open sheet can offer beside another card: a new quote from a
|
|
60
81
|
* provider the reroute probe found (or at the least it would price), the
|
|
@@ -73,17 +94,43 @@ export interface PaymentFailureAnswer {
|
|
|
73
94
|
retry: () => void;
|
|
74
95
|
/** Closes the sheet onto a new quote. */
|
|
75
96
|
requote: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* The failover sheet's Continue: a new quote without the provider that
|
|
99
|
+
* failed, once the probe has found one to switch to. Until it answers the
|
|
100
|
+
* button waits; with none found the card-declined sheet takes its place.
|
|
101
|
+
*/
|
|
102
|
+
switchPartner: () => void;
|
|
103
|
+
/** Continue was pressed and waits on the probe. */
|
|
104
|
+
switching: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The card started to close some other way: a Continue still waiting gives
|
|
107
|
+
* way, so the probe answering mid-close cannot turn a Close into a switch.
|
|
108
|
+
*/
|
|
109
|
+
stopSwitch: () => void;
|
|
110
|
+
/** Closes the failover sheet onto the same provider's pay sheet, opened at once. */
|
|
111
|
+
payAgain: () => void;
|
|
112
|
+
/**
|
|
113
|
+
* Closes the failover sheet as the buyer leaving it: recovered as a cancel,
|
|
114
|
+
* so the pay button comes back and nothing opens on its own.
|
|
115
|
+
*/
|
|
116
|
+
dismiss: () => void;
|
|
76
117
|
/** Closes the sheet onto the amount, then opens the host's method picker. */
|
|
77
118
|
changeMethod: () => void;
|
|
78
119
|
}
|
|
79
120
|
/**
|
|
80
121
|
* How a failed payment is answered: every failure but a cancel opens the
|
|
81
122
|
* payment-failed sheet, and the buyer picks the way on.
|
|
123
|
+
* - A fail state the design draws (`failoverKindFor`) opens the failover
|
|
124
|
+
* sheet instead, with its one way on.
|
|
125
|
+
* - A closed sheet the failover answers (`failsOverOnCancel`) is one of them.
|
|
126
|
+
* It opens at once, while the probe still runs, so the buyer is not left
|
|
127
|
+
* on the amount. With nowhere to move, the card-declined sheet pays
|
|
128
|
+
* again here (ENG-7225).
|
|
82
129
|
*
|
|
83
130
|
* What the sheet answers is held until it is down, however it was closed: a
|
|
84
131
|
* requote remounts the step, which would cut the drawer off mid-spring. The
|
|
85
132
|
* reroute probe is keyed on the failure, and the failure is cleared by the
|
|
86
133
|
* recovery the buyer picks.
|
|
87
134
|
*/
|
|
88
|
-
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, skipped, onCancelled, onRetry, onReroute, onRequote, onChangeMethod, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
135
|
+
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, isRerouteSettled, skipped, onCancelled, onRetry, onReroute, onRequote, onChangeMethod, loweredAmount, onLowerAmount, onRequoteLowered, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
89
136
|
//# sourceMappingURL=usePaymentFailureAnswer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3D,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAA;IACrC,oDAAoD;IACpD,QAAQ,EAAE,eAAe,CAAA;IACzB,yEAAyE;IACzE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC;;;OAGG;IACH,OAAO,EACH;QAAE,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;QAAC,SAAS,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,GACzE,SAAS,CAAA;IACb,yDAAyD;IACzD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,wEAAwE;IACxE,WAAW,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACjD
|
|
1
|
+
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,KAAK,kBAAkB,EAAmB,MAAM,gBAAgB,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3D,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAA;IACrC,oDAAoD;IACpD,QAAQ,EAAE,eAAe,CAAA;IACzB,yEAAyE;IACzE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC;;;OAGG;IACH,OAAO,EACH;QAAE,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;QAAC,SAAS,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,GACzE,SAAS,CAAA;IACb,oDAAoD;IACpD,gBAAgB,EAAE,OAAO,CAAA;IACzB,yDAAyD;IACzD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,wEAAwE;IACxE,WAAW,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACjD;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/D,qFAAqF;IACrF,SAAS,EAAE,CAAC,cAAc,EAAE,YAAY,KAAK,IAAI,CAAA;IACjD,uEAAuE;IACvE,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB;;;;OAIG;IACH,cAAc,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IACxC;;;OAGG;IACH,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,kEAAkE;IAClE,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;OAGG;IACH,gBAAgB,EAAE,CAChB,GAAG,EAAE,OAAO,EACZ,cAAc,EAAE,YAAY,GAAG,SAAS,KACrC,IAAI,CAAA;CACV;AAED;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAEhE;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GACjC,UAAU,GACV,SAAS,GACT,QAAQ,GACR,MAAM,CAAA;AAsBV,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAA;IACrC,sDAAsD;IACtD,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACxC;;;;;;OAMG;IACH,WAAW,EAAE,yBAAyB,CAAA;IACtC,gEAAgE;IAChE,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACrC,uEAAuE;IACvE,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzE,wDAAwD;IACxD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,6EAA6E;IAC7E,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,OAAO,EACP,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,EAAE,2BAA2B,GAAG,oBAAoB,CAoOpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRerouteProbe.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useRerouteProbe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,iBAAiB,EACjB,cAAc,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAC3C,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,qBAAqB,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACpD,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,MAAM,EAAE,MAAM,CAAA;CACf;;;;
|
|
1
|
+
{"version":3,"file":"useRerouteProbe.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useRerouteProbe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,iBAAiB,EACjB,cAAc,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAC3C,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,qBAAqB,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACpD,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,MAAM,EAAE,MAAM,CAAA;CACf;;;;EAwCA"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { NestedSheet } from '../../hooks/useNestedSheet';
|
|
2
2
|
import type { DepositCoverRefs } from '../../screens/DepositAmountScreen';
|
|
3
|
+
import { type FailoverPromptProps } from './FailoverPrompt';
|
|
3
4
|
import { type ProcessingFailureAnswer } from './ProcessingFailure';
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* What the deposit card is showing: the wait, the failed payment's ways on, or
|
|
7
|
+
* a fail state's single way on (`failover`).
|
|
8
|
+
*/
|
|
9
|
+
export type DepositCardScreen = 'processing' | 'paymentFailed' | 'failover';
|
|
6
10
|
/**
|
|
7
11
|
* The card a paid deposit waits on, and the same card once the payment fails:
|
|
8
12
|
* one drawer that the buyer can pull away only once there is nothing left to
|
|
@@ -13,12 +17,16 @@ export type DepositCardScreen = 'processing' | 'paymentFailed';
|
|
|
13
17
|
* fades away and the failure fades in on the same spring. The wait's puff
|
|
14
18
|
* shader fades in its shader (design, Neil).
|
|
15
19
|
*/
|
|
16
|
-
export declare function DepositCardSheet({ sheet, methodName, delivered, onCompletionShown, failure, cover, }: {
|
|
20
|
+
export declare function DepositCardSheet({ sheet, methodName, delivered, onCompletionShown, failure, failover, onClosing, cover, }: {
|
|
17
21
|
sheet: NestedSheet<DepositCardScreen>;
|
|
18
22
|
methodName: string;
|
|
19
23
|
delivered: boolean;
|
|
20
24
|
onCompletionShown: () => void;
|
|
21
25
|
failure: ProcessingFailureAnswer;
|
|
26
|
+
/** The fail state the `failover` screen draws. */
|
|
27
|
+
failover?: FailoverPromptProps;
|
|
28
|
+
/** The card starts to close: a pull, a backdrop tap, or a button. */
|
|
29
|
+
onClosing?: () => void;
|
|
22
30
|
/** What the card has to cover on the amount screen behind it. */
|
|
23
31
|
cover: DepositCoverRefs;
|
|
24
32
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCardSheet.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/DepositCardSheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositCardSheet.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/DepositCardSheet.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAUzE,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAA;AAE5B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,CAAA;AAE3E;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAC7B,OAAO,EAAE,uBAAuB,CAAA;IAChC,kDAAkD;IAClD,QAAQ,CAAC,EAAE,mBAAmB,CAAA;IAC9B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,iEAAiE;IACjE,KAAK,EAAE,gBAAgB,CAAA;CACxB,+BAsFA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Which picture heads the sheet (Figma 5813-5533). */
|
|
2
|
+
export type FailoverArt = 'cardQuestion' | 'cardDeclined' | 'cardWarning' | 'verified';
|
|
3
|
+
export interface FailoverPromptProps {
|
|
4
|
+
art: FailoverArt;
|
|
5
|
+
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* The headline's box on its frame, which is what wraps the copy: 341 on the
|
|
8
|
+
* closed-sheet and bank-approval frames, 258 on the prepaid, declined and
|
|
9
|
+
* insufficient-funds ones.
|
|
10
|
+
*/
|
|
11
|
+
titleWidth?: number;
|
|
12
|
+
/** The line under the headline; the verified sheet has none. */
|
|
13
|
+
detail?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The sheet's one way on. Never an Apple Pay button, even where it pays
|
|
16
|
+
* again: Apple's guidelines want that button to open Apple Pay itself, and
|
|
17
|
+
* a provider's own button (Coinbase's) still needs the buyer's tap.
|
|
18
|
+
*/
|
|
19
|
+
action: {
|
|
20
|
+
kind: 'continue';
|
|
21
|
+
label: string;
|
|
22
|
+
onPress: () => void;
|
|
23
|
+
/** Continue waits on the provider it switches to. */
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
};
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The fail-state sheet's content: a picture, a headline, a line on why, and a
|
|
30
|
+
* single way on. Every fail state (a closed Coinbase sheet, a declined card,
|
|
31
|
+
* insufficient funds, a bank's approval) and the verified hand-back draw
|
|
32
|
+
* through it.
|
|
33
|
+
*/
|
|
34
|
+
export declare function FailoverPrompt({ art, title, titleWidth, detail, action, onClose, }: FailoverPromptProps): import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=FailoverPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/FailoverPrompt.tsx"],"names":[],"mappings":"AAiBA,uDAAuD;AACvD,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,cAAc,GACd,aAAa,GACb,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,MAAM,EAAE;QACN,IAAI,EAAE,UAAU,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,IAAI,CAAA;QACnB,qDAAqD;QACrD,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB,CAAA;IACD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,UAAgB,EAChB,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,mBAAmB,+BAyCrB"}
|
|
@@ -2,7 +2,7 @@ import type { TFunction } from 'i18next';
|
|
|
2
2
|
/** How long each line of the wait stays up before the next one replaces it. */
|
|
3
3
|
export declare const PROCESSING_MESSAGE_MS = 6000;
|
|
4
4
|
/** What the wait says once the first line has had its turn, in order; the last one stays. */
|
|
5
|
-
export declare const WAITING_MESSAGES: readonly [
|
|
5
|
+
export declare const WAITING_MESSAGES: readonly ['stillWorking', 'stillGoing', 'noFun', 'almostThere', 'hangingIn'];
|
|
6
6
|
export type ProcessingMessage = 'onItsWay' | (typeof WAITING_MESSAGES)[number] | 'complete';
|
|
7
7
|
export interface ProcessingPhase {
|
|
8
8
|
message: ProcessingMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositProcessing.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/depositProcessing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,OAAQ,CAAA;AAE1C,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"depositProcessing.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/depositProcessing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,OAAQ,CAAA;AAE1C,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,YAC3B,cAAc,EACd,YAAY,EACZ,OAAO,EACP,aAAa,EACb,WAAW,CACH,CAAA;AAEV,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,GACjC,UAAU,CAAA;AAEd,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,iBAAiB,CAAA;IAC1B,6FAA6F;IAC7F,WAAW,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,GACjB,eAAe,CAajB;AAED,2FAA2F;AAC3F,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,GACjB,MAAM,GAAG,SAAS,CAMpB;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAC5B,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAsCnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The failover sheet's artwork, exported from Figma 5813-5533 and kept byte for
|
|
3
|
+
* byte but for the export's `style` and `preserveAspectRatio` attributes.
|
|
4
|
+
*/
|
|
5
|
+
/** The close disc, Figma 5956:7937, 44 × 44. */
|
|
6
|
+
export declare const CLOSE_XML = "<svg width=\"44\" height=\"44\" viewBox=\"0 0 44 44\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"Group 272\"><circle id=\"Ellipse 3\" cx=\"22\" cy=\"22\" r=\"21.5\" fill=\"white\" fill-opacity=\"0.1\" stroke=\"black\" stroke-opacity=\"0.71\"/><path id=\"Union\" d=\"M28.8059 13.7859C29.0038 13.738 29.1988 13.738 29.39 13.7859C29.5878 13.8337 29.7655 13.9324 29.9224 14.0826C30.0657 14.226 30.1613 14.397 30.2091 14.595C30.2637 14.7931 30.2636 14.9914 30.2091 15.1895C30.1613 15.3807 30.0656 15.5516 29.9224 15.7019L23.6298 21.9995L29.9224 28.2981C30.0656 28.4483 30.1613 28.6223 30.2091 28.8203C30.2569 29.0116 30.2569 29.2068 30.2091 29.405C30.1613 29.603 30.0657 29.774 29.9224 29.9174C29.7722 30.0677 29.5977 30.1663 29.3997 30.2141C29.2018 30.2619 29.0038 30.2619 28.8059 30.2141C28.608 30.1663 28.4372 30.0706 28.2939 29.9272L22.0043 23.6266L15.7107 29.9272C15.5675 30.0706 15.3966 30.1663 15.1988 30.2141C15.0077 30.262 14.8126 30.262 14.6147 30.2141C14.4168 30.1663 14.2392 30.0676 14.0823 29.9174C13.9322 29.774 13.8336 29.603 13.7858 29.405C13.738 29.2069 13.7381 29.0086 13.7858 28.8105C13.8404 28.6124 13.9389 28.4445 14.0823 28.3079L20.3797 21.9995L14.0823 15.6921C13.9389 15.5555 13.8433 15.3876 13.7956 15.1895C13.7479 14.9914 13.7478 14.7931 13.7956 14.595C13.8434 14.397 13.939 14.226 14.0823 14.0826C14.2324 13.9323 14.407 13.8337 14.6049 13.7859C14.8028 13.7381 15.0009 13.7381 15.1988 13.7859C15.3966 13.8337 15.5675 13.9294 15.7107 14.0728L22.0043 20.3724L28.2939 14.0728C28.444 13.9226 28.6148 13.8269 28.8059 13.7859Z\" fill=\"white\"/></g></svg>";
|
|
7
|
+
/** The card with a question mark, Figma 5958:9511, 108 × 87. */
|
|
8
|
+
export declare const CARD_QUESTION_XML = "<svg width=\"108\" height=\"87\" viewBox=\"0 0 108 87\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"Group 326\"><path id=\"?\" d=\"M52.4512 75.1463C50.4671 75.1463 49.4751 73.7238 49.4751 71.883V71.2415C49.4751 67.6714 51.2324 65.3007 54.9172 63.1252C58.3469 61.0891 59.5658 59.4156 59.5658 56.6823C59.5658 53.3912 56.9864 51.132 53.2166 51.132C49.7868 51.132 47.5193 52.8054 46.6122 55.8456C46.0454 57.5748 45.1667 58.1884 43.7494 58.1884C41.9921 58.1884 41 57.1565 41 55.4551C41 54.2558 41.2551 53.2796 41.7653 52.1918C43.4943 48.3429 47.8027 46 53.4717 46C60.8696 46 66 50.2673 66 56.4313C66 60.7544 63.7891 63.7109 60.0476 65.9143C56.3912 68.034 55.4274 69.4565 55.2857 72.1898C55.144 73.9748 54.2937 75.1463 52.4512 75.1463ZM52.4512 87C50.3821 87 48.7381 85.4381 48.7381 83.402C48.7381 81.366 50.3821 79.8041 52.4512 79.8041C54.5771 79.8041 56.1927 81.366 56.1927 83.402C56.1927 85.4381 54.5771 87 52.4512 87Z\" fill=\"white\"/><g id=\"Group 324\"><rect id=\"Rectangle 155\" width=\"108\" height=\"69\" rx=\"4\" fill=\"#D9D9D9\" fill-opacity=\"0.11\"/><rect id=\"Rectangle 156\" x=\"9\" y=\"28\" width=\"11\" height=\"11\" fill=\"#D9D9D9\" fill-opacity=\"0.5\"/><circle id=\"Ellipse 5\" cx=\"85.5\" cy=\"55.5\" r=\"6.5\" fill=\"#D9D9D9\" fill-opacity=\"0.2\"/><circle id=\"Ellipse 6\" cx=\"93.5\" cy=\"55.5\" r=\"6.5\" fill=\"#D9D9D9\" fill-opacity=\"0.2\"/></g></g></svg>";
|
|
9
|
+
/** The bare card, Figma 5960:10093, 131.478 × 84. */
|
|
10
|
+
export declare const CARD_XML = "<svg width=\"131.478\" height=\"84\" viewBox=\"0 0 131.478 84\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"Group 324\"><rect id=\"Rectangle 155\" width=\"131.478\" height=\"84\" rx=\"4\" fill=\"#D9D9D9\" fill-opacity=\"0.11\"/><rect id=\"Rectangle 156\" x=\"10.9565\" y=\"34.087\" width=\"13.3913\" height=\"13.3913\" fill=\"#D9D9D9\" fill-opacity=\"0.5\"/><circle id=\"Ellipse 5\" cx=\"104.087\" cy=\"67.5652\" r=\"7.91304\" fill=\"#D9D9D9\" fill-opacity=\"0.2\"/><circle id=\"Ellipse 6\" cx=\"113.826\" cy=\"67.5652\" r=\"7.91304\" fill=\"#D9D9D9\" fill-opacity=\"0.2\"/></g></svg>";
|
|
11
|
+
/** The cross laid on the card, Figma 5958:9867, 28 × 28. */
|
|
12
|
+
export declare const CARD_CROSS_XML = "<svg width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path id=\"􀆄\" d=\"M24.2415 0.618785C24.5279 0.343769 24.8543 0.160426 25.2208 0.0687538C25.5988 -0.0229179 25.9768 -0.0229179 26.3547 0.0687538C26.7327 0.160426 27.0648 0.355228 27.3512 0.653161C27.6375 0.928177 27.8265 1.25476 27.9181 1.6329C28.0212 2.01105 28.027 2.3892 27.9353 2.76734C27.8437 3.14549 27.6604 3.47207 27.3855 3.74708L3.76251 27.3812C3.49907 27.6448 3.17265 27.8224 2.78322 27.9141C2.40526 28.0172 2.02156 28.0172 1.63214 27.9141C1.25417 27.8224 0.922015 27.639 0.635675 27.364C0.349335 27.0776 0.16035 26.7452 0.0687216 26.3671C-0.0229072 25.989 -0.0229072 25.6108 0.0687216 25.2327C0.16035 24.8545 0.343608 24.5279 0.618494 24.2529L24.2415 0.618785ZM27.3855 24.2529C27.6604 24.5279 27.838 24.8545 27.9181 25.2327C28.0098 25.6108 28.0098 25.989 27.9181 26.3671C27.8265 26.7452 27.6375 27.0776 27.3512 27.364C27.0763 27.6505 26.7441 27.8396 26.3547 27.9312C25.9768 28.0229 25.5988 28.0229 25.2208 27.9312C24.8428 27.8396 24.5164 27.6562 24.2415 27.3812L0.618494 3.74708C0.355061 3.48353 0.177531 3.16268 0.085902 2.78453C-0.0057268 2.39493 -0.0057268 2.01105 0.085902 1.6329C0.177531 1.25476 0.360788 0.922447 0.635675 0.635973C0.922015 0.349499 1.25417 0.160426 1.63214 0.0687538C2.02156 -0.0229179 2.40526 -0.0229179 2.78322 0.0687538C3.16119 0.160426 3.48762 0.343769 3.76251 0.618785L27.3855 24.2529Z\" fill=\"white\"/></svg>";
|
|
13
|
+
/** The warning badge over the card's corner, Figma 5960:10310, 33 × 30. */
|
|
14
|
+
export declare const CARD_WARNING_XML = "<svg width=\"33\" height=\"30\" viewBox=\"0 0 33 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"Group 329\"><rect id=\"Rectangle 157\" x=\"10\" y=\"7\" width=\"14\" height=\"23\" fill=\"#101010\"/><path id=\"􀇿\" d=\"M4.53032 30C1.76869 30 0 27.9679 0 25.4705C0 24.7104 0.201693 23.9193 0.620592 23.1903L12.6135 2.28025C13.4669 0.775595 14.9718 0 16.5078 0C18.0282 0 19.5331 0.760083 20.3865 2.28025L32.3794 23.1748C32.7983 23.9193 33 24.7104 33 25.4705C33 27.9679 31.2313 30 28.4697 30H4.53032ZM16.5233 19.1727C17.4852 19.1727 18.0437 18.6298 18.0748 17.606L18.323 10.2844C18.3695 9.24509 17.5938 8.51603 16.5078 8.51603C15.3907 8.51603 14.646 9.24509 14.6925 10.2844L14.9252 17.6215C14.9563 18.6143 15.5303 19.1727 16.5233 19.1727ZM16.5233 24.6174C17.6403 24.6174 18.5402 23.8728 18.5402 22.7715C18.5402 21.6856 17.6559 20.91 16.5233 20.91C15.3907 20.91 14.4908 21.6856 14.4908 22.7715C14.4908 23.8573 15.3907 24.6174 16.5233 24.6174Z\" fill=\"white\"/></g></svg>";
|
|
15
|
+
/** The verified figure, Figma 5956:8263, 68.32 × 73. */
|
|
16
|
+
export declare const VERIFIED_PERSON_XML = "<svg width=\"68.3177\" height=\"73\" viewBox=\"0 0 68.3177 73\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><g id=\"􀯧\"><use xlink:href=\"#stroke0_0_4\" fill=\"white\"/><use xlink:href=\"#stroke0_0_4\" fill=\"url(#paint0_linear_0_4)\"/></g><defs><linearGradient id=\"paint0_linear_0_4\" x1=\"-3.13855e-07\" y1=\"37\" x2=\"59\" y2=\"25.5\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0.153846\" stop-color=\"#86EFAC\" stop-opacity=\"0\"/><stop offset=\"1\" stop-color=\"#86EFAC\" stop-opacity=\"0.44\"/></linearGradient><path id=\"stroke0_0_4\" d=\"M7.27644 73C5.01266 73 3.23397 72.4886 1.94038 71.4657C0.646795 70.4428 0 69.0431 0 67.2666C0 64.6556 0.781543 61.9235 2.34463 59.0702C3.93467 56.217 6.21192 53.5387 9.1764 51.0354C12.1678 48.5321 15.7656 46.4998 19.9698 44.9386C24.1739 43.3774 28.8902 42.5968 34.1184 42.5968C39.3736 42.5968 44.1033 43.3774 48.3075 44.9386C52.5116 46.4998 56.096 48.5321 59.0604 51.0354C62.0519 53.5387 64.3426 56.217 65.9326 59.0702C67.5227 61.9235 68.3177 64.6556 68.3177 67.2666C68.3177 69.0431 67.6709 70.4428 66.3773 71.4657C65.0837 72.4886 63.305 73 61.0412 73H7.27644ZM34.1588 35.4098C31.2213 35.4098 28.5129 34.6158 26.0335 33.0277C23.5811 31.4395 21.6002 29.2996 20.0911 26.6079C18.6088 23.9161 17.8677 20.9014 17.8677 17.5636C17.8677 14.2797 18.6088 11.3188 20.0911 8.68086C21.6002 6.01604 23.5945 3.90302 26.0739 2.34181C28.5533 0.780605 31.2483 0 34.1588 0C37.0964 0 39.8048 0.767146 42.2842 2.30144C44.7636 3.83573 46.7444 5.93529 48.2266 8.60011C49.7358 11.238 50.4904 14.1989 50.4904 17.4829C50.4904 20.8475 49.7358 23.8892 48.2266 26.6079C46.7444 29.2996 44.7636 31.4395 42.2842 33.0277C39.8048 34.6158 37.0964 35.4098 34.1588 35.4098Z\"/></defs></svg>";
|
|
17
|
+
/** The check beside it, Figma 5956:8266, 36.99 × 36.3. */
|
|
18
|
+
export declare const VERIFIED_CHECK_XML = "<svg width=\"36.9886\" height=\"36.2981\" viewBox=\"0 0 36.9886 36.2981\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path id=\"􀯧\" d=\"M12.3295 35.8136C12.9224 36.1366 13.5962 36.2981 14.3508 36.2981C15.8599 36.2981 17.0457 35.6252 17.9081 34.2793L35.978 6.05642C36.2474 5.65265 36.4765 5.22198 36.6652 4.76438C36.8808 4.27987 36.9886 3.80881 36.9886 3.35122C36.9886 2.32836 36.6113 1.52083 35.8567 0.92865C35.1021 0.30955 34.2532 0 33.3099 0C32.0433 0 31.0057 0.672935 30.1972 2.01881L14.1891 27.5769L6.67007 18.0481C6.18497 17.429 5.6864 16.9983 5.17435 16.7561C4.68926 16.4869 4.15026 16.3523 3.55737 16.3523C2.56022 16.3523 1.71131 16.7022 1.01062 17.4021C0.336872 18.102 0 18.9499 0 19.9458C0 20.8879 0.350346 21.8031 1.05104 22.6914L10.5913 34.3197C11.1572 34.9926 11.7366 35.4906 12.3295 35.8136Z\" fill=\"#86EFAC\"/></svg>";
|
|
19
|
+
//# sourceMappingURL=failoverArtwork.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failoverArtwork.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/failoverArtwork.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gDAAgD;AAChD,eAAO,MAAM,SAAS,sjDAC6/C,CAAA;AAEnhD,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,q3CACgxC,CAAA;AAE9yC,qDAAqD;AACrD,eAAO,MAAM,QAAQ,4lBACwgB,CAAA;AAE7hB,4DAA4D;AAC5D,eAAO,MAAM,cAAc,08CAC85C,CAAA;AAEz7C,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,i/BACq7B,CAAA;AAEl9B,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,yvDACsqD,CAAA;AAEtsD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,m2BACmzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applePayButtonMetrics.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayButtonMetrics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA;AAEvC,gEAAgE;AAChE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,GACjB,qBAAqB,CAGvB;AAED,eAAO,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"applePayButtonMetrics.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayButtonMetrics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA;AAEvC,gEAAgE;AAChE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,WAAW,GACjB,qBAAqB,CAGvB;AAED,eAAO,MAAM,EAAE,UAAW,MAAM,WAA6B,CAAA;AAE7D;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQhD;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAKzE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ApplePayReadinessTiming, SurfaceReadiness } from '../adapter';
|
|
2
|
+
export interface BanxaCheckoutSurfaceProps {
|
|
3
|
+
checkoutUrl: string;
|
|
4
|
+
/** Log context only — the contract says URL surfaces may carry none. */
|
|
5
|
+
environment: string;
|
|
6
|
+
readinessTiming?: ApplePayReadinessTiming;
|
|
7
|
+
/** The button is drawn and can be pressed. */
|
|
8
|
+
onReady: (info: SurfaceReadiness) => void;
|
|
9
|
+
/** Banxa took the payment. */
|
|
10
|
+
onPaid: () => void;
|
|
11
|
+
onFailed: (code: string) => void;
|
|
12
|
+
/** The page has no tap event, so the first payment event stands for it. */
|
|
13
|
+
onPaymentStarted: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** Banxa's button-only checkout page, sized as the action's slot. */
|
|
16
|
+
export declare function BanxaCheckoutSurface({ checkoutUrl, environment, readinessTiming, onReady, onPaid, onFailed, onPaymentStarted, }: BanxaCheckoutSurfaceProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=BanxaCheckoutSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BanxaCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/banxa/BanxaCheckoutSurface.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAgB3E,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,uBAAuB,CAAA;IACzC,8CAA8C;IAC9C,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACzC,8BAA8B;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,2EAA2E;IAC3E,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED,qEAAqE;AACrE,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,EACR,gBAAgB,GACjB,EAAE,yBAAyB,+BAkG3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SurfaceAdapter } from '../adapter';
|
|
2
|
+
/**
|
|
3
|
+
* Banxa's button-only checkout: its Apple Pay button sits in the action's slot, as Coinbase's does.
|
|
4
|
+
* The slot's cover stays up until `banxa:ready` (`fiatSubmitRenderer` waits for Banxa), which hides
|
|
5
|
+
* the pricing and loading pages Banxa shows first.
|
|
6
|
+
*/
|
|
7
|
+
export declare const banxaApplePayButton: SurfaceAdapter;
|
|
8
|
+
//# sourceMappingURL=banxaApplePayButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banxaApplePayButton.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/banxa/banxaApplePayButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AA8BhE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,cASjC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What Banxa's button-only checkout page says about itself (#ext-banxa-fun, 2026-10-23):
|
|
3
|
+
* `{ type, payload }`, posted as an object on iOS and as a JSON string on Android, with types
|
|
4
|
+
* `banxa:loading`, `banxa:ready {width,height}`, `banxa:payment-pending`, `banxa:payment-complete`,
|
|
5
|
+
* `banxa:kyc-complete` and `banxa:error {code,message}`.
|
|
6
|
+
*/
|
|
7
|
+
export type BanxaBridgeEvent =
|
|
8
|
+
/** The button is drawn and can be pressed. */
|
|
9
|
+
{
|
|
10
|
+
kind: 'READY';
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'PAYMENT_PENDING';
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'PAYMENT_COMPLETE';
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'ERROR';
|
|
17
|
+
code: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Named for the log, acted on by nothing: `banxa:loading`, `banxa:kyc-complete`. */
|
|
21
|
+
| {
|
|
22
|
+
kind: 'PROGRESS';
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
/** One posted message, or `undefined` for anything Banxa's page did not send. */
|
|
26
|
+
export declare function readBanxaBridgeEvent(raw: string): BanxaBridgeEvent | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The two channels Banxa's page posts to (2026-10-23), both forwarded to
|
|
29
|
+
* `ReactNativeWebView`: iOS calls `window.webkit.messageHandlers.banxaWebviewBridge.postMessage(object)`,
|
|
30
|
+
* Android calls `window.banxaWebviewBridge.postMessage(jsonString)`. `window.postMessage` is not
|
|
31
|
+
* listened to: the page also posts there (for its web embed), which delivered every event twice.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BANXA_BRIDGE_SHIM = "\n (function () {\n function forward(data) {\n try {\n window.ReactNativeWebView.postMessage(typeof data === 'string' ? data : JSON.stringify(data));\n } catch (e) {}\n }\n var bridge = { postMessage: forward };\n window.banxaWebviewBridge = bridge;\n try {\n if (window.webkit && window.webkit.messageHandlers && !window.webkit.messageHandlers.banxaWebviewBridge) {\n Object.defineProperty(window.webkit.messageHandlers, 'banxaWebviewBridge', { value: bridge });\n }\n } catch (e) {}\n })();\n true;\n";
|
|
34
|
+
//# sourceMappingURL=banxaBridgeEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banxaBridgeEvents.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/banxa/banxaBridgeEvents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB;AAC1B,8CAA8C;AAC5C;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAC3B;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC5B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AACnD,qFAAqF;GACnF;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtC,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,GACV,gBAAgB,GAAG,SAAS,CA8B9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,kjBAgB7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAMlD,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3D,8CAA8C;IAC9C,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACzC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,yEAAyE;IACzE,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,gFAAgF;IAChF,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,4BAA4B,+BA+K9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,YAAY,CAAA;AASnB,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAQlC;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAW9B,CAAA"}
|
|
@@ -46,6 +46,12 @@ export type CoinbaseOnrampEvent =
|
|
|
46
46
|
kind: 'PROGRESS';
|
|
47
47
|
name: string;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* The buyer closed Coinbase's Apple Pay sheet unpaid. Many had no debit card
|
|
51
|
+
* to offer it, so the screen offers another provider instead of leaving them
|
|
52
|
+
* on a button that cannot take their card.
|
|
53
|
+
*/
|
|
54
|
+
export declare const COINBASE_SHEET_DISMISSED = "coinbase_apple_pay:dismissed";
|
|
49
55
|
export type CoinbaseFailureStage = 'load' | 'commit' | 'session';
|
|
50
56
|
/**
|
|
51
57
|
* Reads one posted message, or `undefined` for anything this page did not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,6DAA6D;GAC3D;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB;;;GAGG;GACD;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AACH;;;GAGG;GACD;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAChE,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,6DAA6D;GAC3D;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB;;;GAGG;GACD;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,oBAAoB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AACH;;;GAGG;GACD;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAChE,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,iCAAiC,CAAA;AActE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAOhE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CA6B5E"}
|
|
@@ -9,13 +9,23 @@ import type { StripeLinkRegistration } from './stripeOnramp';
|
|
|
9
9
|
* transition rather than letting the buyer type it.
|
|
10
10
|
*/
|
|
11
11
|
export declare function stripeLinkRegistrationFrom(values: FormValues, verifiedEmail: string | undefined): StripeLinkRegistration | undefined;
|
|
12
|
+
/** The flow's step as a Stripe form round, narrowed, or `undefined` when it is not one. */
|
|
13
|
+
export declare function stripeInputRound(stepResponse: FiatFlow['stepResponse']): {
|
|
14
|
+
kind: 'KYC';
|
|
15
|
+
phase: 'INPUT_REQUIRED';
|
|
16
|
+
quote?: import("@funkit/connect-core").Quote;
|
|
17
|
+
form: import("@funkit/connect-core").FormDescriptor;
|
|
18
|
+
error?: import("@funkit/connect-core").FailureReason;
|
|
19
|
+
} | undefined;
|
|
12
20
|
/**
|
|
13
|
-
* What
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
21
|
+
* What we already know for a Stripe form's fields, or `undefined` when this is not a Stripe round or
|
|
22
|
+
* we know none of them. Account creation and the identity rounds after it both qualify, since the
|
|
23
|
+
* device pushes both to Stripe. Per field, what the backend holds (`heldValues`, ENG-6590) wins over
|
|
24
|
+
* `deviceValues`: values the device collected itself, such as an Apple Pay contact, which the
|
|
25
|
+
* backend never sees. `complete` says whether together they answer every required field, which is
|
|
26
|
+
* when the device can push without showing the form at all.
|
|
17
27
|
*/
|
|
18
|
-
export declare function getPrefilledStripeFormData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined): {
|
|
28
|
+
export declare function getPrefilledStripeFormData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined, deviceValues?: FormValues): {
|
|
19
29
|
values: FormValues;
|
|
20
30
|
complete: boolean;
|
|
21
31
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeAccountCreation.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeAccountCreation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,sBAAsB,GAAG,SAAS,CAkBpC;AAUD
|
|
1
|
+
{"version":3,"file":"stripeAccountCreation.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeAccountCreation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,sBAAsB,GAAG,SAAS,CAkBpC;AAUD,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC;;;;;;cAOtE;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,EAC7C,YAAY,GAAE,UAAe,GAC5B;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CA6BvD"}
|