Interface IPartnerAgentCustomers
Represents the interface for customer-related operations in the Partner Agent API client.
Namespace: PAccess.PartnerAgents.ApiClient.Services.Customers
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentCustomers
Methods
View SourceCreateCustomerAsync(CreateCustomerRequest, CancellationToken)
Creates a customer asynchronously.
Declaration
Task<CreateCustomerResponse> CreateCustomerAsync(CreateCustomerRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateCustomerRequest | request | The request object containing the details of the customer creation. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<CreateCustomerResponse> | A task representing the asynchronous operation that returns the response of the customer creation. |
GetCustomerIdAsync(string, CancellationToken)
Gets the ID of a customer based on their email asynchronously.
Declaration
Task<int?> GetCustomerIdAsync(string email, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | The email of the customer. |
|
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<int?> | A task representing the asynchronous operation that returns the ID of the customer, or null if not found. |