snaptrade 2.0.49 → 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: 6e08bdf56ca308e63579693544f8fca18d020aea297a4b946f40ae05b606721b
4
- data.tar.gz: c3d4df66abe4c7a22dc7386d3a741cc6508d9c7c16b40dfe24e42e5ba3caf7cd
3
+ metadata.gz: 25060249e8a32cb8f3e96e385a11a8fc57cee85c281e2b02ece2e17a5d929086
4
+ data.tar.gz: bdcee308e27ccbf995aa2dcc14c129e555394a03b6b01e0896ce2d0483b0cb2f
5
5
  SHA512:
6
- metadata.gz: ab697626d2986f45b77335144f244ed7898c4387b59a57034280ca65cca180d701601fa2e3731dcb2aa3cabf7310ff311ccb20f55cb86579ddbadde4b7845761
7
- data.tar.gz: '0595be5c6b3c96c42ddebe85bdc7bd588e2db8212f468ce74c55b88deb09583337621198abd6297c044489f8daffbaf921cc4f097b94f7915f81b177bd5514c6'
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.49)
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.49-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.49)
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.49'
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
 
@@ -49,6 +49,7 @@ module SnapTrade
49
49
  def self.openapi_nullable
50
50
  Set.new([
51
51
  :'last_successful_sync',
52
+ :'first_transaction_date'
52
53
  ])
53
54
  end
54
55
 
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.49'
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.49
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-28 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