moneykit 0.1.13 → 0.1.15

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -1
  4. data/docs/AccessTokenApi.md +14 -17
  5. data/docs/AccountIdentity.md +4 -0
  6. data/docs/AccountResponse.md +5 -1
  7. data/docs/AccountWithAccountNumbersLegacy20230218.md +4 -0
  8. data/docs/AccountsApi.md +2 -2
  9. data/docs/Address.md +1 -1
  10. data/docs/CreateAccessTokenResponse.md +1 -1
  11. data/docs/CustomerUserPhone.md +1 -1
  12. data/docs/Email.md +1 -1
  13. data/docs/ExchangeTokenResponse.md +1 -1
  14. data/docs/IdentityApi.md +1 -1
  15. data/docs/ImportLinkRequest.md +2 -2
  16. data/docs/InvestmentsApi.md +4 -4
  17. data/docs/LinkCommon.md +4 -0
  18. data/docs/LinksApi.md +20 -20
  19. data/docs/MoneyKitConnectFeatures.md +3 -1
  20. data/docs/PhoneNumber.md +3 -3
  21. data/docs/TransactionSyncResponse.md +2 -0
  22. data/docs/TransactionsApi.md +11 -11
  23. data/docs/UpdateLinkRequest.md +2 -0
  24. data/docs/UsersApi.md +10 -10
  25. data/lib/moneykit/api/access_token_api.rb +12 -9
  26. data/lib/moneykit/api/accounts_api.rb +2 -2
  27. data/lib/moneykit/api/identity_api.rb +2 -2
  28. data/lib/moneykit/api/investments_api.rb +4 -4
  29. data/lib/moneykit/api/links_api.rb +16 -16
  30. data/lib/moneykit/api/transactions_api.rb +12 -12
  31. data/lib/moneykit/api/users_api.rb +10 -10
  32. data/lib/moneykit/models/account_identity.rb +21 -1
  33. data/lib/moneykit/models/account_response.rb +24 -4
  34. data/lib/moneykit/models/account_with_account_numbers_legacy20230218.rb +21 -1
  35. data/lib/moneykit/models/address.rb +1 -1
  36. data/lib/moneykit/models/email.rb +1 -1
  37. data/lib/moneykit/models/exchange_token_response.rb +1 -1
  38. data/lib/moneykit/models/import_link_request.rb +1 -1
  39. data/lib/moneykit/models/link_common.rb +27 -1
  40. data/lib/moneykit/models/link_product_error.rb +2 -1
  41. data/lib/moneykit/models/link_response.rb +1 -1
  42. data/lib/moneykit/models/money_kit_connect_features.rb +16 -4
  43. data/lib/moneykit/models/phone_number.rb +2 -2
  44. data/lib/moneykit/models/public_link_error.rb +6 -1
  45. data/lib/moneykit/models/transaction_sync_response.rb +19 -1
  46. data/lib/moneykit/models/update_link_request.rb +12 -1
  47. data/lib/moneykit/version.rb +1 -1
  48. data/lib/moneykit.rb +0 -1
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  50. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +7 -7
  51. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +6 -6
  52. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so +0 -0
  53. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
  54. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/mkmf.log +6 -6
  55. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/psych.so +0 -0
  56. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  57. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/racc/cparse.so +0 -0
  58. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  59. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/stringio.so +0 -0
  60. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  61. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  62. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
  63. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  64. data/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych/Makefile +3 -3
  65. data/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/lib/psych.so +0 -0
  66. data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse/Makefile +3 -3
  67. data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/lib/racc/cparse.so +0 -0
  68. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio/Makefile +3 -3
  69. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/lib/stringio.so +0 -0
  70. metadata +147 -147
@@ -29,9 +29,15 @@ module MoneyKit
29
29
 
30
30
  attr_accessor :balances
31
31
 
32
+ # Raw account data from the provider.
33
+ attr_accessor :raw_provider_data
34
+
32
35
  # The original ID of this account, if supplied (by you) during an import.
33
36
  attr_accessor :original_id
34
37
 
38
+ # True if this account is closed.
39
+ attr_accessor :closed
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
@@ -40,7 +46,9 @@ module MoneyKit
40
46
  :'name' => :'name',
41
47
  :'account_mask' => :'account_mask',
42
48
  :'balances' => :'balances',
43
- :'original_id' => :'original_id'
49
+ :'raw_provider_data' => :'raw_provider_data',
50
+ :'original_id' => :'original_id',
51
+ :'closed' => :'closed'
44
52
  }
45
53
  end
46
54
 
@@ -57,7 +65,9 @@ module MoneyKit
57
65
  :'name' => :'String',
58
66
  :'account_mask' => :'String',
59
67
  :'balances' => :'AccountBalances',
60
- :'original_id' => :'String'
68
+ :'raw_provider_data' => :'Object',
69
+ :'original_id' => :'String',
70
+ :'closed' => :'Boolean'
61
71
  }
62
72
  end
63
73
 
@@ -110,9 +120,17 @@ module MoneyKit
110
120
  self.balances = nil
111
121
  end
112
122
 
123
+ if attributes.key?(:'raw_provider_data')
124
+ self.raw_provider_data = attributes[:'raw_provider_data']
125
+ end
126
+
113
127
  if attributes.key?(:'original_id')
114
128
  self.original_id = attributes[:'original_id']
115
129
  end
130
+
131
+ if attributes.key?(:'closed')
132
+ self.closed = attributes[:'closed']
133
+ end
116
134
  end
117
135
 
118
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -160,7 +178,9 @@ module MoneyKit
160
178
  name == o.name &&
161
179
  account_mask == o.account_mask &&
162
180
  balances == o.balances &&
163
- original_id == o.original_id
181
+ raw_provider_data == o.raw_provider_data &&
182
+ original_id == o.original_id &&
183
+ closed == o.closed
164
184
  end
165
185
 
166
186
  # @see the `==` method
@@ -172,7 +192,7 @@ module MoneyKit
172
192
  # Calculates hash code according to all attributes.
173
193
  # @return [Integer] Hash code
174
194
  def hash
175
- [account_id, account_type, name, account_mask, balances, original_id].hash
195
+ [account_id, account_type, name, account_mask, balances, raw_provider_data, original_id, closed].hash
176
196
  end
177
197
 
178
198
  # Builds the object from hash
@@ -29,9 +29,15 @@ module MoneyKit
29
29
 
30
30
  attr_accessor :balances
31
31
 
32
+ # Raw account data from the provider.
33
+ attr_accessor :raw_provider_data
34
+
32
35
  # The original ID of this account, if supplied (by you) during an import.
33
36
  attr_accessor :original_id
34
37
 
38
+ # True if this account is closed.
39
+ attr_accessor :closed
40
+
35
41
  attr_accessor :numbers
36
42
 
37
43
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,7 +48,9 @@ module MoneyKit
42
48
  :'name' => :'name',
43
49
  :'account_mask' => :'account_mask',
44
50
  :'balances' => :'balances',
51
+ :'raw_provider_data' => :'raw_provider_data',
45
52
  :'original_id' => :'original_id',
53
+ :'closed' => :'closed',
46
54
  :'numbers' => :'numbers'
47
55
  }
48
56
  end
@@ -60,7 +68,9 @@ module MoneyKit
60
68
  :'name' => :'String',
61
69
  :'account_mask' => :'String',
62
70
  :'balances' => :'AccountBalances',
71
+ :'raw_provider_data' => :'Object',
63
72
  :'original_id' => :'String',
73
+ :'closed' => :'Boolean',
64
74
  :'numbers' => :'AccountNumbersLegacy20230218'
65
75
  }
66
76
  end
@@ -114,10 +124,18 @@ module MoneyKit
114
124
  self.balances = nil
115
125
  end
116
126
 
127
+ if attributes.key?(:'raw_provider_data')
128
+ self.raw_provider_data = attributes[:'raw_provider_data']
129
+ end
130
+
117
131
  if attributes.key?(:'original_id')
118
132
  self.original_id = attributes[:'original_id']
119
133
  end
120
134
 
135
+ if attributes.key?(:'closed')
136
+ self.closed = attributes[:'closed']
137
+ end
138
+
121
139
  if attributes.key?(:'numbers')
122
140
  self.numbers = attributes[:'numbers']
123
141
  else
@@ -175,7 +193,9 @@ module MoneyKit
175
193
  name == o.name &&
176
194
  account_mask == o.account_mask &&
177
195
  balances == o.balances &&
196
+ raw_provider_data == o.raw_provider_data &&
178
197
  original_id == o.original_id &&
198
+ closed == o.closed &&
179
199
  numbers == o.numbers
180
200
  end
181
201
 
@@ -188,7 +208,7 @@ module MoneyKit
188
208
  # Calculates hash code according to all attributes.
189
209
  # @return [Integer] Hash code
190
210
  def hash
191
- [account_id, account_type, name, account_mask, balances, original_id, numbers].hash
211
+ [account_id, account_type, name, account_mask, balances, raw_provider_data, original_id, closed, numbers].hash
192
212
  end
193
213
 
194
214
  # Builds the object from hash
@@ -30,7 +30,7 @@ module MoneyKit
30
30
  # The street of the address.
31
31
  attr_accessor :street
32
32
 
33
- # Indicates if this is the primary address for the account owner.
33
+ # Indicates if this is the primary address for the account owner, as reported by the institution.
34
34
  attr_accessor :primary
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -18,7 +18,7 @@ module MoneyKit
18
18
  # An email address for the account owner.
19
19
  attr_accessor :address
20
20
 
21
- # Indicates if this is the primary email address for the account owner.
21
+ # Indicates if this is the primary email address for the account owner, as reported by the institution.
22
22
  attr_accessor :primary
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module MoneyKit
17
17
  class ExchangeTokenResponse
18
- # The unique ID associated with this link.
18
+ # DEPRECATED: Please use `link.link_id` for this value
19
19
  attr_accessor :link_id
20
20
 
21
21
  attr_accessor :link
@@ -19,7 +19,7 @@ module MoneyKit
19
19
 
20
20
  attr_accessor :provider
21
21
 
22
- # MoneyKit's unique ID for this institution. If the imported link is synced with a data provider later, it will be connected to this institution.
22
+ # MoneyKit's unique ID for this institution. If you use a MoneyKit-supported provider, you can also submit the provider name and __their__ institution_id in dotted notation, such as `mx.chase` or `yodlee.30188`. If the imported link is synced with a data provider later, it will be connected to this institution. Note that MoneyKit may reconnect the link using any supported provider, not just the one given during this import.
23
23
  attr_accessor :institution_id
24
24
 
25
25
  attr_accessor :accounts
@@ -34,8 +34,13 @@ module MoneyKit
34
34
  # (Deprecated) An ISO-8601 timestamp indicating the last time that the link was updated.
35
35
  attr_accessor :last_synced_at
36
36
 
37
+ attr_accessor :provider
38
+
37
39
  attr_accessor :tags
38
40
 
41
+ # The webhook url assigned to this link.
42
+ attr_accessor :webhook
43
+
39
44
  attr_accessor :products
40
45
 
41
46
  attr_accessor :available_products
@@ -72,7 +77,9 @@ module MoneyKit
72
77
  :'state' => :'state',
73
78
  :'error_code' => :'error_code',
74
79
  :'last_synced_at' => :'last_synced_at',
80
+ :'provider' => :'provider',
75
81
  :'tags' => :'tags',
82
+ :'webhook' => :'webhook',
76
83
  :'products' => :'products',
77
84
  :'available_products' => :'available_products'
78
85
  }
@@ -93,7 +100,9 @@ module MoneyKit
93
100
  :'state' => :'PublicLinkState',
94
101
  :'error_code' => :'PublicLinkError',
95
102
  :'last_synced_at' => :'Time',
103
+ :'provider' => :'Provider',
96
104
  :'tags' => :'Array<String>',
105
+ :'webhook' => :'String',
97
106
  :'products' => :'LinkProducts',
98
107
  :'available_products' => :'Array<Product>'
99
108
  }
@@ -158,12 +167,22 @@ module MoneyKit
158
167
  self.last_synced_at = attributes[:'last_synced_at']
159
168
  end
160
169
 
170
+ if attributes.key?(:'provider')
171
+ self.provider = attributes[:'provider']
172
+ else
173
+ self.provider = nil
174
+ end
175
+
161
176
  if attributes.key?(:'tags')
162
177
  if (value = attributes[:'tags']).is_a?(Array)
163
178
  self.tags = value
164
179
  end
165
180
  end
166
181
 
182
+ if attributes.key?(:'webhook')
183
+ self.webhook = attributes[:'webhook']
184
+ end
185
+
167
186
  if attributes.key?(:'products')
168
187
  self.products = attributes[:'products']
169
188
  else
@@ -204,6 +223,10 @@ module MoneyKit
204
223
  invalid_properties.push('invalid value for "state", state cannot be nil.')
205
224
  end
206
225
 
226
+ if @provider.nil?
227
+ invalid_properties.push('invalid value for "provider", provider cannot be nil.')
228
+ end
229
+
207
230
  if @products.nil?
208
231
  invalid_properties.push('invalid value for "products", products cannot be nil.')
209
232
  end
@@ -224,6 +247,7 @@ module MoneyKit
224
247
  return false if @institution_name.nil?
225
248
  return false if @institution_avatar.nil?
226
249
  return false if @state.nil?
250
+ return false if @provider.nil?
227
251
  return false if @products.nil?
228
252
  return false if @available_products.nil?
229
253
  true
@@ -241,7 +265,9 @@ module MoneyKit
241
265
  state == o.state &&
242
266
  error_code == o.error_code &&
243
267
  last_synced_at == o.last_synced_at &&
268
+ provider == o.provider &&
244
269
  tags == o.tags &&
270
+ webhook == o.webhook &&
245
271
  products == o.products &&
246
272
  available_products == o.available_products
247
273
  end
@@ -255,7 +281,7 @@ module MoneyKit
255
281
  # Calculates hash code according to all attributes.
256
282
  # @return [Integer] Hash code
257
283
  def hash
258
- [link_id, institution_id, institution_name, institution_avatar, state, error_code, last_synced_at, tags, products, available_products].hash
284
+ [link_id, institution_id, institution_name, institution_avatar, state, error_code, last_synced_at, provider, tags, webhook, products, available_products].hash
259
285
  end
260
286
 
261
287
  # Builds the object from hash
@@ -23,9 +23,10 @@ module MoneyKit
23
23
  UNKNOWN = "unknown".freeze
24
24
  NO_ACCOUNTS = "no_accounts".freeze
25
25
  INSTITUTION_ERROR = "institution_error".freeze
26
+ NO_PERMISSION = "no_permission".freeze
26
27
 
27
28
  def self.all_vars
28
- @all_vars ||= [RATE_LIMIT, AUTH_EXPIRED, INVALID_CREDENTIALS, NOT_SUPPORTED, TIMEOUT, UNKNOWN, NO_ACCOUNTS, INSTITUTION_ERROR].freeze
29
+ @all_vars ||= [RATE_LIMIT, AUTH_EXPIRED, INVALID_CREDENTIALS, NOT_SUPPORTED, TIMEOUT, UNKNOWN, NO_ACCOUNTS, INSTITUTION_ERROR, NO_PERMISSION].freeze
29
30
  end
30
31
 
31
32
  # Builds the enum from string
@@ -316,7 +316,7 @@ module MoneyKit
316
316
  when :Time
317
317
  Time.parse(value)
318
318
  when :Date
319
- ::Date.parse(value)
319
+ ::::Date.parse(value)
320
320
  when :String
321
321
  value.to_s
322
322
  when :Integer
@@ -24,12 +24,16 @@ module MoneyKit
24
24
  # If enabled, the user will see a warning when trying to connect the same institution more than once.
25
25
  attr_accessor :duplicate_institution_warning
26
26
 
27
+ # If enabled, the user can click a button in the MoneyKit Connect SDK to connect manually if the institution they are looking for doesn't exist in our catalog.
28
+ attr_accessor :connect_manually
29
+
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
30
33
  :'issue_reporter' => :'issue_reporter',
31
34
  :'enable_money_id' => :'enable_money_id',
32
- :'duplicate_institution_warning' => :'duplicate_institution_warning'
35
+ :'duplicate_institution_warning' => :'duplicate_institution_warning',
36
+ :'connect_manually' => :'connect_manually'
33
37
  }
34
38
  end
35
39
 
@@ -43,7 +47,8 @@ module MoneyKit
43
47
  {
44
48
  :'issue_reporter' => :'Boolean',
45
49
  :'enable_money_id' => :'Boolean',
46
- :'duplicate_institution_warning' => :'Boolean'
50
+ :'duplicate_institution_warning' => :'Boolean',
51
+ :'connect_manually' => :'Boolean'
47
52
  }
48
53
  end
49
54
 
@@ -85,6 +90,12 @@ module MoneyKit
85
90
  else
86
91
  self.duplicate_institution_warning = false
87
92
  end
93
+
94
+ if attributes.key?(:'connect_manually')
95
+ self.connect_manually = attributes[:'connect_manually']
96
+ else
97
+ self.connect_manually = false
98
+ end
88
99
  end
89
100
 
90
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,7 +120,8 @@ module MoneyKit
109
120
  self.class == o.class &&
110
121
  issue_reporter == o.issue_reporter &&
111
122
  enable_money_id == o.enable_money_id &&
112
- duplicate_institution_warning == o.duplicate_institution_warning
123
+ duplicate_institution_warning == o.duplicate_institution_warning &&
124
+ connect_manually == o.connect_manually
113
125
  end
114
126
 
115
127
  # @see the `==` method
@@ -121,7 +133,7 @@ module MoneyKit
121
133
  # Calculates hash code according to all attributes.
122
134
  # @return [Integer] Hash code
123
135
  def hash
124
- [issue_reporter, enable_money_id, duplicate_institution_warning].hash
136
+ [issue_reporter, enable_money_id, duplicate_institution_warning, connect_manually].hash
125
137
  end
126
138
 
127
139
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'time'
15
15
 
16
16
  module MoneyKit
17
17
  class PhoneNumber
18
- # A phone number for the account owner.
18
+ # A phone number for the account owner. Phone numbers may have a variety of formats; they may or may not have country-code prefixes; and they may contain extensions.
19
19
  attr_accessor :number
20
20
 
21
- # Indicates if this is the primary phone number for the account owner.
21
+ # Indicates if this is the primary phone number for the account owner, as reported by the institution.
22
22
  attr_accessor :primary
23
23
 
24
24
  attr_accessor :type
@@ -21,9 +21,14 @@ module MoneyKit
21
21
  USER_ERROR = "user_error".freeze
22
22
  AUTH_EXPIRED = "auth_expired".freeze
23
23
  INCOMPLETE = "incomplete".freeze
24
+ NO_ACCOUNTS = "no_accounts".freeze
25
+ USER_SETUP_REQUIRED = "user_setup_required".freeze
26
+ INVALID_CREDENTIALS = "invalid_credentials".freeze
27
+ USER_OAUTH_DENIED = "user_oauth_denied".freeze
28
+ USER_INPUT_INCORRECT = "user_input_incorrect".freeze
24
29
 
25
30
  def self.all_vars
26
- @all_vars ||= [SYSTEM_ERROR, PROVIDER_ERROR, INSTITUTION_ERROR, USER_ERROR, AUTH_EXPIRED, INCOMPLETE].freeze
31
+ @all_vars ||= [SYSTEM_ERROR, PROVIDER_ERROR, INSTITUTION_ERROR, USER_ERROR, AUTH_EXPIRED, INCOMPLETE, NO_ACCOUNTS, USER_SETUP_REQUIRED, INVALID_CREDENTIALS, USER_OAUTH_DENIED, USER_INPUT_INCORRECT].freeze
27
32
  end
28
33
 
29
34
  # Builds the enum from string
@@ -17,6 +17,8 @@ module MoneyKit
17
17
  class TransactionSyncResponse
18
18
  attr_accessor :transactions
19
19
 
20
+ attr_accessor :accounts
21
+
20
22
  attr_accessor :cursor
21
23
 
22
24
  # This condition indicates the presence of transaction updates exceeding the requested count. If true, additional updates MUST be retrieved by making an additional request with cursor set to `cursor.next`.
@@ -28,6 +30,7 @@ module MoneyKit
28
30
  def self.attribute_map
29
31
  {
30
32
  :'transactions' => :'transactions',
33
+ :'accounts' => :'accounts',
31
34
  :'cursor' => :'cursor',
32
35
  :'has_more' => :'has_more',
33
36
  :'link' => :'link'
@@ -43,6 +46,7 @@ module MoneyKit
43
46
  def self.openapi_types
44
47
  {
45
48
  :'transactions' => :'TransactionSync',
49
+ :'accounts' => :'Array<AccountResponse>',
46
50
  :'cursor' => :'CursorPagination',
47
51
  :'has_more' => :'Boolean',
48
52
  :'link' => :'LinkCommon'
@@ -76,6 +80,14 @@ module MoneyKit
76
80
  self.transactions = nil
77
81
  end
78
82
 
83
+ if attributes.key?(:'accounts')
84
+ if (value = attributes[:'accounts']).is_a?(Array)
85
+ self.accounts = value
86
+ end
87
+ else
88
+ self.accounts = nil
89
+ end
90
+
79
91
  if attributes.key?(:'cursor')
80
92
  self.cursor = attributes[:'cursor']
81
93
  else
@@ -104,6 +116,10 @@ module MoneyKit
104
116
  invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
105
117
  end
106
118
 
119
+ if @accounts.nil?
120
+ invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
121
+ end
122
+
107
123
  if @cursor.nil?
108
124
  invalid_properties.push('invalid value for "cursor", cursor cannot be nil.')
109
125
  end
@@ -124,6 +140,7 @@ module MoneyKit
124
140
  def valid?
125
141
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
142
  return false if @transactions.nil?
143
+ return false if @accounts.nil?
127
144
  return false if @cursor.nil?
128
145
  return false if @has_more.nil?
129
146
  return false if @link.nil?
@@ -136,6 +153,7 @@ module MoneyKit
136
153
  return true if self.equal?(o)
137
154
  self.class == o.class &&
138
155
  transactions == o.transactions &&
156
+ accounts == o.accounts &&
139
157
  cursor == o.cursor &&
140
158
  has_more == o.has_more &&
141
159
  link == o.link
@@ -150,7 +168,7 @@ module MoneyKit
150
168
  # Calculates hash code according to all attributes.
151
169
  # @return [Integer] Hash code
152
170
  def hash
153
- [transactions, cursor, has_more, link].hash
171
+ [transactions, accounts, cursor, has_more, link].hash
154
172
  end
155
173
 
156
174
  # Builds the object from hash
@@ -18,12 +18,15 @@ module MoneyKit
18
18
  # Sets the webhook URL for this link. To remove a webhook for this link, set to `null`.
19
19
  attr_accessor :webhook
20
20
 
21
+ attr_accessor :link_tags
22
+
21
23
  attr_accessor :tags
22
24
 
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'webhook' => :'webhook',
29
+ :'link_tags' => :'link_tags',
27
30
  :'tags' => :'tags'
28
31
  }
29
32
  end
@@ -37,6 +40,7 @@ module MoneyKit
37
40
  def self.openapi_types
38
41
  {
39
42
  :'webhook' => :'String',
43
+ :'link_tags' => :'Array<String>',
40
44
  :'tags' => :'Array<String>'
41
45
  }
42
46
  end
@@ -66,6 +70,12 @@ module MoneyKit
66
70
  self.webhook = attributes[:'webhook']
67
71
  end
68
72
 
73
+ if attributes.key?(:'link_tags')
74
+ if (value = attributes[:'link_tags']).is_a?(Array)
75
+ self.link_tags = value
76
+ end
77
+ end
78
+
69
79
  if attributes.key?(:'tags')
70
80
  if (value = attributes[:'tags']).is_a?(Array)
71
81
  self.tags = value
@@ -122,6 +132,7 @@ module MoneyKit
122
132
  return true if self.equal?(o)
123
133
  self.class == o.class &&
124
134
  webhook == o.webhook &&
135
+ link_tags == o.link_tags &&
125
136
  tags == o.tags
126
137
  end
127
138
 
@@ -134,7 +145,7 @@ module MoneyKit
134
145
  # Calculates hash code according to all attributes.
135
146
  # @return [Integer] Hash code
136
147
  def hash
137
- [webhook, tags].hash
148
+ [webhook, link_tags, tags].hash
138
149
  end
139
150
 
140
151
  # 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.13'
14
+ VERSION = '0.1.15'
15
15
  end
data/lib/moneykit.rb CHANGED
@@ -80,7 +80,6 @@ require 'moneykit/models/link_product_refresh_webhook'
80
80
  require 'moneykit/models/link_product_response'
81
81
  require 'moneykit/models/link_product_state'
82
82
  require 'moneykit/models/link_products'
83
- require 'moneykit/models/link_response'
84
83
  require 'moneykit/models/link_session_error_forbidden_config_response'
85
84
  require 'moneykit/models/link_session_error_invalid_token_exchange'
86
85
  require 'moneykit/models/link_session_setting_overrides'
@@ -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.20240823-1839-1fc00k sitelibdir\=./.gem.20240823-1839-1fc00k clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-z2xbcv sitelibdir\=./.gem.20241009-1949-z2xbcv 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.20240823-1839-1fc00k sitelibdir\=./.gem.20240823-1839-1fc00k
9
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-z2xbcv sitelibdir\=./.gem.20241009-1949-z2xbcv
10
10
  compiling breakpoint.c
11
11
  compiling byebug.c
12
12
  byebug.c: In function ‘check_started’:
@@ -17,7 +17,7 @@ byebug.c: In function ‘Init_byebug’:
17
17
  byebug.c:865:1: warning: old-style function definition [-Wold-style-definition]
18
18
  865 | Init_byebug()
19
19
  | ^~~~~~~~~~~
20
- byebug.c: At top level:
20
+ At top level:
21
21
  cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
22
22
  cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
23
23
  cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
@@ -27,7 +27,7 @@ locker.c: In function ‘byebug_pop_from_locked’:
27
27
  locker.c:53:1: warning: old-style function definition [-Wold-style-definition]
28
28
  53 | byebug_pop_from_locked()
29
29
  | ^~~~~~~~~~~~~~~~~~~~~~
30
- locker.c: At top level:
30
+ At top level:
31
31
  cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
32
32
  cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
33
33
  cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
@@ -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.20240823-1839-1fc00k sitelibdir\=./.gem.20240823-1839-1fc00k install
39
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20240823-1839-1fc00k/byebug
38
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-z2xbcv sitelibdir\=./.gem.20241009-1949-z2xbcv install
39
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20241009-1949-z2xbcv/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.20240823-1839-1fc00k sitelibdir\=./.gem.20240823-1839-1fc00k clean
42
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-z2xbcv sitelibdir\=./.gem.20241009-1949-z2xbcv 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/jaro_winkler-1.5.6/ext/jaro_winkler
6
- make DESTDIR\= sitearchdir\=./.gem.20240823-1839-935ov1 sitelibdir\=./.gem.20240823-1839-935ov1 clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-lkxapv sitelibdir\=./.gem.20241009-1949-lkxapv 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.20240823-1839-935ov1 sitelibdir\=./.gem.20240823-1839-935ov1
9
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-lkxapv sitelibdir\=./.gem.20241009-1949-lkxapv
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]
13
13
  82 | AdjMatrix *adj_matrix_default() {
14
14
  | ^~~~~~~~~~~~~~~~~~
15
- adj_matrix.c: At top level:
15
+ At top level:
16
16
  cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
17
17
  cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
18
18
  cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
@@ -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.20240823-1839-935ov1 sitelibdir\=./.gem.20240823-1839-935ov1 install
26
- /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240823-1839-935ov1/jaro_winkler
25
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-lkxapv sitelibdir\=./.gem.20241009-1949-lkxapv install
26
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20241009-1949-lkxapv/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.20240823-1839-935ov1 sitelibdir\=./.gem.20240823-1839-935ov1 clean
29
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-lkxapv sitelibdir\=./.gem.20241009-1949-lkxapv 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.20240823-1839-vao4qn sitelibdir\=./.gem.20240823-1839-vao4qn clean
8
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-a6migy sitelibdir\=./.gem.20241009-1949-a6migy 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.20240823-1839-vao4qn sitelibdir\=./.gem.20240823-1839-vao4qn
14
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-a6migy sitelibdir\=./.gem.20241009-1949-a6migy
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.20240823-1839-vao4qn sitelibdir\=./.gem.20240823-1839-vao4qn install
24
- /usr/bin/install -c -m 0755 psych.so ./.gem.20240823-1839-vao4qn
23
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-a6migy sitelibdir\=./.gem.20241009-1949-a6migy install
24
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20241009-1949-a6migy
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.20240823-1839-vao4qn sitelibdir\=./.gem.20240823-1839-vao4qn clean
27
+ make DESTDIR\= sitearchdir\=./.gem.20241009-1949-a6migy sitelibdir\=./.gem.20241009-1949-a6migy 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)