Class: ChargeIO::RecurringChargeOccurrence

Inherits:
Base
  • Object
show all
Defined in:
lib/chargeio/models/recurring_charge_occurrence.rb

Constant Summary

Constants included from Connection

Connection::DEFAULT_TIMEOUT

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors, #gateway, #messages

Instance Method Summary collapse

Methods inherited from Base

#as_json, #created, #id, #initialize, #inspect, #method_missing, #process_response_errors

Constructor Details

This class inherits a constructor from ChargeIO::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeIO::Base

Instance Method Details

#ignoreObject


7
8
9
10
# File 'lib/chargeio/models/recurring_charge_occurrence.rb', line 7

def ignore
  res = gateway.ignore_recurring_charge_occurrence(recurring_charge_id, id)
  replace(res)
end

#pay(params = {}) ⇒ Object


2
3
4
5
# File 'lib/chargeio/models/recurring_charge_occurrence.rb', line 2

def pay(params={})
  res = gateway.pay_recurring_charge_occurrence(recurring_charge_id, id, params)
  replace(res)
end