Table of Contents

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

companyId int
certificateId int
cancellationToken CancellationToken

Returns

Task<CertificateFile>

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

companyId int
customerCode string
recipientEmail string
country string
regions IReadOnlyList<string>
cancellationToken CancellationToken

Returns

Task<CertificateInvite>

ListCustomerCertificatesAsync(int, string, CancellationToken)

Exemption certificates attached to the customer.

Task<IReadOnlyList<CertificateInfo>> ListCustomerCertificatesAsync(int companyId, string customerCode, CancellationToken cancellationToken)

Parameters

companyId int
customerCode string
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<CertificateInfo>>

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

companyId int
from DateOnly
until DateOnly
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<CertificateInfo>>

ListVendorCertificatesAsync(int, string, CancellationToken)

Resale certificates attached to the vendor.

Task<IReadOnlyList<CertificateInfo>> ListVendorCertificatesAsync(int companyId, string vendorCode, CancellationToken cancellationToken)

Parameters

companyId int
vendorCode string
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<CertificateInfo>>