@@ -89,32 +89,32 @@ public function testCreateCoupon(): void
8989 $ endTimestamp = $ startTimestamp + 3600 ;
9090
9191 $ expectedRequestBody = <<<JSON
92- {
93- "acquisitionCondition": {
94- "type": "lottery",
95- "lotteryProbability": 50,
96- "maxAcquireCount": 100
97- },
98- "barcodeImageUrl": "https://example.com/barcode.png",
99- "couponCode": "UNIQUECODE123",
100- "description": "Test coupon description",
101- "endTimestamp": $ endTimestamp,
102- "imageUrl": "https://example.com/image.png",
103- "maxUseCountPerTicket": 1,
104- "startTimestamp": $ startTimestamp,
105- "title": "Test Coupon",
106- "usageCondition": "Valid at all stores",
107- "reward": {
108- "type": "discount",
109- "priceInfo": {
110- "type": "fixed",
111- "fixedAmount": 100
112- }
113- },
114- "visibility": "PUBLIC",
115- "timezone": "ASIA_TOKYO"
116- }
117- JSON ;
92+ {
93+ "acquisitionCondition": {
94+ "type": "lottery",
95+ "lotteryProbability": 50,
96+ "maxAcquireCount": 100
97+ },
98+ "barcodeImageUrl": "https://example.com/barcode.png",
99+ "couponCode": "UNIQUECODE123",
100+ "description": "Test coupon description",
101+ "endTimestamp": $ endTimestamp,
102+ "imageUrl": "https://example.com/image.png",
103+ "maxUseCountPerTicket": 1,
104+ "startTimestamp": $ startTimestamp,
105+ "title": "Test Coupon",
106+ "usageCondition": "Valid at all stores",
107+ "reward": {
108+ "type": "discount",
109+ "priceInfo": {
110+ "type": "fixed",
111+ "fixedAmount": 100
112+ }
113+ },
114+ "visibility": "PUBLIC",
115+ "timezone": "ASIA_TOKYO"
116+ }
117+ JSON ;
118118
119119 $ couponCreateRequest = new CouponCreateRequest ([
120120 'acquisitionCondition ' => new LotteryAcquisitionConditionRequest ([
@@ -302,13 +302,6 @@ public function testListCoupon(): void
302302 'start ' => $ start ,
303303 'limit ' => (string )$ limit ,
304304 ];
305- $ expectedRequestBody = <<<JSON
306- {
307- "status": ["RUNNING", "CLOSED"],
308- "start": "startToken",
309- "limit": 10
310- }
311- JSON ;
312305 $ expectedResponseBody = <<<JSON
313306 {
314307 "items": [
0 commit comments