diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 88eaa1e..5318129 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,6 +9,8 @@ docs/AnswerCallback.md docs/BlockedWebhook.md docs/BridgeCompleteCallback.md docs/BridgeTargetCompleteCallback.md +docs/BusinessEntityTypeEnum.md +docs/BusinessRegistrationTypeEnum.md docs/CallDirectionEnum.md docs/CallRecordingMetadata.md docs/CallState.md @@ -201,6 +203,8 @@ src/Bandwidth.Standard/Model/AnswerCallback.cs src/Bandwidth.Standard/Model/BlockedWebhook.cs src/Bandwidth.Standard/Model/BridgeCompleteCallback.cs src/Bandwidth.Standard/Model/BridgeTargetCompleteCallback.cs +src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs +src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs src/Bandwidth.Standard/Model/CallDirectionEnum.cs src/Bandwidth.Standard/Model/CallRecordingMetadata.cs src/Bandwidth.Standard/Model/CallState.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 76e73e1..ce82d3c 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", "{30B96883-C571-497C-8A61-1A38A3690AFC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{FC12FAFD-399A-49A9-8C48-BF9F76169603}" 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 - {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 + {FC12FAFD-399A-49A9-8C48-BF9F76169603}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC12FAFD-399A-49A9-8C48-BF9F76169603}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC12FAFD-399A-49A9-8C48-BF9F76169603}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FC12FAFD-399A-49A9-8C48-BF9F76169603}.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 60db336..d4bc738 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,8 @@ Class | Method | HTTP request | Description - [Model.BlockedWebhook](docs/BlockedWebhook.md) - [Model.BridgeCompleteCallback](docs/BridgeCompleteCallback.md) - [Model.BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md) + - [Model.BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md) + - [Model.BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md) - [Model.CallDirectionEnum](docs/CallDirectionEnum.md) - [Model.CallRecordingMetadata](docs/CallRecordingMetadata.md) - [Model.CallState](docs/CallState.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index cbc660b..7e51390 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -549,6 +549,28 @@ paths: schema: type: string style: form + - description: A boolean value indicating whether the message is queued in the + carrier network. Only available for OUTBOUND messages from accounts with + the Advanced Quality Metrics feature enabled. + example: true + explode: true + in: query + name: carrierQueued + required: false + schema: + type: boolean + style: form + - description: The minimum carrier latency of the message in seconds. Only available + for OUTBOUND messages from accounts with the Advanced Quality Metrics feature + enabled. + example: 50 + explode: true + in: query + name: fromCarrierLatency + required: false + schema: + type: integer + style: form - description: Calling number country in A3 format. example: USA explode: true @@ -6371,6 +6393,30 @@ components: schema: type: string style: form + carrierQueued: + description: A boolean value indicating whether the message is queued in the + carrier network. Only available for OUTBOUND messages from accounts with the + Advanced Quality Metrics feature enabled. + example: true + explode: true + in: query + name: carrierQueued + required: false + schema: + type: boolean + style: form + fromCarrierLatency: + description: The minimum carrier latency of the message in seconds. Only available + for OUTBOUND messages from accounts with the Advanced Quality Metrics feature + enabled. + example: 50 + explode: true + in: query + name: fromCarrierLatency + required: false + schema: + type: integer + style: form callingNumberCountryA3: description: Calling number country in A3 format. example: USA @@ -7835,6 +7881,7 @@ components: receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" messageDirection: INBOUND + carrierLatency: 20 messageType: sms carrierName: other recipientCount: 1 @@ -7857,6 +7904,7 @@ components: receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" messageDirection: INBOUND + carrierLatency: 20 messageType: sms carrierName: other recipientCount: 1 @@ -7896,6 +7944,7 @@ components: receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" messageDirection: INBOUND + carrierLatency: 20 messageType: sms carrierName: other recipientCount: 1 @@ -7982,6 +8031,13 @@ components: example: 20 nullable: true type: integer + carrierLatency: + description: The carrier latency of the message in seconds. Only available + for OUTBOUND messages from 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 @@ -13070,6 +13126,47 @@ components: description: The company 'Doing Business As'. example: Another Company Name Inc. type: string + businessRegistrationNumber: + description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ + \ Optional until early 2026. If a value is provided for this field, a value\ + \ must be provided for `businessRegistrationType` and `businessEntityType`.\ + \ Available starting October 1st, 2025." + example: 12-3456789 + maxLength: 500 + nullable: true + type: string + businessRegistrationTypeEnum: + description: "The type of business registration number. Optional until early\ + \ 2026; required if `businessRegistrationNumber` is provided. Available starting\ + \ October 1st, 2025." + enum: + - EIN + - CBN + nullable: true + type: string + businessEntityTypeEnum: + description: "The type of registered business. If no option is applicable, please\ + \ provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required\ + \ if `businessRegistrationNumber` is provided. Available starting October\ + \ 1st, 2025." + enum: + - SOLE_PROPRIETOR + - PRIVATE_PROFIT + - PUBLIC_PROFIT + - NON_PROFIT + - GOVERNMENT + nullable: true + type: string + helpMessageResponse: + description: A message that gets sent to users requesting help. + example: Please contact support for assistance. + maxLength: 500 + nullable: true + type: string + ageGatedContent: + description: Indicates whether the content is age-gated. + example: false + type: boolean additionalDenialReason: properties: statusCode: @@ -13178,6 +13275,29 @@ components: description: The company 'Doing Business As'. example: Another Company Name Inc. type: string + businessRegistrationNumber: + description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ + \ Optional until early 2026. If a value is provided for this field, a\ + \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ + \ Available starting October 1st, 2025." + example: 12-3456789 + maxLength: 500 + nullable: true + type: string + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' + helpMessageResponse: + description: A message that gets sent to users requesting help. + example: Please contact support for assistance. + maxLength: 500 + nullable: true + type: string + ageGatedContent: + description: Indicates whether the content is age-gated. + example: false + type: boolean required: - businessAddress - businessContact @@ -13249,6 +13369,29 @@ components: description: The company 'Doing Business As'. example: Another Company Name Inc. type: string + businessRegistrationNumber: + description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ + \ Optional until early 2026. If a value is provided for this field, a\ + \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ + \ Available starting October 1st, 2025." + example: 12-3456789 + maxLength: 500 + nullable: true + type: string + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' + helpMessageResponse: + description: A message that gets sent to users requesting help. + example: Please contact support for assistance. + maxLength: 500 + nullable: true + type: string + ageGatedContent: + description: Indicates whether the content is age-gated. + example: false + type: boolean required: - businessAddress - businessContact @@ -13543,6 +13686,7 @@ components: imageUrls: - https://www.example.com/path/to/resource - https://www.example.com/path/to/resource + confirmationResponse: Thank you for opting in! description: Opt In Flow nullable: false properties: @@ -13562,6 +13706,12 @@ components: .[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#()?&//=]*)" type: string type: array + confirmationResponse: + example: Thank you for opting in! + maxLength: 500 + minLength: 0 + nullable: true + type: string required: - description - imageUrls @@ -13872,16 +14022,26 @@ components: modifiedDateTime: 2021-06-08T06:45:13Z submission: additionalInformation: Any additional information - useCase: 2FA termsAndConditionsUrl: http://your-company.com/termsAndConditions businessDba: Another Company Name Inc. - isvReseller: Test ISV businessContact: firstName: John lastName: Doe phoneNumber: "+19192654500" email: foo@bar.com messageVolume: 10000 + businessEntityType: SOLE_PROPRIETOR + businessRegistrationType: EIN + privacyPolicyUrl: http://your-company.com/privacyPolicy + optInWorkflow: + imageUrls: + - https://www.example.com/path/to/resource + - https://www.example.com/path/to/resource + confirmationResponse: Thank you for opting in! + description: Opt In Flow + useCase: 2FA + isvReseller: Test ISV + businessRegistrationNumber: 12-3456789 productionMessageContent: Production message content businessAddress: zip: "27606" @@ -13891,13 +14051,7 @@ components: name: Bandwidth Inc. state: NC url: https://www.example.com/path/to/resource - privacyPolicyUrl: http://your-company.com/privacyPolicy useCaseSummary: Text summarizing the use case for the toll-free number - optInWorkflow: - imageUrls: - - https://www.example.com/path/to/resource - - https://www.example.com/path/to/resource - description: Opt In Flow declineReasonDescription: Invalid Information - Can't Validate URL - Website is not accessible / not available status: VERIFIED @@ -13956,16 +14110,26 @@ components: tfvSubmissionInfo: example: additionalInformation: Any additional information - useCase: 2FA termsAndConditionsUrl: http://your-company.com/termsAndConditions businessDba: Another Company Name Inc. - isvReseller: Test ISV businessContact: firstName: John lastName: Doe phoneNumber: "+19192654500" email: foo@bar.com messageVolume: 10000 + businessEntityType: SOLE_PROPRIETOR + businessRegistrationType: EIN + privacyPolicyUrl: http://your-company.com/privacyPolicy + optInWorkflow: + imageUrls: + - https://www.example.com/path/to/resource + - https://www.example.com/path/to/resource + confirmationResponse: Thank you for opting in! + description: Opt In Flow + useCase: 2FA + isvReseller: Test ISV + businessRegistrationNumber: 12-3456789 productionMessageContent: Production message content businessAddress: zip: "27606" @@ -13975,13 +14139,7 @@ components: name: Bandwidth Inc. state: NC url: https://www.example.com/path/to/resource - privacyPolicyUrl: http://your-company.com/privacyPolicy useCaseSummary: Text summarizing the use case for the toll-free number - optInWorkflow: - imageUrls: - - https://www.example.com/path/to/resource - - https://www.example.com/path/to/resource - description: Opt In Flow properties: businessAddress: $ref: '#/components/schemas/address' @@ -14042,6 +14200,19 @@ components: description: The company 'Doing Business As'. example: Another Company Name Inc. type: string + businessRegistrationNumber: + description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ + \ Optional until early 2026. If a value is provided for this field, a\ + \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ + \ Available starting October 1st, 2025." + example: 12-3456789 + maxLength: 500 + nullable: true + type: string + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' type: object tfvStatusEnum: enum: diff --git a/bandwidth.yml b/bandwidth.yml index 65afd41..004fb91 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -183,6 +183,8 @@ paths: - $ref: '#/components/parameters/bwQueued' - $ref: '#/components/parameters/product' - $ref: '#/components/parameters/location' + - $ref: '#/components/parameters/carrierQueued' + - $ref: '#/components/parameters/fromCarrierLatency' - $ref: '#/components/parameters/callingNumberCountryA3' - $ref: '#/components/parameters/calledNumberCountryA3' - $ref: '#/components/parameters/fromSegmentCount' @@ -1851,6 +1853,14 @@ components: accounts with the Advanced Quality Metrics feature enabled. nullable: true example: 20 + carrierLatency: + type: integer + description: >- + The carrier latency of the message in seconds. Only available for + OUTBOUND messages from accounts with the Advanced Quality Metrics + feature enabled. + nullable: true + example: 20 callingNumberCountryA3: type: string description: The A3 country code of the calling number. @@ -5530,6 +5540,50 @@ components: description: The company 'Doing Business As'. example: Another Company Name Inc. type: string + businessRegistrationNumber: + type: string + description: >- + US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional + until early 2026. If a value is provided for this field, a value must be + provided for `businessRegistrationType` and `businessEntityType`. + Available starting October 1st, 2025. + nullable: true + maxLength: 500 + example: 12-3456789 + businessRegistrationTypeEnum: + type: string + description: >- + The type of business registration number. Optional until early 2026; + required if `businessRegistrationNumber` is provided. Available starting + October 1st, 2025. + enum: + - EIN + - CBN + nullable: true + businessEntityTypeEnum: + type: string + description: >- + The type of registered business. If no option is applicable, please + provide "SOLE_PROPRIETOR" as a value. Optional until early 2026; + required if `businessRegistrationNumber` is provided. Available starting + October 1st, 2025. + enum: + - SOLE_PROPRIETOR + - PRIVATE_PROFIT + - PUBLIC_PROFIT + - NON_PROFIT + - GOVERNMENT + nullable: true + helpMessageResponse: + type: string + description: A message that gets sent to users requesting help. + nullable: true + maxLength: 500 + example: Please contact support for assistance. + ageGatedContent: + type: boolean + description: Indicates whether the content is age-gated. + example: false additionalDenialReason: properties: statusCode: @@ -5616,6 +5670,16 @@ components: $ref: '#/components/schemas/termsAndConditionsUrl' businessDba: $ref: '#/components/schemas/businessDba' + businessRegistrationNumber: + $ref: '#/components/schemas/businessRegistrationNumber' + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' + helpMessageResponse: + $ref: '#/components/schemas/helpMessageResponse' + ageGatedContent: + $ref: '#/components/schemas/ageGatedContent' verificationUpdateRequest: type: object required: @@ -5655,6 +5719,16 @@ components: $ref: '#/components/schemas/termsAndConditionsUrl' businessDba: $ref: '#/components/schemas/businessDba' + businessRegistrationNumber: + $ref: '#/components/schemas/businessRegistrationNumber' + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' + helpMessageResponse: + $ref: '#/components/schemas/helpMessageResponse' + ageGatedContent: + $ref: '#/components/schemas/ageGatedContent' tfvBasicAuthentication: type: object properties: @@ -5858,6 +5932,12 @@ components: example: https://www.example.com/path/to/resource pattern: >- ^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*) + confirmationResponse: + type: string + minLength: 0 + maxLength: 500 + nullable: true + example: Thank you for opting in! isvReseller: type: string description: ISV name. @@ -6131,6 +6211,22 @@ components: $ref: '#/components/schemas/termsAndConditionsUrl' businessDba: $ref: '#/components/schemas/businessDba' + businessRegistrationNumber: + $ref: '#/components/schemas/businessRegistrationNumber' + description: >- + US Federal Tax ID Number (EIN) or Canada Business Number (CBN). + Available starting October 1st, 2025. + businessRegistrationType: + $ref: '#/components/schemas/businessRegistrationTypeEnum' + description: >- + The type of business registration number. Available starting October + 1st, 2025. + businessEntityType: + $ref: '#/components/schemas/businessEntityTypeEnum' + description: >- + The type of registered business. If no option is applicable, please + provide "SOLE_PROPRIETOR" as a value. Available starting October + 1st, 2025. tfvStatusEnum: type: string enum: @@ -7028,6 +7124,28 @@ components: example: 123ABC schema: type: string + carrierQueued: + in: query + name: carrierQueued + required: false + description: >- + A boolean value indicating whether the message is queued in the carrier + network. Only available for OUTBOUND messages from accounts with the + Advanced Quality Metrics feature enabled. + example: true + schema: + type: boolean + fromCarrierLatency: + in: query + name: fromCarrierLatency + required: false + description: >- + The minimum carrier latency of the message in seconds. Only available + for OUTBOUND messages from accounts with the Advanced Quality Metrics + feature enabled. + example: 50 + schema: + type: integer callingNumberCountryA3: in: query name: callingNumberCountryA3 diff --git a/docs/BusinessEntityTypeEnum.md b/docs/BusinessEntityTypeEnum.md new file mode 100644 index 0000000..392a21f --- /dev/null +++ b/docs/BusinessEntityTypeEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.BusinessEntityTypeEnum +The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + +## 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/docs/BusinessRegistrationTypeEnum.md b/docs/BusinessRegistrationTypeEnum.md new file mode 100644 index 0000000..75107e2 --- /dev/null +++ b/docs/BusinessRegistrationTypeEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.BusinessRegistrationTypeEnum +The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + +## 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/docs/ListMessageItem.md b/docs/ListMessageItem.md index 6bc2ba9..ae9ae8f 100644 --- a/docs/ListMessageItem.md +++ b/docs/ListMessageItem.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **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] +**CarrierLatency** | **int?** | The carrier latency of the message in seconds. Only available for OUTBOUND messages from 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] diff --git a/docs/MessagesApi.md b/docs/MessagesApi.md index dc28e3e..52296ff 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, 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) +> 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, bool? carrierQueued = null, int? fromCarrierLatency = 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 @@ -158,6 +158,8 @@ namespace Example 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 carrierQueued = true; // bool? | A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + var fromCarrierLatency = 50; // int? | The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (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) @@ -172,7 +174,7 @@ namespace Example try { // List Messages - 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); + MessagesList result = apiInstance.ListMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, carrierQueued, fromCarrierLatency, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); Debug.WriteLine(result); } catch (ApiException e) @@ -193,7 +195,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, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); + ApiResponse response = apiInstance.ListMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, carrierQueued, fromCarrierLatency, 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); @@ -226,6 +228,8 @@ catch (ApiException e) | **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] | +| **carrierQueued** | **bool?** | A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. | [optional] | +| **fromCarrierLatency** | **int?** | The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. | [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] | diff --git a/docs/OptInWorkflow.md b/docs/OptInWorkflow.md index 4813c9e..e53ce30 100644 --- a/docs/OptInWorkflow.md +++ b/docs/OptInWorkflow.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Description** | **string** | | **ImageUrls** | **List<string>** | | +**ConfirmationResponse** | **string** | | [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/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 29dc940..12dc651 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -16,6 +16,9 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] +**BusinessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] +**BusinessEntityType** | **BusinessEntityTypeEnum** | | [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/VerificationRequest.md b/docs/VerificationRequest.md index 6c71569..1cc6e1e 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -17,6 +17,11 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] +**BusinessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] +**BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] +**HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] +**AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [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/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index 24c1a8d..20b585d 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -16,6 +16,11 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] +**BusinessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] +**BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] +**HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] +**AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [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.Test/Unit/Api/MessagesApiTests.cs b/src/Bandwidth.Standard.Test/Unit/Api/MessagesApiTests.cs index 04a6cc4..e94d203 100644 --- a/src/Bandwidth.Standard.Test/Unit/Api/MessagesApiTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Api/MessagesApiTests.cs @@ -210,8 +210,8 @@ public void ListMessagesTest() bwQueued: true, product: ProductTypeEnum.LOCALA2P, location: "location", - // carrierQueued: true, - // fromCarrierLatency: 10, + carrierQueued: true, + fromCarrierLatency: 10, callingNumberCountryA3: "callingNumberCountryA3", calledNumberCountryA3: "calledNumberCountryA3", fromSegmentCount: 1, diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BusinessEntityTypeEnumTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BusinessEntityTypeEnumTests.cs new file mode 100644 index 0000000..31c999a --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BusinessEntityTypeEnumTests.cs @@ -0,0 +1,53 @@ +/* + * 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 Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BusinessEntityTypeEnum + /// + public class BusinessEntityTypeEnumTests : IDisposable + { + private BusinessEntityTypeEnum instance; + + public BusinessEntityTypeEnumTests() + { + instance = new BusinessEntityTypeEnum(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BusinessEntityTypeEnum + /// + [Fact] + public void BusinessEntityTypeEnumInstanceTest() + { + Assert.IsType(instance); + } + + } + +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationTypeEnumTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationTypeEnumTests.cs new file mode 100644 index 0000000..77673b1 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationTypeEnumTests.cs @@ -0,0 +1,53 @@ +/* + * 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 Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BusinessRegistrationTypeEnum + /// + public class BusinessRegistrationTypeEnumTests : IDisposable + { + private BusinessRegistrationTypeEnum instance; + + public BusinessRegistrationTypeEnumTests() + { + instance = new BusinessRegistrationTypeEnum(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BusinessRegistrationTypeEnum + /// + [Fact] + public void BusinessRegistrationTypeEnumInstanceTest() + { + Assert.IsType(instance); + } + + } + +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/ListMessageItemTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/ListMessageItemTests.cs index df59c0c..c765e0f 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/ListMessageItemTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/ListMessageItemTests.cs @@ -230,6 +230,16 @@ public void BwLatencyTest() Assert.Equal(10, instance.BwLatency); } /// + /// Test the property 'CarrierLatency' + /// + [Fact] + public void CarrierLatencyTest() + { + instance.CarrierLatency = 10; + Assert.IsType(instance.CarrierLatency); + Assert.Equal(10, instance.CarrierLatency); + } + /// /// Test the property 'CallingNumberCountryA3' /// [Fact] diff --git a/src/Bandwidth.Standard.Test/Unit/Model/OptInWorkflowTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/OptInWorkflowTests.cs index 5720d11..d9a7479 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/OptInWorkflowTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/OptInWorkflowTests.cs @@ -33,7 +33,8 @@ public OptInWorkflowTests() { instance = new OptInWorkflow( description: "description", - imageUrls: new List { "imageUrls" } + imageUrls: new List { "imageUrls" }, + confirmationResponse: "confirmationResponse" ); } @@ -70,5 +71,15 @@ public void ImageUrlsTest() Assert.IsType>(instance.ImageUrls); Assert.Equal(new List { "imageUrls" }, instance.ImageUrls); } + + /// + /// Test the property 'ConfirmationResponse' + /// + [Fact] + public void ConfirmationResponseTest() + { + Assert.IsType(instance.ConfirmationResponse); + Assert.Equal("confirmationResponse", instance.ConfirmationResponse); + } } } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs index 1ce1c27..c0c420f 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs @@ -53,7 +53,8 @@ public TfvSubmissionInfoTests() optInWorkflow = new OptInWorkflow( description: "description", - imageUrls: new List { "imageUrls" } + imageUrls: new List { "imageUrls" }, + confirmationResponse: "confirmationResponse" ); instance = new TfvSubmissionInfo( @@ -68,7 +69,10 @@ public TfvSubmissionInfoTests() isvReseller: "test", privacyPolicyUrl: "test", termsAndConditionsUrl: "test", - businessDba: "test" + businessDba: "test", + businessRegistrationNumber: "test", + businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR ); } @@ -205,5 +209,35 @@ public void BusinessDbaTest() Assert.IsType(instance.BusinessDba); Assert.Equal("test", instance.BusinessDba); } + + /// + /// Test the property 'BusinessRegistrationNumber' + /// + [Fact] + public void BusinessRegistrationNumberTest() + { + Assert.IsType(instance.BusinessRegistrationNumber); + Assert.Equal("test", instance.BusinessRegistrationNumber); + } + + /// + /// Test the property 'BusinessRegistrationType' + /// + [Fact] + public void BusinessRegistrationTypeTest() + { + Assert.IsType(instance.BusinessRegistrationType); + Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); + } + + /// + /// Test the property 'BusinessEntityType' + /// + [Fact] + public void BusinessEntityTypeTest() + { + Assert.IsType(instance.BusinessEntityType); + Assert.Equal(BusinessEntityTypeEnum.SOLEPROPRIETOR, instance.BusinessEntityType); + } } } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionWrapperTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionWrapperTests.cs index fd8941b..bbb47ed 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionWrapperTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionWrapperTests.cs @@ -55,7 +55,8 @@ public TfvSubmissionWrapperTests() productionMessageContent: "test", optInWorkflow: new OptInWorkflow( description: "description", - imageUrls: new List { "imageUrls" } + imageUrls: new List { "imageUrls" }, + confirmationResponse: "confirmationResponse" ), additionalInformation: "test", isvReseller: "test", diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs index 5d8092a..83dcb4d 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs @@ -54,13 +54,19 @@ public VerificationRequestTests() productionMessageContent: "test", optInWorkflow: new OptInWorkflow( description: "description", - imageUrls: new List { "imageUrls" } + imageUrls: new List { "imageUrls" }, + confirmationResponse: "confirmationResponse" ), additionalInformation: "test", isvReseller: "test", privacyPolicyUrl: "test", termsAndConditionsUrl: "test", - businessDba: "test" + businessDba: "test", + businessRegistrationNumber: "test", + businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, + helpMessageResponse: "test", + ageGatedContent: false ); } @@ -204,5 +210,55 @@ public void BusinessDbaTest() Assert.IsType(instance.BusinessDba); Assert.Equal("test", instance.BusinessDba); } + + /// + /// Test the property 'BusinessRegistrationNumber' + /// + [Fact] + public void BusinessRegistrationNumberTest() + { + Assert.IsType(instance.BusinessRegistrationNumber); + Assert.Equal("test", instance.BusinessRegistrationNumber); + } + + /// + /// Test the property 'BusinessRegistrationType' + /// + [Fact] + public void BusinessRegistrationTypeTest() + { + Assert.IsType(instance.BusinessRegistrationType); + Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); + } + + /// + /// Test the property 'BusinessEntityType' + /// + [Fact] + public void BusinessEntityTypeTest() + { + Assert.IsType(instance.BusinessEntityType); + Assert.Equal(BusinessEntityTypeEnum.SOLEPROPRIETOR, instance.BusinessEntityType); + } + + /// + /// Test the property 'HelpMessageResponse' + /// + [Fact] + public void HelpMessageResponseTest() + { + Assert.IsType(instance.HelpMessageResponse); + Assert.Equal("test", instance.HelpMessageResponse); + } + + /// + /// Test the property 'AgeGatedContent' + /// + [Fact] + public void AgeGatedContentTest() + { + Assert.IsType(instance.AgeGatedContent); + Assert.Equal(false, instance.AgeGatedContent); + } } } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs index a6ac9d5..1ed633f 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs @@ -53,13 +53,19 @@ public VerificationUpdateRequestTests() productionMessageContent: "test", optInWorkflow: new OptInWorkflow( description: "description", - imageUrls: new List { "imageUrls" } + imageUrls: new List { "imageUrls" }, + confirmationResponse: "confirmationResponse" ), additionalInformation: "test", isvReseller: "test", privacyPolicyUrl: "test", termsAndConditionsUrl: "test", - businessDba: "test" + businessDba: "test", + businessRegistrationNumber: "test", + businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, + helpMessageResponse: "test", + ageGatedContent: false ); } @@ -193,5 +199,55 @@ public void BusinessDbaTest() Assert.IsType(instance.BusinessDba); Assert.Equal("test", instance.BusinessDba); } + + /// + /// Test the property 'BusinessRegistrationNumber' + /// + [Fact] + public void BusinessRegistrationNumberTest() + { + Assert.IsType(instance.BusinessRegistrationNumber); + Assert.Equal("test", instance.BusinessRegistrationNumber); + } + + /// + /// Test the property 'BusinessRegistrationType' + /// + [Fact] + public void BusinessRegistrationTypeTest() + { + Assert.IsType(instance.BusinessRegistrationType); + Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); + } + + /// + /// Test the property 'BusinessEntityType' + /// + [Fact] + public void BusinessEntityTypeTest() + { + Assert.IsType(instance.BusinessEntityType); + Assert.Equal(BusinessEntityTypeEnum.SOLEPROPRIETOR, instance.BusinessEntityType); + } + + /// + /// Test the property 'HelpMessageResponse' + /// + [Fact] + public void HelpMessageResponseTest() + { + Assert.IsType(instance.HelpMessageResponse); + Assert.Equal("test", instance.HelpMessageResponse); + } + + /// + /// Test the property 'AgeGatedContent' + /// + [Fact] + public void AgeGatedContentTest() + { + Assert.IsType(instance.AgeGatedContent); + Assert.Equal(false, instance.AgeGatedContent); + } } } diff --git a/src/Bandwidth.Standard/Api/MessagesApi.cs b/src/Bandwidth.Standard/Api/MessagesApi.cs index 8032374..4e108ac 100644 --- a/src/Bandwidth.Standard/Api/MessagesApi.cs +++ b/src/Bandwidth.Standard/Api/MessagesApi.cs @@ -75,6 +75,8 @@ public interface IMessagesApiSync : IApiAccessor /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -87,7 +89,7 @@ public interface IMessagesApiSync : IApiAccessor /// 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), 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); + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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 @@ -112,6 +114,8 @@ public interface IMessagesApiSync : IApiAccessor /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -124,7 +128,7 @@ public interface IMessagesApiSync : IApiAccessor /// 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), 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); + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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 } @@ -184,6 +188,8 @@ public interface IMessagesApiAsync : IApiAccessor /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -197,7 +203,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), 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)); + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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 @@ -222,6 +228,8 @@ public interface IMessagesApiAsync : IApiAccessor /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -235,7 +243,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), 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)); + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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 } @@ -552,6 +560,8 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -564,9 +574,9 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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), 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) + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, 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, carrierQueued, fromCarrierLatency, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount); return localVarResponse.Data; } @@ -590,6 +600,8 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -602,7 +614,7 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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), 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) + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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) @@ -693,6 +705,14 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "location", location)); } + if (carrierQueued != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "carrierQueued", carrierQueued)); + } + if (fromCarrierLatency != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromCarrierLatency", fromCarrierLatency)); + } if (callingNumberCountryA3 != null) { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "callingNumberCountryA3", callingNumberCountryA3)); @@ -778,6 +798,8 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -791,9 +813,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), 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)) + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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, fromBwLatency, bwQueued, product, location, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, 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, carrierQueued, fromCarrierLatency, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -817,6 +839,8 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( /// 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) + /// A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) + /// The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. (optional) /// Calling number country in A3 format. (optional) /// Called number country in A3 format. (optional) /// Segment count (start range). (optional) @@ -830,7 +854,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), 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)) + 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), bool? carrierQueued = default(bool?), int? fromCarrierLatency = default(int?), 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) @@ -922,6 +946,14 @@ public Bandwidth.Standard.Client.ApiResponse CreateMessageWithHttpInfo( { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "location", location)); } + if (carrierQueued != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "carrierQueued", carrierQueued)); + } + if (fromCarrierLatency != null) + { + localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "fromCarrierLatency", fromCarrierLatency)); + } if (callingNumberCountryA3 != null) { localVarRequestOptions.QueryParameters.Add(Bandwidth.Standard.Client.ClientUtils.ParameterToMultiMap("", "callingNumberCountryA3", callingNumberCountryA3)); diff --git a/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs new file mode 100644 index 0000000..647dc40 --- /dev/null +++ b/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs @@ -0,0 +1,67 @@ +/* + * 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 registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// + /// The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessEntityTypeEnum + { + /// + /// Enum SOLEPROPRIETOR for value: SOLE_PROPRIETOR + /// + [EnumMember(Value = "SOLE_PROPRIETOR")] + SOLEPROPRIETOR = 1, + + /// + /// Enum PRIVATEPROFIT for value: PRIVATE_PROFIT + /// + [EnumMember(Value = "PRIVATE_PROFIT")] + PRIVATEPROFIT = 2, + + /// + /// Enum PUBLICPROFIT for value: PUBLIC_PROFIT + /// + [EnumMember(Value = "PUBLIC_PROFIT")] + PUBLICPROFIT = 3, + + /// + /// Enum NONPROFIT for value: NON_PROFIT + /// + [EnumMember(Value = "NON_PROFIT")] + NONPROFIT = 4, + + /// + /// Enum GOVERNMENT for value: GOVERNMENT + /// + [EnumMember(Value = "GOVERNMENT")] + GOVERNMENT = 5 + } + +} diff --git a/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs new file mode 100644 index 0000000..9fbc45e --- /dev/null +++ b/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs @@ -0,0 +1,49 @@ +/* + * 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 business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// + /// The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + [JsonConverter(typeof(StringEnumConverter))] + public enum BusinessRegistrationTypeEnum + { + /// + /// Enum EIN for value: EIN + /// + [EnumMember(Value = "EIN")] + EIN = 1, + + /// + /// Enum CBN for value: CBN + /// + [EnumMember(Value = "CBN")] + CBN = 2 + } + +} diff --git a/src/Bandwidth.Standard/Model/ListMessageItem.cs b/src/Bandwidth.Standard/Model/ListMessageItem.cs index 8f47f45..21fedf0 100644 --- a/src/Bandwidth.Standard/Model/ListMessageItem.cs +++ b/src/Bandwidth.Standard/Model/ListMessageItem.cs @@ -71,11 +71,12 @@ public partial class ListMessageItem : IValidatableObject /// The campaign class of the message if it has one.. /// The campaign ID of the message if it has one.. /// The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.. + /// The carrier latency of the message in seconds. Only available for OUTBOUND messages from 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)) + 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?), int? carrierLatency = default(int?), string callingNumberCountryA3 = default(string), string calledNumberCountryA3 = default(string), string product = default(string), string location = default(string)) { this.MessageId = messageId; this.AccountId = accountId; @@ -95,6 +96,7 @@ public partial class ListMessageItem : IValidatableObject this.CampaignClass = campaignClass; this.CampaignId = campaignId; this.BwLatency = bwLatency; + this.CarrierLatency = carrierLatency; this.CallingNumberCountryA3 = callingNumberCountryA3; this.CalledNumberCountryA3 = calledNumberCountryA3; this.Product = product; @@ -221,6 +223,14 @@ public partial class ListMessageItem : IValidatableObject [DataMember(Name = "bwLatency", EmitDefaultValue = true)] public int? BwLatency { get; set; } + /// + /// The carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. + /// + /// The carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. + /// 20 + [DataMember(Name = "carrierLatency", EmitDefaultValue = true)] + public int? CarrierLatency { get; set; } + /// /// The A3 country code of the calling number. /// @@ -279,6 +289,7 @@ public override string ToString() sb.Append(" CampaignClass: ").Append(CampaignClass).Append("\n"); sb.Append(" CampaignId: ").Append(CampaignId).Append("\n"); sb.Append(" BwLatency: ").Append(BwLatency).Append("\n"); + sb.Append(" CarrierLatency: ").Append(CarrierLatency).Append("\n"); sb.Append(" CallingNumberCountryA3: ").Append(CallingNumberCountryA3).Append("\n"); sb.Append(" CalledNumberCountryA3: ").Append(CalledNumberCountryA3).Append("\n"); sb.Append(" Product: ").Append(Product).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/OptInWorkflow.cs b/src/Bandwidth.Standard/Model/OptInWorkflow.cs index 0e81c57..688b6e7 100644 --- a/src/Bandwidth.Standard/Model/OptInWorkflow.cs +++ b/src/Bandwidth.Standard/Model/OptInWorkflow.cs @@ -42,7 +42,8 @@ protected OptInWorkflow() { } /// /// description (required). /// imageUrls (required). - public OptInWorkflow(string description = default(string), List imageUrls = default(List)) + /// confirmationResponse. + public OptInWorkflow(string description = default(string), List imageUrls = default(List), string confirmationResponse = default(string)) { // to ensure "description" is required (not null) if (description == null) @@ -56,6 +57,7 @@ protected OptInWorkflow() { } throw new ArgumentNullException("imageUrls is a required property for OptInWorkflow and cannot be null"); } this.ImageUrls = imageUrls; + this.ConfirmationResponse = confirmationResponse; } /// @@ -71,6 +73,13 @@ protected OptInWorkflow() { } [DataMember(Name = "imageUrls", IsRequired = true, EmitDefaultValue = true)] public List ImageUrls { get; set; } + /// + /// Gets or Sets ConfirmationResponse + /// + /// Thank you for opting in! + [DataMember(Name = "confirmationResponse", EmitDefaultValue = true)] + public string ConfirmationResponse { get; set; } + /// /// Returns the string presentation of the object /// @@ -81,6 +90,7 @@ public override string ToString() sb.Append("class OptInWorkflow {\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" ImageUrls: ").Append(ImageUrls).Append("\n"); + sb.Append(" ConfirmationResponse: ").Append(ConfirmationResponse).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -113,6 +123,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); } + // ConfirmationResponse (string) maxLength + if (this.ConfirmationResponse != null && this.ConfirmationResponse.Length > 500) + { + yield return new ValidationResult("Invalid value for ConfirmationResponse, length must be less than 500.", new [] { "ConfirmationResponse" }); + } + + // ConfirmationResponse (string) minLength + if (this.ConfirmationResponse != null && this.ConfirmationResponse.Length < 0) + { + yield return new ValidationResult("Invalid value for ConfirmationResponse, length must be greater than 0.", new [] { "ConfirmationResponse" }); + } + yield break; } } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index 31fee4f..b5511e9 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@40cb95c1 + /// [B@69c227fd [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 8df7451..7687f6e 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@40cb95c1 + /// [B@69c227fd [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs b/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs index aeb2543..9a813d2 100644 --- a/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs +++ b/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs @@ -32,6 +32,18 @@ namespace Bandwidth.Standard.Model [DataContract(Name = "tfvSubmissionInfo")] public partial class TfvSubmissionInfo : IValidatableObject { + + /// + /// Gets or Sets BusinessRegistrationType + /// + [DataMember(Name = "businessRegistrationType", EmitDefaultValue = true)] + public BusinessRegistrationTypeEnum? BusinessRegistrationType { get; set; } + + /// + /// Gets or Sets BusinessEntityType + /// + [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] + public BusinessEntityTypeEnum? BusinessEntityType { get; set; } /// /// Initializes a new instance of the class. /// @@ -47,7 +59,10 @@ public partial class TfvSubmissionInfo : IValidatableObject /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - public TfvSubmissionInfo(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string)) + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// businessRegistrationType. + /// businessEntityType. + public TfvSubmissionInfo(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?)) { this.BusinessAddress = businessAddress; this.BusinessContact = businessContact; @@ -61,6 +76,9 @@ public partial class TfvSubmissionInfo : IValidatableObject this.PrivacyPolicyUrl = privacyPolicyUrl; this.TermsAndConditionsUrl = termsAndConditionsUrl; this.BusinessDba = businessDba; + this.BusinessRegistrationNumber = businessRegistrationNumber; + this.BusinessRegistrationType = businessRegistrationType; + this.BusinessEntityType = businessEntityType; } /// @@ -153,6 +171,14 @@ public partial class TfvSubmissionInfo : IValidatableObject [DataMember(Name = "businessDba", EmitDefaultValue = false)] public string BusinessDba { get; set; } + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// 12-3456789 + [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] + public string BusinessRegistrationNumber { get; set; } + /// /// Returns the string presentation of the object /// @@ -173,6 +199,9 @@ public override string ToString() sb.Append(" PrivacyPolicyUrl: ").Append(PrivacyPolicyUrl).Append("\n"); sb.Append(" TermsAndConditionsUrl: ").Append(TermsAndConditionsUrl).Append("\n"); sb.Append(" BusinessDba: ").Append(BusinessDba).Append("\n"); + sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); + sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); + sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -265,6 +294,12 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for IsvReseller, length must be greater than 0.", new [] { "IsvReseller" }); } + // BusinessRegistrationNumber (string) maxLength + if (this.BusinessRegistrationNumber != null && this.BusinessRegistrationNumber.Length > 500) + { + yield return new ValidationResult("Invalid value for BusinessRegistrationNumber, length must be less than 500.", new [] { "BusinessRegistrationNumber" }); + } + yield break; } } diff --git a/src/Bandwidth.Standard/Model/VerificationRequest.cs b/src/Bandwidth.Standard/Model/VerificationRequest.cs index 3f7222d..0499133 100644 --- a/src/Bandwidth.Standard/Model/VerificationRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationRequest.cs @@ -32,6 +32,18 @@ namespace Bandwidth.Standard.Model [DataContract(Name = "verificationRequest")] public partial class VerificationRequest : IValidatableObject { + + /// + /// Gets or Sets BusinessRegistrationType + /// + [DataMember(Name = "businessRegistrationType", EmitDefaultValue = true)] + public BusinessRegistrationTypeEnum? BusinessRegistrationType { get; set; } + + /// + /// Gets or Sets BusinessEntityType + /// + [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] + public BusinessEntityTypeEnum? BusinessEntityType { get; set; } /// /// Initializes a new instance of the class. /// @@ -53,7 +65,12 @@ protected VerificationRequest() { } /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - public VerificationRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), List phoneNumbers = default(List), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string)) + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// businessRegistrationType. + /// businessEntityType. + /// A message that gets sent to users requesting help.. + /// Indicates whether the content is age-gated.. + public VerificationRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), List phoneNumbers = default(List), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?), string helpMessageResponse = default(string), bool ageGatedContent = default(bool)) { // to ensure "businessAddress" is required (not null) if (businessAddress == null) @@ -103,6 +120,11 @@ protected VerificationRequest() { } this.PrivacyPolicyUrl = privacyPolicyUrl; this.TermsAndConditionsUrl = termsAndConditionsUrl; this.BusinessDba = businessDba; + this.BusinessRegistrationNumber = businessRegistrationNumber; + this.BusinessRegistrationType = businessRegistrationType; + this.BusinessEntityType = businessEntityType; + this.HelpMessageResponse = helpMessageResponse; + this.AgeGatedContent = ageGatedContent; } /// @@ -201,6 +223,30 @@ protected VerificationRequest() { } [DataMember(Name = "businessDba", EmitDefaultValue = false)] public string BusinessDba { get; set; } + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// 12-3456789 + [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] + public string BusinessRegistrationNumber { get; set; } + + /// + /// A message that gets sent to users requesting help. + /// + /// A message that gets sent to users requesting help. + /// Please contact support for assistance. + [DataMember(Name = "helpMessageResponse", EmitDefaultValue = true)] + public string HelpMessageResponse { get; set; } + + /// + /// Indicates whether the content is age-gated. + /// + /// Indicates whether the content is age-gated. + /// false + [DataMember(Name = "ageGatedContent", EmitDefaultValue = true)] + public bool AgeGatedContent { get; set; } + /// /// Returns the string presentation of the object /// @@ -222,6 +268,11 @@ public override string ToString() sb.Append(" PrivacyPolicyUrl: ").Append(PrivacyPolicyUrl).Append("\n"); sb.Append(" TermsAndConditionsUrl: ").Append(TermsAndConditionsUrl).Append("\n"); sb.Append(" BusinessDba: ").Append(BusinessDba).Append("\n"); + sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); + sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); + sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); + sb.Append(" HelpMessageResponse: ").Append(HelpMessageResponse).Append("\n"); + sb.Append(" AgeGatedContent: ").Append(AgeGatedContent).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -314,6 +365,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for IsvReseller, length must be greater than 0.", new [] { "IsvReseller" }); } + // BusinessRegistrationNumber (string) maxLength + if (this.BusinessRegistrationNumber != null && this.BusinessRegistrationNumber.Length > 500) + { + yield return new ValidationResult("Invalid value for BusinessRegistrationNumber, length must be less than 500.", new [] { "BusinessRegistrationNumber" }); + } + + // HelpMessageResponse (string) maxLength + if (this.HelpMessageResponse != null && this.HelpMessageResponse.Length > 500) + { + yield return new ValidationResult("Invalid value for HelpMessageResponse, length must be less than 500.", new [] { "HelpMessageResponse" }); + } + yield break; } } diff --git a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs index 53048fc..a6e9a17 100644 --- a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs @@ -32,6 +32,18 @@ namespace Bandwidth.Standard.Model [DataContract(Name = "verificationUpdateRequest")] public partial class VerificationUpdateRequest : IValidatableObject { + + /// + /// Gets or Sets BusinessRegistrationType + /// + [DataMember(Name = "businessRegistrationType", EmitDefaultValue = true)] + public BusinessRegistrationTypeEnum? BusinessRegistrationType { get; set; } + + /// + /// Gets or Sets BusinessEntityType + /// + [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] + public BusinessEntityTypeEnum? BusinessEntityType { get; set; } /// /// Initializes a new instance of the class. /// @@ -52,7 +64,12 @@ protected VerificationUpdateRequest() { } /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - public VerificationUpdateRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string)) + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// businessRegistrationType. + /// businessEntityType. + /// A message that gets sent to users requesting help.. + /// Indicates whether the content is age-gated.. + public VerificationUpdateRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?), string helpMessageResponse = default(string), bool ageGatedContent = default(bool)) { // to ensure "businessAddress" is required (not null) if (businessAddress == null) @@ -96,6 +113,11 @@ protected VerificationUpdateRequest() { } this.PrivacyPolicyUrl = privacyPolicyUrl; this.TermsAndConditionsUrl = termsAndConditionsUrl; this.BusinessDba = businessDba; + this.BusinessRegistrationNumber = businessRegistrationNumber; + this.BusinessRegistrationType = businessRegistrationType; + this.BusinessEntityType = businessEntityType; + this.HelpMessageResponse = helpMessageResponse; + this.AgeGatedContent = ageGatedContent; } /// @@ -188,6 +210,30 @@ protected VerificationUpdateRequest() { } [DataMember(Name = "businessDba", EmitDefaultValue = false)] public string BusinessDba { get; set; } + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// + /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// 12-3456789 + [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] + public string BusinessRegistrationNumber { get; set; } + + /// + /// A message that gets sent to users requesting help. + /// + /// A message that gets sent to users requesting help. + /// Please contact support for assistance. + [DataMember(Name = "helpMessageResponse", EmitDefaultValue = true)] + public string HelpMessageResponse { get; set; } + + /// + /// Indicates whether the content is age-gated. + /// + /// Indicates whether the content is age-gated. + /// false + [DataMember(Name = "ageGatedContent", EmitDefaultValue = true)] + public bool AgeGatedContent { get; set; } + /// /// Returns the string presentation of the object /// @@ -208,6 +254,11 @@ public override string ToString() sb.Append(" PrivacyPolicyUrl: ").Append(PrivacyPolicyUrl).Append("\n"); sb.Append(" TermsAndConditionsUrl: ").Append(TermsAndConditionsUrl).Append("\n"); sb.Append(" BusinessDba: ").Append(BusinessDba).Append("\n"); + sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); + sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); + sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); + sb.Append(" HelpMessageResponse: ").Append(HelpMessageResponse).Append("\n"); + sb.Append(" AgeGatedContent: ").Append(AgeGatedContent).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -300,6 +351,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for IsvReseller, length must be greater than 0.", new [] { "IsvReseller" }); } + // BusinessRegistrationNumber (string) maxLength + if (this.BusinessRegistrationNumber != null && this.BusinessRegistrationNumber.Length > 500) + { + yield return new ValidationResult("Invalid value for BusinessRegistrationNumber, length must be less than 500.", new [] { "BusinessRegistrationNumber" }); + } + + // HelpMessageResponse (string) maxLength + if (this.HelpMessageResponse != null && this.HelpMessageResponse.Length > 500) + { + yield return new ValidationResult("Invalid value for HelpMessageResponse, length must be less than 500.", new [] { "HelpMessageResponse" }); + } + yield break; } }