snaptrade 1.17.2 → 1.17.4

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -7
  4. data/docs/AccountInformationApi.md +8 -4
  5. data/docs/AuthenticationApi.md +6 -4
  6. data/docs/Model500UnexpectedExceptionResponse.md +22 -0
  7. data/docs/OptionsApi.md +6 -6
  8. data/docs/OptionsPlaceOptionStrategyRequest.md +3 -3
  9. data/docs/ReferenceDataApi.md +6 -4
  10. data/docs/SnapTradeLoginUserRequestBody.md +4 -4
  11. data/docs/SnapTradeRegisterUserRequestBody.md +1 -3
  12. data/docs/StrategyOrderRecord.md +2 -2
  13. data/docs/TransactionsAndReportingApi.md +1 -1
  14. data/lib/snaptrade/api/account_information_api.rb +12 -4
  15. data/lib/snaptrade/api/authentication_api.rb +22 -14
  16. data/lib/snaptrade/api/options_api.rb +8 -8
  17. data/lib/snaptrade/api/reference_data_api.rb +8 -4
  18. data/lib/snaptrade/api/transactions_and_reporting_api.rb +4 -4
  19. data/lib/snaptrade/models/model500_unexpected_exception_response.rb +239 -0
  20. data/lib/snaptrade/models/options_place_option_strategy_request.rb +2 -2
  21. data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +4 -0
  22. data/lib/snaptrade/models/snap_trade_register_user_request_body.rb +4 -14
  23. data/lib/snaptrade/models/strategy_order_record.rb +2 -2
  24. data/lib/snaptrade/version.rb +1 -1
  25. data/lib/snaptrade.rb +1 -4
  26. data/spec/api/account_information_api_spec.rb +3 -1
  27. data/spec/api/authentication_api_spec.rb +3 -0
  28. data/spec/api/reference_data_api_spec.rb +2 -1
  29. data/spec/api/transactions_and_reporting_api_spec.rb +1 -1
  30. data/spec/models/model500_unexpected_exception_response_spec.rb +42 -0
  31. data/spec/models/snap_trade_register_user_request_body_spec.rb +0 -6
  32. metadata +6 -18
  33. data/docs/OrderStrategyExecuteBodyOrderType.md +0 -15
  34. data/docs/OrderStrategyExecuteBodyTimeInForce.md +0 -15
  35. data/docs/StrategyOrderRecordOrderType.md +0 -15
  36. data/docs/StrategyOrderRecordTimeInForce.md +0 -15
  37. data/lib/snaptrade/models/order_strategy_execute_body_order_type.rb +0 -40
  38. data/lib/snaptrade/models/order_strategy_execute_body_time_in_force.rb +0 -38
  39. data/lib/snaptrade/models/strategy_order_record_order_type.rb +0 -40
  40. data/lib/snaptrade/models/strategy_order_record_time_in_force.rb +0 -38
  41. data/spec/models/order_strategy_execute_body_order_type_spec.rb +0 -24
  42. data/spec/models/order_strategy_execute_body_time_in_force_spec.rb +0 -24
  43. data/spec/models/strategy_order_record_order_type_spec.rb +0 -24
  44. data/spec/models/strategy_order_record_time_in_force_spec.rb +0 -24
@@ -164,20 +164,23 @@ module SnapTrade
164
164
  end
165
165
 
166
166
 
167
- # List of all security types.
167
+ # List of all security types
168
+ # List security types available on SnapTrade.
168
169
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
169
170
  def get_security_types(extra: {})
170
171
  data, _status_code, _headers = get_security_types_with_http_info_impl(extra)
171
172
  data
172
173
  end
173
174
 
174
- # List of all security types.
175
+ # List of all security types
176
+ # List security types available on SnapTrade.
175
177
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
176
178
  def get_security_types_with_http_info(extra: {})
177
179
  get_security_types_with_http_info_impl(extra)
178
180
  end
179
181
 
180
- # List of all security types.
182
+ # List of all security types
183
+ # List security types available on SnapTrade.
181
184
  # @param [Hash] opts the optional parameters
182
185
  # @return [Array<SecurityType>]
183
186
  def get_security_types_impl(opts = {})
@@ -185,7 +188,8 @@ module SnapTrade
185
188
  data
186
189
  end
187
190
 
188
- # List of all security types.
191
+ # List of all security types
192
+ # List security types available on SnapTrade.
189
193
  # @param [Hash] opts the optional parameters
190
194
  # @return [Array<(Array<SecurityType>, Integer, Hash)>] Array<SecurityType> data, response status code and response headers
191
195
  def get_security_types_with_http_info_impl(opts = {})
@@ -19,7 +19,7 @@ module SnapTrade
19
19
  end
20
20
 
21
21
  # Get transaction history for a user
22
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for automatic calls for better performance
22
+ # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
23
23
  # @param user_id [String]
24
24
  # @param user_secret [String]
25
25
  # @param start_date [Date]
@@ -39,7 +39,7 @@ module SnapTrade
39
39
  end
40
40
 
41
41
  # Get transaction history for a user
42
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for automatic calls for better performance
42
+ # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
43
43
  # @param user_id [String]
44
44
  # @param user_secret [String]
45
45
  # @param start_date [Date]
@@ -58,7 +58,7 @@ module SnapTrade
58
58
  end
59
59
 
60
60
  # Get transaction history for a user
61
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for automatic calls for better performance
61
+ # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
62
62
  # @param user_id [String]
63
63
  # @param user_secret [String]
64
64
  # @param [Hash] opts the optional parameters
@@ -74,7 +74,7 @@ module SnapTrade
74
74
  end
75
75
 
76
76
  # Get transaction history for a user
77
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for automatic calls for better performance
77
+ # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
78
78
  # @param user_id [String]
79
79
  # @param user_secret [String]
80
80
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,239 @@
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
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module SnapTrade
15
+ # Example for a response that failed for unexpected reasons
16
+ class Model500UnexpectedExceptionResponse
17
+ attr_accessor :detail
18
+
19
+ attr_accessor :status_code
20
+
21
+ attr_accessor :code
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'detail' => :'detail',
27
+ :'status_code' => :'status_code',
28
+ :'code' => :'code'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'detail' => :'Object',
41
+ :'status_code' => :'Object',
42
+ :'code' => :'Object'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ :'detail',
50
+ :'status_code',
51
+ :'code'
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::Model500UnexpectedExceptionResponse` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::Model500UnexpectedExceptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'detail')
71
+ self.detail = attributes[:'detail']
72
+ end
73
+
74
+ if attributes.key?(:'status_code')
75
+ self.status_code = attributes[:'status_code']
76
+ end
77
+
78
+ if attributes.key?(:'code')
79
+ self.code = attributes[:'code']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = Array.new
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ detail == o.detail &&
102
+ status_code == o.status_code &&
103
+ code == o.code
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Integer] Hash code
114
+ def hash
115
+ [detail, status_code, code].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def self.build_from_hash(attributes)
122
+ new.build_from_hash(attributes)
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ self.class.openapi_types.each_pair do |key, type|
132
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
+ self.send("#{key}=", nil)
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :Time
155
+ Time.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ # models (e.g. Pet) or oneOf
186
+ klass = SnapTrade.const_get(type)
187
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -37,8 +37,8 @@ module SnapTrade
37
37
  # Attribute type mapping.
38
38
  def self.openapi_types
39
39
  {
40
- :'order_type' => :'OrderStrategyExecuteBodyOrderType',
41
- :'time_in_force' => :'OrderStrategyExecuteBodyTimeInForce',
40
+ :'order_type' => :'OrderType',
41
+ :'time_in_force' => :'TimeInForce',
42
42
  :'price' => :'Float'
43
43
  }
44
44
  end
@@ -14,12 +14,16 @@ require 'time'
14
14
  module SnapTrade
15
15
  # Data to login a user via SnapTrade Partner
16
16
  class SnapTradeLoginUserRequestBody
17
+ # Slug of the brokerage to connect the user to
17
18
  attr_accessor :broker
18
19
 
20
+ # When set to True, user will be redirected back to the partner's site instead of the connection portal
19
21
  attr_accessor :immediate_redirect
20
22
 
23
+ # URL to redirect the user to after the user connects their brokerage account
21
24
  attr_accessor :custom_redirect
22
25
 
26
+ # The UUID of the brokerage connection to be reconnected
23
27
  attr_accessor :reconnect
24
28
 
25
29
  attr_accessor :connection_type
@@ -17,14 +17,10 @@ module SnapTrade
17
17
  # SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it's unique to a user
18
18
  attr_accessor :user_id
19
19
 
20
- # Open SSH RSA public key
21
- attr_accessor :rsa_public_key
22
-
23
20
  # Attribute mapping from ruby-style variable name to JSON key.
24
21
  def self.attribute_map
25
22
  {
26
- :'user_id' => :'userId',
27
- :'rsa_public_key' => :'rsaPublicKey'
23
+ :'user_id' => :'userId'
28
24
  }
29
25
  end
30
26
 
@@ -36,8 +32,7 @@ module SnapTrade
36
32
  # Attribute type mapping.
37
33
  def self.openapi_types
38
34
  {
39
- :'user_id' => :'String',
40
- :'rsa_public_key' => :'String'
35
+ :'user_id' => :'String'
41
36
  }
42
37
  end
43
38
 
@@ -65,10 +60,6 @@ module SnapTrade
65
60
  if attributes.key?(:'user_id')
66
61
  self.user_id = attributes[:'user_id']
67
62
  end
68
-
69
- if attributes.key?(:'rsa_public_key')
70
- self.rsa_public_key = attributes[:'rsa_public_key']
71
- end
72
63
  end
73
64
 
74
65
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -89,8 +80,7 @@ module SnapTrade
89
80
  def ==(o)
90
81
  return true if self.equal?(o)
91
82
  self.class == o.class &&
92
- user_id == o.user_id &&
93
- rsa_public_key == o.rsa_public_key
83
+ user_id == o.user_id
94
84
  end
95
85
 
96
86
  # @see the `==` method
@@ -102,7 +92,7 @@ module SnapTrade
102
92
  # Calculates hash code according to all attributes.
103
93
  # @return [Integer] Hash code
104
94
  def hash
105
- [user_id, rsa_public_key].hash
95
+ [user_id].hash
106
96
  end
107
97
 
108
98
  # Builds the object from hash
@@ -70,8 +70,8 @@ module SnapTrade
70
70
  :'filled_quantity' => :'Float',
71
71
  :'open_quantity' => :'Float',
72
72
  :'closed_quantity' => :'Float',
73
- :'order_type' => :'StrategyOrderRecordOrderType',
74
- :'time_in_force' => :'StrategyOrderRecordTimeInForce',
73
+ :'order_type' => :'OrderType',
74
+ :'time_in_force' => :'TimeInForce',
75
75
  :'limit_price' => :'Float',
76
76
  :'execution_price' => :'Float',
77
77
  :'time_placed' => :'String',
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.17.2'
12
+ VERSION = '1.17.4'
13
13
  end
data/lib/snaptrade.rb CHANGED
@@ -62,6 +62,7 @@ require 'snaptrade/models/model400_failed_request_response'
62
62
  require 'snaptrade/models/model401_failed_request_response'
63
63
  require 'snaptrade/models/model403_failed_request_response'
64
64
  require 'snaptrade/models/model404_failed_request_response'
65
+ require 'snaptrade/models/model500_unexpected_exception_response'
65
66
  require 'snaptrade/models/model_asset_class'
66
67
  require 'snaptrade/models/model_asset_class_details'
67
68
  require 'snaptrade/models/model_asset_class_target'
@@ -87,8 +88,6 @@ require 'snaptrade/models/options_place_option_strategy_request'
87
88
  require 'snaptrade/models/options_position'
88
89
  require 'snaptrade/models/options_position_currency'
89
90
  require 'snaptrade/models/options_symbol'
90
- require 'snaptrade/models/order_strategy_execute_body_order_type'
91
- require 'snaptrade/models/order_strategy_execute_body_time_in_force'
92
91
  require 'snaptrade/models/order_type'
93
92
  require 'snaptrade/models/partner_data'
94
93
  require 'snaptrade/models/past_value'
@@ -117,9 +116,7 @@ require 'snaptrade/models/strategy_order_place'
117
116
  require 'snaptrade/models/strategy_order_place_orders_inner'
118
117
  require 'snaptrade/models/strategy_order_place_orders_inner_legs_inner'
119
118
  require 'snaptrade/models/strategy_order_record'
120
- require 'snaptrade/models/strategy_order_record_order_type'
121
119
  require 'snaptrade/models/strategy_order_record_status'
122
- require 'snaptrade/models/strategy_order_record_time_in_force'
123
120
  require 'snaptrade/models/strategy_quotes'
124
121
  require 'snaptrade/models/strategy_quotes_greek'
125
122
  require 'snaptrade/models/strategy_type'
@@ -43,6 +43,7 @@ describe 'AccountInformationApi' do
43
43
 
44
44
  # unit tests for get_user_account_balance
45
45
  # List account balances
46
+ # A list of account balances for the specified account (one per currency that the account holds).
46
47
  # @param user_id
47
48
  # @param user_secret
48
49
  # @param account_id The ID of the account to get balances.
@@ -69,6 +70,7 @@ describe 'AccountInformationApi' do
69
70
 
70
71
  # unit tests for get_user_account_orders
71
72
  # Get history of orders placed in account
73
+ # Fetch all recent orders from a user&#39;s account.
72
74
  # @param user_id
73
75
  # @param user_secret
74
76
  # @param account_id The ID of the account to get orders.
@@ -95,7 +97,7 @@ describe 'AccountInformationApi' do
95
97
  end
96
98
 
97
99
  # unit tests for get_user_holdings
98
- # List balances, positions and orders for the specified account.
100
+ # List balances, positions and orders for the specified account
99
101
  # @param account_id The ID of the account to fetch holdings for.
100
102
  # @param user_id
101
103
  # @param user_secret
@@ -30,6 +30,7 @@ describe 'AuthenticationApi' do
30
30
 
31
31
  # unit tests for delete_snap_trade_user
32
32
  # Delete SnapTrade user
33
+ # Deletes a user you&#39;ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
33
34
  # @param user_id
34
35
  # @param [Hash] opts the optional parameters
35
36
  # @return [DeleteUserResponse]
@@ -53,6 +54,7 @@ describe 'AuthenticationApi' do
53
54
 
54
55
  # unit tests for list_snap_trade_users
55
56
  # List SnapTrade users
57
+ # Returns a list of users you&#39;ve registered over the SnapTrade API.
56
58
  # @param [Hash] opts the optional parameters
57
59
  # @return [Array<String>]
58
60
  describe 'list_snap_trade_users test' do
@@ -63,6 +65,7 @@ describe 'AuthenticationApi' do
63
65
 
64
66
  # unit tests for login_snap_trade_user
65
67
  # Login user &amp; generate connection link
68
+ # Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
66
69
  # @param user_id
67
70
  # @param user_secret
68
71
  # @param [Hash] opts the optional parameters
@@ -50,7 +50,8 @@ describe 'ReferenceDataApi' do
50
50
  end
51
51
 
52
52
  # unit tests for get_security_types
53
- # List of all security types.
53
+ # List of all security types
54
+ # List security types available on SnapTrade.
54
55
  # @param [Hash] opts the optional parameters
55
56
  # @return [Array<SecurityType>]
56
57
  describe 'get_security_types test' do
@@ -30,7 +30,7 @@ describe 'TransactionsAndReportingApi' do
30
30
 
31
31
  # unit tests for get_activities
32
32
  # Get transaction history for a user
33
- # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for automatic calls for better performance
33
+ # Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
34
34
  # @param user_id
35
35
  # @param user_secret
36
36
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,42 @@
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
+
9
+ =end
10
+
11
+ require 'spec_helper'
12
+ require 'json'
13
+ require 'date'
14
+
15
+ # Unit tests for SnapTrade::Model500UnexpectedExceptionResponse
16
+ describe SnapTrade::Model500UnexpectedExceptionResponse do
17
+ let(:instance) { SnapTrade::Model500UnexpectedExceptionResponse.new }
18
+
19
+ describe 'test an instance of Model500UnexpectedExceptionResponse' do
20
+ it 'should create an instance of Model500UnexpectedExceptionResponse' do
21
+ expect(instance).to be_instance_of(SnapTrade::Model500UnexpectedExceptionResponse)
22
+ end
23
+ end
24
+ describe 'test attribute "detail"' do
25
+ it 'should work' do
26
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "status_code"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "code"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
39
+ end
40
+ end
41
+
42
+ end
@@ -27,10 +27,4 @@ describe SnapTrade::SnapTradeRegisterUserRequestBody do
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "rsa_public_key"' do
31
- it 'should work' do
32
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
33
- end
34
- end
35
-
36
30
  end