13
13
14
14
@ Schema (description = "결제 응답 DTO" )
15
15
@ Builder
16
- public record PaymentResponse (
16
+ public record PaymentView (
17
17
18
18
@ Schema (description = "결제 DB PK" , example = "1" )
19
19
Long paymentId ,
@@ -24,7 +24,7 @@ public record PaymentResponse (
24
24
@ Schema (description = "결제하는 계좌 번호" , example = "5792214-80232581" )
25
25
String withdrawalAccountNumber ,
26
26
27
- @ Schema (description = "수취인 이름" , example = "홍길동 " )
27
+ @ Schema (description = "수취인 이름" , example = "jisoo " )
28
28
String payeeName ,
29
29
30
30
@ Schema (description = "결제 금액" , example = "50000" )
@@ -40,9 +40,9 @@ public record PaymentResponse (
40
40
@ Schema (description = "결제일" , example = "2024.06.11 15:20" )
41
41
LocalDateTime paidAt
42
42
) {
43
- public static PaymentResponse of (Payment payment , PaymentTransferDetailResponse transferResponse ,
44
- String withdrawalAccountNumber , String payeeName ) {
45
- return PaymentResponse .builder ()
43
+ public static PaymentView of (Payment payment , PaymentTransferDetailResponse transferResponse ,
44
+ String withdrawalAccountNumber , String payeeName ) {
45
+ return PaymentView .builder ()
46
46
.paymentId (payment .getId ())
47
47
.paymentStatus (payment .getPaymentStatus ())
48
48
.withdrawalAccountNumber (withdrawalAccountNumber )
0 commit comments