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