Class: Paystack::Resources::DedicatedVirtualAccount
- Inherits:
-
BaseResource
- Object
- BaseResource
- Paystack::Resources::DedicatedVirtualAccount
- Defined in:
- lib/paystack/resources/dedicated_virtual_account.rb
Instance Method Summary collapse
-
#dedicated_account_add_split(body = {}) ⇒ Object
Split Dedicated Account Transaction POST /dedicated_account/split.
-
#dedicated_account_assign(body = {}) ⇒ Object
Assign Dedicated Account POST /dedicated_account/assign.
-
#dedicated_account_available_providers ⇒ Object
Fetch Bank Providers GET /dedicated_account/available_providers.
-
#dedicated_account_create(body = {}) ⇒ Object
Create Dedicated Account POST /dedicated_account.
-
#dedicated_account_deactivate(id) ⇒ Object
Deactivate Dedicated Account DELETE /dedicated_account/id.
-
#dedicated_account_fetch(id) ⇒ Object
Fetch Dedicated Account GET /dedicated_account/id.
-
#dedicated_account_list(query = {}) ⇒ Object
List Dedicated Accounts GET /dedicated_account.
-
#dedicated_account_remove_split(body = {}) ⇒ Object
Remove Split from Dedicated Account DELETE /dedicated_account/split.
-
#dedicated_account_requery(query = {}) ⇒ Object
Requery Dedicated Account GET /dedicated_account/requery.
Methods inherited from BaseResource
Instance Method Details
#dedicated_account_add_split(body = {}) ⇒ Object
Split Dedicated Account Transaction POST /dedicated_account/split
10 11 12 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 10 def dedicated_account_add_split(body = {}) @transport.post("/dedicated_account/split", body: body) end |
#dedicated_account_assign(body = {}) ⇒ Object
Assign Dedicated Account POST /dedicated_account/assign
17 18 19 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 17 def dedicated_account_assign(body = {}) @transport.post("/dedicated_account/assign", body: body) end |
#dedicated_account_available_providers ⇒ Object
Fetch Bank Providers GET /dedicated_account/available_providers
24 25 26 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 24 def dedicated_account_available_providers() @transport.get("/dedicated_account/available_providers") end |
#dedicated_account_create(body = {}) ⇒ Object
Create Dedicated Account POST /dedicated_account
31 32 33 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 31 def dedicated_account_create(body = {}) @transport.post("/dedicated_account", body: body) end |
#dedicated_account_deactivate(id) ⇒ Object
Deactivate Dedicated Account DELETE /dedicated_account/id
38 39 40 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 38 def dedicated_account_deactivate(id) @transport.delete("/dedicated_account/#{id}") end |
#dedicated_account_fetch(id) ⇒ Object
Fetch Dedicated Account GET /dedicated_account/id
45 46 47 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 45 def dedicated_account_fetch(id) @transport.get("/dedicated_account/#{id}") end |
#dedicated_account_list(query = {}) ⇒ Object
List Dedicated Accounts GET /dedicated_account
52 53 54 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 52 def dedicated_account_list(query = {}) @transport.get("/dedicated_account", query: query) end |
#dedicated_account_remove_split(body = {}) ⇒ Object
Remove Split from Dedicated Account DELETE /dedicated_account/split
59 60 61 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 59 def dedicated_account_remove_split(body = {}) @transport.delete("/dedicated_account/split", body: body) end |
#dedicated_account_requery(query = {}) ⇒ Object
Requery Dedicated Account GET /dedicated_account/requery
66 67 68 |
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 66 def dedicated_account_requery(query = {}) @transport.get("/dedicated_account/requery", query: query) end |