mx-platform-ruby 0.4.2 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +4 -6
- data/docs/AccountResponse.md +15 -1
- data/docs/ManagedAccountCreateRequest.md +78 -0
- data/docs/ManagedAccountCreateRequestBody.md +18 -0
- data/docs/ManagedAccountUpdateRequest.md +78 -0
- data/docs/ManagedAccountUpdateRequestBody.md +18 -0
- data/docs/ManagedMemberCreateRequest.md +24 -0
- data/docs/ManagedMemberCreateRequestBody.md +18 -0
- data/docs/ManagedMemberUpdateRequest.md +22 -0
- data/docs/ManagedMemberUpdateRequestBody.md +18 -0
- data/docs/ManagedTransactionCreateRequest.md +56 -0
- data/docs/ManagedTransactionCreateRequestBody.md +18 -0
- data/docs/ManagedTransactionUpdateRequest.md +56 -0
- data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
- data/docs/MemberResponse.md +5 -1
- data/docs/MerchantLocationResponse.md +40 -0
- data/docs/MerchantLocationResponseBody.md +18 -0
- data/docs/MxPlatformApi.md +1415 -117
- data/docs/TransactionResponse.md +11 -1
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +1474 -124
- data/lib/mx-platform-ruby/api_client.rb +7 -9
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +35 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +112 -5
- data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_response.rb +7 -1
- data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +16 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
- data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
- data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_response.rb +35 -5
- data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +327 -0
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
- data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +3 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
- data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_response.rb +85 -5
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_response.rb +5 -1
- data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
- data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +15 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +4 -6
- data/spec/api/mx_platform_api_spec.rb +246 -1
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_number_response_spec.rb +1 -1
- data/spec/models/account_numbers_response_body_spec.rb +1 -1
- data/spec/models/account_owner_response_spec.rb +1 -1
- data/spec/models/account_owners_response_body_spec.rb +1 -1
- data/spec/models/account_response_body_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +43 -1
- data/spec/models/account_update_request_body_spec.rb +1 -1
- data/spec/models/account_update_request_spec.rb +1 -1
- data/spec/models/accounts_response_body_spec.rb +1 -1
- data/spec/models/categories_response_body_spec.rb +1 -1
- data/spec/models/category_create_request_body_spec.rb +1 -1
- data/spec/models/category_create_request_spec.rb +1 -1
- data/spec/models/category_response_body_spec.rb +1 -1
- data/spec/models/category_response_spec.rb +1 -1
- data/spec/models/category_update_request_body_spec.rb +1 -1
- data/spec/models/category_update_request_spec.rb +1 -1
- data/spec/models/challenge_response_spec.rb +1 -1
- data/spec/models/challenges_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_spec.rb +1 -1
- data/spec/models/connect_widget_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_response_spec.rb +1 -1
- data/spec/models/credential_request_spec.rb +1 -1
- data/spec/models/credential_response_spec.rb +1 -1
- data/spec/models/credentials_response_body_spec.rb +1 -1
- data/spec/models/enhance_transaction_response_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +1 -1
- data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
- data/spec/models/holding_response_body_spec.rb +1 -1
- data/spec/models/holding_response_spec.rb +1 -1
- data/spec/models/holdings_response_body_spec.rb +1 -1
- data/spec/models/image_option_response_spec.rb +1 -1
- data/spec/models/institution_response_body_spec.rb +1 -1
- data/spec/models/institution_response_spec.rb +1 -1
- data/spec/models/institutions_response_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_body_spec.rb +34 -0
- data/spec/models/managed_account_create_request_spec.rb +214 -0
- data/spec/models/managed_account_update_request_body_spec.rb +34 -0
- data/spec/models/managed_account_update_request_spec.rb +214 -0
- data/spec/models/managed_member_create_request_body_spec.rb +34 -0
- data/spec/models/managed_member_create_request_spec.rb +52 -0
- data/spec/models/managed_member_update_request_body_spec.rb +34 -0
- data/spec/models/managed_member_update_request_spec.rb +46 -0
- data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_create_request_spec.rb +148 -0
- data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_update_request_spec.rb +148 -0
- data/spec/models/member_create_request_body_spec.rb +1 -1
- data/spec/models/member_create_request_spec.rb +1 -1
- data/spec/models/member_response_body_spec.rb +1 -1
- data/spec/models/member_response_spec.rb +13 -1
- data/spec/models/member_resume_request_body_spec.rb +1 -1
- data/spec/models/member_resume_request_spec.rb +1 -1
- data/spec/models/member_status_response_body_spec.rb +1 -1
- data/spec/models/member_status_response_spec.rb +1 -1
- data/spec/models/member_update_request_body_spec.rb +1 -1
- data/spec/models/member_update_request_spec.rb +1 -1
- data/spec/models/members_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_body_spec.rb +34 -0
- data/spec/models/merchant_location_response_spec.rb +100 -0
- data/spec/models/merchant_response_body_spec.rb +1 -1
- data/spec/models/merchant_response_spec.rb +1 -1
- data/spec/models/merchants_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_spec.rb +1 -1
- data/spec/models/option_response_spec.rb +1 -1
- data/spec/models/pagination_response_spec.rb +1 -1
- data/spec/models/statement_response_body_spec.rb +1 -1
- data/spec/models/statement_response_spec.rb +1 -1
- data/spec/models/statements_response_body_spec.rb +1 -1
- data/spec/models/tag_create_request_body_spec.rb +1 -1
- data/spec/models/tag_create_request_spec.rb +1 -1
- data/spec/models/tag_response_body_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/tag_update_request_body_spec.rb +1 -1
- data/spec/models/tag_update_request_spec.rb +1 -1
- data/spec/models/tagging_create_request_body_spec.rb +1 -1
- data/spec/models/tagging_create_request_spec.rb +1 -1
- data/spec/models/tagging_response_body_spec.rb +1 -1
- data/spec/models/tagging_response_spec.rb +1 -1
- data/spec/models/tagging_update_request_body_spec.rb +1 -1
- data/spec/models/tagging_update_request_spec.rb +1 -1
- data/spec/models/taggings_response_body_spec.rb +1 -1
- data/spec/models/tags_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_spec.rb +31 -1
- data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_create_request_spec.rb +1 -1
- data/spec/models/transaction_rule_response_body_spec.rb +1 -1
- data/spec/models/transaction_rule_response_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_spec.rb +1 -1
- data/spec/models/transaction_rules_response_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_spec.rb +1 -1
- data/spec/models/transactions_response_body_spec.rb +1 -1
- data/spec/models/user_create_request_body_spec.rb +1 -1
- data/spec/models/user_create_request_spec.rb +1 -1
- data/spec/models/user_response_body_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/user_update_request_body_spec.rb +1 -1
- data/spec/models/user_update_request_spec.rb +1 -1
- data/spec/models/users_response_body_spec.rb +1 -1
- data/spec/models/widget_request_body_spec.rb +1 -1
- data/spec/models/widget_request_spec.rb +1 -1
- data/spec/models/widget_response_body_spec.rb +1 -1
- data/spec/models/widget_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +134 -78
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -56,7 +56,8 @@ module MxPlatformRuby
|
|
56
56
|
}
|
57
57
|
|
58
58
|
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
59
|
-
conn.basic_auth
|
59
|
+
conn.request(:basic_auth, config.username, config.password)
|
60
|
+
@config.configure_middleware(conn)
|
60
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
61
62
|
conn.request :multipart
|
62
63
|
conn.request :url_encoded
|
@@ -117,9 +118,6 @@ module MxPlatformRuby
|
|
117
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
118
119
|
|
119
120
|
req_opts = {
|
120
|
-
:method => http_method,
|
121
|
-
:headers => header_params,
|
122
|
-
:params => query_params,
|
123
121
|
:params_encoding => @config.params_encoding,
|
124
122
|
:timeout => @config.timeout,
|
125
123
|
:verbose => @config.debugging
|
@@ -127,13 +125,13 @@ module MxPlatformRuby
|
|
127
125
|
|
128
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
129
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
130
|
-
req_opts.update :body => req_body
|
131
128
|
if @config.debugging
|
132
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
133
130
|
end
|
134
131
|
end
|
135
132
|
request.headers = header_params
|
136
133
|
request.body = req_body
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
137
135
|
request.url url
|
138
136
|
request.params = query_params
|
139
137
|
download_file(request) if opts[:return_type] == 'File'
|
@@ -301,7 +299,7 @@ module MxPlatformRuby
|
|
301
299
|
@config.base_url(opts[:operation]) + path
|
302
300
|
end
|
303
301
|
|
304
|
-
# Update
|
302
|
+
# Update header and query params based on authentication settings.
|
305
303
|
#
|
306
304
|
# @param [Hash] header_params Header parameters
|
307
305
|
# @param [Hash] query_params Query parameters
|
@@ -340,8 +338,8 @@ module MxPlatformRuby
|
|
340
338
|
# @param [Array] content_types array for Content-Type
|
341
339
|
# @return [String] the Content-Type header (e.g. application/json)
|
342
340
|
def select_header_content_type(content_types)
|
343
|
-
#
|
344
|
-
return
|
341
|
+
# return nil by default
|
342
|
+
return if content_types.nil? || content_types.empty?
|
345
343
|
# use JSON when present, otherwise use the first one
|
346
344
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
347
345
|
json_content_type || content_types.first
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -142,13 +142,16 @@ module MxPlatformRuby
|
|
142
142
|
@server_operation_variables = {}
|
143
143
|
@api_key = {}
|
144
144
|
@api_key_prefix = {}
|
145
|
-
@timeout = 0
|
146
145
|
@client_side_validation = true
|
147
146
|
@ssl_verify = true
|
148
147
|
@ssl_verify_mode = nil
|
149
148
|
@ssl_ca_file = nil
|
150
149
|
@ssl_client_cert = nil
|
151
150
|
@ssl_client_key = nil
|
151
|
+
@middlewares = []
|
152
|
+
@request_middlewares = []
|
153
|
+
@response_middlewares = []
|
154
|
+
@timeout = 60
|
152
155
|
@debugging = false
|
153
156
|
@inject_format = false
|
154
157
|
@force_ending_format = false
|
@@ -272,5 +275,35 @@ module MxPlatformRuby
|
|
272
275
|
|
273
276
|
url
|
274
277
|
end
|
278
|
+
|
279
|
+
# Adds middleware to the stack
|
280
|
+
def use(*middleware)
|
281
|
+
@middlewares << middleware
|
282
|
+
end
|
283
|
+
|
284
|
+
# Adds request middleware to the stack
|
285
|
+
def request(*middleware)
|
286
|
+
@request_middlewares << middleware
|
287
|
+
end
|
288
|
+
|
289
|
+
# Adds response middleware to the stack
|
290
|
+
def response(*middleware)
|
291
|
+
@response_middlewares << middleware
|
292
|
+
end
|
293
|
+
|
294
|
+
# Set up middleware on the connection
|
295
|
+
def configure_middleware(connection)
|
296
|
+
@middlewares.each do |middleware|
|
297
|
+
connection.use(*middleware)
|
298
|
+
end
|
299
|
+
|
300
|
+
@request_middlewares.each do |middleware|
|
301
|
+
connection.request(*middleware)
|
302
|
+
end
|
303
|
+
|
304
|
+
@response_middlewares.each do |middleware|
|
305
|
+
connection.response(*middleware)
|
306
|
+
end
|
307
|
+
end
|
275
308
|
end
|
276
309
|
end
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,6 +67,10 @@ module MxPlatformRuby
|
|
67
67
|
# List of attributes with nullable: true
|
68
68
|
def self.openapi_nullable
|
69
69
|
Set.new([
|
70
|
+
:'account_number',
|
71
|
+
:'institution_number',
|
72
|
+
:'routing_number',
|
73
|
+
:'transit_number',
|
70
74
|
])
|
71
75
|
end
|
72
76
|
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,6 +83,14 @@ module MxPlatformRuby
|
|
83
83
|
# List of attributes with nullable: true
|
84
84
|
def self.openapi_nullable
|
85
85
|
Set.new([
|
86
|
+
:'address',
|
87
|
+
:'city',
|
88
|
+
:'country',
|
89
|
+
:'email',
|
90
|
+
:'owner_name',
|
91
|
+
:'phone',
|
92
|
+
:'postal_code',
|
93
|
+
:'state',
|
86
94
|
])
|
87
95
|
end
|
88
96
|
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,6 +47,8 @@ module MxPlatformRuby
|
|
47
47
|
|
48
48
|
attr_accessor :id
|
49
49
|
|
50
|
+
attr_accessor :imported_at
|
51
|
+
|
50
52
|
attr_accessor :institution_code
|
51
53
|
|
52
54
|
attr_accessor :insured_name
|
@@ -67,12 +69,20 @@ module MxPlatformRuby
|
|
67
69
|
|
68
70
|
attr_accessor :member_guid
|
69
71
|
|
72
|
+
attr_accessor :member_id
|
73
|
+
|
74
|
+
attr_accessor :member_is_managed_by_user
|
75
|
+
|
76
|
+
attr_accessor :metadata
|
77
|
+
|
70
78
|
attr_accessor :minimum_balance
|
71
79
|
|
72
80
|
attr_accessor :minimum_payment
|
73
81
|
|
74
82
|
attr_accessor :name
|
75
83
|
|
84
|
+
attr_accessor :nickname
|
85
|
+
|
76
86
|
attr_accessor :original_balance
|
77
87
|
|
78
88
|
attr_accessor :pay_out_amount
|
@@ -83,6 +93,8 @@ module MxPlatformRuby
|
|
83
93
|
|
84
94
|
attr_accessor :premium_amount
|
85
95
|
|
96
|
+
attr_accessor :routing_number
|
97
|
+
|
86
98
|
attr_accessor :started_on
|
87
99
|
|
88
100
|
attr_accessor :subtype
|
@@ -95,6 +107,8 @@ module MxPlatformRuby
|
|
95
107
|
|
96
108
|
attr_accessor :user_guid
|
97
109
|
|
110
|
+
attr_accessor :user_id
|
111
|
+
|
98
112
|
# Attribute mapping from ruby-style variable name to JSON key.
|
99
113
|
def self.attribute_map
|
100
114
|
{
|
@@ -114,6 +128,7 @@ module MxPlatformRuby
|
|
114
128
|
:'guid' => :'guid',
|
115
129
|
:'holdings_value' => :'holdings_value',
|
116
130
|
:'id' => :'id',
|
131
|
+
:'imported_at' => :'imported_at',
|
117
132
|
:'institution_code' => :'institution_code',
|
118
133
|
:'insured_name' => :'insured_name',
|
119
134
|
:'interest_rate' => :'interest_rate',
|
@@ -124,20 +139,26 @@ module MxPlatformRuby
|
|
124
139
|
:'loan_amount' => :'loan_amount',
|
125
140
|
:'matures_on' => :'matures_on',
|
126
141
|
:'member_guid' => :'member_guid',
|
142
|
+
:'member_id' => :'member_id',
|
143
|
+
:'member_is_managed_by_user' => :'member_is_managed_by_user',
|
144
|
+
:'metadata' => :'metadata',
|
127
145
|
:'minimum_balance' => :'minimum_balance',
|
128
146
|
:'minimum_payment' => :'minimum_payment',
|
129
147
|
:'name' => :'name',
|
148
|
+
:'nickname' => :'nickname',
|
130
149
|
:'original_balance' => :'original_balance',
|
131
150
|
:'pay_out_amount' => :'pay_out_amount',
|
132
151
|
:'payment_due_at' => :'payment_due_at',
|
133
152
|
:'payoff_balance' => :'payoff_balance',
|
134
153
|
:'premium_amount' => :'premium_amount',
|
154
|
+
:'routing_number' => :'routing_number',
|
135
155
|
:'started_on' => :'started_on',
|
136
156
|
:'subtype' => :'subtype',
|
137
157
|
:'total_account_value' => :'total_account_value',
|
138
158
|
:'type' => :'type',
|
139
159
|
:'updated_at' => :'updated_at',
|
140
|
-
:'user_guid' => :'user_guid'
|
160
|
+
:'user_guid' => :'user_guid',
|
161
|
+
:'user_id' => :'user_id'
|
141
162
|
}
|
142
163
|
end
|
143
164
|
|
@@ -165,6 +186,7 @@ module MxPlatformRuby
|
|
165
186
|
:'guid' => :'String',
|
166
187
|
:'holdings_value' => :'Float',
|
167
188
|
:'id' => :'String',
|
189
|
+
:'imported_at' => :'String',
|
168
190
|
:'institution_code' => :'String',
|
169
191
|
:'insured_name' => :'String',
|
170
192
|
:'interest_rate' => :'Float',
|
@@ -175,26 +197,76 @@ module MxPlatformRuby
|
|
175
197
|
:'loan_amount' => :'Float',
|
176
198
|
:'matures_on' => :'String',
|
177
199
|
:'member_guid' => :'String',
|
200
|
+
:'member_id' => :'String',
|
201
|
+
:'member_is_managed_by_user' => :'Boolean',
|
202
|
+
:'metadata' => :'String',
|
178
203
|
:'minimum_balance' => :'Float',
|
179
204
|
:'minimum_payment' => :'Float',
|
180
205
|
:'name' => :'String',
|
206
|
+
:'nickname' => :'String',
|
181
207
|
:'original_balance' => :'Float',
|
182
208
|
:'pay_out_amount' => :'Float',
|
183
209
|
:'payment_due_at' => :'String',
|
184
210
|
:'payoff_balance' => :'Float',
|
185
211
|
:'premium_amount' => :'Float',
|
212
|
+
:'routing_number' => :'String',
|
186
213
|
:'started_on' => :'String',
|
187
214
|
:'subtype' => :'String',
|
188
215
|
:'total_account_value' => :'Float',
|
189
216
|
:'type' => :'String',
|
190
217
|
:'updated_at' => :'String',
|
191
|
-
:'user_guid' => :'String'
|
218
|
+
:'user_guid' => :'String',
|
219
|
+
:'user_id' => :'String'
|
192
220
|
}
|
193
221
|
end
|
194
222
|
|
195
223
|
# List of attributes with nullable: true
|
196
224
|
def self.openapi_nullable
|
197
225
|
Set.new([
|
226
|
+
:'account_number',
|
227
|
+
:'apr',
|
228
|
+
:'apy',
|
229
|
+
:'available_balance',
|
230
|
+
:'available_credit',
|
231
|
+
:'balance',
|
232
|
+
:'cash_balance',
|
233
|
+
:'cash_surrender_value',
|
234
|
+
:'created_at',
|
235
|
+
:'credit_limit',
|
236
|
+
:'currency_code',
|
237
|
+
:'day_payment_is_due',
|
238
|
+
:'death_benefit',
|
239
|
+
:'holdings_value',
|
240
|
+
:'id',
|
241
|
+
:'imported_at',
|
242
|
+
:'institution_code',
|
243
|
+
:'insured_name',
|
244
|
+
:'interest_rate',
|
245
|
+
:'is_closed',
|
246
|
+
:'is_hidden',
|
247
|
+
:'last_payment',
|
248
|
+
:'last_payment_at',
|
249
|
+
:'loan_amount',
|
250
|
+
:'matures_on',
|
251
|
+
:'member_id',
|
252
|
+
:'member_is_managed_by_user',
|
253
|
+
:'metadata',
|
254
|
+
:'minimum_balance',
|
255
|
+
:'minimum_payment',
|
256
|
+
:'name',
|
257
|
+
:'nickname',
|
258
|
+
:'original_balance',
|
259
|
+
:'pay_out_amount',
|
260
|
+
:'payment_due_at',
|
261
|
+
:'payoff_balance',
|
262
|
+
:'premium_amount',
|
263
|
+
:'routing_number',
|
264
|
+
:'started_on',
|
265
|
+
:'subtype',
|
266
|
+
:'total_account_value',
|
267
|
+
:'type',
|
268
|
+
:'updated_at',
|
269
|
+
:'user_id'
|
198
270
|
])
|
199
271
|
end
|
200
272
|
|
@@ -277,6 +349,10 @@ module MxPlatformRuby
|
|
277
349
|
self.id = attributes[:'id']
|
278
350
|
end
|
279
351
|
|
352
|
+
if attributes.key?(:'imported_at')
|
353
|
+
self.imported_at = attributes[:'imported_at']
|
354
|
+
end
|
355
|
+
|
280
356
|
if attributes.key?(:'institution_code')
|
281
357
|
self.institution_code = attributes[:'institution_code']
|
282
358
|
end
|
@@ -317,6 +393,18 @@ module MxPlatformRuby
|
|
317
393
|
self.member_guid = attributes[:'member_guid']
|
318
394
|
end
|
319
395
|
|
396
|
+
if attributes.key?(:'member_id')
|
397
|
+
self.member_id = attributes[:'member_id']
|
398
|
+
end
|
399
|
+
|
400
|
+
if attributes.key?(:'member_is_managed_by_user')
|
401
|
+
self.member_is_managed_by_user = attributes[:'member_is_managed_by_user']
|
402
|
+
end
|
403
|
+
|
404
|
+
if attributes.key?(:'metadata')
|
405
|
+
self.metadata = attributes[:'metadata']
|
406
|
+
end
|
407
|
+
|
320
408
|
if attributes.key?(:'minimum_balance')
|
321
409
|
self.minimum_balance = attributes[:'minimum_balance']
|
322
410
|
end
|
@@ -329,6 +417,10 @@ module MxPlatformRuby
|
|
329
417
|
self.name = attributes[:'name']
|
330
418
|
end
|
331
419
|
|
420
|
+
if attributes.key?(:'nickname')
|
421
|
+
self.nickname = attributes[:'nickname']
|
422
|
+
end
|
423
|
+
|
332
424
|
if attributes.key?(:'original_balance')
|
333
425
|
self.original_balance = attributes[:'original_balance']
|
334
426
|
end
|
@@ -349,6 +441,10 @@ module MxPlatformRuby
|
|
349
441
|
self.premium_amount = attributes[:'premium_amount']
|
350
442
|
end
|
351
443
|
|
444
|
+
if attributes.key?(:'routing_number')
|
445
|
+
self.routing_number = attributes[:'routing_number']
|
446
|
+
end
|
447
|
+
|
352
448
|
if attributes.key?(:'started_on')
|
353
449
|
self.started_on = attributes[:'started_on']
|
354
450
|
end
|
@@ -372,6 +468,10 @@ module MxPlatformRuby
|
|
372
468
|
if attributes.key?(:'user_guid')
|
373
469
|
self.user_guid = attributes[:'user_guid']
|
374
470
|
end
|
471
|
+
|
472
|
+
if attributes.key?(:'user_id')
|
473
|
+
self.user_id = attributes[:'user_id']
|
474
|
+
end
|
375
475
|
end
|
376
476
|
|
377
477
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -408,6 +508,7 @@ module MxPlatformRuby
|
|
408
508
|
guid == o.guid &&
|
409
509
|
holdings_value == o.holdings_value &&
|
410
510
|
id == o.id &&
|
511
|
+
imported_at == o.imported_at &&
|
411
512
|
institution_code == o.institution_code &&
|
412
513
|
insured_name == o.insured_name &&
|
413
514
|
interest_rate == o.interest_rate &&
|
@@ -418,20 +519,26 @@ module MxPlatformRuby
|
|
418
519
|
loan_amount == o.loan_amount &&
|
419
520
|
matures_on == o.matures_on &&
|
420
521
|
member_guid == o.member_guid &&
|
522
|
+
member_id == o.member_id &&
|
523
|
+
member_is_managed_by_user == o.member_is_managed_by_user &&
|
524
|
+
metadata == o.metadata &&
|
421
525
|
minimum_balance == o.minimum_balance &&
|
422
526
|
minimum_payment == o.minimum_payment &&
|
423
527
|
name == o.name &&
|
528
|
+
nickname == o.nickname &&
|
424
529
|
original_balance == o.original_balance &&
|
425
530
|
pay_out_amount == o.pay_out_amount &&
|
426
531
|
payment_due_at == o.payment_due_at &&
|
427
532
|
payoff_balance == o.payoff_balance &&
|
428
533
|
premium_amount == o.premium_amount &&
|
534
|
+
routing_number == o.routing_number &&
|
429
535
|
started_on == o.started_on &&
|
430
536
|
subtype == o.subtype &&
|
431
537
|
total_account_value == o.total_account_value &&
|
432
538
|
type == o.type &&
|
433
539
|
updated_at == o.updated_at &&
|
434
|
-
user_guid == o.user_guid
|
540
|
+
user_guid == o.user_guid &&
|
541
|
+
user_id == o.user_id
|
435
542
|
end
|
436
543
|
|
437
544
|
# @see the `==` method
|
@@ -443,7 +550,7 @@ module MxPlatformRuby
|
|
443
550
|
# Calculates hash code according to all attributes.
|
444
551
|
# @return [Integer] Hash code
|
445
552
|
def hash
|
446
|
-
[account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, id, institution_code, insured_name, interest_rate, is_closed, is_hidden, last_payment, last_payment_at, loan_amount, matures_on, member_guid, minimum_balance, minimum_payment, name, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, started_on, subtype, total_account_value, type, updated_at, user_guid].hash
|
553
|
+
[account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, id, imported_at, institution_code, insured_name, interest_rate, is_closed, is_hidden, last_payment, last_payment_at, loan_amount, matures_on, member_guid, member_id, member_is_managed_by_user, metadata, minimum_balance, minimum_payment, name, nickname, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, routing_number, started_on, subtype, total_account_value, type, updated_at, user_guid, user_id].hash
|
447
554
|
end
|
448
555
|
|
449
556
|
# Builds the object from hash
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,6 +67,12 @@ module MxPlatformRuby
|
|
67
67
|
# List of attributes with nullable: true
|
68
68
|
def self.openapi_nullable
|
69
69
|
Set.new([
|
70
|
+
:'created_at',
|
71
|
+
:'is_default',
|
72
|
+
:'is_income',
|
73
|
+
:'metadata',
|
74
|
+
:'name',
|
75
|
+
:'updated_at'
|
70
76
|
])
|
71
77
|
end
|
72
78
|
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,6 +63,10 @@ module MxPlatformRuby
|
|
63
63
|
# List of attributes with nullable: true
|
64
64
|
def self.openapi_nullable
|
65
65
|
Set.new([
|
66
|
+
:'field_name',
|
67
|
+
:'image_data',
|
68
|
+
:'label',
|
69
|
+
:'type'
|
66
70
|
])
|
67
71
|
end
|
68
72
|
|
@@ -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: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,6 +43,7 @@ module MxPlatformRuby
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'connect_widget_url',
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|