2024-08-26 15:26:16 -05:00
|
|
|
namespace SanctionsSearch.Worker.Options;
|
|
|
|
|
|
|
|
|
|
class OnspringOptions
|
|
|
|
|
{
|
2024-08-30 15:16:13 -05:00
|
|
|
public string BaseUrl { get; init; } = "https://api.onspring.com";
|
|
|
|
|
public string ApiKey { get; init; } = string.Empty;
|
|
|
|
|
public int SearchIntervalInMinutes { get; init; } = 1;
|
|
|
|
|
public SearchRequestOptions SearchRequestOptions { get; init; } = new SearchRequestOptions();
|
|
|
|
|
public SearchResultOptions SearchResultOptions { get; init; } = new SearchResultOptions();
|
2024-08-26 15:26:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class SearchRequestOptions
|
|
|
|
|
{
|
2024-08-30 15:16:13 -05:00
|
|
|
public int AppId { get; init; }
|
|
|
|
|
public int NameFieldId { get; init; }
|
|
|
|
|
public int StatusFieldId { get; init; }
|
|
|
|
|
public Guid AwaitingProcessingStatusId { get; init; }
|
|
|
|
|
public Guid ProcessingStatusId { get; init; }
|
|
|
|
|
public Guid ProcessedSuccessStatusId { get; init; }
|
|
|
|
|
public Guid ProcessedErrorStatusId { get; init; }
|
|
|
|
|
public int ErrorFieldId { get; init; }
|
2024-08-26 15:26:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class SearchResultOptions
|
|
|
|
|
{
|
2024-08-30 15:16:13 -05:00
|
|
|
public int AppId { get; init; }
|
|
|
|
|
public int SearchRequestFieldId { get; init; }
|
|
|
|
|
public int NameFieldId { get; init; }
|
|
|
|
|
public int AddressFieldId { get; init; }
|
|
|
|
|
public int TypeFieldId { get; init; }
|
|
|
|
|
public int ProgramsFieldId { get; init; }
|
2024-08-26 15:26:16 -05:00
|
|
|
}
|