Interface IPartnerAgentCommercialBusinessTypes
Represents the interface for commercial business type-related operations in the Partner Agent API client.
Namespace: PAccess.PartnerAgents.ApiClient.Services.BusinessTypes
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentCommercialBusinessTypes
Methods
View SourceGetAllAsync(CancellationToken)
Retrieves all commercial business types asynchronously.
Declaration
Task<IReadOnlyList<CommercialBusinessType>> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<CommercialBusinessType>> | A task representing the asynchronous operation that returns the list of all commercial business types. |
GetByIdAsync(int, CancellationToken)
Retrieves a commercial business type by ID asynchronously.
Declaration
Task<CommercialBusinessType?> GetByIdAsync(int id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The ID of the commercial business type. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<CommercialBusinessType> | A task representing the asynchronous operation that returns the commercial business type with the specified ID. |