@spare-technologies/spare-link 0.1.0-beta.1 → 1.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/README.md +119 -63
- package/lib/commonjs/core/models/payment-return-params.js +245 -20
- package/lib/commonjs/core/models/payment-return-params.js.map +1 -1
- package/lib/commonjs/core/models/pending-session-record.js +2 -0
- package/lib/commonjs/core/models/pending-session-record.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js +333 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-state.js +96 -0
- package/lib/commonjs/core/services/hosted-flow-state.js.map +1 -0
- package/lib/commonjs/index.js +42 -164
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/hosted/bridge-message.js +107 -0
- package/lib/commonjs/internal/hosted/bridge-message.js.map +1 -0
- package/lib/commonjs/internal/hosted/hosted-url.js +41 -0
- package/lib/commonjs/internal/hosted/hosted-url.js.map +1 -0
- package/lib/commonjs/internal/index.js +0 -7
- package/lib/commonjs/internal/index.js.map +1 -1
- package/lib/commonjs/internal/redact-uri.js +59 -15
- package/lib/commonjs/internal/redact-uri.js.map +1 -1
- package/lib/commonjs/internal/secure-store-pending-session-store.js +20 -25
- package/lib/commonjs/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/commonjs/internal/url-parts.js +145 -0
- package/lib/commonjs/internal/url-parts.js.map +1 -0
- package/lib/commonjs/public/index.js +0 -37
- package/lib/commonjs/public/index.js.map +1 -1
- package/lib/commonjs/public/payment-result.js +16 -4
- package/lib/commonjs/public/payment-result.js.map +1 -1
- package/lib/commonjs/public/recovery-result.js +7 -18
- package/lib/commonjs/public/recovery-result.js.map +1 -1
- package/lib/commonjs/public/spare-link-config.js +41 -16
- package/lib/commonjs/public/spare-link-config.js.map +1 -1
- package/lib/commonjs/public/spare-link-event.js +27 -33
- package/lib/commonjs/public/spare-link-event.js.map +1 -1
- package/lib/commonjs/public/spare-link-instance.js +67 -77
- package/lib/commonjs/public/spare-link-instance.js.map +1 -1
- package/lib/commonjs/public/spare-link-session.js +2 -9
- package/lib/commonjs/public/spare-link-session.js.map +1 -1
- package/lib/commonjs/public/spare-link.js +0 -12
- package/lib/commonjs/public/spare-link.js.map +1 -1
- package/lib/commonjs/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +4 -4
- package/lib/commonjs/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js +177 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js +168 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/commonjs/ui/screens/index.js +3 -17
- package/lib/commonjs/ui/screens/index.js.map +1 -1
- package/lib/commonjs/ui/screens/page-unavailable-screen.js +101 -0
- package/lib/commonjs/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/commonjs/ui/spare-link-host.js +220 -234
- package/lib/commonjs/ui/spare-link-host.js.map +1 -1
- package/lib/commonjs/ui/widgets/index.js +3 -10
- package/lib/commonjs/ui/widgets/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/core/models/payment-return-params.js +235 -20
- package/lib/module/core/models/payment-return-params.js.map +1 -1
- package/lib/module/core/models/pending-session-record.js +2 -0
- package/lib/module/core/models/pending-session-record.js.map +1 -0
- package/lib/module/core/services/hosted-flow-controller.js +328 -0
- package/lib/module/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/module/core/services/hosted-flow-state.js +91 -0
- package/lib/module/core/services/hosted-flow-state.js.map +1 -0
- package/lib/module/index.js +8 -22
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/hosted/bridge-message.js +104 -0
- package/lib/module/internal/hosted/bridge-message.js.map +1 -0
- package/lib/module/internal/hosted/hosted-url.js +36 -0
- package/lib/module/internal/hosted/hosted-url.js.map +1 -0
- package/lib/module/internal/index.js +0 -1
- package/lib/module/internal/index.js.map +1 -1
- package/lib/module/internal/redact-uri.js +59 -15
- package/lib/module/internal/redact-uri.js.map +1 -1
- package/lib/module/internal/secure-store-pending-session-store.js +20 -25
- package/lib/module/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/module/internal/url-parts.js +139 -0
- package/lib/module/internal/url-parts.js.map +1 -0
- package/lib/module/public/index.js +2 -3
- package/lib/module/public/index.js.map +1 -1
- package/lib/module/public/payment-result.js +16 -4
- package/lib/module/public/payment-result.js.map +1 -1
- package/lib/module/public/recovery-result.js +7 -17
- package/lib/module/public/recovery-result.js.map +1 -1
- package/lib/module/public/spare-link-config.js +42 -15
- package/lib/module/public/spare-link-config.js.map +1 -1
- package/lib/module/public/spare-link-event.js +27 -33
- package/lib/module/public/spare-link-event.js.map +1 -1
- package/lib/module/public/spare-link-instance.js +68 -72
- package/lib/module/public/spare-link-instance.js.map +1 -1
- package/lib/module/public/spare-link-session.js +2 -9
- package/lib/module/public/spare-link-session.js.map +1 -1
- package/lib/module/public/spare-link.js +1 -1
- package/lib/module/public/spare-link.js.map +1 -1
- package/lib/module/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +3 -3
- package/lib/module/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-page.js +175 -0
- package/lib/module/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js +163 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/module/ui/screens/index.js +1 -3
- package/lib/module/ui/screens/index.js.map +1 -1
- package/lib/module/ui/screens/page-unavailable-screen.js +97 -0
- package/lib/module/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/module/ui/spare-link-host.js +221 -236
- package/lib/module/ui/spare-link-host.js.map +1 -1
- package/lib/module/ui/widgets/index.js +1 -2
- package/lib/module/ui/widgets/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/commonjs/core/models/index.d.ts +1 -123
- package/lib/typescript/commonjs/core/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +5 -14
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/index.d.ts +0 -1
- package/lib/typescript/commonjs/internal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/url-parts.d.ts +46 -0
- package/lib/typescript/commonjs/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/commonjs/public/index.d.ts +4 -6
- package/lib/typescript/commonjs/public/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/payment-result.d.ts +50 -12
- package/lib/typescript/commonjs/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/recovery-result.d.ts +11 -20
- package/lib/typescript/commonjs/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/commonjs/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/commonjs/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/commonjs/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts +1 -3
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/commonjs/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/version.d.ts +1 -1
- package/lib/typescript/commonjs/version.d.ts.map +1 -1
- package/lib/typescript/module/core/models/index.d.ts +1 -123
- package/lib/typescript/module/core/models/index.d.ts.map +1 -1
- package/lib/typescript/module/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/module/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/module/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/module/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +5 -14
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/module/internal/index.d.ts +0 -1
- package/lib/typescript/module/internal/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/module/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/module/internal/url-parts.d.ts +46 -0
- package/lib/typescript/module/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/module/public/index.d.ts +4 -6
- package/lib/typescript/module/public/index.d.ts.map +1 -1
- package/lib/typescript/module/public/payment-result.d.ts +50 -12
- package/lib/typescript/module/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/module/public/recovery-result.d.ts +11 -20
- package/lib/typescript/module/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/module/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/module/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/module/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/module/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/module/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link.d.ts +1 -1
- package/lib/typescript/module/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts +1 -3
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/module/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/module/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/module/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/module/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/module/version.d.ts +1 -1
- package/lib/typescript/module/version.d.ts.map +1 -1
- package/package.json +24 -22
- package/plugins/with-spare-link.js +6 -26
- package/src/core/models/index.ts +1 -139
- package/src/core/models/payment-return-params.ts +269 -21
- package/src/core/models/pending-session-record.ts +10 -0
- package/src/core/services/hosted-flow-controller.ts +374 -0
- package/src/core/services/hosted-flow-state.ts +123 -0
- package/src/index.ts +20 -89
- package/src/internal/hosted/bridge-message.ts +106 -0
- package/src/internal/hosted/hosted-url.ts +33 -0
- package/src/internal/index.ts +0 -1
- package/src/internal/redact-uri.ts +69 -15
- package/src/internal/secure-store-pending-session-store.ts +28 -49
- package/src/internal/url-parts.ts +134 -0
- package/src/public/index.ts +2 -24
- package/src/public/payment-result.ts +50 -12
- package/src/public/recovery-result.ts +16 -25
- package/src/public/spare-link-config.ts +56 -43
- package/src/public/spare-link-event.ts +33 -42
- package/src/public/spare-link-host-api.ts +1 -14
- package/src/public/spare-link-instance.ts +57 -65
- package/src/public/spare-link-session.ts +4 -16
- package/src/public/spare-link.ts +1 -1
- package/src/ui/hooks/use-hosted-flow-state.ts +16 -0
- package/src/ui/hosted/hosted-payment-page.tsx +178 -0
- package/src/ui/hosted/hosted-payment-webview.tsx +164 -0
- package/src/ui/screens/index.ts +4 -6
- package/src/ui/screens/page-unavailable-screen.tsx +94 -0
- package/src/ui/spare-link-host.tsx +227 -247
- package/src/ui/widgets/index.ts +1 -2
- package/src/version.ts +1 -1
- package/CHANGELOG.md +0 -25
- package/lib/commonjs/core/client/link-api-client.js +0 -297
- package/lib/commonjs/core/client/link-api-client.js.map +0 -1
- package/lib/commonjs/core/errors/payment-api-error.js +0 -35
- package/lib/commonjs/core/errors/payment-api-error.js.map +0 -1
- package/lib/commonjs/core/models/link-session-status.js +0 -14
- package/lib/commonjs/core/models/link-session-status.js.map +0 -1
- package/lib/commonjs/core/models/payment-type.js +0 -45
- package/lib/commonjs/core/models/payment-type.js.map +0 -1
- package/lib/commonjs/core/models/wire-mappers.js +0 -277
- package/lib/commonjs/core/models/wire-mappers.js.map +0 -1
- package/lib/commonjs/core/services/consent-presenter.js +0 -150
- package/lib/commonjs/core/services/consent-presenter.js.map +0 -1
- package/lib/commonjs/core/services/execute-resume-if-needed.js +0 -216
- package/lib/commonjs/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js +0 -151
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-controller.js +0 -547
- package/lib/commonjs/core/services/payment-flow-controller.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-state.js +0 -110
- package/lib/commonjs/core/services/payment-flow-state.js.map +0 -1
- package/lib/commonjs/core/services/payment-result-mapper.js +0 -49
- package/lib/commonjs/core/services/payment-result-mapper.js.map +0 -1
- package/lib/commonjs/core/services/presentation-utils.js +0 -11
- package/lib/commonjs/core/services/presentation-utils.js.map +0 -1
- package/lib/commonjs/core/services/redirect-buffer.js +0 -40
- package/lib/commonjs/core/services/redirect-buffer.js.map +0 -1
- package/lib/commonjs/core/services/user-friendly-messages.js +0 -46
- package/lib/commonjs/core/services/user-friendly-messages.js.map +0 -1
- package/lib/commonjs/internal/telemetry-collector.js +0 -80
- package/lib/commonjs/internal/telemetry-collector.js.map +0 -1
- package/lib/commonjs/public/constants.js +0 -21
- package/lib/commonjs/public/constants.js.map +0 -1
- package/lib/commonjs/public/spare-link-callbacks.js +0 -6
- package/lib/commonjs/public/spare-link-callbacks.js.map +0 -1
- package/lib/commonjs/ui/consent/charge-bearer-display.js +0 -99
- package/lib/commonjs/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-accordion.js +0 -94
- package/lib/commonjs/ui/consent/consent-accordion.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-summary-section.js +0 -27
- package/lib/commonjs/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/commonjs/ui/consent/cop-information.js +0 -168
- package/lib/commonjs/ui/consent/cop-information.js.map +0 -1
- package/lib/commonjs/ui/consent/international-payment-summary.js +0 -98
- package/lib/commonjs/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/label-value-rows.js +0 -59
- package/lib/commonjs/ui/consent/label-value-rows.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js +0 -130
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-summary.js +0 -99
- package/lib/commonjs/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/single-payment-summary.js +0 -158
- package/lib/commonjs/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/terms-link.js +0 -35
- package/lib/commonjs/ui/consent/terms-link.js.map +0 -1
- package/lib/commonjs/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/commonjs/ui/payment-flow-page.js +0 -235
- package/lib/commonjs/ui/payment-flow-page.js.map +0 -1
- package/lib/commonjs/ui/screens/bank-selection-screen.js +0 -215
- package/lib/commonjs/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/consent-details-screen.js +0 -124
- package/lib/commonjs/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js +0 -79
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/commonjs/ui/widgets/layout-w-header.js +0 -106
- package/lib/commonjs/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/commonjs/ui/widgets/stepper.js +0 -124
- package/lib/commonjs/ui/widgets/stepper.js.map +0 -1
- package/lib/module/core/client/link-api-client.js +0 -292
- package/lib/module/core/client/link-api-client.js.map +0 -1
- package/lib/module/core/errors/payment-api-error.js +0 -29
- package/lib/module/core/errors/payment-api-error.js.map +0 -1
- package/lib/module/core/models/link-session-status.js +0 -10
- package/lib/module/core/models/link-session-status.js.map +0 -1
- package/lib/module/core/models/payment-type.js +0 -36
- package/lib/module/core/models/payment-type.js.map +0 -1
- package/lib/module/core/models/wire-mappers.js +0 -263
- package/lib/module/core/models/wire-mappers.js.map +0 -1
- package/lib/module/core/services/consent-presenter.js +0 -140
- package/lib/module/core/services/consent-presenter.js.map +0 -1
- package/lib/module/core/services/execute-resume-if-needed.js +0 -211
- package/lib/module/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/module/core/services/multi-payment-rules-presenter.js +0 -146
- package/lib/module/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/module/core/services/payment-flow-controller.js +0 -544
- package/lib/module/core/services/payment-flow-controller.js.map +0 -1
- package/lib/module/core/services/payment-flow-state.js +0 -106
- package/lib/module/core/services/payment-flow-state.js.map +0 -1
- package/lib/module/core/services/payment-result-mapper.js +0 -45
- package/lib/module/core/services/payment-result-mapper.js.map +0 -1
- package/lib/module/core/services/presentation-utils.js +0 -7
- package/lib/module/core/services/presentation-utils.js.map +0 -1
- package/lib/module/core/services/redirect-buffer.js +0 -33
- package/lib/module/core/services/redirect-buffer.js.map +0 -1
- package/lib/module/core/services/user-friendly-messages.js +0 -42
- package/lib/module/core/services/user-friendly-messages.js.map +0 -1
- package/lib/module/internal/telemetry-collector.js +0 -75
- package/lib/module/internal/telemetry-collector.js.map +0 -1
- package/lib/module/public/constants.js +0 -17
- package/lib/module/public/constants.js.map +0 -1
- package/lib/module/public/spare-link-callbacks.js +0 -4
- package/lib/module/public/spare-link-callbacks.js.map +0 -1
- package/lib/module/ui/consent/charge-bearer-display.js +0 -95
- package/lib/module/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/module/ui/consent/consent-accordion.js +0 -90
- package/lib/module/ui/consent/consent-accordion.js.map +0 -1
- package/lib/module/ui/consent/consent-summary-section.js +0 -23
- package/lib/module/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/module/ui/consent/cop-information.js +0 -165
- package/lib/module/ui/consent/cop-information.js.map +0 -1
- package/lib/module/ui/consent/international-payment-summary.js +0 -94
- package/lib/module/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/label-value-rows.js +0 -55
- package/lib/module/ui/consent/label-value-rows.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-rules-list.js +0 -125
- package/lib/module/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-summary.js +0 -95
- package/lib/module/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/single-payment-summary.js +0 -154
- package/lib/module/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/terms-link.js +0 -31
- package/lib/module/ui/consent/terms-link.js.map +0 -1
- package/lib/module/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/module/ui/payment-flow-page.js +0 -232
- package/lib/module/ui/payment-flow-page.js.map +0 -1
- package/lib/module/ui/screens/bank-selection-screen.js +0 -211
- package/lib/module/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/module/ui/screens/consent-details-screen.js +0 -120
- package/lib/module/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/module/ui/screens/mandate-setup-success-screen.js +0 -75
- package/lib/module/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/module/ui/widgets/layout-w-header.js +0 -102
- package/lib/module/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/module/ui/widgets/stepper.js +0 -120
- package/lib/module/ui/widgets/stepper.js.map +0 -1
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/commonjs/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/constants.d.ts +0 -12
- package/lib/typescript/commonjs/public/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts.map +0 -1
- package/lib/typescript/module/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/module/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/module/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/module/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/module/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/module/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/module/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/module/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/module/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/module/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/module/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/module/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/module/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/module/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/module/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/module/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/module/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/module/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/module/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/module/public/constants.d.ts +0 -12
- package/lib/typescript/module/public/constants.d.ts.map +0 -1
- package/lib/typescript/module/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/module/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/module/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/module/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/module/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/module/ui/widgets/stepper.d.ts.map +0 -1
- package/src/core/client/link-api-client.ts +0 -414
- package/src/core/errors/payment-api-error.ts +0 -35
- package/src/core/models/link-session-status.ts +0 -7
- package/src/core/models/payment-type.ts +0 -54
- package/src/core/models/wire-mappers.ts +0 -315
- package/src/core/services/consent-presenter.ts +0 -213
- package/src/core/services/execute-resume-if-needed.ts +0 -243
- package/src/core/services/multi-payment-rules-presenter.ts +0 -158
- package/src/core/services/payment-flow-controller.ts +0 -607
- package/src/core/services/payment-flow-state.ts +0 -124
- package/src/core/services/payment-result-mapper.ts +0 -41
- package/src/core/services/presentation-utils.ts +0 -4
- package/src/core/services/redirect-buffer.ts +0 -34
- package/src/core/services/user-friendly-messages.ts +0 -39
- package/src/internal/telemetry-collector.ts +0 -90
- package/src/public/constants.ts +0 -14
- package/src/public/spare-link-callbacks.ts +0 -20
- package/src/ui/consent/charge-bearer-display.tsx +0 -68
- package/src/ui/consent/consent-accordion.tsx +0 -89
- package/src/ui/consent/consent-summary-section.tsx +0 -19
- package/src/ui/consent/cop-information.tsx +0 -121
- package/src/ui/consent/international-payment-summary.tsx +0 -83
- package/src/ui/consent/label-value-rows.tsx +0 -50
- package/src/ui/consent/multi-payment-rules-list.tsx +0 -138
- package/src/ui/consent/multi-payment-summary.tsx +0 -82
- package/src/ui/consent/single-payment-summary.tsx +0 -123
- package/src/ui/consent/terms-link.tsx +0 -27
- package/src/ui/hooks/use-payment-flow-state.ts +0 -16
- package/src/ui/payment-flow-page.tsx +0 -254
- package/src/ui/screens/bank-selection-screen.tsx +0 -209
- package/src/ui/screens/consent-details-screen.tsx +0 -106
- package/src/ui/screens/mandate-setup-success-screen.tsx +0 -72
- package/src/ui/widgets/layout-w-header.tsx +0 -89
- package/src/ui/widgets/stepper.tsx +0 -126
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { CopResponse } from '../models';
|
|
2
|
-
import { type ConsentUiVariant, type PaymentType } from '../models/payment-type';
|
|
3
|
-
import { type LabelValueRow } from './multi-payment-rules-presenter';
|
|
4
|
-
import type { PaymentFlowState } from './payment-flow-state';
|
|
5
|
-
export { formatAmount } from './presentation-utils';
|
|
6
|
-
/** CoP match outcome, normalized from {@link CopResponse.matchIndicator}. */
|
|
7
|
-
export type CopMatchIndicator = 'match' | 'partialMatch' | 'noMatch' | 'unknown';
|
|
8
|
-
/** User-facing Confirmation-of-Payee copy for the consent screen. */
|
|
9
|
-
export interface CopDisplayData {
|
|
10
|
-
statusLabel: string;
|
|
11
|
-
indicator: CopMatchIndicator;
|
|
12
|
-
maskedName?: string;
|
|
13
|
-
paragraphs: string[];
|
|
14
|
-
}
|
|
15
|
-
interface ConsentSummaryDataBase {
|
|
16
|
-
bankName: string;
|
|
17
|
-
variant: ConsentUiVariant;
|
|
18
|
-
}
|
|
19
|
-
/** Domestic single instant payment consent summary. */
|
|
20
|
-
export interface SinglePaymentSummaryData extends ConsentSummaryDataBase {
|
|
21
|
-
variant: 'singlePayment';
|
|
22
|
-
formattedAmount: string;
|
|
23
|
-
iban: string;
|
|
24
|
-
paymentReference: string | undefined;
|
|
25
|
-
paymentPurpose: string | undefined;
|
|
26
|
-
creditorName: string | undefined;
|
|
27
|
-
isCopLoading: boolean;
|
|
28
|
-
copDisplay: CopDisplayData | undefined;
|
|
29
|
-
}
|
|
30
|
-
/** Multi-payment (mandate) consent summary. */
|
|
31
|
-
export interface MultiPaymentSummaryData extends ConsentSummaryDataBase {
|
|
32
|
-
variant: 'multiPayment';
|
|
33
|
-
paymentType: PaymentType;
|
|
34
|
-
creditorType: string;
|
|
35
|
-
externalReference: string;
|
|
36
|
-
paymentPurpose: string | undefined;
|
|
37
|
-
rulesTitle: string;
|
|
38
|
-
rules: LabelValueRow[];
|
|
39
|
-
iban: string;
|
|
40
|
-
creditorName: string | undefined;
|
|
41
|
-
}
|
|
42
|
-
/** International payment consent summary. */
|
|
43
|
-
export interface InternationalPaymentSummaryData extends ConsentSummaryDataBase {
|
|
44
|
-
variant: 'international';
|
|
45
|
-
formattedAmount: string;
|
|
46
|
-
iban: string;
|
|
47
|
-
paymentReference: string | undefined;
|
|
48
|
-
paymentPurpose: string | undefined;
|
|
49
|
-
priority: string | undefined;
|
|
50
|
-
chargeBearer: string | undefined;
|
|
51
|
-
creditorName: string | undefined;
|
|
52
|
-
}
|
|
53
|
-
export type ConsentSummaryData = SinglePaymentSummaryData | InternationalPaymentSummaryData | MultiPaymentSummaryData;
|
|
54
|
-
/** @deprecated Use {@link ConsentSummaryData} instead. */
|
|
55
|
-
export type ConsentDisplayData = SinglePaymentSummaryData;
|
|
56
|
-
declare function present(value: string | undefined, fallback?: string): string;
|
|
57
|
-
export { present as presentField };
|
|
58
|
-
/**
|
|
59
|
-
* Maps a {@link CopResponse} to consent-screen copy. Ported from the Flutter
|
|
60
|
-
* SDK's `ConsentPresenter.formatCop`. Returns unavailable messaging when there
|
|
61
|
-
* is no response (API error or not yet fetched).
|
|
62
|
-
*/
|
|
63
|
-
export declare function formatCop(response: CopResponse | undefined): CopDisplayData;
|
|
64
|
-
export declare function summaryFromState(state: PaymentFlowState): ConsentSummaryData | null;
|
|
65
|
-
/** @deprecated Use {@link summaryFromState} instead. */
|
|
66
|
-
export declare function presentConsent(state: PaymentFlowState): SinglePaymentSummaryData | null;
|
|
67
|
-
//# sourceMappingURL=consent-presenter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consent-presenter.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/consent-presenter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAGjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,6EAA6E;AAC7E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjF,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,uDAAuD;AACvD,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,OAAO,EAAE,eAAe,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC;CACxC;AAED,+CAA+C;AAC/C,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,OAAO,EAAE,cAAc,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,6CAA6C;AAC7C,MAAM,WAAW,+BAAgC,SAAQ,sBAAsB;IAC7E,OAAO,EAAE,eAAe,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,MAAM,kBAAkB,GAC1B,wBAAwB,GACxB,+BAA+B,GAC/B,uBAAuB,CAAC;AAE5B,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAE1D,iBAAS,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,SAAM,GAAG,MAAM,CAGlE;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,CAAC;AAwBnC;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,WAAW,GAAG,SAAS,GAAG,cAAc,CAgC3E;AAOD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,IAAI,CAsDnF;AAED,wDAAwD;AACxD,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,wBAAwB,GAAG,IAAI,CAIvF"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { PaymentResult } from '../../public/payment-result';
|
|
2
|
-
import type { SpareLinkCallbacks } from '../../public/spare-link-callbacks';
|
|
3
|
-
import { type SpareLinkResumeConfig } from '../../public/spare-link-config';
|
|
4
|
-
import { PaymentFlowController } from './payment-flow-controller';
|
|
5
|
-
import type { PendingSessionStore } from './pending-session-store';
|
|
6
|
-
export declare const MAX_RECOVERABLE_AGE_MS: number;
|
|
7
|
-
export interface ResumeSessionArgs {
|
|
8
|
-
config: SpareLinkResumeConfig;
|
|
9
|
-
callbacks?: SpareLinkCallbacks;
|
|
10
|
-
}
|
|
11
|
-
export interface ResumeSessionDeps {
|
|
12
|
-
pendingSessionStore: PendingSessionStore;
|
|
13
|
-
/** True when a live modal flow is already mounted. */
|
|
14
|
-
isFlowActive: () => boolean;
|
|
15
|
-
/** Open the SDK modal parked at awaitingCallback for non-terminal recovery. */
|
|
16
|
-
openRecoveryFlow: (args: {
|
|
17
|
-
controller: PaymentFlowController;
|
|
18
|
-
config: SpareLinkResumeConfig & {
|
|
19
|
-
linkToken: string;
|
|
20
|
-
};
|
|
21
|
-
callbacks?: SpareLinkCallbacks;
|
|
22
|
-
}) => void;
|
|
23
|
-
now?: () => number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Cold-start recovery orchestrator — mirrors Flutter `SpareLink.resumeIfNeeded`.
|
|
27
|
-
* Returns a terminal {@link PaymentResult}, `null` when nothing to do / still
|
|
28
|
-
* pending, and opens the recovery UI via `openRecoveryFlow` for non-terminal
|
|
29
|
-
* sessions that need user-visible awaiting state.
|
|
30
|
-
*/
|
|
31
|
-
export declare function executeResumeIfNeeded(args: ResumeSessionArgs, deps: ResumeSessionDeps): Promise<PaymentResult | null>;
|
|
32
|
-
//# sourceMappingURL=execute-resume-if-needed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-resume-if-needed.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/execute-resume-if-needed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,sDAAsD;IACtD,YAAY,EAAE,MAAM,OAAO,CAAC;IAC5B,+EAA+E;IAC/E,gBAAgB,EAAE,CAAC,IAAI,EAAE;QACvB,UAAU,EAAE,qBAAqB,CAAC;QAClC,MAAM,EAAE,qBAAqB,GAAG;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,SAAS,CAAC,EAAE,kBAAkB,CAAC;KAChC,KAAK,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AA6ED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA0H/B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PaymentInstructions } from '../models';
|
|
2
|
-
import { PaymentType } from '../models/payment-type';
|
|
3
|
-
export interface LabelValueRow {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function buildMultiPaymentRules(type: PaymentType, instructions: PaymentInstructions): LabelValueRow[];
|
|
8
|
-
export declare function rulesSectionTitle(type: PaymentType): string;
|
|
9
|
-
//# sourceMappingURL=multi-payment-rules-presenter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-payment-rules-presenter.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/multi-payment-rules-presenter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AA6HD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,WAAW,EACjB,YAAY,EAAE,mBAAmB,GAChC,aAAa,EAAE,CAejB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAK3D"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import type { PaymentEnvironment } from '../../public/spare-link-config';
|
|
2
|
-
/** Simple string tag for internal controller callbacks — not the public SpareLinkEvent. */
|
|
3
|
-
type PaymentFlowEventTag = 'initialized' | 'sessionLoaded' | 'consentStarted' | 'redirectToBank' | 'bankCallbackReceived' | 'succeeded' | 'failed' | 'cancelled' | 'abandoned';
|
|
4
|
-
import type { LinkApiClient } from '../client/link-api-client';
|
|
5
|
-
import type { CopResponse, LinkSessionResponse, ProviderSummary } from '../models';
|
|
6
|
-
import { type PaymentFlowState } from './payment-flow-state';
|
|
7
|
-
import type { PendingSessionStore } from './pending-session-store';
|
|
8
|
-
/** Minimum surface required from a `Clock` injected for testability. */
|
|
9
|
-
export interface Clock {
|
|
10
|
-
now(): number;
|
|
11
|
-
}
|
|
12
|
-
export interface PaymentFlowControllerOptions {
|
|
13
|
-
sessionToken: string;
|
|
14
|
-
apiClient: LinkApiClient;
|
|
15
|
-
pendingSessionStore?: PendingSessionStore;
|
|
16
|
-
awaitingCallbackTimeoutMs?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Deployment environment. In `sandbox`, the controller treats a non-terminal
|
|
19
|
-
* `/link/status` response during awaitingCallback as success: the sandbox bank
|
|
20
|
-
* authorizes consent but never settles the payment, so the status endpoint
|
|
21
|
-
* stays non-terminal forever and the flow could otherwise only ever time out.
|
|
22
|
-
* Production keeps strict terminal-only behavior. Defaults to `production`.
|
|
23
|
-
*/
|
|
24
|
-
environment?: PaymentEnvironment;
|
|
25
|
-
/**
|
|
26
|
-
* Interval for the sandbox awaiting-callback status poll. Ignored outside
|
|
27
|
-
* sandbox. Defaults to {@link DEFAULT_AWAITING_CALLBACK_POLL_MS}.
|
|
28
|
-
*/
|
|
29
|
-
awaitingCallbackPollMs?: number;
|
|
30
|
-
/** Optional clock injection for deterministic timeout tests. */
|
|
31
|
-
clock?: Clock;
|
|
32
|
-
/** Telemetry collector — called once before POST /link/consent. */
|
|
33
|
-
collectTelemetry?: () => Promise<Record<string, unknown>>;
|
|
34
|
-
/** UUID generator used for the consent Idempotency-Key. */
|
|
35
|
-
uuid?: () => string;
|
|
36
|
-
/** Callback for internal flow event tags. Exceptions are swallowed. */
|
|
37
|
-
onEvent?: (event: PaymentFlowEventTag) => void;
|
|
38
|
-
}
|
|
39
|
-
type Listener = (state: PaymentFlowState) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Drives the payment flow state machine. Exposes a `subscribe`/`unsubscribe`
|
|
42
|
-
* API so React's `useSyncExternalStore` can bridge to a hook.
|
|
43
|
-
*
|
|
44
|
-
* `subscribe` fires the listener synchronously with the current state so new
|
|
45
|
-
* subscribers don't miss the initial snapshot.
|
|
46
|
-
*/
|
|
47
|
-
export declare class PaymentFlowController {
|
|
48
|
-
readonly sessionToken: string;
|
|
49
|
-
readonly apiClient: LinkApiClient;
|
|
50
|
-
readonly pendingSessionStore?: PendingSessionStore;
|
|
51
|
-
private readonly awaitingCallbackTimeoutMs;
|
|
52
|
-
private readonly environment;
|
|
53
|
-
private readonly awaitingCallbackPollMs;
|
|
54
|
-
private readonly clock;
|
|
55
|
-
private readonly collectTelemetry?;
|
|
56
|
-
private readonly uuid;
|
|
57
|
-
private readonly onEventCallback?;
|
|
58
|
-
private _state;
|
|
59
|
-
private _listeners;
|
|
60
|
-
private _consentIdempotencyKey;
|
|
61
|
-
private _callbackTimer;
|
|
62
|
-
private _awaitingCallbackStartedAtMs;
|
|
63
|
-
/** Last provider the user selected — retained so success/awaiting states that
|
|
64
|
-
* arrive without it (poll/callback) can still report `bankId`. */
|
|
65
|
-
private _selectedProvider;
|
|
66
|
-
private _disposed;
|
|
67
|
-
/** Re-entrance guard — second `hydrate()` returns the in-flight promise. */
|
|
68
|
-
private _hydratePromise;
|
|
69
|
-
/** Consecutive `pollStatus` transport failures since the last successful response. */
|
|
70
|
-
private _pollStatusConsecutiveFailures;
|
|
71
|
-
constructor(opts: PaymentFlowControllerOptions);
|
|
72
|
-
get state(): PaymentFlowState;
|
|
73
|
-
get awaitingCallbackStartedAtMs(): number | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Register a listener. The listener is invoked synchronously with the
|
|
76
|
-
* current state so new subscribers have the initial snapshot, then again
|
|
77
|
-
* on every subsequent change.
|
|
78
|
-
*/
|
|
79
|
-
subscribe(listener: Listener): () => void;
|
|
80
|
-
private setState;
|
|
81
|
-
fireEvent(event: PaymentFlowEventTag): void;
|
|
82
|
-
private cancelCallbackTimeout;
|
|
83
|
-
private startCallbackTimeout;
|
|
84
|
-
/**
|
|
85
|
-
* `GET /link` + `GET /link/providers`, then transitions to bankSelection.
|
|
86
|
-
* Re-entrant: a second concurrent call returns the in-flight promise instead
|
|
87
|
-
* of firing duplicate requests.
|
|
88
|
-
*/
|
|
89
|
-
hydrate(): Promise<void>;
|
|
90
|
-
private _doHydrate;
|
|
91
|
-
/** Move bankSelection → consentDetails. */
|
|
92
|
-
selectBank(bankId: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* Best-effort Confirmation-of-Payee fetch — never blocks {@link selectBank}
|
|
95
|
-
* or fails the flow. Mirrors the Flutter controller: gated to UAE + un-verified
|
|
96
|
-
* sessions, and the result is merged into the consentDetails state only if the
|
|
97
|
-
* user is still on that screen for the same provider. Ported from
|
|
98
|
-
* `payment_flow_controller.dart:_loadCopInBackground`.
|
|
99
|
-
*/
|
|
100
|
-
private loadCopInBackground;
|
|
101
|
-
private shouldPerformCop;
|
|
102
|
-
/** `POST /link/consent`, persists pending record, transitions to redirecting. */
|
|
103
|
-
confirmConsent(): Promise<void>;
|
|
104
|
-
/**
|
|
105
|
-
* Parses a callback URI and transitions to succeeded / failed. Accepts either
|
|
106
|
-
* a `URL` instance or a string. A malformed URI resolves to
|
|
107
|
-
* `failed('invalid_callback')` instead of throwing.
|
|
108
|
-
*/
|
|
109
|
-
handleCallback(uri: URL | string): void;
|
|
110
|
-
/** Best-effort cancel — PATCH /link with action=cancel, then transitions to cancelled. */
|
|
111
|
-
cancel(): Promise<void>;
|
|
112
|
-
/** Best-effort error report — sets failed state immediately, PATCH is fire-and-forget. */
|
|
113
|
-
reportError(code: string): Promise<void>;
|
|
114
|
-
private patchTokenBestEffort;
|
|
115
|
-
/**
|
|
116
|
-
* UI calls this after handing off to the bank — starts the 5-minute timeout
|
|
117
|
-
* and pins the awaiting-callback start time.
|
|
118
|
-
*/
|
|
119
|
-
setAwaitingCallbackState(args?: {
|
|
120
|
-
providerName?: string;
|
|
121
|
-
}): void;
|
|
122
|
-
/**
|
|
123
|
-
* Best-effort status polling. Transitions to a terminal state on
|
|
124
|
-
* `completed | failed | cancelled | expired`; otherwise leaves the flow in
|
|
125
|
-
* the current phase. After {@link POLL_STATUS_MAX_CONSECUTIVE_FAILURES}
|
|
126
|
-
* consecutive transport failures the controller gives up with
|
|
127
|
-
* `failed('network_error')` to stop hammering an unreachable backend.
|
|
128
|
-
*/
|
|
129
|
-
pollStatus(): Promise<void>;
|
|
130
|
-
/** Best-effort telemetry — never throws, never changes state. */
|
|
131
|
-
postTelemetry(payload: Record<string, unknown>): Promise<void>;
|
|
132
|
-
/** Best-effort CoP — returns result or null on failure. */
|
|
133
|
-
getCoP(providerId?: string): Promise<CopResponse | null>;
|
|
134
|
-
private postTelemetryAutomatic;
|
|
135
|
-
/** Returns the active providers list — convenience for the UI layer. */
|
|
136
|
-
get providers(): ProviderSummary[];
|
|
137
|
-
/** Returns the active session, if any. */
|
|
138
|
-
get session(): LinkSessionResponse | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* Releases resources: cancels timers, clears listeners, and aborts the
|
|
141
|
-
* underlying API client's in-flight fetches. Idempotent.
|
|
142
|
-
*/
|
|
143
|
-
dispose(): void;
|
|
144
|
-
}
|
|
145
|
-
export {};
|
|
146
|
-
//# sourceMappingURL=payment-flow-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-flow-controller.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/payment-flow-controller.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,2FAA2F;AAC3F,KAAK,mBAAmB,GACpB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,sBAAsB,GACtB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAChB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,KAAK,EAAmB,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIpG,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,wEAAwE;AACxE,MAAM,WAAW,KAAK;IACpB,GAAG,IAAI,MAAM,CAAC;CACf;AAYD,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IACzB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gEAAgE;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,uEAAuE;IACvE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAChD;AAED,KAAK,QAAQ,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAQlD;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAEnD,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAS;IACnD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqB;IACjD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAyC;IAC3E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAe;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAuC;IAExE,OAAO,CAAC,MAAM,CAA8C;IAC5D,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,sBAAsB,CAAqB;IACnD,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,4BAA4B,CAAqB;IACzD;uEACmE;IACnE,OAAO,CAAC,iBAAiB,CAA8B;IACvD,OAAO,CAAC,SAAS,CAAS;IAC1B,4EAA4E;IAC5E,OAAO,CAAC,eAAe,CAA4B;IACnD,sFAAsF;IACtF,OAAO,CAAC,8BAA8B,CAAK;gBAE/B,IAAI,EAAE,4BAA4B;IAgB9C,IAAI,KAAK,IAAI,gBAAgB,CAE5B;IAED,IAAI,2BAA2B,IAAI,MAAM,GAAG,SAAS,CAEpD;IAED;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IAYzC,OAAO,CAAC,QAAQ;IAgBhB,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAU3C,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,oBAAoB;IAU5B;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YASV,UAAU;IAoBxB,2CAA2C;IAC3C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IA6BhC;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,gBAAgB;IAOxB,iFAAiF;IAC3E,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAsDrC;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAkEvC,0FAA0F;IACpF,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAM7B,0FAA0F;IACpF,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAOhC,oBAAoB;IAelC;;;OAGG;IACH,wBAAwB,CAAC,IAAI,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,IAAI;IAYpE;;;;;;OAMG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAoEjC,iEAAiE;IAC3D,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUpE,2DAA2D;IACrD,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;YAQhD,sBAAsB;IAapC,wEAAwE;IACxE,IAAI,SAAS,IAAI,eAAe,EAAE,CAEjC;IAED,0CAA0C;IAC1C,IAAI,OAAO,IAAI,mBAAmB,GAAG,SAAS,CAE7C;IAED;;;OAGG;IACH,OAAO,IAAI,IAAI;CAQhB"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { ConsentResponse, CopResponse, LinkSessionResponse, ProviderSummary } from '../models';
|
|
2
|
-
/** Phases the payment flow controller transitions through. */
|
|
3
|
-
export type PaymentFlowPhase = 'idle' | 'hydrating' | 'bankSelection' | 'consentDetails' | 'redirecting' | 'awaitingCallback' | 'succeeded' | 'failed' | 'cancelled';
|
|
4
|
-
export interface PaymentFlowState {
|
|
5
|
-
phase: PaymentFlowPhase;
|
|
6
|
-
session?: LinkSessionResponse;
|
|
7
|
-
providers: ProviderSummary[];
|
|
8
|
-
selectedProvider?: ProviderSummary;
|
|
9
|
-
consent?: ConsentResponse;
|
|
10
|
-
/** Confirmation-of-Payee result, threaded into the consentDetails phase. */
|
|
11
|
-
copResponse?: CopResponse;
|
|
12
|
-
/** True while Confirmation-of-Payee is loading for domestic SIP. */
|
|
13
|
-
isCopLoading?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* True when this session was actually eligible for Confirmation-of-Payee
|
|
16
|
-
* (UAE tenant, unverified, payment type supports it) — as opposed to
|
|
17
|
-
* merely supporting it by payment type. Lets the presenter distinguish
|
|
18
|
-
* "not applicable" from "was attempted but the response never arrived".
|
|
19
|
-
*/
|
|
20
|
-
copApplicable?: boolean;
|
|
21
|
-
exchangeCode?: string;
|
|
22
|
-
linkSessionId?: string;
|
|
23
|
-
merchantRef?: string;
|
|
24
|
-
errorCode?: string;
|
|
25
|
-
errorMessage?: string;
|
|
26
|
-
providerName?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const PaymentFlowStates: {
|
|
29
|
-
readonly idle: () => PaymentFlowState;
|
|
30
|
-
readonly hydrating: () => PaymentFlowState;
|
|
31
|
-
readonly bankSelection: (args: {
|
|
32
|
-
session: LinkSessionResponse;
|
|
33
|
-
providers: ProviderSummary[];
|
|
34
|
-
}) => PaymentFlowState;
|
|
35
|
-
readonly consentDetails: (args: {
|
|
36
|
-
session: LinkSessionResponse;
|
|
37
|
-
selectedProvider: ProviderSummary;
|
|
38
|
-
copResponse?: CopResponse;
|
|
39
|
-
isCopLoading?: boolean;
|
|
40
|
-
copApplicable?: boolean;
|
|
41
|
-
}) => PaymentFlowState;
|
|
42
|
-
readonly redirecting: (args: {
|
|
43
|
-
consent: ConsentResponse;
|
|
44
|
-
selectedProvider?: ProviderSummary;
|
|
45
|
-
}) => PaymentFlowState;
|
|
46
|
-
readonly awaitingCallback: (args: {
|
|
47
|
-
providerName?: string;
|
|
48
|
-
session?: LinkSessionResponse;
|
|
49
|
-
selectedProvider?: ProviderSummary;
|
|
50
|
-
}) => PaymentFlowState;
|
|
51
|
-
readonly succeeded: (args: {
|
|
52
|
-
exchangeCode?: string;
|
|
53
|
-
linkSessionId?: string;
|
|
54
|
-
merchantRef?: string;
|
|
55
|
-
selectedProvider?: ProviderSummary;
|
|
56
|
-
session?: LinkSessionResponse;
|
|
57
|
-
}) => PaymentFlowState;
|
|
58
|
-
readonly failed: (args: {
|
|
59
|
-
errorCode: string;
|
|
60
|
-
errorMessage?: string;
|
|
61
|
-
}) => PaymentFlowState;
|
|
62
|
-
readonly cancelled: () => PaymentFlowState;
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=payment-flow-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-flow-state.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/payment-flow-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEpG,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,WAAW,GACX,QAAQ,GACR,WAAW,CAAC;AAEhB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,eAAO,MAAM,iBAAiB;yBACpB,gBAAgB;8BAGX,gBAAgB;mCAGT;QAClB,OAAO,EAAE,mBAAmB,CAAC;QAC7B,SAAS,EAAE,eAAe,EAAE,CAAC;KAC9B,KAAG,gBAAgB;oCAGC;QACnB,OAAO,EAAE,mBAAmB,CAAC;QAC7B,gBAAgB,EAAE,eAAe,CAAC;QAClC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,KAAG,gBAAgB;iCAWF;QAChB,OAAO,EAAE,eAAe,CAAC;QACzB,gBAAgB,CAAC,EAAE,eAAe,CAAC;KACpC,KAAG,gBAAgB;sCAQG;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,mBAAmB,CAAC;QAC9B,gBAAgB,CAAC,EAAE,eAAe,CAAC;KACpC,KAAG,gBAAgB;+BASJ;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,eAAe,CAAC;QACnC,OAAO,CAAC,EAAE,mBAAmB,CAAC;KAC/B,KAAG,gBAAgB;4BAWP;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,KAAG,gBAAgB;8BAQ/D,gBAAgB;CAGrB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PaymentResult } from '../../public/payment-result';
|
|
2
|
-
import type { PaymentFlowState } from './payment-flow-state';
|
|
3
|
-
/** Map a terminal controller state to a {@link PaymentResult}. */
|
|
4
|
-
export declare function paymentResultFromFlowState(state: PaymentFlowState, linkToken: string, bankId?: string): PaymentResult | null;
|
|
5
|
-
//# sourceMappingURL=payment-result-mapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-result-mapper.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/payment-result-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAOjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,kEAAkE;AAClE,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,gBAAgB,EACvB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,aAAa,GAAG,IAAI,CA0BtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-utils.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/presentation-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,CAG5F"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function setBufferedRedirect(uri: string): void;
|
|
2
|
-
export declare function peekBufferedRedirect(): string | null;
|
|
3
|
-
export declare function consumeBufferedRedirect(): string | null;
|
|
4
|
-
/** @internal Clears buffer state between tests. */
|
|
5
|
-
export declare function resetRedirectBufferForTests(): void;
|
|
6
|
-
//# sourceMappingURL=redirect-buffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-buffer.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/redirect-buffer.ts"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAKrD;AAED,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CAEpD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAOvD;AAED,mDAAmD;AACnD,wBAAgB,2BAA2B,IAAI,IAAI,CAGlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-friendly-messages.d.ts","sourceRoot":"","sources":["../../../../../src/core/services/user-friendly-messages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkChE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-collector.d.ts","sourceRoot":"","sources":["../../../../src/internal/telemetry-collector.ts"],"names":[],"mappings":"AA2CA,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA8CzE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Max non-terminal `resumeIfNeeded` recovery attempts before the SDK gives up
|
|
3
|
-
* and resolves the flow as failed with code `recovery_exhausted`.
|
|
4
|
-
*/
|
|
5
|
-
export declare const kMaxRecoveryAttempts: 3;
|
|
6
|
-
/** Default per-request HTTP timeout in milliseconds (15s). */
|
|
7
|
-
export declare const DEFAULT_REQUEST_TIMEOUT_MS: 15000;
|
|
8
|
-
/** How long the SDK waits for a bank callback before auto-failing with `session_timeout`. */
|
|
9
|
-
export declare const DEFAULT_AWAITING_CALLBACK_TIMEOUT_MS: number;
|
|
10
|
-
/** Polling interval while the flow is in awaitingCallback (status endpoint). */
|
|
11
|
-
export declare const DEFAULT_AWAITING_CALLBACK_POLL_MS = 10000;
|
|
12
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/public/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAG,CAAU,CAAC;AAE/C,8DAA8D;AAC9D,eAAO,MAAM,0BAA0B,EAAG,KAAe,CAAC;AAE1D,6FAA6F;AAC7F,eAAO,MAAM,oCAAoC,QAAgB,CAAC;AAElE,gFAAgF;AAChF,eAAO,MAAM,iCAAiC,QAAS,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PaymentResult } from './payment-result';
|
|
2
|
-
import type { SpareLinkEventType } from './spare-link-event';
|
|
3
|
-
/** Called on successful payment. Both args may be null when recovered. */
|
|
4
|
-
export type SpareLinkSuccessCallback = (exchangeCode: string | undefined, linkSessionId: string | undefined) => void;
|
|
5
|
-
/** Called when the flow resolves to any terminal state (success or failure). */
|
|
6
|
-
export type SpareLinkExitCallback = (result: PaymentResult) => void;
|
|
7
|
-
/** Called for intermediate lifecycle events (string tag). Best-effort — exceptions are caught. */
|
|
8
|
-
export type SpareLinkEventCallback = (event: SpareLinkEventType) => void;
|
|
9
|
-
export interface SpareLinkCallbacks {
|
|
10
|
-
onSuccess?: SpareLinkSuccessCallback;
|
|
11
|
-
onExit?: SpareLinkExitCallback;
|
|
12
|
-
onEvent?: SpareLinkEventCallback;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=spare-link-callbacks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spare-link-callbacks.d.ts","sourceRoot":"","sources":["../../../../src/public/spare-link-callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,0EAA0E;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CACrC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,aAAa,EAAE,MAAM,GAAG,SAAS,KAC9B,IAAI,CAAC;AAEV,gFAAgF;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAEpE,kGAAkG;AAClG,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,wBAAwB,CAAC;IACrC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charge-bearer-display.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/charge-bearer-display.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAQD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CAwBhF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ConsentAccordionItem {
|
|
2
|
-
header: string;
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
initiallyExpanded?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ConsentAccordionProps {
|
|
7
|
-
items: ConsentAccordionItem[];
|
|
8
|
-
}
|
|
9
|
-
export declare function ConsentAccordion(props: ConsentAccordionProps): JSX.Element;
|
|
10
|
-
//# sourceMappingURL=consent-accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consent-accordion.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/consent-accordion.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAa1E"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ConsentSummaryData } from '../../core/services/consent-presenter';
|
|
2
|
-
export interface ConsentSummarySectionProps {
|
|
3
|
-
data: ConsentSummaryData;
|
|
4
|
-
}
|
|
5
|
-
export declare function ConsentSummarySection(props: ConsentSummarySectionProps): JSX.Element;
|
|
6
|
-
//# sourceMappingURL=consent-summary-section.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consent-summary-section.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/consent-summary-section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAKhF,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CASpF"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CopDisplayData } from '../../core/services/consent-presenter';
|
|
2
|
-
export declare function CopLoadingPlaceholder(): JSX.Element;
|
|
3
|
-
export declare function CopInformation(props: {
|
|
4
|
-
display: CopDisplayData;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
//# sourceMappingURL=cop-information.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cop-information.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/cop-information.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,uCAAuC,CAAC;AAoB/F,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,OAAO,CAoBnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CA8B9E"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { InternationalPaymentSummaryData } from '../../core/services/consent-presenter';
|
|
2
|
-
export interface InternationalPaymentSummaryProps {
|
|
3
|
-
data: InternationalPaymentSummaryData;
|
|
4
|
-
}
|
|
5
|
-
export declare function InternationalPaymentSummary(props: InternationalPaymentSummaryProps): JSX.Element;
|
|
6
|
-
//# sourceMappingURL=international-payment-summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"international-payment-summary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/international-payment-summary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAQ7F,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,+BAA+B,CAAC;CACvC;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,GAAG,GAAG,CAAC,OAAO,CA6ChG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LabelValueRow } from '../../core/services/multi-payment-rules-presenter';
|
|
2
|
-
export interface LabelValueRowsProps {
|
|
3
|
-
rows: LabelValueRow[];
|
|
4
|
-
/** Horizontal inset; Flutter defaults to 20 and uses 0 inside padded cards. */
|
|
5
|
-
paddingHorizontal?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function LabelValueRows(props: LabelValueRowsProps): JSX.Element;
|
|
8
|
-
declare function present(value: string | undefined, fallback?: string): string;
|
|
9
|
-
export { present };
|
|
10
|
-
//# sourceMappingURL=label-value-rows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label-value-rows.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/label-value-rows.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAGvF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAYtE;AAsBD,iBAAS,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,SAAM,GAAG,MAAM,CAGlE;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PaymentType } from '../../core/models/payment-type';
|
|
2
|
-
import type { LabelValueRow } from '../../core/services/multi-payment-rules-presenter';
|
|
3
|
-
/** Number of defined-schedule entry cards visible before scrolling. */
|
|
4
|
-
export declare const DEFINED_SCHEDULE_VISIBLE_ENTRY_COUNT = 3;
|
|
5
|
-
/** Approximate height of one defined-schedule entry card (incl. spacing). */
|
|
6
|
-
export declare const DEFINED_SCHEDULE_ENTRY_EXTENT = 96;
|
|
7
|
-
export interface MultiPaymentRulesListProps {
|
|
8
|
-
rulesTitle?: string;
|
|
9
|
-
rules: LabelValueRow[];
|
|
10
|
-
paymentType: PaymentType;
|
|
11
|
-
}
|
|
12
|
-
export declare function MultiPaymentRulesList(props: MultiPaymentRulesListProps): JSX.Element;
|
|
13
|
-
/** Groups flat Amount/Date row pairs into per-payment entry lists. */
|
|
14
|
-
export declare function groupDefinedScheduleEntries(rules: LabelValueRow[]): LabelValueRow[][];
|
|
15
|
-
//# sourceMappingURL=multi-payment-rules-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-payment-rules-list.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/multi-payment-rules-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAIvF,uEAAuE;AACvE,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD,6EAA6E;AAC7E,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CA0BpF;AAgDD,sEAAsE;AACtE,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,aAAa,EAAE,EAAE,CAUrF"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MultiPaymentSummaryData } from '../../core/services/consent-presenter';
|
|
2
|
-
export interface MultiPaymentSummaryProps {
|
|
3
|
-
data: MultiPaymentSummaryData;
|
|
4
|
-
}
|
|
5
|
-
export declare function MultiPaymentSummary(props: MultiPaymentSummaryProps): JSX.Element;
|
|
6
|
-
//# sourceMappingURL=multi-payment-summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-payment-summary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/multi-payment-summary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOrF,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CA6ChF"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SinglePaymentSummaryData } from '../../core/services/consent-presenter';
|
|
2
|
-
export interface SinglePaymentSummaryProps {
|
|
3
|
-
data: SinglePaymentSummaryData;
|
|
4
|
-
}
|
|
5
|
-
export declare function SinglePaymentSummary(props: SinglePaymentSummaryProps): JSX.Element;
|
|
6
|
-
//# sourceMappingURL=single-payment-summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-payment-summary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/single-payment-summary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAMtF,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CA0ClF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terms-link.d.ts","sourceRoot":"","sources":["../../../../../src/ui/consent/terms-link.tsx"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,IAAI,GAAG,CAAC,OAAO,CAWvC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PaymentFlowController } from '../../core/services/payment-flow-controller';
|
|
2
|
-
import type { PaymentFlowState } from '../../core/services/payment-flow-state';
|
|
3
|
-
/**
|
|
4
|
-
* React hook that bridges {@link PaymentFlowController}'s observable to the
|
|
5
|
-
* component tree via `useSyncExternalStore`. Re-renders when the controller
|
|
6
|
-
* notifies a new state.
|
|
7
|
-
*/
|
|
8
|
-
export declare function usePaymentFlowState(controller: PaymentFlowController): PaymentFlowState;
|
|
9
|
-
//# sourceMappingURL=use-payment-flow-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-payment-flow-state.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/use-payment-flow-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE/E;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,qBAAqB,GAAG,gBAAgB,CAMvF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { PaymentFlowController } from '../core/services/payment-flow-controller';
|
|
2
|
-
import type { SpareLinkCallbacks } from '../public/spare-link-callbacks';
|
|
3
|
-
export interface PaymentFlowPageProps {
|
|
4
|
-
controller: PaymentFlowController;
|
|
5
|
-
/** Called when the flow resolves to a terminal phase. Hosts the Modal close. */
|
|
6
|
-
onResolved: () => void;
|
|
7
|
-
callbacks?: SpareLinkCallbacks;
|
|
8
|
-
/**
|
|
9
|
-
* Bank redirect launcher. Defaults to a noop in tests (the SDK substitutes
|
|
10
|
-
* the real `BankRedirect.launch` in {@link SpareLinkHost}). Receives the
|
|
11
|
-
* consent's `authorizationUrl` (+ optional bank `mobileAppUrl`) and returns
|
|
12
|
-
* once the system has handed off to the bank.
|
|
13
|
-
*/
|
|
14
|
-
launchBankRedirect?: (args: {
|
|
15
|
-
authorizationUrl: string;
|
|
16
|
-
mobileAppUrl?: string;
|
|
17
|
-
}) => Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export declare function PaymentFlowPage(props: PaymentFlowPageProps): JSX.Element;
|
|
20
|
-
//# sourceMappingURL=payment-flow-page.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-flow-page.d.ts","sourceRoot":"","sources":["../../../../src/ui/payment-flow-page.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAGtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAUzE,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,qBAAqB,CAAC;IAClC,gFAAgF;IAChF,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnG;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAsMxE"}
|