mx-platform-ruby 0.6.1 → 0.8.0
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 +18 -12
- data/LICENSE +1 -1
- data/README.md +31 -18
- data/docs/EnhanceTransactionResponse.md +19 -5
- data/docs/EnhanceTransactionsRequest.md +6 -2
- data/docs/MxPlatformApi.md +168 -20
- data/docs/TransactionResponse.md +4 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +241 -55
- 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 +45 -1
- 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 +87 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +20 -2
- 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 +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +1 -1
- 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 +13 -1
- 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 +11 -1
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +1 -1
- 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 +57 -2
- 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 +1 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +31 -20
- data/spec/api/mx_platform_api_spec.rb +30 -4
- 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 +1 -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 +43 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +13 -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 +1 -1
- data/spec/models/managed_account_create_request_spec.rb +1 -1
- data/spec/models/managed_account_update_request_body_spec.rb +1 -1
- data/spec/models/managed_account_update_request_spec.rb +1 -1
- data/spec/models/managed_member_create_request_body_spec.rb +1 -1
- data/spec/models/managed_member_create_request_spec.rb +1 -1
- data/spec/models/managed_member_update_request_body_spec.rb +1 -1
- data/spec/models/managed_member_update_request_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_spec.rb +1 -1
- 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 +1 -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 +1 -1
- data/spec/models/merchant_location_response_spec.rb +1 -1
- 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 +13 -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 +93 -93
|
@@ -1,14 +1,16 @@
|
|
|
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
|
|
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 Ruby library.*
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# MX Platform Ruby
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The [MX Platform API](https://www.mx.com/products/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.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Documentation
|
|
8
|
+
|
|
9
|
+
Examples for the API endpoints can be found [here.](https://docs.mx.com/api)
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
{{{.}}}
|
|
11
|
-
{{/appDescriptionWithNewLines}}
|
|
13
|
+
- Ruby >= 2.6
|
|
12
14
|
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
@@ -20,31 +22,28 @@ gem 'mx-platform-ruby'
|
|
|
20
22
|
|
|
21
23
|
And then execute:
|
|
22
24
|
```shell
|
|
23
|
-
|
|
25
|
+
bundle
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
Or install it yourself with:
|
|
27
29
|
```shell
|
|
28
|
-
|
|
30
|
+
gem install mx-platform-ruby
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
## Getting Started
|
|
32
34
|
|
|
33
35
|
In order to make requests, you will need to [sign up](https://dashboard.mx.com/sign_up) for the MX Platform API and get a `Client ID` and `API Key`.
|
|
34
36
|
|
|
35
|
-
Please follow the [installation](#installation) procedure and then run the following code:
|
|
36
|
-
|
|
37
|
+
Please follow the [installation](#installation) procedure and then run the following code to create your first User:
|
|
37
38
|
```ruby
|
|
38
|
-
# Load the gem
|
|
39
39
|
require 'mx-platform-ruby'
|
|
40
40
|
|
|
41
|
-
# setup authorization
|
|
42
41
|
MxPlatformRuby.configure do |config|
|
|
43
|
-
# Configure
|
|
44
|
-
config.username = 'Your Client ID
|
|
45
|
-
config.password = 'Your API Key
|
|
42
|
+
# Configure with your Client ID/API Key from https://dashboard.mx.com
|
|
43
|
+
config.username = 'Your Client ID'
|
|
44
|
+
config.password = 'Your API Key'
|
|
46
45
|
|
|
47
|
-
# Configure
|
|
46
|
+
# Configure environment. 0 for production, 1 for development
|
|
48
47
|
config.server_index = 1
|
|
49
48
|
end
|
|
50
49
|
|
|
@@ -56,7 +55,6 @@ user_create_request_body = MxPlatformRuby::UserCreateRequestBody.new(
|
|
|
56
55
|
)
|
|
57
56
|
|
|
58
57
|
begin
|
|
59
|
-
# Create user
|
|
60
58
|
result = api_instance.create_user(user_create_request_body)
|
|
61
59
|
p result
|
|
62
60
|
rescue MxPlatformRuby::ApiError => e
|
|
@@ -64,6 +62,19 @@ rescue MxPlatformRuby::ApiError => e
|
|
|
64
62
|
end
|
|
65
63
|
```
|
|
66
64
|
|
|
67
|
-
##
|
|
65
|
+
## Development
|
|
66
|
+
|
|
67
|
+
This project was generated by the [OpenAPI Generator](https://openapi-generator.tech). To generate this library, verify you have the latest version of the `openapi-generator-cli` found [here.](https://github.com/OpenAPITools/openapi-generator#17---npm)
|
|
68
|
+
|
|
69
|
+
Running the following command in this repo's directory will generate this library using the [MX Platform API OpenAPI spec](https://github.com/mxenabled/openapi/blob/master/openapi/mx_platform_api_beta.yml) with our [configuration and templates.](https://github.com/mxenabled/mx-platform-ruby/tree/master/openapi)
|
|
70
|
+
```shell
|
|
71
|
+
openapi-generator-cli generate \
|
|
72
|
+
-i https://raw.githubusercontent.com/mxenabled/openapi/master/openapi/mx_platform_api_beta.yml \
|
|
73
|
+
-g ruby \
|
|
74
|
+
-c ./openapi/config.yml \
|
|
75
|
+
-t ./openapi/templates
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Contributing
|
|
68
79
|
|
|
69
|
-
|
|
80
|
+
Please [open an issue](https://github.com/mxenabled/mx-platform-ruby/issues) or [submit a pull request.](https://github.com/mxenabled/mx-platform-ruby/pulls)
|
|
@@ -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.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -420,8 +420,7 @@ describe 'MxPlatformApi' do
|
|
|
420
420
|
|
|
421
421
|
# unit tests for list_default_categories
|
|
422
422
|
# List default categories
|
|
423
|
-
# Use this endpoint to
|
|
424
|
-
# @param user_guid The unique id for a `user`.
|
|
423
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
425
424
|
# @param [Hash] opts the optional parameters
|
|
426
425
|
# @option opts [Integer] :page Specify current page.
|
|
427
426
|
# @option opts [Integer] :records_per_page Specify records per page.
|
|
@@ -432,6 +431,20 @@ describe 'MxPlatformApi' do
|
|
|
432
431
|
end
|
|
433
432
|
end
|
|
434
433
|
|
|
434
|
+
# unit tests for list_default_categories_by_user
|
|
435
|
+
# List default categories by user
|
|
436
|
+
# Use this endpoint to retrieve a list of all the default categories and subcategories, scoped by user, offered within the MX Platform API. In other words, each item in the returned list will have its `is_default` field set to `true`. There are currently 119 default categories and subcategories. Both the _list default categories_ and _list default categories by user_ endpoints return the same results. The different routes are provided for convenience.
|
|
437
|
+
# @param user_guid The unique id for a `user`.
|
|
438
|
+
# @param [Hash] opts the optional parameters
|
|
439
|
+
# @option opts [Integer] :page Specify current page.
|
|
440
|
+
# @option opts [Integer] :records_per_page Specify records per page.
|
|
441
|
+
# @return [CategoriesResponseBody]
|
|
442
|
+
describe 'list_default_categories_by_user test' do
|
|
443
|
+
it 'should work' do
|
|
444
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
435
448
|
# unit tests for list_favorite_institutions
|
|
436
449
|
# List favorite institutions
|
|
437
450
|
# 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.
|
|
@@ -789,7 +802,7 @@ describe 'MxPlatformApi' do
|
|
|
789
802
|
end
|
|
790
803
|
|
|
791
804
|
# unit tests for read_category
|
|
792
|
-
# Read category
|
|
805
|
+
# Read a custom category
|
|
793
806
|
# Use this endpoint to read the attributes of either a default category or a custom category.
|
|
794
807
|
# @param category_guid The unique id for a `category`.
|
|
795
808
|
# @param user_guid The unique id for a `user`.
|
|
@@ -801,6 +814,19 @@ describe 'MxPlatformApi' do
|
|
|
801
814
|
end
|
|
802
815
|
end
|
|
803
816
|
|
|
817
|
+
# unit tests for read_default_category
|
|
818
|
+
# Read a default category
|
|
819
|
+
# Use this endpoint to read the attributes of a default category.
|
|
820
|
+
# @param category_guid The unique id for a `category`.
|
|
821
|
+
# @param user_guid The unique id for a `user`.
|
|
822
|
+
# @param [Hash] opts the optional parameters
|
|
823
|
+
# @return [CategoryResponseBody]
|
|
824
|
+
describe 'read_default_category test' do
|
|
825
|
+
it 'should work' do
|
|
826
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
827
|
+
end
|
|
828
|
+
end
|
|
829
|
+
|
|
804
830
|
# unit tests for read_holding
|
|
805
831
|
# Read holding
|
|
806
832
|
# Use this endpoint to read the attributes of a specific `holding`.
|
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.1
|
|
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.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -31,18 +31,42 @@ describe MxPlatformRuby::EnhanceTransactionResponse do
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
describe 'test attribute "categorized_by"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
34
40
|
describe 'test attribute "category"' do
|
|
35
41
|
it 'should work' do
|
|
36
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
43
|
end
|
|
38
44
|
end
|
|
39
45
|
|
|
46
|
+
describe 'test attribute "category_guid"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "described_by"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
40
58
|
describe 'test attribute "description"' do
|
|
41
59
|
it 'should work' do
|
|
42
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
61
|
end
|
|
44
62
|
end
|
|
45
63
|
|
|
64
|
+
describe 'test attribute "extended_transaction_type"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
46
70
|
describe 'test attribute "id"' do
|
|
47
71
|
it 'should work' do
|
|
48
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -97,6 +121,18 @@ describe MxPlatformRuby::EnhanceTransactionResponse do
|
|
|
97
121
|
end
|
|
98
122
|
end
|
|
99
123
|
|
|
124
|
+
describe 'test attribute "is_subscription"' 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
|
+
|
|
130
|
+
describe 'test attribute "memo"' do
|
|
131
|
+
it 'should work' do
|
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
100
136
|
describe 'test attribute "merchant_category_code"' do
|
|
101
137
|
it 'should work' do
|
|
102
138
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -109,6 +145,12 @@ describe MxPlatformRuby::EnhanceTransactionResponse do
|
|
|
109
145
|
end
|
|
110
146
|
end
|
|
111
147
|
|
|
148
|
+
describe 'test attribute "merchant_location_guid"' do
|
|
149
|
+
it 'should work' do
|
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
112
154
|
describe 'test attribute "original_description"' do
|
|
113
155
|
it 'should work' do
|
|
114
156
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -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.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -37,12 +37,24 @@ describe MxPlatformRuby::EnhanceTransactionsRequest do
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
describe 'test attribute "extended_transaction_type"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
describe 'test attribute "id"' do
|
|
41
47
|
it 'should work' do
|
|
42
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
49
|
end
|
|
44
50
|
end
|
|
45
51
|
|
|
52
|
+
describe 'test attribute "memo"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
46
58
|
describe 'test attribute "merchant_category_code"' do
|
|
47
59
|
it 'should work' do
|
|
48
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|