moneykit 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a22c2a494c76668563227b34d3e8cec426fd5e38d300aeb286ba4921c9ccde5d
4
- data.tar.gz: e69d6adea8dc1d14616b976b176c4085f5e565e104d4912f19058c8f309a0e29
3
+ metadata.gz: 8411a00a1e50534628e30f73a31f463f6f2ca1bba999e7f9b180c97cb608fcc3
4
+ data.tar.gz: ce4f27d92b7e636838abd0032c18d736740857d9f192f4e6514af150a7bede4d
5
5
  SHA512:
6
- metadata.gz: af5d0cfc48c84465d167bd854f893c09a8ca30e02d3539ccaaebf35c1bd16142d3cabd97fa80d9d9470c864de1497eb1269556ab6b57297981621c09b8fcf599
7
- data.tar.gz: 65aaee9e75144a8a1fae50d87710b62efb67db6b67095987c3bdaa70319814adfb1b22eda3a90994ebb781775c494f7fe65c65afcc4ad91e79d62b57ca92f4bf
6
+ metadata.gz: 0d099869b161db38abcb0cb313ce1c2f15f434ee74cf2fc5b7101b5d40777f8c82149fa1bca5fb0eb1332711b8237338827c7f67748002a9dc740d28d9a12ae9
7
+ data.tar.gz: 48a323b63ebed812f7ef90189040bebddaabd5197b7e2d9e8d34ed7b1ac519fd7dd7051233c637038b9e774edf04e231be373aa4614ff1964b690596ef2935c9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- moneykit (0.1.3)
4
+ moneykit (0.1.5)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
 
@@ -65,6 +65,7 @@ GEM
65
65
  unicode-display_width (1.5.0)
66
66
 
67
67
  PLATFORMS
68
+ arm64-darwin-21
68
69
  x86_64-linux
69
70
 
70
71
  DEPENDENCIES
data/README.md CHANGED
@@ -16,7 +16,7 @@ bundle add moneykit.gemspec
16
16
  or add the following to your `Gemfile`
17
17
 
18
18
  ```
19
- gem 'moneykit', '~> 0.1.3'
19
+ gem 'moneykit', '~> 0.1.5'
20
20
  ```
21
21
 
22
22
  ## Getting Started
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **settings** | [**LinkSessionSettingOverrides**](LinkSessionSettingOverrides.md) | | [optional] |
8
8
  | **customer_user** | [**LinkSessionCustomerUser**](LinkSessionCustomerUser.md) | | |
9
- | **existing_link_id** | **String** | Supply the existing &#x60;link_id&#x60; if you are asking the user to reconnect this link. | [optional] |
10
- | **institution_id** | **String** | The ID of the institution you want to link to. Providing this will skip the institution selection step. &#x60;existing_link_id&#x60; will take precedence over this field if both are provided. | [optional] |
9
+ | **existing_link_id** | **String** | Supply the existing &#x60;link_id&#x60; if you are asking the user to reconnect this link. &lt;p&gt;When reconnecting, if new accounts are discovered they will be presented to the user so permission to access them can be granted (or denied). Access to previously permitted accounts is not revokable at this point. &lt;p&gt;If necessary, MoneyKit may attempt to reconnect the account using a different provider than the link was originally connected through. The change in provider is generally seamless. MoneyKit normalizes incoming data to minimize provider-specific differences, and we deduplicate new transactions, so data continuity is generally assured; however, small discrepancies can still occur. &lt;p&gt;A reconnection cannot change the institution, the customer_user.id, the products, or the country for an existing link. These parameters will be silently ignored if &#x60;existing_link_id&#x60; is supplied. &lt;p&gt;The &#x60;webhook&#x60; for an existing link **can** be changed, and the existing webhook will be **removed** if the &#x60;webhook&#x60; parameter is omitted, so you should supply the &#x60;webhook&#x60; URL if you want to receive webhook events for the reconnected link. &lt;p&gt;Similarly, a reconnected link will be assigned whatever &#x60;link_tags&#x60; are supplied, and existing tags will be removed if &#x60;link_tags&#x60; is omitted, so you should supply the &#x60;link_tags&#x60; you want the link to have, if any. | [optional] |
10
+ | **institution_id** | **String** | The ID of the institution you want to link to. Providing this will skip the institution selection step. This field is ignored if &#x60;existing_link_id&#x60; is provided. | [optional] |
11
11
  | **redirect_uri** | **String** | For Oauth linking, a URI indicating the destination, in your application, where the user should be sent after authenticating with the institution. The &#x60;redirect_uri&#x60; should not contain any query parameters, and it must be pre-approved by MoneyKit during the customer setup process. | |
12
12
  | **webhook** | **String** | The destination URL to which any webhooks should be sent. | [optional] |
13
13
  | **link_tags** | **Array&lt;String&gt;** | | [optional] |
data/docs/ProductsApi.md CHANGED
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.moneykit.com*
9
9
 
10
10
  ## refresh_products
11
11
 
12
- > refresh_products(id, refresh_products_request)
12
+ > <LinkCommon> refresh_products(id, refresh_products_request)
13
13
 
14
14
  /links/{id}/products
15
15
 
@@ -32,7 +32,8 @@ refresh_products_request = MoneyKit::RefreshProductsRequest.new({products: [Mone
32
32
 
33
33
  begin
34
34
  # /links/{id}/products
35
- api_instance.refresh_products(id, refresh_products_request)
35
+ result = api_instance.refresh_products(id, refresh_products_request)
36
+ p result
36
37
  rescue MoneyKit::ApiError => e
37
38
  puts "Error when calling ProductsApi->refresh_products: #{e}"
38
39
  end
@@ -40,9 +41,9 @@ end
40
41
 
41
42
  #### Using the refresh_products_with_http_info variant
42
43
 
43
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
44
+ This returns an Array which contains the response data, status code and headers.
44
45
 
45
- > <Array(nil, Integer, Hash)> refresh_products_with_http_info(id, refresh_products_request)
46
+ > <Array(<LinkCommon>, Integer, Hash)> refresh_products_with_http_info(id, refresh_products_request)
46
47
 
47
48
  ```ruby
48
49
  begin
@@ -50,7 +51,7 @@ begin
50
51
  data, status_code, headers = api_instance.refresh_products_with_http_info(id, refresh_products_request)
51
52
  p status_code # => 2xx
52
53
  p headers # => { ... }
53
- p data # => nil
54
+ p data # => <LinkCommon>
54
55
  rescue MoneyKit::ApiError => e
55
56
  puts "Error when calling ProductsApi->refresh_products_with_http_info: #{e}"
56
57
  end
@@ -65,7 +66,7 @@ end
65
66
 
66
67
  ### Return type
67
68
 
68
- nil (empty response body)
69
+ [**LinkCommon**](LinkCommon.md)
69
70
 
70
71
  ### Authorization
71
72
 
@@ -8,6 +8,7 @@
8
8
  | **last_attempted_at** | **Time** | An ISO-8601 timestamp indicating the last time that the product was attempted. | [optional] |
9
9
  | **error_code** | [**LinkProductFailureReasons**](LinkProductFailureReasons.md) | | [optional] |
10
10
  | **error_message** | **String** | The error message, if the last attempt to refresh the product failed. | [optional] |
11
+ | **has_history** | **Boolean** | | |
11
12
  | **settings** | [**TransactionsProductSettings**](TransactionsProductSettings.md) | | |
12
13
 
13
14
  ## Example
@@ -20,6 +21,7 @@ instance = MoneyKit::TransactionsLinkProduct.new(
20
21
  last_attempted_at: 2023-02-16T09:14:11,
21
22
  error_code: null,
22
23
  error_message: null,
24
+ has_history: null,
23
25
  settings: null
24
26
  )
25
27
  ```
@@ -24,10 +24,10 @@ module MoneyKit
24
24
  # @param id [String] The unique ID for this link.
25
25
  # @param refresh_products_request [RefreshProductsRequest]
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [nil]
27
+ # @return [LinkCommon]
28
28
  def refresh_products(id, refresh_products_request, opts = {})
29
- refresh_products_with_http_info(id, refresh_products_request, opts)
30
- nil
29
+ data, _status_code, _headers = refresh_products_with_http_info(id, refresh_products_request, opts)
30
+ data
31
31
  end
32
32
 
33
33
  # /links/{id}/products
@@ -35,7 +35,7 @@ module MoneyKit
35
35
  # @param id [String] The unique ID for this link.
36
36
  # @param refresh_products_request [RefreshProductsRequest]
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
38
+ # @return [Array<(LinkCommon, Integer, Hash)>] LinkCommon data, response status code and response headers
39
39
  def refresh_products_with_http_info(id, refresh_products_request, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: ProductsApi.refresh_products ...'
@@ -71,7 +71,7 @@ module MoneyKit
71
71
  post_body = opts[:debug_body] || @api_client.object_to_http_body(refresh_products_request)
72
72
 
73
73
  # return_type
74
- return_type = opts[:debug_return_type]
74
+ return_type = opts[:debug_return_type] || 'LinkCommon'
75
75
 
76
76
  # auth_names
77
77
  auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials']
@@ -19,10 +19,10 @@ module MoneyKit
19
19
 
20
20
  attr_accessor :customer_user
21
21
 
22
- # Supply the existing `link_id` if you are asking the user to reconnect this link.
22
+ # Supply the existing `link_id` if you are asking the user to reconnect this link. <p>When reconnecting, if new accounts are discovered they will be presented to the user so permission to access them can be granted (or denied). Access to previously permitted accounts is not revokable at this point. <p>If necessary, MoneyKit may attempt to reconnect the account using a different provider than the link was originally connected through. The change in provider is generally seamless. MoneyKit normalizes incoming data to minimize provider-specific differences, and we deduplicate new transactions, so data continuity is generally assured; however, small discrepancies can still occur. <p>A reconnection cannot change the institution, the customer_user.id, the products, or the country for an existing link. These parameters will be silently ignored if `existing_link_id` is supplied. <p>The `webhook` for an existing link **can** be changed, and the existing webhook will be **removed** if the `webhook` parameter is omitted, so you should supply the `webhook` URL if you want to receive webhook events for the reconnected link. <p>Similarly, a reconnected link will be assigned whatever `link_tags` are supplied, and existing tags will be removed if `link_tags` is omitted, so you should supply the `link_tags` you want the link to have, if any.
23
23
  attr_accessor :existing_link_id
24
24
 
25
- # The ID of the institution you want to link to. Providing this will skip the institution selection step. `existing_link_id` will take precedence over this field if both are provided.
25
+ # The ID of the institution you want to link to. Providing this will skip the institution selection step. This field is ignored if `existing_link_id` is provided.
26
26
  attr_accessor :institution_id
27
27
 
28
28
  # For Oauth linking, a URI indicating the destination, in your application, where the user should be sent after authenticating with the institution. The `redirect_uri` should not contain any query parameters, and it must be pre-approved by MoneyKit during the customer setup process.
@@ -21,9 +21,10 @@ module MoneyKit
21
21
  NOT_SUPPORTED = "not_supported".freeze
22
22
  TIMEOUT = "timeout".freeze
23
23
  UNKNOWN = "unknown".freeze
24
+ NO_ACCOUNTS = "no_accounts".freeze
24
25
 
25
26
  def self.all_vars
26
- @all_vars ||= [RATE_LIMIT, AUTH_EXPIRED, INVALID_CREDENTIALS, NOT_SUPPORTED, TIMEOUT, UNKNOWN].freeze
27
+ @all_vars ||= [RATE_LIMIT, AUTH_EXPIRED, INVALID_CREDENTIALS, NOT_SUPPORTED, TIMEOUT, UNKNOWN, NO_ACCOUNTS].freeze
27
28
  end
28
29
 
29
30
  # Builds the enum from string
@@ -26,6 +26,8 @@ module MoneyKit
26
26
  # The error message, if the last attempt to refresh the product failed.
27
27
  attr_accessor :error_message
28
28
 
29
+ attr_accessor :has_history
30
+
29
31
  attr_accessor :settings
30
32
 
31
33
  class EnumAttributeValidator
@@ -57,6 +59,7 @@ module MoneyKit
57
59
  :'last_attempted_at' => :'last_attempted_at',
58
60
  :'error_code' => :'error_code',
59
61
  :'error_message' => :'error_message',
62
+ :'has_history' => :'has_history',
60
63
  :'settings' => :'settings'
61
64
  }
62
65
  end
@@ -73,6 +76,7 @@ module MoneyKit
73
76
  :'last_attempted_at' => :'Time',
74
77
  :'error_code' => :'LinkProductFailureReasons',
75
78
  :'error_message' => :'String',
79
+ :'has_history' => :'Boolean',
76
80
  :'settings' => :'TransactionsProductSettings'
77
81
  }
78
82
  end
@@ -114,6 +118,12 @@ module MoneyKit
114
118
  self.error_message = attributes[:'error_message']
115
119
  end
116
120
 
121
+ if attributes.key?(:'has_history')
122
+ self.has_history = attributes[:'has_history']
123
+ else
124
+ self.has_history = nil
125
+ end
126
+
117
127
  if attributes.key?(:'settings')
118
128
  self.settings = attributes[:'settings']
119
129
  else
@@ -126,6 +136,10 @@ module MoneyKit
126
136
  def list_invalid_properties
127
137
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
128
138
  invalid_properties = Array.new
139
+ if @has_history.nil?
140
+ invalid_properties.push('invalid value for "has_history", has_history cannot be nil.')
141
+ end
142
+
129
143
  if @settings.nil?
130
144
  invalid_properties.push('invalid value for "settings", settings cannot be nil.')
131
145
  end
@@ -137,6 +151,7 @@ module MoneyKit
137
151
  # @return true if the model is valid
138
152
  def valid?
139
153
  warn '[DEPRECATED] the `valid?` method is obsolete'
154
+ return false if @has_history.nil?
140
155
  return false if @settings.nil?
141
156
  true
142
157
  end
@@ -150,6 +165,7 @@ module MoneyKit
150
165
  last_attempted_at == o.last_attempted_at &&
151
166
  error_code == o.error_code &&
152
167
  error_message == o.error_message &&
168
+ has_history == o.has_history &&
153
169
  settings == o.settings
154
170
  end
155
171
 
@@ -162,7 +178,7 @@ module MoneyKit
162
178
  # Calculates hash code according to all attributes.
163
179
  # @return [Integer] Hash code
164
180
  def hash
165
- [refreshed_at, last_attempted_at, error_code, error_message, settings].hash
181
+ [refreshed_at, last_attempted_at, error_code, error_message, has_history, settings].hash
166
182
  end
167
183
 
168
184
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.1.0
11
11
  =end
12
12
 
13
13
  module MoneyKit
14
- VERSION = '0.1.3'
14
+ VERSION = '0.1.5'
15
15
  end
@@ -3,10 +3,10 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
6
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-d670wy sitelibdir\=./.gem.20240109-1853-d670wy clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-twqn9h sitelibdir\=./.gem.20240131-1734-twqn9h clean
7
7
 
8
8
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
9
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-d670wy sitelibdir\=./.gem.20240109-1853-d670wy
9
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-twqn9h sitelibdir\=./.gem.20240131-1734-twqn9h
10
10
  compiling breakpoint.c
11
11
  compiling byebug.c
12
12
  byebug.c: In function ‘check_started’:
@@ -35,8 +35,8 @@ compiling threads.c
35
35
  linking shared-object byebug/byebug.so
36
36
 
37
37
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
38
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-d670wy sitelibdir\=./.gem.20240109-1853-d670wy install
39
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20240109-1853-d670wy/byebug
38
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-twqn9h sitelibdir\=./.gem.20240131-1734-twqn9h install
39
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20240131-1734-twqn9h/byebug
40
40
 
41
41
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
42
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-d670wy sitelibdir\=./.gem.20240109-1853-d670wy clean
42
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-twqn9h sitelibdir\=./.gem.20240131-1734-twqn9h clean
@@ -3,10 +3,10 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
6
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t4vspj sitelibdir\=./.gem.20240109-1853-t4vspj clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-ve2ll0 sitelibdir\=./.gem.20240131-1734-ve2ll0 clean
7
7
 
8
8
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
9
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t4vspj sitelibdir\=./.gem.20240109-1853-t4vspj
9
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-ve2ll0 sitelibdir\=./.gem.20240131-1734-ve2ll0
10
10
  compiling adj_matrix.c
11
11
  adj_matrix.c: In function ‘adj_matrix_default’:
12
12
  adj_matrix.c:82:12: warning: old-style function definition [-Wold-style-definition]
@@ -22,8 +22,8 @@ compiling jaro_winkler.c
22
22
  linking shared-object jaro_winkler/jaro_winkler_ext.so
23
23
 
24
24
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
25
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t4vspj sitelibdir\=./.gem.20240109-1853-t4vspj install
26
- /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240109-1853-t4vspj/jaro_winkler
25
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-ve2ll0 sitelibdir\=./.gem.20240131-1734-ve2ll0 install
26
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240131-1734-ve2ll0/jaro_winkler
27
27
 
28
28
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
29
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t4vspj sitelibdir\=./.gem.20240109-1853-t4vspj clean
29
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-ve2ll0 sitelibdir\=./.gem.20240131-1734-ve2ll0 clean
@@ -5,13 +5,13 @@ checking for yaml_get_version() in -lyaml... yes
5
5
  creating Makefile
6
6
 
7
7
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
8
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t7m4vo sitelibdir\=./.gem.20240109-1853-t7m4vo clean
8
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-jcy5n4 sitelibdir\=./.gem.20240131-1734-jcy5n4 clean
9
9
  cd libyaml && make clean
10
10
  /bin/sh: 1: cd: can't cd to libyaml
11
11
  make: [Makefile:283: clean-so] Error 2 (ignored)
12
12
 
13
13
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
14
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t7m4vo sitelibdir\=./.gem.20240109-1853-t7m4vo
14
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-jcy5n4 sitelibdir\=./.gem.20240131-1734-jcy5n4
15
15
  compiling psych.c
16
16
  compiling psych_emitter.c
17
17
  compiling psych_parser.c
@@ -20,11 +20,11 @@ compiling psych_yaml_tree.c
20
20
  linking shared-object psych.so
21
21
 
22
22
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
23
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t7m4vo sitelibdir\=./.gem.20240109-1853-t7m4vo install
24
- /usr/bin/install -c -m 0755 psych.so ./.gem.20240109-1853-t7m4vo
23
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-jcy5n4 sitelibdir\=./.gem.20240131-1734-jcy5n4 install
24
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20240131-1734-jcy5n4
25
25
 
26
26
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
27
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-t7m4vo sitelibdir\=./.gem.20240109-1853-t7m4vo clean
27
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-jcy5n4 sitelibdir\=./.gem.20240131-1734-jcy5n4 clean
28
28
  cd libyaml && make clean
29
29
  /bin/sh: 1: cd: can't cd to libyaml
30
30
  make: [Makefile:283: clean-so] Error 2 (ignored)
@@ -3,16 +3,16 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
6
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-ppo21o sitelibdir\=./.gem.20240109-1853-ppo21o clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xv3y3g sitelibdir\=./.gem.20240131-1734-xv3y3g clean
7
7
 
8
8
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
9
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-ppo21o sitelibdir\=./.gem.20240109-1853-ppo21o
9
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xv3y3g sitelibdir\=./.gem.20240131-1734-xv3y3g
10
10
  compiling cparse.c
11
11
  linking shared-object racc/cparse.so
12
12
 
13
13
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
14
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-ppo21o sitelibdir\=./.gem.20240109-1853-ppo21o install
15
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20240109-1853-ppo21o/racc
14
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xv3y3g sitelibdir\=./.gem.20240131-1734-xv3y3g install
15
+ /usr/bin/install -c -m 0755 cparse.so ./.gem.20240131-1734-xv3y3g/racc
16
16
 
17
17
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-ppo21o sitelibdir\=./.gem.20240109-1853-ppo21o clean
18
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xv3y3g sitelibdir\=./.gem.20240131-1734-xv3y3g clean
@@ -3,16 +3,16 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
6
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-kvx32e sitelibdir\=./.gem.20240109-1853-kvx32e clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xn012y sitelibdir\=./.gem.20240131-1734-xn012y clean
7
7
 
8
8
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
9
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-kvx32e sitelibdir\=./.gem.20240109-1853-kvx32e
9
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xn012y sitelibdir\=./.gem.20240131-1734-xn012y
10
10
  compiling stringio.c
11
11
  linking shared-object stringio.so
12
12
 
13
13
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
14
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-kvx32e sitelibdir\=./.gem.20240109-1853-kvx32e install
15
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20240109-1853-kvx32e
14
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xn012y sitelibdir\=./.gem.20240131-1734-xn012y install
15
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20240131-1734-xn012y
16
16
 
17
17
  current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
18
- make DESTDIR\= sitearchdir\=./.gem.20240109-1853-kvx32e sitelibdir\=./.gem.20240109-1853-kvx32e clean
18
+ make DESTDIR\= sitearchdir\=./.gem.20240131-1734-xn012y sitelibdir\=./.gem.20240131-1734-xn012y clean
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoneyKit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -324,11 +324,9 @@ files:
324
324
  - lib/moneykit/models/response401_get_link_links_id_get.rb
325
325
  - lib/moneykit/models/response401_get_transactions.rb
326
326
  - lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb
327
- - lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb
328
327
  - lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb
329
328
  - lib/moneykit/models/response401_get_user_links_users_id_links_get.rb
330
329
  - lib/moneykit/models/response401_get_user_transactions.rb
331
- - lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb
332
330
  - lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb
333
331
  - lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb
334
332
  - lib/moneykit/models/response401_refresh_products_links_id_products_post.rb
@@ -448,7 +446,6 @@ files:
448
446
  - spec/models/product_spec.rb
449
447
  - spec/models/products_settings_spec.rb
450
448
  - spec/models/provider_spec.rb
451
- - spec/models/public_link_error_spec.rb
452
449
  - spec/models/refresh_products_request_spec.rb
453
450
  - spec/models/requested_link_permission_spec.rb
454
451
  - spec/models/response401_disconnect_links_id_delete_spec.rb
@@ -463,12 +460,10 @@ files:
463
460
  - spec/models/response401_get_investment_transactions_links_id_investments_transactions_get_spec.rb
464
461
  - spec/models/response401_get_link_links_id_get_spec.rb
465
462
  - spec/models/response401_get_transactions_diff_links_id_transactions_sync_get_spec.rb
466
- - spec/models/response401_get_transactions_links_id_transactions_get_spec.rb
467
463
  - spec/models/response401_get_transactions_spec.rb
468
464
  - spec/models/response401_get_user_accounts_users_id_accounts_get_spec.rb
469
465
  - spec/models/response401_get_user_links_users_id_links_get_spec.rb
470
466
  - spec/models/response401_get_user_transactions_spec.rb
471
- - spec/models/response401_get_user_transactions_users_id_transactions_get_spec.rb
472
467
  - spec/models/response401_get_well_known_jwks_well_known_jwks_json_get_spec.rb
473
468
  - spec/models/response401_instrospect_client_auth_introspect_get_spec.rb
474
469
  - spec/models/response401_refresh_products_links_id_products_post_spec.rb
@@ -2326,142 +2321,139 @@ signing_key:
2326
2321
  specification_version: 4
2327
2322
  summary: MoneyKit API Ruby Gem
2328
2323
  test_files:
2329
- - spec/api/users_api_spec.rb
2330
2324
  - spec/api/investments_api_spec.rb
2331
- - spec/api/transactions_api_spec.rb
2325
+ - spec/api/links_api_spec.rb
2326
+ - spec/api/institutions_api_spec.rb
2332
2327
  - spec/api/identity_api_spec.rb
2328
+ - spec/api/accounts_api_spec.rb
2333
2329
  - spec/api/products_api_spec.rb
2334
- - spec/api/institutions_api_spec.rb
2330
+ - spec/api/transactions_api_spec.rb
2331
+ - spec/api/users_api_spec.rb
2332
+ - spec/api/account_numbers_api_spec.rb
2335
2333
  - spec/api/access_token_api_spec.rb
2336
- - spec/api/accounts_api_spec.rb
2337
- - spec/api/link_session_api_spec.rb
2338
- - spec/api/links_api_spec.rb
2339
2334
  - spec/api/webhooks_api_spec.rb
2340
- - spec/api/account_numbers_api_spec.rb
2335
+ - spec/api/link_session_api_spec.rb
2341
2336
  - spec/api_client_spec.rb
2342
2337
  - spec/configuration_spec.rb
2343
- - spec/models/response401_get_transactions_links_id_transactions_get_spec.rb
2344
- - spec/models/transaction_updates_available_webhook_spec.rb
2345
- - spec/models/link_permission_scope_spec.rb
2346
- - spec/models/response401_refresh_products_links_id_products_post_spec.rb
2347
- - spec/models/link_product_refresh_webhook_spec.rb
2348
2338
  - spec/models/body_spec.rb
2349
- - spec/models/eft_number_spec.rb
2350
- - spec/models/institution_error_not_found_response_spec.rb
2351
- - spec/models/account_identity_spec.rb
2352
- - spec/models/requested_link_permission_spec.rb
2353
- - spec/models/response401_disconnect_links_id_delete_spec.rb
2354
- - spec/models/provider_spec.rb
2355
- - spec/models/money_kit_connect_features_spec.rb
2356
- - spec/models/cursor_pagination_spec.rb
2357
- - spec/models/identity_response_spec.rb
2358
- - spec/models/investments_product_settings_spec.rb
2359
- - spec/models/api_error_auth_unauthorized_response_spec.rb
2360
- - spec/models/identity_product_settings_spec.rb
2361
- - spec/models/public_link_error_spec.rb
2362
- - spec/models/bacs_number_spec.rb
2363
- - spec/models/phone_number_spec.rb
2364
- - spec/models/transactions_link_product_spec.rb
2365
- - spec/models/institution_spec.rb
2366
- - spec/models/generate_access_token_response_spec.rb
2367
- - spec/models/currency_spec.rb
2368
- - spec/models/get_user_accounts_response_spec.rb
2369
- - spec/models/accounts_link_product_spec.rb
2370
- - spec/models/response401_get_investment_transactions_links_id_investments_transactions_get_spec.rb
2371
- - spec/models/introspect_client_response_spec.rb
2372
- - spec/models/get_institutions_response_spec.rb
2373
- - spec/models/response401_get_user_transactions_users_id_transactions_get_spec.rb
2374
- - spec/models/owner_spec.rb
2339
+ - spec/models/response401_get_link_links_id_get_spec.rb
2340
+ - spec/models/api_error_auth_expired_access_token_response_spec.rb
2375
2341
  - spec/models/international_number_spec.rb
2376
- - spec/models/transaction_diff_spec.rb
2377
- - spec/models/phone_number_type_spec.rb
2378
- - spec/models/response401_get_user_links_users_id_links_get_spec.rb
2342
+ - spec/models/link_state_spec.rb
2343
+ - spec/models/account_numbers_product_settings_spec.rb
2344
+ - spec/models/get_user_links_response_spec.rb
2345
+ - spec/models/link_error_deleted_response_spec.rb
2346
+ - spec/models/get_accounts_response_spec.rb
2347
+ - spec/models/account_with_account_numbers_spec.rb
2348
+ - spec/models/response401_get_transactions_spec.rb
2349
+ - spec/models/link_session_customer_user_phone_spec.rb
2350
+ - spec/models/get_user_transactions_response_spec.rb
2379
2351
  - spec/models/create_link_session_response_spec.rb
2380
- - spec/models/response401_get_transactions_diff_links_id_transactions_sync_get_spec.rb
2352
+ - spec/models/transactions_link_product_spec.rb
2381
2353
  - spec/models/country_spec.rb
2382
- - spec/models/response401_get_identities_links_id_identity_get_spec.rb
2354
+ - spec/models/holding_response_spec.rb
2355
+ - spec/models/validation_error_spec.rb
2356
+ - spec/models/response401_get_user_accounts_users_id_accounts_get_spec.rb
2357
+ - spec/models/security_response_spec.rb
2358
+ - spec/models/link_session_error_invalid_token_exchange_spec.rb
2359
+ - spec/models/ach_number_spec.rb
2383
2360
  - spec/models/response401_get_account_links_id_accounts_account_id_get_spec.rb
2384
- - spec/models/link_error_bad_state_response_spec.rb
2361
+ - spec/models/response401_get_account_numbers_links_id_accounts_numbers_get_spec.rb
2362
+ - spec/models/introspect_client_response_spec.rb
2363
+ - spec/models/transaction_sync_response_spec.rb
2364
+ - spec/models/create_link_session_request_spec.rb
2365
+ - spec/models/investments_link_product_spec.rb
2385
2366
  - spec/models/account_spec.rb
2386
- - spec/models/webhook_test_link_response_spec.rb
2387
- - spec/models/api_error_rate_limit_exceeded_response_spec.rb
2388
- - spec/models/account_group_spec.rb
2389
- - spec/models/response401_get_transactions_spec.rb
2390
- - spec/models/transaction_spec.rb
2391
- - spec/models/ach_number_spec.rb
2392
- - spec/models/link_session_customer_user_spec.rb
2393
- - spec/models/response401_get_user_accounts_users_id_accounts_get_spec.rb
2394
- - spec/models/response401_get_user_transactions_spec.rb
2395
- - spec/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post_spec.rb
2396
- - spec/models/holding_response_spec.rb
2397
- - spec/models/response401_get_institution_institutions_institution_id_get_spec.rb
2398
- - spec/models/link_session_customer_user_email_spec.rb
2399
- - spec/models/response401_get_accounts_links_id_accounts_get_spec.rb
2400
- - spec/models/identity_link_product_spec.rb
2401
2367
  - spec/models/account_balances_spec.rb
2402
- - spec/models/response401_get_account_numbers_links_id_accounts_numbers_get_spec.rb
2368
+ - spec/models/update_link_request_spec.rb
2369
+ - spec/models/get_investment_transactions_response_spec.rb
2370
+ - spec/models/identity_product_settings_spec.rb
2371
+ - spec/models/response401_get_user_links_users_id_links_get_spec.rb
2372
+ - spec/models/link_product_state_spec.rb
2373
+ - spec/models/link_product_refresh_webhook_spec.rb
2374
+ - spec/models/account_group_spec.rb
2375
+ - spec/models/link_state_changed_webhook_spec.rb
2376
+ - spec/models/link_error_not_found_response_spec.rb
2377
+ - spec/models/transactions_product_settings_spec.rb
2378
+ - spec/models/validation_error_location_inner_spec.rb
2379
+ - spec/models/response401_get_identities_links_id_identity_get_spec.rb
2380
+ - spec/models/link_response_spec.rb
2381
+ - spec/models/eft_number_spec.rb
2382
+ - spec/models/webhook_test_link_request_spec.rb
2383
+ - spec/models/get_account_response_spec.rb
2384
+ - spec/models/products_settings_spec.rb
2385
+ - spec/models/link_error_unauthorized_access_response_spec.rb
2386
+ - spec/models/transaction_type_spec.rb
2403
2387
  - spec/models/email_spec.rb
2388
+ - spec/models/get_account_numbers_response_spec.rb
2389
+ - spec/models/transaction_diff_spec.rb
2390
+ - spec/models/link_session_customer_user_email_spec.rb
2391
+ - spec/models/response401_instrospect_client_auth_introspect_get_spec.rb
2392
+ - spec/models/account_numbers_spec.rb
2393
+ - spec/models/basic_account_details_spec.rb
2394
+ - spec/models/api_error_auth_unauthorized_response_spec.rb
2395
+ - spec/models/get_transactions_response_spec.rb
2396
+ - spec/models/get_institutions_response_spec.rb
2397
+ - spec/models/get_user_accounts_response_spec.rb
2398
+ - spec/models/identity_response_spec.rb
2399
+ - spec/models/phone_number_spec.rb
2400
+ - spec/models/requested_link_permission_spec.rb
2401
+ - spec/models/account_numbers_link_product_spec.rb
2402
+ - spec/models/exchange_token_response_spec.rb
2403
+ - spec/models/transaction_spec.rb
2404
2404
  - spec/models/transaction_type_filter_spec.rb
2405
- - spec/models/transaction_type_spec.rb
2406
- - spec/models/link_error_forbidden_action_response_spec.rb
2407
- - spec/models/validation_error_location_inner_spec.rb
2408
- - spec/models/account_numbers_product_settings_spec.rb
2409
- - spec/models/link_session_error_invalid_token_exchange_spec.rb
2410
- - spec/models/link_state_spec.rb
2411
- - spec/models/transactions_product_settings_spec.rb
2405
+ - spec/models/link_error_spec.rb
2406
+ - spec/models/response401_get_accounts_links_id_accounts_get_spec.rb
2407
+ - spec/models/http_validation_error_spec.rb
2408
+ - spec/models/institution_spec.rb
2409
+ - spec/models/link_session_customer_user_spec.rb
2412
2410
  - spec/models/exchange_token_request_spec.rb
2411
+ - spec/models/investments_product_settings_spec.rb
2412
+ - spec/models/customer_app_spec.rb
2413
+ - spec/models/api_error_rate_limit_exceeded_response_spec.rb
2414
+ - spec/models/response401_get_investment_transactions_links_id_investments_transactions_get_spec.rb
2415
+ - spec/models/response401_update_link_links_id_patch_spec.rb
2416
+ - spec/models/provider_spec.rb
2417
+ - spec/models/account_identity_spec.rb
2418
+ - spec/models/get_holdings_response_spec.rb
2419
+ - spec/models/institution_error_not_found_response_spec.rb
2420
+ - spec/models/response401_exchange_token_link_session_exchange_token_post_spec.rb
2421
+ - spec/models/investment_transaction_response_spec.rb
2422
+ - spec/models/webhook_test_link_response_spec.rb
2413
2423
  - spec/models/link_error_bad_config_response_spec.rb
2424
+ - spec/models/money_kit_connect_features_spec.rb
2425
+ - spec/models/response401_get_transactions_diff_links_id_transactions_sync_get_spec.rb
2426
+ - spec/models/response401_disconnect_links_id_delete_spec.rb
2427
+ - spec/models/owner_spec.rb
2428
+ - spec/models/phone_number_type_spec.rb
2429
+ - spec/models/response401_get_institutions_institutions_get_spec.rb
2430
+ - spec/models/currency_spec.rb
2414
2431
  - spec/models/refresh_products_request_spec.rb
2415
- - spec/models/transaction_sync_response_spec.rb
2432
+ - spec/models/response401_get_holdings_links_id_investments_holdings_get_spec.rb
2433
+ - spec/models/link_permissions_spec.rb
2434
+ - spec/models/link_session_setting_overrides_spec.rb
2435
+ - spec/models/response401_get_user_transactions_spec.rb
2436
+ - spec/models/jwk_set_spec.rb
2416
2437
  - spec/models/link_products_spec.rb
2417
- - spec/models/address_spec.rb
2418
- - spec/models/get_transactions_response_spec.rb
2419
- - spec/models/response401_instrospect_client_auth_introspect_get_spec.rb
2420
- - spec/models/investment_transaction_response_spec.rb
2421
- - spec/models/link_error_deleted_response_spec.rb
2438
+ - spec/models/product_spec.rb
2439
+ - spec/models/cursor_pagination_spec.rb
2422
2440
  - spec/models/response401_get_well_known_jwks_well_known_jwks_json_get_spec.rb
2423
- - spec/models/link_session_customer_user_phone_spec.rb
2424
- - spec/models/link_common_spec.rb
2425
- - spec/models/webhook_test_link_request_spec.rb
2426
- - spec/models/response401_get_holdings_links_id_investments_holdings_get_spec.rb
2427
- - spec/models/basic_account_details_spec.rb
2428
- - spec/models/products_settings_spec.rb
2429
- - spec/models/get_accounts_response_spec.rb
2430
- - spec/models/link_error_not_found_response_spec.rb
2431
- - spec/models/response401_get_institutions_institutions_get_spec.rb
2432
- - spec/models/exchange_token_response_spec.rb
2433
- - spec/models/link_error_spec.rb
2434
- - spec/models/response401_reset_login_links_id_reset_post_spec.rb
2435
- - spec/models/response401_exchange_token_link_session_exchange_token_post_spec.rb
2436
- - spec/models/link_session_error_forbidden_config_response_spec.rb
2437
- - spec/models/update_link_request_spec.rb
2441
+ - spec/models/identity_link_product_spec.rb
2442
+ - spec/models/response401_refresh_products_links_id_products_post_spec.rb
2443
+ - spec/models/generate_access_token_response_spec.rb
2444
+ - spec/models/response401_get_institution_institutions_institution_id_get_spec.rb
2438
2445
  - spec/models/webhook_link_test_event_spec.rb
2439
- - spec/models/link_product_state_spec.rb
2446
+ - spec/models/link_session_error_forbidden_config_response_spec.rb
2447
+ - spec/models/transaction_updates_available_webhook_spec.rb
2448
+ - spec/models/link_permission_scope_spec.rb
2449
+ - spec/models/bacs_number_spec.rb
2440
2450
  - spec/models/response_handle_link_webhook_event_request_body_webhook_post_spec.rb
2441
- - spec/models/jwk_set_spec.rb
2442
- - spec/models/get_user_links_response_spec.rb
2443
- - spec/models/account_with_account_numbers_spec.rb
2444
- - spec/models/response401_get_link_links_id_get_spec.rb
2445
- - spec/models/link_session_setting_overrides_spec.rb
2446
- - spec/models/get_account_response_spec.rb
2447
- - spec/models/api_error_auth_expired_access_token_response_spec.rb
2448
- - spec/models/response401_update_link_links_id_patch_spec.rb
2449
- - spec/models/product_spec.rb
2450
- - spec/models/get_user_transactions_response_spec.rb
2451
- - spec/models/link_permissions_spec.rb
2452
- - spec/models/customer_app_spec.rb
2453
- - spec/models/link_response_spec.rb
2454
- - spec/models/link_state_changed_webhook_spec.rb
2455
- - spec/models/investments_link_product_spec.rb
2456
- - spec/models/get_investment_transactions_response_spec.rb
2457
2451
  - spec/models/link_product_failure_reasons_spec.rb
2458
- - spec/models/account_numbers_spec.rb
2459
- - spec/models/account_numbers_link_product_spec.rb
2460
- - spec/models/link_error_unauthorized_access_response_spec.rb
2461
- - spec/models/create_link_session_request_spec.rb
2462
- - spec/models/get_account_numbers_response_spec.rb
2463
- - spec/models/validation_error_spec.rb
2464
- - spec/models/http_validation_error_spec.rb
2465
- - spec/models/security_response_spec.rb
2466
- - spec/models/get_holdings_response_spec.rb
2452
+ - spec/models/link_error_bad_state_response_spec.rb
2453
+ - spec/models/response401_reset_login_links_id_reset_post_spec.rb
2454
+ - spec/models/link_common_spec.rb
2455
+ - spec/models/accounts_link_product_spec.rb
2456
+ - spec/models/address_spec.rb
2457
+ - spec/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post_spec.rb
2458
+ - spec/models/link_error_forbidden_action_response_spec.rb
2467
2459
  - spec/spec_helper.rb
@@ -1,104 +0,0 @@
1
- =begin
2
- #MoneyKit API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module MoneyKit
17
- module Response401GetTransactionsLinksIdTransactionsGet
18
- class << self
19
- # List of class defined in anyOf (OpenAPI v3)
20
- def openapi_any_of
21
- [
22
- :'APIErrorAuthExpiredAccessTokenResponse',
23
- :'APIErrorAuthUnauthorizedResponse',
24
- :'LinkErrorUnauthorizedAccessResponse'
25
- ]
26
- end
27
-
28
- # Builds the object
29
- # @param [Mixed] Data to be matched against the list of anyOf items
30
- # @return [Object] Returns the model or the data itself
31
- def build(data)
32
- # Go through the list of anyOf items and attempt to identify the appropriate one.
33
- # Note:
34
- # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
35
- # due to the way the deserialization is made in the base_object template (it just casts without verifying).
36
- # - TODO: scalar values are de facto behaving as if they were nullable.
37
- # - TODO: logging when debugging is set.
38
- openapi_any_of.each do |klass|
39
- begin
40
- next if klass == :AnyType # "nullable: true"
41
- typed_data = find_and_cast_into_type(klass, data)
42
- return typed_data if typed_data
43
- rescue # rescue all errors so we keep iterating even if the current item lookup raises
44
- end
45
- end
46
-
47
- openapi_any_of.include?(:AnyType) ? data : nil
48
- end
49
-
50
- private
51
-
52
- SchemaMismatchError = Class.new(StandardError)
53
-
54
- # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
55
- def find_and_cast_into_type(klass, data)
56
- return if data.nil?
57
-
58
- case klass.to_s
59
- when 'Boolean'
60
- return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
61
- when 'Float'
62
- return data if data.instance_of?(Float)
63
- when 'Integer'
64
- return data if data.instance_of?(Integer)
65
- when 'Time'
66
- return Time.parse(data)
67
- when 'Date'
68
- return Date.parse(data)
69
- when 'String'
70
- return data if data.instance_of?(String)
71
- when 'Object' # "type: object"
72
- return data if data.instance_of?(Hash)
73
- when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
74
- if data.instance_of?(Array)
75
- sub_type = Regexp.last_match[:sub_type]
76
- return data.map { |item| find_and_cast_into_type(sub_type, item) }
77
- end
78
- when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
79
- if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
80
- sub_type = Regexp.last_match[:sub_type]
81
- return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
82
- end
83
- else # model
84
- const = MoneyKit.const_get(klass)
85
- if const
86
- if const.respond_to?(:openapi_any_of) # nested anyOf model
87
- model = const.build(data)
88
- return model if model
89
- else
90
- # raise if data contains keys that are not known to the model
91
- raise unless (data.keys - const.acceptable_attributes).empty?
92
- model = const.build_from_hash(data)
93
- return model if model
94
- end
95
- end
96
- end
97
-
98
- raise # if no match by now, raise
99
- rescue
100
- raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
101
- end
102
- end
103
- end
104
- end
@@ -1,103 +0,0 @@
1
- =begin
2
- #MoneyKit API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module MoneyKit
17
- module Response401GetUserTransactionsUsersIdTransactionsGet
18
- class << self
19
- # List of class defined in anyOf (OpenAPI v3)
20
- def openapi_any_of
21
- [
22
- :'APIErrorAuthExpiredAccessTokenResponse',
23
- :'APIErrorAuthUnauthorizedResponse'
24
- ]
25
- end
26
-
27
- # Builds the object
28
- # @param [Mixed] Data to be matched against the list of anyOf items
29
- # @return [Object] Returns the model or the data itself
30
- def build(data)
31
- # Go through the list of anyOf items and attempt to identify the appropriate one.
32
- # Note:
33
- # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
- # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
- # - TODO: scalar values are de facto behaving as if they were nullable.
36
- # - TODO: logging when debugging is set.
37
- openapi_any_of.each do |klass|
38
- begin
39
- next if klass == :AnyType # "nullable: true"
40
- typed_data = find_and_cast_into_type(klass, data)
41
- return typed_data if typed_data
42
- rescue # rescue all errors so we keep iterating even if the current item lookup raises
43
- end
44
- end
45
-
46
- openapi_any_of.include?(:AnyType) ? data : nil
47
- end
48
-
49
- private
50
-
51
- SchemaMismatchError = Class.new(StandardError)
52
-
53
- # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
54
- def find_and_cast_into_type(klass, data)
55
- return if data.nil?
56
-
57
- case klass.to_s
58
- when 'Boolean'
59
- return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
60
- when 'Float'
61
- return data if data.instance_of?(Float)
62
- when 'Integer'
63
- return data if data.instance_of?(Integer)
64
- when 'Time'
65
- return Time.parse(data)
66
- when 'Date'
67
- return Date.parse(data)
68
- when 'String'
69
- return data if data.instance_of?(String)
70
- when 'Object' # "type: object"
71
- return data if data.instance_of?(Hash)
72
- when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
73
- if data.instance_of?(Array)
74
- sub_type = Regexp.last_match[:sub_type]
75
- return data.map { |item| find_and_cast_into_type(sub_type, item) }
76
- end
77
- when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
78
- if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
79
- sub_type = Regexp.last_match[:sub_type]
80
- return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
81
- end
82
- else # model
83
- const = MoneyKit.const_get(klass)
84
- if const
85
- if const.respond_to?(:openapi_any_of) # nested anyOf model
86
- model = const.build(data)
87
- return model if model
88
- else
89
- # raise if data contains keys that are not known to the model
90
- raise unless (data.keys - const.acceptable_attributes).empty?
91
- model = const.build_from_hash(data)
92
- return model if model
93
- end
94
- end
95
- end
96
-
97
- raise # if no match by now, raise
98
- rescue
99
- raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
100
- end
101
- end
102
- end
103
- end
@@ -1,30 +0,0 @@
1
- =begin
2
- #MoneyKit API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MoneyKit::PublicLinkError
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MoneyKit::PublicLinkError do
21
- let(:instance) { MoneyKit::PublicLinkError.new }
22
-
23
- describe 'test an instance of PublicLinkError' do
24
- it 'should create an instance of PublicLinkError' do
25
- # uncomment below to test the instance creation
26
- # expect(instance).to be_instance_of(MoneyKit::PublicLinkError)
27
- end
28
- end
29
-
30
- end
@@ -1,21 +0,0 @@
1
- =begin
2
- #MoneyKit API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MoneyKit::Response401GetTransactionsLinksIdTransactionsGet
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MoneyKit::Response401GetTransactionsLinksIdTransactionsGet do
21
- end
@@ -1,21 +0,0 @@
1
- =begin
2
- #MoneyKit API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MoneyKit::Response401GetUserTransactionsUsersIdTransactionsGet
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MoneyKit::Response401GetUserTransactionsUsersIdTransactionsGet do
21
- end