@forgeroute/ui 0.5.17 → 0.5.19
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/fesm2022/forgeroute-ui-boards.mjs +2 -2
- package/fesm2022/forgeroute-ui-boards.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-chip.mjs +25 -6
- package/fesm2022/forgeroute-ui-chip.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs} +216 -5
- package/fesm2022/forgeroute-ui-core-ui-labels.es-ChTmqFlw.mjs.map +1 -0
- package/fesm2022/forgeroute-ui-core.mjs +273 -14
- package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +217 -26
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +19 -2
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-more-menu.mjs +61 -8
- package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-multi-select.mjs +2 -1
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-payments.mjs +884 -56
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +6986 -1190
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
- package/package.json +6 -2
- package/types/forgeroute-ui-chip.d.ts +11 -1
- package/types/forgeroute-ui-core.d.ts +244 -7
- package/types/forgeroute-ui-data-table-core.d.ts +60 -1
- package/types/forgeroute-ui-messaging.d.ts +15 -5
- package/types/forgeroute-ui-more-menu.d.ts +7 -0
- package/types/forgeroute-ui-payments.d.ts +340 -8
- package/types/forgeroute-ui-quickbooks.d.ts +3 -3
- package/types/forgeroute-ui-square.d.ts +3 -3
- package/types/forgeroute-ui-stripe.d.ts +1726 -5
- package/types/forgeroute-ui-table-types.d.ts +29 -0
- package/fesm2022/forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { DestroyRef, InjectionToken, Provider, TemplateRef, WritableSignal } from "@angular/core";
|
|
3
3
|
import { isDarkPage } from "@forgeroute/ui/utils";
|
|
4
|
-
import { CheckPaymentStatusFn, HostResult, PaymentAllocation, PaymentAttempt, PaymentAttemptControls, PaymentAttemptOutcome, PaymentMethodBodyContext, PaymentMethodPlugin, PaymentPluginMethod, PaymentReadiness, PaymentReadinessResult, ReadinessCheckFn } from "@forgeroute/ui/payments";
|
|
5
|
-
import { UiLabelsService } from "@forgeroute/ui/core";
|
|
4
|
+
import { CheckPaymentStatusFn, HostResult, PaymentAllocation, PaymentAttempt, PaymentAttemptControls, PaymentAttemptOutcome, PaymentMethodBodyContext, PaymentMethodPlugin, PaymentPendingCheckInfo, PaymentPendingCheckResult, PaymentPluginMethod, PaymentReaderBannerConfig, PaymentReaderState, PaymentReadiness, PaymentReadinessResult, ReadinessCheckFn } from "@forgeroute/ui/payments";
|
|
5
|
+
import { UiLabelKey, UiLabelsService } from "@forgeroute/ui/core";
|
|
6
6
|
import { Observable } from "rxjs";
|
|
7
7
|
/**
|
|
8
8
|
* The small part of Stripe.js the library calls, written as plain structural types so the library has NO compile-time or run-time
|
|
@@ -620,6 +620,13 @@ export declare class StripePaymentComponent {
|
|
|
620
620
|
/** Show the built-in submit button; turn off to use your own and call `confirm()`. */
|
|
621
621
|
readonly showSubmit: import("@angular/core").InputSignal<boolean>;
|
|
622
622
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
623
|
+
/**
|
|
624
|
+
* Library source 2026-11-21 (additive; unset = nothing changes). While `true` no payment can be started: the built-in submit button is disabled, `confirm()` returns `null` without touching Stripe, and
|
|
625
|
+
* `blockedReason` is shown in a `role="status"` message (text, never colour alone). Unlike `disabled` the form itself stays editable and an attempt that is already running is not touched. Not shown in `mountOnly` mode.
|
|
626
|
+
*/
|
|
627
|
+
readonly blocked: import("@angular/core").InputSignal<boolean>;
|
|
628
|
+
/** Why it is blocked (shown while `blocked`). Empty = the default text of the label `paymentBlocked.default`. */
|
|
629
|
+
readonly blockedReason: import("@angular/core").InputSignal<string>;
|
|
623
630
|
/** The host is still creating the intent: show the loading skeleton. */
|
|
624
631
|
readonly pending: import("@angular/core").InputSignal<boolean>;
|
|
625
632
|
/** Accessible name of the payment form (also its visible heading when `required` is set). */
|
|
@@ -703,6 +710,7 @@ export declare class StripePaymentComponent {
|
|
|
703
710
|
/** The bank notice text: the instant-only wording never mentions the two small deposits (they are not offered). */
|
|
704
711
|
protected readonly achNoticeText: import("@angular/core").Signal<string>;
|
|
705
712
|
protected readonly effectiveSubmitLabel: import("@angular/core").Signal<string>;
|
|
713
|
+
protected readonly blockedText: import("@angular/core").Signal<string>;
|
|
706
714
|
protected readonly submitDisabled: import("@angular/core").Signal<boolean>;
|
|
707
715
|
private readonly messages;
|
|
708
716
|
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
@@ -1125,6 +1133,16 @@ export declare class StripePaymentComponent {
|
|
|
1125
1133
|
"required": false;
|
|
1126
1134
|
"isSignal": true;
|
|
1127
1135
|
};
|
|
1136
|
+
"blocked": {
|
|
1137
|
+
"alias": "blocked";
|
|
1138
|
+
"required": false;
|
|
1139
|
+
"isSignal": true;
|
|
1140
|
+
};
|
|
1141
|
+
"blockedReason": {
|
|
1142
|
+
"alias": "blockedReason";
|
|
1143
|
+
"required": false;
|
|
1144
|
+
"isSignal": true;
|
|
1145
|
+
};
|
|
1128
1146
|
"pending": {
|
|
1129
1147
|
"alias": "pending";
|
|
1130
1148
|
"required": false;
|
|
@@ -1742,7 +1760,7 @@ export declare class StripeConnectComponent {
|
|
|
1742
1760
|
readonly navigateTab: import("@angular/core").InputSignal<((url: string) => void) | null>;
|
|
1743
1761
|
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
1744
1762
|
/** Which screen the card shows. */
|
|
1745
|
-
protected readonly state: import("@angular/core").Signal<"
|
|
1763
|
+
protected readonly state: import("@angular/core").Signal<"none" | "complete" | "verifying" | "incomplete">;
|
|
1746
1764
|
/** What the persistent status region says: the current state, plus "Loading." while a request runs. Empty while nothing is shown. */
|
|
1747
1765
|
protected readonly liveText: import("@angular/core").Signal<string>;
|
|
1748
1766
|
/** The user pressed a button that started a request: when the screen then changes, focus moves to the new screen (the pressed button is gone). */
|
|
@@ -1852,6 +1870,16 @@ export declare class StripeConnectComponent {
|
|
|
1852
1870
|
"loading": "loadingChange";
|
|
1853
1871
|
}, never, never, true, never>;
|
|
1854
1872
|
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Library source 2026-11-21: what `ui-payment-stripe-method (readerLeftPending)` reports. The plugin's body went away (`destroyed`) or its reader screen was removed (`unmounted`: the reader was switched off / the method changed) while a reader
|
|
1875
|
+
* payment was open (starting, waiting, declined, retrying, recovering or cancelling). The reader payment MAY STILL EXIST at the processor, so `readerBusyChange` is NOT sent as `false` for it: the host keeps its pay actions blocked
|
|
1876
|
+
* (and reads the server's own hold). A reopened body finds the payment again by its attempt key and reports `readerBusyChange` true / false normally.
|
|
1877
|
+
*/
|
|
1878
|
+
interface StripeReaderLeftPending {
|
|
1879
|
+
reason: 'destroyed' | 'unmounted';
|
|
1880
|
+
/** The attempt key of the open reader payment, when known. */
|
|
1881
|
+
paymentAttemptKey?: string;
|
|
1882
|
+
}
|
|
1855
1883
|
/** What the host's `createIntent` receives: the entered payment and how it is applied to charges. */
|
|
1856
1884
|
interface StripeIntentContext extends PaymentAllocation {
|
|
1857
1885
|
/** The amount the payer owes (before processing fees), in major units (12.5 = $12.50). */
|
|
@@ -1927,6 +1955,421 @@ export declare const STRIPE_METHOD_TEXTS: {
|
|
|
1927
1955
|
verificationMessage: (amount: string) => string;
|
|
1928
1956
|
readonly receiptNote: string;
|
|
1929
1957
|
};
|
|
1958
|
+
/**
|
|
1959
|
+
* Card-reader (Stripe Terminal smart reader) types of the library. They mirror the answers of the payments service (`GET /v1/terminal/readiness`,
|
|
1960
|
+
* `GET /v1/terminal/readers/:id/ready`, the `terminal` object of a card-present payment, `cardSave`; see forgeroute-payments `docs/API.md` section 16.3 and
|
|
1961
|
+
* `host-kit/contract/terminal-readiness.json`). The BROWSER never calls the service: every call below is a function the HOST supplies (it calls its own backend,
|
|
1962
|
+
* which calls the service), exactly like `ui-stripe-connect`.
|
|
1963
|
+
*/
|
|
1964
|
+
/**
|
|
1965
|
+
* The ONE state of the reader setup, chosen by the service with this fixed precedence (first match wins). `checking` = the read was slow or failed (nothing is guessed). `unknown` is the OLD name of `checking`: it is still
|
|
1966
|
+
* ACCEPTED in an answer a host passes in (and read as `checking`), but the library never produces it: {@link normalizeReadiness} returns `checking`, no screen shows the word and no event carries it.
|
|
1967
|
+
*/
|
|
1968
|
+
type StripeReaderReadinessState = 'merchant_not_ready' | 'no_reader' | 'unsupported_only' | 'reader_ready' | 'reader_busy' | 'reader_offline' | 'checking' | 'unknown';
|
|
1969
|
+
/** The precedence of the service, first match wins (documentation and tests; the service already sends the winning state). */
|
|
1970
|
+
export declare const STRIPE_READER_STATE_PRECEDENCE: readonly Exclude<StripeReaderReadinessState, 'checking' | 'unknown'>[];
|
|
1971
|
+
type StripeReaderDeviceStatus = 'online' | 'offline' | 'registering';
|
|
1972
|
+
/** A reader as the service answers it (register / list / get / rename). */
|
|
1973
|
+
interface StripeReader {
|
|
1974
|
+
id: string;
|
|
1975
|
+
label?: string | null;
|
|
1976
|
+
status: StripeReaderDeviceStatus | string;
|
|
1977
|
+
locationId?: string | null;
|
|
1978
|
+
deviceType?: string | null;
|
|
1979
|
+
serialNumber?: string | null;
|
|
1980
|
+
pairingCode?: string | null;
|
|
1981
|
+
action?: 'idle' | 'in_progress' | 'failed' | null;
|
|
1982
|
+
actionIntentId?: string | null;
|
|
1983
|
+
/** One of the supported smart readers (S700, S710, WisePOS E). Anything else cannot take a payment. */
|
|
1984
|
+
supported: boolean;
|
|
1985
|
+
/** Human model name, e.g. `Stripe Reader S700`. */
|
|
1986
|
+
model?: string | null;
|
|
1987
|
+
/** A payment of this merchant waits on the reader, or the processor says it works on an action. */
|
|
1988
|
+
busy: boolean;
|
|
1989
|
+
/** Only names a payment of THIS merchant. */
|
|
1990
|
+
busyPaymentId?: string | null;
|
|
1991
|
+
}
|
|
1992
|
+
/** `GET /v1/terminal/readiness`. */
|
|
1993
|
+
interface StripeReaderReadiness {
|
|
1994
|
+
state: StripeReaderReadinessState;
|
|
1995
|
+
readers: StripeReader[];
|
|
1996
|
+
/** The single ready reader, else the most recently used ready reader, else null (the user picks). */
|
|
1997
|
+
defaultReaderId: string | null;
|
|
1998
|
+
checkedAt?: string;
|
|
1999
|
+
/** The processor read was slow or failed: nothing was guessed. */
|
|
2000
|
+
stale?: boolean;
|
|
2001
|
+
/**
|
|
2002
|
+
* Why the answer is what it is. With `merchant_not_ready`: `reconnect_required` (offers "Reconnect payments"), `sandbox`, `service_disabled` or `processor_unsupported` (see {@link StripeReaderBannerReason}: the banner words these
|
|
2003
|
+
* with no button), anything else = payments are not set up yet ("Set up payments"). With `no_reader` / `unsupported_only`: the same three no-button reasons, otherwise the usual "get a reader" message.
|
|
2004
|
+
*/
|
|
2005
|
+
reason?: StripeReaderBannerReason | string;
|
|
2006
|
+
merchantStatus?: string;
|
|
2007
|
+
/** Why the processor read failed (`stale`): see {@link StripeReaderTerminal.degradedReason}. */
|
|
2008
|
+
degradedReason?: StripeReaderDegradedReason | string;
|
|
2009
|
+
}
|
|
2010
|
+
/** `GET /v1/terminal/readers/:id/ready` (the optional check right before a payment). */
|
|
2011
|
+
interface StripeReaderReady {
|
|
2012
|
+
ready: boolean;
|
|
2013
|
+
reason: 'ok' | 'offline' | 'busy' | 'unsupported' | 'merchant_not_ready' | 'reconnect_required' | 'unknown' | string;
|
|
2014
|
+
reader?: StripeReader | null;
|
|
2015
|
+
checkedAt?: string;
|
|
2016
|
+
stale?: boolean;
|
|
2017
|
+
degradedReason?: StripeReaderDegradedReason | string;
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Why the service could not read the processor (`terminal.degradedReason`): `processor_unreachable` / `processor_timeout` are transient (try again), `reconnect_required` (the processor refused our credentials) and
|
|
2021
|
+
* `processor_refused` (it refused the read) will NOT fix themselves: the payment account needs attention.
|
|
2022
|
+
*/
|
|
2023
|
+
type StripeReaderDegradedReason = 'processor_unreachable' | 'processor_timeout' | 'reconnect_required' | 'processor_refused';
|
|
2024
|
+
/**
|
|
2025
|
+
* `checking` = the processor could not be read in time (the stored payment is answered); `stale` is the same thing named after the `stale` flag. `unknown` is the OLD name: still ACCEPTED in the service's answer (read as
|
|
2026
|
+
* `checking`), never produced by the library; the screen words all three as "still checking" and never shows the word.
|
|
2027
|
+
*/
|
|
2028
|
+
type StripeReaderTerminalState = 'waiting' | 'declined' | 'failed' | 'succeeded' | 'canceled' | 'checking' | 'stale' | 'unknown';
|
|
2029
|
+
/** True for a terminal state that means "the processor could not be read": `checking`, `stale` and the old `unknown`. */
|
|
2030
|
+
export declare function isTerminalChecking(state: StripeReaderTerminalState | string | null | undefined): boolean;
|
|
2031
|
+
/**
|
|
2032
|
+
* The reasons a host may put in `StripeReaderReadiness.reason` for the "no usable reader" banner. Each maps to its own plain message with NO action button:
|
|
2033
|
+
* - `sandbox`: the company is a sandbox account ("Card readers are not available in a sandbox account."); apps map `merchant_not_ready` + this reason.
|
|
2034
|
+
* - `service_disabled`: the payments service is switched off ("Card readers are turned off for this account.").
|
|
2035
|
+
* - `processor_unsupported`: the company's processor can never use readers, e.g. Square or QuickBooks ("Card readers are not available with this payment processor.").
|
|
2036
|
+
* Any other reason (including `reconnect_required`) or none keeps the usual messages and buttons. The table is `STRIPE_READER_BANNER_REASONS`.
|
|
2037
|
+
*/
|
|
2038
|
+
type StripeReaderBannerReason = 'sandbox' | 'service_disabled' | 'processor_unsupported';
|
|
2039
|
+
/** Reason -> label key of the no-button banner message. Exported for documentation and tests. */
|
|
2040
|
+
export declare const STRIPE_READER_BANNER_REASONS: Readonly<Record<StripeReaderBannerReason, UiLabelKey>>;
|
|
2041
|
+
/** The no-button label key for a readiness reason, or null when the reason has no special wording. */
|
|
2042
|
+
export declare function readerBannerReasonKey(reason: string | null | undefined): UiLabelKey | null;
|
|
2043
|
+
/** The `terminal` object of a card-present payment (also carried by a 409 `payment_in_flight`). */
|
|
2044
|
+
interface StripeReaderTerminal {
|
|
2045
|
+
readerId: string;
|
|
2046
|
+
state: StripeReaderTerminalState;
|
|
2047
|
+
declineCode?: string;
|
|
2048
|
+
message?: string;
|
|
2049
|
+
/** `false` with the state `waiting` = the reader dropped its connection while the payment waits. */
|
|
2050
|
+
readerOnline?: boolean;
|
|
2051
|
+
/** `unknown` + `stale`: the processor could not be read in time; the stored payment is answered. */
|
|
2052
|
+
stale?: boolean;
|
|
2053
|
+
checkedAt?: string;
|
|
2054
|
+
/** With `stale`: why the processor could not be read (transient or needs attention). */
|
|
2055
|
+
degradedReason?: StripeReaderDegradedReason | string;
|
|
2056
|
+
/** From the 3rd consecutive stale read: how many stale reads in a row. */
|
|
2057
|
+
staleReads?: number;
|
|
2058
|
+
/** From the 3rd consecutive stale read: ISO time of the first stale read of the run ("we cannot reach the processor since 10:42"). */
|
|
2059
|
+
staleSince?: string;
|
|
2060
|
+
}
|
|
2061
|
+
/** Whether the card was kept for later (`savePaymentMethod`). Never claim "saved" unless `saved` is true. */
|
|
2062
|
+
interface StripeReaderCardSave {
|
|
2063
|
+
requested: boolean;
|
|
2064
|
+
saved: boolean;
|
|
2065
|
+
/** `no_generated_card`: the issuer / network gave no reusable card; the payment still succeeded. */
|
|
2066
|
+
reason?: string;
|
|
2067
|
+
}
|
|
2068
|
+
/** What a card reader payment looks like (the service's payment view plus `terminal` / `cardSave`). Only the fields the library reads are typed. */
|
|
2069
|
+
interface StripeReaderPayment {
|
|
2070
|
+
id: string;
|
|
2071
|
+
status?: string;
|
|
2072
|
+
amountCents?: number;
|
|
2073
|
+
baseCents?: number;
|
|
2074
|
+
feeCents?: number;
|
|
2075
|
+
platformFeeCents?: number;
|
|
2076
|
+
brand?: string | null;
|
|
2077
|
+
last4?: string | null;
|
|
2078
|
+
attemptKey?: string;
|
|
2079
|
+
terminal?: StripeReaderTerminal | null;
|
|
2080
|
+
cardSave?: StripeReaderCardSave | null;
|
|
2081
|
+
/** `POST .../retry`: a second retry while the reader already waits is a replay. */
|
|
2082
|
+
replayed?: boolean;
|
|
2083
|
+
[key: string]: unknown;
|
|
2084
|
+
}
|
|
2085
|
+
/** The consent the STAFF records at the counter before a card is kept (`consent` of `POST /v1/terminal/payments`; the service adds `channel: "terminal"`). */
|
|
2086
|
+
interface StripeReaderConsent {
|
|
2087
|
+
textVersion: string;
|
|
2088
|
+
/** ISO time the staff ticked the box. */
|
|
2089
|
+
acceptedAt: string;
|
|
2090
|
+
recordedBy: string;
|
|
2091
|
+
}
|
|
2092
|
+
/** Host settings that turn on "keep the card for future payments" for a reader payment. */
|
|
2093
|
+
interface StripeReaderSaveCard {
|
|
2094
|
+
/** The customer the card is kept for (`customerRef` of the service). */
|
|
2095
|
+
customerRef: string;
|
|
2096
|
+
/** Version of the consent wording (the host stores the text it shows under this version). */
|
|
2097
|
+
textVersion: string;
|
|
2098
|
+
/** Who is at the counter (the staff member's id or e-mail). */
|
|
2099
|
+
recordedBy: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* The exact sentence the staff attests by ticking the box (default: "The customer agreed to keep this payment method on file for later payments."). `textVersion` MUST name this exact text (the host
|
|
2102
|
+
* stores the text it shows under that version).
|
|
2103
|
+
*/
|
|
2104
|
+
consentText?: string;
|
|
2105
|
+
/** The payer pays the processing fees: "Later charges will include processing fees." is added to the consent sentence (the same sentence as the contractor staff collect panel). */
|
|
2106
|
+
customerPaysFees?: boolean;
|
|
2107
|
+
}
|
|
2108
|
+
/** What `startPayment` receives (the host maps it to `POST /v1/terminal/payments`). The amount is in major units. */
|
|
2109
|
+
interface StripeReaderStartContext {
|
|
2110
|
+
readerId: string;
|
|
2111
|
+
/** The amount the customer owes before fees, major units (12.5 = $12.50). */
|
|
2112
|
+
amount: number;
|
|
2113
|
+
/** Stable per click and REUSED when the answer is lost; send it as the service's `attemptKey`. */
|
|
2114
|
+
attemptKey: string;
|
|
2115
|
+
payableRef: string | null;
|
|
2116
|
+
/** Always `'CARD_PRESENT'`. */
|
|
2117
|
+
paymentMethod: 'CARD_PRESENT';
|
|
2118
|
+
/**
|
|
2119
|
+
* The TOTAL in cents the payer saw (`Math.round(quote.totalAmount * 100)` of the CARD_PRESENT quote). Send it as the service's `expectedAmountCents`: a changed quote is refused with 409 `quote_changed` before the
|
|
2120
|
+
* reader is touched. Absent when the screen showed no quote.
|
|
2121
|
+
*/
|
|
2122
|
+
expectedAmountCents?: number;
|
|
2123
|
+
savePaymentMethod?: boolean;
|
|
2124
|
+
customerRef?: string;
|
|
2125
|
+
consent?: StripeReaderConsent;
|
|
2126
|
+
/** Set only by the payment-panel integration: what the panel's other fields say. */
|
|
2127
|
+
receivedDate?: string;
|
|
2128
|
+
notes?: string | null;
|
|
2129
|
+
allocation?: PaymentAllocation;
|
|
2130
|
+
}
|
|
2131
|
+
/** What `estimateFees` receives for a reader payment. The quote is the CARD_PRESENT one and differs from the online card quote. */
|
|
2132
|
+
interface StripeReaderFeeContext {
|
|
2133
|
+
amount: number;
|
|
2134
|
+
paymentMethod: 'CARD_PRESENT';
|
|
2135
|
+
paymentMethodType: 'card_present';
|
|
2136
|
+
}
|
|
2137
|
+
/** `getPayment`: which payment to read. `paymentId` is known after the start answered; before that only the attempt key is. */
|
|
2138
|
+
interface StripeReaderPaymentRef {
|
|
2139
|
+
paymentId: string | null;
|
|
2140
|
+
attemptKey: string;
|
|
2141
|
+
}
|
|
2142
|
+
type StripeReaderGetReadinessFn = () => HostResult<StripeReaderReadiness>;
|
|
2143
|
+
type StripeReaderStartFn = (ctx: StripeReaderStartContext) => HostResult<StripeReaderPayment>;
|
|
2144
|
+
/** Reads one payment with its `terminal` object. Answer `null` (or reject with 404) when no payment exists for the attempt key. */
|
|
2145
|
+
type StripeReaderGetPaymentFn = (ref: StripeReaderPaymentRef) => HostResult<StripeReaderPayment | null>;
|
|
2146
|
+
type StripeReaderRetryFn = (paymentId: string) => HostResult<StripeReaderPayment>;
|
|
2147
|
+
type StripeReaderCancelFn = (paymentId: string) => HostResult<unknown>;
|
|
2148
|
+
type StripeReaderFeesFn = (ctx: StripeReaderFeeContext) => HostResult<StripeFees>;
|
|
2149
|
+
/** The one bundle of host callbacks that turns card-reader mode on in `ui-payment-stripe-method` (`[reader]`). */
|
|
2150
|
+
interface StripeReaderConfig {
|
|
2151
|
+
getReadiness: StripeReaderGetReadinessFn;
|
|
2152
|
+
startPayment: StripeReaderStartFn;
|
|
2153
|
+
getPayment: StripeReaderGetPaymentFn;
|
|
2154
|
+
retryPayment: StripeReaderRetryFn;
|
|
2155
|
+
cancelPayment: StripeReaderCancelFn;
|
|
2156
|
+
/** The CARD_PRESENT fee quote. REQUIRED: a reader payment shows the breakdown (and sends `expectedAmountCents`) before the tap. */
|
|
2157
|
+
estimateFees: StripeReaderFeesFn;
|
|
2158
|
+
/** The address of the receipt of a paid payment (host-built; only https or in-app `/paths` are linked). */
|
|
2159
|
+
receiptUrl?: (payment: StripeReaderPayment) => string | null | undefined;
|
|
2160
|
+
/** Turns on the "Save this card for future payments" choice. */
|
|
2161
|
+
saveCard?: StripeReaderSaveCard | null;
|
|
2162
|
+
/**
|
|
2163
|
+
* How often (ms) the waiting payment's status is read while the payer taps (default 2000). Clamped to {@link STRIPE_READER_POLL_MIN_MS}..{@link STRIPE_READER_POLL_MAX_MS}. The `[readerPollMs]` input of
|
|
2164
|
+
* `ui-payment-stripe-method`, when set, wins over this value.
|
|
2165
|
+
*/
|
|
2166
|
+
pollMs?: number;
|
|
2167
|
+
}
|
|
2168
|
+
/** The fastest and the slowest status poll of a waiting reader payment (ms): a faster one would hammer the host's backend, a slower one would leave the payer staring at a stale screen. */
|
|
2169
|
+
export declare const STRIPE_READER_POLL_MIN_MS = 500;
|
|
2170
|
+
export declare const STRIPE_READER_POLL_MAX_MS = 30000;
|
|
2171
|
+
/** A poll cadence the library will actually use: not a finite number > 0 = the default (2000 ms); otherwise rounded and clamped to 500..30 000 ms. */
|
|
2172
|
+
export declare function clampReaderPollMs(value: number | null | undefined): number;
|
|
2173
|
+
/** A refusal of `startPayment` / `retryPayment` the library words itself. */
|
|
2174
|
+
interface StripeReaderRefusal {
|
|
2175
|
+
code: string;
|
|
2176
|
+
/** The service's own text, shown only for a code the library has no wording for. */
|
|
2177
|
+
message: string;
|
|
2178
|
+
paymentId: string | null;
|
|
2179
|
+
terminal: StripeReaderTerminal | null;
|
|
2180
|
+
/** `quote_changed`: the new total / fees in cents, as the service answered them. */
|
|
2181
|
+
amountCents?: number | null;
|
|
2182
|
+
feeCents?: number | null;
|
|
2183
|
+
platformFeeCents?: number | null;
|
|
2184
|
+
}
|
|
2185
|
+
/** Reads the flat `code`, status, `paymentId` and `terminal` of a failed host call (the error itself or its `error` body). */
|
|
2186
|
+
export declare function readerErrorInfo(error: unknown): StripeReaderRefusal & {
|
|
2187
|
+
status: number | null;
|
|
2188
|
+
};
|
|
2189
|
+
/** A refusal without the HTTP status (the refusal the screen keeps is the same shape whatever the transport said). */
|
|
2190
|
+
export declare function toRefusal(info: StripeReaderRefusal & {
|
|
2191
|
+
status?: number | null;
|
|
2192
|
+
}): StripeReaderRefusal;
|
|
2193
|
+
/** What a payment was STARTED for (before fees, major units): `baseCents`, else the total minus the fees, else the total; `null` when the service gave no amount. Never 0 for a missing amount. */
|
|
2194
|
+
export declare function paymentBaseAmount(payment: StripeReaderPayment | null | undefined): number | null;
|
|
2195
|
+
/** How the screen words a terminal the service could not read (`checking` / `stale`). */
|
|
2196
|
+
type StripeReaderDegraded = {
|
|
2197
|
+
kind: 'transient';
|
|
2198
|
+
} | {
|
|
2199
|
+
kind: 'since';
|
|
2200
|
+
since: string;
|
|
2201
|
+
} | {
|
|
2202
|
+
kind: 'attention';
|
|
2203
|
+
};
|
|
2204
|
+
/**
|
|
2205
|
+
* `null` when the terminal was read normally. Otherwise: `attention` for a reason that will not fix itself (`reconnect_required`, `processor_refused`: "the payment account needs attention"), `since` from the 3rd
|
|
2206
|
+
* consecutive stale read ("cannot reach the processor since 10:42") and `transient` for the rest (`processor_unreachable`, `processor_timeout`, none given). Never a resubmit in any of them.
|
|
2207
|
+
*/
|
|
2208
|
+
export declare function readerDegraded(terminal: Pick<StripeReaderTerminal, 'state' | 'stale' | 'degradedReason' | 'staleReads' | 'staleSince'> | null | undefined, locale?: string): StripeReaderDegraded | null;
|
|
2209
|
+
/** The TOTAL a payment charged (major units), from the service's `amountCents`; `null` when absent. */
|
|
2210
|
+
export declare function paymentChargedAmount(payment: StripeReaderPayment | null | undefined): number | null;
|
|
2211
|
+
/** The label key of the wording of a reader refusal code, or null for a code the library does not know (the service's message is shown). */
|
|
2212
|
+
export declare function readerRefusalLabelKey(code: string): UiLabelKey | null;
|
|
2213
|
+
/** Codes that prove NOTHING was created or charged: the attempt is released (key kept) and the payer may start again. */
|
|
2214
|
+
export declare const STRIPE_READER_NOT_CREATED_CODES: readonly string[];
|
|
2215
|
+
/** The supported smart readers (the service refuses anything else with 400 `reader_not_supported`). */
|
|
2216
|
+
export declare const STRIPE_READER_MODELS: readonly {
|
|
2217
|
+
deviceType: string;
|
|
2218
|
+
model: string;
|
|
2219
|
+
}[];
|
|
2220
|
+
/** A defensive copy of an answer: an unrecognised state (or the old `unknown`) becomes `checking`, a missing list `[]` (nothing is ever guessed ready). The result's state is never `unknown`. */
|
|
2221
|
+
export declare function normalizeReadiness(raw: unknown): StripeReaderReadiness;
|
|
2222
|
+
/**
|
|
2223
|
+
* "10:42 AM" of a moment, in the user's language (explicit locale, the user's own time zone). `''` for a missing / unreadable value. Library source 2026-11-21 (used by `ui-stripe-reader-banner`: "last confirmed at ...").
|
|
2224
|
+
*/
|
|
2225
|
+
export declare function formatReaderTime(value: Date | string | number | null | undefined, locale?: string): string;
|
|
2226
|
+
/** The name a reader is shown under: its label, else its model, else its id. */
|
|
2227
|
+
export declare function readerDisplayName(reader: Pick<StripeReader, 'id' | 'label' | 'model' | 'deviceType'> | null | undefined): string;
|
|
2228
|
+
/** Can this reader take a payment right now (supported, online, free)? */
|
|
2229
|
+
export declare function isReaderFree(reader: StripeReader): boolean;
|
|
2230
|
+
/** Only an https address or an in-app `/path` is ever linked or opened (never `javascript:`, `data:`, `//host`). */
|
|
2231
|
+
export declare function isSafeReceiptUrl(url: string | null | undefined): url is string;
|
|
2232
|
+
/** `m:ss` of an elapsed time in ms (never negative). */
|
|
2233
|
+
export declare function formatElapsed(ms: number): string;
|
|
2234
|
+
/** A Stripe location a reader is registered to. */
|
|
2235
|
+
interface StripeReaderLocation {
|
|
2236
|
+
id: string;
|
|
2237
|
+
displayName: string;
|
|
2238
|
+
address?: {
|
|
2239
|
+
line1?: string;
|
|
2240
|
+
city?: string;
|
|
2241
|
+
state?: string;
|
|
2242
|
+
postalCode?: string;
|
|
2243
|
+
country?: string;
|
|
2244
|
+
} | null;
|
|
2245
|
+
}
|
|
2246
|
+
/** What `registerReader` receives. The registration code is typed once by the user and never kept: it is cleared from the form BEFORE the call and never echoed back. */
|
|
2247
|
+
interface StripeReaderRegisterContext {
|
|
2248
|
+
registrationCode: string;
|
|
2249
|
+
label: string;
|
|
2250
|
+
locationId: string;
|
|
2251
|
+
}
|
|
2252
|
+
/** What `createLocation` receives (the host maps it to `POST /v1/terminal/locations`). */
|
|
2253
|
+
interface StripeReaderCreateLocationContext {
|
|
2254
|
+
displayName: string;
|
|
2255
|
+
address: {
|
|
2256
|
+
line1: string;
|
|
2257
|
+
city: string;
|
|
2258
|
+
state: string;
|
|
2259
|
+
postalCode: string;
|
|
2260
|
+
country: string;
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
type StripeReaderRegisterFn = (ctx: StripeReaderRegisterContext) => HostResult<StripeReader>;
|
|
2264
|
+
type StripeReaderRenameFn = (readerId: string, label: string) => HostResult<StripeReader>;
|
|
2265
|
+
type StripeReaderRemoveFn = (readerId: string) => HostResult<unknown>;
|
|
2266
|
+
type StripeReaderListLocationsFn = () => HostResult<readonly StripeReaderLocation[]>;
|
|
2267
|
+
type StripeReaderCreateLocationFn = (ctx: StripeReaderCreateLocationContext) => HostResult<StripeReaderLocation>;
|
|
2268
|
+
/**
|
|
2269
|
+
* Gives a host without `ui-payment-stripe-method` in its panel the `[readerBanner]` config of `ui-payment-side-panel` (merchant not ready, collection off, no payable version: no plugin is rendered, but the banner must show).
|
|
2270
|
+
* With the plugin rendered a plain `{ getReadiness }` object is enough (the plugin supplies the component).
|
|
2271
|
+
*
|
|
2272
|
+
* readonly banner = computed(() => stripeReaderBannerConfig({ getReadiness: this.readiness, refreshKey: this.readersVersion() }));
|
|
2273
|
+
*/
|
|
2274
|
+
export declare function stripeReaderBannerConfig(config: Omit<PaymentReaderBannerConfig, 'component'>): PaymentReaderBannerConfig;
|
|
2275
|
+
/** The service states in which the organization has NO usable card reader: the only ones the banner shows. */
|
|
2276
|
+
declare const STRIPE_READER_BANNER_STATES: readonly StripeReaderReadiness['state'][];
|
|
2277
|
+
/**
|
|
2278
|
+
* The "get a card reader" banner (round 5, simplified): a SMALL `ui-alert` (info, one line, one or two actions) for a STAFF place where a customer payment can be taken. It shows ONLY when the organization has no usable card reader
|
|
2279
|
+
* (`no_reader`, `unsupported_only`, `merchant_not_ready`) and renders NOTHING in every other state (reader connected, offline, busy, still checking, a failed read, an offline browser): reader-state messages belong to the reader screen the
|
|
2280
|
+
* payment plugin shows when Card is chosen. `ui-payment-side-panel [readerBanner]` renders it as the first element of the panel. Never use it in a payer-facing component.
|
|
2281
|
+
*
|
|
2282
|
+
* <ui-stripe-reader-banner [getReadiness]="readiness" [refreshKey]="readersVersion()" [hardwareShopAvailable]="canOrder()" (connect)="openPairing()" (order)="openOrder()" (setup)="openSetup()" />
|
|
2283
|
+
*
|
|
2284
|
+
* A readiness `reason` of `sandbox`, `service_disabled` or `processor_unsupported` (any of the three states) gives its own plain message and NO button (see `STRIPE_READER_BANNER_REASONS`: "Card readers are not available in a sandbox account.", "Card readers are turned off for this account.", "Card readers are not available with this payment processor."; Spanish in the dictionary); the banner still appears only in those three states.
|
|
2285
|
+
* Message "Get a card reader to take in-person card payments." with "Connect a reader" and "Get a card reader" (`hardwareShopAvailable` false: "How to get a card reader", the same `order` output); `merchant_not_ready` says payments must be
|
|
2286
|
+
* set up first and offers "Set up payments" ("Reconnect payments" when the account must be reconnected; `setup`). The container is always in the DOM (it mounts when the panel opens, the host never gates anything on the read); the alert appears when the answer
|
|
2287
|
+
* arrives. The readiness is read FRESH on every start and every `refreshKey` change (and `refresh()`), never cached or polled; a failed or slow read (over `readinessTimeoutMs`) or an offline browser shows nothing and asks nothing more. No HTTP: the host's `getReadiness` calls its own backend.
|
|
2288
|
+
*/
|
|
2289
|
+
export declare class StripeReaderBannerComponent {
|
|
2290
|
+
protected readonly labels: UiLabelsService;
|
|
2291
|
+
private readonly destroyRef;
|
|
2292
|
+
/** The host's readiness call (`GET /v1/terminal/readiness`, through its own backend). Called FRESH every time. */
|
|
2293
|
+
readonly getReadiness: import("@angular/core").InputSignal<StripeReaderGetReadinessFn | null>;
|
|
2294
|
+
/** Any value that changes when the host knows the readers changed (a reader was connected, an order was placed): every change reads the readiness again. */
|
|
2295
|
+
readonly refreshKey: import("@angular/core").InputSignal<unknown>;
|
|
2296
|
+
/** `true` (default): "Get a card reader" opens the host's order flow. `false`: "How to get a card reader" and the host opens an info card. Same `order` output. */
|
|
2297
|
+
readonly hardwareShopAvailable: import("@angular/core").InputSignal<boolean>;
|
|
2298
|
+
/** Kept for backward compatibility: there is no connected line any more, so it changes nothing. */
|
|
2299
|
+
readonly hideReady: import("@angular/core").InputSignal<boolean>;
|
|
2300
|
+
/** A read slower than this shows nothing (ms). */
|
|
2301
|
+
readonly readinessTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
2302
|
+
/** Managed environments where `navigator.onLine === false` is a false negative: do not treat the browser's offline flag as offline (default false). */
|
|
2303
|
+
readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
|
|
2304
|
+
/** `true` while the banner is kept but not shown (the panel hides it after a payment was taken): it asks the host nothing; shown again it reads once only if a read was asked for meanwhile. */
|
|
2305
|
+
readonly paused: import("@angular/core").InputSignal<boolean>;
|
|
2306
|
+
/** "Connect a reader": the host opens its pairing screen. */
|
|
2307
|
+
readonly connect: import("@angular/core").OutputEmitterRef<void>;
|
|
2308
|
+
/** "Get a card reader" / "How to get a card reader": the host opens its order flow or an info card. */
|
|
2309
|
+
readonly order: import("@angular/core").OutputEmitterRef<void>;
|
|
2310
|
+
/** "Set up payments" / "Reconnect payments": the host opens payment setup. */
|
|
2311
|
+
readonly setup: import("@angular/core").OutputEmitterRef<void>;
|
|
2312
|
+
/** The banner's readiness state whenever it changes (`{ state, stale, at, ready }`; `state` is `checking` when the last read failed; never `unknown`). `ui-payment-side-panel` re-emits it as `(readerState)`. */
|
|
2313
|
+
readonly stateChange: import("@angular/core").OutputEmitterRef<PaymentReaderState>;
|
|
2314
|
+
private readonly confirmed;
|
|
2315
|
+
private readonly failed;
|
|
2316
|
+
private readonly offline;
|
|
2317
|
+
private run;
|
|
2318
|
+
private destroyed;
|
|
2319
|
+
private readWhenShown;
|
|
2320
|
+
/** The answer on screen: only a CONFIRMED, latest answer in which the organization has no usable reader. */
|
|
2321
|
+
protected readonly shown: import("@angular/core").Signal<StripeReaderReadiness | null>;
|
|
2322
|
+
readonly shownState: import("@angular/core").Signal<import("@forgeroute/ui/stripe").StripeReaderReadinessState | "none">;
|
|
2323
|
+
/** The label key of a reason with its own no-button wording (`sandbox`, `service_disabled`, `processor_unsupported`), else null. */
|
|
2324
|
+
protected readonly reasonKey: import("@angular/core").Signal<"pagination.label" | "pagination.previous" | "pagination.next" | "pagination.page" | "pagination.range" | "offline.title" | "offline.message" | "offline.dismiss" | "search.placeholder" | "search.searching" | "search.open" | "search.close" | "toolbar.moreActions" | "toolbar.moreActionsButton" | "toolbar.saveCurrentView" | "toolbar.columns" | "toolbar.columnsDescription" | "toolbar.cancel" | "toolbar.apply" | "toolbar.savedViews" | "toolbar.noSavedViews" | "toolbar.deleteView" | "toolbar.done" | "toolbar.saveView" | "toolbar.viewName" | "toolbar.viewNamePlaceholder" | "toolbar.save" | "appShell.logOut" | "appShell.mainNavigation" | "appShell.readOnly" | "appShell.siteNavigation" | "appShell.skipToMainContent" | "appShell.thisPageIsReadOnly" | "appShell.toggleNavigation" | "audioPlayer.audioCouldNotBePlayed" | "audioPlayer.yourBrowserDoesNotSupport" | "bankAccountForm.9DigitRoutingNumber" | "bankAccountForm.accountHolderName" | "bankAccountForm.accountNumber" | "bankAccountForm.accountType" | "bankAccountForm.confirmAccountNumber" | "bankAccountForm.holderType" | "bankAccountForm.reEnterAccountNumber" | "bankAccountForm.routingNumber" | "board.dragACardToAnother" | "bulkMessagePanel.sendBulkMessage" | "bulkMessagePanel.sendVia" | "bulkMessagePanel.sendingTo" | "bulkMessagePanel.subjectLine" | "bulkMessagePanel.writeYourMessage" | "businessHours.addShift" | "businessHours.closed" | "businessHours.copyMondayToWeekdays" | "businessHours.removeShift" | "businessHours.to" | "calendar.all" | "calendar.allDay" | "calendar.calendarView" | "calendar.loadingCalendar" | "chartsPieChart.noData" | "confirm.whatWillHappen" | "contactPicker.clearSelection" | "contactPicker.noContactsFound" | "contactPicker.recipientDetails" | "contactPicker.searching" | "conversations.unread" | "dateRangePicker.customDateRange" | "dateRangePicker.from" | "dateRangePicker.to" | "discountSelector.discounts" | "emailTemplateEditor.activeFrom" | "emailTemplateEditor.activeTo" | "emailTemplateEditor.addBlock" | "emailTemplateEditor.alignCenter" | "emailTemplateEditor.alignLeft" | "emailTemplateEditor.alignRight" | "emailTemplateEditor.altTextOptional" | "emailTemplateEditor.assignments" | "emailTemplateEditor.blockSpacing" | "emailTemplateEditor.blocks" | "emailTemplateEditor.bold" | "emailTemplateEditor.bulletedList" | "emailTemplateEditor.buttonLabel" | "emailTemplateEditor.callToAction" | "emailTemplateEditor.callToActionAddress" | "emailTemplateEditor.callToActionButtonLabel" | "emailTemplateEditor.caption" | "emailTemplateEditor.category" | "emailTemplateEditor.clickAVariableToInsert" | "emailTemplateEditor.clickAVideoToAdd" | "emailTemplateEditor.clickToInsertOrDrag" | "emailTemplateEditor.contentBlocks" | "emailTemplateEditor.deleteBlock" | "emailTemplateEditor.dragToReorder" | "emailTemplateEditor.dropHere" | "emailTemplateEditor.duplicateBlock" | "emailTemplateEditor.eGClickToWatch" | "emailTemplateEditor.editorView" | "emailTemplateEditor.emailDesign" | "emailTemplateEditor.emailPreview" | "emailTemplateEditor.fontSize" | "emailTemplateEditor.headingLevel" | "emailTemplateEditor.hideReactions" | "emailTemplateEditor.imageAddress" | "emailTemplateEditor.imageAltText" | "emailTemplateEditor.insertImage" | "emailTemplateEditor.insertImage2" | "emailTemplateEditor.insertLink" | "emailTemplateEditor.insertLink2" | "emailTemplateEditor.italic" | "emailTemplateEditor.linkAddress" | "emailTemplateEditor.linkText" | "emailTemplateEditor.linkTextOptional" | "emailTemplateEditor.loadingVideos" | "emailTemplateEditor.mobileEmailPreview" | "emailTemplateEditor.moveBlockDown" | "emailTemplateEditor.moveBlockUp" | "emailTemplateEditor.noAssignmentsFound" | "emailTemplateEditor.noAssignmentsMatchYourSearch" | "emailTemplateEditor.noBlocksFound" | "emailTemplateEditor.noBlocksMatchYourSearch" | "emailTemplateEditor.noVideosCreated" | "emailTemplateEditor.numberedList" | "emailTemplateEditor.playback" | "emailTemplateEditor.readOnly" | "emailTemplateEditor.recipientEmail" | "emailTemplateEditor.redo" | "emailTemplateEditor.rightPanelSections" | "emailTemplateEditor.saveTemplate" | "emailTemplateEditor.saveTheTemplateFirstBefore" | "emailTemplateEditor.searchAssignments" | "emailTemplateEditor.searchBlocks" | "emailTemplateEditor.searchBlocks2" | "emailTemplateEditor.sendTestEmail" | "emailTemplateEditor.sendThisTemplateToAn" | "emailTemplateEditor.size" | "emailTemplateEditor.templateDetails" | "emailTemplateEditor.templateVariables" | "emailTemplateEditor.testSend" | "emailTemplateEditor.textColor" | "emailTemplateEditor.textFormatting" | "emailTemplateEditor.underline" | "emailTemplateEditor.undo" | "emailTemplateEditor.useAsMyTemplate" | "emailTemplateEditor.useThisTemplateAllYear" | "emailTemplateEditor.variables" | "emailTemplateEditor.videoLibrary" | "emailTemplateEditor.youHaveUnsavedChangesThe" | "imageGallery.nextImage" | "imageGallery.previousImage" | "imageReposition.dragThePhotoOrUse" | "importExport.allRequiredColumnsMatchedAutomatically" | "importExport.clickToChooseACsv" | "importExport.errors" | "importExport.exportAllRecordsToCsv" | "importExport.importDataPreview" | "importExport.importProgress" | "importExport.importRecordsFromCsv" | "importExport.importResult" | "importExport.importedWithChanges" | "importExport.keepThisWindowOpenUntil" | "importExport.previewImport" | "importExport.recordSImported_one" | "importExport.recordSImported_other" | "importExport.rowSHadErrors_one" | "importExport.rowSHadErrors_other" | "importExport.sampleValue" | "importExport.selectWhereYouReImporting" | "importExport.startWithOurCsvTemplate" | "importExport.supportedCsvFiles" | "importExport.toContinue" | "importExport.valueSChangedDuringImport_one" | "importExport.valueSChangedDuringImport_other" | "importExport.yourCsvColumn" | "keypad.deleteLastDigit" | "mapsUsStateMap.smallStates" | "mapsUsStateMap.valuesByState" | "messagingDocumentSendOptions.chosenDocuments" | "messagingDocumentSendOptions.documentsCanOnlyBeTexted" | "messagingDocumentSendOptions.docusignEmailsTheDocumentTo" | "messagingDocumentSendOptions.expiryDays" | "messagingDocumentSendOptions.includedDocuments" | "messagingDocumentSendOptions.maxReminders" | "messagingDocumentSendOptions.reminderIntervalDays" | "messagingDocumentSendOptions.requireMyCountersignatureAfterClient" | "messagingDocumentSendOptions.searchForAContact" | "messagingDocumentSendOptions.searchYourDocumentsByName" | "messagingDocumentSendOptions.signatureProvider" | "messagingDocumentSendOptions.signers" | "messagingDocumentSendOptions.signersAreEmailedOneAfter" | "messagingDocumentSendOptions.whatShouldTheRecipientDo" | "messagingSendMessagePanel.addEmailAddress" | "messagingSendMessagePanel.addImageMediaMms" | "messagingSendMessagePanel.addPhoneNumber" | "messagingSendMessagePanel.applyValue" | "messagingSendMessagePanel.attachFiles" | "messagingSendMessagePanel.attachImage" | "messagingSendMessagePanel.attachments" | "messagingSendMessagePanel.backToTemplates" | "messagingSendMessagePanel.body" | "messagingSendMessagePanel.channelLockedWhileSending" | "messagingSendMessagePanel.closePreview" | "messagingSendMessagePanel.emailPreview" | "messagingSendMessagePanel.emailSubject" | "messagingSendMessagePanel.headsUp" | "messagingSendMessagePanel.noEmailAddressOnFile" | "messagingSendMessagePanel.noJobsFound" | "messagingSendMessagePanel.noPhoneNumberOnFile" | "messagingSendMessagePanel.raw" | "messagingSendMessagePanel.recipients" | "messagingSendMessagePanel.removeAttachment" | "messagingSendMessagePanel.saveContinue" | "messagingSendMessagePanel.scheduleForLater" | "messagingSendMessagePanel.searchByContactName" | "messagingSendMessagePanel.searchByJobName" | "messagingSendMessagePanel.sendAt" | "messagingSendMessagePanel.sendVia" | "messagingSendMessagePanel.sentAsSmsKeepMessages" | "messagingSendMessagePanel.separateAddressesWithCommasEveryone" | "messagingSendMessagePanel.subject" | "messagingSendMessagePanel.subject2" | "messagingSendMessagePanel.textMessagingIsNotEnabled" | "messagingSendMessagePanel.textPreview" | "messagingSendMessagePanel.theDocumentsAreTextedAs" | "messagingSendMessagePanel.thisTemplateHasFieldsThat" | "messagingSendMessagePanel.to" | "messagingSendMessagePanel.viewSendPreview" | "messagingSendMessagePanel.whoWouldYouLikeTo" | "messagingSendMessagePanel.writeYourMessage" | "messagingSendMessagePanel.yourMessageGoesOutWith" | "messagingTemplatePicker.noTemplatesFound" | "messagingTemplatePicker.searchTemplates" | "messagingTemplatePicker.searching" | "messagingVideoLinkSettings.buttonLabelEGBook" | "messagingVideoLinkSettings.callToAction" | "messagingVideoLinkSettings.callToActionLabel" | "messagingVideoLinkSettings.callToActionUrl" | "messagingVideoLinkSettings.hideReactions" | "messagingVideoLinkSettings.playback" | "messagingVideoLinkSettings.removeVideo" | "messagingVideoLinkSettings.videoSettings" | "messagingVideoLinkSettings.watchPreviewOpensInA" | "messagingVideoPicker.noVideosFound" | "messagingVideoPicker.removeVideo" | "messagingVideoPicker.searchVideos" | "messagingVideoPicker.searching" | "multiSelect.noOptionsFound" | "notes.addANote" | "notes.addANote2" | "notes.addNote" | "notes.deleteNote" | "notes.deleteNote2" | "notes.deleteThisNoteItIs" | "notes.editNote" | "notes.edited" | "notes.loadingNotes" | "notes.noNotesYet" | "notes.notes" | "optionCard.selected" | "panelInfoList.noInformationAvailable" | "paymentSidePanel.addAsSplitPayment" | "paymentSidePanel.applyPaymentTo" | "paymentSidePanel.check" | "paymentSidePanel.chooseAReader" | "paymentSidePanel.clearPaymentMethod" | "paymentSidePanel.enterAmount" | "paymentSidePanel.last4DigitsOfAccount" | "paymentSidePanel.last4DigitsOfCard" | "paymentSidePanel.optionalNote" | "paymentSidePanel.outstandingBalance" | "paymentSidePanel.paymentMethod" | "paymentSidePanel.previouslyUsed" | "paymentSidePanel.receivedDate" | "paymentSidePanel.recordedSoFar" | "paymentSidePanel.recordingPayment" | "paymentSidePanel.refreshReaderStatus" | "paymentSidePanel.retryRecording" | "paymentSidePanel.selectPaymentMethod" | "paymentSidePanel.selectReader" | "paymentSidePanel.splitPayment" | "paymentSidePanel.waitingForCustomerToTap" | "pdfDocumentSignModal.yourSavedSignature" | "pdfDocumentViewerModal.downloadDocument" | "pdfDocumentViewerModal.printDocument" | "phoneNumberPicker.areaCode" | "phoneNumberPicker.availablePhoneNumbers" | "phoneNumberPicker.backToResults" | "phoneNumberPicker.couldnTSearchForNumbers" | "phoneNumberPicker.searchBy" | "phoneNumberPicker.tryADifferentZipCode" | "phoneNumberPicker.weLlLookForNumbers" | "phoneNumberPicker.weLlLookForNumbers2" | "phoneNumberPicker.zipCode" | "qrCode.downloadQrCode" | "qrCode.longPressTheImageAbove" | "qrCode.qrCodeUnavailableCopyThe" | "richTextEditor.aa" | "richTextEditor.alignCenter" | "richTextEditor.alignCenter2" | "richTextEditor.alignLeft" | "richTextEditor.alignLeft2" | "richTextEditor.alignRight" | "richTextEditor.alignRight2" | "richTextEditor.bold" | "richTextEditor.boldCtrlB" | "richTextEditor.bulletList" | "richTextEditor.bulletList2" | "richTextEditor.clearFormatting" | "richTextEditor.clearFormatting2" | "richTextEditor.fontFamily" | "richTextEditor.fontFamily2" | "richTextEditor.fontSize" | "richTextEditor.fontSize2" | "richTextEditor.headingStyle" | "richTextEditor.headingStyle2" | "richTextEditor.highlightColor" | "richTextEditor.highlightColor2" | "richTextEditor.indent" | "richTextEditor.italic" | "richTextEditor.italicCtrlI" | "richTextEditor.numberedList" | "richTextEditor.numberedList2" | "richTextEditor.outdent" | "richTextEditor.removeLink" | "richTextEditor.strikethrough" | "richTextEditor.textColor" | "richTextEditor.textColor2" | "richTextEditor.textFormatting" | "richTextEditor.underline" | "richTextEditor.underlineCtrlU" | "richTextEditor.webAddress" | "setupWizard.setupProgress" | "shareMenu.shareOptions" | "sidePanel.dismissPanel" | "snackbar.dismissNotification" | "snackbar.notifications" | "stripeMicrodepositVerify.6LettersOrNumbersFrom" | "stripeMicrodepositVerify.firstDepositCents" | "stripeMicrodepositVerify.keepWaiting" | "stripeMicrodepositVerify.openStripeSVerificationPage" | "stripeMicrodepositVerify.pending" | "stripeMicrodepositVerify.secondDepositCents" | "stripeMicrodepositVerify.verificationCode" | "stripePaymentStripeMethod.paymentDetails" | "stripePaymentStripeMethod.paymentTotal" | "stripePaymentStripeMethod.totalCharged" | "stripeStripeConnect.accountSetupComplete" | "stripeStripeConnect.accountSetupIncomplete" | "stripeStripeConnect.checkStatusBusy" | "stripeStripeConnect.checking" | "stripeStripeConnect.completeSetupOpensInA" | "stripeStripeConnect.completeYourStripeAccountSetup" | "stripeStripeConnect.stripeIsVerifyingYourAccount" | "stripeStripeConnect.viewStripeDashboard" | "stripeStripeConnect.yourSetupHasBeenSubmitted" | "textInput.showPassword" | "toast.dismissNotification" | "common.actions" | "common.back" | "common.details" | "common.done" | "common.download" | "common.edit" | "common.email" | "common.export" | "common.import" | "common.insert" | "common.link" | "common.loadingellipsis" | "common.message" | "common.mobile" | "common.name" | "common.next" | "common.note" | "common.phone" | "common.preview" | "common.previous" | "common.print" | "common.retry" | "common.save" | "common.searchellipsis" | "common.select" | "common.share" | "common.subject" | "common.text" | "common.today" | "common.video" | "common.view" | "addressInput.cityLabel" | "addressInput.label" | "addressInput.stateLabel" | "addressInput.streetLabel" | "addressInput.unitLabel" | "addressInput.zipError" | "avatar.editLabel" | "board.ariaLabel" | "board.emptyColumnText" | "board.emptyMessage" | "board.retryLabel" | "calendar.emptyMessage" | "cardListItem.deleteLabel" | "combobox.noResultsText" | "contactPicker.placeholder" | "conversations.attachLabel" | "conversations.attachmentPreviewLabel" | "conversations.backLabel" | "conversations.closeContextLabel" | "conversations.composeLabel" | "conversations.composePlaceholder" | "conversations.contextTitle" | "conversations.deleteRowLabel" | "conversations.deleteThreadLabel" | "conversations.emptyMessage" | "conversations.emptyReadOnlyMessage" | "conversations.emptyTitle" | "conversations.fileFallbackName" | "conversations.filterAriaLabel" | "conversations.filteredEmptyMessage" | "conversations.filteredEmptyTitle" | "conversations.hideContextLabel" | "conversations.linkEmptyText" | "conversations.linkLabel" | "conversations.linkLoadingText" | "conversations.linkPickerTitle" | "conversations.linkSearchLabel" | "conversations.linkSearchPlaceholder" | "conversations.listAriaLabel" | "conversations.loadEarlierLabel" | "conversations.loadingLabel" | "conversations.messagesAriaLabel" | "conversations.newLabel" | "conversations.newTooltip" | "conversations.noMessagesReadText" | "conversations.noMessagesText" | "conversations.noMessagesWriteText" | "conversations.openMediaLabel" | "conversations.paginationAriaLabel" | "conversations.removeAttachmentLabel" | "conversations.removeLinkLabel" | "conversations.searchAriaLabel" | "conversations.searchPlaceholder" | "conversations.sendLabel" | "conversations.showContextLabel" | "conversations.sizeMessage" | "conversations.templateLabel" | "conversations.threadAriaLabel" | "conversations.threadEmptyMessage" | "conversations.threadEmptyTitle" | "conversations.title" | "conversations.typeMessage" | "conversations.youLabel" | "copyField.copiedLabel" | "copyField.copiedMessage" | "copyField.copyLabel" | "copyField.failedMessage" | "dateRangePicker.ariaLabel" | "detailCard.editLabel" | "discountSelector.emptyMessage" | "emailTemplateEditor.assignmentsDescription" | "emailTemplateEditor.categoryPlaceholder" | "emailTemplateEditor.namePlaceholder" | "emailTemplateEditor.noVideosHint" | "emailTemplateEditor.readOnlyNote" | "emailTemplateEditor.subjectPlaceholder" | "emailTemplateEditor.systemNote" | "fileInput.buttonLabel" | "fileInput.placeholder" | "fileInput.removeLabel" | "fixedFooter.ariaLabel" | "skipLink.ariaLabel" | "imageField.label" | "imageField.upload" | "imageField.change" | "imageField.remove" | "imageField.typeMessage" | "imageField.sizeMessage" | "imageField.emptyMessage" | "imageGallery.ariaLabel" | "imageGalleryDialog.closeLabel" | "imageGalleryDialog.galleryLabel" | "imageReposition.label" | "importExport.actionLabel" | "kpiCard.loadingLabel" | "list.helpText" | "mapsUsStateMap.ariaLabel" | "messagingDocumentSendOptions.label" | "messagingSendMessagePanel.jobLabel" | "messagingSendMessagePanel.receiptLabel" | "messagingSendMessagePanel.title" | "messagingTemplatePicker.label" | "multiSelect.placeholder" | "multiSelect.searchPlaceholder" | "passwordRequirements.title" | "passwordRequirements.tooLong" | "paymentSidePanel.noReadersText" | "paymentSidePanel.splitSubmitLabel" | "paymentSidePanel.submitLabel" | "paymentSidePanel.title" | "pdfDocumentViewerModal.loadingText" | "pdfHotspot.imageAlt" | "pdfHotspot.label" | "pdfPdfViewer.errorText" | "pdfPdfViewer.loadingText" | "pdfPdfViewer.openText" | "phoneNumberPicker.confirmLabel" | "phoneNumberPicker.title" | "qrCode.alt" | "reminderAlerts.ariaLabel" | "shareMenu.label" | "sidePanel.cancelLabel" | "signaturePad.clearLabel" | "stepper.ariaLabel" | "stripeStripeConnect.startLabel" | "stripeStripeConnect.startText" | "stripeStripeConnect.startTitle" | "stripeStripeConnect.title" | "stripeStripePayment.label" | "stripeStripePayment.loadErrorMessage" | "textTemplatePicker.label" | "textTemplatePicker.searchPlaceholder" | "toast.queueLabel" | "combobox.resultsAvailable_one" | "combobox.resultsAvailable_other" | "combobox.typeAtLeast_one" | "combobox.typeAtLeast_other" | "errors.checkConnection" | "errors.dataWord" | "errors.failed" | "errors.invalidData" | "errors.noPermission" | "errors.notFound" | "errors.permissionVerb.create" | "errors.permissionVerb.delete" | "errors.permissionVerb.download" | "errors.permissionVerb.export" | "errors.permissionVerb.import" | "errors.permissionVerb.load" | "errors.permissionVerb.save" | "errors.permissionVerb.send" | "errors.permissionVerb.update" | "errors.permissionVerb.upload" | "errors.sessionExpired" | "errors.timedOut" | "errors.tooManyRequests" | "errors.tryAgain" | "errors.tryInAFewMinutes" | "errors.verb.create" | "errors.verb.delete" | "errors.verb.download" | "errors.verb.export" | "errors.verb.import" | "errors.verb.load" | "errors.verb.save" | "errors.verb.send" | "errors.verb.update" | "errors.verb.upload" | "validation.atOrAfter" | "validation.atOrBefore" | "validation.date" | "validation.dateTime" | "validation.decimals_one" | "validation.decimals_other" | "validation.email" | "validation.max" | "validation.min" | "validation.number" | "validation.onOrAfter" | "validation.onOrBefore" | "validation.phone" | "validation.required" | "validation.time" | "validation.tooLong" | "appShell.collapseSidebar" | "appShell.expandSidebar" | "businessHours.addSecondShiftOn" | "businessHours.closeAfterOpen" | "businessHours.closes" | "businessHours.label" | "businessHours.needsOpenDay" | "businessHours.opens" | "businessHours.removeSecondShiftOn" | "businessHours.secondShiftCloses" | "businessHours.secondShiftOpens" | "businessHours.secondShiftRange" | "businessHours.shiftOrder" | "contactPicker.noResults" | "contactPicker.searchContacts" | "dateRangePicker.preset.q1" | "dateRangePicker.preset.q2" | "dateRangePicker.preset.q3" | "dateRangePicker.preset.q4" | "dateRangePicker.preset.lastYear" | "dateRangePicker.preset.last12months" | "dateRangePicker.preset.30days" | "dateRangePicker.preset.7days" | "dateRangePicker.preset.all" | "dateRangePicker.preset.custom" | "dateRangePicker.preset.month" | "dateRangePicker.preset.quarter" | "dateRangePicker.preset.today" | "dateRangePicker.preset.ytd" | "fileInput.empty" | "fileInput.filesSelected" | "fileInput.notAdded" | "fileInput.onlyTypesAllowed" | "fileInput.tooBig" | "fileInput.tooSmall" | "list.moveDown" | "list.moveEarlier" | "list.moveLater" | "list.moveUp" | "list.moved" | "passwordRequirements.rule.digit" | "passwordRequirements.rule.digitRange" | "passwordRequirements.rule.length" | "passwordRequirements.rule.lowercase" | "passwordRequirements.rule.special" | "passwordRequirements.rule.specialAscii" | "passwordRequirements.rule.specialListed" | "passwordRequirements.rule.uppercase" | "radioMatrix.chooseEveryRow" | "radioMatrix.chooseEveryRowLabelled" | "shareMenu.copyLink" | "shareMenu.copyThisLink" | "shareMenu.linkCopied" | "signaturePad.captured" | "signaturePad.cleared" | "signaturePad.keyboardHelp" | "signaturePad.name" | "starRating.noRating" | "starRating.starsOutOf_one" | "starRating.starsOutOf_other" | "bankAccountForm.accountMin4" | "bankAccountForm.accountRequired" | "bankAccountForm.accountType.checking" | "bankAccountForm.accountType.savings" | "bankAccountForm.accountsDoNotMatch" | "bankAccountForm.confirmRequired" | "bankAccountForm.holderRequired" | "bankAccountForm.holderType.company" | "bankAccountForm.holderType.individual" | "bankAccountForm.mandateRequired" | "bankAccountForm.routingMustBe9" | "bankAccountForm.routingRequired" | "bankAccountForm.selectValidAccountType" | "bankAccountForm.selectValidHolderType" | "importExport.csvEmpty" | "importExport.csvParseFailed" | "importExport.exportFailed" | "importExport.exportLimitReached" | "importExport.importEntity" | "importExport.importFailed" | "importExport.importFrom" | "importExport.importedSuccessfully" | "importExport.importingRecords_one" | "importExport.importingRecords_other" | "importExport.recordsImported_one" | "importExport.recordsImported_other" | "importExport.requiredNotMapped" | "importExport.rowsHadErrors_one" | "importExport.rowsHadErrors_other" | "importExport.step.mapping" | "importExport.step.source" | "importExport.step.upload" | "importExport.valuesChanged_one" | "importExport.valuesChanged_other" | "paymentSidePanel.addedToSplit" | "paymentSidePanel.additionalAmountLabel" | "paymentSidePanel.allocatedExceeds" | "paymentSidePanel.allocation.custom" | "paymentSidePanel.allocation.newest" | "paymentSidePanel.allocation.oldest" | "paymentSidePanel.amountLabel" | "paymentSidePanel.announceRecorded" | "paymentSidePanel.verificationRecorded" | "paymentSidePanel.announceRecording" | "paymentSidePanel.announceWaiting" | "paymentSidePanel.atMost2Decimals" | "paymentSidePanel.balanceAmount" | "paymentSidePanel.cannotExceedBalance" | "paymentSidePanel.cardDeclined" | "paymentSidePanel.couldNotLoadReaders" | "paymentSidePanel.dueOn" | "paymentSidePanel.enterAmountToRecord" | "paymentSidePanel.enterAnAmount" | "paymentSidePanel.exactly4Digits" | "paymentSidePanel.failedSendToReader" | "paymentSidePanel.method.ACH" | "paymentSidePanel.method.CARD" | "paymentSidePanel.method.CARD_PRESENT" | "paymentSidePanel.method.CASH" | "paymentSidePanel.method.CHECK" | "paymentSidePanel.method.MONEY_ORDER" | "paymentSidePanel.notConfigured" | "paymentSidePanel.paymentCancelled" | "paymentSidePanel.readerDidNotAccept" | "paymentSidePanel.readerPaymentCancelled" | "paymentSidePanel.readerTimeout" | "paymentSidePanel.recordFailed" | "paymentSidePanel.removeEntry" | "paymentBlocked.default" | "paymentHeld.default" | "paymentHeld.check" | "paymentHeld.retryCancel" | "paymentHeld.stillOpen" | "paymentHeld.inconclusive" | "paymentHeld.checkFailed" | "paymentHeld.release" | "paymentHeld.released" | "paymentHeld.succeeded" | "paymentHeld.closedBeforeDone" | "paymentHeld.releasedByUser" | "paymentSidePanel.cancelUnconfirmed" | "paymentSidePanel.removedFromSplit" | "paymentSidePanel.selectAtLeastOneCharge" | "paymentSidePanel.span.minute_one" | "paymentSidePanel.span.minute_other" | "paymentSidePanel.succeededNotRecorded" | "paymentSidePanel.terminalNotRecorded" | "phoneNumberPicker.areaCodeMode" | "phoneNumberPicker.changeAreaCode" | "phoneNumberPicker.changeZip" | "phoneNumberPicker.confirmAreaAndSearch" | "phoneNumberPicker.confirmZipAndSearch" | "phoneNumberPicker.inAreaCode" | "phoneNumberPicker.mustBeDigits" | "phoneNumberPicker.nearZip" | "phoneNumberPicker.noNumbersForArea" | "phoneNumberPicker.noNumbersNearZip" | "phoneNumberPicker.searchingNumbers" | "phoneNumberPicker.step1" | "phoneNumberPicker.step2_one" | "phoneNumberPicker.step2_other" | "phoneNumberPicker.step3" | "phoneNumberPicker.yourNumber" | "phoneNumberPicker.zip" | "chargeForm.amount" | "chargeForm.amount2" | "chargeForm.cancelLabel" | "chargeForm.chargeType" | "chargeForm.closeLabel" | "chargeForm.description" | "chargeForm.dueDate" | "chargeForm.emptyMessage" | "chargeForm.emptyTitle" | "chargeForm.optionalDescription" | "chargeForm.selectType" | "chargeForm.submitLabel" | "chargeForm.title" | "emailTemplateEditor.assignmentRequired" | "emailTemplateEditor.block.btn-link" | "emailTemplateEditor.block.btn-outline" | "emailTemplateEditor.block.btn-primary" | "emailTemplateEditor.block.btn-secondary" | "emailTemplateEditor.block.divider" | "emailTemplateEditor.block.image-block" | "emailTemplateEditor.block.layout-2col" | "emailTemplateEditor.block.layout-3col" | "emailTemplateEditor.block.spacer-lg" | "emailTemplateEditor.block.spacer-md" | "emailTemplateEditor.block.spacer-sm" | "emailTemplateEditor.block.table-2col" | "emailTemplateEditor.block.table-3col" | "emailTemplateEditor.block.text-block" | "emailTemplateEditor.blockFallback" | "emailTemplateEditor.bodyRequired" | "emailTemplateEditor.bodyTooLong" | "emailTemplateEditor.clickToEdit" | "emailTemplateEditor.clickToWatchVideo" | "emailTemplateEditor.cta.contact" | "emailTemplateEditor.cta.custom" | "emailTemplateEditor.cta.none" | "emailTemplateEditor.cta.schedule" | "emailTemplateEditor.datesOrder" | "emailTemplateEditor.group.buttons" | "emailTemplateEditor.group.content" | "emailTemplateEditor.group.layout" | "emailTemplateEditor.group.spacing" | "emailTemplateEditor.group.tables" | "emailTemplateEditor.heading.h1" | "emailTemplateEditor.heading.h2" | "emailTemplateEditor.heading.h3" | "emailTemplateEditor.heading.normal" | "emailTemplateEditor.missing.assignment" | "emailTemplateEditor.missing.message" | "emailTemplateEditor.missing.name" | "emailTemplateEditor.missing.shorterMessage" | "emailTemplateEditor.missing.shorterName" | "emailTemplateEditor.missing.shorterSubject" | "emailTemplateEditor.missing.subject" | "emailTemplateEditor.nameRequired" | "emailTemplateEditor.nameTooLong" | "emailTemplateEditor.playback.autoplay" | "emailTemplateEditor.playback.click" | "emailTemplateEditor.readOnlyTools" | "emailTemplateEditor.readOnlyToolsWithVideo" | "emailTemplateEditor.rightPanel" | "emailTemplateEditor.rightPanelWithVideo" | "emailTemplateEditor.sample.buttonText" | "emailTemplateEditor.sample.column" | "emailTemplateEditor.sample.data" | "emailTemplateEditor.sample.enterText" | "emailTemplateEditor.sample.header" | "emailTemplateEditor.sample.image" | "emailTemplateEditor.sample.leftColumn" | "emailTemplateEditor.sample.linkText" | "emailTemplateEditor.sample.rightColumn" | "emailTemplateEditor.saveHint" | "emailTemplateEditor.spacing.large" | "emailTemplateEditor.spacing.medium" | "emailTemplateEditor.spacing.none" | "emailTemplateEditor.spacing.small" | "emailTemplateEditor.startWriting" | "emailTemplateEditor.subjectRequired" | "emailTemplateEditor.subjectTooLong" | "emailTemplateEditor.validEmail" | "emailTemplateEditor.validImageAddress" | "emailTemplateEditor.validWebAddress" | "emailTemplateEditor.variable.firstName" | "emailTemplateEditor.variable.fullName" | "emailTemplateEditor.variable.lastName" | "emailTemplateEditor.variableGroup.contact" | "emailTemplateEditor.videoWillAutoplay" | "board.moveTo" | "calendar.group.later" | "calendar.group.overdue" | "calendar.group.thisWeek" | "calendar.group.today" | "calendar.group.tomorrow" | "detailGroups.activity" | "detailGroups.notes" | "richTextEditor.editorName" | "richTextEditor.fontDefault" | "richTextEditor.fontGroup.Default" | "richTextEditor.fontGroup.Display" | "richTextEditor.fontGroup.Monospace" | "richTextEditor.fontGroup.Sans-Serif" | "richTextEditor.fontGroup.Serif" | "richTextEditor.heading.h1" | "richTextEditor.heading.h2" | "richTextEditor.heading.h3" | "richTextEditor.heading.p" | "richTextEditor.linkNeedsAddress" | "richTextEditor.size.1" | "richTextEditor.size.3" | "richTextEditor.size.4" | "richTextEditor.size.5" | "richTextEditor.size.6" | "richTextEditor.size.7" | "setupWizard.areaCode" | "setupWizard.areaCodeHint" | "setupWizard.brand" | "setupWizard.connect" | "setupWizard.connectFailed" | "setupWizard.connectRequired" | "setupWizard.connected" | "setupWizard.connectedChannel" | "setupWizard.connectedDetail" | "setupWizard.connectedMerchant" | "setupWizard.continue" | "setupWizard.doneDescription" | "setupWizard.doneHint" | "setupWizard.doneTitle" | "setupWizard.exit" | "setupWizard.finish" | "setupWizard.importAgain" | "setupWizard.importErrorsText_one" | "setupWizard.importErrorsText_other" | "setupWizard.importErrorsTitle_one" | "setupWizard.importErrorsTitle_other" | "setupWizard.importMore" | "setupWizard.importRequired" | "setupWizard.importedSuccessfully" | "setupWizard.integration.gmail" | "setupWizard.integration.google-calendar" | "setupWizard.integration.outlook" | "setupWizard.integration.outlook-calendar" | "setupWizard.integration.quickbooks" | "setupWizard.integration.slack" | "setupWizard.integration.square" | "setupWizard.integration.stripe" | "setupWizard.integration.twilio" | "setupWizard.progress" | "setupWizard.reconnect" | "setupWizard.recordsWord" | "setupWizard.saveAndContinue" | "setupWizard.saveFailed" | "setupWizard.skip" | "setupWizard.stepPicker" | "setupWizard.stepPickerGo" | "setupWizard.stepPickerHint" | "setupWizard.stepPickerPlaceholder" | "setupWizard.steps" | "setupWizard.summaryPending" | "setupWizard.summarySkipped" | "setupWizard.summaryTitle" | "setupWizard.whatGetsImported" | "messagingDocumentSendOptions.changeSigningOptions" | "messagingDocumentSendOptions.countersignedBy" | "messagingDocumentSendOptions.day_one" | "messagingDocumentSendOptions.day_other" | "messagingDocumentSendOptions.envelopeInactive" | "messagingDocumentSendOptions.envelopeNoDocs" | "messagingDocumentSendOptions.fieldsForSigners" | "messagingDocumentSendOptions.hideSigningOptions" | "messagingDocumentSendOptions.mergeEmpty" | "messagingDocumentSendOptions.mergeReason.NO_CONTEXT" | "messagingDocumentSendOptions.mergeReason.NO_DATA" | "messagingDocumentSendOptions.mergeReason.UNKNOWN_PATH" | "messagingDocumentSendOptions.multiSignerSendByEmail" | "messagingDocumentSendOptions.mustBeWhole" | "messagingDocumentSendOptions.noFieldsPlaced" | "messagingDocumentSendOptions.noFileToAttach" | "messagingDocumentSendOptions.noFileUploaded" | "messagingDocumentSendOptions.noMatchingDocuments" | "messagingDocumentSendOptions.noReminders" | "messagingDocumentSendOptions.placeCountersign" | "messagingDocumentSendOptions.placeCountersignOn" | "messagingDocumentSendOptions.previewDocument" | "messagingDocumentSendOptions.provider.docusign" | "messagingDocumentSendOptions.provider.native" | "messagingDocumentSendOptions.purpose.ATTACH" | "messagingDocumentSendOptions.purpose.BOTH" | "messagingDocumentSendOptions.purpose.ESIGN" | "messagingDocumentSendOptions.purposeInfo.BOTH" | "messagingDocumentSendOptions.purposeInfo.ESIGN" | "messagingDocumentSendOptions.remindersEvery" | "messagingDocumentSendOptions.searchFailed" | "messagingDocumentSendOptions.selectAtLeastOne" | "messagingDocumentSendOptions.signerAlreadyRole" | "messagingDocumentSendOptions.signerNoEmail" | "messagingDocumentSendOptions.signerRole" | "messagingDocumentSendOptions.signingSummary" | "messagingDocumentSendOptions.textedAsLink" | "messagingDocumentSendOptions.untitled" | "messagingDocumentSendOptions.you" | "messagingDocumentSendOptions.youCountersign" | "messagingSendMessagePanel.activeAllYear" | "messagingSendMessagePanel.activeFrom" | "messagingSendMessagePanel.activeUntil" | "messagingSendMessagePanel.announceSkipped_one" | "messagingSendMessagePanel.announceSkipped_other" | "messagingSendMessagePanel.bodyTooLong" | "messagingSendMessagePanel.bulkNoSend" | "messagingSendMessagePanel.ccInvalid" | "messagingSendMessagePanel.ccTooLong" | "messagingSendMessagePanel.ccTooMany" | "messagingSendMessagePanel.cta.contact" | "messagingSendMessagePanel.cta.custom" | "messagingSendMessagePanel.cta.none" | "messagingSendMessagePanel.cta.schedule" | "messagingSendMessagePanel.ctxEmail" | "messagingSendMessagePanel.ctxText" | "messagingSendMessagePanel.emailScheduled" | "messagingSendMessagePanel.emailSent" | "messagingSendMessagePanel.envelopeSent" | "messagingSendMessagePanel.failedSendEmail" | "messagingSendMessagePanel.failedSendMessage" | "messagingSendMessagePanel.failedSendText" | "messagingSendMessagePanel.failedUpload" | "messagingSendMessagePanel.listAnd" | "messagingSendMessagePanel.messageScheduled" | "messagingSendMessagePanel.messageSent" | "messagingSendMessagePanel.multiSignerOneAtATime" | "messagingSendMessagePanel.noneEligible_one" | "messagingSendMessagePanel.noneEligible_other" | "messagingSendMessagePanel.noticeAddEmailBelow" | "messagingSendMessagePanel.noticeNoContact" | "messagingSendMessagePanel.noticeNoOptIn" | "messagingSendMessagePanel.noticeNoPhone" | "messagingSendMessagePanel.noticeTextDisabled" | "messagingSendMessagePanel.playback.autoplay" | "messagingSendMessagePanel.playback.click" | "messagingSendMessagePanel.reasonNoEmail_one" | "messagingSendMessagePanel.reasonNoEmail_other" | "messagingSendMessagePanel.reasonNoPhone_one" | "messagingSendMessagePanel.reasonNoPhone_other" | "messagingSendMessagePanel.removedAttachments" | "messagingSendMessagePanel.removedBecauseRequest" | "messagingSendMessagePanel.removedImage" | "messagingSendMessagePanel.removedSchedule" | "messagingSendMessagePanel.resultsCount_one" | "messagingSendMessagePanel.resultsCount_other" | "messagingSendMessagePanel.resultsCount_zero" | "messagingSendMessagePanel.searchTemplatesAria" | "messagingSendMessagePanel.searchVideosAria" | "messagingSendMessagePanel.selectedVideo" | "messagingSendMessagePanel.sendEmail" | "messagingSendMessagePanel.sendMessage" | "messagingSendMessagePanel.sendText" | "messagingSendMessagePanel.sentViaDocusign" | "messagingSendMessagePanel.skippedNameMore" | "messagingSendMessagePanel.skippedText_one" | "messagingSendMessagePanel.skippedText_other" | "messagingSendMessagePanel.subjectTooLong" | "messagingSendMessagePanel.tabCompose" | "messagingSendMessagePanel.tabTemplate" | "messagingSendMessagePanel.textSent" | "messagingSendMessagePanel.textTooLongWithVideo" | "messagingSendMessagePanel.unnamed" | "messagingSendMessagePanel.whatEmail" | "messagingSendMessagePanel.whatText" | "messagingSendMessagePanel.whatTextMessage" | "stripeErrors.card_declined" | "stripeErrors.card_not_supported" | "stripeErrors.currency_not_supported" | "stripeErrors.do_not_honor" | "stripeErrors.generic_decline" | "stripeErrors.insufficient_funds" | "stripeErrors.lost_card" | "stripeErrors.stolen_card" | "stripeErrors.alreadyProcessed" | "stripeErrors.amount_too_large" | "stripeErrors.amount_too_small" | "stripeErrors.approve_with_id" | "stripeErrors.authentication_required" | "stripeErrors.balance_insufficient" | "stripeErrors.bank_account_declined" | "stripeErrors.call_issuer" | "stripeErrors.card_velocity_exceeded" | "stripeErrors.debit_not_authorized" | "stripeErrors.defaultMessage" | "stripeErrors.do_not_try_again" | "stripeErrors.duplicate_transaction" | "stripeErrors.expired_card" | "stripeErrors.fraudulent" | "stripeErrors.incorrect_cvc" | "stripeErrors.incorrect_number" | "stripeErrors.incorrect_zip" | "stripeErrors.invalid_cvc" | "stripeErrors.invalid_expiry_month" | "stripeErrors.invalid_expiry_year" | "stripeErrors.invalid_number" | "stripeErrors.issuer_not_available" | "stripeErrors.merchant_blacklist" | "stripeErrors.new_account_information_available" | "stripeErrors.no_action_taken" | "stripeErrors.not_permitted" | "stripeErrors.payment_intent_authentication_failure" | "stripeErrors.payment_intent_incompatible_payment_method" | "stripeErrors.payment_intent_payment_attempt_failed" | "stripeErrors.payment_intent_unexpected_state" | "stripeErrors.payment_method_unactivated" | "stripeErrors.payment_method_unexpected_state" | "stripeErrors.pickup_card" | "stripeErrors.processing_error" | "stripeErrors.reenter_transaction" | "stripeErrors.resource_missing" | "stripeErrors.restricted_card" | "stripeErrors.revocation_of_all_authorizations" | "stripeErrors.revocation_of_authorization" | "stripeErrors.security_violation" | "stripeErrors.sessionExpired" | "stripeErrors.setup_intent_unexpected_state" | "stripeErrors.stop_payment_order" | "stripeErrors.technical.api_connection_error" | "stripeErrors.technical.api_error" | "stripeErrors.technical.authentication_error" | "stripeErrors.technical.invalid_request_error" | "stripeErrors.technical.rate_limit_error" | "stripeErrors.testmode_decline" | "stripeErrors.try_again_later" | "stripeErrors.withdrawal_count_limit_exceeded" | "stripePayment.a11y.actionRequired" | "stripePayment.a11y.loading" | "stripePayment.a11y.methodSaved" | "stripePayment.a11y.paymentAuthorized" | "stripePayment.a11y.paymentProcessing" | "stripePayment.a11y.paymentReceived" | "stripePayment.a11y.processingPayment" | "stripePayment.a11y.savingMethod" | "stripePayment.a11y.verificationNeeded" | "stripePayment.a11y.verificationNeededSetup" | "stripePayment.achNotice" | "stripePayment.achNoticeInstant" | "stripePayment.msg.authFailed" | "stripePayment.msg.authFailedTryOther" | "stripePayment.msg.authNotCompleted" | "stripePayment.msg.cardsUnavailable" | "stripePayment.msg.feesFailed" | "stripePayment.msg.initFailed" | "stripePayment.msg.instantOnlyUnavailable" | "stripePayment.msg.intentFailed" | "stripePayment.msg.keyMissing" | "stripePayment.msg.loadFailed" | "stripePayment.msg.noPaymentMethod" | "stripePayment.msg.notCompleted" | "stripePayment.msg.notInitialized" | "stripePayment.msg.requiresPaymentMethod" | "stripePayment.msg.returnFailed" | "stripePayment.msg.setupIncomplete" | "stripePayment.msg.verifyFailed" | "stripePayment.msg.verifyThrown" | "stripePayment.pay" | "stripePayment.saveMethod" | "stripePaymentMethod.achMessage" | "stripePaymentMethod.achTitle" | "stripePaymentMethod.amountNeeded" | "stripePaymentMethod.amountPlusFees" | "stripePaymentMethod.announceProcessing" | "stripePaymentMethod.announceReady" | "stripePaymentMethod.methodAch" | "stripePaymentMethod.methodCard" | "stripePaymentMethod.notCompleted" | "stripePaymentMethod.paymentAmount" | "stripePaymentMethod.platformFee" | "stripePaymentMethod.processingFee" | "stripePaymentMethod.receiptNote" | "stripePaymentMethod.verificationMessage" | "mapsUsStateMap.legend" | "pdfDocumentSignModal.addSignatureFirst" | "pdfDocumentSignModal.allSigned" | "pdfDocumentSignModal.appliedSignature" | "pdfDocumentSignModal.change" | "pdfDocumentSignModal.complete" | "pdfDocumentSignModal.loading" | "pdfDocumentSignModal.namePlaceholder" | "pdfDocumentSignModal.noFields" | "pdfDocumentSignModal.progress" | "pdfDocumentSignModal.previewEmpty" | "pdfDocumentSignModal.saveSignature" | "pdfDocumentSignModal.signField" | "pdfDocumentSignModal.signFieldDisabled" | "pdfDocumentSignModal.signHere" | "pdfDocumentSignModal.step1" | "pdfDocumentSignModal.step2" | "pdfDocumentSignModal.submitting" | "pdfDocumentSignModal.title" | "stripeMicrodepositVerify.attemptsRemaining_one" | "stripeMicrodepositVerify.attemptsRemaining_other" | "stripeMicrodepositVerify.attemptsLeft_one" | "stripeMicrodepositVerify.attemptsLeft_other" | "stripeMicrodepositVerify.amountsHint" | "stripeMicrodepositVerify.bankFallback" | "stripeMicrodepositVerify.byDate" | "stripeMicrodepositVerify.cancelBase" | "stripeMicrodepositVerify.cancelKeepsActive" | "stripeMicrodepositVerify.cancelKeepsActivePartner" | "stripeMicrodepositVerify.cancelNoOther" | "stripeMicrodepositVerify.cancelNoOtherPartner" | "stripeMicrodepositVerify.cancelTitle" | "stripeMicrodepositVerify.cannotPay" | "stripeMicrodepositVerify.paymentNotStarted" | "stripeMicrodepositVerify.centsRange" | "stripeMicrodepositVerify.code6" | "stripeMicrodepositVerify.codeRequired" | "stripeMicrodepositVerify.codeSm" | "stripeMicrodepositVerify.depositsAmounts" | "stripeMicrodepositVerify.depositsDescriptor" | "stripeMicrodepositVerify.enterAmountsOwn" | "stripeMicrodepositVerify.enterAmountsPartner" | "stripeMicrodepositVerify.enterCodeOwn" | "stripeMicrodepositVerify.enterCodePartner" | "stripeMicrodepositVerify.holderPartner" | "stripeMicrodepositVerify.holderYours" | "stripeMicrodepositVerify.keepsActive" | "stripeMicrodepositVerify.keepsActivePartner" | "stripeMicrodepositVerify.partnerOrSetup" | "stripeMicrodepositVerify.processing" | "stripeMicrodepositVerify.processingPartner" | "stripeMicrodepositVerify.processingTitle" | "stripeMicrodepositVerify.readOnly" | "stripeMicrodepositVerify.startedByOther" | "stripeMicrodepositVerify.startedByPartner" | "stripeMicrodepositVerify.title" | "stripeMicrodepositVerify.tooManyAttempts" | "stripeMicrodepositVerify.verifyLabel" | "stripeMicrodepositVerify.wholeCents" | "stripeStripeConnect.failedCheck" | "stripeStripeConnect.failedLink" | "stripeStripeConnect.failedStart" | "stripeStripeConnect.liveComplete" | "stripeStripeConnect.liveIncomplete" | "stripeStripeConnect.liveLoading" | "stripeStripeConnect.liveNone" | "stripeStripeConnect.liveVerifying" | "stripeStripeConnect.noticeComplete" | "stripeStripeConnect.noticeCompleteResume" | "stripeStripeConnect.noticeIncomplete" | "stripeStripeConnect.noticeLinkUnavailable" | "stripeStripeConnect.noticeVerifying" | "errorState.defaultMessage" | "importExport.checkingYourRows" | "importExport.nothingIsSavedUntilEvery" | "importExport.rowsWithErrors" | "refundPanel.enterReasonForRefund" | "refundPanel.feeHandling" | "refundPanel.notes" | "refundPanel.nothingLeftMessage" | "refundPanel.reason" | "refundPanel.refundAmount" | "refundPanel.refundAmount2" | "refundPanel.refundType" | "refundPanel.title" | "refundPanel.warning" | "tour.finishLabel" | "tour.nextLabel" | "tour.previousLabel" | "tour.progressLabel" | "tour.skipLabel" | "board.actionsFor" | "colorInput.colour" | "colorInput.picker" | "colorInput.presets" | "importExport.selectSource" | "messagingDocumentSendOptions.searchFailedMessage" | "messagingSendMessagePanel.previewNamed" | "notes.addFirstNote" | "notes.noNotesAdded" | "paymentSidePanel.sendToReader" | "paymentSidePanel.sending" | "starRating.rating" | "timeline.ariaLabel" | "timeline.eventAmount" | "timeline.eventLocked" | "common.change" | "common.delete" | "common.hide" | "common.removeNamed" | "common.videos" | "appShell.unreadCount" | "board.loadingNamed" | "board.showMore" | "calendar.actionsFor" | "calendar.addAllDayEventOn" | "calendar.addEventOn" | "calendar.filter" | "combobox.clearNamed" | "combobox.selection" | "dataTable.dragHandle" | "detailCard.toggleSection" | "discountSelector.offApplies" | "emailTemplateEditor.emailBlockN" | "emailTemplateEditor.emailOff" | "emailTemplateEditor.emailOn" | "emailTemplateEditor.insertNamed" | "fileInput.processing" | "imageGallery.showImage" | "importExport.columnFor" | "importExport.columnForRequired" | "importExport.columnMapping" | "importExport.requiredError" | "keypad.dotsLabel" | "kpiCard.progress" | "list.sortableItem" | "messagingSendMessagePanel.enterValue" | "messagingTemplatePicker.custom" | "messagingTemplatePicker.system" | "notes.queued.waiting" | "notes.queued.sending" | "notes.queued.deleteWaiting" | "notes.queued.deleteSending" | "notes.queued.failed" | "notes.queued.conflict" | "notes.queued.addedAnnounce" | "notes.queued.editedAnnounce" | "notes.queued.deletedAnnounce" | "notes.queued.problemAnnounce" | "notes.queued.offlineSome" | "notes.queued.offlineNone" | "notes.you" | "passwordRequirements.met" | "passwordRequirements.notMet" | "paymentSidePanel.amountFor" | "paymentSidePanel.splitPayments_one" | "paymentSidePanel.splitPayments_other" | "pdfDocumentSignModal.changeSignature" | "pdfDocumentSignModal.changeNamed" | "pdfViewer.pageOf" | "phoneNumberPicker.selectNamed" | "reminderAlerts.hideAlert" | "shareMenu.shareNamed" | "starRating.nStars" | "starRating.oneStar" | "stripeConnect.accountId" | "toggleBadge.actions" | "bulkMessagePanel.contactWord_one" | "bulkMessagePanel.contactWord_other" | "bulkMessagePanel.noEmailWord" | "bulkMessagePanel.noPhoneWord" | "calendar.addButton" | "calendar.moreCount" | "conversations.openSr" | "emailTemplateEditor.example" | "importExport.entityField" | "importExport.mapManually" | "importExport.previewRows_one" | "importExport.previewRows_other" | "importExport.rowNumber" | "importExport.rowsWithErrors_one" | "importExport.rowsWithErrors_other" | "importExport.stepCurrent" | "importExport.stepDone" | "importExport.unmappedRequired_one" | "importExport.unmappedRequired_other" | "importExport.unmatchedCsv_one" | "importExport.unmatchedCsv_other" | "messagingSendMessagePanel.recipientsWord" | "messagingSendMessagePanel.toLabel" | "messagingSendText.uploading" | "messagingTemplatePicker.inactive" | "messagingVideoLinkSettings.watchPreview" | "paymentSidePanel.deviceConnected" | "paymentSidePanel.deviceNotConnected" | "paymentSidePanel.paymentSuccessful" | "phoneNumberPicker.youChose" | "stepper.optional" | "stripeStripeConnect.completeSetup" | "stripeStripeConnect.checkStatus" | "stripeStripeConnect.opensInNewTabBusy" | "stripeStripeConnect.opensInNewTabSr" | "textTemplatePicker.noVariablesMatch" | "messagingSendMessagePanel.recipientCount_one" | "messagingSendMessagePanel.recipientCount_other" | "addressInput.cityPlaceholder" | "addressInput.streetPlaceholder" | "addressInput.unitPlaceholder" | "addressInput.zipLabel" | "bankAccountForm.mandate" | "board.itemNoun" | "board.itemNounPlural" | "board.movedTo" | "board.showingOf" | "bulkMessagePanel.sendToN_one" | "bulkMessagePanel.sendToN_other" | "cardListItem.priorityHigh" | "cardListItem.priorityLow" | "cardListItem.priorityMedium" | "charts.seriesN" | "format.daysAgo" | "format.hoursAgo" | "format.justNow" | "format.minutesAgo" | "imageGallery.imageN" | "imageGallery.imageNAlt" | "importExport.csvNeedsRows" | "importExport.importRecords_one" | "importExport.importRecords_other" | "importExport.importValidRows" | "importExport.leaveBlank" | "list.itemN" | "messagingDocumentSendOptions.envelopeReadFailed" | "messagingDocumentSendOptions.envelopeReading" | "messagingDocumentSendOptions.signersReadFailed" | "messagingDocumentSendOptions.signersReading" | "messagingSendMessagePanel.bulkMergeTagHint" | "messagingSendMessagePanel.emailDisabled" | "messagingSendMessagePanel.leftoverTags" | "messagingSendMessagePanel.subjectAttached_one" | "messagingSendMessagePanel.subjectAttached_other" | "messagingSendMessagePanel.subjectShared_one" | "messagingSendMessagePanel.subjectShared_other" | "messagingSendMessagePanel.subjectSign_one" | "messagingSendMessagePanel.subjectSign_other" | "pdfViewer.unsupported" | "pdfViewer.workerMissing" | "shareMenu.unavailable" | "stepper.srDisabled" | "stepper.srError" | "stepper.srErrorMessage" | "stepper.srOptional" | "stepper.srStep" | "stepper.statusComplete" | "stepper.statusCurrent" | "stepper.statusNotStarted" | "stepper.stepOf" | "textTemplatePicker.nVariables" | "textTemplatePicker.noVariables" | "textTemplatePicker.oneVariable" | "appShell.appName" | "messagingTemplatePicker.sampleAddress" | "messagingTemplatePicker.sampleClosingDate" | "messagingTemplatePicker.sampleCompany" | "messagingVideoLink.watchVideo" | "paymentSidePanel.terminalProvider" | "pdfDocumentViewerModal.fileName" | "usState.AK" | "usState.AL" | "usState.AR" | "usState.AZ" | "usState.CA" | "usState.CO" | "usState.CT" | "usState.DC" | "usState.DE" | "usState.FL" | "usState.GA" | "usState.HI" | "usState.IA" | "usState.ID" | "usState.IL" | "usState.IN" | "usState.KS" | "usState.KY" | "usState.LA" | "usState.MA" | "usState.MD" | "usState.ME" | "usState.MI" | "usState.MN" | "usState.MO" | "usState.MS" | "usState.MT" | "usState.NC" | "usState.ND" | "usState.NE" | "usState.NH" | "usState.NJ" | "usState.NM" | "usState.NV" | "usState.NY" | "usState.OH" | "usState.OK" | "usState.OR" | "usState.PA" | "usState.RI" | "usState.SC" | "usState.SD" | "usState.TN" | "usState.TX" | "usState.UT" | "usState.VA" | "usState.VT" | "usState.WA" | "usState.WI" | "usState.WV" | "usState.WY" | "emailTemplateEditor.sendTest" | "emailTemplateEditor.tipAlignCenter" | "emailTemplateEditor.tipAlignLeft" | "emailTemplateEditor.tipAlignRight" | "emailTemplateEditor.tipBulletedList" | "emailTemplateEditor.tipDeleteBlock" | "emailTemplateEditor.tipInsertImage" | "emailTemplateEditor.tipInsertLink" | "emailTemplateEditor.tipMoveDown" | "emailTemplateEditor.tipMoveUp" | "emailTemplateEditor.tipNumberedList" | "emailTemplateEditor.tipTextColor" | "emailTemplateEditor.tipBold" | "emailTemplateEditor.tipDuplicate" | "emailTemplateEditor.tipItalic" | "emailTemplateEditor.tipRedo" | "emailTemplateEditor.tipUnderline" | "emailTemplateEditor.tipUndo" | "emailTemplateEditor.imageAltDefault" | "common.file" | "calendar.eventCount_one" | "calendar.eventCount_other" | "calendar.level.critical" | "calendar.level.high" | "calendar.level.low" | "calendar.level.medium" | "time.now" | "time.minutesShort" | "time.hoursShort" | "time.daysShort" | "time.today" | "time.yesterday" | "common.filterBy" | "common.filterOptions" | "common.close" | "common.closeFilter" | "common.clear" | "common.cancel" | "common.apply" | "common.confirm" | "common.dismiss" | "common.more" | "common.tryAgain" | "common.filterTabs" | "common.rowActions" | "common.dismissingIn" | "common.selectValidOption" | "common.required" | "dataTable.apply" | "dataTable.cancel" | "dataTable.clear" | "dataTable.clearFilters" | "dataTable.noResults" | "dataTable.emptyMessage" | "dataTable.searchPlaceholder" | "dataTable.searchBy" | "dataTable.tableLabel" | "dataTable.totalsLabel" | "dataTable.selectAll" | "dataTable.selectRow" | "dataTable.selectRowNamed" | "dataTable.rowActions" | "dataTable.rowActionsNamed" | "dataTable.reorder" | "dataTable.reorderRow" | "dataTable.reorderRowNamed" | "dataTable.opensInNewTab" | "dataTable.sortAndFilter" | "dataTable.sort" | "dataTable.sortBy" | "dataTable.export" | "dataTable.import" | "dataTable.delete" | "dataTable.deleteConfirm" | "dataTable.deleteFailed" | "dataTable.genericError" | "dataTable.loadError.offline" | "dataTable.loadError.noCopy" | "dataTable.loadError.unreachable" | "dataTable.loadError.timeout" | "dataTable.loadError.session" | "dataTable.loadError.forbidden" | "dataTable.loadError.server" | "dataTable.loadError.other" | "dataTable.actionError.offline" | "dataTable.actionError.unreachable" | "dataTable.actionError.timeout" | "dataTable.noneDeletable" | "dataTable.whatWillHappen" | "dataTable.never" | "dataTable.daysAgo" | "dataTable.itemWord" | "dataTable.itemsWord" | "dataTable.selectedCount_one" | "dataTable.selectedCount_other" | "dataTable.sortByColumn" | "dataTable.tryAgain" | "dataTable.all" | "dataTable.default" | "dataTable.linkOpensNewTab" | "dataTable.moveUp" | "dataTable.moveDown" | "dataTable.rowWord" | "dataTable.rowWordCapital" | "dataTable.dragHint" | "dataTable.reorderHelp" | "dataTable.reorderBlockedFiltered" | "dataTable.reorderBlockedNothing" | "dataTable.reorderBlockedOther" | "dataTable.reorderAtPosition" | "dataTable.reorderMoved" | "dataTable.changeColumn" | "dataTable.deleteTitle" | "dataTable.deleteRecordConfirm" | "dataTable.deleteBulkConfirm" | "dataTable.actionConfirm" | "dataTable.bulkChangeConfirm" | "dataTable.bulkCustomConfirm" | "dataTable.noneQualify" | "dataTable.skipNotQualify_one" | "dataTable.skipNotQualify_other" | "dataTable.skipCantDelete_one" | "dataTable.skipCantDelete_other" | "dataTable.skipCantChange_one" | "dataTable.skipCantChange_other" | "dataTable.skipAlreadyHas_one" | "dataTable.skipAlreadyHas_other" | "dataTable.noChangesBlocked" | "dataTable.noChangesAlready" | "dataTable.bulkCannotApply" | "dataTable.bulkOptionBlocked" | "dataTable.doneUpdated" | "dataTable.doneDeleted" | "dataTable.doneDownloaded" | "dataTable.summaryDone" | "dataTable.summarySkipped" | "dataTable.summaryNotAllowed" | "dataTable.summaryUsesCountAgreement" | "dataTable.summaryAll_one" | "dataTable.summaryAll_other" | "dataTable.summaryDownloadSkipped" | "dataTable.rowDeleted" | "dataTable.rowNotDeleted" | "dataTable.viewSaved" | "dataTable.viewSaveFailed" | "dataTable.viewDeleted" | "dataTable.viewDeleteFailed" | "connection.offline.title" | "connection.offline.message" | "connection.pending.one" | "connection.pending.other" | "connection.slow.title" | "connection.slow.message" | "connection.unreachable.title" | "connection.unreachable.message" | "connection.syncing.one" | "connection.syncing.other" | "connection.synced" | "connection.needAttention.one" | "connection.needAttention.other" | "connection.syncNow" | "connection.viewChanges" | "connection.whatCanIDo" | "connection.hide" | "connection.savedOnDevice" | "connection.offline.noQueue.message" | "connection.unreachable.noQueue.message" | "connection.slow.noQueue.message" | "connection.backOnline" | "connection.stillWorking" | "connection.timeout.read" | "connection.thisAction" | "connection.timeout.write" | "connection.blocked" | "connection.uploadBlocked" | "connection.storageUnavailable" | "connection.noCopy" | "connection.storageNotAvailable" | "connection.storageTimeout" | "connection.queueFull" | "connection.transactionAborted" | "connection.stale" | "connection.refresh" | "connection.refreshAria" | "connection.logoutPending.one" | "connection.logoutPending.other" | "connection.authBlocked" | "connection.error.conflict" | "connection.error.rejected" | "connection.error.server" | "connection.error.network" | "connection.error.timeout" | "connection.error.auth" | "connection.error.unknown" | "connection.error.dependency" | "connection.retry" | "connection.discard" | "connection.discardAll" | "connection.syncAll" | "connection.region" | "connection.info.panelLabel" | "connection.info.canDoTitle" | "connection.info.canDo1" | "connection.info.canDo2" | "connection.info.needsTitle" | "connection.info.needs1" | "connection.drawer.title" | "connection.drawer.list" | "connection.drawer.empty" | "connection.drawer.close" | "connection.status.pending" | "connection.status.syncing" | "connection.status.failed" | "connection.status.conflict" | "connection.savedAt" | "connection.time.justNow" | "connection.retryNamed" | "connection.discardNamed" | "connection.discard.title" | "connection.discard.message" | "connection.discard.dependents.one" | "connection.discard.dependents.other" | "connection.discardAll.title" | "connection.discardAll.message.one" | "connection.discardAll.message.other" | "connection.result.retrying" | "connection.result.syncStarted" | "connection.result.discarded" | "connection.result.discardedAll" | "connection.conflict.rowText" | "connection.conflict.keepMine" | "connection.conflict.keepMineNamed" | "connection.conflict.discard" | "connection.conflict.discardNamed" | "connection.conflict.confirmTitle" | "connection.conflict.confirmMessage" | "connection.conflict.result.keeping" | "connection.conflict.error.disabled" | "connection.conflict.error.notFound" | "connection.conflict.error.notConflict" | "connection.conflict.error.noStamp" | "connection.conflict.result.sent" | "connection.conflict.result.shortly" | "connection.conflict.error.unknown" | "common.example" | "format.durationMinSec" | "format.durationSec" | "format.aptPrefix" | "common.listAnd" | "common.listAndBeforeI" | "discountSelector.applies.labor" | "discountSelector.applies.materials" | "discountSelector.applies.total" | "importExport.downloadTemplate" | "importExport.exportedCount" | "contactPicker.resultCount_one" | "contactPicker.resultCount_other" | "conversations.status.delivered" | "conversations.status.sent" | "conversations.status.failed" | "conversations.status.scheduled" | "conversations.imageFallbackName" | "calendar.view.week" | "calendar.view.month" | "calendar.view.agenda" | "colorInput.invalidHex" | "messagingVideoLink.watchNamed" | "connection.defaultLabel.add" | "connection.defaultLabel.update" | "connection.defaultLabel.delete" | "connection.entityFallback" | "dataTable.rowPosition" | "multiSelect.nSelected_one" | "multiSelect.nSelected_other" | "bulkMessagePanel.skippedNo_one" | "bulkMessagePanel.skippedNo_other" | "messagingSendMessagePanel.canReceiveEmail_one" | "messagingSendMessagePanel.canReceiveEmail_other" | "messagingSendMessagePanel.canReceiveText_one" | "messagingSendMessagePanel.canReceiveText_other" | "messagingSendMessagePanel.announceNone_one" | "messagingSendMessagePanel.announceNone_other" | "messagingSendMessagePanel.announceSome_one" | "messagingSendMessagePanel.announceSome_okOne" | "messagingSendMessagePanel.announceSome_other" | "paymentSidePanel.span.second_one" | "paymentSidePanel.span.second_other" | "fileInput.word.image" | "fileInput.word.video" | "fileInput.word.audio" | "integrations.language" | "i18n.locale" | "language.label" | "language.automatic" | "setupWizard.integrationTitle.twilio" | "validation.requiredNoLabel" | "common.nSelected" | "kanban.ariaLabel" | "kanban.loading" | "kanban.emptyColumnText" | "kanban.columnLabel_one" | "kanban.columnLabel_other" | "kanban.probability" | "kanban.moveTo" | "kanban.moveMenu" | "kanban.hint" | "kanban.pickedUp" | "kanban.movingOver" | "kanban.movingOverBlocked" | "kanban.moved" | "kanban.unchanged" | "kanban.dropBlocked" | "kanban.cancelled" | "kanban.reverted" | "kanban.blocked" | "kanban.showMore" | "kanban.showingOf" | "map.ariaLabel" | "map.keyboardHelp" | "map.zoomIn" | "map.zoomOut" | "map.fitMarkers" | "map.loading" | "map.unavailableNoTiles" | "map.unavailableNoAttribution" | "map.unavailableInvalidTiles" | "map.unavailableLoadFailed" | "map.tilesFailed" | "map.listLabel" | "map.listCount_one" | "map.listCount_other" | "map.listShowing" | "map.listEmpty" | "map.clusterTitle" | "map.infoLabel" | "map.closeInfo" | "map.drawToolbar" | "map.drawCircle" | "map.drawRectangle" | "map.drawPolygon" | "map.clearArea" | "map.drawFinish" | "map.drawCancel" | "map.drawUndo" | "map.addPointAtCenter" | "map.draw.circle" | "map.draw.rectangle" | "map.draw.polygon" | "map.draw.pointAdded" | "map.draw.pointRemoved" | "map.draw.needMore_one" | "map.draw.needMore_other" | "map.draw.rejected" | "map.draw.cancelled" | "map.draw.cleared" | "map.draw.finished" | "map.areaSummary" | "map.area.circle" | "map.area.bbox" | "map.area.polygon" | "map.unitMeters" | "map.unitKilometers" | "map.form.title" | "map.form.shape" | "map.form.circle" | "map.form.rectangle" | "map.form.polygon" | "map.form.centerLat" | "map.form.centerLng" | "map.form.radius" | "map.form.radiusUnit" | "map.form.unitM" | "map.form.unitKm" | "map.form.unitMi" | "map.form.north" | "map.form.south" | "map.form.east" | "map.form.west" | "map.form.pointLat" | "map.form.pointLng" | "map.form.addPoint" | "map.form.pointsLabel" | "map.form.pointItem" | "map.form.removePoint" | "map.form.noPoints" | "map.form.apply" | "map.form.clear" | "map.form.applied" | "map.form.errorNumber" | "map.form.errorLat" | "map.form.errorLng" | "map.form.errorRadius" | "map.form.errorNorthSouth" | "map.form.errorEastWest" | "map.form.errorPolygon" | "map.draw.selfIntersecting" | "map.draw.finishSelfIntersecting" | "map.form.errorSelfIntersecting" | "map.placeSelected" | "notificationBell.label" | "notificationBell.empty" | "notificationBell.close" | "notificationBell.loading" | "notificationBell.retry" | "notificationBell.markAllRead" | "notificationBell.markRead" | "notificationBell.markReadNamed" | "notificationBell.loadMore" | "notificationBell.new" | "notificationBell.labelUnread" | "notificationBell.unread" | "notificationBell.allCaughtUp" | "notificationBell.announce.none" | "notificationBell.announce.one" | "notificationBell.announce.other" | "stackingPlan.legend" | "stackingPlan.showTable" | "stackingPlan.showPlan" | "stackingPlan.floor" | "stackingPlan.unit" | "stackingPlan.size" | "stackingPlan.details" | "rangeFilter.min" | "rangeFilter.max" | "rangeFilter.minFor" | "rangeFilter.maxFor" | "rangeFilter.group" | "rangeFilter.minAboveMax" | "rangeFilter.between" | "rangeFilter.atLeast" | "rangeFilter.atMost" | "rangeFilter.filterByActive" | "rangeFilter.percent" | "rangeFilter.withUnit" | "rangeFilter.badNumber" | "squarePayment.label" | "squarePayment.loadErrorMessage" | "squarePayment.a11y.loading" | "squarePayment.a11y.processing" | "squarePayment.a11y.tokenized" | "squarePayment.method.group" | "squarePayment.method.card" | "squarePayment.method.ach" | "squarePayment.submit.pay" | "squarePayment.submit.payBank" | "squarePayment.submit.saveCard" | "squarePayment.submit.saveBank" | "squarePayment.holderLabel" | "squarePayment.holderPlaceholder" | "squarePayment.holderRequired" | "squarePayment.achInfo" | "squarePayment.achConsent" | "squarePayment.achConsentSetup" | "squarePayment.consentRequired" | "squarePayment.msg.loadFailed" | "squarePayment.msg.configMissing" | "squarePayment.msg.notReady" | "squarePayment.msg.cardFormFailed" | "squarePayment.msg.achInitFailed" | "squarePayment.msg.cancelled" | "squarePayment.msg.tokenizeFailed" | "squarePayment.msg.achFailed" | "squarePayment.msg.verifyFailed" | "squareErrors.defaultMessage" | "squareErrors.field.cardNumber" | "squareErrors.field.expirationDate" | "squareErrors.field.cvv" | "squareErrors.field.postalCode" | "squareErrors.type.UNSUPPORTED_CARD_BRAND" | "squareErrors.type.CONFIGURATION" | "squareErrors.type.PAYMENT_METHOD_NOT_SUPPORTED" | "squareErrors.code.GENERIC_DECLINE" | "squareErrors.code.CARD_DECLINED" | "squareErrors.code.CARD_DECLINED_CALL_ISSUER" | "squareErrors.code.CARD_DECLINED_VERIFICATION_REQUIRED" | "squareErrors.code.INSUFFICIENT_FUNDS" | "squareErrors.code.CVV_FAILURE" | "squareErrors.code.ADDRESS_VERIFICATION_FAILURE" | "squareErrors.code.INVALID_EXPIRATION" | "squareErrors.code.CARD_EXPIRED" | "squareErrors.code.INVALID_CARD" | "squareErrors.code.CARD_NOT_SUPPORTED" | "squareErrors.code.INVALID_ACCOUNT" | "squareErrors.code.PAYMENT_LIMIT_EXCEEDED" | "squareErrors.code.BUYER_REFUSED_PAYMENT" | "squareErrors.code.CARDHOLDER_INSUFFICIENT_PERMISSIONS" | "squareErrors.code.IDEMPOTENCY_KEY_REUSED" | "squareErrors.code.RATE_LIMITED" | "squareErrors.code.UNAUTHORIZED" | "squareConnect.title" | "squareConnect.startTitle" | "squareConnect.startText" | "squareConnect.startLabel" | "squareConnect.connected" | "squareConnect.needsReconnect" | "squareConnect.reconnectText" | "squareConnect.reconnect" | "squareConnect.disconnect" | "squareConnect.disconnectTitle" | "squareConnect.disconnectMessage" | "squareConnect.checkStatus" | "squareConnect.checking" | "squareConnect.connectedOn" | "squareConnect.opensInNewTabBusy" | "squareConnect.opensInNewTabSr" | "squareConnect.live.none" | "squareConnect.live.connected" | "squareConnect.live.reconnect" | "squareConnect.live.loading" | "squareConnect.noticeConnected" | "squareConnect.noticeReconnect" | "squareConnect.noticeNotConnected" | "squareConnect.noticeDisconnected" | "squareConnect.noticeLinkUnavailable" | "squareConnect.failedStart" | "squareConnect.failedCheck" | "squareConnect.failedDisconnect" | "squareConnect.merchantLine" | "squareConnect.locationLine" | "qboConnect.title" | "qboConnect.startTitle" | "qboConnect.startText" | "qboConnect.startLabel" | "qboConnect.connected" | "qboConnect.needsReconnect" | "qboConnect.reconnectText" | "qboConnect.reconnect" | "qboConnect.disconnect" | "qboConnect.disconnectTitle" | "qboConnect.disconnectMessage" | "qboConnect.checkStatus" | "qboConnect.checking" | "qboConnect.connectedOn" | "qboConnect.opensInNewTabBusy" | "qboConnect.opensInNewTabSr" | "qboConnect.live.none" | "qboConnect.live.connected" | "qboConnect.live.reconnect" | "qboConnect.live.loading" | "qboConnect.noticeConnected" | "qboConnect.noticeReconnect" | "qboConnect.noticeNotConnected" | "qboConnect.noticeDisconnected" | "qboConnect.noticeLinkUnavailable" | "qboConnect.failedStart" | "qboConnect.failedCheck" | "qboConnect.failedDisconnect" | "qboConnect.companyLine" | "squarePaymentMethod.methodCard" | "squarePaymentMethod.methodAch" | "squarePaymentMethod.amountNeeded" | "squarePaymentMethod.notCompleted" | "squarePaymentMethod.achTitle" | "squarePaymentMethod.achMessage" | "squarePaymentMethod.pendingTitle" | "squarePaymentMethod.pendingMessage" | "squarePaymentMethod.receiptNote" | "squarePaymentMethod.paymentDetails" | "squarePaymentMethod.totalCharged" | "squarePaymentMethod.amountPlusFees" | "squarePaymentMethod.paymentTotal" | "squarePaymentMethod.paymentAmount" | "squarePaymentMethod.processingFee" | "squarePaymentMethod.platformFee" | "squarePaymentMethod.feesFailed" | "squarePaymentMethod.announceProcessing" | "squarePaymentMethod.pay" | "squarePaymentMethod.paymentFailed" | "squarePaymentMethod.unavailable" | "squarePaymentMethod.announceReady" | "qboPaymentMethod.methodCard" | "qboPaymentMethod.methodAch" | "qboPaymentMethod.amountNeeded" | "qboPaymentMethod.notCompleted" | "qboPaymentMethod.achTitle" | "qboPaymentMethod.achMessage" | "qboPaymentMethod.pendingTitle" | "qboPaymentMethod.pendingMessage" | "qboPaymentMethod.receiptNote" | "qboPaymentMethod.paymentDetails" | "qboPaymentMethod.totalCharged" | "qboPaymentMethod.amountPlusFees" | "qboPaymentMethod.paymentTotal" | "qboPaymentMethod.paymentAmount" | "qboPaymentMethod.processingFee" | "qboPaymentMethod.platformFee" | "qboPaymentMethod.feesFailed" | "qboPaymentMethod.announceProcessing" | "qboPaymentMethod.pay" | "qboPaymentMethod.paymentFailed" | "qboPaymentMethod.unavailable" | "qboPayment.label" | "qboPayment.a11y.processing" | "qboPayment.a11y.tokenized" | "qboPayment.method.group" | "qboPayment.method.card" | "qboPayment.method.ach" | "qboPayment.submit.pay" | "qboPayment.submit.payBank" | "qboPayment.submit.saveCard" | "qboPayment.submit.saveBank" | "qboPayment.secureNote" | "qboPayment.card.number" | "qboPayment.card.name" | "qboPayment.card.nameOptional" | "qboPayment.card.expiry" | "qboPayment.card.expiryPlaceholder" | "qboPayment.card.cvc" | "qboPayment.card.postal" | "qboPayment.card.postalOptional" | "qboPayment.bank.info" | "qboPayment.bank.holder" | "qboPayment.bank.routing" | "qboPayment.bank.routingPlaceholder" | "qboPayment.bank.account" | "qboPayment.bank.confirm" | "qboPayment.bank.type" | "qboPayment.bank.type.PERSONAL_CHECKING" | "qboPayment.bank.type.PERSONAL_SAVINGS" | "qboPayment.bank.type.BUSINESS_CHECKING" | "qboPayment.bank.type.BUSINESS_SAVINGS" | "qboPayment.brand.visa" | "qboPayment.brand.mastercard" | "qboPayment.brand.amex" | "qboPayment.brand.discover" | "qboPayment.brand.diners" | "qboPayment.brand.jcb" | "qboPayment.achConsent" | "qboPayment.achConsentSetup" | "qboPayment.consentRequired" | "qboPayment.err.required" | "qboPayment.err.numberLength" | "qboPayment.err.numberLuhn" | "qboPayment.err.expiryFormat" | "qboPayment.err.expiryMonth" | "qboPayment.err.expiryPast" | "qboPayment.err.cvcLength" | "qboPayment.err.or" | "qboPayment.err.postalFormat" | "qboPayment.err.postalFormatCa" | "qboPayment.err.routingLength" | "qboPayment.err.accountLength" | "qboPayment.err.confirmMismatch" | "qboErrors.defaultMessage" | "qboErrors.field.cardNumber" | "qboErrors.field.expiry" | "qboErrors.field.cvc" | "qboErrors.field.postalCode" | "qboErrors.field.routing" | "qboErrors.field.account" | "qboErrors.field.accountType" | "qboErrors.field.holder" | "qboErrors.status.network" | "qboErrors.status.invalid" | "qboErrors.status.notAllowed" | "qboErrors.status.rateLimited" | "qboErrors.status.unavailable" | "paymentAttempt.checking" | "paymentAttempt.checkingHelp" | "paymentAttempt.stillChecking" | "paymentAttempt.checkAgain" | "paymentAttempt.waiting" | "paymentAttempt.startOver" | "paymentAttempt.paid" | "paymentAttempt.queuedOffline" | "paymentAttempt.offline" | "paymentAttempt.timeout" | "paymentAttempt.offlineInFlight" | "paymentAttempt.failedAfterCheck" | "paymentAttempt.authRequired" | "paymentAttempt.authAbandoned" | "paymentAttempt.verifyRetry" | "paymentAttempt.referenceChanged" | "paymentAttempt.linkInUse" | "paymentAttempt.linkAlreadyPaid" | "paymentAttempt.linkExpired" | "paymentAttempt.linkCancelled" | "paymentAttempt.notSupported" | "paymentAttempt.awaitingVerification" | "paymentAttempt.duplicate" | "paymentReadiness.offline" | "paymentReadiness.slow_connection" | "paymentReadiness.sdk_blocked" | "paymentReadiness.service_unavailable" | "paymentReadiness.merchant_not_ready" | "paymentReadiness.events_backlog" | "paymentReadiness.payable_changed" | "paymentReadiness.already_paid" | "paymentReadiness.reconnect_required" | "paymentReadiness.outcome_unknown" | "paymentReadiness.payment_in_flight" | "paymentReadiness.unsupported_browser" | "paymentReadiness.unknown_payment" | "paymentReadiness.checking" | "paymentReadiness.generic" | "paymentReadiness.retryLoad" | "paymentReadiness.storageWarning" | "paymentSetup.checking" | "paymentSetup.checkingHelp" | "paymentSetup.stillChecking" | "paymentSetup.waiting" | "paymentSetup.paid" | "paymentSetup.queuedOffline" | "paymentSetup.offline" | "paymentSetup.awaitingVerification" | "paymentSetup.slowConnection" | "paymentSetup.serviceUnavailable" | "paymentSetup.outcomeChecking" | "paymentSetup.inFlight" | "paymentSetup.readinessChecking" | "paymentSetup.readinessGeneric" | "paymentSetup.alreadySaved" | "paymentSetup.storageWarning" | "paymentSetup.unsupportedBrowser" | "paymentSetup.merchantNotReady" | "paymentSetup.eventsBacklog" | "paymentSetup.payableChanged" | "paymentSetup.reconnectRequired" | "paymentSetup.requiresPaymentMethod" | "paymentSetup.processing" | "qboHostedPay.title" | "qboHostedPay.titleNoAmount" | "qboHostedPay.pay" | "qboHostedPay.loading" | "qboHostedPay.expiredTitle" | "qboHostedPay.expired" | "qboHostedPay.usedTitle" | "qboHostedPay.used" | "qboHostedPay.successTitle" | "qboHostedPay.success" | "qboHostedPay.submittedTitle" | "qboHostedPay.submitted" | "qboHostedPay.errorTitle" | "qboHostedPay.unavailable" | "qboHostedPay.footer" | "stripePayment.msg.tokenFailed" | "stripeReader.theReader" | "stripeReader.status.loading" | "stripeReader.status.no_reader.title" | "stripeReader.status.no_reader.text" | "stripeReader.status.unsupported_only.title" | "stripeReader.status.unsupported_only.text" | "stripeReader.status.reader_offline.title" | "stripeReader.status.reader_offline.text" | "stripeReader.status.reader_busy.title" | "stripeReader.status.reader_busy.text" | "stripeReader.status.merchant_not_ready.title" | "stripeReader.status.merchant_not_ready.text" | "stripeReader.status.checking.title" | "stripeReader.status.checking.text" | "stripeReader.status.reconnect_required.title" | "stripeReader.status.reconnect_required.text" | "stripeReader.status.stale_attention.title" | "stripeReader.status.stale_attention.text" | "stripeReader.status.reader_ready.live" | "stripeReader.status.connect" | "stripeReader.status.get" | "stripeReader.status.recheck" | "stripeReader.status.setup" | "stripeReader.status.reconnect" | "stripeReader.status.cancelBusy" | "stripeReader.status.manual" | "stripeReader.status.getInfo" | "stripeReaderBanner.getReader" | "stripeReaderBanner.setupFirst" | "stripeReaderBanner.sandbox" | "stripeReaderBanner.serviceDisabled" | "stripeReaderBanner.processorUnsupported" | "stripeReader.mode.label" | "stripeReader.mode.reader" | "stripeReader.mode.manual" | "stripeReader.selectReader" | "stripeReader.readerLine" | "stripeReader.start" | "stripeReader.startNoAmount" | "stripeReader.starting" | "stripeReader.startingText" | "stripeReader.manualInstead" | "stripeReader.takeManual" | "stripeReader.startAgain" | "stripeReader.cancel" | "stripeReader.wait.waiting.title" | "stripeReader.wait.waiting.text" | "stripeReader.wait.declined.title" | "stripeReader.wait.declined.text" | "stripeReader.wait.stopped.title" | "stripeReader.wait.stopped.text" | "stripeReader.wait.retrying.title" | "stripeReader.wait.retrying.text" | "stripeReader.wait.cancelling.title" | "stripeReader.wait.cancelling.text" | "stripeReader.wait.recovering.title" | "stripeReader.wait.recovering.text" | "stripeReader.connectionLost" | "stripeReader.readerDisconnected" | "stripeReader.stillChecking" | "stripeReader.cancelUnreachable" | "stripeReader.elapsed" | "stripeReader.fees.loading" | "stripeReader.fees.failed" | "stripeReader.done.title" | "stripeReader.done.text" | "stripeReader.done.card" | "stripeReader.done.cardWord" | "stripeReader.receipt" | "stripeReader.cardSaved" | "stripeReader.cardNotSaved" | "stripeReader.canceled.title" | "stripeReader.canceled.text" | "stripeReader.failed.title" | "stripeReader.failed.text" | "stripeReader.saveCard.label" | "stripeReader.saveCard.consent" | "stripeReader.closeBlocked" | "stripeReader.offline.withManual" | "stripeReader.offline.noManual" | "stripeReader.refusal.generic" | "stripeReader.refusal.reader_busy" | "stripeReader.refusal.reader_offline" | "stripeReader.refusal.reader_not_supported" | "stripeReader.refusal.reader_unreachable" | "stripeReader.refusal.terminal_not_retryable" | "stripeReader.refusal.payment_in_flight" | "stripeReader.refusal.merchant_not_ready" | "stripeReader.refusal.reconnect_required" | "stripeReader.refusal.consent_required" | "stripeReader.refusal.terminal_save_needs_direct" | "stripeReader.refusal.not_supported_by_processor" | "stripeReader.refusal.exceeds_amount_due" | "stripeReader.refusal.duplicate_suspected" | "stripeReader.refusal.paid" | "stripeReader.refusal.offline" | "stripeReader.refusal.outcome_checking" | "stripeReader.refusal.queued_offline" | "stripeReader.refusal.start_not_received" | "stripeReader.refusal.retry_unreachable" | "stripeReaders.list.title" | "stripeReaders.list.empty" | "stripeReaders.status.online" | "stripeReaders.status.offline" | "stripeReaders.status.registering" | "stripeReaders.badge.busy" | "stripeReaders.badge.unsupported" | "stripeReaders.rename.action" | "stripeReaders.rename.for" | "stripeReaders.rename.label" | "stripeReaders.rename.done" | "stripeReaders.remove.action" | "stripeReaders.remove.for" | "stripeReaders.remove.title" | "stripeReaders.remove.text" | "stripeReaders.remove.confirm" | "stripeReaders.remove.done" | "stripeReaders.remove.busy" | "stripeReaders.add.title" | "stripeReaders.add.howS700" | "stripeReaders.add.howWisepos" | "stripeReaders.add.supported" | "stripeReaders.add.connect" | "stripeReaders.add.connecting" | "stripeReaders.add.done" | "stripeReaders.code.label" | "stripeReaders.code.hint" | "stripeReaders.code.invalid" | "stripeReaders.name.label" | "stripeReaders.name.hint" | "stripeReaders.location.label" | "stripeReaders.location.placeholder" | "stripeReaders.location.new" | "stripeReaders.location.name" | "stripeReaders.location.line1" | "stripeReaders.location.city" | "stripeReaders.location.state" | "stripeReaders.location.postal" | "stripeReaders.location.create" | "stripeReaders.location.created" | "stripeReaders.failed.load" | "stripeReaders.failed.register" | "stripeReaders.failed.rename" | "stripeReaders.failed.remove" | "stripeReaders.failed.location" | "stripeReaders.failed.notSupported" | "stripeReader.refusal.quote_changed" | "stripeReader.refusal.quote_changedNoAmount" | "stripeReader.refusal.attempt_failed_use_new_key" | "stripeReader.refusal.payment_being_sent" | "stripeReader.refusal.rate_limited" | "stripeReader.refusal.viewExisting" | "stripeReader.confirmTotal" | "stripeReader.leaveHint" | "stripeReader.wait.amount" | "stripeReader.wait.amountBase" | "stripeReader.degraded.since" | "stripeReader.degraded.attention" | "stripeReader.done.textNoAmount" | "stripeReader.mode.blocked" | "stripeReader.mode.blockedManual" | "stripeReader.saveCard.consentFees" | "stripeReaderShop.title" | "stripeReaderShop.orders.title" | "stripeReaderShop.loading" | "stripeReaderShop.orders.loading" | "stripeReaderShop.live.ready" | "stripeReaderShop.error.title" | "stripeReaderShop.error.text" | "stripeReaderShop.offline.title" | "stripeReaderShop.offline.text" | "stripeReaderShop.unavailable.title" | "stripeReaderShop.unavailable.platform_not_enabled" | "stripeReaderShop.unavailable.account_not_eligible" | "stripeReaderShop.unavailable.processor_refused" | "stripeReaderShop.unavailable.not_enabled_for_app" | "stripeReaderShop.unavailable.other" | "stripeReaderShop.unavailable.models" | "stripeReaderShop.model.s700" | "stripeReaderShop.model.s710" | "stripeReaderShop.model.wisepos" | "stripeReaderShop.unavailable.how" | "stripeReaderShop.help.link" | "stripeReaderShop.placed.title" | "stripeReaderShop.placed.text" | "stripeReader.wait.unconfirmed.title" | "stripeReader.wait.unconfirmed.text" | "stripeReader.cancelBusy.timeout" | "stripeReader.fees.unavailable" | "stripeReaders.failed.timeout" | "paymentAttempt.stillUnknown" | "paymentSetup.stillUnknown" | "paymentSetup.outcomeUnknown" | "stripeReader.status.unknown.title" | "stripeReader.status.unknown.text" | "stripeReader.status.unknown_attention.title" | "stripeReader.status.unknown_attention.text" | "stripeReader.refusal.outcome_unknown" | null>;
|
|
2325
|
+
protected readonly message: import("@angular/core").Signal<string>;
|
|
2326
|
+
constructor();
|
|
2327
|
+
/** Reads the readiness NOW. Never cached. A failed, slow or `checking` answer shows nothing; offline asks nothing. */
|
|
2328
|
+
refresh(): Promise<void>;
|
|
2329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderBannerComponent, never>;
|
|
2330
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderBannerComponent, "ui-stripe-reader-banner", never, {
|
|
2331
|
+
"getReadiness": {
|
|
2332
|
+
"alias": "getReadiness";
|
|
2333
|
+
"required": false;
|
|
2334
|
+
"isSignal": true;
|
|
2335
|
+
};
|
|
2336
|
+
"refreshKey": {
|
|
2337
|
+
"alias": "refreshKey";
|
|
2338
|
+
"required": false;
|
|
2339
|
+
"isSignal": true;
|
|
2340
|
+
};
|
|
2341
|
+
"hardwareShopAvailable": {
|
|
2342
|
+
"alias": "hardwareShopAvailable";
|
|
2343
|
+
"required": false;
|
|
2344
|
+
"isSignal": true;
|
|
2345
|
+
};
|
|
2346
|
+
"hideReady": {
|
|
2347
|
+
"alias": "hideReady";
|
|
2348
|
+
"required": false;
|
|
2349
|
+
"isSignal": true;
|
|
2350
|
+
};
|
|
2351
|
+
"readinessTimeoutMs": {
|
|
2352
|
+
"alias": "readinessTimeoutMs";
|
|
2353
|
+
"required": false;
|
|
2354
|
+
"isSignal": true;
|
|
2355
|
+
};
|
|
2356
|
+
"offlineOverride": {
|
|
2357
|
+
"alias": "offlineOverride";
|
|
2358
|
+
"required": false;
|
|
2359
|
+
"isSignal": true;
|
|
2360
|
+
};
|
|
2361
|
+
"paused": {
|
|
2362
|
+
"alias": "paused";
|
|
2363
|
+
"required": false;
|
|
2364
|
+
"isSignal": true;
|
|
2365
|
+
};
|
|
2366
|
+
}, {
|
|
2367
|
+
"connect": "connect";
|
|
2368
|
+
"order": "order";
|
|
2369
|
+
"setup": "setup";
|
|
2370
|
+
"stateChange": "stateChange";
|
|
2371
|
+
}, never, never, true, never>;
|
|
2372
|
+
}
|
|
1930
2373
|
/**
|
|
1931
2374
|
* Adds LIVE Card and ACH (Stripe) to `ui-payment-side-panel`. Put it inside the panel only for customers who use Stripe: its presence replaces the
|
|
1932
2375
|
* record-only Card / ACH (last 4 digits) with the Payment Element; remove it and the panel is record-only again.
|
|
@@ -2002,6 +2445,43 @@ export declare class StripePaymentMethodComponent extends PaymentMethodPlugin {
|
|
|
2002
2445
|
readonly readinessCheck: import("@angular/core").InputSignal<ReadinessCheckFn | null>;
|
|
2003
2446
|
readonly readinessTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
2004
2447
|
readonly readinessEveryMs: import("@angular/core").InputSignal<number>;
|
|
2448
|
+
/**
|
|
2449
|
+
* The card-reader calls. With it, the method Card gets a choice "Card reader | Enter card manually" above the form and the READER is the default as soon as the first readiness answer says `reader_ready`
|
|
2450
|
+
* (`[readerFirst]`); otherwise manual stays the default and one reader banner explains why. The payer can always switch to the manual card; switching away while a reader payment waits first cancels it through
|
|
2451
|
+
* `reader.cancelPayment`. See docs/card-readers.md.
|
|
2452
|
+
*/
|
|
2453
|
+
readonly reader: import("@angular/core").InputSignal<StripeReaderConfig | null>;
|
|
2454
|
+
/** The reader is the default when it is ready (default true). `false` keeps manual as the default and only offers the choice. */
|
|
2455
|
+
readonly readerFirst: import("@angular/core").InputSignal<boolean>;
|
|
2456
|
+
/** "Connect a reader": the host opens its pairing panel (`ui-stripe-readers`). */
|
|
2457
|
+
readonly readerConnect: import("@angular/core").OutputEmitterRef<void>;
|
|
2458
|
+
/** "Get a card reader": the host opens its order flow. */
|
|
2459
|
+
readonly readerOrder: import("@angular/core").OutputEmitterRef<void>;
|
|
2460
|
+
/** "Set up payments": the host opens payment setup. */
|
|
2461
|
+
readonly readerSetup: import("@angular/core").OutputEmitterRef<void>;
|
|
2462
|
+
/**
|
|
2463
|
+
* Library source 2026-11-21: how often (ms) the waiting reader payment's status is read (default 2000; clamped to 500..30 000). Wins over `reader.pollMs`. Unset (`null`) = `reader.pollMs`, else 2000.
|
|
2464
|
+
*/
|
|
2465
|
+
readonly readerPollMs: import("@angular/core").InputSignal<number | null>;
|
|
2466
|
+
/**
|
|
2467
|
+
* Library source 2026-11-21: `true` while a reader payment is open (starting, waiting for the tap, declined and retryable, retrying, cancelling or recovering a lost answer), `false` when it is idle or
|
|
2468
|
+
* finished. Emitted only when the value changes (nothing at start), so a host can block its other pay actions and keep the panel locked meanwhile (see also `ui-payment-side-panel`'s `(busyChange)`).
|
|
2469
|
+
* It is NEVER sent as `false` for a reader payment that may still exist at the processor: when the body is destroyed or the reader screen is removed while one is open, `readerLeftPending` is emitted instead.
|
|
2470
|
+
*/
|
|
2471
|
+
readonly readerBusyChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
2472
|
+
/**
|
|
2473
|
+
* Library source 2026-11-21: the body went away (panel closed, method changed, plugin removed) or the reader screen was removed (reader switched off) while a reader payment was open. No `readerBusyChange(false)` is sent for it (the payment may
|
|
2474
|
+
* still exist): the host keeps its other pay actions blocked and reads the server's own hold. Inside `ui-payment-side-panel` bind the panel's `(leftPending)` instead (it also covers manual confirmations, terminal payments and record requests).
|
|
2475
|
+
*/
|
|
2476
|
+
readonly readerLeftPending: import("@angular/core").OutputEmitterRef<StripeReaderLeftPending>;
|
|
2477
|
+
/**
|
|
2478
|
+
* Library source 2026-11-21: while `true` the Pay button of this method is disabled and `pay()` does nothing, the reader's "Send to the reader" starts nothing (a reader payment that is already open keeps its "Try again" and Cancel) and the Reader | Manual
|
|
2479
|
+
* choice cannot be switched; `blockedReason` is shown as a `role="status"` message. A payment that is already running is not cancelled and keeps its Cancel. Inside `ui-payment-side-panel` use the
|
|
2480
|
+
* panel's own `[blocked]` instead (it also blocks the method select and shows the message once); this input is for a plugin used on its own.
|
|
2481
|
+
*/
|
|
2482
|
+
readonly blocked: import("@angular/core").InputSignal<boolean>;
|
|
2483
|
+
/** Why it is blocked (shown while `blocked`). Empty = the default text of the label `paymentBlocked.default`. */
|
|
2484
|
+
readonly blockedReason: import("@angular/core").InputSignal<string>;
|
|
2005
2485
|
readonly receiptNoteInput: import("@angular/core").InputSignal<string | null>;
|
|
2006
2486
|
readonly receiptNote: import("@angular/core").Signal<string>;
|
|
2007
2487
|
private readonly body;
|
|
@@ -2020,8 +2500,20 @@ export declare class StripePaymentMethodComponent extends PaymentMethodPlugin {
|
|
|
2020
2500
|
markNotCharged(): void;
|
|
2021
2501
|
/** The host starts a deliberate SECOND payment of this payable (an explicit "pay again" flow): forgets the paid state this form saw, removes the succeeded record and moves the epoch so the next attempt has a NEW key. Does nothing against the host's own `paid` input. */
|
|
2022
2502
|
resetPaid(): void;
|
|
2503
|
+
/** The attempt this plugin last started (a reader payment or a manual card confirmation), kept here because the body is gone when the panel closes: what the panel's "Check again" reads. */
|
|
2504
|
+
private remembered;
|
|
2505
|
+
/** @internal The body names the attempt it just started. */
|
|
2506
|
+
rememberAttempt(key: string | undefined, kind: 'reader' | 'manual', amount?: number): void;
|
|
2507
|
+
/**
|
|
2508
|
+
* Library round 4 (2026-11-21): the truth of the payment the panel is holding, read by ATTEMPT KEY. A reader payment is read with `reader.getPayment`, a manual card / bank confirmation with `checkStatus`.
|
|
2509
|
+
* `over` only when the answer proves nothing is open (a canceled / failed payment; "never seen" only once the hold is older than the processing window, because a slow original request may still be on its way);
|
|
2510
|
+
* `succeeded` when it was paid; `open` while it runs; `checking` when it cannot be told (no key, no host call, a failed read).
|
|
2511
|
+
*/
|
|
2512
|
+
checkPending(info: PaymentPendingCheckInfo): Promise<PaymentPendingCheckResult>;
|
|
2023
2513
|
readonly methods: import("@angular/core").Signal<readonly PaymentPluginMethod[]>;
|
|
2024
2514
|
readonly template: import("@angular/core").Signal<TemplateRef<PaymentMethodBodyContext> | undefined>;
|
|
2515
|
+
/** The card reader banner the panel's `[readerBanner]` renders (library source 2026-11-21): rendering this plugin in the panel is all a host needs to do for it. */
|
|
2516
|
+
readonly readerBannerComponent: typeof StripeReaderBannerComponent;
|
|
2025
2517
|
static ɵfac: i0.ɵɵFactoryDeclaration<StripePaymentMethodComponent, never>;
|
|
2026
2518
|
static ɵcmp: i0.ɵɵComponentDeclaration<StripePaymentMethodComponent, "ui-payment-stripe-method", never, {
|
|
2027
2519
|
"createIntent": {
|
|
@@ -2169,11 +2661,1240 @@ export declare class StripePaymentMethodComponent extends PaymentMethodPlugin {
|
|
|
2169
2661
|
"required": false;
|
|
2170
2662
|
"isSignal": true;
|
|
2171
2663
|
};
|
|
2664
|
+
"reader": {
|
|
2665
|
+
"alias": "reader";
|
|
2666
|
+
"required": false;
|
|
2667
|
+
"isSignal": true;
|
|
2668
|
+
};
|
|
2669
|
+
"readerFirst": {
|
|
2670
|
+
"alias": "readerFirst";
|
|
2671
|
+
"required": false;
|
|
2672
|
+
"isSignal": true;
|
|
2673
|
+
};
|
|
2674
|
+
"readerPollMs": {
|
|
2675
|
+
"alias": "readerPollMs";
|
|
2676
|
+
"required": false;
|
|
2677
|
+
"isSignal": true;
|
|
2678
|
+
};
|
|
2679
|
+
"blocked": {
|
|
2680
|
+
"alias": "blocked";
|
|
2681
|
+
"required": false;
|
|
2682
|
+
"isSignal": true;
|
|
2683
|
+
};
|
|
2684
|
+
"blockedReason": {
|
|
2685
|
+
"alias": "blockedReason";
|
|
2686
|
+
"required": false;
|
|
2687
|
+
"isSignal": true;
|
|
2688
|
+
};
|
|
2172
2689
|
"receiptNoteInput": {
|
|
2173
2690
|
"alias": "receiptNote";
|
|
2174
2691
|
"required": false;
|
|
2175
2692
|
"isSignal": true;
|
|
2176
2693
|
};
|
|
2177
|
-
}, {
|
|
2694
|
+
}, {
|
|
2695
|
+
"readerConnect": "readerConnect";
|
|
2696
|
+
"readerOrder": "readerOrder";
|
|
2697
|
+
"readerSetup": "readerSetup";
|
|
2698
|
+
"readerBusyChange": "readerBusyChange";
|
|
2699
|
+
"readerLeftPending": "readerLeftPending";
|
|
2700
|
+
}, never, never, true, never>;
|
|
2701
|
+
}
|
|
2702
|
+
/**
|
|
2703
|
+
* Where a card reader payment is. One value, always:
|
|
2704
|
+
* - `idle`: nothing started (or an earlier payment ended: canceled / failed / refused);
|
|
2705
|
+
* - `starting`: the click was accepted and the payment is on its way to the service (the answer is not here yet);
|
|
2706
|
+
* - `recovering`: the answer of `starting` was lost (timeout, connection): the attempt key is looked up until the payment is found (or, after the grace period, the service still has none: then `recoveryExpired` is set and
|
|
2707
|
+
* the payer is asked to check again; only a second "none" answer, asked by the payer, releases the attempt). NEVER a second start;
|
|
2708
|
+
* - `waiting`: the reader waits for the customer to tap, insert or swipe;
|
|
2709
|
+
* - `declined`: the card was declined; the payment stays open (retry the SAME payment or cancel it);
|
|
2710
|
+
* - `stopped`: the reader stopped waiting without a decline; the payment stays open (retry or cancel);
|
|
2711
|
+
* - `retrying`: the same payment is being sent to the reader again;
|
|
2712
|
+
* - `cancelling`: a cancel is running (the payment is canceled ONLY when the service confirms);
|
|
2713
|
+
* - `succeeded`, `canceled`, `failed`: final.
|
|
2714
|
+
*/
|
|
2715
|
+
type StripeReaderPhase = 'idle' | 'starting' | 'recovering' | 'waiting' | 'declined' | 'stopped' | 'retrying' | 'cancelling' | 'succeeded' | 'canceled' | 'failed';
|
|
2716
|
+
/** What the flow needs of the payment-attempt machine (`PaymentAttempt` of `@forgeroute/ui/payments` fits it; specs use a fake). */
|
|
2717
|
+
interface StripeReaderAttemptPort {
|
|
2718
|
+
begin(): {
|
|
2719
|
+
ok: true;
|
|
2720
|
+
key: string;
|
|
2721
|
+
} | {
|
|
2722
|
+
ok: false;
|
|
2723
|
+
reason: 'locked' | 'paid' | 'unknown' | 'offline';
|
|
2724
|
+
};
|
|
2725
|
+
/** The key of the attempt in effect. */
|
|
2726
|
+
key(): string;
|
|
2727
|
+
/** The payment succeeded: locks the payable as paid. */
|
|
2728
|
+
succeed(reason?: string): void;
|
|
2729
|
+
/** A DEFINITIVE end without money (canceled, failed): unlocks with a NEW key. */
|
|
2730
|
+
fail(reason?: string): void;
|
|
2731
|
+
/** Nothing was created at the service: unlock, KEEP the key. */
|
|
2732
|
+
markNotCharged(): void;
|
|
2733
|
+
/** The answer of the start was lost: lock (key kept) until the payment is found. */
|
|
2734
|
+
markUnknown(reason: string): void;
|
|
2735
|
+
}
|
|
2736
|
+
type StripeReaderFlowEvent = {
|
|
2737
|
+
kind: 'started';
|
|
2738
|
+
payment: StripeReaderPayment;
|
|
2739
|
+
attemptKey: string;
|
|
2740
|
+
} | {
|
|
2741
|
+
kind: 'declined';
|
|
2742
|
+
payment: StripeReaderPayment;
|
|
2743
|
+
} | {
|
|
2744
|
+
kind: 'succeeded';
|
|
2745
|
+
payment: StripeReaderPayment;
|
|
2746
|
+
attemptKey: string;
|
|
2747
|
+
} | {
|
|
2748
|
+
kind: 'canceled';
|
|
2749
|
+
payment: StripeReaderPayment | null;
|
|
2750
|
+
} | {
|
|
2751
|
+
kind: 'failed';
|
|
2752
|
+
payment: StripeReaderPayment | null;
|
|
2753
|
+
} | {
|
|
2754
|
+
kind: 'refused';
|
|
2755
|
+
refusal: StripeReaderRefusal;
|
|
2756
|
+
} | {
|
|
2757
|
+
kind: 'connection-lost';
|
|
2758
|
+
} | {
|
|
2759
|
+
kind: 'connection-restored';
|
|
2760
|
+
};
|
|
2761
|
+
interface StripeReaderFlowOptions {
|
|
2762
|
+
attempt: StripeReaderAttemptPort;
|
|
2763
|
+
/** The calls are read at call time (a host may swap them); null = not provided (the action does nothing). */
|
|
2764
|
+
start: () => StripeReaderStartFn | null;
|
|
2765
|
+
getPayment: () => StripeReaderGetPaymentFn | null;
|
|
2766
|
+
retry: () => StripeReaderRetryFn | null;
|
|
2767
|
+
cancel: () => StripeReaderCancelFn | null;
|
|
2768
|
+
/** How often the open payment is read (default 2000 ms). */
|
|
2769
|
+
pollMs?: () => number;
|
|
2770
|
+
/** A poll slower than this counts as a lost connection (default 8000 ms). */
|
|
2771
|
+
pollTimeoutMs?: () => number;
|
|
2772
|
+
/** One start / retry / cancel call slower than this is treated as unreachable: a start becomes a lost answer (looked up by its attempt key, never re-sent), a retry / cancel leaves the payment as it was (default 60 000 ms). */
|
|
2773
|
+
requestTimeoutMs?: () => number;
|
|
2774
|
+
/** After a lost start answer (or an adopted attempt), "no payment for this attempt key" is believed only after this long, MEASURED FROM THE MOMENT RECOVERY STARTS (default 360 000 ms: the service may take up to 5 minutes to create the payment
|
|
2775
|
+
* of a request whose answer the browser gave up on, API.md 16.3, plus 1 minute of margin). */
|
|
2776
|
+
lostAnswerGraceMs?: () => number;
|
|
2777
|
+
now?: () => number;
|
|
2778
|
+
onEvent?: (event: StripeReaderFlowEvent) => void;
|
|
2779
|
+
}
|
|
2780
|
+
/** What the screen passes to `start()`. */
|
|
2781
|
+
interface StripeReaderStartInput {
|
|
2782
|
+
readerId: string;
|
|
2783
|
+
/** Major units. */
|
|
2784
|
+
amount: number;
|
|
2785
|
+
payableRef: string | null;
|
|
2786
|
+
/** The total in cents the payer saw (the CARD_PRESENT quote); sent as `expectedAmountCents`. */
|
|
2787
|
+
expectedAmountCents?: number;
|
|
2788
|
+
save?: {
|
|
2789
|
+
customerRef: string;
|
|
2790
|
+
consent: StripeReaderConsent;
|
|
2791
|
+
} | null;
|
|
2792
|
+
extras?: Pick<StripeReaderStartContext, 'receivedDate' | 'notes' | 'allocation'>;
|
|
2793
|
+
}
|
|
2794
|
+
export declare const STRIPE_READER_POLL_MS = 2000;
|
|
2795
|
+
export declare const STRIPE_READER_POLL_TIMEOUT_MS = 8000;
|
|
2796
|
+
/** The service's create window (5 minutes) plus a minute of margin: "no payment for this key" earlier than this may only mean the payment is not created yet. */
|
|
2797
|
+
export declare const STRIPE_READER_LOST_ANSWER_GRACE_MS: number;
|
|
2798
|
+
/** A start / retry / cancel call that has not answered by then is unreachable (the library's request timeout). */
|
|
2799
|
+
export declare const STRIPE_READER_REQUEST_TIMEOUT_MS = 60000;
|
|
2800
|
+
/**
|
|
2801
|
+
* The card reader payment flow as a plain class (no view): readiness is the screen's job, this starts ONE payment on a reader, follows it by polling the service through the host's calls, and lets the payer retry
|
|
2802
|
+
* (the SAME payment, never a new charge) or cancel it. `ui-stripe-reader-payment` runs it; specs drive it with fake calls and a fake clock.
|
|
2803
|
+
*
|
|
2804
|
+
* Money rules it enforces:
|
|
2805
|
+
* - ONE payment at a time: `start()` is synchronous up to the attempt's `begin()` (a double click / second tab is refused) and every state in {@link OPEN} refuses another start;
|
|
2806
|
+
* - the attempt key is the one the attempt machine pinned at the click and is REUSED when the answer is lost (the service answers the same attempt key with the same payment, one intent, one reader action);
|
|
2807
|
+
* - a lost answer is never "failed": it is `recovering` (polling by attempt key) until the payment shows up, or the grace period has passed with the service still saying "no payment for this key";
|
|
2808
|
+
* - a cancel never claims success unless the service confirmed it (`reader_unreachable` leaves the payment open and says so);
|
|
2809
|
+
* - a poll that fails (connection lost) never changes the payment's state: it is reported and polling continues; the state shown on reconnect is the service's truth;
|
|
2810
|
+
* - the service's `terminal.state` `unknown` / `stale` is "still checking" (never an error, never a resubmit).
|
|
2811
|
+
*/
|
|
2812
|
+
export declare class StripeReaderFlow {
|
|
2813
|
+
private readonly o;
|
|
2814
|
+
readonly phase: import("@angular/core").WritableSignal<StripeReaderPhase>;
|
|
2815
|
+
readonly payment: import("@angular/core").WritableSignal<StripeReaderPayment | null>;
|
|
2816
|
+
readonly terminal: import("@angular/core").Signal<StripeReaderTerminal | null>;
|
|
2817
|
+
/** The service could not read the processor (`terminal.state` `unknown` or `stale`): "still checking". */
|
|
2818
|
+
readonly checking: import("@angular/core").WritableSignal<boolean>;
|
|
2819
|
+
/** The browser could not reach the host while a payment is open: the reader may still take the payment. */
|
|
2820
|
+
readonly connectionLost: import("@angular/core").WritableSignal<boolean>;
|
|
2821
|
+
/** `recovering` only: the grace period is over and the service still has no payment for the attempt key. Polling stops; the payer is asked to "Check again" (`recheck()`), and only another "none" releases the attempt. */
|
|
2822
|
+
readonly recoveryExpired: import("@angular/core").WritableSignal<boolean>;
|
|
2823
|
+
/** `recheck()` is running. */
|
|
2824
|
+
readonly rechecking: import("@angular/core").WritableSignal<boolean>;
|
|
2825
|
+
/** The reader dropped its connection while the payment waits (`terminal.readerOnline === false`). */
|
|
2826
|
+
readonly readerOffline: import("@angular/core").WritableSignal<boolean>;
|
|
2827
|
+
/** The last refusal of a start / retry (worded by the screen); cleared by the next start. */
|
|
2828
|
+
readonly refusal: import("@angular/core").WritableSignal<StripeReaderRefusal | null>;
|
|
2829
|
+
/** A cancel could not be confirmed (the reader or the processor was unreachable): the payment is STILL open. */
|
|
2830
|
+
readonly cancelUnreachable: import("@angular/core").WritableSignal<boolean>;
|
|
2831
|
+
readonly cardSave: import("@angular/core").WritableSignal<StripeReaderCardSave | null>;
|
|
2832
|
+
readonly elapsedMs: import("@angular/core").WritableSignal<number>;
|
|
2833
|
+
/** What the last start (or the adopted payment) is for, before fees (major units); `null` until known. */
|
|
2834
|
+
readonly baseAmount: import("@angular/core").Signal<number | null>;
|
|
2835
|
+
/** The input of the last start (a signal, so the screen follows it). */
|
|
2836
|
+
readonly startInput: import("@angular/core").WritableSignal<StripeReaderStartInput | null>;
|
|
2837
|
+
/** The attempt key of the payment being started / followed. */
|
|
2838
|
+
readonly attemptKey: import("@angular/core").WritableSignal<string | null>;
|
|
2839
|
+
/** No other payment may be started and the payer must not leave. */
|
|
2840
|
+
readonly locked: import("@angular/core").Signal<boolean>;
|
|
2841
|
+
/** A payment exists at the service and is not decided (cancel is possible). */
|
|
2842
|
+
readonly cancellable: import("@angular/core").Signal<boolean>;
|
|
2843
|
+
readonly retryable: import("@angular/core").Signal<boolean>;
|
|
2844
|
+
private disposed;
|
|
2845
|
+
private pollTimer;
|
|
2846
|
+
private tickTimer;
|
|
2847
|
+
private pollGen;
|
|
2848
|
+
private polling;
|
|
2849
|
+
private startedAt;
|
|
2850
|
+
/** When recovery began (a lost start answer, or an adopted attempt): the grace is counted from here, never from the click. */
|
|
2851
|
+
private recoverStartedAt;
|
|
2852
|
+
private explicitCheck;
|
|
2853
|
+
/** The payment id the service named in a 409 `request_in_progress` (the same attempt key is being created): used to read the payment while the answer of the start is lost. Never used to cancel. */
|
|
2854
|
+
private adoptedPaymentId;
|
|
2855
|
+
private cancelRun;
|
|
2856
|
+
/** The phase to go back to when a retry or a cancel did not change anything. */
|
|
2857
|
+
private before;
|
|
2858
|
+
constructor(o: StripeReaderFlowOptions);
|
|
2859
|
+
private now;
|
|
2860
|
+
private emit;
|
|
2861
|
+
/** Starts ONE payment on a reader. Synchronous up to the attempt's `begin()`: a second click in the same tick is refused. */
|
|
2862
|
+
start(input: StripeReaderStartInput): Promise<void>;
|
|
2863
|
+
private onStartError;
|
|
2864
|
+
/** Follows an open reader payment of another attempt (the service said so with `payment_in_flight` + `terminal`): the screen shows it like its own, with its refusal text above. */
|
|
2865
|
+
private follow;
|
|
2866
|
+
/**
|
|
2867
|
+
* A reload or a second tab found an UNDECIDED attempt of this payable (the attempt machine is `unknown`): the payment may be waiting on a reader right now. The attempt key is looked up (never a new start)
|
|
2868
|
+
* until the payment shows up (then it is followed like any other) or, after the grace period, the service still has none.
|
|
2869
|
+
*/
|
|
2870
|
+
adopt(): void;
|
|
2871
|
+
private endNotCreated;
|
|
2872
|
+
private refuse;
|
|
2873
|
+
/** The answer of the start is lost: lock with the key kept and look the attempt key up until the payment shows up. */
|
|
2874
|
+
private lostAnswer;
|
|
2875
|
+
/** Reads the payment now (also after the browser says it is back online). */
|
|
2876
|
+
pollNow(): void;
|
|
2877
|
+
/** The browser reports offline / online. Offline only marks the loss; the next successful poll restores. */
|
|
2878
|
+
markConnection(online: boolean): void;
|
|
2879
|
+
private shouldPoll;
|
|
2880
|
+
private schedulePoll;
|
|
2881
|
+
private stopPolling;
|
|
2882
|
+
private pollOnce;
|
|
2883
|
+
/**
|
|
2884
|
+
* "Check again" of an unconfirmed payment (`recoveryExpired`): reads the attempt key once more. Found: followed like any payment. Still none (the grace is over): the attempt is released and the payer may start again (the same key is
|
|
2885
|
+
* idempotent at the service). A failed read changes nothing (connection lost) and the payer can check again.
|
|
2886
|
+
*/
|
|
2887
|
+
recheck(): Promise<void>;
|
|
2888
|
+
private setConnectionLost;
|
|
2889
|
+
/** Applies a payment answer (a start / read / retry answer). Only an OPEN phase follows it: a late answer after a final state changes nothing. */
|
|
2890
|
+
private apply;
|
|
2891
|
+
private settle;
|
|
2892
|
+
/** After a decline (or a stop): sends the SAME payment to the reader again. Never creates a payment. */
|
|
2893
|
+
retry(): Promise<void>;
|
|
2894
|
+
/**
|
|
2895
|
+
* Cancels the payment at the service. Resolves true only when the service confirmed the cancel (or already reports the payment canceled). While it runs the payment is `cancelling`; when the
|
|
2896
|
+
* service cannot reach the reader or the processor (503 `reader_unreachable`, a lost connection) the payment STAYS open, `cancelUnreachable` is set and the payer may cancel again.
|
|
2897
|
+
*/
|
|
2898
|
+
cancel(): Promise<boolean>;
|
|
2899
|
+
private runCancel;
|
|
2900
|
+
/** Runs one host call raced against the request timeout: a call that never answers cannot lock the flow forever. A late answer after the timeout is ignored (the next poll reads the truth). */
|
|
2901
|
+
private call;
|
|
2902
|
+
/** From `canceled` / `failed`: back to a fresh start (a NEW key, the attempt machine already renewed it). */
|
|
2903
|
+
reset(): void;
|
|
2904
|
+
/** The input of the last start (the screen re-sends it after "Start again"). */
|
|
2905
|
+
lastStartInput(): StripeReaderStartInput | null;
|
|
2906
|
+
private startTick;
|
|
2907
|
+
private stopTick;
|
|
2908
|
+
/** The screen is gone: timers stop. Nothing is cancelled here (the screen decides; a payment that is open stays open at the service and is found again by its attempt key). */
|
|
2909
|
+
dispose(): void;
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* The state the banner shows: the service's single readiness state, `loading` while a first read runs, `checking` when there is no usable answer (the read failed, was slow, or the service could not tell), and `attention` when the service says the payment account
|
|
2913
|
+
* needs attention. The component NEVER produces a state named `unknown` (the type keeps the member only because the readiness INPUT may carry it).
|
|
2914
|
+
*/
|
|
2915
|
+
type StripeReaderBannerState = StripeReaderReadinessState | 'loading' | 'checking' | 'attention';
|
|
2916
|
+
/**
|
|
2917
|
+
* The ONE card-reader banner. It is rendered from the service's single readiness `state` (never from several flags), so a payment screen can never show two reader messages at once:
|
|
2918
|
+
*
|
|
2919
|
+
* - `merchant_not_ready`: payments are not set up (action: open payment setup); with the reason `reconnect_required` the payment account must be reconnected ("Reconnect payments", the same `openSetup` output: the host opens the place where the account is set up / reconnected);
|
|
2920
|
+
* - `no_reader` / `unsupported_only`: "No card reader set up" with the two actions "Connect a reader" (the host opens its pairing panel) and "Get a card reader" (the host opens its order flow);
|
|
2921
|
+
* - `reader_busy`: "A payment is waiting on <reader>" (+ "Cancel that payment" when the payment is this screen's own);
|
|
2922
|
+
* - `reader_offline`: "Card reader not connected" + "Check again";
|
|
2923
|
+
* - `checking`: there is no usable answer (the check failed, was too slow, or the service could not tell; nothing is guessed): "Checking the card reader" + "Check again"; when the service says WHY and it will not fix itself (`degradedReason` `reconnect_required` / `processor_refused`) the state is `attention`: the payment account needs attention (+ "Reconnect payments"). There is no state named `unknown`;
|
|
2924
|
+
* - `reader_ready`: no banner (a polite announcement only).
|
|
2925
|
+
*
|
|
2926
|
+
* The component has no HTTP: the host reads the readiness (see `ui-stripe-reader-payment` / `ui-stripe-readers`) and passes it in; the buttons are outputs.
|
|
2927
|
+
*
|
|
2928
|
+
* <ui-stripe-reader-status [readiness]="readiness()" [loading]="loading()" (connectReader)="openPairing()" (getReader)="openOrder()" (recheck)="reload()" />
|
|
2929
|
+
*/
|
|
2930
|
+
export declare class StripeReaderStatusComponent {
|
|
2931
|
+
protected readonly labels: UiLabelsService;
|
|
2932
|
+
/** The service's last readiness answer (`null` = none yet or the read failed). */
|
|
2933
|
+
readonly readiness: import("@angular/core").InputSignal<StripeReaderReadiness | null>;
|
|
2934
|
+
/** A read is running and there is no answer to show yet: a skeleton. */
|
|
2935
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
2936
|
+
/** The id of a payment THIS screen started and that holds the reader: the banner then offers "Cancel that payment". */
|
|
2937
|
+
readonly ownBusyPaymentId: import("@angular/core").InputSignal<string | null>;
|
|
2938
|
+
/** That cancel is running. */
|
|
2939
|
+
readonly cancelling: import("@angular/core").InputSignal<boolean>;
|
|
2940
|
+
/** Adds "Take a manual payment instead" (a payment screen that has a manual path). */
|
|
2941
|
+
readonly showManual: import("@angular/core").InputSignal<boolean>;
|
|
2942
|
+
/** Hides "Connect a reader" (the pairing screen itself shows the banner). */
|
|
2943
|
+
readonly hideConnect: import("@angular/core").InputSignal<boolean>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Library source 2026-11-21 (additive). `true` (default): "Get a card reader" opens the host's order flow. `false`: the account cannot order readers in the app, the button reads "How to get a card reader" and the host
|
|
2946
|
+
* opens an info card instead (the same `getReader` output).
|
|
2947
|
+
*/
|
|
2948
|
+
readonly hardwareShopAvailable: import("@angular/core").InputSignal<boolean>;
|
|
2949
|
+
/** "Connect a reader": the host opens its pairing panel (`ui-stripe-readers`). */
|
|
2950
|
+
readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
|
|
2951
|
+
/** "Get a card reader": the host opens its order flow. */
|
|
2952
|
+
readonly getReader: import("@angular/core").OutputEmitterRef<void>;
|
|
2953
|
+
/** "Check again". */
|
|
2954
|
+
readonly recheck: import("@angular/core").OutputEmitterRef<void>;
|
|
2955
|
+
/** "Set up payments": the host opens payment setup. */
|
|
2956
|
+
readonly openSetup: import("@angular/core").OutputEmitterRef<void>;
|
|
2957
|
+
/** "Cancel that payment" (the payment id). */
|
|
2958
|
+
readonly cancelBusy: import("@angular/core").OutputEmitterRef<string>;
|
|
2959
|
+
/** "Take a manual payment instead". */
|
|
2960
|
+
readonly manual: import("@angular/core").OutputEmitterRef<void>;
|
|
2961
|
+
/** Which banner: no answer and loading = `loading`; no answer and not loading = `checking`; a service `checking` (old name `unknown`) = `attention` (reason that will not fix itself) or `checking`; else the service's state. Never `unknown`. */
|
|
2962
|
+
readonly state: import("@angular/core").Signal<StripeReaderBannerState>;
|
|
2963
|
+
protected readonly variant: import("@angular/core").Signal<"info" | "warning">;
|
|
2964
|
+
private readonly busyName;
|
|
2965
|
+
/** `merchant_not_ready` because the payment account must be reconnected (the service's `reason`). Any other merchant status (onboarding, disconnected...) is "not set up". */
|
|
2966
|
+
protected readonly reconnect: import("@angular/core").Signal<boolean>;
|
|
2967
|
+
/** The service could not read the processor for a reason that will not fix itself (`reconnect_required`, `processor_refused`): the account needs attention. Transient reasons (and none) stay "checking, check again". */
|
|
2968
|
+
protected readonly attention: import("@angular/core").Signal<boolean>;
|
|
2969
|
+
/** The label group of the banner: the state, or a more exact one for a reconnect / attention case. */
|
|
2970
|
+
private readonly textKey;
|
|
2971
|
+
protected readonly title: import("@angular/core").Signal<string>;
|
|
2972
|
+
protected readonly text: import("@angular/core").Signal<string>;
|
|
2973
|
+
/** What the polite region says: the banner's title (a change of state is announced), "ready" for a ready reader, nothing while loading. */
|
|
2974
|
+
protected readonly liveText: import("@angular/core").Signal<string>;
|
|
2975
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderStatusComponent, never>;
|
|
2976
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderStatusComponent, "ui-stripe-reader-status", never, {
|
|
2977
|
+
"readiness": {
|
|
2978
|
+
"alias": "readiness";
|
|
2979
|
+
"required": false;
|
|
2980
|
+
"isSignal": true;
|
|
2981
|
+
};
|
|
2982
|
+
"loading": {
|
|
2983
|
+
"alias": "loading";
|
|
2984
|
+
"required": false;
|
|
2985
|
+
"isSignal": true;
|
|
2986
|
+
};
|
|
2987
|
+
"ownBusyPaymentId": {
|
|
2988
|
+
"alias": "ownBusyPaymentId";
|
|
2989
|
+
"required": false;
|
|
2990
|
+
"isSignal": true;
|
|
2991
|
+
};
|
|
2992
|
+
"cancelling": {
|
|
2993
|
+
"alias": "cancelling";
|
|
2994
|
+
"required": false;
|
|
2995
|
+
"isSignal": true;
|
|
2996
|
+
};
|
|
2997
|
+
"showManual": {
|
|
2998
|
+
"alias": "showManual";
|
|
2999
|
+
"required": false;
|
|
3000
|
+
"isSignal": true;
|
|
3001
|
+
};
|
|
3002
|
+
"hideConnect": {
|
|
3003
|
+
"alias": "hideConnect";
|
|
3004
|
+
"required": false;
|
|
3005
|
+
"isSignal": true;
|
|
3006
|
+
};
|
|
3007
|
+
"hardwareShopAvailable": {
|
|
3008
|
+
"alias": "hardwareShopAvailable";
|
|
3009
|
+
"required": false;
|
|
3010
|
+
"isSignal": true;
|
|
3011
|
+
};
|
|
3012
|
+
}, {
|
|
3013
|
+
"connectReader": "connectReader";
|
|
3014
|
+
"getReader": "getReader";
|
|
3015
|
+
"recheck": "recheck";
|
|
3016
|
+
"openSetup": "openSetup";
|
|
3017
|
+
"cancelBusy": "cancelBusy";
|
|
3018
|
+
"manual": "manual";
|
|
3019
|
+
}, never, never, true, never>;
|
|
3020
|
+
}
|
|
3021
|
+
/** What `(succeeded)` reports. */
|
|
3022
|
+
interface StripeReaderSucceededEvent {
|
|
3023
|
+
payment: StripeReaderPayment;
|
|
3024
|
+
attemptKey: string;
|
|
3025
|
+
/** The amount the payment was STARTED with (major units, before fees). */
|
|
3026
|
+
amount: number;
|
|
3027
|
+
readerId: string;
|
|
3028
|
+
}
|
|
3029
|
+
/** What `(outcome)` reports, for a host that wants to word a toast or log (the component never toasts). */
|
|
3030
|
+
type StripeReaderOutcome = {
|
|
3031
|
+
kind: 'started';
|
|
3032
|
+
payment: StripeReaderPayment;
|
|
3033
|
+
} | {
|
|
3034
|
+
kind: 'declined';
|
|
3035
|
+
payment: StripeReaderPayment;
|
|
3036
|
+
} | {
|
|
3037
|
+
kind: 'canceled';
|
|
3038
|
+
} | {
|
|
3039
|
+
kind: 'failed';
|
|
3040
|
+
} | {
|
|
3041
|
+
kind: 'refused';
|
|
3042
|
+
code: string;
|
|
3043
|
+
} | {
|
|
3044
|
+
kind: 'connection-lost';
|
|
3045
|
+
} | {
|
|
3046
|
+
kind: 'connection-restored';
|
|
3047
|
+
} |
|
|
3048
|
+
/** The panel was closed while the answer of the start was still on its way / lost: the payment is looked up again when the screen opens. The host may word it ("We are still confirming your payment"). */
|
|
3049
|
+
{
|
|
3050
|
+
kind: 'left-pending';
|
|
3051
|
+
};
|
|
3052
|
+
/**
|
|
3053
|
+
* Takes a card payment on a Stripe smart reader (S700, S710, WisePOS E): the card reader flow of the payment screen. The HOST owns the calls (it calls its own backend, which calls the
|
|
3054
|
+
* payments service; the browser never talks to the service), the component owns the screen and the flow ({@link StripeReaderFlow}):
|
|
3055
|
+
*
|
|
3056
|
+
* 1. it reads the readiness (ONE state, see `ui-stripe-reader-status`) now and every `readinessEveryMs`, and shows the ONE banner when the reader cannot be used;
|
|
3057
|
+
* 2. with `reader_ready` it shows the reader, the amount and the card-reader FEE quote (`estimateFees`, method CARD_PRESENT: cleared at once when the amount changes, "Send to the reader"
|
|
3058
|
+
* stays off until the quote for the current amount is here), the optional "Save this card" consent and "Send to the reader";
|
|
3059
|
+
* 3. while a payment waits: "Waiting for the customer to tap, insert or swipe their card on <reader>", the amount, the fees, the elapsed time and ONLY "Cancel payment";
|
|
3060
|
+
* 4. a decline shows "Card declined" with "Try again" (the SAME payment) / "Cancel payment" / "Take a manual payment instead"; a success shows the receipt link and whether the card was saved.
|
|
3061
|
+
*
|
|
3062
|
+
* Nothing else can start a payment while one is open (every start button is off, a double click and a second tab are refused by the attempt machine), the attempt key is stable per click and
|
|
3063
|
+
* REUSED when the answer is lost, and a lost connection never changes the state shown: the payment is read again by its attempt key when the connection is back. Offline / slow connections
|
|
3064
|
+
* block "Send to the reader" before it starts (payments are never queued). A manual payment is always one click away (`(manual)`).
|
|
3065
|
+
*
|
|
3066
|
+
* <ui-stripe-reader-payment [amount]="amount()" payableRef="unit:42" [getReadiness]="readiness" [startPayment]="start" [getPayment]="read" [retryPayment]="retry" [cancelPayment]="cancel"
|
|
3067
|
+
* [estimateFees]="fees" (manual)="useManual()" (connectReader)="openPairing()" (getReader)="openOrder()" (succeeded)="onPaid($event)" />
|
|
3068
|
+
*/
|
|
3069
|
+
export declare class StripeReaderPaymentComponent {
|
|
3070
|
+
protected readonly labels: UiLabelsService;
|
|
3071
|
+
private readonly destroyRef;
|
|
3072
|
+
private readonly injector;
|
|
3073
|
+
private readonly host;
|
|
3074
|
+
private readonly storage;
|
|
3075
|
+
/** The amount the customer owes before fees, major units. `null` = nothing to take yet. */
|
|
3076
|
+
readonly amount: import("@angular/core").InputSignal<number | null>;
|
|
3077
|
+
readonly currency: import("@angular/core").InputSignal<string>;
|
|
3078
|
+
/** The payable (an invoice, a balance): the attempt marker is stored under it, so a reload or a second tab finds an open payment instead of starting another. */
|
|
3079
|
+
readonly payableRef: import("@angular/core").InputSignal<string | null>;
|
|
3080
|
+
/** A key the host supplies; empty = derived from the payable / generated by the attempt machine. */
|
|
3081
|
+
readonly attemptKey: import("@angular/core").InputSignal<string | null>;
|
|
3082
|
+
/** The payable is paid (host re-render): no payment can start. */
|
|
3083
|
+
readonly paid: import("@angular/core").InputSignal<boolean>;
|
|
3084
|
+
/** Extra fields the host's backend wants with the start (the payment panel passes its date, note and allocation). */
|
|
3085
|
+
readonly startExtras: import("@angular/core").InputSignal<{
|
|
3086
|
+
receivedDate?: string;
|
|
3087
|
+
notes?: string | null;
|
|
3088
|
+
allocation?: PaymentAllocation;
|
|
3089
|
+
} | null>;
|
|
3090
|
+
readonly getReadiness: import("@angular/core").InputSignal<StripeReaderGetReadinessFn | null>;
|
|
3091
|
+
readonly startPayment: import("@angular/core").InputSignal<StripeReaderStartFn | null>;
|
|
3092
|
+
readonly getPayment: import("@angular/core").InputSignal<StripeReaderGetPaymentFn | null>;
|
|
3093
|
+
readonly retryPayment: import("@angular/core").InputSignal<StripeReaderRetryFn | null>;
|
|
3094
|
+
readonly cancelPaymentFn: import("@angular/core").InputSignal<StripeReaderCancelFn | null>;
|
|
3095
|
+
/** The CARD_PRESENT fee quote. REQUIRED: a reader payment always shows the card reader fee breakdown before the tap, so without it "Send to the reader" stays off and says the fees are not available. */
|
|
3096
|
+
readonly estimateFees: import("@angular/core").InputSignal<StripeReaderFeesFn | null>;
|
|
3097
|
+
readonly receiptUrl: import("@angular/core").InputSignal<((payment: StripeReaderPayment) => string | null | undefined) | null>;
|
|
3098
|
+
/** Turns on "Save this card for future payments" (the consent the staff records at the counter). */
|
|
3099
|
+
readonly saveCard: import("@angular/core").InputSignal<StripeReaderSaveCard | null>;
|
|
3100
|
+
/** The id of an open reader payment THIS user owns (from the host's records): with it the "reader busy" banner offers "Cancel that payment". */
|
|
3101
|
+
readonly ownPaymentId: import("@angular/core").InputSignal<string | null>;
|
|
3102
|
+
/** `true` = the full reader screen; `false` = only the banner (the payment screen is in manual mode but still tells that a reader could be used). */
|
|
3103
|
+
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
3104
|
+
/** A manual payment path exists: "Enter the card manually instead" / "Take a manual payment instead" show and the offline text says a manual payment can still be recorded. */
|
|
3105
|
+
readonly manualAvailable: import("@angular/core").InputSignal<boolean>;
|
|
3106
|
+
/** The buttons that start something do nothing (a read-only user). Cancel stays possible. */
|
|
3107
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
3108
|
+
/**
|
|
3109
|
+
* Library 2026-11-21 (additive; NOT set by the payment panel's Stripe body, so nothing in the library uses it): `true` draws NO "checking" placeholder while there is no usable answer (a usable answer, or a payment, is still drawn here).
|
|
3110
|
+
* It is for a host that shows its own checking text elsewhere. NOTE: `ui-stripe-reader-banner` (the payment panel's top banner) shows NOTHING while the read is pending, failed or `checking`, so with `hideChecking` nobody speaks for that state.
|
|
3111
|
+
* Default `false`: the screen shows its own checking state with "Check again" (also inside the payment panel).
|
|
3112
|
+
*/
|
|
3113
|
+
readonly hideChecking: import("@angular/core").InputSignal<boolean>;
|
|
3114
|
+
/**
|
|
3115
|
+
* Library 2026-11-21 (additive): the payment panel's top banner (`ctx.readerBanner`) is ALWAYS on screen and shows the "get a card reader" message when the organization has NO usable reader. With this input this screen draws no readiness banner for
|
|
3116
|
+
* those states (`no_reader`, `unsupported_only`, `merchant_not_ready`) so the message never shows twice, and keeps everything else: its own "checking", offline, busy (with "Cancel that payment"), connection notices, the reader choice, fees, "Send to the reader" and the
|
|
3117
|
+
* payment boxes. A standalone host that keeps `ui-stripe-reader-banner` above its tab bar passes it too. Default `false`.
|
|
3118
|
+
*/
|
|
3119
|
+
readonly hideBanner: import("@angular/core").InputSignal<boolean>;
|
|
3120
|
+
/** Asked right before "Send to the reader" starts anything; `false` = do not start (the payment panel validates its own fields here and shows their messages). */
|
|
3121
|
+
readonly beforeStart: import("@angular/core").InputSignal<(() => boolean) | null>;
|
|
3122
|
+
readonly readinessEveryMs: import("@angular/core").InputSignal<number>;
|
|
3123
|
+
readonly readinessTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3124
|
+
/** How often the waiting payment's status is read (ms; default 2000). Clamped to 500..30 000 ms. */
|
|
3125
|
+
readonly pollMs: import("@angular/core").InputSignal<number>;
|
|
3126
|
+
readonly pollTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3127
|
+
/** After a lost start answer (or an adopted attempt) the service's "no payment for this attempt key" is believed only after this long, counted from the moment recovery starts. Default 6 minutes: the service's 5-minute create window plus a minute (ms). */
|
|
3128
|
+
readonly lostAnswerGraceMs: import("@angular/core").InputSignal<number>;
|
|
3129
|
+
/** A start / retry / cancel call slower than this is unreachable (ms): a start is looked up by its attempt key, a retry / cancel leaves the payment as it was. */
|
|
3130
|
+
readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3131
|
+
/** A quote slower than this: "Try again" is offered and Send stays off (ms). */
|
|
3132
|
+
readonly feeTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3133
|
+
/** Managed environments where `navigator.onLine === false` is a false negative: the browser's offline flag does not block (default false). */
|
|
3134
|
+
readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
|
|
3135
|
+
/** The user wants to enter the card manually (the host switches its method). Emitted only when nothing is waiting on the reader. */
|
|
3136
|
+
readonly manual: import("@angular/core").OutputEmitterRef<void>;
|
|
3137
|
+
/** "Connect a reader": the host opens its pairing panel. */
|
|
3138
|
+
readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
|
|
3139
|
+
/** "Get a card reader": the host opens its order flow. */
|
|
3140
|
+
readonly getReader: import("@angular/core").OutputEmitterRef<void>;
|
|
3141
|
+
/** "Set up payments": the host opens payment setup. */
|
|
3142
|
+
readonly openSetup: import("@angular/core").OutputEmitterRef<void>;
|
|
3143
|
+
/** The payment succeeded. */
|
|
3144
|
+
readonly succeeded: import("@angular/core").OutputEmitterRef<StripeReaderSucceededEvent>;
|
|
3145
|
+
/** Everything else that happened, for the host to word. */
|
|
3146
|
+
readonly outcome: import("@angular/core").OutputEmitterRef<StripeReaderOutcome>;
|
|
3147
|
+
/** A readiness read finished: its state (`null` = no answer / the read failed). The payment panel's FIRST answer decides whether the reader is the default. */
|
|
3148
|
+
readonly readinessChange: import("@angular/core").OutputEmitterRef<StripeReaderReadinessState | null>;
|
|
3149
|
+
/** A payment is open on the reader (starting, waiting, declined, cancelling...): the host locks everything else. */
|
|
3150
|
+
readonly busyChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
3151
|
+
readonly readiness: import("@angular/core").WritableSignal<StripeReaderReadiness | null>;
|
|
3152
|
+
protected readonly readinessLoading: import("@angular/core").WritableSignal<boolean>;
|
|
3153
|
+
readonly selectedReaderId: import("@angular/core").WritableSignal<string>;
|
|
3154
|
+
readonly saveChecked: import("@angular/core").WritableSignal<boolean>;
|
|
3155
|
+
/** The card cannot be kept on this account (`terminal_save_needs_direct`): the choice is hidden, the payment can still be taken. */
|
|
3156
|
+
protected readonly saveUnavailable: import("@angular/core").WritableSignal<boolean>;
|
|
3157
|
+
/** `quote_changed`: the total shown is not the total any more; Send stays off until the payer confirms the new one. */
|
|
3158
|
+
protected readonly quoteChanged: import("@angular/core").WritableSignal<{
|
|
3159
|
+
total: number | null;
|
|
3160
|
+
} | null>;
|
|
3161
|
+
readonly closeBlocked: import("@angular/core").WritableSignal<boolean>;
|
|
3162
|
+
protected readonly cancellingBusy: import("@angular/core").WritableSignal<boolean>;
|
|
3163
|
+
/** The "Cancel that payment" call did not answer in time: the payment may still be open (a notice with "Check again" shows instead of the banner). */
|
|
3164
|
+
protected readonly cancelTimedOut: import("@angular/core").WritableSignal<boolean>;
|
|
3165
|
+
protected readonly quote: import("@angular/core").WritableSignal<StripeFees | null>;
|
|
3166
|
+
/** The amount the quote was asked for (a quote is shown only while it matches the amount on screen). */
|
|
3167
|
+
private readonly quotedFor;
|
|
3168
|
+
protected readonly quoting: import("@angular/core").WritableSignal<boolean>;
|
|
3169
|
+
protected readonly quoteFailed: import("@angular/core").WritableSignal<boolean>;
|
|
3170
|
+
private readonly quoteTick;
|
|
3171
|
+
private quoteRun;
|
|
3172
|
+
/** What the held quote was asked for: a phase change alone (a refusal, a canceled payment) keeps a held quote of the same amount; the service still checks the total (`quote_changed`). */
|
|
3173
|
+
private heldEstimate;
|
|
3174
|
+
private heldAmount;
|
|
3175
|
+
private heldTick;
|
|
3176
|
+
private readonly builtIns;
|
|
3177
|
+
readonly attempt: PaymentAttempt;
|
|
3178
|
+
readonly flow: StripeReaderFlow;
|
|
3179
|
+
/** The user pressed a button that changes the screen: when the phase changes, focus moves to the new box (the pressed button is gone). */
|
|
3180
|
+
private acted;
|
|
3181
|
+
private lastPhase;
|
|
3182
|
+
private destroyed;
|
|
3183
|
+
private readRun;
|
|
3184
|
+
private readTimer;
|
|
3185
|
+
protected readonly ready: import("@angular/core").Signal<boolean>;
|
|
3186
|
+
protected readonly freeReaders: import("@angular/core").Signal<import("@forgeroute/ui/stripe").StripeReader[]>;
|
|
3187
|
+
protected readonly readerId: import("@angular/core").Signal<string>;
|
|
3188
|
+
protected readonly readerOptions: import("@angular/core").Signal<{
|
|
3189
|
+
value: string;
|
|
3190
|
+
label: string;
|
|
3191
|
+
}[]>;
|
|
3192
|
+
/** The name of the reader the payment is (or would be) on. */
|
|
3193
|
+
protected readonly readerName: import("@angular/core").Signal<string>;
|
|
3194
|
+
/** Why a reader payment cannot be started before it starts: offline, a slow connection, a browser that cannot pay safely. Empty = none. */
|
|
3195
|
+
protected readonly blockReason: import("@angular/core").Signal<"" | "offline" | "slow_connection" | "unsupported_browser">;
|
|
3196
|
+
protected readonly blockText: import("@angular/core").Signal<string>;
|
|
3197
|
+
/** No fee quote call: a reader payment must always show the CARD_PRESENT breakdown before the tap, so nothing can be sent. */
|
|
3198
|
+
protected readonly feesMissing: import("@angular/core").Signal<boolean>;
|
|
3199
|
+
/**
|
|
3200
|
+
* The ONE message block of the idle screen, by precedence: already paid > an earlier payment still being confirmed > a cancel that timed out > the total changed > a refusal of the last start. The readiness banner and
|
|
3201
|
+
* the "blocked" notice show only when none of these does (and never in the canceled / failed boxes).
|
|
3202
|
+
*/
|
|
3203
|
+
protected readonly idleNotice: import("@angular/core").Signal<"paid" | "pending-other" | "cancel-timeout" | "quote-changed" | "refusal" | null>;
|
|
3204
|
+
protected readonly showBlocked: import("@angular/core").Signal<boolean>;
|
|
3205
|
+
/**
|
|
3206
|
+
* Library source 2026-11-21: this screen is showing a card reader message of its own right now (the readiness banner, a connection notice, one of the idle notices, or a payment box), so a second reader banner elsewhere
|
|
3207
|
+
* on the page must step aside. `false` when it shows nothing about the reader (a ready reader and an idle screen). Mirrors the template exactly (with `hideBanner` the no-reader states are not drawn here, so they do not count).
|
|
3208
|
+
*/
|
|
3209
|
+
readonly ownsReaderMessage: import("@angular/core").Signal<boolean>;
|
|
3210
|
+
/**
|
|
3211
|
+
* The readiness the banner is drawn from: a usable answer only. No answer (loading, failed, slow) and a service `checking` (old name `unknown`) that does not need the account's attention are NOT shown as a state of their own (there is no "unknown" banner): `null`, and the status component's "Checking the card reader" placeholder speaks (unless the host set `hideChecking`; the top banner never speaks for that state).
|
|
3212
|
+
*/
|
|
3213
|
+
protected readonly shownReadiness: import("@angular/core").Signal<StripeReaderReadiness | null>;
|
|
3214
|
+
protected readonly showReadiness: import("@angular/core").Signal<boolean>;
|
|
3215
|
+
/** The own payment that holds a reader, when the host knows it. */
|
|
3216
|
+
protected readonly busyOwnPaymentId: import("@angular/core").Signal<string | null>;
|
|
3217
|
+
private readonly amountValid;
|
|
3218
|
+
/** The quote of the amount on screen (a quote for another amount is never shown). */
|
|
3219
|
+
protected readonly currentQuote: import("@angular/core").Signal<StripeFees | null>;
|
|
3220
|
+
protected readonly feeRows: import("@angular/core").Signal<{
|
|
3221
|
+
key: string;
|
|
3222
|
+
label: string;
|
|
3223
|
+
value: string;
|
|
3224
|
+
}[]>;
|
|
3225
|
+
/** Everything that must be true before "Send to the reader" works. */
|
|
3226
|
+
readonly canStart: import("@angular/core").Signal<boolean>;
|
|
3227
|
+
protected readonly startLabel: import("@angular/core").Signal<string>;
|
|
3228
|
+
/** The sentence the staff attests by ticking the box (the host's `consentText`, else the library default) plus the fee clause when the payer pays fees. `saveCard.textVersion` must name exactly this text. */
|
|
3229
|
+
protected readonly consentText: import("@angular/core").Signal<string>;
|
|
3230
|
+
/** A reload / second tab found an undecided attempt of ANOTHER method (a manual card): it is never followed as a reader payment, only worded. */
|
|
3231
|
+
protected readonly foreignPending: import("@angular/core").Signal<boolean>;
|
|
3232
|
+
protected readonly degraded: import("@angular/core").Signal<import("@forgeroute/ui/stripe").StripeReaderDegraded | null>;
|
|
3233
|
+
protected readonly checkingText: import("@angular/core").Signal<string>;
|
|
3234
|
+
/** What was actually charged (the service's `amountCents`), else the quote total of the open payment; `null` when neither is known. */
|
|
3235
|
+
private readonly chargedTotal;
|
|
3236
|
+
/** The amount line of the waiting screen: the total when known, else the base amount (fees may be added). Always present once an amount is known, quote or not (also after a reload that adopted the payment). */
|
|
3237
|
+
protected readonly waitAmount: import("@angular/core").Signal<string>;
|
|
3238
|
+
protected readonly confirmTotalText: import("@angular/core").Signal<string>;
|
|
3239
|
+
protected readonly existingPaymentHref: import("@angular/core").Signal<string | null>;
|
|
3240
|
+
protected readonly elapsedText: import("@angular/core").Signal<string>;
|
|
3241
|
+
protected readonly waitTitle: import("@angular/core").Signal<string>;
|
|
3242
|
+
protected readonly waitText: import("@angular/core").Signal<string>;
|
|
3243
|
+
private readonly waitKey;
|
|
3244
|
+
protected readonly refusalText: import("@angular/core").Signal<string>;
|
|
3245
|
+
protected readonly succeededText: import("@angular/core").Signal<string>;
|
|
3246
|
+
protected readonly cardLine: import("@angular/core").Signal<string>;
|
|
3247
|
+
/** What happened to the "save this card" choice: never "saved" unless the service says so. */
|
|
3248
|
+
protected readonly cardSaveText: import("@angular/core").Signal<string>;
|
|
3249
|
+
protected readonly receiptHref: import("@angular/core").Signal<string | null>;
|
|
3250
|
+
/** What the polite region says: one text, the most important thing first, changing with every state. */
|
|
3251
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
3252
|
+
constructor();
|
|
3253
|
+
private refreshBuiltIns;
|
|
3254
|
+
/** Reads the readiness now ("Check again"). A slow (over `readinessTimeoutMs`) or failed read leaves NO answer: the banner says it could not be checked and nothing is started. */
|
|
3255
|
+
loadReadiness(): Promise<void>;
|
|
3256
|
+
private scheduleReadiness;
|
|
3257
|
+
/** "Send to the reader". Synchronous up to the attempt lock: a double click sends ONE payment. */
|
|
3258
|
+
start(): void;
|
|
3259
|
+
protected onSaveChange(checked: boolean): void;
|
|
3260
|
+
/** "Confirm the new total": the payer saw the new total, Send is available again. */
|
|
3261
|
+
protected confirmNewTotal(): void;
|
|
3262
|
+
protected retry(): void;
|
|
3263
|
+
/** "Check again" of an unconfirmed payment: reads the attempt key once more (found: followed; still none after the grace: released, "Start again"). */
|
|
3264
|
+
protected recheck(): void;
|
|
3265
|
+
protected dismissCancelTimeout(): void;
|
|
3266
|
+
protected cancelPayment(): void;
|
|
3267
|
+
protected startAgain(): void;
|
|
3268
|
+
protected retryQuote(): void;
|
|
3269
|
+
/** "Take a manual payment instead" while a payment is open: the payment is canceled FIRST; the host is told only when the service confirmed it. */
|
|
3270
|
+
protected switchToManual(): Promise<void>;
|
|
3271
|
+
/** Cancels an open reader payment and resolves true when nothing is open any more (nothing was waiting, or the service confirmed the cancel). False = the payment is STILL open. */
|
|
3272
|
+
cancelAndWait(): Promise<boolean>;
|
|
3273
|
+
/** Is a reader payment open (starting, waiting, declined, cancelling...)? */
|
|
3274
|
+
isLocked(): boolean;
|
|
3275
|
+
/** The panel wants to close: allowed (true) only when nothing is open. Otherwise the warning shows and focus goes to "Cancel payment". */
|
|
3276
|
+
requestClose(): boolean;
|
|
3277
|
+
/** Fire-and-forget cancel of an open payment (the host closed the panel anyway). Never claims the payment is canceled. */
|
|
3278
|
+
cancelBestEffort(): void;
|
|
3279
|
+
/** "Cancel that payment" of the busy banner: cancels the user's own payment that holds the reader, then reads the readiness again. */
|
|
3280
|
+
protected cancelBusy(id: string): Promise<void>;
|
|
3281
|
+
private onFlowEvent;
|
|
3282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderPaymentComponent, never>;
|
|
3283
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderPaymentComponent, "ui-stripe-reader-payment", never, {
|
|
3284
|
+
"amount": {
|
|
3285
|
+
"alias": "amount";
|
|
3286
|
+
"required": false;
|
|
3287
|
+
"isSignal": true;
|
|
3288
|
+
};
|
|
3289
|
+
"currency": {
|
|
3290
|
+
"alias": "currency";
|
|
3291
|
+
"required": false;
|
|
3292
|
+
"isSignal": true;
|
|
3293
|
+
};
|
|
3294
|
+
"payableRef": {
|
|
3295
|
+
"alias": "payableRef";
|
|
3296
|
+
"required": false;
|
|
3297
|
+
"isSignal": true;
|
|
3298
|
+
};
|
|
3299
|
+
"attemptKey": {
|
|
3300
|
+
"alias": "attemptKey";
|
|
3301
|
+
"required": false;
|
|
3302
|
+
"isSignal": true;
|
|
3303
|
+
};
|
|
3304
|
+
"paid": {
|
|
3305
|
+
"alias": "paid";
|
|
3306
|
+
"required": false;
|
|
3307
|
+
"isSignal": true;
|
|
3308
|
+
};
|
|
3309
|
+
"startExtras": {
|
|
3310
|
+
"alias": "startExtras";
|
|
3311
|
+
"required": false;
|
|
3312
|
+
"isSignal": true;
|
|
3313
|
+
};
|
|
3314
|
+
"getReadiness": {
|
|
3315
|
+
"alias": "getReadiness";
|
|
3316
|
+
"required": false;
|
|
3317
|
+
"isSignal": true;
|
|
3318
|
+
};
|
|
3319
|
+
"startPayment": {
|
|
3320
|
+
"alias": "startPayment";
|
|
3321
|
+
"required": false;
|
|
3322
|
+
"isSignal": true;
|
|
3323
|
+
};
|
|
3324
|
+
"getPayment": {
|
|
3325
|
+
"alias": "getPayment";
|
|
3326
|
+
"required": false;
|
|
3327
|
+
"isSignal": true;
|
|
3328
|
+
};
|
|
3329
|
+
"retryPayment": {
|
|
3330
|
+
"alias": "retryPayment";
|
|
3331
|
+
"required": false;
|
|
3332
|
+
"isSignal": true;
|
|
3333
|
+
};
|
|
3334
|
+
"cancelPaymentFn": {
|
|
3335
|
+
"alias": "cancelPayment";
|
|
3336
|
+
"required": false;
|
|
3337
|
+
"isSignal": true;
|
|
3338
|
+
};
|
|
3339
|
+
"estimateFees": {
|
|
3340
|
+
"alias": "estimateFees";
|
|
3341
|
+
"required": false;
|
|
3342
|
+
"isSignal": true;
|
|
3343
|
+
};
|
|
3344
|
+
"receiptUrl": {
|
|
3345
|
+
"alias": "receiptUrl";
|
|
3346
|
+
"required": false;
|
|
3347
|
+
"isSignal": true;
|
|
3348
|
+
};
|
|
3349
|
+
"saveCard": {
|
|
3350
|
+
"alias": "saveCard";
|
|
3351
|
+
"required": false;
|
|
3352
|
+
"isSignal": true;
|
|
3353
|
+
};
|
|
3354
|
+
"ownPaymentId": {
|
|
3355
|
+
"alias": "ownPaymentId";
|
|
3356
|
+
"required": false;
|
|
3357
|
+
"isSignal": true;
|
|
3358
|
+
};
|
|
3359
|
+
"active": {
|
|
3360
|
+
"alias": "active";
|
|
3361
|
+
"required": false;
|
|
3362
|
+
"isSignal": true;
|
|
3363
|
+
};
|
|
3364
|
+
"manualAvailable": {
|
|
3365
|
+
"alias": "manualAvailable";
|
|
3366
|
+
"required": false;
|
|
3367
|
+
"isSignal": true;
|
|
3368
|
+
};
|
|
3369
|
+
"disabled": {
|
|
3370
|
+
"alias": "disabled";
|
|
3371
|
+
"required": false;
|
|
3372
|
+
"isSignal": true;
|
|
3373
|
+
};
|
|
3374
|
+
"hideChecking": {
|
|
3375
|
+
"alias": "hideChecking";
|
|
3376
|
+
"required": false;
|
|
3377
|
+
"isSignal": true;
|
|
3378
|
+
};
|
|
3379
|
+
"hideBanner": {
|
|
3380
|
+
"alias": "hideBanner";
|
|
3381
|
+
"required": false;
|
|
3382
|
+
"isSignal": true;
|
|
3383
|
+
};
|
|
3384
|
+
"beforeStart": {
|
|
3385
|
+
"alias": "beforeStart";
|
|
3386
|
+
"required": false;
|
|
3387
|
+
"isSignal": true;
|
|
3388
|
+
};
|
|
3389
|
+
"readinessEveryMs": {
|
|
3390
|
+
"alias": "readinessEveryMs";
|
|
3391
|
+
"required": false;
|
|
3392
|
+
"isSignal": true;
|
|
3393
|
+
};
|
|
3394
|
+
"readinessTimeoutMs": {
|
|
3395
|
+
"alias": "readinessTimeoutMs";
|
|
3396
|
+
"required": false;
|
|
3397
|
+
"isSignal": true;
|
|
3398
|
+
};
|
|
3399
|
+
"pollMs": {
|
|
3400
|
+
"alias": "pollMs";
|
|
3401
|
+
"required": false;
|
|
3402
|
+
"isSignal": true;
|
|
3403
|
+
};
|
|
3404
|
+
"pollTimeoutMs": {
|
|
3405
|
+
"alias": "pollTimeoutMs";
|
|
3406
|
+
"required": false;
|
|
3407
|
+
"isSignal": true;
|
|
3408
|
+
};
|
|
3409
|
+
"lostAnswerGraceMs": {
|
|
3410
|
+
"alias": "lostAnswerGraceMs";
|
|
3411
|
+
"required": false;
|
|
3412
|
+
"isSignal": true;
|
|
3413
|
+
};
|
|
3414
|
+
"requestTimeoutMs": {
|
|
3415
|
+
"alias": "requestTimeoutMs";
|
|
3416
|
+
"required": false;
|
|
3417
|
+
"isSignal": true;
|
|
3418
|
+
};
|
|
3419
|
+
"feeTimeoutMs": {
|
|
3420
|
+
"alias": "feeTimeoutMs";
|
|
3421
|
+
"required": false;
|
|
3422
|
+
"isSignal": true;
|
|
3423
|
+
};
|
|
3424
|
+
"offlineOverride": {
|
|
3425
|
+
"alias": "offlineOverride";
|
|
3426
|
+
"required": false;
|
|
3427
|
+
"isSignal": true;
|
|
3428
|
+
};
|
|
3429
|
+
}, {
|
|
3430
|
+
"manual": "manual";
|
|
3431
|
+
"connectReader": "connectReader";
|
|
3432
|
+
"getReader": "getReader";
|
|
3433
|
+
"openSetup": "openSetup";
|
|
3434
|
+
"succeeded": "succeeded";
|
|
3435
|
+
"outcome": "outcome";
|
|
3436
|
+
"readinessChange": "readinessChange";
|
|
3437
|
+
"busyChange": "busyChange";
|
|
3438
|
+
}, never, never, true, never>;
|
|
3439
|
+
}
|
|
3440
|
+
/** What `(outcome)` reports. */
|
|
3441
|
+
type StripeReadersOutcome = {
|
|
3442
|
+
kind: 'registered';
|
|
3443
|
+
reader: StripeReader;
|
|
3444
|
+
} | {
|
|
3445
|
+
kind: 'renamed';
|
|
3446
|
+
reader: StripeReader;
|
|
3447
|
+
} | {
|
|
3448
|
+
kind: 'removed';
|
|
3449
|
+
readerId: string;
|
|
3450
|
+
} | {
|
|
3451
|
+
kind: 'location-created';
|
|
3452
|
+
location: StripeReaderLocation;
|
|
3453
|
+
} | {
|
|
3454
|
+
kind: 'failed';
|
|
3455
|
+
action: 'load' | 'register' | 'rename' | 'remove' | 'location';
|
|
3456
|
+
code: string;
|
|
3457
|
+
message: string;
|
|
3458
|
+
};
|
|
3459
|
+
type Busy = '' | 'load' | 'register' | 'rename' | 'remove' | 'location';
|
|
3460
|
+
/**
|
|
3461
|
+
* Staff screen to connect and manage card readers (put it inside the host's own side panel). Everything is a host call (the browser never talks to the payments service):
|
|
3462
|
+
*
|
|
3463
|
+
* - the banner is the SAME single readiness state as the payment screen (`ui-stripe-reader-status`, without "Connect a reader": you are already here);
|
|
3464
|
+
* - "Connect a reader": the registration code the reader shows (Stripe Reader S700 / S710: Settings, generate a pairing code; BBPOS WisePOS E: press 0-7-1-3-9 on the home screen), a name and a
|
|
3465
|
+
* location. The code is typed once, cleared from the form BEFORE the call and never shown, stored or logged again, success or failure;
|
|
3466
|
+
* - the list shows each reader with its model and a status badge (Online / Offline / Registering, Busy, Not supported) and lets staff rename or remove it (removing asks for confirmation; a reader that
|
|
3467
|
+
* holds a payment is refused with `reader_busy`: cancel the payment first);
|
|
3468
|
+
* - "Get a card reader" is an output: the host opens its order flow.
|
|
3469
|
+
*
|
|
3470
|
+
* <ui-stripe-readers [getReadiness]="readiness" [registerReader]="register" [renameReader]="rename" [removeReader]="remove" [listLocations]="locations" [createLocation]="createLocation"
|
|
3471
|
+
* (getReader)="openOrder()" (changed)="refreshPayments()" />
|
|
3472
|
+
*/
|
|
3473
|
+
export declare class StripeReadersComponent {
|
|
3474
|
+
protected readonly labels: UiLabelsService;
|
|
3475
|
+
private readonly destroyRef;
|
|
3476
|
+
private static seq;
|
|
3477
|
+
/** Unique per instance: two screens on one page never share an id. */
|
|
3478
|
+
protected readonly ids: string;
|
|
3479
|
+
/** Reads `GET /v1/terminal/readiness` through the host: the readers and the ONE state. */
|
|
3480
|
+
readonly getReadiness: import("@angular/core").InputSignal<StripeReaderGetReadinessFn | null>;
|
|
3481
|
+
/** Registers a reader (`POST /v1/terminal/readers`). */
|
|
3482
|
+
readonly registerReader: import("@angular/core").InputSignal<StripeReaderRegisterFn | null>;
|
|
3483
|
+
readonly renameReader: import("@angular/core").InputSignal<StripeReaderRenameFn | null>;
|
|
3484
|
+
/** Deletes a reader. Refused with 409 `reader_busy` while a payment waits on it. */
|
|
3485
|
+
readonly removeReader: import("@angular/core").InputSignal<StripeReaderRemoveFn | null>;
|
|
3486
|
+
/** The locations a reader can be registered to (`GET /v1/terminal/locations`). */
|
|
3487
|
+
readonly listLocations: import("@angular/core").InputSignal<StripeReaderListLocationsFn | null>;
|
|
3488
|
+
/** Creates a location (`POST /v1/terminal/locations`); without it only existing locations can be chosen. */
|
|
3489
|
+
readonly createLocation: import("@angular/core").InputSignal<StripeReaderCreateLocationFn | null>;
|
|
3490
|
+
/** The label the new reader's name starts with (empty by default). */
|
|
3491
|
+
readonly defaultLabel: import("@angular/core").InputSignal<string>;
|
|
3492
|
+
/** The value the address country is created with. */
|
|
3493
|
+
readonly country: import("@angular/core").InputSignal<string>;
|
|
3494
|
+
/** A host call (read, register, rename, remove, create location) slower than this is unreachable (ms): the screen says so, becomes usable again and reads the list again (the call may have gone through). */
|
|
3495
|
+
readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3496
|
+
/** "Get a card reader": the host opens its order flow. */
|
|
3497
|
+
readonly getReader: import("@angular/core").OutputEmitterRef<void>;
|
|
3498
|
+
/** "Set up payments". */
|
|
3499
|
+
readonly openSetup: import("@angular/core").OutputEmitterRef<void>;
|
|
3500
|
+
/** A reader was added, renamed or removed (the host refreshes whatever shows readers). */
|
|
3501
|
+
readonly changed: import("@angular/core").OutputEmitterRef<void>;
|
|
3502
|
+
readonly outcome: import("@angular/core").OutputEmitterRef<StripeReadersOutcome>;
|
|
3503
|
+
protected readonly readiness: import("@angular/core").WritableSignal<StripeReaderReadiness | null>;
|
|
3504
|
+
protected readonly readers: import("@angular/core").Signal<StripeReader[]>;
|
|
3505
|
+
protected readonly locations: import("@angular/core").WritableSignal<readonly StripeReaderLocation[]>;
|
|
3506
|
+
protected readonly busy: import("@angular/core").WritableSignal<Busy>;
|
|
3507
|
+
protected readonly error: import("@angular/core").WritableSignal<{
|
|
3508
|
+
action: string;
|
|
3509
|
+
text: string;
|
|
3510
|
+
} | null>;
|
|
3511
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
3512
|
+
protected readonly supportedModels: string;
|
|
3513
|
+
protected readonly code: import("@angular/core").WritableSignal<string>;
|
|
3514
|
+
protected readonly label: import("@angular/core").WritableSignal<string>;
|
|
3515
|
+
protected readonly locationId: import("@angular/core").WritableSignal<string>;
|
|
3516
|
+
protected readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
3517
|
+
protected readonly showNewLocation: import("@angular/core").WritableSignal<boolean>;
|
|
3518
|
+
protected readonly locName: import("@angular/core").WritableSignal<string>;
|
|
3519
|
+
protected readonly locLine1: import("@angular/core").WritableSignal<string>;
|
|
3520
|
+
protected readonly locCity: import("@angular/core").WritableSignal<string>;
|
|
3521
|
+
protected readonly locState: import("@angular/core").WritableSignal<string>;
|
|
3522
|
+
protected readonly locPostal: import("@angular/core").WritableSignal<string>;
|
|
3523
|
+
protected readonly locTouched: import("@angular/core").WritableSignal<boolean>;
|
|
3524
|
+
protected readonly renamingId: import("@angular/core").WritableSignal<string>;
|
|
3525
|
+
protected readonly renameValue: import("@angular/core").WritableSignal<string>;
|
|
3526
|
+
protected readonly renameTouched: import("@angular/core").WritableSignal<boolean>;
|
|
3527
|
+
protected readonly removing: import("@angular/core").WritableSignal<StripeReader | null>;
|
|
3528
|
+
protected readonly removeError: import("@angular/core").WritableSignal<string>;
|
|
3529
|
+
private readonly fields;
|
|
3530
|
+
/** The same rule as the service (`registrationCode`: 3 to 100 letters, digits or hyphens): an invalid code is never sent. Empty is the built-in "required" message. */
|
|
3531
|
+
protected readonly codeError: import("@angular/core").Signal<string>;
|
|
3532
|
+
protected readonly hasInvalid: import("@angular/core").Signal<boolean>;
|
|
3533
|
+
protected readonly locationOptions: import("@angular/core").Signal<{
|
|
3534
|
+
value: string;
|
|
3535
|
+
label: string;
|
|
3536
|
+
}[]>;
|
|
3537
|
+
protected readonly removeText: import("@angular/core").Signal<string>;
|
|
3538
|
+
private destroyed;
|
|
3539
|
+
private loadRun;
|
|
3540
|
+
/** Runs one host call raced against the request timeout (a call that never answers cannot leave the screen busy forever); a timeout rejects with `code: 'request_timeout'`. */
|
|
3541
|
+
private call;
|
|
3542
|
+
constructor();
|
|
3543
|
+
protected name(reader: StripeReader): string;
|
|
3544
|
+
protected model(reader: StripeReader): string;
|
|
3545
|
+
protected statusLabel(reader: StripeReader): string;
|
|
3546
|
+
protected statusVariant(reader: StripeReader): 'green' | 'slate' | 'sky';
|
|
3547
|
+
/** Reads the readiness (the list and the banner). A failed or slow read leaves the list as it was and says so. */
|
|
3548
|
+
load(quiet?: boolean): Promise<void>;
|
|
3549
|
+
private loadLocations;
|
|
3550
|
+
private fail;
|
|
3551
|
+
/** "Connect reader". The code is read, then cleared from the form BEFORE the call: it is never shown or kept again, whatever the answer. */
|
|
3552
|
+
register(): Promise<void>;
|
|
3553
|
+
protected startRename(reader: StripeReader): void;
|
|
3554
|
+
protected saveRename(reader: StripeReader): Promise<void>;
|
|
3555
|
+
protected askRemove(reader: StripeReader): void;
|
|
3556
|
+
protected cancelRemove(): void;
|
|
3557
|
+
protected confirmRemove(): Promise<void>;
|
|
3558
|
+
protected createNewLocation(): Promise<void>;
|
|
3559
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReadersComponent, never>;
|
|
3560
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReadersComponent, "ui-stripe-readers", never, {
|
|
3561
|
+
"getReadiness": {
|
|
3562
|
+
"alias": "getReadiness";
|
|
3563
|
+
"required": false;
|
|
3564
|
+
"isSignal": true;
|
|
3565
|
+
};
|
|
3566
|
+
"registerReader": {
|
|
3567
|
+
"alias": "registerReader";
|
|
3568
|
+
"required": false;
|
|
3569
|
+
"isSignal": true;
|
|
3570
|
+
};
|
|
3571
|
+
"renameReader": {
|
|
3572
|
+
"alias": "renameReader";
|
|
3573
|
+
"required": false;
|
|
3574
|
+
"isSignal": true;
|
|
3575
|
+
};
|
|
3576
|
+
"removeReader": {
|
|
3577
|
+
"alias": "removeReader";
|
|
3578
|
+
"required": false;
|
|
3579
|
+
"isSignal": true;
|
|
3580
|
+
};
|
|
3581
|
+
"listLocations": {
|
|
3582
|
+
"alias": "listLocations";
|
|
3583
|
+
"required": false;
|
|
3584
|
+
"isSignal": true;
|
|
3585
|
+
};
|
|
3586
|
+
"createLocation": {
|
|
3587
|
+
"alias": "createLocation";
|
|
3588
|
+
"required": false;
|
|
3589
|
+
"isSignal": true;
|
|
3590
|
+
};
|
|
3591
|
+
"defaultLabel": {
|
|
3592
|
+
"alias": "defaultLabel";
|
|
3593
|
+
"required": false;
|
|
3594
|
+
"isSignal": true;
|
|
3595
|
+
};
|
|
3596
|
+
"country": {
|
|
3597
|
+
"alias": "country";
|
|
3598
|
+
"required": false;
|
|
3599
|
+
"isSignal": true;
|
|
3600
|
+
};
|
|
3601
|
+
"requestTimeoutMs": {
|
|
3602
|
+
"alias": "requestTimeoutMs";
|
|
3603
|
+
"required": false;
|
|
3604
|
+
"isSignal": true;
|
|
3605
|
+
};
|
|
3606
|
+
}, {
|
|
3607
|
+
"getReader": "getReader";
|
|
3608
|
+
"openSetup": "openSetup";
|
|
3609
|
+
"changed": "changed";
|
|
3610
|
+
"outcome": "outcome";
|
|
3611
|
+
}, never, never, true, never>;
|
|
3612
|
+
}
|
|
3613
|
+
/**
|
|
3614
|
+
* Stripe Connect embedded components of the card reader ordering flow (D-R6). The library holds NO `@stripe/connect-js` types or code of its own: the types below are the minimal shape it uses, and the SDK is an
|
|
3615
|
+
* OPTIONAL peer that is only imported lazily (a dynamic import in the default loader), so an app that never orders readers never downloads it and the library builds without the package installed.
|
|
3616
|
+
*
|
|
3617
|
+
* Content-Security-Policy: Connect.js loads from `https://connect-js.stripe.com` and the embedded component runs in frames of `https://js.stripe.com` (and `https://connect-js.stripe.com`): the host app must allow them
|
|
3618
|
+
* (`script-src`, `frame-src`, `connect-src` as its policy requires). See docs/card-readers.md.
|
|
3619
|
+
*/
|
|
3620
|
+
/** The Connect embedded components this library mounts (the names of the account session's `components`). */
|
|
3621
|
+
type StripeConnectEmbedName = 'terminal_hardware_shop' | 'terminal_hardware_orders';
|
|
3622
|
+
/** The element a Connect component creates (a web component). Only the setters the library calls are typed; every one is optional (a missing one is skipped). */
|
|
3623
|
+
interface StripeConnectEmbedElement extends HTMLElement {
|
|
3624
|
+
/** The customer finished the checkout (an order was placed). */
|
|
3625
|
+
setOnCheckoutFinished?(handler: (event?: unknown) => void): void;
|
|
3626
|
+
/** The component failed to load. */
|
|
3627
|
+
setOnLoadError?(handler: (event?: unknown) => void): void;
|
|
3628
|
+
/** The component started loading. */
|
|
3629
|
+
setOnLoaderStart?(handler: (event?: unknown) => void): void;
|
|
3630
|
+
}
|
|
3631
|
+
/** What `loadConnectAndInitialize` returns, as far as the library uses it. */
|
|
3632
|
+
interface StripeConnectInstanceLike {
|
|
3633
|
+
create(component: StripeConnectEmbedName): StripeConnectEmbedElement;
|
|
3634
|
+
logout?(): void | Promise<void>;
|
|
3635
|
+
}
|
|
3636
|
+
/** What the loader is given. `fetchClientSecret` is called by Connect.js whenever it needs a (new) account session secret; the library never keeps what it returns. */
|
|
3637
|
+
interface StripeConnectInitOptions {
|
|
3638
|
+
publishableKey: string;
|
|
3639
|
+
fetchClientSecret: () => Promise<string>;
|
|
3640
|
+
appearance?: Record<string, unknown> | null;
|
|
3641
|
+
}
|
|
3642
|
+
/** Loads and initialises Connect.js: resolves the instance (or `null` when it could not be created). Replaceable (tests, a self-hosted loader). */
|
|
3643
|
+
type StripeConnectLoaderFn = (options: StripeConnectInitOptions) => Promise<StripeConnectInstanceLike | null>;
|
|
3644
|
+
interface ConnectSdkLike {
|
|
3645
|
+
loadConnectAndInitialize(options: {
|
|
3646
|
+
publishableKey: string;
|
|
3647
|
+
fetchClientSecret: () => Promise<string>;
|
|
3648
|
+
appearance?: Record<string, unknown>;
|
|
3649
|
+
}): {
|
|
3650
|
+
create(tag: string): unknown;
|
|
3651
|
+
logout?(): void | Promise<void>;
|
|
3652
|
+
};
|
|
3653
|
+
}
|
|
3654
|
+
/** The dynamic import of the Connect.js SDK, behind an object so a spec can replace it (internal: not part of the public API). */
|
|
3655
|
+
declare const connectSdkImporter: {
|
|
3656
|
+
load: () => Promise<ConnectSdkLike>;
|
|
3657
|
+
};
|
|
3658
|
+
/** The default loader: imports Connect.js lazily and maps the component name to Connect.js's tag (`terminal_hardware_shop` -> `terminal-hardware-shop`; verify against Stripe's current Connect.js docs). */
|
|
3659
|
+
export declare const defaultStripeConnectLoader: StripeConnectLoaderFn;
|
|
3660
|
+
/** How Connect.js is loaded. Provide your own to fake it in tests or to load it differently. Defaults to {@link defaultStripeConnectLoader}. */
|
|
3661
|
+
export declare const STRIPE_CONNECT_LOADER: InjectionToken<StripeConnectLoaderFn>;
|
|
3662
|
+
/**
|
|
3663
|
+
* Ordering card readers inside the app (D-R6): the host's backend calls the payments service (`POST /v1/terminal/hardware/account-session` `{ merchantId }` -> `{ clientSecret, expiresAt, components }`) and hands the
|
|
3664
|
+
* browser the short-lived Connect account session secret; the BROWSER NEVER talks to the payments service. The components below embed Stripe's Connect components `terminal_hardware_shop` / `terminal_hardware_orders`.
|
|
3665
|
+
*/
|
|
3666
|
+
/** What the host's `getAccountSession` answers. The secret goes to Connect.js and is never rendered, logged, stored or kept after use. */
|
|
3667
|
+
interface StripeReaderAccountSession {
|
|
3668
|
+
clientSecret: string;
|
|
3669
|
+
/** ISO time the session ends; a session that is already over is never handed to Connect.js (the host is asked for a new one). */
|
|
3670
|
+
expiresAt?: string;
|
|
3671
|
+
}
|
|
3672
|
+
type StripeReaderAccountSessionFn = () => HostResult<StripeReaderAccountSession>;
|
|
3673
|
+
/** Why the shop cannot be shown (the service's `hardware_shop_unavailable` `reason`, or `not_enabled_for_app` when the host says the capability flag `terminalHardwareShop` is off). */
|
|
3674
|
+
type StripeReaderShopUnavailableReason = 'platform_not_enabled' | 'account_not_eligible' | 'processor_refused' | 'not_enabled_for_app' | 'other';
|
|
3675
|
+
/** Where the embedded component is. `placed`: the checkout finished (an order was placed). */
|
|
3676
|
+
type StripeReaderEmbedState = 'loading' | 'ready' | 'unavailable' | 'error' | 'offline' | 'placed';
|
|
3677
|
+
/** Reads a failed `getAccountSession`: `unavailable` (with the reason) when the service said so (`hardware_shop_unavailable`, or the account is not ready to take payments), else a plain error (Retry is offered). */
|
|
3678
|
+
export declare function readerShopFailure(error: unknown): {
|
|
3679
|
+
kind: 'unavailable';
|
|
3680
|
+
reason: StripeReaderShopUnavailableReason;
|
|
3681
|
+
} | {
|
|
3682
|
+
kind: 'error';
|
|
3683
|
+
};
|
|
3684
|
+
/**
|
|
3685
|
+
* Shared behaviour of the two embed components (an abstract directive, not a component of its own): it asks the host for an account session when it mounts, hands the secret to Connect.js (and asks the host again
|
|
3686
|
+
* when Connect.js needs a fresh one), mounts the embedded component and words every state. The secret is passed on and forgotten: never rendered, logged, stored in a signal or kept after use.
|
|
3687
|
+
*/
|
|
3688
|
+
export declare abstract class StripeReaderEmbedBase {
|
|
3689
|
+
protected readonly labels: UiLabelsService;
|
|
3690
|
+
private readonly loader;
|
|
3691
|
+
private readonly destroyRef;
|
|
3692
|
+
private readonly container;
|
|
3693
|
+
private static seq;
|
|
3694
|
+
protected readonly ids: string;
|
|
3695
|
+
protected readonly models: {
|
|
3696
|
+
key: "stripeReaderShop.model.s700" | "stripeReaderShop.model.s710" | "stripeReaderShop.model.wisepos";
|
|
3697
|
+
deviceType: string;
|
|
3698
|
+
model: string;
|
|
3699
|
+
}[];
|
|
3700
|
+
/** The publishable key (`pk_...`) of the platform: not a secret. */
|
|
3701
|
+
readonly publishableKey: import("@angular/core").InputSignal<string | null>;
|
|
3702
|
+
/** The host's call to ITS backend, which calls the payments service (`POST /v1/terminal/hardware/account-session`). Called when the component mounts and whenever Connect.js asks for a refreshed secret. */
|
|
3703
|
+
readonly getAccountSession: import("@angular/core").InputSignal<StripeReaderAccountSessionFn | null>;
|
|
3704
|
+
/** The merchant capability flag `terminalHardwareShop`: `false` shows the "how to order" card at once (nothing is requested). */
|
|
3705
|
+
readonly enabled: import("@angular/core").InputSignal<boolean>;
|
|
3706
|
+
/** An address that explains how to order a reader (only https or in-app `/paths` are linked). */
|
|
3707
|
+
readonly orderHelpUrl: import("@angular/core").InputSignal<string | null>;
|
|
3708
|
+
/** Connect.js appearance (variables / overlays), passed through. */
|
|
3709
|
+
readonly appearance: import("@angular/core").InputSignal<Record<string, unknown> | null>;
|
|
3710
|
+
/** Managed environments where `navigator.onLine === false` is a false negative (default false). */
|
|
3711
|
+
readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
|
|
3712
|
+
/** An account session call slower than this is an error with "Try again" (ms). */
|
|
3713
|
+
readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3714
|
+
/** The checkout finished (an order was placed). */
|
|
3715
|
+
readonly checkoutFinished: import("@angular/core").OutputEmitterRef<void>;
|
|
3716
|
+
/** The user closed the shop (the host closes its panel). */
|
|
3717
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
3718
|
+
/** "Connect a reader": the host opens its pairing panel (`ui-stripe-readers`). */
|
|
3719
|
+
readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
|
|
3720
|
+
readonly state: import("@angular/core").WritableSignal<StripeReaderEmbedState>;
|
|
3721
|
+
/** The embedded component reported that it started its own loading (`setOnLoaderStart`); "ready" is announced only then (an element without that setter is announced when it is mounted: nothing better is known). */
|
|
3722
|
+
private readonly loaded;
|
|
3723
|
+
/** Only whether a session call exists is a reason to mount: a host that passes a NEW function on every change detection pass must not remount the shop in a loop. The latest function is read (untracked) when it is called. */
|
|
3724
|
+
private readonly hasSession;
|
|
3725
|
+
readonly unavailableReason: import("@angular/core").WritableSignal<StripeReaderShopUnavailableReason>;
|
|
3726
|
+
private readonly retryTick;
|
|
3727
|
+
private runId;
|
|
3728
|
+
private instance;
|
|
3729
|
+
private element;
|
|
3730
|
+
/** The secret of the first session of THIS mount, handed to Connect.js once and then dropped (never a signal, never rendered; a newer mount has its own holder). */
|
|
3731
|
+
private secretHolder;
|
|
3732
|
+
private destroyed;
|
|
3733
|
+
/** The Connect component this one mounts. */
|
|
3734
|
+
protected abstract component(): StripeConnectEmbedName;
|
|
3735
|
+
protected readonly loadingText: import("@angular/core").Signal<string>;
|
|
3736
|
+
protected readonly unavailableText: import("@angular/core").Signal<string>;
|
|
3737
|
+
protected readonly helpHref: import("@angular/core").Signal<string | null>;
|
|
3738
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
3739
|
+
constructor();
|
|
3740
|
+
/** "Try again". */
|
|
3741
|
+
retry(): void;
|
|
3742
|
+
private offlineNow;
|
|
3743
|
+
private mount;
|
|
3744
|
+
/** Asks the host for an account session within the request timeout; returns ONLY the secret (a session that is already over, or one without a secret, is refused). */
|
|
3745
|
+
private fetchSecret;
|
|
3746
|
+
private onFailure;
|
|
3747
|
+
private unavailable;
|
|
3748
|
+
private onCheckoutFinished;
|
|
3749
|
+
/** Removes the embedded component and forgets the session (the secret is never kept). */
|
|
3750
|
+
private teardown;
|
|
3751
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderEmbedBase, never>;
|
|
3752
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StripeReaderEmbedBase, never, never, {
|
|
3753
|
+
"publishableKey": {
|
|
3754
|
+
"alias": "publishableKey";
|
|
3755
|
+
"required": false;
|
|
3756
|
+
"isSignal": true;
|
|
3757
|
+
};
|
|
3758
|
+
"getAccountSession": {
|
|
3759
|
+
"alias": "getAccountSession";
|
|
3760
|
+
"required": false;
|
|
3761
|
+
"isSignal": true;
|
|
3762
|
+
};
|
|
3763
|
+
"enabled": {
|
|
3764
|
+
"alias": "enabled";
|
|
3765
|
+
"required": false;
|
|
3766
|
+
"isSignal": true;
|
|
3767
|
+
};
|
|
3768
|
+
"orderHelpUrl": {
|
|
3769
|
+
"alias": "orderHelpUrl";
|
|
3770
|
+
"required": false;
|
|
3771
|
+
"isSignal": true;
|
|
3772
|
+
};
|
|
3773
|
+
"appearance": {
|
|
3774
|
+
"alias": "appearance";
|
|
3775
|
+
"required": false;
|
|
3776
|
+
"isSignal": true;
|
|
3777
|
+
};
|
|
3778
|
+
"offlineOverride": {
|
|
3779
|
+
"alias": "offlineOverride";
|
|
3780
|
+
"required": false;
|
|
3781
|
+
"isSignal": true;
|
|
3782
|
+
};
|
|
3783
|
+
"requestTimeoutMs": {
|
|
3784
|
+
"alias": "requestTimeoutMs";
|
|
3785
|
+
"required": false;
|
|
3786
|
+
"isSignal": true;
|
|
3787
|
+
};
|
|
3788
|
+
}, {
|
|
3789
|
+
"checkoutFinished": "checkoutFinished";
|
|
3790
|
+
"closed": "closed";
|
|
3791
|
+
"connectReader": "connectReader";
|
|
3792
|
+
}, never, never, true, never>;
|
|
3793
|
+
}
|
|
3794
|
+
/**
|
|
3795
|
+
* The card reader SHOP of the app: Stripe's Connect embedded component `terminal_hardware_shop` (or, with `mode="orders"`, `terminal_hardware_orders`, the order history). The host supplies the account session
|
|
3796
|
+
* (`getAccountSession` calls its OWN backend, which calls the payments service; the browser never talks to the service) and the publishable key. States: loading skeleton, ready, unavailable (a "how to order" card with
|
|
3797
|
+
* the supported models, the user is never blocked), error with Try again, offline (nothing is requested) and placed ("Your order was placed. When the reader arrives, choose Connect a reader and enter the code the
|
|
3798
|
+
* device shows", output `connectReader`). Put it in the host's side panel, or use `ui-stripe-reader-order-panel`.
|
|
3799
|
+
*
|
|
3800
|
+
* <ui-stripe-reader-shop [publishableKey]="pk" [getAccountSession]="session" [enabled]="merchant.terminalHardwareShop" orderHelpUrl="https://example.com/readers"
|
|
3801
|
+
* (checkoutFinished)="refresh()" (connectReader)="openPairing()" (closed)="close()" />
|
|
3802
|
+
*/
|
|
3803
|
+
export declare class StripeReaderShopComponent extends StripeReaderEmbedBase {
|
|
3804
|
+
/** `shop` (default) mounts `terminal_hardware_shop`; `orders` mounts `terminal_hardware_orders` (the order history). */
|
|
3805
|
+
readonly mode: import("@angular/core").InputSignal<"shop" | "orders">;
|
|
3806
|
+
protected component(): StripeConnectEmbedName;
|
|
3807
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderShopComponent, never>;
|
|
3808
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderShopComponent, "ui-stripe-reader-shop", never, {
|
|
3809
|
+
"mode": {
|
|
3810
|
+
"alias": "mode";
|
|
3811
|
+
"required": false;
|
|
3812
|
+
"isSignal": true;
|
|
3813
|
+
};
|
|
3814
|
+
}, {}, never, never, true, never>;
|
|
3815
|
+
}
|
|
3816
|
+
/** The order history of the card readers: Stripe's Connect embedded component `terminal_hardware_orders`, with the same loader, states and host contract as `ui-stripe-reader-shop`. */
|
|
3817
|
+
export declare class StripeReaderOrdersComponent extends StripeReaderEmbedBase {
|
|
3818
|
+
protected component(): StripeConnectEmbedName;
|
|
3819
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderOrdersComponent, never>;
|
|
3820
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderOrdersComponent, "ui-stripe-reader-orders", never, {}, {}, never, never, true, never>;
|
|
3821
|
+
}
|
|
3822
|
+
/**
|
|
3823
|
+
* The ready-made side panel for ordering card readers: a `ui-side-panel` ("Get a card reader" / "Card reader orders") that mounts `ui-stripe-reader-shop` only while it is open (nothing is requested while it is
|
|
3824
|
+
* closed, and the account session secret is dropped as soon as it closes). The host opens it from the `getReader` / `readerOrder` outputs and opens its pairing panel from `(connectReader)`.
|
|
3825
|
+
*
|
|
3826
|
+
* @defer (when orderOpen()) {
|
|
3827
|
+
* <ui-stripe-reader-order-panel [open]="orderOpen()" [publishableKey]="pk" [getAccountSession]="session" [enabled]="merchant.terminalHardwareShop"
|
|
3828
|
+
* (closed)="orderOpen.set(false)" (checkoutFinished)="refreshReaders()" (connectReader)="orderOpen.set(false); pairingOpen.set(true)" />
|
|
3829
|
+
* }
|
|
3830
|
+
*/
|
|
3831
|
+
export declare class StripeReaderOrderPanelComponent {
|
|
3832
|
+
protected readonly labels: UiLabelsService;
|
|
3833
|
+
readonly open: import("@angular/core").InputSignal<boolean>;
|
|
3834
|
+
/** `shop` (default): order a reader; `orders`: the order history. */
|
|
3835
|
+
readonly mode: import("@angular/core").InputSignal<"shop" | "orders">;
|
|
3836
|
+
readonly publishableKey: import("@angular/core").InputSignal<string | null>;
|
|
3837
|
+
readonly getAccountSession: import("@angular/core").InputSignal<StripeReaderAccountSessionFn | null>;
|
|
3838
|
+
readonly enabled: import("@angular/core").InputSignal<boolean>;
|
|
3839
|
+
readonly orderHelpUrl: import("@angular/core").InputSignal<string | null>;
|
|
3840
|
+
readonly appearance: import("@angular/core").InputSignal<Record<string, unknown> | null>;
|
|
3841
|
+
readonly offlineOverride: import("@angular/core").InputSignal<boolean>;
|
|
3842
|
+
readonly requestTimeoutMs: import("@angular/core").InputSignal<number>;
|
|
3843
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
3844
|
+
readonly checkoutFinished: import("@angular/core").OutputEmitterRef<void>;
|
|
3845
|
+
readonly connectReader: import("@angular/core").OutputEmitterRef<void>;
|
|
3846
|
+
protected readonly title: import("@angular/core").Signal<string>;
|
|
3847
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StripeReaderOrderPanelComponent, never>;
|
|
3848
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StripeReaderOrderPanelComponent, "ui-stripe-reader-order-panel", never, {
|
|
3849
|
+
"open": {
|
|
3850
|
+
"alias": "open";
|
|
3851
|
+
"required": false;
|
|
3852
|
+
"isSignal": true;
|
|
3853
|
+
};
|
|
3854
|
+
"mode": {
|
|
3855
|
+
"alias": "mode";
|
|
3856
|
+
"required": false;
|
|
3857
|
+
"isSignal": true;
|
|
3858
|
+
};
|
|
3859
|
+
"publishableKey": {
|
|
3860
|
+
"alias": "publishableKey";
|
|
3861
|
+
"required": false;
|
|
3862
|
+
"isSignal": true;
|
|
3863
|
+
};
|
|
3864
|
+
"getAccountSession": {
|
|
3865
|
+
"alias": "getAccountSession";
|
|
3866
|
+
"required": false;
|
|
3867
|
+
"isSignal": true;
|
|
3868
|
+
};
|
|
3869
|
+
"enabled": {
|
|
3870
|
+
"alias": "enabled";
|
|
3871
|
+
"required": false;
|
|
3872
|
+
"isSignal": true;
|
|
3873
|
+
};
|
|
3874
|
+
"orderHelpUrl": {
|
|
3875
|
+
"alias": "orderHelpUrl";
|
|
3876
|
+
"required": false;
|
|
3877
|
+
"isSignal": true;
|
|
3878
|
+
};
|
|
3879
|
+
"appearance": {
|
|
3880
|
+
"alias": "appearance";
|
|
3881
|
+
"required": false;
|
|
3882
|
+
"isSignal": true;
|
|
3883
|
+
};
|
|
3884
|
+
"offlineOverride": {
|
|
3885
|
+
"alias": "offlineOverride";
|
|
3886
|
+
"required": false;
|
|
3887
|
+
"isSignal": true;
|
|
3888
|
+
};
|
|
3889
|
+
"requestTimeoutMs": {
|
|
3890
|
+
"alias": "requestTimeoutMs";
|
|
3891
|
+
"required": false;
|
|
3892
|
+
"isSignal": true;
|
|
3893
|
+
};
|
|
3894
|
+
}, {
|
|
3895
|
+
"closed": "closed";
|
|
3896
|
+
"checkoutFinished": "checkoutFinished";
|
|
3897
|
+
"connectReader": "connectReader";
|
|
3898
|
+
}, never, never, true, never>;
|
|
2178
3899
|
}
|
|
2179
|
-
export { type HandleReturnOptions, type MicrodepositStartedBy, type MicrodepositStepsContext, type MicrodepositType, type MicrodepositVerifyData, type MicrodepositVerifyEvent, type ProvideStripePaymentOptions, type StripeA11yMessages, type StripeAppearance, type StripeBillingDetails, type StripeCardFunding, type StripeConfirmResult, type StripeConfirmationTokenEvent, type StripeConfirmationTokenLike, type StripeConfirmedEvent, type StripeConnectAccount, type StripeConnectFlowOptions, type StripeConnectOutcome, type StripeConnectState, type StripeConnectStatus, type StripeConnection, type StripeCreateIntentFn, type StripeDeferredIntent, type StripeElementChange, type StripeElementsLike, type StripeErrorDisplay, type StripeErrorLike, type StripeErrorMessageOptions, type StripeFailure, type StripeFailureStage, type StripeFeeContext, type StripeFees, type StripeIntentContext, type StripeIntentInfo, type StripeIntentKind, type StripeIntentLike, type StripeLike, type StripeLikeWithBankSetup, type StripeLoadOptions, type StripeLoaderFn, type StripeMicrodepositNextAction, type StripeMicrodepositResult, type StripeOutcome, type StripePaymentDefaults, type StripePaymentElementLike, type StripeReadyEvent, type StripeReturnParams, type StripeReturnResult, type StripeThemeTokens, type StripeVerification, isDarkPage };
|
|
3900
|
+
export { type HandleReturnOptions, type MicrodepositStartedBy, type MicrodepositStepsContext, type MicrodepositType, type MicrodepositVerifyData, type MicrodepositVerifyEvent, type ProvideStripePaymentOptions, type StripeA11yMessages, type StripeAppearance, type StripeBillingDetails, type StripeCardFunding, type StripeConfirmResult, type StripeConfirmationTokenEvent, type StripeConfirmationTokenLike, type StripeConfirmedEvent, type StripeConnectAccount, type StripeConnectEmbedElement, type StripeConnectEmbedName, type StripeConnectFlowOptions, type StripeConnectInitOptions, type StripeConnectInstanceLike, type StripeConnectLoaderFn, type StripeConnectOutcome, type StripeConnectState, type StripeConnectStatus, type StripeConnection, type StripeCreateIntentFn, type StripeDeferredIntent, type StripeElementChange, type StripeElementsLike, type StripeErrorDisplay, type StripeErrorLike, type StripeErrorMessageOptions, type StripeFailure, type StripeFailureStage, type StripeFeeContext, type StripeFees, type StripeIntentContext, type StripeIntentInfo, type StripeIntentKind, type StripeIntentLike, type StripeLike, type StripeLikeWithBankSetup, type StripeLoadOptions, type StripeLoaderFn, type StripeMicrodepositNextAction, type StripeMicrodepositResult, type StripeOutcome, type StripePaymentDefaults, type StripePaymentElementLike, type StripeReader, type StripeReaderAccountSession, type StripeReaderAccountSessionFn, type StripeReaderAttemptPort, type StripeReaderBannerReason, type StripeReaderBannerState, type StripeReaderCancelFn, type StripeReaderCardSave, type StripeReaderConfig, type StripeReaderConsent, type StripeReaderCreateLocationContext, type StripeReaderCreateLocationFn, type StripeReaderDegraded, type StripeReaderDegradedReason, type StripeReaderDeviceStatus, type StripeReaderEmbedState, type StripeReaderFeeContext, type StripeReaderFeesFn, type StripeReaderFlowEvent, type StripeReaderFlowOptions, type StripeReaderGetPaymentFn, type StripeReaderGetReadinessFn, type StripeReaderLeftPending, type StripeReaderListLocationsFn, type StripeReaderLocation, type StripeReaderOutcome, type StripeReaderPayment, type StripeReaderPaymentRef, type StripeReaderPhase, type StripeReaderReadiness, type StripeReaderReadinessState, type StripeReaderReady, type StripeReaderRefusal, type StripeReaderRegisterContext, type StripeReaderRegisterFn, type StripeReaderRemoveFn, type StripeReaderRenameFn, type StripeReaderRetryFn, type StripeReaderSaveCard, type StripeReaderShopUnavailableReason, type StripeReaderStartContext, type StripeReaderStartFn, type StripeReaderStartInput, type StripeReaderSucceededEvent, type StripeReaderTerminal, type StripeReaderTerminalState, type StripeReadersOutcome, type StripeReadyEvent, type StripeReturnParams, type StripeReturnResult, type StripeThemeTokens, type StripeVerification, isDarkPage };
|