Class: SecurionPay::Plans
- Inherits:
-
Object
- Object
- SecurionPay::Plans
show all
- Extended by:
- TransactionBase
- Defined in:
- lib/securionpay/plans.rb
Class Method Summary
collapse
communicator, communicator=
Class Method Details
.create(params) ⇒ Object
7
8
9
|
# File 'lib/securionpay/plans.rb', line 7
def self.create(params)
communicator.post("#{Configuration.api_url}/plans", json: params)
end
|
.delete(plan_id) ⇒ Object
19
20
21
|
# File 'lib/securionpay/plans.rb', line 19
def self.delete(plan_id)
communicator.delete("#{Configuration.api_url}/plans/#{plan_id}")
end
|
.list(params = nil) ⇒ Object
23
24
25
|
# File 'lib/securionpay/plans.rb', line 23
def self.list(params = nil)
communicator.get("#{Configuration.api_url}/plans", query: params)
end
|
.retrieve(plan_id) ⇒ Object
11
12
13
|
# File 'lib/securionpay/plans.rb', line 11
def self.retrieve(plan_id)
communicator.get("#{Configuration.api_url}/plans/#{plan_id}")
end
|
.update(plan_id, params) ⇒ Object
15
16
17
|
# File 'lib/securionpay/plans.rb', line 15
def self.update(plan_id, params)
communicator.post("#{Configuration.api_url}/plans/#{plan_id}", json: params)
end
|