mx-platform-ruby 0.39.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/docs/BudgetCreateRequest.md +26 -0
  4. data/docs/BudgetCreateRequestBody.md +18 -0
  5. data/docs/BudgetResponse.md +48 -0
  6. data/docs/BudgetResponseBody.md +18 -0
  7. data/docs/BudgetUpdateRequest.md +22 -0
  8. data/docs/BudgetUpdateRequestBody.md +18 -0
  9. data/docs/BudgetsApi.md +444 -0
  10. data/docs/CreditCardProduct.md +8 -8
  11. data/docs/CreditCardProductResponse.md +2 -2
  12. data/docs/GoalRequest.md +38 -0
  13. data/docs/GoalRequestBody.md +18 -0
  14. data/docs/GoalResponse.md +48 -0
  15. data/docs/GoalResponseBody.md +18 -0
  16. data/docs/GoalsApi.md +450 -0
  17. data/docs/GoalsResponse.md +48 -0
  18. data/docs/GoalsResponseBody.md +20 -0
  19. data/docs/MonthlyCashFlowProfileRequest.md +20 -0
  20. data/docs/MonthlyCashFlowProfileRequestBody.md +18 -0
  21. data/docs/MonthlyCashFlowResponse.md +30 -0
  22. data/docs/MonthlyCashFlowResponseBody.md +18 -0
  23. data/docs/MxPlatformApi.md +291 -0
  24. data/docs/RepositionRequest.md +20 -0
  25. data/docs/RepositionRequestBody.md +18 -0
  26. data/docs/RepositionResponseBody.md +18 -0
  27. data/docs/RewardResponse.md +2 -0
  28. data/docs/RewardsResponse.md +2 -0
  29. data/docs/SplitTransactionRequest.md +24 -0
  30. data/docs/SplitTransactionRequestBody.md +18 -0
  31. data/docs/SplitTransactionsResponseBody.md +18 -0
  32. data/docs/UpdateGoalRequest.md +38 -0
  33. data/docs/UpdateGoalRequestBody.md +18 -0
  34. data/lib/mx-platform-ruby/api/budgets_api.rb +434 -0
  35. data/lib/mx-platform-ruby/api/goals_api.rb +455 -0
  36. data/lib/mx-platform-ruby/api/mx_platform_api.rb +278 -0
  37. data/lib/mx-platform-ruby/models/budget_create_request.rb +269 -0
  38. data/lib/mx-platform-ruby/models/budget_create_request_body.rb +214 -0
  39. data/lib/mx-platform-ruby/models/budget_response.rb +373 -0
  40. data/lib/mx-platform-ruby/models/budget_response_body.rb +214 -0
  41. data/lib/mx-platform-ruby/models/budget_update_request.rb +235 -0
  42. data/lib/mx-platform-ruby/models/budget_update_request_body.rb +214 -0
  43. data/lib/mx-platform-ruby/models/credit_card_product.rb +17 -21
  44. data/lib/mx-platform-ruby/models/credit_card_product_response.rb +7 -7
  45. data/lib/mx-platform-ruby/models/goal_request.rb +350 -0
  46. data/lib/mx-platform-ruby/models/goal_request_body.rb +214 -0
  47. data/lib/mx-platform-ruby/models/goal_response.rb +364 -0
  48. data/lib/mx-platform-ruby/models/goal_response_body.rb +214 -0
  49. data/lib/mx-platform-ruby/models/goals_response.rb +363 -0
  50. data/lib/mx-platform-ruby/models/goals_response_body.rb +225 -0
  51. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request.rb +225 -0
  52. data/lib/mx-platform-ruby/models/monthly_cash_flow_profile_request_body.rb +214 -0
  53. data/lib/mx-platform-ruby/models/monthly_cash_flow_response.rb +274 -0
  54. data/lib/mx-platform-ruby/models/monthly_cash_flow_response_body.rb +214 -0
  55. data/lib/mx-platform-ruby/models/reposition_request.rb +239 -0
  56. data/lib/mx-platform-ruby/models/reposition_request_body.rb +216 -0
  57. data/lib/mx-platform-ruby/models/reposition_response_body.rb +216 -0
  58. data/lib/mx-platform-ruby/models/reward_response.rb +10 -1
  59. data/lib/mx-platform-ruby/models/rewards_response.rb +10 -1
  60. data/lib/mx-platform-ruby/models/split_transaction_request.rb +252 -0
  61. data/lib/mx-platform-ruby/models/split_transaction_request_body.rb +221 -0
  62. data/lib/mx-platform-ruby/models/split_transactions_response_body.rb +216 -0
  63. data/lib/mx-platform-ruby/models/update_goal_request.rb +315 -0
  64. data/lib/mx-platform-ruby/models/update_goal_request_body.rb +214 -0
  65. data/lib/mx-platform-ruby/version.rb +1 -1
  66. data/lib/mx-platform-ruby.rb +26 -0
  67. data/openapi/config.yml +1 -1
  68. data/spec/api/budgets_api_spec.rb +112 -0
  69. data/spec/api/goals_api_spec.rb +115 -0
  70. data/spec/api/mx_platform_api_spec.rb +51 -0
  71. data/spec/models/budget_create_request_body_spec.rb +34 -0
  72. data/spec/models/budget_create_request_spec.rb +58 -0
  73. data/spec/models/budget_response_body_spec.rb +34 -0
  74. data/spec/models/budget_response_spec.rb +124 -0
  75. data/spec/models/budget_update_request_body_spec.rb +34 -0
  76. data/spec/models/budget_update_request_spec.rb +46 -0
  77. data/spec/models/credit_card_product_response_spec.rb +1 -1
  78. data/spec/models/credit_card_product_spec.rb +2 -2
  79. data/spec/models/goal_request_body_spec.rb +34 -0
  80. data/spec/models/goal_request_spec.rb +94 -0
  81. data/spec/models/goal_response_body_spec.rb +34 -0
  82. data/spec/models/goal_response_spec.rb +124 -0
  83. data/spec/models/goals_response_body_spec.rb +40 -0
  84. data/spec/models/goals_response_spec.rb +124 -0
  85. data/spec/models/monthly_cash_flow_profile_request_body_spec.rb +34 -0
  86. data/spec/models/monthly_cash_flow_profile_request_spec.rb +40 -0
  87. data/spec/models/monthly_cash_flow_response_body_spec.rb +34 -0
  88. data/spec/models/monthly_cash_flow_response_spec.rb +70 -0
  89. data/spec/models/reposition_request_body_spec.rb +34 -0
  90. data/spec/models/reposition_request_spec.rb +40 -0
  91. data/spec/models/reposition_response_body_spec.rb +34 -0
  92. data/spec/models/reward_response_spec.rb +6 -0
  93. data/spec/models/rewards_response_spec.rb +6 -0
  94. data/spec/models/split_transaction_request_body_spec.rb +34 -0
  95. data/spec/models/split_transaction_request_spec.rb +52 -0
  96. data/spec/models/split_transactions_response_body_spec.rb +34 -0
  97. data/spec/models/update_goal_request_body_spec.rb +34 -0
  98. data/spec/models/update_goal_request_spec.rb +94 -0
  99. metadata +106 -2
@@ -0,0 +1,214 @@
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.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class UpdateGoalRequestBody
18
+ attr_accessor :goal
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'goal' => :'goal'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'goal' => :'UpdateGoalRequest'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::UpdateGoalRequestBody` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::UpdateGoalRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'goal')
61
+ self.goal = attributes[:'goal']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
69
+ invalid_properties = Array.new
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ warn '[DEPRECATED] the `valid?` method is obsolete'
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ goal == o.goal
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [goal].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ attributes = attributes.transform_keys(&:to_sym)
106
+ transformed_hash = {}
107
+ openapi_types.each_pair do |key, type|
108
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
109
+ transformed_hash["#{key}"] = nil
110
+ elsif type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[attribute_map[key]].is_a?(Array)
114
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
115
+ end
116
+ elsif !attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
118
+ end
119
+ end
120
+ new(transformed_hash)
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def self._deserialize(type, value)
128
+ case type.to_sym
129
+ when :Time
130
+ Time.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :Boolean
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ # models (e.g. Pet) or oneOf
161
+ klass = MxPlatformRuby.const_get(type)
162
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end
211
+
212
+ end
213
+
214
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.0.1
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.39.0'
14
+ VERSION = '0.40.0'
15
15
  end
@@ -32,6 +32,12 @@ require 'mx-platform-ruby/models/authorization_code_request'
32
32
  require 'mx-platform-ruby/models/authorization_code_request_body'
33
33
  require 'mx-platform-ruby/models/authorization_code_response'
34
34
  require 'mx-platform-ruby/models/authorization_code_response_body'
35
+ require 'mx-platform-ruby/models/budget_create_request'
36
+ require 'mx-platform-ruby/models/budget_create_request_body'
37
+ require 'mx-platform-ruby/models/budget_response'
38
+ require 'mx-platform-ruby/models/budget_response_body'
39
+ require 'mx-platform-ruby/models/budget_update_request'
40
+ require 'mx-platform-ruby/models/budget_update_request_body'
35
41
  require 'mx-platform-ruby/models/categories_response_body'
36
42
  require 'mx-platform-ruby/models/category_create_request'
37
43
  require 'mx-platform-ruby/models/category_create_request_body'
@@ -54,6 +60,12 @@ require 'mx-platform-ruby/models/enhance_transaction_response'
54
60
  require 'mx-platform-ruby/models/enhance_transactions_request'
55
61
  require 'mx-platform-ruby/models/enhance_transactions_request_body'
56
62
  require 'mx-platform-ruby/models/enhance_transactions_response_body'
63
+ require 'mx-platform-ruby/models/goal_request'
64
+ require 'mx-platform-ruby/models/goal_request_body'
65
+ require 'mx-platform-ruby/models/goal_response'
66
+ require 'mx-platform-ruby/models/goal_response_body'
67
+ require 'mx-platform-ruby/models/goals_response'
68
+ require 'mx-platform-ruby/models/goals_response_body'
57
69
  require 'mx-platform-ruby/models/holding_response'
58
70
  require 'mx-platform-ruby/models/holding_response_body'
59
71
  require 'mx-platform-ruby/models/holdings_response_body'
@@ -93,6 +105,10 @@ require 'mx-platform-ruby/models/merchant_location_response_body'
93
105
  require 'mx-platform-ruby/models/merchant_response'
94
106
  require 'mx-platform-ruby/models/merchant_response_body'
95
107
  require 'mx-platform-ruby/models/merchants_response_body'
108
+ require 'mx-platform-ruby/models/monthly_cash_flow_profile_request'
109
+ require 'mx-platform-ruby/models/monthly_cash_flow_profile_request_body'
110
+ require 'mx-platform-ruby/models/monthly_cash_flow_response'
111
+ require 'mx-platform-ruby/models/monthly_cash_flow_response_body'
96
112
  require 'mx-platform-ruby/models/o_auth_window_response'
97
113
  require 'mx-platform-ruby/models/o_auth_window_response_body'
98
114
  require 'mx-platform-ruby/models/option_response'
@@ -101,6 +117,9 @@ require 'mx-platform-ruby/models/payment_processor_authorization_code_request'
101
117
  require 'mx-platform-ruby/models/payment_processor_authorization_code_request_body'
102
118
  require 'mx-platform-ruby/models/payment_processor_authorization_code_response'
103
119
  require 'mx-platform-ruby/models/payment_processor_authorization_code_response_body'
120
+ require 'mx-platform-ruby/models/reposition_request'
121
+ require 'mx-platform-ruby/models/reposition_request_body'
122
+ require 'mx-platform-ruby/models/reposition_response_body'
104
123
  require 'mx-platform-ruby/models/reward_response'
105
124
  require 'mx-platform-ruby/models/reward_response_body'
106
125
  require 'mx-platform-ruby/models/rewards_response'
@@ -116,6 +135,9 @@ require 'mx-platform-ruby/models/spending_plan_iteration_response'
116
135
  require 'mx-platform-ruby/models/spending_plan_iterations_response'
117
136
  require 'mx-platform-ruby/models/spending_plan_response'
118
137
  require 'mx-platform-ruby/models/spending_plans_response_body'
138
+ require 'mx-platform-ruby/models/split_transaction_request'
139
+ require 'mx-platform-ruby/models/split_transaction_request_body'
140
+ require 'mx-platform-ruby/models/split_transactions_response_body'
119
141
  require 'mx-platform-ruby/models/statement_response'
120
142
  require 'mx-platform-ruby/models/statement_response_body'
121
143
  require 'mx-platform-ruby/models/statements_response_body'
@@ -148,6 +170,8 @@ require 'mx-platform-ruby/models/transaction_rules_response_body'
148
170
  require 'mx-platform-ruby/models/transaction_update_request'
149
171
  require 'mx-platform-ruby/models/transaction_update_request_body'
150
172
  require 'mx-platform-ruby/models/transactions_response_body'
173
+ require 'mx-platform-ruby/models/update_goal_request'
174
+ require 'mx-platform-ruby/models/update_goal_request_body'
151
175
  require 'mx-platform-ruby/models/user_create_request'
152
176
  require 'mx-platform-ruby/models/user_create_request_body'
153
177
  require 'mx-platform-ruby/models/user_response'
@@ -161,6 +185,8 @@ require 'mx-platform-ruby/models/widget_response'
161
185
  require 'mx-platform-ruby/models/widget_response_body'
162
186
 
163
187
  # APIs
188
+ require 'mx-platform-ruby/api/budgets_api'
189
+ require 'mx-platform-ruby/api/goals_api'
164
190
  require 'mx-platform-ruby/api/insights_api'
165
191
  require 'mx-platform-ruby/api/mx_platform_api'
166
192
  require 'mx-platform-ruby/api/spending_plan_api'
data/openapi/config.yml CHANGED
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
6
6
  gemLicense: MIT
7
7
  gemName: mx-platform-ruby
8
8
  gemRequiredRubyVersion: ">= 2.6"
9
- gemVersion: 0.39.0
9
+ gemVersion: 0.40.0
10
10
  library: faraday
11
11
  moduleName: MxPlatformRuby
@@ -0,0 +1,112 @@
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.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MxPlatformRuby::BudgetsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'BudgetsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MxPlatformRuby::BudgetsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BudgetsApi' do
30
+ it 'should create an instance of BudgetsApi' do
31
+ expect(@api_instance).to be_instance_of(MxPlatformRuby::BudgetsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for users_user_guid_budgets_budget_guid_delete
36
+ # Delete a budget
37
+ # Delete a budget.
38
+ # @param user_guid The unique identifier for the budget. Defined by MX.
39
+ # @param budget_guid The unique identifier for the budget. Defined by MX.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'users_user_guid_budgets_budget_guid_delete test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for users_user_guid_budgets_budget_guid_get
49
+ # Read a specific budget
50
+ # Read a specific budget.
51
+ # @param budget_guid The unique identifier for the budget. Defined by MX.
52
+ # @param user_guid The unique identifier for the budget. Defined by MX.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [BudgetResponseBody]
55
+ describe 'users_user_guid_budgets_budget_guid_get test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for users_user_guid_budgets_budget_guid_put
62
+ # Update a specific budget
63
+ # Update a specific budget.
64
+ # @param user_guid The unique identifier for the budget. Defined by MX.
65
+ # @param budget_guid The unique identifier for the budget. Defined by MX.
66
+ # @param [Hash] opts the optional parameters
67
+ # @option opts [BudgetUpdateRequestBody] :budget_update_request_body
68
+ # @return [BudgetResponseBody]
69
+ describe 'users_user_guid_budgets_budget_guid_put test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
72
+ end
73
+ end
74
+
75
+ # unit tests for users_user_guid_budgets_generate_post
76
+ # Auto-generate budgets
77
+ # This endpoint will automatically create budgets for several categories based on existing transactions; these budgets are returned as an array. Specifically, budgets will only be generated if the &#x60;user&#x60; has at least one &#x60;transaction&#x60; in a given category during each of the two previous calendar months. For example, if the request is made on March 6, and there is at least one \&quot;Bills &amp; Utilities\&quot; &#x60;transaction&#x60; in both January and February, a budget will be generated for \&quot;Bills &amp; Utilities.\&quot; If there are two \&quot;Bills &amp; Utilities\&quot; transactions in February but none in January, no budget will be generated for that category. If budgets already exist for particular categories, new budgets will be generated and returned based on the available transactions. If one or more budgets remain unchanged, they will nevertheless be returned in the response. If no transaction data for the &#x60;user&#x60; meet the above criteria, a &#x60;422 Unprocessable Entity&#x60; error will be returned with status code 4221 along with the message, &#x60;There aren&#39;t enough transactions to automatically create any budgets&#x60;.
78
+ # @param user_guid The unique identifier for the user. Defined by MX.
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [BudgetResponseBody]
81
+ describe 'users_user_guid_budgets_generate_post test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
84
+ end
85
+ end
86
+
87
+ # unit tests for users_user_guid_budgets_get
88
+ # List all budgets
89
+ # List all budgets
90
+ # @param user_guid The unique identifier for the user. Defined by MX.
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [BudgetResponseBody]
93
+ describe 'users_user_guid_budgets_get test' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
96
+ end
97
+ end
98
+
99
+ # unit tests for users_user_guid_budgets_post
100
+ # Create a budget
101
+ # Create a budget. This endpoint accepts the optional &#x60;MX-Skip-Webhook&#x60; header and &#x60;skip_webhook&#x60; parameter. You cannot create a duplicate budget. For example, if you attempt to create a budget for \&quot;Gas\&quot;, but that budget already exist, the request will fail. You can retrieve a list of all existing categories by using the List Categories endpoint.
102
+ # @param user_guid The unique identifier for the user. Defined by MX.
103
+ # @param budget_create_request_body
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [BudgetResponseBody]
106
+ describe 'users_user_guid_budgets_post test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
109
+ end
110
+ end
111
+
112
+ end
@@ -0,0 +1,115 @@
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.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MxPlatformRuby::GoalsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'GoalsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MxPlatformRuby::GoalsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GoalsApi' do
30
+ it 'should create an instance of GoalsApi' do
31
+ expect(@api_instance).to be_instance_of(MxPlatformRuby::GoalsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for users_user_guid_goals_get
36
+ # List goals
37
+ # List all goals a user can set.
38
+ # @param user_guid The unique identifier for the user.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :page Results are returned in paginated sets, this is the page of the results you would like to view. Defaults to page 1 if no page is specified.
41
+ # @option opts [String] :records_per_age The supported range is from 10 to 1000. If the records_per_page parameter is not specified or is outside this range, a default of 25 records per page will be used.
42
+ # @return [GoalsResponseBody]
43
+ describe 'users_user_guid_goals_get test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
46
+ end
47
+ end
48
+
49
+ # unit tests for users_user_guid_goals_goal_guid_delete
50
+ # Delete a goal
51
+ # Delete a goal.
52
+ # @param goal_guid The unique identifier for a goal. Defined by MX.
53
+ # @param user_guid The unique identifier for a user.
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [nil]
56
+ describe 'users_user_guid_goals_goal_guid_delete test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
59
+ end
60
+ end
61
+
62
+ # unit tests for users_user_guid_goals_goal_guid_get
63
+ # Read a goal
64
+ # Read a specific goal.
65
+ # @param goal_guid The unique identifier for a goal. Defined by MX.
66
+ # @param user_guid The unique identifier for a user.
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [GoalResponseBody]
69
+ describe 'users_user_guid_goals_goal_guid_get test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
72
+ end
73
+ end
74
+
75
+ # unit tests for users_user_guid_goals_goal_guid_put
76
+ # Update a goal
77
+ # This endpoint updates a specific goal.
78
+ # @param goal_guid The unique identifier for a goal. Defined by MX.
79
+ # @param user_guid The unique identifier for a user.
80
+ # @param update_goal_request_body
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [GoalResponseBody]
83
+ describe 'users_user_guid_goals_goal_guid_put test' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
86
+ end
87
+ end
88
+
89
+ # unit tests for users_user_guid_goals_post
90
+ # Create a goal
91
+ # Create a goal. This endpoint accepts the optional &#x60;MX-Skip-Webhook&#x60; header and &#x60;skip_webhook&#x60; parameter.
92
+ # @param user_guid The unique identifier for the user.
93
+ # @param goal_request_body
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [GoalResponseBody]
96
+ describe 'users_user_guid_goals_post test' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ # unit tests for users_user_guid_goals_reposition_put
103
+ # Reposition goals
104
+ # This endpoint repositions goal priority levels. If one goal is set to a lower priority, then any other goals need to be adjusted accordingly.
105
+ # @param user_guid The unique identifier for the user.
106
+ # @param reposition_request_body
107
+ # @param [Hash] opts the optional parameters
108
+ # @return [RepositionResponseBody]
109
+ describe 'users_user_guid_goals_reposition_put test' do
110
+ it 'should work' do
111
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
112
+ end
113
+ end
114
+
115
+ end
@@ -1450,6 +1450,57 @@ describe 'MxPlatformApi' do
1450
1450
  end
1451
1451
  end
1452
1452
 
1453
+ # unit tests for users_user_guid_monthly_cash_flow_profile_get
1454
+ # Read monthly cash flow profile
1455
+ # @param user_guid The unique identifier for the user.
1456
+ # @param [Hash] opts the optional parameters
1457
+ # @return [MonthlyCashFlowResponseBody]
1458
+ describe 'users_user_guid_monthly_cash_flow_profile_get test' do
1459
+ it 'should work' do
1460
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1461
+ end
1462
+ end
1463
+
1464
+ # unit tests for users_user_guid_monthly_cash_flow_profile_put
1465
+ # Update monthly cash flow profile
1466
+ # Use this endpoint to update the attributes of a &#x60;monthly_cash_flow_profile&#x60;.
1467
+ # @param user_guid The unique identifier for the user.
1468
+ # @param monthly_cash_flow_profile_request_body
1469
+ # @param [Hash] opts the optional parameters
1470
+ # @return [MonthlyCashFlowResponseBody]
1471
+ describe 'users_user_guid_monthly_cash_flow_profile_put test' do
1472
+ it 'should work' do
1473
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1474
+ end
1475
+ end
1476
+
1477
+ # unit tests for users_user_guid_transactions_transaction_guid_split_delete
1478
+ # Delete split transactions
1479
+ # This endpoint deletes all split transactions linked to a parent transaction, but it leaves the parent transaction active. This request will also update the parent transaction&#39;s has_been_split field to false. This endpoint accepts the optional MX-Skip-Webhook header.
1480
+ # @param transaction_guid The unique id for a &#x60;transaction&#x60;.
1481
+ # @param user_guid The unique id for a &#x60;user&#x60;.
1482
+ # @param [Hash] opts the optional parameters
1483
+ # @return [nil]
1484
+ describe 'users_user_guid_transactions_transaction_guid_split_delete test' do
1485
+ it 'should work' do
1486
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1487
+ end
1488
+ end
1489
+
1490
+ # unit tests for users_user_guid_transactions_transaction_guid_split_post
1491
+ # Create split transactions
1492
+ # This endpoint creates two or more child transactions that are branched from a previous transaction. This endpoint allows you to link multiple categories, descriptions, and amounts to a parent transaction. When a split transaction is created, the parent transaction&#39;s &#x60;has_been_split&#x60; field will automatically be updated to true and the child transactions&#39; &#x60;parent_guid&#x60; will have the transaction guid of the parent. The total amount of the child transactions must equal the amount of the parent transaction. Once a transaction has been split it can&#39;t be split again. In order to re-split a transaction, it must first be un-split. This can be done by calling the Delete Split Transactions endpoint. Calling this endpoint will delete the existing child transactions and update the parent transaction&#39;s &#x60;has_been_split&#x60; field to false. You can then re-split the parent transaction by calling Create Split Transaction again.
1493
+ # @param user_guid The unique identifier for the user. Defined by MX.
1494
+ # @param transaction_guid The unique identifier for the transaction. Defined by MX.
1495
+ # @param [Hash] opts the optional parameters
1496
+ # @option opts [SplitTransactionRequestBody] :split_transaction_request_body
1497
+ # @return [SplitTransactionsResponseBody]
1498
+ describe 'users_user_guid_transactions_transaction_guid_split_post test' do
1499
+ it 'should work' do
1500
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
1501
+ end
1502
+ end
1503
+
1453
1504
  # unit tests for verify_member
1454
1505
  # Verify member
1455
1506
  # The verify endpoint begins a verification process for a member.
@@ -0,0 +1,34 @@
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.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MxPlatformRuby::BudgetCreateRequestBody
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MxPlatformRuby::BudgetCreateRequestBody do
21
+ let(:instance) { MxPlatformRuby::BudgetCreateRequestBody.new }
22
+
23
+ describe 'test an instance of BudgetCreateRequestBody' do
24
+ it 'should create an instance of BudgetCreateRequestBody' do
25
+ expect(instance).to be_instance_of(MxPlatformRuby::BudgetCreateRequestBody)
26
+ end
27
+ end
28
+ describe 'test attribute "budget"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
+ end
32
+ end
33
+
34
+ end