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,229 @@
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 CredentialsResponseBody
18
+ attr_accessor :credentials
19
+
20
+ attr_accessor :pagination
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'credentials' => :'credentials',
26
+ :'pagination' => :'pagination'
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
+ :'credentials' => :'Array<CredentialResponse>',
39
+ :'pagination' => :'PaginationResponse'
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::CredentialsResponseBody` 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::CredentialsResponseBody`. 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?(:'credentials')
65
+ if (value = attributes[:'credentials']).is_a?(Array)
66
+ self.credentials = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'pagination')
71
+ self.pagination = attributes[:'pagination']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ credentials == o.credentials &&
94
+ pagination == o.pagination
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [credentials, pagination].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = MxPlatformRuby.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -0,0 +1,353 @@
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 EnhanceTransaction
18
+ attr_accessor :amount
19
+
20
+ attr_accessor :category
21
+
22
+ attr_accessor :description
23
+
24
+ attr_accessor :id
25
+
26
+ attr_accessor :is_bill_pay
27
+
28
+ attr_accessor :is_direct_deposit
29
+
30
+ attr_accessor :is_expense
31
+
32
+ attr_accessor :is_fee
33
+
34
+ attr_accessor :is_income
35
+
36
+ attr_accessor :is_international
37
+
38
+ attr_accessor :is_overdraft_fee
39
+
40
+ attr_accessor :is_payroll_advance
41
+
42
+ attr_accessor :merchant_category_code
43
+
44
+ attr_accessor :merchant_guid
45
+
46
+ attr_accessor :original_description
47
+
48
+ attr_accessor :type
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ {
53
+ :'amount' => :'amount',
54
+ :'category' => :'category',
55
+ :'description' => :'description',
56
+ :'id' => :'id',
57
+ :'is_bill_pay' => :'is_bill_pay',
58
+ :'is_direct_deposit' => :'is_direct_deposit',
59
+ :'is_expense' => :'is_expense',
60
+ :'is_fee' => :'is_fee',
61
+ :'is_income' => :'is_income',
62
+ :'is_international' => :'is_international',
63
+ :'is_overdraft_fee' => :'is_overdraft_fee',
64
+ :'is_payroll_advance' => :'is_payroll_advance',
65
+ :'merchant_category_code' => :'merchant_category_code',
66
+ :'merchant_guid' => :'merchant_guid',
67
+ :'original_description' => :'original_description',
68
+ :'type' => :'type'
69
+ }
70
+ end
71
+
72
+ # Returns all the JSON keys this model knows about
73
+ def self.acceptable_attributes
74
+ attribute_map.values
75
+ end
76
+
77
+ # Attribute type mapping.
78
+ def self.openapi_types
79
+ {
80
+ :'amount' => :'Float',
81
+ :'category' => :'String',
82
+ :'description' => :'String',
83
+ :'id' => :'String',
84
+ :'is_bill_pay' => :'Boolean',
85
+ :'is_direct_deposit' => :'Boolean',
86
+ :'is_expense' => :'Boolean',
87
+ :'is_fee' => :'Boolean',
88
+ :'is_income' => :'Boolean',
89
+ :'is_international' => :'Boolean',
90
+ :'is_overdraft_fee' => :'Boolean',
91
+ :'is_payroll_advance' => :'Boolean',
92
+ :'merchant_category_code' => :'Integer',
93
+ :'merchant_guid' => :'String',
94
+ :'original_description' => :'String',
95
+ :'type' => :'String'
96
+ }
97
+ end
98
+
99
+ # List of attributes with nullable: true
100
+ def self.openapi_nullable
101
+ Set.new([
102
+ ])
103
+ end
104
+
105
+ # Initializes the object
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ def initialize(attributes = {})
108
+ if (!attributes.is_a?(Hash))
109
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::EnhanceTransaction` initialize method"
110
+ end
111
+
112
+ # check to see if the attribute exists and convert string to symbol for hash key
113
+ attributes = attributes.each_with_object({}) { |(k, v), h|
114
+ if (!self.class.attribute_map.key?(k.to_sym))
115
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::EnhanceTransaction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
116
+ end
117
+ h[k.to_sym] = v
118
+ }
119
+
120
+ if attributes.key?(:'amount')
121
+ self.amount = attributes[:'amount']
122
+ end
123
+
124
+ if attributes.key?(:'category')
125
+ self.category = attributes[:'category']
126
+ end
127
+
128
+ if attributes.key?(:'description')
129
+ self.description = attributes[:'description']
130
+ end
131
+
132
+ if attributes.key?(:'id')
133
+ self.id = attributes[:'id']
134
+ end
135
+
136
+ if attributes.key?(:'is_bill_pay')
137
+ self.is_bill_pay = attributes[:'is_bill_pay']
138
+ end
139
+
140
+ if attributes.key?(:'is_direct_deposit')
141
+ self.is_direct_deposit = attributes[:'is_direct_deposit']
142
+ end
143
+
144
+ if attributes.key?(:'is_expense')
145
+ self.is_expense = attributes[:'is_expense']
146
+ end
147
+
148
+ if attributes.key?(:'is_fee')
149
+ self.is_fee = attributes[:'is_fee']
150
+ end
151
+
152
+ if attributes.key?(:'is_income')
153
+ self.is_income = attributes[:'is_income']
154
+ end
155
+
156
+ if attributes.key?(:'is_international')
157
+ self.is_international = attributes[:'is_international']
158
+ end
159
+
160
+ if attributes.key?(:'is_overdraft_fee')
161
+ self.is_overdraft_fee = attributes[:'is_overdraft_fee']
162
+ end
163
+
164
+ if attributes.key?(:'is_payroll_advance')
165
+ self.is_payroll_advance = attributes[:'is_payroll_advance']
166
+ end
167
+
168
+ if attributes.key?(:'merchant_category_code')
169
+ self.merchant_category_code = attributes[:'merchant_category_code']
170
+ end
171
+
172
+ if attributes.key?(:'merchant_guid')
173
+ self.merchant_guid = attributes[:'merchant_guid']
174
+ end
175
+
176
+ if attributes.key?(:'original_description')
177
+ self.original_description = attributes[:'original_description']
178
+ end
179
+
180
+ if attributes.key?(:'type')
181
+ self.type = attributes[:'type']
182
+ end
183
+ end
184
+
185
+ # Show invalid properties with the reasons. Usually used together with valid?
186
+ # @return Array for valid properties with the reasons
187
+ def list_invalid_properties
188
+ invalid_properties = Array.new
189
+ invalid_properties
190
+ end
191
+
192
+ # Check to see if the all the properties in the model are valid
193
+ # @return true if the model is valid
194
+ def valid?
195
+ true
196
+ end
197
+
198
+ # Checks equality by comparing each attribute.
199
+ # @param [Object] Object to be compared
200
+ def ==(o)
201
+ return true if self.equal?(o)
202
+ self.class == o.class &&
203
+ amount == o.amount &&
204
+ category == o.category &&
205
+ description == o.description &&
206
+ id == o.id &&
207
+ is_bill_pay == o.is_bill_pay &&
208
+ is_direct_deposit == o.is_direct_deposit &&
209
+ is_expense == o.is_expense &&
210
+ is_fee == o.is_fee &&
211
+ is_income == o.is_income &&
212
+ is_international == o.is_international &&
213
+ is_overdraft_fee == o.is_overdraft_fee &&
214
+ is_payroll_advance == o.is_payroll_advance &&
215
+ merchant_category_code == o.merchant_category_code &&
216
+ merchant_guid == o.merchant_guid &&
217
+ original_description == o.original_description &&
218
+ type == o.type
219
+ end
220
+
221
+ # @see the `==` method
222
+ # @param [Object] Object to be compared
223
+ def eql?(o)
224
+ self == o
225
+ end
226
+
227
+ # Calculates hash code according to all attributes.
228
+ # @return [Integer] Hash code
229
+ def hash
230
+ [amount, category, description, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, merchant_category_code, merchant_guid, original_description, type].hash
231
+ end
232
+
233
+ # Builds the object from hash
234
+ # @param [Hash] attributes Model attributes in the form of hash
235
+ # @return [Object] Returns the model itself
236
+ def self.build_from_hash(attributes)
237
+ new.build_from_hash(attributes)
238
+ end
239
+
240
+ # Builds the object from hash
241
+ # @param [Hash] attributes Model attributes in the form of hash
242
+ # @return [Object] Returns the model itself
243
+ def build_from_hash(attributes)
244
+ return nil unless attributes.is_a?(Hash)
245
+ self.class.openapi_types.each_pair do |key, type|
246
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
247
+ self.send("#{key}=", nil)
248
+ elsif type =~ /\AArray<(.*)>/i
249
+ # check to ensure the input is an array given that the attribute
250
+ # is documented as an array but the input is not
251
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
252
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
253
+ end
254
+ elsif !attributes[self.class.attribute_map[key]].nil?
255
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
256
+ end
257
+ end
258
+
259
+ self
260
+ end
261
+
262
+ # Deserializes the data based on type
263
+ # @param string type Data type
264
+ # @param string value Value to be deserialized
265
+ # @return [Object] Deserialized data
266
+ def _deserialize(type, value)
267
+ case type.to_sym
268
+ when :Time
269
+ Time.parse(value)
270
+ when :Date
271
+ Date.parse(value)
272
+ when :String
273
+ value.to_s
274
+ when :Integer
275
+ value.to_i
276
+ when :Float
277
+ value.to_f
278
+ when :Boolean
279
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
280
+ true
281
+ else
282
+ false
283
+ end
284
+ when :Object
285
+ # generic object (usually a Hash), return directly
286
+ value
287
+ when /\AArray<(?<inner_type>.+)>\z/
288
+ inner_type = Regexp.last_match[:inner_type]
289
+ value.map { |v| _deserialize(inner_type, v) }
290
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
291
+ k_type = Regexp.last_match[:k_type]
292
+ v_type = Regexp.last_match[:v_type]
293
+ {}.tap do |hash|
294
+ value.each do |k, v|
295
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
296
+ end
297
+ end
298
+ else # model
299
+ # models (e.g. Pet) or oneOf
300
+ klass = MxPlatformRuby.const_get(type)
301
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
302
+ end
303
+ end
304
+
305
+ # Returns the string representation of the object
306
+ # @return [String] String presentation of the object
307
+ def to_s
308
+ to_hash.to_s
309
+ end
310
+
311
+ # to_body is an alias to to_hash (backward compatibility)
312
+ # @return [Hash] Returns the object in the form of hash
313
+ def to_body
314
+ to_hash
315
+ end
316
+
317
+ # Returns the object in the form of hash
318
+ # @return [Hash] Returns the object in the form of hash
319
+ def to_hash
320
+ hash = {}
321
+ self.class.attribute_map.each_pair do |attr, param|
322
+ value = self.send(attr)
323
+ if value.nil?
324
+ is_nullable = self.class.openapi_nullable.include?(attr)
325
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
326
+ end
327
+
328
+ hash[param] = _to_hash(value)
329
+ end
330
+ hash
331
+ end
332
+
333
+ # Outputs non-array value in the form of hash
334
+ # For object, use to_hash. Otherwise, just return the value
335
+ # @param [Object] value Any valid value
336
+ # @return [Hash] Returns the value in the form of hash
337
+ def _to_hash(value)
338
+ if value.is_a?(Array)
339
+ value.compact.map { |v| _to_hash(v) }
340
+ elsif value.is_a?(Hash)
341
+ {}.tap do |hash|
342
+ value.each { |k, v| hash[k] = _to_hash(v) }
343
+ end
344
+ elsif value.respond_to? :to_hash
345
+ value.to_hash
346
+ else
347
+ value
348
+ end
349
+ end
350
+
351
+ end
352
+
353
+ end