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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb9b5fc62548919c49b3e041cd434e724c29174a1daa15ad736185f7eb689a2c
4
- data.tar.gz: 3a9177165da484078b1a14f54afc3846da4757809527c188b3453c936eb40d41
3
+ metadata.gz: 2701dd6d8a0491f971b8f0cf731573aae6d646130e9d95d2e1032cf71247e259
4
+ data.tar.gz: '093249dc1556f023740781aba9689ac65bf278b6eb5228441bc2e6a622cbb8c5'
5
5
  SHA512:
6
- metadata.gz: d4f042c9d1f59f9eed7df5d769f693776f0627f85172515cc59bace00e6b0cbb4253767b6da114221fd66e92c847ab38de511ae4b2d3c5f3364a2d0cd325b729
7
- data.tar.gz: 18791847ad1ac03910091bdf4a4525b9ac9cd86515bf0b169ad0d9c41e7d01beca978efe9bf642d5bd3545c9c90cf0e86fd2cfc5d2a042e687a48cd29babe855
6
+ metadata.gz: 6d7de1b232698cad62e72f83de8d5b05224deeadfff5a0e9e0045a2e99e3c3ee19169b042196da729a05acf48ab811cf88db77d68ba485636513410499d56421
7
+ data.tar.gz: 9ee3ad5a781a7d532eb07c86a25f9e1316c8a11aa5636e565c49dad00b94c809d602c4675376fc22c96f179cd7b96a41076a9377d1f554d6164d2a137dffa262
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seamapi (0.0.4)
4
+ seamapi (0.0.5)
5
5
  http (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -3,13 +3,29 @@
3
3
  module Seam
4
4
  module Clients
5
5
  class ConnectedAccounts < BaseClient
6
- def get(connected_account_id = nil)
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: { connected_account_id: connected_account_id }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
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
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-07-26 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http