moneykit 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/moneykit/api/access_token_api.rb +53 -55
- data/lib/moneykit/api/account_numbers_api.rb +26 -26
- data/lib/moneykit/api/accounts_api.rb +88 -82
- data/lib/moneykit/api/identity_api.rb +31 -30
- data/lib/moneykit/api/institutions_api.rb +50 -48
- data/lib/moneykit/api/link_session_api.rb +47 -50
- data/lib/moneykit/api/links_api.rb +137 -81
- data/lib/moneykit/api/products_api.rb +33 -35
- data/lib/moneykit/api/transactions_api.rb +126 -101
- data/lib/moneykit/api/users_api.rb +100 -83
- data/lib/moneykit/api/webhooks_api.rb +97 -0
- data/lib/moneykit/api_client.rb +100 -103
- data/lib/moneykit/api_error.rb +14 -16
- data/lib/moneykit/configuration.rb +52 -65
- data/lib/moneykit/models/account.rb +69 -112
- data/lib/moneykit/models/account_balances.rb +64 -78
- data/lib/moneykit/models/account_group.rb +58 -61
- data/lib/moneykit/models/account_identity.rb +79 -124
- data/lib/moneykit/models/account_numbers.rb +96 -71
- data/lib/moneykit/models/account_numbers_link_product.rb +57 -69
- data/lib/moneykit/models/account_numbers_product_settings.rb +59 -63
- data/lib/moneykit/models/account_type.rb +23 -23
- data/lib/moneykit/models/account_with_account_numbers.rb +76 -124
- data/lib/moneykit/models/accounts_link_product.rb +53 -61
- data/lib/moneykit/models/ach_number.rb +57 -65
- data/lib/moneykit/models/address.rb +70 -90
- data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +72 -78
- data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +69 -78
- data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +72 -78
- data/lib/moneykit/models/app.rb +46 -50
- data/lib/moneykit/models/bacs_number.rb +53 -61
- data/lib/moneykit/models/balances.rb +58 -64
- data/lib/moneykit/models/basic_account_details.rb +62 -77
- data/lib/moneykit/models/country.rb +13 -14
- data/lib/moneykit/models/create_link_session_request.rb +109 -119
- data/lib/moneykit/models/create_link_session_response.rb +48 -52
- data/lib/moneykit/models/currency.rb +193 -193
- data/lib/moneykit/models/cursor.rb +40 -39
- data/lib/moneykit/models/cursor_pagination.rb +49 -54
- data/lib/moneykit/models/cursors.rb +40 -39
- data/lib/moneykit/models/customer_app.rb +54 -64
- data/lib/moneykit/models/customer_user.rb +59 -69
- data/lib/moneykit/models/eft_number.rb +56 -67
- data/lib/moneykit/models/email.rb +56 -63
- data/lib/moneykit/models/email1.rb +50 -53
- data/lib/moneykit/models/exchange_token_request.rb +48 -52
- data/lib/moneykit/models/exchange_token_response.rb +54 -64
- data/lib/moneykit/models/generate_access_token_response.rb +59 -73
- data/lib/moneykit/models/get_account_numbers_response.rb +58 -66
- data/lib/moneykit/models/get_account_response.rb +55 -67
- data/lib/moneykit/models/get_accounts_response.rb +58 -67
- data/lib/moneykit/models/get_institutions_response.rb +58 -67
- data/lib/moneykit/models/get_transactions_response.rb +81 -105
- data/lib/moneykit/models/get_user_accounts_response.rb +50 -58
- data/lib/moneykit/models/get_user_links_response.rb +50 -58
- data/lib/moneykit/models/get_user_transactions_response.rb +75 -95
- data/lib/moneykit/models/http_validation_error.rb +77 -84
- data/lib/moneykit/models/identity.rb +49 -49
- data/lib/moneykit/models/identity_link_product.rb +57 -69
- data/lib/moneykit/models/identity_product_settings.rb +59 -63
- data/lib/moneykit/models/identity_response.rb +58 -67
- data/lib/moneykit/models/institution.rb +85 -113
- data/lib/moneykit/models/institution_error_not_found_response.rb +72 -80
- data/lib/moneykit/models/institution_styling_response.rb +77 -93
- data/lib/moneykit/models/international_number.rb +54 -64
- data/lib/moneykit/models/introspect_client_response.rb +70 -89
- data/lib/moneykit/models/jwk_set.rb +51 -55
- data/lib/moneykit/models/link.rb +78 -100
- data/lib/moneykit/models/link1.rb +78 -100
- data/lib/moneykit/models/link2.rb +78 -100
- data/lib/moneykit/models/link3.rb +78 -100
- data/lib/moneykit/models/link4.rb +78 -100
- data/lib/moneykit/models/link_common.rb +82 -117
- data/lib/moneykit/models/link_error.rb +19 -19
- data/lib/moneykit/models/link_error_bad_config_response.rb +269 -0
- data/lib/moneykit/models/link_error_bad_state_response.rb +71 -88
- data/lib/moneykit/models/link_error_deleted_response.rb +72 -80
- data/lib/moneykit/models/link_error_forbidden_action_response.rb +69 -78
- data/lib/moneykit/models/link_error_not_found_response.rb +72 -80
- data/lib/moneykit/models/link_error_unauthorized_access_response.rb +72 -80
- data/lib/moneykit/models/link_permission_scope.rb +14 -15
- data/lib/moneykit/models/link_permissions.rb +52 -62
- data/lib/moneykit/models/link_products.rb +62 -78
- data/lib/moneykit/models/link_response.rb +95 -136
- data/lib/moneykit/models/link_session_customer_user.rb +65 -83
- data/lib/moneykit/models/link_session_customer_user_email.rb +59 -68
- data/lib/moneykit/models/link_session_customer_user_phone.rb +67 -82
- data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +69 -78
- data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +69 -78
- data/lib/moneykit/models/link_session_setting_overrides.rb +64 -99
- data/lib/moneykit/models/link_state.rb +15 -16
- data/lib/moneykit/models/link_state_changed_webhook.rb +121 -148
- data/lib/moneykit/models/location_inner.rb +41 -46
- data/lib/moneykit/models/money_kit_env.rb +12 -13
- data/lib/moneykit/models/money_link_features.rb +62 -66
- data/lib/moneykit/models/moneylink_features.rb +50 -49
- data/lib/moneykit/models/numbers.rb +60 -73
- data/lib/moneykit/models/owner.rb +76 -89
- data/lib/moneykit/models/phone.rb +60 -68
- data/lib/moneykit/models/phone_number.rb +63 -74
- data/lib/moneykit/models/phone_number_type.rb +14 -15
- data/lib/moneykit/models/product.rb +14 -15
- data/lib/moneykit/models/products.rb +52 -64
- data/lib/moneykit/models/products1.rb +48 -56
- data/lib/moneykit/models/products_settings.rb +58 -70
- data/lib/moneykit/models/provider.rb +18 -17
- data/lib/moneykit/models/public_link_error.rb +43 -0
- data/lib/moneykit/models/refresh_products_request.rb +52 -65
- data/lib/moneykit/models/requested_link_permission.rb +60 -75
- data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +83 -283
- data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +82 -281
- data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +83 -283
- data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +83 -283
- data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +83 -283
- data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +83 -283
- data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +82 -281
- data/lib/moneykit/models/response401_get_institution_styling_institutions_institution_id_styling_get.rb +66 -72
- data/lib/moneykit/models/response401_get_institutions_institutions_get.rb +82 -281
- data/lib/moneykit/models/response401_get_link_links_id_get.rb +83 -283
- data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +83 -283
- data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +83 -283
- data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +82 -281
- data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +82 -281
- data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +82 -281
- data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +82 -281
- data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +82 -281
- data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +83 -283
- data/lib/moneykit/models/response401_reset_login_links_id_reset_post.rb +102 -0
- data/lib/moneykit/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post.rb +102 -0
- data/lib/moneykit/models/response401_update_link_links_id_patch.rb +83 -283
- data/lib/moneykit/models/settings.rb +61 -73
- data/lib/moneykit/models/supported_version.rb +11 -12
- data/lib/moneykit/models/transaction.rb +104 -131
- data/lib/moneykit/models/transaction_diff.rb +69 -78
- data/lib/moneykit/models/transaction_sync_response.rb +65 -87
- data/lib/moneykit/models/transaction_type.rb +12 -13
- data/lib/moneykit/models/transaction_type_filter.rb +12 -13
- data/lib/moneykit/models/transactions.rb +58 -57
- data/lib/moneykit/models/transactions1.rb +55 -63
- data/lib/moneykit/models/transactions_link_product.rb +57 -69
- data/lib/moneykit/models/transactions_product_settings.rb +67 -71
- data/lib/moneykit/models/update_link_request.rb +63 -69
- data/lib/moneykit/models/user_accounts_out.rb +40 -40
- data/lib/moneykit/models/user_links_out.rb +40 -40
- data/lib/moneykit/models/user_transactions_paged_response.rb +40 -40
- data/lib/moneykit/models/validation_error.rb +63 -77
- data/lib/moneykit/models/validation_error_location_inner.rb +101 -0
- data/lib/moneykit/models/webhook_link_test_event.rb +40 -0
- data/lib/moneykit/models/webhook_test_link_request.rb +252 -0
- data/lib/moneykit/models/webhook_test_link_response.rb +220 -0
- data/lib/moneykit/version.rb +10 -12
- data/lib/moneykit.rb +18 -39
- data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +738 -737
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +339 -340
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +47 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +258 -260
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +210 -212
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +221 -237
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +231 -252
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +100 -101
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +35 -36
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +205 -210
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +222 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +218 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +211 -222
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +32 -33
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +197 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +183 -181
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +209 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +205 -210
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +228 -232
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +216 -217
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +195 -196
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +251 -261
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +217 -229
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +201 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +194 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +195 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +272 -291
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +225 -225
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +215 -221
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +215 -224
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +218 -226
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +197 -198
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +206 -211
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +253 -266
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +43 -44
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +33 -34
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +187 -183
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +288 -315
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +225 -235
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +222 -224
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +225 -236
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +205 -205
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +188 -185
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +223 -229
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +197 -193
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +235 -252
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +198 -207
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +32 -33
- data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +14 -14
- data/lib/plaid_compatible/money_kit_plaid_compatible.rb +24 -24
- data/moneykit.gemspec +22 -25
- metadata +14 -5
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
2
|
+
#
|
3
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 0.1.0
|
6
|
+
#
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.1.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
@@ -18,14 +16,11 @@ module MoneyKit
|
|
18
16
|
# MoneyKit's unique ID for this institution.
|
19
17
|
attr_accessor :institution_id
|
20
18
|
|
21
|
-
|
22
|
-
attr_accessor :institution_id_aliases
|
19
|
+
attr_accessor :institution_id_aliases, :country
|
23
20
|
|
24
21
|
# The name of the institution.
|
25
22
|
attr_accessor :name
|
26
23
|
|
27
|
-
attr_accessor :country
|
28
|
-
|
29
24
|
# The domain of the institution's customer-facing website.
|
30
25
|
attr_accessor :domain
|
31
26
|
|
@@ -39,8 +34,7 @@ module MoneyKit
|
|
39
34
|
attr_accessor :is_featured
|
40
35
|
|
41
36
|
class EnumAttributeValidator
|
42
|
-
attr_reader :datatype
|
43
|
-
attr_reader :allowable_values
|
37
|
+
attr_reader :datatype, :allowable_values
|
44
38
|
|
45
39
|
def initialize(datatype, allowable_values)
|
46
40
|
@allowable_values = allowable_values.map do |value|
|
@@ -63,14 +57,14 @@ module MoneyKit
|
|
63
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
64
58
|
def self.attribute_map
|
65
59
|
{
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
60
|
+
'institution_id': :institution_id,
|
61
|
+
'institution_id_aliases': :institution_id_aliases,
|
62
|
+
'name': :name,
|
63
|
+
'country': :country,
|
64
|
+
'domain': :domain,
|
65
|
+
'color': :color,
|
66
|
+
'color_dark': :color_dark,
|
67
|
+
'is_featured': :is_featured
|
74
68
|
}
|
75
69
|
end
|
76
70
|
|
@@ -82,79 +76,68 @@ module MoneyKit
|
|
82
76
|
# Attribute type mapping.
|
83
77
|
def self.openapi_types
|
84
78
|
{
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
79
|
+
'institution_id': :String,
|
80
|
+
'institution_id_aliases': :'Array<String>',
|
81
|
+
'name': :String,
|
82
|
+
'country': :Country,
|
83
|
+
'domain': :String,
|
84
|
+
'color': :String,
|
85
|
+
'color_dark': :String,
|
86
|
+
'is_featured': :Boolean
|
93
87
|
}
|
94
88
|
end
|
95
89
|
|
96
90
|
# List of attributes with nullable: true
|
97
91
|
def self.openapi_nullable
|
98
|
-
Set.new([
|
99
|
-
:'domain',
|
100
|
-
:'color_dark',
|
101
|
-
])
|
92
|
+
Set.new([])
|
102
93
|
end
|
103
94
|
|
104
95
|
# Initializes the object
|
105
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
106
97
|
def initialize(attributes = {})
|
107
|
-
|
108
|
-
|
98
|
+
unless attributes.is_a?(Hash)
|
99
|
+
raise ArgumentError,
|
100
|
+
'The input argument (attributes) must be a hash in `MoneyKit::Institution` initialize method'
|
109
101
|
end
|
110
102
|
|
111
103
|
# check to see if the attribute exists and convert string to symbol for hash key
|
112
|
-
attributes = attributes.each_with_object({})
|
113
|
-
|
114
|
-
|
104
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
105
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
106
|
+
raise ArgumentError,
|
107
|
+
"`#{k}` is not a valid attribute in `MoneyKit::Institution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
115
108
|
end
|
116
|
-
h[k.to_sym] = v
|
117
|
-
}
|
118
109
|
|
119
|
-
|
120
|
-
self.institution_id = attributes[:'institution_id']
|
110
|
+
h[k.to_sym] = v
|
121
111
|
end
|
122
112
|
|
123
|
-
if attributes.key?(:
|
124
|
-
|
113
|
+
self.institution_id = (attributes[:institution_id] if attributes.key?(:institution_id))
|
114
|
+
|
115
|
+
if attributes.key?(:institution_id_aliases)
|
116
|
+
if (value = attributes[:institution_id_aliases]).is_a?(Array)
|
125
117
|
self.institution_id_aliases = value
|
126
118
|
end
|
119
|
+
else
|
120
|
+
self.institution_id_aliases = nil
|
127
121
|
end
|
128
122
|
|
129
|
-
if attributes.key?(:
|
130
|
-
self.name = attributes[:'name']
|
131
|
-
end
|
123
|
+
self.name = (attributes[:name] if attributes.key?(:name))
|
132
124
|
|
133
|
-
if attributes.key?(:
|
134
|
-
self.country = attributes[:'country']
|
135
|
-
end
|
125
|
+
self.country = (attributes[:country] if attributes.key?(:country))
|
136
126
|
|
137
|
-
if attributes.key?(:
|
138
|
-
self.domain = attributes[:'domain']
|
139
|
-
end
|
127
|
+
self.domain = attributes[:domain] if attributes.key?(:domain)
|
140
128
|
|
141
|
-
if attributes.key?(:
|
142
|
-
self.color = attributes[:'color']
|
143
|
-
end
|
129
|
+
self.color = (attributes[:color] if attributes.key?(:color))
|
144
130
|
|
145
|
-
if attributes.key?(:
|
146
|
-
self.color_dark = attributes[:'color_dark']
|
147
|
-
end
|
131
|
+
self.color_dark = attributes[:color_dark] if attributes.key?(:color_dark)
|
148
132
|
|
149
|
-
if attributes.key?(:
|
150
|
-
self.is_featured = attributes[:'is_featured']
|
151
|
-
end
|
133
|
+
self.is_featured = (attributes[:is_featured] if attributes.key?(:is_featured))
|
152
134
|
end
|
153
135
|
|
154
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
155
137
|
# @return Array for valid properties with the reasons
|
156
138
|
def list_invalid_properties
|
157
|
-
|
139
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
140
|
+
invalid_properties = []
|
158
141
|
if @institution_id.nil?
|
159
142
|
invalid_properties.push('invalid value for "institution_id", institution_id cannot be nil.')
|
160
143
|
end
|
@@ -163,21 +146,13 @@ module MoneyKit
|
|
163
146
|
invalid_properties.push('invalid value for "institution_id_aliases", institution_id_aliases cannot be nil.')
|
164
147
|
end
|
165
148
|
|
166
|
-
if @name.nil?
|
167
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
168
|
-
end
|
149
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.') if @name.nil?
|
169
150
|
|
170
|
-
if @country.nil?
|
171
|
-
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
172
|
-
end
|
151
|
+
invalid_properties.push('invalid value for "country", country cannot be nil.') if @country.nil?
|
173
152
|
|
174
|
-
if @color.nil?
|
175
|
-
invalid_properties.push('invalid value for "color", color cannot be nil.')
|
176
|
-
end
|
153
|
+
invalid_properties.push('invalid value for "color", color cannot be nil.') if @color.nil?
|
177
154
|
|
178
|
-
if @is_featured.nil?
|
179
|
-
invalid_properties.push('invalid value for "is_featured", is_featured cannot be nil.')
|
180
|
-
end
|
155
|
+
invalid_properties.push('invalid value for "is_featured", is_featured cannot be nil.') if @is_featured.nil?
|
181
156
|
|
182
157
|
invalid_properties
|
183
158
|
end
|
@@ -185,34 +160,37 @@ module MoneyKit
|
|
185
160
|
# Check to see if the all the properties in the model are valid
|
186
161
|
# @return true if the model is valid
|
187
162
|
def valid?
|
163
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
188
164
|
return false if @institution_id.nil?
|
189
165
|
return false if @institution_id_aliases.nil?
|
190
166
|
return false if @name.nil?
|
191
167
|
return false if @country.nil?
|
192
168
|
return false if @color.nil?
|
193
169
|
return false if @is_featured.nil?
|
170
|
+
|
194
171
|
true
|
195
172
|
end
|
196
173
|
|
197
174
|
# Checks equality by comparing each attribute.
|
198
175
|
# @param [Object] Object to be compared
|
199
|
-
def ==(
|
200
|
-
return true if
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
176
|
+
def ==(other)
|
177
|
+
return true if equal?(other)
|
178
|
+
|
179
|
+
self.class == other.class &&
|
180
|
+
institution_id == other.institution_id &&
|
181
|
+
institution_id_aliases == other.institution_id_aliases &&
|
182
|
+
name == other.name &&
|
183
|
+
country == other.country &&
|
184
|
+
domain == other.domain &&
|
185
|
+
color == other.color &&
|
186
|
+
color_dark == other.color_dark &&
|
187
|
+
is_featured == other.is_featured
|
210
188
|
end
|
211
189
|
|
212
190
|
# @see the `==` method
|
213
191
|
# @param [Object] Object to be compared
|
214
|
-
def eql?(
|
215
|
-
self ==
|
192
|
+
def eql?(other)
|
193
|
+
self == other
|
216
194
|
end
|
217
195
|
|
218
196
|
# Calculates hash code according to all attributes.
|
@@ -225,37 +203,33 @@ module MoneyKit
|
|
225
203
|
# @param [Hash] attributes Model attributes in the form of hash
|
226
204
|
# @return [Object] Returns the model itself
|
227
205
|
def self.build_from_hash(attributes)
|
228
|
-
new.build_from_hash(attributes)
|
229
|
-
end
|
230
|
-
|
231
|
-
# Builds the object from hash
|
232
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
233
|
-
# @return [Object] Returns the model itself
|
234
|
-
def build_from_hash(attributes)
|
235
206
|
return nil unless attributes.is_a?(Hash)
|
207
|
+
|
236
208
|
attributes = attributes.transform_keys(&:to_sym)
|
237
|
-
|
238
|
-
|
239
|
-
|
209
|
+
transformed_hash = {}
|
210
|
+
openapi_types.each_pair do |key, type|
|
211
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
212
|
+
transformed_hash["#{key}"] = nil
|
240
213
|
elsif type =~ /\AArray<(.*)>/i
|
241
214
|
# check to ensure the input is an array given that the attribute
|
242
215
|
# is documented as an array but the input is not
|
243
|
-
if attributes[
|
244
|
-
|
216
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
217
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map do |v|
|
218
|
+
_deserialize(::Regexp.last_match(1), v)
|
219
|
+
end
|
245
220
|
end
|
246
|
-
elsif !attributes[
|
247
|
-
|
221
|
+
elsif !attributes[attribute_map[key]].nil?
|
222
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
248
223
|
end
|
249
224
|
end
|
250
|
-
|
251
|
-
self
|
225
|
+
new(transformed_hash)
|
252
226
|
end
|
253
227
|
|
254
228
|
# Deserializes the data based on type
|
255
229
|
# @param string type Data type
|
256
230
|
# @param string value Value to be deserialized
|
257
231
|
# @return [Object] Deserialized data
|
258
|
-
def _deserialize(type, value)
|
232
|
+
def self._deserialize(type, value)
|
259
233
|
case type.to_sym
|
260
234
|
when :Time
|
261
235
|
Time.parse(value)
|
@@ -290,7 +264,7 @@ module MoneyKit
|
|
290
264
|
else # model
|
291
265
|
# models (e.g. Pet) or oneOf
|
292
266
|
klass = MoneyKit.const_get(type)
|
293
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
267
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
294
268
|
end
|
295
269
|
end
|
296
270
|
|
@@ -311,7 +285,7 @@ module MoneyKit
|
|
311
285
|
def to_hash
|
312
286
|
hash = {}
|
313
287
|
self.class.attribute_map.each_pair do |attr, param|
|
314
|
-
value =
|
288
|
+
value = send(attr)
|
315
289
|
if value.nil?
|
316
290
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
317
291
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -339,7 +313,5 @@ module MoneyKit
|
|
339
313
|
value
|
340
314
|
end
|
341
315
|
end
|
342
|
-
|
343
316
|
end
|
344
|
-
|
345
317
|
end
|
@@ -1,29 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
2
|
+
#
|
3
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 0.1.0
|
6
|
+
#
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.1.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
14
|
module MoneyKit
|
17
15
|
class InstitutionErrorNotFoundResponse
|
18
|
-
attr_accessor :error_code
|
19
|
-
|
20
|
-
attr_accessor :error_message
|
21
|
-
|
22
|
-
attr_accessor :documentation_url
|
16
|
+
attr_accessor :error_code, :error_message, :documentation_url
|
23
17
|
|
24
18
|
class EnumAttributeValidator
|
25
|
-
attr_reader :datatype
|
26
|
-
attr_reader :allowable_values
|
19
|
+
attr_reader :datatype, :allowable_values
|
27
20
|
|
28
21
|
def initialize(datatype, allowable_values)
|
29
22
|
@allowable_values = allowable_values.map do |value|
|
@@ -46,9 +39,9 @@ module MoneyKit
|
|
46
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
40
|
def self.attribute_map
|
48
41
|
{
|
49
|
-
|
50
|
-
|
51
|
-
|
42
|
+
'error_code': :error_code,
|
43
|
+
'error_message': :error_message,
|
44
|
+
'documentation_url': :documentation_url
|
52
45
|
}
|
53
46
|
end
|
54
47
|
|
@@ -60,90 +53,95 @@ module MoneyKit
|
|
60
53
|
# Attribute type mapping.
|
61
54
|
def self.openapi_types
|
62
55
|
{
|
63
|
-
|
64
|
-
|
65
|
-
|
56
|
+
'error_code': :String,
|
57
|
+
'error_message': :String,
|
58
|
+
'documentation_url': :String
|
66
59
|
}
|
67
60
|
end
|
68
61
|
|
69
62
|
# List of attributes with nullable: true
|
70
63
|
def self.openapi_nullable
|
71
|
-
Set.new([
|
72
|
-
:'documentation_url'
|
73
|
-
])
|
64
|
+
Set.new([])
|
74
65
|
end
|
75
66
|
|
76
67
|
# Initializes the object
|
77
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
69
|
def initialize(attributes = {})
|
79
|
-
|
80
|
-
|
70
|
+
unless attributes.is_a?(Hash)
|
71
|
+
raise ArgumentError,
|
72
|
+
'The input argument (attributes) must be a hash in `MoneyKit::InstitutionErrorNotFoundResponse` initialize method'
|
81
73
|
end
|
82
74
|
|
83
75
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({})
|
85
|
-
|
86
|
-
|
76
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
77
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
78
|
+
raise ArgumentError,
|
79
|
+
"`#{k}` is not a valid attribute in `MoneyKit::InstitutionErrorNotFoundResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
80
|
end
|
88
|
-
h[k.to_sym] = v
|
89
|
-
}
|
90
81
|
|
91
|
-
|
92
|
-
self.error_code = attributes[:'error_code']
|
93
|
-
else
|
94
|
-
self.error_code = 'institution_error.not_found'
|
82
|
+
h[k.to_sym] = v
|
95
83
|
end
|
96
84
|
|
97
|
-
if attributes.key?(:
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
85
|
+
self.error_code = if attributes.key?(:error_code)
|
86
|
+
attributes[:error_code]
|
87
|
+
else
|
88
|
+
'institution_error.not_found'
|
89
|
+
end
|
102
90
|
|
103
|
-
if attributes.key?(:
|
104
|
-
|
105
|
-
|
91
|
+
self.error_message = if attributes.key?(:error_message)
|
92
|
+
attributes[:error_message]
|
93
|
+
else
|
94
|
+
'Institution not found'
|
95
|
+
end
|
96
|
+
|
97
|
+
return unless attributes.key?(:documentation_url)
|
98
|
+
|
99
|
+
self.documentation_url = attributes[:documentation_url]
|
106
100
|
end
|
107
101
|
|
108
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
109
103
|
# @return Array for valid properties with the reasons
|
110
104
|
def list_invalid_properties
|
111
|
-
|
112
|
-
|
105
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
106
|
+
[]
|
113
107
|
end
|
114
108
|
|
115
109
|
# Check to see if the all the properties in the model are valid
|
116
110
|
# @return true if the model is valid
|
117
111
|
def valid?
|
118
|
-
|
112
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
113
|
+
error_code_validator = EnumAttributeValidator.new('String', ['institution_error.not_found'])
|
119
114
|
return false unless error_code_validator.valid?(@error_code)
|
115
|
+
|
120
116
|
true
|
121
117
|
end
|
122
118
|
|
123
119
|
# Custom attribute writer method checking allowed values (enum).
|
124
120
|
# @param [Object] error_code Object to be assigned
|
125
121
|
def error_code=(error_code)
|
126
|
-
validator = EnumAttributeValidator.new('String', [
|
122
|
+
validator = EnumAttributeValidator.new('String', ['institution_error.not_found'])
|
127
123
|
unless validator.valid?(error_code)
|
128
|
-
|
124
|
+
raise ArgumentError, "invalid value for \"error_code\", must be one of #{validator.allowable_values}."
|
129
125
|
end
|
126
|
+
|
130
127
|
@error_code = error_code
|
131
128
|
end
|
132
129
|
|
133
130
|
# Checks equality by comparing each attribute.
|
134
131
|
# @param [Object] Object to be compared
|
135
|
-
def ==(
|
136
|
-
return true if
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
132
|
+
def ==(other)
|
133
|
+
return true if equal?(other)
|
134
|
+
|
135
|
+
self.class == other.class &&
|
136
|
+
error_code == other.error_code &&
|
137
|
+
error_message == other.error_message &&
|
138
|
+
documentation_url == other.documentation_url
|
141
139
|
end
|
142
140
|
|
143
141
|
# @see the `==` method
|
144
142
|
# @param [Object] Object to be compared
|
145
|
-
def eql?(
|
146
|
-
self ==
|
143
|
+
def eql?(other)
|
144
|
+
self == other
|
147
145
|
end
|
148
146
|
|
149
147
|
# Calculates hash code according to all attributes.
|
@@ -156,37 +154,33 @@ module MoneyKit
|
|
156
154
|
# @param [Hash] attributes Model attributes in the form of hash
|
157
155
|
# @return [Object] Returns the model itself
|
158
156
|
def self.build_from_hash(attributes)
|
159
|
-
new.build_from_hash(attributes)
|
160
|
-
end
|
161
|
-
|
162
|
-
# Builds the object from hash
|
163
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
-
# @return [Object] Returns the model itself
|
165
|
-
def build_from_hash(attributes)
|
166
157
|
return nil unless attributes.is_a?(Hash)
|
158
|
+
|
167
159
|
attributes = attributes.transform_keys(&:to_sym)
|
168
|
-
|
169
|
-
|
170
|
-
|
160
|
+
transformed_hash = {}
|
161
|
+
openapi_types.each_pair do |key, type|
|
162
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
163
|
+
transformed_hash["#{key}"] = nil
|
171
164
|
elsif type =~ /\AArray<(.*)>/i
|
172
165
|
# check to ensure the input is an array given that the attribute
|
173
166
|
# is documented as an array but the input is not
|
174
|
-
if attributes[
|
175
|
-
|
167
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
168
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map do |v|
|
169
|
+
_deserialize(::Regexp.last_match(1), v)
|
170
|
+
end
|
176
171
|
end
|
177
|
-
elsif !attributes[
|
178
|
-
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
179
174
|
end
|
180
175
|
end
|
181
|
-
|
182
|
-
self
|
176
|
+
new(transformed_hash)
|
183
177
|
end
|
184
178
|
|
185
179
|
# Deserializes the data based on type
|
186
180
|
# @param string type Data type
|
187
181
|
# @param string value Value to be deserialized
|
188
182
|
# @return [Object] Deserialized data
|
189
|
-
def _deserialize(type, value)
|
183
|
+
def self._deserialize(type, value)
|
190
184
|
case type.to_sym
|
191
185
|
when :Time
|
192
186
|
Time.parse(value)
|
@@ -221,7 +215,7 @@ module MoneyKit
|
|
221
215
|
else # model
|
222
216
|
# models (e.g. Pet) or oneOf
|
223
217
|
klass = MoneyKit.const_get(type)
|
224
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
225
219
|
end
|
226
220
|
end
|
227
221
|
|
@@ -242,7 +236,7 @@ module MoneyKit
|
|
242
236
|
def to_hash
|
243
237
|
hash = {}
|
244
238
|
self.class.attribute_map.each_pair do |attr, param|
|
245
|
-
value =
|
239
|
+
value = send(attr)
|
246
240
|
if value.nil?
|
247
241
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
248
242
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -270,7 +264,5 @@ module MoneyKit
|
|
270
264
|
value
|
271
265
|
end
|
272
266
|
end
|
273
|
-
|
274
267
|
end
|
275
|
-
|
276
268
|
end
|