mx-platform-ruby 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +84 -0
  4. data/LICENSE +21 -0
  5. data/README.md +262 -0
  6. data/Rakefile +10 -0
  7. data/docs/Account.md +96 -0
  8. data/docs/AccountNumber.md +32 -0
  9. data/docs/AccountNumberResponse.md +32 -0
  10. data/docs/AccountNumbersResponseBody.md +20 -0
  11. data/docs/AccountOwner.md +40 -0
  12. data/docs/AccountOwnerResponse.md +40 -0
  13. data/docs/AccountOwnersResponseBody.md +20 -0
  14. data/docs/AccountResponse.md +96 -0
  15. data/docs/AccountResponseBody.md +18 -0
  16. data/docs/AccountUpdateRequest.md +18 -0
  17. data/docs/AccountUpdateRequestBody.md +18 -0
  18. data/docs/AccountsResponseBody.md +20 -0
  19. data/docs/CategoriesResponseBody.md +20 -0
  20. data/docs/Category.md +32 -0
  21. data/docs/CategoryCreateRequest.md +22 -0
  22. data/docs/CategoryCreateRequestBody.md +18 -0
  23. data/docs/CategoryResponse.md +32 -0
  24. data/docs/CategoryResponseBody.md +18 -0
  25. data/docs/CategoryUpdateRequest.md +20 -0
  26. data/docs/CategoryUpdateRequestBody.md +18 -0
  27. data/docs/Challenge.md +30 -0
  28. data/docs/ChallengeImageOptions.md +22 -0
  29. data/docs/ChallengeOptions.md +20 -0
  30. data/docs/ChallengeResponse.md +30 -0
  31. data/docs/ChallengeResponseImageOptions.md +22 -0
  32. data/docs/ChallengeResponseOptions.md +20 -0
  33. data/docs/ChallengesResponseBody.md +20 -0
  34. data/docs/ConnectWidget.md +20 -0
  35. data/docs/ConnectWidgetRequest.md +38 -0
  36. data/docs/ConnectWidgetRequestBody.md +18 -0
  37. data/docs/ConnectWidgetResponse.md +20 -0
  38. data/docs/ConnectWidgetResponseBody.md +18 -0
  39. data/docs/Credential.md +26 -0
  40. data/docs/CredentialRequest.md +20 -0
  41. data/docs/CredentialResponse.md +26 -0
  42. data/docs/CredentialsResponseBody.md +20 -0
  43. data/docs/EnhanceTransaction.md +48 -0
  44. data/docs/EnhanceTransactionResponse.md +48 -0
  45. data/docs/EnhanceTransactionsRequest.md +26 -0
  46. data/docs/EnhanceTransactionsRequestBody.md +18 -0
  47. data/docs/EnhanceTransactionsResponseBody.md +18 -0
  48. data/docs/Holding.md +52 -0
  49. data/docs/HoldingResponse.md +52 -0
  50. data/docs/HoldingResponseBody.md +18 -0
  51. data/docs/HoldingsResponseBody.md +20 -0
  52. data/docs/InlineResponse200.md +18 -0
  53. data/docs/Institution.md +36 -0
  54. data/docs/InstitutionResponse.md +36 -0
  55. data/docs/InstitutionResponseBody.md +18 -0
  56. data/docs/InstitutionsResponseBody.md +20 -0
  57. data/docs/Member.md +40 -0
  58. data/docs/MemberCreateRequest.md +30 -0
  59. data/docs/MemberCreateRequestBody.md +22 -0
  60. data/docs/MemberResponse.md +40 -0
  61. data/docs/MemberResponseBody.md +18 -0
  62. data/docs/MemberResumeRequest.md +18 -0
  63. data/docs/MemberResumeRequestBody.md +18 -0
  64. data/docs/MemberStatus.md +34 -0
  65. data/docs/MemberStatusResponse.md +34 -0
  66. data/docs/MemberStatusResponseBody.md +18 -0
  67. data/docs/MemberUpdateRequest.md +26 -0
  68. data/docs/MemberUpdateRequestBody.md +18 -0
  69. data/docs/MembersResponseBody.md +20 -0
  70. data/docs/Merchant.md +28 -0
  71. data/docs/MerchantResponse.md +28 -0
  72. data/docs/MerchantResponseBody.md +18 -0
  73. data/docs/MerchantsResponseBody.md +20 -0
  74. data/docs/MxPlatformApi.md +5182 -0
  75. data/docs/OAuthWindow.md +20 -0
  76. data/docs/OAuthWindowResponse.md +20 -0
  77. data/docs/OAuthWindowResponseBody.md +18 -0
  78. data/docs/Pagination.md +24 -0
  79. data/docs/PaginationResponse.md +24 -0
  80. data/docs/Statement.md +32 -0
  81. data/docs/StatementResponse.md +32 -0
  82. data/docs/StatementResponseBody.md +18 -0
  83. data/docs/StatementsResponseBody.md +20 -0
  84. data/docs/Tag.md +22 -0
  85. data/docs/TagCreateRequest.md +18 -0
  86. data/docs/TagCreateRequestBody.md +18 -0
  87. data/docs/TagResponse.md +22 -0
  88. data/docs/TagResponseBody.md +18 -0
  89. data/docs/TagUpdateRequest.md +18 -0
  90. data/docs/TagUpdateRequestBody.md +18 -0
  91. data/docs/Tagging.md +26 -0
  92. data/docs/TaggingCreateRequest.md +20 -0
  93. data/docs/TaggingCreateRequestBody.md +18 -0
  94. data/docs/TaggingResponse.md +26 -0
  95. data/docs/TaggingResponseBody.md +18 -0
  96. data/docs/TaggingUpdateRequest.md +18 -0
  97. data/docs/TaggingUpdateRequestBody.md +18 -0
  98. data/docs/TaggingsResponseBody.md +20 -0
  99. data/docs/TagsResponseBody.md +20 -0
  100. data/docs/Transaction.md +88 -0
  101. data/docs/TransactionResponse.md +88 -0
  102. data/docs/TransactionResponseBody.md +18 -0
  103. data/docs/TransactionRule.md +30 -0
  104. data/docs/TransactionRuleCreateRequest.md +22 -0
  105. data/docs/TransactionRuleCreateRequestBody.md +18 -0
  106. data/docs/TransactionRuleResponse.md +30 -0
  107. data/docs/TransactionRuleResponseBody.md +18 -0
  108. data/docs/TransactionRuleUpdateRequest.md +22 -0
  109. data/docs/TransactionRuleUpdateRequestBody.md +18 -0
  110. data/docs/TransactionRulesResponseBody.md +20 -0
  111. data/docs/TransactionUpdateRequest.md +18 -0
  112. data/docs/TransactionUpdateRequestBody.md +18 -0
  113. data/docs/TransactionsResponseBody.md +20 -0
  114. data/docs/User.md +26 -0
  115. data/docs/UserCreateRequest.md +24 -0
  116. data/docs/UserCreateRequestBody.md +18 -0
  117. data/docs/UserResponse.md +26 -0
  118. data/docs/UserResponseBody.md +18 -0
  119. data/docs/UserUpdateRequest.md +24 -0
  120. data/docs/UserUpdateRequestBody.md +18 -0
  121. data/docs/UsersResponseBody.md +20 -0
  122. data/docs/Widget.md +22 -0
  123. data/docs/WidgetRequest.md +42 -0
  124. data/docs/WidgetRequestBody.md +18 -0
  125. data/docs/WidgetResponse.md +22 -0
  126. data/docs/WidgetResponseBody.md +18 -0
  127. data/lib/mx-platform-ruby.rb +134 -0
  128. data/lib/mx-platform-ruby/api/mx_platform_api.rb +4917 -0
  129. data/lib/mx-platform-ruby/api_client.rb +395 -0
  130. data/lib/mx-platform-ruby/api_error.rb +57 -0
  131. data/lib/mx-platform-ruby/configuration.rb +276 -0
  132. data/lib/mx-platform-ruby/models/account.rb +569 -0
  133. data/lib/mx-platform-ruby/models/account_number.rb +281 -0
  134. data/lib/mx-platform-ruby/models/account_number_response.rb +281 -0
  135. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +229 -0
  136. data/lib/mx-platform-ruby/models/account_owner.rb +317 -0
  137. data/lib/mx-platform-ruby/models/account_owner_response.rb +317 -0
  138. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +229 -0
  139. data/lib/mx-platform-ruby/models/account_response.rb +569 -0
  140. data/lib/mx-platform-ruby/models/account_response_body.rb +218 -0
  141. data/lib/mx-platform-ruby/models/account_update_request.rb +218 -0
  142. data/lib/mx-platform-ruby/models/account_update_request_body.rb +218 -0
  143. data/lib/mx-platform-ruby/models/accounts_response_body.rb +229 -0
  144. data/lib/mx-platform-ruby/models/categories_response_body.rb +229 -0
  145. data/lib/mx-platform-ruby/models/category.rb +281 -0
  146. data/lib/mx-platform-ruby/models/category_create_request.rb +241 -0
  147. data/lib/mx-platform-ruby/models/category_create_request_body.rb +218 -0
  148. data/lib/mx-platform-ruby/models/category_response.rb +281 -0
  149. data/lib/mx-platform-ruby/models/category_response_body.rb +218 -0
  150. data/lib/mx-platform-ruby/models/category_update_request.rb +227 -0
  151. data/lib/mx-platform-ruby/models/category_update_request_body.rb +218 -0
  152. data/lib/mx-platform-ruby/models/challenge.rb +276 -0
  153. data/lib/mx-platform-ruby/models/challenge_image_options.rb +236 -0
  154. data/lib/mx-platform-ruby/models/challenge_options.rb +227 -0
  155. data/lib/mx-platform-ruby/models/challenge_response.rb +276 -0
  156. data/lib/mx-platform-ruby/models/challenge_response_image_options.rb +236 -0
  157. data/lib/mx-platform-ruby/models/challenge_response_options.rb +227 -0
  158. data/lib/mx-platform-ruby/models/challenges_response_body.rb +229 -0
  159. data/lib/mx-platform-ruby/models/connect_widget.rb +227 -0
  160. data/lib/mx-platform-ruby/models/connect_widget_request.rb +308 -0
  161. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +218 -0
  162. data/lib/mx-platform-ruby/models/connect_widget_response.rb +227 -0
  163. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +218 -0
  164. data/lib/mx-platform-ruby/models/credential.rb +254 -0
  165. data/lib/mx-platform-ruby/models/credential_request.rb +227 -0
  166. data/lib/mx-platform-ruby/models/credential_response.rb +254 -0
  167. data/lib/mx-platform-ruby/models/credentials_response_body.rb +229 -0
  168. data/lib/mx-platform-ruby/models/enhance_transaction.rb +353 -0
  169. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +353 -0
  170. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +264 -0
  171. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +220 -0
  172. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +220 -0
  173. data/lib/mx-platform-ruby/models/holding.rb +371 -0
  174. data/lib/mx-platform-ruby/models/holding_response.rb +371 -0
  175. data/lib/mx-platform-ruby/models/holding_response_body.rb +218 -0
  176. data/lib/mx-platform-ruby/models/holdings_response_body.rb +229 -0
  177. data/lib/mx-platform-ruby/models/inline_response200.rb +218 -0
  178. data/lib/mx-platform-ruby/models/institution.rb +299 -0
  179. data/lib/mx-platform-ruby/models/institution_response.rb +299 -0
  180. data/lib/mx-platform-ruby/models/institution_response_body.rb +218 -0
  181. data/lib/mx-platform-ruby/models/institutions_response_body.rb +229 -0
  182. data/lib/mx-platform-ruby/models/member.rb +317 -0
  183. data/lib/mx-platform-ruby/models/member_create_request.rb +284 -0
  184. data/lib/mx-platform-ruby/models/member_create_request_body.rb +236 -0
  185. data/lib/mx-platform-ruby/models/member_response.rb +317 -0
  186. data/lib/mx-platform-ruby/models/member_response_body.rb +218 -0
  187. data/lib/mx-platform-ruby/models/member_resume_request.rb +220 -0
  188. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +218 -0
  189. data/lib/mx-platform-ruby/models/member_status.rb +292 -0
  190. data/lib/mx-platform-ruby/models/member_status_response.rb +292 -0
  191. data/lib/mx-platform-ruby/models/member_status_response_body.rb +218 -0
  192. data/lib/mx-platform-ruby/models/member_update_request.rb +256 -0
  193. data/lib/mx-platform-ruby/models/member_update_request_body.rb +218 -0
  194. data/lib/mx-platform-ruby/models/members_response_body.rb +229 -0
  195. data/lib/mx-platform-ruby/models/merchant.rb +263 -0
  196. data/lib/mx-platform-ruby/models/merchant_response.rb +263 -0
  197. data/lib/mx-platform-ruby/models/merchant_response_body.rb +218 -0
  198. data/lib/mx-platform-ruby/models/merchants_response_body.rb +229 -0
  199. data/lib/mx-platform-ruby/models/o_auth_window.rb +227 -0
  200. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +227 -0
  201. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +218 -0
  202. data/lib/mx-platform-ruby/models/pagination.rb +245 -0
  203. data/lib/mx-platform-ruby/models/pagination_response.rb +245 -0
  204. data/lib/mx-platform-ruby/models/statement.rb +281 -0
  205. data/lib/mx-platform-ruby/models/statement_response.rb +281 -0
  206. data/lib/mx-platform-ruby/models/statement_response_body.rb +218 -0
  207. data/lib/mx-platform-ruby/models/statements_response_body.rb +229 -0
  208. data/lib/mx-platform-ruby/models/tag.rb +236 -0
  209. data/lib/mx-platform-ruby/models/tag_create_request.rb +223 -0
  210. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +218 -0
  211. data/lib/mx-platform-ruby/models/tag_response.rb +236 -0
  212. data/lib/mx-platform-ruby/models/tag_response_body.rb +218 -0
  213. data/lib/mx-platform-ruby/models/tag_update_request.rb +223 -0
  214. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +218 -0
  215. data/lib/mx-platform-ruby/models/tagging.rb +254 -0
  216. data/lib/mx-platform-ruby/models/tagging_create_request.rb +237 -0
  217. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +218 -0
  218. data/lib/mx-platform-ruby/models/tagging_response.rb +254 -0
  219. data/lib/mx-platform-ruby/models/tagging_response_body.rb +218 -0
  220. data/lib/mx-platform-ruby/models/tagging_update_request.rb +223 -0
  221. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +218 -0
  222. data/lib/mx-platform-ruby/models/taggings_response_body.rb +229 -0
  223. data/lib/mx-platform-ruby/models/tags_response_body.rb +229 -0
  224. data/lib/mx-platform-ruby/models/transaction.rb +533 -0
  225. data/lib/mx-platform-ruby/models/transaction_response.rb +533 -0
  226. data/lib/mx-platform-ruby/models/transaction_response_body.rb +218 -0
  227. data/lib/mx-platform-ruby/models/transaction_rule.rb +272 -0
  228. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +246 -0
  229. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +218 -0
  230. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +272 -0
  231. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +218 -0
  232. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +236 -0
  233. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +218 -0
  234. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +229 -0
  235. data/lib/mx-platform-ruby/models/transaction_update_request.rb +223 -0
  236. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +218 -0
  237. data/lib/mx-platform-ruby/models/transactions_response_body.rb +229 -0
  238. data/lib/mx-platform-ruby/models/user.rb +254 -0
  239. data/lib/mx-platform-ruby/models/user_create_request.rb +245 -0
  240. data/lib/mx-platform-ruby/models/user_create_request_body.rb +218 -0
  241. data/lib/mx-platform-ruby/models/user_response.rb +254 -0
  242. data/lib/mx-platform-ruby/models/user_response_body.rb +218 -0
  243. data/lib/mx-platform-ruby/models/user_update_request.rb +245 -0
  244. data/lib/mx-platform-ruby/models/user_update_request_body.rb +218 -0
  245. data/lib/mx-platform-ruby/models/users_response_body.rb +229 -0
  246. data/lib/mx-platform-ruby/models/widget.rb +236 -0
  247. data/lib/mx-platform-ruby/models/widget_request.rb +331 -0
  248. data/lib/mx-platform-ruby/models/widget_request_body.rb +218 -0
  249. data/lib/mx-platform-ruby/models/widget_response.rb +236 -0
  250. data/lib/mx-platform-ruby/models/widget_response_body.rb +218 -0
  251. data/lib/mx-platform-ruby/version.rb +15 -0
  252. data/mx-platform-ruby.gemspec +38 -0
  253. data/openapi/config.yml +11 -0
  254. data/openapi/mx_platform_ruby.yml +11 -0
  255. data/pkg/mx-platform-ruby-0.2.0.gem +0 -0
  256. data/pkg/mx-platform-ruby-0.2.1.gem +0 -0
  257. data/spec/api/mx_platform_api_spec.rb +979 -0
  258. data/spec/api_client_spec.rb +188 -0
  259. data/spec/configuration_spec.rb +42 -0
  260. data/spec/models/account_number_response_spec.rb +76 -0
  261. data/spec/models/account_number_spec.rb +76 -0
  262. data/spec/models/account_numbers_response_body_spec.rb +40 -0
  263. data/spec/models/account_owner_response_spec.rb +100 -0
  264. data/spec/models/account_owner_spec.rb +100 -0
  265. data/spec/models/account_owners_response_body_spec.rb +40 -0
  266. data/spec/models/account_response_body_spec.rb +34 -0
  267. data/spec/models/account_response_spec.rb +268 -0
  268. data/spec/models/account_spec.rb +268 -0
  269. data/spec/models/account_update_request_body_spec.rb +34 -0
  270. data/spec/models/account_update_request_spec.rb +34 -0
  271. data/spec/models/accounts_response_body_spec.rb +40 -0
  272. data/spec/models/categories_response_body_spec.rb +40 -0
  273. data/spec/models/category_create_request_body_spec.rb +34 -0
  274. data/spec/models/category_create_request_spec.rb +46 -0
  275. data/spec/models/category_response_body_spec.rb +34 -0
  276. data/spec/models/category_response_spec.rb +76 -0
  277. data/spec/models/category_spec.rb +76 -0
  278. data/spec/models/category_update_request_body_spec.rb +34 -0
  279. data/spec/models/category_update_request_spec.rb +40 -0
  280. data/spec/models/challenge_image_options_spec.rb +46 -0
  281. data/spec/models/challenge_options_spec.rb +40 -0
  282. data/spec/models/challenge_response_image_options_spec.rb +46 -0
  283. data/spec/models/challenge_response_options_spec.rb +40 -0
  284. data/spec/models/challenge_response_spec.rb +70 -0
  285. data/spec/models/challenge_spec.rb +70 -0
  286. data/spec/models/challenges_response_body_spec.rb +40 -0
  287. data/spec/models/connect_widget_request_body_spec.rb +34 -0
  288. data/spec/models/connect_widget_request_spec.rb +94 -0
  289. data/spec/models/connect_widget_response_body_spec.rb +34 -0
  290. data/spec/models/connect_widget_response_spec.rb +40 -0
  291. data/spec/models/connect_widget_spec.rb +40 -0
  292. data/spec/models/credential_request_spec.rb +40 -0
  293. data/spec/models/credential_response_spec.rb +58 -0
  294. data/spec/models/credential_spec.rb +58 -0
  295. data/spec/models/credentials_response_body_spec.rb +40 -0
  296. data/spec/models/enhance_transaction_response_spec.rb +124 -0
  297. data/spec/models/enhance_transaction_spec.rb +124 -0
  298. data/spec/models/enhance_transactions_request_body_spec.rb +34 -0
  299. data/spec/models/enhance_transactions_request_spec.rb +58 -0
  300. data/spec/models/enhance_transactions_response_body_spec.rb +34 -0
  301. data/spec/models/holding_response_body_spec.rb +34 -0
  302. data/spec/models/holding_response_spec.rb +136 -0
  303. data/spec/models/holding_spec.rb +136 -0
  304. data/spec/models/holdings_response_body_spec.rb +40 -0
  305. data/spec/models/inline_response200_spec.rb +34 -0
  306. data/spec/models/institution_response_body_spec.rb +34 -0
  307. data/spec/models/institution_response_spec.rb +88 -0
  308. data/spec/models/institution_spec.rb +88 -0
  309. data/spec/models/institutions_response_body_spec.rb +40 -0
  310. data/spec/models/member_create_request_body_spec.rb +46 -0
  311. data/spec/models/member_create_request_spec.rb +70 -0
  312. data/spec/models/member_response_body_spec.rb +34 -0
  313. data/spec/models/member_response_spec.rb +100 -0
  314. data/spec/models/member_resume_request_body_spec.rb +34 -0
  315. data/spec/models/member_resume_request_spec.rb +34 -0
  316. data/spec/models/member_spec.rb +100 -0
  317. data/spec/models/member_status_response_body_spec.rb +34 -0
  318. data/spec/models/member_status_response_spec.rb +82 -0
  319. data/spec/models/member_status_spec.rb +82 -0
  320. data/spec/models/member_update_request_body_spec.rb +34 -0
  321. data/spec/models/member_update_request_spec.rb +58 -0
  322. data/spec/models/members_response_body_spec.rb +40 -0
  323. data/spec/models/merchant_response_body_spec.rb +34 -0
  324. data/spec/models/merchant_response_spec.rb +64 -0
  325. data/spec/models/merchant_spec.rb +64 -0
  326. data/spec/models/merchants_response_body_spec.rb +40 -0
  327. data/spec/models/o_auth_window_response_body_spec.rb +34 -0
  328. data/spec/models/o_auth_window_response_spec.rb +40 -0
  329. data/spec/models/o_auth_window_spec.rb +40 -0
  330. data/spec/models/pagination_response_spec.rb +52 -0
  331. data/spec/models/pagination_spec.rb +52 -0
  332. data/spec/models/statement_response_body_spec.rb +34 -0
  333. data/spec/models/statement_response_spec.rb +76 -0
  334. data/spec/models/statement_spec.rb +76 -0
  335. data/spec/models/statements_response_body_spec.rb +40 -0
  336. data/spec/models/tag_create_request_body_spec.rb +34 -0
  337. data/spec/models/tag_create_request_spec.rb +34 -0
  338. data/spec/models/tag_response_body_spec.rb +34 -0
  339. data/spec/models/tag_response_spec.rb +46 -0
  340. data/spec/models/tag_spec.rb +46 -0
  341. data/spec/models/tag_update_request_body_spec.rb +34 -0
  342. data/spec/models/tag_update_request_spec.rb +34 -0
  343. data/spec/models/tagging_create_request_body_spec.rb +34 -0
  344. data/spec/models/tagging_create_request_spec.rb +40 -0
  345. data/spec/models/tagging_response_body_spec.rb +34 -0
  346. data/spec/models/tagging_response_spec.rb +58 -0
  347. data/spec/models/tagging_spec.rb +58 -0
  348. data/spec/models/tagging_update_request_body_spec.rb +34 -0
  349. data/spec/models/tagging_update_request_spec.rb +34 -0
  350. data/spec/models/taggings_response_body_spec.rb +40 -0
  351. data/spec/models/tags_response_body_spec.rb +40 -0
  352. data/spec/models/transaction_response_body_spec.rb +34 -0
  353. data/spec/models/transaction_response_spec.rb +244 -0
  354. data/spec/models/transaction_rule_create_request_body_spec.rb +34 -0
  355. data/spec/models/transaction_rule_create_request_spec.rb +46 -0
  356. data/spec/models/transaction_rule_response_body_spec.rb +34 -0
  357. data/spec/models/transaction_rule_response_spec.rb +70 -0
  358. data/spec/models/transaction_rule_spec.rb +70 -0
  359. data/spec/models/transaction_rule_update_request_body_spec.rb +34 -0
  360. data/spec/models/transaction_rule_update_request_spec.rb +46 -0
  361. data/spec/models/transaction_rules_response_body_spec.rb +40 -0
  362. data/spec/models/transaction_spec.rb +244 -0
  363. data/spec/models/transaction_update_request_body_spec.rb +34 -0
  364. data/spec/models/transaction_update_request_spec.rb +34 -0
  365. data/spec/models/transactions_response_body_spec.rb +40 -0
  366. data/spec/models/user_create_request_body_spec.rb +34 -0
  367. data/spec/models/user_create_request_spec.rb +52 -0
  368. data/spec/models/user_response_body_spec.rb +34 -0
  369. data/spec/models/user_response_spec.rb +58 -0
  370. data/spec/models/user_spec.rb +58 -0
  371. data/spec/models/user_update_request_body_spec.rb +34 -0
  372. data/spec/models/user_update_request_spec.rb +52 -0
  373. data/spec/models/users_response_body_spec.rb +40 -0
  374. data/spec/models/widget_request_body_spec.rb +34 -0
  375. data/spec/models/widget_request_spec.rb +106 -0
  376. data/spec/models/widget_response_body_spec.rb +34 -0
  377. data/spec/models/widget_response_spec.rb +46 -0
  378. data/spec/models/widget_spec.rb +46 -0
  379. data/spec/spec_helper.rb +111 -0
  380. metadata +522 -94
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #MX Platform API
3
+
4
+ #The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class Tagging
18
+ attr_accessor :guid
19
+
20
+ attr_accessor :member_is_managed_by_user
21
+
22
+ attr_accessor :tag_guid
23
+
24
+ attr_accessor :transaction_guid
25
+
26
+ attr_accessor :user_guid
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'guid' => :'guid',
32
+ :'member_is_managed_by_user' => :'member_is_managed_by_user',
33
+ :'tag_guid' => :'tag_guid',
34
+ :'transaction_guid' => :'transaction_guid',
35
+ :'user_guid' => :'user_guid'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'guid' => :'String',
48
+ :'member_is_managed_by_user' => :'Boolean',
49
+ :'tag_guid' => :'String',
50
+ :'transaction_guid' => :'String',
51
+ :'user_guid' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::Tagging` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::Tagging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'guid')
77
+ self.guid = attributes[:'guid']
78
+ end
79
+
80
+ if attributes.key?(:'member_is_managed_by_user')
81
+ self.member_is_managed_by_user = attributes[:'member_is_managed_by_user']
82
+ end
83
+
84
+ if attributes.key?(:'tag_guid')
85
+ self.tag_guid = attributes[:'tag_guid']
86
+ end
87
+
88
+ if attributes.key?(:'transaction_guid')
89
+ self.transaction_guid = attributes[:'transaction_guid']
90
+ end
91
+
92
+ if attributes.key?(:'user_guid')
93
+ self.user_guid = attributes[:'user_guid']
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ invalid_properties = Array.new
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ true
108
+ end
109
+
110
+ # Checks equality by comparing each attribute.
111
+ # @param [Object] Object to be compared
112
+ def ==(o)
113
+ return true if self.equal?(o)
114
+ self.class == o.class &&
115
+ guid == o.guid &&
116
+ member_is_managed_by_user == o.member_is_managed_by_user &&
117
+ tag_guid == o.tag_guid &&
118
+ transaction_guid == o.transaction_guid &&
119
+ user_guid == o.user_guid
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [guid, member_is_managed_by_user, tag_guid, transaction_guid, user_guid].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ new.build_from_hash(attributes)
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ self.class.openapi_types.each_pair do |key, type|
147
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
148
+ self.send("#{key}=", nil)
149
+ elsif type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
153
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
+ end
155
+ elsif !attributes[self.class.attribute_map[key]].nil?
156
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
157
+ end
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def _deserialize(type, value)
168
+ case type.to_sym
169
+ when :Time
170
+ Time.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :Boolean
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ # models (e.g. Pet) or oneOf
201
+ klass = MxPlatformRuby.const_get(type)
202
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
203
+ end
204
+ end
205
+
206
+ # Returns the string representation of the object
207
+ # @return [String] String presentation of the object
208
+ def to_s
209
+ to_hash.to_s
210
+ end
211
+
212
+ # to_body is an alias to to_hash (backward compatibility)
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_body
215
+ to_hash
216
+ end
217
+
218
+ # Returns the object in the form of hash
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_hash
221
+ hash = {}
222
+ self.class.attribute_map.each_pair do |attr, param|
223
+ value = self.send(attr)
224
+ if value.nil?
225
+ is_nullable = self.class.openapi_nullable.include?(attr)
226
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
227
+ end
228
+
229
+ hash[param] = _to_hash(value)
230
+ end
231
+ hash
232
+ end
233
+
234
+ # Outputs non-array value in the form of hash
235
+ # For object, use to_hash. Otherwise, just return the value
236
+ # @param [Object] value Any valid value
237
+ # @return [Hash] Returns the value in the form of hash
238
+ def _to_hash(value)
239
+ if value.is_a?(Array)
240
+ value.compact.map { |v| _to_hash(v) }
241
+ elsif value.is_a?(Hash)
242
+ {}.tap do |hash|
243
+ value.each { |k, v| hash[k] = _to_hash(v) }
244
+ end
245
+ elsif value.respond_to? :to_hash
246
+ value.to_hash
247
+ else
248
+ value
249
+ end
250
+ end
251
+
252
+ end
253
+
254
+ end
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #MX Platform API
3
+
4
+ #The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class TaggingCreateRequest
18
+ attr_accessor :tag_guid
19
+
20
+ attr_accessor :transaction_guid
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'tag_guid' => :'tag_guid',
26
+ :'transaction_guid' => :'transaction_guid'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'tag_guid' => :'String',
39
+ :'transaction_guid' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::TaggingCreateRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::TaggingCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'tag_guid')
65
+ self.tag_guid = attributes[:'tag_guid']
66
+ end
67
+
68
+ if attributes.key?(:'transaction_guid')
69
+ self.transaction_guid = attributes[:'transaction_guid']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @tag_guid.nil?
78
+ invalid_properties.push('invalid value for "tag_guid", tag_guid cannot be nil.')
79
+ end
80
+
81
+ if @transaction_guid.nil?
82
+ invalid_properties.push('invalid value for "transaction_guid", transaction_guid cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @tag_guid.nil?
92
+ return false if @transaction_guid.nil?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ tag_guid == o.tag_guid &&
102
+ transaction_guid == o.transaction_guid
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [tag_guid, transaction_guid].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = MxPlatformRuby.const_get(type)
185
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end