From fb8eb2309aea032f47997ded09d4962edcd1c248 Mon Sep 17 00:00:00 2001 From: Kim Heebin Date: Thu, 30 Nov 2023 16:38:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20approvedAt=20=EC=A0=9C=EA=B1=B0=20(#197)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moabam/api/dto/payment/ConfirmTossPaymentResponse.java | 7 +------ .../java/com/moabam/support/fixture/PaymentFixture.java | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/com/moabam/api/dto/payment/ConfirmTossPaymentResponse.java b/src/main/java/com/moabam/api/dto/payment/ConfirmTossPaymentResponse.java index ee32917a..34b5bdb7 100644 --- a/src/main/java/com/moabam/api/dto/payment/ConfirmTossPaymentResponse.java +++ b/src/main/java/com/moabam/api/dto/payment/ConfirmTossPaymentResponse.java @@ -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; @@ -13,9 +10,7 @@ public record ConfirmTossPaymentResponse( String paymentKey, String orderId, String orderName, - PaymentStatus status, - int totalAmount, - LocalDateTime approvedAt + int totalAmount ) { } diff --git a/src/test/java/com/moabam/support/fixture/PaymentFixture.java b/src/test/java/com/moabam/support/fixture/PaymentFixture.java index 019b72ab..464652fb 100644 --- a/src/test/java/com/moabam/support/fixture/PaymentFixture.java +++ b/src/test/java/com/moabam/support/fixture/PaymentFixture.java @@ -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; @@ -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(); } }