Interface ISettlementConfigProvider
- Namespace
- NArk.Abstractions.Settlement
- Assembly
- NArk.Abstractions.dll
Supplies the per-wallet settlement rules the built-in policies act on. The SDK deliberately persists nothing here — the application already owns this configuration (a store setting, a user preference, a config file) and implements this interface over it.
public interface ISettlementConfigProvider
Methods
GetConfigs(string?, CancellationToken)
Returns the configured settlement rules, optionally narrowed to one wallet. Return an empty collection when nothing is configured.
Task<IReadOnlyCollection<SettlementConfig>> GetConfigs(string? walletId = null, CancellationToken cancellationToken = default)
Parameters
walletIdstringWallet to filter by, or null for every configured wallet.
cancellationTokenCancellationTokenCancellation token.