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: 8 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -5849,8 +5857,6 @@ components:
- VERIFIED
- UNVERIFIED
- PENDING
- PARTIALLY_VERIFIED
- INVALID_STATUS
example: VERIFIED
sharedSecretKey:
description: >-
Expand Down
4 changes: 3 additions & 1 deletion docs/MessageCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
)
```

2 changes: 1 addition & 1 deletion docs/RbmActionBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
```

21 changes: 16 additions & 5 deletions lib/bandwidth-sdk/models/message_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -60,7 +63,8 @@ def self.attribute_map
:'to' => :'to',
:'description' => :'description',
:'message' => :'message',
:'error_code' => :'errorCode'
:'error_code' => :'errorCode',
:'carrier_name' => :'carrierName'
}
end

Expand All @@ -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

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions lib/bandwidth-sdk/models/tfv_status_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down