From 9547cadb772044bb223f5e2c92c9d0066fd22425 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 30 Jun 2026 14:56:32 +0000 Subject: [PATCH 1/2] Generate SDK with OpenAPI Generator Version --- api/openapi.yaml | 37 ++++++++++++++--- bandwidth.yml | 40 ++++++++++++++++--- docs/StatusCallbackTypeEnum.md | 2 + .../sdk/model/StatusCallbackTypeEnum.java | 4 +- 4 files changed, 70 insertions(+), 13 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index b6b27331..cacef410 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6498,6 +6498,8 @@ components: examples: messageSendingCallback: $ref: "#/components/examples/messageSendingCallbackExample" + messageSentCallback: + $ref: "#/components/examples/messageSentCallbackExample" smsMessageDeliveredCallback: $ref: "#/components/examples/smsMessageDeliveredCallbackExample" mmsMessageDeliveredCallback: @@ -6511,7 +6513,7 @@ components: description: |-

This Outbound Message Webhook is an envelope containing status information regarding a message sent (MT) from your message-enabled Bandwidth telephone number. -

The payload type will be one of message-sending, message-delivered, message-failed or message-read. +

The payload type will be one of message-sending, message-sent, message-delivered, message-failed or message-read.

Note that message-read callbacks are pertinent only for RBM messages sent from the /messages/multiChannel endpoint.

Please visit Webhooks

required: true @@ -6691,12 +6693,33 @@ components: media: - https://dev.bandwidth.com/images/bandwidth-logo.png tag: your tag here + messageSentCallbackExample: + summary: An example of a message-sent callback body. + value: + time: 2024-06-25T18:42:36.979456Z + type: message-sent + to: "+15554443333" + description: Message sent to carrier + message: + id: 1593110555875xo7watq5px6rbe5d + owner: "+15552221111" + applicationId: cfd4fb83-7531-4acc-b471-42d0bb76a65c + time: 2024-06-25T18:42:35.876906Z + segmentCount: 1 + direction: out + to: + - "+15554443333" + from: "+15552221111" + text: "" + media: + - https://dev.bandwidth.com/images/bandwidth-logo.png + tag: v2 lab smsMessageDeliveredCallbackExample: summary: An example of a sms message-delivered callback body. value: type: message-delivered time: 2024-09-14T18:20:11.160744Z - description: Message delivered to carrier. + description: Message delivered to handset. to: "+12345678902" message: id: 14762070468292kw2fuqty55yp2b2 @@ -6714,7 +6737,7 @@ components: value: type: message-delivered time: 2024-09-14T18:20:24.160544Z - description: Message delivered to carrier. + description: Message delivered to handset. to: "+12345678902" message: id: 14762070468292kw2fuqty55yp2b2 @@ -6734,7 +6757,7 @@ components: value: type: message-delivered time: 2024-09-14T18:20:17.160544Z - description: Message delivered to carrier. + description: Message delivered to handset. to: "+12345678902" message: id: 14762070468292kw2fuqty55yp2b2 @@ -10704,7 +10727,7 @@ components: type: string description: description: A detailed description of the event described by the callback. - example: Message delivered to carrier. + example: Message delivered to handset. type: string message: $ref: "#/components/schemas/statusCallbackMessage" @@ -10765,11 +10788,13 @@ components: description: |- The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - - `message-delivered` indicates that the message was successfully sent. + - `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider. + - `message-delivered` indicates that the message was successfully delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient. enum: - message-sending + - message-sent - message-delivered - message-failed - message-read diff --git a/bandwidth.yml b/bandwidth.yml index fd39c5cb..52ceffd4 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2962,7 +2962,7 @@ components: description: type: string description: A detailed description of the event described by the callback. - example: Message delivered to carrier. + example: Message delivered to handset. message: $ref: '#/components/schemas/statusCallbackMessage' errorCode: @@ -3018,7 +3018,11 @@ components: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - - `message-delivered` indicates that the message was successfully sent. + - `message-sent` indicates that the message has left the Bandwidth + network and is in transit to the provider. + + - `message-delivered` indicates that the message was successfully + delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. @@ -3027,6 +3031,7 @@ components: recipient. enum: - message-sending + - message-sent - message-delivered - message-failed - message-read @@ -8712,12 +8717,33 @@ components: media: - https://dev.bandwidth.com/images/bandwidth-logo.png tag: your tag here + messageSentCallbackExample: + summary: An example of a message-sent callback body. + value: + time: '2024-06-25T18:42:36.979456Z' + type: message-sent + to: '+15554443333' + description: Message sent to carrier + message: + id: 1593110555875xo7watq5px6rbe5d + owner: '+15552221111' + applicationId: cfd4fb83-7531-4acc-b471-42d0bb76a65c + time: '2024-06-25T18:42:35.876906Z' + segmentCount: 1 + direction: out + to: + - '+15554443333' + from: '+15552221111' + text: '' + media: + - https://dev.bandwidth.com/images/bandwidth-logo.png + tag: v2 lab smsMessageDeliveredCallbackExample: summary: An example of a sms message-delivered callback body. value: type: message-delivered time: '2024-09-14T18:20:11.160744Z' - description: Message delivered to carrier. + description: Message delivered to handset. to: '+12345678902' message: id: 14762070468292kw2fuqty55yp2b2 @@ -8735,7 +8761,7 @@ components: value: type: message-delivered time: '2024-09-14T18:20:24.160544Z' - description: Message delivered to carrier. + description: Message delivered to handset. to: '+12345678902' message: id: 14762070468292kw2fuqty55yp2b2 @@ -8755,7 +8781,7 @@ components: value: type: message-delivered time: '2024-09-14T18:20:17.160544Z' - description: Message delivered to carrier. + description: Message delivered to handset. to: '+12345678902' message: id: 14762070468292kw2fuqty55yp2b2 @@ -9787,7 +9813,7 @@ components: information regarding a message sent (MT) from your message-enabled Bandwidth telephone number. -

The payload type will be one of message-sending, message-delivered, message-failed or message-read. +

The payload type will be one of message-sending, message-sent, message-delivered, message-failed or message-read.

Note that message-read callbacks are pertinent only for RBM messages sent from the /messages/multiChannel endpoint.

Please visit Webhooks

@@ -9798,6 +9824,8 @@ components: examples: messageSendingCallback: $ref: '#/components/examples/messageSendingCallbackExample' + messageSentCallback: + $ref: '#/components/examples/messageSentCallbackExample' smsMessageDeliveredCallback: $ref: '#/components/examples/smsMessageDeliveredCallbackExample' mmsMessageDeliveredCallback: diff --git a/docs/StatusCallbackTypeEnum.md b/docs/StatusCallbackTypeEnum.md index 0b626836..5c74b1be 100644 --- a/docs/StatusCallbackTypeEnum.md +++ b/docs/StatusCallbackTypeEnum.md @@ -7,6 +7,8 @@ * `MESSAGE_SENDING` (value: `"message-sending"`) +* `MESSAGE_SENT` (value: `"message-sent"`) + * `MESSAGE_DELIVERED` (value: `"message-delivered"`) * `MESSAGE_FAILED` (value: `"message-failed"`) diff --git a/src/main/java/com/bandwidth/sdk/model/StatusCallbackTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/StatusCallbackTypeEnum.java index 1d7a59c1..f6270a51 100644 --- a/src/main/java/com/bandwidth/sdk/model/StatusCallbackTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/StatusCallbackTypeEnum.java @@ -26,13 +26,15 @@ import com.google.gson.stream.JsonWriter; /** - * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-delivered` indicates that the message was successfully sent. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient. + * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider. - `message-delivered` indicates that the message was successfully delivered to handset. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient. */ @JsonAdapter(StatusCallbackTypeEnum.Adapter.class) public enum StatusCallbackTypeEnum { MESSAGE_SENDING("message-sending"), + MESSAGE_SENT("message-sent"), + MESSAGE_DELIVERED("message-delivered"), MESSAGE_FAILED("message-failed"), From 10c2d29962f75de59759f7491ade290079447c1a Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 30 Jun 2026 16:39:25 -0400 Subject: [PATCH 2/2] unit test --- .../bandwidth/sdk/unit/models/StatusCallbackTypeEnumTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/bandwidth/sdk/unit/models/StatusCallbackTypeEnumTest.java b/src/test/java/com/bandwidth/sdk/unit/models/StatusCallbackTypeEnumTest.java index 9a6b3d82..ffda4eda 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/StatusCallbackTypeEnumTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/StatusCallbackTypeEnumTest.java @@ -30,6 +30,7 @@ public class StatusCallbackTypeEnumTest { @Test public void testStatusCallbackTypeEnum() { assertThat(StatusCallbackTypeEnum.MESSAGE_SENDING.toString(), equalTo("message-sending")); + assertThat(StatusCallbackTypeEnum.MESSAGE_SENT.toString(), equalTo("message-sent")); assertThat(StatusCallbackTypeEnum.MESSAGE_DELIVERED.toString(), equalTo("message-delivered")); assertThat(StatusCallbackTypeEnum.MESSAGE_FAILED.toString(), equalTo("message-failed")); assertThat(StatusCallbackTypeEnum.MESSAGE_READ.toString(), equalTo("message-read"));