Skip to content

Commit

Permalink
Retire GET /v2/bot/message/delivery/ad_phone (#1535)
Browse files Browse the repository at this point in the history
line/line-openapi#82

`GET /v2/bot/message/delivery/ad_phone` was sunset.
This change removes it as it's no longer necessary to include it in
line-openapi.

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Jan 21, 2025
1 parent 92e6164 commit 166fcda
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,6 @@ CompletableFuture<Result<Void>> createRichMenuAlias(
CompletableFuture<Result<Void>> deleteRichMenuAlias(
@Path("richMenuAliasId") String richMenuAliasId);

/**
* Get result of message delivery using phone number
*
* @param date Date the message was sent Format: &#x60;yyyyMMdd&#x60; (e.g. &#x60;20190831&#x60;)
* Time Zone: UTC+9 (required)
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-phone-audience-match">
* Documentation</a>
*/
@GET("/v2/bot/message/delivery/ad_phone")
CompletableFuture<Result<NumberOfMessagesResponse>> getAdPhoneMessageStatistics(
@Query("date") String date);

/**
* Get name list of units used this month
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion line-openapi
Submodule line-openapi updated 1 files
+0 −37 messaging-api.yml

0 comments on commit 166fcda

Please sign in to comment.