diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 60b9633..d24a003 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", "{DDDF742A-20C3-4C63-9E4A-64D5D21514B0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{E141B9CC-5B88-4A01-9A7C-18C8B2581B9E}" 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 - {DDDF742A-20C3-4C63-9E4A-64D5D21514B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DDDF742A-20C3-4C63-9E4A-64D5D21514B0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DDDF742A-20C3-4C63-9E4A-64D5D21514B0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DDDF742A-20C3-4C63-9E4A-64D5D21514B0}.Release|Any CPU.Build.0 = Release|Any CPU + {E141B9CC-5B88-4A01-9A7C-18C8B2581B9E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E141B9CC-5B88-4A01-9A7C-18C8B2581B9E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E141B9CC-5B88-4A01-9A7C-18C8B2581B9E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E141B9CC-5B88-4A01-9A7C-18C8B2581B9E}.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/api/openapi.yaml b/api/openapi.yaml index 2d2229e..876b1f6 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -9939,6 +9939,14 @@ components: $ref: '#/components/schemas/diversion' stirShaken: $ref: '#/components/schemas/stirShaken' + uui: + description: "The value of the `User-To-User` header to send within the\ + \ initial `INVITE`. Must include the encoding parameter as specified in\ + \ RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed.\ + \ This value, including the encoding specifier, may not exceed 256 characters." + example: bXktdXVp + maxLength: 256 + type: string type: object machineDetectionCompleteCallback: description: "This event is sent to the url informed when requesting a machine\ @@ -11018,6 +11026,14 @@ components: example: 99759086-1335-11ed-9bcf-5f7d464e91af type: string type: object + uui: + description: "The value of the `User-To-User` header to send within the initial\ + \ `INVITE`. Must include the encoding parameter as specified in RFC 7433.\ + \ Only `base64`, `jwt` and `hex` encoding are currently allowed. This value,\ + \ including the encoding specifier, may not exceed 256 characters." + example: bXktdXVp + maxLength: 256 + type: string codeRequest: properties: to: diff --git a/bandwidth.yml b/bandwidth.yml index 70ca20d..801e18f 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -3801,6 +3801,8 @@ components: $ref: '#/components/schemas/diversion' stirShaken: $ref: '#/components/schemas/stirShaken' + uui: + $ref: '#/components/schemas/uui' machineDetectionCompleteCallback: type: object description: >- @@ -4435,6 +4437,15 @@ components: type: string description: (optional) A unique origination identifier. example: 99759086-1335-11ed-9bcf-5f7d464e91af + uui: + type: string + description: >- + The value of the `User-To-User` header to send within the initial + `INVITE`. Must include the encoding parameter as specified in RFC 7433. + Only `base64`, `jwt` and `hex` encoding are currently allowed. This + value, including the encoding specifier, may not exceed 256 characters. + example: bXktdXVp + maxLength: 256 codeRequest: type: object properties: diff --git a/docs/InitiateCallback.md b/docs/InitiateCallback.md index e0be6d5..7796038 100644 --- a/docs/InitiateCallback.md +++ b/docs/InitiateCallback.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **StartTime** | **DateTime** | Time the call was started, in ISO 8601 format. | [optional] **Diversion** | [**Diversion**](Diversion.md) | | [optional] **StirShaken** | [**StirShaken**](StirShaken.md) | | [optional] +**Uui** | **string** | The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. | [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/Model/InitiateCallbackTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/InitiateCallbackTests.cs index cf5ebff..26ca2dc 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/InitiateCallbackTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/InitiateCallbackTests.cs @@ -167,6 +167,16 @@ public void StirShakenTest() instance.StirShaken = new StirShaken(); Assert.IsType(instance.StirShaken); } + /// + /// Test the property 'uui' + /// + [Fact] + public void uuiTest() + { + instance.Uui = "test"; + Assert.IsType(instance.Uui); + Assert.Equal("test", instance.Uui); + } } diff --git a/src/Bandwidth.Standard/Model/InitiateCallback.cs b/src/Bandwidth.Standard/Model/InitiateCallback.cs index d42c983..73db2f3 100644 --- a/src/Bandwidth.Standard/Model/InitiateCallback.cs +++ b/src/Bandwidth.Standard/Model/InitiateCallback.cs @@ -53,7 +53,8 @@ public partial class InitiateCallback : IValidatableObject /// Time the call was started, in ISO 8601 format.. /// diversion. /// stirShaken. - public InitiateCallback(string eventType = default(string), DateTime eventTime = default(DateTime), string accountId = default(string), string applicationId = default(string), string from = default(string), string to = default(string), CallDirectionEnum? direction = default(CallDirectionEnum?), string callId = default(string), string callUrl = default(string), DateTime startTime = default(DateTime), Diversion diversion = default(Diversion), StirShaken stirShaken = default(StirShaken)) + /// The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.. + public InitiateCallback(string eventType = default(string), DateTime eventTime = default(DateTime), string accountId = default(string), string applicationId = default(string), string from = default(string), string to = default(string), CallDirectionEnum? direction = default(CallDirectionEnum?), string callId = default(string), string callUrl = default(string), DateTime startTime = default(DateTime), Diversion diversion = default(Diversion), StirShaken stirShaken = default(StirShaken), string uui = default(string)) { this.EventType = eventType; this.EventTime = eventTime; @@ -67,6 +68,7 @@ public partial class InitiateCallback : IValidatableObject this.StartTime = startTime; this.Diversion = diversion; this.StirShaken = stirShaken; + this.Uui = uui; } /// @@ -153,6 +155,14 @@ public partial class InitiateCallback : IValidatableObject [DataMember(Name = "stirShaken", EmitDefaultValue = false)] public StirShaken StirShaken { get; set; } + /// + /// The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. + /// + /// The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. + /// bXktdXVp + [DataMember(Name = "uui", EmitDefaultValue = false)] + public string Uui { get; set; } + /// /// Returns the string presentation of the object /// @@ -173,6 +183,7 @@ public override string ToString() sb.Append(" StartTime: ").Append(StartTime).Append("\n"); sb.Append(" Diversion: ").Append(Diversion).Append("\n"); sb.Append(" StirShaken: ").Append(StirShaken).Append("\n"); + sb.Append(" Uui: ").Append(Uui).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -193,6 +204,12 @@ public virtual string ToJson() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Uui (string) maxLength + if (this.Uui != null && this.Uui.Length > 256) + { + yield return new ValidationResult("Invalid value for Uui, length must be less than 256.", new [] { "Uui" }); + } + yield break; } }