Interface IAnybillClientStoreModule
Module of the IAnybillClient for working with stores.
public interface IAnybillClientStoreModule
Methods
DeleteStoreAsync(string, CancellationToken)
Delete store
Task<IDeleteStoreResponse> DeleteStoreAsync(string storeId, CancellationToken cancellationToken = default)
Parameters
storeId
stringId of the store.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IDeleteStoreResponse>
Deletes the store with the given id.
GetStoreByIdAsync(string, CancellationToken)
Get store
Task<IStoreResponse> GetStoreByIdAsync(string storeId, CancellationToken cancellationToken = default)
Parameters
storeId
stringId of the store.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IStoreResponse>
return the store with the given id.
GetStoresAsync(int, int, CancellationToken)
Get all stores
Task<IReadOnlyCollection<IStoreResponse>> GetStoresAsync(int skip, int take, CancellationToken cancellationToken = default)
Parameters
skip
intElements to skip for pagination.
take
intHow much elements to take for pagination.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IReadOnlyCollection<IStoreResponse>>
Returns an array of all existing stores.
UpSertStoreAsync(UpSertStore, CancellationToken)
UpSert store
Task<IStoreResponse> UpSertStoreAsync(UpSertStore upSertStore, CancellationToken cancellationToken = default)
Parameters
upSertStore
UpSertStoreThe available data for the store.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IStoreResponse>
Creates or updates a store. The valid from datetime will be set to the current timestamp if null or in the past.