Class OmieCheckingAccountProvider
Omie checking accounts (geral/contacorrente/) — the list an application offers so the user can pick where
the receivable of a service order lands (nCodCC, required on inclusion).
Blocked accounts are left out: Omie lists them but does not accept entries on them.
public class OmieCheckingAccountProvider
- Inheritance
-
OmieCheckingAccountProvider
- Inherited Members
Constructors
OmieCheckingAccountProvider(OmieDirectApiClient, IMemoryCache)
Omie checking accounts (geral/contacorrente/) — the list an application offers so the user can pick where
the receivable of a service order lands (nCodCC, required on inclusion).
Blocked accounts are left out: Omie lists them but does not accept entries on them.
public OmieCheckingAccountProvider(OmieDirectApiClient omie, IMemoryCache cache)
Parameters
omieOmieDirectApiClientcacheIMemoryCache
Methods
GetAsync(bool, CancellationToken)
Usable checking accounts of the account's registration. With forceRefresh the cache is
ignored and rewritten with whatever Omie returns — what a "reload from the ERP" action needs, since the
cached list would otherwise be served for the next 30 minutes and the button would look inert.
public Task<IResult<IReadOnlyList<OmieCheckingAccount>>> GetAsync(bool forceRefresh, CancellationToken cancellationToken)
Parameters
forceRefreshboolcancellationTokenCancellationToken