mx-platform-ruby 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +40 -41
  4. data/docs/AccountNumberResponse.md +32 -0
  5. data/docs/AccountNumbersResponseBody.md +2 -2
  6. data/docs/AccountOwnerResponse.md +40 -0
  7. data/docs/AccountOwnersResponseBody.md +2 -2
  8. data/docs/AccountResponse.md +96 -0
  9. data/docs/AccountResponseBody.md +1 -1
  10. data/docs/AccountsResponseBody.md +2 -2
  11. data/docs/CategoriesResponseBody.md +2 -2
  12. data/docs/CategoryResponse.md +32 -0
  13. data/docs/CategoryResponseBody.md +1 -1
  14. data/docs/ChallengeResponse.md +30 -0
  15. data/docs/ChallengeResponseImageOptions.md +22 -0
  16. data/docs/ChallengeResponseOptions.md +20 -0
  17. data/docs/ChallengesResponseBody.md +2 -2
  18. data/docs/ConnectWidgetResponse.md +20 -0
  19. data/docs/ConnectWidgetResponseBody.md +1 -1
  20. data/docs/CredentialResponse.md +26 -0
  21. data/docs/CredentialsResponseBody.md +2 -2
  22. data/docs/EnhanceTransactionResponse.md +48 -0
  23. data/docs/EnhanceTransactionsResponseBody.md +1 -1
  24. data/docs/HoldingResponse.md +52 -0
  25. data/docs/HoldingResponseBody.md +1 -1
  26. data/docs/HoldingsResponseBody.md +2 -2
  27. data/docs/InstitutionResponse.md +36 -0
  28. data/docs/InstitutionResponseBody.md +1 -1
  29. data/docs/InstitutionsResponseBody.md +2 -2
  30. data/docs/MemberResponse.md +40 -0
  31. data/docs/MemberResponseBody.md +1 -1
  32. data/docs/MemberStatusResponse.md +34 -0
  33. data/docs/MemberStatusResponseBody.md +1 -1
  34. data/docs/MembersResponseBody.md +2 -2
  35. data/docs/MerchantResponse.md +28 -0
  36. data/docs/MerchantResponseBody.md +1 -1
  37. data/docs/MerchantsResponseBody.md +2 -2
  38. data/docs/MxPlatformApi.md +196 -196
  39. data/docs/OAuthWindowResponse.md +20 -0
  40. data/docs/OAuthWindowResponseBody.md +1 -1
  41. data/docs/PaginationResponse.md +24 -0
  42. data/docs/StatementResponse.md +32 -0
  43. data/docs/StatementResponseBody.md +1 -1
  44. data/docs/StatementsResponseBody.md +2 -2
  45. data/docs/TagResponse.md +22 -0
  46. data/docs/TagResponseBody.md +1 -1
  47. data/docs/TaggingResponse.md +26 -0
  48. data/docs/TaggingResponseBody.md +1 -1
  49. data/docs/TaggingsResponseBody.md +2 -2
  50. data/docs/TagsResponseBody.md +2 -2
  51. data/docs/TransactionResponse.md +88 -0
  52. data/docs/TransactionResponseBody.md +1 -1
  53. data/docs/TransactionRuleResponse.md +30 -0
  54. data/docs/TransactionRuleResponseBody.md +1 -1
  55. data/docs/TransactionRulesResponseBody.md +2 -2
  56. data/docs/TransactionsResponseBody.md +2 -2
  57. data/docs/UserResponse.md +26 -0
  58. data/docs/UserResponseBody.md +1 -1
  59. data/docs/UsersResponseBody.md +2 -2
  60. data/docs/WidgetResponse.md +22 -0
  61. data/docs/WidgetResponseBody.md +1 -1
  62. data/lib/mx-platform-ruby.rb +24 -25
  63. data/lib/mx-platform-ruby/api/mx_platform_api.rb +185 -185
  64. data/lib/mx-platform-ruby/models/account_number_response.rb +281 -0
  65. data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +2 -2
  66. data/lib/mx-platform-ruby/models/account_owner_response.rb +317 -0
  67. data/lib/mx-platform-ruby/models/account_owners_response_body.rb +2 -2
  68. data/lib/mx-platform-ruby/models/account_response.rb +569 -0
  69. data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
  70. data/lib/mx-platform-ruby/models/accounts_response_body.rb +2 -2
  71. data/lib/mx-platform-ruby/models/categories_response_body.rb +2 -2
  72. data/lib/mx-platform-ruby/models/category_response.rb +281 -0
  73. data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
  74. data/lib/mx-platform-ruby/models/challenge_response.rb +276 -0
  75. data/lib/mx-platform-ruby/models/challenge_response_image_options.rb +236 -0
  76. data/lib/mx-platform-ruby/models/challenge_response_options.rb +227 -0
  77. data/lib/mx-platform-ruby/models/challenges_response_body.rb +2 -2
  78. data/lib/mx-platform-ruby/models/connect_widget_response.rb +227 -0
  79. data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
  80. data/lib/mx-platform-ruby/models/credential_response.rb +254 -0
  81. data/lib/mx-platform-ruby/models/credentials_response_body.rb +2 -2
  82. data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +353 -0
  83. data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
  84. data/lib/mx-platform-ruby/models/holding_response.rb +371 -0
  85. data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
  86. data/lib/mx-platform-ruby/models/holdings_response_body.rb +2 -2
  87. data/lib/mx-platform-ruby/models/institution_response.rb +299 -0
  88. data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
  89. data/lib/mx-platform-ruby/models/institutions_response_body.rb +2 -2
  90. data/lib/mx-platform-ruby/models/member_response.rb +317 -0
  91. data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
  92. data/lib/mx-platform-ruby/models/member_status_response.rb +292 -0
  93. data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
  94. data/lib/mx-platform-ruby/models/members_response_body.rb +2 -2
  95. data/lib/mx-platform-ruby/models/merchant_response.rb +263 -0
  96. data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
  97. data/lib/mx-platform-ruby/models/merchants_response_body.rb +2 -2
  98. data/lib/mx-platform-ruby/models/o_auth_window_response.rb +227 -0
  99. data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
  100. data/lib/mx-platform-ruby/models/pagination_response.rb +245 -0
  101. data/lib/mx-platform-ruby/models/statement_response.rb +281 -0
  102. data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
  103. data/lib/mx-platform-ruby/models/statements_response_body.rb +2 -2
  104. data/lib/mx-platform-ruby/models/tag_response.rb +236 -0
  105. data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
  106. data/lib/mx-platform-ruby/models/tagging_response.rb +254 -0
  107. data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
  108. data/lib/mx-platform-ruby/models/taggings_response_body.rb +2 -2
  109. data/lib/mx-platform-ruby/models/tags_response_body.rb +2 -2
  110. data/lib/mx-platform-ruby/models/transaction_response.rb +533 -0
  111. data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
  112. data/lib/mx-platform-ruby/models/transaction_rule_response.rb +272 -0
  113. data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
  114. data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +2 -2
  115. data/lib/mx-platform-ruby/models/transactions_response_body.rb +2 -2
  116. data/lib/mx-platform-ruby/models/user_response.rb +254 -0
  117. data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
  118. data/lib/mx-platform-ruby/models/users_response_body.rb +2 -2
  119. data/lib/mx-platform-ruby/models/widget_response.rb +236 -0
  120. data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
  121. data/lib/mx-platform-ruby/version.rb +1 -1
  122. data/openapi/config.yml +11 -0
  123. data/pkg/mx-platform-ruby-0.2.1.gem +0 -0
  124. data/spec/api/mx_platform_api_spec.rb +51 -51
  125. data/spec/models/account_number_response_spec.rb +76 -0
  126. data/spec/models/account_owner_response_spec.rb +100 -0
  127. data/spec/models/account_response_spec.rb +268 -0
  128. data/spec/models/category_response_spec.rb +76 -0
  129. data/spec/models/challenge_response_image_options_spec.rb +46 -0
  130. data/spec/models/challenge_response_options_spec.rb +40 -0
  131. data/spec/models/challenge_response_spec.rb +70 -0
  132. data/spec/models/connect_widget_response_spec.rb +40 -0
  133. data/spec/models/credential_response_spec.rb +58 -0
  134. data/spec/models/enhance_transaction_response_spec.rb +124 -0
  135. data/spec/models/holding_response_spec.rb +136 -0
  136. data/spec/models/institution_response_spec.rb +88 -0
  137. data/spec/models/member_response_spec.rb +100 -0
  138. data/spec/models/member_status_response_spec.rb +82 -0
  139. data/spec/models/merchant_response_spec.rb +64 -0
  140. data/spec/models/o_auth_window_response_spec.rb +40 -0
  141. data/spec/models/pagination_response_spec.rb +52 -0
  142. data/spec/models/statement_response_spec.rb +76 -0
  143. data/spec/models/tag_response_spec.rb +46 -0
  144. data/spec/models/tagging_response_spec.rb +58 -0
  145. data/spec/models/transaction_response_spec.rb +244 -0
  146. data/spec/models/transaction_rule_response_spec.rb +70 -0
  147. data/spec/models/user_response_spec.rb +58 -0
  148. data/spec/models/widget_response_spec.rb +46 -0
  149. metadata +100 -2
@@ -32,7 +32,7 @@ module MxPlatformRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'user' => :'User'
35
+ :'user' => :'UserResponse'
36
36
  }
37
37
  end
38
38
 
@@ -35,8 +35,8 @@ module MxPlatformRuby
35
35
  # Attribute type mapping.
36
36
  def self.openapi_types
37
37
  {
38
- :'pagination' => :'Pagination',
39
- :'users' => :'Array<User>'
38
+ :'pagination' => :'PaginationResponse',
39
+ :'users' => :'Array<UserResponse>'
40
40
  }
41
41
  end
42
42
 
@@ -0,0 +1,236 @@
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: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class WidgetResponse
18
+ attr_accessor :type
19
+
20
+ attr_accessor :url
21
+
22
+ attr_accessor :user_id
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'type' => :'type',
28
+ :'url' => :'url',
29
+ :'user_id' => :'user_id'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'type' => :'String',
42
+ :'url' => :'String',
43
+ :'user_id' => :'String'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::WidgetResponse` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::WidgetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'type')
69
+ self.type = attributes[:'type']
70
+ end
71
+
72
+ if attributes.key?(:'url')
73
+ self.url = attributes[:'url']
74
+ end
75
+
76
+ if attributes.key?(:'user_id')
77
+ self.user_id = attributes[:'user_id']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ type == o.type &&
100
+ url == o.url &&
101
+ user_id == o.user_id
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [type, url, user_id].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ new.build_from_hash(attributes)
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.openapi_types.each_pair do |key, type|
129
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
130
+ self.send("#{key}=", nil)
131
+ elsif type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the attribute
133
+ # is documented as an array but the input is not
134
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
136
+ end
137
+ elsif !attributes[self.class.attribute_map[key]].nil?
138
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
139
+ end
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :Time
152
+ Time.parse(value)
153
+ when :Date
154
+ Date.parse(value)
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :Boolean
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else # model
182
+ # models (e.g. Pet) or oneOf
183
+ klass = MxPlatformRuby.const_get(type)
184
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+
234
+ end
235
+
236
+ end
@@ -32,7 +32,7 @@ module MxPlatformRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'widget_url' => :'Widget'
35
+ :'widget_url' => :'WidgetResponse'
36
36
  }
37
37
  end
38
38
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.0
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.2.1'
14
+ VERSION = '0.3.0'
15
15
  end
@@ -0,0 +1,11 @@
1
+ ---
2
+ gemAuthor: "MX"
3
+ gemAuthorEmail: "devexperience@mx.com"
4
+ gemDescription: "A Ruby library for the MX Platform API."
5
+ gemHomepage: "https://github.com/mxenabled/mx-platform-ruby"
6
+ gemLicense: "MIT"
7
+ gemName: "mx-platform-ruby"
8
+ gemRequiredRubyVersion: ">= 2.6"
9
+ gemVersion: "0.3.0"
10
+ library: "faraday"
11
+ moduleName: "MxPlatformRuby"
Binary file
@@ -90,7 +90,7 @@ describe 'MxPlatformApi' do
90
90
  # @param user_guid The unique id for a &#x60;user&#x60;.
91
91
  # @param tag_create_request_body Tag object to be created with required parameters (tag_guid)
92
92
  # @param [Hash] opts the optional parameters
93
- # @return [InlineResponse200]
93
+ # @return [TagResponseBody]
94
94
  describe 'create_tag test' do
95
95
  it 'should work' do
96
96
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -213,7 +213,7 @@ describe 'MxPlatformApi' do
213
213
  end
214
214
 
215
215
  # unit tests for download_statement_pdf
216
- # Download statement PDF
216
+ # Download statement pdf
217
217
  # Use this endpoint to download a specified statement PDF.
218
218
  # @param member_guid The unique id for a &#x60;member&#x60;.
219
219
  # @param statement_guid The unique id for a &#x60;statement&#x60;.
@@ -251,14 +251,14 @@ describe 'MxPlatformApi' do
251
251
  end
252
252
  end
253
253
 
254
- # unit tests for fetch_statements_by_member
255
- # Fetch statements by member
254
+ # unit tests for fetch_statements
255
+ # Fetch statements
256
256
  # Use this endpoint to fetch the statements associated with a particular member.
257
257
  # @param member_guid The unique id for a &#x60;member&#x60;.
258
258
  # @param user_guid The unique id for a &#x60;user&#x60;.
259
259
  # @param [Hash] opts the optional parameters
260
260
  # @return [MemberResponseBody]
261
- describe 'fetch_statements_by_member test' do
261
+ describe 'fetch_statements test' do
262
262
  it 'should work' do
263
263
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
264
264
  end
@@ -307,8 +307,8 @@ describe 'MxPlatformApi' do
307
307
  end
308
308
  end
309
309
 
310
- # unit tests for list_account_owners
311
- # List account owners
310
+ # unit tests for list_account_owners_by_member
311
+ # List account owners by member
312
312
  # This endpoint returns an array with information about every account associated with a particular member.
313
313
  # @param member_guid The unique id for a &#x60;member&#x60;.
314
314
  # @param user_guid The unique id for a &#x60;user&#x60;.
@@ -316,7 +316,7 @@ describe 'MxPlatformApi' do
316
316
  # @option opts [Integer] :page Specify current page.
317
317
  # @option opts [Integer] :records_per_page Specify records per page.
318
318
  # @return [AccountOwnersResponseBody]
319
- describe 'list_account_owners test' do
319
+ describe 'list_account_owners_by_member test' do
320
320
  it 'should work' do
321
321
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
322
322
  end
@@ -348,23 +348,22 @@ describe 'MxPlatformApi' do
348
348
  end
349
349
  end
350
350
 
351
- # unit tests for list_favorites
352
- # List favorites
351
+ # unit tests for list_favorite_institutions
352
+ # List favorite institutions
353
353
  # This endpoint returns a paginated list containing institutions that have been set as the partner’s favorites, sorted by popularity. Please contact MX to set a list of favorites.
354
354
  # @param [Hash] opts the optional parameters
355
355
  # @option opts [Integer] :page Specify current page.
356
356
  # @option opts [Integer] :records_per_page Specify records per page.
357
357
  # @return [InstitutionsResponseBody]
358
- describe 'list_favorites test' do
358
+ describe 'list_favorite_institutions test' do
359
359
  it 'should work' do
360
360
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
361
361
  end
362
362
  end
363
363
 
364
- # unit tests for list_holdings_by_member
365
- # List holdings by member
366
- # This endpoint returns all holdings associated with the specified &#x60;member&#x60; across all accounts.
367
- # @param member_guid The unique id for a &#x60;member&#x60;.
364
+ # unit tests for list_holdings
365
+ # List holdings
366
+ # This endpoint returns all holdings associated with the specified &#x60;user&#x60; across all accounts and members.
368
367
  # @param user_guid The unique id for a &#x60;user&#x60;.
369
368
  # @param [Hash] opts the optional parameters
370
369
  # @option opts [String] :from_date Filter holdings from this date.
@@ -372,15 +371,16 @@ describe 'MxPlatformApi' do
372
371
  # @option opts [Integer] :records_per_page Specify records per page.
373
372
  # @option opts [String] :to_date Filter holdings to this date.
374
373
  # @return [HoldingsResponseBody]
375
- describe 'list_holdings_by_member test' do
374
+ describe 'list_holdings test' do
376
375
  it 'should work' do
377
376
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
378
377
  end
379
378
  end
380
379
 
381
- # unit tests for list_holdings_by_user
382
- # List holdings by user
383
- # This endpoint returns all holdings associated with the specified &#x60;user&#x60; across all accounts and members.
380
+ # unit tests for list_holdings_by_member
381
+ # List holdings by member
382
+ # This endpoint returns all holdings associated with the specified &#x60;member&#x60; across all accounts.
383
+ # @param member_guid The unique id for a &#x60;member&#x60;.
384
384
  # @param user_guid The unique id for a &#x60;user&#x60;.
385
385
  # @param [Hash] opts the optional parameters
386
386
  # @option opts [String] :from_date Filter holdings from this date.
@@ -388,21 +388,21 @@ describe 'MxPlatformApi' do
388
388
  # @option opts [Integer] :records_per_page Specify records per page.
389
389
  # @option opts [String] :to_date Filter holdings to this date.
390
390
  # @return [HoldingsResponseBody]
391
- describe 'list_holdings_by_user test' do
391
+ describe 'list_holdings_by_member test' do
392
392
  it 'should work' do
393
393
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
394
394
  end
395
395
  end
396
396
 
397
- # unit tests for list_institution_required_credentials
398
- # List institution-required credentials
397
+ # unit tests for list_institution_credentials
398
+ # List institution credentials
399
399
  # Use this endpoint to see which credentials will be needed to create a member for a specific institution.
400
400
  # @param institution_code The institution_code of the institution.
401
401
  # @param [Hash] opts the optional parameters
402
402
  # @option opts [Integer] :page Specify current page.
403
403
  # @option opts [Integer] :records_per_page Specify records per page.
404
404
  # @return [CredentialsResponseBody]
405
- describe 'list_institution_required_credentials test' do
405
+ describe 'list_institution_credentials test' do
406
406
  it 'should work' do
407
407
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
408
408
  end
@@ -524,15 +524,31 @@ describe 'MxPlatformApi' do
524
524
  end
525
525
  end
526
526
 
527
- # unit tests for list_transaction_rules_by_user
528
- # List transaction rules by user
527
+ # unit tests for list_transaction_rules
528
+ # List transaction rules
529
529
  # Use this endpoint to read the attributes of all existing transaction rules belonging to the user.
530
530
  # @param user_guid The unique id for a &#x60;user&#x60;.
531
531
  # @param [Hash] opts the optional parameters
532
532
  # @option opts [Integer] :page Specify current page.
533
533
  # @option opts [Integer] :records_per_page Specify records per page.
534
534
  # @return [TransactionRulesResponseBody]
535
- describe 'list_transaction_rules_by_user test' do
535
+ describe 'list_transaction_rules test' do
536
+ it 'should work' do
537
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
538
+ end
539
+ end
540
+
541
+ # unit tests for list_transactions
542
+ # List transactions
543
+ # Requests to this endpoint return a list of transactions associated with the specified &#x60;user&#x60;, accross all members and accounts associated with that &#x60;user&#x60;.
544
+ # @param user_guid The unique id for a &#x60;user&#x60;.
545
+ # @param [Hash] opts the optional parameters
546
+ # @option opts [String] :from_date Filter transactions from this date.
547
+ # @option opts [Integer] :page Specify current page.
548
+ # @option opts [Integer] :records_per_page Specify records per page.
549
+ # @option opts [String] :to_date Filter transactions to this date.
550
+ # @return [TransactionsResponseBody]
551
+ describe 'list_transactions test' do
536
552
  it 'should work' do
537
553
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
538
554
  end
@@ -585,22 +601,6 @@ describe 'MxPlatformApi' do
585
601
  end
586
602
  end
587
603
 
588
- # unit tests for list_transactions_by_user
589
- # List transactions by user
590
- # Requests to this endpoint return a list of transactions associated with the specified &#x60;user&#x60;, accross all members and accounts associated with that &#x60;user&#x60;.
591
- # @param user_guid The unique id for a &#x60;user&#x60;.
592
- # @param [Hash] opts the optional parameters
593
- # @option opts [String] :from_date Filter transactions from this date.
594
- # @option opts [Integer] :page Specify current page.
595
- # @option opts [Integer] :records_per_page Specify records per page.
596
- # @option opts [String] :to_date Filter transactions to this date.
597
- # @return [TransactionsResponseBody]
598
- describe 'list_transactions_by_user test' do
599
- it 'should work' do
600
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
601
- end
602
- end
603
-
604
604
  # unit tests for list_user_accounts
605
605
  # List accounts
606
606
  # This endpoint returns a list of all the accounts associated with the specified &#x60;user&#x60;.
@@ -796,7 +796,7 @@ describe 'MxPlatformApi' do
796
796
  end
797
797
 
798
798
  # unit tests for request_connect_widget_url
799
- # Request connect widget URL
799
+ # Request connect widget url
800
800
  # This endpoint will return a URL for an embeddable version of MX Connect.
801
801
  # @param user_guid The unique id for a &#x60;user&#x60;.
802
802
  # @param [Hash] opts the optional parameters
@@ -808,8 +808,8 @@ describe 'MxPlatformApi' do
808
808
  end
809
809
  end
810
810
 
811
- # unit tests for request_o_auth_window
812
- # Read member
811
+ # unit tests for request_o_auth_window_uri
812
+ # Request oauth window uri
813
813
  # This endpoint will generate an &#x60;oauth_window_uri&#x60; for the specified &#x60;member&#x60;.
814
814
  # @param member_guid The unique id for a &#x60;member&#x60;.
815
815
  # @param user_guid The unique id for a &#x60;user&#x60;.
@@ -817,14 +817,14 @@ describe 'MxPlatformApi' do
817
817
  # @option opts [String] :referral_source Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;.
818
818
  # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
819
819
  # @return [OAuthWindowResponseBody]
820
- describe 'request_o_auth_window test' do
820
+ describe 'request_o_auth_window_uri test' do
821
821
  it 'should work' do
822
822
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
823
823
  end
824
824
  end
825
825
 
826
826
  # unit tests for request_widget_url
827
- # Request a widget URL
827
+ # Request widget url
828
828
  # This endpoint allows partners to get a URL by passing the &#x60;widget_type&#x60; in the request body, as well as configuring it in several different ways. In the case of Connect, that means setting the &#x60;widget_type&#x60; to &#x60;connect_widget&#x60;. Partners may also pass an optional &#x60;Accept-Language&#x60; header as well as a number of configuration options. Note that this is a &#x60;POST&#x60; request.
829
829
  # @param user_guid The unique id for a &#x60;user&#x60;.
830
830
  # @param widget_request_body The widget url configuration options.
@@ -851,8 +851,8 @@ describe 'MxPlatformApi' do
851
851
  end
852
852
  end
853
853
 
854
- # unit tests for update_account
855
- # Update account
854
+ # unit tests for update_account_by_member
855
+ # Update account by member
856
856
  # This endpoint allows you to update certain attributes of an &#x60;account&#x60; resource.
857
857
  # @param user_guid The unique id for a &#x60;user&#x60;.
858
858
  # @param member_guid The unique id for a &#x60;member&#x60;.
@@ -860,7 +860,7 @@ describe 'MxPlatformApi' do
860
860
  # @param account_update_request_body Account object to be created with optional parameters (is_hidden)
861
861
  # @param [Hash] opts the optional parameters
862
862
  # @return [AccountResponseBody]
863
- describe 'update_account test' do
863
+ describe 'update_account_by_member test' do
864
864
  it 'should work' do
865
865
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
866
866
  end
@@ -901,7 +901,7 @@ describe 'MxPlatformApi' do
901
901
  # @param user_guid The unique id for a &#x60;user&#x60;.
902
902
  # @param tag_update_request_body Tag object to be updated with required parameter (tag_guid)
903
903
  # @param [Hash] opts the optional parameters
904
- # @return [InlineResponse200]
904
+ # @return [TagResponseBody]
905
905
  describe 'update_tag test' do
906
906
  it 'should work' do
907
907
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers