bandwidth-sdk 17.2.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +1 -0
  4. data/bandwidth.yml +145 -33
  5. data/coverage/.resultset.json +14 -9
  6. data/coverage/index.html +577 -525
  7. data/docs/BusinessRegistrationIssuingCountryEnum.md +15 -0
  8. data/docs/Callback.md +1 -0
  9. data/docs/InboundCallbackMessage.md +1 -1
  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/TfvStatus.md +1 -1
  26. data/docs/TfvSubmissionInfo.md +3 -1
  27. data/docs/TollFreeVerificationApi.md +1 -1
  28. data/docs/VerificationRequest.md +5 -3
  29. data/docs/VerificationUpdateRequest.md +4 -2
  30. data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +55 -0
  31. data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +17 -1
  32. data/lib/bandwidth-sdk/models/callback.rb +1 -0
  33. data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
  34. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +2 -1
  35. data/lib/bandwidth-sdk/models/message.rb +1 -1
  36. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  37. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
  38. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
  39. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
  40. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
  41. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
  42. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
  43. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
  44. data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
  45. data/lib/bandwidth-sdk/models/tfv_status.rb +1 -1
  46. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +68 -3
  47. data/lib/bandwidth-sdk/models/verification_request.rb +86 -4
  48. data/lib/bandwidth-sdk/models/verification_update_request.rb +69 -4
  49. data/lib/bandwidth-sdk/version.rb +1 -1
  50. data/lib/bandwidth-sdk.rb +1 -0
  51. data/spec/smoke/phone_number_lookup_api_spec.rb +0 -2
  52. data/spec/unit/api/toll_free_verification_api_spec.rb +4 -0
  53. metadata +47 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c5d14b2821c1ff9ebb48adfc098d47c38af240d0a9465c0633bddb8b54601dc
4
- data.tar.gz: e52f699ba29e164cf3f34e8555efa1c4114b65463ecc198b1f1bf12a3bc426aa
3
+ metadata.gz: 1b0bca65e0a4a616dda251dcb01f1057480b68382807d064184fe3b75c37eed5
4
+ data.tar.gz: ff5640dde4290a14575e2e282ebcc8a6840eb6598eef5f995e149ae6f3786850
5
5
  SHA512:
6
- metadata.gz: 3de616049b04f80a2b473bbdcd24158ee9abbb65b4b457b156270b5a6729c3819c9b319a6da2e2e646c00e3f1825e48dc06c6f694e0e1f6225f83d03dce4999f
7
- data.tar.gz: 8661311a1bedff724a5da1b99a1c46c85b6bdcd94866e5d1a44b7fe058df6bc50ff88ec9d949903720a10722c2d5db4defecab25dd599c5b81b59d4582113516
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.2.0)
4
+ bandwidth-sdk (17.3.1)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  marcel
@@ -17,7 +17,7 @@ GEM
17
17
  coderay (1.1.3)
18
18
  diff-lcs (1.6.2)
19
19
  docile (1.4.1)
20
- faraday (2.14.0)
20
+ faraday (2.14.1)
21
21
  faraday-net_http (>= 2.0, < 3.5)
22
22
  json
23
23
  logger
@@ -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)
@@ -38,7 +38,7 @@ GEM
38
38
  ox (2.14.23)
39
39
  bigdecimal (>= 3.0)
40
40
  parallel (1.27.0)
41
- parser (3.3.10.1)
41
+ parser (3.3.10.2)
42
42
  ast (~> 2.4.1)
43
43
  racc
44
44
  prism (1.9.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/README.md CHANGED
@@ -180,6 +180,7 @@ Class | Method | HTTP request | Description
180
180
  - [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
181
181
  - [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
182
182
  - [Bandwidth::BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
183
+ - [Bandwidth::BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
183
184
  - [Bandwidth::BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
184
185
  - [Bandwidth::CallDirectionEnum](docs/CallDirectionEnum.md)
185
186
  - [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)
data/bandwidth.yml CHANGED
@@ -1484,7 +1484,7 @@ paths:
1484
1484
  $ref: '#/components/requestBodies/updateTollFreeVerificationRequestRequest'
1485
1485
  responses:
1486
1486
  '202':
1487
- description: Accepted
1487
+ $ref: '#/components/responses/verifyPutResponse'
1488
1488
  '400':
1489
1489
  $ref: '#/components/responses/tfvPostBadRequestResponse'
1490
1490
  '401':
@@ -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,50 +5823,144 @@ 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: >-
5832
- US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional
5833
- until early 2026. If a value is provided for this field, a value must be
5834
- provided for `businessRegistrationType` and `businessEntityType`.
5835
- Available starting October 1st, 2025.
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.
5836
5849
  nullable: true
5837
5850
  maxLength: 500
5838
5851
  example: 12-3456789
5839
5852
  businessRegistrationTypeEnum:
5840
5853
  type: string
5841
- description: >-
5842
- The type of business registration number. Optional until early 2026;
5843
- required if `businessRegistrationNumber` is provided. Available starting
5844
- October 1st, 2025.
5854
+ description: |
5855
+ The type of business registration number.
5845
5856
  enum:
5846
5857
  - EIN
5847
5858
  - CBN
5859
+ - NEQ
5860
+ - PROVINCIAL_NUMBER
5861
+ - CRN
5862
+ - VAT
5863
+ - ACN
5864
+ - ABN
5865
+ - BRN
5866
+ - SIREN
5867
+ - SIRET
5868
+ - NZBN
5869
+ - UST_IDNR
5870
+ - CIF
5871
+ - NIF
5872
+ - CNPJ
5873
+ - UID
5874
+ - OTHER
5875
+ example: EIN
5848
5876
  nullable: true
5849
- businessEntityTypeEnum:
5877
+ businessRegistrationIssuingCountryEnum:
5850
5878
  type: string
5851
5879
  description: >-
5852
- The type of registered business. If no option is applicable, please
5853
- provide "SOLE_PROPRIETOR" as a value. Optional until early 2026;
5854
- required if `businessRegistrationNumber` is provided. Available starting
5855
- October 1st, 2025.
5880
+ The country issuing the business registration in ISO-3166-1 alpha-3
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`.
5891
+
5892
+
5893
+ | Registration Type | Supported Countries |
5894
+
5895
+ |----------------------|------------------------------------|
5896
+
5897
+ | EIN | USA |
5898
+
5899
+ | CBN | CAN |
5900
+
5901
+ | NEQ | CAN |
5902
+
5903
+ | PROVINCIAL_NUMBER | CAN |
5904
+
5905
+ | CRN | GBR, HKG |
5906
+
5907
+ | VAT | GBR, IRL, BRA, NLD |
5908
+
5909
+ | ACN | AUS |
5910
+
5911
+ | ABN | AUS |
5912
+
5913
+ | BRN | HKG |
5914
+
5915
+ | SIREN | FRA |
5916
+
5917
+ | SIRET | FRA |
5918
+
5919
+ | NZBN | NZL |
5920
+
5921
+ | UST_IDNR | DEU |
5922
+
5923
+ | CIF | ESP |
5924
+
5925
+ | NIF | ESP |
5926
+
5927
+ | CNPJ | BRA |
5928
+
5929
+ | UID | CHE |
5930
+
5931
+ | OTHER | Must Provide Country Code |
5932
+ enum:
5933
+ - USA
5934
+ - CAN
5935
+ - HKG
5936
+ - GBR
5937
+ - IRL
5938
+ - BRA
5939
+ - NLD
5940
+ - AUS
5941
+ - FRA
5942
+ - NZL
5943
+ - DEU
5944
+ - ESP
5945
+ - CHE
5946
+ - CYP
5947
+ - IND
5948
+ - CHN
5949
+ - BGR
5950
+ example: USA
5951
+ nullable: false
5952
+ businessEntityTypeEnum:
5953
+ type: string
5954
+ description: |
5955
+ The type of registered business.
5856
5956
  enum:
5857
5957
  - SOLE_PROPRIETOR
5858
5958
  - PRIVATE_PROFIT
5859
5959
  - PUBLIC_PROFIT
5860
5960
  - NON_PROFIT
5861
5961
  - GOVERNMENT
5862
- nullable: true
5962
+ example: PRIVATE_PROFIT
5963
+ nullable: false
5863
5964
  helpMessageResponse:
5864
5965
  type: string
5865
5966
  description: A message that gets sent to users requesting help.
@@ -5914,6 +6015,7 @@ components:
5914
6015
  - useCaseSummary
5915
6016
  - productionMessageContent
5916
6017
  - optInWorkflow
6018
+ - businessEntityType
5917
6019
  properties:
5918
6020
  businessAddress:
5919
6021
  $ref: '#/components/schemas/address'
@@ -5958,6 +6060,8 @@ components:
5958
6060
  $ref: '#/components/schemas/businessRegistrationNumber'
5959
6061
  businessRegistrationType:
5960
6062
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6063
+ businessRegistrationIssuingCountry:
6064
+ $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
5961
6065
  businessEntityType:
5962
6066
  $ref: '#/components/schemas/businessEntityTypeEnum'
5963
6067
  helpMessageResponse:
@@ -5965,7 +6069,7 @@ components:
5965
6069
  ageGatedContent:
5966
6070
  $ref: '#/components/schemas/ageGatedContent'
5967
6071
  cvToken:
5968
- $ref: '#/components/schemas/cvToken'
6072
+ $ref: '#/components/schemas/cvTokenNullable'
5969
6073
  verificationUpdateRequest:
5970
6074
  type: object
5971
6075
  required:
@@ -6011,12 +6115,14 @@ components:
6011
6115
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6012
6116
  businessEntityType:
6013
6117
  $ref: '#/components/schemas/businessEntityTypeEnum'
6118
+ businessRegistrationIssuingCountry:
6119
+ $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6014
6120
  helpMessageResponse:
6015
6121
  $ref: '#/components/schemas/helpMessageResponse'
6016
6122
  ageGatedContent:
6017
6123
  $ref: '#/components/schemas/ageGatedContent'
6018
6124
  cvToken:
6019
- $ref: '#/components/schemas/cvToken'
6125
+ $ref: '#/components/schemas/cvTokenNullable'
6020
6126
  tfvBasicAuthentication:
6021
6127
  type: object
6022
6128
  properties:
@@ -6469,7 +6575,7 @@ components:
6469
6575
  blockedReason:
6470
6576
  $ref: '#/components/schemas/blockedReason'
6471
6577
  cvToken:
6472
- $ref: '#/components/schemas/cvToken'
6578
+ $ref: '#/components/schemas/cvTokenNullable'
6473
6579
  tfvSubmissionInfo:
6474
6580
  type: object
6475
6581
  properties:
@@ -6503,20 +6609,16 @@ components:
6503
6609
  $ref: '#/components/schemas/businessDba'
6504
6610
  businessRegistrationNumber:
6505
6611
  $ref: '#/components/schemas/businessRegistrationNumber'
6506
- description: >-
6507
- US Federal Tax ID Number (EIN) or Canada Business Number (CBN).
6508
- Available starting October 1st, 2025.
6612
+ description: Government-issued business identifying number.
6509
6613
  businessRegistrationType:
6510
6614
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6615
+ businessRegistrationIssuingCountry:
6616
+ $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6511
6617
  description: >-
6512
- The type of business registration number. Available starting October
6513
- 1st, 2025.
6618
+ The country issuing the business registration in ISO-3166-1 alpha-3
6619
+ format.
6514
6620
  businessEntityType:
6515
6621
  $ref: '#/components/schemas/businessEntityTypeEnum'
6516
- description: >-
6517
- The type of registered business. If no option is applicable, please
6518
- provide "SOLE_PROPRIETOR" as a value. Available starting October
6519
- 1st, 2025.
6520
6622
  tfvStatusEnum:
6521
6623
  type: string
6522
6624
  enum:
@@ -6534,13 +6636,13 @@ components:
6534
6636
  nullable: true
6535
6637
  pattern: ^[ -~]{16,64}$
6536
6638
  type: string
6537
- cvToken:
6639
+ cvTokenNullable:
6538
6640
  type: string
6539
6641
  description: >-
6540
6642
  The token provided by Campaign Verify to validate your political use
6541
6643
  case. Only required for 527 political organizations. If you are not a
6542
- 527 political organization, this field should be omitted. If you pass an
6543
- empty string, it will be passed along and potentially rejected.
6644
+ 527 political organization, this field should be omitted. Supplying an
6645
+ empty string will likely result in rejection.
6544
6646
  minLength: 0
6545
6647
  maxLength: 500
6546
6648
  nullable: true
@@ -7214,6 +7316,8 @@ components:
7214
7316
  example:
7215
7317
  description: Service Unavailable Error.
7216
7318
  type: Service Unavailable
7319
+ verifyPutResponse:
7320
+ description: Accepted
7217
7321
  parameters:
7218
7322
  accountId:
7219
7323
  in: path
@@ -8050,7 +8154,7 @@ components:
8050
8154
  latestMessageDeliveryStatusDate: '2025-05-18'
8051
8155
  - phoneNumber: '+10072904498'
8052
8156
  countryCodeA3: USA
8053
- lineType: FIXED
8157
+ lineType: MOBILE
8054
8158
  voiceProvider: VERIZON
8055
8159
  latestMessageDeliveryStatus: DEACTIVATED
8056
8160
  initialMessageDeliveryStatusDate: '2025-09-05'
@@ -8064,6 +8168,14 @@ components:
8064
8168
  deactivationDate: '2025-09-29 01:23:00'
8065
8169
  deactivationEvent: DEACTIVATED
8066
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
8067
8179
  errors: []
8068
8180
  badRequestExample:
8069
8181
  summary: Example Bad Request Error
@@ -199,6 +199,7 @@
199
199
  1,
200
200
  1,
201
201
  1,
202
+ 1,
202
203
  null,
203
204
  null,
204
205
  1,
@@ -795,13 +796,13 @@
795
796
  null,
796
797
  null,
797
798
  1,
798
- 443,
799
+ 462,
799
800
  null,
800
801
  45,
801
802
  null,
802
803
  8,
803
804
  null,
804
- 267,
805
+ 277,
805
806
  null,
806
807
  21,
807
808
  null,
@@ -828,8 +829,8 @@
828
829
  null,
829
830
  null,
830
831
  null,
831
- 84,
832
- 84,
832
+ 93,
833
+ 93,
833
834
  null,
834
835
  null,
835
836
  null,
@@ -850,16 +851,16 @@
850
851
  null,
851
852
  null,
852
853
  1,
853
- 203,
854
+ 211,
854
855
  20,
855
- 194,
856
+ 202,
856
857
  5,
857
858
  14,
858
859
  null,
859
- 189,
860
+ 197,
860
861
  10,
861
862
  null,
862
- 179,
863
+ 187,
863
864
  null,
864
865
  null,
865
866
  null,
@@ -8606,6 +8607,10 @@
8606
8607
  null,
8607
8608
  null,
8608
8609
  null,
8610
+ null,
8611
+ null,
8612
+ null,
8613
+ null,
8609
8614
  6,
8610
8615
  8,
8611
8616
  null,
@@ -11662,6 +11667,6 @@
11662
11667
  ]
11663
11668
  }
11664
11669
  },
11665
- "timestamp": 1770147454
11670
+ "timestamp": 1774382238
11666
11671
  }
11667
11672
  }