Skip to content

Commit

Permalink
update ErpSimulator order model
Browse files Browse the repository at this point in the history
  • Loading branch information
mlysien committed Jun 6, 2024
1 parent 67b3866 commit a89fec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public async Task PushAsync(OrderIntegrationModel integrationModel)
var order = new Order()
{
Id = integrationModel.Id.Value,
CreatedAt = integrationModel.CreatedAt
CreatedAt = integrationModel.CreatedAt,
OrderStateId = (int)integrationModel.Status
};

await repository.SaveOrderAsync(order);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ public class Order
public Guid Id { get; init; }

public DateTime CreatedAt { get; init; }

public DateTime UpdatedAt { get; init; }

public double TotalAmmount { get; init; }

public Customer Customer { get; init; }

public List<Product> Products { get; init; }
public int OrderStateId { get; init; }
}

0 comments on commit a89fec7

Please sign in to comment.