mx-platform-ruby 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +6 -3
  4. data/docs/MxPlatformApi.md +83 -0
  5. data/lib/mx-platform-ruby/api/mx_platform_api.rb +82 -1
  6. data/lib/mx-platform-ruby/api_client.rb +1 -1
  7. data/lib/mx-platform-ruby/api_error.rb +1 -1
  8. data/lib/mx-platform-ruby/configuration.rb +1 -1
  9. data/lib/mx-platform-ruby/models/account_number_response.rb +1 -1
  10. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
  11. data/lib/mx-platform-ruby/models/account_owner_response.rb +1 -1
  12. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
  13. data/lib/mx-platform-ruby/models/account_response.rb +1 -1
  14. data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
  15. data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
  16. data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
  17. data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
  18. data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
  19. data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
  20. data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
  21. data/lib/mx-platform-ruby/models/category_response.rb +1 -1
  22. data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
  23. data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
  24. data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
  25. data/lib/mx-platform-ruby/models/challenge_response.rb +1 -1
  26. data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
  27. data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
  28. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
  29. data/lib/mx-platform-ruby/models/connect_widget_response.rb +1 -1
  30. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
  31. data/lib/mx-platform-ruby/models/credential_request.rb +1 -1
  32. data/lib/mx-platform-ruby/models/credential_response.rb +1 -1
  33. data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
  34. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +1 -1
  35. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
  36. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
  37. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
  38. data/lib/mx-platform-ruby/models/holding_response.rb +1 -1
  39. data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
  40. data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
  41. data/lib/mx-platform-ruby/models/image_option_response.rb +1 -1
  42. data/lib/mx-platform-ruby/models/institution_response.rb +1 -1
  43. data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
  44. data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
  45. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +1 -1
  46. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +1 -1
  47. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +1 -1
  48. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +1 -1
  49. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +1 -1
  50. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +1 -1
  51. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +1 -1
  52. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +1 -1
  53. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +1 -1
  54. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +1 -1
  55. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +1 -1
  56. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +1 -1
  57. data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
  58. data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
  59. data/lib/mx-platform-ruby/models/member_response.rb +1 -1
  60. data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
  61. data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
  62. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
  63. data/lib/mx-platform-ruby/models/member_status_response.rb +1 -1
  64. data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
  65. data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
  66. data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
  67. data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
  68. data/lib/mx-platform-ruby/models/merchant_location_response.rb +1 -1
  69. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +1 -1
  70. data/lib/mx-platform-ruby/models/merchant_response.rb +1 -1
  71. data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
  72. data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
  73. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +1 -1
  74. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
  75. data/lib/mx-platform-ruby/models/option_response.rb +1 -1
  76. data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
  77. data/lib/mx-platform-ruby/models/statement_response.rb +1 -1
  78. data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
  79. data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
  80. data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
  81. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
  82. data/lib/mx-platform-ruby/models/tag_response.rb +1 -1
  83. data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
  84. data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
  85. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
  86. data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
  87. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
  88. data/lib/mx-platform-ruby/models/tagging_response.rb +1 -1
  89. data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
  90. data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
  91. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
  92. data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
  93. data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
  94. data/lib/mx-platform-ruby/models/transaction_response.rb +1 -1
  95. data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
  96. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
  97. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
  98. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +1 -1
  99. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
  100. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +1 -1
  101. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
  102. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
  103. data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
  104. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
  105. data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
  106. data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
  107. data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
  108. data/lib/mx-platform-ruby/models/user_response.rb +1 -1
  109. data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
  110. data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
  111. data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
  112. data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
  113. data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
  114. data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
  115. data/lib/mx-platform-ruby/models/widget_response.rb +1 -1
  116. data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
  117. data/lib/mx-platform-ruby/version.rb +2 -2
  118. data/lib/mx-platform-ruby.rb +1 -1
  119. data/mx-platform-ruby.gemspec +1 -1
  120. data/openapi/config.yml +1 -1
  121. data/openapi/templates/README.mustache +6 -3
  122. data/openapitools.json +1 -1
  123. data/spec/api/mx_platform_api_spec.rb +18 -1
  124. data/spec/api_client_spec.rb +1 -1
  125. data/spec/configuration_spec.rb +1 -1
  126. data/spec/models/account_number_response_spec.rb +1 -1
  127. data/spec/models/account_numbers_response_body_spec.rb +1 -1
  128. data/spec/models/account_owner_response_spec.rb +1 -1
  129. data/spec/models/account_owners_response_body_spec.rb +1 -1
  130. data/spec/models/account_response_body_spec.rb +1 -1
  131. data/spec/models/account_response_spec.rb +1 -1
  132. data/spec/models/account_update_request_body_spec.rb +1 -1
  133. data/spec/models/account_update_request_spec.rb +1 -1
  134. data/spec/models/accounts_response_body_spec.rb +1 -1
  135. data/spec/models/categories_response_body_spec.rb +1 -1
  136. data/spec/models/category_create_request_body_spec.rb +1 -1
  137. data/spec/models/category_create_request_spec.rb +1 -1
  138. data/spec/models/category_response_body_spec.rb +1 -1
  139. data/spec/models/category_response_spec.rb +1 -1
  140. data/spec/models/category_update_request_body_spec.rb +1 -1
  141. data/spec/models/category_update_request_spec.rb +1 -1
  142. data/spec/models/challenge_response_spec.rb +1 -1
  143. data/spec/models/challenges_response_body_spec.rb +1 -1
  144. data/spec/models/connect_widget_request_body_spec.rb +1 -1
  145. data/spec/models/connect_widget_request_spec.rb +1 -1
  146. data/spec/models/connect_widget_response_body_spec.rb +1 -1
  147. data/spec/models/connect_widget_response_spec.rb +1 -1
  148. data/spec/models/credential_request_spec.rb +1 -1
  149. data/spec/models/credential_response_spec.rb +1 -1
  150. data/spec/models/credentials_response_body_spec.rb +1 -1
  151. data/spec/models/enhance_transaction_response_spec.rb +1 -1
  152. data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
  153. data/spec/models/enhance_transactions_request_spec.rb +1 -1
  154. data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
  155. data/spec/models/holding_response_body_spec.rb +1 -1
  156. data/spec/models/holding_response_spec.rb +1 -1
  157. data/spec/models/holdings_response_body_spec.rb +1 -1
  158. data/spec/models/image_option_response_spec.rb +1 -1
  159. data/spec/models/institution_response_body_spec.rb +1 -1
  160. data/spec/models/institution_response_spec.rb +1 -1
  161. data/spec/models/institutions_response_body_spec.rb +1 -1
  162. data/spec/models/managed_account_create_request_body_spec.rb +1 -1
  163. data/spec/models/managed_account_create_request_spec.rb +1 -1
  164. data/spec/models/managed_account_update_request_body_spec.rb +1 -1
  165. data/spec/models/managed_account_update_request_spec.rb +1 -1
  166. data/spec/models/managed_member_create_request_body_spec.rb +1 -1
  167. data/spec/models/managed_member_create_request_spec.rb +1 -1
  168. data/spec/models/managed_member_update_request_body_spec.rb +1 -1
  169. data/spec/models/managed_member_update_request_spec.rb +1 -1
  170. data/spec/models/managed_transaction_create_request_body_spec.rb +1 -1
  171. data/spec/models/managed_transaction_create_request_spec.rb +1 -1
  172. data/spec/models/managed_transaction_update_request_body_spec.rb +1 -1
  173. data/spec/models/managed_transaction_update_request_spec.rb +1 -1
  174. data/spec/models/member_create_request_body_spec.rb +1 -1
  175. data/spec/models/member_create_request_spec.rb +1 -1
  176. data/spec/models/member_response_body_spec.rb +1 -1
  177. data/spec/models/member_response_spec.rb +1 -1
  178. data/spec/models/member_resume_request_body_spec.rb +1 -1
  179. data/spec/models/member_resume_request_spec.rb +1 -1
  180. data/spec/models/member_status_response_body_spec.rb +1 -1
  181. data/spec/models/member_status_response_spec.rb +1 -1
  182. data/spec/models/member_update_request_body_spec.rb +1 -1
  183. data/spec/models/member_update_request_spec.rb +1 -1
  184. data/spec/models/members_response_body_spec.rb +1 -1
  185. data/spec/models/merchant_location_response_body_spec.rb +1 -1
  186. data/spec/models/merchant_location_response_spec.rb +1 -1
  187. data/spec/models/merchant_response_body_spec.rb +1 -1
  188. data/spec/models/merchant_response_spec.rb +1 -1
  189. data/spec/models/merchants_response_body_spec.rb +1 -1
  190. data/spec/models/o_auth_window_response_body_spec.rb +1 -1
  191. data/spec/models/o_auth_window_response_spec.rb +1 -1
  192. data/spec/models/option_response_spec.rb +1 -1
  193. data/spec/models/pagination_response_spec.rb +1 -1
  194. data/spec/models/statement_response_body_spec.rb +1 -1
  195. data/spec/models/statement_response_spec.rb +1 -1
  196. data/spec/models/statements_response_body_spec.rb +1 -1
  197. data/spec/models/tag_create_request_body_spec.rb +1 -1
  198. data/spec/models/tag_create_request_spec.rb +1 -1
  199. data/spec/models/tag_response_body_spec.rb +1 -1
  200. data/spec/models/tag_response_spec.rb +1 -1
  201. data/spec/models/tag_update_request_body_spec.rb +1 -1
  202. data/spec/models/tag_update_request_spec.rb +1 -1
  203. data/spec/models/tagging_create_request_body_spec.rb +1 -1
  204. data/spec/models/tagging_create_request_spec.rb +1 -1
  205. data/spec/models/tagging_response_body_spec.rb +1 -1
  206. data/spec/models/tagging_response_spec.rb +1 -1
  207. data/spec/models/tagging_update_request_body_spec.rb +1 -1
  208. data/spec/models/tagging_update_request_spec.rb +1 -1
  209. data/spec/models/taggings_response_body_spec.rb +1 -1
  210. data/spec/models/tags_response_body_spec.rb +1 -1
  211. data/spec/models/transaction_response_body_spec.rb +1 -1
  212. data/spec/models/transaction_response_spec.rb +1 -1
  213. data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
  214. data/spec/models/transaction_rule_create_request_spec.rb +1 -1
  215. data/spec/models/transaction_rule_response_body_spec.rb +1 -1
  216. data/spec/models/transaction_rule_response_spec.rb +1 -1
  217. data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
  218. data/spec/models/transaction_rule_update_request_spec.rb +1 -1
  219. data/spec/models/transaction_rules_response_body_spec.rb +1 -1
  220. data/spec/models/transaction_update_request_body_spec.rb +1 -1
  221. data/spec/models/transaction_update_request_spec.rb +1 -1
  222. data/spec/models/transactions_response_body_spec.rb +1 -1
  223. data/spec/models/user_create_request_body_spec.rb +1 -1
  224. data/spec/models/user_create_request_spec.rb +1 -1
  225. data/spec/models/user_response_body_spec.rb +1 -1
  226. data/spec/models/user_response_spec.rb +1 -1
  227. data/spec/models/user_update_request_body_spec.rb +1 -1
  228. data/spec/models/user_update_request_spec.rb +1 -1
  229. data/spec/models/users_response_body_spec.rb +1 -1
  230. data/spec/models/widget_request_body_spec.rb +1 -1
  231. data/spec/models/widget_request_spec.rb +1 -1
  232. data/spec/models/widget_response_body_spec.rb +1 -1
  233. data/spec/models/widget_response_spec.rb +1 -1
  234. data/spec/spec_helper.rb +1 -1
  235. metadata +93 -93
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16e0adff8bcd878a3fd2407b982c380ffdd83e8e8417da6864bf795aced15c08
4
- data.tar.gz: 754f3ed620574a34e2078c41045af01fc9f3ab4b6de744e329df64370b648b64
3
+ metadata.gz: 0cda52249603c85180effee9ac2d345646f9c56518553fc4f8914ec66fc6b80a
4
+ data.tar.gz: 49f1c7736eda54e129873d803018d2e5dd8d876a017901dd12d8653bdd1aa9ca
5
5
  SHA512:
6
- metadata.gz: 47a40bf77a8e7cf1f32b8bc6d705f8c8381dfe2829f9cea3e5b1564bfd148efc879d0160d48741502217a4c2fb45dd05441ddd757d1872c0ddfe41c52761bd36
7
- data.tar.gz: 0ca34a4175587d93d13b41a4a317ac127eb19b783e6f35b64c7f91fe26b6171f7e0aed6b8fc1f73190ee47e093cf16c03848a1dc2c17b5218c95bb40987f2759
6
+ metadata.gz: 441cf1732491aa0531bfe78a8ec4a8c181f3bd1aea8dbd314bc521ebdd1ebcb2a831b875507ac255ead6e6134075d265b90b1ece578f31548d756a0a27b19ee9
7
+ data.tar.gz: 0b80b5fec98251cf4713f6d3a4ef910cea74e60dd23b00170935e9bd31ad9d910f6d9af8ba9c2c50b06ea34f8740618452a88fb6ecae4266a8c7754b382dd9f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (0.8.3)
4
+ mx-platform-ruby (0.9.0)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -54,12 +54,12 @@ GEM
54
54
  rspec-core (~> 3.10.0)
55
55
  rspec-expectations (~> 3.10.0)
56
56
  rspec-mocks (~> 3.10.0)
57
- rspec-core (3.10.1)
57
+ rspec-core (3.10.2)
58
58
  rspec-support (~> 3.10.0)
59
59
  rspec-expectations (3.10.2)
60
60
  diff-lcs (>= 1.2.0, < 2.0)
61
61
  rspec-support (~> 3.10.0)
62
- rspec-mocks (3.10.2)
62
+ rspec-mocks (3.10.3)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
64
  rspec-support (~> 3.10.0)
65
65
  rspec-support (3.10.3)
data/README.md CHANGED
@@ -47,7 +47,10 @@ MxPlatformRuby.configure do |config|
47
47
  config.server_index = 1
48
48
  end
49
49
 
50
- api_instance = MxPlatformRuby::MxPlatformApi.new
50
+ api_client = ::MxPlatformRuby::ApiClient.new
51
+ api_client.default_headers['Accept'] = 'application/vnd.mx.api.v1+json'
52
+ mx_platform_api = ::MxPlatformRuby::MxPlatformApi.new(api_client)
53
+
51
54
  user_create_request_body = MxPlatformRuby::UserCreateRequestBody.new(
52
55
  user: MxPlatformRuby::UserCreateRequest.new(
53
56
  metadata: "Creating a user!"
@@ -66,10 +69,10 @@ end
66
69
 
67
70
  This project was generated by the [OpenAPI Generator](https://openapi-generator.tech). To generate this library, verify you have the latest version of the `openapi-generator-cli` found [here.](https://github.com/OpenAPITools/openapi-generator#17---npm)
68
71
 
69
- Running the following command in this repo's directory will generate this library using the [MX Platform API OpenAPI spec](https://github.com/mxenabled/openapi/blob/master/openapi/mx_platform_api_beta.yml) with our [configuration and templates.](https://github.com/mxenabled/mx-platform-ruby/tree/master/openapi)
72
+ Running the following command in this repo's directory will generate this library using the [MX Platform API OpenAPI spec](https://github.com/mxenabled/openapi/blob/master/openapi/mx_platform_api.yml) with our [configuration and templates.](https://github.com/mxenabled/mx-platform-ruby/tree/master/openapi)
70
73
  ```shell
71
74
  openapi-generator-cli generate \
72
- -i https://raw.githubusercontent.com/mxenabled/openapi/master/openapi/mx_platform_api_beta.yml \
75
+ -i https://raw.githubusercontent.com/mxenabled/openapi/master/openapi/mx_platform_api.yml \
73
76
  -g ruby \
74
77
  -c ./openapi/config.yml \
75
78
  -t ./openapi/templates
@@ -37,6 +37,7 @@ All URIs are relative to *https://api.mx.com*
37
37
  | [**list_default_categories_by_user**](MxPlatformApi.md#list_default_categories_by_user) | **GET** /users/{user_guid}/categories/default | List default categories by user |
38
38
  | [**list_favorite_institutions**](MxPlatformApi.md#list_favorite_institutions) | **GET** /institutions/favorites | List favorite institutions |
39
39
  | [**list_holdings**](MxPlatformApi.md#list_holdings) | **GET** /users/{user_guid}/holdings | List holdings |
40
+ | [**list_holdings_by_account**](MxPlatformApi.md#list_holdings_by_account) | **GET** /users/{user_guid}/accounts/{account_guid}/holdings | List holdings by account |
40
41
  | [**list_holdings_by_member**](MxPlatformApi.md#list_holdings_by_member) | **GET** /users/{user_guid}/members/{member_guid}/holdings | List holdings by member |
41
42
  | [**list_institution_credentials**](MxPlatformApi.md#list_institution_credentials) | **GET** /institutions/{institution_code}/credentials | List institution credentials |
42
43
  | [**list_institutions**](MxPlatformApi.md#list_institutions) | **GET** /institutions | List institutions |
@@ -2503,6 +2504,88 @@ end
2503
2504
  - **Accept**: application/vnd.mx.api.v1+json
2504
2505
 
2505
2506
 
2507
+ ## list_holdings_by_account
2508
+
2509
+ > <HoldingsResponseBody> list_holdings_by_account(account_guid, user_guid, opts)
2510
+
2511
+ List holdings by account
2512
+
2513
+ This endpoint returns all holdings associated with the specified `account`.
2514
+
2515
+ ### Examples
2516
+
2517
+ ```ruby
2518
+ require 'time'
2519
+ require 'mx-platform-ruby'
2520
+ # setup authorization
2521
+ MxPlatformRuby.configure do |config|
2522
+ # Configure HTTP basic authorization: basicAuth
2523
+ config.username = 'YOUR USERNAME'
2524
+ config.password = 'YOUR PASSWORD'
2525
+ end
2526
+
2527
+ api_instance = MxPlatformRuby::MxPlatformApi.new
2528
+ account_guid = 'ACT-7c6f361b-e582-15b6-60c0-358f12466b4b' # String | The unique id for the `account`.
2529
+ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for the `user`.
2530
+ opts = {
2531
+ from_date: '2015-09-20', # String | Filter holdings from this date.
2532
+ page: 1, # Integer | Specify current page.
2533
+ records_per_page: 10, # Integer | Specify records per page.
2534
+ to_date: '2019-10-20' # String | Filter holdings to this date.
2535
+ }
2536
+
2537
+ begin
2538
+ # List holdings by account
2539
+ result = api_instance.list_holdings_by_account(account_guid, user_guid, opts)
2540
+ p result
2541
+ rescue MxPlatformRuby::ApiError => e
2542
+ puts "Error when calling MxPlatformApi->list_holdings_by_account: #{e}"
2543
+ end
2544
+ ```
2545
+
2546
+ #### Using the list_holdings_by_account_with_http_info variant
2547
+
2548
+ This returns an Array which contains the response data, status code and headers.
2549
+
2550
+ > <Array(<HoldingsResponseBody>, Integer, Hash)> list_holdings_by_account_with_http_info(account_guid, user_guid, opts)
2551
+
2552
+ ```ruby
2553
+ begin
2554
+ # List holdings by account
2555
+ data, status_code, headers = api_instance.list_holdings_by_account_with_http_info(account_guid, user_guid, opts)
2556
+ p status_code # => 2xx
2557
+ p headers # => { ... }
2558
+ p data # => <HoldingsResponseBody>
2559
+ rescue MxPlatformRuby::ApiError => e
2560
+ puts "Error when calling MxPlatformApi->list_holdings_by_account_with_http_info: #{e}"
2561
+ end
2562
+ ```
2563
+
2564
+ ### Parameters
2565
+
2566
+ | Name | Type | Description | Notes |
2567
+ | ---- | ---- | ----------- | ----- |
2568
+ | **account_guid** | **String** | The unique id for the &#x60;account&#x60;. | |
2569
+ | **user_guid** | **String** | The unique id for the &#x60;user&#x60;. | |
2570
+ | **from_date** | **String** | Filter holdings from this date. | [optional] |
2571
+ | **page** | **Integer** | Specify current page. | [optional] |
2572
+ | **records_per_page** | **Integer** | Specify records per page. | [optional] |
2573
+ | **to_date** | **String** | Filter holdings to this date. | [optional] |
2574
+
2575
+ ### Return type
2576
+
2577
+ [**HoldingsResponseBody**](HoldingsResponseBody.md)
2578
+
2579
+ ### Authorization
2580
+
2581
+ [basicAuth](../README.md#basicAuth)
2582
+
2583
+ ### HTTP request headers
2584
+
2585
+ - **Content-Type**: Not defined
2586
+ - **Accept**: application/vnd.mx.api.v1+json
2587
+
2588
+
2506
2589
  ## list_holdings_by_member
2507
2590
 
2508
2591
  > <HoldingsResponseBody> list_holdings_by_member(member_guid, user_guid, opts)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -2352,6 +2352,87 @@ module MxPlatformRuby
2352
2352
  return data, status_code, headers
2353
2353
  end
2354
2354
 
2355
+ # List holdings by account
2356
+ # This endpoint returns all holdings associated with the specified `account`.
2357
+ # @param account_guid [String] The unique id for the &#x60;account&#x60;.
2358
+ # @param user_guid [String] The unique id for the &#x60;user&#x60;.
2359
+ # @param [Hash] opts the optional parameters
2360
+ # @option opts [String] :from_date Filter holdings from this date.
2361
+ # @option opts [Integer] :page Specify current page.
2362
+ # @option opts [Integer] :records_per_page Specify records per page.
2363
+ # @option opts [String] :to_date Filter holdings to this date.
2364
+ # @return [HoldingsResponseBody]
2365
+ def list_holdings_by_account(account_guid, user_guid, opts = {})
2366
+ data, _status_code, _headers = list_holdings_by_account_with_http_info(account_guid, user_guid, opts)
2367
+ data
2368
+ end
2369
+
2370
+ # List holdings by account
2371
+ # This endpoint returns all holdings associated with the specified &#x60;account&#x60;.
2372
+ # @param account_guid [String] The unique id for the &#x60;account&#x60;.
2373
+ # @param user_guid [String] The unique id for the &#x60;user&#x60;.
2374
+ # @param [Hash] opts the optional parameters
2375
+ # @option opts [String] :from_date Filter holdings from this date.
2376
+ # @option opts [Integer] :page Specify current page.
2377
+ # @option opts [Integer] :records_per_page Specify records per page.
2378
+ # @option opts [String] :to_date Filter holdings to this date.
2379
+ # @return [Array<(HoldingsResponseBody, Integer, Hash)>] HoldingsResponseBody data, response status code and response headers
2380
+ def list_holdings_by_account_with_http_info(account_guid, user_guid, opts = {})
2381
+ if @api_client.config.debugging
2382
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_holdings_by_account ...'
2383
+ end
2384
+ # verify the required parameter 'account_guid' is set
2385
+ if @api_client.config.client_side_validation && account_guid.nil?
2386
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.list_holdings_by_account"
2387
+ end
2388
+ # verify the required parameter 'user_guid' is set
2389
+ if @api_client.config.client_side_validation && user_guid.nil?
2390
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_holdings_by_account"
2391
+ end
2392
+ # resource path
2393
+ local_var_path = '/users/{user_guid}/accounts/{account_guid}/holdings'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
2394
+
2395
+ # query parameters
2396
+ query_params = opts[:query_params] || {}
2397
+ query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
2398
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2399
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2400
+ query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
2401
+
2402
+ # header parameters
2403
+ header_params = opts[:header_params] || {}
2404
+ # HTTP header 'Accept' (if needed)
2405
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
2406
+
2407
+ # form parameters
2408
+ form_params = opts[:form_params] || {}
2409
+
2410
+ # http body (model)
2411
+ post_body = opts[:debug_body]
2412
+
2413
+ # return_type
2414
+ return_type = opts[:debug_return_type] || 'HoldingsResponseBody'
2415
+
2416
+ # auth_names
2417
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
2418
+
2419
+ new_options = opts.merge(
2420
+ :operation => :"MxPlatformApi.list_holdings_by_account",
2421
+ :header_params => header_params,
2422
+ :query_params => query_params,
2423
+ :form_params => form_params,
2424
+ :body => post_body,
2425
+ :auth_names => auth_names,
2426
+ :return_type => return_type
2427
+ )
2428
+
2429
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2430
+ if @api_client.config.debugging
2431
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_holdings_by_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2432
+ end
2433
+ return data, status_code, headers
2434
+ end
2435
+
2355
2436
  # List holdings by member
2356
2437
  # This endpoint returns all holdings associated with the specified `member` across all accounts.
2357
2438
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12