Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 거래 Entity 에 포인트 필드 추가 #69

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public class Trade extends BaseEntity {
@Column(nullable = false)
private Integer fee; //수수료

@Column(nullable = false)
private Integer point; // 구매자가 사용한 포인트

@Column(nullable = false)
@Enumerated(EnumType.STRING)
private PaymentType paymentType;
Expand All @@ -85,6 +88,7 @@ private Trade(
Integer price,
Integer sellingPrice,
Integer fee,
Integer point,
PaymentType paymentType,
String code,
TradeStatus status
Expand All @@ -99,6 +103,7 @@ private Trade(
this.price = price;
this.sellingPrice = sellingPrice;
this.fee = fee;
this.point = point;
this.paymentType = paymentType;
this.code = code;
this.status = status;
Expand All @@ -115,6 +120,7 @@ public static Trade create(
Integer price,
Integer sellingPrice,
Integer fee,
Integer point,
PaymentType paymentType,
String code,
TradeStatus status
Expand All @@ -130,6 +136,7 @@ public static Trade create(
price,
sellingPrice,
fee,
point,
paymentType,
code,
status
Expand Down
Loading