Class: Seam::Clients::ConnectedAccounts

Inherits:
BaseClient
  • Object
show all
Defined in:
lib/seam/clients/connected_accounts.rb

Instance Attribute Summary

Attributes inherited from BaseClient

#client

Instance Method Summary collapse

Methods inherited from BaseClient

#initialize, #request_seam, #request_seam_object

Constructor Details

This class inherits a constructor from Seam::Clients::BaseClient

Instance Method Details

#get(connected_account_id_or_body) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/seam/clients/connected_accounts.rb', line 6

def get()
  body = if .is_a?(String)
    {connected_account_id: }
  else
    
  end

  request_seam_object(
    :post,
    "/connected_accounts/get",
    Seam::ConnectedAccount,
    "connected_account",
    body: body
  )
end

#list(body = {}) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/seam/clients/connected_accounts.rb', line 22

def list(body = {})
  request_seam_object(
    :post,
    "/connected_accounts/list",
    Seam::ConnectedAccount,
    "connected_accounts",
    body: body
  )
end