mx-platform-ruby 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -2
  3. data/Gemfile.lock +84 -0
  4. data/README.md +236 -33
  5. data/Rakefile +8 -9
  6. data/lib/mx-platform-ruby.rb +126 -35
  7. data/lib/mx-platform-ruby/api/mx_platform_api.rb +4917 -0
  8. data/lib/mx-platform-ruby/api_client.rb +395 -0
  9. data/lib/mx-platform-ruby/api_error.rb +57 -0
  10. data/lib/mx-platform-ruby/configuration.rb +276 -0
  11. data/lib/mx-platform-ruby/models/account.rb +569 -0
  12. data/lib/mx-platform-ruby/models/account_number.rb +281 -0
  13. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +229 -0
  14. data/lib/mx-platform-ruby/models/account_owner.rb +317 -0
  15. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +229 -0
  16. data/lib/mx-platform-ruby/models/account_response_body.rb +218 -0
  17. data/lib/mx-platform-ruby/models/account_update_request.rb +218 -0
  18. data/lib/mx-platform-ruby/models/account_update_request_body.rb +218 -0
  19. data/lib/mx-platform-ruby/models/accounts_response_body.rb +229 -0
  20. data/lib/mx-platform-ruby/models/categories_response_body.rb +229 -0
  21. data/lib/mx-platform-ruby/models/category.rb +281 -0
  22. data/lib/mx-platform-ruby/models/category_create_request.rb +241 -0
  23. data/lib/mx-platform-ruby/models/category_create_request_body.rb +218 -0
  24. data/lib/mx-platform-ruby/models/category_response_body.rb +218 -0
  25. data/lib/mx-platform-ruby/models/category_update_request.rb +227 -0
  26. data/lib/mx-platform-ruby/models/category_update_request_body.rb +218 -0
  27. data/lib/mx-platform-ruby/models/challenge.rb +276 -0
  28. data/lib/mx-platform-ruby/models/challenge_image_options.rb +236 -0
  29. data/lib/mx-platform-ruby/models/challenge_options.rb +227 -0
  30. data/lib/mx-platform-ruby/models/challenges_response_body.rb +229 -0
  31. data/lib/mx-platform-ruby/models/connect_widget.rb +227 -0
  32. data/lib/mx-platform-ruby/models/connect_widget_request.rb +308 -0
  33. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +218 -0
  34. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +218 -0
  35. data/lib/mx-platform-ruby/models/credential.rb +254 -0
  36. data/lib/mx-platform-ruby/models/credential_request.rb +227 -0
  37. data/lib/mx-platform-ruby/models/credentials_response_body.rb +229 -0
  38. data/lib/mx-platform-ruby/models/enhance_transaction.rb +353 -0
  39. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +264 -0
  40. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +220 -0
  41. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +220 -0
  42. data/lib/mx-platform-ruby/models/holding.rb +371 -0
  43. data/lib/mx-platform-ruby/models/holding_response_body.rb +218 -0
  44. data/lib/mx-platform-ruby/models/holdings_response_body.rb +229 -0
  45. data/lib/mx-platform-ruby/models/inline_response200.rb +218 -0
  46. data/lib/mx-platform-ruby/models/institution.rb +299 -0
  47. data/lib/mx-platform-ruby/models/institution_response_body.rb +218 -0
  48. data/lib/mx-platform-ruby/models/institutions_response_body.rb +229 -0
  49. data/lib/mx-platform-ruby/models/member.rb +317 -0
  50. data/lib/mx-platform-ruby/models/member_create_request.rb +284 -0
  51. data/lib/mx-platform-ruby/models/member_create_request_body.rb +236 -0
  52. data/lib/mx-platform-ruby/models/member_response_body.rb +218 -0
  53. data/lib/mx-platform-ruby/models/member_resume_request.rb +220 -0
  54. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +218 -0
  55. data/lib/mx-platform-ruby/models/member_status.rb +292 -0
  56. data/lib/mx-platform-ruby/models/member_status_response_body.rb +218 -0
  57. data/lib/mx-platform-ruby/models/member_update_request.rb +256 -0
  58. data/lib/mx-platform-ruby/models/member_update_request_body.rb +218 -0
  59. data/lib/mx-platform-ruby/models/members_response_body.rb +229 -0
  60. data/lib/mx-platform-ruby/models/merchant.rb +263 -0
  61. data/lib/mx-platform-ruby/models/merchant_response_body.rb +218 -0
  62. data/lib/mx-platform-ruby/models/merchants_response_body.rb +229 -0
  63. data/lib/mx-platform-ruby/models/o_auth_window.rb +227 -0
  64. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +218 -0
  65. data/lib/mx-platform-ruby/models/pagination.rb +245 -0
  66. data/lib/mx-platform-ruby/models/statement.rb +281 -0
  67. data/lib/mx-platform-ruby/models/statement_response_body.rb +218 -0
  68. data/lib/mx-platform-ruby/models/statements_response_body.rb +229 -0
  69. data/lib/mx-platform-ruby/models/tag.rb +236 -0
  70. data/lib/mx-platform-ruby/models/tag_create_request.rb +223 -0
  71. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +218 -0
  72. data/lib/mx-platform-ruby/models/tag_response_body.rb +218 -0
  73. data/lib/mx-platform-ruby/models/tag_update_request.rb +223 -0
  74. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +218 -0
  75. data/lib/mx-platform-ruby/models/tagging.rb +254 -0
  76. data/lib/mx-platform-ruby/models/tagging_create_request.rb +237 -0
  77. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +218 -0
  78. data/lib/mx-platform-ruby/models/tagging_response_body.rb +218 -0
  79. data/lib/mx-platform-ruby/models/tagging_update_request.rb +223 -0
  80. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +218 -0
  81. data/lib/mx-platform-ruby/models/taggings_response_body.rb +229 -0
  82. data/lib/mx-platform-ruby/models/tags_response_body.rb +229 -0
  83. data/lib/mx-platform-ruby/models/transaction.rb +533 -0
  84. data/lib/mx-platform-ruby/models/transaction_response_body.rb +218 -0
  85. data/lib/mx-platform-ruby/models/transaction_rule.rb +272 -0
  86. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +246 -0
  87. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +218 -0
  88. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +218 -0
  89. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +236 -0
  90. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +218 -0
  91. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +229 -0
  92. data/lib/mx-platform-ruby/models/transaction_update_request.rb +223 -0
  93. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +218 -0
  94. data/lib/mx-platform-ruby/models/transactions_response_body.rb +229 -0
  95. data/lib/mx-platform-ruby/models/user.rb +254 -0
  96. data/lib/mx-platform-ruby/models/user_create_request.rb +245 -0
  97. data/lib/mx-platform-ruby/models/user_create_request_body.rb +218 -0
  98. data/lib/mx-platform-ruby/models/user_response_body.rb +218 -0
  99. data/lib/mx-platform-ruby/models/user_update_request.rb +245 -0
  100. data/lib/mx-platform-ruby/models/user_update_request_body.rb +218 -0
  101. data/lib/mx-platform-ruby/models/users_response_body.rb +229 -0
  102. data/lib/mx-platform-ruby/models/widget.rb +236 -0
  103. data/lib/mx-platform-ruby/models/widget_request.rb +331 -0
  104. data/lib/mx-platform-ruby/models/widget_request_body.rb +218 -0
  105. data/lib/mx-platform-ruby/models/widget_response_body.rb +218 -0
  106. data/lib/mx-platform-ruby/version.rb +13 -3
  107. data/mx-platform-ruby.gemspec +34 -27
  108. data/openapi/mx_platform_ruby.yml +11 -0
  109. data/spec/api/mx_platform_api_spec.rb +979 -0
  110. data/spec/api_client_spec.rb +188 -0
  111. data/spec/configuration_spec.rb +42 -0
  112. data/spec/models/account_number_spec.rb +76 -0
  113. data/spec/models/account_numbers_response_body_spec.rb +40 -0
  114. data/spec/models/account_owner_spec.rb +100 -0
  115. data/spec/models/account_owners_response_body_spec.rb +40 -0
  116. data/spec/models/account_response_body_spec.rb +34 -0
  117. data/spec/models/account_spec.rb +268 -0
  118. data/spec/models/account_update_request_body_spec.rb +34 -0
  119. data/spec/models/account_update_request_spec.rb +34 -0
  120. data/spec/models/accounts_response_body_spec.rb +40 -0
  121. data/spec/models/categories_response_body_spec.rb +40 -0
  122. data/spec/models/category_create_request_body_spec.rb +34 -0
  123. data/spec/models/category_create_request_spec.rb +46 -0
  124. data/spec/models/category_response_body_spec.rb +34 -0
  125. data/spec/models/category_spec.rb +76 -0
  126. data/spec/models/category_update_request_body_spec.rb +34 -0
  127. data/spec/models/category_update_request_spec.rb +40 -0
  128. data/spec/models/challenge_image_options_spec.rb +46 -0
  129. data/spec/models/challenge_options_spec.rb +40 -0
  130. data/spec/models/challenge_spec.rb +70 -0
  131. data/spec/models/challenges_response_body_spec.rb +40 -0
  132. data/spec/models/connect_widget_request_body_spec.rb +34 -0
  133. data/spec/models/connect_widget_request_spec.rb +94 -0
  134. data/spec/models/connect_widget_response_body_spec.rb +34 -0
  135. data/spec/models/connect_widget_spec.rb +40 -0
  136. data/spec/models/credential_request_spec.rb +40 -0
  137. data/spec/models/credential_spec.rb +58 -0
  138. data/spec/models/credentials_response_body_spec.rb +40 -0
  139. data/spec/models/enhance_transaction_spec.rb +124 -0
  140. data/spec/models/enhance_transactions_request_body_spec.rb +34 -0
  141. data/spec/models/enhance_transactions_request_spec.rb +58 -0
  142. data/spec/models/enhance_transactions_response_body_spec.rb +34 -0
  143. data/spec/models/holding_response_body_spec.rb +34 -0
  144. data/spec/models/holding_spec.rb +136 -0
  145. data/spec/models/holdings_response_body_spec.rb +40 -0
  146. data/spec/models/inline_response200_spec.rb +34 -0
  147. data/spec/models/institution_response_body_spec.rb +34 -0
  148. data/spec/models/institution_spec.rb +88 -0
  149. data/spec/models/institutions_response_body_spec.rb +40 -0
  150. data/spec/models/member_create_request_body_spec.rb +46 -0
  151. data/spec/models/member_create_request_spec.rb +70 -0
  152. data/spec/models/member_response_body_spec.rb +34 -0
  153. data/spec/models/member_resume_request_body_spec.rb +34 -0
  154. data/spec/models/member_resume_request_spec.rb +34 -0
  155. data/spec/models/member_spec.rb +100 -0
  156. data/spec/models/member_status_response_body_spec.rb +34 -0
  157. data/spec/models/member_status_spec.rb +82 -0
  158. data/spec/models/member_update_request_body_spec.rb +34 -0
  159. data/spec/models/member_update_request_spec.rb +58 -0
  160. data/spec/models/members_response_body_spec.rb +40 -0
  161. data/spec/models/merchant_response_body_spec.rb +34 -0
  162. data/spec/models/merchant_spec.rb +64 -0
  163. data/spec/models/merchants_response_body_spec.rb +40 -0
  164. data/spec/models/o_auth_window_response_body_spec.rb +34 -0
  165. data/spec/models/o_auth_window_spec.rb +40 -0
  166. data/spec/models/pagination_spec.rb +52 -0
  167. data/spec/models/statement_response_body_spec.rb +34 -0
  168. data/spec/models/statement_spec.rb +76 -0
  169. data/spec/models/statements_response_body_spec.rb +40 -0
  170. data/spec/models/tag_create_request_body_spec.rb +34 -0
  171. data/spec/models/tag_create_request_spec.rb +34 -0
  172. data/spec/models/tag_response_body_spec.rb +34 -0
  173. data/spec/models/tag_spec.rb +46 -0
  174. data/spec/models/tag_update_request_body_spec.rb +34 -0
  175. data/spec/models/tag_update_request_spec.rb +34 -0
  176. data/spec/models/tagging_create_request_body_spec.rb +34 -0
  177. data/spec/models/tagging_create_request_spec.rb +40 -0
  178. data/spec/models/tagging_response_body_spec.rb +34 -0
  179. data/spec/models/tagging_spec.rb +58 -0
  180. data/spec/models/tagging_update_request_body_spec.rb +34 -0
  181. data/spec/models/tagging_update_request_spec.rb +34 -0
  182. data/spec/models/taggings_response_body_spec.rb +40 -0
  183. data/spec/models/tags_response_body_spec.rb +40 -0
  184. data/spec/models/transaction_response_body_spec.rb +34 -0
  185. data/spec/models/transaction_rule_create_request_body_spec.rb +34 -0
  186. data/spec/models/transaction_rule_create_request_spec.rb +46 -0
  187. data/spec/models/transaction_rule_response_body_spec.rb +34 -0
  188. data/spec/models/transaction_rule_spec.rb +70 -0
  189. data/spec/models/transaction_rule_update_request_body_spec.rb +34 -0
  190. data/spec/models/transaction_rule_update_request_spec.rb +46 -0
  191. data/spec/models/transaction_rules_response_body_spec.rb +40 -0
  192. data/spec/models/transaction_spec.rb +244 -0
  193. data/spec/models/transaction_update_request_body_spec.rb +34 -0
  194. data/spec/models/transaction_update_request_spec.rb +34 -0
  195. data/spec/models/transactions_response_body_spec.rb +40 -0
  196. data/spec/models/user_create_request_body_spec.rb +34 -0
  197. data/spec/models/user_create_request_spec.rb +52 -0
  198. data/spec/models/user_response_body_spec.rb +34 -0
  199. data/spec/models/user_spec.rb +58 -0
  200. data/spec/models/user_update_request_body_spec.rb +34 -0
  201. data/spec/models/user_update_request_spec.rb +52 -0
  202. data/spec/models/users_response_body_spec.rb +40 -0
  203. data/spec/models/widget_request_body_spec.rb +34 -0
  204. data/spec/models/widget_request_spec.rb +106 -0
  205. data/spec/models/widget_response_body_spec.rb +34 -0
  206. data/spec/models/widget_spec.rb +46 -0
  207. data/spec/spec_helper.rb +100 -13
  208. metadata +317 -144
  209. data/.github/workflows/test.yml +0 -20
  210. data/.gitignore +0 -13
  211. data/.rubocop.yml +0 -44
  212. data/lib/mx-platform-ruby/account.rb +0 -107
  213. data/lib/mx-platform-ruby/account_number.rb +0 -57
  214. data/lib/mx-platform-ruby/account_owner.rb +0 -42
  215. data/lib/mx-platform-ruby/category.rb +0 -127
  216. data/lib/mx-platform-ruby/challenge.rb +0 -37
  217. data/lib/mx-platform-ruby/client.rb +0 -59
  218. data/lib/mx-platform-ruby/connect_widget.rb +0 -43
  219. data/lib/mx-platform-ruby/credential.rb +0 -54
  220. data/lib/mx-platform-ruby/enhanced_transaction.rb +0 -44
  221. data/lib/mx-platform-ruby/error.rb +0 -6
  222. data/lib/mx-platform-ruby/holding.rb +0 -87
  223. data/lib/mx-platform-ruby/institution.rb +0 -78
  224. data/lib/mx-platform-ruby/member.rb +0 -242
  225. data/lib/mx-platform-ruby/member_status.rb +0 -35
  226. data/lib/mx-platform-ruby/merchant.rb +0 -52
  227. data/lib/mx-platform-ruby/oauth_window.rb +0 -32
  228. data/lib/mx-platform-ruby/pageable.rb +0 -29
  229. data/lib/mx-platform-ruby/statement.rb +0 -70
  230. data/lib/mx-platform-ruby/tag.rb +0 -104
  231. data/lib/mx-platform-ruby/tagging.rb +0 -107
  232. data/lib/mx-platform-ruby/transaction.rb +0 -162
  233. data/lib/mx-platform-ruby/transaction_rule.rb +0 -112
  234. data/lib/mx-platform-ruby/user.rb +0 -112
  235. data/lib/mx-platform-ruby/widget.rb +0 -49
  236. data/spec/lib/mx-platform-ruby/account_number_spec.rb +0 -100
  237. data/spec/lib/mx-platform-ruby/account_owner_spec.rb +0 -71
  238. data/spec/lib/mx-platform-ruby/account_spec.rb +0 -267
  239. data/spec/lib/mx-platform-ruby/category_spec.rb +0 -244
  240. data/spec/lib/mx-platform-ruby/challenge_spec.rb +0 -72
  241. data/spec/lib/mx-platform-ruby/client_spec.rb +0 -101
  242. data/spec/lib/mx-platform-ruby/connect_widget_spec.rb +0 -66
  243. data/spec/lib/mx-platform-ruby/credential_spec.rb +0 -90
  244. data/spec/lib/mx-platform-ruby/enhanced_transaction_spec.rb +0 -89
  245. data/spec/lib/mx-platform-ruby/holding_spec.rb +0 -178
  246. data/spec/lib/mx-platform-ruby/institution_spec.rb +0 -141
  247. data/spec/lib/mx-platform-ruby/member_spec.rb +0 -557
  248. data/spec/lib/mx-platform-ruby/member_status_spec.rb +0 -76
  249. data/spec/lib/mx-platform-ruby/merchant_spec.rb +0 -89
  250. data/spec/lib/mx-platform-ruby/oauth_window_spec.rb +0 -47
  251. data/spec/lib/mx-platform-ruby/pageable_spec.rb +0 -75
  252. data/spec/lib/mx-platform-ruby/statement_spec.rb +0 -130
  253. data/spec/lib/mx-platform-ruby/tag_spec.rb +0 -179
  254. data/spec/lib/mx-platform-ruby/tagging_spec.rb +0 -191
  255. data/spec/lib/mx-platform-ruby/transaction_rule_spec.rb +0 -207
  256. data/spec/lib/mx-platform-ruby/transaction_spec.rb +0 -449
  257. data/spec/lib/mx-platform-ruby/user_spec.rb +0 -196
  258. data/spec/lib/mx-platform-ruby/widget_spec.rb +0 -76
  259. data/spec/lib/mx-platform-ruby_spec.rb +0 -15
  260. data/spec/sample.pdf +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c37bb296e94c8e9931a9446fb80593f48d9e7b87ac3fb71d1d29cebb58c8723
4
- data.tar.gz: 5d60ba2b693ffeecdd49348c0a0a444f1e202367a263f4385f3a61ab1e34fafd
3
+ metadata.gz: b87adcc7b5742a6c44c9de7ea409bdbc666b2a631dfcb0433f93791cbc666142
4
+ data.tar.gz: '06098f4ad98164dc0f3dee79115723b54f64b95e99e4399ce198bc9d4725febb'
5
5
  SHA512:
6
- metadata.gz: 9a245730b4ba64a0a5bc1d21a25b1834ed18951371fb4bcef008e5a8c84a5f78351b82f4ceab2cff914249d5cf4ed1e80f4ff06e36dcacecfc706b490cb818ff
7
- data.tar.gz: ec13d47c295fff12ec888c527f3e4dfc81a401bb10c0169fb31bcdfd826b2f18d7d8091d40cd0fbefbe348dda13047b98e055ee4f3c153f89c4c2e270a86338e
6
+ metadata.gz: 85cdce911af6b8f003749dc9608caa741fe9561ff162952257c6640c3c3186a3e7f9143781f17880f8f91e4049b3ecb81657083e35a8cc5818faece9077f645d
7
+ data.tar.gz: d71f851ff6852228665f3f8af07adabc80b3e5b5db88cf7600c23c152d66666179a3400ba2708304efae157a5276f01a5d8a5b09199a073bbe372b751e23ed74
data/Gemfile CHANGED
@@ -1,5 +1,9 @@
1
- # frozen_string_literal: true
2
-
3
1
  source 'https://rubygems.org'
4
2
 
5
3
  gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,84 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mx-platform-ruby (0.2.0)
5
+ faraday (~> 1.0, >= 1.0.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ byebug (11.1.3)
12
+ coderay (1.1.3)
13
+ diff-lcs (1.4.4)
14
+ faraday (1.7.0)
15
+ faraday-em_http (~> 1.0)
16
+ faraday-em_synchrony (~> 1.0)
17
+ faraday-excon (~> 1.1)
18
+ faraday-httpclient (~> 1.0.1)
19
+ faraday-net_http (~> 1.0)
20
+ faraday-net_http_persistent (~> 1.1)
21
+ faraday-patron (~> 1.0)
22
+ faraday-rack (~> 1.0)
23
+ multipart-post (>= 1.2, < 3)
24
+ ruby2_keywords (>= 0.0.4)
25
+ faraday-em_http (1.0.0)
26
+ faraday-em_synchrony (1.0.0)
27
+ faraday-excon (1.1.0)
28
+ faraday-httpclient (1.0.1)
29
+ faraday-net_http (1.0.1)
30
+ faraday-net_http_persistent (1.2.0)
31
+ faraday-patron (1.0.0)
32
+ faraday-rack (1.0.0)
33
+ jaro_winkler (1.5.4)
34
+ method_source (1.0.0)
35
+ multipart-post (2.1.1)
36
+ parallel (1.20.1)
37
+ parser (3.0.2.0)
38
+ ast (~> 2.4.1)
39
+ pry (0.13.1)
40
+ coderay (~> 1.1)
41
+ method_source (~> 1.0)
42
+ pry-byebug (3.9.0)
43
+ byebug (~> 11.0)
44
+ pry (~> 0.13.0)
45
+ psych (4.0.1)
46
+ rainbow (3.0.0)
47
+ rake (13.0.6)
48
+ rspec (3.10.0)
49
+ rspec-core (~> 3.10.0)
50
+ rspec-expectations (~> 3.10.0)
51
+ rspec-mocks (~> 3.10.0)
52
+ rspec-core (3.10.1)
53
+ rspec-support (~> 3.10.0)
54
+ rspec-expectations (3.10.1)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.10.0)
57
+ rspec-mocks (3.10.2)
58
+ diff-lcs (>= 1.2.0, < 2.0)
59
+ rspec-support (~> 3.10.0)
60
+ rspec-support (3.10.2)
61
+ rubocop (0.66.0)
62
+ jaro_winkler (~> 1.5.1)
63
+ parallel (~> 1.10)
64
+ parser (>= 2.5, != 2.5.1.1)
65
+ psych (>= 3.1.0)
66
+ rainbow (>= 2.2.2, < 4.0)
67
+ ruby-progressbar (~> 1.7)
68
+ unicode-display_width (>= 1.4.0, < 1.6)
69
+ ruby-progressbar (1.11.0)
70
+ ruby2_keywords (0.0.5)
71
+ unicode-display_width (1.5.0)
72
+
73
+ PLATFORMS
74
+ x86_64-darwin-20
75
+
76
+ DEPENDENCIES
77
+ mx-platform-ruby!
78
+ pry-byebug
79
+ rake (~> 13.0.1)
80
+ rspec (~> 3.6, >= 3.6.0)
81
+ rubocop (~> 0.66.0)
82
+
83
+ BUNDLED WITH
84
+ 2.2.16
data/README.md CHANGED
@@ -1,60 +1,263 @@
1
- *This project is currently in **Beta**. Please open up an issue [here](https://github.com/mxenabled/mx-platform-ruby/issues) to report issues using the MX Platform API Ruby Library.*
1
+ # mx-platform-ruby
2
2
 
3
- # MX Platform API Ruby Library
4
- #### Version 0.1.1
3
+ MxPlatformRuby - the Ruby gem for the MX Platform API
5
4
 
6
- A Ruby library for the [MX Platform API](https://www.mx.com/products/platform-api).
5
+ 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.
7
6
 
8
- ## Documentation
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
9
8
 
10
- See the [MX Platform API docs](https://docs.mx.com/api).
9
+ - API version: 0.1.0
10
+ - Package version: 0.2.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://www.mx.com/products/platform-api](https://www.mx.com/products/platform-api)
11
13
 
12
14
  ## Installation
13
15
 
14
- Add this line to your application's Gemfile:
16
+ ### Build a gem
15
17
 
16
- ```ruby
17
- gem 'mx-platform-ruby'
18
- ```
18
+ To build the Ruby code into a gem:
19
19
 
20
- And then execute:
21
20
  ```shell
22
- $ bundle
21
+ gem build mx-platform-ruby.gemspec
23
22
  ```
24
- Or install it yourself with:
23
+
24
+ Then either install the gem locally:
25
+
25
26
  ```shell
26
- $ gem install mx-platform-ruby
27
+ gem install ./mx-platform-ruby-0.2.0.gem
27
28
  ```
28
29
 
29
- ## Configuration
30
+ (for development, run `gem install --dev ./mx-platform-ruby-0.2.0.gem` to install the development dependencies)
30
31
 
31
- In order to make API requests, you will need to [sign up for the MX Platform API](https://dashboard.mx.com/sign_up) and get a `Client ID` and `API Key`.
32
- ```ruby
33
- ::MXPlatformRuby.configure do |config|
34
- config.username = 'Client ID'
35
- config.password = 'API Key'
36
- config.base_url = 'https://int-api.mx.com' # in production, use 'https://api.mx.com'
37
- end
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'mx-platform-ruby', '~> 0.2.0'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
41
+
42
+ gem 'mx-platform-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
38
50
  ```
39
51
 
40
- ## Paginated endpoints
52
+ ## Getting Started
41
53
 
42
- For paginated endpoints, the pagination values can be accessed through the returned `::MXPlatformRuby::Page` array as follows
54
+ Please follow the [installation](#installation) procedure and then run the following code:
43
55
 
44
56
  ```ruby
45
- institutions = ::MXPlatformRuby::Institution.list_institutions(options)
57
+ # Load the gem
58
+ require 'mx-platform-ruby'
59
+
60
+ # Setup authorization
61
+ MxPlatformRuby.configure do |config|
62
+ # Configure HTTP basic authorization: basicAuth
63
+ config.username = 'YOUR_USERNAME'
64
+ config.password = 'YOUR_PASSWORD'
65
+ end
46
66
 
47
- puts "Current page: #{institutions.current_page}"
48
- puts "Per page: #{institutions.per_page}"
49
- puts "Total entries: #{institutions.total_entries}"
50
- puts "Total pages: #{institutions.total_pages}"
67
+ api_instance = MxPlatformRuby::MxPlatformApi.new
68
+ member_guid = 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b' # String | The unique id for a `member`.
69
+ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
51
70
 
52
- institutions.each do |institution|
53
- p institution
71
+ begin
72
+ #Aggregate member
73
+ result = api_instance.aggregate_member(member_guid, user_guid)
74
+ p result
75
+ rescue MxPlatformRuby::ApiError => e
76
+ puts "Exception when calling MxPlatformApi->aggregate_member: #{e}"
54
77
  end
78
+
55
79
  ```
56
80
 
81
+ ## Documentation for API Endpoints
82
+
83
+ All URIs are relative to *https://api.mx.com*
84
+
85
+ Class | Method | HTTP request | Description
86
+ ------------ | ------------- | ------------- | -------------
87
+ *MxPlatformRuby::MxPlatformApi* | [**aggregate_member**](docs/MxPlatformApi.md#aggregate_member) | **POST** /users/{user_guid}/members/{member_guid}/aggregate | Aggregate member
88
+ *MxPlatformRuby::MxPlatformApi* | [**check_balances**](docs/MxPlatformApi.md#check_balances) | **POST** /users/{user_guid}/members/{member_guid}/check_balance | Check balances
89
+ *MxPlatformRuby::MxPlatformApi* | [**create_category**](docs/MxPlatformApi.md#create_category) | **POST** /users/{user_guid}/categories | Create category
90
+ *MxPlatformRuby::MxPlatformApi* | [**create_member**](docs/MxPlatformApi.md#create_member) | **POST** /users/{user_guid}/members | Create member
91
+ *MxPlatformRuby::MxPlatformApi* | [**create_tag**](docs/MxPlatformApi.md#create_tag) | **POST** /users/{user_guid}/tags | Create tag
92
+ *MxPlatformRuby::MxPlatformApi* | [**create_tagging**](docs/MxPlatformApi.md#create_tagging) | **POST** /users/{user_guid}/taggings | Create tagging
93
+ *MxPlatformRuby::MxPlatformApi* | [**create_transaction_rule**](docs/MxPlatformApi.md#create_transaction_rule) | **POST** /users/{user_guid}/transaction_rules | Create transaction rule
94
+ *MxPlatformRuby::MxPlatformApi* | [**create_user**](docs/MxPlatformApi.md#create_user) | **POST** /users | Create user
95
+ *MxPlatformRuby::MxPlatformApi* | [**delete_category**](docs/MxPlatformApi.md#delete_category) | **DELETE** /users/{user_guid}/categories/{category_guid} | Delete category
96
+ *MxPlatformRuby::MxPlatformApi* | [**delete_member**](docs/MxPlatformApi.md#delete_member) | **DELETE** /users/{user_guid}/members/{member_guid} | Delete member
97
+ *MxPlatformRuby::MxPlatformApi* | [**delete_tag**](docs/MxPlatformApi.md#delete_tag) | **DELETE** /users/{user_guid}/tags/{tag_guid} | Delete tag
98
+ *MxPlatformRuby::MxPlatformApi* | [**delete_tagging**](docs/MxPlatformApi.md#delete_tagging) | **DELETE** /users/{user_guid}/taggings/{tagging_guid} | Delete tagging
99
+ *MxPlatformRuby::MxPlatformApi* | [**delete_transaction_rule**](docs/MxPlatformApi.md#delete_transaction_rule) | **DELETE** /users/{user_guid}/transaction_rules/{transaction_rule_guid} | Delete transaction rule
100
+ *MxPlatformRuby::MxPlatformApi* | [**delete_user**](docs/MxPlatformApi.md#delete_user) | **DELETE** /users/{user_guid} | Delete user
101
+ *MxPlatformRuby::MxPlatformApi* | [**download_statement_pdf**](docs/MxPlatformApi.md#download_statement_pdf) | **GET** /users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf | Download statement PDF
102
+ *MxPlatformRuby::MxPlatformApi* | [**enhance_transactions**](docs/MxPlatformApi.md#enhance_transactions) | **POST** /transactions/enhance | Enhance transactions
103
+ *MxPlatformRuby::MxPlatformApi* | [**extend_history**](docs/MxPlatformApi.md#extend_history) | **POST** /users/{user_guid}/members/{member_guid}/extend_history | Extend history
104
+ *MxPlatformRuby::MxPlatformApi* | [**fetch_statements_by_member**](docs/MxPlatformApi.md#fetch_statements_by_member) | **POST** /users/{user_guid}/members/{member_guid}/fetch_statements | Fetch statements by member
105
+ *MxPlatformRuby::MxPlatformApi* | [**identify_member**](docs/MxPlatformApi.md#identify_member) | **POST** /users/{user_guid}/members/{member_guid}/identify | Identify member
106
+ *MxPlatformRuby::MxPlatformApi* | [**list_account_numbers_by_account**](docs/MxPlatformApi.md#list_account_numbers_by_account) | **GET** /users/{user_guid}/accounts/{account_guid}/account_numbers | List account numbers by account
107
+ *MxPlatformRuby::MxPlatformApi* | [**list_account_numbers_by_member**](docs/MxPlatformApi.md#list_account_numbers_by_member) | **GET** /users/{user_guid}/members/{member_guid}/account_numbers | List account numbers by member
108
+ *MxPlatformRuby::MxPlatformApi* | [**list_account_owners**](docs/MxPlatformApi.md#list_account_owners) | **GET** /users/{user_guid}/members/{member_guid}/account_owners | List account owners
109
+ *MxPlatformRuby::MxPlatformApi* | [**list_categories**](docs/MxPlatformApi.md#list_categories) | **GET** /users/{user_guid}/categories | List categories
110
+ *MxPlatformRuby::MxPlatformApi* | [**list_default_categories**](docs/MxPlatformApi.md#list_default_categories) | **GET** /users/{user_guid}/categories/default | List default categories
111
+ *MxPlatformRuby::MxPlatformApi* | [**list_favorites**](docs/MxPlatformApi.md#list_favorites) | **GET** /institutions/favorites | List favorites
112
+ *MxPlatformRuby::MxPlatformApi* | [**list_holdings_by_member**](docs/MxPlatformApi.md#list_holdings_by_member) | **GET** /users/{user_guid}/members/{member_guid}/holdings | List holdings by member
113
+ *MxPlatformRuby::MxPlatformApi* | [**list_holdings_by_user**](docs/MxPlatformApi.md#list_holdings_by_user) | **GET** /users/{user_guid}/holdings | List holdings by user
114
+ *MxPlatformRuby::MxPlatformApi* | [**list_institution_required_credentials**](docs/MxPlatformApi.md#list_institution_required_credentials) | **GET** /institutions/{institution_code}/credentials | List institution-required credentials
115
+ *MxPlatformRuby::MxPlatformApi* | [**list_institutions**](docs/MxPlatformApi.md#list_institutions) | **GET** /institutions | List institutions
116
+ *MxPlatformRuby::MxPlatformApi* | [**list_member_challenges**](docs/MxPlatformApi.md#list_member_challenges) | **GET** /users/{user_guid}/members/{member_guid}/challenges | List member challenges
117
+ *MxPlatformRuby::MxPlatformApi* | [**list_member_credentials**](docs/MxPlatformApi.md#list_member_credentials) | **GET** /users/{user_guid}/members/{member_guid}/credentials | List member credentials
118
+ *MxPlatformRuby::MxPlatformApi* | [**list_members**](docs/MxPlatformApi.md#list_members) | **GET** /users/{user_guid}/members | List members
119
+ *MxPlatformRuby::MxPlatformApi* | [**list_merchants**](docs/MxPlatformApi.md#list_merchants) | **GET** /merchants | List merchants
120
+ *MxPlatformRuby::MxPlatformApi* | [**list_statements_by_member**](docs/MxPlatformApi.md#list_statements_by_member) | **GET** /users/{user_guid}/members/{member_guid}/statements | List statements by member
121
+ *MxPlatformRuby::MxPlatformApi* | [**list_taggings**](docs/MxPlatformApi.md#list_taggings) | **GET** /users/{user_guid}/taggings | List taggings
122
+ *MxPlatformRuby::MxPlatformApi* | [**list_tags**](docs/MxPlatformApi.md#list_tags) | **GET** /users/{user_guid}/tags | List tags
123
+ *MxPlatformRuby::MxPlatformApi* | [**list_transaction_rules_by_user**](docs/MxPlatformApi.md#list_transaction_rules_by_user) | **GET** /users/{user_guid}/transaction_rules | List transaction rules by user
124
+ *MxPlatformRuby::MxPlatformApi* | [**list_transactions_by_account**](docs/MxPlatformApi.md#list_transactions_by_account) | **GET** /users/{user_guid}/accounts/{account_guid}/transactions | List transactions by account
125
+ *MxPlatformRuby::MxPlatformApi* | [**list_transactions_by_member**](docs/MxPlatformApi.md#list_transactions_by_member) | **GET** /users/{user_guid}/members/{member_guid}/transactions | List transactions by member
126
+ *MxPlatformRuby::MxPlatformApi* | [**list_transactions_by_tag**](docs/MxPlatformApi.md#list_transactions_by_tag) | **GET** /users/{user_guid}/tags/{tag_guid}/transactions | List transactions by tag
127
+ *MxPlatformRuby::MxPlatformApi* | [**list_transactions_by_user**](docs/MxPlatformApi.md#list_transactions_by_user) | **GET** /users/{user_guid}/transactions | List transactions by user
128
+ *MxPlatformRuby::MxPlatformApi* | [**list_user_accounts**](docs/MxPlatformApi.md#list_user_accounts) | **GET** /users/{user_guid}/accounts | List accounts
129
+ *MxPlatformRuby::MxPlatformApi* | [**list_users**](docs/MxPlatformApi.md#list_users) | **GET** /users | List users
130
+ *MxPlatformRuby::MxPlatformApi* | [**read_account**](docs/MxPlatformApi.md#read_account) | **GET** /users/{user_guid}/accounts/{account_guid} | Read account
131
+ *MxPlatformRuby::MxPlatformApi* | [**read_category**](docs/MxPlatformApi.md#read_category) | **GET** /users/{user_guid}/categories/{category_guid} | Read category
132
+ *MxPlatformRuby::MxPlatformApi* | [**read_holding**](docs/MxPlatformApi.md#read_holding) | **GET** /users/{user_guid}/holdings/{holding_guid} | Read holding
133
+ *MxPlatformRuby::MxPlatformApi* | [**read_institution**](docs/MxPlatformApi.md#read_institution) | **GET** /institutions/{institution_code} | Read institution
134
+ *MxPlatformRuby::MxPlatformApi* | [**read_member**](docs/MxPlatformApi.md#read_member) | **GET** /users/{user_guid}/members/{member_guid} | Read member
135
+ *MxPlatformRuby::MxPlatformApi* | [**read_member_status**](docs/MxPlatformApi.md#read_member_status) | **GET** /users/{user_guid}/members/{member_guid}/status | Read member status
136
+ *MxPlatformRuby::MxPlatformApi* | [**read_merchant**](docs/MxPlatformApi.md#read_merchant) | **GET** /merchants/{merchant_guid} | Read merchant
137
+ *MxPlatformRuby::MxPlatformApi* | [**read_statement_by_member**](docs/MxPlatformApi.md#read_statement_by_member) | **GET** /users/{user_guid}/members/{member_guid}/statements/{statement_guid} | Read statement by member
138
+ *MxPlatformRuby::MxPlatformApi* | [**read_tag**](docs/MxPlatformApi.md#read_tag) | **GET** /users/{user_guid}/tags/{tag_guid} | Read tag
139
+ *MxPlatformRuby::MxPlatformApi* | [**read_tagging**](docs/MxPlatformApi.md#read_tagging) | **GET** /users/{user_guid}/taggings/{tagging_guid} | Read tagging
140
+ *MxPlatformRuby::MxPlatformApi* | [**read_transaction**](docs/MxPlatformApi.md#read_transaction) | **GET** /users/{user_guid}/transactions/{transaction_guid} | Read transaction
141
+ *MxPlatformRuby::MxPlatformApi* | [**read_transaction_rule**](docs/MxPlatformApi.md#read_transaction_rule) | **GET** /users/{user_guid}/transaction_rules/{transaction_rule_guid} | Read transaction rule
142
+ *MxPlatformRuby::MxPlatformApi* | [**read_user**](docs/MxPlatformApi.md#read_user) | **GET** /users/{user_guid} | Read user
143
+ *MxPlatformRuby::MxPlatformApi* | [**request_connect_widget_url**](docs/MxPlatformApi.md#request_connect_widget_url) | **POST** /users/{user_guid}/connect_widget_url | Request connect widget URL
144
+ *MxPlatformRuby::MxPlatformApi* | [**request_o_auth_window**](docs/MxPlatformApi.md#request_o_auth_window) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Read member
145
+ *MxPlatformRuby::MxPlatformApi* | [**request_widget_url**](docs/MxPlatformApi.md#request_widget_url) | **POST** /users/{user_guid}/widget_urls | Request a widget URL
146
+ *MxPlatformRuby::MxPlatformApi* | [**resume_aggregation**](docs/MxPlatformApi.md#resume_aggregation) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation
147
+ *MxPlatformRuby::MxPlatformApi* | [**update_account**](docs/MxPlatformApi.md#update_account) | **PUT** /users/{user_guid}/members/{member_guid}/accounts/{account_guid} | Update account
148
+ *MxPlatformRuby::MxPlatformApi* | [**update_category**](docs/MxPlatformApi.md#update_category) | **PUT** /users/{user_guid}/categories/{category_guid} | Update category
149
+ *MxPlatformRuby::MxPlatformApi* | [**update_member**](docs/MxPlatformApi.md#update_member) | **PUT** /users/{user_guid}/members/{member_guid} | Update member
150
+ *MxPlatformRuby::MxPlatformApi* | [**update_tag**](docs/MxPlatformApi.md#update_tag) | **PUT** /users/{user_guid}/tags/{tag_guid} | Update tag
151
+ *MxPlatformRuby::MxPlatformApi* | [**update_tagging**](docs/MxPlatformApi.md#update_tagging) | **PUT** /users/{user_guid}/taggings/{tagging_guid} | Update tagging
152
+ *MxPlatformRuby::MxPlatformApi* | [**update_transaction**](docs/MxPlatformApi.md#update_transaction) | **PUT** /users/{user_guid}/transactions/{transaction_guid} | Update transaction
153
+ *MxPlatformRuby::MxPlatformApi* | [**update_transaction_rule**](docs/MxPlatformApi.md#update_transaction_rule) | **PUT** /users/{user_guid}/transaction_rules/{transaction_rule_guid} | Update transaction_rule
154
+ *MxPlatformRuby::MxPlatformApi* | [**update_user**](docs/MxPlatformApi.md#update_user) | **PUT** /users/{user_guid} | Update user
155
+ *MxPlatformRuby::MxPlatformApi* | [**verify_member**](docs/MxPlatformApi.md#verify_member) | **POST** /users/{user_guid}/members/{member_guid}/verify | Verify member
156
+
157
+
158
+ ## Documentation for Models
159
+
160
+ - [MxPlatformRuby::Account](docs/Account.md)
161
+ - [MxPlatformRuby::AccountNumber](docs/AccountNumber.md)
162
+ - [MxPlatformRuby::AccountNumbersResponseBody](docs/AccountNumbersResponseBody.md)
163
+ - [MxPlatformRuby::AccountOwner](docs/AccountOwner.md)
164
+ - [MxPlatformRuby::AccountOwnersResponseBody](docs/AccountOwnersResponseBody.md)
165
+ - [MxPlatformRuby::AccountResponseBody](docs/AccountResponseBody.md)
166
+ - [MxPlatformRuby::AccountUpdateRequest](docs/AccountUpdateRequest.md)
167
+ - [MxPlatformRuby::AccountUpdateRequestBody](docs/AccountUpdateRequestBody.md)
168
+ - [MxPlatformRuby::AccountsResponseBody](docs/AccountsResponseBody.md)
169
+ - [MxPlatformRuby::CategoriesResponseBody](docs/CategoriesResponseBody.md)
170
+ - [MxPlatformRuby::Category](docs/Category.md)
171
+ - [MxPlatformRuby::CategoryCreateRequest](docs/CategoryCreateRequest.md)
172
+ - [MxPlatformRuby::CategoryCreateRequestBody](docs/CategoryCreateRequestBody.md)
173
+ - [MxPlatformRuby::CategoryResponseBody](docs/CategoryResponseBody.md)
174
+ - [MxPlatformRuby::CategoryUpdateRequest](docs/CategoryUpdateRequest.md)
175
+ - [MxPlatformRuby::CategoryUpdateRequestBody](docs/CategoryUpdateRequestBody.md)
176
+ - [MxPlatformRuby::Challenge](docs/Challenge.md)
177
+ - [MxPlatformRuby::ChallengeImageOptions](docs/ChallengeImageOptions.md)
178
+ - [MxPlatformRuby::ChallengeOptions](docs/ChallengeOptions.md)
179
+ - [MxPlatformRuby::ChallengesResponseBody](docs/ChallengesResponseBody.md)
180
+ - [MxPlatformRuby::ConnectWidget](docs/ConnectWidget.md)
181
+ - [MxPlatformRuby::ConnectWidgetRequest](docs/ConnectWidgetRequest.md)
182
+ - [MxPlatformRuby::ConnectWidgetRequestBody](docs/ConnectWidgetRequestBody.md)
183
+ - [MxPlatformRuby::ConnectWidgetResponseBody](docs/ConnectWidgetResponseBody.md)
184
+ - [MxPlatformRuby::Credential](docs/Credential.md)
185
+ - [MxPlatformRuby::CredentialRequest](docs/CredentialRequest.md)
186
+ - [MxPlatformRuby::CredentialsResponseBody](docs/CredentialsResponseBody.md)
187
+ - [MxPlatformRuby::EnhanceTransaction](docs/EnhanceTransaction.md)
188
+ - [MxPlatformRuby::EnhanceTransactionsRequest](docs/EnhanceTransactionsRequest.md)
189
+ - [MxPlatformRuby::EnhanceTransactionsRequestBody](docs/EnhanceTransactionsRequestBody.md)
190
+ - [MxPlatformRuby::EnhanceTransactionsResponseBody](docs/EnhanceTransactionsResponseBody.md)
191
+ - [MxPlatformRuby::Holding](docs/Holding.md)
192
+ - [MxPlatformRuby::HoldingResponseBody](docs/HoldingResponseBody.md)
193
+ - [MxPlatformRuby::HoldingsResponseBody](docs/HoldingsResponseBody.md)
194
+ - [MxPlatformRuby::InlineResponse200](docs/InlineResponse200.md)
195
+ - [MxPlatformRuby::Institution](docs/Institution.md)
196
+ - [MxPlatformRuby::InstitutionResponseBody](docs/InstitutionResponseBody.md)
197
+ - [MxPlatformRuby::InstitutionsResponseBody](docs/InstitutionsResponseBody.md)
198
+ - [MxPlatformRuby::Member](docs/Member.md)
199
+ - [MxPlatformRuby::MemberCreateRequest](docs/MemberCreateRequest.md)
200
+ - [MxPlatformRuby::MemberCreateRequestBody](docs/MemberCreateRequestBody.md)
201
+ - [MxPlatformRuby::MemberResponseBody](docs/MemberResponseBody.md)
202
+ - [MxPlatformRuby::MemberResumeRequest](docs/MemberResumeRequest.md)
203
+ - [MxPlatformRuby::MemberResumeRequestBody](docs/MemberResumeRequestBody.md)
204
+ - [MxPlatformRuby::MemberStatus](docs/MemberStatus.md)
205
+ - [MxPlatformRuby::MemberStatusResponseBody](docs/MemberStatusResponseBody.md)
206
+ - [MxPlatformRuby::MemberUpdateRequest](docs/MemberUpdateRequest.md)
207
+ - [MxPlatformRuby::MemberUpdateRequestBody](docs/MemberUpdateRequestBody.md)
208
+ - [MxPlatformRuby::MembersResponseBody](docs/MembersResponseBody.md)
209
+ - [MxPlatformRuby::Merchant](docs/Merchant.md)
210
+ - [MxPlatformRuby::MerchantResponseBody](docs/MerchantResponseBody.md)
211
+ - [MxPlatformRuby::MerchantsResponseBody](docs/MerchantsResponseBody.md)
212
+ - [MxPlatformRuby::OAuthWindow](docs/OAuthWindow.md)
213
+ - [MxPlatformRuby::OAuthWindowResponseBody](docs/OAuthWindowResponseBody.md)
214
+ - [MxPlatformRuby::Pagination](docs/Pagination.md)
215
+ - [MxPlatformRuby::Statement](docs/Statement.md)
216
+ - [MxPlatformRuby::StatementResponseBody](docs/StatementResponseBody.md)
217
+ - [MxPlatformRuby::StatementsResponseBody](docs/StatementsResponseBody.md)
218
+ - [MxPlatformRuby::Tag](docs/Tag.md)
219
+ - [MxPlatformRuby::TagCreateRequest](docs/TagCreateRequest.md)
220
+ - [MxPlatformRuby::TagCreateRequestBody](docs/TagCreateRequestBody.md)
221
+ - [MxPlatformRuby::TagResponseBody](docs/TagResponseBody.md)
222
+ - [MxPlatformRuby::TagUpdateRequest](docs/TagUpdateRequest.md)
223
+ - [MxPlatformRuby::TagUpdateRequestBody](docs/TagUpdateRequestBody.md)
224
+ - [MxPlatformRuby::Tagging](docs/Tagging.md)
225
+ - [MxPlatformRuby::TaggingCreateRequest](docs/TaggingCreateRequest.md)
226
+ - [MxPlatformRuby::TaggingCreateRequestBody](docs/TaggingCreateRequestBody.md)
227
+ - [MxPlatformRuby::TaggingResponseBody](docs/TaggingResponseBody.md)
228
+ - [MxPlatformRuby::TaggingUpdateRequest](docs/TaggingUpdateRequest.md)
229
+ - [MxPlatformRuby::TaggingUpdateRequestBody](docs/TaggingUpdateRequestBody.md)
230
+ - [MxPlatformRuby::TaggingsResponseBody](docs/TaggingsResponseBody.md)
231
+ - [MxPlatformRuby::TagsResponseBody](docs/TagsResponseBody.md)
232
+ - [MxPlatformRuby::Transaction](docs/Transaction.md)
233
+ - [MxPlatformRuby::TransactionResponseBody](docs/TransactionResponseBody.md)
234
+ - [MxPlatformRuby::TransactionRule](docs/TransactionRule.md)
235
+ - [MxPlatformRuby::TransactionRuleCreateRequest](docs/TransactionRuleCreateRequest.md)
236
+ - [MxPlatformRuby::TransactionRuleCreateRequestBody](docs/TransactionRuleCreateRequestBody.md)
237
+ - [MxPlatformRuby::TransactionRuleResponseBody](docs/TransactionRuleResponseBody.md)
238
+ - [MxPlatformRuby::TransactionRuleUpdateRequest](docs/TransactionRuleUpdateRequest.md)
239
+ - [MxPlatformRuby::TransactionRuleUpdateRequestBody](docs/TransactionRuleUpdateRequestBody.md)
240
+ - [MxPlatformRuby::TransactionRulesResponseBody](docs/TransactionRulesResponseBody.md)
241
+ - [MxPlatformRuby::TransactionUpdateRequest](docs/TransactionUpdateRequest.md)
242
+ - [MxPlatformRuby::TransactionUpdateRequestBody](docs/TransactionUpdateRequestBody.md)
243
+ - [MxPlatformRuby::TransactionsResponseBody](docs/TransactionsResponseBody.md)
244
+ - [MxPlatformRuby::User](docs/User.md)
245
+ - [MxPlatformRuby::UserCreateRequest](docs/UserCreateRequest.md)
246
+ - [MxPlatformRuby::UserCreateRequestBody](docs/UserCreateRequestBody.md)
247
+ - [MxPlatformRuby::UserResponseBody](docs/UserResponseBody.md)
248
+ - [MxPlatformRuby::UserUpdateRequest](docs/UserUpdateRequest.md)
249
+ - [MxPlatformRuby::UserUpdateRequestBody](docs/UserUpdateRequestBody.md)
250
+ - [MxPlatformRuby::UsersResponseBody](docs/UsersResponseBody.md)
251
+ - [MxPlatformRuby::Widget](docs/Widget.md)
252
+ - [MxPlatformRuby::WidgetRequest](docs/WidgetRequest.md)
253
+ - [MxPlatformRuby::WidgetRequestBody](docs/WidgetRequestBody.md)
254
+ - [MxPlatformRuby::WidgetResponseBody](docs/WidgetResponseBody.md)
255
+
256
+
257
+ ## Documentation for Authorization
258
+
259
+
260
+ ### basicAuth
57
261
 
58
- ## Contributing
262
+ - **Type**: HTTP basic authentication
59
263
 
60
- Bug reports and pull requests are welcome on [GitHub](https://github.com/mxenabled/mx-platform-ruby).
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
- # frozen_string_literal: true
1
+ require "bundler/gem_tasks"
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- require 'rubocop/rake_task'
3
+ begin
4
+ require 'rspec/core/rake_task'
6
5
 
7
- ::RSpec::Core::RakeTask.new(:spec)
8
- ::RuboCop::RakeTask.new(:rubocop)
9
-
10
- desc 'Run RuboCop and RSpec'
11
- task default: %i[rubocop spec]
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -1,44 +1,135 @@
1
- # frozen_string_literal: true
1
+ =begin
2
+ #MX Platform API
2
3
 
3
- require 'active_attr'
4
- require 'base64'
5
- require 'httpclient'
6
- require 'json'
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.
7
5
 
8
- require 'mx-platform-ruby/client'
9
- require 'mx-platform-ruby/error'
10
- require 'mx-platform-ruby/pageable'
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
+ # Common files
14
+ require 'mx-platform-ruby/api_client'
15
+ require 'mx-platform-ruby/api_error'
11
16
  require 'mx-platform-ruby/version'
17
+ require 'mx-platform-ruby/configuration'
12
18
 
13
- require 'mx-platform-ruby/account'
14
- require 'mx-platform-ruby/account_number'
15
- require 'mx-platform-ruby/account_owner'
16
- require 'mx-platform-ruby/category'
17
- require 'mx-platform-ruby/challenge'
18
- require 'mx-platform-ruby/connect_widget'
19
- require 'mx-platform-ruby/credential'
20
- require 'mx-platform-ruby/enhanced_transaction'
21
- require 'mx-platform-ruby/holding'
22
- require 'mx-platform-ruby/institution'
23
- require 'mx-platform-ruby/member'
24
- require 'mx-platform-ruby/member_status'
25
- require 'mx-platform-ruby/merchant'
26
- require 'mx-platform-ruby/oauth_window'
27
- require 'mx-platform-ruby/statement'
28
- require 'mx-platform-ruby/tag'
29
- require 'mx-platform-ruby/tagging'
30
- require 'mx-platform-ruby/transaction'
31
- require 'mx-platform-ruby/transaction_rule'
32
- require 'mx-platform-ruby/user'
33
- require 'mx-platform-ruby/widget'
34
-
35
- module MXPlatformRuby
36
- class << self
37
- attr_reader :client
19
+ # Models
20
+ require 'mx-platform-ruby/models/account'
21
+ require 'mx-platform-ruby/models/account_number'
22
+ require 'mx-platform-ruby/models/account_numbers_response_body'
23
+ require 'mx-platform-ruby/models/account_owner'
24
+ require 'mx-platform-ruby/models/account_owners_response_body'
25
+ require 'mx-platform-ruby/models/account_response_body'
26
+ require 'mx-platform-ruby/models/account_update_request'
27
+ require 'mx-platform-ruby/models/account_update_request_body'
28
+ require 'mx-platform-ruby/models/accounts_response_body'
29
+ require 'mx-platform-ruby/models/categories_response_body'
30
+ require 'mx-platform-ruby/models/category'
31
+ require 'mx-platform-ruby/models/category_create_request'
32
+ require 'mx-platform-ruby/models/category_create_request_body'
33
+ require 'mx-platform-ruby/models/category_response_body'
34
+ require 'mx-platform-ruby/models/category_update_request'
35
+ require 'mx-platform-ruby/models/category_update_request_body'
36
+ require 'mx-platform-ruby/models/challenge'
37
+ require 'mx-platform-ruby/models/challenge_image_options'
38
+ require 'mx-platform-ruby/models/challenge_options'
39
+ require 'mx-platform-ruby/models/challenges_response_body'
40
+ require 'mx-platform-ruby/models/connect_widget'
41
+ require 'mx-platform-ruby/models/connect_widget_request'
42
+ require 'mx-platform-ruby/models/connect_widget_request_body'
43
+ require 'mx-platform-ruby/models/connect_widget_response_body'
44
+ require 'mx-platform-ruby/models/credential'
45
+ require 'mx-platform-ruby/models/credential_request'
46
+ require 'mx-platform-ruby/models/credentials_response_body'
47
+ require 'mx-platform-ruby/models/enhance_transaction'
48
+ require 'mx-platform-ruby/models/enhance_transactions_request'
49
+ require 'mx-platform-ruby/models/enhance_transactions_request_body'
50
+ require 'mx-platform-ruby/models/enhance_transactions_response_body'
51
+ require 'mx-platform-ruby/models/holding'
52
+ require 'mx-platform-ruby/models/holding_response_body'
53
+ require 'mx-platform-ruby/models/holdings_response_body'
54
+ require 'mx-platform-ruby/models/inline_response200'
55
+ require 'mx-platform-ruby/models/institution'
56
+ require 'mx-platform-ruby/models/institution_response_body'
57
+ require 'mx-platform-ruby/models/institutions_response_body'
58
+ require 'mx-platform-ruby/models/member'
59
+ require 'mx-platform-ruby/models/member_create_request'
60
+ require 'mx-platform-ruby/models/member_create_request_body'
61
+ require 'mx-platform-ruby/models/member_response_body'
62
+ require 'mx-platform-ruby/models/member_resume_request'
63
+ require 'mx-platform-ruby/models/member_resume_request_body'
64
+ require 'mx-platform-ruby/models/member_status'
65
+ require 'mx-platform-ruby/models/member_status_response_body'
66
+ require 'mx-platform-ruby/models/member_update_request'
67
+ require 'mx-platform-ruby/models/member_update_request_body'
68
+ require 'mx-platform-ruby/models/members_response_body'
69
+ require 'mx-platform-ruby/models/merchant'
70
+ require 'mx-platform-ruby/models/merchant_response_body'
71
+ require 'mx-platform-ruby/models/merchants_response_body'
72
+ require 'mx-platform-ruby/models/o_auth_window'
73
+ require 'mx-platform-ruby/models/o_auth_window_response_body'
74
+ require 'mx-platform-ruby/models/pagination'
75
+ require 'mx-platform-ruby/models/statement'
76
+ require 'mx-platform-ruby/models/statement_response_body'
77
+ require 'mx-platform-ruby/models/statements_response_body'
78
+ require 'mx-platform-ruby/models/tag'
79
+ require 'mx-platform-ruby/models/tag_create_request'
80
+ require 'mx-platform-ruby/models/tag_create_request_body'
81
+ require 'mx-platform-ruby/models/tag_response_body'
82
+ require 'mx-platform-ruby/models/tag_update_request'
83
+ require 'mx-platform-ruby/models/tag_update_request_body'
84
+ require 'mx-platform-ruby/models/tagging'
85
+ require 'mx-platform-ruby/models/tagging_create_request'
86
+ require 'mx-platform-ruby/models/tagging_create_request_body'
87
+ require 'mx-platform-ruby/models/tagging_response_body'
88
+ require 'mx-platform-ruby/models/tagging_update_request'
89
+ require 'mx-platform-ruby/models/tagging_update_request_body'
90
+ require 'mx-platform-ruby/models/taggings_response_body'
91
+ require 'mx-platform-ruby/models/tags_response_body'
92
+ require 'mx-platform-ruby/models/transaction'
93
+ require 'mx-platform-ruby/models/transaction_response_body'
94
+ require 'mx-platform-ruby/models/transaction_rule'
95
+ require 'mx-platform-ruby/models/transaction_rule_create_request'
96
+ require 'mx-platform-ruby/models/transaction_rule_create_request_body'
97
+ require 'mx-platform-ruby/models/transaction_rule_response_body'
98
+ require 'mx-platform-ruby/models/transaction_rule_update_request'
99
+ require 'mx-platform-ruby/models/transaction_rule_update_request_body'
100
+ require 'mx-platform-ruby/models/transaction_rules_response_body'
101
+ require 'mx-platform-ruby/models/transaction_update_request'
102
+ require 'mx-platform-ruby/models/transaction_update_request_body'
103
+ require 'mx-platform-ruby/models/transactions_response_body'
104
+ require 'mx-platform-ruby/models/user'
105
+ require 'mx-platform-ruby/models/user_create_request'
106
+ require 'mx-platform-ruby/models/user_create_request_body'
107
+ require 'mx-platform-ruby/models/user_response_body'
108
+ require 'mx-platform-ruby/models/user_update_request'
109
+ require 'mx-platform-ruby/models/user_update_request_body'
110
+ require 'mx-platform-ruby/models/users_response_body'
111
+ require 'mx-platform-ruby/models/widget'
112
+ require 'mx-platform-ruby/models/widget_request'
113
+ require 'mx-platform-ruby/models/widget_request_body'
114
+ require 'mx-platform-ruby/models/widget_response_body'
115
+
116
+ # APIs
117
+ require 'mx-platform-ruby/api/mx_platform_api'
38
118
 
119
+ module MxPlatformRuby
120
+ class << self
121
+ # Customize default settings for the SDK using block.
122
+ # MxPlatformRuby.configure do |config|
123
+ # config.username = "xxx"
124
+ # config.password = "xxx"
125
+ # end
126
+ # If no block given, return the default Configuration object.
39
127
  def configure
40
- @client = ::MXPlatformRuby::Client.new
41
- yield @client
128
+ if block_given?
129
+ yield(Configuration.default)
130
+ else
131
+ Configuration.default
132
+ end
42
133
  end
43
134
  end
44
135
  end