Sha256: aa7af6279fa74c103420af6676812217dfe721d8473ed964f626159e730913f2
Contents?: true
Size: 441 Bytes
Versions: 7
Compression:
Stored size: 441 Bytes
Contents
require 'razorpay' require 'razorpay/request' require 'razorpay/entity' module Razorpay # Refund class handles all refund objects class Refund < Entity def initialize(data) super @request = Razorpay::Request.new("payments/#{payment_id}/refunds") end def all(options = {}) # We receive an array of item hashes @request.all options end def fetch(id) @request.fetch id end end end
Version data entries
7 entries across 7 versions & 1 rubygems