mx-platform-ruby 0.4.2 → 0.6.2
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +4 -6
- data/docs/AccountResponse.md +15 -1
- data/docs/ManagedAccountCreateRequest.md +78 -0
- data/docs/ManagedAccountCreateRequestBody.md +18 -0
- data/docs/ManagedAccountUpdateRequest.md +78 -0
- data/docs/ManagedAccountUpdateRequestBody.md +18 -0
- data/docs/ManagedMemberCreateRequest.md +24 -0
- data/docs/ManagedMemberCreateRequestBody.md +18 -0
- data/docs/ManagedMemberUpdateRequest.md +22 -0
- data/docs/ManagedMemberUpdateRequestBody.md +18 -0
- data/docs/ManagedTransactionCreateRequest.md +56 -0
- data/docs/ManagedTransactionCreateRequestBody.md +18 -0
- data/docs/ManagedTransactionUpdateRequest.md +56 -0
- data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
- data/docs/MemberResponse.md +5 -1
- data/docs/MerchantLocationResponse.md +40 -0
- data/docs/MerchantLocationResponseBody.md +18 -0
- data/docs/MxPlatformApi.md +1415 -117
- data/docs/TransactionResponse.md +11 -1
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +1474 -124
- data/lib/mx-platform-ruby/api_client.rb +7 -9
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +35 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +112 -5
- data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_response.rb +7 -1
- data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +16 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
- data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
- data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
- data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_response.rb +35 -5
- data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +327 -0
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
- data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +3 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
- data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_response.rb +85 -5
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_response.rb +5 -1
- data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
- data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +15 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +4 -6
- data/spec/api/mx_platform_api_spec.rb +246 -1
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_number_response_spec.rb +1 -1
- data/spec/models/account_numbers_response_body_spec.rb +1 -1
- data/spec/models/account_owner_response_spec.rb +1 -1
- data/spec/models/account_owners_response_body_spec.rb +1 -1
- data/spec/models/account_response_body_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +43 -1
- data/spec/models/account_update_request_body_spec.rb +1 -1
- data/spec/models/account_update_request_spec.rb +1 -1
- data/spec/models/accounts_response_body_spec.rb +1 -1
- data/spec/models/categories_response_body_spec.rb +1 -1
- data/spec/models/category_create_request_body_spec.rb +1 -1
- data/spec/models/category_create_request_spec.rb +1 -1
- data/spec/models/category_response_body_spec.rb +1 -1
- data/spec/models/category_response_spec.rb +1 -1
- data/spec/models/category_update_request_body_spec.rb +1 -1
- data/spec/models/category_update_request_spec.rb +1 -1
- data/spec/models/challenge_response_spec.rb +1 -1
- data/spec/models/challenges_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_spec.rb +1 -1
- data/spec/models/connect_widget_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_response_spec.rb +1 -1
- data/spec/models/credential_request_spec.rb +1 -1
- data/spec/models/credential_response_spec.rb +1 -1
- data/spec/models/credentials_response_body_spec.rb +1 -1
- data/spec/models/enhance_transaction_response_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +1 -1
- data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
- data/spec/models/holding_response_body_spec.rb +1 -1
- data/spec/models/holding_response_spec.rb +1 -1
- data/spec/models/holdings_response_body_spec.rb +1 -1
- data/spec/models/image_option_response_spec.rb +1 -1
- data/spec/models/institution_response_body_spec.rb +1 -1
- data/spec/models/institution_response_spec.rb +1 -1
- data/spec/models/institutions_response_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_body_spec.rb +34 -0
- data/spec/models/managed_account_create_request_spec.rb +214 -0
- data/spec/models/managed_account_update_request_body_spec.rb +34 -0
- data/spec/models/managed_account_update_request_spec.rb +214 -0
- data/spec/models/managed_member_create_request_body_spec.rb +34 -0
- data/spec/models/managed_member_create_request_spec.rb +52 -0
- data/spec/models/managed_member_update_request_body_spec.rb +34 -0
- data/spec/models/managed_member_update_request_spec.rb +46 -0
- data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_create_request_spec.rb +148 -0
- data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
- data/spec/models/managed_transaction_update_request_spec.rb +148 -0
- data/spec/models/member_create_request_body_spec.rb +1 -1
- data/spec/models/member_create_request_spec.rb +1 -1
- data/spec/models/member_response_body_spec.rb +1 -1
- data/spec/models/member_response_spec.rb +13 -1
- data/spec/models/member_resume_request_body_spec.rb +1 -1
- data/spec/models/member_resume_request_spec.rb +1 -1
- data/spec/models/member_status_response_body_spec.rb +1 -1
- data/spec/models/member_status_response_spec.rb +1 -1
- data/spec/models/member_update_request_body_spec.rb +1 -1
- data/spec/models/member_update_request_spec.rb +1 -1
- data/spec/models/members_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_body_spec.rb +34 -0
- data/spec/models/merchant_location_response_spec.rb +100 -0
- data/spec/models/merchant_response_body_spec.rb +1 -1
- data/spec/models/merchant_response_spec.rb +1 -1
- data/spec/models/merchants_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_spec.rb +1 -1
- data/spec/models/option_response_spec.rb +1 -1
- data/spec/models/pagination_response_spec.rb +1 -1
- data/spec/models/statement_response_body_spec.rb +1 -1
- data/spec/models/statement_response_spec.rb +1 -1
- data/spec/models/statements_response_body_spec.rb +1 -1
- data/spec/models/tag_create_request_body_spec.rb +1 -1
- data/spec/models/tag_create_request_spec.rb +1 -1
- data/spec/models/tag_response_body_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/tag_update_request_body_spec.rb +1 -1
- data/spec/models/tag_update_request_spec.rb +1 -1
- data/spec/models/tagging_create_request_body_spec.rb +1 -1
- data/spec/models/tagging_create_request_spec.rb +1 -1
- data/spec/models/tagging_response_body_spec.rb +1 -1
- data/spec/models/tagging_response_spec.rb +1 -1
- data/spec/models/tagging_update_request_body_spec.rb +1 -1
- data/spec/models/tagging_update_request_spec.rb +1 -1
- data/spec/models/taggings_response_body_spec.rb +1 -1
- data/spec/models/tags_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_spec.rb +31 -1
- data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_create_request_spec.rb +1 -1
- data/spec/models/transaction_rule_response_body_spec.rb +1 -1
- data/spec/models/transaction_rule_response_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_spec.rb +1 -1
- data/spec/models/transaction_rules_response_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_spec.rb +1 -1
- data/spec/models/transactions_response_body_spec.rb +1 -1
- data/spec/models/user_create_request_body_spec.rb +1 -1
- data/spec/models/user_create_request_spec.rb +1 -1
- data/spec/models/user_response_body_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/user_update_request_body_spec.rb +1 -1
- data/spec/models/user_update_request_spec.rb +1 -1
- data/spec/models/users_response_body_spec.rb +1 -1
- data/spec/models/widget_request_body_spec.rb +1 -1
- data/spec/models/widget_request_spec.rb +1 -1
- data/spec/models/widget_response_body_spec.rb +1 -1
- data/spec/models/widget_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +134 -78
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -71,6 +71,47 @@ describe 'MxPlatformApi' do
|
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# unit tests for create_managed_account
|
|
75
|
+
# Create managed account
|
|
76
|
+
# Use this endpoint to create a partner-managed account.
|
|
77
|
+
# @param user_guid The unique id for a `user`.
|
|
78
|
+
# @param member_guid The unique id for a `member`.
|
|
79
|
+
# @param managed_account_create_request_body Managed account to be created.
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [AccountResponseBody]
|
|
82
|
+
describe 'create_managed_account test' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# unit tests for create_managed_member
|
|
89
|
+
# Create managed member
|
|
90
|
+
# Use this endpoint to create a new partner-managed `member`.
|
|
91
|
+
# @param user_guid The unique id for a `user`.
|
|
92
|
+
# @param managed_member_create_request_body Managed member to be created.
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [MemberResponseBody]
|
|
95
|
+
describe 'create_managed_member test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for create_managed_transaction
|
|
102
|
+
# Create managed transaction
|
|
103
|
+
# Use this endpoint to create a new partner-managed `transaction`.
|
|
104
|
+
# @param user_guid The unique id for a `user`.
|
|
105
|
+
# @param member_guid The unique id for a `member`.
|
|
106
|
+
# @param managed_transaction_create_request_body Managed transaction to be created.
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [TransactionResponseBody]
|
|
109
|
+
describe 'create_managed_transaction test' do
|
|
110
|
+
it 'should work' do
|
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
74
115
|
# unit tests for create_member
|
|
75
116
|
# Create member
|
|
76
117
|
# This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the `/institutions/{institution_code}/credentials` endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
|
|
@@ -148,6 +189,47 @@ describe 'MxPlatformApi' do
|
|
|
148
189
|
end
|
|
149
190
|
end
|
|
150
191
|
|
|
192
|
+
# unit tests for delete_managed_account
|
|
193
|
+
# Delete managed account
|
|
194
|
+
# Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of `204 No Content`.
|
|
195
|
+
# @param member_guid The unique id for a `member`.
|
|
196
|
+
# @param user_guid The unique id for a `user`.
|
|
197
|
+
# @param account_guid The unique id for an `account`.
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @return [nil]
|
|
200
|
+
describe 'delete_managed_account test' do
|
|
201
|
+
it 'should work' do
|
|
202
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# unit tests for delete_managed_member
|
|
207
|
+
# Delete managed member
|
|
208
|
+
# Use this endpoint to delete the specified partner-managed `member`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
209
|
+
# @param member_guid The unique id for a `member`.
|
|
210
|
+
# @param user_guid The unique id for a `user`.
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @return [nil]
|
|
213
|
+
describe 'delete_managed_member test' do
|
|
214
|
+
it 'should work' do
|
|
215
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# unit tests for delete_managed_transaction
|
|
220
|
+
# Delete managed transaction
|
|
221
|
+
# Use this endpoint to delete the specified partner-managed `transaction`. The endpoint will respond with a status of `204 No Content` without a resource.
|
|
222
|
+
# @param member_guid The unique id for a `member`.
|
|
223
|
+
# @param user_guid The unique id for a `user`.
|
|
224
|
+
# @param transaction_guid The unique id for a `transaction`.
|
|
225
|
+
# @param [Hash] opts the optional parameters
|
|
226
|
+
# @return [nil]
|
|
227
|
+
describe 'delete_managed_transaction test' do
|
|
228
|
+
it 'should work' do
|
|
229
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
151
233
|
# unit tests for delete_member
|
|
152
234
|
# Delete member
|
|
153
235
|
# Accessing this endpoint will permanently delete a member.
|
|
@@ -341,6 +423,8 @@ describe 'MxPlatformApi' do
|
|
|
341
423
|
# Use this endpoint to read the attributes of a specific user.
|
|
342
424
|
# @param user_guid The unique id for a `user`.
|
|
343
425
|
# @param [Hash] opts the optional parameters
|
|
426
|
+
# @option opts [Integer] :page Specify current page.
|
|
427
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
344
428
|
# @return [CategoriesResponseBody]
|
|
345
429
|
describe 'list_default_categories test' do
|
|
346
430
|
it 'should work' do
|
|
@@ -413,6 +497,8 @@ describe 'MxPlatformApi' do
|
|
|
413
497
|
# This endpoint returns a list of institutions based on the specified search term or parameter.
|
|
414
498
|
# @param [Hash] opts the optional parameters
|
|
415
499
|
# @option opts [String] :name This will list only institutions in which the appended string appears.
|
|
500
|
+
# @option opts [Integer] :page Specify current page.
|
|
501
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
416
502
|
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
|
|
417
503
|
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
|
|
418
504
|
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
|
|
@@ -424,6 +510,63 @@ describe 'MxPlatformApi' do
|
|
|
424
510
|
end
|
|
425
511
|
end
|
|
426
512
|
|
|
513
|
+
# unit tests for list_managed_accounts
|
|
514
|
+
# List managed accounts
|
|
515
|
+
# Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
|
|
516
|
+
# @param user_guid The unique id for a `user`.
|
|
517
|
+
# @param member_guid The unique id for a `member`.
|
|
518
|
+
# @param [Hash] opts the optional parameters
|
|
519
|
+
# @option opts [Integer] :page Specify current page.
|
|
520
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
521
|
+
# @return [AccountsResponseBody]
|
|
522
|
+
describe 'list_managed_accounts test' do
|
|
523
|
+
it 'should work' do
|
|
524
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# unit tests for list_managed_institutions
|
|
529
|
+
# List managed institutions
|
|
530
|
+
# This endpoint returns a list of institutions which can be used to create partner-managed members.
|
|
531
|
+
# @param [Hash] opts the optional parameters
|
|
532
|
+
# @option opts [Integer] :page Specify current page.
|
|
533
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
534
|
+
# @return [InstitutionsResponseBody]
|
|
535
|
+
describe 'list_managed_institutions 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_managed_members
|
|
542
|
+
# List managed members
|
|
543
|
+
# This endpoint returns a list of all the partner-managed members associated with the specified `user`.
|
|
544
|
+
# @param user_guid The unique id for a `user`.
|
|
545
|
+
# @param [Hash] opts the optional parameters
|
|
546
|
+
# @option opts [Integer] :page Specify current page.
|
|
547
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
548
|
+
# @return [MembersResponseBody]
|
|
549
|
+
describe 'list_managed_members test' do
|
|
550
|
+
it 'should work' do
|
|
551
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
552
|
+
end
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# unit tests for list_managed_transactions
|
|
556
|
+
# List managed transactions
|
|
557
|
+
# This endpoint returns a list of all the partner-managed transactions associated with the specified `account`, scoped through a `user` and a `member`.
|
|
558
|
+
# @param user_guid The unique id for a `user`.
|
|
559
|
+
# @param member_guid The unique id for a `member`.
|
|
560
|
+
# @param [Hash] opts the optional parameters
|
|
561
|
+
# @option opts [Integer] :page Specify current page.
|
|
562
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
563
|
+
# @return [TransactionsResponseBody]
|
|
564
|
+
describe 'list_managed_transactions test' do
|
|
565
|
+
it 'should work' do
|
|
566
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
427
570
|
# unit tests for list_member_challenges
|
|
428
571
|
# List member challenges
|
|
429
572
|
# Use this endpoint for information on what multi-factor authentication challenges need to be answered in order to aggregate a member. If the aggregation is not challenged, i.e., the member does not have a connection status of `CHALLENGED`, then code `204 No Content` will be returned. If the aggregation has been challenged, i.e., the member does have a connection status of `CHALLENGED`, then code `200 OK` will be returned - along with the corresponding credentials.
|
|
@@ -594,6 +737,10 @@ describe 'MxPlatformApi' do
|
|
|
594
737
|
# @param tag_guid The unique id for a `tag`.
|
|
595
738
|
# @param user_guid The unique id for a `user`.
|
|
596
739
|
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @option opts [String] :from_date Filter transactions from this date.
|
|
741
|
+
# @option opts [Integer] :page Specify current page.
|
|
742
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
743
|
+
# @option opts [String] :to_date Filter transactions to this date.
|
|
597
744
|
# @return [TransactionsResponseBody]
|
|
598
745
|
describe 'list_transactions_by_tag test' do
|
|
599
746
|
it 'should work' do
|
|
@@ -679,6 +826,47 @@ describe 'MxPlatformApi' do
|
|
|
679
826
|
end
|
|
680
827
|
end
|
|
681
828
|
|
|
829
|
+
# unit tests for read_managed_account
|
|
830
|
+
# Read managed account
|
|
831
|
+
# Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
|
|
832
|
+
# @param member_guid The unique id for a `member`.
|
|
833
|
+
# @param user_guid The unique id for a `user`.
|
|
834
|
+
# @param account_guid The unique id for an `account`.
|
|
835
|
+
# @param [Hash] opts the optional parameters
|
|
836
|
+
# @return [AccountResponseBody]
|
|
837
|
+
describe 'read_managed_account test' do
|
|
838
|
+
it 'should work' do
|
|
839
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
840
|
+
end
|
|
841
|
+
end
|
|
842
|
+
|
|
843
|
+
# unit tests for read_managed_member
|
|
844
|
+
# Read managed member
|
|
845
|
+
# This endpoint returns the attributes of the specified partner-managed `member`.
|
|
846
|
+
# @param member_guid The unique id for a `member`.
|
|
847
|
+
# @param user_guid The unique id for a `user`.
|
|
848
|
+
# @param [Hash] opts the optional parameters
|
|
849
|
+
# @return [MemberResponseBody]
|
|
850
|
+
describe 'read_managed_member test' do
|
|
851
|
+
it 'should work' do
|
|
852
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
853
|
+
end
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
# unit tests for read_managed_transaction
|
|
857
|
+
# Read managed transaction
|
|
858
|
+
# Requests to this endpoint will return the attributes of the specified partner-managed `transaction`.
|
|
859
|
+
# @param member_guid The unique id for a `member`.
|
|
860
|
+
# @param user_guid The unique id for a `user`.
|
|
861
|
+
# @param transaction_guid The unique id for a `transaction`.
|
|
862
|
+
# @param [Hash] opts the optional parameters
|
|
863
|
+
# @return [TransactionResponseBody]
|
|
864
|
+
describe 'read_managed_transaction test' do
|
|
865
|
+
it 'should work' do
|
|
866
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
867
|
+
end
|
|
868
|
+
end
|
|
869
|
+
|
|
682
870
|
# unit tests for read_member
|
|
683
871
|
# Read member
|
|
684
872
|
# Use this endpoint to read the attributes of a specific member.
|
|
@@ -717,6 +905,18 @@ describe 'MxPlatformApi' do
|
|
|
717
905
|
end
|
|
718
906
|
end
|
|
719
907
|
|
|
908
|
+
# unit tests for read_merchant_location
|
|
909
|
+
# Read merchant location
|
|
910
|
+
# This endpoint returns the specified merchant_location resource.
|
|
911
|
+
# @param merchant_location_guid The unique id for a `merchant_location`.
|
|
912
|
+
# @param [Hash] opts the optional parameters
|
|
913
|
+
# @return [MerchantLocationResponseBody]
|
|
914
|
+
describe 'read_merchant_location test' do
|
|
915
|
+
it 'should work' do
|
|
916
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
720
920
|
# unit tests for read_statement_by_member
|
|
721
921
|
# Read statement by member
|
|
722
922
|
# Use this endpoint to read a JSON representation of the statement.
|
|
@@ -816,6 +1016,7 @@ describe 'MxPlatformApi' do
|
|
|
816
1016
|
# @param [Hash] opts the optional parameters
|
|
817
1017
|
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
|
|
818
1018
|
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
|
1019
|
+
# @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
|
|
819
1020
|
# @return [OAuthWindowResponseBody]
|
|
820
1021
|
describe 'request_o_auth_window_uri test' do
|
|
821
1022
|
it 'should work' do
|
|
@@ -880,6 +1081,50 @@ describe 'MxPlatformApi' do
|
|
|
880
1081
|
end
|
|
881
1082
|
end
|
|
882
1083
|
|
|
1084
|
+
# unit tests for update_managed_account
|
|
1085
|
+
# Update managed account
|
|
1086
|
+
# Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
|
|
1087
|
+
# @param member_guid The unique id for a `member`.
|
|
1088
|
+
# @param user_guid The unique id for a `user`.
|
|
1089
|
+
# @param account_guid The unique id for an `account`.
|
|
1090
|
+
# @param managed_account_update_request_body Managed account object to be updated (While no single parameter is required, the request body can't be empty)
|
|
1091
|
+
# @param [Hash] opts the optional parameters
|
|
1092
|
+
# @return [AccountResponseBody]
|
|
1093
|
+
describe 'update_managed_account test' do
|
|
1094
|
+
it 'should work' do
|
|
1095
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1096
|
+
end
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
# unit tests for update_managed_member
|
|
1100
|
+
# Update managed member
|
|
1101
|
+
# Use this endpoint to update the attributes of the specified partner_managed `member`.
|
|
1102
|
+
# @param member_guid The unique id for a `member`.
|
|
1103
|
+
# @param user_guid The unique id for a `user`.
|
|
1104
|
+
# @param managed_member_update_request_body Managed member object to be updated (While no single parameter is required, the request body can't be empty)
|
|
1105
|
+
# @param [Hash] opts the optional parameters
|
|
1106
|
+
# @return [MemberResponseBody]
|
|
1107
|
+
describe 'update_managed_member test' do
|
|
1108
|
+
it 'should work' do
|
|
1109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1110
|
+
end
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
# unit tests for update_managed_transaction
|
|
1114
|
+
# Update managed transaction
|
|
1115
|
+
# Use this endpoint to update the attributes of the specified partner_managed `transaction`.
|
|
1116
|
+
# @param member_guid The unique id for a `member`.
|
|
1117
|
+
# @param user_guid The unique id for a `user`.
|
|
1118
|
+
# @param transaction_guid The unique id for a `transaction`.
|
|
1119
|
+
# @param managed_transaction_update_request_body Managed transaction object to be updated (While no single parameter is required, the request body can't be empty)
|
|
1120
|
+
# @param [Hash] opts the optional parameters
|
|
1121
|
+
# @return [TransactionResponseBody]
|
|
1122
|
+
describe 'update_managed_transaction test' do
|
|
1123
|
+
it 'should work' do
|
|
1124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
1125
|
+
end
|
|
1126
|
+
end
|
|
1127
|
+
|
|
883
1128
|
# unit tests for update_member
|
|
884
1129
|
# Update member
|
|
885
1130
|
# Use this endpoint to update a members attributes. Only the credentials, id, and metadata parameters can be updated. To get a list of the required credentials for the member, use the list member credentials endpoint.
|
data/spec/api_client_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -159,8 +159,8 @@ describe MxPlatformRuby::ApiClient do
|
|
|
159
159
|
let(:api_client) { MxPlatformRuby::ApiClient.new }
|
|
160
160
|
|
|
161
161
|
it 'works' do
|
|
162
|
-
expect(api_client.select_header_content_type(nil)).to
|
|
163
|
-
expect(api_client.select_header_content_type([])).to
|
|
162
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
|
163
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
|
164
164
|
|
|
165
165
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
166
166
|
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.
|
|
9
|
+
OpenAPI Generator version: 5.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -121,6 +121,12 @@ describe MxPlatformRuby::AccountResponse do
|
|
|
121
121
|
end
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
+
describe 'test attribute "imported_at"' do
|
|
125
|
+
it 'should work' do
|
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
124
130
|
describe 'test attribute "institution_code"' do
|
|
125
131
|
it 'should work' do
|
|
126
132
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -181,6 +187,24 @@ describe MxPlatformRuby::AccountResponse do
|
|
|
181
187
|
end
|
|
182
188
|
end
|
|
183
189
|
|
|
190
|
+
describe 'test attribute "member_id"' do
|
|
191
|
+
it 'should work' do
|
|
192
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
describe 'test attribute "member_is_managed_by_user"' do
|
|
197
|
+
it 'should work' do
|
|
198
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
describe 'test attribute "metadata"' do
|
|
203
|
+
it 'should work' do
|
|
204
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
184
208
|
describe 'test attribute "minimum_balance"' do
|
|
185
209
|
it 'should work' do
|
|
186
210
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -199,6 +223,12 @@ describe MxPlatformRuby::AccountResponse do
|
|
|
199
223
|
end
|
|
200
224
|
end
|
|
201
225
|
|
|
226
|
+
describe 'test attribute "nickname"' do
|
|
227
|
+
it 'should work' do
|
|
228
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
202
232
|
describe 'test attribute "original_balance"' do
|
|
203
233
|
it 'should work' do
|
|
204
234
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -229,6 +259,12 @@ describe MxPlatformRuby::AccountResponse do
|
|
|
229
259
|
end
|
|
230
260
|
end
|
|
231
261
|
|
|
262
|
+
describe 'test attribute "routing_number"' do
|
|
263
|
+
it 'should work' do
|
|
264
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
232
268
|
describe 'test attribute "started_on"' do
|
|
233
269
|
it 'should work' do
|
|
234
270
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -265,4 +301,10 @@ describe MxPlatformRuby::AccountResponse do
|
|
|
265
301
|
end
|
|
266
302
|
end
|
|
267
303
|
|
|
304
|
+
describe 'test attribute "user_id"' do
|
|
305
|
+
it 'should work' do
|
|
306
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
268
310
|
end
|