Table of Contents

Class FeeTypesController

Namespace
KadicErp.WebApi.Controllers.Receivables.Dictionaries
Assembly
KadicErp.WebApi.dll
[Route("api/receivables/dictionaries/fee-types")]
[ApiController]
[Authorize]
public class FeeTypesController : ControllerBase
Inheritance
object
ControllerBase
FeeTypesController

Constructors

FeeTypesController(ISender)

public FeeTypesController(ISender sender)

Parameters

sender ISender

Methods

Activate(Guid, CancellationToken)

[HttpPatch("{id:guid}/activate")]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_ACTIVATE")]
[ProducesResponseType(204)]
[ProducesResponseType(404)]
public Task<IActionResult> Activate(Guid id, CancellationToken ct)

Parameters

id Guid
ct CancellationToken

Returns

Task<IActionResult>

Create(CreateDictionaryItemCommand<FeeType>, CancellationToken)

[HttpPost]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_CREATE")]
[ProducesResponseType(typeof(object), 201)]
[ProducesResponseType(400)]
public Task<IActionResult> Create(CreateDictionaryItemCommand<FeeType> command, CancellationToken ct)

Parameters

command CreateDictionaryItemCommand<FeeType>
ct CancellationToken

Returns

Task<IActionResult>

Deactivate(Guid, CancellationToken)

[HttpPatch("{id:guid}/deactivate")]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_DEACTIVATE")]
[ProducesResponseType(204)]
[ProducesResponseType(404)]
public Task<IActionResult> Deactivate(Guid id, CancellationToken ct)

Parameters

id Guid
ct CancellationToken

Returns

Task<IActionResult>

Get(GetDictionaryItemsQuery<FeeType>, CancellationToken)

[HttpGet]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_VIEW")]
[ProducesResponseType(typeof(PaginatorResponseDto<DictionaryItemDto>), 200)]
public Task<IActionResult> Get(GetDictionaryItemsQuery<FeeType> query, CancellationToken ct)

Parameters

query GetDictionaryItemsQuery<FeeType>
ct CancellationToken

Returns

Task<IActionResult>

GetById(Guid, CancellationToken)

[HttpGet("{id:guid}")]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_VIEW")]
[ProducesResponseType(typeof(DictionaryItemDto), 200)]
[ProducesResponseType(404)]
public Task<IActionResult> GetById(Guid id, CancellationToken ct)

Parameters

id Guid
ct CancellationToken

Returns

Task<IActionResult>

Update(Guid, UpdateDictionaryItemCommand<FeeType>, CancellationToken)

[HttpPut("{id:guid}")]
[Authorize(Policy = "RECEIVABLES_FEE_TYPES_UPDATE")]
[ProducesResponseType(204)]
[ProducesResponseType(400)]
[ProducesResponseType(404)]
public Task<IActionResult> Update(Guid id, UpdateDictionaryItemCommand<FeeType> command, CancellationToken ct)

Parameters

id Guid
command UpdateDictionaryItemCommand<FeeType>
ct CancellationToken

Returns

Task<IActionResult>