Skip to content

Commit a3ad588

Browse files
feature(#2): this commit introduces the mapping of the “address” property in the response schema and in the entity
1 parent 34b41c1 commit a3ad588

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Boundaries/Comanda.Orders/Source/Comanda.Orders.Application/Mappers

Boundaries/Comanda.Orders/Source/Comanda.Orders.Application/Mappers/OrderMapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public static Order AsOrder(this OrderCreationScheme scheme, Code code)
77
var order = new Order
88
{
99
Code = code,
10+
Address = scheme.Address,
1011
Fulfillment = scheme.Fulfillment,
1112
Priority = scheme.Priority,
1213
Metadata = scheme.Metadata,
@@ -47,6 +48,7 @@ public static Order AsOrder(this OrderCreationScheme scheme, Code code)
4748
{
4849
Identifier = order.Id,
4950
Code = order.Code.Identifier,
51+
Address = order.Address,
5052
Priority = order.Priority,
5153
Status = order.Status,
5254
Fulfillment = order.Fulfillment,

0 commit comments

Comments
 (0)