-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from EduardoKroetz/refactor/invoice-entity
Refactor: refatorar entidade Invoice
- Loading branch information
Showing
13 changed files
with
50 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
using Hotel.Domain.Enums; | ||
|
||
using Hotel.Domain.DTOs.ServiceDTOs; | ||
|
||
namespace Hotel.Domain.DTOs.InvoiceDTOs; | ||
|
||
public class GetInvoice : IDataTransferObject | ||
{ | ||
public GetInvoice(Guid id, string number, EPaymentMethod paymentMethod, Guid reservationId, DateTime issueDate, decimal totalAmount, EStatus status, decimal taxInformation, Guid customerId) | ||
public GetInvoice(Guid id, string paymentMethod, Guid reservationId, decimal totalAmount, Guid customerId, IEnumerable<GetService> services) | ||
{ | ||
Id = id; | ||
PaymentMethod = paymentMethod; | ||
TaxInformation = taxInformation; | ||
ReservationId = reservationId; | ||
Number = number; | ||
IssueDate = issueDate; | ||
TotalAmount = totalAmount; | ||
Status = status; | ||
CustomerId = customerId; | ||
Services = services; | ||
} | ||
|
||
public Guid? Id { get; private set; } | ||
public EPaymentMethod PaymentMethod { get; private set; } | ||
public decimal TaxInformation { get; private set; } | ||
public string PaymentMethod { get; private set; } | ||
public Guid ReservationId { get; private set; } | ||
public string Number { get; private set; } | ||
public DateTime IssueDate { get; private set; } | ||
public decimal TotalAmount { get; private set; } | ||
public EStatus Status { get; private set; } | ||
public Guid CustomerId { get; private set; } | ||
public IEnumerable<GetService> Services { get; private set; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.