snaptrade 2.0.147 → 2.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53fb91666d99d24d7f0cdc3aeb138718f8866c33969da189032618829de3a0c1
4
- data.tar.gz: a083b24828187093a23b276c3abc177a6b3a4f2777439c9859a2d8c3e913e3f1
3
+ metadata.gz: adb1e66d9ca0663c055d4cf93f9faa479a72485887d6b2f51165f6c94fc9f7c1
4
+ data.tar.gz: 78e838071a20e474388dfc7109fa3a8de4abba827467279c67bc237a4621201d
5
5
  SHA512:
6
- metadata.gz: 62c6cdf3102ff3faa8df63128271f449796b193bb4bdaf63b581339381afd6e4df53aab29543e49cc84465afe3110319017344c7fed183b3d82f0c82c3d6b69b
7
- data.tar.gz: dbbc70112a5b7cc5e3d84dcd5d6e089744274f54db083c4fbcf70f7164c6f6b16aa4b63d41f58ca74f98285127a3115cfeeec10a681ea21f10283ec8c51f78c1
6
+ metadata.gz: 1c9c3a019605bc9c24d43b84e207da09efd6d8fd91162ae773277aab5ea2e68a4ee8aa778c0ac0115e1a3a49202949d4afaab1e6e9c87589b768c0e3e921f09b
7
+ data.tar.gz: eb8d427069f7274b31183806d6a473f65da216b7ffa3876dfe6f4f1c5d1294ffcdfba249afcb62299f057f39f2c4181c9fe53906099396a6424d6bcf36865872
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.147)
4
+ snaptrade (2.0.148)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.147-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.147)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.148-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.148)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
83
83
  Add to Gemfile:
84
84
 
85
85
  ```ruby
86
- gem 'snaptrade', '~> 2.0.147'
86
+ gem 'snaptrade', '~> 2.0.148'
87
87
  ```
88
88
 
89
89
  ## Getting Started<a id="getting-started"></a>
@@ -745,6 +745,7 @@ result = snaptrade.authentication.login_snap_trade_user(
745
745
  reconnect: "8b5f262d-4bb9-365d-888a-202bd3b15fa1",
746
746
  connection_type: "read",
747
747
  show_close_button: true,
748
+ dark_mode: true,
748
749
  connection_portal_version: "v4",
749
750
  )
750
751
  p result
@@ -786,6 +787,9 @@ read-only access automatically.
786
787
  Controls whether the close (X) button is displayed in the connection portal.
787
788
  When false, you control closing behavior from your app. Defaults to true.
788
789
 
790
+ ##### darkMode: `Boolean`<a id="darkmode-boolean"></a>
791
+ Enable dark mode for the connection portal. Defaults to false.
792
+
789
793
  ##### connectionPortalVersion: [`ConnectionPortalVersion`](./lib/snaptrade/models/connection_portal_version.rb)<a id="connectionportalversion-connectionportalversionlibsnaptrademodelsconnection_portal_versionrb"></a>
790
794
  Sets the connection portal version to render. Currently only v4 is supported and
791
795
  is the default. All other versions are deprecated and will automatically be set
@@ -194,10 +194,11 @@ module SnapTrade
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] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
196
196
  # @param show_close_button [Boolean] Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
197
+ # @param dark_mode [Boolean] Enable dark mode for the connection portal. Defaults to false.
197
198
  # @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.
198
199
  # @param body [SnapTradeLoginUserRequestBody]
199
200
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
200
- def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', show_close_button: SENTINEL, connection_portal_version: 'v4', extra: {})
201
+ def login_snap_trade_user(user_id:, user_secret:, broker: SENTINEL, immediate_redirect: SENTINEL, custom_redirect: SENTINEL, reconnect: SENTINEL, connection_type: 'read', show_close_button: SENTINEL, dark_mode: SENTINEL, connection_portal_version: 'v4', extra: {})
201
202
  _body = {}
202
203
  _body[:broker] = broker if broker != SENTINEL
203
204
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
@@ -205,6 +206,7 @@ module SnapTrade
205
206
  _body[:reconnect] = reconnect if reconnect != SENTINEL
206
207
  _body[:connectionType] = connection_type if connection_type != SENTINEL
207
208
  _body[:showCloseButton] = show_close_button if show_close_button != SENTINEL
209
+ _body[:darkMode] = dark_mode if dark_mode != SENTINEL
208
210
  _body[:connectionPortalVersion] = connection_portal_version if connection_portal_version != SENTINEL
209
211
  extra[:snap_trade_login_user_request_body] = _body if !_body.empty?
210
212
  data, _status_code, _headers = login_snap_trade_user_with_http_info_impl(user_id, user_secret, extra)
@@ -225,10 +227,11 @@ module SnapTrade
225
227
  # @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.
226
228
  # @param connection_type [ConnectionType] Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
227
229
  # @param show_close_button [Boolean] Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
230
+ # @param dark_mode [Boolean] Enable dark mode for the connection portal. Defaults to false.
228
231
  # @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.
229
232
  # @param body [SnapTradeLoginUserRequestBody]
230
233
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
231
- 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', show_close_button: SENTINEL, connection_portal_version: 'v4', extra: {})
234
+ 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', show_close_button: SENTINEL, dark_mode: SENTINEL, connection_portal_version: 'v4', extra: {})
232
235
  _body = {}
233
236
  _body[:broker] = broker if broker != SENTINEL
234
237
  _body[:immediateRedirect] = immediate_redirect if immediate_redirect != SENTINEL
@@ -236,6 +239,7 @@ module SnapTrade
236
239
  _body[:reconnect] = reconnect if reconnect != SENTINEL
237
240
  _body[:connectionType] = connection_type if connection_type != SENTINEL
238
241
  _body[:showCloseButton] = show_close_button if show_close_button != SENTINEL
242
+ _body[:darkMode] = dark_mode if dark_mode != SENTINEL
239
243
  _body[:connectionPortalVersion] = connection_portal_version if connection_portal_version != SENTINEL
240
244
  extra[:snap_trade_login_user_request_body] = _body if !_body.empty?
241
245
  login_snap_trade_user_with_http_info_impl(user_id, user_secret, extra)
@@ -31,6 +31,9 @@ module SnapTrade
31
31
  # Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
32
32
  attr_accessor :show_close_button
33
33
 
34
+ # Enable dark mode for the connection portal. Defaults to false.
35
+ attr_accessor :dark_mode
36
+
34
37
  # 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.
35
38
  attr_accessor :connection_portal_version
36
39
 
@@ -43,6 +46,7 @@ module SnapTrade
43
46
  :'reconnect' => :'reconnect',
44
47
  :'connection_type' => :'connectionType',
45
48
  :'show_close_button' => :'showCloseButton',
49
+ :'dark_mode' => :'darkMode',
46
50
  :'connection_portal_version' => :'connectionPortalVersion'
47
51
  }
48
52
  end
@@ -61,6 +65,7 @@ module SnapTrade
61
65
  :'reconnect' => :'String',
62
66
  :'connection_type' => :'ConnectionType',
63
67
  :'show_close_button' => :'Boolean',
68
+ :'dark_mode' => :'Boolean',
64
69
  :'connection_portal_version' => :'ConnectionPortalVersion'
65
70
  }
66
71
  end
@@ -112,6 +117,10 @@ module SnapTrade
112
117
  self.show_close_button = attributes[:'show_close_button']
113
118
  end
114
119
 
120
+ if attributes.key?(:'dark_mode')
121
+ self.dark_mode = attributes[:'dark_mode']
122
+ end
123
+
115
124
  if attributes.key?(:'connection_portal_version')
116
125
  self.connection_portal_version = attributes[:'connection_portal_version']
117
126
  else
@@ -143,6 +152,7 @@ module SnapTrade
143
152
  reconnect == o.reconnect &&
144
153
  connection_type == o.connection_type &&
145
154
  show_close_button == o.show_close_button &&
155
+ dark_mode == o.dark_mode &&
146
156
  connection_portal_version == o.connection_portal_version
147
157
  end
148
158
 
@@ -155,7 +165,7 @@ module SnapTrade
155
165
  # Calculates hash code according to all attributes.
156
166
  # @return [Integer] Hash code
157
167
  def hash
158
- [broker, immediate_redirect, custom_redirect, reconnect, connection_type, show_close_button, connection_portal_version].hash
168
+ [broker, immediate_redirect, custom_redirect, reconnect, connection_type, show_close_button, dark_mode, connection_portal_version].hash
159
169
  end
160
170
 
161
171
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.147'
11
+ VERSION = '2.0.148'
12
12
  end
@@ -56,6 +56,12 @@ describe SnapTrade::SnapTradeLoginUserRequestBody do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "dark_mode"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "connection_portal_version"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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.147
4
+ version: 2.0.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-14 00:00:00.000000000 Z
11
+ date: 2025-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday