using ERPCore.Infra.Gl;
using ERPCore.Services.Interfaces;

namespace ERPCore.Services;

/// <inheritdoc cref="IGeneralLedgerService"/>
public sealed class GeneralLedgerService : IGeneralLedgerService
{
    private readonly IGeneralLedgerClient _client;

    public GeneralLedgerService(IGeneralLedgerClient client) => _client = client;

    public Task<GeneralLedgerResponse> ForwardAsync(
        HttpMethod method, string path, string? queryString, string? contentType, Stream? body, CancellationToken ct)
        => _client.SendAsync(method, path, queryString, contentType, body, ct);
}
