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,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
|
# Information about the last successful and failed transactions update for the Item.
|
18
17
|
class ItemStatusTransactions
|
19
18
|
# [ISO 8601](https://wikipedia.org/wiki/ISO_8601) timestamp of the last successful transactions update for the Item. The status will update each time Plaid successfully connects with the institution, regardless of whether any new data is available in the update.
|
@@ -25,8 +24,8 @@ module MoneyKit::PlaidCompatible
|
|
25
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
25
|
def self.attribute_map
|
27
26
|
{
|
28
|
-
|
29
|
-
|
27
|
+
'last_successful_update': :last_successful_update,
|
28
|
+
'last_failed_update': :last_failed_update
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
@@ -38,48 +37,48 @@ module MoneyKit::PlaidCompatible
|
|
38
37
|
# Attribute type mapping.
|
39
38
|
def self.openapi_types
|
40
39
|
{
|
41
|
-
|
42
|
-
|
40
|
+
'last_successful_update': :Time,
|
41
|
+
'last_failed_update': :Time
|
43
42
|
}
|
44
43
|
end
|
45
44
|
|
46
45
|
# List of attributes with nullable: true
|
47
46
|
def self.openapi_nullable
|
48
|
-
Set.new([
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
Set.new(%i[
|
48
|
+
last_successful_update
|
49
|
+
last_failed_update
|
50
|
+
])
|
52
51
|
end
|
53
52
|
|
54
53
|
# Initializes the object
|
55
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
56
55
|
def initialize(attributes = {})
|
57
|
-
|
58
|
-
|
56
|
+
unless attributes.is_a?(Hash)
|
57
|
+
raise ArgumentError,
|
58
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::ItemStatusTransactions` initialize method'
|
59
59
|
end
|
60
60
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
-
attributes = attributes.each_with_object({})
|
63
|
-
|
64
|
-
|
62
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
63
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
64
|
+
raise ArgumentError,
|
65
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::ItemStatusTransactions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
66
|
end
|
66
|
-
h[k.to_sym] = v
|
67
|
-
}
|
68
67
|
|
69
|
-
|
70
|
-
self.last_successful_update = attributes[:'last_successful_update']
|
68
|
+
h[k.to_sym] = v
|
71
69
|
end
|
72
70
|
|
73
|
-
if attributes.key?(:
|
74
|
-
|
75
|
-
|
71
|
+
self.last_successful_update = attributes[:last_successful_update] if attributes.key?(:last_successful_update)
|
72
|
+
|
73
|
+
return unless attributes.key?(:last_failed_update)
|
74
|
+
|
75
|
+
self.last_failed_update = attributes[:last_failed_update]
|
76
76
|
end
|
77
77
|
|
78
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
|
-
|
82
|
-
invalid_properties
|
81
|
+
[]
|
83
82
|
end
|
84
83
|
|
85
84
|
# Check to see if the all the properties in the model are valid
|
@@ -90,17 +89,18 @@ module MoneyKit::PlaidCompatible
|
|
90
89
|
|
91
90
|
# Checks equality by comparing each attribute.
|
92
91
|
# @param [Object] Object to be compared
|
93
|
-
def ==(
|
94
|
-
return true if
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
def ==(other)
|
93
|
+
return true if equal?(other)
|
94
|
+
|
95
|
+
self.class == other.class &&
|
96
|
+
last_successful_update == other.last_successful_update &&
|
97
|
+
last_failed_update == other.last_failed_update
|
98
98
|
end
|
99
99
|
|
100
100
|
# @see the `==` method
|
101
101
|
# @param [Object] Object to be compared
|
102
|
-
def eql?(
|
103
|
-
self ==
|
102
|
+
def eql?(other)
|
103
|
+
self == other
|
104
104
|
end
|
105
105
|
|
106
106
|
# Calculates hash code according to all attributes.
|
@@ -121,17 +121,20 @@ module MoneyKit::PlaidCompatible
|
|
121
121
|
# @return [Object] Returns the model itself
|
122
122
|
def build_from_hash(attributes)
|
123
123
|
return nil unless attributes.is_a?(Hash)
|
124
|
+
|
124
125
|
self.class.openapi_types.each_pair do |key, type|
|
125
126
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
126
|
-
|
127
|
+
send("#{key}=", nil)
|
127
128
|
elsif type =~ /\AArray<(.*)>/i
|
128
129
|
# check to ensure the input is an array given that the attribute
|
129
130
|
# is documented as an array but the input is not
|
130
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
|
132
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
133
|
+
_deserialize(::Regexp.last_match(1), v)
|
134
|
+
end)
|
132
135
|
end
|
133
136
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
|
-
|
137
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
138
|
end
|
136
139
|
end
|
137
140
|
|
@@ -198,7 +201,7 @@ module MoneyKit::PlaidCompatible
|
|
198
201
|
def to_hash
|
199
202
|
hash = {}
|
200
203
|
self.class.attribute_map.each_pair do |attr, param|
|
201
|
-
value =
|
204
|
+
value = send(attr)
|
202
205
|
if value.nil?
|
203
206
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
207
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -226,7 +229,6 @@ module MoneyKit::PlaidCompatible
|
|
226
229
|
value
|
227
230
|
end
|
228
231
|
end
|
229
|
-
|
230
232
|
end
|
231
|
-
|
233
|
+
end
|
232
234
|
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
|
# LinkTokenCreateRequest defines the request schema for `/link/token/create`
|
18
17
|
class LinkTokenCreateRequest
|
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.
|
@@ -51,17 +50,17 @@ module MoneyKit::PlaidCompatible
|
|
51
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
51
|
def self.attribute_map
|
53
52
|
{
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
53
|
+
'client_id': :client_id,
|
54
|
+
'secret': :secret,
|
55
|
+
'client_name': :client_name,
|
56
|
+
'language': :language,
|
57
|
+
'country_codes': :country_codes,
|
58
|
+
'user': :user,
|
59
|
+
'products': :products,
|
60
|
+
'additional_consented_products': :additional_consented_products,
|
61
|
+
'webhook': :webhook,
|
62
|
+
'access_token': :access_token,
|
63
|
+
'redirect_uri': :redirect_uri
|
65
64
|
}
|
66
65
|
end
|
67
66
|
|
@@ -73,118 +72,93 @@ module MoneyKit::PlaidCompatible
|
|
73
72
|
# Attribute type mapping.
|
74
73
|
def self.openapi_types
|
75
74
|
{
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
75
|
+
'client_id': :String,
|
76
|
+
'secret': :String,
|
77
|
+
'client_name': :String,
|
78
|
+
'language': :String,
|
79
|
+
'country_codes': :'Array<CountryCode>',
|
80
|
+
'user': :LinkTokenCreateRequestUser,
|
81
|
+
'products': :'Array<Products>',
|
82
|
+
'additional_consented_products': :'Array<Products>',
|
83
|
+
'webhook': :String,
|
84
|
+
'access_token': :String,
|
85
|
+
'redirect_uri': :String
|
87
86
|
}
|
88
87
|
end
|
89
88
|
|
90
89
|
# List of attributes with nullable: true
|
91
90
|
def self.openapi_nullable
|
92
|
-
Set.new([
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
91
|
+
Set.new(%i[
|
92
|
+
client_id
|
93
|
+
secret
|
94
|
+
products
|
95
|
+
additional_consented_products
|
96
|
+
webhook
|
97
|
+
access_token
|
98
|
+
redirect_uri
|
99
|
+
])
|
101
100
|
end
|
102
101
|
|
103
102
|
# Initializes the object
|
104
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
105
104
|
def initialize(attributes = {})
|
106
|
-
|
107
|
-
|
105
|
+
unless attributes.is_a?(Hash)
|
106
|
+
raise ArgumentError,
|
107
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::LinkTokenCreateRequest` initialize method'
|
108
108
|
end
|
109
109
|
|
110
110
|
# check to see if the attribute exists and convert string to symbol for hash key
|
111
|
-
attributes = attributes.each_with_object({})
|
112
|
-
|
113
|
-
|
111
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
112
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
113
|
+
raise ArgumentError,
|
114
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::LinkTokenCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
115
|
end
|
115
|
-
h[k.to_sym] = v
|
116
|
-
}
|
117
116
|
|
118
|
-
|
119
|
-
self.client_id = attributes[:'client_id']
|
117
|
+
h[k.to_sym] = v
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:
|
123
|
-
self.secret = attributes[:'secret']
|
124
|
-
end
|
120
|
+
self.client_id = attributes[:client_id] if attributes.key?(:client_id)
|
125
121
|
|
126
|
-
if attributes.key?(:
|
127
|
-
self.client_name = attributes[:'client_name']
|
128
|
-
end
|
122
|
+
self.secret = attributes[:secret] if attributes.key?(:secret)
|
129
123
|
|
130
|
-
if attributes.key?(:
|
131
|
-
self.language = attributes[:'language']
|
132
|
-
end
|
124
|
+
self.client_name = attributes[:client_name] if attributes.key?(:client_name)
|
133
125
|
|
134
|
-
if attributes.key?(:
|
135
|
-
if (value = attributes[:'country_codes']).is_a?(Array)
|
136
|
-
self.country_codes = value
|
137
|
-
end
|
138
|
-
end
|
126
|
+
self.language = attributes[:language] if attributes.key?(:language)
|
139
127
|
|
140
|
-
if attributes.key?(:
|
141
|
-
self.
|
128
|
+
if attributes.key?(:country_codes) && (value = attributes[:country_codes]).is_a?(Array)
|
129
|
+
self.country_codes = value
|
142
130
|
end
|
143
131
|
|
144
|
-
if attributes.key?(:
|
145
|
-
if (value = attributes[:'products']).is_a?(Array)
|
146
|
-
self.products = value
|
147
|
-
end
|
148
|
-
end
|
132
|
+
self.user = attributes[:user] if attributes.key?(:user)
|
149
133
|
|
150
|
-
if attributes.key?(:
|
151
|
-
|
152
|
-
self.additional_consented_products = value
|
153
|
-
end
|
134
|
+
if attributes.key?(:products) && (value = attributes[:products]).is_a?(Array)
|
135
|
+
self.products = value
|
154
136
|
end
|
155
137
|
|
156
|
-
if attributes.key?(:
|
157
|
-
self.
|
138
|
+
if attributes.key?(:additional_consented_products) && (value = attributes[:additional_consented_products]).is_a?(Array)
|
139
|
+
self.additional_consented_products = value
|
158
140
|
end
|
159
141
|
|
160
|
-
if attributes.key?(:
|
161
|
-
self.access_token = attributes[:'access_token']
|
162
|
-
end
|
142
|
+
self.webhook = attributes[:webhook] if attributes.key?(:webhook)
|
163
143
|
|
164
|
-
if attributes.key?(:
|
165
|
-
|
166
|
-
|
144
|
+
self.access_token = attributes[:access_token] if attributes.key?(:access_token)
|
145
|
+
|
146
|
+
return unless attributes.key?(:redirect_uri)
|
147
|
+
|
148
|
+
self.redirect_uri = attributes[:redirect_uri]
|
167
149
|
end
|
168
150
|
|
169
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
170
152
|
# @return Array for valid properties with the reasons
|
171
153
|
def list_invalid_properties
|
172
|
-
invalid_properties =
|
173
|
-
if @client_name.nil?
|
174
|
-
invalid_properties.push('invalid value for "client_name", client_name cannot be nil.')
|
175
|
-
end
|
154
|
+
invalid_properties = []
|
155
|
+
invalid_properties.push('invalid value for "client_name", client_name cannot be nil.') if @client_name.nil?
|
176
156
|
|
177
|
-
if @language.nil?
|
178
|
-
invalid_properties.push('invalid value for "language", language cannot be nil.')
|
179
|
-
end
|
157
|
+
invalid_properties.push('invalid value for "language", language cannot be nil.') if @language.nil?
|
180
158
|
|
181
|
-
if @country_codes.nil?
|
182
|
-
invalid_properties.push('invalid value for "country_codes", country_codes cannot be nil.')
|
183
|
-
end
|
159
|
+
invalid_properties.push('invalid value for "country_codes", country_codes cannot be nil.') if @country_codes.nil?
|
184
160
|
|
185
|
-
if @user.nil?
|
186
|
-
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
187
|
-
end
|
161
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.') if @user.nil?
|
188
162
|
|
189
163
|
invalid_properties
|
190
164
|
end
|
@@ -196,37 +170,40 @@ module MoneyKit::PlaidCompatible
|
|
196
170
|
return false if @language.nil?
|
197
171
|
return false if @country_codes.nil?
|
198
172
|
return false if @user.nil?
|
173
|
+
|
199
174
|
true
|
200
175
|
end
|
201
176
|
|
202
177
|
# Checks equality by comparing each attribute.
|
203
178
|
# @param [Object] Object to be compared
|
204
|
-
def ==(
|
205
|
-
return true if
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
179
|
+
def ==(other)
|
180
|
+
return true if equal?(other)
|
181
|
+
|
182
|
+
self.class == other.class &&
|
183
|
+
client_id == other.client_id &&
|
184
|
+
secret == other.secret &&
|
185
|
+
client_name == other.client_name &&
|
186
|
+
language == other.language &&
|
187
|
+
country_codes == other.country_codes &&
|
188
|
+
user == other.user &&
|
189
|
+
products == other.products &&
|
190
|
+
additional_consented_products == other.additional_consented_products &&
|
191
|
+
webhook == other.webhook &&
|
192
|
+
access_token == other.access_token &&
|
193
|
+
redirect_uri == other.redirect_uri
|
218
194
|
end
|
219
195
|
|
220
196
|
# @see the `==` method
|
221
197
|
# @param [Object] Object to be compared
|
222
|
-
def eql?(
|
223
|
-
self ==
|
198
|
+
def eql?(other)
|
199
|
+
self == other
|
224
200
|
end
|
225
201
|
|
226
202
|
# Calculates hash code according to all attributes.
|
227
203
|
# @return [Integer] Hash code
|
228
204
|
def hash
|
229
|
-
[client_id, secret, client_name, language, country_codes, user, products, additional_consented_products, webhook,
|
205
|
+
[client_id, secret, client_name, language, country_codes, user, products, additional_consented_products, webhook,
|
206
|
+
access_token, redirect_uri].hash
|
230
207
|
end
|
231
208
|
|
232
209
|
# Builds the object from hash
|
@@ -241,17 +218,20 @@ module MoneyKit::PlaidCompatible
|
|
241
218
|
# @return [Object] Returns the model itself
|
242
219
|
def build_from_hash(attributes)
|
243
220
|
return nil unless attributes.is_a?(Hash)
|
221
|
+
|
244
222
|
self.class.openapi_types.each_pair do |key, type|
|
245
223
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
246
|
-
|
224
|
+
send("#{key}=", nil)
|
247
225
|
elsif type =~ /\AArray<(.*)>/i
|
248
226
|
# check to ensure the input is an array given that the attribute
|
249
227
|
# is documented as an array but the input is not
|
250
228
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
251
|
-
|
229
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
230
|
+
_deserialize(::Regexp.last_match(1), v)
|
231
|
+
end)
|
252
232
|
end
|
253
233
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
254
|
-
|
234
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
255
235
|
end
|
256
236
|
end
|
257
237
|
|
@@ -318,7 +298,7 @@ module MoneyKit::PlaidCompatible
|
|
318
298
|
def to_hash
|
319
299
|
hash = {}
|
320
300
|
self.class.attribute_map.each_pair do |attr, param|
|
321
|
-
value =
|
301
|
+
value = send(attr)
|
322
302
|
if value.nil?
|
323
303
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
324
304
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -346,7 +326,6 @@ module MoneyKit::PlaidCompatible
|
|
346
326
|
value
|
347
327
|
end
|
348
328
|
end
|
349
|
-
|
350
329
|
end
|
351
|
-
|
330
|
+
end
|
352
331
|
end
|