chargebee / chargebee-ruby

Ruby library for the Chargebee API.

Home Page:https://apidocs.chargebee.com/docs/api?lang=ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom fields with spaces causing the API to fail

macharmi opened this issue · comments

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'

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

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

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 :)

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