Sha256: c587884405a1138b46201572c5499581bf896d92753a0b538d19de8a2ea5495a
Contents?: true
Size: 771 Bytes
Versions: 16
Compression:
Stored size: 771 Bytes
Contents
module Paid class RefundList < APIList attr_accessor :parent_id def initialize(json={}, api_method=nil, parent_id=nil) @klass = Util.constantize(:Transaction) @parent_id = parent_id refresh_from(json, api_method) end # Not live on the server yet. # def all(params={}, headers={}) # method = APIMethod.new(:get, "/transactions/:parent_id/refunds", params, headers, self) # APIList.new(:Transaction, method.execute, method) # end def create(params={}, headers={}) method = APIMethod.new(:post, "/transactions/:parent_id/refunds", params, headers, self) Util.constantize(:Transaction).new(method.execute, method) end @api_attributes = { :data => { :readonly => true } } end end
Version data entries
16 entries across 16 versions & 1 rubygems