diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index aac0f9f..88eaa1e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -98,6 +98,7 @@ docs/OptInWorkflow.md docs/PageInfo.md docs/PhoneNumberLookupApi.md docs/PriorityEnum.md +docs/ProductTypeEnum.md docs/RbmActionBase.md docs/RbmActionDial.md docs/RbmActionOpenUrl.md @@ -282,6 +283,7 @@ src/Bandwidth.Standard/Model/MultiChannelMessageResponseDataChannelListInner.cs src/Bandwidth.Standard/Model/OptInWorkflow.cs src/Bandwidth.Standard/Model/PageInfo.cs src/Bandwidth.Standard/Model/PriorityEnum.cs +src/Bandwidth.Standard/Model/ProductTypeEnum.cs src/Bandwidth.Standard/Model/RbmActionBase.cs src/Bandwidth.Standard/Model/RbmActionDial.cs src/Bandwidth.Standard/Model/RbmActionOpenUrl.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index eb06ddb..76e73e1 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", "{5369BDE8-E89E-4A47-BF1B-915C8C23CB7C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{30B96883-C571-497C-8A61-1A38A3690AFC}" 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 - {5369BDE8-E89E-4A47-BF1B-915C8C23CB7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5369BDE8-E89E-4A47-BF1B-915C8C23CB7C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5369BDE8-E89E-4A47-BF1B-915C8C23CB7C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5369BDE8-E89E-4A47-BF1B-915C8C23CB7C}.Release|Any CPU.Build.0 = Release|Any CPU + {30B96883-C571-497C-8A61-1A38A3690AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30B96883-C571-497C-8A61-1A38A3690AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30B96883-C571-497C-8A61-1A38A3690AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30B96883-C571-497C-8A61-1A38A3690AFC}.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 f7b344f..60db336 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,7 @@ Class | Method | HTTP request | Description - [Model.OptInWorkflow](docs/OptInWorkflow.md) - [Model.PageInfo](docs/PageInfo.md) - [Model.PriorityEnum](docs/PriorityEnum.md) + - [Model.ProductTypeEnum](docs/ProductTypeEnum.md) - [Model.RbmActionBase](docs/RbmActionBase.md) - [Model.RbmActionDial](docs/RbmActionDial.md) - [Model.RbmActionOpenUrl](docs/RbmActionOpenUrl.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 71bca43..cbc660b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -511,6 +511,98 @@ paths: schema: type: string style: form + - description: The minimum Bandwidth latency of the message in seconds. Only + available for accounts with the Advanced Quality Metrics feature enabled. + example: 5 + explode: true + in: query + name: fromBwLatency + required: false + schema: + type: integer + style: form + - description: A boolean value indicating whether the message is queued in the + Bandwidth network. + example: true + explode: true + in: query + name: bwQueued + required: false + schema: + type: boolean + style: form + - description: Messaging product associated with the message. + example: P2P + explode: true + in: query + name: product + required: false + schema: + $ref: '#/components/schemas/productTypeEnum' + style: form + - description: Location Id associated with the message. + example: 123ABC + explode: true + in: query + name: location + required: false + schema: + type: string + style: form + - description: Calling number country in A3 format. + example: USA + explode: true + in: query + name: callingNumberCountryA3 + required: false + schema: + type: string + style: form + - description: Called number country in A3 format. + example: USA + explode: true + in: query + name: calledNumberCountryA3 + required: false + schema: + type: string + style: form + - description: Segment count (start range). + example: 1 + explode: true + in: query + name: fromSegmentCount + required: false + schema: + type: integer + style: form + - description: Segment count (end range). + example: 3 + explode: true + in: query + name: toSegmentCount + required: false + schema: + type: integer + style: form + - description: Message size (start range). + example: 100 + explode: true + in: query + name: fromMessageSize + required: false + schema: + type: integer + style: form + - description: Message size (end range). + example: 120 + explode: true + in: query + name: toMessageSize + required: false + schema: + type: integer + style: form - description: The field and direction to sort by combined with a colon. Direction is either asc or desc. example: sourceTn:desc @@ -6237,6 +6329,108 @@ components: schema: type: string style: form + fromBwLatency: + description: The minimum Bandwidth latency of the message in seconds. Only available + for accounts with the Advanced Quality Metrics feature enabled. + example: 5 + explode: true + in: query + name: fromBwLatency + required: false + schema: + type: integer + style: form + bwQueued: + description: A boolean value indicating whether the message is queued in the + Bandwidth network. + example: true + explode: true + in: query + name: bwQueued + required: false + schema: + type: boolean + style: form + product: + description: Messaging product associated with the message. + example: P2P + explode: true + in: query + name: product + required: false + schema: + $ref: '#/components/schemas/productTypeEnum' + style: form + location: + description: Location Id associated with the message. + example: 123ABC + explode: true + in: query + name: location + required: false + schema: + type: string + style: form + callingNumberCountryA3: + description: Calling number country in A3 format. + example: USA + explode: true + in: query + name: callingNumberCountryA3 + required: false + schema: + type: string + style: form + calledNumberCountryA3: + description: Called number country in A3 format. + example: USA + explode: true + in: query + name: calledNumberCountryA3 + required: false + schema: + type: string + style: form + fromSegmentCount: + description: Segment count (start range). + example: 1 + explode: true + in: query + name: fromSegmentCount + required: false + schema: + type: integer + style: form + toSegmentCount: + description: Segment count (end range). + example: 3 + explode: true + in: query + name: toSegmentCount + required: false + schema: + type: integer + style: form + fromMessageSize: + description: Message size (start range). + example: 100 + explode: true + in: query + name: fromMessageSize + required: false + schema: + type: integer + style: form + toMessageSize: + description: Message size (end range). + example: 120 + explode: true + in: query + name: toMessageSize + required: false + schema: + type: integer + style: form sort: description: The field and direction to sort by combined with a colon. Direction is either asc or desc. @@ -7586,8 +7780,23 @@ components: enum: - sms - mms + - rcs example: sms type: string + productTypeEnum: + description: The type of product associated with the message. + enum: + - LOCAL_A2P + - P2P + - SHORT_CODE_REACH + - TOLL_FREE + - HOSTED_SHORT_CODE + - ALPHA_NUMERIC + - RBM_MEDIA + - RBM_RICH + - RBM_CONVERSATIONAL + example: P2P + type: string fieldError: example: fieldName: from @@ -7612,11 +7821,14 @@ components: nextPageToken: GL83PD3C prevPage: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902 messages: - - sourceTn: "+15554443333" + - callingNumberCountryA3: USA + product: P2P + sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 + calledNumberCountryA3: USA destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED @@ -7627,13 +7839,18 @@ components: carrierName: other recipientCount: 1 campaignClass: T + bwLatency: 20 attachmentCount: 1 + location: 123ID messageSize: 27 - - sourceTn: "+15554443333" + - callingNumberCountryA3: USA + product: P2P + sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 + calledNumberCountryA3: USA destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED @@ -7644,7 +7861,9 @@ components: carrierName: other recipientCount: 1 campaignClass: T + bwLatency: 20 attachmentCount: 1 + location: 123ID messageSize: 27 totalCount: 100 properties: @@ -7663,11 +7882,14 @@ components: type: object listMessageItem: example: + callingNumberCountryA3: USA + product: P2P sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 + calledNumberCountryA3: USA destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED @@ -7678,7 +7900,9 @@ components: carrierName: other recipientCount: 1 campaignClass: T + bwLatency: 20 attachmentCount: 1 + location: 123ID messageSize: 27 properties: messageId: @@ -7752,6 +7976,32 @@ components: example: CJEUMDK nullable: true type: string + bwLatency: + description: The Bandwidth latency of the message in seconds. Only available + for accounts with the Advanced Quality Metrics feature enabled. + example: 20 + nullable: true + type: integer + callingNumberCountryA3: + description: The A3 country code of the calling number. + example: USA + nullable: true + type: string + calledNumberCountryA3: + description: The A3 country code of the called number. + example: USA + nullable: true + type: string + product: + description: The messaging product associated with the message. + example: P2P + nullable: true + type: string + location: + description: The location ID associated with this message. + example: 123ID + nullable: true + type: string title: listMessageItem type: object pageInfo: diff --git a/bandwidth.yml b/bandwidth.yml index 4b3681c..65afd41 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -179,6 +179,16 @@ paths: - $ref: '#/components/parameters/fromDateTime' - $ref: '#/components/parameters/toDateTime' - $ref: '#/components/parameters/campaignId' + - $ref: '#/components/parameters/fromBwLatency' + - $ref: '#/components/parameters/bwQueued' + - $ref: '#/components/parameters/product' + - $ref: '#/components/parameters/location' + - $ref: '#/components/parameters/callingNumberCountryA3' + - $ref: '#/components/parameters/calledNumberCountryA3' + - $ref: '#/components/parameters/fromSegmentCount' + - $ref: '#/components/parameters/toSegmentCount' + - $ref: '#/components/parameters/fromMessageSize' + - $ref: '#/components/parameters/toMessageSize' - $ref: '#/components/parameters/sort' - $ref: '#/components/parameters/pageToken' - $ref: '#/components/parameters/limit' @@ -1716,7 +1726,22 @@ components: enum: - sms - mms + - rcs example: sms + productTypeEnum: + type: string + description: The type of product associated with the message. + enum: + - LOCAL_A2P + - P2P + - SHORT_CODE_REACH + - TOLL_FREE + - HOSTED_SHORT_CODE + - ALPHA_NUMERIC + - RBM_MEDIA + - RBM_RICH + - RBM_CONVERSATIONAL + example: P2P fieldError: type: object properties: @@ -1819,6 +1844,33 @@ components: description: The campaign ID of the message if it has one. nullable: true example: CJEUMDK + bwLatency: + type: integer + description: >- + The Bandwidth latency of the message in seconds. Only available for + accounts with the Advanced Quality Metrics feature enabled. + nullable: true + example: 20 + callingNumberCountryA3: + type: string + description: The A3 country code of the calling number. + nullable: true + example: USA + calledNumberCountryA3: + type: string + description: The A3 country code of the called number. + nullable: true + example: USA + product: + type: string + description: The messaging product associated with the message. + nullable: true + example: P2P + location: + type: string + description: The location ID associated with this message. + nullable: true + example: 123ID pageInfo: title: PageInfo type: object @@ -6940,6 +6992,90 @@ components: example: CJEUMDK schema: type: string + fromBwLatency: + in: query + name: fromBwLatency + required: false + description: >- + The minimum Bandwidth latency of the message in seconds. Only available + for accounts with the Advanced Quality Metrics feature enabled. + example: 5 + schema: + type: integer + bwQueued: + in: query + name: bwQueued + required: false + description: >- + A boolean value indicating whether the message is queued in the + Bandwidth network. + example: true + schema: + type: boolean + product: + in: query + name: product + required: false + description: Messaging product associated with the message. + example: P2P + schema: + $ref: '#/components/schemas/productTypeEnum' + location: + in: query + name: location + required: false + description: Location Id associated with the message. + example: 123ABC + schema: + type: string + callingNumberCountryA3: + in: query + name: callingNumberCountryA3 + required: false + description: Calling number country in A3 format. + example: USA + schema: + type: string + calledNumberCountryA3: + in: query + name: calledNumberCountryA3 + required: false + description: Called number country in A3 format. + example: USA + schema: + type: string + fromSegmentCount: + in: query + name: fromSegmentCount + required: false + description: Segment count (start range). + example: 1 + schema: + type: integer + toSegmentCount: + in: query + name: toSegmentCount + required: false + description: Segment count (end range). + example: 3 + schema: + type: integer + fromMessageSize: + in: query + name: fromMessageSize + required: false + description: Message size (start range). + example: 100 + schema: + type: integer + toMessageSize: + in: query + name: toMessageSize + required: false + description: Message size (end range). + example: 120 + schema: + type: integer sort: in: query name: sort diff --git a/docs/ListMessageItem.md b/docs/ListMessageItem.md index 072ce7c..6bc2ba9 100644 --- a/docs/ListMessageItem.md +++ b/docs/ListMessageItem.md @@ -21,6 +21,11 @@ Name | Type | Description | Notes **RecipientCount** | **int?** | The number of recipients the message has. | [optional] **CampaignClass** | **string** | The campaign class of the message if it has one. | [optional] **CampaignId** | **string** | The campaign ID of the message if it has one. | [optional] +**BwLatency** | **int?** | The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. | [optional] +**CallingNumberCountryA3** | **string** | The A3 country code of the calling number. | [optional] +**CalledNumberCountryA3** | **string** | The A3 country code of the called number. | [optional] +**Product** | **string** | The messaging product associated with the message. | [optional] +**Location** | **string** | The location ID associated with this message. | [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/MessagesApi.md b/docs/MessagesApi.md index 8ebc03c..dc28e3e 100644 --- a/docs/MessagesApi.md +++ b/docs/MessagesApi.md @@ -115,7 +115,7 @@ catch (ApiException e) # **ListMessages** -> MessagesList ListMessages (string accountId, string messageId = null, string sourceTn = null, string destinationTn = null, MessageStatusEnum? messageStatus = null, ListMessageDirectionEnum? messageDirection = null, string carrierName = null, MessageTypeEnum? messageType = null, int? errorCode = null, string fromDateTime = null, string toDateTime = null, string campaignId = null, string sort = null, string pageToken = null, int? limit = null, bool? limitTotalCount = null) +> MessagesList ListMessages (string accountId, string messageId = null, string sourceTn = null, string destinationTn = null, MessageStatusEnum? messageStatus = null, ListMessageDirectionEnum? messageDirection = null, string carrierName = null, MessageTypeEnum? messageType = null, int? errorCode = null, string fromDateTime = null, string toDateTime = null, string campaignId = null, int? fromBwLatency = null, bool? bwQueued = null, ProductTypeEnum? product = null, string location = null, string callingNumberCountryA3 = null, string calledNumberCountryA3 = null, int? fromSegmentCount = null, int? toSegmentCount = null, int? fromMessageSize = null, int? toMessageSize = null, string sort = null, string pageToken = null, int? limit = null, bool? limitTotalCount = null) List Messages @@ -154,6 +154,16 @@ namespace Example var fromDateTime = 2022-09-14T18:20:16.000Z; // string | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) var toDateTime = 2022-09-14T18:20:16.000Z; // string | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) var campaignId = CJEUMDK; // string | The campaign ID of the message. (optional) + var fromBwLatency = 5; // int? | The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + var bwQueued = true; // bool? | A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + var product = P2P; // ProductTypeEnum? | Messaging product associated with the message. (optional) + var location = 123ABC; // string | Location Id associated with the message. (optional) + var callingNumberCountryA3 = USA; // string | Calling number country in A3 format. (optional) + var calledNumberCountryA3 = USA; // string | Called number country in A3 format. (optional) + var fromSegmentCount = 1; // int? | Segment count (start range). (optional) + var toSegmentCount = 3; // int? | Segment count (end range). (optional) + var fromMessageSize = 100; // int? | Message size (start range). (optional) + var toMessageSize = 120; // int? | Message size (end range). (optional) var sort = sourceTn:desc; // string | The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) var pageToken = gdEewhcJLQRB5; // string | A base64 encoded value used for pagination of results. (optional) var limit = 50; // int? | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) @@ -162,7 +172,7 @@ namespace Example try { // List Messages - MessagesList result = apiInstance.ListMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount); + MessagesList result = apiInstance.ListMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); Debug.WriteLine(result); } catch (ApiException e) @@ -183,7 +193,7 @@ This returns an ApiResponse object which contains the response data, status code try { // List Messages - ApiResponse response = apiInstance.ListMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount); + ApiResponse response = apiInstance.ListMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -212,6 +222,16 @@ catch (ApiException e) | **fromDateTime** | **string** | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. | [optional] | | **toDateTime** | **string** | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. | [optional] | | **campaignId** | **string** | The campaign ID of the message. | [optional] | +| **fromBwLatency** | **int?** | The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. | [optional] | +| **bwQueued** | **bool?** | A boolean value indicating whether the message is queued in the Bandwidth network. | [optional] | +| **product** | **ProductTypeEnum?** | Messaging product associated with the message. | [optional] | +| **location** | **string** | Location Id associated with the message. | [optional] | +| **callingNumberCountryA3** | **string** | Calling number country in A3 format. | [optional] | +| **calledNumberCountryA3** | **string** | Called number country in A3 format. | [optional] | +| **fromSegmentCount** | **int?** | Segment count (start range). | [optional] | +| **toSegmentCount** | **int?** | Segment count (end range). | [optional] | +| **fromMessageSize** | **int?** | Message size (start range). | [optional] | +| **toMessageSize** | **int?** | Message size (end range). | [optional] | | **sort** | **string** | The field and direction to sort by combined with a colon. Direction is either asc or desc. | [optional] | | **pageToken** | **string** | A base64 encoded value used for pagination of results. | [optional] | | **limit** | **int?** | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. | [optional] | diff --git a/docs/ProductTypeEnum.md b/docs/ProductTypeEnum.md new file mode 100644 index 0000000..f6d5ca7 --- /dev/null +++ b/docs/ProductTypeEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.ProductTypeEnum +The type of product associated with the message. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/Api/MessagesApi.cs b/src/Bandwidth.Standard/Api/MessagesApi.cs index 44d0c35..8032374 100644 --- a/src/Bandwidth.Standard/Api/MessagesApi.cs +++ b/src/Bandwidth.Standard/Api/MessagesApi.cs @@ -71,13 +71,23 @@ public interface IMessagesApiSync : IApiAccessor /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) /// When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) /// Index associated with the operation. /// MessagesList - MessagesList ListMessages(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0); + MessagesList ListMessages(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0); /// /// List Messages @@ -98,13 +108,23 @@ public interface IMessagesApiSync : IApiAccessor /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) /// When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) /// Index associated with the operation. /// ApiResponse of MessagesList - ApiResponse ListMessagesWithHttpInfo(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0); + ApiResponse ListMessagesWithHttpInfo(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0); #endregion Synchronous Operations } @@ -160,6 +180,16 @@ public interface IMessagesApiAsync : IApiAccessor /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) @@ -167,7 +197,7 @@ public interface IMessagesApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of MessagesList - System.Threading.Tasks.Task ListMessagesAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListMessagesAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Messages @@ -188,6 +218,16 @@ public interface IMessagesApiAsync : IApiAccessor /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) @@ -195,7 +235,7 @@ public interface IMessagesApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (MessagesList) - System.Threading.Tasks.Task> ListMessagesWithHttpInfoAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListMessagesWithHttpInfoAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -508,15 +548,25 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) /// When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) /// Index associated with the operation. /// MessagesList - public MessagesList ListMessages(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0) + public MessagesList ListMessages(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0) { - Bandwidth.Standard.Client.ApiResponse localVarResponse = ListMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount); + Bandwidth.Standard.Client.ApiResponse localVarResponse = ListMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); return localVarResponse.Data; } @@ -536,13 +586,23 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) /// When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) /// Index associated with the operation. /// ApiResponse of MessagesList - public Bandwidth.Standard.Client.ApiResponse ListMessagesWithHttpInfo(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0) + public Bandwidth.Standard.Client.ApiResponse ListMessagesWithHttpInfo(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -617,6 +677,46 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "campaignId", campaignId)); } + if (fromBwLatency != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromBwLatency", fromBwLatency)); + } + if (bwQueued != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "bwQueued", bwQueued)); + } + if (product != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "product", product)); + } + if (location != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "location", location)); + } + if (callingNumberCountryA3 != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "callingNumberCountryA3", callingNumberCountryA3)); + } + if (calledNumberCountryA3 != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "calledNumberCountryA3", calledNumberCountryA3)); + } + if (fromSegmentCount != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromSegmentCount", fromSegmentCount)); + } + if (toSegmentCount != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "toSegmentCount", toSegmentCount)); + } + if (fromMessageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromMessageSize", fromMessageSize)); + } + if (toMessageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "toMessageSize", toMessageSize)); + } if (sort != null) { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); @@ -674,6 +774,16 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) @@ -681,9 +791,9 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of MessagesList - public async System.Threading.Tasks.Task ListMessagesAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListMessagesAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Bandwidth.Standard.Client.ApiResponse localVarResponse = await ListMessagesWithHttpInfoAsync(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, operationIndex, cancellationToken).ConfigureAwait(false); + Bandwidth.Standard.Client.ApiResponse localVarResponse = await ListMessagesWithHttpInfoAsync(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -703,6 +813,16 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional) /// The campaign ID of the message. (optional) + /// The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. (optional) + /// A boolean value indicating whether the message is queued in the Bandwidth network. (optional) + /// Messaging product associated with the message. (optional) + /// Location Id associated with the message. (optional) + /// Calling number country in A3 format. (optional) + /// Called number country in A3 format. (optional) + /// Segment count (start range). (optional) + /// Segment count (end range). (optional) + /// Message size (start range). (optional) + /// Message size (end range). (optional) /// The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional) /// A base64 encoded value used for pagination of results. (optional) /// The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) @@ -710,7 +830,7 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (MessagesList) - public async System.Threading.Tasks.Task> ListMessagesWithHttpInfoAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListMessagesWithHttpInfoAsync(string accountId, string messageId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), string carrierName = default(string), MessageTypeEnum? messageType = default(MessageTypeEnum?), int? errorCode = default(int?), string fromDateTime = default(string), string toDateTime = default(string), string campaignId = default(string), int? fromBwLatency = default(int?), bool? bwQueued = default(bool?), ProductTypeEnum? product = default(ProductTypeEnum?), string location = default(string), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), int? fromSegmentCount = default(int?), int? toSegmentCount = default(int?), int? fromMessageSize = default(int?), int? toMessageSize = default(int?), string sort = default(string), string pageToken = default(string), int? limit = default(int?), bool? limitTotalCount = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountId' is set if (accountId == null) @@ -786,6 +906,46 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "campaignId", campaignId)); } + if (fromBwLatency != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromBwLatency", fromBwLatency)); + } + if (bwQueued != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "bwQueued", bwQueued)); + } + if (product != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "product", product)); + } + if (location != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "location", location)); + } + if (callingNumberCountryA3 != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "callingNumberCountryA3", callingNumberCountryA3)); + } + if (calledNumberCountryA3 != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "calledNumberCountryA3", calledNumberCountryA3)); + } + if (fromSegmentCount != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromSegmentCount", fromSegmentCount)); + } + if (toSegmentCount != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "toSegmentCount", toSegmentCount)); + } + if (fromMessageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromMessageSize", fromMessageSize)); + } + if (toMessageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "toMessageSize", toMessageSize)); + } if (sort != null) { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); diff --git a/src/Bandwidth.Standard/Model/ListMessageItem.cs b/src/Bandwidth.Standard/Model/ListMessageItem.cs index df72a06..8f47f45 100644 --- a/src/Bandwidth.Standard/Model/ListMessageItem.cs +++ b/src/Bandwidth.Standard/Model/ListMessageItem.cs @@ -70,7 +70,12 @@ public partial class ListMessageItem : IValidatableObject /// The number of recipients the message has.. /// The campaign class of the message if it has one.. /// The campaign ID of the message if it has one.. - public ListMessageItem(string messageId = default(string), string accountId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), MessageTypeEnum? messageType = default(MessageTypeEnum?), int segmentCount = default(int), int errorCode = default(int), DateTime receiveTime = default(DateTime), string carrierName = default(string), int? messageSize = default(int?), int messageLength = default(int), int? attachmentCount = default(int?), int? recipientCount = default(int?), string campaignClass = default(string), string campaignId = default(string)) + /// The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.. + /// The A3 country code of the calling number.. + /// The A3 country code of the called number.. + /// The messaging product associated with the message.. + /// The location ID associated with this message.. + public ListMessageItem(string messageId = default(string), string accountId = default(string), string sourceTn = default(string), string destinationTn = default(string), MessageStatusEnum? messageStatus = default(MessageStatusEnum?), ListMessageDirectionEnum? messageDirection = default(ListMessageDirectionEnum?), MessageTypeEnum? messageType = default(MessageTypeEnum?), int segmentCount = default(int), int errorCode = default(int), DateTime receiveTime = default(DateTime), string carrierName = default(string), int? messageSize = default(int?), int messageLength = default(int), int? attachmentCount = default(int?), int? recipientCount = default(int?), string campaignClass = default(string), string campaignId = default(string), int? bwLatency = default(int?), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), string product = default(string), string location = default(string)) { this.MessageId = messageId; this.AccountId = accountId; @@ -89,6 +94,11 @@ public partial class ListMessageItem : IValidatableObject this.RecipientCount = recipientCount; this.CampaignClass = campaignClass; this.CampaignId = campaignId; + this.BwLatency = bwLatency; + this.CallingNumberCountryA3 = callingNumberCountryA3; + this.CalledNumberCountryA3 = calledNumberCountryA3; + this.Product = product; + this.Location = location; } /// @@ -203,6 +213,46 @@ public partial class ListMessageItem : IValidatableObject [DataMember(Name = "campaignId", EmitDefaultValue = true)] public string CampaignId { get; set; } + /// + /// The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. + /// + /// The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. + /// 20 + [DataMember(Name = "bwLatency", EmitDefaultValue = true)] + public int? BwLatency { get; set; } + + /// + /// The A3 country code of the calling number. + /// + /// The A3 country code of the calling number. + /// USA + [DataMember(Name = "callingNumberCountryA3", EmitDefaultValue = true)] + public string CallingNumberCountryA3 { get; set; } + + /// + /// The A3 country code of the called number. + /// + /// The A3 country code of the called number. + /// USA + [DataMember(Name = "calledNumberCountryA3", EmitDefaultValue = true)] + public string CalledNumberCountryA3 { get; set; } + + /// + /// The messaging product associated with the message. + /// + /// The messaging product associated with the message. + /// P2P + [DataMember(Name = "product", EmitDefaultValue = true)] + public string Product { get; set; } + + /// + /// The location ID associated with this message. + /// + /// The location ID associated with this message. + /// 123ID + [DataMember(Name = "location", EmitDefaultValue = true)] + public string Location { get; set; } + /// /// Returns the string presentation of the object /// @@ -228,6 +278,11 @@ public override string ToString() sb.Append(" RecipientCount: ").Append(RecipientCount).Append("\n"); sb.Append(" CampaignClass: ").Append(CampaignClass).Append("\n"); sb.Append(" CampaignId: ").Append(CampaignId).Append("\n"); + sb.Append(" BwLatency: ").Append(BwLatency).Append("\n"); + sb.Append(" CallingNumberCountryA3: ").Append(CallingNumberCountryA3).Append("\n"); + sb.Append(" CalledNumberCountryA3: ").Append(CalledNumberCountryA3).Append("\n"); + sb.Append(" Product: ").Append(Product).Append("\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Bandwidth.Standard/Model/MessageTypeEnum.cs b/src/Bandwidth.Standard/Model/MessageTypeEnum.cs index cf0ddfe..6a61a12 100644 --- a/src/Bandwidth.Standard/Model/MessageTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/MessageTypeEnum.cs @@ -43,7 +43,13 @@ public enum MessageTypeEnum /// Enum Mms for value: mms /// [EnumMember(Value = "mms")] - Mms = 2 + Mms = 2, + + /// + /// Enum Rcs for value: rcs + /// + [EnumMember(Value = "rcs")] + Rcs = 3 } } diff --git a/src/Bandwidth.Standard/Model/ProductTypeEnum.cs b/src/Bandwidth.Standard/Model/ProductTypeEnum.cs new file mode 100644 index 0000000..1ebcdbc --- /dev/null +++ b/src/Bandwidth.Standard/Model/ProductTypeEnum.cs @@ -0,0 +1,91 @@ +/* + * 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 +{ + /// + /// The type of product associated with the message. + /// + /// The type of product associated with the message. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProductTypeEnum + { + /// + /// Enum LOCALA2P for value: LOCAL_A2P + /// + [EnumMember(Value = "LOCAL_A2P")] + LOCALA2P = 1, + + /// + /// Enum P2P for value: P2P + /// + [EnumMember(Value = "P2P")] + P2P = 2, + + /// + /// Enum SHORTCODEREACH for value: SHORT_CODE_REACH + /// + [EnumMember(Value = "SHORT_CODE_REACH")] + SHORTCODEREACH = 3, + + /// + /// Enum TOLLFREE for value: TOLL_FREE + /// + [EnumMember(Value = "TOLL_FREE")] + TOLLFREE = 4, + + /// + /// Enum HOSTEDSHORTCODE for value: HOSTED_SHORT_CODE + /// + [EnumMember(Value = "HOSTED_SHORT_CODE")] + HOSTEDSHORTCODE = 5, + + /// + /// Enum ALPHANUMERIC for value: ALPHA_NUMERIC + /// + [EnumMember(Value = "ALPHA_NUMERIC")] + ALPHANUMERIC = 6, + + /// + /// Enum RBMMEDIA for value: RBM_MEDIA + /// + [EnumMember(Value = "RBM_MEDIA")] + RBMMEDIA = 7, + + /// + /// Enum RBMRICH for value: RBM_RICH + /// + [EnumMember(Value = "RBM_RICH")] + RBMRICH = 8, + + /// + /// Enum RBMCONVERSATIONAL for value: RBM_CONVERSATIONAL + /// + [EnumMember(Value = "RBM_CONVERSATIONAL")] + RBMCONVERSATIONAL = 9 + } + +} diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index acf9617..31fee4f 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@2a504ea7 + /// [B@40cb95c1 [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs index ad04e1e..8df7451 100644 --- a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs +++ b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs @@ -55,7 +55,7 @@ public partial class RbmSuggestionResponse : IValidatableObject /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@2a504ea7 + /// [B@40cb95c1 [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; }