mx-platform-ruby 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/docs/ACHResponse.md +74 -0
  4. data/docs/ACHReturnCreateRequest.md +48 -0
  5. data/docs/ACHReturnCreateRequestBody.md +18 -0
  6. data/docs/ACHReturnResponseBody.md +18 -0
  7. data/docs/{HoldingsResponseBody.md → ACHReturnsResponseBody.md} +4 -4
  8. data/docs/AccountCreateRequest.md +9 -9
  9. data/docs/AccountNumberResponse.md +3 -3
  10. data/docs/AccountResponse.md +37 -37
  11. data/docs/AccountUpdateRequest.md +30 -30
  12. data/docs/AccountsApi.md +780 -0
  13. data/docs/AchReturnApi.md +234 -0
  14. data/docs/AuthorizationCodeResponseBody.md +1 -1
  15. data/docs/BudgetResponse.md +1 -1
  16. data/docs/BudgetsApi.md +115 -115
  17. data/docs/CategoriesApi.md +600 -0
  18. data/docs/CategoryCreateRequest.md +1 -1
  19. data/docs/CategoryResponse.md +1 -1
  20. data/docs/ConnectWidgetRequest.md +5 -3
  21. data/docs/CreditCardProduct.md +1 -1
  22. data/docs/GoalResponse.md +1 -1
  23. data/docs/GoalsApi.md +117 -113
  24. data/docs/GoalsResponse.md +1 -1
  25. data/docs/ImageOptionResponse.md +0 -2
  26. data/docs/InsightResponse.md +3 -1
  27. data/docs/InsightResponseBody.md +1 -1
  28. data/docs/InsightUpdateRequestBody.md +18 -0
  29. data/docs/InsightsApi.md +170 -91
  30. data/docs/InstitutionResponse.md +15 -7
  31. data/docs/InstitutionsApi.md +319 -0
  32. data/docs/InvestmentHoldingResponse.md +90 -0
  33. data/docs/InvestmentHoldingResponseBody.md +18 -0
  34. data/docs/InvestmentHoldingsApi.md +386 -0
  35. data/docs/InvestmentHoldingsDeactivation.md +20 -0
  36. data/docs/InvestmentHoldingsResponseBody.md +20 -0
  37. data/docs/ManagedAccountCreateRequest.md +15 -15
  38. data/docs/ManagedAccountUpdateRequest.md +14 -14
  39. data/docs/ManagedDataApi.md +1228 -0
  40. data/docs/ManagedTransactionCreateRequest.md +1 -1
  41. data/docs/MemberCreateRequest.md +5 -3
  42. data/docs/MemberCreateRequestBody.md +3 -3
  43. data/docs/MemberElements.md +22 -0
  44. data/docs/MemberResponse.md +1 -3
  45. data/docs/MemberStatusResponse.md +2 -2
  46. data/docs/MemberUpdateRequest.md +4 -2
  47. data/docs/MembersApi.md +997 -0
  48. data/docs/MerchantsApi.md +226 -0
  49. data/docs/{MicrodepositRequest.md → MicrodepositElements.md} +7 -7
  50. data/docs/MicrodepositRequestBody.md +1 -1
  51. data/docs/MicrodepositResponse.md +0 -14
  52. data/docs/MicrodepositResponseBody.md +1 -1
  53. data/docs/MicrodepositResponseBodyMicroDepositInner.md +44 -0
  54. data/docs/MicrodepositVerifyRequest.md +4 -4
  55. data/docs/MicrodepositsApi.md +153 -82
  56. data/docs/MonthlyCashFlowProfileApi.md +151 -0
  57. data/docs/MonthlyCashFlowResponse.md +3 -3
  58. data/docs/NotificationResponse.md +36 -0
  59. data/docs/NotificationResponseBody.md +18 -0
  60. data/docs/NotificationsApi.md +236 -0
  61. data/docs/NotificationsResponseBody.md +18 -0
  62. data/docs/OptionResponse.md +0 -2
  63. data/docs/PaymentAccount.md +34 -0
  64. data/docs/PaymentAccountBody.md +18 -0
  65. data/docs/PaymentAccountBodyPaymentAccount.md +40 -0
  66. data/docs/PaymentProcessorAuthorizationCodeRequest.md +3 -3
  67. data/docs/ProcessorAccountNumber.md +34 -0
  68. data/docs/ProcessorAccountNumberBody.md +18 -0
  69. data/docs/ProcessorAccountNumberBodyAccountNumbersInner.md +40 -0
  70. data/docs/ProcessorOwner.md +34 -0
  71. data/docs/ProcessorOwnerBody.md +20 -0
  72. data/docs/ProcessorOwnerBodyAccountOwnersInner.md +40 -0
  73. data/docs/ProcessorTokenApi.md +490 -0
  74. data/docs/RepeatingTransactionResponse.md +40 -0
  75. data/docs/RepeatingTransactionsResponseBody.md +18 -0
  76. data/docs/{RewardsResponse.md → RewardElements.md} +3 -9
  77. data/docs/RewardResponseBody.md +1 -1
  78. data/docs/RewardsApi.md +299 -0
  79. data/docs/RewardsResponseBody.md +1 -1
  80. data/docs/{RewardResponse.md → RewardsResponseBodyRewardsInner.md} +8 -8
  81. data/docs/ScheduledPaymentsResponseBody.md +3 -3
  82. data/docs/SpendingPlanApi.md +142 -63
  83. data/docs/SpendingPlanIterationItemResponse.md +5 -5
  84. data/docs/StatementsApi.md +309 -0
  85. data/docs/StatementsResponseBody.md +3 -3
  86. data/docs/TaggingsApi.md +377 -0
  87. data/docs/TaggingsResponseBody.md +3 -3
  88. data/docs/TagsApi.md +379 -0
  89. data/docs/TagsResponseBody.md +3 -3
  90. data/docs/TokenRequestBody.md +18 -0
  91. data/docs/TokenResponse.md +24 -0
  92. data/docs/TokenResponseBody.md +18 -0
  93. data/docs/TransactionIncludesResponse.md +112 -0
  94. data/docs/TransactionIncludesResponseAllOfClassification.md +20 -0
  95. data/docs/TransactionIncludesResponseAllOfGeolocation.md +24 -0
  96. data/docs/TransactionIncludesResponseAllOfMerchant.md +24 -0
  97. data/docs/TransactionIncludesResponseAllOfRepeatingTransaction.md +22 -0
  98. data/docs/TransactionResponse.md +38 -36
  99. data/docs/TransactionRulesApi.md +305 -0
  100. data/docs/TransactionRulesResponseBody.md +3 -3
  101. data/docs/TransactionUpdateRequest.md +7 -1
  102. data/docs/TransactionsApi.md +1232 -14
  103. data/docs/TransactionsResponseBody.md +3 -3
  104. data/docs/TransactionsResponseBodyIncludes.md +20 -0
  105. data/docs/UsersApi.md +375 -0
  106. data/docs/UsersResponseBody.md +3 -3
  107. data/docs/VCResponse.md +18 -0
  108. data/docs/VerifiableCredentialsApi.md +232 -0
  109. data/docs/WidgetRequest.md +31 -23
  110. data/docs/WidgetsApi.md +244 -0
  111. data/lib/mx-platform-ruby/api/accounts_api.rb +781 -0
  112. data/lib/mx-platform-ruby/api/ach_return_api.rb +231 -0
  113. data/lib/mx-platform-ruby/api/budgets_api.rb +131 -131
  114. data/lib/mx-platform-ruby/api/categories_api.rb +576 -0
  115. data/lib/mx-platform-ruby/api/goals_api.rb +148 -134
  116. data/lib/mx-platform-ruby/api/insights_api.rb +162 -87
  117. data/lib/mx-platform-ruby/api/institutions_api.rb +301 -0
  118. data/lib/mx-platform-ruby/api/investment_holdings_api.rb +373 -0
  119. data/lib/mx-platform-ruby/api/managed_data_api.rb +1265 -0
  120. data/lib/mx-platform-ruby/api/members_api.rb +977 -0
  121. data/lib/mx-platform-ruby/api/merchants_api.rb +214 -0
  122. data/lib/mx-platform-ruby/api/microdeposits_api.rb +159 -96
  123. data/lib/mx-platform-ruby/api/monthly_cash_flow_profile_api.rb +159 -0
  124. data/lib/mx-platform-ruby/api/notifications_api.rb +243 -0
  125. data/lib/mx-platform-ruby/api/processor_token_api.rb +450 -0
  126. data/lib/mx-platform-ruby/api/rewards_api.rb +298 -0
  127. data/lib/mx-platform-ruby/api/spending_plan_api.rb +139 -64
  128. data/lib/mx-platform-ruby/api/statements_api.rb +316 -0
  129. data/lib/mx-platform-ruby/api/taggings_api.rb +381 -0
  130. data/lib/mx-platform-ruby/api/tags_api.rb +388 -0
  131. data/lib/mx-platform-ruby/api/transaction_rules_api.rb +314 -0
  132. data/lib/mx-platform-ruby/api/transactions_api.rb +1237 -15
  133. data/lib/mx-platform-ruby/api/users_api.rb +367 -0
  134. data/lib/mx-platform-ruby/api/verifiable_credentials_api.rb +235 -0
  135. data/lib/mx-platform-ruby/api/widgets_api.rb +260 -0
  136. data/lib/mx-platform-ruby/api_client.rb +2 -2
  137. data/lib/mx-platform-ruby/api_error.rb +2 -2
  138. data/lib/mx-platform-ruby/configuration.rb +12 -5
  139. data/lib/mx-platform-ruby/models/account_create_request.rb +2 -2
  140. data/lib/mx-platform-ruby/models/account_create_request_body.rb +2 -2
  141. data/lib/mx-platform-ruby/models/account_number_response.rb +13 -13
  142. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +2 -2
  143. data/lib/mx-platform-ruby/models/account_owner_response.rb +2 -2
  144. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +2 -2
  145. data/lib/mx-platform-ruby/models/account_response.rb +2 -2
  146. data/lib/mx-platform-ruby/models/account_response_body.rb +2 -2
  147. data/lib/mx-platform-ruby/models/account_update_request.rb +23 -2
  148. data/lib/mx-platform-ruby/models/account_update_request_body.rb +2 -2
  149. data/lib/mx-platform-ruby/models/accounts_response_body.rb +2 -2
  150. data/lib/mx-platform-ruby/models/ach_response.rb +485 -0
  151. data/lib/mx-platform-ruby/models/ach_return_create_request.rb +400 -0
  152. data/lib/mx-platform-ruby/models/ach_return_create_request_body.rb +214 -0
  153. data/lib/mx-platform-ruby/models/ach_return_response_body.rb +214 -0
  154. data/lib/mx-platform-ruby/models/{holdings_response_body.rb → ach_returns_response_body.rb} +13 -13
  155. data/lib/mx-platform-ruby/models/authorization_code_request.rb +2 -2
  156. data/lib/mx-platform-ruby/models/authorization_code_request_body.rb +2 -2
  157. data/lib/mx-platform-ruby/models/authorization_code_response.rb +2 -2
  158. data/lib/mx-platform-ruby/models/authorization_code_response_body.rb +4 -6
  159. data/lib/mx-platform-ruby/models/budget_create_request.rb +2 -2
  160. data/lib/mx-platform-ruby/models/budget_create_request_body.rb +2 -2
  161. data/lib/mx-platform-ruby/models/budget_response.rb +2 -2
  162. data/lib/mx-platform-ruby/models/budget_response_body.rb +2 -2
  163. data/lib/mx-platform-ruby/models/budget_update_request.rb +2 -2
  164. data/lib/mx-platform-ruby/models/budget_update_request_body.rb +2 -2
  165. data/lib/mx-platform-ruby/models/categories_response_body.rb +2 -2
  166. data/lib/mx-platform-ruby/models/category_create_request.rb +9 -2
  167. data/lib/mx-platform-ruby/models/category_create_request_body.rb +2 -2
  168. data/lib/mx-platform-ruby/models/category_response.rb +3 -2
  169. data/lib/mx-platform-ruby/models/category_response_body.rb +2 -2
  170. data/lib/mx-platform-ruby/models/category_update_request.rb +2 -2
  171. data/lib/mx-platform-ruby/models/category_update_request_body.rb +2 -2
  172. data/lib/mx-platform-ruby/models/challenge_response.rb +2 -2
  173. data/lib/mx-platform-ruby/models/challenges_response_body.rb +2 -2
  174. data/lib/mx-platform-ruby/models/connect_widget_request.rb +13 -3
  175. data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +2 -2
  176. data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -2
  177. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +2 -2
  178. data/lib/mx-platform-ruby/models/credential_request.rb +2 -2
  179. data/lib/mx-platform-ruby/models/credential_response.rb +2 -2
  180. data/lib/mx-platform-ruby/models/credentials_response_body.rb +2 -2
  181. data/lib/mx-platform-ruby/models/credit_card_product.rb +4 -2
  182. data/lib/mx-platform-ruby/models/credit_card_product_response.rb +2 -2
  183. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +2 -2
  184. data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +2 -2
  185. data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +2 -2
  186. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +2 -2
  187. data/lib/mx-platform-ruby/models/goal_request.rb +2 -2
  188. data/lib/mx-platform-ruby/models/goal_request_body.rb +2 -2
  189. data/lib/mx-platform-ruby/models/goal_response.rb +2 -2
  190. data/lib/mx-platform-ruby/models/goal_response_body.rb +2 -2
  191. data/lib/mx-platform-ruby/models/goals_response.rb +2 -2
  192. data/lib/mx-platform-ruby/models/goals_response_body.rb +2 -2
  193. data/lib/mx-platform-ruby/models/image_option_response.rb +3 -13
  194. data/lib/mx-platform-ruby/models/insight_response.rb +13 -3
  195. data/lib/mx-platform-ruby/models/insight_response_body.rb +4 -6
  196. data/lib/mx-platform-ruby/models/insight_update_request.rb +2 -2
  197. data/lib/mx-platform-ruby/models/{tax_document_response_body.rb → insight_update_request_body.rb} +12 -12
  198. data/lib/mx-platform-ruby/models/insights_response_body.rb +2 -2
  199. data/lib/mx-platform-ruby/models/institution_response.rb +35 -3
  200. data/lib/mx-platform-ruby/models/institution_response_body.rb +2 -2
  201. data/lib/mx-platform-ruby/models/institutions_response_body.rb +2 -2
  202. data/lib/mx-platform-ruby/models/investment_holding_response.rb +575 -0
  203. data/lib/mx-platform-ruby/models/investment_holding_response_body.rb +214 -0
  204. data/lib/mx-platform-ruby/models/investment_holdings_deactivation.rb +225 -0
  205. data/lib/mx-platform-ruby/models/investment_holdings_response_body.rb +225 -0
  206. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +9 -2
  207. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +2 -2
  208. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +2 -2
  209. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +2 -2
  210. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +2 -2
  211. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +2 -2
  212. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +2 -2
  213. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +2 -2
  214. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +9 -2
  215. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +2 -2
  216. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +2 -2
  217. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +2 -2
  218. data/lib/mx-platform-ruby/models/member_create_request.rb +40 -6
  219. data/lib/mx-platform-ruby/models/member_create_request_body.rb +3 -2
  220. data/lib/mx-platform-ruby/models/member_elements.rb +232 -0
  221. data/lib/mx-platform-ruby/models/member_response.rb +3 -13
  222. data/lib/mx-platform-ruby/models/member_response_body.rb +2 -2
  223. data/lib/mx-platform-ruby/models/member_resume_request.rb +2 -2
  224. data/lib/mx-platform-ruby/models/member_resume_request_body.rb +2 -2
  225. data/lib/mx-platform-ruby/models/member_status_response.rb +13 -13
  226. data/lib/mx-platform-ruby/models/member_status_response_body.rb +2 -2
  227. data/lib/mx-platform-ruby/models/member_update_request.rb +40 -6
  228. data/lib/mx-platform-ruby/models/member_update_request_body.rb +2 -2
  229. data/lib/mx-platform-ruby/models/members_response_body.rb +2 -2
  230. data/lib/mx-platform-ruby/models/merchant_location_response.rb +2 -2
  231. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +2 -2
  232. data/lib/mx-platform-ruby/models/merchant_response.rb +2 -2
  233. data/lib/mx-platform-ruby/models/merchant_response_body.rb +2 -2
  234. data/lib/mx-platform-ruby/models/merchants_response_body.rb +2 -2
  235. data/lib/mx-platform-ruby/models/{microdeposit_request.rb → microdeposit_elements.rb} +29 -29
  236. data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +3 -3
  237. data/lib/mx-platform-ruby/models/microdeposit_response.rb +5 -66
  238. data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +6 -4
  239. data/lib/mx-platform-ruby/models/microdeposit_response_body_micro_deposit_inner.rb +362 -0
  240. data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +4 -4
  241. data/lib/mx-platform-ruby/models/microdeposit_verify_request_body.rb +2 -2
  242. data/lib/mx-platform-ruby/models/microdeposits_response_body.rb +2 -2
  243. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +2 -2
  244. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +2 -2
  245. data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +4 -3
  246. data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +2 -2
  247. data/lib/mx-platform-ruby/models/notification_response.rb +305 -0
  248. data/lib/mx-platform-ruby/models/{tax_documents_response_body.rb → notification_response_body.rb} +12 -23
  249. data/lib/mx-platform-ruby/models/notifications_response_body.rb +216 -0
  250. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -2
  251. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +2 -2
  252. data/lib/mx-platform-ruby/models/option_response.rb +3 -13
  253. data/lib/mx-platform-ruby/models/pagination_response.rb +2 -2
  254. data/lib/mx-platform-ruby/models/{tax_document_response.rb → payment_account.rb} +66 -76
  255. data/lib/mx-platform-ruby/models/payment_account_body.rb +214 -0
  256. data/lib/mx-platform-ruby/models/payment_account_body_payment_account.rb +330 -0
  257. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +23 -5
  258. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +2 -2
  259. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +2 -2
  260. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +2 -2
  261. data/lib/mx-platform-ruby/models/processor_account_number.rb +292 -0
  262. data/lib/mx-platform-ruby/models/processor_account_number_body.rb +216 -0
  263. data/lib/mx-platform-ruby/models/processor_account_number_body_account_numbers_inner.rb +327 -0
  264. data/lib/mx-platform-ruby/models/processor_owner.rb +295 -0
  265. data/lib/mx-platform-ruby/models/processor_owner_body.rb +225 -0
  266. data/lib/mx-platform-ruby/models/processor_owner_body_account_owners_inner.rb +330 -0
  267. data/lib/mx-platform-ruby/models/{holding_response.rb → repeating_transaction_response.rb} +100 -135
  268. data/lib/mx-platform-ruby/models/repeating_transactions_response_body.rb +216 -0
  269. data/lib/mx-platform-ruby/models/reposition_request.rb +2 -2
  270. data/lib/mx-platform-ruby/models/reposition_request_body.rb +2 -2
  271. data/lib/mx-platform-ruby/models/reposition_response_body.rb +2 -2
  272. data/lib/mx-platform-ruby/models/{rewards_response.rb → reward_elements.rb} +9 -36
  273. data/lib/mx-platform-ruby/models/reward_response_body.rb +3 -3
  274. data/lib/mx-platform-ruby/models/rewards_response_body.rb +3 -3
  275. data/lib/mx-platform-ruby/models/{reward_response.rb → rewards_response_body_rewards_inner.rb} +35 -27
  276. data/lib/mx-platform-ruby/models/scheduled_payment_response.rb +2 -2
  277. data/lib/mx-platform-ruby/models/scheduled_payments_response_body.rb +15 -15
  278. data/lib/mx-platform-ruby/models/spending_plan_account_response.rb +2 -2
  279. data/lib/mx-platform-ruby/models/spending_plan_accounts_response.rb +2 -2
  280. data/lib/mx-platform-ruby/models/spending_plan_iteration_item_create_request_body.rb +2 -2
  281. data/lib/mx-platform-ruby/models/spending_plan_iteration_item_response.rb +2 -2
  282. data/lib/mx-platform-ruby/models/spending_plan_iteration_items_response_body.rb +2 -2
  283. data/lib/mx-platform-ruby/models/spending_plan_iteration_response.rb +2 -2
  284. data/lib/mx-platform-ruby/models/spending_plan_iterations_response.rb +2 -2
  285. data/lib/mx-platform-ruby/models/spending_plan_response.rb +2 -2
  286. data/lib/mx-platform-ruby/models/spending_plans_response_body.rb +2 -2
  287. data/lib/mx-platform-ruby/models/split_transaction_request.rb +2 -2
  288. data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +2 -2
  289. data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +2 -2
  290. data/lib/mx-platform-ruby/models/statement_response.rb +2 -2
  291. data/lib/mx-platform-ruby/models/statement_response_body.rb +2 -2
  292. data/lib/mx-platform-ruby/models/statements_response_body.rb +15 -15
  293. data/lib/mx-platform-ruby/models/tag_create_request.rb +2 -2
  294. data/lib/mx-platform-ruby/models/tag_create_request_body.rb +2 -2
  295. data/lib/mx-platform-ruby/models/tag_response.rb +2 -2
  296. data/lib/mx-platform-ruby/models/tag_response_body.rb +2 -2
  297. data/lib/mx-platform-ruby/models/tag_update_request.rb +2 -2
  298. data/lib/mx-platform-ruby/models/tag_update_request_body.rb +2 -2
  299. data/lib/mx-platform-ruby/models/tagging_create_request.rb +2 -2
  300. data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +2 -2
  301. data/lib/mx-platform-ruby/models/tagging_response.rb +2 -2
  302. data/lib/mx-platform-ruby/models/tagging_response_body.rb +2 -2
  303. data/lib/mx-platform-ruby/models/tagging_update_request.rb +2 -2
  304. data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +2 -2
  305. data/lib/mx-platform-ruby/models/taggings_response_body.rb +15 -15
  306. data/lib/mx-platform-ruby/models/tags_response_body.rb +15 -15
  307. data/lib/mx-platform-ruby/models/{holding_response_body.rb → token_request_body.rb} +12 -12
  308. data/lib/mx-platform-ruby/models/token_response.rb +241 -0
  309. data/lib/mx-platform-ruby/models/token_response_body.rb +216 -0
  310. data/lib/mx-platform-ruby/models/transaction_create_request.rb +2 -2
  311. data/lib/mx-platform-ruby/models/transaction_create_request_body.rb +2 -2
  312. data/lib/mx-platform-ruby/models/transaction_create_response_body.rb +2 -2
  313. data/lib/mx-platform-ruby/models/transaction_includes_response.rb +692 -0
  314. data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_classification.rb +257 -0
  315. data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_geolocation.rb +241 -0
  316. data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_merchant.rb +241 -0
  317. data/lib/mx-platform-ruby/models/transaction_includes_response_all_of_repeating_transaction.rb +278 -0
  318. data/lib/mx-platform-ruby/models/transaction_response.rb +13 -3
  319. data/lib/mx-platform-ruby/models/transaction_response_body.rb +2 -2
  320. data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +2 -2
  321. data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +2 -2
  322. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +2 -2
  323. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +2 -2
  324. data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +2 -2
  325. data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +2 -2
  326. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +15 -15
  327. data/lib/mx-platform-ruby/models/transaction_update_request.rb +30 -10
  328. data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +2 -2
  329. data/lib/mx-platform-ruby/models/transactions_response_body.rb +15 -15
  330. data/lib/mx-platform-ruby/models/transactions_response_body_includes.rb +225 -0
  331. data/lib/mx-platform-ruby/models/update_goal_request.rb +2 -2
  332. data/lib/mx-platform-ruby/models/update_goal_request_body.rb +2 -2
  333. data/lib/mx-platform-ruby/models/user_create_request.rb +2 -2
  334. data/lib/mx-platform-ruby/models/user_create_request_body.rb +2 -2
  335. data/lib/mx-platform-ruby/models/user_response.rb +2 -2
  336. data/lib/mx-platform-ruby/models/user_response_body.rb +2 -2
  337. data/lib/mx-platform-ruby/models/user_update_request.rb +2 -2
  338. data/lib/mx-platform-ruby/models/user_update_request_body.rb +2 -2
  339. data/lib/mx-platform-ruby/models/users_response_body.rb +15 -15
  340. data/lib/mx-platform-ruby/models/vc_response.rb +214 -0
  341. data/lib/mx-platform-ruby/models/widget_request.rb +89 -3
  342. data/lib/mx-platform-ruby/models/widget_request_body.rb +2 -2
  343. data/lib/mx-platform-ruby/models/widget_response.rb +2 -2
  344. data/lib/mx-platform-ruby/models/widget_response_body.rb +2 -2
  345. data/lib/mx-platform-ruby/version.rb +3 -3
  346. data/lib/mx-platform-ruby.rb +60 -12
  347. data/mx-platform-ruby.gemspec +2 -2
  348. data/openapi/config.yml +1 -1
  349. data/spec/api/accounts_api_spec.rb +182 -0
  350. data/spec/api/ach_return_api_spec.rb +77 -0
  351. data/spec/api/budgets_api_spec.rb +38 -38
  352. data/spec/api/categories_api_spec.rb +141 -0
  353. data/spec/api/goals_api_spec.rb +42 -40
  354. data/spec/api/insights_api_spec.rb +53 -38
  355. data/spec/api/institutions_api_spec.rb +94 -0
  356. data/spec/api/investment_holdings_api_spec.rb +104 -0
  357. data/spec/api/managed_data_api_spec.rb +267 -0
  358. data/spec/api/members_api_spec.rb +218 -0
  359. data/spec/api/merchants_api_spec.rb +73 -0
  360. data/spec/api/microdeposits_api_spec.rb +40 -28
  361. data/spec/api/monthly_cash_flow_profile_api_spec.rb +60 -0
  362. data/spec/api/notifications_api_spec.rb +78 -0
  363. data/spec/api/processor_token_api_spec.rb +115 -0
  364. data/spec/api/rewards_api_spec.rb +87 -0
  365. data/spec/api/spending_plan_api_spec.rb +48 -33
  366. data/spec/api/statements_api_spec.rb +91 -0
  367. data/spec/api/taggings_api_spec.rb +102 -0
  368. data/spec/api/tags_api_spec.rb +103 -0
  369. data/spec/api/transaction_rules_api_spec.rb +89 -0
  370. data/spec/api/transactions_api_spec.rb +258 -6
  371. data/spec/api/users_api_spec.rb +101 -0
  372. data/spec/api/verifiable_credentials_api_spec.rb +76 -0
  373. data/spec/api/widgets_api_spec.rb +81 -0
  374. data/spec/models/account_create_request_body_spec.rb +2 -2
  375. data/spec/models/account_create_request_spec.rb +2 -2
  376. data/spec/models/account_number_response_spec.rb +5 -5
  377. data/spec/models/account_numbers_response_body_spec.rb +2 -2
  378. data/spec/models/account_owner_response_spec.rb +2 -2
  379. data/spec/models/account_owners_response_body_spec.rb +2 -2
  380. data/spec/models/account_response_body_spec.rb +2 -2
  381. data/spec/models/account_response_spec.rb +2 -2
  382. data/spec/models/account_update_request_body_spec.rb +2 -2
  383. data/spec/models/account_update_request_spec.rb +2 -2
  384. data/spec/models/accounts_response_body_spec.rb +2 -2
  385. data/spec/models/ach_response_spec.rb +204 -0
  386. data/spec/models/ach_return_create_request_body_spec.rb +36 -0
  387. data/spec/models/{holding_response_spec.rb → ach_return_create_request_spec.rb} +22 -40
  388. data/spec/models/ach_return_response_body_spec.rb +36 -0
  389. data/spec/models/{tax_documents_response_body_spec.rb → ach_returns_response_body_spec.rb} +10 -10
  390. data/spec/models/authorization_code_request_body_spec.rb +2 -2
  391. data/spec/models/authorization_code_request_spec.rb +2 -2
  392. data/spec/models/authorization_code_response_body_spec.rb +2 -2
  393. data/spec/models/authorization_code_response_spec.rb +2 -2
  394. data/spec/models/budget_create_request_body_spec.rb +2 -2
  395. data/spec/models/budget_create_request_spec.rb +2 -2
  396. data/spec/models/budget_response_body_spec.rb +2 -2
  397. data/spec/models/budget_response_spec.rb +2 -2
  398. data/spec/models/budget_update_request_body_spec.rb +2 -2
  399. data/spec/models/budget_update_request_spec.rb +2 -2
  400. data/spec/models/categories_response_body_spec.rb +2 -2
  401. data/spec/models/category_create_request_body_spec.rb +2 -2
  402. data/spec/models/category_create_request_spec.rb +2 -2
  403. data/spec/models/category_response_body_spec.rb +2 -2
  404. data/spec/models/category_response_spec.rb +2 -2
  405. data/spec/models/category_update_request_body_spec.rb +2 -2
  406. data/spec/models/category_update_request_spec.rb +2 -2
  407. data/spec/models/challenge_response_spec.rb +2 -2
  408. data/spec/models/challenges_response_body_spec.rb +2 -2
  409. data/spec/models/connect_widget_request_body_spec.rb +2 -2
  410. data/spec/models/connect_widget_request_spec.rb +8 -2
  411. data/spec/models/connect_widget_response_body_spec.rb +2 -2
  412. data/spec/models/connect_widget_response_spec.rb +2 -2
  413. data/spec/models/credential_request_spec.rb +2 -2
  414. data/spec/models/credential_response_spec.rb +2 -2
  415. data/spec/models/credentials_response_body_spec.rb +2 -2
  416. data/spec/models/credit_card_product_response_spec.rb +2 -2
  417. data/spec/models/credit_card_product_spec.rb +2 -2
  418. data/spec/models/enhance_transaction_response_spec.rb +2 -2
  419. data/spec/models/enhance_transactions_request_body_spec.rb +2 -2
  420. data/spec/models/enhance_transactions_request_spec.rb +2 -2
  421. data/spec/models/enhance_transactions_response_body_spec.rb +2 -2
  422. data/spec/models/goal_request_body_spec.rb +2 -2
  423. data/spec/models/goal_request_spec.rb +2 -2
  424. data/spec/models/goal_response_body_spec.rb +2 -2
  425. data/spec/models/goal_response_spec.rb +2 -2
  426. data/spec/models/goals_response_body_spec.rb +2 -2
  427. data/spec/models/goals_response_spec.rb +2 -2
  428. data/spec/models/image_option_response_spec.rb +2 -8
  429. data/spec/models/insight_response_body_spec.rb +2 -2
  430. data/spec/models/insight_response_spec.rb +8 -2
  431. data/spec/models/insight_update_request_body_spec.rb +36 -0
  432. data/spec/models/insight_update_request_spec.rb +2 -2
  433. data/spec/models/insights_response_body_spec.rb +2 -2
  434. data/spec/models/institution_response_body_spec.rb +2 -2
  435. data/spec/models/institution_response_spec.rb +20 -2
  436. data/spec/models/institutions_response_body_spec.rb +2 -2
  437. data/spec/models/investment_holding_response_body_spec.rb +36 -0
  438. data/spec/models/investment_holding_response_spec.rb +252 -0
  439. data/spec/models/investment_holdings_deactivation_spec.rb +42 -0
  440. data/spec/models/investment_holdings_response_body_spec.rb +42 -0
  441. data/spec/models/managed_account_create_request_body_spec.rb +2 -2
  442. data/spec/models/managed_account_create_request_spec.rb +2 -2
  443. data/spec/models/managed_account_update_request_body_spec.rb +2 -2
  444. data/spec/models/managed_account_update_request_spec.rb +2 -2
  445. data/spec/models/managed_member_create_request_body_spec.rb +2 -2
  446. data/spec/models/managed_member_create_request_spec.rb +2 -2
  447. data/spec/models/managed_member_update_request_body_spec.rb +2 -2
  448. data/spec/models/managed_member_update_request_spec.rb +2 -2
  449. data/spec/models/managed_transaction_create_request_body_spec.rb +2 -2
  450. data/spec/models/managed_transaction_create_request_spec.rb +2 -2
  451. data/spec/models/managed_transaction_update_request_body_spec.rb +2 -2
  452. data/spec/models/managed_transaction_update_request_spec.rb +2 -2
  453. data/spec/models/member_create_request_body_spec.rb +2 -2
  454. data/spec/models/member_create_request_spec.rb +12 -2
  455. data/spec/models/member_elements_spec.rb +48 -0
  456. data/spec/models/member_response_body_spec.rb +2 -2
  457. data/spec/models/member_response_spec.rb +2 -8
  458. data/spec/models/member_resume_request_body_spec.rb +2 -2
  459. data/spec/models/member_resume_request_spec.rb +2 -2
  460. data/spec/models/member_status_response_body_spec.rb +2 -2
  461. data/spec/models/member_status_response_spec.rb +4 -4
  462. data/spec/models/member_update_request_body_spec.rb +2 -2
  463. data/spec/models/member_update_request_spec.rb +12 -2
  464. data/spec/models/members_response_body_spec.rb +2 -2
  465. data/spec/models/merchant_location_response_body_spec.rb +2 -2
  466. data/spec/models/merchant_location_response_spec.rb +2 -2
  467. data/spec/models/merchant_response_body_spec.rb +2 -2
  468. data/spec/models/merchant_response_spec.rb +2 -2
  469. data/spec/models/merchants_response_body_spec.rb +2 -2
  470. data/spec/models/{microdeposit_request_spec.rb → microdeposit_elements_spec.rb} +15 -15
  471. data/spec/models/microdeposit_request_body_spec.rb +2 -2
  472. data/spec/models/microdeposit_response_body_micro_deposit_inner_spec.rb +114 -0
  473. data/spec/models/microdeposit_response_body_spec.rb +2 -2
  474. data/spec/models/microdeposit_response_spec.rb +2 -44
  475. data/spec/models/microdeposit_verify_request_body_spec.rb +2 -2
  476. data/spec/models/microdeposit_verify_request_spec.rb +2 -2
  477. data/spec/models/microdeposits_response_body_spec.rb +2 -2
  478. data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +2 -2
  479. data/spec/models/monthly_cash_flow_profile_request_spec.rb +2 -2
  480. data/spec/models/monthly_cash_flow_response_body_spec.rb +2 -2
  481. data/spec/models/monthly_cash_flow_response_spec.rb +2 -2
  482. data/spec/models/notification_response_body_spec.rb +36 -0
  483. data/spec/models/{tax_document_response_spec.rb → notification_response_spec.rb} +18 -18
  484. data/spec/models/notifications_response_body_spec.rb +36 -0
  485. data/spec/models/o_auth_window_response_body_spec.rb +2 -2
  486. data/spec/models/o_auth_window_response_spec.rb +2 -2
  487. data/spec/models/option_response_spec.rb +2 -8
  488. data/spec/models/pagination_response_spec.rb +2 -2
  489. data/spec/models/{reward_response_spec.rb → payment_account_body_payment_account_spec.rb} +24 -18
  490. data/spec/models/payment_account_body_spec.rb +36 -0
  491. data/spec/models/payment_account_spec.rb +84 -0
  492. data/spec/models/payment_processor_authorization_code_request_body_spec.rb +2 -2
  493. data/spec/models/payment_processor_authorization_code_request_spec.rb +2 -2
  494. data/spec/models/payment_processor_authorization_code_response_body_spec.rb +2 -2
  495. data/spec/models/payment_processor_authorization_code_response_spec.rb +2 -2
  496. data/spec/models/processor_account_number_body_account_numbers_inner_spec.rb +102 -0
  497. data/spec/models/processor_account_number_body_spec.rb +36 -0
  498. data/spec/models/processor_account_number_spec.rb +84 -0
  499. data/spec/models/processor_owner_body_account_owners_inner_spec.rb +102 -0
  500. data/spec/models/{holdings_response_body_spec.rb → processor_owner_body_spec.rb} +9 -9
  501. data/spec/models/processor_owner_spec.rb +84 -0
  502. data/spec/models/repeating_transaction_response_spec.rb +110 -0
  503. data/spec/models/repeating_transactions_response_body_spec.rb +36 -0
  504. data/spec/models/reposition_request_body_spec.rb +2 -2
  505. data/spec/models/reposition_request_spec.rb +2 -2
  506. data/spec/models/reposition_response_body_spec.rb +2 -2
  507. data/spec/models/reward_elements_spec.rb +78 -0
  508. data/spec/models/reward_response_body_spec.rb +2 -2
  509. data/spec/models/{rewards_response_spec.rb → rewards_response_body_rewards_inner_spec.rb} +18 -18
  510. data/spec/models/rewards_response_body_spec.rb +2 -2
  511. data/spec/models/scheduled_payment_response_spec.rb +2 -2
  512. data/spec/models/scheduled_payments_response_body_spec.rb +4 -4
  513. data/spec/models/spending_plan_account_response_spec.rb +2 -2
  514. data/spec/models/spending_plan_accounts_response_spec.rb +2 -2
  515. data/spec/models/spending_plan_iteration_item_create_request_body_spec.rb +2 -2
  516. data/spec/models/spending_plan_iteration_item_response_spec.rb +2 -2
  517. data/spec/models/spending_plan_iteration_items_response_body_spec.rb +2 -2
  518. data/spec/models/spending_plan_iteration_response_spec.rb +2 -2
  519. data/spec/models/spending_plan_iterations_response_spec.rb +2 -2
  520. data/spec/models/spending_plan_response_spec.rb +2 -2
  521. data/spec/models/spending_plans_response_body_spec.rb +2 -2
  522. data/spec/models/split_transaction_request_body_spec.rb +2 -2
  523. data/spec/models/split_transaction_request_spec.rb +2 -2
  524. data/spec/models/split_transactions_response_body_spec.rb +2 -2
  525. data/spec/models/statement_response_body_spec.rb +2 -2
  526. data/spec/models/statement_response_spec.rb +2 -2
  527. data/spec/models/statements_response_body_spec.rb +4 -4
  528. data/spec/models/tag_create_request_body_spec.rb +2 -2
  529. data/spec/models/tag_create_request_spec.rb +2 -2
  530. data/spec/models/tag_response_body_spec.rb +2 -2
  531. data/spec/models/tag_response_spec.rb +2 -2
  532. data/spec/models/tag_update_request_body_spec.rb +2 -2
  533. data/spec/models/tag_update_request_spec.rb +2 -2
  534. data/spec/models/tagging_create_request_body_spec.rb +2 -2
  535. data/spec/models/tagging_create_request_spec.rb +2 -2
  536. data/spec/models/tagging_response_body_spec.rb +2 -2
  537. data/spec/models/tagging_response_spec.rb +2 -2
  538. data/spec/models/tagging_update_request_body_spec.rb +2 -2
  539. data/spec/models/tagging_update_request_spec.rb +2 -2
  540. data/spec/models/taggings_response_body_spec.rb +4 -4
  541. data/spec/models/tags_response_body_spec.rb +4 -4
  542. data/spec/models/{tax_document_response_body_spec.rb → token_request_body_spec.rb} +9 -9
  543. data/spec/models/token_response_body_spec.rb +36 -0
  544. data/spec/models/token_response_spec.rb +54 -0
  545. data/spec/models/transaction_create_request_body_spec.rb +2 -2
  546. data/spec/models/transaction_create_request_spec.rb +2 -2
  547. data/spec/models/transaction_create_response_body_spec.rb +2 -2
  548. data/spec/models/transaction_includes_response_all_of_classification_spec.rb +46 -0
  549. data/spec/models/transaction_includes_response_all_of_geolocation_spec.rb +54 -0
  550. data/spec/models/transaction_includes_response_all_of_merchant_spec.rb +54 -0
  551. data/spec/models/transaction_includes_response_all_of_repeating_transaction_spec.rb +56 -0
  552. data/spec/models/transaction_includes_response_spec.rb +318 -0
  553. data/spec/models/transaction_response_body_spec.rb +2 -2
  554. data/spec/models/transaction_response_spec.rb +8 -2
  555. data/spec/models/transaction_rule_create_request_body_spec.rb +2 -2
  556. data/spec/models/transaction_rule_create_request_spec.rb +2 -2
  557. data/spec/models/transaction_rule_response_body_spec.rb +2 -2
  558. data/spec/models/transaction_rule_response_spec.rb +2 -2
  559. data/spec/models/transaction_rule_update_request_body_spec.rb +2 -2
  560. data/spec/models/transaction_rule_update_request_spec.rb +2 -2
  561. data/spec/models/transaction_rules_response_body_spec.rb +4 -4
  562. data/spec/models/transaction_update_request_body_spec.rb +2 -2
  563. data/spec/models/transaction_update_request_spec.rb +20 -2
  564. data/spec/models/transactions_response_body_includes_spec.rb +42 -0
  565. data/spec/models/transactions_response_body_spec.rb +4 -4
  566. data/spec/models/update_goal_request_body_spec.rb +2 -2
  567. data/spec/models/update_goal_request_spec.rb +2 -2
  568. data/spec/models/user_create_request_body_spec.rb +2 -2
  569. data/spec/models/user_create_request_spec.rb +2 -2
  570. data/spec/models/user_response_body_spec.rb +2 -2
  571. data/spec/models/user_response_spec.rb +2 -2
  572. data/spec/models/user_update_request_body_spec.rb +2 -2
  573. data/spec/models/user_update_request_spec.rb +2 -2
  574. data/spec/models/users_response_body_spec.rb +4 -4
  575. data/spec/models/{holding_response_body_spec.rb → vc_response_spec.rb} +9 -9
  576. data/spec/models/widget_request_body_spec.rb +2 -2
  577. data/spec/models/widget_request_spec.rb +30 -2
  578. data/spec/models/widget_response_body_spec.rb +2 -2
  579. data/spec/models/widget_response_spec.rb +2 -2
  580. data/spec/spec_helper.rb +2 -2
  581. metadata +233 -41
  582. data/docs/HoldingResponse.md +0 -54
  583. data/docs/HoldingResponseBody.md +0 -18
  584. data/docs/MxPlatformApi.md +0 -8065
  585. data/docs/TaxDocumentResponse.md +0 -36
  586. data/docs/TaxDocumentResponseBody.md +0 -18
  587. data/docs/TaxDocumentsResponseBody.md +0 -20
  588. data/lib/mx-platform-ruby/api/mx_platform_api.rb +0 -7795
  589. data/spec/api/mx_platform_api_spec.rb +0 -1519
@@ -0,0 +1,1265 @@
1
+ =begin
2
+ #MX Platform API
3
+
4
+ #The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. Just getting started? See our [use case guides](/use-cases/).
5
+
6
+ The version of the OpenAPI document: 20111101
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MxPlatformRuby
16
+ class ManagedDataApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create managed account
23
+ # Use this endpoint to create a partner-managed account.
24
+ # @param member_guid [String] The unique id for a `member`.
25
+ # @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
26
+ # @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [AccountResponseBody]
29
+ def create_managed_account(member_guid, user_guid, managed_account_create_request_body, opts = {})
30
+ data, _status_code, _headers = create_managed_account_with_http_info(member_guid, user_guid, managed_account_create_request_body, opts)
31
+ data
32
+ end
33
+
34
+ # Create managed account
35
+ # Use this endpoint to create a partner-managed account.
36
+ # @param member_guid [String] The unique id for a `member`.
37
+ # @param user_guid [String] The unique identifier for a `user`, beginning with the prefix `USR-`.
38
+ # @param managed_account_create_request_body [ManagedAccountCreateRequestBody] Managed account to be created.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
41
+ def create_managed_account_with_http_info(member_guid, user_guid, managed_account_create_request_body, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.create_managed_account ...'
44
+ end
45
+ # verify the required parameter 'member_guid' is set
46
+ if @api_client.config.client_side_validation && member_guid.nil?
47
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.create_managed_account"
48
+ end
49
+ # verify the required parameter 'user_guid' is set
50
+ if @api_client.config.client_side_validation && user_guid.nil?
51
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.create_managed_account"
52
+ end
53
+ # verify the required parameter 'managed_account_create_request_body' is set
54
+ if @api_client.config.client_side_validation && managed_account_create_request_body.nil?
55
+ fail ArgumentError, "Missing the required parameter 'managed_account_create_request_body' when calling ManagedDataApi.create_managed_account"
56
+ end
57
+ # resource path
58
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
59
+
60
+ # query parameters
61
+ query_params = opts[:query_params] || {}
62
+
63
+ # header parameters
64
+ header_params = opts[:header_params] || {}
65
+ # HTTP header 'Accept' (if needed)
66
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
67
+ # HTTP header 'Content-Type'
68
+ content_type = @api_client.select_header_content_type(['application/json'])
69
+ if !content_type.nil?
70
+ header_params['Content-Type'] = content_type
71
+ end
72
+
73
+ # form parameters
74
+ form_params = opts[:form_params] || {}
75
+
76
+ # http body (model)
77
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_create_request_body)
78
+
79
+ # return_type
80
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
81
+
82
+ # auth_names
83
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
84
+
85
+ new_options = opts.merge(
86
+ :operation => :"ManagedDataApi.create_managed_account",
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: ManagedDataApi#create_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # Create managed member
103
+ # Use this endpoint to create a new partner-managed `member`.
104
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
105
+ # @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [MemberResponseBody]
108
+ def create_managed_member(user_guid, managed_member_create_request_body, opts = {})
109
+ data, _status_code, _headers = create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts)
110
+ data
111
+ end
112
+
113
+ # Create managed member
114
+ # Use this endpoint to create a new partner-managed &#x60;member&#x60;.
115
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
116
+ # @param managed_member_create_request_body [ManagedMemberCreateRequestBody] Managed member to be created.
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
119
+ def create_managed_member_with_http_info(user_guid, managed_member_create_request_body, opts = {})
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.create_managed_member ...'
122
+ end
123
+ # verify the required parameter 'user_guid' is set
124
+ if @api_client.config.client_side_validation && user_guid.nil?
125
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.create_managed_member"
126
+ end
127
+ # verify the required parameter 'managed_member_create_request_body' is set
128
+ if @api_client.config.client_side_validation && managed_member_create_request_body.nil?
129
+ fail ArgumentError, "Missing the required parameter 'managed_member_create_request_body' when calling ManagedDataApi.create_managed_member"
130
+ end
131
+ # resource path
132
+ local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
133
+
134
+ # query parameters
135
+ query_params = opts[:query_params] || {}
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
141
+ # HTTP header 'Content-Type'
142
+ content_type = @api_client.select_header_content_type(['application/json'])
143
+ if !content_type.nil?
144
+ header_params['Content-Type'] = content_type
145
+ end
146
+
147
+ # form parameters
148
+ form_params = opts[:form_params] || {}
149
+
150
+ # http body (model)
151
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_create_request_body)
152
+
153
+ # return_type
154
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
155
+
156
+ # auth_names
157
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
158
+
159
+ new_options = opts.merge(
160
+ :operation => :"ManagedDataApi.create_managed_member",
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => return_type
167
+ )
168
+
169
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: ManagedDataApi#create_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+
176
+ # Create managed transaction
177
+ # Use this endpoint to create a new partner-managed `transaction`.
178
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
179
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
180
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
181
+ # @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
182
+ # @param [Hash] opts the optional parameters
183
+ # @return [TransactionResponseBody]
184
+ def create_managed_transaction(account_guid, member_guid, user_guid, managed_transaction_create_request_body, opts = {})
185
+ data, _status_code, _headers = create_managed_transaction_with_http_info(account_guid, member_guid, user_guid, managed_transaction_create_request_body, opts)
186
+ data
187
+ end
188
+
189
+ # Create managed transaction
190
+ # Use this endpoint to create a new partner-managed &#x60;transaction&#x60;.
191
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
192
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
193
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
194
+ # @param managed_transaction_create_request_body [ManagedTransactionCreateRequestBody] Managed transaction to be created.
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
197
+ def create_managed_transaction_with_http_info(account_guid, member_guid, user_guid, managed_transaction_create_request_body, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.create_managed_transaction ...'
200
+ end
201
+ # verify the required parameter 'account_guid' is set
202
+ if @api_client.config.client_side_validation && account_guid.nil?
203
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.create_managed_transaction"
204
+ end
205
+ # verify the required parameter 'member_guid' is set
206
+ if @api_client.config.client_side_validation && member_guid.nil?
207
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.create_managed_transaction"
208
+ end
209
+ # verify the required parameter 'user_guid' is set
210
+ if @api_client.config.client_side_validation && user_guid.nil?
211
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.create_managed_transaction"
212
+ end
213
+ # verify the required parameter 'managed_transaction_create_request_body' is set
214
+ if @api_client.config.client_side_validation && managed_transaction_create_request_body.nil?
215
+ fail ArgumentError, "Missing the required parameter 'managed_transaction_create_request_body' when calling ManagedDataApi.create_managed_transaction"
216
+ end
217
+ # resource path
218
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
219
+
220
+ # query parameters
221
+ query_params = opts[:query_params] || {}
222
+
223
+ # header parameters
224
+ header_params = opts[:header_params] || {}
225
+ # HTTP header 'Accept' (if needed)
226
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
227
+ # HTTP header 'Content-Type'
228
+ content_type = @api_client.select_header_content_type(['application/json'])
229
+ if !content_type.nil?
230
+ header_params['Content-Type'] = content_type
231
+ end
232
+
233
+ # form parameters
234
+ form_params = opts[:form_params] || {}
235
+
236
+ # http body (model)
237
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_create_request_body)
238
+
239
+ # return_type
240
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
241
+
242
+ # auth_names
243
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
244
+
245
+ new_options = opts.merge(
246
+ :operation => :"ManagedDataApi.create_managed_transaction",
247
+ :header_params => header_params,
248
+ :query_params => query_params,
249
+ :form_params => form_params,
250
+ :body => post_body,
251
+ :auth_names => auth_names,
252
+ :return_type => return_type
253
+ )
254
+
255
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug "API called: ManagedDataApi#create_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
+ end
259
+ return data, status_code, headers
260
+ end
261
+
262
+ # Delete managed account
263
+ # 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`.
264
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
265
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
266
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
267
+ # @param [Hash] opts the optional parameters
268
+ # @return [nil]
269
+ def delete_managed_account(account_guid, member_guid, user_guid, opts = {})
270
+ delete_managed_account_with_http_info(account_guid, member_guid, user_guid, opts)
271
+ nil
272
+ end
273
+
274
+ # Delete managed account
275
+ # 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;.
276
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
277
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
278
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
279
+ # @param [Hash] opts the optional parameters
280
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
281
+ def delete_managed_account_with_http_info(account_guid, member_guid, user_guid, opts = {})
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.delete_managed_account ...'
284
+ end
285
+ # verify the required parameter 'account_guid' is set
286
+ if @api_client.config.client_side_validation && account_guid.nil?
287
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.delete_managed_account"
288
+ end
289
+ # verify the required parameter 'member_guid' is set
290
+ if @api_client.config.client_side_validation && member_guid.nil?
291
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.delete_managed_account"
292
+ end
293
+ # verify the required parameter 'user_guid' is set
294
+ if @api_client.config.client_side_validation && user_guid.nil?
295
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.delete_managed_account"
296
+ end
297
+ # resource path
298
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+
306
+ # form parameters
307
+ form_params = opts[:form_params] || {}
308
+
309
+ # http body (model)
310
+ post_body = opts[:debug_body]
311
+
312
+ # return_type
313
+ return_type = opts[:debug_return_type]
314
+
315
+ # auth_names
316
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
317
+
318
+ new_options = opts.merge(
319
+ :operation => :"ManagedDataApi.delete_managed_account",
320
+ :header_params => header_params,
321
+ :query_params => query_params,
322
+ :form_params => form_params,
323
+ :body => post_body,
324
+ :auth_names => auth_names,
325
+ :return_type => return_type
326
+ )
327
+
328
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
329
+ if @api_client.config.debugging
330
+ @api_client.config.logger.debug "API called: ManagedDataApi#delete_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
+ end
332
+ return data, status_code, headers
333
+ end
334
+
335
+ # Delete managed member
336
+ # Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
337
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
338
+ # @param accept [String] Specifies the media type expected in the response.
339
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
340
+ # @param [Hash] opts the optional parameters
341
+ # @return [nil]
342
+ def delete_managed_member(member_guid, accept, user_guid, opts = {})
343
+ delete_managed_member_with_http_info(member_guid, accept, user_guid, opts)
344
+ nil
345
+ end
346
+
347
+ # Delete managed member
348
+ # 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.
349
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
350
+ # @param accept [String] Specifies the media type expected in the response.
351
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
352
+ # @param [Hash] opts the optional parameters
353
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
354
+ def delete_managed_member_with_http_info(member_guid, accept, user_guid, opts = {})
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.delete_managed_member ...'
357
+ end
358
+ # verify the required parameter 'member_guid' is set
359
+ if @api_client.config.client_side_validation && member_guid.nil?
360
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.delete_managed_member"
361
+ end
362
+ # verify the required parameter 'accept' is set
363
+ if @api_client.config.client_side_validation && accept.nil?
364
+ fail ArgumentError, "Missing the required parameter 'accept' when calling ManagedDataApi.delete_managed_member"
365
+ end
366
+ # verify the required parameter 'user_guid' is set
367
+ if @api_client.config.client_side_validation && user_guid.nil?
368
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.delete_managed_member"
369
+ end
370
+ # resource path
371
+ 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))
372
+
373
+ # query parameters
374
+ query_params = opts[:query_params] || {}
375
+
376
+ # header parameters
377
+ header_params = opts[:header_params] || {}
378
+ header_params[:'Accept'] = accept
379
+
380
+ # form parameters
381
+ form_params = opts[:form_params] || {}
382
+
383
+ # http body (model)
384
+ post_body = opts[:debug_body]
385
+
386
+ # return_type
387
+ return_type = opts[:debug_return_type]
388
+
389
+ # auth_names
390
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
391
+
392
+ new_options = opts.merge(
393
+ :operation => :"ManagedDataApi.delete_managed_member",
394
+ :header_params => header_params,
395
+ :query_params => query_params,
396
+ :form_params => form_params,
397
+ :body => post_body,
398
+ :auth_names => auth_names,
399
+ :return_type => return_type
400
+ )
401
+
402
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
403
+ if @api_client.config.debugging
404
+ @api_client.config.logger.debug "API called: ManagedDataApi#delete_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
+ end
406
+ return data, status_code, headers
407
+ end
408
+
409
+ # Delete managed transaction
410
+ # Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
411
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
412
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
413
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
414
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
415
+ # @param [Hash] opts the optional parameters
416
+ # @return [nil]
417
+ def delete_managed_transaction(account_guid, member_guid, transaction_guid, user_guid, opts = {})
418
+ delete_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, opts)
419
+ nil
420
+ end
421
+
422
+ # Delete managed transaction
423
+ # 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.
424
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
425
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
426
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
427
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
428
+ # @param [Hash] opts the optional parameters
429
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
430
+ def delete_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, opts = {})
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.delete_managed_transaction ...'
433
+ end
434
+ # verify the required parameter 'account_guid' is set
435
+ if @api_client.config.client_side_validation && account_guid.nil?
436
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.delete_managed_transaction"
437
+ end
438
+ # verify the required parameter 'member_guid' is set
439
+ if @api_client.config.client_side_validation && member_guid.nil?
440
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.delete_managed_transaction"
441
+ end
442
+ # verify the required parameter 'transaction_guid' is set
443
+ if @api_client.config.client_side_validation && transaction_guid.nil?
444
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling ManagedDataApi.delete_managed_transaction"
445
+ end
446
+ # verify the required parameter 'user_guid' is set
447
+ if @api_client.config.client_side_validation && user_guid.nil?
448
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.delete_managed_transaction"
449
+ end
450
+ # resource path
451
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions/{transaction_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
452
+
453
+ # query parameters
454
+ query_params = opts[:query_params] || {}
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+
459
+ # form parameters
460
+ form_params = opts[:form_params] || {}
461
+
462
+ # http body (model)
463
+ post_body = opts[:debug_body]
464
+
465
+ # return_type
466
+ return_type = opts[:debug_return_type]
467
+
468
+ # auth_names
469
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
470
+
471
+ new_options = opts.merge(
472
+ :operation => :"ManagedDataApi.delete_managed_transaction",
473
+ :header_params => header_params,
474
+ :query_params => query_params,
475
+ :form_params => form_params,
476
+ :body => post_body,
477
+ :auth_names => auth_names,
478
+ :return_type => return_type
479
+ )
480
+
481
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
482
+ if @api_client.config.debugging
483
+ @api_client.config.logger.debug "API called: ManagedDataApi#delete_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ end
485
+ return data, status_code, headers
486
+ end
487
+
488
+ # List managed accounts
489
+ # Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-managed member.
490
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
491
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
492
+ # @param [Hash] opts the optional parameters
493
+ # @option opts [Integer] :page Results are paginated. Specify current page.
494
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
495
+ # @return [AccountsResponseBody]
496
+ def list_managed_accounts(member_guid, user_guid, opts = {})
497
+ data, _status_code, _headers = list_managed_accounts_with_http_info(member_guid, user_guid, opts)
498
+ data
499
+ end
500
+
501
+ # List managed accounts
502
+ # Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-managed member.
503
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
504
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
505
+ # @param [Hash] opts the optional parameters
506
+ # @option opts [Integer] :page Results are paginated. Specify current page.
507
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
508
+ # @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
509
+ def list_managed_accounts_with_http_info(member_guid, user_guid, opts = {})
510
+ if @api_client.config.debugging
511
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.list_managed_accounts ...'
512
+ end
513
+ # verify the required parameter 'member_guid' is set
514
+ if @api_client.config.client_side_validation && member_guid.nil?
515
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.list_managed_accounts"
516
+ end
517
+ # verify the required parameter 'user_guid' is set
518
+ if @api_client.config.client_side_validation && user_guid.nil?
519
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.list_managed_accounts"
520
+ end
521
+ # resource path
522
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts'.sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
523
+
524
+ # query parameters
525
+ query_params = opts[:query_params] || {}
526
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
527
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
528
+
529
+ # header parameters
530
+ header_params = opts[:header_params] || {}
531
+ # HTTP header 'Accept' (if needed)
532
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
533
+
534
+ # form parameters
535
+ form_params = opts[:form_params] || {}
536
+
537
+ # http body (model)
538
+ post_body = opts[:debug_body]
539
+
540
+ # return_type
541
+ return_type = opts[:debug_return_type] || 'AccountsResponseBody'
542
+
543
+ # auth_names
544
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
545
+
546
+ new_options = opts.merge(
547
+ :operation => :"ManagedDataApi.list_managed_accounts",
548
+ :header_params => header_params,
549
+ :query_params => query_params,
550
+ :form_params => form_params,
551
+ :body => post_body,
552
+ :auth_names => auth_names,
553
+ :return_type => return_type
554
+ )
555
+
556
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
557
+ if @api_client.config.debugging
558
+ @api_client.config.logger.debug "API called: ManagedDataApi#list_managed_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
559
+ end
560
+ return data, status_code, headers
561
+ end
562
+
563
+ # List managed institutions
564
+ # This endpoint returns a list of institutions which can be used to create partner-managed members.
565
+ # @param [Hash] opts the optional parameters
566
+ # @option opts [Integer] :page Results are paginated. Specify current page.
567
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
568
+ # @return [InstitutionsResponseBody]
569
+ def list_managed_institutions(opts = {})
570
+ data, _status_code, _headers = list_managed_institutions_with_http_info(opts)
571
+ data
572
+ end
573
+
574
+ # List managed institutions
575
+ # This endpoint returns a list of institutions which can be used to create partner-managed members.
576
+ # @param [Hash] opts the optional parameters
577
+ # @option opts [Integer] :page Results are paginated. Specify current page.
578
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
579
+ # @return [Array<(InstitutionsResponseBody, Integer, Hash)>] InstitutionsResponseBody data, response status code and response headers
580
+ def list_managed_institutions_with_http_info(opts = {})
581
+ if @api_client.config.debugging
582
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.list_managed_institutions ...'
583
+ end
584
+ # resource path
585
+ local_var_path = '/managed_institutions'
586
+
587
+ # query parameters
588
+ query_params = opts[:query_params] || {}
589
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
590
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
591
+
592
+ # header parameters
593
+ header_params = opts[:header_params] || {}
594
+ # HTTP header 'Accept' (if needed)
595
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
596
+
597
+ # form parameters
598
+ form_params = opts[:form_params] || {}
599
+
600
+ # http body (model)
601
+ post_body = opts[:debug_body]
602
+
603
+ # return_type
604
+ return_type = opts[:debug_return_type] || 'InstitutionsResponseBody'
605
+
606
+ # auth_names
607
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
608
+
609
+ new_options = opts.merge(
610
+ :operation => :"ManagedDataApi.list_managed_institutions",
611
+ :header_params => header_params,
612
+ :query_params => query_params,
613
+ :form_params => form_params,
614
+ :body => post_body,
615
+ :auth_names => auth_names,
616
+ :return_type => return_type
617
+ )
618
+
619
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
620
+ if @api_client.config.debugging
621
+ @api_client.config.logger.debug "API called: ManagedDataApi#list_managed_institutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
622
+ end
623
+ return data, status_code, headers
624
+ end
625
+
626
+ # List managed members
627
+ # This endpoint returns a list of all the partner-managed members associated with the specified `user`.
628
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
629
+ # @param [Hash] opts the optional parameters
630
+ # @option opts [Integer] :page Results are paginated. Specify current page.
631
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
632
+ # @return [MembersResponseBody]
633
+ def list_managed_members(user_guid, opts = {})
634
+ data, _status_code, _headers = list_managed_members_with_http_info(user_guid, opts)
635
+ data
636
+ end
637
+
638
+ # List managed members
639
+ # This endpoint returns a list of all the partner-managed members associated with the specified &#x60;user&#x60;.
640
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
641
+ # @param [Hash] opts the optional parameters
642
+ # @option opts [Integer] :page Results are paginated. Specify current page.
643
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
644
+ # @return [Array<(MembersResponseBody, Integer, Hash)>] MembersResponseBody data, response status code and response headers
645
+ def list_managed_members_with_http_info(user_guid, opts = {})
646
+ if @api_client.config.debugging
647
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.list_managed_members ...'
648
+ end
649
+ # verify the required parameter 'user_guid' is set
650
+ if @api_client.config.client_side_validation && user_guid.nil?
651
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.list_managed_members"
652
+ end
653
+ # resource path
654
+ local_var_path = '/users/{user_guid}/managed_members'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
655
+
656
+ # query parameters
657
+ query_params = opts[:query_params] || {}
658
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
659
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
660
+
661
+ # header parameters
662
+ header_params = opts[:header_params] || {}
663
+ # HTTP header 'Accept' (if needed)
664
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
665
+
666
+ # form parameters
667
+ form_params = opts[:form_params] || {}
668
+
669
+ # http body (model)
670
+ post_body = opts[:debug_body]
671
+
672
+ # return_type
673
+ return_type = opts[:debug_return_type] || 'MembersResponseBody'
674
+
675
+ # auth_names
676
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
677
+
678
+ new_options = opts.merge(
679
+ :operation => :"ManagedDataApi.list_managed_members",
680
+ :header_params => header_params,
681
+ :query_params => query_params,
682
+ :form_params => form_params,
683
+ :body => post_body,
684
+ :auth_names => auth_names,
685
+ :return_type => return_type
686
+ )
687
+
688
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
689
+ if @api_client.config.debugging
690
+ @api_client.config.logger.debug "API called: ManagedDataApi#list_managed_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
691
+ end
692
+ return data, status_code, headers
693
+ end
694
+
695
+ # List managed transactions
696
+ # This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
697
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
698
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
699
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
700
+ # @param [Hash] opts the optional parameters
701
+ # @option opts [Integer] :page Results are paginated. Specify current page.
702
+ # @option opts [String] :from_date Filter transactions from this date. This only supports ISO 8601 format without timestamp (YYYY-MM-DD). Defaults to 120 days ago if not provided.
703
+ # @option opts [String] :to_date Filter transactions to this date (at midnight). This only supports ISO 8601 format without timestamp (YYYY-MM-DD). Defaults to 5 days forward from the day the request is made to capture pending transactions.
704
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
705
+ # @return [TransactionsResponseBody]
706
+ def list_managed_transactions(account_guid, member_guid, user_guid, opts = {})
707
+ data, _status_code, _headers = list_managed_transactions_with_http_info(account_guid, member_guid, user_guid, opts)
708
+ data
709
+ end
710
+
711
+ # List managed transactions
712
+ # 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;.
713
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
714
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
715
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
716
+ # @param [Hash] opts the optional parameters
717
+ # @option opts [Integer] :page Results are paginated. Specify current page.
718
+ # @option opts [String] :from_date Filter transactions from this date. This only supports ISO 8601 format without timestamp (YYYY-MM-DD). Defaults to 120 days ago if not provided.
719
+ # @option opts [String] :to_date Filter transactions to this date (at midnight). This only supports ISO 8601 format without timestamp (YYYY-MM-DD). Defaults to 5 days forward from the day the request is made to capture pending transactions.
720
+ # @option opts [Integer] :records_per_page This specifies the number of records to be returned on each page. Defaults to &#x60;25&#x60;. The valid range is from &#x60;10&#x60; to &#x60;1000&#x60;. If the value exceeds &#x60;1000&#x60;, the default value of &#x60;25&#x60; will be used instead.
721
+ # @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
722
+ def list_managed_transactions_with_http_info(account_guid, member_guid, user_guid, opts = {})
723
+ if @api_client.config.debugging
724
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.list_managed_transactions ...'
725
+ end
726
+ # verify the required parameter 'account_guid' is set
727
+ if @api_client.config.client_side_validation && account_guid.nil?
728
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.list_managed_transactions"
729
+ end
730
+ # verify the required parameter 'member_guid' is set
731
+ if @api_client.config.client_side_validation && member_guid.nil?
732
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.list_managed_transactions"
733
+ end
734
+ # verify the required parameter 'user_guid' is set
735
+ if @api_client.config.client_side_validation && user_guid.nil?
736
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.list_managed_transactions"
737
+ end
738
+ # resource path
739
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
740
+
741
+ # query parameters
742
+ query_params = opts[:query_params] || {}
743
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
744
+ query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
745
+ query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
746
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
747
+
748
+ # header parameters
749
+ header_params = opts[:header_params] || {}
750
+ # HTTP header 'Accept' (if needed)
751
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
752
+
753
+ # form parameters
754
+ form_params = opts[:form_params] || {}
755
+
756
+ # http body (model)
757
+ post_body = opts[:debug_body]
758
+
759
+ # return_type
760
+ return_type = opts[:debug_return_type] || 'TransactionsResponseBody'
761
+
762
+ # auth_names
763
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
764
+
765
+ new_options = opts.merge(
766
+ :operation => :"ManagedDataApi.list_managed_transactions",
767
+ :header_params => header_params,
768
+ :query_params => query_params,
769
+ :form_params => form_params,
770
+ :body => post_body,
771
+ :auth_names => auth_names,
772
+ :return_type => return_type
773
+ )
774
+
775
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
776
+ if @api_client.config.debugging
777
+ @api_client.config.logger.debug "API called: ManagedDataApi#list_managed_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
778
+ end
779
+ return data, status_code, headers
780
+ end
781
+
782
+ # Read managed account
783
+ # Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
784
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
785
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
786
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
787
+ # @param [Hash] opts the optional parameters
788
+ # @return [AccountResponseBody]
789
+ def read_managed_account(account_guid, member_guid, user_guid, opts = {})
790
+ data, _status_code, _headers = read_managed_account_with_http_info(account_guid, member_guid, user_guid, opts)
791
+ data
792
+ end
793
+
794
+ # Read managed account
795
+ # Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
796
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
797
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
798
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
799
+ # @param [Hash] opts the optional parameters
800
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
801
+ def read_managed_account_with_http_info(account_guid, member_guid, user_guid, opts = {})
802
+ if @api_client.config.debugging
803
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.read_managed_account ...'
804
+ end
805
+ # verify the required parameter 'account_guid' is set
806
+ if @api_client.config.client_side_validation && account_guid.nil?
807
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.read_managed_account"
808
+ end
809
+ # verify the required parameter 'member_guid' is set
810
+ if @api_client.config.client_side_validation && member_guid.nil?
811
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.read_managed_account"
812
+ end
813
+ # verify the required parameter 'user_guid' is set
814
+ if @api_client.config.client_side_validation && user_guid.nil?
815
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.read_managed_account"
816
+ end
817
+ # resource path
818
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
819
+
820
+ # query parameters
821
+ query_params = opts[:query_params] || {}
822
+
823
+ # header parameters
824
+ header_params = opts[:header_params] || {}
825
+ # HTTP header 'Accept' (if needed)
826
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
827
+
828
+ # form parameters
829
+ form_params = opts[:form_params] || {}
830
+
831
+ # http body (model)
832
+ post_body = opts[:debug_body]
833
+
834
+ # return_type
835
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
836
+
837
+ # auth_names
838
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
839
+
840
+ new_options = opts.merge(
841
+ :operation => :"ManagedDataApi.read_managed_account",
842
+ :header_params => header_params,
843
+ :query_params => query_params,
844
+ :form_params => form_params,
845
+ :body => post_body,
846
+ :auth_names => auth_names,
847
+ :return_type => return_type
848
+ )
849
+
850
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
851
+ if @api_client.config.debugging
852
+ @api_client.config.logger.debug "API called: ManagedDataApi#read_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
853
+ end
854
+ return data, status_code, headers
855
+ end
856
+
857
+ # Read managed member
858
+ # This endpoint returns the attributes of the specified partner-managed`member`.
859
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
860
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
861
+ # @param [Hash] opts the optional parameters
862
+ # @return [MemberResponseBody]
863
+ def read_managed_member(member_guid, user_guid, opts = {})
864
+ data, _status_code, _headers = read_managed_member_with_http_info(member_guid, user_guid, opts)
865
+ data
866
+ end
867
+
868
+ # Read managed member
869
+ # This endpoint returns the attributes of the specified partner-managed&#x60;member&#x60;.
870
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
871
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
872
+ # @param [Hash] opts the optional parameters
873
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
874
+ def read_managed_member_with_http_info(member_guid, user_guid, opts = {})
875
+ if @api_client.config.debugging
876
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.read_managed_member ...'
877
+ end
878
+ # verify the required parameter 'member_guid' is set
879
+ if @api_client.config.client_side_validation && member_guid.nil?
880
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.read_managed_member"
881
+ end
882
+ # verify the required parameter 'user_guid' is set
883
+ if @api_client.config.client_side_validation && user_guid.nil?
884
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.read_managed_member"
885
+ end
886
+ # resource path
887
+ 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))
888
+
889
+ # query parameters
890
+ query_params = opts[:query_params] || {}
891
+
892
+ # header parameters
893
+ header_params = opts[:header_params] || {}
894
+ # HTTP header 'Accept' (if needed)
895
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
896
+
897
+ # form parameters
898
+ form_params = opts[:form_params] || {}
899
+
900
+ # http body (model)
901
+ post_body = opts[:debug_body]
902
+
903
+ # return_type
904
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
905
+
906
+ # auth_names
907
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
908
+
909
+ new_options = opts.merge(
910
+ :operation => :"ManagedDataApi.read_managed_member",
911
+ :header_params => header_params,
912
+ :query_params => query_params,
913
+ :form_params => form_params,
914
+ :body => post_body,
915
+ :auth_names => auth_names,
916
+ :return_type => return_type
917
+ )
918
+
919
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug "API called: ManagedDataApi#read_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
922
+ end
923
+ return data, status_code, headers
924
+ end
925
+
926
+ # Read managed transaction
927
+ # Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
928
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
929
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
930
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
931
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [TransactionResponseBody]
934
+ def read_managed_transaction(account_guid, member_guid, transaction_guid, user_guid, opts = {})
935
+ data, _status_code, _headers = read_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, opts)
936
+ data
937
+ end
938
+
939
+ # Read managed transaction
940
+ # Requests to this endpoint will return the attributes of the specified partner-managed &#x60;transaction&#x60;.
941
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
942
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
943
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
944
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
945
+ # @param [Hash] opts the optional parameters
946
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
947
+ def read_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, opts = {})
948
+ if @api_client.config.debugging
949
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.read_managed_transaction ...'
950
+ end
951
+ # verify the required parameter 'account_guid' is set
952
+ if @api_client.config.client_side_validation && account_guid.nil?
953
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.read_managed_transaction"
954
+ end
955
+ # verify the required parameter 'member_guid' is set
956
+ if @api_client.config.client_side_validation && member_guid.nil?
957
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.read_managed_transaction"
958
+ end
959
+ # verify the required parameter 'transaction_guid' is set
960
+ if @api_client.config.client_side_validation && transaction_guid.nil?
961
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling ManagedDataApi.read_managed_transaction"
962
+ end
963
+ # verify the required parameter 'user_guid' is set
964
+ if @api_client.config.client_side_validation && user_guid.nil?
965
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.read_managed_transaction"
966
+ end
967
+ # resource path
968
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions/{transaction_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
969
+
970
+ # query parameters
971
+ query_params = opts[:query_params] || {}
972
+
973
+ # header parameters
974
+ header_params = opts[:header_params] || {}
975
+ # HTTP header 'Accept' (if needed)
976
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
977
+
978
+ # form parameters
979
+ form_params = opts[:form_params] || {}
980
+
981
+ # http body (model)
982
+ post_body = opts[:debug_body]
983
+
984
+ # return_type
985
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
986
+
987
+ # auth_names
988
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
989
+
990
+ new_options = opts.merge(
991
+ :operation => :"ManagedDataApi.read_managed_transaction",
992
+ :header_params => header_params,
993
+ :query_params => query_params,
994
+ :form_params => form_params,
995
+ :body => post_body,
996
+ :auth_names => auth_names,
997
+ :return_type => return_type
998
+ )
999
+
1000
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1001
+ if @api_client.config.debugging
1002
+ @api_client.config.logger.debug "API called: ManagedDataApi#read_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1003
+ end
1004
+ return data, status_code, headers
1005
+ end
1006
+
1007
+ # Update managed account
1008
+ # Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
1009
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1010
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1011
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1012
+ # @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)
1013
+ # @param [Hash] opts the optional parameters
1014
+ # @return [AccountResponseBody]
1015
+ def update_managed_account(account_guid, member_guid, user_guid, managed_account_update_request_body, opts = {})
1016
+ data, _status_code, _headers = update_managed_account_with_http_info(account_guid, member_guid, user_guid, managed_account_update_request_body, opts)
1017
+ data
1018
+ end
1019
+
1020
+ # Update managed account
1021
+ # Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
1022
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1023
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1024
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1025
+ # @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)
1026
+ # @param [Hash] opts the optional parameters
1027
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
1028
+ def update_managed_account_with_http_info(account_guid, member_guid, user_guid, managed_account_update_request_body, opts = {})
1029
+ if @api_client.config.debugging
1030
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.update_managed_account ...'
1031
+ end
1032
+ # verify the required parameter 'account_guid' is set
1033
+ if @api_client.config.client_side_validation && account_guid.nil?
1034
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.update_managed_account"
1035
+ end
1036
+ # verify the required parameter 'member_guid' is set
1037
+ if @api_client.config.client_side_validation && member_guid.nil?
1038
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.update_managed_account"
1039
+ end
1040
+ # verify the required parameter 'user_guid' is set
1041
+ if @api_client.config.client_side_validation && user_guid.nil?
1042
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.update_managed_account"
1043
+ end
1044
+ # verify the required parameter 'managed_account_update_request_body' is set
1045
+ if @api_client.config.client_side_validation && managed_account_update_request_body.nil?
1046
+ fail ArgumentError, "Missing the required parameter 'managed_account_update_request_body' when calling ManagedDataApi.update_managed_account"
1047
+ end
1048
+ # resource path
1049
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1050
+
1051
+ # query parameters
1052
+ query_params = opts[:query_params] || {}
1053
+
1054
+ # header parameters
1055
+ header_params = opts[:header_params] || {}
1056
+ # HTTP header 'Accept' (if needed)
1057
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
1058
+ # HTTP header 'Content-Type'
1059
+ content_type = @api_client.select_header_content_type(['application/json'])
1060
+ if !content_type.nil?
1061
+ header_params['Content-Type'] = content_type
1062
+ end
1063
+
1064
+ # form parameters
1065
+ form_params = opts[:form_params] || {}
1066
+
1067
+ # http body (model)
1068
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_account_update_request_body)
1069
+
1070
+ # return_type
1071
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
1072
+
1073
+ # auth_names
1074
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1075
+
1076
+ new_options = opts.merge(
1077
+ :operation => :"ManagedDataApi.update_managed_account",
1078
+ :header_params => header_params,
1079
+ :query_params => query_params,
1080
+ :form_params => form_params,
1081
+ :body => post_body,
1082
+ :auth_names => auth_names,
1083
+ :return_type => return_type
1084
+ )
1085
+
1086
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1087
+ if @api_client.config.debugging
1088
+ @api_client.config.logger.debug "API called: ManagedDataApi#update_managed_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1089
+ end
1090
+ return data, status_code, headers
1091
+ end
1092
+
1093
+ # Update managed member
1094
+ # Use this endpoint to update the attributes of the specified partner_managed `member`.
1095
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1096
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1097
+ # @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)
1098
+ # @param [Hash] opts the optional parameters
1099
+ # @return [MemberResponseBody]
1100
+ def update_managed_member(member_guid, user_guid, managed_member_update_request_body, opts = {})
1101
+ data, _status_code, _headers = update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts)
1102
+ data
1103
+ end
1104
+
1105
+ # Update managed member
1106
+ # Use this endpoint to update the attributes of the specified partner_managed &#x60;member&#x60;.
1107
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1108
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1109
+ # @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)
1110
+ # @param [Hash] opts the optional parameters
1111
+ # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
1112
+ def update_managed_member_with_http_info(member_guid, user_guid, managed_member_update_request_body, opts = {})
1113
+ if @api_client.config.debugging
1114
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.update_managed_member ...'
1115
+ end
1116
+ # verify the required parameter 'member_guid' is set
1117
+ if @api_client.config.client_side_validation && member_guid.nil?
1118
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.update_managed_member"
1119
+ end
1120
+ # verify the required parameter 'user_guid' is set
1121
+ if @api_client.config.client_side_validation && user_guid.nil?
1122
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.update_managed_member"
1123
+ end
1124
+ # verify the required parameter 'managed_member_update_request_body' is set
1125
+ if @api_client.config.client_side_validation && managed_member_update_request_body.nil?
1126
+ fail ArgumentError, "Missing the required parameter 'managed_member_update_request_body' when calling ManagedDataApi.update_managed_member"
1127
+ end
1128
+ # resource path
1129
+ 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))
1130
+
1131
+ # query parameters
1132
+ query_params = opts[:query_params] || {}
1133
+
1134
+ # header parameters
1135
+ header_params = opts[:header_params] || {}
1136
+ # HTTP header 'Accept' (if needed)
1137
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
1138
+ # HTTP header 'Content-Type'
1139
+ content_type = @api_client.select_header_content_type(['application/json'])
1140
+ if !content_type.nil?
1141
+ header_params['Content-Type'] = content_type
1142
+ end
1143
+
1144
+ # form parameters
1145
+ form_params = opts[:form_params] || {}
1146
+
1147
+ # http body (model)
1148
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_member_update_request_body)
1149
+
1150
+ # return_type
1151
+ return_type = opts[:debug_return_type] || 'MemberResponseBody'
1152
+
1153
+ # auth_names
1154
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1155
+
1156
+ new_options = opts.merge(
1157
+ :operation => :"ManagedDataApi.update_managed_member",
1158
+ :header_params => header_params,
1159
+ :query_params => query_params,
1160
+ :form_params => form_params,
1161
+ :body => post_body,
1162
+ :auth_names => auth_names,
1163
+ :return_type => return_type
1164
+ )
1165
+
1166
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1167
+ if @api_client.config.debugging
1168
+ @api_client.config.logger.debug "API called: ManagedDataApi#update_managed_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1169
+ end
1170
+ return data, status_code, headers
1171
+ end
1172
+
1173
+ # Update managed transaction
1174
+ # Use this endpoint to update the attributes of the specified partner_managed `transaction`.
1175
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1176
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1177
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
1178
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1179
+ # @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)
1180
+ # @param [Hash] opts the optional parameters
1181
+ # @return [TransactionResponseBody]
1182
+ def update_managed_transaction(account_guid, member_guid, transaction_guid, user_guid, managed_transaction_update_request_body, opts = {})
1183
+ data, _status_code, _headers = update_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, managed_transaction_update_request_body, opts)
1184
+ data
1185
+ end
1186
+
1187
+ # Update managed transaction
1188
+ # Use this endpoint to update the attributes of the specified partner_managed &#x60;transaction&#x60;.
1189
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1190
+ # @param member_guid [String] The unique id for a &#x60;member&#x60;.
1191
+ # @param transaction_guid [String] The unique id for a &#x60;transaction&#x60;.
1192
+ # @param user_guid [String] The unique identifier for a &#x60;user&#x60;, beginning with the prefix &#x60;USR-&#x60;.
1193
+ # @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)
1194
+ # @param [Hash] opts the optional parameters
1195
+ # @return [Array<(TransactionResponseBody, Integer, Hash)>] TransactionResponseBody data, response status code and response headers
1196
+ def update_managed_transaction_with_http_info(account_guid, member_guid, transaction_guid, user_guid, managed_transaction_update_request_body, opts = {})
1197
+ if @api_client.config.debugging
1198
+ @api_client.config.logger.debug 'Calling API: ManagedDataApi.update_managed_transaction ...'
1199
+ end
1200
+ # verify the required parameter 'account_guid' is set
1201
+ if @api_client.config.client_side_validation && account_guid.nil?
1202
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling ManagedDataApi.update_managed_transaction"
1203
+ end
1204
+ # verify the required parameter 'member_guid' is set
1205
+ if @api_client.config.client_side_validation && member_guid.nil?
1206
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling ManagedDataApi.update_managed_transaction"
1207
+ end
1208
+ # verify the required parameter 'transaction_guid' is set
1209
+ if @api_client.config.client_side_validation && transaction_guid.nil?
1210
+ fail ArgumentError, "Missing the required parameter 'transaction_guid' when calling ManagedDataApi.update_managed_transaction"
1211
+ end
1212
+ # verify the required parameter 'user_guid' is set
1213
+ if @api_client.config.client_side_validation && user_guid.nil?
1214
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling ManagedDataApi.update_managed_transaction"
1215
+ end
1216
+ # verify the required parameter 'managed_transaction_update_request_body' is set
1217
+ if @api_client.config.client_side_validation && managed_transaction_update_request_body.nil?
1218
+ fail ArgumentError, "Missing the required parameter 'managed_transaction_update_request_body' when calling ManagedDataApi.update_managed_transaction"
1219
+ end
1220
+ # resource path
1221
+ local_var_path = '/users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions/{transaction_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'member_guid' + '}', CGI.escape(member_guid.to_s)).sub('{' + 'transaction_guid' + '}', CGI.escape(transaction_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1222
+
1223
+ # query parameters
1224
+ query_params = opts[:query_params] || {}
1225
+
1226
+ # header parameters
1227
+ header_params = opts[:header_params] || {}
1228
+ # HTTP header 'Accept' (if needed)
1229
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json']) unless header_params['Accept']
1230
+ # HTTP header 'Content-Type'
1231
+ content_type = @api_client.select_header_content_type(['application/json'])
1232
+ if !content_type.nil?
1233
+ header_params['Content-Type'] = content_type
1234
+ end
1235
+
1236
+ # form parameters
1237
+ form_params = opts[:form_params] || {}
1238
+
1239
+ # http body (model)
1240
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(managed_transaction_update_request_body)
1241
+
1242
+ # return_type
1243
+ return_type = opts[:debug_return_type] || 'TransactionResponseBody'
1244
+
1245
+ # auth_names
1246
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1247
+
1248
+ new_options = opts.merge(
1249
+ :operation => :"ManagedDataApi.update_managed_transaction",
1250
+ :header_params => header_params,
1251
+ :query_params => query_params,
1252
+ :form_params => form_params,
1253
+ :body => post_body,
1254
+ :auth_names => auth_names,
1255
+ :return_type => return_type
1256
+ )
1257
+
1258
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1259
+ if @api_client.config.debugging
1260
+ @api_client.config.logger.debug "API called: ManagedDataApi#update_managed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1261
+ end
1262
+ return data, status_code, headers
1263
+ end
1264
+ end
1265
+ end