Interface ICertificateProvider
- Namespace
- Integrations.Application.Parties
- Assembly
- Integrations.Application.dll
Exemption (customer) and resale (vendor) certificates in the provider's certificate store.
public interface ICertificateProvider
Methods
DownloadAsync(int, int, CancellationToken)
Downloads the certificate document.
Task<CertificateFile> DownloadAsync(int companyId, int certificateId, CancellationToken cancellationToken)
Parameters
companyIdintcertificateIdintcancellationTokenCancellationToken
Returns
InviteCustomerAsync(int, string, string, string, IReadOnlyList<string>, CancellationToken)
Sends a CertExpress invite for the regions.
Task<CertificateInvite> InviteCustomerAsync(int companyId, string customerCode, string recipientEmail, string country, IReadOnlyList<string> regions, CancellationToken cancellationToken)
Parameters
companyIdintcustomerCodestringrecipientEmailstringcountrystringregionsIReadOnlyList<string>cancellationTokenCancellationToken
Returns
ListCustomerCertificatesAsync(int, string, CancellationToken)
Exemption certificates attached to the customer.
Task<IReadOnlyList<CertificateInfo>> ListCustomerCertificatesAsync(int companyId, string customerCode, CancellationToken cancellationToken)
Parameters
companyIdintcustomerCodestringcancellationTokenCancellationToken
Returns
ListExpiringAsync(int, DateOnly, DateOnly, CancellationToken)
Customer certificates whose expiration date is between from and until (inclusive).
Task<IReadOnlyList<CertificateInfo>> ListExpiringAsync(int companyId, DateOnly from, DateOnly until, CancellationToken cancellationToken)
Parameters
companyIdintfromDateOnlyuntilDateOnlycancellationTokenCancellationToken
Returns
ListVendorCertificatesAsync(int, string, CancellationToken)
Resale certificates attached to the vendor.
Task<IReadOnlyList<CertificateInfo>> ListVendorCertificatesAsync(int companyId, string vendorCode, CancellationToken cancellationToken)
Parameters
companyIdintvendorCodestringcancellationTokenCancellationToken