lib/voucherify/client.rb in voucherify-2.1.1 vs lib/voucherify/client.rb in voucherify-2.2.0

- old
+ new

@@ -62,9 +62,21 @@ def promotions Voucherify::Service::Promotions.new(self) end + def orders + Voucherify::Service::Orders.new(self) + end + + def rewards + Voucherify::Service::Rewards.new(self) + end + + def loyalties + Voucherify::Service::Loyalties.new(self) + end + def get(path, params = {}) begin url = @backend_url + path response = RestClient::Request::execute(method: :get, url: url, headers: @headers.merge({:params => params}), read_timeout: @timeout, open_timeout: @timeout) JSON.parse(response.body)