commit 32122aae69e5d2712f29ea0df97ec77d9ca3a87e
parent 01e654fb51de21d40e33dcc0166a3dd172c26bf3
Author: Sebastian <sebasjm@gmail.com>
Date: Fri, 7 Feb 2025 10:43:20 -0300
missing rule_name
Diffstat:
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/context/session.ts b/packages/merchant-backoffice-ui/src/context/session.ts
@@ -17,7 +17,6 @@
import {
AccessToken,
Codec,
- TalerMerchantApi,
TalerMerchantConfigResponse,
buildCodecForObject,
codecForString,
@@ -159,12 +158,12 @@ export const SessionContextProvider = ({
const [status, setStatus] = useState<"loggedIn" | "loggedOut">("loggedIn");
const [currentConfig, setCurrentConfig] =
useState<TalerMerchantConfigResponse>();
- const SESSION_STATE_KEY = buildStorageKey(
- `merchant-session-${merchantUrl.pathname}`,
- codecForSessionState(),
- );
-
- const { value: state, update } = useLocalStorage(
+ const SESSION_STATE_KEY = buildStorageKey(
+ `merchant-session-${merchantUrl.pathname}`,
+ codecForSessionState(),
+ );
+
+ const { value: state, update } = useLocalStorage(
SESSION_STATE_KEY,
defaultState(merchantUrl),
);
diff --git a/packages/taler-util/src/types-taler-kyc-aml.ts b/packages/taler-util/src/types-taler-kyc-aml.ts
@@ -279,6 +279,12 @@ export interface KycRule {
// "TRANSACTION" or "REFUND".
operation_type: LimitOperationType;
+ // Name of the configuration section this rule
+ // originates from. Not available for all rules.
+ // Primarily informational, but also useful to
+ // explicitly manipulate rules by-name in AML programs.
+ rule_name?: string;
+
// The measures will be taken if the given
// threshold is crossed over the given timeframe.
threshold: AmountString;