class EasyPing::Model::Charge

Constants

ATTRIBUTES

Public Instance Methods

all_refund(config, *args) click to toggle source
# File lib/easy_ping/model.rb, line 180
def all_refund(config, *args)
  EasyPing::Refund.new(config).all(id, *args)
end
Also aliased as: all_refunds, get_refund_list
all_refunds(config, *args)
Alias for: all_refund
get_refund_list(config, *args)
Alias for: all_refund
live?() click to toggle source
# File lib/easy_ping/model.rb, line 172
def live?
  live ? true : false
end
refund(config, *args) click to toggle source
# File lib/easy_ping/model.rb, line 176
def refund(config, *args)
  EasyPing::Refund.new(config).refund(*args, charge_id: id)
end
refunds() click to toggle source
# File lib/easy_ping/model.rb, line 168
def refunds
  refunded? ? @refunds['data'].map {|refund| Refund.new(refund)} : nil
end