We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 538a9cb commit bb3fd67Copy full SHA for bb3fd67
src/api/order/dto/response/order-response.dto.ts
@@ -37,4 +37,18 @@ export class OrderResponseDto {
37
),
38
);
39
}
40
+
41
+ /*
42
+ static of(order: Order): OrderResponseDto {
43
+ const response = new OrderResponseDto();
44
+ response.id = order.id;
45
+ response.totalPrice = order.totalPrice;
46
+ response.registeredDateTime = order.registeredDateTime;
47
+ response.products = order.orderProducts.map((orderProduct) =>
48
+ ProductResponseDto.of(orderProduct.product),
49
+ );
50
51
+ return response;
52
+ }
53
+ */
54
0 commit comments