turnkey_client 0.0.8 → 0.0.12

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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/features_api.rb +4 -4
  3. data/lib/turnkey_client/api/organizations_api.rb +118 -2
  4. data/lib/turnkey_client/api/private_keys_api.rb +2 -2
  5. data/lib/turnkey_client/api/user_auth_api.rb +348 -0
  6. data/lib/turnkey_client/api/users_api.rb +0 -232
  7. data/lib/turnkey_client/api/wallets_api.rb +60 -2
  8. data/lib/turnkey_client/models/activity_type.rb +6 -0
  9. data/lib/turnkey_client/models/address_format.rb +29 -0
  10. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +241 -0
  11. data/lib/turnkey_client/models/create_read_write_session_request.rb +2 -2
  12. data/lib/turnkey_client/models/create_read_write_session_result_v2.rb +286 -0
  13. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +292 -0
  14. data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
  15. data/lib/turnkey_client/models/create_sub_organization_result_v7.rb +230 -0
  16. data/lib/turnkey_client/models/credential_type.rb +1 -0
  17. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +206 -0
  18. data/lib/turnkey_client/models/delete_sub_organization_request.rb +288 -0
  19. data/lib/turnkey_client/models/delete_sub_organization_result.rb +211 -0
  20. data/lib/turnkey_client/models/email_auth_intent.rb +14 -4
  21. data/lib/turnkey_client/models/email_auth_intent_v2.rb +14 -4
  22. data/lib/turnkey_client/models/feature_name.rb +2 -0
  23. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +1 -1
  24. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +240 -0
  25. data/lib/turnkey_client/models/get_verified_sub_org_ids_response.rb +213 -0
  26. data/lib/turnkey_client/models/init_otp_auth_intent.rb +264 -0
  27. data/lib/turnkey_client/models/init_otp_auth_request.rb +288 -0
  28. data/lib/turnkey_client/models/init_otp_auth_result.rb +211 -0
  29. data/lib/turnkey_client/models/intent.rb +58 -4
  30. data/lib/turnkey_client/models/otp_auth_intent.rb +266 -0
  31. data/lib/turnkey_client/models/otp_auth_request.rb +288 -0
  32. data/lib/turnkey_client/models/otp_auth_result.rb +231 -0
  33. data/lib/turnkey_client/models/result.rb +58 -4
  34. data/lib/turnkey_client/models/root_user_params_v4.rb +282 -0
  35. data/lib/turnkey_client/models/sms_customization_params.rb +206 -0
  36. data/lib/turnkey_client/models/transaction_type.rb +2 -1
  37. data/lib/turnkey_client/models/update_user_intent.rb +14 -4
  38. data/lib/turnkey_client/models/update_wallet_intent.rb +221 -0
  39. data/lib/turnkey_client/models/update_wallet_request.rb +288 -0
  40. data/lib/turnkey_client/models/update_wallet_result.rb +211 -0
  41. data/lib/turnkey_client/models/user.rb +11 -1
  42. data/lib/turnkey_client/models/wallet_account.rb +16 -1
  43. data/lib/turnkey_client/version.rb +1 -1
  44. data/lib/turnkey_client.rb +20 -0
  45. data/turnkey_client-0.0.8.gem +0 -0
  46. data/turnkey_client-0.0.9.gem +0 -0
  47. metadata +24 -2
@@ -0,0 +1,288 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class OtpAuthRequest
15
+ attr_accessor :type
16
+
17
+ # Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
18
+ attr_accessor :timestamp_ms
19
+
20
+ # Unique identifier for a given Organization.
21
+ attr_accessor :organization_id
22
+
23
+ attr_accessor :parameters
24
+
25
+ class EnumAttributeValidator
26
+ attr_reader :datatype
27
+ attr_reader :allowable_values
28
+
29
+ def initialize(datatype, allowable_values)
30
+ @allowable_values = allowable_values.map do |value|
31
+ case datatype.to_s
32
+ when /Integer/i
33
+ value.to_i
34
+ when /Float/i
35
+ value.to_f
36
+ else
37
+ value
38
+ end
39
+ end
40
+ end
41
+
42
+ def valid?(value)
43
+ !value || allowable_values.include?(value)
44
+ end
45
+ end
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'type' => :'type',
51
+ :'timestamp_ms' => :'timestampMs',
52
+ :'organization_id' => :'organizationId',
53
+ :'parameters' => :'parameters'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'type' => :'Object',
61
+ :'timestamp_ms' => :'Object',
62
+ :'organization_id' => :'Object',
63
+ :'parameters' => :'Object'
64
+ }
65
+ end
66
+
67
+ # List of attributes with nullable: true
68
+ def self.openapi_nullable
69
+ Set.new([
70
+ ])
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ if (!attributes.is_a?(Hash))
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::OtpAuthRequest` initialize method"
78
+ end
79
+
80
+ # check to see if the attribute exists and convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!self.class.attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::OtpAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'type')
89
+ self.type = attributes[:'type']
90
+ end
91
+
92
+ if attributes.key?(:'timestamp_ms')
93
+ self.timestamp_ms = attributes[:'timestamp_ms']
94
+ end
95
+
96
+ if attributes.key?(:'organization_id')
97
+ self.organization_id = attributes[:'organization_id']
98
+ end
99
+
100
+ if attributes.key?(:'parameters')
101
+ self.parameters = attributes[:'parameters']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = Array.new
109
+ if @type.nil?
110
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
111
+ end
112
+
113
+ if @timestamp_ms.nil?
114
+ invalid_properties.push('invalid value for "timestamp_ms", timestamp_ms cannot be nil.')
115
+ end
116
+
117
+ if @organization_id.nil?
118
+ invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
119
+ end
120
+
121
+ if @parameters.nil?
122
+ invalid_properties.push('invalid value for "parameters", parameters cannot be nil.')
123
+ end
124
+
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ return false if @type.nil?
132
+ type_validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_OTP_AUTH'])
133
+ return false unless type_validator.valid?(@type)
134
+ return false if @timestamp_ms.nil?
135
+ return false if @organization_id.nil?
136
+ return false if @parameters.nil?
137
+ true
138
+ end
139
+
140
+ # Custom attribute writer method checking allowed values (enum).
141
+ # @param [Object] type Object to be assigned
142
+ def type=(type)
143
+ validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_OTP_AUTH'])
144
+ unless validator.valid?(type)
145
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
146
+ end
147
+ @type = type
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ type == o.type &&
156
+ timestamp_ms == o.timestamp_ms &&
157
+ organization_id == o.organization_id &&
158
+ parameters == o.parameters
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [type, timestamp_ms, organization_id, parameters].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ new.build_from_hash(attributes)
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ self.class.openapi_types.each_pair do |key, type|
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the attribute
188
+ # is documented as an array but the input is not
189
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
190
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ end
192
+ elsif !attributes[self.class.attribute_map[key]].nil?
193
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
195
+ self.send("#{key}=", nil)
196
+ end
197
+ end
198
+
199
+ self
200
+ end
201
+
202
+ # Deserializes the data based on type
203
+ # @param string type Data type
204
+ # @param string value Value to be deserialized
205
+ # @return [Object] Deserialized data
206
+ def _deserialize(type, value)
207
+ case type.to_sym
208
+ when :DateTime
209
+ DateTime.parse(value)
210
+ when :Date
211
+ Date.parse(value)
212
+ when :String
213
+ value.to_s
214
+ when :Integer
215
+ value.to_i
216
+ when :Float
217
+ value.to_f
218
+ when :Boolean
219
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
220
+ true
221
+ else
222
+ false
223
+ end
224
+ when :Object
225
+ # generic object (usually a Hash), return directly
226
+ value
227
+ when /\AArray<(?<inner_type>.+)>\z/
228
+ inner_type = Regexp.last_match[:inner_type]
229
+ value.map { |v| _deserialize(inner_type, v) }
230
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
231
+ k_type = Regexp.last_match[:k_type]
232
+ v_type = Regexp.last_match[:v_type]
233
+ {}.tap do |hash|
234
+ value.each do |k, v|
235
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
236
+ end
237
+ end
238
+ else # model
239
+ TurnkeyClient.const_get(type).build_from_hash(value)
240
+ end
241
+ end
242
+
243
+ # Returns the string representation of the object
244
+ # @return [String] String presentation of the object
245
+ def to_s
246
+ to_hash.to_s
247
+ end
248
+
249
+ # to_body is an alias to to_hash (backward compatibility)
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_body
252
+ to_hash
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ # Outputs non-array value in the form of hash
272
+ # For object, use to_hash. Otherwise, just return the value
273
+ # @param [Object] value Any valid value
274
+ # @return [Hash] Returns the value in the form of hash
275
+ def _to_hash(value)
276
+ if value.is_a?(Array)
277
+ value.compact.map { |v| _to_hash(v) }
278
+ elsif value.is_a?(Hash)
279
+ {}.tap do |hash|
280
+ value.each { |k, v| hash[k] = _to_hash(v) }
281
+ end
282
+ elsif value.respond_to? :to_hash
283
+ value.to_hash
284
+ else
285
+ value
286
+ end
287
+ end end
288
+ end
@@ -0,0 +1,231 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class OtpAuthResult
15
+ # Unique identifier for the authenticating User.
16
+ attr_accessor :user_id
17
+
18
+ # Unique identifier for the created API key.
19
+ attr_accessor :api_key_id
20
+
21
+ # HPKE encrypted credential bundle
22
+ attr_accessor :credential_bundle
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'user_id' => :'userId',
28
+ :'api_key_id' => :'apiKeyId',
29
+ :'credential_bundle' => :'credentialBundle'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'user_id' => :'Object',
37
+ :'api_key_id' => :'Object',
38
+ :'credential_bundle' => :'Object'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::OtpAuthResult` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::OtpAuthResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'user_id')
64
+ self.user_id = attributes[:'user_id']
65
+ end
66
+
67
+ if attributes.key?(:'api_key_id')
68
+ self.api_key_id = attributes[:'api_key_id']
69
+ end
70
+
71
+ if attributes.key?(:'credential_bundle')
72
+ self.credential_bundle = attributes[:'credential_bundle']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @user_id.nil?
81
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ return false if @user_id.nil?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ user_id == o.user_id &&
100
+ api_key_id == o.api_key_id &&
101
+ credential_bundle == o.credential_bundle
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [user_id, api_key_id, credential_bundle].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ new.build_from_hash(attributes)
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.openapi_types.each_pair do |key, type|
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
133
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
+ self.send("#{key}=", nil)
139
+ end
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :DateTime
152
+ DateTime.parse(value)
153
+ when :Date
154
+ Date.parse(value)
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :Boolean
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else # model
182
+ TurnkeyClient.const_get(type).build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ if value.nil?
205
+ is_nullable = self.class.openapi_nullable.include?(attr)
206
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
207
+ end
208
+
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end end
231
+ end
@@ -132,6 +132,18 @@ module TurnkeyClient
132
132
 
133
133
  attr_accessor :delete_wallets_result
134
134
 
135
+ attr_accessor :create_read_write_session_result_v2
136
+
137
+ attr_accessor :delete_sub_organization_result
138
+
139
+ attr_accessor :init_otp_auth_result
140
+
141
+ attr_accessor :otp_auth_result
142
+
143
+ attr_accessor :create_sub_organization_result_v7
144
+
145
+ attr_accessor :update_wallet_result
146
+
135
147
  # Attribute mapping from ruby-style variable name to JSON key.
136
148
  def self.attribute_map
137
149
  {
@@ -194,7 +206,13 @@ module TurnkeyClient
194
206
  :'create_read_write_session_result' => :'createReadWriteSessionResult',
195
207
  :'create_sub_organization_result_v6' => :'createSubOrganizationResultV6',
196
208
  :'delete_private_keys_result' => :'deletePrivateKeysResult',
197
- :'delete_wallets_result' => :'deleteWalletsResult'
209
+ :'delete_wallets_result' => :'deleteWalletsResult',
210
+ :'create_read_write_session_result_v2' => :'createReadWriteSessionResultV2',
211
+ :'delete_sub_organization_result' => :'deleteSubOrganizationResult',
212
+ :'init_otp_auth_result' => :'initOtpAuthResult',
213
+ :'otp_auth_result' => :'otpAuthResult',
214
+ :'create_sub_organization_result_v7' => :'createSubOrganizationResultV7',
215
+ :'update_wallet_result' => :'updateWalletResult'
198
216
  }
199
217
  end
200
218
 
@@ -260,7 +278,13 @@ module TurnkeyClient
260
278
  :'create_read_write_session_result' => :'Object',
261
279
  :'create_sub_organization_result_v6' => :'Object',
262
280
  :'delete_private_keys_result' => :'Object',
263
- :'delete_wallets_result' => :'Object'
281
+ :'delete_wallets_result' => :'Object',
282
+ :'create_read_write_session_result_v2' => :'Object',
283
+ :'delete_sub_organization_result' => :'Object',
284
+ :'init_otp_auth_result' => :'Object',
285
+ :'otp_auth_result' => :'Object',
286
+ :'create_sub_organization_result_v7' => :'Object',
287
+ :'update_wallet_result' => :'Object'
264
288
  }
265
289
  end
266
290
 
@@ -524,6 +548,30 @@ module TurnkeyClient
524
548
  if attributes.key?(:'delete_wallets_result')
525
549
  self.delete_wallets_result = attributes[:'delete_wallets_result']
526
550
  end
551
+
552
+ if attributes.key?(:'create_read_write_session_result_v2')
553
+ self.create_read_write_session_result_v2 = attributes[:'create_read_write_session_result_v2']
554
+ end
555
+
556
+ if attributes.key?(:'delete_sub_organization_result')
557
+ self.delete_sub_organization_result = attributes[:'delete_sub_organization_result']
558
+ end
559
+
560
+ if attributes.key?(:'init_otp_auth_result')
561
+ self.init_otp_auth_result = attributes[:'init_otp_auth_result']
562
+ end
563
+
564
+ if attributes.key?(:'otp_auth_result')
565
+ self.otp_auth_result = attributes[:'otp_auth_result']
566
+ end
567
+
568
+ if attributes.key?(:'create_sub_organization_result_v7')
569
+ self.create_sub_organization_result_v7 = attributes[:'create_sub_organization_result_v7']
570
+ end
571
+
572
+ if attributes.key?(:'update_wallet_result')
573
+ self.update_wallet_result = attributes[:'update_wallet_result']
574
+ end
527
575
  end
528
576
 
529
577
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -603,7 +651,13 @@ module TurnkeyClient
603
651
  create_read_write_session_result == o.create_read_write_session_result &&
604
652
  create_sub_organization_result_v6 == o.create_sub_organization_result_v6 &&
605
653
  delete_private_keys_result == o.delete_private_keys_result &&
606
- delete_wallets_result == o.delete_wallets_result
654
+ delete_wallets_result == o.delete_wallets_result &&
655
+ create_read_write_session_result_v2 == o.create_read_write_session_result_v2 &&
656
+ delete_sub_organization_result == o.delete_sub_organization_result &&
657
+ init_otp_auth_result == o.init_otp_auth_result &&
658
+ otp_auth_result == o.otp_auth_result &&
659
+ create_sub_organization_result_v7 == o.create_sub_organization_result_v7 &&
660
+ update_wallet_result == o.update_wallet_result
607
661
  end
608
662
 
609
663
  # @see the `==` method
@@ -615,7 +669,7 @@ module TurnkeyClient
615
669
  # Calculates hash code according to all attributes.
616
670
  # @return [Integer] Hash code
617
671
  def hash
618
- [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result].hash
672
+ [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result].hash
619
673
  end
620
674
 
621
675
  # Builds the object from hash