Skip to content

Commit

Permalink
feat: add error field
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 2, 2024
1 parent 739cdd4 commit 6e83f68
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class PaymentHistory {
@Column(name = "pay_status")
private PayStatus payStatus;

@Column(name = "error")
private String error;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "payment_id")
private Payment payment;
Expand All @@ -31,9 +34,10 @@ public class PaymentHistory {
private LocalDateTime createAt;

@Builder
public PaymentHistory(Long buyerId, PayStatus payStatus, Payment payment, LocalDateTime createAt) {
public PaymentHistory(Long buyerId, PayStatus payStatus, String error, Payment payment, LocalDateTime createAt) {
this.buyerId = buyerId;
this.payStatus = payStatus;
this.error = error;
this.payment = payment;
this.createAt = createAt;
}
Expand Down

0 comments on commit 6e83f68

Please sign in to comment.