Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 16 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3801,6 +3801,8 @@ components:
$ref: '#/components/schemas/diversion'
stirShaken:
$ref: '#/components/schemas/stirShaken'
uui:
$ref: '#/components/schemas/uui'
machineDetectionCompleteCallback:
type: object
description: >-
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions docs/InitiateCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

10 changes: 10 additions & 0 deletions src/Bandwidth.Standard.Test/Unit/Model/InitiateCallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ public void StirShakenTest()
instance.StirShaken = new StirShaken();
Assert.IsType<StirShaken>(instance.StirShaken);
}
/// <summary>
/// Test the property 'uui'
/// </summary>
[Fact]
public void uuiTest()
{
instance.Uui = "test";
Assert.IsType<string>(instance.Uui);
Assert.Equal("test", instance.Uui);
}

}

Expand Down
19 changes: 18 additions & 1 deletion src/Bandwidth.Standard/Model/InitiateCallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public partial class InitiateCallback : IValidatableObject
/// <param name="startTime">Time the call was started, in ISO 8601 format..</param>
/// <param name="diversion">diversion.</param>
/// <param name="stirShaken">stirShaken.</param>
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))
/// <param name="uui">The value of the &#x60;User-To-User&#x60; header to send within the initial &#x60;INVITE&#x60;. Must include the encoding parameter as specified in RFC 7433. Only &#x60;base64&#x60;, &#x60;jwt&#x60; and &#x60;hex&#x60; encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters..</param>
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;
Expand All @@ -67,6 +68,7 @@ public partial class InitiateCallback : IValidatableObject
this.StartTime = startTime;
this.Diversion = diversion;
this.StirShaken = stirShaken;
this.Uui = uui;
}

/// <summary>
Expand Down Expand Up @@ -153,6 +155,14 @@ public partial class InitiateCallback : IValidatableObject
[DataMember(Name = "stirShaken", EmitDefaultValue = false)]
public StirShaken StirShaken { get; set; }

/// <summary>
/// The value of the &#x60;User-To-User&#x60; header to send within the initial &#x60;INVITE&#x60;. Must include the encoding parameter as specified in RFC 7433. Only &#x60;base64&#x60;, &#x60;jwt&#x60; and &#x60;hex&#x60; encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.
/// </summary>
/// <value>The value of the &#x60;User-To-User&#x60; header to send within the initial &#x60;INVITE&#x60;. Must include the encoding parameter as specified in RFC 7433. Only &#x60;base64&#x60;, &#x60;jwt&#x60; and &#x60;hex&#x60; encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.</value>
/// <example>bXktdXVp</example>
[DataMember(Name = "uui", EmitDefaultValue = false)]
public string Uui { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -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();
}
Expand All @@ -193,6 +204,12 @@ public virtual string ToJson()
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> 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;
}
}
Expand Down
Loading