From d427a1bcc0f807679e0247e5fbb5cd8d15a17c6a Mon Sep 17 00:00:00 2001 From: rightpair Date: Tue, 23 Jan 2024 11:29:13 +0900 Subject: [PATCH] =?UTF-8?q?[test]=20=EC=BF=A0=ED=8F=B0=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coolpeace/docs/coupon/CouponControllerTest.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/coolpeace/docs/coupon/CouponControllerTest.java b/src/test/java/com/coolpeace/docs/coupon/CouponControllerTest.java index b45c1182..ce3184ba 100644 --- a/src/test/java/com/coolpeace/docs/coupon/CouponControllerTest.java +++ b/src/test/java/com/coolpeace/docs/coupon/CouponControllerTest.java @@ -198,7 +198,9 @@ void searchCoupon_success() throws Exception { fieldWithPath("content[].coupon_status").type(JsonFieldType.STRING).description("쿠폰 상태"), fieldWithPath("content[].coupon_concat_title").type(JsonFieldType.STRING).description("고객 유형 + 할인 유형 + 할인의 값"), fieldWithPath("content[].discount_type").type(JsonFieldType.STRING).description("할인의 유형"), - fieldWithPath("content[].discount_value").type(JsonFieldType.NUMBER).description("할인의 값"), + fieldWithPath("content[].discount_flat_value").type(JsonFieldType.NUMBER).description("정액 할인의 값").optional(), + fieldWithPath("content[].discount_flat_rate").type(JsonFieldType.NUMBER).description("정률 할인의 비율").optional(), + fieldWithPath("content[].maximum_discount_price").type(JsonFieldType.NUMBER).description("정률 할인일 때 최대 할인 한도").optional(), fieldWithPath("content[].customer_type").type(JsonFieldType.STRING).description("고객의 유형"), fieldWithPath("content[].coupon_room_type").type(JsonFieldType.STRING).description("객실의 유형"), fieldWithPath("content[].minimum_reservation_price").type(JsonFieldType.NUMBER).description("최소 예약 가격"), @@ -269,7 +271,9 @@ void getCouponRecentHistory_success() throws Exception { fieldWithPath("[].coupon_status").type(JsonFieldType.STRING).description("쿠폰 상태"), fieldWithPath("[].coupon_concat_title").type(JsonFieldType.STRING).description("고객 유형 + 할인 유형 + 할인의 값"), fieldWithPath("[].discount_type").type(JsonFieldType.STRING).description("할인의 유형"), - fieldWithPath("[].discount_value").type(JsonFieldType.NUMBER).description("할인의 값"), + fieldWithPath("[].discount_flat_value").type(JsonFieldType.NUMBER).description("정액 할인의 값").optional(), + fieldWithPath("[].discount_flat_rate").type(JsonFieldType.NUMBER).description("정률 할인의 비율").optional(), + fieldWithPath("[].maximum_discount_price").type(JsonFieldType.NUMBER).description("정률 할인일 때 최대 할인 한도").optional(), fieldWithPath("[].customer_type").type(JsonFieldType.STRING).description("고객의 유형"), fieldWithPath("[].coupon_room_type").type(JsonFieldType.STRING).description("객실의 유형"), fieldWithPath("[].minimum_reservation_price").type(JsonFieldType.NUMBER).description("최소 예약 가격"), @@ -342,7 +346,9 @@ void getCouponByCouponNumber_success() throws Exception { fieldWithPath("coupon_status").type(JsonFieldType.STRING).description("쿠폰 상태"), fieldWithPath("coupon_concat_title").type(JsonFieldType.STRING).description("고객 유형 + 할인 유형 + 할인의 값"), fieldWithPath("discount_type").type(JsonFieldType.STRING).description("할인의 유형"), - fieldWithPath("discount_value").type(JsonFieldType.NUMBER).description("할인의 값"), + fieldWithPath("discount_flat_value").type(JsonFieldType.NUMBER).description("정액 할인의 값").optional(), + fieldWithPath("discount_flat_rate").type(JsonFieldType.NUMBER).description("정률 할인의 비율").optional(), + fieldWithPath("maximum_discount_price").type(JsonFieldType.NUMBER).description("정률 할인일 때 최대 할인 한도").optional(), fieldWithPath("customer_type").type(JsonFieldType.STRING).description("고객의 유형"), fieldWithPath("coupon_room_type").type(JsonFieldType.STRING).description("객실의 유형"), fieldWithPath("minimum_reservation_price").type(JsonFieldType.NUMBER).description("최소 예약 가격"),