Table of Contents

Class InvoicePaymentsController

Namespace
KadicErp.WebApi.Controllers.Sales
Assembly
KadicErp.WebApi.dll
[ApiController]
[Authorize]
[Route("api/sales/invoice-payments")]
public class InvoicePaymentsController : ControllerBase
Inheritance
object
ControllerBase
InvoicePaymentsController

Constructors

InvoicePaymentsController(IMediator)

public InvoicePaymentsController(IMediator mediator)

Parameters

mediator IMediator

Methods

Create(CreateInvoicePaymentCommand)

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

Parameters

command CreateInvoicePaymentCommand

Returns

Task<IActionResult>

Delete(Guid)

[HttpDelete("{id:guid}")]
[Authorize(Policy = "SALES_INVOICE_PAYMENTS_DELETE")]
public Task<IActionResult> Delete(Guid id)

Parameters

id Guid

Returns

Task<IActionResult>

GetById(Guid)

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

Parameters

id Guid

Returns

Task<IActionResult>

GetByInvoiceId(Guid)

[HttpGet("invoice/{invoiceId:guid}")]
[Authorize(Policy = "SALES_INVOICE_PAYMENTS_VIEW")]
[ProducesResponseType(typeof(IEnumerable<object>), 200)]
public Task<IActionResult> GetByInvoiceId(Guid invoiceId)

Parameters

invoiceId Guid

Returns

Task<IActionResult>