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,19 +1,18 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #Plaid Compatibility Layer
|
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: 5.1.1
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
|
-
module MoneyKit
|
14
|
+
module MoneyKit
|
15
|
+
module PlaidCompatible
|
17
16
|
# AuthGetRequest defines the request schema for `/auth/get`
|
18
17
|
class AuthGetRequest
|
19
18
|
# Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.
|
@@ -30,10 +29,10 @@ module MoneyKit::PlaidCompatible
|
|
30
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
30
|
def self.attribute_map
|
32
31
|
{
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
'client_id': :client_id,
|
33
|
+
'secret': :secret,
|
34
|
+
'access_token': :access_token,
|
35
|
+
'options': :options
|
37
36
|
}
|
38
37
|
end
|
39
38
|
|
@@ -45,60 +44,55 @@ module MoneyKit::PlaidCompatible
|
|
45
44
|
# Attribute type mapping.
|
46
45
|
def self.openapi_types
|
47
46
|
{
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
'client_id': :String,
|
48
|
+
'secret': :String,
|
49
|
+
'access_token': :String,
|
50
|
+
'options': :AuthGetRequestOptions
|
52
51
|
}
|
53
52
|
end
|
54
53
|
|
55
54
|
# List of attributes with nullable: true
|
56
55
|
def self.openapi_nullable
|
57
|
-
Set.new([
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
Set.new(%i[
|
57
|
+
client_id
|
58
|
+
secret
|
59
|
+
])
|
61
60
|
end
|
62
61
|
|
63
62
|
# Initializes the object
|
64
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
65
64
|
def initialize(attributes = {})
|
66
|
-
|
67
|
-
|
65
|
+
unless attributes.is_a?(Hash)
|
66
|
+
raise ArgumentError,
|
67
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::AuthGetRequest` initialize method'
|
68
68
|
end
|
69
69
|
|
70
70
|
# check to see if the attribute exists and convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({})
|
72
|
-
|
73
|
-
|
71
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
72
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
73
|
+
raise ArgumentError,
|
74
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::AuthGetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
74
75
|
end
|
75
|
-
h[k.to_sym] = v
|
76
|
-
}
|
77
76
|
|
78
|
-
|
79
|
-
self.client_id = attributes[:'client_id']
|
77
|
+
h[k.to_sym] = v
|
80
78
|
end
|
81
79
|
|
82
|
-
if attributes.key?(:
|
83
|
-
self.secret = attributes[:'secret']
|
84
|
-
end
|
80
|
+
self.client_id = attributes[:client_id] if attributes.key?(:client_id)
|
85
81
|
|
86
|
-
if attributes.key?(:
|
87
|
-
self.access_token = attributes[:'access_token']
|
88
|
-
end
|
82
|
+
self.secret = attributes[:secret] if attributes.key?(:secret)
|
89
83
|
|
90
|
-
if attributes.key?(:
|
91
|
-
|
92
|
-
|
84
|
+
self.access_token = attributes[:access_token] if attributes.key?(:access_token)
|
85
|
+
|
86
|
+
return unless attributes.key?(:options)
|
87
|
+
|
88
|
+
self.options = attributes[:options]
|
93
89
|
end
|
94
90
|
|
95
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
96
92
|
# @return Array for valid properties with the reasons
|
97
93
|
def list_invalid_properties
|
98
|
-
invalid_properties =
|
99
|
-
if @access_token.nil?
|
100
|
-
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
101
|
-
end
|
94
|
+
invalid_properties = []
|
95
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') if @access_token.nil?
|
102
96
|
|
103
97
|
invalid_properties
|
104
98
|
end
|
@@ -107,24 +101,26 @@ module MoneyKit::PlaidCompatible
|
|
107
101
|
# @return true if the model is valid
|
108
102
|
def valid?
|
109
103
|
return false if @access_token.nil?
|
104
|
+
|
110
105
|
true
|
111
106
|
end
|
112
107
|
|
113
108
|
# Checks equality by comparing each attribute.
|
114
109
|
# @param [Object] Object to be compared
|
115
|
-
def ==(
|
116
|
-
return true if
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
110
|
+
def ==(other)
|
111
|
+
return true if equal?(other)
|
112
|
+
|
113
|
+
self.class == other.class &&
|
114
|
+
client_id == other.client_id &&
|
115
|
+
secret == other.secret &&
|
116
|
+
access_token == other.access_token &&
|
117
|
+
options == other.options
|
122
118
|
end
|
123
119
|
|
124
120
|
# @see the `==` method
|
125
121
|
# @param [Object] Object to be compared
|
126
|
-
def eql?(
|
127
|
-
self ==
|
122
|
+
def eql?(other)
|
123
|
+
self == other
|
128
124
|
end
|
129
125
|
|
130
126
|
# Calculates hash code according to all attributes.
|
@@ -145,17 +141,20 @@ module MoneyKit::PlaidCompatible
|
|
145
141
|
# @return [Object] Returns the model itself
|
146
142
|
def build_from_hash(attributes)
|
147
143
|
return nil unless attributes.is_a?(Hash)
|
144
|
+
|
148
145
|
self.class.openapi_types.each_pair do |key, type|
|
149
146
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
150
|
-
|
147
|
+
send("#{key}=", nil)
|
151
148
|
elsif type =~ /\AArray<(.*)>/i
|
152
149
|
# check to ensure the input is an array given that the attribute
|
153
150
|
# is documented as an array but the input is not
|
154
151
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
-
|
152
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
153
|
+
_deserialize(::Regexp.last_match(1), v)
|
154
|
+
end)
|
156
155
|
end
|
157
156
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
-
|
157
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
158
|
end
|
160
159
|
end
|
161
160
|
|
@@ -222,7 +221,7 @@ module MoneyKit::PlaidCompatible
|
|
222
221
|
def to_hash
|
223
222
|
hash = {}
|
224
223
|
self.class.attribute_map.each_pair do |attr, param|
|
225
|
-
value =
|
224
|
+
value = send(attr)
|
226
225
|
if value.nil?
|
227
226
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
227
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -250,7 +249,6 @@ module MoneyKit::PlaidCompatible
|
|
250
249
|
value
|
251
250
|
end
|
252
251
|
end
|
253
|
-
|
254
252
|
end
|
255
|
-
|
253
|
+
end
|
256
254
|
end
|
@@ -1,19 +1,18 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #Plaid Compatibility Layer
|
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: 5.1.1
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
|
-
module MoneyKit
|
14
|
+
module MoneyKit
|
15
|
+
module PlaidCompatible
|
17
16
|
# An optional object to filter `/auth/get` results.
|
18
17
|
class AuthGetRequestOptions
|
19
18
|
# A list of `account_ids` to retrieve for the Item. Note: An error will be returned if a provided `account_id` is not associated with the Item.
|
@@ -22,7 +21,7 @@ module MoneyKit::PlaidCompatible
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
22
|
def self.attribute_map
|
24
23
|
{
|
25
|
-
|
24
|
+
'account_ids': :account_ids
|
26
25
|
}
|
27
26
|
end
|
28
27
|
|
@@ -34,44 +33,45 @@ module MoneyKit::PlaidCompatible
|
|
34
33
|
# Attribute type mapping.
|
35
34
|
def self.openapi_types
|
36
35
|
{
|
37
|
-
|
36
|
+
'account_ids': :'Array<String>'
|
38
37
|
}
|
39
38
|
end
|
40
39
|
|
41
40
|
# List of attributes with nullable: true
|
42
41
|
def self.openapi_nullable
|
43
42
|
Set.new([
|
44
|
-
|
45
|
-
|
43
|
+
:account_ids
|
44
|
+
])
|
46
45
|
end
|
47
46
|
|
48
47
|
# Initializes the object
|
49
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
49
|
def initialize(attributes = {})
|
51
|
-
|
52
|
-
|
50
|
+
unless attributes.is_a?(Hash)
|
51
|
+
raise ArgumentError,
|
52
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::AuthGetRequestOptions` initialize method'
|
53
53
|
end
|
54
54
|
|
55
55
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({})
|
57
|
-
|
58
|
-
|
56
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
57
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
58
|
+
raise ArgumentError,
|
59
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::AuthGetRequestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
60
|
end
|
60
|
-
h[k.to_sym] = v
|
61
|
-
}
|
62
61
|
|
63
|
-
|
64
|
-
if (value = attributes[:'account_ids']).is_a?(Array)
|
65
|
-
self.account_ids = value
|
66
|
-
end
|
62
|
+
h[k.to_sym] = v
|
67
63
|
end
|
64
|
+
|
65
|
+
return unless attributes.key?(:account_ids)
|
66
|
+
return unless (value = attributes[:account_ids]).is_a?(Array)
|
67
|
+
|
68
|
+
self.account_ids = value
|
68
69
|
end
|
69
70
|
|
70
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
72
|
# @return Array for valid properties with the reasons
|
72
73
|
def list_invalid_properties
|
73
|
-
|
74
|
-
invalid_properties
|
74
|
+
[]
|
75
75
|
end
|
76
76
|
|
77
77
|
# Check to see if the all the properties in the model are valid
|
@@ -82,16 +82,17 @@ module MoneyKit::PlaidCompatible
|
|
82
82
|
|
83
83
|
# Checks equality by comparing each attribute.
|
84
84
|
# @param [Object] Object to be compared
|
85
|
-
def ==(
|
86
|
-
return true if
|
87
|
-
|
88
|
-
|
85
|
+
def ==(other)
|
86
|
+
return true if equal?(other)
|
87
|
+
|
88
|
+
self.class == other.class &&
|
89
|
+
account_ids == other.account_ids
|
89
90
|
end
|
90
91
|
|
91
92
|
# @see the `==` method
|
92
93
|
# @param [Object] Object to be compared
|
93
|
-
def eql?(
|
94
|
-
self ==
|
94
|
+
def eql?(other)
|
95
|
+
self == other
|
95
96
|
end
|
96
97
|
|
97
98
|
# Calculates hash code according to all attributes.
|
@@ -112,17 +113,20 @@ module MoneyKit::PlaidCompatible
|
|
112
113
|
# @return [Object] Returns the model itself
|
113
114
|
def build_from_hash(attributes)
|
114
115
|
return nil unless attributes.is_a?(Hash)
|
116
|
+
|
115
117
|
self.class.openapi_types.each_pair do |key, type|
|
116
118
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
117
|
-
|
119
|
+
send("#{key}=", nil)
|
118
120
|
elsif type =~ /\AArray<(.*)>/i
|
119
121
|
# check to ensure the input is an array given that the attribute
|
120
122
|
# is documented as an array but the input is not
|
121
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
-
|
124
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
125
|
+
_deserialize(::Regexp.last_match(1), v)
|
126
|
+
end)
|
123
127
|
end
|
124
128
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
-
|
129
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
126
130
|
end
|
127
131
|
end
|
128
132
|
|
@@ -189,7 +193,7 @@ module MoneyKit::PlaidCompatible
|
|
189
193
|
def to_hash
|
190
194
|
hash = {}
|
191
195
|
self.class.attribute_map.each_pair do |attr, param|
|
192
|
-
value =
|
196
|
+
value = send(attr)
|
193
197
|
if value.nil?
|
194
198
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
199
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -217,7 +221,6 @@ module MoneyKit::PlaidCompatible
|
|
217
221
|
value
|
218
222
|
end
|
219
223
|
end
|
220
|
-
|
221
224
|
end
|
222
|
-
|
225
|
+
end
|
223
226
|
end
|
@@ -1,27 +1,24 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #Plaid Compatibility Layer
|
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: 5.1.1
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
|
-
module MoneyKit
|
14
|
+
module MoneyKit
|
15
|
+
module PlaidCompatible
|
17
16
|
# AuthGetResponse defines the response schema for `/auth/get`
|
18
17
|
class AuthGetResponse
|
19
18
|
# The `accounts` for which numbers are being retrieved.
|
20
19
|
attr_accessor :accounts
|
21
20
|
|
22
|
-
attr_accessor :numbers
|
23
|
-
|
24
|
-
attr_accessor :item
|
21
|
+
attr_accessor :numbers, :item
|
25
22
|
|
26
23
|
# A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
|
27
24
|
attr_accessor :request_id
|
@@ -29,10 +26,10 @@ module MoneyKit::PlaidCompatible
|
|
29
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
27
|
def self.attribute_map
|
31
28
|
{
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
'accounts': :accounts,
|
30
|
+
'numbers': :numbers,
|
31
|
+
'item': :item,
|
32
|
+
'request_id': :request_id
|
36
33
|
}
|
37
34
|
end
|
38
35
|
|
@@ -44,72 +41,60 @@ module MoneyKit::PlaidCompatible
|
|
44
41
|
# Attribute type mapping.
|
45
42
|
def self.openapi_types
|
46
43
|
{
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
'accounts': :'Array<AccountBase>',
|
45
|
+
'numbers': :AuthGetNumbers,
|
46
|
+
'item': :Item,
|
47
|
+
'request_id': :String
|
51
48
|
}
|
52
49
|
end
|
53
50
|
|
54
51
|
# List of attributes with nullable: true
|
55
52
|
def self.openapi_nullable
|
56
|
-
Set.new([
|
57
|
-
])
|
53
|
+
Set.new([])
|
58
54
|
end
|
59
55
|
|
60
56
|
# Initializes the object
|
61
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
58
|
def initialize(attributes = {})
|
63
|
-
|
64
|
-
|
59
|
+
unless attributes.is_a?(Hash)
|
60
|
+
raise ArgumentError,
|
61
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::AuthGetResponse` initialize method'
|
65
62
|
end
|
66
63
|
|
67
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
|
-
attributes = attributes.each_with_object({})
|
69
|
-
|
70
|
-
|
65
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
66
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
67
|
+
raise ArgumentError,
|
68
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::AuthGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
69
|
end
|
72
|
-
h[k.to_sym] = v
|
73
|
-
}
|
74
70
|
|
75
|
-
|
76
|
-
if (value = attributes[:'accounts']).is_a?(Array)
|
77
|
-
self.accounts = value
|
78
|
-
end
|
71
|
+
h[k.to_sym] = v
|
79
72
|
end
|
80
73
|
|
81
|
-
if attributes.key?(:
|
82
|
-
self.
|
74
|
+
if attributes.key?(:accounts) && (value = attributes[:accounts]).is_a?(Array)
|
75
|
+
self.accounts = value
|
83
76
|
end
|
84
77
|
|
85
|
-
if attributes.key?(:
|
86
|
-
self.item = attributes[:'item']
|
87
|
-
end
|
78
|
+
self.numbers = attributes[:numbers] if attributes.key?(:numbers)
|
88
79
|
|
89
|
-
if attributes.key?(:
|
90
|
-
|
91
|
-
|
80
|
+
self.item = attributes[:item] if attributes.key?(:item)
|
81
|
+
|
82
|
+
return unless attributes.key?(:request_id)
|
83
|
+
|
84
|
+
self.request_id = attributes[:request_id]
|
92
85
|
end
|
93
86
|
|
94
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
95
88
|
# @return Array for valid properties with the reasons
|
96
89
|
def list_invalid_properties
|
97
|
-
invalid_properties =
|
98
|
-
if @accounts.nil?
|
99
|
-
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
|
100
|
-
end
|
90
|
+
invalid_properties = []
|
91
|
+
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.') if @accounts.nil?
|
101
92
|
|
102
|
-
if @numbers.nil?
|
103
|
-
invalid_properties.push('invalid value for "numbers", numbers cannot be nil.')
|
104
|
-
end
|
93
|
+
invalid_properties.push('invalid value for "numbers", numbers cannot be nil.') if @numbers.nil?
|
105
94
|
|
106
|
-
if @item.nil?
|
107
|
-
invalid_properties.push('invalid value for "item", item cannot be nil.')
|
108
|
-
end
|
95
|
+
invalid_properties.push('invalid value for "item", item cannot be nil.') if @item.nil?
|
109
96
|
|
110
|
-
if @request_id.nil?
|
111
|
-
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
112
|
-
end
|
97
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') if @request_id.nil?
|
113
98
|
|
114
99
|
invalid_properties
|
115
100
|
end
|
@@ -121,24 +106,26 @@ module MoneyKit::PlaidCompatible
|
|
121
106
|
return false if @numbers.nil?
|
122
107
|
return false if @item.nil?
|
123
108
|
return false if @request_id.nil?
|
109
|
+
|
124
110
|
true
|
125
111
|
end
|
126
112
|
|
127
113
|
# Checks equality by comparing each attribute.
|
128
114
|
# @param [Object] Object to be compared
|
129
|
-
def ==(
|
130
|
-
return true if
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
115
|
+
def ==(other)
|
116
|
+
return true if equal?(other)
|
117
|
+
|
118
|
+
self.class == other.class &&
|
119
|
+
accounts == other.accounts &&
|
120
|
+
numbers == other.numbers &&
|
121
|
+
item == other.item &&
|
122
|
+
request_id == other.request_id
|
136
123
|
end
|
137
124
|
|
138
125
|
# @see the `==` method
|
139
126
|
# @param [Object] Object to be compared
|
140
|
-
def eql?(
|
141
|
-
self ==
|
127
|
+
def eql?(other)
|
128
|
+
self == other
|
142
129
|
end
|
143
130
|
|
144
131
|
# Calculates hash code according to all attributes.
|
@@ -159,17 +146,20 @@ module MoneyKit::PlaidCompatible
|
|
159
146
|
# @return [Object] Returns the model itself
|
160
147
|
def build_from_hash(attributes)
|
161
148
|
return nil unless attributes.is_a?(Hash)
|
149
|
+
|
162
150
|
self.class.openapi_types.each_pair do |key, type|
|
163
151
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
164
|
-
|
152
|
+
send("#{key}=", nil)
|
165
153
|
elsif type =~ /\AArray<(.*)>/i
|
166
154
|
# check to ensure the input is an array given that the attribute
|
167
155
|
# is documented as an array but the input is not
|
168
156
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
169
|
-
|
157
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
158
|
+
_deserialize(::Regexp.last_match(1), v)
|
159
|
+
end)
|
170
160
|
end
|
171
161
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
172
|
-
|
162
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
173
163
|
end
|
174
164
|
end
|
175
165
|
|
@@ -236,7 +226,7 @@ module MoneyKit::PlaidCompatible
|
|
236
226
|
def to_hash
|
237
227
|
hash = {}
|
238
228
|
self.class.attribute_map.each_pair do |attr, param|
|
239
|
-
value =
|
229
|
+
value = send(attr)
|
240
230
|
if value.nil?
|
241
231
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
232
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -264,7 +254,6 @@ module MoneyKit::PlaidCompatible
|
|
264
254
|
value
|
265
255
|
end
|
266
256
|
end
|
267
|
-
|
268
257
|
end
|
269
|
-
|
258
|
+
end
|
270
259
|
end
|
@@ -1,23 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #Plaid Compatibility Layer
|
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: 5.1.1
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
|
-
module MoneyKit
|
14
|
+
module MoneyKit
|
15
|
+
module PlaidCompatible
|
17
16
|
class CountryCode
|
18
|
-
CA =
|
19
|
-
GB =
|
20
|
-
US =
|
17
|
+
CA = 'CA'.freeze
|
18
|
+
GB = 'GB'.freeze
|
19
|
+
US = 'US'.freeze
|
21
20
|
|
22
21
|
# Builds the enum from string
|
23
22
|
# @param [String] The enum value in the form of the string
|
@@ -36,5 +35,5 @@ module MoneyKit::PlaidCompatible
|
|
36
35
|
value
|
37
36
|
end
|
38
37
|
end
|
39
|
-
|
38
|
+
end
|
40
39
|
end
|