Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom fields with spaces causing the API to fail #72

Closed
macharmi opened this issue Nov 21, 2023 · 4 comments
Closed

custom fields with spaces causing the API to fail #72

macharmi opened this issue Nov 21, 2023 · 4 comments

Comments

@macharmi
Copy link

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'
Copy link

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

macharmi added a commit to macharmi/chargebee-ruby that referenced this issue Nov 21, 2023
@fmarkwong
Copy link

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

@cb-sriramthiagarajan
Copy link
Collaborator

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants