mx-platform-ruby 0.1.0 → 0.3.0

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