[Suggestion] Add a __toString() method to ChargeBee_Model to support attempts saving it as a string
claw68 opened this issue · comments
On ChargeBee_Model class
public function __toString() { return json_encode($this->_values); }
Sent pull request: Update ChargeBee_Model to support various return formats
Thanks for this. A simple return $this->_values function has been needed for so long. Anyone using this as part of their restAPI would largely benefit from this. Please consider adding it to the master version.
Hi,
The method 'toJson()' has been added to master version.