Class: Paystack::Resources::DedicatedVirtualAccount

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/paystack/resources/dedicated_virtual_account.rb

Instance Method Summary collapse

Methods inherited from BaseResource

new

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 (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 (body = {})
  @transport.post("/dedicated_account/assign", body: body)
end

#dedicated_account_available_providersObject

Fetch Bank Providers GET /dedicated_account/available_providers



24
25
26
# File 'lib/paystack/resources/dedicated_virtual_account.rb', line 24

def ()
  @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 (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 (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 (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 (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 (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 (query = {})
  @transport.get("/dedicated_account/requery", query: query)
end