lib/razorpay/request.rb in razorpay-3.1.0 vs lib/razorpay/request.rb in razorpay-3.2.0
- old
+ new
@@ -113,7 +113,13 @@
raise klass.new(*args), error['description']
rescue NameError, LoadError
# We got an unknown error, cast it to Error for now
raise Razorpay::Error.new, 'Unknown Error'
end
+
+ def doesEntityExist(entity)
+ if (Razorpay::ENTITIES_LIST.include?(entity))
+ warn("Warning: The entity already has a specific function. Consider using it instead.")
+ end
+ end
end
end