Add customer communication system
This commit is contained in:
@@ -57,6 +57,7 @@ public class OrdersController : ControllerBase
|
||||
|
||||
// Public endpoints for client identity
|
||||
[HttpGet("by-identity/{identityReference}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<IEnumerable<OrderDto>>> GetOrdersByIdentity(string identityReference)
|
||||
{
|
||||
var orders = await _orderService.GetOrdersByIdentityAsync(identityReference);
|
||||
@@ -64,6 +65,7 @@ public class OrdersController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpGet("by-identity/{identityReference}/{id}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<OrderDto>> GetOrderByIdentity(string identityReference, Guid id)
|
||||
{
|
||||
var order = await _orderService.GetOrderByIdAsync(id);
|
||||
@@ -76,6 +78,7 @@ public class OrdersController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<OrderDto>> CreateOrder([FromBody] CreateOrderDto createOrderDto)
|
||||
{
|
||||
try
|
||||
@@ -91,6 +94,7 @@ public class OrdersController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpPost("{id}/payments")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<CryptoPaymentDto>> CreatePayment(Guid id, [FromBody] CreatePaymentDto createPaymentDto)
|
||||
{
|
||||
var order = await _orderService.GetOrderByIdAsync(id);
|
||||
|
||||
Reference in New Issue
Block a user