Skip to content

Commit a4366ea

Browse files
Merge pull request #34 from mxenabled/bm/add_query_params
Add query params
2 parents d338d2b + e5c9677 commit a4366ea

9 files changed

Lines changed: 101 additions & 12 deletions

File tree

.github/workflows/auto_tag.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Automatic Tagging
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: butlerlogic/action-autotag@stable
13+
with:
14+
GITHUB_TOKEN: "${{ secrets.TAG_AND_RELEASE_TOKEN }}"
15+
commit_message_template: "({{number}} {{message}})"
16+
tag_prefix: "v"
17+
strategy: regex
18+
root: "/lib/mx-platform-ruby/version.rb"
19+
regex_pattern: "[\d.]+"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: GitHub Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
tagged-release:
10+
name: "Tagged Release"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- name: "Release"
15+
- uses: "marvinpinto/action-automatic-releases@latest"
16+
with:
17+
repo_token: "${{ secrets.TAG_AND_RELEASE_TOKEN }}"
18+
prerelease: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: RubyGems Release
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The MX Platform API is a powerful, fully-featured API designed to make aggregati
88

99
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1010

11-
- Package version: 0.5.0
11+
- Package version: 0.6.0
1212

1313
## Installation
1414

docs/MxPlatformApi.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ end
21992199

22002200
## list_default_categories
22012201

2202-
> <CategoriesResponseBody> list_default_categories(user_guid)
2202+
> <CategoriesResponseBody> list_default_categories(user_guid, opts)
22032203
22042204
List default categories
22052205

@@ -2219,10 +2219,14 @@ end
22192219

22202220
api_instance = MxPlatformRuby::MxPlatformApi.new
22212221
user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
2222+
opts = {
2223+
page: 1, # Integer | Specify current page.
2224+
records_per_page: 10 # Integer | Specify records per page.
2225+
}
22222226

22232227
begin
22242228
# List default categories
2225-
result = api_instance.list_default_categories(user_guid)
2229+
result = api_instance.list_default_categories(user_guid, opts)
22262230
p result
22272231
rescue MxPlatformRuby::ApiError => e
22282232
puts "Error when calling MxPlatformApi->list_default_categories: #{e}"
@@ -2233,12 +2237,12 @@ end
22332237

22342238
This returns an Array which contains the response data, status code and headers.
22352239

2236-
> <Array(<CategoriesResponseBody>, Integer, Hash)> list_default_categories_with_http_info(user_guid)
2240+
> <Array(<CategoriesResponseBody>, Integer, Hash)> list_default_categories_with_http_info(user_guid, opts)
22372241
22382242
```ruby
22392243
begin
22402244
# List default categories
2241-
data, status_code, headers = api_instance.list_default_categories_with_http_info(user_guid)
2245+
data, status_code, headers = api_instance.list_default_categories_with_http_info(user_guid, opts)
22422246
p status_code # => 2xx
22432247
p headers # => { ... }
22442248
p data # => <CategoriesResponseBody>
@@ -2252,6 +2256,8 @@ end
22522256
| Name | Type | Description | Notes |
22532257
| ---- | ---- | ----------- | ----- |
22542258
| **user_guid** | **String** | The unique id for a &#x60;user&#x60;. | |
2259+
| **page** | **Integer** | Specify current page. | [optional] |
2260+
| **records_per_page** | **Integer** | Specify records per page. | [optional] |
22552261

22562262
### Return type
22572263

@@ -2602,6 +2608,8 @@ end
26022608
api_instance = MxPlatformRuby::MxPlatformApi.new
26032609
opts = {
26042610
name: 'chase', # String | This will list only institutions in which the appended string appears.
2611+
page: 1, # Integer | Specify current page.
2612+
records_per_page: 10, # Integer | Specify records per page.
26052613
supports_account_identification: true, # Boolean | Filter only institutions which support account identification.
26062614
supports_account_statement: true, # Boolean | Filter only institutions which support account statements.
26072615
supports_account_verification: true, # Boolean | Filter only institutions which support account verification.
@@ -2640,6 +2648,8 @@ end
26402648
| Name | Type | Description | Notes |
26412649
| ---- | ---- | ----------- | ----- |
26422650
| **name** | **String** | This will list only institutions in which the appended string appears. | [optional] |
2651+
| **page** | **Integer** | Specify current page. | [optional] |
2652+
| **records_per_page** | **Integer** | Specify records per page. | [optional] |
26432653
| **supports_account_identification** | **Boolean** | Filter only institutions which support account identification. | [optional] |
26442654
| **supports_account_statement** | **Boolean** | Filter only institutions which support account statements. | [optional] |
26452655
| **supports_account_verification** | **Boolean** | Filter only institutions which support account verification. | [optional] |
@@ -3823,7 +3833,7 @@ end
38233833

38243834
## list_transactions_by_tag
38253835

3826-
> <TransactionsResponseBody> list_transactions_by_tag(tag_guid, user_guid)
3836+
> <TransactionsResponseBody> list_transactions_by_tag(tag_guid, user_guid, opts)
38273837
38283838
List transactions by tag
38293839

@@ -3844,10 +3854,16 @@ end
38443854
api_instance = MxPlatformRuby::MxPlatformApi.new
38453855
tag_guid = 'TAG-aef36e72-6294-4c38-844d-e573e80aed52' # String | The unique id for a `tag`.
38463856
user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
3857+
opts = {
3858+
from_date: '2015-09-20', # String | Filter transactions from this date.
3859+
page: 1, # Integer | Specify current page.
3860+
records_per_page: 10, # Integer | Specify records per page.
3861+
to_date: '2019-10-20' # String | Filter transactions to this date.
3862+
}
38473863

38483864
begin
38493865
# List transactions by tag
3850-
result = api_instance.list_transactions_by_tag(tag_guid, user_guid)
3866+
result = api_instance.list_transactions_by_tag(tag_guid, user_guid, opts)
38513867
p result
38523868
rescue MxPlatformRuby::ApiError => e
38533869
puts "Error when calling MxPlatformApi->list_transactions_by_tag: #{e}"
@@ -3858,12 +3874,12 @@ end
38583874

38593875
This returns an Array which contains the response data, status code and headers.
38603876

3861-
> <Array(<TransactionsResponseBody>, Integer, Hash)> list_transactions_by_tag_with_http_info(tag_guid, user_guid)
3877+
> <Array(<TransactionsResponseBody>, Integer, Hash)> list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts)
38623878
38633879
```ruby
38643880
begin
38653881
# List transactions by tag
3866-
data, status_code, headers = api_instance.list_transactions_by_tag_with_http_info(tag_guid, user_guid)
3882+
data, status_code, headers = api_instance.list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts)
38673883
p status_code # => 2xx
38683884
p headers # => { ... }
38693885
p data # => <TransactionsResponseBody>
@@ -3878,6 +3894,10 @@ end
38783894
| ---- | ---- | ----------- | ----- |
38793895
| **tag_guid** | **String** | The unique id for a &#x60;tag&#x60;. | |
38803896
| **user_guid** | **String** | The unique id for a &#x60;user&#x60;. | |
3897+
| **from_date** | **String** | Filter transactions from this date. | [optional] |
3898+
| **page** | **Integer** | Specify current page. | [optional] |
3899+
| **records_per_page** | **Integer** | Specify records per page. | [optional] |
3900+
| **to_date** | **String** | Filter transactions to this date. | [optional] |
38813901

38823902
### Return type
38833903

lib/mx-platform-ruby/api/mx_platform_api.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,8 @@ def list_categories_with_http_info(user_guid, opts = {})
20742074
# Use this endpoint to read the attributes of a specific user.
20752075
# @param user_guid [String] The unique id for a &#x60;user&#x60;.
20762076
# @param [Hash] opts the optional parameters
2077+
# @option opts [Integer] :page Specify current page.
2078+
# @option opts [Integer] :records_per_page Specify records per page.
20772079
# @return [CategoriesResponseBody]
20782080
def list_default_categories(user_guid, opts = {})
20792081
data, _status_code, _headers = list_default_categories_with_http_info(user_guid, opts)
@@ -2084,6 +2086,8 @@ def list_default_categories(user_guid, opts = {})
20842086
# Use this endpoint to read the attributes of a specific user.
20852087
# @param user_guid [String] The unique id for a &#x60;user&#x60;.
20862088
# @param [Hash] opts the optional parameters
2089+
# @option opts [Integer] :page Specify current page.
2090+
# @option opts [Integer] :records_per_page Specify records per page.
20872091
# @return [Array<(CategoriesResponseBody, Integer, Hash)>] CategoriesResponseBody data, response status code and response headers
20882092
def list_default_categories_with_http_info(user_guid, opts = {})
20892093
if @api_client.config.debugging
@@ -2098,6 +2102,8 @@ def list_default_categories_with_http_info(user_guid, opts = {})
20982102

20992103
# query parameters
21002104
query_params = opts[:query_params] || {}
2105+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2106+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
21012107

21022108
# header parameters
21032109
header_params = opts[:header_params] || {}
@@ -2425,6 +2431,8 @@ def list_institution_credentials_with_http_info(institution_code, opts = {})
24252431
# This endpoint returns a list of institutions based on the specified search term or parameter.
24262432
# @param [Hash] opts the optional parameters
24272433
# @option opts [String] :name This will list only institutions in which the appended string appears.
2434+
# @option opts [Integer] :page Specify current page.
2435+
# @option opts [Integer] :records_per_page Specify records per page.
24282436
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
24292437
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
24302438
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
@@ -2439,6 +2447,8 @@ def list_institutions(opts = {})
24392447
# This endpoint returns a list of institutions based on the specified search term or parameter.
24402448
# @param [Hash] opts the optional parameters
24412449
# @option opts [String] :name This will list only institutions in which the appended string appears.
2450+
# @option opts [Integer] :page Specify current page.
2451+
# @option opts [Integer] :records_per_page Specify records per page.
24422452
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
24432453
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
24442454
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
@@ -2454,6 +2464,8 @@ def list_institutions_with_http_info(opts = {})
24542464
# query parameters
24552465
query_params = opts[:query_params] || {}
24562466
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2467+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2468+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
24572469
query_params[:'supports_account_identification'] = opts[:'supports_account_identification'] if !opts[:'supports_account_identification'].nil?
24582470
query_params[:'supports_account_statement'] = opts[:'supports_account_statement'] if !opts[:'supports_account_statement'].nil?
24592471
query_params[:'supports_account_verification'] = opts[:'supports_account_verification'] if !opts[:'supports_account_verification'].nil?
@@ -3581,6 +3593,10 @@ def list_transactions_by_member_with_http_info(member_guid, user_guid, opts = {}
35813593
# @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
35823594
# @param user_guid [String] The unique id for a &#x60;user&#x60;.
35833595
# @param [Hash] opts the optional parameters
3596+
# @option opts [String] :from_date Filter transactions from this date.
3597+
# @option opts [Integer] :page Specify current page.
3598+
# @option opts [Integer] :records_per_page Specify records per page.
3599+
# @option opts [String] :to_date Filter transactions to this date.
35843600
# @return [TransactionsResponseBody]
35853601
def list_transactions_by_tag(tag_guid, user_guid, opts = {})
35863602
data, _status_code, _headers = list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts)
@@ -3592,6 +3608,10 @@ def list_transactions_by_tag(tag_guid, user_guid, opts = {})
35923608
# @param tag_guid [String] The unique id for a &#x60;tag&#x60;.
35933609
# @param user_guid [String] The unique id for a &#x60;user&#x60;.
35943610
# @param [Hash] opts the optional parameters
3611+
# @option opts [String] :from_date Filter transactions from this date.
3612+
# @option opts [Integer] :page Specify current page.
3613+
# @option opts [Integer] :records_per_page Specify records per page.
3614+
# @option opts [String] :to_date Filter transactions to this date.
35953615
# @return [Array<(TransactionsResponseBody, Integer, Hash)>] TransactionsResponseBody data, response status code and response headers
35963616
def list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts = {})
35973617
if @api_client.config.debugging
@@ -3610,6 +3630,10 @@ def list_transactions_by_tag_with_http_info(tag_guid, user_guid, opts = {})
36103630

36113631
# query parameters
36123632
query_params = opts[:query_params] || {}
3633+
query_params[:'from_date'] = opts[:'from_date'] if !opts[:'from_date'].nil?
3634+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
3635+
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
3636+
query_params[:'to_date'] = opts[:'to_date'] if !opts[:'to_date'].nil?
36133637

36143638
# header parameters
36153639
header_params = opts[:header_params] || {}

lib/mx-platform-ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module MxPlatformRuby
14-
VERSION = '0.5.0'
14+
VERSION = '0.6.0'
1515
end

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ gemHomepage: "https://github.com/mxenabled/mx-platform-ruby"
66
gemLicense: "MIT"
77
gemName: "mx-platform-ruby"
88
gemRequiredRubyVersion: ">= 2.6"
9-
gemVersion: "0.5.0"
9+
gemVersion: "0.6.0"
1010
library: "faraday"
1111
moduleName: "MxPlatformRuby"

spec/api/mx_platform_api_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@
423423
# Use this endpoint to read the attributes of a specific user.
424424
# @param user_guid The unique id for a &#x60;user&#x60;.
425425
# @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.
426428
# @return [CategoriesResponseBody]
427429
describe 'list_default_categories test' do
428430
it 'should work' do
@@ -495,6 +497,8 @@
495497
# This endpoint returns a list of institutions based on the specified search term or parameter.
496498
# @param [Hash] opts the optional parameters
497499
# @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.
498502
# @option opts [Boolean] :supports_account_identification Filter only institutions which support account identification.
499503
# @option opts [Boolean] :supports_account_statement Filter only institutions which support account statements.
500504
# @option opts [Boolean] :supports_account_verification Filter only institutions which support account verification.
@@ -733,6 +737,10 @@
733737
# @param tag_guid The unique id for a &#x60;tag&#x60;.
734738
# @param user_guid The unique id for a &#x60;user&#x60;.
735739
# @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.
736744
# @return [TransactionsResponseBody]
737745
describe 'list_transactions_by_tag test' do
738746
it 'should work' do

0 commit comments

Comments
 (0)