Skip to content

Commit

Permalink
fix: approvedAt 제거 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmebin authored Nov 30, 2023
1 parent 49acb0b commit fb8eb23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.moabam.api.dto.payment;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.moabam.api.domain.payment.PaymentStatus;

import lombok.Builder;

Expand All @@ -13,9 +10,7 @@ public record ConfirmTossPaymentResponse(
String paymentKey,
String orderId,
String orderName,
PaymentStatus status,
int totalAmount,
LocalDateTime approvedAt
int totalAmount
) {

}
5 changes: 0 additions & 5 deletions src/test/java/com/moabam/support/fixture/PaymentFixture.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

import static com.moabam.support.fixture.ProductFixture.*;

import java.time.LocalDateTime;

import com.moabam.api.domain.coupon.Coupon;
import com.moabam.api.domain.payment.Order;
import com.moabam.api.domain.payment.Payment;
import com.moabam.api.domain.payment.PaymentStatus;
import com.moabam.api.domain.product.Product;
import com.moabam.api.dto.payment.ConfirmPaymentRequest;
import com.moabam.api.dto.payment.ConfirmTossPaymentResponse;
Expand Down Expand Up @@ -57,9 +54,7 @@ public static ConfirmTossPaymentResponse confirmTossPaymentResponse() {
.paymentKey(PAYMENT_KEY)
.orderId(ORDER_ID)
.orderName(BUG_PRODUCT_NAME)
.status(PaymentStatus.DONE)
.totalAmount(AMOUNT)
.approvedAt(LocalDateTime.of(2023, 1, 1, 1, 1))
.build();
}
}

0 comments on commit fb8eb23

Please sign in to comment.