mx-platform-ruby 0.4.1 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/LICENSE +1 -1
  4. data/README.md +4 -6
  5. data/docs/AccountResponse.md +15 -1
  6. data/docs/ManagedAccountCreateRequest.md +78 -0
  7. data/docs/ManagedAccountCreateRequestBody.md +18 -0
  8. data/docs/ManagedAccountUpdateRequest.md +78 -0
  9. data/docs/ManagedAccountUpdateRequestBody.md +18 -0
  10. data/docs/ManagedMemberCreateRequest.md +24 -0
  11. data/docs/ManagedMemberCreateRequestBody.md +18 -0
  12. data/docs/ManagedMemberUpdateRequest.md +22 -0
  13. data/docs/ManagedMemberUpdateRequestBody.md +18 -0
  14. data/docs/ManagedTransactionCreateRequest.md +56 -0
  15. data/docs/ManagedTransactionCreateRequestBody.md +18 -0
  16. data/docs/ManagedTransactionUpdateRequest.md +56 -0
  17. data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
  18. data/docs/MemberResponse.md +5 -1
  19. data/docs/MerchantLocationResponse.md +40 -0
  20. data/docs/MerchantLocationResponseBody.md +18 -0
  21. data/docs/MxPlatformApi.md +1415 -117
  22. data/docs/TransactionResponse.md +11 -1
  23. data/lib/mx-platform-ruby/api/mx_platform_api.rb +1393 -115
  24. data/lib/mx-platform-ruby/api_client.rb +1 -1
  25. data/lib/mx-platform-ruby/api_error.rb +1 -1
  26. data/lib/mx-platform-ruby/configuration.rb +1 -1
  27. data/lib/mx-platform-ruby/models/account_number_response.rb +1 -1
  28. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
  29. data/lib/mx-platform-ruby/models/account_owner_response.rb +1 -1
  30. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
  31. data/lib/mx-platform-ruby/models/account_response.rb +68 -5
  32. data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
  33. data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
  34. data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
  35. data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
  36. data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
  37. data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
  38. data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
  39. data/lib/mx-platform-ruby/models/category_response.rb +1 -1
  40. data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
  41. data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
  42. data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
  43. data/lib/mx-platform-ruby/models/challenge_response.rb +1 -1
  44. data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
  45. data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
  46. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
  47. data/lib/mx-platform-ruby/models/connect_widget_response.rb +1 -1
  48. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
  49. data/lib/mx-platform-ruby/models/credential_request.rb +1 -1
  50. data/lib/mx-platform-ruby/models/credential_response.rb +1 -1
  51. data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
  52. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +1 -1
  53. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
  54. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
  55. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
  56. data/lib/mx-platform-ruby/models/holding_response.rb +1 -1
  57. data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
  58. data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
  59. data/lib/mx-platform-ruby/models/image_option_response.rb +1 -1
  60. data/lib/mx-platform-ruby/models/institution_response.rb +1 -1
  61. data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
  62. data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
  63. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
  64. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
  65. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
  66. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
  67. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
  68. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
  69. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
  70. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
  71. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
  72. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
  73. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
  74. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
  75. data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
  76. data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
  77. data/lib/mx-platform-ruby/models/member_response.rb +23 -5
  78. data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
  79. data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
  80. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
  81. data/lib/mx-platform-ruby/models/member_status_response.rb +1 -1
  82. data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
  83. data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
  84. data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
  85. data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
  86. data/lib/mx-platform-ruby/models/merchant_location_response.rb +317 -0
  87. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
  88. data/lib/mx-platform-ruby/models/merchant_response.rb +1 -1
  89. data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
  90. data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
  91. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +1 -1
  92. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
  93. data/lib/mx-platform-ruby/models/option_response.rb +1 -1
  94. data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
  95. data/lib/mx-platform-ruby/models/statement_response.rb +1 -1
  96. data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
  97. data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
  98. data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
  99. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
  100. data/lib/mx-platform-ruby/models/tag_response.rb +1 -1
  101. data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
  102. data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
  103. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
  104. data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
  105. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
  106. data/lib/mx-platform-ruby/models/tagging_response.rb +1 -1
  107. data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
  108. data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
  109. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
  110. data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
  111. data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
  112. data/lib/mx-platform-ruby/models/transaction_response.rb +50 -5
  113. data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
  114. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
  115. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
  116. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +1 -1
  117. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
  118. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +1 -1
  119. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
  120. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
  121. data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
  122. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
  123. data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
  124. data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
  125. data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
  126. data/lib/mx-platform-ruby/models/user_response.rb +1 -1
  127. data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
  128. data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
  129. data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
  130. data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
  131. data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
  132. data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
  133. data/lib/mx-platform-ruby/models/widget_response.rb +1 -1
  134. data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
  135. data/lib/mx-platform-ruby/version.rb +2 -2
  136. data/lib/mx-platform-ruby.rb +15 -1
  137. data/mx-platform-ruby.gemspec +1 -1
  138. data/openapi/config.yml +1 -1
  139. data/openapi/templates/README.mustache +4 -6
  140. data/spec/api/mx_platform_api_spec.rb +246 -1
  141. data/spec/api_client_spec.rb +1 -1
  142. data/spec/configuration_spec.rb +1 -1
  143. data/spec/models/account_number_response_spec.rb +1 -1
  144. data/spec/models/account_numbers_response_body_spec.rb +1 -1
  145. data/spec/models/account_owner_response_spec.rb +1 -1
  146. data/spec/models/account_owners_response_body_spec.rb +1 -1
  147. data/spec/models/account_response_body_spec.rb +1 -1
  148. data/spec/models/account_response_spec.rb +43 -1
  149. data/spec/models/account_update_request_body_spec.rb +1 -1
  150. data/spec/models/account_update_request_spec.rb +1 -1
  151. data/spec/models/accounts_response_body_spec.rb +1 -1
  152. data/spec/models/categories_response_body_spec.rb +1 -1
  153. data/spec/models/category_create_request_body_spec.rb +1 -1
  154. data/spec/models/category_create_request_spec.rb +1 -1
  155. data/spec/models/category_response_body_spec.rb +1 -1
  156. data/spec/models/category_response_spec.rb +1 -1
  157. data/spec/models/category_update_request_body_spec.rb +1 -1
  158. data/spec/models/category_update_request_spec.rb +1 -1
  159. data/spec/models/challenge_response_spec.rb +1 -1
  160. data/spec/models/challenges_response_body_spec.rb +1 -1
  161. data/spec/models/connect_widget_request_body_spec.rb +1 -1
  162. data/spec/models/connect_widget_request_spec.rb +1 -1
  163. data/spec/models/connect_widget_response_body_spec.rb +1 -1
  164. data/spec/models/connect_widget_response_spec.rb +1 -1
  165. data/spec/models/credential_request_spec.rb +1 -1
  166. data/spec/models/credential_response_spec.rb +1 -1
  167. data/spec/models/credentials_response_body_spec.rb +1 -1
  168. data/spec/models/enhance_transaction_response_spec.rb +1 -1
  169. data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
  170. data/spec/models/enhance_transactions_request_spec.rb +1 -1
  171. data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
  172. data/spec/models/holding_response_body_spec.rb +1 -1
  173. data/spec/models/holding_response_spec.rb +1 -1
  174. data/spec/models/holdings_response_body_spec.rb +1 -1
  175. data/spec/models/image_option_response_spec.rb +1 -1
  176. data/spec/models/institution_response_body_spec.rb +1 -1
  177. data/spec/models/institution_response_spec.rb +1 -1
  178. data/spec/models/institutions_response_body_spec.rb +1 -1
  179. data/spec/models/managed_account_create_request_body_spec.rb +34 -0
  180. data/spec/models/managed_account_create_request_spec.rb +214 -0
  181. data/spec/models/managed_account_update_request_body_spec.rb +34 -0
  182. data/spec/models/managed_account_update_request_spec.rb +214 -0
  183. data/spec/models/managed_member_create_request_body_spec.rb +34 -0
  184. data/spec/models/managed_member_create_request_spec.rb +52 -0
  185. data/spec/models/managed_member_update_request_body_spec.rb +34 -0
  186. data/spec/models/managed_member_update_request_spec.rb +46 -0
  187. data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
  188. data/spec/models/managed_transaction_create_request_spec.rb +148 -0
  189. data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
  190. data/spec/models/managed_transaction_update_request_spec.rb +148 -0
  191. data/spec/models/member_create_request_body_spec.rb +1 -1
  192. data/spec/models/member_create_request_spec.rb +1 -1
  193. data/spec/models/member_response_body_spec.rb +1 -1
  194. data/spec/models/member_response_spec.rb +13 -1
  195. data/spec/models/member_resume_request_body_spec.rb +1 -1
  196. data/spec/models/member_resume_request_spec.rb +1 -1
  197. data/spec/models/member_status_response_body_spec.rb +1 -1
  198. data/spec/models/member_status_response_spec.rb +1 -1
  199. data/spec/models/member_update_request_body_spec.rb +1 -1
  200. data/spec/models/member_update_request_spec.rb +1 -1
  201. data/spec/models/members_response_body_spec.rb +1 -1
  202. data/spec/models/merchant_location_response_body_spec.rb +34 -0
  203. data/spec/models/merchant_location_response_spec.rb +100 -0
  204. data/spec/models/merchant_response_body_spec.rb +1 -1
  205. data/spec/models/merchant_response_spec.rb +1 -1
  206. data/spec/models/merchants_response_body_spec.rb +1 -1
  207. data/spec/models/o_auth_window_response_body_spec.rb +1 -1
  208. data/spec/models/o_auth_window_response_spec.rb +1 -1
  209. data/spec/models/option_response_spec.rb +1 -1
  210. data/spec/models/pagination_response_spec.rb +1 -1
  211. data/spec/models/statement_response_body_spec.rb +1 -1
  212. data/spec/models/statement_response_spec.rb +1 -1
  213. data/spec/models/statements_response_body_spec.rb +1 -1
  214. data/spec/models/tag_create_request_body_spec.rb +1 -1
  215. data/spec/models/tag_create_request_spec.rb +1 -1
  216. data/spec/models/tag_response_body_spec.rb +1 -1
  217. data/spec/models/tag_response_spec.rb +1 -1
  218. data/spec/models/tag_update_request_body_spec.rb +1 -1
  219. data/spec/models/tag_update_request_spec.rb +1 -1
  220. data/spec/models/tagging_create_request_body_spec.rb +1 -1
  221. data/spec/models/tagging_create_request_spec.rb +1 -1
  222. data/spec/models/tagging_response_body_spec.rb +1 -1
  223. data/spec/models/tagging_response_spec.rb +1 -1
  224. data/spec/models/tagging_update_request_body_spec.rb +1 -1
  225. data/spec/models/tagging_update_request_spec.rb +1 -1
  226. data/spec/models/taggings_response_body_spec.rb +1 -1
  227. data/spec/models/tags_response_body_spec.rb +1 -1
  228. data/spec/models/transaction_response_body_spec.rb +1 -1
  229. data/spec/models/transaction_response_spec.rb +31 -1
  230. data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
  231. data/spec/models/transaction_rule_create_request_spec.rb +1 -1
  232. data/spec/models/transaction_rule_response_body_spec.rb +1 -1
  233. data/spec/models/transaction_rule_response_spec.rb +1 -1
  234. data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
  235. data/spec/models/transaction_rule_update_request_spec.rb +1 -1
  236. data/spec/models/transaction_rules_response_body_spec.rb +1 -1
  237. data/spec/models/transaction_update_request_body_spec.rb +1 -1
  238. data/spec/models/transaction_update_request_spec.rb +1 -1
  239. data/spec/models/transactions_response_body_spec.rb +1 -1
  240. data/spec/models/user_create_request_body_spec.rb +1 -1
  241. data/spec/models/user_create_request_spec.rb +1 -1
  242. data/spec/models/user_response_body_spec.rb +1 -1
  243. data/spec/models/user_response_spec.rb +1 -1
  244. data/spec/models/user_update_request_body_spec.rb +1 -1
  245. data/spec/models/user_update_request_spec.rb +1 -1
  246. data/spec/models/users_response_body_spec.rb +1 -1
  247. data/spec/models/widget_request_body_spec.rb +1 -1
  248. data/spec/models/widget_request_spec.rb +1 -1
  249. data/spec/models/widget_response_body_spec.rb +1 -1
  250. data/spec/models/widget_response_spec.rb +1 -1
  251. data/spec/spec_helper.rb +1 -1
  252. metadata +136 -80
@@ -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.2.0
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
@@ -228,6 +228,231 @@ module MxPlatformRuby
228
228
  return data, status_code, headers
229
229
  end
230
230
 
231
+ # Create managed account
232
+ # Use this endpoint to create a partner-managed account.
233
+ # @param user_guid [String] The unique id for a `user`.
234
+ # @param member_guid [String] The unique id for a `member`.
235
+ # @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
236
+ # @param [Hash] opts the optional parameters
237
+ # @return [AccountResponseBody]
238
+ def create_managed_account(user_guid, member_guid, managed_account_create_request_body, opts = {})
239
+ data, _status_code, _headers = create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts)
240
+ data
241
+ end
242
+
243
+ # Create managed account
244
+ # Use this endpoint to create a partner-managed account.
245
+ # @param user_guid [String] The unique id for a `user`.
246
+ # @param member_guid [String] The unique id for a `member`.
247
+ # @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
250
+ def create_managed_account_with_http_info(user_guid, member_guid, managed_account_create_request_body, opts = {})
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_account ...'
253
+ end
254
+ # verify the required parameter 'user_guid' is set
255
+ if @api_client.config.client_side_validation && user_guid.nil?
256
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_account"
257
+ end
258
+ # verify the required parameter 'member_guid' is set
259
+ if @api_client.config.client_side_validation && member_guid.nil?
260
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_account"
261
+ end
262
+ # verify the required parameter 'managed_account_create_request_body' is set
263
+ if @api_client.config.client_side_validation && managed_account_create_request_body.nil?
264
+ fail ArgumentError, "Missing the required parameter 'managed_account_create_request_body' when calling MxPlatformApi.create_managed_account"
265
+ end
266
+ # resource path
267
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
268
+
269
+ # query parameters
270
+ query_params = opts[:query_params] || {}
271
+
272
+ # header parameters
273
+ header_params = opts[:header_params] || {}
274
+ # HTTP header 'Accept' (if needed)
275
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
276
+ # HTTP header 'Content-Type'
277
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
278
+
279
+ # form parameters
280
+ form_params = opts[:form_params] || {}
281
+
282
+ # http body (model)
283
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_create_request_body)
284
+
285
+ # return_type
286
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
287
+
288
+ # auth_names
289
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
290
+
291
+ new_options = opts.merge(
292
+ :operation => :"MxPlatformApi.create_managed_account",
293
+ :header_params => header_params,
294
+ :query_params => query_params,
295
+ :form_params => form_params,
296
+ :body => post_body,
297
+ :auth_names => auth_names,
298
+ :return_type => return_type
299
+ )
300
+
301
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
302
+ if @api_client.config.debugging
303
+ @api_client.config.logger.debug "API called: MxPlatformApi#create_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
304
+ end
305
+ return data, status_code, headers
306
+ end
307
+
308
+ # Create managed member
309
+ # Use this endpoint to create a new partner-managed `member`.
310
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
311
+ # @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [MemberResponseBody]
314
+ def create_managed_member(user_guid, managed_member_create_request_body, opts = {})
315
+ data, _status_code, _headers = create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts)
316
+ data
317
+ end
318
+
319
+ # Create managed member
320
+ # Use this endpoint to create a new partner-managed &#x60;member&#x60;.
321
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
322
+ # @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
323
+ # @param [Hash] opts the optional parameters
324
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
325
+ def create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts = {})
326
+ if @api_client.config.debugging
327
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_member ...'
328
+ end
329
+ # verify the required parameter 'user_guid' is set
330
+ if @api_client.config.client_side_validation && user_guid.nil?
331
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_member"
332
+ end
333
+ # verify the required parameter 'managed_member_create_request_body' is set
334
+ if @api_client.config.client_side_validation && managed_member_create_request_body.nil?
335
+ fail ArgumentError, "Missing the required parameter 'managed_member_create_request_body' when calling MxPlatformApi.create_managed_member"
336
+ end
337
+ # resource path
338
+ local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
339
+
340
+ # query parameters
341
+ query_params = opts[:query_params] || {}
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
347
+ # HTTP header 'Content-Type'
348
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
349
+
350
+ # form parameters
351
+ form_params = opts[:form_params] || {}
352
+
353
+ # http body (model)
354
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_create_request_body)
355
+
356
+ # return_type
357
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
358
+
359
+ # auth_names
360
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
361
+
362
+ new_options = opts.merge(
363
+ :operation => :"MxPlatformApi.create_managed_member",
364
+ :header_params => header_params,
365
+ :query_params => query_params,
366
+ :form_params => form_params,
367
+ :body => post_body,
368
+ :auth_names => auth_names,
369
+ :return_type => return_type
370
+ )
371
+
372
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug "API called: MxPlatformApi#create_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
375
+ end
376
+ return data, status_code, headers
377
+ end
378
+
379
+ # Create managed transaction
380
+ # Use this endpoint to create a new partner-managed `transaction`.
381
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
382
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
383
+ # @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [TransactionResponseBody]
386
+ def create_managed_transaction(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
387
+ data, _status_code, _headers = create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts)
388
+ data
389
+ end
390
+
391
+ # Create managed transaction
392
+ # Use this endpoint to create a new partner-managed &#x60;transaction&#x60;.
393
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
394
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
395
+ # @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
396
+ # @param [Hash] opts the optional parameters
397
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
398
+ def create_managed_transaction_with_http_info(user_guid, member_guid, managed_transaction_create_request_body, opts = {})
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.create_managed_transaction ...'
401
+ end
402
+ # verify the required parameter 'user_guid' is set
403
+ if @api_client.config.client_side_validation && user_guid.nil?
404
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_managed_transaction"
405
+ end
406
+ # verify the required parameter 'member_guid' is set
407
+ if @api_client.config.client_side_validation && member_guid.nil?
408
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.create_managed_transaction"
409
+ end
410
+ # verify the required parameter 'managed_transaction_create_request_body' is set
411
+ if @api_client.config.client_side_validation && managed_transaction_create_request_body.nil?
412
+ fail ArgumentError, "Missing the required parameter 'managed_transaction_create_request_body' when calling MxPlatformApi.create_managed_transaction"
413
+ end
414
+ # resource path
415
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
416
+
417
+ # query parameters
418
+ query_params = opts[:query_params] || {}
419
+
420
+ # header parameters
421
+ header_params = opts[:header_params] || {}
422
+ # HTTP header 'Accept' (if needed)
423
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
424
+ # HTTP header 'Content-Type'
425
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
426
+
427
+ # form parameters
428
+ form_params = opts[:form_params] || {}
429
+
430
+ # http body (model)
431
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_create_request_body)
432
+
433
+ # return_type
434
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
435
+
436
+ # auth_names
437
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
438
+
439
+ new_options = opts.merge(
440
+ :operation => :"MxPlatformApi.create_managed_transaction",
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names,
446
+ :return_type => return_type
447
+ )
448
+
449
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug "API called: MxPlatformApi#create_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
+ end
453
+ return data, status_code, headers
454
+ end
455
+
231
456
  # Create member
232
457
  # This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the `/institutions/{institution_code}/credentials` endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
233
458
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
@@ -646,37 +871,43 @@ module MxPlatformRuby
646
871
  return data, status_code, headers
647
872
  end
648
873
 
649
- # Delete member
650
- # Accessing this endpoint will permanently delete a member.
874
+ # Delete managed account
875
+ # Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of `204 No Content`.
651
876
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
652
877
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
878
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
653
879
  # @param [Hash] opts the optional parameters
654
880
  # @return [nil]
655
- def delete_member(member_guid, user_guid, opts = {})
656
- delete_member_with_http_info(member_guid, user_guid, opts)
881
+ def delete_managed_account(member_guid, user_guid, account_guid, opts = {})
882
+ delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
657
883
  nil
658
884
  end
659
885
 
660
- # Delete member
661
- # Accessing this endpoint will permanently delete a member.
886
+ # Delete managed account
887
+ # Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of &#x60;204 No Content&#x60;.
662
888
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
663
889
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
890
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
664
891
  # @param [Hash] opts the optional parameters
665
892
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
666
- def delete_member_with_http_info(member_guid, user_guid, opts = {})
893
+ def delete_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
667
894
  if @api_client.config.debugging
668
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_member ...'
895
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_account ...'
669
896
  end
670
897
  # verify the required parameter 'member_guid' is set
671
898
  if @api_client.config.client_side_validation && member_guid.nil?
672
- fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_member"
899
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_account"
673
900
  end
674
901
  # verify the required parameter 'user_guid' is set
675
902
  if @api_client.config.client_side_validation && user_guid.nil?
676
- fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_member"
903
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_account"
904
+ end
905
+ # verify the required parameter 'account_guid' is set
906
+ if @api_client.config.client_side_validation && account_guid.nil?
907
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.delete_managed_account"
677
908
  end
678
909
  # resource path
679
- local_var_path = '/users/{user_guid}/members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
910
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
680
911
 
681
912
  # query parameters
682
913
  query_params = opts[:query_params] || {}
@@ -699,7 +930,7 @@ module MxPlatformRuby
699
930
  auth_names = opts[:debug_auth_names] || ['basicAuth']
700
931
 
701
932
  new_options = opts.merge(
702
- :operation => :"MxPlatformApi.delete_member",
933
+ :operation => :"MxPlatformApi.delete_managed_account",
703
934
  :header_params => header_params,
704
935
  :query_params => query_params,
705
936
  :form_params => form_params,
@@ -710,42 +941,42 @@ module MxPlatformRuby
710
941
 
711
942
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
712
943
  if @api_client.config.debugging
713
- @api_client.config.logger.debug "API called: MxPlatformApi#delete_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
944
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
714
945
  end
715
946
  return data, status_code, headers
716
947
  end
717
948
 
718
- # Delete tag
719
- # Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of `204 No Content`.
720
- # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
949
+ # Delete managed member
950
+ # Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
951
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
721
952
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
722
953
  # @param [Hash] opts the optional parameters
723
954
  # @return [nil]
724
- def delete_tag(tag_guid, user_guid, opts = {})
725
- delete_tag_with_http_info(tag_guid, user_guid, opts)
955
+ def delete_managed_member(member_guid, user_guid, opts = {})
956
+ delete_managed_member_with_http_info(member_guid, user_guid, opts)
726
957
  nil
727
958
  end
728
959
 
729
- # Delete tag
730
- # Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of &#x60;204 No Content&#x60;.
731
- # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
960
+ # Delete managed member
961
+ # Use this endpoint to delete the specified partner-managed &#x60;member&#x60;. The endpoint will respond with a status of &#x60;204 No Content&#x60; without a resource.
962
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
732
963
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
733
964
  # @param [Hash] opts the optional parameters
734
965
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
735
- def delete_tag_with_http_info(tag_guid, user_guid, opts = {})
966
+ def delete_managed_member_with_http_info(member_guid, user_guid, opts = {})
736
967
  if @api_client.config.debugging
737
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tag ...'
968
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_member ...'
738
969
  end
739
- # verify the required parameter 'tag_guid' is set
740
- if @api_client.config.client_side_validation && tag_guid.nil?
741
- fail ArgumentError, "Missing the required parameter 'tag_guid' when calling MxPlatformApi.delete_tag"
970
+ # verify the required parameter 'member_guid' is set
971
+ if @api_client.config.client_side_validation && member_guid.nil?
972
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_member"
742
973
  end
743
974
  # verify the required parameter 'user_guid' is set
744
975
  if @api_client.config.client_side_validation && user_guid.nil?
745
- fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tag"
976
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_member"
746
977
  end
747
978
  # resource path
748
- local_var_path = '/users/{user_guid}/tags/{tag_guid}'.sub('{' + 'tag_guid' + '}', CGI.escape(tag_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
979
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
749
980
 
750
981
  # query parameters
751
982
  query_params = opts[:query_params] || {}
@@ -768,7 +999,7 @@ module MxPlatformRuby
768
999
  auth_names = opts[:debug_auth_names] || ['basicAuth']
769
1000
 
770
1001
  new_options = opts.merge(
771
- :operation => :"MxPlatformApi.delete_tag",
1002
+ :operation => :"MxPlatformApi.delete_managed_member",
772
1003
  :header_params => header_params,
773
1004
  :query_params => query_params,
774
1005
  :form_params => form_params,
@@ -779,42 +1010,48 @@ module MxPlatformRuby
779
1010
 
780
1011
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
781
1012
  if @api_client.config.debugging
782
- @api_client.config.logger.debug "API called: MxPlatformApi#delete_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1013
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
783
1014
  end
784
1015
  return data, status_code, headers
785
1016
  end
786
1017
 
787
- # Delete tagging
788
- # Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
789
- # @param tagging_guid [String] The unique id for a &#x60;tagging&#x60;.
1018
+ # Delete managed transaction
1019
+ # Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
1020
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
790
1021
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1022
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
791
1023
  # @param [Hash] opts the optional parameters
792
1024
  # @return [nil]
793
- def delete_tagging(tagging_guid, user_guid, opts = {})
794
- delete_tagging_with_http_info(tagging_guid, user_guid, opts)
1025
+ def delete_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
1026
+ delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
795
1027
  nil
796
1028
  end
797
1029
 
798
- # Delete tagging
799
- # Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
800
- # @param tagging_guid [String] The unique id for a &#x60;tagging&#x60;.
1030
+ # Delete managed transaction
1031
+ # Use this endpoint to delete the specified partner-managed &#x60;transaction&#x60;. The endpoint will respond with a status of &#x60;204 No Content&#x60; without a resource.
1032
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
801
1033
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1034
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
802
1035
  # @param [Hash] opts the optional parameters
803
1036
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
804
- def delete_tagging_with_http_info(tagging_guid, user_guid, opts = {})
1037
+ def delete_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
805
1038
  if @api_client.config.debugging
806
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tagging ...'
1039
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_managed_transaction ...'
807
1040
  end
808
- # verify the required parameter 'tagging_guid' is set
809
- if @api_client.config.client_side_validation && tagging_guid.nil?
810
- fail ArgumentError, "Missing the required parameter 'tagging_guid' when calling MxPlatformApi.delete_tagging"
1041
+ # verify the required parameter 'member_guid' is set
1042
+ if @api_client.config.client_side_validation && member_guid.nil?
1043
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_managed_transaction"
811
1044
  end
812
1045
  # verify the required parameter 'user_guid' is set
813
1046
  if @api_client.config.client_side_validation && user_guid.nil?
814
- fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tagging"
1047
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_managed_transaction"
1048
+ end
1049
+ # verify the required parameter 'transaction_guid' is set
1050
+ if @api_client.config.client_side_validation && transaction_guid.nil?
1051
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.delete_managed_transaction"
815
1052
  end
816
1053
  # resource path
817
- local_var_path = '/users/{user_guid}/taggings/{tagging_guid}'.sub('{' + 'tagging_guid' + '}', CGI.escape(tagging_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1054
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
818
1055
 
819
1056
  # query parameters
820
1057
  query_params = opts[:query_params] || {}
@@ -837,7 +1074,7 @@ module MxPlatformRuby
837
1074
  auth_names = opts[:debug_auth_names] || ['basicAuth']
838
1075
 
839
1076
  new_options = opts.merge(
840
- :operation => :"MxPlatformApi.delete_tagging",
1077
+ :operation => :"MxPlatformApi.delete_managed_transaction",
841
1078
  :header_params => header_params,
842
1079
  :query_params => query_params,
843
1080
  :form_params => form_params,
@@ -848,34 +1085,241 @@ module MxPlatformRuby
848
1085
 
849
1086
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
850
1087
  if @api_client.config.debugging
851
- @api_client.config.logger.debug "API called: MxPlatformApi#delete_tagging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1088
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
852
1089
  end
853
1090
  return data, status_code, headers
854
1091
  end
855
1092
 
856
- # Delete transaction rule
857
- # Use this endpoint to permanently delete a transaction rule based on its unique GUID.
858
- # @param transaction_rule_guid [String] The unique id for a &#x60;transaction_rule&#x60;.
1093
+ # Delete member
1094
+ # Accessing this endpoint will permanently delete a member.
1095
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
859
1096
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
860
1097
  # @param [Hash] opts the optional parameters
861
1098
  # @return [nil]
862
- def delete_transaction_rule(transaction_rule_guid, user_guid, opts = {})
863
- delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts)
1099
+ def delete_member(member_guid, user_guid, opts = {})
1100
+ delete_member_with_http_info(member_guid, user_guid, opts)
864
1101
  nil
865
1102
  end
866
1103
 
867
- # Delete transaction rule
868
- # Use this endpoint to permanently delete a transaction rule based on its unique GUID.
869
- # @param transaction_rule_guid [String] The unique id for a &#x60;transaction_rule&#x60;.
1104
+ # Delete member
1105
+ # Accessing this endpoint will permanently delete a member.
1106
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
870
1107
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
871
1108
  # @param [Hash] opts the optional parameters
872
1109
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
873
- def delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts = {})
1110
+ def delete_member_with_http_info(member_guid, user_guid, opts = {})
874
1111
  if @api_client.config.debugging
875
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_transaction_rule ...'
1112
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_member ...'
876
1113
  end
877
- # verify the required parameter 'transaction_rule_guid' is set
878
- if @api_client.config.client_side_validation && transaction_rule_guid.nil?
1114
+ # verify the required parameter 'member_guid' is set
1115
+ if @api_client.config.client_side_validation && member_guid.nil?
1116
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.delete_member"
1117
+ end
1118
+ # verify the required parameter 'user_guid' is set
1119
+ if @api_client.config.client_side_validation && user_guid.nil?
1120
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_member"
1121
+ end
1122
+ # resource path
1123
+ local_var_path = '/users/{user_guid}/members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1124
+
1125
+ # query parameters
1126
+ query_params = opts[:query_params] || {}
1127
+
1128
+ # header parameters
1129
+ header_params = opts[:header_params] || {}
1130
+ # HTTP header 'Accept' (if needed)
1131
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
1132
+
1133
+ # form parameters
1134
+ form_params = opts[:form_params] || {}
1135
+
1136
+ # http body (model)
1137
+ post_body = opts[:debug_body]
1138
+
1139
+ # return_type
1140
+ return_type = opts[:debug_return_type]
1141
+
1142
+ # auth_names
1143
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1144
+
1145
+ new_options = opts.merge(
1146
+ :operation => :"MxPlatformApi.delete_member",
1147
+ :header_params => header_params,
1148
+ :query_params => query_params,
1149
+ :form_params => form_params,
1150
+ :body => post_body,
1151
+ :auth_names => auth_names,
1152
+ :return_type => return_type
1153
+ )
1154
+
1155
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1156
+ if @api_client.config.debugging
1157
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1158
+ end
1159
+ return data, status_code, headers
1160
+ end
1161
+
1162
+ # Delete tag
1163
+ # Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of `204 No Content`.
1164
+ # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
1165
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1166
+ # @param [Hash] opts the optional parameters
1167
+ # @return [nil]
1168
+ def delete_tag(tag_guid, user_guid, opts = {})
1169
+ delete_tag_with_http_info(tag_guid, user_guid, opts)
1170
+ nil
1171
+ end
1172
+
1173
+ # Delete tag
1174
+ # Use this endpoint to permanently delete a specific tag based on its unique GUID. If successful, the API will respond with status of &#x60;204 No Content&#x60;.
1175
+ # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
1176
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1177
+ # @param [Hash] opts the optional parameters
1178
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1179
+ def delete_tag_with_http_info(tag_guid, user_guid, opts = {})
1180
+ if @api_client.config.debugging
1181
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tag ...'
1182
+ end
1183
+ # verify the required parameter 'tag_guid' is set
1184
+ if @api_client.config.client_side_validation && tag_guid.nil?
1185
+ fail ArgumentError, "Missing the required parameter 'tag_guid' when calling MxPlatformApi.delete_tag"
1186
+ end
1187
+ # verify the required parameter 'user_guid' is set
1188
+ if @api_client.config.client_side_validation && user_guid.nil?
1189
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tag"
1190
+ end
1191
+ # resource path
1192
+ local_var_path = '/users/{user_guid}/tags/{tag_guid}'.sub('{' + 'tag_guid' + '}', CGI.escape(tag_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1193
+
1194
+ # query parameters
1195
+ query_params = opts[:query_params] || {}
1196
+
1197
+ # header parameters
1198
+ header_params = opts[:header_params] || {}
1199
+ # HTTP header 'Accept' (if needed)
1200
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
1201
+
1202
+ # form parameters
1203
+ form_params = opts[:form_params] || {}
1204
+
1205
+ # http body (model)
1206
+ post_body = opts[:debug_body]
1207
+
1208
+ # return_type
1209
+ return_type = opts[:debug_return_type]
1210
+
1211
+ # auth_names
1212
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1213
+
1214
+ new_options = opts.merge(
1215
+ :operation => :"MxPlatformApi.delete_tag",
1216
+ :header_params => header_params,
1217
+ :query_params => query_params,
1218
+ :form_params => form_params,
1219
+ :body => post_body,
1220
+ :auth_names => auth_names,
1221
+ :return_type => return_type
1222
+ )
1223
+
1224
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1225
+ if @api_client.config.debugging
1226
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1227
+ end
1228
+ return data, status_code, headers
1229
+ end
1230
+
1231
+ # Delete tagging
1232
+ # Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
1233
+ # @param tagging_guid [String] The unique id for a &#x60;tagging&#x60;.
1234
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @return [nil]
1237
+ def delete_tagging(tagging_guid, user_guid, opts = {})
1238
+ delete_tagging_with_http_info(tagging_guid, user_guid, opts)
1239
+ nil
1240
+ end
1241
+
1242
+ # Delete tagging
1243
+ # Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
1244
+ # @param tagging_guid [String] The unique id for a &#x60;tagging&#x60;.
1245
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1246
+ # @param [Hash] opts the optional parameters
1247
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1248
+ def delete_tagging_with_http_info(tagging_guid, user_guid, opts = {})
1249
+ if @api_client.config.debugging
1250
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_tagging ...'
1251
+ end
1252
+ # verify the required parameter 'tagging_guid' is set
1253
+ if @api_client.config.client_side_validation && tagging_guid.nil?
1254
+ fail ArgumentError, "Missing the required parameter 'tagging_guid' when calling MxPlatformApi.delete_tagging"
1255
+ end
1256
+ # verify the required parameter 'user_guid' is set
1257
+ if @api_client.config.client_side_validation && user_guid.nil?
1258
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_tagging"
1259
+ end
1260
+ # resource path
1261
+ local_var_path = '/users/{user_guid}/taggings/{tagging_guid}'.sub('{' + 'tagging_guid' + '}', CGI.escape(tagging_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1262
+
1263
+ # query parameters
1264
+ query_params = opts[:query_params] || {}
1265
+
1266
+ # header parameters
1267
+ header_params = opts[:header_params] || {}
1268
+ # HTTP header 'Accept' (if needed)
1269
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
1270
+
1271
+ # form parameters
1272
+ form_params = opts[:form_params] || {}
1273
+
1274
+ # http body (model)
1275
+ post_body = opts[:debug_body]
1276
+
1277
+ # return_type
1278
+ return_type = opts[:debug_return_type]
1279
+
1280
+ # auth_names
1281
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1282
+
1283
+ new_options = opts.merge(
1284
+ :operation => :"MxPlatformApi.delete_tagging",
1285
+ :header_params => header_params,
1286
+ :query_params => query_params,
1287
+ :form_params => form_params,
1288
+ :body => post_body,
1289
+ :auth_names => auth_names,
1290
+ :return_type => return_type
1291
+ )
1292
+
1293
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1294
+ if @api_client.config.debugging
1295
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_tagging\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1296
+ end
1297
+ return data, status_code, headers
1298
+ end
1299
+
1300
+ # Delete transaction rule
1301
+ # Use this endpoint to permanently delete a transaction rule based on its unique GUID.
1302
+ # @param transaction_rule_guid [String] The unique id for a &#x60;transaction_rule&#x60;.
1303
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1304
+ # @param [Hash] opts the optional parameters
1305
+ # @return [nil]
1306
+ def delete_transaction_rule(transaction_rule_guid, user_guid, opts = {})
1307
+ delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts)
1308
+ nil
1309
+ end
1310
+
1311
+ # Delete transaction rule
1312
+ # Use this endpoint to permanently delete a transaction rule based on its unique GUID.
1313
+ # @param transaction_rule_guid [String] The unique id for a &#x60;transaction_rule&#x60;.
1314
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1315
+ # @param [Hash] opts the optional parameters
1316
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1317
+ def delete_transaction_rule_with_http_info(transaction_rule_guid, user_guid, opts = {})
1318
+ if @api_client.config.debugging
1319
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_transaction_rule ...'
1320
+ end
1321
+ # verify the required parameter 'transaction_rule_guid' is set
1322
+ if @api_client.config.client_side_validation && transaction_rule_guid.nil?
879
1323
  fail ArgumentError, "Missing the required parameter 'transaction_rule_guid' when calling MxPlatformApi.delete_transaction_rule"
880
1324
  end
881
1325
  # verify the required parameter 'user_guid' is set
@@ -1630,6 +2074,8 @@ module MxPlatformRuby
1630
2074
  # Use this endpoint to read the attributes of a specific user.
1631
2075
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1632
2076
  # @param [Hash] opts the optional parameters
2077
+ # @option opts [Integer] :page Specify current page.
2078
+ # @option opts [Integer] :records_per_page Specify records per page.
1633
2079
  # @return [CategoriesResponseBody]
1634
2080
  def list_default_categories(user_guid, opts = {})
1635
2081
  data, _status_code, _headers = list_default_categories_with_http_info(user_guid, opts)
@@ -1640,6 +2086,8 @@ module MxPlatformRuby
1640
2086
  # Use this endpoint to read the attributes of a specific user.
1641
2087
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1642
2088
  # @param [Hash] opts the optional parameters
2089
+ # @option opts [Integer] :page Specify current page.
2090
+ # @option opts [Integer] :records_per_page Specify records per page.
1643
2091
  # @return [Array<(CategoriesResponseBody, Integer, Hash)>] CategoriesResponseBody data, response status code and response headers
1644
2092
  def list_default_categories_with_http_info(user_guid, opts = {})
1645
2093
  if @api_client.config.debugging
@@ -1654,6 +2102,8 @@ module MxPlatformRuby
1654
2102
 
1655
2103
  # query parameters
1656
2104
  query_params = opts[:query_params] || {}
2105
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2106
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
1657
2107
 
1658
2108
  # header parameters
1659
2109
  header_params = opts[:header_params] || {}
@@ -1920,23 +2370,308 @@ module MxPlatformRuby
1920
2370
  data
1921
2371
  end
1922
2372
 
1923
- # List institution credentials
1924
- # Use this endpoint to see which credentials will be needed to create a member for a specific institution.
1925
- # @param institution_code [String] The institution_code of the institution.
2373
+ # List institution credentials
2374
+ # Use this endpoint to see which credentials will be needed to create a member for a specific institution.
2375
+ # @param institution_code [String] The institution_code of the institution.
2376
+ # @param [Hash] opts the optional parameters
2377
+ # @option opts [Integer] :page Specify current page.
2378
+ # @option opts [Integer] :records_per_page Specify records per page.
2379
+ # @return [Array<(CredentialsResponseBody, Integer, Hash)>] CredentialsResponseBody data, response status code and response headers
2380
+ def list_institution_credentials_with_http_info(institution_code, opts = {})
2381
+ if @api_client.config.debugging
2382
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institution_credentials ...'
2383
+ end
2384
+ # verify the required parameter 'institution_code' is set
2385
+ if @api_client.config.client_side_validation && institution_code.nil?
2386
+ fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.list_institution_credentials"
2387
+ end
2388
+ # resource path
2389
+ local_var_path = '/institutions/{institution_code}/credentials'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
2390
+
2391
+ # query parameters
2392
+ query_params = opts[:query_params] || {}
2393
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2394
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2395
+
2396
+ # header parameters
2397
+ header_params = opts[:header_params] || {}
2398
+ # HTTP header 'Accept' (if needed)
2399
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
2400
+
2401
+ # form parameters
2402
+ form_params = opts[:form_params] || {}
2403
+
2404
+ # http body (model)
2405
+ post_body = opts[:debug_body]
2406
+
2407
+ # return_type
2408
+ return_type = opts[:debug_return_type] || 'CredentialsResponseBody'
2409
+
2410
+ # auth_names
2411
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
2412
+
2413
+ new_options = opts.merge(
2414
+ :operation => :"MxPlatformApi.list_institution_credentials",
2415
+ :header_params => header_params,
2416
+ :query_params => query_params,
2417
+ :form_params => form_params,
2418
+ :body => post_body,
2419
+ :auth_names => auth_names,
2420
+ :return_type => return_type
2421
+ )
2422
+
2423
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2424
+ if @api_client.config.debugging
2425
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_institution_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2426
+ end
2427
+ return data, status_code, headers
2428
+ end
2429
+
2430
+ # List institutions
2431
+ # This endpoint returns a list of institutions based on the specified search term or parameter.
2432
+ # @param [Hash] opts the optional parameters
2433
+ # @option opts [String] :name This will list only institutions in which the appended string appears.
2434
+ # @option opts [Integer] :page Specify current page.
2435
+ # @option opts [Integer] :records_per_page Specify records per page.
2436
+ # @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
2437
+ # @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
2438
+ # @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
2439
+ # @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
2440
+ # @return [InstitutionsResponseBody]
2441
+ def list_institutions(opts = {})
2442
+ data, _status_code, _headers = list_institutions_with_http_info(opts)
2443
+ data
2444
+ end
2445
+
2446
+ # List institutions
2447
+ # This endpoint returns a list of institutions based on the specified search term or parameter.
2448
+ # @param [Hash] opts the optional parameters
2449
+ # @option opts [String] :name This will list only institutions in which the appended string appears.
2450
+ # @option opts [Integer] :page Specify current page.
2451
+ # @option opts [Integer] :records_per_page Specify records per page.
2452
+ # @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
2453
+ # @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
2454
+ # @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
2455
+ # @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
2456
+ # @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
2457
+ def list_institutions_with_http_info(opts = {})
2458
+ if @api_client.config.debugging
2459
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institutions ...'
2460
+ end
2461
+ # resource path
2462
+ local_var_path = '/institutions'
2463
+
2464
+ # query parameters
2465
+ query_params = opts[:query_params] || {}
2466
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2467
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2468
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2469
+ query_params[:'supports_account_identification'] = opts[:'supports_account_identification'] if !opts[:'supports_account_identification'].nil?
2470
+ query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
2471
+ query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
2472
+ query_params[:'supports_transaction_history'] = opts[:'supports_transaction_history'] if !opts[:'supports_transaction_history'].nil?
2473
+
2474
+ # header parameters
2475
+ header_params = opts[:header_params] || {}
2476
+ # HTTP header 'Accept' (if needed)
2477
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
2478
+
2479
+ # form parameters
2480
+ form_params = opts[:form_params] || {}
2481
+
2482
+ # http body (model)
2483
+ post_body = opts[:debug_body]
2484
+
2485
+ # return_type
2486
+ return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
2487
+
2488
+ # auth_names
2489
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
2490
+
2491
+ new_options = opts.merge(
2492
+ :operation => :"MxPlatformApi.list_institutions",
2493
+ :header_params => header_params,
2494
+ :query_params => query_params,
2495
+ :form_params => form_params,
2496
+ :body => post_body,
2497
+ :auth_names => auth_names,
2498
+ :return_type => return_type
2499
+ )
2500
+
2501
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2502
+ if @api_client.config.debugging
2503
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2504
+ end
2505
+ return data, status_code, headers
2506
+ end
2507
+
2508
+ # List managed accounts
2509
+ # Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
2510
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2511
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
2512
+ # @param [Hash] opts the optional parameters
2513
+ # @option opts [Integer] :page Specify current page.
2514
+ # @option opts [Integer] :records_per_page Specify records per page.
2515
+ # @return [AccountsResponseBody]
2516
+ def list_managed_accounts(user_guid, member_guid, opts = {})
2517
+ data, _status_code, _headers = list_managed_accounts_with_http_info(user_guid, member_guid, opts)
2518
+ data
2519
+ end
2520
+
2521
+ # List managed accounts
2522
+ # Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
2523
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2524
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
2525
+ # @param [Hash] opts the optional parameters
2526
+ # @option opts [Integer] :page Specify current page.
2527
+ # @option opts [Integer] :records_per_page Specify records per page.
2528
+ # @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
2529
+ def list_managed_accounts_with_http_info(user_guid, member_guid, opts = {})
2530
+ if @api_client.config.debugging
2531
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_accounts ...'
2532
+ end
2533
+ # verify the required parameter 'user_guid' is set
2534
+ if @api_client.config.client_side_validation && user_guid.nil?
2535
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_accounts"
2536
+ end
2537
+ # verify the required parameter 'member_guid' is set
2538
+ if @api_client.config.client_side_validation && member_guid.nil?
2539
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_accounts"
2540
+ end
2541
+ # resource path
2542
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
2543
+
2544
+ # query parameters
2545
+ query_params = opts[:query_params] || {}
2546
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2547
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2548
+
2549
+ # header parameters
2550
+ header_params = opts[:header_params] || {}
2551
+ # HTTP header 'Accept' (if needed)
2552
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
2553
+
2554
+ # form parameters
2555
+ form_params = opts[:form_params] || {}
2556
+
2557
+ # http body (model)
2558
+ post_body = opts[:debug_body]
2559
+
2560
+ # return_type
2561
+ return_type = opts[:debug_return_type] || 'AccountsResponseBody'
2562
+
2563
+ # auth_names
2564
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
2565
+
2566
+ new_options = opts.merge(
2567
+ :operation => :"MxPlatformApi.list_managed_accounts",
2568
+ :header_params => header_params,
2569
+ :query_params => query_params,
2570
+ :form_params => form_params,
2571
+ :body => post_body,
2572
+ :auth_names => auth_names,
2573
+ :return_type => return_type
2574
+ )
2575
+
2576
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2577
+ if @api_client.config.debugging
2578
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_managed_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2579
+ end
2580
+ return data, status_code, headers
2581
+ end
2582
+
2583
+ # List managed institutions
2584
+ # This endpoint returns a list of institutions which can be used to create partner-managed members.
2585
+ # @param [Hash] opts the optional parameters
2586
+ # @option opts [Integer] :page Specify current page.
2587
+ # @option opts [Integer] :records_per_page Specify records per page.
2588
+ # @return [InstitutionsResponseBody]
2589
+ def list_managed_institutions(opts = {})
2590
+ data, _status_code, _headers = list_managed_institutions_with_http_info(opts)
2591
+ data
2592
+ end
2593
+
2594
+ # List managed institutions
2595
+ # This endpoint returns a list of institutions which can be used to create partner-managed members.
2596
+ # @param [Hash] opts the optional parameters
2597
+ # @option opts [Integer] :page Specify current page.
2598
+ # @option opts [Integer] :records_per_page Specify records per page.
2599
+ # @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
2600
+ def list_managed_institutions_with_http_info(opts = {})
2601
+ if @api_client.config.debugging
2602
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_institutions ...'
2603
+ end
2604
+ # resource path
2605
+ local_var_path = '/managed_institutions'
2606
+
2607
+ # query parameters
2608
+ query_params = opts[:query_params] || {}
2609
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2610
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2611
+
2612
+ # header parameters
2613
+ header_params = opts[:header_params] || {}
2614
+ # HTTP header 'Accept' (if needed)
2615
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
2616
+
2617
+ # form parameters
2618
+ form_params = opts[:form_params] || {}
2619
+
2620
+ # http body (model)
2621
+ post_body = opts[:debug_body]
2622
+
2623
+ # return_type
2624
+ return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
2625
+
2626
+ # auth_names
2627
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
2628
+
2629
+ new_options = opts.merge(
2630
+ :operation => :"MxPlatformApi.list_managed_institutions",
2631
+ :header_params => header_params,
2632
+ :query_params => query_params,
2633
+ :form_params => form_params,
2634
+ :body => post_body,
2635
+ :auth_names => auth_names,
2636
+ :return_type => return_type
2637
+ )
2638
+
2639
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2640
+ if @api_client.config.debugging
2641
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_managed_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2642
+ end
2643
+ return data, status_code, headers
2644
+ end
2645
+
2646
+ # List managed members
2647
+ # This endpoint returns a list of all the partner-managed members associated with the specified `user`.
2648
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2649
+ # @param [Hash] opts the optional parameters
2650
+ # @option opts [Integer] :page Specify current page.
2651
+ # @option opts [Integer] :records_per_page Specify records per page.
2652
+ # @return [MembersResponseBody]
2653
+ def list_managed_members(user_guid, opts = {})
2654
+ data, _status_code, _headers = list_managed_members_with_http_info(user_guid, opts)
2655
+ data
2656
+ end
2657
+
2658
+ # List managed members
2659
+ # This endpoint returns a list of all the partner-managed members associated with the specified &#x60;user&#x60;.
2660
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1926
2661
  # @param [Hash] opts the optional parameters
1927
2662
  # @option opts [Integer] :page Specify current page.
1928
2663
  # @option opts [Integer] :records_per_page Specify records per page.
1929
- # @return [Array<(CredentialsResponseBody, Integer, Hash)>] CredentialsResponseBody data, response status code and response headers
1930
- def list_institution_credentials_with_http_info(institution_code, opts = {})
2664
+ # @return [Array<(MembersResponseBody, Integer, Hash)>] MembersResponseBody data, response status code and response headers
2665
+ def list_managed_members_with_http_info(user_guid, opts = {})
1931
2666
  if @api_client.config.debugging
1932
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institution_credentials ...'
2667
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_members ...'
1933
2668
  end
1934
- # verify the required parameter 'institution_code' is set
1935
- if @api_client.config.client_side_validation && institution_code.nil?
1936
- fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.list_institution_credentials"
2669
+ # verify the required parameter 'user_guid' is set
2670
+ if @api_client.config.client_side_validation && user_guid.nil?
2671
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_members"
1937
2672
  end
1938
2673
  # resource path
1939
- local_var_path = '/institutions/{institution_code}/credentials'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
2674
+ local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1940
2675
 
1941
2676
  # query parameters
1942
2677
  query_params = opts[:query_params] || {}
@@ -1955,13 +2690,13 @@ module MxPlatformRuby
1955
2690
  post_body = opts[:debug_body]
1956
2691
 
1957
2692
  # return_type
1958
- return_type = opts[:debug_return_type] || 'CredentialsResponseBody'
2693
+ return_type = opts[:debug_return_type] || 'MembersResponseBody'
1959
2694
 
1960
2695
  # auth_names
1961
2696
  auth_names = opts[:debug_auth_names] || ['basicAuth']
1962
2697
 
1963
2698
  new_options = opts.merge(
1964
- :operation => :"MxPlatformApi.list_institution_credentials",
2699
+ :operation => :"MxPlatformApi.list_managed_members",
1965
2700
  :header_params => header_params,
1966
2701
  :query_params => query_params,
1967
2702
  :form_params => form_params,
@@ -1972,48 +2707,51 @@ module MxPlatformRuby
1972
2707
 
1973
2708
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1974
2709
  if @api_client.config.debugging
1975
- @api_client.config.logger.debug "API called: MxPlatformApi#list_institution_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2710
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_managed_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1976
2711
  end
1977
2712
  return data, status_code, headers
1978
2713
  end
1979
2714
 
1980
- # List institutions
1981
- # This endpoint returns a list of institutions based on the specified search term or parameter.
2715
+ # List managed transactions
2716
+ # This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
2717
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2718
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1982
2719
  # @param [Hash] opts the optional parameters
1983
- # @option opts [String] :name This will list only institutions in which the appended string appears.
1984
- # @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
1985
- # @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
1986
- # @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
1987
- # @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
1988
- # @return [InstitutionsResponseBody]
1989
- def list_institutions(opts = {})
1990
- data, _status_code, _headers = list_institutions_with_http_info(opts)
2720
+ # @option opts [Integer] :page Specify current page.
2721
+ # @option opts [Integer] :records_per_page Specify records per page.
2722
+ # @return [TransactionsResponseBody]
2723
+ def list_managed_transactions(user_guid, member_guid, opts = {})
2724
+ data, _status_code, _headers = list_managed_transactions_with_http_info(user_guid, member_guid, opts)
1991
2725
  data
1992
2726
  end
1993
2727
 
1994
- # List institutions
1995
- # This endpoint returns a list of institutions based on the specified search term or parameter.
2728
+ # List managed transactions
2729
+ # This endpoint returns a list of all the partner-managed transactions associated with the specified &#x60;account&#x60;, scoped through a &#x60;user&#x60; and a &#x60;member&#x60;.
2730
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2731
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1996
2732
  # @param [Hash] opts the optional parameters
1997
- # @option opts [String] :name This will list only institutions in which the appended string appears.
1998
- # @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
1999
- # @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
2000
- # @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
2001
- # @option opts [Boolean] :supports_transaction_history Filter only institutions which support extended transaction history.
2002
- # @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
2003
- def list_institutions_with_http_info(opts = {})
2733
+ # @option opts [Integer] :page Specify current page.
2734
+ # @option opts [Integer] :records_per_page Specify records per page.
2735
+ # @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
2736
+ def list_managed_transactions_with_http_info(user_guid, member_guid, opts = {})
2004
2737
  if @api_client.config.debugging
2005
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_institutions ...'
2738
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.list_managed_transactions ...'
2739
+ end
2740
+ # verify the required parameter 'user_guid' is set
2741
+ if @api_client.config.client_side_validation && user_guid.nil?
2742
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.list_managed_transactions"
2743
+ end
2744
+ # verify the required parameter 'member_guid' is set
2745
+ if @api_client.config.client_side_validation && member_guid.nil?
2746
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.list_managed_transactions"
2006
2747
  end
2007
2748
  # resource path
2008
- local_var_path = '/institutions'
2749
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s))
2009
2750
 
2010
2751
  # query parameters
2011
2752
  query_params = opts[:query_params] || {}
2012
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2013
- query_params[:'supports_account_identification'] = opts[:'supports_account_identification'] if !opts[:'supports_account_identification'].nil?
2014
- query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
2015
- query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
2016
- query_params[:'supports_transaction_history'] = opts[:'supports_transaction_history'] if !opts[:'supports_transaction_history'].nil?
2753
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2754
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
2017
2755
 
2018
2756
  # header parameters
2019
2757
  header_params = opts[:header_params] || {}
@@ -2027,13 +2765,13 @@ module MxPlatformRuby
2027
2765
  post_body = opts[:debug_body]
2028
2766
 
2029
2767
  # return_type
2030
- return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
2768
+ return_type = opts[:debug_return_type] || 'TransactionsResponseBody'
2031
2769
 
2032
2770
  # auth_names
2033
2771
  auth_names = opts[:debug_auth_names] || ['basicAuth']
2034
2772
 
2035
2773
  new_options = opts.merge(
2036
- :operation => :"MxPlatformApi.list_institutions",
2774
+ :operation => :"MxPlatformApi.list_managed_transactions",
2037
2775
  :header_params => header_params,
2038
2776
  :query_params => query_params,
2039
2777
  :form_params => form_params,
@@ -2044,7 +2782,7 @@ module MxPlatformRuby
2044
2782
 
2045
2783
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2046
2784
  if @api_client.config.debugging
2047
- @api_client.config.logger.debug "API called: MxPlatformApi#list_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2785
+ @api_client.config.logger.debug "API called: MxPlatformApi#list_managed_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2048
2786
  end
2049
2787
  return data, status_code, headers
2050
2788
  end
@@ -2855,6 +3593,10 @@ module MxPlatformRuby
2855
3593
  # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
2856
3594
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2857
3595
  # @param [Hash] opts the optional parameters
3596
+ # @option opts [String] :from_date Filter transactions from this date.
3597
+ # @option opts [Integer] :page Specify current page.
3598
+ # @option opts [Integer] :records_per_page Specify records per page.
3599
+ # @option opts [String] :to_date Filter transactions to this date.
2858
3600
  # @return [TransactionsResponseBody]
2859
3601
  def list_transactions_by_tag(tag_guid, user_guid, opts = {})
2860
3602
  data, _status_code, _headers = list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts)
@@ -2866,6 +3608,10 @@ module MxPlatformRuby
2866
3608
  # @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
2867
3609
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
2868
3610
  # @param [Hash] opts the optional parameters
3611
+ # @option opts [String] :from_date Filter transactions from this date.
3612
+ # @option opts [Integer] :page Specify current page.
3613
+ # @option opts [Integer] :records_per_page Specify records per page.
3614
+ # @option opts [String] :to_date Filter transactions to this date.
2869
3615
  # @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
2870
3616
  def list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts = {})
2871
3617
  if @api_client.config.debugging
@@ -2884,6 +3630,10 @@ module MxPlatformRuby
2884
3630
 
2885
3631
  # query parameters
2886
3632
  query_params = opts[:query_params] || {}
3633
+ query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
3634
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3635
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
3636
+ query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
2887
3637
 
2888
3638
  # header parameters
2889
3639
  header_params = opts[:header_params] || {}
@@ -3268,21 +4018,240 @@ module MxPlatformRuby
3268
4018
  data
3269
4019
  end
3270
4020
 
3271
- # Read institution
3272
- # This endpoint returns information about the institution specified by &#x60;institution_code&#x60;.
3273
- # @param institution_code [String] The institution_code of the institution.
4021
+ # Read institution
4022
+ # This endpoint returns information about the institution specified by &#x60;institution_code&#x60;.
4023
+ # @param institution_code [String] The institution_code of the institution.
4024
+ # @param [Hash] opts the optional parameters
4025
+ # @return [Array<(InstitutionResponseBody, Integer, Hash)>] InstitutionResponseBody data, response status code and response headers
4026
+ def read_institution_with_http_info(institution_code, opts = {})
4027
+ if @api_client.config.debugging
4028
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_institution ...'
4029
+ end
4030
+ # verify the required parameter 'institution_code' is set
4031
+ if @api_client.config.client_side_validation && institution_code.nil?
4032
+ fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.read_institution"
4033
+ end
4034
+ # resource path
4035
+ local_var_path = '/institutions/{institution_code}'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
4036
+
4037
+ # query parameters
4038
+ query_params = opts[:query_params] || {}
4039
+
4040
+ # header parameters
4041
+ header_params = opts[:header_params] || {}
4042
+ # HTTP header 'Accept' (if needed)
4043
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
4044
+
4045
+ # form parameters
4046
+ form_params = opts[:form_params] || {}
4047
+
4048
+ # http body (model)
4049
+ post_body = opts[:debug_body]
4050
+
4051
+ # return_type
4052
+ return_type = opts[:debug_return_type] || 'InstitutionResponseBody'
4053
+
4054
+ # auth_names
4055
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
4056
+
4057
+ new_options = opts.merge(
4058
+ :operation => :"MxPlatformApi.read_institution",
4059
+ :header_params => header_params,
4060
+ :query_params => query_params,
4061
+ :form_params => form_params,
4062
+ :body => post_body,
4063
+ :auth_names => auth_names,
4064
+ :return_type => return_type
4065
+ )
4066
+
4067
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4068
+ if @api_client.config.debugging
4069
+ @api_client.config.logger.debug "API called: MxPlatformApi#read_institution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4070
+ end
4071
+ return data, status_code, headers
4072
+ end
4073
+
4074
+ # Read managed account
4075
+ # Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
4076
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4077
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4078
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
4079
+ # @param [Hash] opts the optional parameters
4080
+ # @return [AccountResponseBody]
4081
+ def read_managed_account(member_guid, user_guid, account_guid, opts = {})
4082
+ data, _status_code, _headers = read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts)
4083
+ data
4084
+ end
4085
+
4086
+ # Read managed account
4087
+ # Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
4088
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4089
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4090
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
4091
+ # @param [Hash] opts the optional parameters
4092
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
4093
+ def read_managed_account_with_http_info(member_guid, user_guid, account_guid, opts = {})
4094
+ if @api_client.config.debugging
4095
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_account ...'
4096
+ end
4097
+ # verify the required parameter 'member_guid' is set
4098
+ if @api_client.config.client_side_validation && member_guid.nil?
4099
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_account"
4100
+ end
4101
+ # verify the required parameter 'user_guid' is set
4102
+ if @api_client.config.client_side_validation && user_guid.nil?
4103
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_account"
4104
+ end
4105
+ # verify the required parameter 'account_guid' is set
4106
+ if @api_client.config.client_side_validation && account_guid.nil?
4107
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.read_managed_account"
4108
+ end
4109
+ # resource path
4110
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
4111
+
4112
+ # query parameters
4113
+ query_params = opts[:query_params] || {}
4114
+
4115
+ # header parameters
4116
+ header_params = opts[:header_params] || {}
4117
+ # HTTP header 'Accept' (if needed)
4118
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
4119
+
4120
+ # form parameters
4121
+ form_params = opts[:form_params] || {}
4122
+
4123
+ # http body (model)
4124
+ post_body = opts[:debug_body]
4125
+
4126
+ # return_type
4127
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
4128
+
4129
+ # auth_names
4130
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
4131
+
4132
+ new_options = opts.merge(
4133
+ :operation => :"MxPlatformApi.read_managed_account",
4134
+ :header_params => header_params,
4135
+ :query_params => query_params,
4136
+ :form_params => form_params,
4137
+ :body => post_body,
4138
+ :auth_names => auth_names,
4139
+ :return_type => return_type
4140
+ )
4141
+
4142
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4143
+ if @api_client.config.debugging
4144
+ @api_client.config.logger.debug "API called: MxPlatformApi#read_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4145
+ end
4146
+ return data, status_code, headers
4147
+ end
4148
+
4149
+ # Read managed member
4150
+ # This endpoint returns the attributes of the specified partner-managed `member`.
4151
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4152
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4153
+ # @param [Hash] opts the optional parameters
4154
+ # @return [MemberResponseBody]
4155
+ def read_managed_member(member_guid, user_guid, opts = {})
4156
+ data, _status_code, _headers = read_managed_member_with_http_info(member_guid, user_guid, opts)
4157
+ data
4158
+ end
4159
+
4160
+ # Read managed member
4161
+ # This endpoint returns the attributes of the specified partner-managed &#x60;member&#x60;.
4162
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4163
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4164
+ # @param [Hash] opts the optional parameters
4165
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
4166
+ def read_managed_member_with_http_info(member_guid, user_guid, opts = {})
4167
+ if @api_client.config.debugging
4168
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_member ...'
4169
+ end
4170
+ # verify the required parameter 'member_guid' is set
4171
+ if @api_client.config.client_side_validation && member_guid.nil?
4172
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_member"
4173
+ end
4174
+ # verify the required parameter 'user_guid' is set
4175
+ if @api_client.config.client_side_validation && user_guid.nil?
4176
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_member"
4177
+ end
4178
+ # resource path
4179
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
4180
+
4181
+ # query parameters
4182
+ query_params = opts[:query_params] || {}
4183
+
4184
+ # header parameters
4185
+ header_params = opts[:header_params] || {}
4186
+ # HTTP header 'Accept' (if needed)
4187
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
4188
+
4189
+ # form parameters
4190
+ form_params = opts[:form_params] || {}
4191
+
4192
+ # http body (model)
4193
+ post_body = opts[:debug_body]
4194
+
4195
+ # return_type
4196
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
4197
+
4198
+ # auth_names
4199
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
4200
+
4201
+ new_options = opts.merge(
4202
+ :operation => :"MxPlatformApi.read_managed_member",
4203
+ :header_params => header_params,
4204
+ :query_params => query_params,
4205
+ :form_params => form_params,
4206
+ :body => post_body,
4207
+ :auth_names => auth_names,
4208
+ :return_type => return_type
4209
+ )
4210
+
4211
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4212
+ if @api_client.config.debugging
4213
+ @api_client.config.logger.debug "API called: MxPlatformApi#read_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4214
+ end
4215
+ return data, status_code, headers
4216
+ end
4217
+
4218
+ # Read managed transaction
4219
+ # Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
4220
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4221
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4222
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
4223
+ # @param [Hash] opts the optional parameters
4224
+ # @return [TransactionResponseBody]
4225
+ def read_managed_transaction(member_guid, user_guid, transaction_guid, opts = {})
4226
+ data, _status_code, _headers = read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts)
4227
+ data
4228
+ end
4229
+
4230
+ # Read managed transaction
4231
+ # Requests to this endpoint will return the attributes of the specified partner-managed &#x60;transaction&#x60;.
4232
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
4233
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
4234
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
3274
4235
  # @param [Hash] opts the optional parameters
3275
- # @return [Array<(InstitutionResponseBody, Integer, Hash)>] InstitutionResponseBody data, response status code and response headers
3276
- def read_institution_with_http_info(institution_code, opts = {})
4236
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
4237
+ def read_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, opts = {})
3277
4238
  if @api_client.config.debugging
3278
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_institution ...'
4239
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_managed_transaction ...'
3279
4240
  end
3280
- # verify the required parameter 'institution_code' is set
3281
- if @api_client.config.client_side_validation && institution_code.nil?
3282
- fail ArgumentError, "Missing the required parameter 'institution_code' when calling MxPlatformApi.read_institution"
4241
+ # verify the required parameter 'member_guid' is set
4242
+ if @api_client.config.client_side_validation && member_guid.nil?
4243
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.read_managed_transaction"
4244
+ end
4245
+ # verify the required parameter 'user_guid' is set
4246
+ if @api_client.config.client_side_validation && user_guid.nil?
4247
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.read_managed_transaction"
4248
+ end
4249
+ # verify the required parameter 'transaction_guid' is set
4250
+ if @api_client.config.client_side_validation && transaction_guid.nil?
4251
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.read_managed_transaction"
3283
4252
  end
3284
4253
  # resource path
3285
- local_var_path = '/institutions/{institution_code}'.sub('{' + 'institution_code' + '}', CGI.escape(institution_code.to_s))
4254
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
3286
4255
 
3287
4256
  # query parameters
3288
4257
  query_params = opts[:query_params] || {}
@@ -3299,13 +4268,13 @@ module MxPlatformRuby
3299
4268
  post_body = opts[:debug_body]
3300
4269
 
3301
4270
  # return_type
3302
- return_type = opts[:debug_return_type] || 'InstitutionResponseBody'
4271
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
3303
4272
 
3304
4273
  # auth_names
3305
4274
  auth_names = opts[:debug_auth_names] || ['basicAuth']
3306
4275
 
3307
4276
  new_options = opts.merge(
3308
- :operation => :"MxPlatformApi.read_institution",
4277
+ :operation => :"MxPlatformApi.read_managed_transaction",
3309
4278
  :header_params => header_params,
3310
4279
  :query_params => query_params,
3311
4280
  :form_params => form_params,
@@ -3316,7 +4285,7 @@ module MxPlatformRuby
3316
4285
 
3317
4286
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3318
4287
  if @api_client.config.debugging
3319
- @api_client.config.logger.debug "API called: MxPlatformApi#read_institution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4288
+ @api_client.config.logger.debug "API called: MxPlatformApi#read_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3320
4289
  end
3321
4290
  return data, status_code, headers
3322
4291
  end
@@ -3522,6 +4491,69 @@ module MxPlatformRuby
3522
4491
  return data, status_code, headers
3523
4492
  end
3524
4493
 
4494
+ # Read merchant location
4495
+ # This endpoint returns the specified merchant_location resource.
4496
+ # @param merchant_location_guid [String] The unique id for a &#x60;merchant_location&#x60;.
4497
+ # @param [Hash] opts the optional parameters
4498
+ # @return [MerchantLocationResponseBody]
4499
+ def read_merchant_location(merchant_location_guid, opts = {})
4500
+ data, _status_code, _headers = read_merchant_location_with_http_info(merchant_location_guid, opts)
4501
+ data
4502
+ end
4503
+
4504
+ # Read merchant location
4505
+ # This endpoint returns the specified merchant_location resource.
4506
+ # @param merchant_location_guid [String] The unique id for a &#x60;merchant_location&#x60;.
4507
+ # @param [Hash] opts the optional parameters
4508
+ # @return [Array<(MerchantLocationResponseBody, Integer, Hash)>] MerchantLocationResponseBody data, response status code and response headers
4509
+ def read_merchant_location_with_http_info(merchant_location_guid, opts = {})
4510
+ if @api_client.config.debugging
4511
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.read_merchant_location ...'
4512
+ end
4513
+ # verify the required parameter 'merchant_location_guid' is set
4514
+ if @api_client.config.client_side_validation && merchant_location_guid.nil?
4515
+ fail ArgumentError, "Missing the required parameter 'merchant_location_guid' when calling MxPlatformApi.read_merchant_location"
4516
+ end
4517
+ # resource path
4518
+ local_var_path = '/merchant_locations/{merchant_location_guid}'.sub('{' + 'merchant_location_guid' + '}', CGI.escape(merchant_location_guid.to_s))
4519
+
4520
+ # query parameters
4521
+ query_params = opts[:query_params] || {}
4522
+
4523
+ # header parameters
4524
+ header_params = opts[:header_params] || {}
4525
+ # HTTP header 'Accept' (if needed)
4526
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
4527
+
4528
+ # form parameters
4529
+ form_params = opts[:form_params] || {}
4530
+
4531
+ # http body (model)
4532
+ post_body = opts[:debug_body]
4533
+
4534
+ # return_type
4535
+ return_type = opts[:debug_return_type] || 'MerchantLocationResponseBody'
4536
+
4537
+ # auth_names
4538
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
4539
+
4540
+ new_options = opts.merge(
4541
+ :operation => :"MxPlatformApi.read_merchant_location",
4542
+ :header_params => header_params,
4543
+ :query_params => query_params,
4544
+ :form_params => form_params,
4545
+ :body => post_body,
4546
+ :auth_names => auth_names,
4547
+ :return_type => return_type
4548
+ )
4549
+
4550
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4551
+ if @api_client.config.debugging
4552
+ @api_client.config.logger.debug "API called: MxPlatformApi#read_merchant_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4553
+ end
4554
+ return data, status_code, headers
4555
+ end
4556
+
3525
4557
  # Read statement by member
3526
4558
  # Use this endpoint to read a JSON representation of the statement.
3527
4559
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
@@ -4010,6 +5042,7 @@ module MxPlatformRuby
4010
5042
  # @param [Hash] opts the optional parameters
4011
5043
  # @option opts [String] :referral_source Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;.
4012
5044
  # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
5045
+ # @option opts [Boolean] :skip_aggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page.
4013
5046
  # @return [OAuthWindowResponseBody]
4014
5047
  def request_o_auth_window_uri(member_guid, user_guid, opts = {})
4015
5048
  data, _status_code, _headers = request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts)
@@ -4023,6 +5056,7 @@ module MxPlatformRuby
4023
5056
  # @param [Hash] opts the optional parameters
4024
5057
  # @option opts [String] :referral_source Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;.
4025
5058
  # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
5059
+ # @option opts [Boolean] :skip_aggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page.
4026
5060
  # @return [Array<(OAuthWindowResponseBody, Integer, Hash)>] OAuthWindowResponseBody data, response status code and response headers
4027
5061
  def request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
4028
5062
  if @api_client.config.debugging
@@ -4043,6 +5077,7 @@ module MxPlatformRuby
4043
5077
  query_params = opts[:query_params] || {}
4044
5078
  query_params[:'referral_source'] = opts[:'referral_source'] if !opts[:'referral_source'].nil?
4045
5079
  query_params[:'ui_message_webview_url_scheme'] = opts[:'ui_message_webview_url_scheme'] if !opts[:'ui_message_webview_url_scheme'].nil?
5080
+ query_params[:'skip_aggregation'] = opts[:'skip_aggregation'] if !opts[:'skip_aggregation'].nil?
4046
5081
 
4047
5082
  # header parameters
4048
5083
  header_params = opts[:header_params] || {}
@@ -4389,6 +5424,249 @@ module MxPlatformRuby
4389
5424
  return data, status_code, headers
4390
5425
  end
4391
5426
 
5427
+ # Update managed account
5428
+ # Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
5429
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5430
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5431
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
5432
+ # @param managed_account_update_request_body [ManagedAccountUpdateRequestBody] Managed account object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5433
+ # @param [Hash] opts the optional parameters
5434
+ # @return [AccountResponseBody]
5435
+ def update_managed_account(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
5436
+ data, _status_code, _headers = update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts)
5437
+ data
5438
+ end
5439
+
5440
+ # Update managed account
5441
+ # Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
5442
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5443
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5444
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
5445
+ # @param managed_account_update_request_body [ManagedAccountUpdateRequestBody] Managed account object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5446
+ # @param [Hash] opts the optional parameters
5447
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
5448
+ def update_managed_account_with_http_info(member_guid, user_guid, account_guid, managed_account_update_request_body, opts = {})
5449
+ if @api_client.config.debugging
5450
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_account ...'
5451
+ end
5452
+ # verify the required parameter 'member_guid' is set
5453
+ if @api_client.config.client_side_validation && member_guid.nil?
5454
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_account"
5455
+ end
5456
+ # verify the required parameter 'user_guid' is set
5457
+ if @api_client.config.client_side_validation && user_guid.nil?
5458
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_account"
5459
+ end
5460
+ # verify the required parameter 'account_guid' is set
5461
+ if @api_client.config.client_side_validation && account_guid.nil?
5462
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.update_managed_account"
5463
+ end
5464
+ # verify the required parameter 'managed_account_update_request_body' is set
5465
+ if @api_client.config.client_side_validation && managed_account_update_request_body.nil?
5466
+ fail ArgumentError, "Missing the required parameter 'managed_account_update_request_body' when calling MxPlatformApi.update_managed_account"
5467
+ end
5468
+ # resource path
5469
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s))
5470
+
5471
+ # query parameters
5472
+ query_params = opts[:query_params] || {}
5473
+
5474
+ # header parameters
5475
+ header_params = opts[:header_params] || {}
5476
+ # HTTP header 'Accept' (if needed)
5477
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5478
+ # HTTP header 'Content-Type'
5479
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5480
+
5481
+ # form parameters
5482
+ form_params = opts[:form_params] || {}
5483
+
5484
+ # http body (model)
5485
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_update_request_body)
5486
+
5487
+ # return_type
5488
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
5489
+
5490
+ # auth_names
5491
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
5492
+
5493
+ new_options = opts.merge(
5494
+ :operation => :"MxPlatformApi.update_managed_account",
5495
+ :header_params => header_params,
5496
+ :query_params => query_params,
5497
+ :form_params => form_params,
5498
+ :body => post_body,
5499
+ :auth_names => auth_names,
5500
+ :return_type => return_type
5501
+ )
5502
+
5503
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
5504
+ if @api_client.config.debugging
5505
+ @api_client.config.logger.debug "API called: MxPlatformApi#update_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5506
+ end
5507
+ return data, status_code, headers
5508
+ end
5509
+
5510
+ # Update managed member
5511
+ # Use this endpoint to update the attributes of the specified partner_managed `member`.
5512
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5513
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5514
+ # @param managed_member_update_request_body [ManagedMemberUpdateRequestBody] Managed member object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5515
+ # @param [Hash] opts the optional parameters
5516
+ # @return [MemberResponseBody]
5517
+ def update_managed_member(member_guid, user_guid, managed_member_update_request_body, opts = {})
5518
+ data, _status_code, _headers = update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts)
5519
+ data
5520
+ end
5521
+
5522
+ # Update managed member
5523
+ # Use this endpoint to update the attributes of the specified partner_managed &#x60;member&#x60;.
5524
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5525
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5526
+ # @param managed_member_update_request_body [ManagedMemberUpdateRequestBody] Managed member object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5527
+ # @param [Hash] opts the optional parameters
5528
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
5529
+ def update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts = {})
5530
+ if @api_client.config.debugging
5531
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_member ...'
5532
+ end
5533
+ # verify the required parameter 'member_guid' is set
5534
+ if @api_client.config.client_side_validation && member_guid.nil?
5535
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_member"
5536
+ end
5537
+ # verify the required parameter 'user_guid' is set
5538
+ if @api_client.config.client_side_validation && user_guid.nil?
5539
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_member"
5540
+ end
5541
+ # verify the required parameter 'managed_member_update_request_body' is set
5542
+ if @api_client.config.client_side_validation && managed_member_update_request_body.nil?
5543
+ fail ArgumentError, "Missing the required parameter 'managed_member_update_request_body' when calling MxPlatformApi.update_managed_member"
5544
+ end
5545
+ # resource path
5546
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
5547
+
5548
+ # query parameters
5549
+ query_params = opts[:query_params] || {}
5550
+
5551
+ # header parameters
5552
+ header_params = opts[:header_params] || {}
5553
+ # HTTP header 'Accept' (if needed)
5554
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5555
+ # HTTP header 'Content-Type'
5556
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5557
+
5558
+ # form parameters
5559
+ form_params = opts[:form_params] || {}
5560
+
5561
+ # http body (model)
5562
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_update_request_body)
5563
+
5564
+ # return_type
5565
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
5566
+
5567
+ # auth_names
5568
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
5569
+
5570
+ new_options = opts.merge(
5571
+ :operation => :"MxPlatformApi.update_managed_member",
5572
+ :header_params => header_params,
5573
+ :query_params => query_params,
5574
+ :form_params => form_params,
5575
+ :body => post_body,
5576
+ :auth_names => auth_names,
5577
+ :return_type => return_type
5578
+ )
5579
+
5580
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
5581
+ if @api_client.config.debugging
5582
+ @api_client.config.logger.debug "API called: MxPlatformApi#update_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5583
+ end
5584
+ return data, status_code, headers
5585
+ end
5586
+
5587
+ # Update managed transaction
5588
+ # Use this endpoint to update the attributes of the specified partner_managed `transaction`.
5589
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5590
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5591
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
5592
+ # @param managed_transaction_update_request_body [ManagedTransactionUpdateRequestBody] Managed transaction object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5593
+ # @param [Hash] opts the optional parameters
5594
+ # @return [TransactionResponseBody]
5595
+ def update_managed_transaction(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
5596
+ data, _status_code, _headers = update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts)
5597
+ data
5598
+ end
5599
+
5600
+ # Update managed transaction
5601
+ # Use this endpoint to update the attributes of the specified partner_managed &#x60;transaction&#x60;.
5602
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
5603
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
5604
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
5605
+ # @param managed_transaction_update_request_body [ManagedTransactionUpdateRequestBody] Managed transaction object to be updated (While no single parameter is required, the request body can&#39;t be empty)
5606
+ # @param [Hash] opts the optional parameters
5607
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
5608
+ def update_managed_transaction_with_http_info(member_guid, user_guid, transaction_guid, managed_transaction_update_request_body, opts = {})
5609
+ if @api_client.config.debugging
5610
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.update_managed_transaction ...'
5611
+ end
5612
+ # verify the required parameter 'member_guid' is set
5613
+ if @api_client.config.client_side_validation && member_guid.nil?
5614
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MxPlatformApi.update_managed_transaction"
5615
+ end
5616
+ # verify the required parameter 'user_guid' is set
5617
+ if @api_client.config.client_side_validation && user_guid.nil?
5618
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.update_managed_transaction"
5619
+ end
5620
+ # verify the required parameter 'transaction_guid' is set
5621
+ if @api_client.config.client_side_validation && transaction_guid.nil?
5622
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling MxPlatformApi.update_managed_transaction"
5623
+ end
5624
+ # verify the required parameter 'managed_transaction_update_request_body' is set
5625
+ if @api_client.config.client_side_validation && managed_transaction_update_request_body.nil?
5626
+ fail ArgumentError, "Missing the required parameter 'managed_transaction_update_request_body' when calling MxPlatformApi.update_managed_transaction"
5627
+ end
5628
+ # resource path
5629
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/transactions/{transaction_guid}'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s))
5630
+
5631
+ # query parameters
5632
+ query_params = opts[:query_params] || {}
5633
+
5634
+ # header parameters
5635
+ header_params = opts[:header_params] || {}
5636
+ # HTTP header 'Accept' (if needed)
5637
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
5638
+ # HTTP header 'Content-Type'
5639
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5640
+
5641
+ # form parameters
5642
+ form_params = opts[:form_params] || {}
5643
+
5644
+ # http body (model)
5645
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_update_request_body)
5646
+
5647
+ # return_type
5648
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
5649
+
5650
+ # auth_names
5651
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
5652
+
5653
+ new_options = opts.merge(
5654
+ :operation => :"MxPlatformApi.update_managed_transaction",
5655
+ :header_params => header_params,
5656
+ :query_params => query_params,
5657
+ :form_params => form_params,
5658
+ :body => post_body,
5659
+ :auth_names => auth_names,
5660
+ :return_type => return_type
5661
+ )
5662
+
5663
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
5664
+ if @api_client.config.debugging
5665
+ @api_client.config.logger.debug "API called: MxPlatformApi#update_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5666
+ end
5667
+ return data, status_code, headers
5668
+ end
5669
+
4392
5670
  # Update member
4393
5671
  # Use this endpoint to update a members attributes. Only the credentials, id, and metadata parameters can be updated. To get a list of the required credentials for the member, use the list member credentials endpoint.
4394
5672
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.