29 строки
1.1 KiB
C#
29 строки
1.1 KiB
C#
// <copyright file="ICustomerProvider.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace MCARefreshBulkAttestationCLITool.Interfaces
|
|
{
|
|
using System.Threading.Tasks;
|
|
using MCARefreshBulkAttestationCLITool.Models;
|
|
using Refit;
|
|
|
|
public interface ICustomerProvider
|
|
{
|
|
Task<bool> FetchAndSaveCustomerAgreementRecords();
|
|
|
|
Task<bool> UpdateCustomerAgreementRecords(string partnerTenantId);
|
|
}
|
|
|
|
public interface ICustomerAgreementsClient
|
|
{
|
|
Task<FetchCustomerAgreementRecordResponse> GetCustomerAgreementRecords(CancellationToken cancellationToken = default) => this.GetCustomerAgreementRecords(null, cancellationToken);
|
|
|
|
[Get("/v1/partners/customeragreementrecords")]
|
|
Task<FetchCustomerAgreementRecordResponse> GetCustomerAgreementRecords([AliasAs("continuation_token")][Query] string? continuationToken, CancellationToken cancellationToken = default);
|
|
|
|
[Post("/v1/CreateBulkReAttestation")]
|
|
Task CreateBulkReAttestation(IEnumerable<ReAttestationRequest> request, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|