moneykit 0.0.2 → 0.0.3
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/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,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'
|
@@ -28,9 +26,9 @@ module MoneyKit
|
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
27
|
def self.attribute_map
|
30
28
|
{
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
'access_token': :access_token,
|
30
|
+
'token_type': :token_type,
|
31
|
+
'expires_in': :expires_in
|
34
32
|
}
|
35
33
|
end
|
36
34
|
|
@@ -42,61 +40,53 @@ module MoneyKit
|
|
42
40
|
# Attribute type mapping.
|
43
41
|
def self.openapi_types
|
44
42
|
{
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
'access_token': :String,
|
44
|
+
'token_type': :String,
|
45
|
+
'expires_in': :Integer
|
48
46
|
}
|
49
47
|
end
|
50
48
|
|
51
49
|
# List of attributes with nullable: true
|
52
50
|
def self.openapi_nullable
|
53
|
-
Set.new([
|
54
|
-
])
|
51
|
+
Set.new([])
|
55
52
|
end
|
56
53
|
|
57
54
|
# Initializes the object
|
58
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
56
|
def initialize(attributes = {})
|
60
|
-
|
61
|
-
|
57
|
+
unless attributes.is_a?(Hash)
|
58
|
+
raise ArgumentError,
|
59
|
+
'The input argument (attributes) must be a hash in `MoneyKit::GenerateAccessTokenResponse` initialize method'
|
62
60
|
end
|
63
61
|
|
64
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({})
|
66
|
-
|
67
|
-
|
63
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
64
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
65
|
+
raise ArgumentError,
|
66
|
+
"`#{k}` is not a valid attribute in `MoneyKit::GenerateAccessTokenResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
67
|
end
|
69
|
-
h[k.to_sym] = v
|
70
|
-
}
|
71
68
|
|
72
|
-
|
73
|
-
self.access_token = attributes[:'access_token']
|
69
|
+
h[k.to_sym] = v
|
74
70
|
end
|
75
71
|
|
76
|
-
if attributes.key?(:
|
77
|
-
self.token_type = attributes[:'token_type']
|
78
|
-
end
|
72
|
+
self.access_token = attributes[:access_token] if attributes.key?(:access_token)
|
79
73
|
|
80
|
-
if attributes.key?(:
|
81
|
-
|
82
|
-
|
74
|
+
self.token_type = attributes[:token_type] if attributes.key?(:token_type)
|
75
|
+
|
76
|
+
return unless attributes.key?(:expires_in)
|
77
|
+
|
78
|
+
self.expires_in = attributes[:expires_in]
|
83
79
|
end
|
84
80
|
|
85
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
86
82
|
# @return Array for valid properties with the reasons
|
87
83
|
def list_invalid_properties
|
88
|
-
invalid_properties =
|
89
|
-
if @access_token.nil?
|
90
|
-
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
91
|
-
end
|
84
|
+
invalid_properties = []
|
85
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') if @access_token.nil?
|
92
86
|
|
93
|
-
if @token_type.nil?
|
94
|
-
invalid_properties.push('invalid value for "token_type", token_type cannot be nil.')
|
95
|
-
end
|
87
|
+
invalid_properties.push('invalid value for "token_type", token_type cannot be nil.') if @token_type.nil?
|
96
88
|
|
97
|
-
if @expires_in.nil?
|
98
|
-
invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.')
|
99
|
-
end
|
89
|
+
invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.') if @expires_in.nil?
|
100
90
|
|
101
91
|
invalid_properties
|
102
92
|
end
|
@@ -107,23 +97,25 @@ module MoneyKit
|
|
107
97
|
return false if @access_token.nil?
|
108
98
|
return false if @token_type.nil?
|
109
99
|
return false if @expires_in.nil?
|
100
|
+
|
110
101
|
true
|
111
102
|
end
|
112
103
|
|
113
104
|
# Checks equality by comparing each attribute.
|
114
105
|
# @param [Object] Object to be compared
|
115
|
-
def ==(
|
116
|
-
return true if
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
106
|
+
def ==(other)
|
107
|
+
return true if equal?(other)
|
108
|
+
|
109
|
+
self.class == other.class &&
|
110
|
+
access_token == other.access_token &&
|
111
|
+
token_type == other.token_type &&
|
112
|
+
expires_in == other.expires_in
|
121
113
|
end
|
122
114
|
|
123
115
|
# @see the `==` method
|
124
116
|
# @param [Object] Object to be compared
|
125
|
-
def eql?(
|
126
|
-
self ==
|
117
|
+
def eql?(other)
|
118
|
+
self == other
|
127
119
|
end
|
128
120
|
|
129
121
|
# Calculates hash code according to all attributes.
|
@@ -144,18 +136,21 @@ module MoneyKit
|
|
144
136
|
# @return [Object] Returns the model itself
|
145
137
|
def build_from_hash(attributes)
|
146
138
|
return nil unless attributes.is_a?(Hash)
|
139
|
+
|
147
140
|
attributes = attributes.transform_keys(&:to_sym)
|
148
141
|
self.class.openapi_types.each_pair do |key, type|
|
149
142
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
150
|
-
|
143
|
+
send("#{key}=", nil)
|
151
144
|
elsif type =~ /\AArray<(.*)>/i
|
152
145
|
# check to ensure the input is an array given that the attribute
|
153
146
|
# is documented as an array but the input is not
|
154
147
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
-
|
148
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
149
|
+
_deserialize(::Regexp.last_match(1), v)
|
150
|
+
end)
|
156
151
|
end
|
157
152
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
-
|
153
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
154
|
end
|
160
155
|
end
|
161
156
|
|
@@ -222,7 +217,7 @@ module MoneyKit
|
|
222
217
|
def to_hash
|
223
218
|
hash = {}
|
224
219
|
self.class.attribute_map.each_pair do |attr, param|
|
225
|
-
value =
|
220
|
+
value = send(attr)
|
226
221
|
if value.nil?
|
227
222
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
223
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -250,7 +245,5 @@ module MoneyKit
|
|
250
245
|
value
|
251
246
|
end
|
252
247
|
end
|
253
|
-
|
254
248
|
end
|
255
|
-
|
256
249
|
end
|
@@ -1,29 +1,25 @@
|
|
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 GetAccountNumbersResponse
|
18
|
-
attr_accessor :accounts
|
19
|
-
|
20
|
-
attr_accessor :link
|
16
|
+
attr_accessor :accounts, :link
|
21
17
|
|
22
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
19
|
def self.attribute_map
|
24
20
|
{
|
25
|
-
|
26
|
-
|
21
|
+
'accounts': :accounts,
|
22
|
+
'link': :link
|
27
23
|
}
|
28
24
|
end
|
29
25
|
|
@@ -35,54 +31,50 @@ module MoneyKit
|
|
35
31
|
# Attribute type mapping.
|
36
32
|
def self.openapi_types
|
37
33
|
{
|
38
|
-
|
39
|
-
|
34
|
+
'accounts': :'Array<AccountWithAccountNumbers>',
|
35
|
+
'link': :LinkCommon
|
40
36
|
}
|
41
37
|
end
|
42
38
|
|
43
39
|
# List of attributes with nullable: true
|
44
40
|
def self.openapi_nullable
|
45
|
-
Set.new([
|
46
|
-
])
|
41
|
+
Set.new([])
|
47
42
|
end
|
48
43
|
|
49
44
|
# Initializes the object
|
50
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
46
|
def initialize(attributes = {})
|
52
|
-
|
53
|
-
|
47
|
+
unless attributes.is_a?(Hash)
|
48
|
+
raise ArgumentError,
|
49
|
+
'The input argument (attributes) must be a hash in `MoneyKit::GetAccountNumbersResponse` initialize method'
|
54
50
|
end
|
55
51
|
|
56
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
-
attributes = attributes.each_with_object({})
|
58
|
-
|
59
|
-
|
53
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
+
raise ArgumentError,
|
56
|
+
"`#{k}` is not a valid attribute in `MoneyKit::GetAccountNumbersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
57
|
end
|
61
|
-
h[k.to_sym] = v
|
62
|
-
}
|
63
58
|
|
64
|
-
|
65
|
-
if (value = attributes[:'accounts']).is_a?(Array)
|
66
|
-
self.accounts = value
|
67
|
-
end
|
59
|
+
h[k.to_sym] = v
|
68
60
|
end
|
69
61
|
|
70
|
-
if attributes.key?(:
|
71
|
-
self.
|
62
|
+
if attributes.key?(:accounts) && (value = attributes[:accounts]).is_a?(Array)
|
63
|
+
self.accounts = value
|
72
64
|
end
|
65
|
+
|
66
|
+
return unless attributes.key?(:link)
|
67
|
+
|
68
|
+
self.link = attributes[:link]
|
73
69
|
end
|
74
70
|
|
75
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
72
|
# @return Array for valid properties with the reasons
|
77
73
|
def list_invalid_properties
|
78
|
-
invalid_properties =
|
79
|
-
if @accounts.nil?
|
80
|
-
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
|
81
|
-
end
|
74
|
+
invalid_properties = []
|
75
|
+
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.') if @accounts.nil?
|
82
76
|
|
83
|
-
if @link.nil?
|
84
|
-
invalid_properties.push('invalid value for "link", link cannot be nil.')
|
85
|
-
end
|
77
|
+
invalid_properties.push('invalid value for "link", link cannot be nil.') if @link.nil?
|
86
78
|
|
87
79
|
invalid_properties
|
88
80
|
end
|
@@ -92,22 +84,24 @@ module MoneyKit
|
|
92
84
|
def valid?
|
93
85
|
return false if @accounts.nil?
|
94
86
|
return false if @link.nil?
|
87
|
+
|
95
88
|
true
|
96
89
|
end
|
97
90
|
|
98
91
|
# Checks equality by comparing each attribute.
|
99
92
|
# @param [Object] Object to be compared
|
100
|
-
def ==(
|
101
|
-
return true if
|
102
|
-
|
103
|
-
|
104
|
-
|
93
|
+
def ==(other)
|
94
|
+
return true if equal?(other)
|
95
|
+
|
96
|
+
self.class == other.class &&
|
97
|
+
accounts == other.accounts &&
|
98
|
+
link == other.link
|
105
99
|
end
|
106
100
|
|
107
101
|
# @see the `==` method
|
108
102
|
# @param [Object] Object to be compared
|
109
|
-
def eql?(
|
110
|
-
self ==
|
103
|
+
def eql?(other)
|
104
|
+
self == other
|
111
105
|
end
|
112
106
|
|
113
107
|
# Calculates hash code according to all attributes.
|
@@ -128,18 +122,21 @@ module MoneyKit
|
|
128
122
|
# @return [Object] Returns the model itself
|
129
123
|
def build_from_hash(attributes)
|
130
124
|
return nil unless attributes.is_a?(Hash)
|
125
|
+
|
131
126
|
attributes = attributes.transform_keys(&:to_sym)
|
132
127
|
self.class.openapi_types.each_pair do |key, type|
|
133
128
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
|
-
|
129
|
+
send("#{key}=", nil)
|
135
130
|
elsif type =~ /\AArray<(.*)>/i
|
136
131
|
# check to ensure the input is an array given that the attribute
|
137
132
|
# is documented as an array but the input is not
|
138
133
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
-
|
134
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
135
|
+
_deserialize(::Regexp.last_match(1), v)
|
136
|
+
end)
|
140
137
|
end
|
141
138
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
-
|
139
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
140
|
end
|
144
141
|
end
|
145
142
|
|
@@ -206,7 +203,7 @@ module MoneyKit
|
|
206
203
|
def to_hash
|
207
204
|
hash = {}
|
208
205
|
self.class.attribute_map.each_pair do |attr, param|
|
209
|
-
value =
|
206
|
+
value = send(attr)
|
210
207
|
if value.nil?
|
211
208
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
209
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -234,7 +231,5 @@ module MoneyKit
|
|
234
231
|
value
|
235
232
|
end
|
236
233
|
end
|
237
|
-
|
238
234
|
end
|
239
|
-
|
240
235
|
end
|
@@ -1,29 +1,25 @@
|
|
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 GetAccountResponse
|
18
|
-
attr_accessor :account
|
19
|
-
|
20
|
-
attr_accessor :link
|
16
|
+
attr_accessor :account, :link
|
21
17
|
|
22
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
19
|
def self.attribute_map
|
24
20
|
{
|
25
|
-
|
26
|
-
|
21
|
+
'account': :account,
|
22
|
+
'link': :link
|
27
23
|
}
|
28
24
|
end
|
29
25
|
|
@@ -35,52 +31,48 @@ module MoneyKit
|
|
35
31
|
# Attribute type mapping.
|
36
32
|
def self.openapi_types
|
37
33
|
{
|
38
|
-
|
39
|
-
|
34
|
+
'account': :Account,
|
35
|
+
'link': :Link1
|
40
36
|
}
|
41
37
|
end
|
42
38
|
|
43
39
|
# List of attributes with nullable: true
|
44
40
|
def self.openapi_nullable
|
45
|
-
Set.new([
|
46
|
-
])
|
41
|
+
Set.new([])
|
47
42
|
end
|
48
43
|
|
49
44
|
# Initializes the object
|
50
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
46
|
def initialize(attributes = {})
|
52
|
-
|
53
|
-
|
47
|
+
unless attributes.is_a?(Hash)
|
48
|
+
raise ArgumentError,
|
49
|
+
'The input argument (attributes) must be a hash in `MoneyKit::GetAccountResponse` initialize method'
|
54
50
|
end
|
55
51
|
|
56
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
-
attributes = attributes.each_with_object({})
|
58
|
-
|
59
|
-
|
53
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
+
raise ArgumentError,
|
56
|
+
"`#{k}` is not a valid attribute in `MoneyKit::GetAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
57
|
end
|
61
|
-
h[k.to_sym] = v
|
62
|
-
}
|
63
58
|
|
64
|
-
|
65
|
-
self.account = attributes[:'account']
|
59
|
+
h[k.to_sym] = v
|
66
60
|
end
|
67
61
|
|
68
|
-
if attributes.key?(:
|
69
|
-
|
70
|
-
|
62
|
+
self.account = attributes[:account] if attributes.key?(:account)
|
63
|
+
|
64
|
+
return unless attributes.key?(:link)
|
65
|
+
|
66
|
+
self.link = attributes[:link]
|
71
67
|
end
|
72
68
|
|
73
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
70
|
# @return Array for valid properties with the reasons
|
75
71
|
def list_invalid_properties
|
76
|
-
invalid_properties =
|
77
|
-
if @account.nil?
|
78
|
-
invalid_properties.push('invalid value for "account", account cannot be nil.')
|
79
|
-
end
|
72
|
+
invalid_properties = []
|
73
|
+
invalid_properties.push('invalid value for "account", account cannot be nil.') if @account.nil?
|
80
74
|
|
81
|
-
if @link.nil?
|
82
|
-
invalid_properties.push('invalid value for "link", link cannot be nil.')
|
83
|
-
end
|
75
|
+
invalid_properties.push('invalid value for "link", link cannot be nil.') if @link.nil?
|
84
76
|
|
85
77
|
invalid_properties
|
86
78
|
end
|
@@ -90,22 +82,24 @@ module MoneyKit
|
|
90
82
|
def valid?
|
91
83
|
return false if @account.nil?
|
92
84
|
return false if @link.nil?
|
85
|
+
|
93
86
|
true
|
94
87
|
end
|
95
88
|
|
96
89
|
# Checks equality by comparing each attribute.
|
97
90
|
# @param [Object] Object to be compared
|
98
|
-
def ==(
|
99
|
-
return true if
|
100
|
-
|
101
|
-
|
102
|
-
|
91
|
+
def ==(other)
|
92
|
+
return true if equal?(other)
|
93
|
+
|
94
|
+
self.class == other.class &&
|
95
|
+
account == other.account &&
|
96
|
+
link == other.link
|
103
97
|
end
|
104
98
|
|
105
99
|
# @see the `==` method
|
106
100
|
# @param [Object] Object to be compared
|
107
|
-
def eql?(
|
108
|
-
self ==
|
101
|
+
def eql?(other)
|
102
|
+
self == other
|
109
103
|
end
|
110
104
|
|
111
105
|
# Calculates hash code according to all attributes.
|
@@ -126,18 +120,21 @@ module MoneyKit
|
|
126
120
|
# @return [Object] Returns the model itself
|
127
121
|
def build_from_hash(attributes)
|
128
122
|
return nil unless attributes.is_a?(Hash)
|
123
|
+
|
129
124
|
attributes = attributes.transform_keys(&:to_sym)
|
130
125
|
self.class.openapi_types.each_pair do |key, type|
|
131
126
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
132
|
-
|
127
|
+
send("#{key}=", nil)
|
133
128
|
elsif type =~ /\AArray<(.*)>/i
|
134
129
|
# check to ensure the input is an array given that the attribute
|
135
130
|
# is documented as an array but the input is not
|
136
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
-
|
132
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
133
|
+
_deserialize(::Regexp.last_match(1), v)
|
134
|
+
end)
|
138
135
|
end
|
139
136
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
|
-
|
137
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
141
138
|
end
|
142
139
|
end
|
143
140
|
|
@@ -204,7 +201,7 @@ module MoneyKit
|
|
204
201
|
def to_hash
|
205
202
|
hash = {}
|
206
203
|
self.class.attribute_map.each_pair do |attr, param|
|
207
|
-
value =
|
204
|
+
value = send(attr)
|
208
205
|
if value.nil?
|
209
206
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
210
207
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -232,7 +229,5 @@ module MoneyKit
|
|
232
229
|
value
|
233
230
|
end
|
234
231
|
end
|
235
|
-
|
236
232
|
end
|
237
|
-
|
238
233
|
end
|