//* Cancela um pedido public void Cancel() { Status = EOrderStatus.Canceled; _deliveries.ToList().ForEach(x => x.Cancel()); }
public UpdateStatusOrderRequest(Guid order_id, EOrderStatus status_id) { this.OrderId = order_id; this.StatusId = status_id; }
public void MarkAsPaid() { // Dá baixa no estoque this.Status = EOrderStatus.Paid; }
public void Cancel() { // Estorna os produtos this.Status = EOrderStatus.Canceled; }
public ParamOrderToPdf(int commandId, EOrderStatus status, EOrderStatus typeQuoteOrProformat) : this(commandId, status) { _typeQuoteOrProformat = typeQuoteOrProformat; }
//pagar um pedido public void Pay() { //validações Status = EOrderStatus.Paid; }
public Order(decimal totalProducts, decimal totalDiscount, decimal totalOrder, EOrderStatus status) { User = null; TotalProducts = totalProducts; TotalDiscount = totalDiscount; TotalOrder = totalOrder; Status = status; Items = new List <OrderItem>(); }
public OrderDetailsDTO(Guid id, Guid tableId, string tableNumber, string orderNumber, EOrderStatus status, DateTime openDate, DateTime?closingDate) { Id = id; TableId = tableId; TableNumber = tableNumber; OrderNumber = orderNumber; Status = status; OpenDate = openDate; ClosingDate = closingDate; }
public ProcessOrderResponse(string number, DateTime createDate, DateTime lastUpdateDate, decimal total, string notes, EOrderStatus status, ulong deliveryTag) { Number = number; CreateDate = createDate; LastUpdateDate = lastUpdateDate; Total = total; Notes = notes; Status = status; DeliveryTag = deliveryTag; }
public void SetStatus(EOrderStatus status) { this.Status = status; }
public void Cancel() { Status = EOrderStatus.Cancelad; CancelDeliverys(); ReturnItensToStock(); }
// Pagar um pedido public void Pay() { // Para fins de estudo, assume-se que o pagamento já foi realizado... Status = EOrderStatus.Paid; }
public void Pay() { //payment context Status = EOrderStatus.Payd; }
public void Pay() { // A cada 5 Produtos é uma entrega. Status = EOrderStatus.Paid; }
//cancelar o pedido public void Cancel() { Status = EOrderStatus.Canceled; //também devo criar um método no delivery para cancelar _deliveries.ToList().ForEach(x => x.Cancel()); }
public void ToChangeStatus(EOrderStatus status) { Status = status; }
public void Pay() { this.Status = EOrderStatus.Paid; }
public void Pay() { //payment simulated as paid Status = EOrderStatus.Paid; }
public ParamOrderToPdf(int commandId, EOrderStatus status, int quoteValidityDay) : this(commandId, status) { _quoteValidityDay = quoteValidityDay; }
public void Pay() //Pagamento do pedido { Status = EOrderStatus.Paid; }
//cancelar um pedido public void Cancel() { Status = EOrderStatus.Canceled; //cancelar todas as entregas _deliveries.ToList().ForEach(x => x.Cancel()); }
// Pagar Um Pedido public void Pay() { Status = EOrderStatus.PAID; }
public void MarkAsDelivered() { this.Status = EOrderStatus.Delivered; }
public void Cancel() { Status = EOrderStatus.Canceled; }
// To pay an order public void Pay() { Status = EOrderStatus.Paid; }
public CreateOrderResponse(string number, DateTime createDate, DateTime lastUpdateDate, List <ProductDto> products, decimal total, string notes, EOrderStatus status) { Number = number; CreateDate = createDate; LastUpdateDate = lastUpdateDate; Products = products; Total = total; Notes = notes; Status = status; }