Sha256: 3ce819b084d983eb68b34b5714920d32525109598879c63dce9d8be983e2bdcb

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

require 'razorpay/request'
require 'razorpay/entity'

module Razorpay
  # Refund class handles all refund objects
  class Refund < Entity
    def self.request
      Razorpay::Request.new('refunds')
    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
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
razorpay-3.2.2 lib/razorpay/refund.rb
razorpay-3.2.1 lib/razorpay/refund.rb
razorpay-3.2.0 lib/razorpay/refund.rb
razorpay-3.1.0 lib/razorpay/refund.rb
razorpay-3.0.1 lib/razorpay/refund.rb
razorruby-3.0.4 lib/razorpay/refund.rb
razorruby-3.0.1 lib/razorpay/refund.rb
razorpay-3.0.0 lib/razorpay/refund.rb