Skip to content

Commit cbcfb9c

Browse files
committed
Merge remote-tracking branch 'origin/VAPI-3162-REFER' into VAPI-3162-REFER
2 parents c367380 + be3de02 commit cbcfb9c

10 files changed

Lines changed: 49 additions & 26 deletions

‎bandwidth.yml‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,11 @@ components:
28892889
example: Yes, I would like to proceed
28902890
postbackData:
28912891
$ref: '#/components/schemas/rbmActionPostbackData'
2892+
pairedMessageId:
2893+
type: string
2894+
nullable: true
2895+
description: Corresponding parent message ID (MT).
2896+
example: 1752697342534u24xerqdukke523x
28922897
rbmLocationResponse:
28932898
type: object
28942899
properties:
@@ -2925,7 +2930,7 @@ components:
29252930
message-failed: '#/components/schemas/statusCallback'
29262931
message-read: '#/components/schemas/statusCallback'
29272932
message-received: '#/components/schemas/inboundCallback'
2928-
request-location-response: '#/components/schemas/inboundCallback'
2933+
requested-location-response: '#/components/schemas/inboundCallback'
29292934
suggestion-response: '#/components/schemas/inboundCallback'
29302935
statusCallback:
29312936
type: object
@@ -3035,14 +3040,15 @@ components:
30353040
- `message-received` indicates an MO message from a Bandwidth user's
30363041
client to a Bandwidth number.
30373042
3038-
- `request-location-response` indicates a response to a location request
3039-
sent by the Bandwidth user's client after receiving an RBM message.
3043+
- `requested-location-response` indicates a response to a location
3044+
request sent by the Bandwidth user's client after receiving an RBM
3045+
message.
30403046
30413047
- `suggestion-response` indicates a response to a suggestion sent by the
30423048
Bandwidth user's client after receiving an RBM message.
30433049
enum:
30443050
- message-received
3045-
- request-location-response
3051+
- requested-location-response
30463052
- suggestion-response
30473053
example: message-received
30483054
statusCallbackMessage:
@@ -9246,7 +9252,7 @@ components:
92469252
tag: '{"myTag": "myTagValue"}'
92479253
updateEndpointBxmlRequestExample:
92489254
summary: Update Endpoint BXML Request Example
9249-
value: <Bxml><StartRecording /></Bxml>
9255+
value: <Response><StartRecording /></Response>
92509256
endpointDisconnectedEventExample:
92519257
summary: Endpoint Disconnected Event
92529258
value:
@@ -9770,10 +9776,10 @@ components:
97709776
97719777
<p>The payload type will be one of <code>message-received</code>,
97729778
<code>suggestion-response</code>, or
9773-
<code>location-request-response</code>.
9779+
<code>requested-location-response</code>.
97749780
97759781
<p>Note that <code>suggestion-response</code> and
9776-
<code>location-request-response</code> callback types are
9782+
<code>requested-location-response</code> callback types are
97779783
pertinent only for RBM messages sent from the
97789784
<code>/messages/multiChannel</code> endpoint.
97799785

‎docs/Callback.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Bandwidth::Callback.openapi_discriminator_mapping
5050
# :'message-received' => :'InboundCallback',
5151
# :'message-sending' => :'StatusCallback',
5252
# :'message-sent' => :'StatusCallback',
53-
# :'request-location-response' => :'InboundCallback',
53+
# :'requested-location-response' => :'InboundCallback',
5454
# :'suggestion-response' => :'InboundCallback'
5555
# }
5656
```

‎docs/RbmActionBase.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
1616
instance = Bandwidth::RbmActionBase.new(
1717
type: null,
1818
text: Hello world,
19-
postback_data: [B@24fb752f
19+
postback_data: [B@20706e70
2020
)
2121
```
2222

‎docs/RbmSuggestionResponse.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| ---- | ---- | ----------- | ----- |
77
| **text** | **String** | The text associated with the suggestion response. | [optional] |
88
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | [optional] |
9+
| **paired_message_id** | **String** | Corresponding parent message ID (MT). | [optional] |
910

1011
## Example
1112

@@ -14,7 +15,8 @@ require 'bandwidth-sdk'
1415

1516
instance = Bandwidth::RbmSuggestionResponse.new(
1617
text: Yes, I would like to proceed,
17-
postback_data: [B@24fb752f
18+
postback_data: [B@20706e70,
19+
paired_message_id: 1752697342534u24xerqdukke523x
1820
)
1921
```
2022

‎lib/bandwidth-sdk/models/callback.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def openapi_discriminator_mapping
3939
:'message-received' => :'InboundCallback',
4040
:'message-sending' => :'StatusCallback',
4141
:'message-sent' => :'StatusCallback',
42-
:'request-location-response' => :'InboundCallback',
42+
:'requested-location-response' => :'InboundCallback',
4343
:'suggestion-response' => :'InboundCallback'
4444
}
4545
end

‎lib/bandwidth-sdk/models/inbound_callback_type_enum.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
module Bandwidth
1717
class InboundCallbackTypeEnum
1818
MESSAGE_RECEIVED = 'message-received'.freeze
19-
REQUEST_LOCATION_RESPONSE = 'request-location-response'.freeze
19+
REQUESTED_LOCATION_RESPONSE = 'requested-location-response'.freeze
2020
SUGGESTION_RESPONSE = 'suggestion-response'.freeze
2121

2222
def self.all_vars
23-
@all_vars ||= [MESSAGE_RECEIVED, REQUEST_LOCATION_RESPONSE, SUGGESTION_RESPONSE].freeze
23+
@all_vars ||= [MESSAGE_RECEIVED, REQUESTED_LOCATION_RESPONSE, SUGGESTION_RESPONSE].freeze
2424
end
2525

2626
# Builds the enum from string

‎lib/bandwidth-sdk/models/rbm_suggestion_response.rb‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ class RbmSuggestionResponse < ApiModelBase
2121
# Base64 payload the customer receives when the reply is clicked.
2222
attr_accessor :postback_data
2323

24+
# Corresponding parent message ID (MT).
25+
attr_accessor :paired_message_id
26+
2427
# Attribute mapping from ruby-style variable name to JSON key.
2528
def self.attribute_map
2629
{
2730
:'text' => :'text',
28-
:'postback_data' => :'postbackData'
31+
:'postback_data' => :'postbackData',
32+
:'paired_message_id' => :'pairedMessageId'
2933
}
3034
end
3135

@@ -43,13 +47,15 @@ def self.acceptable_attributes
4347
def self.openapi_types
4448
{
4549
:'text' => :'String',
46-
:'postback_data' => :'String'
50+
:'postback_data' => :'String',
51+
:'paired_message_id' => :'String'
4752
}
4853
end
4954

5055
# List of attributes with nullable: true
5156
def self.openapi_nullable
5257
Set.new([
58+
:'paired_message_id'
5359
])
5460
end
5561

@@ -76,6 +82,10 @@ def initialize(attributes = {})
7682
if attributes.key?(:'postback_data')
7783
self.postback_data = attributes[:'postback_data']
7884
end
85+
86+
if attributes.key?(:'paired_message_id')
87+
self.paired_message_id = attributes[:'paired_message_id']
88+
end
7989
end
8090

8191
# Show invalid properties with the reasons. Usually used together with valid?
@@ -118,7 +128,8 @@ def ==(o)
118128
return true if self.equal?(o)
119129
self.class == o.class &&
120130
text == o.text &&
121-
postback_data == o.postback_data
131+
postback_data == o.postback_data &&
132+
paired_message_id == o.paired_message_id
122133
end
123134

124135
# @see the `==` method
@@ -130,7 +141,7 @@ def eql?(o)
130141
# Calculates hash code according to all attributes.
131142
# @return [Integer] Hash code
132143
def hash
133-
[text, postback_data].hash
144+
[text, postback_data, paired_message_id].hash
134145
end
135146

136147
# Builds the object from hash

‎spec/unit/models/callback_spec.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
:'message-received' => :'InboundCallback',
2525
:'message-sending' => :'StatusCallback',
2626
:'message-sent' => :'StatusCallback',
27-
:'request-location-response' => :'InboundCallback',
27+
:'requested-location-response' => :'InboundCallback',
2828
:'suggestion-response' => :'InboundCallback'
2929
})
3030
end

‎spec/unit/models/inbound_callback_type_enum_spec.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
end
77

88
it 'defines REQUEST_LOCATION_RESPONSE' do
9-
expect(Bandwidth::InboundCallbackTypeEnum::REQUEST_LOCATION_RESPONSE).to eq('request-location-response')
9+
expect(Bandwidth::InboundCallbackTypeEnum::REQUESTED_LOCATION_RESPONSE).to eq('requested-location-response')
1010
end
1111

1212
it 'defines SUGGESTION_RESPONSE' do
@@ -18,7 +18,7 @@
1818
it 'returns every valid enum value' do
1919
expect(Bandwidth::InboundCallbackTypeEnum.all_vars).to eq([
2020
'message-received',
21-
'request-location-response',
21+
'requested-location-response',
2222
'suggestion-response'
2323
])
2424
end
@@ -27,7 +27,7 @@
2727
describe '.build_from_hash' do
2828
it 'returns the value when it matches a valid enum value' do
2929
expect(Bandwidth::InboundCallbackTypeEnum.build_from_hash('message-received')).to eq('message-received')
30-
expect(Bandwidth::InboundCallbackTypeEnum.build_from_hash('request-location-response')).to eq('request-location-response')
30+
expect(Bandwidth::InboundCallbackTypeEnum.build_from_hash('requested-location-response')).to eq('requested-location-response')
3131
expect(Bandwidth::InboundCallbackTypeEnum.build_from_hash('suggestion-response')).to eq('suggestion-response')
3232
end
3333

‎spec/unit/models/rbm_suggestion_response_spec.rb‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
let(:rbm_suggestion_response_default) { Bandwidth::RbmSuggestionResponse.new }
44
let(:rbm_suggestion_response_values) { Bandwidth::RbmSuggestionResponse.new({
55
text: 'Yes',
6-
postback_data: 'reply_yes'
6+
postback_data: 'reply_yes',
7+
paired_message_id: 'paired_message_123'
78
}) }
89

910
describe '#initialize' do
@@ -28,25 +29,27 @@
2829

2930
describe '#openapi_nullable' do
3031
it 'expects nullable attributes to be an empty set' do
31-
expect(Bandwidth::RbmSuggestionResponse.openapi_nullable).to eq(Set.new([]))
32+
expect(Bandwidth::RbmSuggestionResponse.openapi_nullable).to eq(Set.new([:paired_message_id]))
3233
end
3334
end
3435

3536
describe '#build_from_hash' do
3637
it 'validates instance of RbmSuggestionResponse created by the build_from_hash method' do
3738
rbm_suggestion_response_from_hash = Bandwidth::RbmSuggestionResponse.build_from_hash({
3839
text: 'Yes',
39-
postbackData: 'reply_yes'
40+
postbackData: 'reply_yes',
41+
pairedMessageId: 'paired_message_123'
4042
})
4143
expect(rbm_suggestion_response_from_hash).to be_instance_of(Bandwidth::RbmSuggestionResponse)
4244
expect(rbm_suggestion_response_from_hash.text).to eq('Yes')
4345
expect(rbm_suggestion_response_from_hash.postback_data).to eq('reply_yes')
46+
expect(rbm_suggestion_response_from_hash.paired_message_id).to eq('paired_message_123')
4447
end
4548
end
4649

4750
describe '#to_s' do
4851
it 'returns a string representation of the object' do
49-
expect(rbm_suggestion_response_values.to_s).to eq('{:text=>"Yes", :postbackData=>"reply_yes"}')
52+
expect(rbm_suggestion_response_values.to_s).to eq('{:text=>"Yes", :postbackData=>"reply_yes", :pairedMessageId=>"paired_message_123"}')
5053
end
5154
end
5255

@@ -61,7 +64,8 @@
6164
it 'returns a hash representation of the object' do
6265
expect(rbm_suggestion_response_values.to_body).to eq({
6366
text: 'Yes',
64-
postbackData: 'reply_yes'
67+
postbackData: 'reply_yes',
68+
pairedMessageId: 'paired_message_123'
6569
})
6670
end
6771
end

0 commit comments

Comments
 (0)