apimatic-mx-apis-sdk 0.0.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 (287) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +207 -0
  4. data/bin/console +15 -0
  5. data/lib/mx_platform_api/api_helper.rb +10 -0
  6. data/lib/mx_platform_api/apis/accounts_api.rb +619 -0
  7. data/lib/mx_platform_api/apis/ach_return_api.rb +115 -0
  8. data/lib/mx_platform_api/apis/base_api.rb +67 -0
  9. data/lib/mx_platform_api/apis/budgets_api.rb +212 -0
  10. data/lib/mx_platform_api/apis/categories_api.rb +377 -0
  11. data/lib/mx_platform_api/apis/goals_api.rb +223 -0
  12. data/lib/mx_platform_api/apis/insights_api.rb +415 -0
  13. data/lib/mx_platform_api/apis/institutions_api.rb +159 -0
  14. data/lib/mx_platform_api/apis/investment_holdings_api.rb +191 -0
  15. data/lib/mx_platform_api/apis/jobs_api.rb +48 -0
  16. data/lib/mx_platform_api/apis/managed_data_deprecated_api.rb +773 -0
  17. data/lib/mx_platform_api/apis/members_api.rb +639 -0
  18. data/lib/mx_platform_api/apis/merchants_api.rb +98 -0
  19. data/lib/mx_platform_api/apis/microdeposits_api.rb +219 -0
  20. data/lib/mx_platform_api/apis/monthly_cash_flow_profile_api.rb +75 -0
  21. data/lib/mx_platform_api/apis/notifications_api.rb +115 -0
  22. data/lib/mx_platform_api/apis/processor_token_api.rb +141 -0
  23. data/lib/mx_platform_api/apis/rewards_api.rb +149 -0
  24. data/lib/mx_platform_api/apis/spending_plan_api.rb +621 -0
  25. data/lib/mx_platform_api/apis/statements_api.rb +165 -0
  26. data/lib/mx_platform_api/apis/taggings_api.rb +184 -0
  27. data/lib/mx_platform_api/apis/tags_api.rb +185 -0
  28. data/lib/mx_platform_api/apis/transaction_rules_api.rb +163 -0
  29. data/lib/mx_platform_api/apis/transactions_api.rb +1223 -0
  30. data/lib/mx_platform_api/apis/users_api.rb +188 -0
  31. data/lib/mx_platform_api/apis/verifiable_credentials_api.rb +114 -0
  32. data/lib/mx_platform_api/apis/widgets_api.rb +135 -0
  33. data/lib/mx_platform_api/client.rb +225 -0
  34. data/lib/mx_platform_api/configuration.rb +182 -0
  35. data/lib/mx_platform_api/exceptions/api_exception.rb +21 -0
  36. data/lib/mx_platform_api/http/api_response.rb +19 -0
  37. data/lib/mx_platform_api/http/auth/basic_auth.rb +62 -0
  38. data/lib/mx_platform_api/http/auth/bearer_auth.rb +53 -0
  39. data/lib/mx_platform_api/http/http_call_back.rb +10 -0
  40. data/lib/mx_platform_api/http/http_method_enum.rb +10 -0
  41. data/lib/mx_platform_api/http/http_request.rb +10 -0
  42. data/lib/mx_platform_api/http/http_response.rb +10 -0
  43. data/lib/mx_platform_api/http/proxy_settings.rb +22 -0
  44. data/lib/mx_platform_api/logging/configuration/api_logging_configuration.rb +186 -0
  45. data/lib/mx_platform_api/logging/sdk_logger.rb +17 -0
  46. data/lib/mx_platform_api/models/account_create_request.rb +309 -0
  47. data/lib/mx_platform_api/models/account_create_request_body.rb +75 -0
  48. data/lib/mx_platform_api/models/account_number.rb +199 -0
  49. data/lib/mx_platform_api/models/account_number_response.rb +215 -0
  50. data/lib/mx_platform_api/models/account_numbers_response_body.rb +95 -0
  51. data/lib/mx_platform_api/models/account_owner.rb +186 -0
  52. data/lib/mx_platform_api/models/account_owner_response.rb +219 -0
  53. data/lib/mx_platform_api/models/account_owners_response_body.rb +95 -0
  54. data/lib/mx_platform_api/models/account_ownership.rb +45 -0
  55. data/lib/mx_platform_api/models/account_response.rb +814 -0
  56. data/lib/mx_platform_api/models/account_response_body.rb +75 -0
  57. data/lib/mx_platform_api/models/account_type.rb +80 -0
  58. data/lib/mx_platform_api/models/account_type1.rb +80 -0
  59. data/lib/mx_platform_api/models/account_update_request.rb +301 -0
  60. data/lib/mx_platform_api/models/account_update_request_body.rb +75 -0
  61. data/lib/mx_platform_api/models/accounts_merge_request.rb +75 -0
  62. data/lib/mx_platform_api/models/accounts_merge_request_body.rb +75 -0
  63. data/lib/mx_platform_api/models/accounts_response_body.rb +94 -0
  64. data/lib/mx_platform_api/models/ach_response.rb +424 -0
  65. data/lib/mx_platform_api/models/ach_return_create_request.rb +256 -0
  66. data/lib/mx_platform_api/models/ach_return_create_request_body.rb +76 -0
  67. data/lib/mx_platform_api/models/ach_return_response_body.rb +76 -0
  68. data/lib/mx_platform_api/models/ach_returns_response_body.rb +95 -0
  69. data/lib/mx_platform_api/models/authorization_code_request.rb +77 -0
  70. data/lib/mx_platform_api/models/authorization_code_request_body.rb +77 -0
  71. data/lib/mx_platform_api/models/authorization_code_response.rb +76 -0
  72. data/lib/mx_platform_api/models/authorization_code_response_body.rb +77 -0
  73. data/lib/mx_platform_api/models/base_model.rb +110 -0
  74. data/lib/mx_platform_api/models/budget_create_request.rb +115 -0
  75. data/lib/mx_platform_api/models/budget_create_request_body.rb +75 -0
  76. data/lib/mx_platform_api/models/budget_response.rb +246 -0
  77. data/lib/mx_platform_api/models/budget_response_body.rb +75 -0
  78. data/lib/mx_platform_api/models/budget_update_request.rb +96 -0
  79. data/lib/mx_platform_api/models/budget_update_request_body.rb +75 -0
  80. data/lib/mx_platform_api/models/categories_response_body.rb +95 -0
  81. data/lib/mx_platform_api/models/category_create_request.rb +93 -0
  82. data/lib/mx_platform_api/models/category_create_request_body.rb +75 -0
  83. data/lib/mx_platform_api/models/category_response.rb +160 -0
  84. data/lib/mx_platform_api/models/category_response_body.rb +75 -0
  85. data/lib/mx_platform_api/models/category_update_request.rb +85 -0
  86. data/lib/mx_platform_api/models/category_update_request_body.rb +75 -0
  87. data/lib/mx_platform_api/models/challenge_response.rb +159 -0
  88. data/lib/mx_platform_api/models/challenges_response_body.rb +95 -0
  89. data/lib/mx_platform_api/models/channel.rb +47 -0
  90. data/lib/mx_platform_api/models/classification.rb +85 -0
  91. data/lib/mx_platform_api/models/color_scheme.rb +43 -0
  92. data/lib/mx_platform_api/models/connection_status.rb +118 -0
  93. data/lib/mx_platform_api/models/credential_request.rb +85 -0
  94. data/lib/mx_platform_api/models/credential_response.rb +133 -0
  95. data/lib/mx_platform_api/models/credentials_response_body.rb +95 -0
  96. data/lib/mx_platform_api/models/credit_card_product.rb +276 -0
  97. data/lib/mx_platform_api/models/credit_card_product_response.rb +77 -0
  98. data/lib/mx_platform_api/models/data_request.rb +76 -0
  99. data/lib/mx_platform_api/models/date_range.rb +87 -0
  100. data/lib/mx_platform_api/models/date_range_category_totals_response.rb +115 -0
  101. data/lib/mx_platform_api/models/date_range_category_totals_response_body.rb +88 -0
  102. data/lib/mx_platform_api/models/deep_link_params.rb +131 -0
  103. data/lib/mx_platform_api/models/enhance_transaction_response.rb +371 -0
  104. data/lib/mx_platform_api/models/enhance_transactions_request.rb +143 -0
  105. data/lib/mx_platform_api/models/enhance_transactions_request_body.rb +85 -0
  106. data/lib/mx_platform_api/models/enhance_transactions_response_body.rb +85 -0
  107. data/lib/mx_platform_api/models/error.rb +106 -0
  108. data/lib/mx_platform_api/models/federal_insurance_status.rb +42 -0
  109. data/lib/mx_platform_api/models/geolocation.rb +108 -0
  110. data/lib/mx_platform_api/models/goal_request.rb +179 -0
  111. data/lib/mx_platform_api/models/goal_request_body.rb +74 -0
  112. data/lib/mx_platform_api/models/goal_response.rb +241 -0
  113. data/lib/mx_platform_api/models/goal_response_body.rb +74 -0
  114. data/lib/mx_platform_api/models/goal_type_name.rb +36 -0
  115. data/lib/mx_platform_api/models/goals_response.rb +241 -0
  116. data/lib/mx_platform_api/models/goals_response_body.rb +94 -0
  117. data/lib/mx_platform_api/models/image_option_response.rb +110 -0
  118. data/lib/mx_platform_api/models/insight_response.rb +338 -0
  119. data/lib/mx_platform_api/models/insight_response_body.rb +75 -0
  120. data/lib/mx_platform_api/models/insight_update_request.rb +87 -0
  121. data/lib/mx_platform_api/models/insight_update_request_body.rb +75 -0
  122. data/lib/mx_platform_api/models/insights_response_body.rb +94 -0
  123. data/lib/mx_platform_api/models/institution_response.rb +290 -0
  124. data/lib/mx_platform_api/models/institution_response_body.rb +76 -0
  125. data/lib/mx_platform_api/models/institutions_response_body.rb +95 -0
  126. data/lib/mx_platform_api/models/investment_holding_response.rb +513 -0
  127. data/lib/mx_platform_api/models/investment_holding_response_body.rb +77 -0
  128. data/lib/mx_platform_api/models/investment_holdings_deactivation.rb +85 -0
  129. data/lib/mx_platform_api/models/investment_holdings_response_body.rb +95 -0
  130. data/lib/mx_platform_api/models/iso_country_code.rb +36 -0
  131. data/lib/mx_platform_api/models/item_type.rb +52 -0
  132. data/lib/mx_platform_api/models/job_response.rb +203 -0
  133. data/lib/mx_platform_api/models/job_response_body.rb +74 -0
  134. data/lib/mx_platform_api/models/managed_account_create_request.rb +422 -0
  135. data/lib/mx_platform_api/models/managed_account_create_request_body.rb +75 -0
  136. data/lib/mx_platform_api/models/managed_account_update_request.rb +428 -0
  137. data/lib/mx_platform_api/models/managed_account_update_request_body.rb +75 -0
  138. data/lib/mx_platform_api/models/managed_member_create_request.rb +105 -0
  139. data/lib/mx_platform_api/models/managed_member_create_request_body.rb +75 -0
  140. data/lib/mx_platform_api/models/managed_member_update_request.rb +95 -0
  141. data/lib/mx_platform_api/models/managed_member_update_request_body.rb +75 -0
  142. data/lib/mx_platform_api/models/managed_transaction_create_request.rb +282 -0
  143. data/lib/mx_platform_api/models/managed_transaction_create_request_body.rb +77 -0
  144. data/lib/mx_platform_api/models/managed_transaction_update_request.rb +289 -0
  145. data/lib/mx_platform_api/models/managed_transaction_update_request_body.rb +77 -0
  146. data/lib/mx_platform_api/models/member_create_request.rb +154 -0
  147. data/lib/mx_platform_api/models/member_create_request_body.rb +152 -0
  148. data/lib/mx_platform_api/models/member_elements.rb +96 -0
  149. data/lib/mx_platform_api/models/member_response.rb +406 -0
  150. data/lib/mx_platform_api/models/member_response_body.rb +75 -0
  151. data/lib/mx_platform_api/models/member_response_with_job_error.rb +406 -0
  152. data/lib/mx_platform_api/models/member_response_with_job_error_body.rb +75 -0
  153. data/lib/mx_platform_api/models/member_resume_request.rb +85 -0
  154. data/lib/mx_platform_api/models/member_resume_request_body.rb +75 -0
  155. data/lib/mx_platform_api/models/member_status_response.rb +236 -0
  156. data/lib/mx_platform_api/models/member_status_response_body.rb +75 -0
  157. data/lib/mx_platform_api/models/member_update_request.rb +133 -0
  158. data/lib/mx_platform_api/models/member_update_request_body.rb +75 -0
  159. data/lib/mx_platform_api/models/members_response_body.rb +94 -0
  160. data/lib/mx_platform_api/models/merchant.rb +105 -0
  161. data/lib/mx_platform_api/models/merchant_location_response.rb +208 -0
  162. data/lib/mx_platform_api/models/merchant_location_response_body.rb +77 -0
  163. data/lib/mx_platform_api/models/merchant_response.rb +136 -0
  164. data/lib/mx_platform_api/models/merchant_response_body.rb +75 -0
  165. data/lib/mx_platform_api/models/merchants_response_body.rb +95 -0
  166. data/lib/mx_platform_api/models/micro_deposit.rb +223 -0
  167. data/lib/mx_platform_api/models/microdeposit_elements.rb +141 -0
  168. data/lib/mx_platform_api/models/microdeposit_request_body.rb +77 -0
  169. data/lib/mx_platform_api/models/microdeposit_response.rb +149 -0
  170. data/lib/mx_platform_api/models/microdeposit_response_body.rb +85 -0
  171. data/lib/mx_platform_api/models/microdeposit_verify_request.rb +88 -0
  172. data/lib/mx_platform_api/models/microdeposit_verify_request_body.rb +77 -0
  173. data/lib/mx_platform_api/models/microdeposits_response_body.rb +95 -0
  174. data/lib/mx_platform_api/models/monthly_account_balance.rb +123 -0
  175. data/lib/mx_platform_api/models/monthly_account_balances_response_body.rb +85 -0
  176. data/lib/mx_platform_api/models/monthly_cash_flow_profile_request.rb +95 -0
  177. data/lib/mx_platform_api/models/monthly_cash_flow_profile_request_body.rb +81 -0
  178. data/lib/mx_platform_api/models/monthly_cash_flow_response.rb +157 -0
  179. data/lib/mx_platform_api/models/monthly_cash_flow_response_body.rb +81 -0
  180. data/lib/mx_platform_api/models/notification_request.rb +83 -0
  181. data/lib/mx_platform_api/models/notification_request_body.rb +76 -0
  182. data/lib/mx_platform_api/models/notification_response.rb +204 -0
  183. data/lib/mx_platform_api/models/notification_response_body.rb +76 -0
  184. data/lib/mx_platform_api/models/notifications_response_body.rb +85 -0
  185. data/lib/mx_platform_api/models/oauth_window_response.rb +91 -0
  186. data/lib/mx_platform_api/models/oauth_window_response_body.rb +75 -0
  187. data/lib/mx_platform_api/models/option_response.rb +99 -0
  188. data/lib/mx_platform_api/models/pagination_response.rb +106 -0
  189. data/lib/mx_platform_api/models/parent_class.rb +84 -0
  190. data/lib/mx_platform_api/models/payment_account.rb +183 -0
  191. data/lib/mx_platform_api/models/payment_account1.rb +213 -0
  192. data/lib/mx_platform_api/models/payment_account_body.rb +77 -0
  193. data/lib/mx_platform_api/models/processor_account_number.rb +168 -0
  194. data/lib/mx_platform_api/models/processor_account_number_body.rb +85 -0
  195. data/lib/mx_platform_api/models/processor_owner.rb +155 -0
  196. data/lib/mx_platform_api/models/processor_owner_body.rb +95 -0
  197. data/lib/mx_platform_api/models/property_type.rb +69 -0
  198. data/lib/mx_platform_api/models/recurrence_type.rb +26 -0
  199. data/lib/mx_platform_api/models/repeating_transaction.rb +102 -0
  200. data/lib/mx_platform_api/models/repeating_transaction_response.rb +203 -0
  201. data/lib/mx_platform_api/models/repeating_transaction_type.rb +44 -0
  202. data/lib/mx_platform_api/models/repeating_transactions_response_body.rb +85 -0
  203. data/lib/mx_platform_api/models/reposition_request.rb +82 -0
  204. data/lib/mx_platform_api/models/reposition_request_body.rb +84 -0
  205. data/lib/mx_platform_api/models/reposition_response_body.rb +84 -0
  206. data/lib/mx_platform_api/models/reward.rb +187 -0
  207. data/lib/mx_platform_api/models/reward_elements.rb +156 -0
  208. data/lib/mx_platform_api/models/reward_response_body.rb +75 -0
  209. data/lib/mx_platform_api/models/rewards_response_body.rb +94 -0
  210. data/lib/mx_platform_api/models/scheduled_payment_response.rb +208 -0
  211. data/lib/mx_platform_api/models/scheduled_payments_response_body.rb +95 -0
  212. data/lib/mx_platform_api/models/spending_plan_account_response.rb +142 -0
  213. data/lib/mx_platform_api/models/spending_plan_accounts_response.rb +95 -0
  214. data/lib/mx_platform_api/models/spending_plan_iteration_item_create_request_body.rb +124 -0
  215. data/lib/mx_platform_api/models/spending_plan_iteration_item_response.rb +224 -0
  216. data/lib/mx_platform_api/models/spending_plan_iteration_items_response_body.rb +95 -0
  217. data/lib/mx_platform_api/models/spending_plan_iteration_response.rb +162 -0
  218. data/lib/mx_platform_api/models/spending_plan_iterations_response.rb +95 -0
  219. data/lib/mx_platform_api/models/spending_plan_response.rb +129 -0
  220. data/lib/mx_platform_api/models/spending_plans_response_body.rb +95 -0
  221. data/lib/mx_platform_api/models/split_transaction_request.rb +106 -0
  222. data/lib/mx_platform_api/models/split_transaction_request_body.rb +75 -0
  223. data/lib/mx_platform_api/models/split_transactions_response_body.rb +85 -0
  224. data/lib/mx_platform_api/models/statement_response.rb +157 -0
  225. data/lib/mx_platform_api/models/statement_response_body.rb +76 -0
  226. data/lib/mx_platform_api/models/statements_response_body.rb +95 -0
  227. data/lib/mx_platform_api/models/status.rb +36 -0
  228. data/lib/mx_platform_api/models/style.rb +74 -0
  229. data/lib/mx_platform_api/models/supported_product.rb +56 -0
  230. data/lib/mx_platform_api/models/supported_product1.rb +52 -0
  231. data/lib/mx_platform_api/models/tag_create_request.rb +72 -0
  232. data/lib/mx_platform_api/models/tag_create_request_body.rb +74 -0
  233. data/lib/mx_platform_api/models/tag_response.rb +99 -0
  234. data/lib/mx_platform_api/models/tag_response_body.rb +74 -0
  235. data/lib/mx_platform_api/models/tag_update_request.rb +72 -0
  236. data/lib/mx_platform_api/models/tag_update_request_body.rb +74 -0
  237. data/lib/mx_platform_api/models/tagging_create_request.rb +83 -0
  238. data/lib/mx_platform_api/models/tagging_create_request_body.rb +75 -0
  239. data/lib/mx_platform_api/models/tagging_response.rb +130 -0
  240. data/lib/mx_platform_api/models/tagging_response_body.rb +75 -0
  241. data/lib/mx_platform_api/models/tagging_update_request.rb +73 -0
  242. data/lib/mx_platform_api/models/tagging_update_request_body.rb +75 -0
  243. data/lib/mx_platform_api/models/taggings_response_body.rb +94 -0
  244. data/lib/mx_platform_api/models/tags_response_body.rb +94 -0
  245. data/lib/mx_platform_api/models/token_request_body.rb +75 -0
  246. data/lib/mx_platform_api/models/token_response.rb +114 -0
  247. data/lib/mx_platform_api/models/token_response_body.rb +84 -0
  248. data/lib/mx_platform_api/models/track_type_name.rb +44 -0
  249. data/lib/mx_platform_api/models/transaction_create_request.rb +192 -0
  250. data/lib/mx_platform_api/models/transaction_create_request_body.rb +76 -0
  251. data/lib/mx_platform_api/models/transaction_create_response_body.rb +595 -0
  252. data/lib/mx_platform_api/models/transaction_includes_response.rb +643 -0
  253. data/lib/mx_platform_api/models/transaction_response.rb +597 -0
  254. data/lib/mx_platform_api/models/transaction_response_body.rb +76 -0
  255. data/lib/mx_platform_api/models/transaction_rule_create_request.rb +98 -0
  256. data/lib/mx_platform_api/models/transaction_rule_create_request_body.rb +77 -0
  257. data/lib/mx_platform_api/models/transaction_rule_response.rb +152 -0
  258. data/lib/mx_platform_api/models/transaction_rule_response_body.rb +77 -0
  259. data/lib/mx_platform_api/models/transaction_rule_update_request.rb +103 -0
  260. data/lib/mx_platform_api/models/transaction_rule_update_request_body.rb +77 -0
  261. data/lib/mx_platform_api/models/transaction_rules_response_body.rb +95 -0
  262. data/lib/mx_platform_api/models/transaction_type.rb +36 -0
  263. data/lib/mx_platform_api/models/transaction_update_request.rb +74 -0
  264. data/lib/mx_platform_api/models/transaction_update_request_body.rb +76 -0
  265. data/lib/mx_platform_api/models/transactions_response_body.rb +95 -0
  266. data/lib/mx_platform_api/models/transactions_response_body_includes.rb +95 -0
  267. data/lib/mx_platform_api/models/type.rb +36 -0
  268. data/lib/mx_platform_api/models/update_goal_request.rb +185 -0
  269. data/lib/mx_platform_api/models/update_goal_request_body.rb +74 -0
  270. data/lib/mx_platform_api/models/use_case.rb +36 -0
  271. data/lib/mx_platform_api/models/user_create_request.rb +105 -0
  272. data/lib/mx_platform_api/models/user_create_request_body.rb +74 -0
  273. data/lib/mx_platform_api/models/user_response.rb +119 -0
  274. data/lib/mx_platform_api/models/user_response_body.rb +74 -0
  275. data/lib/mx_platform_api/models/user_update_request.rb +105 -0
  276. data/lib/mx_platform_api/models/user_update_request_body.rb +74 -0
  277. data/lib/mx_platform_api/models/users_response_body.rb +94 -0
  278. data/lib/mx_platform_api/models/users_widget_urls_request.rb +76 -0
  279. data/lib/mx_platform_api/models/vc_response.rb +77 -0
  280. data/lib/mx_platform_api/models/widget_request.rb +466 -0
  281. data/lib/mx_platform_api/models/widget_response.rb +100 -0
  282. data/lib/mx_platform_api/models/widget_response_body.rb +76 -0
  283. data/lib/mx_platform_api/models/widget_type.rb +149 -0
  284. data/lib/mx_platform_api/utilities/date_time_helper.rb +11 -0
  285. data/lib/mx_platform_api/utilities/file_wrapper.rb +28 -0
  286. data/lib/mx_platform_api.rb +313 -0
  287. metadata +370 -0
@@ -0,0 +1,88 @@
1
+ # mx_platform_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module MxPlatformApi
7
+ # DateRangeCategoryTotalsResponseBody Model.
8
+ class DateRangeCategoryTotalsResponseBody < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Array[DateRangeCategoryTotalsResponse]]
14
+ attr_accessor :date_range_category_totals
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['date_range_category_totals'] = 'date_range_category_totals'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ date_range_category_totals
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(date_range_category_totals: SKIP, additional_properties: nil)
36
+ # Add additional model properties to the instance
37
+ additional_properties = {} if additional_properties.nil?
38
+
39
+ unless date_range_category_totals == SKIP
40
+ @date_range_category_totals =
41
+ date_range_category_totals
42
+ end
43
+ @additional_properties = additional_properties
44
+ end
45
+
46
+ # Creates an instance of the object from a hash.
47
+ def self.from_hash(hash)
48
+ return nil unless hash
49
+
50
+ # Extract variables from the hash.
51
+ # Parameter is an array, so we need to iterate through it
52
+ date_range_category_totals = nil
53
+ unless hash['date_range_category_totals'].nil?
54
+ date_range_category_totals = []
55
+ hash['date_range_category_totals'].each do |structure|
56
+ date_range_category_totals << (DateRangeCategoryTotalsResponse.from_hash(structure) if structure)
57
+ end
58
+ end
59
+
60
+ date_range_category_totals = SKIP unless hash.key?('date_range_category_totals')
61
+
62
+ # Create a new hash for additional properties, removing known properties.
63
+ new_hash = hash.reject { |k, _| names.value?(k) }
64
+
65
+ additional_properties = APIHelper.get_additional_properties(
66
+ new_hash, proc { |value| value }
67
+ )
68
+
69
+ # Create object from extracted values.
70
+ DateRangeCategoryTotalsResponseBody.new(date_range_category_totals: date_range_category_totals,
71
+ additional_properties: additional_properties)
72
+ end
73
+
74
+ # Provides a human-readable string representation of the object.
75
+ def to_s
76
+ class_name = self.class.name.split('::').last
77
+ "<#{class_name} date_range_category_totals: #{@date_range_category_totals},"\
78
+ " additional_properties: #{@additional_properties}>"
79
+ end
80
+
81
+ # Provides a debugging-friendly string with detailed object information.
82
+ def inspect
83
+ class_name = self.class.name.split('::').last
84
+ "<#{class_name} date_range_category_totals: #{@date_range_category_totals.inspect},"\
85
+ " additional_properties: #{@additional_properties}>"
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,131 @@
1
+ # mx_platform_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module MxPlatformApi
7
+ # Enables widget-specific behavior.
8
+ class DeepLinkParams < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Only use this option if the `widget_type` is set to `spending_widget`.
13
+ # When used with the Legacy Spending Widget, used to filter by account.
14
+ # Contains an `account_guid` (string) optional param.
15
+ # @return [String]
16
+ attr_accessor :account_guid
17
+
18
+ # Only use this option if the `widget_type` is set to `spending_widget`.
19
+ # When used with the Legacy Spending widget, used to filter by date range.
20
+ # Set the `date_range` using `start_date` (string) and `end_date` (string).
21
+ # @return [DateRange]
22
+ attr_accessor :date_range
23
+
24
+ # Only use this option if the `widget_type` is set to
25
+ # `actionable_integration_widget`. Launches a deep link integration. Valid
26
+ # value is `direct-deposit`.
27
+ # @return [String]
28
+ attr_accessor :launch_integration
29
+
30
+ # When used with the Cash Flow, Settings, or Money Dashboard widget, sets
31
+ # the widget's default view. Valid value for Cash Flow or Money Dashboard
32
+ # Widgets is `manage_income.` Valid values for the Notifications section of
33
+ # the Settings Widget (`notifications_settings_widget`) are `accounts`,
34
+ # `budgets`, or `insights`.
35
+ # @return [String]
36
+ attr_accessor :view
37
+
38
+ # Only use this option if the `widget_type` is set to `master_widget`.
39
+ # Launches a specific view in the Master Widget. Valid values are
40
+ # `accounts`, `budgets`, `cash_flow`, `debts`, `finstrong`, `goals`,
41
+ # `insights`, `investments`, `networth`, `recurringtransactions`,
42
+ # `spending`, `transactions`, and `trends`.
43
+ # @return [String]
44
+ attr_accessor :widget
45
+
46
+ # A mapping from model property names to API property names.
47
+ def self.names
48
+ @_hash = {} if @_hash.nil?
49
+ @_hash['account_guid'] = 'account_guid'
50
+ @_hash['date_range'] = 'date_range'
51
+ @_hash['launch_integration'] = 'launch_integration'
52
+ @_hash['view'] = 'view'
53
+ @_hash['widget'] = 'widget'
54
+ @_hash
55
+ end
56
+
57
+ # An array for optional fields
58
+ def self.optionals
59
+ %w[
60
+ account_guid
61
+ date_range
62
+ launch_integration
63
+ view
64
+ widget
65
+ ]
66
+ end
67
+
68
+ # An array for nullable fields
69
+ def self.nullables
70
+ []
71
+ end
72
+
73
+ def initialize(account_guid: SKIP, date_range: SKIP,
74
+ launch_integration: SKIP, view: SKIP, widget: SKIP,
75
+ additional_properties: nil)
76
+ # Add additional model properties to the instance
77
+ additional_properties = {} if additional_properties.nil?
78
+
79
+ @account_guid = account_guid unless account_guid == SKIP
80
+ @date_range = date_range unless date_range == SKIP
81
+ @launch_integration = launch_integration unless launch_integration == SKIP
82
+ @view = view unless view == SKIP
83
+ @widget = widget unless widget == SKIP
84
+ @additional_properties = additional_properties
85
+ end
86
+
87
+ # Creates an instance of the object from a hash.
88
+ def self.from_hash(hash)
89
+ return nil unless hash
90
+
91
+ # Extract variables from the hash.
92
+ account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
93
+ date_range = DateRange.from_hash(hash['date_range']) if hash['date_range']
94
+ launch_integration =
95
+ hash.key?('launch_integration') ? hash['launch_integration'] : SKIP
96
+ view = hash.key?('view') ? hash['view'] : SKIP
97
+ widget = hash.key?('widget') ? hash['widget'] : SKIP
98
+
99
+ # Create a new hash for additional properties, removing known properties.
100
+ new_hash = hash.reject { |k, _| names.value?(k) }
101
+
102
+ additional_properties = APIHelper.get_additional_properties(
103
+ new_hash, proc { |value| value }
104
+ )
105
+
106
+ # Create object from extracted values.
107
+ DeepLinkParams.new(account_guid: account_guid,
108
+ date_range: date_range,
109
+ launch_integration: launch_integration,
110
+ view: view,
111
+ widget: widget,
112
+ additional_properties: additional_properties)
113
+ end
114
+
115
+ # Provides a human-readable string representation of the object.
116
+ def to_s
117
+ class_name = self.class.name.split('::').last
118
+ "<#{class_name} account_guid: #{@account_guid}, date_range: #{@date_range},"\
119
+ " launch_integration: #{@launch_integration}, view: #{@view}, widget: #{@widget},"\
120
+ " additional_properties: #{@additional_properties}>"
121
+ end
122
+
123
+ # Provides a debugging-friendly string with detailed object information.
124
+ def inspect
125
+ class_name = self.class.name.split('::').last
126
+ "<#{class_name} account_guid: #{@account_guid.inspect}, date_range: #{@date_range.inspect},"\
127
+ " launch_integration: #{@launch_integration.inspect}, view: #{@view.inspect}, widget:"\
128
+ " #{@widget.inspect}, additional_properties: #{@additional_properties}>"
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,371 @@
1
+ # mx_platform_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module MxPlatformApi
7
+ # EnhanceTransactionResponse Model.
8
+ class EnhanceTransactionResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The monetary amount of the `transaction`.
13
+ # @return [Float]
14
+ attr_accessor :amount
15
+
16
+ # The method used to determine the category assigned to the transaction.
17
+ # @return [Integer]
18
+ attr_accessor :categorized_by
19
+
20
+ # The category of the `transaction`.
21
+ # @return [String]
22
+ attr_accessor :category
23
+
24
+ # The unique identifier for the category. Defined by MX.
25
+ # @return [String]
26
+ attr_accessor :category_guid
27
+
28
+ # The method used to describe the `transaction`.
29
+ # @return [Integer]
30
+ attr_accessor :described_by
31
+
32
+ # A human-readable version of the `original_description` field. This is
33
+ # provided by the MX Platform.
34
+ # @return [String]
35
+ attr_accessor :description
36
+
37
+ # The transaction type assigned by the partner.
38
+ # @return [String]
39
+ attr_accessor :extended_transaction_type
40
+
41
+ # The unique partner-defined identifier for the transaction.
42
+ # @return [String]
43
+ attr_accessor :id
44
+
45
+ # Indicates whether the transaction is a bill payment.
46
+ # @return [TrueClass | FalseClass]
47
+ attr_accessor :is_bill_pay
48
+
49
+ # Indicates whether the transaction is a direct deposit.
50
+ # @return [TrueClass | FalseClass]
51
+ attr_accessor :is_direct_deposit
52
+
53
+ # Indicates whether the transaction is an expense.
54
+ # @return [TrueClass | FalseClass]
55
+ attr_accessor :is_expense
56
+
57
+ # Indicates whether the transaction is a fee.
58
+ # @return [TrueClass | FalseClass]
59
+ attr_accessor :is_fee
60
+
61
+ # Indicates whether the transaction is income.
62
+ # @return [TrueClass | FalseClass]
63
+ attr_accessor :is_income
64
+
65
+ # Indicates whether the transaction is international. If the data provider
66
+ # determines it isn't international then it will be `false`. It will be
67
+ # `null` if the data provider does not have this information.
68
+ # @return [TrueClass | FalseClass]
69
+ attr_accessor :is_international
70
+
71
+ # Indicates whether the transaction is an overdraft fee.
72
+ # @return [TrueClass | FalseClass]
73
+ attr_accessor :is_overdraft_fee
74
+
75
+ # Indicates whether the transaction is a payroll advance.
76
+ # @return [TrueClass | FalseClass]
77
+ attr_accessor :is_payroll_advance
78
+
79
+ # Indicates whether the transaction is a subscription payment.
80
+ # @return [TrueClass | FalseClass]
81
+ attr_accessor :is_subscription
82
+
83
+ # This field contains additional descriptive information about the
84
+ # `transaction`.
85
+ # @return [String]
86
+ attr_accessor :memo
87
+
88
+ # The ISO 18245 category code for the `transaction`.
89
+ # @return [Integer]
90
+ attr_accessor :merchant_category_code
91
+
92
+ # The unique identifier for the merchant associated with this `transaction`.
93
+ # Defined by MX.
94
+ # @return [String]
95
+ attr_accessor :merchant_guid
96
+
97
+ # The unique identifier for the `merchant_location` associated with this
98
+ # `transaction`. Defined by MX.
99
+ # @return [String]
100
+ attr_accessor :merchant_location_guid
101
+
102
+ # The original description of the `transaction` as provided by our data
103
+ # feed.
104
+ # @return [String]
105
+ attr_accessor :original_description
106
+
107
+ # The unique identifier for the `top_level_category` associated with this
108
+ # `transaction`. Defined by MX.
109
+ # @return [String]
110
+ attr_accessor :top_level_category_guid
111
+
112
+ # The type of transaction. Can be either `CREDIT` or `DEBIT`.
113
+ # @return [Type]
114
+ attr_accessor :type
115
+
116
+ # The unique identifier for the user. Defined by MX.
117
+ # @return [String]
118
+ attr_accessor :user_guid
119
+
120
+ # A mapping from model property names to API property names.
121
+ def self.names
122
+ @_hash = {} if @_hash.nil?
123
+ @_hash['amount'] = 'amount'
124
+ @_hash['categorized_by'] = 'categorized_by'
125
+ @_hash['category'] = 'category'
126
+ @_hash['category_guid'] = 'category_guid'
127
+ @_hash['described_by'] = 'described_by'
128
+ @_hash['description'] = 'description'
129
+ @_hash['extended_transaction_type'] = 'extended_transaction_type'
130
+ @_hash['id'] = 'id'
131
+ @_hash['is_bill_pay'] = 'is_bill_pay'
132
+ @_hash['is_direct_deposit'] = 'is_direct_deposit'
133
+ @_hash['is_expense'] = 'is_expense'
134
+ @_hash['is_fee'] = 'is_fee'
135
+ @_hash['is_income'] = 'is_income'
136
+ @_hash['is_international'] = 'is_international'
137
+ @_hash['is_overdraft_fee'] = 'is_overdraft_fee'
138
+ @_hash['is_payroll_advance'] = 'is_payroll_advance'
139
+ @_hash['is_subscription'] = 'is_subscription'
140
+ @_hash['memo'] = 'memo'
141
+ @_hash['merchant_category_code'] = 'merchant_category_code'
142
+ @_hash['merchant_guid'] = 'merchant_guid'
143
+ @_hash['merchant_location_guid'] = 'merchant_location_guid'
144
+ @_hash['original_description'] = 'original_description'
145
+ @_hash['top_level_category_guid'] = 'top_level_category_guid'
146
+ @_hash['type'] = 'type'
147
+ @_hash['user_guid'] = 'user_guid'
148
+ @_hash
149
+ end
150
+
151
+ # An array for optional fields
152
+ def self.optionals
153
+ %w[
154
+ amount
155
+ categorized_by
156
+ category
157
+ category_guid
158
+ described_by
159
+ description
160
+ extended_transaction_type
161
+ id
162
+ is_bill_pay
163
+ is_direct_deposit
164
+ is_expense
165
+ is_fee
166
+ is_income
167
+ is_international
168
+ is_overdraft_fee
169
+ is_payroll_advance
170
+ is_subscription
171
+ memo
172
+ merchant_category_code
173
+ merchant_guid
174
+ merchant_location_guid
175
+ original_description
176
+ top_level_category_guid
177
+ type
178
+ user_guid
179
+ ]
180
+ end
181
+
182
+ # An array for nullable fields
183
+ def self.nullables
184
+ %w[
185
+ amount
186
+ categorized_by
187
+ category
188
+ category_guid
189
+ described_by
190
+ description
191
+ extended_transaction_type
192
+ id
193
+ is_bill_pay
194
+ is_direct_deposit
195
+ is_expense
196
+ is_fee
197
+ is_income
198
+ is_overdraft_fee
199
+ is_payroll_advance
200
+ is_subscription
201
+ memo
202
+ merchant_category_code
203
+ merchant_guid
204
+ merchant_location_guid
205
+ original_description
206
+ top_level_category_guid
207
+ type
208
+ user_guid
209
+ ]
210
+ end
211
+
212
+ def initialize(amount: SKIP, categorized_by: SKIP, category: SKIP,
213
+ category_guid: SKIP, described_by: SKIP, description: SKIP,
214
+ extended_transaction_type: SKIP, id: SKIP, is_bill_pay: SKIP,
215
+ is_direct_deposit: SKIP, is_expense: SKIP, is_fee: SKIP,
216
+ is_income: SKIP, is_international: SKIP,
217
+ is_overdraft_fee: SKIP, is_payroll_advance: SKIP,
218
+ is_subscription: SKIP, memo: SKIP,
219
+ merchant_category_code: SKIP, merchant_guid: SKIP,
220
+ merchant_location_guid: SKIP, original_description: SKIP,
221
+ top_level_category_guid: SKIP, type: SKIP, user_guid: SKIP,
222
+ additional_properties: nil)
223
+ # Add additional model properties to the instance
224
+ additional_properties = {} if additional_properties.nil?
225
+
226
+ @amount = amount unless amount == SKIP
227
+ @categorized_by = categorized_by unless categorized_by == SKIP
228
+ @category = category unless category == SKIP
229
+ @category_guid = category_guid unless category_guid == SKIP
230
+ @described_by = described_by unless described_by == SKIP
231
+ @description = description unless description == SKIP
232
+ unless extended_transaction_type == SKIP
233
+ @extended_transaction_type =
234
+ extended_transaction_type
235
+ end
236
+ @id = id unless id == SKIP
237
+ @is_bill_pay = is_bill_pay unless is_bill_pay == SKIP
238
+ @is_direct_deposit = is_direct_deposit unless is_direct_deposit == SKIP
239
+ @is_expense = is_expense unless is_expense == SKIP
240
+ @is_fee = is_fee unless is_fee == SKIP
241
+ @is_income = is_income unless is_income == SKIP
242
+ @is_international = is_international unless is_international == SKIP
243
+ @is_overdraft_fee = is_overdraft_fee unless is_overdraft_fee == SKIP
244
+ @is_payroll_advance = is_payroll_advance unless is_payroll_advance == SKIP
245
+ @is_subscription = is_subscription unless is_subscription == SKIP
246
+ @memo = memo unless memo == SKIP
247
+ @merchant_category_code = merchant_category_code unless merchant_category_code == SKIP
248
+ @merchant_guid = merchant_guid unless merchant_guid == SKIP
249
+ @merchant_location_guid = merchant_location_guid unless merchant_location_guid == SKIP
250
+ @original_description = original_description unless original_description == SKIP
251
+ @top_level_category_guid = top_level_category_guid unless top_level_category_guid == SKIP
252
+ @type = type unless type == SKIP
253
+ @user_guid = user_guid unless user_guid == SKIP
254
+ @additional_properties = additional_properties
255
+ end
256
+
257
+ # Creates an instance of the object from a hash.
258
+ def self.from_hash(hash)
259
+ return nil unless hash
260
+
261
+ # Extract variables from the hash.
262
+ amount = hash.key?('amount') ? hash['amount'] : SKIP
263
+ categorized_by =
264
+ hash.key?('categorized_by') ? hash['categorized_by'] : SKIP
265
+ category = hash.key?('category') ? hash['category'] : SKIP
266
+ category_guid = hash.key?('category_guid') ? hash['category_guid'] : SKIP
267
+ described_by = hash.key?('described_by') ? hash['described_by'] : SKIP
268
+ description = hash.key?('description') ? hash['description'] : SKIP
269
+ extended_transaction_type =
270
+ hash.key?('extended_transaction_type') ? hash['extended_transaction_type'] : SKIP
271
+ id = hash.key?('id') ? hash['id'] : SKIP
272
+ is_bill_pay = hash.key?('is_bill_pay') ? hash['is_bill_pay'] : SKIP
273
+ is_direct_deposit =
274
+ hash.key?('is_direct_deposit') ? hash['is_direct_deposit'] : SKIP
275
+ is_expense = hash.key?('is_expense') ? hash['is_expense'] : SKIP
276
+ is_fee = hash.key?('is_fee') ? hash['is_fee'] : SKIP
277
+ is_income = hash.key?('is_income') ? hash['is_income'] : SKIP
278
+ is_international =
279
+ hash.key?('is_international') ? hash['is_international'] : SKIP
280
+ is_overdraft_fee =
281
+ hash.key?('is_overdraft_fee') ? hash['is_overdraft_fee'] : SKIP
282
+ is_payroll_advance =
283
+ hash.key?('is_payroll_advance') ? hash['is_payroll_advance'] : SKIP
284
+ is_subscription =
285
+ hash.key?('is_subscription') ? hash['is_subscription'] : SKIP
286
+ memo = hash.key?('memo') ? hash['memo'] : SKIP
287
+ merchant_category_code =
288
+ hash.key?('merchant_category_code') ? hash['merchant_category_code'] : SKIP
289
+ merchant_guid = hash.key?('merchant_guid') ? hash['merchant_guid'] : SKIP
290
+ merchant_location_guid =
291
+ hash.key?('merchant_location_guid') ? hash['merchant_location_guid'] : SKIP
292
+ original_description =
293
+ hash.key?('original_description') ? hash['original_description'] : SKIP
294
+ top_level_category_guid =
295
+ hash.key?('top_level_category_guid') ? hash['top_level_category_guid'] : SKIP
296
+ type = hash.key?('type') ? hash['type'] : SKIP
297
+ user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
298
+
299
+ # Create a new hash for additional properties, removing known properties.
300
+ new_hash = hash.reject { |k, _| names.value?(k) }
301
+
302
+ additional_properties = APIHelper.get_additional_properties(
303
+ new_hash, proc { |value| value }
304
+ )
305
+
306
+ # Create object from extracted values.
307
+ EnhanceTransactionResponse.new(amount: amount,
308
+ categorized_by: categorized_by,
309
+ category: category,
310
+ category_guid: category_guid,
311
+ described_by: described_by,
312
+ description: description,
313
+ extended_transaction_type: extended_transaction_type,
314
+ id: id,
315
+ is_bill_pay: is_bill_pay,
316
+ is_direct_deposit: is_direct_deposit,
317
+ is_expense: is_expense,
318
+ is_fee: is_fee,
319
+ is_income: is_income,
320
+ is_international: is_international,
321
+ is_overdraft_fee: is_overdraft_fee,
322
+ is_payroll_advance: is_payroll_advance,
323
+ is_subscription: is_subscription,
324
+ memo: memo,
325
+ merchant_category_code: merchant_category_code,
326
+ merchant_guid: merchant_guid,
327
+ merchant_location_guid: merchant_location_guid,
328
+ original_description: original_description,
329
+ top_level_category_guid: top_level_category_guid,
330
+ type: type,
331
+ user_guid: user_guid,
332
+ additional_properties: additional_properties)
333
+ end
334
+
335
+ # Provides a human-readable string representation of the object.
336
+ def to_s
337
+ class_name = self.class.name.split('::').last
338
+ "<#{class_name} amount: #{@amount}, categorized_by: #{@categorized_by}, category:"\
339
+ " #{@category}, category_guid: #{@category_guid}, described_by: #{@described_by},"\
340
+ " description: #{@description}, extended_transaction_type: #{@extended_transaction_type},"\
341
+ " id: #{@id}, is_bill_pay: #{@is_bill_pay}, is_direct_deposit: #{@is_direct_deposit},"\
342
+ " is_expense: #{@is_expense}, is_fee: #{@is_fee}, is_income: #{@is_income},"\
343
+ " is_international: #{@is_international}, is_overdraft_fee: #{@is_overdraft_fee},"\
344
+ " is_payroll_advance: #{@is_payroll_advance}, is_subscription: #{@is_subscription}, memo:"\
345
+ " #{@memo}, merchant_category_code: #{@merchant_category_code}, merchant_guid:"\
346
+ " #{@merchant_guid}, merchant_location_guid: #{@merchant_location_guid},"\
347
+ " original_description: #{@original_description}, top_level_category_guid:"\
348
+ " #{@top_level_category_guid}, type: #{@type}, user_guid: #{@user_guid},"\
349
+ " additional_properties: #{@additional_properties}>"
350
+ end
351
+
352
+ # Provides a debugging-friendly string with detailed object information.
353
+ def inspect
354
+ class_name = self.class.name.split('::').last
355
+ "<#{class_name} amount: #{@amount.inspect}, categorized_by: #{@categorized_by.inspect},"\
356
+ " category: #{@category.inspect}, category_guid: #{@category_guid.inspect}, described_by:"\
357
+ " #{@described_by.inspect}, description: #{@description.inspect}, extended_transaction_type:"\
358
+ " #{@extended_transaction_type.inspect}, id: #{@id.inspect}, is_bill_pay:"\
359
+ " #{@is_bill_pay.inspect}, is_direct_deposit: #{@is_direct_deposit.inspect}, is_expense:"\
360
+ " #{@is_expense.inspect}, is_fee: #{@is_fee.inspect}, is_income: #{@is_income.inspect},"\
361
+ " is_international: #{@is_international.inspect}, is_overdraft_fee:"\
362
+ " #{@is_overdraft_fee.inspect}, is_payroll_advance: #{@is_payroll_advance.inspect},"\
363
+ " is_subscription: #{@is_subscription.inspect}, memo: #{@memo.inspect},"\
364
+ " merchant_category_code: #{@merchant_category_code.inspect}, merchant_guid:"\
365
+ " #{@merchant_guid.inspect}, merchant_location_guid: #{@merchant_location_guid.inspect},"\
366
+ " original_description: #{@original_description.inspect}, top_level_category_guid:"\
367
+ " #{@top_level_category_guid.inspect}, type: #{@type.inspect}, user_guid:"\
368
+ " #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
369
+ end
370
+ end
371
+ end