Table of Contents

Class SupplierPaymentsController

Namespace
KadicErp.WebApi.Controllers.Payables
Assembly
KadicErp.WebApi.dll
[ApiController]
[Route("api/payables/supplier-payments")]
public class SupplierPaymentsController : ControllerBase
Inheritance
object
ControllerBase
SupplierPaymentsController

Constructors

SupplierPaymentsController(IMediator)

public SupplierPaymentsController(IMediator mediator)

Parameters

mediator IMediator

Methods

Create(CreateSupplierPaymentCommand)

[HttpPost]
[Authorize(Policy = "PAYABLES_SUPPLIER_PAYMENTS_CREATE")]
public Task<IActionResult> Create(CreateSupplierPaymentCommand command)

Parameters

command CreateSupplierPaymentCommand

Returns

Task<IActionResult>

GetAll(Guid)

[HttpGet]
[Authorize(Policy = "PAYABLES_SUPPLIER_PAYMENTS_VIEW")]
public Task<IActionResult> GetAll(Guid branchId)

Parameters

branchId Guid

Returns

Task<IActionResult>

GetById(Guid)

[HttpGet("{id:guid}")]
[Authorize(Policy = "PAYABLES_SUPPLIER_PAYMENTS_VIEW")]
public Task<IActionResult> GetById(Guid id)

Parameters

id Guid

Returns

Task<IActionResult>

Post(Guid)

[HttpPost("{id:guid}/post")]
[Authorize(Policy = "PAYABLES_SUPPLIER_PAYMENTS_POST")]
public Task<IActionResult> Post(Guid id)

Parameters

id Guid

Returns

Task<IActionResult>

Void(Guid)

[HttpPost("{id:guid}/void")]
[Authorize(Policy = "PAYABLES_SUPPLIER_PAYMENTS_VOID")]
public Task<IActionResult> Void(Guid id)

Parameters

id Guid

Returns

Task<IActionResult>