twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 462 forks source link

When creating an address, the `street_secondary` parameter is not supported #623

Closed barrettkingram closed 1 year ago

barrettkingram commented 1 year ago

Issue Summary

The documentation for "Create an Address" here lists street_secondary as an optional parameter. But if you attempt to use it, the ruby SDK raises an error.

ArgumentError: unknown keyword: street_secondary

Steps to Reproduce

Attempt to create an Address resource and supply parameter for street_secondary

Code Snippet

address = @client.addresses.create(
                              customer_name: 'customer_name',
                              street: 'street',
                              street_secondary: 'suite 123',
                              city: 'city',
                              region: 'region',
                              postal_code: 'postal_code',
                              iso_country: 'US'
                            )

Exception/Log

Exception:
ArgumentError: unknown keyword: street_secondary

Backtrace:
/Users/bingram/.rvm/gems/ruby-2.6.10/gems/twilio-ruby-5.73.4/lib/twilio-ruby/rest/api/v2010/account/address.rb:47:in `create'

Technical details:

rakatyal commented 1 year ago

Hi @barrettkingram, the support for street_secondary param has been added to the Twilio API but hasn't been released in the helper library yet. It should be available in the next library release (12/14). The docs are updated independently and sometimes we end up with a lag. Please let us know if you see any issue with the next released version of the gem.

claudiachua commented 1 year ago

Closing due to inactivity. Please re-open this issue or open a new GitHub issue if you still need help.