snaptrade 2.0.23 → 2.0.25

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: 78be9220e71d2500da395e0c580190dc48202e134fb2340ba1ff69f4b38fc774
4
- data.tar.gz: ccbbd494512272fecb0c894f72c4a0b4101a15172f4fb10919167c5ee169055d
3
+ metadata.gz: bb39c5c1ced25c5a61e62e0a44bb708bdd00ab4afc22863bd18738a3265ee0b4
4
+ data.tar.gz: 94c1806dd3b65d224d5a594e599a35a1a52901c01b5744bc21d7fb61cd2bbbc7
5
5
  SHA512:
6
- metadata.gz: a797f328841f7fa481c1a05c562a63d27f443738aa74a685bb4a6c64f7c3a6fa495abadc2b501dae54cd3d98a21fa788d36cabaebdde8f8344779797d095fb63
7
- data.tar.gz: 06e0e87b861f77e1e2419258a9b22eb8c4847dd7d2a7e40033e4924eda42a8cd75abe09d6398fea05300f71233a578e73c9058d67874086393d1528948ded437
6
+ metadata.gz: 79d4e7f30c4882bcb36d5f07c37e1134977185e9e6f5bf7ff253b6e4350574b831b607b50ced7c29516524d0190ed16af3508b8634cec34b04164c5b9e37afdf
7
+ data.tar.gz: 94174d186733d0f5d44b3e3fe05d4fef6349dfc39a96c6a8fef4c975b7b56da9dd1d5e13fa1d24517f1522be51aba53ae91099b9210ad6703875620aa108a3a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.22)
4
+ snaptrade (2.0.24)
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.23-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.23)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.25-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.25)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -35,6 +35,7 @@ Connect brokerage accounts to your app for live positions and trading
35
35
  * [`snaptrade.authentication.register_snap_trade_user`](#snaptradeauthenticationregister_snap_trade_user)
36
36
  * [`snaptrade.authentication.reset_snap_trade_user_secret`](#snaptradeauthenticationreset_snap_trade_user_secret)
37
37
  * [`snaptrade.connections.detail_brokerage_authorization`](#snaptradeconnectionsdetail_brokerage_authorization)
38
+ * [`snaptrade.connections.disable_brokerage_authorization`](#snaptradeconnectionsdisable_brokerage_authorization)
38
39
  * [`snaptrade.connections.list_brokerage_authorizations`](#snaptradeconnectionslist_brokerage_authorizations)
39
40
  * [`snaptrade.connections.refresh_brokerage_authorization`](#snaptradeconnectionsrefresh_brokerage_authorization)
40
41
  * [`snaptrade.connections.remove_brokerage_authorization`](#snaptradeconnectionsremove_brokerage_authorization)
@@ -70,7 +71,7 @@ Connect brokerage accounts to your app for live positions and trading
70
71
  Add to Gemfile:
71
72
 
72
73
  ```ruby
73
- gem 'snaptrade', '~> 2.0.23'
74
+ gem 'snaptrade', '~> 2.0.25'
74
75
  ```
75
76
 
76
77
  ## Getting Started<a id="getting-started"></a>
@@ -680,6 +681,41 @@ The ID of a brokerage authorization object.
680
681
  ---
681
682
 
682
683
 
684
+ ### `snaptrade.connections.disable_brokerage_authorization`<a id="snaptradeconnectionsdisable_brokerage_authorization"></a>
685
+
686
+ Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
687
+
688
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
689
+
690
+ ```ruby
691
+ result = snaptrade.connections.disable_brokerage_authorization(
692
+ authorization_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
693
+ user_id: "snaptrade-user-123",
694
+ user_secret: "USERSECRET123",
695
+ )
696
+ p result
697
+ ```
698
+
699
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
700
+
701
+ ##### authorization_id: `String`<a id="authorization_id-string"></a>
702
+ The ID of a brokerage authorization object.
703
+
704
+ ##### user_id: `String`<a id="user_id-string"></a>
705
+ ##### user_secret: `String`<a id="user_secret-string"></a>
706
+ #### 🔄 Return<a id="🔄-return"></a>
707
+
708
+ [BrokerageAuthorizationDisabledConfirmation](./lib/snaptrade/models/brokerage_authorization_disabled_confirmation.rb)
709
+
710
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
711
+
712
+ `/authorizations/{authorizationId}/disable` `POST`
713
+
714
+ [🔙 **Back to Table of Contents**](#table-of-contents)
715
+
716
+ ---
717
+
718
+
683
719
  ### `snaptrade.connections.list_brokerage_authorizations`<a id="snaptradeconnectionslist_brokerage_authorizations"></a>
684
720
 
685
721
  Returns a list of Brokerage Authorization objects for the user
@@ -120,6 +120,109 @@ module SnapTrade
120
120
  end
121
121
 
122
122
 
123
+ # Manually disable a connection for testing
124
+ #
125
+ # Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
126
+ #
127
+ # @param authorization_id [String] The ID of a brokerage authorization object.
128
+ # @param user_id [String]
129
+ # @param user_secret [String]
130
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
131
+ def disable_brokerage_authorization(authorization_id:, user_id:, user_secret:, extra: {})
132
+ data, _status_code, _headers = disable_brokerage_authorization_with_http_info_impl(authorization_id, user_id, user_secret, extra)
133
+ data
134
+ end
135
+
136
+ # Manually disable a connection for testing
137
+ #
138
+ # Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
139
+ #
140
+ # @param authorization_id [String] The ID of a brokerage authorization object.
141
+ # @param user_id [String]
142
+ # @param user_secret [String]
143
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
144
+ def disable_brokerage_authorization_with_http_info(authorization_id:, user_id:, user_secret:, extra: {})
145
+ disable_brokerage_authorization_with_http_info_impl(authorization_id, user_id, user_secret, extra)
146
+ end
147
+
148
+ # Manually disable a connection for testing
149
+ # Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
150
+ # @param authorization_id [String] The ID of a brokerage authorization object.
151
+ # @param user_id [String]
152
+ # @param user_secret [String]
153
+ # @param [Hash] opts the optional parameters
154
+ # @return [BrokerageAuthorizationDisabledConfirmation]
155
+ private def disable_brokerage_authorization_impl(authorization_id, user_id, user_secret, opts = {})
156
+ data, _status_code, _headers = disable_brokerage_authorization_with_http_info(authorization_id, user_id, user_secret, opts)
157
+ data
158
+ end
159
+
160
+ # Manually disable a connection for testing
161
+ # Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
162
+ # @param authorization_id [String] The ID of a brokerage authorization object.
163
+ # @param user_id [String]
164
+ # @param user_secret [String]
165
+ # @param [Hash] opts the optional parameters
166
+ # @return [Array<(BrokerageAuthorizationDisabledConfirmation, Integer, Hash)>] BrokerageAuthorizationDisabledConfirmation data, response status code and response headers
167
+ private def disable_brokerage_authorization_with_http_info_impl(authorization_id, user_id, user_secret, opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.disable_brokerage_authorization ...'
170
+ end
171
+ # verify the required parameter 'authorization_id' is set
172
+ if @api_client.config.client_side_validation && authorization_id.nil?
173
+ fail ArgumentError, "Missing the required parameter 'authorization_id' when calling ConnectionsApi.disable_brokerage_authorization"
174
+ end
175
+ # verify the required parameter 'user_id' is set
176
+ if @api_client.config.client_side_validation && user_id.nil?
177
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling ConnectionsApi.disable_brokerage_authorization"
178
+ end
179
+ # verify the required parameter 'user_secret' is set
180
+ if @api_client.config.client_side_validation && user_secret.nil?
181
+ fail ArgumentError, "Missing the required parameter 'user_secret' when calling ConnectionsApi.disable_brokerage_authorization"
182
+ end
183
+ # resource path
184
+ local_var_path = '/authorizations/{authorizationId}/disable'.sub('{' + 'authorizationId' + '}', CGI.escape(authorization_id.to_s))
185
+
186
+ # query parameters
187
+ query_params = opts[:query_params] || {}
188
+ query_params[:'userId'] = user_id
189
+ query_params[:'userSecret'] = user_secret
190
+
191
+ # header parameters
192
+ header_params = opts[:header_params] || {}
193
+ # HTTP header 'Accept' (if needed)
194
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
195
+
196
+ # form parameters
197
+ form_params = opts[:form_params] || {}
198
+
199
+ # http body (model)
200
+ post_body = opts[:debug_body]
201
+
202
+ # return_type
203
+ return_type = opts[:debug_return_type] || 'BrokerageAuthorizationDisabledConfirmation'
204
+
205
+ # auth_names
206
+ auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
207
+
208
+ new_options = opts.merge(
209
+ :operation => :"ConnectionsApi.disable_brokerage_authorization",
210
+ :header_params => header_params,
211
+ :query_params => query_params,
212
+ :form_params => form_params,
213
+ :body => post_body,
214
+ :auth_names => auth_names,
215
+ :return_type => return_type
216
+ )
217
+
218
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug "API called: ConnectionsApi#disable_brokerage_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
+ end
222
+ return data, status_code, headers, response
223
+ end
224
+
225
+
123
226
  # List all brokerage authorizations for the User
124
227
  #
125
228
  # Returns a list of Brokerage Authorization objects for the user
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- # Total Value of the account
14
+ # Total value of the account, as reported by the brokerage
15
15
  class Amount
16
16
  attr_accessor :amount
17
17
 
@@ -0,0 +1,217 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ class BrokerageAuthorizationDisabledConfirmation
15
+ # Connection disabled confirmation
16
+ attr_accessor :detail
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'detail' => :'detail'
22
+ }
23
+ end
24
+
25
+ # Returns all the JSON keys this model knows about
26
+ def self.acceptable_attributes
27
+ attribute_map.values
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'detail' => :'String'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::BrokerageAuthorizationDisabledConfirmation` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::BrokerageAuthorizationDisabledConfirmation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'detail')
59
+ self.detail = attributes[:'detail']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ detail == o.detail
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Integer] Hash code
92
+ def hash
93
+ [detail].hash
94
+ end
95
+
96
+ # Builds the object from hash
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ # @return [Object] Returns the model itself
99
+ def self.build_from_hash(attributes)
100
+ new.build_from_hash(attributes)
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ attributes = attributes.transform_keys(&:to_sym)
109
+ self.class.openapi_types.each_pair do |key, type|
110
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
111
+ self.send("#{key}=", nil)
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :Time
133
+ Time.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ # models (e.g. Pet) or oneOf
164
+ klass = SnapTrade.const_get(type)
165
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+
215
+ end
216
+
217
+ end
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ # This connection is already disabled.
15
+ class Model402BrokerageAuthAlreadyDisabledException
16
+ attr_accessor :detail
17
+
18
+ attr_accessor :code
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'detail' => :'detail',
24
+ :'code' => :'code'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'detail' => :'Object',
37
+ :'code' => :'Object'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ :'detail',
45
+ :'code'
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::Model402BrokerageAuthAlreadyDisabledException` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::Model402BrokerageAuthAlreadyDisabledException`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'detail')
65
+ self.detail = attributes[:'detail']
66
+ end
67
+
68
+ if attributes.key?(:'code')
69
+ self.code = attributes[:'code']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ detail == o.detail &&
92
+ code == o.code
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [detail, code].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ attributes = attributes.transform_keys(&:to_sym)
120
+ self.class.openapi_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = SnapTrade.const_get(type)
176
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ # Option Brokerage symbol
15
+ class OptionBrokerageSymbol
16
+ attr_accessor :id
17
+
18
+ attr_accessor :description
19
+
20
+ attr_accessor :option_symbol
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'id' => :'id',
26
+ :'description' => :'description',
27
+ :'option_symbol' => :'option_symbol'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'id' => :'String',
40
+ :'description' => :'String',
41
+ :'option_symbol' => :'OptionsSymbol'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::OptionBrokerageSymbol` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::OptionBrokerageSymbol`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'id')
67
+ self.id = attributes[:'id']
68
+ end
69
+
70
+ if attributes.key?(:'description')
71
+ self.description = attributes[:'description']
72
+ end
73
+
74
+ if attributes.key?(:'option_symbol')
75
+ self.option_symbol = attributes[:'option_symbol']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ id == o.id &&
98
+ description == o.description &&
99
+ option_symbol == o.option_symbol
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(o)
105
+ self == o
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Integer] Hash code
110
+ def hash
111
+ [id, description, option_symbol].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def self.build_from_hash(attributes)
118
+ new.build_from_hash(attributes)
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ attributes = attributes.transform_keys(&:to_sym)
127
+ self.class.openapi_types.each_pair do |key, type|
128
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
129
+ self.send("#{key}=", nil)
130
+ elsif type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :Time
151
+ Time.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :Boolean
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ # models (e.g. Pet) or oneOf
182
+ klass = SnapTrade.const_get(type)
183
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
184
+ end
185
+ end
186
+
187
+ # Returns the string representation of the object
188
+ # @return [String] String presentation of the object
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_hash (backward compatibility)
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_body
196
+ to_hash
197
+ end
198
+
199
+ # Returns the object in the form of hash
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ if value.nil?
206
+ is_nullable = self.class.openapi_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+
235
+ end
@@ -44,7 +44,7 @@ module SnapTrade
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'symbol' => :'BrokerageSymbol',
47
+ :'symbol' => :'OptionBrokerageSymbol',
48
48
  :'price' => :'Float',
49
49
  :'units' => :'Float',
50
50
  :'currency' => :'OptionsPositionCurrency',
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- # Summed value of account positions and cash balances
14
+ # Calculated based on the sum of the values of account positions and cash balances
15
15
  class SnapTradeHoldingsTotalValue
16
16
  attr_accessor :value
17
17
 
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.23'
11
+ VERSION = '2.0.25'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -32,6 +32,7 @@ require 'snaptrade/models/authentication_login_snap_trade_user200_response'
32
32
  require 'snaptrade/models/balance'
33
33
  require 'snaptrade/models/brokerage'
34
34
  require 'snaptrade/models/brokerage_authorization'
35
+ require 'snaptrade/models/brokerage_authorization_disabled_confirmation'
35
36
  require 'snaptrade/models/brokerage_authorization_refresh_confirmation'
36
37
  require 'snaptrade/models/brokerage_authorization_type'
37
38
  require 'snaptrade/models/brokerage_authorization_type_read_only'
@@ -66,6 +67,7 @@ require 'snaptrade/models/manual_trade_form_notional_value'
66
67
  require 'snaptrade/models/manual_trade_symbol'
67
68
  require 'snaptrade/models/model400_failed_request_response'
68
69
  require 'snaptrade/models/model401_failed_request_response'
70
+ require 'snaptrade/models/model402_brokerage_auth_already_disabled_exception'
69
71
  require 'snaptrade/models/model402_brokerage_auth_disabled_response'
70
72
  require 'snaptrade/models/model403_failed_request_response'
71
73
  require 'snaptrade/models/model403_feature_not_enabled_response'
@@ -83,6 +85,7 @@ require 'snaptrade/models/monthly_dividends'
83
85
  require 'snaptrade/models/net_contributions'
84
86
  require 'snaptrade/models/net_dividend'
85
87
  require 'snaptrade/models/notional_value'
88
+ require 'snaptrade/models/option_brokerage_symbol'
86
89
  require 'snaptrade/models/option_chain_inner'
87
90
  require 'snaptrade/models/option_chain_inner_chain_per_root_inner'
88
91
  require 'snaptrade/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner'
@@ -41,6 +41,20 @@ describe 'ConnectionsApi' do
41
41
  end
42
42
  end
43
43
 
44
+ # unit tests for disable_brokerage_authorization
45
+ # Manually disable a connection for testing
46
+ # Manually disable a connection. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a CONNECTION_BROKEN webhook for the connection. Please contact us in order to use this endpoint as it is disabled by default.
47
+ # @param authorization_id The ID of a brokerage authorization object.
48
+ # @param user_id
49
+ # @param user_secret
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [BrokerageAuthorizationDisabledConfirmation]
52
+ describe 'disable_brokerage_authorization test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
44
58
  # unit tests for list_brokerage_authorizations
45
59
  # List all brokerage authorizations for the User
46
60
  # Returns a list of Brokerage Authorization objects for the user
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::BrokerageAuthorizationDisabledConfirmation
15
+ describe SnapTrade::BrokerageAuthorizationDisabledConfirmation do
16
+ let(:instance) { SnapTrade::BrokerageAuthorizationDisabledConfirmation.new }
17
+
18
+ describe 'test an instance of BrokerageAuthorizationDisabledConfirmation' do
19
+ it 'should create an instance of BrokerageAuthorizationDisabledConfirmation' do
20
+ expect(instance).to be_instance_of(SnapTrade::BrokerageAuthorizationDisabledConfirmation)
21
+ end
22
+ end
23
+ describe 'test attribute "detail"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ end
@@ -0,0 +1,35 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::Model402BrokerageAuthAlreadyDisabledException
15
+ describe SnapTrade::Model402BrokerageAuthAlreadyDisabledException do
16
+ let(:instance) { SnapTrade::Model402BrokerageAuthAlreadyDisabledException.new }
17
+
18
+ describe 'test an instance of Model402BrokerageAuthAlreadyDisabledException' do
19
+ it 'should create an instance of Model402BrokerageAuthAlreadyDisabledException' do
20
+ expect(instance).to be_instance_of(SnapTrade::Model402BrokerageAuthAlreadyDisabledException)
21
+ end
22
+ end
23
+ describe 'test attribute "detail"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "code"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::OptionBrokerageSymbol
15
+ describe SnapTrade::OptionBrokerageSymbol do
16
+ let(:instance) { SnapTrade::OptionBrokerageSymbol.new }
17
+
18
+ describe 'test an instance of OptionBrokerageSymbol' do
19
+ it 'should create an instance of OptionBrokerageSymbol' do
20
+ expect(instance).to be_instance_of(SnapTrade::OptionBrokerageSymbol)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "description"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "option_symbol"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ 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.23
4
+ version: 2.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -111,6 +111,7 @@ files:
111
111
  - lib/snaptrade/models/balance.rb
112
112
  - lib/snaptrade/models/brokerage.rb
113
113
  - lib/snaptrade/models/brokerage_authorization.rb
114
+ - lib/snaptrade/models/brokerage_authorization_disabled_confirmation.rb
114
115
  - lib/snaptrade/models/brokerage_authorization_refresh_confirmation.rb
115
116
  - lib/snaptrade/models/brokerage_authorization_type.rb
116
117
  - lib/snaptrade/models/brokerage_authorization_type_read_only.rb
@@ -145,6 +146,7 @@ files:
145
146
  - lib/snaptrade/models/manual_trade_symbol.rb
146
147
  - lib/snaptrade/models/model400_failed_request_response.rb
147
148
  - lib/snaptrade/models/model401_failed_request_response.rb
149
+ - lib/snaptrade/models/model402_brokerage_auth_already_disabled_exception.rb
148
150
  - lib/snaptrade/models/model402_brokerage_auth_disabled_response.rb
149
151
  - lib/snaptrade/models/model403_failed_request_response.rb
150
152
  - lib/snaptrade/models/model403_feature_not_enabled_response.rb
@@ -162,6 +164,7 @@ files:
162
164
  - lib/snaptrade/models/net_contributions.rb
163
165
  - lib/snaptrade/models/net_dividend.rb
164
166
  - lib/snaptrade/models/notional_value.rb
167
+ - lib/snaptrade/models/option_brokerage_symbol.rb
165
168
  - lib/snaptrade/models/option_chain_inner.rb
166
169
  - lib/snaptrade/models/option_chain_inner_chain_per_root_inner.rb
167
170
  - lib/snaptrade/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner.rb
@@ -259,6 +262,7 @@ files:
259
262
  - spec/models/auth_type_spec.rb
260
263
  - spec/models/authentication_login_snap_trade_user200_response_spec.rb
261
264
  - spec/models/balance_spec.rb
265
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
262
266
  - spec/models/brokerage_authorization_refresh_confirmation_spec.rb
263
267
  - spec/models/brokerage_authorization_spec.rb
264
268
  - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
@@ -295,6 +299,7 @@ files:
295
299
  - spec/models/manual_trade_symbol_spec.rb
296
300
  - spec/models/model400_failed_request_response_spec.rb
297
301
  - spec/models/model401_failed_request_response_spec.rb
302
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
298
303
  - spec/models/model402_brokerage_auth_disabled_response_spec.rb
299
304
  - spec/models/model403_failed_request_response_spec.rb
300
305
  - spec/models/model403_feature_not_enabled_response_spec.rb
@@ -312,6 +317,7 @@ files:
312
317
  - spec/models/net_contributions_spec.rb
313
318
  - spec/models/net_dividend_spec.rb
314
319
  - spec/models/notional_value_spec.rb
320
+ - spec/models/option_brokerage_symbol_spec.rb
315
321
  - spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
316
322
  - spec/models/option_chain_inner_chain_per_root_inner_spec.rb
317
323
  - spec/models/option_chain_inner_spec.rb
@@ -432,6 +438,7 @@ test_files:
432
438
  - spec/models/exchange_rate_pairs_spec.rb
433
439
  - spec/models/user_settings_spec.rb
434
440
  - spec/models/portfolio_group_info_spec.rb
441
+ - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
435
442
  - spec/models/account_order_record_spec.rb
436
443
  - spec/models/manual_trade_spec.rb
437
444
  - spec/models/model400_failed_request_response_spec.rb
@@ -445,6 +452,7 @@ test_files:
445
452
  - spec/models/sub_period_return_rate_spec.rb
446
453
  - spec/models/monthly_dividends_spec.rb
447
454
  - spec/models/model_portfolio_security_spec.rb
455
+ - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
448
456
  - spec/models/account_balance_total_spec.rb
449
457
  - spec/models/strategy_order_place_spec.rb
450
458
  - spec/models/model_asset_class_target_spec.rb
@@ -470,6 +478,7 @@ test_files:
470
478
  - spec/models/connection_portal_version_spec.rb
471
479
  - spec/models/account_order_record_status_spec.rb
472
480
  - spec/models/snap_trade_api_disclaimer_accept_status_spec.rb
481
+ - spec/models/option_brokerage_symbol_spec.rb
473
482
  - spec/models/snap_trade_login_user_request_body_spec.rb
474
483
  - spec/models/brokerage_authorization_type_type_spec.rb
475
484
  - spec/models/portfolio_group_settings_spec.rb