bandwidth-sdk 17.3.0 → 17.3.2

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/bandwidth.yml +175 -31
  4. data/coverage/.resultset.json +5 -13
  5. data/coverage/index.html +69 -165
  6. data/docs/Callback.md +1 -0
  7. data/docs/InboundCallbackMessage.md +1 -1
  8. data/docs/LookupErrorSchema.md +3 -3
  9. data/docs/LookupResult.md +4 -2
  10. data/docs/Media.md +2 -2
  11. data/docs/Message.md +1 -1
  12. data/docs/MessageRequest.md +1 -1
  13. data/docs/MultiChannelChannelListMMSObject.md +1 -1
  14. data/docs/MultiChannelChannelListMMSResponseObject.md +1 -1
  15. data/docs/MultiChannelChannelListObjectBase.md +1 -1
  16. data/docs/MultiChannelChannelListRBMObject.md +1 -1
  17. data/docs/MultiChannelChannelListRBMResponseObject.md +1 -1
  18. data/docs/MultiChannelChannelListRequestObject.md +1 -1
  19. data/docs/MultiChannelChannelListResponseObject.md +1 -1
  20. data/docs/MultiChannelChannelListSMSObject.md +1 -1
  21. data/docs/MultiChannelChannelListSMSResponseObject.md +1 -1
  22. data/docs/RbmActionBase.md +1 -1
  23. data/docs/RbmSuggestionResponse.md +1 -1
  24. data/docs/StatusCallbackMessage.md +1 -1
  25. data/docs/TfvSubmissionInfo.md +1 -1
  26. data/docs/VerificationRequest.md +1 -1
  27. data/docs/VerificationUpdateRequest.md +1 -1
  28. data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +5 -1
  29. data/lib/bandwidth-sdk/models/callback.rb +1 -0
  30. data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
  31. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +2 -1
  32. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +51 -0
  33. data/lib/bandwidth-sdk/models/lookup_result.rb +15 -5
  34. data/lib/bandwidth-sdk/models/message.rb +1 -1
  35. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  36. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
  37. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
  38. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
  39. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
  40. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
  41. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
  42. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
  43. data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
  44. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +58 -1
  45. data/lib/bandwidth-sdk/models/verification_request.rb +58 -1
  46. data/lib/bandwidth-sdk/models/verification_update_request.rb +58 -1
  47. data/lib/bandwidth-sdk/version.rb +1 -1
  48. data/spec/smoke/phone_number_lookup_api_spec.rb +0 -2
  49. data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -8
  50. metadata +45 -45
@@ -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.2'
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
@@ -52,10 +52,6 @@ describe 'PhoneNumberLookupApi' do
52
52
 
53
53
  expect(status_code).to equal_to(200)
54
54
  expect(data).to be_instance_of(Bandwidth::CreateSyncLookupResponse)
55
- expect(data.links[0]).to be_instance_of(Bandwidth::LinkSchema)
56
- expect(data.links[0].rel).to be_instance_of(String)
57
- expect(data.links[0].href).to be_instance_of(String)
58
- expect(data.links[0].method).to be_instance_of(String)
59
55
  expect(data.data.request_id).to be_instance_of(String)
60
56
  expect(data.data.status).to eq(Bandwidth::CompletedLookupStatusEnum::COMPLETE)
61
57
  expect(data.data.results).to be_instance_of(Array)
@@ -79,10 +75,6 @@ describe 'PhoneNumberLookupApi' do
79
75
 
80
76
  expect(status_code).to equal_to(200)
81
77
  expect(data).to be_instance_of(Bandwidth::GetAsyncBulkLookupResponse)
82
- expect(data.links[0]).to be_instance_of(Bandwidth::LinkSchema)
83
- expect(data.links[0].rel).to be_instance_of(String)
84
- expect(data.links[0].href).to be_instance_of(String)
85
- expect(data.links[0].method).to be_instance_of(String)
86
78
  expect(data.data.request_id).to be_instance_of(String)
87
79
  expect(data.data.status).to eq(Bandwidth::InProgressLookupStatusEnum::COMPLETE)
88
80
  expect(data.data.results).to be_instance_of(Array)
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.2
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-31 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/recordings_api_spec.rb
660
+ - spec/smoke/calls_api_spec.rb
661
+ - spec/smoke/mfa_api_spec.rb
662
+ - spec/smoke/conferences_api_spec.rb
663
+ - spec/smoke/phone_number_lookup_api_spec.rb
659
664
  - spec/smoke/statistics_api_spec.rb
660
665
  - spec/smoke/toll_free_verification_api_spec.rb
661
666
  - spec/smoke/media_api_spec.rb
667
+ - spec/smoke/multi_channel_api_spec.rb
662
668
  - spec/smoke/transcriptions_api_spec.rb
663
- - spec/smoke/mfa_api_spec.rb
664
- - 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
672
- - spec/unit/api/toll_free_verification_api_spec.rb
673
- - spec/unit/api/media_api_spec.rb
674
- - spec/unit/api/transcriptions_api_spec.rb
675
- - spec/unit/api/mfa_api_spec.rb
676
- - spec/unit/api/phone_number_lookup_api_spec.rb
677
- - 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
671
+ - spec/unit/models/call_state_enum_spec.rb
682
672
  - spec/unit/models/message_spec.rb
673
+ - spec/unit/models/verify_code_response_spec.rb
674
+ - spec/unit/models/tfv_error_spec.rb
675
+ - spec/unit/models/call_state_spec.rb
676
+ - spec/unit/models/bxml/bxml_spec.rb
683
677
  - spec/unit/models/bxml/response_spec.rb
684
- - spec/unit/models/bxml/verb_spec.rb
685
678
  - spec/unit/models/bxml/nestable_verb_spec.rb
686
- - 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
- - spec/unit/models/bxml/verbs/stop_gather_spec.rb
679
+ - spec/unit/models/bxml/verb_spec.rb
680
+ - spec/unit/models/bxml/verbs/stop_recording_spec.rb
681
+ - spec/unit/models/bxml/verbs/phone_number_spec.rb
690
682
  - spec/unit/models/bxml/verbs/start_recording_spec.rb
683
+ - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
684
+ - spec/unit/models/bxml/verbs/hangup_spec.rb
685
+ - spec/unit/models/bxml/verbs/forward_spec.rb
686
+ - spec/unit/models/bxml/verbs/pause_recording_spec.rb
691
687
  - spec/unit/models/bxml/verbs/start_stream_spec.rb
692
- - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
688
+ - spec/unit/models/bxml/verbs/ring_spec.rb
689
+ - spec/unit/models/bxml/verbs/start_gather_spec.rb
693
690
  - spec/unit/models/bxml/verbs/custom_param_spec.rb
691
+ - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
692
+ - spec/unit/models/bxml/verbs/record_spec.rb
693
+ - spec/unit/models/bxml/verbs/redirect_spec.rb
694
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
695
+ - spec/unit/models/bxml/verbs/bridge_spec.rb
697
696
  - spec/unit/models/bxml/verbs/resume_recording_spec.rb
697
+ - spec/unit/models/bxml/verbs/gather_spec.rb
698
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
699
+ - spec/unit/models/bxml/verbs/conference_spec.rb
700
+ - spec/unit/models/bxml/verbs/stream_param_spec.rb
701
+ - spec/unit/models/bxml/verbs/pause_spec.rb
701
702
  - spec/unit/models/bxml/verbs/send_dtmf_spec.rb
702
- - 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
703
+ - spec/unit/models/bxml/verbs/play_audio_spec.rb
705
704
  - 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
708
- - spec/unit/models/bxml/verbs/pause_spec.rb
709
- - spec/unit/models/bxml/verbs/pause_recording_spec.rb
710
- - spec/unit/models/bxml/verbs/record_spec.rb
705
+ - spec/unit/models/bxml/verbs/start_transcription_spec.rb
706
+ - spec/unit/models/bxml/verbs/stop_gather_spec.rb
711
707
  - spec/unit/models/bxml/verbs/tag_spec.rb
712
- - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
713
- - spec/unit/models/bxml/verbs/redirect_spec.rb
714
- - spec/unit/models/bxml/bxml_spec.rb
715
708
  - 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
709
+ - spec/unit/client/api_client_spec.rb
720
710
  - spec/unit/client/configuration_spec.rb
721
711
  - spec/unit/client/api_error_spec.rb
722
- - spec/unit/client/api_client_spec.rb
712
+ - spec/unit/api/recordings_api_spec.rb
713
+ - spec/unit/api/calls_api_spec.rb
714
+ - spec/unit/api/mfa_api_spec.rb
715
+ - spec/unit/api/conferences_api_spec.rb
716
+ - spec/unit/api/phone_number_lookup_api_spec.rb
717
+ - spec/unit/api/statistics_api_spec.rb
718
+ - spec/unit/api/toll_free_verification_api_spec.rb
719
+ - spec/unit/api/media_api_spec.rb
720
+ - spec/unit/api/multi_channel_api_spec.rb
721
+ - spec/unit/api/transcriptions_api_spec.rb
722
+ - spec/unit/api/messages_api_spec.rb