diff --git a/api/openapi.yaml b/api/openapi.yaml index e2120313..829a814e 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6480,8 +6480,8 @@ components:
This Inbound Message Webhook is an envelope containing either a received (MO) message to your message-enabled Bandwidth telephone number or a multichannel client's response to a suggestion response or location request. -
The payload type will be one of message-received, suggestion-response, or location-request-response.
-
Note that suggestion-response and location-request-response callback types are pertinent only for RBM messages sent from the /messages/multiChannel endpoint.
+
The payload type will be one of message-received, suggestion-response, or requested-location-response.
+
Note that suggestion-response and requested-location-response callback types are pertinent only for RBM messages sent from the /messages/multiChannel endpoint.
Please visit Webhooks
required: true responses: @@ -7199,7 +7199,7 @@ components: tag: "{\"myTag\": \"myTagValue\"}" updateEndpointBxmlRequestExample: summary: Update Endpoint BXML Request Example - value:The payload type will be one of message-received,
suggestion-response, or
- location-request-response.
+ requested-location-response.
Note that suggestion-response and
- location-request-response callback types are
+ requested-location-response callback types are
pertinent only for RBM messages sent from the
/messages/multiChannel endpoint.
diff --git a/docs/InboundCallbackTypeEnum.md b/docs/InboundCallbackTypeEnum.md
index d2577d84..9b34f428 100644
--- a/docs/InboundCallbackTypeEnum.md
+++ b/docs/InboundCallbackTypeEnum.md
@@ -7,7 +7,7 @@
* `MESSAGE_RECEIVED` (value: `"message-received"`)
-* `REQUEST_LOCATION_RESPONSE` (value: `"request-location-response"`)
+* `REQUESTED_LOCATION_RESPONSE` (value: `"requested-location-response"`)
* `SUGGESTION_RESPONSE` (value: `"suggestion-response"`)
diff --git a/docs/RbmSuggestionResponse.md b/docs/RbmSuggestionResponse.md
index e718ac21..39c8dd4f 100644
--- a/docs/RbmSuggestionResponse.md
+++ b/docs/RbmSuggestionResponse.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**text** | **String** | The text associated with the suggestion response. | [optional] |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | [optional] |
+|**pairedMessageId** | **String** | Corresponding parent message ID (MT). | [optional] |
diff --git a/src/main/java/com/bandwidth/sdk/JSON.java b/src/main/java/com/bandwidth/sdk/JSON.java
index f2a30beb..7f32723a 100644
--- a/src/main/java/com/bandwidth/sdk/JSON.java
+++ b/src/main/java/com/bandwidth/sdk/JSON.java
@@ -71,7 +71,7 @@ public Class extends com.bandwidth.sdk.model.Callback> getClassForElement(Json
classByDiscriminatorValue.put("message-received", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("message-sending", com.bandwidth.sdk.model.StatusCallback.class);
classByDiscriminatorValue.put("message-sent", com.bandwidth.sdk.model.StatusCallback.class);
- classByDiscriminatorValue.put("request-location-response", com.bandwidth.sdk.model.InboundCallback.class);
+ classByDiscriminatorValue.put("requested-location-response", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("suggestion-response", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("callback", com.bandwidth.sdk.model.Callback.class);
return getClassByDiscriminator(classByDiscriminatorValue,
diff --git a/src/main/java/com/bandwidth/sdk/model/Callback.java b/src/main/java/com/bandwidth/sdk/model/Callback.java
index 9db016fd..0b570822 100644
--- a/src/main/java/com/bandwidth/sdk/model/Callback.java
+++ b/src/main/java/com/bandwidth/sdk/model/Callback.java
@@ -140,7 +140,7 @@ public Callback read(JsonReader in) throws IOException {
deserialized = adapterStatusCallback.fromJsonTree(jsonObject);
newCallback.setActualInstance(deserialized);
return newCallback;
- case "request-location-response":
+ case "requested-location-response":
deserialized = adapterInboundCallback.fromJsonTree(jsonObject);
newCallback.setActualInstance(deserialized);
return newCallback;
@@ -149,7 +149,7 @@ public Callback read(JsonReader in) throws IOException {
newCallback.setActualInstance(deserialized);
return newCallback;
default:
- log.log(Level.WARNING, String.format(Locale.ROOT, "Failed to lookup discriminator value `%s` for Callback. Possible values: message-delivered message-failed message-read message-received message-sending message-sent request-location-response suggestion-response", jsonObject.get("type").getAsString()));
+ log.log(Level.WARNING, String.format(Locale.ROOT, "Failed to lookup discriminator value `%s` for Callback. Possible values: message-delivered message-failed message-read message-received message-sending message-sent requested-location-response suggestion-response", jsonObject.get("type").getAsString()));
}
}
diff --git a/src/main/java/com/bandwidth/sdk/model/InboundCallbackTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/InboundCallbackTypeEnum.java
index 2c09896b..630bc0ae 100644
--- a/src/main/java/com/bandwidth/sdk/model/InboundCallbackTypeEnum.java
+++ b/src/main/java/com/bandwidth/sdk/model/InboundCallbackTypeEnum.java
@@ -26,14 +26,14 @@
import com.google.gson.stream.JsonWriter;
/**
- * The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
+ * The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `requested-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
*/
@JsonAdapter(InboundCallbackTypeEnum.Adapter.class)
public enum InboundCallbackTypeEnum {
MESSAGE_RECEIVED("message-received"),
- REQUEST_LOCATION_RESPONSE("request-location-response"),
+ REQUESTED_LOCATION_RESPONSE("requested-location-response"),
SUGGESTION_RESPONSE("suggestion-response");
diff --git a/src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java b/src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java
index 578d5fdb..bdb0af9d 100644
--- a/src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java
+++ b/src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.Arrays;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -62,6 +63,11 @@ public class RbmSuggestionResponse {
@javax.annotation.Nullable
private byte[] postbackData;
+ public static final String SERIALIZED_NAME_PAIRED_MESSAGE_ID = "pairedMessageId";
+ @SerializedName(SERIALIZED_NAME_PAIRED_MESSAGE_ID)
+ @javax.annotation.Nullable
+ private String pairedMessageId;
+
public RbmSuggestionResponse() {
}
@@ -102,6 +108,25 @@ public void setPostbackData(@javax.annotation.Nullable byte[] postbackData) {
this.postbackData = postbackData;
}
+
+ public RbmSuggestionResponse pairedMessageId(@javax.annotation.Nullable String pairedMessageId) {
+ this.pairedMessageId = pairedMessageId;
+ return this;
+ }
+
+ /**
+ * Corresponding parent message ID (MT).
+ * @return pairedMessageId
+ */
+ @javax.annotation.Nullable
+ public String getPairedMessageId() {
+ return pairedMessageId;
+ }
+
+ public void setPairedMessageId(@javax.annotation.Nullable String pairedMessageId) {
+ this.pairedMessageId = pairedMessageId;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -158,13 +183,25 @@ public boolean equals(Object o) {
}
RbmSuggestionResponse rbmSuggestionResponse = (RbmSuggestionResponse) o;
return Objects.equals(this.text, rbmSuggestionResponse.text) &&
- Arrays.equals(this.postbackData, rbmSuggestionResponse.postbackData)&&
+ Arrays.equals(this.postbackData, rbmSuggestionResponse.postbackData) &&
+ Objects.equals(this.pairedMessageId, rbmSuggestionResponse.pairedMessageId)&&
Objects.equals(this.additionalProperties, rbmSuggestionResponse.additionalProperties);
}
+ private static