diff --git a/bandwidth.yml b/bandwidth.yml index e41dd6a..e180a94 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2494,6 +2494,14 @@ components: description: Optional error code, applicable only when type is `message-failed`. nullable: true example: 4405 + carrierName: + type: string + description: >- + The name of the Authorized Message Provider (AMP) that handled this + message. In the US, this is the carrier that the message was sent + to. + nullable: true + example: AT&T required: - time - type @@ -5849,8 +5857,6 @@ components: - VERIFIED - UNVERIFIED - PENDING - - PARTIALLY_VERIFIED - - INVALID_STATUS example: VERIFIED sharedSecretKey: description: >- diff --git a/docs/MessageCallback.md b/docs/MessageCallback.md index 4dabd0a..1aaa8c1 100644 --- a/docs/MessageCallback.md +++ b/docs/MessageCallback.md @@ -10,6 +10,7 @@ | **description** | **String** | A detailed description of the event described by the callback. | | | **message** | [**MessageCallbackMessage**](MessageCallbackMessage.md) | | | | **error_code** | **Integer** | Optional error code, applicable only when type is `message-failed`. | [optional] | +| **carrier_name** | **String** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. | [optional] | ## Example @@ -22,7 +23,8 @@ instance = Bandwidth::MessageCallback.new( to: +15552223333, description: rejected-unallocated-from-number, message: null, - error_code: 4405 + error_code: 4405, + carrier_name: AT&T ) ``` diff --git a/docs/RbmActionBase.md b/docs/RbmActionBase.md index 1198fae..eb9e692 100644 --- a/docs/RbmActionBase.md +++ b/docs/RbmActionBase.md @@ -16,7 +16,7 @@ require 'bandwidth-sdk' instance = Bandwidth::RbmActionBase.new( type: null, text: Hello world, - post_back_data: [B@5c930fc3 + post_back_data: [B@204c5ddf ) ``` diff --git a/lib/bandwidth-sdk/models/message_callback.rb b/lib/bandwidth-sdk/models/message_callback.rb index 51b553f..cf72885 100644 --- a/lib/bandwidth-sdk/models/message_callback.rb +++ b/lib/bandwidth-sdk/models/message_callback.rb @@ -30,6 +30,9 @@ class MessageCallback # Optional error code, applicable only when type is `message-failed`. attr_accessor :error_code + # The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. + attr_accessor :carrier_name + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -60,7 +63,8 @@ def self.attribute_map :'to' => :'to', :'description' => :'description', :'message' => :'message', - :'error_code' => :'errorCode' + :'error_code' => :'errorCode', + :'carrier_name' => :'carrierName' } end @@ -77,14 +81,16 @@ def self.openapi_types :'to' => :'String', :'description' => :'String', :'message' => :'MessageCallbackMessage', - :'error_code' => :'Integer' + :'error_code' => :'Integer', + :'carrier_name' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'error_code' + :'error_code', + :'carrier_name' ]) end @@ -136,6 +142,10 @@ def initialize(attributes = {}) if attributes.key?(:'error_code') self.error_code = attributes[:'error_code'] end + + if attributes.key?(:'carrier_name') + self.carrier_name = attributes[:'carrier_name'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -188,7 +198,8 @@ def ==(o) to == o.to && description == o.description && message == o.message && - error_code == o.error_code + error_code == o.error_code && + carrier_name == o.carrier_name end # @see the `==` method @@ -200,7 +211,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [time, type, to, description, message, error_code].hash + [time, type, to, description, message, error_code, carrier_name].hash end # Builds the object from hash diff --git a/lib/bandwidth-sdk/models/tfv_status_enum.rb b/lib/bandwidth-sdk/models/tfv_status_enum.rb index c8143e0..b83c87c 100644 --- a/lib/bandwidth-sdk/models/tfv_status_enum.rb +++ b/lib/bandwidth-sdk/models/tfv_status_enum.rb @@ -18,11 +18,9 @@ class TfvStatusEnum VERIFIED = 'VERIFIED'.freeze UNVERIFIED = 'UNVERIFIED'.freeze PENDING = 'PENDING'.freeze - PARTIALLY_VERIFIED = 'PARTIALLY_VERIFIED'.freeze - INVALID_STATUS = 'INVALID_STATUS'.freeze def self.all_vars - @all_vars ||= [VERIFIED, UNVERIFIED, PENDING, PARTIALLY_VERIFIED, INVALID_STATUS].freeze + @all_vars ||= [VERIFIED, UNVERIFIED, PENDING].freeze end # Builds the enum from string