@daimo/sdk 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/client/createDaimoClient.d.ts +16 -4
- package/dist/client/createDaimoClient.d.ts.map +1 -1
- package/dist/client/createDaimoClient.js +31 -3
- package/dist/client/createDaimoClient.js.map +1 -1
- package/dist/common/account.d.ts +419 -13
- package/dist/common/account.d.ts.map +1 -1
- package/dist/common/account.js +278 -0
- package/dist/common/account.js.map +1 -1
- package/dist/common/api.d.ts +7 -5
- package/dist/common/api.d.ts.map +1 -1
- package/dist/common/api.js +13 -12
- package/dist/common/api.js.map +1 -1
- package/dist/common/api.test.d.ts +2 -0
- package/dist/common/api.test.d.ts.map +1 -0
- package/dist/common/api.test.js +21 -0
- package/dist/common/api.test.js.map +1 -0
- package/dist/common/constants.d.ts +5 -0
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/constants.js +5 -0
- package/dist/common/constants.js.map +1 -0
- package/dist/common/frameMessages.d.ts +26 -0
- package/dist/common/frameMessages.d.ts.map +1 -0
- package/dist/common/frameMessages.js +54 -0
- package/dist/common/frameMessages.js.map +1 -0
- package/dist/common/frameMessages.test.d.ts +2 -0
- package/dist/common/frameMessages.test.d.ts.map +1 -0
- package/dist/common/frameMessages.test.js +42 -0
- package/dist/common/frameMessages.test.js.map +1 -0
- package/dist/common/frameReadiness.d.ts +22 -0
- package/dist/common/frameReadiness.d.ts.map +1 -0
- package/dist/common/frameReadiness.js +33 -0
- package/dist/common/frameReadiness.js.map +1 -0
- package/dist/common/frameReadiness.test.d.ts +2 -0
- package/dist/common/frameReadiness.test.d.ts.map +1 -0
- package/dist/common/frameReadiness.test.js +76 -0
- package/dist/common/frameReadiness.test.js.map +1 -0
- package/dist/native/DaimoFrameRN.d.ts +72 -0
- package/dist/native/DaimoFrameRN.d.ts.map +1 -0
- package/dist/native/DaimoFrameRN.js +244 -0
- package/dist/native/DaimoFrameRN.js.map +1 -0
- package/dist/native/index.d.ts +5 -0
- package/dist/native/index.d.ts.map +1 -0
- package/dist/native/index.js +10 -0
- package/dist/native/index.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/web/api/index.d.ts +24 -0
- package/dist/web/api/index.d.ts.map +1 -1
- package/dist/web/api/index.js +6 -1
- package/dist/web/api/index.js.map +1 -1
- package/dist/web/api/navTree.d.ts +5 -2
- package/dist/web/api/navTree.d.ts.map +1 -1
- package/dist/web/components/BankLogo.d.ts +8 -0
- package/dist/web/components/BankLogo.d.ts.map +1 -0
- package/dist/web/components/BankLogo.js +9 -0
- package/dist/web/components/BankLogo.js.map +1 -0
- package/dist/web/components/ChooseOptionPage.d.ts +2 -1
- package/dist/web/components/ChooseOptionPage.d.ts.map +1 -1
- package/dist/web/components/ChooseOptionPage.js +7 -4
- package/dist/web/components/ChooseOptionPage.js.map +1 -1
- package/dist/web/components/ChooseOptionPage.test.d.ts +2 -0
- package/dist/web/components/ChooseOptionPage.test.d.ts.map +1 -0
- package/dist/web/components/ChooseOptionPage.test.js +29 -0
- package/dist/web/components/ChooseOptionPage.test.js.map +1 -0
- package/dist/web/components/Countdown.d.ts +4 -1
- package/dist/web/components/Countdown.d.ts.map +1 -1
- package/dist/web/components/Countdown.js +24 -10
- package/dist/web/components/Countdown.js.map +1 -1
- package/dist/web/components/Countdown.test.d.ts +2 -0
- package/dist/web/components/Countdown.test.d.ts.map +1 -0
- package/dist/web/components/Countdown.test.js +16 -0
- package/dist/web/components/Countdown.test.js.map +1 -0
- package/dist/web/components/DaimoFrame.d.ts +3 -2
- package/dist/web/components/DaimoFrame.d.ts.map +1 -1
- package/dist/web/components/DaimoFrame.js +36 -18
- package/dist/web/components/DaimoFrame.js.map +1 -1
- package/dist/web/components/DaimoModal.d.ts +16 -1
- package/dist/web/components/DaimoModal.d.ts.map +1 -1
- package/dist/web/components/DaimoModal.js +147 -64
- package/dist/web/components/DaimoModal.js.map +1 -1
- package/dist/web/components/DaimoRampPreview.d.ts +12 -0
- package/dist/web/components/DaimoRampPreview.d.ts.map +1 -0
- package/dist/web/components/DaimoRampPreview.js +21 -0
- package/dist/web/components/DaimoRampPreview.js.map +1 -0
- package/dist/web/components/ExchangePage.d.ts.map +1 -1
- package/dist/web/components/ExchangePage.js +6 -1
- package/dist/web/components/ExchangePage.js.map +1 -1
- package/dist/web/components/ExternalPaymentPage.d.ts.map +1 -1
- package/dist/web/components/ExternalPaymentPage.js +3 -2
- package/dist/web/components/ExternalPaymentPage.js.map +1 -1
- package/dist/web/components/ModalChrome.d.ts +9 -12
- package/dist/web/components/ModalChrome.d.ts.map +1 -1
- package/dist/web/components/ModalChrome.js +40 -41
- package/dist/web/components/ModalChrome.js.map +1 -1
- package/dist/web/components/account/AccountApplePayPage.d.ts +4 -3
- package/dist/web/components/account/AccountApplePayPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountApplePayPage.js +85 -50
- package/dist/web/components/account/AccountApplePayPage.js.map +1 -1
- package/dist/web/components/account/AccountApprovalPage.d.ts +34 -0
- package/dist/web/components/account/AccountApprovalPage.d.ts.map +1 -0
- package/dist/web/components/account/AccountApprovalPage.js +145 -0
- package/dist/web/components/account/AccountApprovalPage.js.map +1 -0
- package/dist/web/components/account/AccountBankDetailsPage.d.ts +4 -3
- package/dist/web/components/account/AccountBankDetailsPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountBankDetailsPage.js +12 -10
- package/dist/web/components/account/AccountBankDetailsPage.js.map +1 -1
- package/dist/web/components/account/AccountBankPickerPage.d.ts +6 -9
- package/dist/web/components/account/AccountBankPickerPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountBankPickerPage.js +52 -23
- package/dist/web/components/account/AccountBankPickerPage.js.map +1 -1
- package/dist/web/components/account/AccountDeeplinkPage.d.ts +3 -1
- package/dist/web/components/account/AccountDeeplinkPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountDeeplinkPage.js +17 -9
- package/dist/web/components/account/AccountDeeplinkPage.js.map +1 -1
- package/dist/web/components/account/AccountEmailPage.d.ts +2 -1
- package/dist/web/components/account/AccountEmailPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountEmailPage.js +2 -2
- package/dist/web/components/account/AccountEmailPage.js.map +1 -1
- package/dist/web/components/account/AccountEnrollmentPage.d.ts +1 -4
- package/dist/web/components/account/AccountEnrollmentPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountEnrollmentPage.js +270 -236
- package/dist/web/components/account/AccountEnrollmentPage.js.map +1 -1
- package/dist/web/components/account/AccountEnrollmentUpdatePage.d.ts.map +1 -1
- package/dist/web/components/account/AccountEnrollmentUpdatePage.js +2 -1
- package/dist/web/components/account/AccountEnrollmentUpdatePage.js.map +1 -1
- package/dist/web/components/account/AccountFlowProvider.d.ts +8 -1
- package/dist/web/components/account/AccountFlowProvider.d.ts.map +1 -1
- package/dist/web/components/account/AccountFlowProvider.js +38 -3
- package/dist/web/components/account/AccountFlowProvider.js.map +1 -1
- package/dist/web/components/account/AccountInteracConfirmPage.d.ts +4 -3
- package/dist/web/components/account/AccountInteracConfirmPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountInteracConfirmPage.js +15 -23
- package/dist/web/components/account/AccountInteracConfirmPage.js.map +1 -1
- package/dist/web/components/account/AccountOtpCodeEntry.d.ts +2 -1
- package/dist/web/components/account/AccountOtpCodeEntry.d.ts.map +1 -1
- package/dist/web/components/account/AccountOtpCodeEntry.js +25 -6
- package/dist/web/components/account/AccountOtpCodeEntry.js.map +1 -1
- package/dist/web/components/account/AccountOtpPage.d.ts +1 -1
- package/dist/web/components/account/AccountOtpPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountOtpPage.js +4 -2
- package/dist/web/components/account/AccountOtpPage.js.map +1 -1
- package/dist/web/components/account/AccountPaymentPage.d.ts +3 -2
- package/dist/web/components/account/AccountPaymentPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountPaymentPage.js +10 -5
- package/dist/web/components/account/AccountPaymentPage.js.map +1 -1
- package/dist/web/components/account/AccountPaymentResumePage.d.ts +8 -0
- package/dist/web/components/account/AccountPaymentResumePage.d.ts.map +1 -0
- package/dist/web/components/account/AccountPaymentResumePage.js +42 -0
- package/dist/web/components/account/AccountPaymentResumePage.js.map +1 -0
- package/dist/web/components/account/AccountPhoneOtpPage.d.ts +1 -3
- package/dist/web/components/account/AccountPhoneOtpPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountPhoneOtpPage.js +3 -40
- package/dist/web/components/account/AccountPhoneOtpPage.js.map +1 -1
- package/dist/web/components/account/AccountPhonePage.d.ts +1 -2
- package/dist/web/components/account/AccountPhonePage.d.ts.map +1 -1
- package/dist/web/components/account/AccountPhonePage.js +1 -2
- package/dist/web/components/account/AccountPhonePage.js.map +1 -1
- package/dist/web/components/account/AccountRequestToPayPage.d.ts +28 -0
- package/dist/web/components/account/AccountRequestToPayPage.d.ts.map +1 -0
- package/dist/web/components/account/AccountRequestToPayPage.js +79 -0
- package/dist/web/components/account/AccountRequestToPayPage.js.map +1 -0
- package/dist/web/components/account/AccountStatusPage.d.ts +4 -1
- package/dist/web/components/account/AccountStatusPage.d.ts.map +1 -1
- package/dist/web/components/account/AccountStatusPage.js +2 -2
- package/dist/web/components/account/AccountStatusPage.js.map +1 -1
- package/dist/web/components/account/PaginatedEnrollmentForm.d.ts +4 -1
- package/dist/web/components/account/PaginatedEnrollmentForm.d.ts.map +1 -1
- package/dist/web/components/account/PaginatedEnrollmentForm.js +74 -8
- package/dist/web/components/account/PaginatedEnrollmentForm.js.map +1 -1
- package/dist/web/components/account/PaginatedEnrollmentForm.test.d.ts +2 -0
- package/dist/web/components/account/PaginatedEnrollmentForm.test.d.ts.map +1 -0
- package/dist/web/components/account/PaginatedEnrollmentForm.test.js +67 -0
- package/dist/web/components/account/PaginatedEnrollmentForm.test.js.map +1 -0
- package/dist/web/components/account/accountNav.d.ts +19 -9
- package/dist/web/components/account/accountNav.d.ts.map +1 -1
- package/dist/web/components/account/accountNav.js +76 -32
- package/dist/web/components/account/accountNav.js.map +1 -1
- package/dist/web/components/account/accountNav.test.js +180 -15
- package/dist/web/components/account/accountNav.test.js.map +1 -1
- package/dist/web/components/account/accountPaymentCompatibility.d.ts +40 -0
- package/dist/web/components/account/accountPaymentCompatibility.d.ts.map +1 -0
- package/dist/web/components/account/accountPaymentCompatibility.js +319 -0
- package/dist/web/components/account/accountPaymentCompatibility.js.map +1 -0
- package/dist/web/components/account/accountSessionRecreate.d.ts +15 -0
- package/dist/web/components/account/accountSessionRecreate.d.ts.map +1 -0
- package/dist/web/components/account/accountSessionRecreate.js +24 -0
- package/dist/web/components/account/accountSessionRecreate.js.map +1 -0
- package/dist/web/components/account/accountSessionRecreate.test.d.ts +2 -0
- package/dist/web/components/account/accountSessionRecreate.test.d.ts.map +1 -0
- package/dist/web/components/account/accountSessionRecreate.test.js +75 -0
- package/dist/web/components/account/accountSessionRecreate.test.js.map +1 -0
- package/dist/web/components/account/approvalInteractions.test.d.ts +2 -0
- package/dist/web/components/account/approvalInteractions.test.d.ts.map +1 -0
- package/dist/web/components/account/approvalInteractions.test.js +209 -0
- package/dist/web/components/account/approvalInteractions.test.js.map +1 -0
- package/dist/web/components/account/enrollmentProtocol.d.ts +76 -0
- package/dist/web/components/account/enrollmentProtocol.d.ts.map +1 -0
- package/dist/web/components/account/enrollmentProtocol.js +323 -0
- package/dist/web/components/account/enrollmentProtocol.js.map +1 -0
- package/dist/web/components/account/enrollmentProtocol.test.d.ts +2 -0
- package/dist/web/components/account/enrollmentProtocol.test.d.ts.map +1 -0
- package/dist/web/components/account/enrollmentProtocol.test.js +544 -0
- package/dist/web/components/account/enrollmentProtocol.test.js.map +1 -0
- package/dist/web/components/account/fiatPopup.d.ts +7 -2
- package/dist/web/components/account/fiatPopup.d.ts.map +1 -1
- package/dist/web/components/account/fiatPopup.js +16 -6
- package/dist/web/components/account/fiatPopup.js.map +1 -1
- package/dist/web/components/account/fiatPopup.test.js +8 -6
- package/dist/web/components/account/fiatPopup.test.js.map +1 -1
- package/dist/web/components/account/formSchemas.d.ts +6 -6
- package/dist/web/components/account/requestToPay.test.d.ts +2 -0
- package/dist/web/components/account/requestToPay.test.d.ts.map +1 -0
- package/dist/web/components/account/requestToPay.test.js +117 -0
- package/dist/web/components/account/requestToPay.test.js.map +1 -0
- package/dist/web/components/account/walletPayDetails.d.ts +8 -0
- package/dist/web/components/account/walletPayDetails.d.ts.map +1 -0
- package/dist/web/components/account/walletPayDetails.js +46 -0
- package/dist/web/components/account/walletPayDetails.js.map +1 -0
- package/dist/web/components/account/walletPayDetails.test.d.ts +2 -0
- package/dist/web/components/account/walletPayDetails.test.d.ts.map +1 -0
- package/dist/web/components/account/walletPayDetails.test.js +87 -0
- package/dist/web/components/account/walletPayDetails.test.js.map +1 -0
- package/dist/web/components/account/walletPayName.d.ts +8 -0
- package/dist/web/components/account/walletPayName.d.ts.map +1 -0
- package/dist/web/components/account/walletPayName.js +12 -0
- package/dist/web/components/account/walletPayName.js.map +1 -0
- package/dist/web/components/account/walletPayName.test.d.ts +2 -0
- package/dist/web/components/account/walletPayName.test.d.ts.map +1 -0
- package/dist/web/components/account/walletPayName.test.js +15 -0
- package/dist/web/components/account/walletPayName.test.js.map +1 -0
- package/dist/web/components/frameMessages.d.ts +2 -28
- package/dist/web/components/frameMessages.d.ts.map +1 -1
- package/dist/web/components/frameMessages.js +4 -61
- package/dist/web/components/frameMessages.js.map +1 -1
- package/dist/web/components/shared.d.ts.map +1 -1
- package/dist/web/components/shared.js +7 -2
- package/dist/web/components/shared.js.map +1 -1
- package/dist/web/hooks/accountAuthNav.d.ts.map +1 -1
- package/dist/web/hooks/accountAuthNav.js +1 -6
- package/dist/web/hooks/accountAuthNav.js.map +1 -1
- package/dist/web/hooks/accountAuthNav.test.js +9 -15
- package/dist/web/hooks/accountAuthNav.test.js.map +1 -1
- package/dist/web/hooks/formatUserError.d.ts.map +1 -1
- package/dist/web/hooks/formatUserError.js +10 -0
- package/dist/web/hooks/formatUserError.js.map +1 -1
- package/dist/web/hooks/formatUserError.test.d.ts +2 -0
- package/dist/web/hooks/formatUserError.test.d.ts.map +1 -0
- package/dist/web/hooks/formatUserError.test.js +36 -0
- package/dist/web/hooks/formatUserError.test.js.map +1 -0
- package/dist/web/hooks/locales/en.d.ts +8 -2
- package/dist/web/hooks/locales/en.d.ts.map +1 -1
- package/dist/web/hooks/locales/en.js +13 -7
- package/dist/web/hooks/locales/en.js.map +1 -1
- package/dist/web/hooks/locales/es.d.ts.map +1 -1
- package/dist/web/hooks/locales/es.js +13 -7
- package/dist/web/hooks/locales/es.js.map +1 -1
- package/dist/web/hooks/locales/ja.d.ts.map +1 -1
- package/dist/web/hooks/locales/ja.js +13 -7
- package/dist/web/hooks/locales/ja.js.map +1 -1
- package/dist/web/hooks/locales/ko.d.ts.map +1 -1
- package/dist/web/hooks/locales/ko.js +13 -7
- package/dist/web/hooks/locales/ko.js.map +1 -1
- package/dist/web/hooks/locales/pt.d.ts.map +1 -1
- package/dist/web/hooks/locales/pt.js +13 -7
- package/dist/web/hooks/locales/pt.js.map +1 -1
- package/dist/web/hooks/locales/zh.d.ts.map +1 -1
- package/dist/web/hooks/locales/zh.js +13 -7
- package/dist/web/hooks/locales/zh.js.map +1 -1
- package/dist/web/hooks/types.d.ts +16 -8
- package/dist/web/hooks/types.d.ts.map +1 -1
- package/dist/web/hooks/types.js.map +1 -1
- package/dist/web/hooks/useAccountFlow.d.ts +3 -9
- package/dist/web/hooks/useAccountFlow.d.ts.map +1 -1
- package/dist/web/hooks/useAccountFlow.js +0 -12
- package/dist/web/hooks/useAccountFlow.js.map +1 -1
- package/dist/web/hooks/useDepositPoller.js +1 -1
- package/dist/web/hooks/useDepositPoller.js.map +1 -1
- package/dist/web/hooks/useDraftDeposit.d.ts +3 -2
- package/dist/web/hooks/useDraftDeposit.d.ts.map +1 -1
- package/dist/web/hooks/useDraftDeposit.js +12 -5
- package/dist/web/hooks/useDraftDeposit.js.map +1 -1
- package/dist/web/hooks/useRequestToPayDeposit.d.ts +26 -0
- package/dist/web/hooks/useRequestToPayDeposit.d.ts.map +1 -0
- package/dist/web/hooks/useRequestToPayDeposit.js +81 -0
- package/dist/web/hooks/useRequestToPayDeposit.js.map +1 -0
- package/dist/web/hooks/useSessionNav.d.ts +11 -2
- package/dist/web/hooks/useSessionNav.d.ts.map +1 -1
- package/dist/web/hooks/useSessionNav.js +199 -36
- package/dist/web/hooks/useSessionNav.js.map +1 -1
- package/dist/web/index.d.ts +2 -0
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +1 -0
- package/dist/web/index.js.map +1 -1
- package/dist/web/styles.css +1 -1
- package/dist/web/theme.css +1 -1
- package/dist/web/theme.d.ts.map +1 -1
- package/dist/web/theme.js +3 -1
- package/dist/web/theme.js.map +1 -1
- package/package.json +18 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "vitest";
|
|
2
|
-
import { getAccountPaymentAdvanceTarget } from "./accountNav.js";
|
|
2
|
+
import { getAccountPaymentAdvanceTarget, getAccountPaymentEntryTarget, getDepositResumeTarget, getInstitutionSelectionAdvanceTarget, isPaymentInteractionCompatible, shouldRecoverExpiredPayment, } from "./accountNav.js";
|
|
3
|
+
import { getInstitutionPaymentContract, getNodePaymentInteraction, } from "./accountPaymentCompatibility.js";
|
|
3
4
|
const ALL_PLATFORMS = [
|
|
4
5
|
"desktop",
|
|
5
6
|
"mobile",
|
|
@@ -7,29 +8,193 @@ const ALL_PLATFORMS = [
|
|
|
7
8
|
"android",
|
|
8
9
|
"other",
|
|
9
10
|
];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const ALL_INTERACTIONS = [
|
|
12
|
+
"bank-picker",
|
|
13
|
+
"bank-transfer",
|
|
14
|
+
"directions",
|
|
15
|
+
"external-app-approval",
|
|
16
|
+
"hosted-approval",
|
|
17
|
+
"institution-picker",
|
|
18
|
+
"request-to-pay",
|
|
19
|
+
"wallet-pay-widget",
|
|
20
|
+
];
|
|
21
|
+
describe("interaction-driven account navigation", () => {
|
|
22
|
+
test("wallet pay keeps combined entry while other interactions enter amount", () => {
|
|
23
|
+
expect(getAccountPaymentEntryTarget("wallet-pay-widget")).toBe("account-wallet-pay");
|
|
24
|
+
for (const interaction of [
|
|
25
|
+
"bank-picker",
|
|
26
|
+
"bank-transfer",
|
|
27
|
+
"directions",
|
|
28
|
+
"external-app-approval",
|
|
29
|
+
"hosted-approval",
|
|
30
|
+
"institution-picker",
|
|
31
|
+
"request-to-pay",
|
|
32
|
+
]) {
|
|
33
|
+
expect(getAccountPaymentEntryTarget(interaction)).toBe("account-amount");
|
|
34
|
+
}
|
|
15
35
|
});
|
|
16
|
-
test("
|
|
36
|
+
test("institution picker preserves desktop and mobile choreography", () => {
|
|
37
|
+
expect(getAccountPaymentAdvanceTarget("bank-picker", "desktop")).toBe("account-institution-picker");
|
|
38
|
+
expect(getAccountPaymentAdvanceTarget("bank-picker", "other")).toBe("account-institution-picker");
|
|
17
39
|
for (const platform of ["mobile", "ios", "android"]) {
|
|
18
|
-
expect(getAccountPaymentAdvanceTarget("
|
|
40
|
+
expect(getAccountPaymentAdvanceTarget("bank-picker", platform)).toBe("account-institution-review");
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
test("legacy selection advances to review instead of re-entering the picker", () => {
|
|
44
|
+
for (const platform of ALL_PLATFORMS) {
|
|
45
|
+
expect(getInstitutionSelectionAdvanceTarget("bank-picker", platform)).toBe("account-institution-review");
|
|
46
|
+
expect(getInstitutionSelectionAdvanceTarget("hosted-approval", platform)).toBe("account-approval");
|
|
19
47
|
}
|
|
20
48
|
});
|
|
21
|
-
test("
|
|
22
|
-
const
|
|
23
|
-
|
|
49
|
+
test("every non-picker interaction has a platform-independent renderer", () => {
|
|
50
|
+
const expected = {
|
|
51
|
+
"bank-transfer": "account-payment-instructions",
|
|
52
|
+
directions: "account-payment-instructions",
|
|
53
|
+
"external-app-approval": "account-approval",
|
|
54
|
+
"hosted-approval": "account-approval",
|
|
55
|
+
"institution-picker": "account-institution-picker",
|
|
56
|
+
"request-to-pay": "account-request-to-pay",
|
|
57
|
+
"wallet-pay-widget": "account-wallet-pay",
|
|
58
|
+
};
|
|
59
|
+
for (const [interaction, target] of Object.entries(expected)) {
|
|
24
60
|
for (const platform of ALL_PLATFORMS) {
|
|
25
|
-
expect(getAccountPaymentAdvanceTarget(
|
|
61
|
+
expect(getAccountPaymentAdvanceTarget(interaction, platform)).toBe(target);
|
|
26
62
|
}
|
|
27
63
|
}
|
|
28
64
|
});
|
|
29
|
-
test("
|
|
30
|
-
for (const
|
|
31
|
-
|
|
65
|
+
test("actual payment flow must match the advertised interaction", () => {
|
|
66
|
+
for (const advertised of ALL_INTERACTIONS) {
|
|
67
|
+
for (const actual of ALL_INTERACTIONS) {
|
|
68
|
+
const payment = { flow: actual };
|
|
69
|
+
expect(isPaymentInteractionCompatible(advertised, payment)).toBe(advertised === actual);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
test("uses server interaction without consulting the rail", () => {
|
|
74
|
+
const node = makeFiatNode("ach", "wallet-pay-widget");
|
|
75
|
+
expect(getNodePaymentInteraction(node)).toBe("wallet-pay-widget");
|
|
76
|
+
});
|
|
77
|
+
test("isolates temporary old-server rail fallback", () => {
|
|
78
|
+
expect(getNodePaymentInteraction(makeFiatNode("interac"))).toBe("bank-picker");
|
|
79
|
+
expect(getNodePaymentInteraction(makeFiatNode("apple_pay"))).toBe("wallet-pay-widget");
|
|
80
|
+
expect(getNodePaymentInteraction(makeFiatNode("ach"))).toBe("bank-transfer");
|
|
81
|
+
expect(getNodePaymentInteraction(makeFiatNode("sepa"))).toBe("bank-transfer");
|
|
82
|
+
expect(getNodePaymentInteraction(makeFiatNode("jpyc"))).toBe("directions");
|
|
83
|
+
expect(getNodePaymentInteraction(makeFiatNode("ars"))).toBe("bank-transfer");
|
|
84
|
+
});
|
|
85
|
+
test("isolates old bank-picker payload normalization", () => {
|
|
86
|
+
const payment = {
|
|
87
|
+
flow: "bank-picker",
|
|
88
|
+
currency: { code: "CAD", symbol: "CA$" },
|
|
89
|
+
qrUrl: "https://example.com/accept?rID=legacy-reference",
|
|
90
|
+
};
|
|
91
|
+
const contract = getInstitutionPaymentContract(payment, "25.00");
|
|
92
|
+
expect(contract.ui.review.fields).toEqual([
|
|
93
|
+
{ key: "sender", label: "Sender", value: "PayTrie AB Inc" },
|
|
94
|
+
{ key: "amount", label: "Amount", value: "CA$25.00 CAD" },
|
|
95
|
+
]);
|
|
96
|
+
expect(contract.ui.review.fieldsAfterInstitution).toEqual([
|
|
97
|
+
{
|
|
98
|
+
key: "processing_time",
|
|
99
|
+
label: "Processing time",
|
|
100
|
+
value: "5–30 min",
|
|
101
|
+
},
|
|
102
|
+
]);
|
|
103
|
+
expect(contract.ui.waiting.instructions).toContain("5–30 min");
|
|
104
|
+
expect(contract.fallbackDeeplink).toEqual({
|
|
105
|
+
type: "redirect",
|
|
106
|
+
url: payment.qrUrl,
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
test("preserves server-owned UI when only the fallback action is absent", () => {
|
|
110
|
+
const institutionPaymentUi = {
|
|
111
|
+
picker: {
|
|
112
|
+
title: "Choose an institution",
|
|
113
|
+
searchPlaceholder: "Search institutions",
|
|
114
|
+
otherInstitutionsLabel: "More institutions",
|
|
115
|
+
},
|
|
116
|
+
review: {
|
|
117
|
+
title: "Review payment request",
|
|
118
|
+
description: "Review the request in your institution.",
|
|
119
|
+
fields: [{ key: "reference", label: "Reference", value: "abc-123" }],
|
|
120
|
+
institutionLabel: "Institution",
|
|
121
|
+
openInstitutionLabel: "Open",
|
|
122
|
+
openFallbackLabel: "Open request",
|
|
123
|
+
},
|
|
124
|
+
waiting: {
|
|
125
|
+
title: "Complete payment",
|
|
126
|
+
instructions: "Approve the request in your institution.",
|
|
127
|
+
openInstitutionLabel: "Open",
|
|
128
|
+
openFallbackLabel: "Open request",
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
const payment = {
|
|
132
|
+
flow: "bank-picker",
|
|
133
|
+
currency: { code: "USD", symbol: "$" },
|
|
134
|
+
qrUrl: "https://example.com/request/abc-123",
|
|
135
|
+
institutionPaymentUi,
|
|
136
|
+
};
|
|
137
|
+
const contract = getInstitutionPaymentContract(payment, "25.00");
|
|
138
|
+
expect(contract.ui).toBe(institutionPaymentUi);
|
|
139
|
+
expect(contract.fallbackDeeplink).toEqual({
|
|
140
|
+
type: "redirect",
|
|
141
|
+
url: payment.qrUrl,
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
describe("getDepositResumeTarget", () => {
|
|
146
|
+
const ALL_STATUSES = [
|
|
147
|
+
"initiated",
|
|
148
|
+
"awaiting_payment",
|
|
149
|
+
"payment_received",
|
|
150
|
+
"token_delivered",
|
|
151
|
+
"completed",
|
|
152
|
+
"expired",
|
|
153
|
+
"failed",
|
|
154
|
+
];
|
|
155
|
+
test("deposits past payment resume at the status page", () => {
|
|
156
|
+
const resumed = [
|
|
157
|
+
"payment_received",
|
|
158
|
+
"token_delivered",
|
|
159
|
+
"completed",
|
|
160
|
+
"failed",
|
|
161
|
+
"expired",
|
|
162
|
+
];
|
|
163
|
+
for (const status of resumed) {
|
|
164
|
+
expect(getDepositResumeTarget(status)).toBe("account-status");
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
test("pre-payment deposits re-enter the interaction flow", () => {
|
|
168
|
+
expect(getDepositResumeTarget("initiated")).toBeNull();
|
|
169
|
+
expect(getDepositResumeTarget("awaiting_payment")).toBeNull();
|
|
170
|
+
});
|
|
171
|
+
test("expired request-to-pay re-enters interaction recovery", () => {
|
|
172
|
+
expect(getDepositResumeTarget("expired", "request-to-pay")).toBeNull();
|
|
173
|
+
expect(shouldRecoverExpiredPayment("expired", "request-to-pay")).toBe(true);
|
|
174
|
+
expect(shouldRecoverExpiredPayment("expired", "bank-transfer")).toBe(false);
|
|
175
|
+
for (const interaction of [
|
|
176
|
+
"institution-picker",
|
|
177
|
+
"hosted-approval",
|
|
178
|
+
"external-app-approval",
|
|
179
|
+
]) {
|
|
180
|
+
expect(getDepositResumeTarget("expired", interaction)).toBeNull();
|
|
181
|
+
expect(shouldRecoverExpiredPayment("expired", interaction)).toBe(true);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
test("every status has a decision", () => {
|
|
185
|
+
for (const status of ALL_STATUSES) {
|
|
186
|
+
const target = getDepositResumeTarget(status);
|
|
187
|
+
expect(target === "account-status" || target === null).toBe(true);
|
|
32
188
|
}
|
|
33
189
|
});
|
|
34
190
|
});
|
|
191
|
+
function makeFiatNode(fiatMethod, paymentInteraction) {
|
|
192
|
+
return {
|
|
193
|
+
type: "Fiat",
|
|
194
|
+
id: `Fiat-${fiatMethod}`,
|
|
195
|
+
title: fiatMethod,
|
|
196
|
+
fiatMethod,
|
|
197
|
+
paymentInteraction,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
35
200
|
//# sourceMappingURL=accountNav.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountNav.test.js","sourceRoot":"","sources":["../../../../src/web/components/account/accountNav.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"accountNav.test.js","sourceRoot":"","sources":["../../../../src/web/components/account/accountNav.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAShD,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,oCAAoC,EACpC,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,kCAAkC,CAAC;AAE1C,MA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
|
|
1
|
+
import type { DepositDeeplink, DepositInstitutionPaymentUi, DepositPaymentInfo, DepositPaymentInteraction, DepositPreCreatePaymentInput } from "../../../common/account.js";
|
|
2
|
+
import type { NavNodeFiat } from "../../api/navTree.js";
|
|
3
|
+
type BankPickerPayment = Pick<Extract<DepositPaymentInfo, {
|
|
4
|
+
flow: "bank-picker";
|
|
5
|
+
}>, "flow" | "currency" | "qrUrl" | "institutionPaymentUi" | "fallbackDeeplink">;
|
|
6
|
+
export type RequestToPayPayment = Extract<DepositPaymentInfo, {
|
|
7
|
+
flow: "request-to-pay";
|
|
8
|
+
}>;
|
|
9
|
+
export type InstitutionPickerPayment = Extract<DepositPaymentInfo, {
|
|
10
|
+
flow: "institution-picker";
|
|
11
|
+
}>;
|
|
12
|
+
export type ApprovalPayment = Extract<DepositPaymentInfo, {
|
|
13
|
+
flow: "hosted-approval" | "external-app-approval";
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Temporary old-server compatibility boundary. The normal path reads the
|
|
17
|
+
* interaction from the nav node; only legacy nodes fall back to public rail.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getNodePaymentInteraction(node: NavNodeFiat): DepositPaymentInteraction;
|
|
20
|
+
/** Normalize additive institution UI fields, including old-server payloads. */
|
|
21
|
+
export declare function getInstitutionPaymentContract(payment: BankPickerPayment, depositAmount: string): {
|
|
22
|
+
ui: DepositInstitutionPaymentUi;
|
|
23
|
+
fallbackDeeplink: DepositDeeplink | null;
|
|
24
|
+
};
|
|
25
|
+
/** Validate every required request-to-pay field before rendering or signing. */
|
|
26
|
+
export declare function getRequestToPayContract(payment: DepositPaymentInfo): RequestToPayPayment | null;
|
|
27
|
+
/** Validate one exact pre-create institution catalog before rendering. */
|
|
28
|
+
export declare function getInstitutionPickerContract(payment: DepositPaymentInfo): InstitutionPickerPayment | null;
|
|
29
|
+
/** Build the only typed client input accepted for an issued catalog action. */
|
|
30
|
+
export declare function buildInstitutionPaymentInput(payment: DepositPaymentInfo, institutionId: string): DepositPreCreatePaymentInput;
|
|
31
|
+
/** Validate hosted and passive external-app approval contracts. */
|
|
32
|
+
export declare function getApprovalContract(payment: DepositPaymentInfo): ApprovalPayment | null;
|
|
33
|
+
/** Select the token-units amount covered by the routing authorization. */
|
|
34
|
+
export declare function getAuthorizedRoutingAmount(payment: DepositPaymentInfo, depositAmount: string): string;
|
|
35
|
+
/** True only for a valid approval whose absolute server expiry has passed. */
|
|
36
|
+
export declare function isExpiredApproval(payment: DepositPaymentInfo, nowSeconds?: number): boolean;
|
|
37
|
+
/** True only for a valid request whose absolute server expiry has passed. */
|
|
38
|
+
export declare function isExpiredRequestToPay(payment: DepositPaymentInfo, nowSeconds?: number): boolean;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=accountPaymentCompatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountPaymentCompatibility.d.ts","sourceRoot":"","sources":["../../../../src/web/components/account/accountPaymentCompatibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,KAAK,iBAAiB,GAAG,IAAI,CAC3B,OAAO,CAAC,kBAAkB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,EACpD,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,sBAAsB,GAAG,kBAAkB,CAC5E,CAAC;AAIF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACvC,kBAAkB,EAClB;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAC3B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,kBAAkB,EAClB;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAC/B,CAAC;AAEF,MAAM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
* Temporary old-server compatibility boundary. The normal path reads the
|
|
5
|
+
* interaction from the nav node; only legacy nodes fall back to public rail.
|
|
6
|
+
*/
|
|
7
|
+
export function getNodePaymentInteraction(node) {
|
|
8
|
+
if (node.paymentInteraction)
|
|
9
|
+
return node.paymentInteraction;
|
|
10
|
+
switch (node.fiatMethod) {
|
|
11
|
+
case "interac":
|
|
12
|
+
return "bank-picker";
|
|
13
|
+
case "apple_pay":
|
|
14
|
+
return "wallet-pay-widget";
|
|
15
|
+
case "ach":
|
|
16
|
+
case "sepa":
|
|
17
|
+
case "ars":
|
|
18
|
+
return "bank-transfer";
|
|
19
|
+
case "jpyc":
|
|
20
|
+
return "directions";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** Normalize additive institution UI fields, including old-server payloads. */
|
|
24
|
+
export function getInstitutionPaymentContract(payment, depositAmount) {
|
|
25
|
+
if (payment.institutionPaymentUi) {
|
|
26
|
+
return {
|
|
27
|
+
ui: payment.institutionPaymentUi,
|
|
28
|
+
fallbackDeeplink: payment.fallbackDeeplink ??
|
|
29
|
+
(payment.qrUrl ? { type: "redirect", url: payment.qrUrl } : null),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const amount = `${payment.currency.symbol}${depositAmount} ${payment.currency.code}`;
|
|
33
|
+
return {
|
|
34
|
+
ui: {
|
|
35
|
+
picker: {
|
|
36
|
+
title: t.accountSelectBank,
|
|
37
|
+
searchPlaceholder: t.accountSearchInstitutions,
|
|
38
|
+
otherInstitutionsLabel: t.accountOtherInstitutions,
|
|
39
|
+
},
|
|
40
|
+
review: {
|
|
41
|
+
title: t.accountInteracConfirmTitle,
|
|
42
|
+
description: t.accountInteracConfirmDesc,
|
|
43
|
+
fields: [
|
|
44
|
+
{
|
|
45
|
+
key: "sender",
|
|
46
|
+
label: t.accountInteracConfirmSender,
|
|
47
|
+
value: "PayTrie AB Inc",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: "amount",
|
|
51
|
+
label: t.accountInteracConfirmAmount,
|
|
52
|
+
value: amount,
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
institutionLabel: t.accountInteracConfirmBank,
|
|
56
|
+
fieldsAfterInstitution: [
|
|
57
|
+
{
|
|
58
|
+
key: "processing_time",
|
|
59
|
+
label: t.accountInteracConfirmProcessingTime,
|
|
60
|
+
value: INTERAC_PROCESSING_TIME,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
openInstitutionLabel: t.open,
|
|
64
|
+
openFallbackLabel: t.accountInteracConfirmOpenInterac,
|
|
65
|
+
},
|
|
66
|
+
waiting: {
|
|
67
|
+
title: t.accountBankTransfer,
|
|
68
|
+
instructions: t.accountInteracWaitingInstructions(amount, INTERAC_PROCESSING_TIME),
|
|
69
|
+
openInstitutionLabel: t.open,
|
|
70
|
+
openFallbackLabel: t.accountInteracConfirmOpenInterac,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
fallbackDeeplink: payment.qrUrl
|
|
74
|
+
? { type: "redirect", url: payment.qrUrl }
|
|
75
|
+
: null,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/** Validate every required request-to-pay field before rendering or signing. */
|
|
79
|
+
export function getRequestToPayContract(payment) {
|
|
80
|
+
if (payment.flow !== "request-to-pay")
|
|
81
|
+
return null;
|
|
82
|
+
if (!isNonEmptyString(payment.paymentCode))
|
|
83
|
+
return null;
|
|
84
|
+
if (!isPositiveDecimal(payment.payableAmount))
|
|
85
|
+
return null;
|
|
86
|
+
if (!isPositiveDecimal(payment.expectedSettlementAmount))
|
|
87
|
+
return null;
|
|
88
|
+
if (!isNonEmptyString(payment.instructions))
|
|
89
|
+
return null;
|
|
90
|
+
if (!Number.isSafeInteger(payment.expiresAt) || payment.expiresAt <= 0) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
if (!isNonEmptyString(payment.currency?.code))
|
|
94
|
+
return null;
|
|
95
|
+
if (!isNonEmptyString(payment.currency?.symbol))
|
|
96
|
+
return null;
|
|
97
|
+
if (!isNonEmptyString(payment.destinationToken?.symbol))
|
|
98
|
+
return null;
|
|
99
|
+
if (payment.retry?.type !== "recreate-session")
|
|
100
|
+
return null;
|
|
101
|
+
const ui = payment.ui;
|
|
102
|
+
if (!ui || typeof ui !== "object")
|
|
103
|
+
return null;
|
|
104
|
+
if (![
|
|
105
|
+
ui.title,
|
|
106
|
+
ui.codeLabel,
|
|
107
|
+
ui.actionLabel,
|
|
108
|
+
ui.actionCompletedLabel,
|
|
109
|
+
ui.expiredTitle,
|
|
110
|
+
ui.expiredInstructions,
|
|
111
|
+
ui.retryLabel,
|
|
112
|
+
ui.retryingLabel,
|
|
113
|
+
].every(isNonEmptyString)) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
return payment;
|
|
117
|
+
}
|
|
118
|
+
/** Validate one exact pre-create institution catalog before rendering. */
|
|
119
|
+
export function getInstitutionPickerContract(payment) {
|
|
120
|
+
if (payment.flow !== "institution-picker")
|
|
121
|
+
return null;
|
|
122
|
+
if (!isPositiveDecimal(payment.payableAmount))
|
|
123
|
+
return null;
|
|
124
|
+
if (!isPositiveDecimal(payment.expectedSettlementAmount))
|
|
125
|
+
return null;
|
|
126
|
+
if (!isNonEmptyString(payment.instructions))
|
|
127
|
+
return null;
|
|
128
|
+
if (!isNonEmptyString(payment.currency?.code))
|
|
129
|
+
return null;
|
|
130
|
+
if (!isNonEmptyString(payment.currency?.symbol))
|
|
131
|
+
return null;
|
|
132
|
+
if (!isNonEmptyString(payment.destinationToken?.symbol))
|
|
133
|
+
return null;
|
|
134
|
+
if (!isInstitutionPickerUi(payment.ui))
|
|
135
|
+
return null;
|
|
136
|
+
const { action } = payment;
|
|
137
|
+
if (!action ||
|
|
138
|
+
action.inputKind !== "institution" ||
|
|
139
|
+
!isNonEmptyString(action.id) ||
|
|
140
|
+
!isNonEmptyString(action.revision) ||
|
|
141
|
+
!isNonEmptyString(action.catalogRevision)) {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
if (payment.institutions.length === 0)
|
|
145
|
+
return null;
|
|
146
|
+
const ids = new Set();
|
|
147
|
+
for (const institution of payment.institutions) {
|
|
148
|
+
if (!isNonEmptyString(institution.id) ||
|
|
149
|
+
!isNonEmptyString(institution.name) ||
|
|
150
|
+
ids.has(institution.id)) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
ids.add(institution.id);
|
|
154
|
+
}
|
|
155
|
+
return payment;
|
|
156
|
+
}
|
|
157
|
+
/** Build the only typed client input accepted for an issued catalog action. */
|
|
158
|
+
export function buildInstitutionPaymentInput(payment, institutionId) {
|
|
159
|
+
const contract = getInstitutionPickerContract(payment);
|
|
160
|
+
if (!contract)
|
|
161
|
+
throw new Error("invalid institution-picker payment info");
|
|
162
|
+
if (!contract.institutions.some((item) => item.id === institutionId)) {
|
|
163
|
+
throw new Error("institution not in payment catalog");
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
kind: "institution",
|
|
167
|
+
actionId: contract.action.id,
|
|
168
|
+
revision: contract.action.revision,
|
|
169
|
+
catalogRevision: contract.action.catalogRevision,
|
|
170
|
+
institutionId,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/** Validate hosted and passive external-app approval contracts. */
|
|
174
|
+
export function getApprovalContract(payment) {
|
|
175
|
+
if (payment.flow !== "hosted-approval" &&
|
|
176
|
+
payment.flow !== "external-app-approval") {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
if (!isPositiveDecimal(payment.payableAmount))
|
|
180
|
+
return null;
|
|
181
|
+
if (!isPositiveDecimal(payment.expectedSettlementAmount))
|
|
182
|
+
return null;
|
|
183
|
+
if (!isNonEmptyString(payment.currency?.code))
|
|
184
|
+
return null;
|
|
185
|
+
if (!isNonEmptyString(payment.currency?.symbol))
|
|
186
|
+
return null;
|
|
187
|
+
if (!isNonEmptyString(payment.destinationToken?.symbol))
|
|
188
|
+
return null;
|
|
189
|
+
if (!Number.isSafeInteger(payment.expiresAt) || payment.expiresAt <= 0) {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
if (payment.polling?.type !== "poll" ||
|
|
193
|
+
!Number.isSafeInteger(payment.polling.delayMs) ||
|
|
194
|
+
payment.polling.delayMs <= 0 ||
|
|
195
|
+
payment.polling.delayMs > 60_000) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
if (payment.retry?.type !== "recreate-session")
|
|
199
|
+
return null;
|
|
200
|
+
if (payment.flow === "hosted-approval") {
|
|
201
|
+
if (!isHttpsUrl(payment.approvalUrl))
|
|
202
|
+
return null;
|
|
203
|
+
if (payment.returnBehavior?.type !== "poll")
|
|
204
|
+
return null;
|
|
205
|
+
if (payment.reopen?.type !== "same-url")
|
|
206
|
+
return null;
|
|
207
|
+
if (![
|
|
208
|
+
payment.ui?.title,
|
|
209
|
+
payment.ui?.instructions,
|
|
210
|
+
payment.ui?.openLabel,
|
|
211
|
+
payment.ui?.reopenLabel,
|
|
212
|
+
payment.ui?.expiredTitle,
|
|
213
|
+
payment.ui?.expiredInstructions,
|
|
214
|
+
payment.ui?.retryLabel,
|
|
215
|
+
payment.ui?.retryingLabel,
|
|
216
|
+
].every(isNonEmptyString)) {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
return payment;
|
|
220
|
+
}
|
|
221
|
+
if (!isNonEmptyString(payment.maskedDestination))
|
|
222
|
+
return null;
|
|
223
|
+
if (![
|
|
224
|
+
payment.ui?.title,
|
|
225
|
+
payment.ui?.instructions,
|
|
226
|
+
payment.ui?.destinationLabel,
|
|
227
|
+
payment.ui?.expiredTitle,
|
|
228
|
+
payment.ui?.expiredInstructions,
|
|
229
|
+
payment.ui?.retryLabel,
|
|
230
|
+
payment.ui?.retryingLabel,
|
|
231
|
+
].every(isNonEmptyString)) {
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
if (payment.action &&
|
|
235
|
+
(payment.action.type !== "open-url" ||
|
|
236
|
+
!isSafeExternalUrl(payment.action.url) ||
|
|
237
|
+
!isNonEmptyString(payment.action.label))) {
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
return payment;
|
|
241
|
+
}
|
|
242
|
+
/** Select the token-units amount covered by the routing authorization. */
|
|
243
|
+
export function getAuthorizedRoutingAmount(payment, depositAmount) {
|
|
244
|
+
switch (payment.flow) {
|
|
245
|
+
case "request-to-pay": {
|
|
246
|
+
const contract = getRequestToPayContract(payment);
|
|
247
|
+
if (!contract)
|
|
248
|
+
throw new Error("invalid request-to-pay payment info");
|
|
249
|
+
return contract.expectedSettlementAmount;
|
|
250
|
+
}
|
|
251
|
+
case "wallet-pay-widget":
|
|
252
|
+
return payment.purchaseAmount;
|
|
253
|
+
case "institution-picker": {
|
|
254
|
+
const contract = getInstitutionPickerContract(payment);
|
|
255
|
+
if (!contract)
|
|
256
|
+
throw new Error("invalid institution-picker payment info");
|
|
257
|
+
return contract.expectedSettlementAmount;
|
|
258
|
+
}
|
|
259
|
+
case "hosted-approval":
|
|
260
|
+
case "external-app-approval": {
|
|
261
|
+
const contract = getApprovalContract(payment);
|
|
262
|
+
if (!contract)
|
|
263
|
+
throw new Error("invalid approval payment info");
|
|
264
|
+
return contract.expectedSettlementAmount;
|
|
265
|
+
}
|
|
266
|
+
case "bank-picker":
|
|
267
|
+
case "bank-transfer":
|
|
268
|
+
case "directions":
|
|
269
|
+
return depositAmount;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/** True only for a valid approval whose absolute server expiry has passed. */
|
|
273
|
+
export function isExpiredApproval(payment, nowSeconds = Math.floor(Date.now() / 1000)) {
|
|
274
|
+
const contract = getApprovalContract(payment);
|
|
275
|
+
return contract != null && contract.expiresAt <= nowSeconds;
|
|
276
|
+
}
|
|
277
|
+
/** True only for a valid request whose absolute server expiry has passed. */
|
|
278
|
+
export function isExpiredRequestToPay(payment, nowSeconds = Math.floor(Date.now() / 1000)) {
|
|
279
|
+
const contract = getRequestToPayContract(payment);
|
|
280
|
+
return contract != null && contract.expiresAt <= nowSeconds;
|
|
281
|
+
}
|
|
282
|
+
function isNonEmptyString(value) {
|
|
283
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
284
|
+
}
|
|
285
|
+
function isPositiveDecimal(value) {
|
|
286
|
+
if (typeof value !== "string" || !/^(?:0|[1-9]\d*)(?:\.\d+)?$/.test(value)) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
const amount = Number(value);
|
|
290
|
+
return Number.isFinite(amount) && amount > 0;
|
|
291
|
+
}
|
|
292
|
+
function isInstitutionPickerUi(value) {
|
|
293
|
+
if (value == null || typeof value !== "object")
|
|
294
|
+
return false;
|
|
295
|
+
const ui = value;
|
|
296
|
+
return [ui.title, ui.searchPlaceholder, ui.otherInstitutionsLabel].every(isNonEmptyString);
|
|
297
|
+
}
|
|
298
|
+
function isHttpsUrl(value) {
|
|
299
|
+
if (!isNonEmptyString(value))
|
|
300
|
+
return false;
|
|
301
|
+
try {
|
|
302
|
+
return new URL(value).protocol === "https:";
|
|
303
|
+
}
|
|
304
|
+
catch {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function isSafeExternalUrl(value) {
|
|
309
|
+
if (!isNonEmptyString(value))
|
|
310
|
+
return false;
|
|
311
|
+
try {
|
|
312
|
+
const protocol = new URL(value).protocol.toLowerCase();
|
|
313
|
+
return !["data:", "file:", "javascript:", "vbscript:"].includes(protocol);
|
|
314
|
+
}
|
|
315
|
+
catch {
|
|
316
|
+
return false;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
//# sourceMappingURL=accountPaymentCompatibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountPaymentCompatibility.js","sourceRoot":"","sources":["../../../../src/web/components/account/accountPaymentCompatibility.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,uBAAuB,C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,OAAO,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RecreateSessionWithNavResponse } from "../../api/index.js";
|
|
2
|
+
import type { DepositStateInput } from "../../hooks/useAccountFlow.js";
|
|
3
|
+
type AccountSessionRecreateState = {
|
|
4
|
+
current: Promise<void> | null;
|
|
5
|
+
};
|
|
6
|
+
/** Recreate a session and seed the exact prior amount before normal nav runs. */
|
|
7
|
+
export declare function recreateAccountPaymentSession(params: {
|
|
8
|
+
depositAmount: string;
|
|
9
|
+
recreate: () => Promise<RecreateSessionWithNavResponse>;
|
|
10
|
+
setDepositState: (sessionId: string, state: DepositStateInput) => void;
|
|
11
|
+
}): Promise<RecreateSessionWithNavResponse>;
|
|
12
|
+
/** Share one in-flight recreation and allow a fresh attempt after it settles. */
|
|
13
|
+
export declare function runAccountSessionRecreateOnce(state: AccountSessionRecreateState, recreate: () => Promise<void>): Promise<void>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=accountSessionRecreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountSessionRecreate.d.ts","sourceRoot":"","sources":["../../../../src/web/components/account/accountSessionRecreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,iFAAiF;AACjF,wBAAsB,6BAA6B,CAAC,MAAM,EAAE;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACxD,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACxE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAO1C;AAED,iFAAiF;AACjF,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,2BAA2B,EAClC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAC5B,OAAO,CAAC,IAAI,CAAC,CAUf"}
|