moneykit 0.1.12 → 0.1.14

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 (81) 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/api_client.rb +1 -1
  33. data/lib/moneykit/models/account.rb +1 -1
  34. data/lib/moneykit/models/account_identity.rb +21 -1
  35. data/lib/moneykit/models/account_numbers.rb +1 -1
  36. data/lib/moneykit/models/account_numbers_link_product.rb +1 -1
  37. data/lib/moneykit/models/account_numbers_product_settings.rb +1 -1
  38. data/lib/moneykit/models/account_response.rb +24 -4
  39. data/lib/moneykit/models/account_with_account_numbers.rb +1 -1
  40. data/lib/moneykit/models/account_with_account_numbers_legacy20230218.rb +21 -1
  41. data/lib/moneykit/models/accounts_link_product.rb +1 -1
  42. data/lib/moneykit/models/address.rb +1 -1
  43. data/lib/moneykit/models/customer_app.rb +1 -1
  44. data/lib/moneykit/models/email.rb +1 -1
  45. data/lib/moneykit/models/exchange_token_response.rb +1 -1
  46. data/lib/moneykit/models/generate_access_token_response.rb +1 -1
  47. data/lib/moneykit/models/get_account_numbers_response.rb +1 -1
  48. data/lib/moneykit/models/identity_link_product.rb +1 -1
  49. data/lib/moneykit/models/identity_product_settings.rb +1 -1
  50. data/lib/moneykit/models/import_link_request.rb +1 -1
  51. data/lib/moneykit/models/introspect_client_response.rb +1 -1
  52. data/lib/moneykit/models/investments_link_product.rb +1 -1
  53. data/lib/moneykit/models/investments_product_settings.rb +1 -1
  54. data/lib/moneykit/models/link_common.rb +27 -1
  55. data/lib/moneykit/models/link_product.rb +1 -1
  56. data/lib/moneykit/models/link_product_error.rb +2 -1
  57. data/lib/moneykit/models/link_response.rb +1 -1
  58. data/lib/moneykit/models/link_session_customer_user.rb +1 -1
  59. data/lib/moneykit/models/link_session_customer_user_email.rb +1 -1
  60. data/lib/moneykit/models/link_session_customer_user_phone.rb +1 -1
  61. data/lib/moneykit/models/link_state_changed_webhook.rb +1 -1
  62. data/lib/moneykit/models/money_kit_connect_features.rb +16 -4
  63. data/lib/moneykit/models/phone_number.rb +2 -2
  64. data/lib/moneykit/models/public_link_error.rb +6 -1
  65. data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +1 -1
  66. data/lib/moneykit/models/response401_get_account_numbers_legacy20230218_links_id_accounts_numbers_get.rb +1 -1
  67. data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +1 -1
  68. data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +1 -1
  69. data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +1 -1
  70. data/lib/moneykit/models/transaction.rb +1 -1
  71. data/lib/moneykit/models/transaction_diff.rb +1 -1
  72. data/lib/moneykit/models/transaction_sync_response.rb +19 -1
  73. data/lib/moneykit/models/update_link_request.rb +12 -1
  74. data/lib/moneykit/version.rb +1 -1
  75. data/lib/moneykit.rb +0 -1
  76. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  77. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  78. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
  79. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  80. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  81. metadata +144 -144
@@ -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 :owners
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
  :'owners' => :'owners'
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
  :'owners' => :'Array<Owner>'
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?(:'owners')
122
140
  if (value = attributes[:'owners']).is_a?(Array)
123
141
  self.owners = value
@@ -177,7 +195,9 @@ module MoneyKit
177
195
  name == o.name &&
178
196
  account_mask == o.account_mask &&
179
197
  balances == o.balances &&
198
+ raw_provider_data == o.raw_provider_data &&
180
199
  original_id == o.original_id &&
200
+ closed == o.closed &&
181
201
  owners == o.owners
182
202
  end
183
203
 
@@ -190,7 +210,7 @@ module MoneyKit
190
210
  # Calculates hash code according to all attributes.
191
211
  # @return [Integer] Hash code
192
212
  def hash
193
- [account_id, account_type, name, account_mask, balances, original_id, owners].hash
213
+ [account_id, account_type, name, account_mask, balances, raw_provider_data, original_id, closed, owners].hash
194
214
  end
195
215
 
196
216
  # Builds the object from hash
@@ -192,7 +192,7 @@ module MoneyKit
192
192
  when :Time
193
193
  Time.parse(value)
194
194
  when :Date
195
- Date.parse(value)
195
+ ::Date.parse(value)
196
196
  when :String
197
197
  value.to_s
198
198
  when :Integer
@@ -197,7 +197,7 @@ module MoneyKit
197
197
  when :Time
198
198
  Time.parse(value)
199
199
  when :Date
200
- Date.parse(value)
200
+ ::Date.parse(value)
201
201
  when :String
202
202
  value.to_s
203
203
  when :Integer
@@ -144,7 +144,7 @@ module MoneyKit
144
144
  when :Time
145
145
  Time.parse(value)
146
146
  when :Date
147
- Date.parse(value)
147
+ ::Date.parse(value)
148
148
  when :String
149
149
  value.to_s
150
150
  when :Integer
@@ -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
@@ -213,7 +213,7 @@ module MoneyKit
213
213
  when :Time
214
214
  Time.parse(value)
215
215
  when :Date
216
- Date.parse(value)
216
+ ::Date.parse(value)
217
217
  when :String
218
218
  value.to_s
219
219
  when :Integer
@@ -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
@@ -181,7 +181,7 @@ module MoneyKit
181
181
  when :Time
182
182
  Time.parse(value)
183
183
  when :Date
184
- Date.parse(value)
184
+ ::Date.parse(value)
185
185
  when :String
186
186
  value.to_s
187
187
  when :Integer
@@ -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.
@@ -155,7 +155,7 @@ module MoneyKit
155
155
  when :Time
156
156
  Time.parse(value)
157
157
  when :Date
158
- Date.parse(value)
158
+ ::Date.parse(value)
159
159
  when :String
160
160
  value.to_s
161
161
  when :Integer
@@ -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
@@ -172,7 +172,7 @@ module MoneyKit
172
172
  when :Time
173
173
  Time.parse(value)
174
174
  when :Date
175
- Date.parse(value)
175
+ ::Date.parse(value)
176
176
  when :String
177
177
  value.to_s
178
178
  when :Integer
@@ -154,7 +154,7 @@ module MoneyKit
154
154
  when :Time
155
155
  Time.parse(value)
156
156
  when :Date
157
- Date.parse(value)
157
+ ::Date.parse(value)
158
158
  when :String
159
159
  value.to_s
160
160
  when :Integer
@@ -197,7 +197,7 @@ module MoneyKit
197
197
  when :Time
198
198
  Time.parse(value)
199
199
  when :Date
200
- Date.parse(value)
200
+ ::Date.parse(value)
201
201
  when :String
202
202
  value.to_s
203
203
  when :Integer
@@ -144,7 +144,7 @@ module MoneyKit
144
144
  when :Time
145
145
  Time.parse(value)
146
146
  when :Date
147
- Date.parse(value)
147
+ ::Date.parse(value)
148
148
  when :String
149
149
  value.to_s
150
150
  when :Integer
@@ -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
@@ -198,7 +198,7 @@ module MoneyKit
198
198
  when :Time
199
199
  Time.parse(value)
200
200
  when :Date
201
- Date.parse(value)
201
+ ::Date.parse(value)
202
202
  when :String
203
203
  value.to_s
204
204
  when :Integer
@@ -197,7 +197,7 @@ module MoneyKit
197
197
  when :Time
198
198
  Time.parse(value)
199
199
  when :Date
200
- Date.parse(value)
200
+ ::Date.parse(value)
201
201
  when :String
202
202
  value.to_s
203
203
  when :Integer
@@ -144,7 +144,7 @@ module MoneyKit
144
144
  when :Time
145
145
  Time.parse(value)
146
146
  when :Date
147
- Date.parse(value)
147
+ ::Date.parse(value)
148
148
  when :String
149
149
  value.to_s
150
150
  when :Integer
@@ -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
@@ -200,7 +200,7 @@ module MoneyKit
200
200
  when :Time
201
201
  Time.parse(value)
202
202
  when :Date
203
- Date.parse(value)
203
+ ::Date.parse(value)
204
204
  when :String
205
205
  value.to_s
206
206
  when :Integer
@@ -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
@@ -194,7 +194,7 @@ module MoneyKit
194
194
  when :Time
195
195
  Time.parse(value)
196
196
  when :Date
197
- Date.parse(value)
197
+ ::Date.parse(value)
198
198
  when :String
199
199
  value.to_s
200
200
  when :Integer
@@ -186,7 +186,7 @@ module MoneyKit
186
186
  when :Time
187
187
  Time.parse(value)
188
188
  when :Date
189
- Date.parse(value)
189
+ ::Date.parse(value)
190
190
  when :String
191
191
  value.to_s
192
192
  when :Integer
@@ -217,7 +217,7 @@ module MoneyKit
217
217
  when :Time
218
218
  Time.parse(value)
219
219
  when :Date
220
- Date.parse(value)
220
+ ::Date.parse(value)
221
221
  when :String
222
222
  value.to_s
223
223
  when :Integer
@@ -311,7 +311,7 @@ module MoneyKit
311
311
  when :Time
312
312
  Time.parse(value)
313
313
  when :Date
314
- Date.parse(value)
314
+ ::Date.parse(value)
315
315
  when :String
316
316
  value.to_s
317
317
  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
@@ -65,7 +65,7 @@ module MoneyKit
65
65
  when 'Time'
66
66
  return Time.parse(data)
67
67
  when 'Date'
68
- return Date.parse(data)
68
+ return ::Date.parse(data)
69
69
  when 'String'
70
70
  return data if data.instance_of?(String)
71
71
  when 'Object' # "type: object"