diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index c9aa8a3..20a8814 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", "{0213CF75-AC44-4279-B991-A8ED63FD9803}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}" 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 - {0213CF75-AC44-4279-B991-A8ED63FD9803}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0213CF75-AC44-4279-B991-A8ED63FD9803}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0213CF75-AC44-4279-B991-A8ED63FD9803}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0213CF75-AC44-4279-B991-A8ED63FD9803}.Release|Any CPU.Build.0 = Release|Any CPU + {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.Build.0 = Release|Any CPU {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 6eb2de0..344fb1e 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -14692,11 +14692,38 @@ components: description: Reason code for denial. example: 511 type: integer + denialStatusCodeNullable: + description: Reason code for denial. + example: 511 + nullable: true + type: integer resubmitAllowed: description: Whether a Toll-Free Verification request qualifies for resubmission via PUT. example: true type: boolean + additionalDenialReason: + properties: + statusCode: + description: Reason code for denial. + example: 511 + type: integer + reason: + description: Explanation for why a verification request was declined. + example: Invalid Information - Can't Validate URL - Website is not accessible + / not available + nullable: false + type: string + resubmitAllowed: + description: Whether a Toll-Free Verification request qualifies for resubmission + via PUT. + example: true + type: boolean + required: + - reason + - resubmitAllowed + - statusCode + type: object blocked: description: Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. @@ -14815,28 +14842,6 @@ components: description: Indicates whether the content is age-gated. example: false type: boolean - additionalDenialReason: - properties: - statusCode: - description: Reason code for denial. - example: 511 - type: integer - reason: - description: Explanation for why a verification request was declined. - example: Invalid Information - Can't Validate URL - Website is not accessible - / not available - nullable: false - type: string - resubmitAllowed: - description: Whether a Toll-Free Verification request qualifies for resubmission - via PUT. - example: true - type: boolean - required: - - reason - - resubmitAllowed - - statusCode - type: object internalTicketNumber: description: Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads. @@ -15740,12 +15745,22 @@ components: type: object tfvStatus: example: - internalTicketNumber: acde070d-8c4c-4f0d-9d8a-162843c10333 - phoneNumber: "+18005555555" - blocked: true blockedReason: Toll-free number was used to send spam messages resubmitAllowed: true createdDateTime: 2021-06-08T06:45:13Z + declineReasonDescription: Invalid Information - Can't Validate URL - Website + is not accessible / not available + internalTicketNumber: acde070d-8c4c-4f0d-9d8a-162843c10333 + phoneNumber: "+18005555555" + blocked: true + denialStatusCode: 511 + additionalDenialReasons: + - statusCode: 512 + reason: Reason A + resubmitAllowed: true + - statusCode: 513 + reason: Reason B + resubmitAllowed: true modifiedDateTime: 2021-06-08T06:45:13Z submission: additionalInformation: Any additional information @@ -15780,8 +15795,6 @@ components: state: NC url: https://www.example.com/path/to/resource useCaseSummary: Text summarizing the use case for the toll-free number - declineReasonDescription: Invalid Information - Can't Validate URL - Website - is not accessible / not available cvToken: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw status: VERIFIED properties: @@ -15807,6 +15820,25 @@ components: / not available nullable: false type: string + denialStatusCode: + description: Reason code for denial. + example: 511 + nullable: true + type: integer + additionalDenialReasons: + description: An optional list of denial reasons in addition to declineReasonDescription + when multiple reasons apply. + example: + - statusCode: 512 + reason: Reason A + resubmitAllowed: true + - statusCode: 513 + reason: Reason B + resubmitAllowed: true + items: + $ref: '#/components/schemas/additionalDenialReason' + nullable: true + type: array resubmitAllowed: description: Whether a Toll-Free Verification request qualifies for resubmission via PUT. diff --git a/bandwidth.yml b/bandwidth.yml index 5927a5e..5e2bc9b 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -6034,12 +6034,30 @@ components: description: Reason code for denial. type: integer example: 511 + denialStatusCodeNullable: + description: Reason code for denial. + nullable: true + type: integer + example: 511 resubmitAllowed: description: >- Whether a Toll-Free Verification request qualifies for resubmission via PUT. example: true type: boolean + additionalDenialReason: + type: object + properties: + statusCode: + $ref: '#/components/schemas/denialStatusCode' + reason: + $ref: '#/components/schemas/declineReasonDescription' + resubmitAllowed: + $ref: '#/components/schemas/resubmitAllowed' + required: + - statusCode + - reason + - resubmitAllowed blocked: description: >- Whether a Toll-Free Verification is blocked. This attribute will only be @@ -6194,19 +6212,6 @@ components: type: boolean description: Indicates whether the content is age-gated. example: false - additionalDenialReason: - properties: - statusCode: - $ref: '#/components/schemas/denialStatusCode' - reason: - $ref: '#/components/schemas/declineReasonDescription' - resubmitAllowed: - $ref: '#/components/schemas/resubmitAllowed' - required: - - statusCode - - reason - - resubmitAllowed - type: object internalTicketNumber: type: string description: >- @@ -6402,6 +6407,7 @@ components: description: >- An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply. + type: array items: $ref: '#/components/schemas/additionalDenialReason' example: @@ -6411,7 +6417,6 @@ components: - statusCode: 513 reason: Reason B resubmitAllowed: true - type: array declineReasonDescription: $ref: '#/components/schemas/declineReasonDescription' denialStatusCode: @@ -6779,6 +6784,23 @@ components: $ref: '#/components/schemas/internalTicketNumber' declineReasonDescription: $ref: '#/components/schemas/declineReasonDescription' + denialStatusCode: + $ref: '#/components/schemas/denialStatusCodeNullable' + additionalDenialReasons: + description: >- + An optional list of denial reasons in addition to + declineReasonDescription when multiple reasons apply. + nullable: true + type: array + items: + $ref: '#/components/schemas/additionalDenialReason' + example: + - statusCode: 512 + reason: Reason A + resubmitAllowed: true + - statusCode: 513 + reason: Reason B + resubmitAllowed: true resubmitAllowed: $ref: '#/components/schemas/resubmitAllowed' createdDateTime: diff --git a/docs/TfvStatus.md b/docs/TfvStatus.md index 2ba2af0..e9abd8f 100644 --- a/docs/TfvStatus.md +++ b/docs/TfvStatus.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **Status** | **TfvStatusEnum** | | [optional] **InternalTicketNumber** | **string** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads. | [optional] **DeclineReasonDescription** | **string** | Explanation for why a verification request was declined. | [optional] +**DenialStatusCode** | **int?** | Reason code for denial. | [optional] +**AdditionalDenialReasons** | [**List<AdditionalDenialReason>**](AdditionalDenialReason.md) | An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply. | [optional] **ResubmitAllowed** | **bool** | Whether a Toll-Free Verification request qualifies for resubmission via PUT. | [optional] **CreatedDateTime** | **DateTime** | Date and time the verification request was created. | [optional] **ModifiedDateTime** | **DateTime** | Date and time the verification request was last modified. | [optional] diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index f661470..605318f 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@18356951 + /// [B@3c205259 [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 b45605a..faa9172 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@18356951 + /// [B@3c205259 [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/TfvStatus.cs b/src/Bandwidth.Standard/Model/TfvStatus.cs index beb21aa..b3d562c 100644 --- a/src/Bandwidth.Standard/Model/TfvStatus.cs +++ b/src/Bandwidth.Standard/Model/TfvStatus.cs @@ -45,6 +45,8 @@ public partial class TfvStatus : IValidatableObject /// status. /// Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads.. /// Explanation for why a verification request was declined.. + /// Reason code for denial.. + /// An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply.. /// Whether a Toll-Free Verification request qualifies for resubmission via PUT.. /// Date and time the verification request was created.. /// Date and time the verification request was last modified.. @@ -52,12 +54,14 @@ public partial class TfvStatus : IValidatableObject /// Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.. /// The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.. /// The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection.. - public TfvStatus(string phoneNumber = default(string), TfvStatusEnum? status = default(TfvStatusEnum?), string internalTicketNumber = default(string), string declineReasonDescription = default(string), bool resubmitAllowed = default(bool), DateTime createdDateTime = default(DateTime), DateTime modifiedDateTime = default(DateTime), TfvSubmissionInfo submission = default(TfvSubmissionInfo), bool blocked = default(bool), string blockedReason = default(string), string cvToken = default(string)) + public TfvStatus(string phoneNumber = default(string), TfvStatusEnum? status = default(TfvStatusEnum?), string internalTicketNumber = default(string), string declineReasonDescription = default(string), int? denialStatusCode = default(int?), List additionalDenialReasons = default(List), bool resubmitAllowed = default(bool), DateTime createdDateTime = default(DateTime), DateTime modifiedDateTime = default(DateTime), TfvSubmissionInfo submission = default(TfvSubmissionInfo), bool blocked = default(bool), string blockedReason = default(string), string cvToken = default(string)) { this.PhoneNumber = phoneNumber; this.Status = status; this.InternalTicketNumber = internalTicketNumber; this.DeclineReasonDescription = declineReasonDescription; + this.DenialStatusCode = denialStatusCode; + this.AdditionalDenialReasons = additionalDenialReasons; this.ResubmitAllowed = resubmitAllowed; this.CreatedDateTime = createdDateTime; this.ModifiedDateTime = modifiedDateTime; @@ -91,6 +95,22 @@ public partial class TfvStatus : IValidatableObject [DataMember(Name = "declineReasonDescription", EmitDefaultValue = false)] public string DeclineReasonDescription { get; set; } + /// + /// Reason code for denial. + /// + /// Reason code for denial. + /// 511 + [DataMember(Name = "denialStatusCode", EmitDefaultValue = true)] + public int? DenialStatusCode { get; set; } + + /// + /// An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply. + /// + /// An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply. + /// [{"statusCode":512,"reason":"Reason A","resubmitAllowed":true},{"statusCode":513,"reason":"Reason B","resubmitAllowed":true}] + [DataMember(Name = "additionalDenialReasons", EmitDefaultValue = true)] + public List AdditionalDenialReasons { get; set; } + /// /// Whether a Toll-Free Verification request qualifies for resubmission via PUT. /// @@ -157,6 +177,8 @@ public override string ToString() sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" InternalTicketNumber: ").Append(InternalTicketNumber).Append("\n"); sb.Append(" DeclineReasonDescription: ").Append(DeclineReasonDescription).Append("\n"); + sb.Append(" DenialStatusCode: ").Append(DenialStatusCode).Append("\n"); + sb.Append(" AdditionalDenialReasons: ").Append(AdditionalDenialReasons).Append("\n"); sb.Append(" ResubmitAllowed: ").Append(ResubmitAllowed).Append("\n"); sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); sb.Append(" ModifiedDateTime: ").Append(ModifiedDateTime).Append("\n");