Class: Seam::Clients::ConnectedAccounts
Instance Attribute Summary
Attributes inherited from BaseClient
#client
Instance Method Summary
collapse
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Instance Method Details
#delete(connected_account_id:, sync: nil) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/seam/clients/connected_accounts.rb', line 6
def delete(connected_account_id:, sync: nil)
request_seam(
:post,
"/connected_accounts/delete",
body: {connected_account_id: connected_account_id, sync: sync}.compact
)
nil
end
|
#get(connected_account_id: nil, email: nil) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/seam/clients/connected_accounts.rb', line 16
def get(connected_account_id: nil, email: nil)
request_seam_object(
:post,
"/connected_accounts/get",
Seam::ConnectedAccount,
"connected_account",
body: {connected_account_id: connected_account_id, email: email}.compact
)
end
|
#list(custom_metadata_has: nil) ⇒ Object
26
27
28
29
30
31
32
33
34
|
# File 'lib/seam/clients/connected_accounts.rb', line 26
def list(custom_metadata_has: nil)
request_seam_object(
:post,
"/connected_accounts/list",
Seam::ConnectedAccount,
"connected_accounts",
body: {custom_metadata_has: custom_metadata_has}.compact
)
end
|
#update(connected_account_id:, automatically_manage_new_devices: nil, custom_metadata: nil) ⇒ Object
36
37
38
39
40
41
42
43
44
|
# File 'lib/seam/clients/connected_accounts.rb', line 36
def update(connected_account_id:, automatically_manage_new_devices: nil, custom_metadata: nil)
request_seam_object(
:post,
"/connected_accounts/update",
Seam::ConnectedAccount,
"connected_account",
body: {connected_account_id: connected_account_id, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata}.compact
)
end
|