-
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.
fix request binder in order command api (create endpoint) (#69)
- Loading branch information
Showing
14 changed files
with
202 additions
and
97 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
60 changes: 56 additions & 4 deletions
60
src/Services/Order.Command/Order.Command.API/Endpoints/CreateOrder/Models.cs
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
19 changes: 0 additions & 19 deletions
19
src/Services/Order.Command/Order.Command.Application/Dtos/CreateOrderDto.cs
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
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
39 changes: 39 additions & 0 deletions
39
src/Services/Order.Command/Order.Command.Application/Orders/Commands/CreateOrder/Models.cs
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
namespace Order.Command.Application.Orders.Commands.CreateOrder; | ||
|
||
public record OrderDto( | ||
string Id, | ||
string? CustomerId, | ||
string OrderName, | ||
OrderDto.Address ShippingAddress, | ||
OrderDto.Address BillingAddress, | ||
OrderDto.Payment OrderPayment, | ||
List<OrderDto.OrderItem> OrderItems) | ||
{ | ||
public record Address( | ||
string Firstname, | ||
string Lastname, | ||
string EmailAddress, | ||
string AddressLine, | ||
string Country, | ||
string State, | ||
string ZipCode); | ||
|
||
public record Payment( | ||
string CardName, | ||
string CardNumber, | ||
string Expiration, | ||
string Cvv, | ||
int PaymentMethod); | ||
|
||
public record OrderItem( | ||
string Id, | ||
string? OrderId, | ||
string? ProductId, | ||
int? Quantity, | ||
decimal? Price); | ||
} | ||
|
||
|
||
|
||
|
||
|
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.