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,241 @@
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
+ # GoalsResponse Model.
8
+ class GoalsResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The unique identifier for an account. Defined by MX.
13
+ # @return [String]
14
+ attr_accessor :account_guid
15
+
16
+ # The amount of the `goal`.
17
+ # @return [Float]
18
+ attr_accessor :amount
19
+
20
+ # The current amount of the `goal`.
21
+ # @return [Float]
22
+ attr_accessor :current_amount
23
+
24
+ # The unique identifier for the goal. Defined by MX.
25
+ # @return [String]
26
+ attr_accessor :guid
27
+
28
+ # The type of goal. Can be `SAVE_AMOUNT` or `PAYOFF`.
29
+ # @return [GoalTypeName]
30
+ attr_accessor :goal_type_name
31
+
32
+ # The category of the goal.
33
+ # @return [String]
34
+ attr_accessor :meta_type_name
35
+
36
+ # The name of the goal.
37
+ # @return [String]
38
+ attr_accessor :name
39
+
40
+ # Date and time the `goal` was completed, represented in ISO 8601 format
41
+ # with a timestamp.
42
+ # @return [String]
43
+ attr_accessor :completed_at
44
+
45
+ # Determines if the goal has been spent.
46
+ # @return [TrueClass | FalseClass]
47
+ attr_accessor :has_been_spent
48
+
49
+ # Determines if the goal is complete.
50
+ # @return [TrueClass | FalseClass]
51
+ attr_accessor :is_complete
52
+
53
+ # Additional information you stored about the `goal`.
54
+ # @return [String]
55
+ attr_accessor :metadata
56
+
57
+ # The priority of the goal in relation to multiple goals.
58
+ # @return [Integer]
59
+ attr_accessor :position
60
+
61
+ # The date on which the project was completed.
62
+ # @return [String]
63
+ attr_accessor :projected_to_complete_at
64
+
65
+ # Date and time the goal is to complete, represented in ISO 8601 format with
66
+ # timestamp. Intended for users to set their own goal completion dates.
67
+ # @return [String]
68
+ attr_accessor :targeted_to_complete_at
69
+
70
+ # The track of the `goal`.
71
+ # @return [TrackTypeName]
72
+ attr_accessor :track_type_name
73
+
74
+ # The unique identifier for the the user. Defined by MX.
75
+ # @return [String]
76
+ attr_accessor :user_guid
77
+
78
+ # A mapping from model property names to API property names.
79
+ def self.names
80
+ @_hash = {} if @_hash.nil?
81
+ @_hash['account_guid'] = 'account_guid'
82
+ @_hash['amount'] = 'amount'
83
+ @_hash['current_amount'] = 'current_amount'
84
+ @_hash['guid'] = 'guid'
85
+ @_hash['goal_type_name'] = 'goal_type_name'
86
+ @_hash['meta_type_name'] = 'meta_type_name'
87
+ @_hash['name'] = 'name'
88
+ @_hash['completed_at'] = 'completed_at'
89
+ @_hash['has_been_spent'] = 'has_been_spent'
90
+ @_hash['is_complete'] = 'is_complete'
91
+ @_hash['metadata'] = 'metadata'
92
+ @_hash['position'] = 'position'
93
+ @_hash['projected_to_complete_at'] = 'projected_to_complete_at'
94
+ @_hash['targeted_to_complete_at'] = 'targeted_to_complete_at'
95
+ @_hash['track_type_name'] = 'track_type_name'
96
+ @_hash['user_guid'] = 'user_guid'
97
+ @_hash
98
+ end
99
+
100
+ # An array for optional fields
101
+ def self.optionals
102
+ %w[
103
+ account_guid
104
+ amount
105
+ current_amount
106
+ guid
107
+ goal_type_name
108
+ meta_type_name
109
+ name
110
+ completed_at
111
+ has_been_spent
112
+ is_complete
113
+ metadata
114
+ position
115
+ projected_to_complete_at
116
+ targeted_to_complete_at
117
+ track_type_name
118
+ user_guid
119
+ ]
120
+ end
121
+
122
+ # An array for nullable fields
123
+ def self.nullables
124
+ %w[
125
+ goal_type_name
126
+ ]
127
+ end
128
+
129
+ def initialize(account_guid: SKIP, amount: SKIP, current_amount: SKIP,
130
+ guid: SKIP, goal_type_name: SKIP, meta_type_name: SKIP,
131
+ name: SKIP, completed_at: SKIP, has_been_spent: SKIP,
132
+ is_complete: SKIP, metadata: SKIP, position: SKIP,
133
+ projected_to_complete_at: SKIP,
134
+ targeted_to_complete_at: SKIP, track_type_name: SKIP,
135
+ user_guid: SKIP, additional_properties: nil)
136
+ # Add additional model properties to the instance
137
+ additional_properties = {} if additional_properties.nil?
138
+
139
+ @account_guid = account_guid unless account_guid == SKIP
140
+ @amount = amount unless amount == SKIP
141
+ @current_amount = current_amount unless current_amount == SKIP
142
+ @guid = guid unless guid == SKIP
143
+ @goal_type_name = goal_type_name unless goal_type_name == SKIP
144
+ @meta_type_name = meta_type_name unless meta_type_name == SKIP
145
+ @name = name unless name == SKIP
146
+ @completed_at = completed_at unless completed_at == SKIP
147
+ @has_been_spent = has_been_spent unless has_been_spent == SKIP
148
+ @is_complete = is_complete unless is_complete == SKIP
149
+ @metadata = metadata unless metadata == SKIP
150
+ @position = position unless position == SKIP
151
+ @projected_to_complete_at = projected_to_complete_at unless projected_to_complete_at == SKIP
152
+ @targeted_to_complete_at = targeted_to_complete_at unless targeted_to_complete_at == SKIP
153
+ @track_type_name = track_type_name unless track_type_name == SKIP
154
+ @user_guid = user_guid unless user_guid == SKIP
155
+ @additional_properties = additional_properties
156
+ end
157
+
158
+ # Creates an instance of the object from a hash.
159
+ def self.from_hash(hash)
160
+ return nil unless hash
161
+
162
+ # Extract variables from the hash.
163
+ account_guid = hash.key?('account_guid') ? hash['account_guid'] : SKIP
164
+ amount = hash.key?('amount') ? hash['amount'] : SKIP
165
+ current_amount =
166
+ hash.key?('current_amount') ? hash['current_amount'] : SKIP
167
+ guid = hash.key?('guid') ? hash['guid'] : SKIP
168
+ goal_type_name =
169
+ hash.key?('goal_type_name') ? hash['goal_type_name'] : SKIP
170
+ meta_type_name =
171
+ hash.key?('meta_type_name') ? hash['meta_type_name'] : SKIP
172
+ name = hash.key?('name') ? hash['name'] : SKIP
173
+ completed_at = hash.key?('completed_at') ? hash['completed_at'] : SKIP
174
+ has_been_spent =
175
+ hash.key?('has_been_spent') ? hash['has_been_spent'] : SKIP
176
+ is_complete = hash.key?('is_complete') ? hash['is_complete'] : SKIP
177
+ metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
178
+ position = hash.key?('position') ? hash['position'] : SKIP
179
+ projected_to_complete_at =
180
+ hash.key?('projected_to_complete_at') ? hash['projected_to_complete_at'] : SKIP
181
+ targeted_to_complete_at =
182
+ hash.key?('targeted_to_complete_at') ? hash['targeted_to_complete_at'] : SKIP
183
+ track_type_name =
184
+ hash.key?('track_type_name') ? hash['track_type_name'] : SKIP
185
+ user_guid = hash.key?('user_guid') ? hash['user_guid'] : SKIP
186
+
187
+ # Create a new hash for additional properties, removing known properties.
188
+ new_hash = hash.reject { |k, _| names.value?(k) }
189
+
190
+ additional_properties = APIHelper.get_additional_properties(
191
+ new_hash, proc { |value| value }
192
+ )
193
+
194
+ # Create object from extracted values.
195
+ GoalsResponse.new(account_guid: account_guid,
196
+ amount: amount,
197
+ current_amount: current_amount,
198
+ guid: guid,
199
+ goal_type_name: goal_type_name,
200
+ meta_type_name: meta_type_name,
201
+ name: name,
202
+ completed_at: completed_at,
203
+ has_been_spent: has_been_spent,
204
+ is_complete: is_complete,
205
+ metadata: metadata,
206
+ position: position,
207
+ projected_to_complete_at: projected_to_complete_at,
208
+ targeted_to_complete_at: targeted_to_complete_at,
209
+ track_type_name: track_type_name,
210
+ user_guid: user_guid,
211
+ additional_properties: additional_properties)
212
+ end
213
+
214
+ # Provides a human-readable string representation of the object.
215
+ def to_s
216
+ class_name = self.class.name.split('::').last
217
+ "<#{class_name} account_guid: #{@account_guid}, amount: #{@amount}, current_amount:"\
218
+ " #{@current_amount}, guid: #{@guid}, goal_type_name: #{@goal_type_name}, meta_type_name:"\
219
+ " #{@meta_type_name}, name: #{@name}, completed_at: #{@completed_at}, has_been_spent:"\
220
+ " #{@has_been_spent}, is_complete: #{@is_complete}, metadata: #{@metadata}, position:"\
221
+ " #{@position}, projected_to_complete_at: #{@projected_to_complete_at},"\
222
+ " targeted_to_complete_at: #{@targeted_to_complete_at}, track_type_name:"\
223
+ " #{@track_type_name}, user_guid: #{@user_guid}, additional_properties:"\
224
+ " #{@additional_properties}>"
225
+ end
226
+
227
+ # Provides a debugging-friendly string with detailed object information.
228
+ def inspect
229
+ class_name = self.class.name.split('::').last
230
+ "<#{class_name} account_guid: #{@account_guid.inspect}, amount: #{@amount.inspect},"\
231
+ " current_amount: #{@current_amount.inspect}, guid: #{@guid.inspect}, goal_type_name:"\
232
+ " #{@goal_type_name.inspect}, meta_type_name: #{@meta_type_name.inspect}, name:"\
233
+ " #{@name.inspect}, completed_at: #{@completed_at.inspect}, has_been_spent:"\
234
+ " #{@has_been_spent.inspect}, is_complete: #{@is_complete.inspect}, metadata:"\
235
+ " #{@metadata.inspect}, position: #{@position.inspect}, projected_to_complete_at:"\
236
+ " #{@projected_to_complete_at.inspect}, targeted_to_complete_at:"\
237
+ " #{@targeted_to_complete_at.inspect}, track_type_name: #{@track_type_name.inspect},"\
238
+ " user_guid: #{@user_guid.inspect}, additional_properties: #{@additional_properties}>"
239
+ end
240
+ end
241
+ end
@@ -0,0 +1,94 @@
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
+ # GoalsResponseBody Model.
8
+ class GoalsResponseBody < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Array[GoalsResponse]]
14
+ attr_accessor :goals
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [PaginationResponse]
18
+ attr_accessor :pagination
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['goals'] = 'goals'
24
+ @_hash['pagination'] = 'pagination'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ %w[
31
+ goals
32
+ pagination
33
+ ]
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(goals: SKIP, pagination: SKIP, additional_properties: nil)
42
+ # Add additional model properties to the instance
43
+ additional_properties = {} if additional_properties.nil?
44
+
45
+ @goals = goals unless goals == SKIP
46
+ @pagination = pagination unless pagination == SKIP
47
+ @additional_properties = additional_properties
48
+ end
49
+
50
+ # Creates an instance of the object from a hash.
51
+ def self.from_hash(hash)
52
+ return nil unless hash
53
+
54
+ # Extract variables from the hash.
55
+ # Parameter is an array, so we need to iterate through it
56
+ goals = nil
57
+ unless hash['goals'].nil?
58
+ goals = []
59
+ hash['goals'].each do |structure|
60
+ goals << (GoalsResponse.from_hash(structure) if structure)
61
+ end
62
+ end
63
+
64
+ goals = SKIP unless hash.key?('goals')
65
+ pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
66
+
67
+ # Create a new hash for additional properties, removing known properties.
68
+ new_hash = hash.reject { |k, _| names.value?(k) }
69
+
70
+ additional_properties = APIHelper.get_additional_properties(
71
+ new_hash, proc { |value| value }
72
+ )
73
+
74
+ # Create object from extracted values.
75
+ GoalsResponseBody.new(goals: goals,
76
+ pagination: pagination,
77
+ additional_properties: additional_properties)
78
+ end
79
+
80
+ # Provides a human-readable string representation of the object.
81
+ def to_s
82
+ class_name = self.class.name.split('::').last
83
+ "<#{class_name} goals: #{@goals}, pagination: #{@pagination}, additional_properties:"\
84
+ " #{@additional_properties}>"
85
+ end
86
+
87
+ # Provides a debugging-friendly string with detailed object information.
88
+ def inspect
89
+ class_name = self.class.name.split('::').last
90
+ "<#{class_name} goals: #{@goals.inspect}, pagination: #{@pagination.inspect},"\
91
+ " additional_properties: #{@additional_properties}>"
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,110 @@
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
+ # ImageOptionResponse Model.
8
+ class ImageOptionResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :data_uri
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :guid
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [String]
22
+ attr_accessor :label
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :value
27
+
28
+ # A mapping from model property names to API property names.
29
+ def self.names
30
+ @_hash = {} if @_hash.nil?
31
+ @_hash['data_uri'] = 'data_uri'
32
+ @_hash['guid'] = 'guid'
33
+ @_hash['label'] = 'label'
34
+ @_hash['value'] = 'value'
35
+ @_hash
36
+ end
37
+
38
+ # An array for optional fields
39
+ def self.optionals
40
+ %w[
41
+ data_uri
42
+ guid
43
+ label
44
+ value
45
+ ]
46
+ end
47
+
48
+ # An array for nullable fields
49
+ def self.nullables
50
+ %w[
51
+ data_uri
52
+ guid
53
+ label
54
+ value
55
+ ]
56
+ end
57
+
58
+ def initialize(data_uri: SKIP, guid: SKIP, label: SKIP, value: SKIP,
59
+ additional_properties: nil)
60
+ # Add additional model properties to the instance
61
+ additional_properties = {} if additional_properties.nil?
62
+
63
+ @data_uri = data_uri unless data_uri == SKIP
64
+ @guid = guid unless guid == SKIP
65
+ @label = label unless label == SKIP
66
+ @value = value unless value == SKIP
67
+ @additional_properties = additional_properties
68
+ end
69
+
70
+ # Creates an instance of the object from a hash.
71
+ def self.from_hash(hash)
72
+ return nil unless hash
73
+
74
+ # Extract variables from the hash.
75
+ data_uri = hash.key?('data_uri') ? hash['data_uri'] : SKIP
76
+ guid = hash.key?('guid') ? hash['guid'] : SKIP
77
+ label = hash.key?('label') ? hash['label'] : SKIP
78
+ value = hash.key?('value') ? hash['value'] : SKIP
79
+
80
+ # Create a new hash for additional properties, removing known properties.
81
+ new_hash = hash.reject { |k, _| names.value?(k) }
82
+
83
+ additional_properties = APIHelper.get_additional_properties(
84
+ new_hash, proc { |value| value }
85
+ )
86
+
87
+ # Create object from extracted values.
88
+ ImageOptionResponse.new(data_uri: data_uri,
89
+ guid: guid,
90
+ label: label,
91
+ value: value,
92
+ additional_properties: additional_properties)
93
+ end
94
+
95
+ # Provides a human-readable string representation of the object.
96
+ def to_s
97
+ class_name = self.class.name.split('::').last
98
+ "<#{class_name} data_uri: #{@data_uri}, guid: #{@guid}, label: #{@label}, value: #{@value},"\
99
+ " additional_properties: #{@additional_properties}>"
100
+ end
101
+
102
+ # Provides a debugging-friendly string with detailed object information.
103
+ def inspect
104
+ class_name = self.class.name.split('::').last
105
+ "<#{class_name} data_uri: #{@data_uri.inspect}, guid: #{@guid.inspect}, label:"\
106
+ " #{@label.inspect}, value: #{@value.inspect}, additional_properties:"\
107
+ " #{@additional_properties}>"
108
+ end
109
+ end
110
+ end