mx-platform-ruby 0.22.0 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -25
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +1 -1
- data/lib/mx-platform-ruby/api_client.rb +90 -55
- data/lib/mx-platform-ruby/api_error.rb +2 -1
- data/lib/mx-platform-ruby/configuration.rb +102 -26
- data/lib/mx-platform-ruby/models/account_create_request.rb +18 -18
- data/lib/mx-platform-ruby/models/account_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/account_number_response.rb +14 -18
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/account_owner_response.rb +14 -18
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/account_response.rb +14 -18
- data/lib/mx-platform-ruby/models/account_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/account_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/authorization_code_request.rb +14 -18
- data/lib/mx-platform-ruby/models/authorization_code_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/authorization_code_response.rb +14 -18
- data/lib/mx-platform-ruby/models/authorization_code_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/categories_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/category_create_request.rb +16 -18
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/category_response.rb +14 -18
- data/lib/mx-platform-ruby/models/category_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/category_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/challenge_response.rb +14 -18
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +14 -18
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +14 -18
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/credential_request.rb +14 -18
- data/lib/mx-platform-ruby/models/credential_response.rb +14 -18
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +14 -18
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +18 -18
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/holding_response.rb +14 -18
- data/lib/mx-platform-ruby/models/holding_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/image_option_response.rb +14 -18
- data/lib/mx-platform-ruby/models/institution_response.rb +14 -18
- data/lib/mx-platform-ruby/models/institution_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +20 -18
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +16 -18
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +24 -18
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/member_create_request.rb +18 -18
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/member_response.rb +14 -18
- data/lib/mx-platform-ruby/models/member_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/member_resume_request.rb +14 -18
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/member_status_response.rb +14 -18
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/member_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/members_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +14 -18
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/merchant_response.rb +14 -18
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +14 -18
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/option_response.rb +14 -18
- data/lib/mx-platform-ruby/models/pagination_response.rb +14 -18
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +14 -18
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +14 -18
- data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_account_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_accounts_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_create_request_body.rb +16 -18
- data/lib/mx-platform-ruby/models/spending_plan_iteration_item_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_iteration_items_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_iteration_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_iterations_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plan_response.rb +14 -18
- data/lib/mx-platform-ruby/models/spending_plans_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/statement_response.rb +14 -18
- data/lib/mx-platform-ruby/models/statement_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/statements_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tag_create_request.rb +16 -18
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tag_response.rb +14 -18
- data/lib/mx-platform-ruby/models/tag_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tag_update_request.rb +16 -18
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +18 -18
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tagging_response.rb +14 -18
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +16 -18
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tags_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tax_document_response.rb +14 -18
- data/lib/mx-platform-ruby/models/tax_document_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/tax_documents_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_response.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +18 -18
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +16 -18
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/user_create_request.rb +14 -18
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/user_response.rb +14 -18
- data/lib/mx-platform-ruby/models/user_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/user_update_request.rb +14 -18
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/users_response_body.rb +14 -18
- data/lib/mx-platform-ruby/models/widget_request.rb +16 -18
- data/lib/mx-platform-ruby/models/widget_request_body.rb +14 -18
- data/lib/mx-platform-ruby/models/widget_response.rb +14 -18
- data/lib/mx-platform-ruby/models/widget_response_body.rb +14 -18
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +1 -1
- data/mx-platform-ruby.gemspec +3 -2
- data/openapi/config.yml +1 -1
- data/openapitools.json +1 -1
- data/spec/api/mx_platform_api_spec.rb +114 -114
- data/spec/api_client_spec.rb +36 -1
- data/spec/configuration_spec.rb +41 -1
- data/spec/models/account_create_request_body_spec.rb +2 -2
- data/spec/models/account_create_request_spec.rb +22 -22
- data/spec/models/account_number_response_spec.rb +10 -10
- data/spec/models/account_numbers_response_body_spec.rb +3 -3
- data/spec/models/account_owner_response_spec.rb +15 -15
- data/spec/models/account_owners_response_body_spec.rb +3 -3
- data/spec/models/account_response_body_spec.rb +2 -2
- data/spec/models/account_response_spec.rb +57 -57
- data/spec/models/account_update_request_body_spec.rb +2 -2
- data/spec/models/account_update_request_spec.rb +22 -22
- data/spec/models/accounts_response_body_spec.rb +3 -3
- data/spec/models/authorization_code_request_body_spec.rb +2 -2
- data/spec/models/authorization_code_request_spec.rb +2 -2
- data/spec/models/authorization_code_response_body_spec.rb +2 -2
- data/spec/models/authorization_code_response_spec.rb +2 -2
- data/spec/models/categories_response_body_spec.rb +3 -3
- data/spec/models/category_create_request_body_spec.rb +2 -2
- data/spec/models/category_create_request_spec.rb +4 -4
- data/spec/models/category_response_body_spec.rb +2 -2
- data/spec/models/category_response_spec.rb +9 -9
- data/spec/models/category_update_request_body_spec.rb +2 -2
- data/spec/models/category_update_request_spec.rb +3 -3
- data/spec/models/challenge_response_spec.rb +8 -8
- data/spec/models/challenges_response_body_spec.rb +3 -3
- data/spec/models/connect_widget_request_body_spec.rb +2 -2
- data/spec/models/connect_widget_request_spec.rb +15 -15
- data/spec/models/connect_widget_response_body_spec.rb +2 -2
- data/spec/models/connect_widget_response_spec.rb +3 -3
- data/spec/models/credential_request_spec.rb +3 -3
- data/spec/models/credential_response_spec.rb +7 -7
- data/spec/models/credentials_response_body_spec.rb +3 -3
- data/spec/models/enhance_transaction_response_spec.rb +24 -24
- data/spec/models/enhance_transactions_request_body_spec.rb +2 -2
- data/spec/models/enhance_transactions_request_spec.rb +8 -8
- data/spec/models/enhance_transactions_response_body_spec.rb +2 -2
- data/spec/models/holding_response_body_spec.rb +2 -2
- data/spec/models/holding_response_spec.rb +20 -20
- data/spec/models/holdings_response_body_spec.rb +3 -3
- data/spec/models/image_option_response_spec.rb +4 -4
- data/spec/models/institution_response_body_spec.rb +2 -2
- data/spec/models/institution_response_spec.rb +15 -15
- data/spec/models/institutions_response_body_spec.rb +3 -3
- data/spec/models/managed_account_create_request_body_spec.rb +2 -2
- data/spec/models/managed_account_create_request_spec.rb +32 -32
- data/spec/models/managed_account_update_request_body_spec.rb +2 -2
- data/spec/models/managed_account_update_request_spec.rb +32 -32
- data/spec/models/managed_member_create_request_body_spec.rb +2 -2
- data/spec/models/managed_member_create_request_spec.rb +5 -5
- data/spec/models/managed_member_update_request_body_spec.rb +2 -2
- data/spec/models/managed_member_update_request_spec.rb +4 -4
- data/spec/models/managed_transaction_create_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_create_request_spec.rb +21 -21
- data/spec/models/managed_transaction_update_request_body_spec.rb +2 -2
- data/spec/models/managed_transaction_update_request_spec.rb +21 -21
- data/spec/models/member_create_request_body_spec.rb +6 -6
- data/spec/models/member_create_request_spec.rb +8 -8
- data/spec/models/member_response_body_spec.rb +2 -2
- data/spec/models/member_response_spec.rb +16 -16
- data/spec/models/member_resume_request_body_spec.rb +2 -2
- data/spec/models/member_resume_request_spec.rb +2 -2
- data/spec/models/member_status_response_body_spec.rb +2 -2
- data/spec/models/member_status_response_spec.rb +10 -10
- data/spec/models/member_update_request_body_spec.rb +2 -2
- data/spec/models/member_update_request_spec.rb +6 -6
- data/spec/models/members_response_body_spec.rb +3 -3
- data/spec/models/merchant_location_response_body_spec.rb +2 -2
- data/spec/models/merchant_location_response_spec.rb +13 -13
- data/spec/models/merchant_response_body_spec.rb +2 -2
- data/spec/models/merchant_response_spec.rb +7 -7
- data/spec/models/merchants_response_body_spec.rb +3 -3
- data/spec/models/o_auth_window_response_body_spec.rb +2 -2
- data/spec/models/o_auth_window_response_spec.rb +3 -3
- data/spec/models/option_response_spec.rb +3 -3
- data/spec/models/pagination_response_spec.rb +5 -5
- data/spec/models/payment_processor_authorization_code_request_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_request_spec.rb +4 -4
- data/spec/models/payment_processor_authorization_code_response_body_spec.rb +2 -2
- data/spec/models/payment_processor_authorization_code_response_spec.rb +2 -2
- data/spec/models/spending_plan_account_response_spec.rb +8 -8
- data/spec/models/spending_plan_accounts_response_spec.rb +3 -3
- data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +6 -6
- data/spec/models/spending_plan_iteration_item_response_spec.rb +13 -13
- data/spec/models/spending_plan_iteration_items_response_body_spec.rb +3 -3
- data/spec/models/spending_plan_iteration_response_spec.rb +9 -9
- data/spec/models/spending_plan_iterations_response_spec.rb +3 -3
- data/spec/models/spending_plan_response_spec.rb +6 -6
- data/spec/models/spending_plans_response_body_spec.rb +3 -3
- data/spec/models/statement_response_body_spec.rb +2 -2
- data/spec/models/statement_response_spec.rb +9 -9
- data/spec/models/statements_response_body_spec.rb +3 -3
- data/spec/models/tag_create_request_body_spec.rb +2 -2
- data/spec/models/tag_create_request_spec.rb +2 -2
- data/spec/models/tag_response_body_spec.rb +2 -2
- data/spec/models/tag_response_spec.rb +4 -4
- data/spec/models/tag_update_request_body_spec.rb +2 -2
- data/spec/models/tag_update_request_spec.rb +2 -2
- data/spec/models/tagging_create_request_body_spec.rb +2 -2
- data/spec/models/tagging_create_request_spec.rb +3 -3
- data/spec/models/tagging_response_body_spec.rb +2 -2
- data/spec/models/tagging_response_spec.rb +6 -6
- data/spec/models/tagging_update_request_body_spec.rb +2 -2
- data/spec/models/tagging_update_request_spec.rb +2 -2
- data/spec/models/taggings_response_body_spec.rb +3 -3
- data/spec/models/tags_response_body_spec.rb +3 -3
- data/spec/models/tax_document_response_body_spec.rb +2 -2
- data/spec/models/tax_document_response_spec.rb +11 -11
- data/spec/models/tax_documents_response_body_spec.rb +3 -3
- data/spec/models/transaction_response_body_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +44 -44
- data/spec/models/transaction_rule_create_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_create_request_spec.rb +4 -4
- data/spec/models/transaction_rule_response_body_spec.rb +2 -2
- data/spec/models/transaction_rule_response_spec.rb +8 -8
- data/spec/models/transaction_rule_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_rule_update_request_spec.rb +4 -4
- data/spec/models/transaction_rules_response_body_spec.rb +3 -3
- data/spec/models/transaction_update_request_body_spec.rb +2 -2
- data/spec/models/transaction_update_request_spec.rb +2 -2
- data/spec/models/transactions_response_body_spec.rb +3 -3
- data/spec/models/user_create_request_body_spec.rb +2 -2
- data/spec/models/user_create_request_spec.rb +5 -5
- data/spec/models/user_response_body_spec.rb +2 -2
- data/spec/models/user_response_spec.rb +6 -6
- data/spec/models/user_update_request_body_spec.rb +2 -2
- data/spec/models/user_update_request_spec.rb +5 -5
- data/spec/models/users_response_body_spec.rb +3 -3
- data/spec/models/widget_request_body_spec.rb +2 -2
- data/spec/models/widget_request_spec.rb +17 -17
- data/spec/models/widget_response_body_spec.rb +2 -2
- data/spec/models/widget_response_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- metadata +132 -118
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -217,6 +217,7 @@ module MxPlatformRuby
|
|
217
217
|
# Show invalid properties with the reasons. Usually used together with valid?
|
218
218
|
# @return Array for valid properties with the reasons
|
219
219
|
def list_invalid_properties
|
220
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
220
221
|
invalid_properties = Array.new
|
221
222
|
invalid_properties
|
222
223
|
end
|
@@ -224,6 +225,7 @@ module MxPlatformRuby
|
|
224
225
|
# Check to see if the all the properties in the model are valid
|
225
226
|
# @return true if the model is valid
|
226
227
|
def valid?
|
228
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
227
229
|
true
|
228
230
|
end
|
229
231
|
|
@@ -270,36 +272,30 @@ module MxPlatformRuby
|
|
270
272
|
# @param [Hash] attributes Model attributes in the form of hash
|
271
273
|
# @return [Object] Returns the model itself
|
272
274
|
def self.build_from_hash(attributes)
|
273
|
-
new.build_from_hash(attributes)
|
274
|
-
end
|
275
|
-
|
276
|
-
# Builds the object from hash
|
277
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
278
|
-
# @return [Object] Returns the model itself
|
279
|
-
def build_from_hash(attributes)
|
280
275
|
return nil unless attributes.is_a?(Hash)
|
281
|
-
|
282
|
-
|
283
|
-
|
276
|
+
attributes = attributes.transform_keys(&:to_sym)
|
277
|
+
transformed_hash = {}
|
278
|
+
openapi_types.each_pair do |key, type|
|
279
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
280
|
+
transformed_hash["#{key}"] = nil
|
284
281
|
elsif type =~ /\AArray<(.*)>/i
|
285
282
|
# check to ensure the input is an array given that the attribute
|
286
283
|
# is documented as an array but the input is not
|
287
|
-
if attributes[
|
288
|
-
|
284
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
285
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
289
286
|
end
|
290
|
-
elsif !attributes[
|
291
|
-
|
287
|
+
elsif !attributes[attribute_map[key]].nil?
|
288
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
292
289
|
end
|
293
290
|
end
|
294
|
-
|
295
|
-
self
|
291
|
+
new(transformed_hash)
|
296
292
|
end
|
297
293
|
|
298
294
|
# Deserializes the data based on type
|
299
295
|
# @param string type Data type
|
300
296
|
# @param string value Value to be deserialized
|
301
297
|
# @return [Object] Deserialized data
|
302
|
-
def _deserialize(type, value)
|
298
|
+
def self._deserialize(type, value)
|
303
299
|
case type.to_sym
|
304
300
|
when :Time
|
305
301
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,6 +65,7 @@ module MxPlatformRuby
|
|
65
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
68
69
|
invalid_properties = Array.new
|
69
70
|
invalid_properties
|
70
71
|
end
|
@@ -72,6 +73,7 @@ module MxPlatformRuby
|
|
72
73
|
# Check to see if the all the properties in the model are valid
|
73
74
|
# @return true if the model is valid
|
74
75
|
def valid?
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
75
77
|
true
|
76
78
|
end
|
77
79
|
|
@@ -99,36 +101,30 @@ module MxPlatformRuby
|
|
99
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
102
|
# @return [Object] Returns the model itself
|
101
103
|
def self.build_from_hash(attributes)
|
102
|
-
new.build_from_hash(attributes)
|
103
|
-
end
|
104
|
-
|
105
|
-
# Builds the object from hash
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @return [Object] Returns the model itself
|
108
|
-
def build_from_hash(attributes)
|
109
104
|
return nil unless attributes.is_a?(Hash)
|
110
|
-
|
111
|
-
|
112
|
-
|
105
|
+
attributes = attributes.transform_keys(&:to_sym)
|
106
|
+
transformed_hash = {}
|
107
|
+
openapi_types.each_pair do |key, type|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
109
|
+
transformed_hash["#{key}"] = nil
|
113
110
|
elsif type =~ /\AArray<(.*)>/i
|
114
111
|
# check to ensure the input is an array given that the attribute
|
115
112
|
# is documented as an array but the input is not
|
116
|
-
if attributes[
|
117
|
-
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
118
115
|
end
|
119
|
-
elsif !attributes[
|
120
|
-
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
121
118
|
end
|
122
119
|
end
|
123
|
-
|
124
|
-
self
|
120
|
+
new(transformed_hash)
|
125
121
|
end
|
126
122
|
|
127
123
|
# Deserializes the data based on type
|
128
124
|
# @param string type Data type
|
129
125
|
# @param string value Value to be deserialized
|
130
126
|
# @return [Object] Deserialized data
|
131
|
-
def _deserialize(type, value)
|
127
|
+
def self._deserialize(type, value)
|
132
128
|
case type.to_sym
|
133
129
|
when :Time
|
134
130
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -89,6 +89,8 @@ module MxPlatformRuby
|
|
89
89
|
if (value = attributes[:'credentials']).is_a?(Array)
|
90
90
|
self.credentials = value
|
91
91
|
end
|
92
|
+
else
|
93
|
+
self.credentials = nil
|
92
94
|
end
|
93
95
|
|
94
96
|
if attributes.key?(:'id')
|
@@ -97,6 +99,8 @@ module MxPlatformRuby
|
|
97
99
|
|
98
100
|
if attributes.key?(:'institution_code')
|
99
101
|
self.institution_code = attributes[:'institution_code']
|
102
|
+
else
|
103
|
+
self.institution_code = nil
|
100
104
|
end
|
101
105
|
|
102
106
|
if attributes.key?(:'is_oauth')
|
@@ -115,6 +119,7 @@ module MxPlatformRuby
|
|
115
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
116
120
|
# @return Array for valid properties with the reasons
|
117
121
|
def list_invalid_properties
|
122
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
118
123
|
invalid_properties = Array.new
|
119
124
|
if @credentials.nil?
|
120
125
|
invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
|
@@ -130,6 +135,7 @@ module MxPlatformRuby
|
|
130
135
|
# Check to see if the all the properties in the model are valid
|
131
136
|
# @return true if the model is valid
|
132
137
|
def valid?
|
138
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
133
139
|
return false if @credentials.nil?
|
134
140
|
return false if @institution_code.nil?
|
135
141
|
true
|
@@ -165,36 +171,30 @@ module MxPlatformRuby
|
|
165
171
|
# @param [Hash] attributes Model attributes in the form of hash
|
166
172
|
# @return [Object] Returns the model itself
|
167
173
|
def self.build_from_hash(attributes)
|
168
|
-
new.build_from_hash(attributes)
|
169
|
-
end
|
170
|
-
|
171
|
-
# Builds the object from hash
|
172
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
173
|
-
# @return [Object] Returns the model itself
|
174
|
-
def build_from_hash(attributes)
|
175
174
|
return nil unless attributes.is_a?(Hash)
|
176
|
-
|
177
|
-
|
178
|
-
|
175
|
+
attributes = attributes.transform_keys(&:to_sym)
|
176
|
+
transformed_hash = {}
|
177
|
+
openapi_types.each_pair do |key, type|
|
178
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
179
|
+
transformed_hash["#{key}"] = nil
|
179
180
|
elsif type =~ /\AArray<(.*)>/i
|
180
181
|
# check to ensure the input is an array given that the attribute
|
181
182
|
# is documented as an array but the input is not
|
182
|
-
if attributes[
|
183
|
-
|
183
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
184
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
184
185
|
end
|
185
|
-
elsif !attributes[
|
186
|
-
|
186
|
+
elsif !attributes[attribute_map[key]].nil?
|
187
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
187
188
|
end
|
188
189
|
end
|
189
|
-
|
190
|
-
self
|
190
|
+
new(transformed_hash)
|
191
191
|
end
|
192
192
|
|
193
193
|
# Deserializes the data based on type
|
194
194
|
# @param string type Data type
|
195
195
|
# @param string value Value to be deserialized
|
196
196
|
# @return [Object] Deserialized data
|
197
|
-
def _deserialize(type, value)
|
197
|
+
def self._deserialize(type, value)
|
198
198
|
case type.to_sym
|
199
199
|
when :Time
|
200
200
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -97,6 +97,7 @@ module MxPlatformRuby
|
|
97
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
98
98
|
# @return Array for valid properties with the reasons
|
99
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
100
101
|
invalid_properties = Array.new
|
101
102
|
invalid_properties
|
102
103
|
end
|
@@ -104,6 +105,7 @@ module MxPlatformRuby
|
|
104
105
|
# Check to see if the all the properties in the model are valid
|
105
106
|
# @return true if the model is valid
|
106
107
|
def valid?
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
107
109
|
true
|
108
110
|
end
|
109
111
|
|
@@ -135,36 +137,30 @@ module MxPlatformRuby
|
|
135
137
|
# @param [Hash] attributes Model attributes in the form of hash
|
136
138
|
# @return [Object] Returns the model itself
|
137
139
|
def self.build_from_hash(attributes)
|
138
|
-
new.build_from_hash(attributes)
|
139
|
-
end
|
140
|
-
|
141
|
-
# Builds the object from hash
|
142
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
-
# @return [Object] Returns the model itself
|
144
|
-
def build_from_hash(attributes)
|
145
140
|
return nil unless attributes.is_a?(Hash)
|
146
|
-
|
147
|
-
|
148
|
-
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
|
+
transformed_hash = {}
|
143
|
+
openapi_types.each_pair do |key, type|
|
144
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
145
|
+
transformed_hash["#{key}"] = nil
|
149
146
|
elsif type =~ /\AArray<(.*)>/i
|
150
147
|
# check to ensure the input is an array given that the attribute
|
151
148
|
# is documented as an array but the input is not
|
152
|
-
if attributes[
|
153
|
-
|
149
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
150
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
154
151
|
end
|
155
|
-
elsif !attributes[
|
156
|
-
|
152
|
+
elsif !attributes[attribute_map[key]].nil?
|
153
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
157
154
|
end
|
158
155
|
end
|
159
|
-
|
160
|
-
self
|
156
|
+
new(transformed_hash)
|
161
157
|
end
|
162
158
|
|
163
159
|
# Deserializes the data based on type
|
164
160
|
# @param string type Data type
|
165
161
|
# @param string value Value to be deserialized
|
166
162
|
# @return [Object] Deserialized data
|
167
|
-
def _deserialize(type, value)
|
163
|
+
def self._deserialize(type, value)
|
168
164
|
case type.to_sym
|
169
165
|
when :Time
|
170
166
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -191,6 +191,7 @@ module MxPlatformRuby
|
|
191
191
|
# Show invalid properties with the reasons. Usually used together with valid?
|
192
192
|
# @return Array for valid properties with the reasons
|
193
193
|
def list_invalid_properties
|
194
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
194
195
|
invalid_properties = Array.new
|
195
196
|
invalid_properties
|
196
197
|
end
|
@@ -198,6 +199,7 @@ module MxPlatformRuby
|
|
198
199
|
# Check to see if the all the properties in the model are valid
|
199
200
|
# @return true if the model is valid
|
200
201
|
def valid?
|
202
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
201
203
|
true
|
202
204
|
end
|
203
205
|
|
@@ -239,36 +241,30 @@ module MxPlatformRuby
|
|
239
241
|
# @param [Hash] attributes Model attributes in the form of hash
|
240
242
|
# @return [Object] Returns the model itself
|
241
243
|
def self.build_from_hash(attributes)
|
242
|
-
new.build_from_hash(attributes)
|
243
|
-
end
|
244
|
-
|
245
|
-
# Builds the object from hash
|
246
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
247
|
-
# @return [Object] Returns the model itself
|
248
|
-
def build_from_hash(attributes)
|
249
244
|
return nil unless attributes.is_a?(Hash)
|
250
|
-
|
251
|
-
|
252
|
-
|
245
|
+
attributes = attributes.transform_keys(&:to_sym)
|
246
|
+
transformed_hash = {}
|
247
|
+
openapi_types.each_pair do |key, type|
|
248
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
249
|
+
transformed_hash["#{key}"] = nil
|
253
250
|
elsif type =~ /\AArray<(.*)>/i
|
254
251
|
# check to ensure the input is an array given that the attribute
|
255
252
|
# is documented as an array but the input is not
|
256
|
-
if attributes[
|
257
|
-
|
253
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
254
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
258
255
|
end
|
259
|
-
elsif !attributes[
|
260
|
-
|
256
|
+
elsif !attributes[attribute_map[key]].nil?
|
257
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
261
258
|
end
|
262
259
|
end
|
263
|
-
|
264
|
-
self
|
260
|
+
new(transformed_hash)
|
265
261
|
end
|
266
262
|
|
267
263
|
# Deserializes the data based on type
|
268
264
|
# @param string type Data type
|
269
265
|
# @param string value Value to be deserialized
|
270
266
|
# @return [Object] Deserialized data
|
271
|
-
def _deserialize(type, value)
|
267
|
+
def self._deserialize(type, value)
|
272
268
|
case type.to_sym
|
273
269
|
when :Time
|
274
270
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,6 +65,7 @@ module MxPlatformRuby
|
|
65
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
68
69
|
invalid_properties = Array.new
|
69
70
|
invalid_properties
|
70
71
|
end
|
@@ -72,6 +73,7 @@ module MxPlatformRuby
|
|
72
73
|
# Check to see if the all the properties in the model are valid
|
73
74
|
# @return true if the model is valid
|
74
75
|
def valid?
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
75
77
|
true
|
76
78
|
end
|
77
79
|
|
@@ -99,36 +101,30 @@ module MxPlatformRuby
|
|
99
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
102
|
# @return [Object] Returns the model itself
|
101
103
|
def self.build_from_hash(attributes)
|
102
|
-
new.build_from_hash(attributes)
|
103
|
-
end
|
104
|
-
|
105
|
-
# Builds the object from hash
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @return [Object] Returns the model itself
|
108
|
-
def build_from_hash(attributes)
|
109
104
|
return nil unless attributes.is_a?(Hash)
|
110
|
-
|
111
|
-
|
112
|
-
|
105
|
+
attributes = attributes.transform_keys(&:to_sym)
|
106
|
+
transformed_hash = {}
|
107
|
+
openapi_types.each_pair do |key, type|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
109
|
+
transformed_hash["#{key}"] = nil
|
113
110
|
elsif type =~ /\AArray<(.*)>/i
|
114
111
|
# check to ensure the input is an array given that the attribute
|
115
112
|
# is documented as an array but the input is not
|
116
|
-
if attributes[
|
117
|
-
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
118
115
|
end
|
119
|
-
elsif !attributes[
|
120
|
-
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
121
118
|
end
|
122
119
|
end
|
123
|
-
|
124
|
-
self
|
120
|
+
new(transformed_hash)
|
125
121
|
end
|
126
122
|
|
127
123
|
# Deserializes the data based on type
|
128
124
|
# @param string type Data type
|
129
125
|
# @param string value Value to be deserialized
|
130
126
|
# @return [Object] Deserialized data
|
131
|
-
def _deserialize(type, value)
|
127
|
+
def self._deserialize(type, value)
|
132
128
|
case type.to_sym
|
133
129
|
when :Time
|
134
130
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,6 +67,7 @@ module MxPlatformRuby
|
|
67
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
70
71
|
invalid_properties = Array.new
|
71
72
|
invalid_properties
|
72
73
|
end
|
@@ -74,6 +75,7 @@ module MxPlatformRuby
|
|
74
75
|
# Check to see if the all the properties in the model are valid
|
75
76
|
# @return true if the model is valid
|
76
77
|
def valid?
|
78
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
77
79
|
true
|
78
80
|
end
|
79
81
|
|
@@ -101,36 +103,30 @@ module MxPlatformRuby
|
|
101
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
102
104
|
# @return [Object] Returns the model itself
|
103
105
|
def self.build_from_hash(attributes)
|
104
|
-
new.build_from_hash(attributes)
|
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 build_from_hash(attributes)
|
111
106
|
return nil unless attributes.is_a?(Hash)
|
112
|
-
|
113
|
-
|
114
|
-
|
107
|
+
attributes = attributes.transform_keys(&:to_sym)
|
108
|
+
transformed_hash = {}
|
109
|
+
openapi_types.each_pair do |key, type|
|
110
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
111
|
+
transformed_hash["#{key}"] = nil
|
115
112
|
elsif type =~ /\AArray<(.*)>/i
|
116
113
|
# check to ensure the input is an array given that the attribute
|
117
114
|
# is documented as an array but the input is not
|
118
|
-
if attributes[
|
119
|
-
|
115
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
116
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
120
117
|
end
|
121
|
-
elsif !attributes[
|
122
|
-
|
118
|
+
elsif !attributes[attribute_map[key]].nil?
|
119
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
123
120
|
end
|
124
121
|
end
|
125
|
-
|
126
|
-
self
|
122
|
+
new(transformed_hash)
|
127
123
|
end
|
128
124
|
|
129
125
|
# Deserializes the data based on type
|
130
126
|
# @param string type Data type
|
131
127
|
# @param string value Value to be deserialized
|
132
128
|
# @return [Object] Deserialized data
|
133
|
-
def _deserialize(type, value)
|
129
|
+
def self._deserialize(type, value)
|
134
130
|
case type.to_sym
|
135
131
|
when :Time
|
136
132
|
Time.parse(value)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,6 +65,7 @@ module MxPlatformRuby
|
|
65
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
68
69
|
invalid_properties = Array.new
|
69
70
|
invalid_properties
|
70
71
|
end
|
@@ -72,6 +73,7 @@ module MxPlatformRuby
|
|
72
73
|
# Check to see if the all the properties in the model are valid
|
73
74
|
# @return true if the model is valid
|
74
75
|
def valid?
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
75
77
|
true
|
76
78
|
end
|
77
79
|
|
@@ -99,36 +101,30 @@ module MxPlatformRuby
|
|
99
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
102
|
# @return [Object] Returns the model itself
|
101
103
|
def self.build_from_hash(attributes)
|
102
|
-
new.build_from_hash(attributes)
|
103
|
-
end
|
104
|
-
|
105
|
-
# Builds the object from hash
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @return [Object] Returns the model itself
|
108
|
-
def build_from_hash(attributes)
|
109
104
|
return nil unless attributes.is_a?(Hash)
|
110
|
-
|
111
|
-
|
112
|
-
|
105
|
+
attributes = attributes.transform_keys(&:to_sym)
|
106
|
+
transformed_hash = {}
|
107
|
+
openapi_types.each_pair do |key, type|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
109
|
+
transformed_hash["#{key}"] = nil
|
113
110
|
elsif type =~ /\AArray<(.*)>/i
|
114
111
|
# check to ensure the input is an array given that the attribute
|
115
112
|
# is documented as an array but the input is not
|
116
|
-
if attributes[
|
117
|
-
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
118
115
|
end
|
119
|
-
elsif !attributes[
|
120
|
-
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
121
118
|
end
|
122
119
|
end
|
123
|
-
|
124
|
-
self
|
120
|
+
new(transformed_hash)
|
125
121
|
end
|
126
122
|
|
127
123
|
# Deserializes the data based on type
|
128
124
|
# @param string type Data type
|
129
125
|
# @param string value Value to be deserialized
|
130
126
|
# @return [Object] Deserialized data
|
131
|
-
def _deserialize(type, value)
|
127
|
+
def self._deserialize(type, value)
|
132
128
|
case type.to_sym
|
133
129
|
when :Time
|
134
130
|
Time.parse(value)
|