mx-platform-ruby 0.44.0 → 0.44.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -1
  3. data/lib/mx-platform-ruby/api/budgets_api.rb +6 -6
  4. data/lib/mx-platform-ruby/api/goals_api.rb +6 -6
  5. data/lib/mx-platform-ruby/api/insights_api.rb +10 -10
  6. data/lib/mx-platform-ruby/api/microdeposits_api.rb +5 -5
  7. data/lib/mx-platform-ruby/api/mx_platform_api.rb +97 -97
  8. data/lib/mx-platform-ruby/api/spending_plan_api.rb +12 -12
  9. data/lib/mx-platform-ruby/api/transactions_api.rb +2 -2
  10. data/lib/mx-platform-ruby/api_client.rb +50 -41
  11. data/lib/mx-platform-ruby/api_error.rb +1 -1
  12. data/lib/mx-platform-ruby/configuration.rb +12 -1
  13. data/lib/mx-platform-ruby/models/account_create_request.rb +2 -2
  14. data/lib/mx-platform-ruby/models/account_create_request_body.rb +2 -2
  15. data/lib/mx-platform-ruby/models/account_number_response.rb +2 -2
  16. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +2 -2
  17. data/lib/mx-platform-ruby/models/account_owner_response.rb +2 -2
  18. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +2 -2
  19. data/lib/mx-platform-ruby/models/account_response.rb +2 -2
  20. data/lib/mx-platform-ruby/models/account_response_body.rb +2 -2
  21. data/lib/mx-platform-ruby/models/account_update_request.rb +2 -2
  22. data/lib/mx-platform-ruby/models/account_update_request_body.rb +2 -2
  23. data/lib/mx-platform-ruby/models/accounts_response_body.rb +2 -2
  24. data/lib/mx-platform-ruby/models/authorization_code_request.rb +2 -2
  25. data/lib/mx-platform-ruby/models/authorization_code_request_body.rb +2 -2
  26. data/lib/mx-platform-ruby/models/authorization_code_response.rb +2 -2
  27. data/lib/mx-platform-ruby/models/authorization_code_response_body.rb +2 -2
  28. data/lib/mx-platform-ruby/models/budget_create_request.rb +2 -2
  29. data/lib/mx-platform-ruby/models/budget_create_request_body.rb +2 -2
  30. data/lib/mx-platform-ruby/models/budget_response.rb +2 -2
  31. data/lib/mx-platform-ruby/models/budget_response_body.rb +2 -2
  32. data/lib/mx-platform-ruby/models/budget_update_request.rb +2 -2
  33. data/lib/mx-platform-ruby/models/budget_update_request_body.rb +2 -2
  34. data/lib/mx-platform-ruby/models/categories_response_body.rb +2 -2
  35. data/lib/mx-platform-ruby/models/category_create_request.rb +2 -2
  36. data/lib/mx-platform-ruby/models/category_create_request_body.rb +2 -2
  37. data/lib/mx-platform-ruby/models/category_response.rb +2 -2
  38. data/lib/mx-platform-ruby/models/category_response_body.rb +2 -2
  39. data/lib/mx-platform-ruby/models/category_update_request.rb +2 -2
  40. data/lib/mx-platform-ruby/models/category_update_request_body.rb +2 -2
  41. data/lib/mx-platform-ruby/models/challenge_response.rb +2 -2
  42. data/lib/mx-platform-ruby/models/challenges_response_body.rb +2 -2
  43. data/lib/mx-platform-ruby/models/connect_widget_request.rb +2 -2
  44. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +2 -2
  45. data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -2
  46. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +2 -2
  47. data/lib/mx-platform-ruby/models/credential_request.rb +2 -2
  48. data/lib/mx-platform-ruby/models/credential_response.rb +2 -2
  49. data/lib/mx-platform-ruby/models/credentials_response_body.rb +2 -2
  50. data/lib/mx-platform-ruby/models/credit_card_product.rb +2 -2
  51. data/lib/mx-platform-ruby/models/credit_card_product_response.rb +2 -2
  52. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +2 -2
  53. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +2 -2
  54. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +2 -2
  55. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +2 -2
  56. data/lib/mx-platform-ruby/models/goal_request.rb +2 -2
  57. data/lib/mx-platform-ruby/models/goal_request_body.rb +2 -2
  58. data/lib/mx-platform-ruby/models/goal_response.rb +2 -2
  59. data/lib/mx-platform-ruby/models/goal_response_body.rb +2 -2
  60. data/lib/mx-platform-ruby/models/goals_response.rb +2 -2
  61. data/lib/mx-platform-ruby/models/goals_response_body.rb +2 -2
  62. data/lib/mx-platform-ruby/models/holding_response.rb +2 -2
  63. data/lib/mx-platform-ruby/models/holding_response_body.rb +2 -2
  64. data/lib/mx-platform-ruby/models/holdings_response_body.rb +2 -2
  65. data/lib/mx-platform-ruby/models/image_option_response.rb +2 -2
  66. data/lib/mx-platform-ruby/models/insight_response.rb +2 -2
  67. data/lib/mx-platform-ruby/models/insight_response_body.rb +2 -2
  68. data/lib/mx-platform-ruby/models/insight_update_request.rb +2 -2
  69. data/lib/mx-platform-ruby/models/insights_response_body.rb +2 -2
  70. data/lib/mx-platform-ruby/models/institution_response.rb +2 -2
  71. data/lib/mx-platform-ruby/models/institution_response_body.rb +2 -2
  72. data/lib/mx-platform-ruby/models/institutions_response_body.rb +2 -2
  73. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +2 -2
  74. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +2 -2
  75. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +2 -2
  76. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +2 -2
  77. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +2 -2
  78. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +2 -2
  79. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +2 -2
  80. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +2 -2
  81. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +2 -2
  82. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +2 -2
  83. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +2 -2
  84. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +2 -2
  85. data/lib/mx-platform-ruby/models/member_create_request.rb +2 -2
  86. data/lib/mx-platform-ruby/models/member_create_request_body.rb +2 -2
  87. data/lib/mx-platform-ruby/models/member_response.rb +2 -2
  88. data/lib/mx-platform-ruby/models/member_response_body.rb +2 -2
  89. data/lib/mx-platform-ruby/models/member_resume_request.rb +2 -2
  90. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +2 -2
  91. data/lib/mx-platform-ruby/models/member_status_response.rb +2 -2
  92. data/lib/mx-platform-ruby/models/member_status_response_body.rb +2 -2
  93. data/lib/mx-platform-ruby/models/member_update_request.rb +2 -2
  94. data/lib/mx-platform-ruby/models/member_update_request_body.rb +2 -2
  95. data/lib/mx-platform-ruby/models/members_response_body.rb +2 -2
  96. data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -2
  97. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +2 -2
  98. data/lib/mx-platform-ruby/models/merchant_response.rb +2 -2
  99. data/lib/mx-platform-ruby/models/merchant_response_body.rb +2 -2
  100. data/lib/mx-platform-ruby/models/merchants_response_body.rb +2 -2
  101. data/lib/mx-platform-ruby/models/microdeposit_request.rb +2 -2
  102. data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +2 -2
  103. data/lib/mx-platform-ruby/models/microdeposit_response.rb +2 -2
  104. data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +2 -2
  105. data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +2 -2
  106. data/lib/mx-platform-ruby/models/microdeposit_verify_request_body.rb +2 -2
  107. data/lib/mx-platform-ruby/models/microdeposits_response_body.rb +2 -2
  108. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +2 -2
  109. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +2 -2
  110. data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +2 -2
  111. data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +2 -2
  112. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -2
  113. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +2 -2
  114. data/lib/mx-platform-ruby/models/option_response.rb +2 -2
  115. data/lib/mx-platform-ruby/models/pagination_response.rb +2 -2
  116. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +2 -2
  117. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +2 -2
  118. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +2 -2
  119. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +2 -2
  120. data/lib/mx-platform-ruby/models/reposition_request.rb +2 -2
  121. data/lib/mx-platform-ruby/models/reposition_request_body.rb +2 -2
  122. data/lib/mx-platform-ruby/models/reposition_response_body.rb +2 -2
  123. data/lib/mx-platform-ruby/models/reward_response.rb +2 -2
  124. data/lib/mx-platform-ruby/models/reward_response_body.rb +2 -2
  125. data/lib/mx-platform-ruby/models/rewards_response.rb +2 -2
  126. data/lib/mx-platform-ruby/models/rewards_response_body.rb +2 -2
  127. data/lib/mx-platform-ruby/models/scheduled_payment_response.rb +2 -2
  128. data/lib/mx-platform-ruby/models/scheduled_payments_response_body.rb +2 -2
  129. data/lib/mx-platform-ruby/models/spending_plan_account_response.rb +2 -2
  130. data/lib/mx-platform-ruby/models/spending_plan_accounts_response.rb +2 -2
  131. data/lib/mx-platform-ruby/models/spending_plan_iteration_item_create_request_body.rb +2 -2
  132. data/lib/mx-platform-ruby/models/spending_plan_iteration_item_response.rb +2 -2
  133. data/lib/mx-platform-ruby/models/spending_plan_iteration_items_response_body.rb +2 -2
  134. data/lib/mx-platform-ruby/models/spending_plan_iteration_response.rb +2 -2
  135. data/lib/mx-platform-ruby/models/spending_plan_iterations_response.rb +2 -2
  136. data/lib/mx-platform-ruby/models/spending_plan_response.rb +2 -2
  137. data/lib/mx-platform-ruby/models/spending_plans_response_body.rb +2 -2
  138. data/lib/mx-platform-ruby/models/split_transaction_request.rb +2 -2
  139. data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +2 -2
  140. data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +2 -2
  141. data/lib/mx-platform-ruby/models/statement_response.rb +2 -2
  142. data/lib/mx-platform-ruby/models/statement_response_body.rb +2 -2
  143. data/lib/mx-platform-ruby/models/statements_response_body.rb +2 -2
  144. data/lib/mx-platform-ruby/models/tag_create_request.rb +2 -2
  145. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +2 -2
  146. data/lib/mx-platform-ruby/models/tag_response.rb +2 -2
  147. data/lib/mx-platform-ruby/models/tag_response_body.rb +2 -2
  148. data/lib/mx-platform-ruby/models/tag_update_request.rb +2 -2
  149. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +2 -2
  150. data/lib/mx-platform-ruby/models/tagging_create_request.rb +2 -2
  151. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +2 -2
  152. data/lib/mx-platform-ruby/models/tagging_response.rb +2 -2
  153. data/lib/mx-platform-ruby/models/tagging_response_body.rb +2 -2
  154. data/lib/mx-platform-ruby/models/tagging_update_request.rb +2 -2
  155. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +2 -2
  156. data/lib/mx-platform-ruby/models/taggings_response_body.rb +2 -2
  157. data/lib/mx-platform-ruby/models/tags_response_body.rb +2 -2
  158. data/lib/mx-platform-ruby/models/tax_document_response.rb +2 -2
  159. data/lib/mx-platform-ruby/models/tax_document_response_body.rb +2 -2
  160. data/lib/mx-platform-ruby/models/tax_documents_response_body.rb +2 -2
  161. data/lib/mx-platform-ruby/models/transaction_create_request.rb +2 -2
  162. data/lib/mx-platform-ruby/models/transaction_create_request_body.rb +2 -2
  163. data/lib/mx-platform-ruby/models/transaction_create_response_body.rb +2 -2
  164. data/lib/mx-platform-ruby/models/transaction_response.rb +2 -2
  165. data/lib/mx-platform-ruby/models/transaction_response_body.rb +2 -2
  166. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +2 -2
  167. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +2 -2
  168. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +2 -2
  169. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +2 -2
  170. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +2 -2
  171. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +2 -2
  172. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +2 -2
  173. data/lib/mx-platform-ruby/models/transaction_update_request.rb +2 -2
  174. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +2 -2
  175. data/lib/mx-platform-ruby/models/transactions_response_body.rb +2 -2
  176. data/lib/mx-platform-ruby/models/update_goal_request.rb +2 -2
  177. data/lib/mx-platform-ruby/models/update_goal_request_body.rb +2 -2
  178. data/lib/mx-platform-ruby/models/user_create_request.rb +2 -2
  179. data/lib/mx-platform-ruby/models/user_create_request_body.rb +2 -2
  180. data/lib/mx-platform-ruby/models/user_response.rb +2 -2
  181. data/lib/mx-platform-ruby/models/user_response_body.rb +2 -2
  182. data/lib/mx-platform-ruby/models/user_update_request.rb +2 -2
  183. data/lib/mx-platform-ruby/models/user_update_request_body.rb +2 -2
  184. data/lib/mx-platform-ruby/models/users_response_body.rb +2 -2
  185. data/lib/mx-platform-ruby/models/widget_request.rb +2 -2
  186. data/lib/mx-platform-ruby/models/widget_request_body.rb +2 -2
  187. data/lib/mx-platform-ruby/models/widget_response.rb +2 -2
  188. data/lib/mx-platform-ruby/models/widget_response_body.rb +2 -2
  189. data/lib/mx-platform-ruby/version.rb +2 -2
  190. data/lib/mx-platform-ruby.rb +1 -1
  191. data/mx-platform-ruby.gemspec +3 -1
  192. data/openapi/config.yml +1 -1
  193. data/openapitools.json +1 -1
  194. data/spec/api/budgets_api_spec.rb +1 -1
  195. data/spec/api/goals_api_spec.rb +1 -1
  196. data/spec/api/insights_api_spec.rb +1 -1
  197. data/spec/api/microdeposits_api_spec.rb +1 -1
  198. data/spec/api/mx_platform_api_spec.rb +1 -1
  199. data/spec/api/spending_plan_api_spec.rb +1 -1
  200. data/spec/api/transactions_api_spec.rb +1 -1
  201. data/spec/models/account_create_request_body_spec.rb +4 -2
  202. data/spec/models/account_create_request_spec.rb +4 -2
  203. data/spec/models/account_number_response_spec.rb +4 -2
  204. data/spec/models/account_numbers_response_body_spec.rb +4 -2
  205. data/spec/models/account_owner_response_spec.rb +4 -2
  206. data/spec/models/account_owners_response_body_spec.rb +4 -2
  207. data/spec/models/account_response_body_spec.rb +4 -2
  208. data/spec/models/account_response_spec.rb +4 -2
  209. data/spec/models/account_update_request_body_spec.rb +4 -2
  210. data/spec/models/account_update_request_spec.rb +4 -2
  211. data/spec/models/accounts_response_body_spec.rb +4 -2
  212. data/spec/models/authorization_code_request_body_spec.rb +4 -2
  213. data/spec/models/authorization_code_request_spec.rb +4 -2
  214. data/spec/models/authorization_code_response_body_spec.rb +4 -2
  215. data/spec/models/authorization_code_response_spec.rb +4 -2
  216. data/spec/models/budget_create_request_body_spec.rb +4 -2
  217. data/spec/models/budget_create_request_spec.rb +4 -2
  218. data/spec/models/budget_response_body_spec.rb +4 -2
  219. data/spec/models/budget_response_spec.rb +4 -2
  220. data/spec/models/budget_update_request_body_spec.rb +4 -2
  221. data/spec/models/budget_update_request_spec.rb +4 -2
  222. data/spec/models/categories_response_body_spec.rb +4 -2
  223. data/spec/models/category_create_request_body_spec.rb +4 -2
  224. data/spec/models/category_create_request_spec.rb +4 -2
  225. data/spec/models/category_response_body_spec.rb +4 -2
  226. data/spec/models/category_response_spec.rb +4 -2
  227. data/spec/models/category_update_request_body_spec.rb +4 -2
  228. data/spec/models/category_update_request_spec.rb +4 -2
  229. data/spec/models/challenge_response_spec.rb +4 -2
  230. data/spec/models/challenges_response_body_spec.rb +4 -2
  231. data/spec/models/connect_widget_request_body_spec.rb +4 -2
  232. data/spec/models/connect_widget_request_spec.rb +4 -2
  233. data/spec/models/connect_widget_response_body_spec.rb +4 -2
  234. data/spec/models/connect_widget_response_spec.rb +4 -2
  235. data/spec/models/credential_request_spec.rb +4 -2
  236. data/spec/models/credential_response_spec.rb +4 -2
  237. data/spec/models/credentials_response_body_spec.rb +4 -2
  238. data/spec/models/credit_card_product_response_spec.rb +4 -2
  239. data/spec/models/credit_card_product_spec.rb +4 -2
  240. data/spec/models/enhance_transaction_response_spec.rb +4 -2
  241. data/spec/models/enhance_transactions_request_body_spec.rb +4 -2
  242. data/spec/models/enhance_transactions_request_spec.rb +4 -2
  243. data/spec/models/enhance_transactions_response_body_spec.rb +4 -2
  244. data/spec/models/goal_request_body_spec.rb +4 -2
  245. data/spec/models/goal_request_spec.rb +4 -2
  246. data/spec/models/goal_response_body_spec.rb +4 -2
  247. data/spec/models/goal_response_spec.rb +4 -2
  248. data/spec/models/goals_response_body_spec.rb +4 -2
  249. data/spec/models/goals_response_spec.rb +4 -2
  250. data/spec/models/holding_response_body_spec.rb +4 -2
  251. data/spec/models/holding_response_spec.rb +4 -2
  252. data/spec/models/holdings_response_body_spec.rb +4 -2
  253. data/spec/models/image_option_response_spec.rb +4 -2
  254. data/spec/models/insight_response_body_spec.rb +4 -2
  255. data/spec/models/insight_response_spec.rb +4 -2
  256. data/spec/models/insight_update_request_spec.rb +4 -2
  257. data/spec/models/insights_response_body_spec.rb +4 -2
  258. data/spec/models/institution_response_body_spec.rb +4 -2
  259. data/spec/models/institution_response_spec.rb +4 -2
  260. data/spec/models/institutions_response_body_spec.rb +4 -2
  261. data/spec/models/managed_account_create_request_body_spec.rb +4 -2
  262. data/spec/models/managed_account_create_request_spec.rb +4 -2
  263. data/spec/models/managed_account_update_request_body_spec.rb +4 -2
  264. data/spec/models/managed_account_update_request_spec.rb +4 -2
  265. data/spec/models/managed_member_create_request_body_spec.rb +4 -2
  266. data/spec/models/managed_member_create_request_spec.rb +4 -2
  267. data/spec/models/managed_member_update_request_body_spec.rb +4 -2
  268. data/spec/models/managed_member_update_request_spec.rb +4 -2
  269. data/spec/models/managed_transaction_create_request_body_spec.rb +4 -2
  270. data/spec/models/managed_transaction_create_request_spec.rb +4 -2
  271. data/spec/models/managed_transaction_update_request_body_spec.rb +4 -2
  272. data/spec/models/managed_transaction_update_request_spec.rb +4 -2
  273. data/spec/models/member_create_request_body_spec.rb +4 -2
  274. data/spec/models/member_create_request_spec.rb +4 -2
  275. data/spec/models/member_response_body_spec.rb +4 -2
  276. data/spec/models/member_response_spec.rb +4 -2
  277. data/spec/models/member_resume_request_body_spec.rb +4 -2
  278. data/spec/models/member_resume_request_spec.rb +4 -2
  279. data/spec/models/member_status_response_body_spec.rb +4 -2
  280. data/spec/models/member_status_response_spec.rb +4 -2
  281. data/spec/models/member_update_request_body_spec.rb +4 -2
  282. data/spec/models/member_update_request_spec.rb +4 -2
  283. data/spec/models/members_response_body_spec.rb +4 -2
  284. data/spec/models/merchant_location_response_body_spec.rb +4 -2
  285. data/spec/models/merchant_location_response_spec.rb +4 -2
  286. data/spec/models/merchant_response_body_spec.rb +4 -2
  287. data/spec/models/merchant_response_spec.rb +4 -2
  288. data/spec/models/merchants_response_body_spec.rb +4 -2
  289. data/spec/models/microdeposit_request_body_spec.rb +4 -2
  290. data/spec/models/microdeposit_request_spec.rb +4 -2
  291. data/spec/models/microdeposit_response_body_spec.rb +4 -2
  292. data/spec/models/microdeposit_response_spec.rb +4 -2
  293. data/spec/models/microdeposit_verify_request_body_spec.rb +4 -2
  294. data/spec/models/microdeposit_verify_request_spec.rb +4 -2
  295. data/spec/models/microdeposits_response_body_spec.rb +4 -2
  296. data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +4 -2
  297. data/spec/models/monthly_cash_flow_profile_request_spec.rb +4 -2
  298. data/spec/models/monthly_cash_flow_response_body_spec.rb +4 -2
  299. data/spec/models/monthly_cash_flow_response_spec.rb +4 -2
  300. data/spec/models/o_auth_window_response_body_spec.rb +4 -2
  301. data/spec/models/o_auth_window_response_spec.rb +4 -2
  302. data/spec/models/option_response_spec.rb +4 -2
  303. data/spec/models/pagination_response_spec.rb +4 -2
  304. data/spec/models/payment_processor_authorization_code_request_body_spec.rb +4 -2
  305. data/spec/models/payment_processor_authorization_code_request_spec.rb +4 -2
  306. data/spec/models/payment_processor_authorization_code_response_body_spec.rb +4 -2
  307. data/spec/models/payment_processor_authorization_code_response_spec.rb +4 -2
  308. data/spec/models/reposition_request_body_spec.rb +4 -2
  309. data/spec/models/reposition_request_spec.rb +4 -2
  310. data/spec/models/reposition_response_body_spec.rb +4 -2
  311. data/spec/models/reward_response_body_spec.rb +4 -2
  312. data/spec/models/reward_response_spec.rb +4 -2
  313. data/spec/models/rewards_response_body_spec.rb +4 -2
  314. data/spec/models/rewards_response_spec.rb +4 -2
  315. data/spec/models/scheduled_payment_response_spec.rb +4 -2
  316. data/spec/models/scheduled_payments_response_body_spec.rb +4 -2
  317. data/spec/models/spending_plan_account_response_spec.rb +4 -2
  318. data/spec/models/spending_plan_accounts_response_spec.rb +4 -2
  319. data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +4 -2
  320. data/spec/models/spending_plan_iteration_item_response_spec.rb +4 -2
  321. data/spec/models/spending_plan_iteration_items_response_body_spec.rb +4 -2
  322. data/spec/models/spending_plan_iteration_response_spec.rb +4 -2
  323. data/spec/models/spending_plan_iterations_response_spec.rb +4 -2
  324. data/spec/models/spending_plan_response_spec.rb +4 -2
  325. data/spec/models/spending_plans_response_body_spec.rb +4 -2
  326. data/spec/models/split_transaction_request_body_spec.rb +4 -2
  327. data/spec/models/split_transaction_request_spec.rb +4 -2
  328. data/spec/models/split_transactions_response_body_spec.rb +4 -2
  329. data/spec/models/statement_response_body_spec.rb +4 -2
  330. data/spec/models/statement_response_spec.rb +4 -2
  331. data/spec/models/statements_response_body_spec.rb +4 -2
  332. data/spec/models/tag_create_request_body_spec.rb +4 -2
  333. data/spec/models/tag_create_request_spec.rb +4 -2
  334. data/spec/models/tag_response_body_spec.rb +4 -2
  335. data/spec/models/tag_response_spec.rb +4 -2
  336. data/spec/models/tag_update_request_body_spec.rb +4 -2
  337. data/spec/models/tag_update_request_spec.rb +4 -2
  338. data/spec/models/tagging_create_request_body_spec.rb +4 -2
  339. data/spec/models/tagging_create_request_spec.rb +4 -2
  340. data/spec/models/tagging_response_body_spec.rb +4 -2
  341. data/spec/models/tagging_response_spec.rb +4 -2
  342. data/spec/models/tagging_update_request_body_spec.rb +4 -2
  343. data/spec/models/tagging_update_request_spec.rb +4 -2
  344. data/spec/models/taggings_response_body_spec.rb +4 -2
  345. data/spec/models/tags_response_body_spec.rb +4 -2
  346. data/spec/models/tax_document_response_body_spec.rb +4 -2
  347. data/spec/models/tax_document_response_spec.rb +4 -2
  348. data/spec/models/tax_documents_response_body_spec.rb +4 -2
  349. data/spec/models/transaction_create_request_body_spec.rb +4 -2
  350. data/spec/models/transaction_create_request_spec.rb +4 -2
  351. data/spec/models/transaction_create_response_body_spec.rb +4 -2
  352. data/spec/models/transaction_response_body_spec.rb +4 -2
  353. data/spec/models/transaction_response_spec.rb +4 -2
  354. data/spec/models/transaction_rule_create_request_body_spec.rb +4 -2
  355. data/spec/models/transaction_rule_create_request_spec.rb +4 -2
  356. data/spec/models/transaction_rule_response_body_spec.rb +4 -2
  357. data/spec/models/transaction_rule_response_spec.rb +4 -2
  358. data/spec/models/transaction_rule_update_request_body_spec.rb +4 -2
  359. data/spec/models/transaction_rule_update_request_spec.rb +4 -2
  360. data/spec/models/transaction_rules_response_body_spec.rb +4 -2
  361. data/spec/models/transaction_update_request_body_spec.rb +4 -2
  362. data/spec/models/transaction_update_request_spec.rb +4 -2
  363. data/spec/models/transactions_response_body_spec.rb +4 -2
  364. data/spec/models/update_goal_request_body_spec.rb +4 -2
  365. data/spec/models/update_goal_request_spec.rb +4 -2
  366. data/spec/models/user_create_request_body_spec.rb +4 -2
  367. data/spec/models/user_create_request_spec.rb +4 -2
  368. data/spec/models/user_response_body_spec.rb +4 -2
  369. data/spec/models/user_response_spec.rb +4 -2
  370. data/spec/models/user_update_request_body_spec.rb +4 -2
  371. data/spec/models/user_update_request_spec.rb +4 -2
  372. data/spec/models/users_response_body_spec.rb +4 -2
  373. data/spec/models/widget_request_body_spec.rb +4 -2
  374. data/spec/models/widget_request_spec.rb +4 -2
  375. data/spec/models/widget_response_body_spec.rb +4 -2
  376. data/spec/models/widget_response_spec.rb +4 -2
  377. data/spec/spec_helper.rb +1 -1
  378. metadata +173 -163
  379. data/spec/api_client_spec.rb +0 -223
  380. data/spec/configuration_spec.rb +0 -82
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -51,7 +51,7 @@ module MxPlatformRuby
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
@@ -126,7 +126,7 @@ module MxPlatformRuby
126
126
  # header parameters
127
127
  header_params = opts[:header_params] || {}
128
128
  # HTTP header 'Accept' (if needed)
129
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
130
130
  # HTTP header 'Content-Type'
131
131
  content_type = @api_client.select_header_content_type(['application/json'])
132
132
  if !content_type.nil?
@@ -419,7 +419,7 @@ module MxPlatformRuby
419
419
  # header parameters
420
420
  header_params = opts[:header_params] || {}
421
421
  # HTTP header 'Accept' (if needed)
422
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
422
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
423
423
 
424
424
  # form parameters
425
425
  form_params = opts[:form_params] || {}
@@ -494,7 +494,7 @@ module MxPlatformRuby
494
494
  # header parameters
495
495
  header_params = opts[:header_params] || {}
496
496
  # HTTP header 'Accept' (if needed)
497
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
497
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
498
498
 
499
499
  # form parameters
500
500
  form_params = opts[:form_params] || {}
@@ -569,7 +569,7 @@ module MxPlatformRuby
569
569
  # header parameters
570
570
  header_params = opts[:header_params] || {}
571
571
  # HTTP header 'Accept' (if needed)
572
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
573
573
 
574
574
  # form parameters
575
575
  form_params = opts[:form_params] || {}
@@ -638,7 +638,7 @@ module MxPlatformRuby
638
638
  # header parameters
639
639
  header_params = opts[:header_params] || {}
640
640
  # HTTP header 'Accept' (if needed)
641
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
641
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
642
642
 
643
643
  # form parameters
644
644
  form_params = opts[:form_params] || {}
@@ -719,7 +719,7 @@ module MxPlatformRuby
719
719
  # header parameters
720
720
  header_params = opts[:header_params] || {}
721
721
  # HTTP header 'Accept' (if needed)
722
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
722
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
723
723
 
724
724
  # form parameters
725
725
  form_params = opts[:form_params] || {}
@@ -800,7 +800,7 @@ module MxPlatformRuby
800
800
  # header parameters
801
801
  header_params = opts[:header_params] || {}
802
802
  # HTTP header 'Accept' (if needed)
803
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
803
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
804
804
 
805
805
  # form parameters
806
806
  form_params = opts[:form_params] || {}
@@ -881,7 +881,7 @@ module MxPlatformRuby
881
881
  # header parameters
882
882
  header_params = opts[:header_params] || {}
883
883
  # HTTP header 'Accept' (if needed)
884
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
884
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
885
885
 
886
886
  # form parameters
887
887
  form_params = opts[:form_params] || {}
@@ -956,7 +956,7 @@ module MxPlatformRuby
956
956
  # header parameters
957
957
  header_params = opts[:header_params] || {}
958
958
  # HTTP header 'Accept' (if needed)
959
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
959
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
960
960
 
961
961
  # form parameters
962
962
  form_params = opts[:form_params] || {}
@@ -1037,7 +1037,7 @@ module MxPlatformRuby
1037
1037
  # header parameters
1038
1038
  header_params = opts[:header_params] || {}
1039
1039
  # HTTP header 'Accept' (if needed)
1040
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
1040
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
1041
1041
  # HTTP header 'Content-Type'
1042
1042
  content_type = @api_client.select_header_content_type(['application/json'])
1043
1043
  if !content_type.nil?
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -63,7 +63,7 @@ module MxPlatformRuby
63
63
  # header parameters
64
64
  header_params = opts[:header_params] || {}
65
65
  # HTTP header 'Accept' (if needed)
66
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
67
67
  # HTTP header 'Content-Type'
68
68
  content_type = @api_client.select_header_content_type(['application/json'])
69
69
  if !content_type.nil?
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -17,6 +17,8 @@ require 'tempfile'
17
17
  require 'time'
18
18
  require 'faraday'
19
19
  require 'faraday/multipart' if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
20
+ require 'marcel'
21
+
20
22
 
21
23
  module MxPlatformRuby
22
24
  class ApiClient
@@ -48,9 +50,11 @@ module MxPlatformRuby
48
50
  # @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
49
51
  # the data deserialized from response body (could be nil), response status code and response headers.
50
52
  def call_api(http_method, path, opts = {})
53
+ stream = nil
51
54
  begin
52
55
  response = connection(opts).public_send(http_method.to_sym.downcase) do |req|
53
- build_request(http_method, path, req, opts)
56
+ request = build_request(http_method, path, req, opts)
57
+ stream = download_file(request) if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
54
58
  end
55
59
 
56
60
  if config.debugging
@@ -75,7 +79,9 @@ module MxPlatformRuby
75
79
  fail ApiError.new('Connection failed')
76
80
  end
77
81
 
78
- if opts[:return_type]
82
+ if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
83
+ data = deserialize_file(response, stream)
84
+ elsif opts[:return_type]
79
85
  data = deserialize(response, opts[:return_type])
80
86
  else
81
87
  data = nil
@@ -117,7 +123,6 @@ module MxPlatformRuby
117
123
 
118
124
  request.url url
119
125
  request.params = query_params
120
- download_file(request) if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
121
126
  request
122
127
  end
123
128
 
@@ -136,8 +141,7 @@ module MxPlatformRuby
136
141
  form_params.each do |key, value|
137
142
  case value
138
143
  when ::File, ::Tempfile
139
- # TODO hardcode to application/octet-stream, need better way to detect content type
140
- data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
144
+ data[key] = Faraday::FilePart.new(value.path, Marcel::MimeType.for(Pathname.new(value.path)))
141
145
  when ::Array, nil
142
146
  # let Faraday handle Array and nil parameters
143
147
  data[key] = value
@@ -154,12 +158,47 @@ module MxPlatformRuby
154
158
  end
155
159
 
156
160
  def download_file(request)
157
- @stream = []
161
+ stream = []
158
162
 
159
163
  # handle streaming Responses
160
164
  request.options.on_data = Proc.new do |chunk, overall_received_bytes|
161
- @stream << chunk
165
+ stream << chunk
166
+ end
167
+
168
+ stream
169
+ end
170
+
171
+ def deserialize_file(response, stream)
172
+ body = response.body
173
+ encoding = body.encoding
174
+
175
+ # reconstruct content
176
+ content = stream.join
177
+ content = content.unpack('m').join if response.headers['Content-Transfer-Encoding'] == 'binary'
178
+ content = content.force_encoding(encoding)
179
+
180
+ # return byte stream
181
+ return content if @config.return_binary_data == true
182
+
183
+ # return file instead of binary data
184
+ content_disposition = response.headers['Content-Disposition']
185
+ if content_disposition && content_disposition =~ /filename=/i
186
+ filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
187
+ prefix = sanitize_filename(filename)
188
+ else
189
+ prefix = 'download-'
162
190
  end
191
+ prefix = prefix + '-' unless prefix.end_with?('-')
192
+
193
+ tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
194
+ tempfile.write(content)
195
+ tempfile.close
196
+
197
+ config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
198
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
199
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
200
+ "explicitly with `tempfile.delete`"
201
+ tempfile
163
202
  end
164
203
 
165
204
  def connection(opts)
@@ -216,7 +255,7 @@ module MxPlatformRuby
216
255
  # @param [String] mime MIME
217
256
  # @return [Boolean] True if the MIME is application/json
218
257
  def json_mime?(mime)
219
- (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
258
+ (mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
220
259
  end
221
260
 
222
261
  # Deserialize the response to the given return type.
@@ -225,40 +264,10 @@ module MxPlatformRuby
225
264
  # @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
226
265
  def deserialize(response, return_type)
227
266
  body = response.body
228
-
229
- # handle file downloading - return the File instance processed in request callbacks
230
- # note that response body is empty when the file is written in chunks in request on_body callback
231
- if return_type == 'File'
232
- if @config.return_binary_data == true
233
- # return byte stream
234
- encoding = body.encoding
235
- return @stream.join.force_encoding(encoding)
236
- else
237
- # return file instead of binary data
238
- content_disposition = response.headers['Content-Disposition']
239
- if content_disposition && content_disposition =~ /filename=/i
240
- filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
241
- prefix = sanitize_filename(filename)
242
- else
243
- prefix = 'download-'
244
- end
245
- prefix = prefix + '-' unless prefix.end_with?('-')
246
- encoding = body.encoding
247
- @tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
248
- @tempfile.write(@stream.join.force_encoding(encoding))
249
- @tempfile.close
250
- @config.logger.info "Temp file written to #{@tempfile.path}, please copy the file to a proper folder "\
251
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
252
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
253
- "explicitly with `tempfile.delete`"
254
- return @tempfile
255
- end
256
- end
257
-
258
267
  return nil if body.nil? || body.empty?
259
268
 
260
269
  # return response body directly for String return type
261
- return body if return_type == 'String'
270
+ return body.to_s if return_type == 'String'
262
271
 
263
272
  # ensuring a default content type
264
273
  content_type = response.headers['Content-Type'] || 'application/json'
@@ -325,7 +334,7 @@ module MxPlatformRuby
325
334
  # @param [String] filename the filename to be sanitized
326
335
  # @return [String] the sanitized filename
327
336
  def sanitize_filename(filename)
328
- filename.gsub(/.*[\/\\]/, '')
337
+ filename.split(/[\/\\]/).last
329
338
  end
330
339
 
331
340
  def build_request_url(path, opts = {})
@@ -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: 7.0.1
9
+ Generator version: 7.8.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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -79,6 +79,14 @@ module MxPlatformRuby
79
79
  # @return [true, false]
80
80
  attr_accessor :debugging
81
81
 
82
+ # Set this to ignore operation servers for the API client. This is useful when you need to
83
+ # send requests to a different server than the one specified in the OpenAPI document.
84
+ # Will default to the base url defined in the spec but can be overridden by setting
85
+ # `scheme`, `host`, `base_path` directly.
86
+ # Default to false.
87
+ # @return [true, false]
88
+ attr_accessor :ignore_operation_servers
89
+
82
90
  # Defines the logger used for debugging.
83
91
  # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
84
92
  #
@@ -170,6 +178,7 @@ module MxPlatformRuby
170
178
  @return_binary_data = false
171
179
  @params_encoder = nil
172
180
  @debugging = false
181
+ @ignore_operation_servers = false
173
182
  @inject_format = false
174
183
  @force_ending_format = false
175
184
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
@@ -204,6 +213,7 @@ module MxPlatformRuby
204
213
 
205
214
  # Returns base URL for specified operation based on server settings
206
215
  def base_url(operation = nil)
216
+ return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
207
217
  if operation_server_settings.key?(operation) then
208
218
  index = server_operation_index.fetch(operation, server_index)
209
219
  server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
@@ -381,5 +391,6 @@ module MxPlatformRuby
381
391
  end
382
392
  end
383
393
  end
394
+
384
395
  end
385
396
  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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -353,7 +353,7 @@ module MxPlatformRuby
353
353
  else # model
354
354
  # models (e.g. Pet) or oneOf
355
355
  klass = MxPlatformRuby.const_get(type)
356
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
356
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
357
357
  end
358
358
  end
359
359
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -159,7 +159,7 @@ module MxPlatformRuby
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = MxPlatformRuby.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -270,7 +270,7 @@ module MxPlatformRuby
270
270
  else # model
271
271
  # models (e.g. Pet) or oneOf
272
272
  klass = MxPlatformRuby.const_get(type)
273
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
273
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
274
274
  end
275
275
  end
276
276
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -170,7 +170,7 @@ module MxPlatformRuby
170
170
  else # model
171
171
  # models (e.g. Pet) or oneOf
172
172
  klass = MxPlatformRuby.const_get(type)
173
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
174
  end
175
175
  end
176
176
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -290,7 +290,7 @@ module MxPlatformRuby
290
290
  else # model
291
291
  # models (e.g. Pet) or oneOf
292
292
  klass = MxPlatformRuby.const_get(type)
293
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
293
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
294
294
  end
295
295
  end
296
296
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -170,7 +170,7 @@ module MxPlatformRuby
170
170
  else # model
171
171
  # models (e.g. Pet) or oneOf
172
172
  klass = MxPlatformRuby.const_get(type)
173
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
174
  end
175
175
  end
176
176
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -729,7 +729,7 @@ module MxPlatformRuby
729
729
  else # model
730
730
  # models (e.g. Pet) or oneOf
731
731
  klass = MxPlatformRuby.const_get(type)
732
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
732
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
733
733
  end
734
734
  end
735
735
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -159,7 +159,7 @@ module MxPlatformRuby
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = MxPlatformRuby.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -339,7 +339,7 @@ module MxPlatformRuby
339
339
  else # model
340
340
  # models (e.g. Pet) or oneOf
341
341
  klass = MxPlatformRuby.const_get(type)
342
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
342
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
343
343
  end
344
344
  end
345
345
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -159,7 +159,7 @@ module MxPlatformRuby
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = MxPlatformRuby.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -170,7 +170,7 @@ module MxPlatformRuby
170
170
  else # model
171
171
  # models (e.g. Pet) or oneOf
172
172
  klass = MxPlatformRuby.const_get(type)
173
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
174
  end
175
175
  end
176
176
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -160,7 +160,7 @@ module MxPlatformRuby
160
160
  else # model
161
161
  # models (e.g. Pet) or oneOf
162
162
  klass = MxPlatformRuby.const_get(type)
163
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
164
  end
165
165
  end
166
166
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -159,7 +159,7 @@ module MxPlatformRuby
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = MxPlatformRuby.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -160,7 +160,7 @@ module MxPlatformRuby
160
160
  else # model
161
161
  # models (e.g. Pet) or oneOf
162
162
  klass = MxPlatformRuby.const_get(type)
163
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
164
  end
165
165
  end
166
166
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -161,7 +161,7 @@ module MxPlatformRuby
161
161
  else # model
162
162
  # models (e.g. Pet) or oneOf
163
163
  klass = MxPlatformRuby.const_get(type)
164
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
165
  end
166
166
  end
167
167
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -214,7 +214,7 @@ module MxPlatformRuby
214
214
  else # model
215
215
  # models (e.g. Pet) or oneOf
216
216
  klass = MxPlatformRuby.const_get(type)
217
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
217
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
218
218
  end
219
219
  end
220
220
 
@@ -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: 7.0.1
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -159,7 +159,7 @@ module MxPlatformRuby
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = MxPlatformRuby.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165