chargebee / chargebee-ruby

Ruby library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=ruby
MIT License
32 stars 60 forks source link

custom fields with spaces causing the API to fail #72

Closed macharmi closed 6 months ago

macharmi commented 11 months ago

The recent changes in the UI allowed users to insert custom attributes with spaces.

image

This is causing a bug in the API.

::ChargeBee::Customer.retrieve('test-custome-id', environment).customer
NameError: `@cf_my My customer field' is not allowed as an instance variable name
from /usr/local/bundle/gems/chargebee-2.31.1/lib/chargebee/models/model.rb:39:in `instance_variable_set'
github-actions[bot] commented 11 months ago

Hello @macharmi, thank you for raising the issue. Your contribution is greatly appreciated and we look forward to addressing it.

fmarkwong commented 9 months ago

Looks like this issue was fixed as of v2.35.0. Issue can probably be closed. Thanks for fixing it!

cb-sriramthiagarajan commented 6 months ago

Hi @macharmi, I'm sorry for the delayed response. As @fmarkwong mentioned, this was fixed so I'll go ahead and close this issue.

Thanks for the note @fmarkwong :)

macharmi commented 6 months ago

Thank you @cb-sriramthiagarajan ! We are already using the new version.