Sha256: 30f53677e5001576b9bc76db52b0d7e6b96984b29e140098cfae50d98881a18d
Contents?: true
Size: 679 Bytes
Versions: 8
Compression:
Stored size: 679 Bytes
Contents
require 'razorpay/request' require 'razorpay/entity' module Razorpay # Transfer class handles all refund objects class Transfer < Entity def self.request Razorpay::Request.new('transfers') end def self.create(options) request.create options end def self.all(options = {}) request.all options end def self.fetch(id) request.fetch id end def edit(options = {}) self.class.request.patch id, options end def reverse(options = {}) self.class.request.post "#{id}/reversals", options end def self.fetch_settlements request.get "?expand[]=recipient_settlement" end end end
Version data entries
8 entries across 8 versions & 2 rubygems