seamapi 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/clients/connected_accounts.rb +18 -2
- data/lib/seam/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2701dd6d8a0491f971b8f0cf731573aae6d646130e9d95d2e1032cf71247e259
|
4
|
+
data.tar.gz: '093249dc1556f023740781aba9689ac65bf278b6eb5228441bc2e6a622cbb8c5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d7de1b232698cad62e72f83de8d5b05224deeadfff5a0e9e0045a2e99e3c3ee19169b042196da729a05acf48ab811cf88db77d68ba485636513410499d56421
|
7
|
+
data.tar.gz: 9ee3ad5a781a7d532eb07c86a25f9e1316c8a11aa5636e565c49dad00b94c809d602c4675376fc22c96f179cd7b96a41076a9377d1f554d6164d2a137dffa262
|
data/Gemfile.lock
CHANGED
@@ -3,13 +3,29 @@
|
|
3
3
|
module Seam
|
4
4
|
module Clients
|
5
5
|
class ConnectedAccounts < BaseClient
|
6
|
-
def get(
|
6
|
+
def get(connected_account_id_or_params)
|
7
|
+
params = if connected_account_id_or_params.is_a?(String)
|
8
|
+
{ connected_account_id: connected_account_id_or_params }
|
9
|
+
else
|
10
|
+
connected_account_id_or_params
|
11
|
+
end
|
12
|
+
|
7
13
|
request_seam_object(
|
8
14
|
:get,
|
9
15
|
"/connected_accounts/get",
|
10
16
|
Seam::ConnectedAccount,
|
11
17
|
"connected_account",
|
12
|
-
params:
|
18
|
+
params: params
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
def list(params = {})
|
23
|
+
request_seam_object(
|
24
|
+
:get,
|
25
|
+
"/connected_accounts/list",
|
26
|
+
Seam::ConnectedAccount,
|
27
|
+
"connected_accounts",
|
28
|
+
params: params
|
13
29
|
)
|
14
30
|
end
|
15
31
|
end
|
data/lib/seam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seamapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abimael Martell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|