diff --git a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java index c2333a8ce..46cc113fb 100644 --- a/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java +++ b/clients/line-bot-messaging-api-client/src/main/java/com/linecorp/bot/messaging/client/MessagingApiClient.java @@ -143,18 +143,6 @@ CompletableFuture> createRichMenuAlias( CompletableFuture> deleteRichMenuAlias( @Path("richMenuAliasId") String richMenuAliasId); - /** - * Get result of message delivery using phone number - * - * @param date Date the message was sent Format: `yyyyMMdd` (e.g. `20190831`) - * Time Zone: UTC+9 (required) - * @see - * Documentation - */ - @GET("/v2/bot/message/delivery/ad_phone") - CompletableFuture> getAdPhoneMessageStatistics( - @Query("date") String date); - /** * Get name list of units used this month * diff --git a/clients/line-bot-messaging-api-client/src/test/java/com/linecorp/bot/messaging/client/MessagingApiClientTest.java b/clients/line-bot-messaging-api-client/src/test/java/com/linecorp/bot/messaging/client/MessagingApiClientTest.java index f776e3d76..79a35f7b8 100644 --- a/clients/line-bot-messaging-api-client/src/test/java/com/linecorp/bot/messaging/client/MessagingApiClientTest.java +++ b/clients/line-bot-messaging-api-client/src/test/java/com/linecorp/bot/messaging/client/MessagingApiClientTest.java @@ -276,34 +276,6 @@ public void deleteRichMenuAliasTest() { // TODO: test validations } - @Test - public void getAdPhoneMessageStatisticsTest() { - stubFor( - get(urlPathTemplate("/v2/bot/message/delivery/ad_phone")) - .willReturn( - aResponse() - .withStatus(200) - .withHeader("content-type", "application/json") - .withBody("{}"))); - - String date = - Arranger.some( - String.class, - Map.of( - "message", - () -> new TextMessage("hello"), - "recipient", - () -> null, - "filter", - () -> null)); - - NumberOfMessagesResponse response = api.getAdPhoneMessageStatistics(date).join().body(); - - assertThat(response).isNotNull(); - - // TODO: test validations - } - @Test public void getAggregationUnitNameListTest() { stubFor( diff --git a/line-openapi b/line-openapi index 5ae51b6a9..950521edd 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 5ae51b6a91aea5da364666cdc60d24919ad0b6ad +Subproject commit 950521edd0f5a4508277a3f7e73563bf040aac0f