Skip to content

Commit

Permalink
Merge pull request #171 from fourix4/dev
Browse files Browse the repository at this point in the history
결제 기능 오류 수정
  • Loading branch information
llynn97 authored Jul 26, 2024
2 parents f183ac2 + e284993 commit a455902
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ public class BookingRequestDto {
Integer time;
Integer amount;

PaymentType payment_type;
String payment_type;

Long room_id;
String type;
String start_time;

public static BookingRequestDto of(Long cafe_id, Long seat_id, Integer time, Integer amount, PaymentType payment_type, String type) {
public static BookingRequestDto of(Long cafe_id, Long seat_id, Integer time, Integer amount, String payment_type, String type) {
return new BookingRequestDto(cafe_id, seat_id, time, amount, payment_type, null, type, null);
}
public static BookingRequestDto of(Long cafe_id, Integer time, Integer amount, PaymentType payment_type, Long room_Id, String type, String start_time) {
public static BookingRequestDto of(Long cafe_id, Integer time, Integer amount, String payment_type, Long room_Id, String type, String start_time) {
return new BookingRequestDto(cafe_id, null,time,amount,payment_type,room_Id,type,start_time);
}

Expand All @@ -37,7 +37,7 @@ public SeatBookingDto toSeatDto() {
seat_id,
time,
amount,
payment_type,
PaymentType.valueOf(payment_type),
SeatType.valueOf(type)
);
}
Expand All @@ -47,7 +47,7 @@ public SeatBookingDto toRoomDto() {
cafe_id,
time,
amount,
payment_type,
PaymentType.valueOf(payment_type),
room_id,
SeatType.valueOf(type),
start_time
Expand Down

0 comments on commit a455902

Please sign in to comment.