snaptrade 2.0.50 → 2.0.51

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: 1ff6c1a7698aa9d2a38ecf15145b5a353d4487bb1a93f2fbf417cce7156736c9
4
- data.tar.gz: b1fa817078cf578d2f0c8b32115417a1c87fab22da9d1cc63d6207743a8ef445
3
+ metadata.gz: 25060249e8a32cb8f3e96e385a11a8fc57cee85c281e2b02ece2e17a5d929086
4
+ data.tar.gz: bdcee308e27ccbf995aa2dcc14c129e555394a03b6b01e0896ce2d0483b0cb2f
5
5
  SHA512:
6
- metadata.gz: 045c5ebf77f76b5db69fed2ea16965f4d041df50c532e7254897d6273f31bcc1bf4d209adee9151b24f79e9bac3346eea50d88df2e7a93bf97ad9efed020472c
7
- data.tar.gz: 366092be6800bec45b8f58da67f330ad872c6be44fa1c8f05e2e12add9d526bbe9ec41fa9cc5a9b43063998033fa1c78bf8e1bc18524113f88c1e2c3e08f84bc
6
+ metadata.gz: e380e7834b5d087216034ee1b44733b8b096b46a3f14435346aae2129b7ace1a52d2c00d32e4d09174925d82f0b530162918047de8eb4302d022a34d53fd9a6c
7
+ data.tar.gz: 660cab97610bff7ab1c771dda10a1e27392ce31b998e12c65f145f7c1422068be09ebf8827baf268eba0e00adeb8e995f8f990e055bb739e5e91c1f3b365b6f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.50)
4
+ snaptrade (2.0.51)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.32.3)
70
+ rubocop-ast (1.33.0)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.50-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.50)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.51-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.51)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -70,7 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
70
70
  Add to Gemfile:
71
71
 
72
72
  ```ruby
73
- gem 'snaptrade', '~> 2.0.50'
73
+ gem 'snaptrade', '~> 2.0.51'
74
74
  ```
75
75
 
76
76
  ## Getting Started<a id="getting-started"></a>
@@ -499,7 +499,7 @@ result = snaptrade.authentication.login_snap_trade_user(
499
499
  custom_redirect: "https://snaptrade.com",
500
500
  reconnect: "8b5f262d-4bb9-365d-888a-202bd3b15fa1",
501
501
  connection_type: "read",
502
- connection_portal_version: "v3",
502
+ connection_portal_version: "v4",
503
503
  )
504
504
  p result
505
505
  ```
@@ -535,7 +535,9 @@ Sets whether the connection should be read-only or trade-enabled. Defaults to
535
535
  read-only if not specified.
536
536
 
537
537
  ##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
538
- Sets the version of the connection portal to render.
538
+ Sets the connection portal version to render. Currently only v4 is supported and
539
+ is the default. All other versions are deprecated and will automatically be set
540
+ to v4.
539
541
 
540
542
  #### 🔄 Return<a id="🔄-return"></a>
541
543
 
@@ -193,10 +193,10 @@ module SnapTrade
193
193
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
194
194
  # @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
195
195
  # @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
196
- # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
196
+ # @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
197
197
  # @param body [SnapTradeLoginUserRequestBody]
198
198
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
199
- def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v3', extra: {})
199
+ def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v4', extra: {})
200
200
  _body = {}
201
201
  _body[:broker] = broker if broker != SENTINEL
202
202
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
@@ -222,10 +222,10 @@ module SnapTrade
222
222
  # @param custom_redirect [String] URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
223
223
  # @param reconnect [String] The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
224
224
  # @param connection_type [ConnectionType] Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
225
- # @param connection_portal_version [ConnectionPortalVersion] Sets the version of the connection portal to render.
225
+ # @param connection_portal_version [ConnectionPortalVersion] Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
226
226
  # @param body [SnapTradeLoginUserRequestBody]
227
227
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
228
- def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v3', extra: {})
228
+ def login_snap_trade_user_with_http_info(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', connection_portal_version: 'v4', extra: {})
229
229
  _body = {}
230
230
  _body[:broker] = broker if broker != SENTINEL
231
231
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
@@ -28,7 +28,7 @@ module SnapTrade
28
28
  # Sets whether the connection should be read-only or trade-enabled. Defaults to read-only if not specified.
29
29
  attr_accessor :connection_type
30
30
 
31
- # Sets the version of the connection portal to render.
31
+ # Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
32
32
  attr_accessor :connection_portal_version
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -106,7 +106,7 @@ module SnapTrade
106
106
  if attributes.key?(:'connection_portal_version')
107
107
  self.connection_portal_version = attributes[:'connection_portal_version']
108
108
  else
109
- self.connection_portal_version = 'v3'
109
+ self.connection_portal_version = 'v4'
110
110
  end
111
111
  end
112
112
 
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.50'
11
+ VERSION = '2.0.51'
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.50
4
+ version: 2.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday