NTP_V2/src/NTP.Application/Refinery/Integrations/DinarakReferenceGateway.cs

16 lines
836 B
C#

namespace NTP.Application.Refinery.Integrations;
/// <summary>
/// Companion of <see cref="IDinarakGateway"/> (whose signatures are fixed): REFINERY_TRIPS.DINARAK_REFERENCE_ID is a decimal (352.1, 352.11 ...)
/// because ACTIVATE_WALLET_EXCHANGE adds 0.01 to it, so the status lookup by message id needs a decimal parameter.
/// The same class implements both interfaces.
/// </summary>
public interface IDinarakReferenceGateway
{
/// <summary>
/// Legacy getTransferByMessageID. <c>StatusName</c> is the Dinarak status ("Success", "Processing", "New", ...), "DISABLED" when the
/// integration is switched off (nothing is called) and "ERROR" when the answer could not be obtained or read.
/// </summary>
Task<DinarakTransferStatus> GetTransferByReferenceAsync(decimal reference, CancellationToken ct = default);
}