mx-platform-ruby 0.4.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/LICENSE +1 -1
- 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 +1393 -115
- data/lib/mx-platform-ruby/api_client.rb +1 -1
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +1 -1
- data/lib/mx-platform-ruby/models/account_number_response.rb +1 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +68 -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 +1 -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 +1 -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 +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +1 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +1 -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 +1 -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 +1 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +1 -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 +23 -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 +1 -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 +317 -0
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
- data/lib/mx-platform-ruby/models/merchant_response.rb +1 -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 +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +1 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +1 -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 +1 -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 +1 -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 +50 -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 +1 -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 +1 -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 +1 -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 +1 -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 +1 -1
- 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 +136 -80
data/lib/mx-platform-ruby.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.2.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,6 +53,18 @@ require 'mx-platform-ruby/models/image_option_response'
|
|
53
53
|
require 'mx-platform-ruby/models/institution_response'
|
54
54
|
require 'mx-platform-ruby/models/institution_response_body'
|
55
55
|
require 'mx-platform-ruby/models/institutions_response_body'
|
56
|
+
require 'mx-platform-ruby/models/managed_account_create_request'
|
57
|
+
require 'mx-platform-ruby/models/managed_account_create_request_body'
|
58
|
+
require 'mx-platform-ruby/models/managed_account_update_request'
|
59
|
+
require 'mx-platform-ruby/models/managed_account_update_request_body'
|
60
|
+
require 'mx-platform-ruby/models/managed_member_create_request'
|
61
|
+
require 'mx-platform-ruby/models/managed_member_create_request_body'
|
62
|
+
require 'mx-platform-ruby/models/managed_member_update_request'
|
63
|
+
require 'mx-platform-ruby/models/managed_member_update_request_body'
|
64
|
+
require 'mx-platform-ruby/models/managed_transaction_create_request'
|
65
|
+
require 'mx-platform-ruby/models/managed_transaction_create_request_body'
|
66
|
+
require 'mx-platform-ruby/models/managed_transaction_update_request'
|
67
|
+
require 'mx-platform-ruby/models/managed_transaction_update_request_body'
|
56
68
|
require 'mx-platform-ruby/models/member_create_request'
|
57
69
|
require 'mx-platform-ruby/models/member_create_request_body'
|
58
70
|
require 'mx-platform-ruby/models/member_response'
|
@@ -64,6 +76,8 @@ require 'mx-platform-ruby/models/member_status_response_body'
|
|
64
76
|
require 'mx-platform-ruby/models/member_update_request'
|
65
77
|
require 'mx-platform-ruby/models/member_update_request_body'
|
66
78
|
require 'mx-platform-ruby/models/members_response_body'
|
79
|
+
require 'mx-platform-ruby/models/merchant_location_response'
|
80
|
+
require 'mx-platform-ruby/models/merchant_location_response_body'
|
67
81
|
require 'mx-platform-ruby/models/merchant_response'
|
68
82
|
require 'mx-platform-ruby/models/merchant_response_body'
|
69
83
|
require 'mx-platform-ruby/models/merchants_response_body'
|
data/mx-platform-ruby.gemspec
CHANGED
data/openapi/config.yml
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
*This project is currently in **Beta**. Please open up an issue [here](https://github.com/mxenabled/mx-platform-ruby/issues) to report issues using the MX Platform API Ruby Library.*
|
2
2
|
|
3
|
-
|
3
|
+
*This project was automatically generated by the [OpenAPI Generator](https://openapi-generator.tech).*
|
4
4
|
|
5
|
-
|
5
|
+
# MX Platform Ruby - v{{gemVersion}}
|
6
|
+
|
7
|
+
The Ruby gem for the {{appName}}.
|
6
8
|
|
7
9
|
{{#appDescriptionWithNewLines}}
|
8
10
|
{{{.}}}
|
9
11
|
{{/appDescriptionWithNewLines}}
|
10
12
|
|
11
|
-
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
12
|
-
|
13
|
-
- Package version: {{gemVersion}}
|
14
|
-
|
15
13
|
## Installation
|
16
14
|
|
17
15
|
Add this line to your application's Gemfile:
|
@@ -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.2.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
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
data/spec/configuration_spec.rb
CHANGED