mx-platform-ruby 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +1 -1
  4. data/lib/mx-platform-ruby/api/mx_platform_api.rb +97 -25
  5. data/lib/mx-platform-ruby/api_client.rb +7 -9
  6. data/lib/mx-platform-ruby/api_error.rb +1 -1
  7. data/lib/mx-platform-ruby/configuration.rb +35 -2
  8. data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
  9. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
  10. data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
  11. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
  12. data/lib/mx-platform-ruby/models/account_response.rb +45 -1
  13. data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
  14. data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
  15. data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
  16. data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
  17. data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
  18. data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
  19. data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
  20. data/lib/mx-platform-ruby/models/category_response.rb +7 -1
  21. data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
  22. data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
  23. data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
  24. data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
  25. data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
  26. data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
  27. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
  28. data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
  29. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
  30. data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
  31. data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
  32. data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
  33. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +16 -1
  34. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
  35. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
  36. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
  37. data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
  38. data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
  39. data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
  40. data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
  41. data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
  42. data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
  43. data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
  44. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +1 -1
  45. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +1 -1
  46. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +1 -1
  47. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +1 -1
  48. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +1 -1
  49. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +1 -1
  50. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +1 -1
  51. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +1 -1
  52. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +1 -1
  53. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +1 -1
  54. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +1 -1
  55. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +1 -1
  56. data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
  57. data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
  58. data/lib/mx-platform-ruby/models/member_response.rb +13 -1
  59. data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
  60. data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
  61. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
  62. data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
  63. data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
  64. data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
  65. data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
  66. data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
  67. data/lib/mx-platform-ruby/models/merchant_location_response.rb +11 -1
  68. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +1 -1
  69. data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
  70. data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
  71. data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
  72. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
  73. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
  74. data/lib/mx-platform-ruby/models/option_response.rb +3 -1
  75. data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
  76. data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
  77. data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
  78. data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
  79. data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
  80. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
  81. data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
  82. data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
  83. data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
  84. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
  85. data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
  86. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
  87. data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
  88. data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
  89. data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
  90. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
  91. data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
  92. data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
  93. data/lib/mx-platform-ruby/models/transaction_response.rb +36 -1
  94. data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
  95. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
  96. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
  97. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
  98. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
  99. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
  100. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
  101. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
  102. data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
  103. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
  104. data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
  105. data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
  106. data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
  107. data/lib/mx-platform-ruby/models/user_response.rb +5 -1
  108. data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
  109. data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
  110. data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
  111. data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
  112. data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
  113. data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
  114. data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
  115. data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
  116. data/lib/mx-platform-ruby/version.rb +2 -2
  117. data/lib/mx-platform-ruby.rb +1 -1
  118. data/mx-platform-ruby.gemspec +1 -1
  119. data/openapi/config.yml +1 -1
  120. data/spec/api/mx_platform_api_spec.rb +1 -1
  121. data/spec/api_client_spec.rb +3 -3
  122. data/spec/configuration_spec.rb +1 -1
  123. data/spec/models/account_number_response_spec.rb +1 -1
  124. data/spec/models/account_numbers_response_body_spec.rb +1 -1
  125. data/spec/models/account_owner_response_spec.rb +1 -1
  126. data/spec/models/account_owners_response_body_spec.rb +1 -1
  127. data/spec/models/account_response_body_spec.rb +1 -1
  128. data/spec/models/account_response_spec.rb +1 -1
  129. data/spec/models/account_update_request_body_spec.rb +1 -1
  130. data/spec/models/account_update_request_spec.rb +1 -1
  131. data/spec/models/accounts_response_body_spec.rb +1 -1
  132. data/spec/models/categories_response_body_spec.rb +1 -1
  133. data/spec/models/category_create_request_body_spec.rb +1 -1
  134. data/spec/models/category_create_request_spec.rb +1 -1
  135. data/spec/models/category_response_body_spec.rb +1 -1
  136. data/spec/models/category_response_spec.rb +1 -1
  137. data/spec/models/category_update_request_body_spec.rb +1 -1
  138. data/spec/models/category_update_request_spec.rb +1 -1
  139. data/spec/models/challenge_response_spec.rb +1 -1
  140. data/spec/models/challenges_response_body_spec.rb +1 -1
  141. data/spec/models/connect_widget_request_body_spec.rb +1 -1
  142. data/spec/models/connect_widget_request_spec.rb +1 -1
  143. data/spec/models/connect_widget_response_body_spec.rb +1 -1
  144. data/spec/models/connect_widget_response_spec.rb +1 -1
  145. data/spec/models/credential_request_spec.rb +1 -1
  146. data/spec/models/credential_response_spec.rb +1 -1
  147. data/spec/models/credentials_response_body_spec.rb +1 -1
  148. data/spec/models/enhance_transaction_response_spec.rb +1 -1
  149. data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
  150. data/spec/models/enhance_transactions_request_spec.rb +1 -1
  151. data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
  152. data/spec/models/holding_response_body_spec.rb +1 -1
  153. data/spec/models/holding_response_spec.rb +1 -1
  154. data/spec/models/holdings_response_body_spec.rb +1 -1
  155. data/spec/models/image_option_response_spec.rb +1 -1
  156. data/spec/models/institution_response_body_spec.rb +1 -1
  157. data/spec/models/institution_response_spec.rb +1 -1
  158. data/spec/models/institutions_response_body_spec.rb +1 -1
  159. data/spec/models/managed_account_create_request_body_spec.rb +1 -1
  160. data/spec/models/managed_account_create_request_spec.rb +1 -1
  161. data/spec/models/managed_account_update_request_body_spec.rb +1 -1
  162. data/spec/models/managed_account_update_request_spec.rb +1 -1
  163. data/spec/models/managed_member_create_request_body_spec.rb +1 -1
  164. data/spec/models/managed_member_create_request_spec.rb +1 -1
  165. data/spec/models/managed_member_update_request_body_spec.rb +1 -1
  166. data/spec/models/managed_member_update_request_spec.rb +1 -1
  167. data/spec/models/managed_transaction_create_request_body_spec.rb +1 -1
  168. data/spec/models/managed_transaction_create_request_spec.rb +1 -1
  169. data/spec/models/managed_transaction_update_request_body_spec.rb +1 -1
  170. data/spec/models/managed_transaction_update_request_spec.rb +1 -1
  171. data/spec/models/member_create_request_body_spec.rb +1 -1
  172. data/spec/models/member_create_request_spec.rb +1 -1
  173. data/spec/models/member_response_body_spec.rb +1 -1
  174. data/spec/models/member_response_spec.rb +1 -1
  175. data/spec/models/member_resume_request_body_spec.rb +1 -1
  176. data/spec/models/member_resume_request_spec.rb +1 -1
  177. data/spec/models/member_status_response_body_spec.rb +1 -1
  178. data/spec/models/member_status_response_spec.rb +1 -1
  179. data/spec/models/member_update_request_body_spec.rb +1 -1
  180. data/spec/models/member_update_request_spec.rb +1 -1
  181. data/spec/models/members_response_body_spec.rb +1 -1
  182. data/spec/models/merchant_location_response_body_spec.rb +1 -1
  183. data/spec/models/merchant_location_response_spec.rb +1 -1
  184. data/spec/models/merchant_response_body_spec.rb +1 -1
  185. data/spec/models/merchant_response_spec.rb +1 -1
  186. data/spec/models/merchants_response_body_spec.rb +1 -1
  187. data/spec/models/o_auth_window_response_body_spec.rb +1 -1
  188. data/spec/models/o_auth_window_response_spec.rb +1 -1
  189. data/spec/models/option_response_spec.rb +1 -1
  190. data/spec/models/pagination_response_spec.rb +1 -1
  191. data/spec/models/statement_response_body_spec.rb +1 -1
  192. data/spec/models/statement_response_spec.rb +1 -1
  193. data/spec/models/statements_response_body_spec.rb +1 -1
  194. data/spec/models/tag_create_request_body_spec.rb +1 -1
  195. data/spec/models/tag_create_request_spec.rb +1 -1
  196. data/spec/models/tag_response_body_spec.rb +1 -1
  197. data/spec/models/tag_response_spec.rb +1 -1
  198. data/spec/models/tag_update_request_body_spec.rb +1 -1
  199. data/spec/models/tag_update_request_spec.rb +1 -1
  200. data/spec/models/tagging_create_request_body_spec.rb +1 -1
  201. data/spec/models/tagging_create_request_spec.rb +1 -1
  202. data/spec/models/tagging_response_body_spec.rb +1 -1
  203. data/spec/models/tagging_response_spec.rb +1 -1
  204. data/spec/models/tagging_update_request_body_spec.rb +1 -1
  205. data/spec/models/tagging_update_request_spec.rb +1 -1
  206. data/spec/models/taggings_response_body_spec.rb +1 -1
  207. data/spec/models/tags_response_body_spec.rb +1 -1
  208. data/spec/models/transaction_response_body_spec.rb +1 -1
  209. data/spec/models/transaction_response_spec.rb +1 -1
  210. data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
  211. data/spec/models/transaction_rule_create_request_spec.rb +1 -1
  212. data/spec/models/transaction_rule_response_body_spec.rb +1 -1
  213. data/spec/models/transaction_rule_response_spec.rb +1 -1
  214. data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
  215. data/spec/models/transaction_rule_update_request_spec.rb +1 -1
  216. data/spec/models/transaction_rules_response_body_spec.rb +1 -1
  217. data/spec/models/transaction_update_request_body_spec.rb +1 -1
  218. data/spec/models/transaction_update_request_spec.rb +1 -1
  219. data/spec/models/transactions_response_body_spec.rb +1 -1
  220. data/spec/models/user_create_request_body_spec.rb +1 -1
  221. data/spec/models/user_create_request_spec.rb +1 -1
  222. data/spec/models/user_response_body_spec.rb +1 -1
  223. data/spec/models/user_response_spec.rb +1 -1
  224. data/spec/models/user_update_request_body_spec.rb +1 -1
  225. data/spec/models/user_update_request_spec.rb +1 -1
  226. data/spec/models/users_response_body_spec.rb +1 -1
  227. data/spec/models/widget_request_body_spec.rb +1 -1
  228. data/spec/models/widget_request_spec.rb +1 -1
  229. data/spec/models/widget_response_body_spec.rb +1 -1
  230. data/spec/models/widget_response_spec.rb +1 -1
  231. data/spec/spec_helper.rb +1 -1
  232. metadata +90 -90
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 556d0caf3148dd06cc2c84d38a130f99b8c10ae9d42f1b5a48935aad2f438122
4
- data.tar.gz: 4beb17196525f346d937b7863c8a6d10855cf3a9cbddde1adb003767f51f3074
3
+ metadata.gz: bb8783a98048baebb9a74e9e4f2f0eb5e27a3a8e57ad028e5843c8c190d33f0f
4
+ data.tar.gz: 70a1a34957163985b0e25034c2a215fee0a48748efd269f10fb53533299153e2
5
5
  SHA512:
6
- metadata.gz: 3d58563136d3ea81995ccfa7b56c77a8a83f698b266e2b78da7bfef9f01c2d72d93fe57e957f002b82df27481b648b951810453f863128127debe3226faca067
7
- data.tar.gz: a68b468ed269e47b37c1df14ecb7ef563fbcb031eeedc0576b0be1edb6220796fd69a3332e4e6ed45e2f05aae1d5dea58df52cc3b8325462c06ee336c0da7708
6
+ metadata.gz: 59363c9b7755d50d9ebdcb7f6607fd569788f17e864f0afeae9be52f51dfc7d3ceb9c5a010037beb919a086aeb51fdee574a41ce4ed7318c16afdf6f428416d2
7
+ data.tar.gz: 9cd050f708773046cb265dac8ec4064011218c169e9d2a892f2207edb4a83d95bd03d9f6fdf52f74c884e36a5929be7e2e598dad403dcc115ad15956de58a6f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (0.6.1)
4
+ mx-platform-ruby (0.6.2)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -57,7 +57,7 @@ GEM
57
57
  rspec-mocks (3.10.2)
58
58
  diff-lcs (>= 1.2.0, < 2.0)
59
59
  rspec-support (~> 3.10.0)
60
- rspec-support (3.10.2)
60
+ rspec-support (3.10.3)
61
61
  rubocop (0.66.0)
62
62
  jaro_winkler (~> 1.5.1)
63
63
  parallel (~> 1.10)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  *This project was automatically generated by the [OpenAPI Generator](https://openapi-generator.tech).*
4
4
 
5
- # MX Platform Ruby - v0.6.1
5
+ # MX Platform Ruby - v0.6.2
6
6
 
7
7
  The Ruby gem for the MX Platform API.
8
8
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -197,7 +197,10 @@ module MxPlatformRuby
197
197
  # HTTP header 'Accept' (if needed)
198
198
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
199
199
  # HTTP header 'Content-Type'
200
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
200
+ content_type = @api_client.select_header_content_type(['application/json'])
201
+ if !content_type.nil?
202
+ header_params['Content-Type'] = content_type
203
+ end
201
204
 
202
205
  # form parameters
203
206
  form_params = opts[:form_params] || {}
@@ -274,7 +277,10 @@ module MxPlatformRuby
274
277
  # HTTP header 'Accept' (if needed)
275
278
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
276
279
  # HTTP header 'Content-Type'
277
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
280
+ content_type = @api_client.select_header_content_type(['application/json'])
281
+ if !content_type.nil?
282
+ header_params['Content-Type'] = content_type
283
+ end
278
284
 
279
285
  # form parameters
280
286
  form_params = opts[:form_params] || {}
@@ -345,7 +351,10 @@ module MxPlatformRuby
345
351
  # HTTP header 'Accept' (if needed)
346
352
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
347
353
  # HTTP header 'Content-Type'
348
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
354
+ content_type = @api_client.select_header_content_type(['application/json'])
355
+ if !content_type.nil?
356
+ header_params['Content-Type'] = content_type
357
+ end
349
358
 
350
359
  # form parameters
351
360
  form_params = opts[:form_params] || {}
@@ -422,7 +431,10 @@ module MxPlatformRuby
422
431
  # HTTP header 'Accept' (if needed)
423
432
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
424
433
  # HTTP header 'Content-Type'
425
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
434
+ content_type = @api_client.select_header_content_type(['application/json'])
435
+ if !content_type.nil?
436
+ header_params['Content-Type'] = content_type
437
+ end
426
438
 
427
439
  # form parameters
428
440
  form_params = opts[:form_params] || {}
@@ -493,7 +505,10 @@ module MxPlatformRuby
493
505
  # HTTP header 'Accept' (if needed)
494
506
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
495
507
  # HTTP header 'Content-Type'
496
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
508
+ content_type = @api_client.select_header_content_type(['application/json'])
509
+ if !content_type.nil?
510
+ header_params['Content-Type'] = content_type
511
+ end
497
512
 
498
513
  # form parameters
499
514
  form_params = opts[:form_params] || {}
@@ -564,7 +579,10 @@ module MxPlatformRuby
564
579
  # HTTP header 'Accept' (if needed)
565
580
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
566
581
  # HTTP header 'Content-Type'
567
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
582
+ content_type = @api_client.select_header_content_type(['application/json'])
583
+ if !content_type.nil?
584
+ header_params['Content-Type'] = content_type
585
+ end
568
586
 
569
587
  # form parameters
570
588
  form_params = opts[:form_params] || {}
@@ -635,7 +653,10 @@ module MxPlatformRuby
635
653
  # HTTP header 'Accept' (if needed)
636
654
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
637
655
  # HTTP header 'Content-Type'
638
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
656
+ content_type = @api_client.select_header_content_type(['application/json'])
657
+ if !content_type.nil?
658
+ header_params['Content-Type'] = content_type
659
+ end
639
660
 
640
661
  # form parameters
641
662
  form_params = opts[:form_params] || {}
@@ -706,7 +727,10 @@ module MxPlatformRuby
706
727
  # HTTP header 'Accept' (if needed)
707
728
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
708
729
  # HTTP header 'Content-Type'
709
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
730
+ content_type = @api_client.select_header_content_type(['application/json'])
731
+ if !content_type.nil?
732
+ header_params['Content-Type'] = content_type
733
+ end
710
734
 
711
735
  # form parameters
712
736
  form_params = opts[:form_params] || {}
@@ -771,7 +795,10 @@ module MxPlatformRuby
771
795
  # HTTP header 'Accept' (if needed)
772
796
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
773
797
  # HTTP header 'Content-Type'
774
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
798
+ content_type = @api_client.select_header_content_type(['application/json'])
799
+ if !content_type.nil?
800
+ header_params['Content-Type'] = content_type
801
+ end
775
802
 
776
803
  # form parameters
777
804
  form_params = opts[:form_params] || {}
@@ -1538,7 +1565,10 @@ module MxPlatformRuby
1538
1565
  # HTTP header 'Accept' (if needed)
1539
1566
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
1540
1567
  # HTTP header 'Content-Type'
1541
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1568
+ content_type = @api_client.select_header_content_type(['application/json'])
1569
+ if !content_type.nil?
1570
+ header_params['Content-Type'] = content_type
1571
+ end
1542
1572
 
1543
1573
  # form parameters
1544
1574
  form_params = opts[:form_params] || {}
@@ -5004,7 +5034,10 @@ module MxPlatformRuby
5004
5034
  # HTTP header 'Accept' (if needed)
5005
5035
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5006
5036
  # HTTP header 'Content-Type'
5007
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5037
+ content_type = @api_client.select_header_content_type(['application/json'])
5038
+ if !content_type.nil?
5039
+ header_params['Content-Type'] = content_type
5040
+ end
5008
5041
 
5009
5042
  # form parameters
5010
5043
  form_params = opts[:form_params] || {}
@@ -5155,7 +5188,10 @@ module MxPlatformRuby
5155
5188
  # HTTP header 'Accept' (if needed)
5156
5189
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5157
5190
  # HTTP header 'Content-Type'
5158
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5191
+ content_type = @api_client.select_header_content_type(['application/json'])
5192
+ if !content_type.nil?
5193
+ header_params['Content-Type'] = content_type
5194
+ end
5159
5195
  header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
5160
5196
 
5161
5197
  # form parameters
@@ -5233,7 +5269,10 @@ module MxPlatformRuby
5233
5269
  # HTTP header 'Accept' (if needed)
5234
5270
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5235
5271
  # HTTP header 'Content-Type'
5236
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5272
+ content_type = @api_client.select_header_content_type(['application/json'])
5273
+ if !content_type.nil?
5274
+ header_params['Content-Type'] = content_type
5275
+ end
5237
5276
 
5238
5277
  # form parameters
5239
5278
  form_params = opts[:form_params] || {}
@@ -5316,7 +5355,10 @@ module MxPlatformRuby
5316
5355
  # HTTP header 'Accept' (if needed)
5317
5356
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5318
5357
  # HTTP header 'Content-Type'
5319
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5358
+ content_type = @api_client.select_header_content_type(['application/json'])
5359
+ if !content_type.nil?
5360
+ header_params['Content-Type'] = content_type
5361
+ end
5320
5362
 
5321
5363
  # form parameters
5322
5364
  form_params = opts[:form_params] || {}
@@ -5393,7 +5435,10 @@ module MxPlatformRuby
5393
5435
  # HTTP header 'Accept' (if needed)
5394
5436
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5395
5437
  # HTTP header 'Content-Type'
5396
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5438
+ content_type = @api_client.select_header_content_type(['application/json'])
5439
+ if !content_type.nil?
5440
+ header_params['Content-Type'] = content_type
5441
+ end
5397
5442
 
5398
5443
  # form parameters
5399
5444
  form_params = opts[:form_params] || {}
@@ -5476,7 +5521,10 @@ module MxPlatformRuby
5476
5521
  # HTTP header 'Accept' (if needed)
5477
5522
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5478
5523
  # HTTP header 'Content-Type'
5479
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5524
+ content_type = @api_client.select_header_content_type(['application/json'])
5525
+ if !content_type.nil?
5526
+ header_params['Content-Type'] = content_type
5527
+ end
5480
5528
 
5481
5529
  # form parameters
5482
5530
  form_params = opts[:form_params] || {}
@@ -5553,7 +5601,10 @@ module MxPlatformRuby
5553
5601
  # HTTP header 'Accept' (if needed)
5554
5602
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5555
5603
  # HTTP header 'Content-Type'
5556
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5604
+ content_type = @api_client.select_header_content_type(['application/json'])
5605
+ if !content_type.nil?
5606
+ header_params['Content-Type'] = content_type
5607
+ end
5557
5608
 
5558
5609
  # form parameters
5559
5610
  form_params = opts[:form_params] || {}
@@ -5636,7 +5687,10 @@ module MxPlatformRuby
5636
5687
  # HTTP header 'Accept' (if needed)
5637
5688
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5638
5689
  # HTTP header 'Content-Type'
5639
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5690
+ content_type = @api_client.select_header_content_type(['application/json'])
5691
+ if !content_type.nil?
5692
+ header_params['Content-Type'] = content_type
5693
+ end
5640
5694
 
5641
5695
  # form parameters
5642
5696
  form_params = opts[:form_params] || {}
@@ -5713,7 +5767,10 @@ module MxPlatformRuby
5713
5767
  # HTTP header 'Accept' (if needed)
5714
5768
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5715
5769
  # HTTP header 'Content-Type'
5716
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5770
+ content_type = @api_client.select_header_content_type(['application/json'])
5771
+ if !content_type.nil?
5772
+ header_params['Content-Type'] = content_type
5773
+ end
5717
5774
 
5718
5775
  # form parameters
5719
5776
  form_params = opts[:form_params] || {}
@@ -5790,7 +5847,10 @@ module MxPlatformRuby
5790
5847
  # HTTP header 'Accept' (if needed)
5791
5848
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5792
5849
  # HTTP header 'Content-Type'
5793
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5850
+ content_type = @api_client.select_header_content_type(['application/json'])
5851
+ if !content_type.nil?
5852
+ header_params['Content-Type'] = content_type
5853
+ end
5794
5854
 
5795
5855
  # form parameters
5796
5856
  form_params = opts[:form_params] || {}
@@ -5867,7 +5927,10 @@ module MxPlatformRuby
5867
5927
  # HTTP header 'Accept' (if needed)
5868
5928
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5869
5929
  # HTTP header 'Content-Type'
5870
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5930
+ content_type = @api_client.select_header_content_type(['application/json'])
5931
+ if !content_type.nil?
5932
+ header_params['Content-Type'] = content_type
5933
+ end
5871
5934
 
5872
5935
  # form parameters
5873
5936
  form_params = opts[:form_params] || {}
@@ -5944,7 +6007,10 @@ module MxPlatformRuby
5944
6007
  # HTTP header 'Accept' (if needed)
5945
6008
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5946
6009
  # HTTP header 'Content-Type'
5947
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
6010
+ content_type = @api_client.select_header_content_type(['application/json'])
6011
+ if !content_type.nil?
6012
+ header_params['Content-Type'] = content_type
6013
+ end
5948
6014
 
5949
6015
  # form parameters
5950
6016
  form_params = opts[:form_params] || {}
@@ -6021,7 +6087,10 @@ module MxPlatformRuby
6021
6087
  # HTTP header 'Accept' (if needed)
6022
6088
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
6023
6089
  # HTTP header 'Content-Type'
6024
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
6090
+ content_type = @api_client.select_header_content_type(['application/json'])
6091
+ if !content_type.nil?
6092
+ header_params['Content-Type'] = content_type
6093
+ end
6025
6094
 
6026
6095
  # form parameters
6027
6096
  form_params = opts[:form_params] || {}
@@ -6092,7 +6161,10 @@ module MxPlatformRuby
6092
6161
  # HTTP header 'Accept' (if needed)
6093
6162
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
6094
6163
  # HTTP header 'Content-Type'
6095
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
6164
+ content_type = @api_client.select_header_content_type(['application/json'])
6165
+ if !content_type.nil?
6166
+ header_params['Content-Type'] = content_type
6167
+ end
6096
6168
 
6097
6169
  # form parameters
6098
6170
  form_params = opts[:form_params] || {}
@@ -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.2.1
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(config.username, config.password)
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 hearder and query params based on authentication settings.
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
- # use application/json by default
344
- return 'application/json' if content_types.nil? || content_types.empty?
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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
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.2.1
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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -223,6 +223,50 @@ module MxPlatformRuby
223
223
  # List of attributes with nullable: true
224
224
  def self.openapi_nullable
225
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'
226
270
  ])
227
271
  end
228
272
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12