lib/chargebee/request.rb in chargebee-1.5.6 vs lib/chargebee/request.rb in chargebee-1.5.7

- old
+ new

@@ -1,11 +1,11 @@ module ChargeBee class Request - def self.send(method, url, params={}, env=nil) + def self.send(method, url, params={}, env=nil, headers={}) env ||= ChargeBee.default_env ser_params = Util.serialize(params) - resp = Rest.request(method, url, env, ser_params||={}) + resp = Rest.request(method, url, env, ser_params||={}, headers) if resp.has_key?(:list) ListResult.new(resp[:list], resp[:next_offset]) else Result.new(resp) end