chargebee-ruby
chargebee-ruby copied to clipboard
Ruby library for the Chargebee API.
This fix allows `Error` to be initialized with empty arguments without blowing up. The spec is still broken, please consider merging this [PR](https://github.com/chargebee/chargebee-ruby/pull/11) as well.
It'd be handy to have some mock result objects to use in testing, for various kinds of models in ChargeBee.
Using v2.6.5. There's a `ChargeBee::Error` class but [this code](https://github.com/chargebee/chargebee-ruby/blob/32bcf6a8d8070e0012a97b0457c0a89d5d27680c/lib/chargebee/rest.rb#L47) does not handle all exceptions so `RestClient::BadRequest` squeaks through. The exception is not documented (as most Ruby libs and their exceptions...
I have a requirement of getting the total number of `Subscriptions` of specific plan within duration of one month. A work around is to use `ChargeBee::Subscription.list( ... ).count` and set...
Hi team, Could you provide something like this for test webhooks behaviour in ruby test? https://developers.braintreepayments.com/reference/general/webhooks/subscription/ruby In my case, I created a class that provides a Chargebee webhook response, but...
Hi, Any chance you'd consider switching your JSON dependency to MultiJson? This allows the user to decide the JSON implementation themselves, while still allowing json_pure as an option for those...
# Replace Deprecated rest-client Dependency with Native Net::HTTP in ChargeBee Ruby SDK ## Description: This PR refactors the ChargeBee Ruby SDK to use Ruby's native `Net::HTTP` library, replacing the deprecated...
### Problem The gem eagerly loads all API endpoint wrappers, which bloats the memory footprint when the gem is loaded. For our particular use-case, we only need a handful of...
Hello! I am trying to enable a webhook endpoint that is currently disabled with one of these: ``` (byebug) ChargeBee::WebhookEndpoint.update(id, url: new_uri.to_s, disabled: false) #{:api_version=>"v2", :id=>"REDACTED", :name=>"REDACTED", :disabled=>true, …}, @http_status_code=200>...