moneykit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moneykit/api/access_token_api.rb +53 -55
- data/lib/moneykit/api/account_numbers_api.rb +24 -24
- data/lib/moneykit/api/accounts_api.rb +86 -80
- data/lib/moneykit/api/identity_api.rb +29 -28
- 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 +74 -81
- data/lib/moneykit/api/products_api.rb +31 -33
- data/lib/moneykit/api/transactions_api.rb +112 -87
- data/lib/moneykit/api/users_api.rb +96 -79
- data/lib/moneykit/api_client.rb +64 -71
- data/lib/moneykit/api_error.rb +14 -16
- data/lib/moneykit/configuration.rb +42 -45
- data/lib/moneykit/models/account.rb +62 -78
- data/lib/moneykit/models/account_balances.rb +58 -63
- data/lib/moneykit/models/account_group.rb +47 -47
- data/lib/moneykit/models/account_identity.rb +69 -89
- data/lib/moneykit/models/account_numbers.rb +50 -49
- data/lib/moneykit/models/account_numbers_link_product.rb +52 -54
- data/lib/moneykit/models/account_numbers_product_settings.rb +49 -48
- data/lib/moneykit/models/account_type.rb +23 -23
- data/lib/moneykit/models/account_with_account_numbers.rb +68 -89
- data/lib/moneykit/models/accounts_link_product.rb +46 -46
- data/lib/moneykit/models/ach_number.rb +48 -49
- data/lib/moneykit/models/address.rb +66 -75
- data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +63 -62
- data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +60 -62
- data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +63 -62
- data/lib/moneykit/models/app.rb +46 -50
- data/lib/moneykit/models/bacs_number.rb +45 -46
- data/lib/moneykit/models/balances.rb +58 -64
- data/lib/moneykit/models/basic_account_details.rb +55 -61
- data/lib/moneykit/models/country.rb +13 -14
- data/lib/moneykit/models/create_link_session_request.rb +83 -96
- data/lib/moneykit/models/create_link_session_response.rb +40 -37
- data/lib/moneykit/models/currency.rb +193 -193
- data/lib/moneykit/models/cursor.rb +40 -39
- data/lib/moneykit/models/cursor_pagination.rb +40 -38
- data/lib/moneykit/models/cursors.rb +40 -39
- data/lib/moneykit/models/customer_app.rb +46 -49
- data/lib/moneykit/models/customer_user.rb +59 -69
- data/lib/moneykit/models/eft_number.rb +48 -52
- data/lib/moneykit/models/email.rb +46 -48
- data/lib/moneykit/models/email1.rb +50 -53
- data/lib/moneykit/models/exchange_token_request.rb +40 -37
- data/lib/moneykit/models/exchange_token_response.rb +46 -49
- data/lib/moneykit/models/generate_access_token_response.rb +51 -58
- data/lib/moneykit/models/get_account_numbers_response.rb +48 -53
- data/lib/moneykit/models/get_account_response.rb +47 -52
- data/lib/moneykit/models/get_accounts_response.rb +47 -50
- data/lib/moneykit/models/get_institutions_response.rb +47 -50
- data/lib/moneykit/models/get_transactions_response.rb +68 -87
- data/lib/moneykit/models/get_user_accounts_response.rb +42 -42
- data/lib/moneykit/models/get_user_links_response.rb +42 -42
- data/lib/moneykit/models/get_user_transactions_response.rb +64 -82
- data/lib/moneykit/models/http_validation_error.rb +68 -71
- data/lib/moneykit/models/identity.rb +49 -49
- data/lib/moneykit/models/identity_link_product.rb +52 -54
- data/lib/moneykit/models/identity_product_settings.rb +49 -48
- data/lib/moneykit/models/identity_response.rb +47 -50
- data/lib/moneykit/models/institution.rb +77 -96
- data/lib/moneykit/models/institution_error_not_found_response.rb +63 -64
- data/lib/moneykit/models/institution_styling_response.rb +77 -93
- data/lib/moneykit/models/international_number.rb +46 -49
- data/lib/moneykit/models/introspect_client_response.rb +61 -73
- data/lib/moneykit/models/jwk_set.rb +41 -42
- 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 +78 -99
- data/lib/moneykit/models/link_error.rb +19 -19
- data/lib/moneykit/models/link_error_bad_state_response.rb +64 -72
- data/lib/moneykit/models/link_error_deleted_response.rb +63 -64
- data/lib/moneykit/models/link_error_forbidden_action_response.rb +60 -62
- data/lib/moneykit/models/link_error_not_found_response.rb +63 -64
- data/lib/moneykit/models/link_error_unauthorized_access_response.rb +63 -64
- data/lib/moneykit/models/link_permission_scope.rb +14 -15
- data/lib/moneykit/models/link_permissions.rb +43 -43
- data/lib/moneykit/models/link_products.rb +52 -63
- data/lib/moneykit/models/link_response.rb +90 -118
- data/lib/moneykit/models/link_session_customer_user.rb +58 -68
- data/lib/moneykit/models/link_session_customer_user_email.rb +50 -52
- data/lib/moneykit/models/link_session_customer_user_phone.rb +60 -67
- data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +60 -62
- data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +60 -62
- data/lib/moneykit/models/link_session_setting_overrides.rb +61 -72
- data/lib/moneykit/models/link_state.rb +15 -16
- data/lib/moneykit/models/link_state_changed_webhook.rb +110 -134
- 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 +49 -48
- data/lib/moneykit/models/moneylink_features.rb +50 -49
- data/lib/moneykit/models/numbers.rb +60 -73
- data/lib/moneykit/models/owner.rb +59 -72
- data/lib/moneykit/models/phone.rb +60 -68
- data/lib/moneykit/models/phone_number.rb +55 -59
- 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 +48 -55
- data/lib/moneykit/models/provider.rb +15 -16
- data/lib/moneykit/models/refresh_products_request.rb +43 -45
- data/lib/moneykit/models/requested_link_permission.rb +52 -60
- data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +71 -77
- data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +66 -72
- data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +71 -77
- data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +71 -77
- data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +71 -77
- data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +71 -77
- data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +66 -72
- 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 +66 -72
- data/lib/moneykit/models/response401_get_link_links_id_get.rb +71 -77
- data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +71 -77
- data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +71 -77
- data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +66 -72
- data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +66 -72
- data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +66 -72
- data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +66 -72
- data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +66 -72
- data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +71 -77
- data/lib/moneykit/models/response401_update_link_links_id_patch.rb +71 -77
- data/lib/moneykit/models/settings.rb +61 -73
- data/lib/moneykit/models/supported_version.rb +11 -12
- data/lib/moneykit/models/transaction.rb +87 -114
- data/lib/moneykit/models/transaction_diff.rb +54 -62
- data/lib/moneykit/models/transaction_sync_response.rb +57 -72
- 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 +52 -54
- data/lib/moneykit/models/transactions_product_settings.rb +57 -56
- data/lib/moneykit/models/update_link_request.rb +53 -52
- 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 +53 -64
- data/lib/moneykit/version.rb +10 -12
- data/lib/moneykit.rb +9 -11
- data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +203 -207
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +75 -76
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +19 -19
- data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +38 -40
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +71 -87
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +77 -98
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +85 -86
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +18 -19
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +55 -60
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +65 -69
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +63 -73
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +61 -72
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +15 -16
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +43 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +55 -60
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +65 -71
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +60 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +85 -96
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +65 -77
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +55 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +50 -48
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +55 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +100 -121
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +66 -66
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +59 -65
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +59 -68
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +63 -73
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +88 -103
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +26 -27
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +16 -17
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +43 -39
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +107 -134
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +69 -79
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +66 -68
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +65 -76
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +69 -75
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +50 -46
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +72 -89
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +56 -65
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +15 -16
- data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +13 -13
- data/lib/plaid_compatible/money_kit_plaid_compatible.rb +12 -12
- data/moneykit.gemspec +21 -25
- metadata +1 -1
@@ -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: 6.5.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
64
|
Set.new([
|
72
|
-
|
73
|
-
|
65
|
+
:documentation_url
|
66
|
+
])
|
74
67
|
end
|
75
68
|
|
76
69
|
# Initializes the object
|
77
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
71
|
def initialize(attributes = {})
|
79
|
-
|
80
|
-
|
72
|
+
unless attributes.is_a?(Hash)
|
73
|
+
raise ArgumentError,
|
74
|
+
'The input argument (attributes) must be a hash in `MoneyKit::InstitutionErrorNotFoundResponse` initialize method'
|
81
75
|
end
|
82
76
|
|
83
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({})
|
85
|
-
|
86
|
-
|
78
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
79
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
80
|
+
raise ArgumentError,
|
81
|
+
"`#{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
82
|
end
|
88
|
-
h[k.to_sym] = v
|
89
|
-
}
|
90
83
|
|
91
|
-
|
92
|
-
self.error_code = attributes[:'error_code']
|
93
|
-
else
|
94
|
-
self.error_code = 'institution_error.not_found'
|
84
|
+
h[k.to_sym] = v
|
95
85
|
end
|
96
86
|
|
97
|
-
if attributes.key?(:
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
87
|
+
self.error_code = if attributes.key?(:error_code)
|
88
|
+
attributes[:error_code]
|
89
|
+
else
|
90
|
+
'institution_error.not_found'
|
91
|
+
end
|
102
92
|
|
103
|
-
if attributes.key?(:
|
104
|
-
|
105
|
-
|
93
|
+
self.error_message = if attributes.key?(:error_message)
|
94
|
+
attributes[:error_message]
|
95
|
+
else
|
96
|
+
'Institution not found'
|
97
|
+
end
|
98
|
+
|
99
|
+
return unless attributes.key?(:documentation_url)
|
100
|
+
|
101
|
+
self.documentation_url = attributes[:documentation_url]
|
106
102
|
end
|
107
103
|
|
108
104
|
# Show invalid properties with the reasons. Usually used together with valid?
|
109
105
|
# @return Array for valid properties with the reasons
|
110
106
|
def list_invalid_properties
|
111
|
-
|
112
|
-
invalid_properties
|
107
|
+
[]
|
113
108
|
end
|
114
109
|
|
115
110
|
# Check to see if the all the properties in the model are valid
|
116
111
|
# @return true if the model is valid
|
117
112
|
def valid?
|
118
|
-
error_code_validator = EnumAttributeValidator.new('String', [
|
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.
|
@@ -164,18 +162,21 @@ module MoneyKit
|
|
164
162
|
# @return [Object] Returns the model itself
|
165
163
|
def build_from_hash(attributes)
|
166
164
|
return nil unless attributes.is_a?(Hash)
|
165
|
+
|
167
166
|
attributes = attributes.transform_keys(&:to_sym)
|
168
167
|
self.class.openapi_types.each_pair do |key, type|
|
169
168
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
170
|
-
|
169
|
+
send("#{key}=", nil)
|
171
170
|
elsif type =~ /\AArray<(.*)>/i
|
172
171
|
# check to ensure the input is an array given that the attribute
|
173
172
|
# is documented as an array but the input is not
|
174
173
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
175
|
-
|
174
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
175
|
+
_deserialize(::Regexp.last_match(1), v)
|
176
|
+
end)
|
176
177
|
end
|
177
178
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
178
|
-
|
179
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
179
180
|
end
|
180
181
|
end
|
181
182
|
|
@@ -242,7 +243,7 @@ module MoneyKit
|
|
242
243
|
def to_hash
|
243
244
|
hash = {}
|
244
245
|
self.class.attribute_map.each_pair do |attr, param|
|
245
|
-
value =
|
246
|
+
value = send(attr)
|
246
247
|
if value.nil?
|
247
248
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
248
249
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -270,7 +271,5 @@ module MoneyKit
|
|
270
271
|
value
|
271
272
|
end
|
272
273
|
end
|
273
|
-
|
274
274
|
end
|
275
|
-
|
276
275
|
end
|
@@ -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: 6.5.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
@@ -42,14 +40,14 @@ module MoneyKit
|
|
42
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
41
|
def self.attribute_map
|
44
42
|
{
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
43
|
+
'name': :name,
|
44
|
+
'domain': :domain,
|
45
|
+
'color': :color,
|
46
|
+
'color_dark': :color_dark,
|
47
|
+
'avatar': :avatar,
|
48
|
+
'avatar_dark': :avatar_dark,
|
49
|
+
'logo': :logo,
|
50
|
+
'logo_dark': :logo_dark
|
53
51
|
}
|
54
52
|
end
|
55
53
|
|
@@ -61,91 +59,74 @@ module MoneyKit
|
|
61
59
|
# Attribute type mapping.
|
62
60
|
def self.openapi_types
|
63
61
|
{
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
62
|
+
'name': :String,
|
63
|
+
'domain': :String,
|
64
|
+
'color': :String,
|
65
|
+
'color_dark': :String,
|
66
|
+
'avatar': :String,
|
67
|
+
'avatar_dark': :String,
|
68
|
+
'logo': :String,
|
69
|
+
'logo_dark': :String
|
72
70
|
}
|
73
71
|
end
|
74
72
|
|
75
73
|
# List of attributes with nullable: true
|
76
74
|
def self.openapi_nullable
|
77
|
-
Set.new([
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
75
|
+
Set.new(%i[
|
76
|
+
domain
|
77
|
+
color_dark
|
78
|
+
avatar_dark
|
79
|
+
logo
|
80
|
+
logo_dark
|
81
|
+
])
|
84
82
|
end
|
85
83
|
|
86
84
|
# Initializes the object
|
87
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
88
86
|
def initialize(attributes = {})
|
89
|
-
|
90
|
-
|
87
|
+
unless attributes.is_a?(Hash)
|
88
|
+
raise ArgumentError,
|
89
|
+
'The input argument (attributes) must be a hash in `MoneyKit::InstitutionStylingResponse` initialize method'
|
91
90
|
end
|
92
91
|
|
93
92
|
# check to see if the attribute exists and convert string to symbol for hash key
|
94
|
-
attributes = attributes.each_with_object({})
|
95
|
-
|
96
|
-
|
93
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
94
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
95
|
+
raise ArgumentError,
|
96
|
+
"`#{k}` is not a valid attribute in `MoneyKit::InstitutionStylingResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
97
97
|
end
|
98
|
-
h[k.to_sym] = v
|
99
|
-
}
|
100
98
|
|
101
|
-
|
102
|
-
self.name = attributes[:'name']
|
99
|
+
h[k.to_sym] = v
|
103
100
|
end
|
104
101
|
|
105
|
-
if attributes.key?(:
|
106
|
-
self.domain = attributes[:'domain']
|
107
|
-
end
|
102
|
+
self.name = attributes[:name] if attributes.key?(:name)
|
108
103
|
|
109
|
-
if attributes.key?(:
|
110
|
-
self.color = attributes[:'color']
|
111
|
-
end
|
104
|
+
self.domain = attributes[:domain] if attributes.key?(:domain)
|
112
105
|
|
113
|
-
if attributes.key?(:
|
114
|
-
self.color_dark = attributes[:'color_dark']
|
115
|
-
end
|
106
|
+
self.color = attributes[:color] if attributes.key?(:color)
|
116
107
|
|
117
|
-
if attributes.key?(:
|
118
|
-
self.avatar = attributes[:'avatar']
|
119
|
-
end
|
108
|
+
self.color_dark = attributes[:color_dark] if attributes.key?(:color_dark)
|
120
109
|
|
121
|
-
if attributes.key?(:
|
122
|
-
self.avatar_dark = attributes[:'avatar_dark']
|
123
|
-
end
|
110
|
+
self.avatar = attributes[:avatar] if attributes.key?(:avatar)
|
124
111
|
|
125
|
-
if attributes.key?(:
|
126
|
-
self.logo = attributes[:'logo']
|
127
|
-
end
|
112
|
+
self.avatar_dark = attributes[:avatar_dark] if attributes.key?(:avatar_dark)
|
128
113
|
|
129
|
-
if attributes.key?(:
|
130
|
-
|
131
|
-
|
114
|
+
self.logo = attributes[:logo] if attributes.key?(:logo)
|
115
|
+
|
116
|
+
return unless attributes.key?(:logo_dark)
|
117
|
+
|
118
|
+
self.logo_dark = attributes[:logo_dark]
|
132
119
|
end
|
133
120
|
|
134
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
135
122
|
# @return Array for valid properties with the reasons
|
136
123
|
def list_invalid_properties
|
137
|
-
invalid_properties =
|
138
|
-
if @name.nil?
|
139
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
140
|
-
end
|
124
|
+
invalid_properties = []
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.') if @name.nil?
|
141
126
|
|
142
|
-
if @color.nil?
|
143
|
-
invalid_properties.push('invalid value for "color", color cannot be nil.')
|
144
|
-
end
|
127
|
+
invalid_properties.push('invalid value for "color", color cannot be nil.') if @color.nil?
|
145
128
|
|
146
|
-
if @avatar.nil?
|
147
|
-
invalid_properties.push('invalid value for "avatar", avatar cannot be nil.')
|
148
|
-
end
|
129
|
+
invalid_properties.push('invalid value for "avatar", avatar cannot be nil.') if @avatar.nil?
|
149
130
|
|
150
131
|
invalid_properties
|
151
132
|
end
|
@@ -156,28 +137,30 @@ module MoneyKit
|
|
156
137
|
return false if @name.nil?
|
157
138
|
return false if @color.nil?
|
158
139
|
return false if @avatar.nil?
|
140
|
+
|
159
141
|
true
|
160
142
|
end
|
161
143
|
|
162
144
|
# Checks equality by comparing each attribute.
|
163
145
|
# @param [Object] Object to be compared
|
164
|
-
def ==(
|
165
|
-
return true if
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
146
|
+
def ==(other)
|
147
|
+
return true if equal?(other)
|
148
|
+
|
149
|
+
self.class == other.class &&
|
150
|
+
name == other.name &&
|
151
|
+
domain == other.domain &&
|
152
|
+
color == other.color &&
|
153
|
+
color_dark == other.color_dark &&
|
154
|
+
avatar == other.avatar &&
|
155
|
+
avatar_dark == other.avatar_dark &&
|
156
|
+
logo == other.logo &&
|
157
|
+
logo_dark == other.logo_dark
|
175
158
|
end
|
176
159
|
|
177
160
|
# @see the `==` method
|
178
161
|
# @param [Object] Object to be compared
|
179
|
-
def eql?(
|
180
|
-
self ==
|
162
|
+
def eql?(other)
|
163
|
+
self == other
|
181
164
|
end
|
182
165
|
|
183
166
|
# Calculates hash code according to all attributes.
|
@@ -198,18 +181,21 @@ module MoneyKit
|
|
198
181
|
# @return [Object] Returns the model itself
|
199
182
|
def build_from_hash(attributes)
|
200
183
|
return nil unless attributes.is_a?(Hash)
|
184
|
+
|
201
185
|
attributes = attributes.transform_keys(&:to_sym)
|
202
186
|
self.class.openapi_types.each_pair do |key, type|
|
203
187
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
204
|
-
|
188
|
+
send("#{key}=", nil)
|
205
189
|
elsif type =~ /\AArray<(.*)>/i
|
206
190
|
# check to ensure the input is an array given that the attribute
|
207
191
|
# is documented as an array but the input is not
|
208
192
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
209
|
-
|
193
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
194
|
+
_deserialize(::Regexp.last_match(1), v)
|
195
|
+
end)
|
210
196
|
end
|
211
197
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
212
|
-
|
198
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
213
199
|
end
|
214
200
|
end
|
215
201
|
|
@@ -276,7 +262,7 @@ module MoneyKit
|
|
276
262
|
def to_hash
|
277
263
|
hash = {}
|
278
264
|
self.class.attribute_map.each_pair do |attr, param|
|
279
|
-
value =
|
265
|
+
value = send(attr)
|
280
266
|
if value.nil?
|
281
267
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
282
268
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -304,7 +290,5 @@ module MoneyKit
|
|
304
290
|
value
|
305
291
|
end
|
306
292
|
end
|
307
|
-
|
308
293
|
end
|
309
|
-
|
310
294
|
end
|
@@ -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: 6.5.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
@@ -24,8 +22,8 @@ module MoneyKit
|
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
23
|
def self.attribute_map
|
26
24
|
{
|
27
|
-
|
28
|
-
|
25
|
+
'iban': :iban,
|
26
|
+
'bic': :bic
|
29
27
|
}
|
30
28
|
end
|
31
29
|
|
@@ -37,52 +35,48 @@ module MoneyKit
|
|
37
35
|
# Attribute type mapping.
|
38
36
|
def self.openapi_types
|
39
37
|
{
|
40
|
-
|
41
|
-
|
38
|
+
'iban': :String,
|
39
|
+
'bic': :String
|
42
40
|
}
|
43
41
|
end
|
44
42
|
|
45
43
|
# List of attributes with nullable: true
|
46
44
|
def self.openapi_nullable
|
47
|
-
Set.new([
|
48
|
-
])
|
45
|
+
Set.new([])
|
49
46
|
end
|
50
47
|
|
51
48
|
# Initializes the object
|
52
49
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
50
|
def initialize(attributes = {})
|
54
|
-
|
55
|
-
|
51
|
+
unless attributes.is_a?(Hash)
|
52
|
+
raise ArgumentError,
|
53
|
+
'The input argument (attributes) must be a hash in `MoneyKit::InternationalNumber` initialize method'
|
56
54
|
end
|
57
55
|
|
58
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
-
attributes = attributes.each_with_object({})
|
60
|
-
|
61
|
-
|
57
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
58
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
59
|
+
raise ArgumentError,
|
60
|
+
"`#{k}` is not a valid attribute in `MoneyKit::InternationalNumber`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
61
|
end
|
63
|
-
h[k.to_sym] = v
|
64
|
-
}
|
65
62
|
|
66
|
-
|
67
|
-
self.iban = attributes[:'iban']
|
63
|
+
h[k.to_sym] = v
|
68
64
|
end
|
69
65
|
|
70
|
-
if attributes.key?(:
|
71
|
-
|
72
|
-
|
66
|
+
self.iban = attributes[:iban] if attributes.key?(:iban)
|
67
|
+
|
68
|
+
return unless attributes.key?(:bic)
|
69
|
+
|
70
|
+
self.bic = attributes[:bic]
|
73
71
|
end
|
74
72
|
|
75
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
74
|
# @return Array for valid properties with the reasons
|
77
75
|
def list_invalid_properties
|
78
|
-
invalid_properties =
|
79
|
-
if @iban.nil?
|
80
|
-
invalid_properties.push('invalid value for "iban", iban cannot be nil.')
|
81
|
-
end
|
76
|
+
invalid_properties = []
|
77
|
+
invalid_properties.push('invalid value for "iban", iban cannot be nil.') if @iban.nil?
|
82
78
|
|
83
|
-
if @bic.nil?
|
84
|
-
invalid_properties.push('invalid value for "bic", bic cannot be nil.')
|
85
|
-
end
|
79
|
+
invalid_properties.push('invalid value for "bic", bic cannot be nil.') if @bic.nil?
|
86
80
|
|
87
81
|
invalid_properties
|
88
82
|
end
|
@@ -92,22 +86,24 @@ module MoneyKit
|
|
92
86
|
def valid?
|
93
87
|
return false if @iban.nil?
|
94
88
|
return false if @bic.nil?
|
89
|
+
|
95
90
|
true
|
96
91
|
end
|
97
92
|
|
98
93
|
# Checks equality by comparing each attribute.
|
99
94
|
# @param [Object] Object to be compared
|
100
|
-
def ==(
|
101
|
-
return true if
|
102
|
-
|
103
|
-
|
104
|
-
|
95
|
+
def ==(other)
|
96
|
+
return true if equal?(other)
|
97
|
+
|
98
|
+
self.class == other.class &&
|
99
|
+
iban == other.iban &&
|
100
|
+
bic == other.bic
|
105
101
|
end
|
106
102
|
|
107
103
|
# @see the `==` method
|
108
104
|
# @param [Object] Object to be compared
|
109
|
-
def eql?(
|
110
|
-
self ==
|
105
|
+
def eql?(other)
|
106
|
+
self == other
|
111
107
|
end
|
112
108
|
|
113
109
|
# Calculates hash code according to all attributes.
|
@@ -128,18 +124,21 @@ module MoneyKit
|
|
128
124
|
# @return [Object] Returns the model itself
|
129
125
|
def build_from_hash(attributes)
|
130
126
|
return nil unless attributes.is_a?(Hash)
|
127
|
+
|
131
128
|
attributes = attributes.transform_keys(&:to_sym)
|
132
129
|
self.class.openapi_types.each_pair do |key, type|
|
133
130
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
|
-
|
131
|
+
send("#{key}=", nil)
|
135
132
|
elsif type =~ /\AArray<(.*)>/i
|
136
133
|
# check to ensure the input is an array given that the attribute
|
137
134
|
# is documented as an array but the input is not
|
138
135
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
-
|
136
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
137
|
+
_deserialize(::Regexp.last_match(1), v)
|
138
|
+
end)
|
140
139
|
end
|
141
140
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
-
|
141
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
142
|
end
|
144
143
|
end
|
145
144
|
|
@@ -206,7 +205,7 @@ module MoneyKit
|
|
206
205
|
def to_hash
|
207
206
|
hash = {}
|
208
207
|
self.class.attribute_map.each_pair do |attr, param|
|
209
|
-
value =
|
208
|
+
value = send(attr)
|
210
209
|
if value.nil?
|
211
210
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
211
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -234,7 +233,5 @@ module MoneyKit
|
|
234
233
|
value
|
235
234
|
end
|
236
235
|
end
|
237
|
-
|
238
236
|
end
|
239
|
-
|
240
237
|
end
|