bandwidth-sdk 17.3.0 → 17.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/bandwidth.yml +53 -8
  4. data/coverage/.resultset.json +5 -5
  5. data/coverage/index.html +15 -15
  6. data/docs/Callback.md +1 -0
  7. data/docs/InboundCallbackMessage.md +1 -1
  8. data/docs/Media.md +2 -2
  9. data/docs/Message.md +1 -1
  10. data/docs/MessageRequest.md +1 -1
  11. data/docs/MultiChannelChannelListMMSObject.md +1 -1
  12. data/docs/MultiChannelChannelListMMSResponseObject.md +1 -1
  13. data/docs/MultiChannelChannelListObjectBase.md +1 -1
  14. data/docs/MultiChannelChannelListRBMObject.md +1 -1
  15. data/docs/MultiChannelChannelListRBMResponseObject.md +1 -1
  16. data/docs/MultiChannelChannelListRequestObject.md +1 -1
  17. data/docs/MultiChannelChannelListResponseObject.md +1 -1
  18. data/docs/MultiChannelChannelListSMSObject.md +1 -1
  19. data/docs/MultiChannelChannelListSMSResponseObject.md +1 -1
  20. data/docs/RbmActionBase.md +1 -1
  21. data/docs/RbmSuggestionResponse.md +1 -1
  22. data/docs/StatusCallbackMessage.md +1 -1
  23. data/docs/TfvSubmissionInfo.md +1 -1
  24. data/docs/VerificationRequest.md +1 -1
  25. data/docs/VerificationUpdateRequest.md +1 -1
  26. data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +5 -1
  27. data/lib/bandwidth-sdk/models/callback.rb +1 -0
  28. data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
  29. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +2 -1
  30. data/lib/bandwidth-sdk/models/message.rb +1 -1
  31. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  32. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
  33. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
  34. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
  35. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
  36. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
  37. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
  38. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
  39. data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
  40. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +58 -1
  41. data/lib/bandwidth-sdk/models/verification_request.rb +58 -1
  42. data/lib/bandwidth-sdk/models/verification_update_request.rb +58 -1
  43. data/lib/bandwidth-sdk/version.rb +1 -1
  44. data/spec/smoke/phone_number_lookup_api_spec.rb +0 -2
  45. metadata +45 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c104607d4f93290aee6b7f6ddfae1b763e704869b461f9782a177630581a7b8b
4
- data.tar.gz: 6e171382371ce86dd1685689a4d7bcb360e3f4232778b364e95117b0958cbe09
3
+ metadata.gz: 1b0bca65e0a4a616dda251dcb01f1057480b68382807d064184fe3b75c37eed5
4
+ data.tar.gz: ff5640dde4290a14575e2e282ebcc8a6840eb6598eef5f995e149ae6f3786850
5
5
  SHA512:
6
- metadata.gz: 2492c79aa0113a31f75022987fa1e7a8be31c50960cfae79ff8efe35020bec55152b0b2d67137a1e732508bcf2f1dc455d9bfe14c41c4027995bf577db2c9097
7
- data.tar.gz: 5f83bd244d36a7ced37bd7ff78d77286a1addae8a74f4f3640660953bb6d67e9d5d41b8b4460f6875187769aff19f166400599be33f0ef06585ad7fbba372fb2
6
+ metadata.gz: 6ddcce0d0fc9ec1dacd815ee1e5baa073536ad8deca7c9d05de231e8d1b30465fdf81056e800618d63248a66103894575129acc76621e719df88291e739128b0
7
+ data.tar.gz: 94f1bf779801d16a0e4da36b9ad0ecb72338bff90a9d2716c6ac1f3d340d22c982643ae9f271e8470d86584a92e7e285877354653712e7328bd053574b46ef7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bandwidth-sdk (17.3.0)
4
+ bandwidth-sdk (17.3.1)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  marcel
@@ -26,7 +26,7 @@ GEM
26
26
  faraday-net_http (3.4.2)
27
27
  net-http (~> 0.5)
28
28
  io-console (0.8.2)
29
- json (2.18.1)
29
+ json (2.19.2)
30
30
  language_server-protocol (3.17.0.5)
31
31
  lint_roller (1.1.0)
32
32
  logger (1.7.0)
@@ -64,7 +64,7 @@ GEM
64
64
  rspec-expectations (3.13.5)
65
65
  diff-lcs (>= 1.2.0, < 2.0)
66
66
  rspec-support (~> 3.13.0)
67
- rspec-mocks (3.13.7)
67
+ rspec-mocks (3.13.8)
68
68
  diff-lcs (>= 1.2.0, < 2.0)
69
69
  rspec-support (~> 3.13.0)
70
70
  rspec-support (3.13.7)
@@ -79,7 +79,7 @@ GEM
79
79
  rubocop-ast (>= 1.48.0, < 2.0)
80
80
  ruby-progressbar (~> 1.7)
81
81
  unicode-display_width (>= 2.4.0, < 4.0)
82
- rubocop-ast (1.49.0)
82
+ rubocop-ast (1.49.1)
83
83
  parser (>= 3.3.7.2)
84
84
  prism (~> 1.7)
85
85
  ruby-progressbar (1.13.0)
data/bandwidth.yml CHANGED
@@ -1696,7 +1696,7 @@ components:
1696
1696
  type: string
1697
1697
  description: >-
1698
1698
  The ID of the Application your from number or senderId is associated
1699
- with in the Bandwidth Phone Number Dashboard.
1699
+ with in the Bandwidth App.
1700
1700
  example: 93de2206-9669-4e07-948d-329f4b722ee2
1701
1701
  priorityEnum:
1702
1702
  type: string
@@ -1956,8 +1956,10 @@ components:
1956
1956
  type: string
1957
1957
  contentLength:
1958
1958
  type: integer
1959
+ example: 1024
1959
1960
  mediaName:
1960
1961
  type: string
1962
+ example: image.png
1961
1963
  segmentCount:
1962
1964
  type: integer
1963
1965
  description: >-
@@ -2744,6 +2746,7 @@ components:
2744
2746
  discriminator:
2745
2747
  propertyName: type
2746
2748
  mapping:
2749
+ message-sending: '#/components/schemas/statusCallback'
2747
2750
  message-sent: '#/components/schemas/statusCallback'
2748
2751
  message-delivered: '#/components/schemas/statusCallback'
2749
2752
  message-failed: '#/components/schemas/statusCallback'
@@ -5510,10 +5513,14 @@ components:
5510
5513
 
5511
5514
  - UNKNOWN: Bandwidth cannot find an delivery status entry for the
5512
5515
  number.
5516
+
5517
+ - NOT_ENABLED: The phone number is not enabled for messaging, so there
5518
+ is no delivery status information.
5513
5519
  enum:
5514
5520
  - ACTIVE
5515
5521
  - DEACTIVATED
5516
5522
  - UNKNOWN
5523
+ - NOT_ENABLED
5517
5524
  lineTypeEnum:
5518
5525
  type: string
5519
5526
  enum:
@@ -5816,25 +5823,36 @@ components:
5816
5823
  type: string
5817
5824
  privacyPolicyUrl:
5818
5825
  description: The Toll-Free Verification request privacy policy URL.
5826
+ maxLength: 500
5819
5827
  example: http://your-company.com/privacyPolicy
5820
5828
  type: string
5821
5829
  termsAndConditionsUrl:
5822
5830
  description: The Toll-Free Verification request terms and conditions policy URL.
5831
+ maxLength: 500
5823
5832
  example: http://your-company.com/termsAndConditions
5824
5833
  type: string
5825
5834
  businessDba:
5826
5835
  description: The company 'Doing Business As'.
5836
+ maxLength: 500
5827
5837
  example: Another Company Name Inc.
5828
5838
  type: string
5829
5839
  businessRegistrationNumber:
5830
5840
  type: string
5831
- description: Government-issued business identifying number.
5841
+ description: >
5842
+ Government-issued business identifying number.
5843
+
5844
+
5845
+ **Note:** If this field is provided, it is strongly recommended to also
5846
+ provide `businessRegistrationType` and
5847
+ `businessRegistrationIssuingCountry`. Submissions missing these fields
5848
+ have a high likelihood of rejection.
5832
5849
  nullable: true
5833
5850
  maxLength: 500
5834
5851
  example: 12-3456789
5835
5852
  businessRegistrationTypeEnum:
5836
5853
  type: string
5837
- description: The type of business registration number.
5854
+ description: |
5855
+ The type of business registration number.
5838
5856
  enum:
5839
5857
  - EIN
5840
5858
  - CBN
@@ -5854,12 +5872,22 @@ components:
5854
5872
  - CNPJ
5855
5873
  - UID
5856
5874
  - OTHER
5875
+ example: EIN
5857
5876
  nullable: true
5858
5877
  businessRegistrationIssuingCountryEnum:
5859
5878
  type: string
5860
5879
  description: >-
5861
5880
  The country issuing the business registration in ISO-3166-1 alpha-3
5862
- format.
5881
+ format. Alpha-2 country codes are acceptable, but the application will
5882
+ convert them to alpha-3 when received, so alpha-3 is encouraged.
5883
+
5884
+
5885
+ **Note:** If this field is omitted but `businessRegistrationType` is
5886
+ provided, the application will attempt to infer the country based on the
5887
+ registration type. However, if the application cannot confidently infer
5888
+ the country, the submission may be rejected. To ensure the highest
5889
+ likelihood of acceptance, it is recommended to provide both
5890
+ `businessRegistrationType` and `businessRegistrationIssuingCountry`.
5863
5891
 
5864
5892
 
5865
5893
  | Registration Type | Supported Countries |
@@ -5915,18 +5943,23 @@ components:
5915
5943
  - DEU
5916
5944
  - ESP
5917
5945
  - CHE
5946
+ - CYP
5947
+ - IND
5948
+ - CHN
5949
+ - BGR
5950
+ example: USA
5918
5951
  nullable: false
5919
5952
  businessEntityTypeEnum:
5920
5953
  type: string
5921
- description: >-
5922
- The type of registered business. If no option is applicable, please
5923
- provide "SOLE_PROPRIETOR" as a value.
5954
+ description: |
5955
+ The type of registered business.
5924
5956
  enum:
5925
5957
  - SOLE_PROPRIETOR
5926
5958
  - PRIVATE_PROFIT
5927
5959
  - PUBLIC_PROFIT
5928
5960
  - NON_PROFIT
5929
5961
  - GOVERNMENT
5962
+ example: PRIVATE_PROFIT
5930
5963
  nullable: false
5931
5964
  helpMessageResponse:
5932
5965
  type: string
@@ -6576,10 +6609,14 @@ components:
6576
6609
  $ref: '#/components/schemas/businessDba'
6577
6610
  businessRegistrationNumber:
6578
6611
  $ref: '#/components/schemas/businessRegistrationNumber'
6612
+ description: Government-issued business identifying number.
6579
6613
  businessRegistrationType:
6580
6614
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6581
6615
  businessRegistrationIssuingCountry:
6582
6616
  $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6617
+ description: >-
6618
+ The country issuing the business registration in ISO-3166-1 alpha-3
6619
+ format.
6583
6620
  businessEntityType:
6584
6621
  $ref: '#/components/schemas/businessEntityTypeEnum'
6585
6622
  tfvStatusEnum:
@@ -8117,7 +8154,7 @@ components:
8117
8154
  latestMessageDeliveryStatusDate: '2025-05-18'
8118
8155
  - phoneNumber: '+10072904498'
8119
8156
  countryCodeA3: USA
8120
- lineType: FIXED
8157
+ lineType: MOBILE
8121
8158
  voiceProvider: VERIZON
8122
8159
  latestMessageDeliveryStatus: DEACTIVATED
8123
8160
  initialMessageDeliveryStatusDate: '2025-09-05'
@@ -8131,6 +8168,14 @@ components:
8131
8168
  deactivationDate: '2025-09-29 01:23:00'
8132
8169
  deactivationEvent: DEACTIVATED
8133
8170
  latestMessageDeliveryStatus: UNKNOWN
8171
+ - phoneNumber: '+10072904500'
8172
+ lineType: FIXED
8173
+ countryCodeA3: USA
8174
+ voiceProvider: VERIZON
8175
+ deactivationReporter: Verizon Wireless
8176
+ deactivationDate: '2025-09-29 01:23:00'
8177
+ deactivationEvent: DEACTIVATED
8178
+ latestMessageDeliveryStatus: NOT_ENABLED
8134
8179
  errors: []
8135
8180
  badRequestExample:
8136
8181
  summary: Example Bad Request Error
@@ -796,13 +796,13 @@
796
796
  null,
797
797
  null,
798
798
  1,
799
- 444,
799
+ 462,
800
800
  null,
801
801
  45,
802
802
  null,
803
803
  8,
804
804
  null,
805
- 267,
805
+ 277,
806
806
  null,
807
807
  21,
808
808
  null,
@@ -829,8 +829,8 @@
829
829
  null,
830
830
  null,
831
831
  null,
832
- 85,
833
- 85,
832
+ 93,
833
+ 93,
834
834
  null,
835
835
  null,
836
836
  null,
@@ -11667,6 +11667,6 @@
11667
11667
  ]
11668
11668
  }
11669
11669
  },
11670
- "timestamp": 1771970067
11670
+ "timestamp": 1774382238
11671
11671
  }
11672
11672
  }
data/coverage/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  <img src="./assets/0.13.2/loading.gif" alt="loading"/>
14
14
  </div>
15
15
  <div id="wrapper" class="hide">
16
- <div class="timestamp">Generated <abbr class="timeago" title="2026-02-24T21:54:27+00:00">2026-02-24T21:54:27+00:00</abbr></div>
16
+ <div class="timestamp">Generated <abbr class="timeago" title="2026-03-24T19:57:18+00:00">2026-03-24T19:57:18+00:00</abbr></div>
17
17
  <ul class="group_tabs"></ul>
18
18
 
19
19
  <div id="content">
@@ -29,7 +29,7 @@
29
29
  covered at
30
30
  <span class="covered_strength">
31
31
  <span class="green">
32
- 3.1
32
+ 3.11
33
33
  </span>
34
34
  </span> hits/line
35
35
  )
@@ -230,7 +230,7 @@
230
230
  <td class="cell--number">35</td>
231
231
  <td class="cell--number">33</td>
232
232
  <td class="cell--number">2</td>
233
- <td class="cell--number">53.20</td>
233
+ <td class="cell--number">54.46</td>
234
234
 
235
235
  </tr>
236
236
 
@@ -1959,7 +1959,7 @@
1959
1959
  covered at
1960
1960
  <span class="covered_strength">
1961
1961
  <span class="green">
1962
- 53.2
1962
+ 54.46
1963
1963
  </span>
1964
1964
  </span> hits/line
1965
1965
  )
@@ -2006,7 +2006,7 @@
2006
2006
  <td class="cell--number">35</td>
2007
2007
  <td class="cell--number">33</td>
2008
2008
  <td class="cell--number">2</td>
2009
- <td class="cell--number">53.20</td>
2009
+ <td class="cell--number">54.46</td>
2010
2010
 
2011
2011
  </tr>
2012
2012
 
@@ -54397,9 +54397,9 @@
54397
54397
  </div>
54398
54398
 
54399
54399
  <div>
54400
- <li class="covered" data-hits="444" data-linenumber="20">
54400
+ <li class="covered" data-hits="462" data-linenumber="20">
54401
54401
 
54402
- <span class="hits">444</span>
54402
+ <span class="hits">462</span>
54403
54403
 
54404
54404
 
54405
54405
 
@@ -54463,9 +54463,9 @@
54463
54463
  </div>
54464
54464
 
54465
54465
  <div>
54466
- <li class="covered" data-hits="267" data-linenumber="26">
54466
+ <li class="covered" data-hits="277" data-linenumber="26">
54467
54467
 
54468
- <span class="hits">267</span>
54468
+ <span class="hits">277</span>
54469
54469
 
54470
54470
 
54471
54471
 
@@ -54757,9 +54757,9 @@
54757
54757
  </div>
54758
54758
 
54759
54759
  <div>
54760
- <li class="covered" data-hits="85" data-linenumber="53">
54760
+ <li class="covered" data-hits="93" data-linenumber="53">
54761
54761
 
54762
- <span class="hits">85</span>
54762
+ <span class="hits">93</span>
54763
54763
 
54764
54764
 
54765
54765
 
@@ -54769,9 +54769,9 @@
54769
54769
  </div>
54770
54770
 
54771
54771
  <div>
54772
- <li class="covered" data-hits="85" data-linenumber="54">
54772
+ <li class="covered" data-hits="93" data-linenumber="54">
54773
54773
 
54774
- <span class="hits">85</span>
54774
+ <span class="hits">93</span>
54775
54775
 
54776
54776
 
54777
54777
 
@@ -67348,7 +67348,7 @@
67348
67348
 
67349
67349
 
67350
67350
 
67351
- <code class="ruby"> # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.</code>
67351
+ <code class="ruby"> # The ID of the Application your from number or senderId is associated with in the Bandwidth App.</code>
67352
67352
  </li>
67353
67353
  </div>
67354
67354
 
@@ -76914,7 +76914,7 @@
76914
76914
 
76915
76915
 
76916
76916
 
76917
- <code class="ruby"> VERSION = &#39;17.3.0&#39;</code>
76917
+ <code class="ruby"> VERSION = &#39;17.3.1&#39;</code>
76918
76918
  </li>
76919
76919
  </div>
76920
76920
 
data/docs/Callback.md CHANGED
@@ -48,6 +48,7 @@ Bandwidth::Callback.openapi_discriminator_mapping
48
48
  # :'message-failed' => :'StatusCallback',
49
49
  # :'message-read' => :'StatusCallback',
50
50
  # :'message-received' => :'InboundCallback',
51
+ # :'message-sending' => :'StatusCallback',
51
52
  # :'message-sent' => :'StatusCallback',
52
53
  # :'request-location-response' => :'InboundCallback',
53
54
  # :'suggestion-response' => :'InboundCallback'
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A unique identifier of the message. | |
8
8
  | **owner** | **String** | The Bandwidth phone number or alphanumeric identifier associated with the message. | |
9
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
10
10
  | **time** | **Time** | | |
11
11
  | **segment_count** | **Integer** | The number of segments the user&#39;s message is broken into before sending over carrier networks. | |
12
12
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
data/docs/Media.md CHANGED
@@ -15,8 +15,8 @@ require 'bandwidth-sdk'
15
15
 
16
16
  instance = Bandwidth::Media.new(
17
17
  content: null,
18
- content_length: null,
19
- media_name: null
18
+ content_length: 1024,
19
+ media_name: image.png
20
20
  )
21
21
  ```
22
22
 
data/docs/Message.md CHANGED
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | The id of the message. | [optional] |
8
8
  | **owner** | **String** | The Bandwidth phone number associated with the message. | [optional] |
9
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [optional] |
9
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [optional] |
10
10
  | **time** | **Time** | The datetime stamp of the message in ISO 8601 | [optional] |
11
11
  | **segment_count** | **Integer** | The number of segments the user&#39;s message is broken into before sending over carrier networks. | [optional] |
12
12
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
7
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
8
8
  | **to** | **Array&lt;String&gt;** | The phone number(s) the message should be sent to in E164 format. | |
9
9
  | **from** | **String** | Either an alphanumeric sender ID or the sender&#39;s Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &amp;. Alphanumeric Sender IDs must contain at least one letter. | |
10
10
  | **text** | **String** | The contents of the text message. Must be 2048 characters or less. | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
 
11
11
  ## Example
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
16
16
  instance = Bandwidth::RbmActionBase.new(
17
17
  type: null,
18
18
  text: Hello world,
19
- postback_data: [B@177302d6
19
+ postback_data: [B@764a3867
20
20
  )
21
21
  ```
22
22
 
@@ -14,7 +14,7 @@ require 'bandwidth-sdk'
14
14
 
15
15
  instance = Bandwidth::RbmSuggestionResponse.new(
16
16
  text: Yes, I would like to proceed,
17
- postback_data: [B@177302d6
17
+ postback_data: [B@764a3867
18
18
  )
19
19
  ```
20
20
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A unique identifier of the message. | |
8
8
  | **owner** | **String** | The Bandwidth phone number or alphanumeric identifier associated with the message. | |
9
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
10
10
  | **time** | **Time** | | |
11
11
  | **segment_count** | **Integer** | The number of segments the user&#39;s message is broken into before sending over carrier networks. | |
12
12
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
@@ -16,7 +16,7 @@
16
16
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
17
17
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
18
18
  | **business_dba** | **String** | The company &#39;Doing Business As&#39;. | [optional] |
19
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide &#x60;businessRegistrationType&#x60; and &#x60;businessRegistrationIssuingCountry&#x60;. Submissions missing these fields have a high likelihood of rejection. | [optional] |
20
20
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
21
21
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
22
22
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
@@ -17,7 +17,7 @@
17
17
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
18
18
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
19
19
  | **business_dba** | **String** | The company &#39;Doing Business As&#39;. | [optional] |
20
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
20
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide &#x60;businessRegistrationType&#x60; and &#x60;businessRegistrationIssuingCountry&#x60;. Submissions missing these fields have a high likelihood of rejection. | [optional] |
21
21
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
22
22
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
23
23
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | |
@@ -16,7 +16,7 @@
16
16
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
17
17
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
18
18
  | **business_dba** | **String** | The company &#39;Doing Business As&#39;. | [optional] |
19
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide &#x60;businessRegistrationType&#x60; and &#x60;businessRegistrationIssuingCountry&#x60;. Submissions missing these fields have a high likelihood of rejection. | [optional] |
20
20
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
21
21
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
22
22
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
@@ -28,9 +28,13 @@ module Bandwidth
28
28
  DEU = 'DEU'.freeze
29
29
  ESP = 'ESP'.freeze
30
30
  CHE = 'CHE'.freeze
31
+ CYP = 'CYP'.freeze
32
+ IND = 'IND'.freeze
33
+ CHN = 'CHN'.freeze
34
+ BGR = 'BGR'.freeze
31
35
 
32
36
  def self.all_vars
33
- @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE].freeze
37
+ @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE, CYP, IND, CHN, BGR].freeze
34
38
  end
35
39
 
36
40
  # Builds the enum from string
@@ -37,6 +37,7 @@ module Bandwidth
37
37
  :'message-failed' => :'StatusCallback',
38
38
  :'message-read' => :'StatusCallback',
39
39
  :'message-received' => :'InboundCallback',
40
+ :'message-sending' => :'StatusCallback',
40
41
  :'message-sent' => :'StatusCallback',
41
42
  :'request-location-response' => :'InboundCallback',
42
43
  :'suggestion-response' => :'InboundCallback'
@@ -21,7 +21,7 @@ module Bandwidth
21
21
  # The Bandwidth phone number or alphanumeric identifier associated with the message.
22
22
  attr_accessor :owner
23
23
 
24
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
24
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
25
25
  attr_accessor :application_id
26
26
 
27
27
  attr_accessor :time
@@ -18,9 +18,10 @@ module Bandwidth
18
18
  ACTIVE = 'ACTIVE'.freeze
19
19
  DEACTIVATED = 'DEACTIVATED'.freeze
20
20
  UNKNOWN = 'UNKNOWN'.freeze
21
+ NOT_ENABLED = 'NOT_ENABLED'.freeze
21
22
 
22
23
  def self.all_vars
23
- @all_vars ||= [ACTIVE, DEACTIVATED, UNKNOWN].freeze
24
+ @all_vars ||= [ACTIVE, DEACTIVATED, UNKNOWN, NOT_ENABLED].freeze
24
25
  end
25
26
 
26
27
  # Builds the enum from string
@@ -21,7 +21,7 @@ module Bandwidth
21
21
  # The Bandwidth phone number associated with the message.
22
22
  attr_accessor :owner
23
23
 
24
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
24
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
25
25
  attr_accessor :application_id
26
26
 
27
27
  # The datetime stamp of the message in ISO 8601
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessageRequest < ApiModelBase
18
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
18
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
19
19
  attr_accessor :application_id
20
20
 
21
21
  # The phone number(s) the message should be sent to in E164 format.
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -22,7 +22,7 @@ module Bandwidth
22
22
  # The Bandwidth phone number or alphanumeric identifier associated with the message.
23
23
  attr_accessor :owner
24
24
 
25
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
25
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
26
26
  attr_accessor :application_id
27
27
 
28
28
  attr_accessor :time
@@ -48,7 +48,7 @@ module Bandwidth
48
48
  # The company 'Doing Business As'.
49
49
  attr_accessor :business_dba
50
50
 
51
- # Government-issued business identifying number.
51
+ # Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
52
52
  attr_accessor :business_registration_number
53
53
 
54
54
  attr_accessor :business_registration_type
@@ -277,6 +277,18 @@ module Bandwidth
277
277
  invalid_properties.push('invalid value for "isv_reseller", the character length must be greater than or equal to 0.')
278
278
  end
279
279
 
280
+ if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
281
+ invalid_properties.push('invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.')
282
+ end
283
+
284
+ if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
285
+ invalid_properties.push('invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.')
286
+ end
287
+
288
+ if !@business_dba.nil? && @business_dba.to_s.length > 500
289
+ invalid_properties.push('invalid value for "business_dba", the character length must be smaller than or equal to 500.')
290
+ end
291
+
280
292
  if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
281
293
  invalid_properties.push('invalid value for "business_registration_number", the character length must be smaller than or equal to 500.')
282
294
  end
@@ -300,6 +312,9 @@ module Bandwidth
300
312
  return false if !@additional_information.nil? && @additional_information.to_s.length < 0
301
313
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length > 500
302
314
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length < 0
315
+ return false if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
316
+ return false if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
317
+ return false if !@business_dba.nil? && @business_dba.to_s.length > 500
303
318
  return false if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
304
319
  true
305
320
  end
@@ -404,6 +419,48 @@ module Bandwidth
404
419
  @isv_reseller = isv_reseller
405
420
  end
406
421
 
422
+ # Custom attribute writer method with validation
423
+ # @param [Object] privacy_policy_url Value to be assigned
424
+ def privacy_policy_url=(privacy_policy_url)
425
+ if privacy_policy_url.nil?
426
+ fail ArgumentError, 'privacy_policy_url cannot be nil'
427
+ end
428
+
429
+ if privacy_policy_url.to_s.length > 500
430
+ fail ArgumentError, 'invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.'
431
+ end
432
+
433
+ @privacy_policy_url = privacy_policy_url
434
+ end
435
+
436
+ # Custom attribute writer method with validation
437
+ # @param [Object] terms_and_conditions_url Value to be assigned
438
+ def terms_and_conditions_url=(terms_and_conditions_url)
439
+ if terms_and_conditions_url.nil?
440
+ fail ArgumentError, 'terms_and_conditions_url cannot be nil'
441
+ end
442
+
443
+ if terms_and_conditions_url.to_s.length > 500
444
+ fail ArgumentError, 'invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.'
445
+ end
446
+
447
+ @terms_and_conditions_url = terms_and_conditions_url
448
+ end
449
+
450
+ # Custom attribute writer method with validation
451
+ # @param [Object] business_dba Value to be assigned
452
+ def business_dba=(business_dba)
453
+ if business_dba.nil?
454
+ fail ArgumentError, 'business_dba cannot be nil'
455
+ end
456
+
457
+ if business_dba.to_s.length > 500
458
+ fail ArgumentError, 'invalid value for "business_dba", the character length must be smaller than or equal to 500.'
459
+ end
460
+
461
+ @business_dba = business_dba
462
+ end
463
+
407
464
  # Custom attribute writer method with validation
408
465
  # @param [Object] business_registration_number Value to be assigned
409
466
  def business_registration_number=(business_registration_number)
@@ -50,7 +50,7 @@ module Bandwidth
50
50
  # The company 'Doing Business As'.
51
51
  attr_accessor :business_dba
52
52
 
53
- # Government-issued business identifying number.
53
+ # Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
54
54
  attr_accessor :business_registration_number
55
55
 
56
56
  attr_accessor :business_registration_type
@@ -374,6 +374,18 @@ module Bandwidth
374
374
  invalid_properties.push('invalid value for "isv_reseller", the character length must be greater than or equal to 0.')
375
375
  end
376
376
 
377
+ if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
378
+ invalid_properties.push('invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.')
379
+ end
380
+
381
+ if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
382
+ invalid_properties.push('invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.')
383
+ end
384
+
385
+ if !@business_dba.nil? && @business_dba.to_s.length > 500
386
+ invalid_properties.push('invalid value for "business_dba", the character length must be smaller than or equal to 500.')
387
+ end
388
+
377
389
  if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
378
390
  invalid_properties.push('invalid value for "business_registration_number", the character length must be smaller than or equal to 500.')
379
391
  end
@@ -423,6 +435,9 @@ module Bandwidth
423
435
  return false if !@additional_information.nil? && @additional_information.to_s.length < 0
424
436
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length > 500
425
437
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length < 0
438
+ return false if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
439
+ return false if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
440
+ return false if !@business_dba.nil? && @business_dba.to_s.length > 500
426
441
  return false if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
427
442
  return false if @business_entity_type.nil?
428
443
  return false if !@help_message_response.nil? && @help_message_response.to_s.length > 500
@@ -579,6 +594,48 @@ module Bandwidth
579
594
  @isv_reseller = isv_reseller
580
595
  end
581
596
 
597
+ # Custom attribute writer method with validation
598
+ # @param [Object] privacy_policy_url Value to be assigned
599
+ def privacy_policy_url=(privacy_policy_url)
600
+ if privacy_policy_url.nil?
601
+ fail ArgumentError, 'privacy_policy_url cannot be nil'
602
+ end
603
+
604
+ if privacy_policy_url.to_s.length > 500
605
+ fail ArgumentError, 'invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.'
606
+ end
607
+
608
+ @privacy_policy_url = privacy_policy_url
609
+ end
610
+
611
+ # Custom attribute writer method with validation
612
+ # @param [Object] terms_and_conditions_url Value to be assigned
613
+ def terms_and_conditions_url=(terms_and_conditions_url)
614
+ if terms_and_conditions_url.nil?
615
+ fail ArgumentError, 'terms_and_conditions_url cannot be nil'
616
+ end
617
+
618
+ if terms_and_conditions_url.to_s.length > 500
619
+ fail ArgumentError, 'invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.'
620
+ end
621
+
622
+ @terms_and_conditions_url = terms_and_conditions_url
623
+ end
624
+
625
+ # Custom attribute writer method with validation
626
+ # @param [Object] business_dba Value to be assigned
627
+ def business_dba=(business_dba)
628
+ if business_dba.nil?
629
+ fail ArgumentError, 'business_dba cannot be nil'
630
+ end
631
+
632
+ if business_dba.to_s.length > 500
633
+ fail ArgumentError, 'invalid value for "business_dba", the character length must be smaller than or equal to 500.'
634
+ end
635
+
636
+ @business_dba = business_dba
637
+ end
638
+
582
639
  # Custom attribute writer method with validation
583
640
  # @param [Object] business_registration_number Value to be assigned
584
641
  def business_registration_number=(business_registration_number)
@@ -48,7 +48,7 @@ module Bandwidth
48
48
  # The company 'Doing Business As'.
49
49
  attr_accessor :business_dba
50
50
 
51
- # Government-issued business identifying number.
51
+ # Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
52
52
  attr_accessor :business_registration_number
53
53
 
54
54
  attr_accessor :business_registration_type
@@ -348,6 +348,18 @@ module Bandwidth
348
348
  invalid_properties.push('invalid value for "isv_reseller", the character length must be greater than or equal to 0.')
349
349
  end
350
350
 
351
+ if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
352
+ invalid_properties.push('invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.')
353
+ end
354
+
355
+ if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
356
+ invalid_properties.push('invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.')
357
+ end
358
+
359
+ if !@business_dba.nil? && @business_dba.to_s.length > 500
360
+ invalid_properties.push('invalid value for "business_dba", the character length must be smaller than or equal to 500.')
361
+ end
362
+
351
363
  if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
352
364
  invalid_properties.push('invalid value for "business_registration_number", the character length must be smaller than or equal to 500.')
353
365
  end
@@ -390,6 +402,9 @@ module Bandwidth
390
402
  return false if !@additional_information.nil? && @additional_information.to_s.length < 0
391
403
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length > 500
392
404
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length < 0
405
+ return false if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
406
+ return false if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
407
+ return false if !@business_dba.nil? && @business_dba.to_s.length > 500
393
408
  return false if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
394
409
  return false if !@help_message_response.nil? && @help_message_response.to_s.length > 500
395
410
  return false if !@cv_token.nil? && @cv_token.to_s.length > 500
@@ -527,6 +542,48 @@ module Bandwidth
527
542
  @isv_reseller = isv_reseller
528
543
  end
529
544
 
545
+ # Custom attribute writer method with validation
546
+ # @param [Object] privacy_policy_url Value to be assigned
547
+ def privacy_policy_url=(privacy_policy_url)
548
+ if privacy_policy_url.nil?
549
+ fail ArgumentError, 'privacy_policy_url cannot be nil'
550
+ end
551
+
552
+ if privacy_policy_url.to_s.length > 500
553
+ fail ArgumentError, 'invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.'
554
+ end
555
+
556
+ @privacy_policy_url = privacy_policy_url
557
+ end
558
+
559
+ # Custom attribute writer method with validation
560
+ # @param [Object] terms_and_conditions_url Value to be assigned
561
+ def terms_and_conditions_url=(terms_and_conditions_url)
562
+ if terms_and_conditions_url.nil?
563
+ fail ArgumentError, 'terms_and_conditions_url cannot be nil'
564
+ end
565
+
566
+ if terms_and_conditions_url.to_s.length > 500
567
+ fail ArgumentError, 'invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.'
568
+ end
569
+
570
+ @terms_and_conditions_url = terms_and_conditions_url
571
+ end
572
+
573
+ # Custom attribute writer method with validation
574
+ # @param [Object] business_dba Value to be assigned
575
+ def business_dba=(business_dba)
576
+ if business_dba.nil?
577
+ fail ArgumentError, 'business_dba cannot be nil'
578
+ end
579
+
580
+ if business_dba.to_s.length > 500
581
+ fail ArgumentError, 'invalid value for "business_dba", the character length must be smaller than or equal to 500.'
582
+ end
583
+
584
+ @business_dba = business_dba
585
+ end
586
+
530
587
  # Custom attribute writer method with validation
531
588
  # @param [Object] business_registration_number Value to be assigned
532
589
  def business_registration_number=(business_registration_number)
@@ -11,5 +11,5 @@ Generator version: 7.17.0
11
11
  =end
12
12
 
13
13
  module Bandwidth
14
- VERSION = '17.3.0'
14
+ VERSION = '17.3.1'
15
15
  end
@@ -53,7 +53,6 @@ describe 'PhoneNumberLookupApi' do
53
53
  expect(get_data.data.results[0]).to be_instance_of(Bandwidth::LookupResult)
54
54
  expect(get_data.data.results[0].phone_number).to be_instance_of(String)
55
55
  expect(get_data.data.results[0].line_type).to be_one_of(Bandwidth::LineTypeEnum.all_vars)
56
- expect(get_data.data.results[0].messaging_provider).to be_instance_of(String)
57
56
  expect(get_data.data.results[0].voice_provider).to be_instance_of(String)
58
57
  expect(get_data.data.results[0].country_code_a3).to be_instance_of(String)
59
58
  end
@@ -80,7 +79,6 @@ describe 'PhoneNumberLookupApi' do
80
79
  expect(data.data.results[0]).to be_instance_of(Bandwidth::LookupResult)
81
80
  expect(data.data.results[0].phone_number).to be_instance_of(String)
82
81
  expect(data.data.results[0].line_type).to be_one_of(Bandwidth::LineTypeEnum.all_vars)
83
- expect(data.data.results[0].messaging_provider).to be_instance_of(String)
84
82
  expect(data.data.results[0].voice_provider).to be_instance_of(String)
85
83
  expect(data.data.results[0].country_code_a3).to be_instance_of(String)
86
84
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandwidth-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.3.0
4
+ version: 17.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bandwidth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-24 00:00:00.000000000 Z
11
+ date: 2026-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -656,67 +656,67 @@ summary: Bandwidth Ruby SDK
656
656
  test_files:
657
657
  - spec/call_utils.rb
658
658
  - spec/fixtures/ruby_cat.jpeg
659
- - spec/smoke/statistics_api_spec.rb
659
+ - spec/smoke/conferences_api_spec.rb
660
+ - spec/smoke/mfa_api_spec.rb
661
+ - spec/smoke/recordings_api_spec.rb
660
662
  - spec/smoke/toll_free_verification_api_spec.rb
661
663
  - spec/smoke/media_api_spec.rb
664
+ - spec/smoke/statistics_api_spec.rb
665
+ - spec/smoke/multi_channel_api_spec.rb
662
666
  - spec/smoke/transcriptions_api_spec.rb
663
- - spec/smoke/mfa_api_spec.rb
667
+ - spec/smoke/calls_api_spec.rb
664
668
  - spec/smoke/phone_number_lookup_api_spec.rb
665
669
  - spec/smoke/messages_api_spec.rb
666
- - spec/smoke/multi_channel_api_spec.rb
667
- - spec/smoke/conferences_api_spec.rb
668
- - spec/smoke/recordings_api_spec.rb
669
- - spec/smoke/calls_api_spec.rb
670
670
  - spec/spec_helper.rb
671
- - spec/unit/api/statistics_api_spec.rb
671
+ - spec/unit/api/conferences_api_spec.rb
672
+ - spec/unit/api/mfa_api_spec.rb
673
+ - spec/unit/api/recordings_api_spec.rb
672
674
  - spec/unit/api/toll_free_verification_api_spec.rb
673
675
  - spec/unit/api/media_api_spec.rb
676
+ - spec/unit/api/statistics_api_spec.rb
677
+ - spec/unit/api/multi_channel_api_spec.rb
674
678
  - spec/unit/api/transcriptions_api_spec.rb
675
- - spec/unit/api/mfa_api_spec.rb
679
+ - spec/unit/api/calls_api_spec.rb
676
680
  - spec/unit/api/phone_number_lookup_api_spec.rb
677
681
  - spec/unit/api/messages_api_spec.rb
678
- - spec/unit/api/multi_channel_api_spec.rb
679
- - spec/unit/api/conferences_api_spec.rb
680
- - spec/unit/api/recordings_api_spec.rb
681
- - spec/unit/api/calls_api_spec.rb
682
+ - spec/unit/client/api_client_spec.rb
683
+ - spec/unit/client/configuration_spec.rb
684
+ - spec/unit/client/api_error_spec.rb
685
+ - spec/unit/models/call_state_spec.rb
686
+ - spec/unit/models/verify_code_response_spec.rb
687
+ - spec/unit/models/verify_code_request_spec.rb
688
+ - spec/unit/models/call_state_enum_spec.rb
682
689
  - spec/unit/models/message_spec.rb
683
- - spec/unit/models/bxml/response_spec.rb
690
+ - spec/unit/models/tfv_error_spec.rb
684
691
  - spec/unit/models/bxml/verb_spec.rb
685
- - spec/unit/models/bxml/nestable_verb_spec.rb
686
692
  - spec/unit/models/bxml/verbs/stream_param_spec.rb
687
- - spec/unit/models/bxml/verbs/start_gather_spec.rb
688
- - spec/unit/models/bxml/verbs/conference_spec.rb
689
693
  - spec/unit/models/bxml/verbs/stop_gather_spec.rb
690
- - spec/unit/models/bxml/verbs/start_recording_spec.rb
691
- - spec/unit/models/bxml/verbs/start_stream_spec.rb
692
- - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
693
- - spec/unit/models/bxml/verbs/custom_param_spec.rb
694
- - spec/unit/models/bxml/verbs/transfer_spec.rb
695
- - spec/unit/models/bxml/verbs/gather_spec.rb
696
- - spec/unit/models/bxml/verbs/hangup_spec.rb
697
- - spec/unit/models/bxml/verbs/resume_recording_spec.rb
698
- - spec/unit/models/bxml/verbs/sip_uri_spec.rb
699
- - spec/unit/models/bxml/verbs/start_transcription_spec.rb
700
- - spec/unit/models/bxml/verbs/play_audio_spec.rb
701
- - spec/unit/models/bxml/verbs/send_dtmf_spec.rb
694
+ - spec/unit/models/bxml/verbs/phone_number_spec.rb
702
695
  - spec/unit/models/bxml/verbs/forward_spec.rb
703
- - spec/unit/models/bxml/verbs/stop_recording_spec.rb
704
- - spec/unit/models/bxml/verbs/ring_spec.rb
696
+ - spec/unit/models/bxml/verbs/record_spec.rb
697
+ - spec/unit/models/bxml/verbs/gather_spec.rb
705
698
  - spec/unit/models/bxml/verbs/stop_stream_spec.rb
706
- - spec/unit/models/bxml/verbs/bridge_spec.rb
707
- - spec/unit/models/bxml/verbs/phone_number_spec.rb
699
+ - spec/unit/models/bxml/verbs/ring_spec.rb
700
+ - spec/unit/models/bxml/verbs/tag_spec.rb
708
701
  - spec/unit/models/bxml/verbs/pause_spec.rb
702
+ - spec/unit/models/bxml/verbs/sip_uri_spec.rb
703
+ - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
704
+ - spec/unit/models/bxml/verbs/start_stream_spec.rb
705
+ - spec/unit/models/bxml/verbs/hangup_spec.rb
706
+ - spec/unit/models/bxml/verbs/start_recording_spec.rb
707
+ - spec/unit/models/bxml/verbs/start_gather_spec.rb
708
+ - spec/unit/models/bxml/verbs/bridge_spec.rb
709
+ - spec/unit/models/bxml/verbs/stop_recording_spec.rb
709
710
  - spec/unit/models/bxml/verbs/pause_recording_spec.rb
710
- - spec/unit/models/bxml/verbs/record_spec.rb
711
- - spec/unit/models/bxml/verbs/tag_spec.rb
712
- - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
713
711
  - spec/unit/models/bxml/verbs/redirect_spec.rb
712
+ - spec/unit/models/bxml/verbs/play_audio_spec.rb
713
+ - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
714
+ - spec/unit/models/bxml/verbs/resume_recording_spec.rb
715
+ - spec/unit/models/bxml/verbs/send_dtmf_spec.rb
716
+ - spec/unit/models/bxml/verbs/transfer_spec.rb
717
+ - spec/unit/models/bxml/verbs/start_transcription_spec.rb
718
+ - spec/unit/models/bxml/verbs/custom_param_spec.rb
719
+ - spec/unit/models/bxml/verbs/conference_spec.rb
720
+ - spec/unit/models/bxml/response_spec.rb
721
+ - spec/unit/models/bxml/nestable_verb_spec.rb
714
722
  - spec/unit/models/bxml/bxml_spec.rb
715
- - spec/unit/models/verify_code_request_spec.rb
716
- - spec/unit/models/verify_code_response_spec.rb
717
- - spec/unit/models/call_state_spec.rb
718
- - spec/unit/models/tfv_error_spec.rb
719
- - spec/unit/models/call_state_enum_spec.rb
720
- - spec/unit/client/configuration_spec.rb
721
- - spec/unit/client/api_error_spec.rb
722
- - spec/unit/client/api_client_spec.rb