diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6043157..18a4557 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -92,6 +92,7 @@ docs/LinksObject.md docs/ListEndpointsResponse.md docs/ListMessageDirectionEnum.md docs/ListMessageItem.md +docs/LocationResponse.md docs/LookupErrorResponse.md docs/LookupErrorSchema.md docs/LookupErrorSchemaMeta.md @@ -149,7 +150,6 @@ docs/RbmActionTypeEnum.md docs/RbmActionViewLocation.md docs/RbmCardContent.md docs/RbmCardContentMedia.md -docs/RbmLocationResponse.md docs/RbmMediaHeightEnum.md docs/RbmMessageCarouselCard.md docs/RbmMessageContentFile.md @@ -158,7 +158,6 @@ docs/RbmMessageContentText.md docs/RbmMessageMedia.md docs/RbmOpenUrlEnum.md docs/RbmStandaloneCard.md -docs/RbmSuggestionResponse.md docs/RbmWebViewEnum.md docs/RecordingAvailableCallback.md docs/RecordingCompleteCallback.md @@ -177,6 +176,7 @@ docs/StatusCallback.md docs/StatusCallbackMessage.md docs/StatusCallbackTypeEnum.md docs/StirShaken.md +docs/SuggestionResponse.md docs/SyncLookupRequest.md docs/TelephoneNumber.md docs/TfvBasicAuthentication.md @@ -333,6 +333,7 @@ src/Bandwidth.Standard/Model/LinksObject.cs src/Bandwidth.Standard/Model/ListEndpointsResponse.cs src/Bandwidth.Standard/Model/ListMessageDirectionEnum.cs src/Bandwidth.Standard/Model/ListMessageItem.cs +src/Bandwidth.Standard/Model/LocationResponse.cs src/Bandwidth.Standard/Model/LookupErrorResponse.cs src/Bandwidth.Standard/Model/LookupErrorSchema.cs src/Bandwidth.Standard/Model/LookupErrorSchemaMeta.cs @@ -385,7 +386,6 @@ src/Bandwidth.Standard/Model/RbmActionTypeEnum.cs src/Bandwidth.Standard/Model/RbmActionViewLocation.cs src/Bandwidth.Standard/Model/RbmCardContent.cs src/Bandwidth.Standard/Model/RbmCardContentMedia.cs -src/Bandwidth.Standard/Model/RbmLocationResponse.cs src/Bandwidth.Standard/Model/RbmMediaHeightEnum.cs src/Bandwidth.Standard/Model/RbmMessageCarouselCard.cs src/Bandwidth.Standard/Model/RbmMessageContentFile.cs @@ -394,7 +394,6 @@ src/Bandwidth.Standard/Model/RbmMessageContentText.cs src/Bandwidth.Standard/Model/RbmMessageMedia.cs src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs src/Bandwidth.Standard/Model/RbmStandaloneCard.cs -src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs src/Bandwidth.Standard/Model/RbmWebViewEnum.cs src/Bandwidth.Standard/Model/RecordingAvailableCallback.cs src/Bandwidth.Standard/Model/RecordingCompleteCallback.cs @@ -411,6 +410,7 @@ src/Bandwidth.Standard/Model/StatusCallback.cs src/Bandwidth.Standard/Model/StatusCallbackMessage.cs src/Bandwidth.Standard/Model/StatusCallbackTypeEnum.cs src/Bandwidth.Standard/Model/StirShaken.cs +src/Bandwidth.Standard/Model/SuggestionResponse.cs src/Bandwidth.Standard/Model/SyncLookupRequest.cs src/Bandwidth.Standard/Model/TelephoneNumber.cs src/Bandwidth.Standard/Model/TfvBasicAuthentication.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 20a8814..69c6f90 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{53FEDFA0-1CD0-480F-B360-4BBC8D941A42}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.Build.0 = Release|Any CPU + {53FEDFA0-1CD0-480F-B360-4BBC8D941A42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {53FEDFA0-1CD0-480F-B360-4BBC8D941A42}.Debug|Any CPU.Build.0 = Debug|Any CPU + {53FEDFA0-1CD0-480F-B360-4BBC8D941A42}.Release|Any CPU.ActiveCfg = Release|Any CPU + {53FEDFA0-1CD0-480F-B360-4BBC8D941A42}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 70cbdf8..26944af 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,7 @@ Class | Method | HTTP request | Description - [Model.ListEndpointsResponse](docs/ListEndpointsResponse.md) - [Model.ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md) - [Model.ListMessageItem](docs/ListMessageItem.md) + - [Model.LocationResponse](docs/LocationResponse.md) - [Model.LookupErrorResponse](docs/LookupErrorResponse.md) - [Model.LookupErrorSchema](docs/LookupErrorSchema.md) - [Model.LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md) @@ -312,7 +313,6 @@ Class | Method | HTTP request | Description - [Model.RbmActionViewLocation](docs/RbmActionViewLocation.md) - [Model.RbmCardContent](docs/RbmCardContent.md) - [Model.RbmCardContentMedia](docs/RbmCardContentMedia.md) - - [Model.RbmLocationResponse](docs/RbmLocationResponse.md) - [Model.RbmMediaHeightEnum](docs/RbmMediaHeightEnum.md) - [Model.RbmMessageCarouselCard](docs/RbmMessageCarouselCard.md) - [Model.RbmMessageContentFile](docs/RbmMessageContentFile.md) @@ -321,7 +321,6 @@ Class | Method | HTTP request | Description - [Model.RbmMessageMedia](docs/RbmMessageMedia.md) - [Model.RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md) - [Model.RbmStandaloneCard](docs/RbmStandaloneCard.md) - - [Model.RbmSuggestionResponse](docs/RbmSuggestionResponse.md) - [Model.RbmWebViewEnum](docs/RbmWebViewEnum.md) - [Model.RecordingAvailableCallback](docs/RecordingAvailableCallback.md) - [Model.RecordingCompleteCallback](docs/RecordingCompleteCallback.md) @@ -338,6 +337,7 @@ Class | Method | HTTP request | Description - [Model.StatusCallbackMessage](docs/StatusCallbackMessage.md) - [Model.StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md) - [Model.StirShaken](docs/StirShaken.md) + - [Model.SuggestionResponse](docs/SuggestionResponse.md) - [Model.SyncLookupRequest](docs/SyncLookupRequest.md) - [Model.TelephoneNumber](docs/TelephoneNumber.md) - [Model.TfvBasicAuthentication](docs/TfvBasicAuthentication.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 344fb1e..d7853ee 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6343,8 +6343,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: @@ -7062,7 +7062,7 @@ components: tag: "{\"myTag\": \"myTagValue\"}" updateEndpointBxmlRequestExample: summary: Update Endpoint BXML Request Example - value: + value: endpointDisconnectedEventExample: summary: Endpoint Disconnected Event value: @@ -10490,7 +10490,7 @@ components: media: $ref: '#/components/schemas/rbmMessageContentFile' type: object - rbmSuggestionResponse: + suggestionResponse: properties: text: description: The text associated with the suggestion response. @@ -10504,8 +10504,13 @@ components: maxLength: 2048 title: Post Back Data type: string + pairedMessageId: + description: Corresponding parent message ID (MT). + example: 1752697342534u24xerqdukke523x + nullable: true + type: string type: object - rbmLocationResponse: + locationResponse: properties: latitude: description: The latitude of the client's location. @@ -10531,7 +10536,7 @@ components: message-failed: '#/components/schemas/statusCallback' message-read: '#/components/schemas/statusCallback' message-received: '#/components/schemas/inboundCallback' - request-location-response: '#/components/schemas/inboundCallback' + requested-location-response: '#/components/schemas/inboundCallback' suggestion-response: '#/components/schemas/inboundCallback' propertyName: type oneOf: @@ -10637,11 +10642,11 @@ components: description: |- 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. + - `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. enum: - message-received - - request-location-response + - requested-location-response - suggestion-response example: message-received type: string @@ -10725,9 +10730,9 @@ components: content: $ref: '#/components/schemas/multiChannelMessageContent' suggestionResponse: - $ref: '#/components/schemas/rbmSuggestionResponse' + $ref: '#/components/schemas/suggestionResponse' locationResponse: - $ref: '#/components/schemas/rbmLocationResponse' + $ref: '#/components/schemas/locationResponse' type: object required: - applicationId diff --git a/bandwidth.yml b/bandwidth.yml index 5e2bc9b..92f7b76 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2880,7 +2880,7 @@ components: type: string media: $ref: '#/components/schemas/rbmMessageContentFile' - rbmSuggestionResponse: + suggestionResponse: type: object properties: text: @@ -2889,7 +2889,12 @@ components: example: Yes, I would like to proceed postbackData: $ref: '#/components/schemas/rbmActionPostbackData' - rbmLocationResponse: + pairedMessageId: + type: string + nullable: true + description: Corresponding parent message ID (MT). + example: 1752697342534u24xerqdukke523x + locationResponse: type: object properties: latitude: @@ -2925,7 +2930,7 @@ components: message-failed: '#/components/schemas/statusCallback' message-read: '#/components/schemas/statusCallback' message-received: '#/components/schemas/inboundCallback' - request-location-response: '#/components/schemas/inboundCallback' + requested-location-response: '#/components/schemas/inboundCallback' suggestion-response: '#/components/schemas/inboundCallback' statusCallback: type: object @@ -3035,14 +3040,15 @@ components: - `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. + - `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. enum: - message-received - - request-location-response + - requested-location-response - suggestion-response example: message-received statusCallbackMessage: @@ -3118,9 +3124,9 @@ components: content: $ref: '#/components/schemas/multiChannelMessageContent' suggestionResponse: - $ref: '#/components/schemas/rbmSuggestionResponse' + $ref: '#/components/schemas/suggestionResponse' locationResponse: - $ref: '#/components/schemas/rbmLocationResponse' + $ref: '#/components/schemas/locationResponse' required: - id - owner @@ -9154,7 +9160,7 @@ components: tag: '{"myTag": "myTagValue"}' updateEndpointBxmlRequestExample: summary: Update Endpoint BXML Request Example - value: + value: endpointDisconnectedEventExample: summary: Endpoint Disconnected Event value: @@ -9678,10 +9684,10 @@ components:

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/InboundCallbackMessage.md b/docs/InboundCallbackMessage.md index 6230db3..1acc2b6 100644 --- a/docs/InboundCallbackMessage.md +++ b/docs/InboundCallbackMessage.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **Priority** | **PriorityEnum** | | [optional] **Channel** | **MultiChannelMessageChannelEnum** | | [optional] **Content** | [**MultiChannelMessageContent**](MultiChannelMessageContent.md) | | [optional] -**SuggestionResponse** | [**RbmSuggestionResponse**](RbmSuggestionResponse.md) | | [optional] -**LocationResponse** | [**RbmLocationResponse**](RbmLocationResponse.md) | | [optional] +**SuggestionResponse** | [**SuggestionResponse**](SuggestionResponse.md) | | [optional] +**LocationResponse** | [**LocationResponse**](LocationResponse.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InboundCallbackTypeEnum.md b/docs/InboundCallbackTypeEnum.md index 987f11e..5151f84 100644 --- a/docs/InboundCallbackTypeEnum.md +++ b/docs/InboundCallbackTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.InboundCallbackTypeEnum -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. ## Properties diff --git a/docs/LocationResponse.md b/docs/LocationResponse.md new file mode 100644 index 0000000..739c4c4 --- /dev/null +++ b/docs/LocationResponse.md @@ -0,0 +1,11 @@ +# Bandwidth.Standard.Model.LocationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Latitude** | **double** | The latitude of the client's location. | [optional] +**Longitude** | **double** | The longitude of the client's location. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SuggestionResponse.md b/docs/SuggestionResponse.md new file mode 100644 index 0000000..723a63c --- /dev/null +++ b/docs/SuggestionResponse.md @@ -0,0 +1,12 @@ +# Bandwidth.Standard.Model.SuggestionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Bandwidth.Standard/Model/InboundCallbackMessage.cs b/src/Bandwidth.Standard/Model/InboundCallbackMessage.cs index 95cda1e..4064f11 100644 --- a/src/Bandwidth.Standard/Model/InboundCallbackMessage.cs +++ b/src/Bandwidth.Standard/Model/InboundCallbackMessage.cs @@ -74,7 +74,7 @@ protected InboundCallbackMessage() { } /// content. /// suggestionResponse. /// locationResponse. - public InboundCallbackMessage(string id = default(string), string owner = default(string), string applicationId = default(string), DateTime time = default(DateTime), int segmentCount = default(int), MessageDirectionEnum direction = default(MessageDirectionEnum), List to = default(List), string from = default(string), string text = default(string), string tag = default(string), List media = default(List), PriorityEnum? priority = default(PriorityEnum?), MultiChannelMessageChannelEnum? channel = default(MultiChannelMessageChannelEnum?), MultiChannelMessageContent content = default(MultiChannelMessageContent), RbmSuggestionResponse suggestionResponse = default(RbmSuggestionResponse), RbmLocationResponse locationResponse = default(RbmLocationResponse)) + public InboundCallbackMessage(string id = default(string), string owner = default(string), string applicationId = default(string), DateTime time = default(DateTime), int segmentCount = default(int), MessageDirectionEnum direction = default(MessageDirectionEnum), List to = default(List), string from = default(string), string text = default(string), string tag = default(string), List media = default(List), PriorityEnum? priority = default(PriorityEnum?), MultiChannelMessageChannelEnum? channel = default(MultiChannelMessageChannelEnum?), MultiChannelMessageContent content = default(MultiChannelMessageContent), SuggestionResponse suggestionResponse = default(SuggestionResponse), LocationResponse locationResponse = default(LocationResponse)) { // to ensure "id" is required (not null) if (id == null) @@ -207,13 +207,13 @@ protected InboundCallbackMessage() { } /// Gets or Sets SuggestionResponse /// [DataMember(Name = "suggestionResponse", EmitDefaultValue = false)] - public RbmSuggestionResponse SuggestionResponse { get; set; } + public SuggestionResponse SuggestionResponse { get; set; } ///

/// Gets or Sets LocationResponse /// [DataMember(Name = "locationResponse", EmitDefaultValue = false)] - public RbmLocationResponse LocationResponse { get; set; } + public LocationResponse LocationResponse { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs index 5e39ce3..dac703f 100644 --- a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// 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. /// - /// 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. [JsonConverter(typeof(StringEnumConverter))] public enum InboundCallbackTypeEnum { @@ -40,10 +40,10 @@ public enum InboundCallbackTypeEnum MessageReceived = 1, /// - /// Enum RequestLocationResponse for value: request-location-response + /// Enum RequestedLocationResponse for value: requested-location-response /// - [EnumMember(Value = "request-location-response")] - RequestLocationResponse = 2, + [EnumMember(Value = "requested-location-response")] + RequestedLocationResponse = 2, /// /// Enum SuggestionResponse for value: suggestion-response diff --git a/src/Bandwidth.Standard/Model/LocationResponse.cs b/src/Bandwidth.Standard/Model/LocationResponse.cs new file mode 100644 index 0000000..042cf13 --- /dev/null +++ b/src/Bandwidth.Standard/Model/LocationResponse.cs @@ -0,0 +1,96 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// LocationResponse + /// + [DataContract(Name = "locationResponse")] + public partial class LocationResponse : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The latitude of the client's location.. + /// The longitude of the client's location.. + public LocationResponse(double latitude = default(double), double longitude = default(double)) + { + this.Latitude = latitude; + this.Longitude = longitude; + } + + /// + /// The latitude of the client's location. + /// + /// The latitude of the client's location. + /// 37.7749 + [DataMember(Name = "latitude", EmitDefaultValue = false)] + public double Latitude { get; set; } + + /// + /// The longitude of the client's location. + /// + /// The longitude of the client's location. + /// -122.4194 + [DataMember(Name = "longitude", EmitDefaultValue = false)] + public double Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LocationResponse {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index 605318f..9f3005e 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@3c205259 + /// [B@2b76ecd5 [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/SuggestionResponse.cs b/src/Bandwidth.Standard/Model/SuggestionResponse.cs new file mode 100644 index 0000000..75167b3 --- /dev/null +++ b/src/Bandwidth.Standard/Model/SuggestionResponse.cs @@ -0,0 +1,113 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// SuggestionResponse + /// + [DataContract(Name = "suggestionResponse")] + public partial class SuggestionResponse : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The text associated with the suggestion response.. + /// Base64 payload the customer receives when the reply is clicked.. + /// Corresponding parent message ID (MT).. + public SuggestionResponse(string text = default(string), byte[] postbackData = default(byte[]), string pairedMessageId = default(string)) + { + this.Text = text; + this.PostbackData = postbackData; + this.PairedMessageId = pairedMessageId; + } + + /// + /// The text associated with the suggestion response. + /// + /// The text associated with the suggestion response. + /// Yes, I would like to proceed + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + + /// + /// Base64 payload the customer receives when the reply is clicked. + /// + /// Base64 payload the customer receives when the reply is clicked. + /// [B@2b76ecd5 + [DataMember(Name = "postbackData", EmitDefaultValue = false)] + public byte[] PostbackData { get; set; } + + /// + /// Corresponding parent message ID (MT). + /// + /// Corresponding parent message ID (MT). + /// 1752697342534u24xerqdukke523x + [DataMember(Name = "pairedMessageId", EmitDefaultValue = true)] + public string PairedMessageId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SuggestionResponse {\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" PostbackData: ").Append(PostbackData).Append("\n"); + sb.Append(" PairedMessageId: ").Append(PairedMessageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // PostbackData (byte[]) maxLength + if (this.PostbackData != null && this.PostbackData.Length > 2048) + { + yield return new ValidationResult("Invalid value for PostbackData, length must be less than 2048.", new [] { "PostbackData" }); + } + + yield break; + } + } + +}