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
|
# We use standard HTTP response codes for success and failure notifications, and our errors are further classified by `error_type`. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-`null` error object will only be part of an API response when calling `/item/get` to view Item status. Otherwise, error fields will be `null` if no error has occurred; if an error has occurred, an error code will be returned instead.
|
18
17
|
class PlaidError
|
19
18
|
attr_accessor :error_type
|
@@ -45,15 +44,15 @@ module MoneyKit::PlaidCompatible
|
|
45
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
45
|
def self.attribute_map
|
47
46
|
{
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
47
|
+
'error_type': :error_type,
|
48
|
+
'error_code': :error_code,
|
49
|
+
'error_message': :error_message,
|
50
|
+
'display_message': :display_message,
|
51
|
+
'request_id': :request_id,
|
52
|
+
'causes': :causes,
|
53
|
+
'status': :status,
|
54
|
+
'documentation_url': :documentation_url,
|
55
|
+
'suggested_action': :suggested_action
|
57
56
|
}
|
58
57
|
end
|
59
58
|
|
@@ -65,99 +64,80 @@ module MoneyKit::PlaidCompatible
|
|
65
64
|
# Attribute type mapping.
|
66
65
|
def self.openapi_types
|
67
66
|
{
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
67
|
+
'error_type': :PlaidErrorType,
|
68
|
+
'error_code': :String,
|
69
|
+
'error_message': :String,
|
70
|
+
'display_message': :String,
|
71
|
+
'request_id': :String,
|
72
|
+
'causes': :'Array<Object>',
|
73
|
+
'status': :Float,
|
74
|
+
'documentation_url': :String,
|
75
|
+
'suggested_action': :String
|
77
76
|
}
|
78
77
|
end
|
79
78
|
|
80
79
|
# List of attributes with nullable: true
|
81
80
|
def self.openapi_nullable
|
82
|
-
Set.new([
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
81
|
+
Set.new(%i[
|
82
|
+
display_message
|
83
|
+
request_id
|
84
|
+
causes
|
85
|
+
status
|
86
|
+
documentation_url
|
87
|
+
suggested_action
|
88
|
+
])
|
90
89
|
end
|
91
90
|
|
92
91
|
# Initializes the object
|
93
92
|
# @param [Hash] attributes Model attributes in the form of hash
|
94
93
|
def initialize(attributes = {})
|
95
|
-
|
96
|
-
|
94
|
+
unless attributes.is_a?(Hash)
|
95
|
+
raise ArgumentError,
|
96
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::PlaidError` initialize method'
|
97
97
|
end
|
98
98
|
|
99
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
100
|
-
attributes = attributes.each_with_object({})
|
101
|
-
|
102
|
-
|
100
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
101
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
102
|
+
raise ArgumentError,
|
103
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::PlaidError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
103
104
|
end
|
104
|
-
h[k.to_sym] = v
|
105
|
-
}
|
106
105
|
|
107
|
-
|
108
|
-
self.error_type = attributes[:'error_type']
|
106
|
+
h[k.to_sym] = v
|
109
107
|
end
|
110
108
|
|
111
|
-
if attributes.key?(:
|
112
|
-
self.error_code = attributes[:'error_code']
|
113
|
-
end
|
109
|
+
self.error_type = attributes[:error_type] if attributes.key?(:error_type)
|
114
110
|
|
115
|
-
if attributes.key?(:
|
116
|
-
self.error_message = attributes[:'error_message']
|
117
|
-
end
|
111
|
+
self.error_code = attributes[:error_code] if attributes.key?(:error_code)
|
118
112
|
|
119
|
-
if attributes.key?(:
|
120
|
-
self.display_message = attributes[:'display_message']
|
121
|
-
end
|
113
|
+
self.error_message = attributes[:error_message] if attributes.key?(:error_message)
|
122
114
|
|
123
|
-
if attributes.key?(:
|
124
|
-
self.request_id = attributes[:'request_id']
|
125
|
-
end
|
115
|
+
self.display_message = attributes[:display_message] if attributes.key?(:display_message)
|
126
116
|
|
127
|
-
if attributes.key?(:
|
128
|
-
if (value = attributes[:'causes']).is_a?(Array)
|
129
|
-
self.causes = value
|
130
|
-
end
|
131
|
-
end
|
117
|
+
self.request_id = attributes[:request_id] if attributes.key?(:request_id)
|
132
118
|
|
133
|
-
if attributes.key?(:
|
134
|
-
self.
|
119
|
+
if attributes.key?(:causes) && (value = attributes[:causes]).is_a?(Array)
|
120
|
+
self.causes = value
|
135
121
|
end
|
136
122
|
|
137
|
-
if attributes.key?(:
|
138
|
-
self.documentation_url = attributes[:'documentation_url']
|
139
|
-
end
|
123
|
+
self.status = attributes[:status] if attributes.key?(:status)
|
140
124
|
|
141
|
-
if attributes.key?(:
|
142
|
-
|
143
|
-
|
125
|
+
self.documentation_url = attributes[:documentation_url] if attributes.key?(:documentation_url)
|
126
|
+
|
127
|
+
return unless attributes.key?(:suggested_action)
|
128
|
+
|
129
|
+
self.suggested_action = attributes[:suggested_action]
|
144
130
|
end
|
145
131
|
|
146
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
147
133
|
# @return Array for valid properties with the reasons
|
148
134
|
def list_invalid_properties
|
149
|
-
invalid_properties =
|
150
|
-
if @error_type.nil?
|
151
|
-
invalid_properties.push('invalid value for "error_type", error_type cannot be nil.')
|
152
|
-
end
|
135
|
+
invalid_properties = []
|
136
|
+
invalid_properties.push('invalid value for "error_type", error_type cannot be nil.') if @error_type.nil?
|
153
137
|
|
154
|
-
if @error_code.nil?
|
155
|
-
invalid_properties.push('invalid value for "error_code", error_code cannot be nil.')
|
156
|
-
end
|
138
|
+
invalid_properties.push('invalid value for "error_code", error_code cannot be nil.') if @error_code.nil?
|
157
139
|
|
158
|
-
if @error_message.nil?
|
159
|
-
invalid_properties.push('invalid value for "error_message", error_message cannot be nil.')
|
160
|
-
end
|
140
|
+
invalid_properties.push('invalid value for "error_message", error_message cannot be nil.') if @error_message.nil?
|
161
141
|
|
162
142
|
invalid_properties
|
163
143
|
end
|
@@ -168,35 +148,38 @@ module MoneyKit::PlaidCompatible
|
|
168
148
|
return false if @error_type.nil?
|
169
149
|
return false if @error_code.nil?
|
170
150
|
return false if @error_message.nil?
|
151
|
+
|
171
152
|
true
|
172
153
|
end
|
173
154
|
|
174
155
|
# Checks equality by comparing each attribute.
|
175
156
|
# @param [Object] Object to be compared
|
176
|
-
def ==(
|
177
|
-
return true if
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
157
|
+
def ==(other)
|
158
|
+
return true if equal?(other)
|
159
|
+
|
160
|
+
self.class == other.class &&
|
161
|
+
error_type == other.error_type &&
|
162
|
+
error_code == other.error_code &&
|
163
|
+
error_message == other.error_message &&
|
164
|
+
display_message == other.display_message &&
|
165
|
+
request_id == other.request_id &&
|
166
|
+
causes == other.causes &&
|
167
|
+
status == other.status &&
|
168
|
+
documentation_url == other.documentation_url &&
|
169
|
+
suggested_action == other.suggested_action
|
188
170
|
end
|
189
171
|
|
190
172
|
# @see the `==` method
|
191
173
|
# @param [Object] Object to be compared
|
192
|
-
def eql?(
|
193
|
-
self ==
|
174
|
+
def eql?(other)
|
175
|
+
self == other
|
194
176
|
end
|
195
177
|
|
196
178
|
# Calculates hash code according to all attributes.
|
197
179
|
# @return [Integer] Hash code
|
198
180
|
def hash
|
199
|
-
[error_type, error_code, error_message, display_message, request_id, causes, status, documentation_url,
|
181
|
+
[error_type, error_code, error_message, display_message, request_id, causes, status, documentation_url,
|
182
|
+
suggested_action].hash
|
200
183
|
end
|
201
184
|
|
202
185
|
# Builds the object from hash
|
@@ -211,17 +194,20 @@ module MoneyKit::PlaidCompatible
|
|
211
194
|
# @return [Object] Returns the model itself
|
212
195
|
def build_from_hash(attributes)
|
213
196
|
return nil unless attributes.is_a?(Hash)
|
197
|
+
|
214
198
|
self.class.openapi_types.each_pair do |key, type|
|
215
199
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
216
|
-
|
200
|
+
send("#{key}=", nil)
|
217
201
|
elsif type =~ /\AArray<(.*)>/i
|
218
202
|
# check to ensure the input is an array given that the attribute
|
219
203
|
# is documented as an array but the input is not
|
220
204
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
221
|
-
|
205
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
206
|
+
_deserialize(::Regexp.last_match(1), v)
|
207
|
+
end)
|
222
208
|
end
|
223
209
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
224
|
-
|
210
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
225
211
|
end
|
226
212
|
end
|
227
213
|
|
@@ -288,7 +274,7 @@ module MoneyKit::PlaidCompatible
|
|
288
274
|
def to_hash
|
289
275
|
hash = {}
|
290
276
|
self.class.attribute_map.each_pair do |attr, param|
|
291
|
-
value =
|
277
|
+
value = send(attr)
|
292
278
|
if value.nil?
|
293
279
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
294
280
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -316,7 +302,6 @@ module MoneyKit::PlaidCompatible
|
|
316
302
|
value
|
317
303
|
end
|
318
304
|
end
|
319
|
-
|
320
305
|
end
|
321
|
-
|
306
|
+
end
|
322
307
|
end
|
@@ -1,34 +1,33 @@
|
|
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 PlaidErrorType
|
18
|
-
INVALID_REQUEST =
|
19
|
-
INVALID_RESULT =
|
20
|
-
INVALID_INPUT =
|
21
|
-
INSTITUTION_ERROR =
|
22
|
-
RATE_LIMIT_EXCEEDED =
|
23
|
-
API_ERROR =
|
24
|
-
ITEM_ERROR =
|
25
|
-
ASSET_REPORT_ERROR =
|
26
|
-
RECAPTCHA_ERROR =
|
27
|
-
OAUTH_ERROR =
|
28
|
-
PAYMENT_ERROR =
|
29
|
-
BANK_TRANSFER_ERROR =
|
30
|
-
INCOME_VERIFICATION_ERROR =
|
31
|
-
MICRODEPOSITS_ERROR =
|
17
|
+
INVALID_REQUEST = 'INVALID_REQUEST'.freeze
|
18
|
+
INVALID_RESULT = 'INVALID_RESULT'.freeze
|
19
|
+
INVALID_INPUT = 'INVALID_INPUT'.freeze
|
20
|
+
INSTITUTION_ERROR = 'INSTITUTION_ERROR'.freeze
|
21
|
+
RATE_LIMIT_EXCEEDED = 'RATE_LIMIT_EXCEEDED'.freeze
|
22
|
+
API_ERROR = 'API_ERROR'.freeze
|
23
|
+
ITEM_ERROR = 'ITEM_ERROR'.freeze
|
24
|
+
ASSET_REPORT_ERROR = 'ASSET_REPORT_ERROR'.freeze
|
25
|
+
RECAPTCHA_ERROR = 'RECAPTCHA_ERROR'.freeze
|
26
|
+
OAUTH_ERROR = 'OAUTH_ERROR'.freeze
|
27
|
+
PAYMENT_ERROR = 'PAYMENT_ERROR'.freeze
|
28
|
+
BANK_TRANSFER_ERROR = 'BANK_TRANSFER_ERROR'.freeze
|
29
|
+
INCOME_VERIFICATION_ERROR = 'INCOME_VERIFICATION_ERROR'.freeze
|
30
|
+
MICRODEPOSITS_ERROR = 'MICRODEPOSITS_ERROR'.freeze
|
32
31
|
|
33
32
|
# Builds the enum from string
|
34
33
|
# @param [String] The enum value in the form of the string
|
@@ -47,5 +46,5 @@ module MoneyKit::PlaidCompatible
|
|
47
46
|
value
|
48
47
|
end
|
49
48
|
end
|
50
|
-
|
49
|
+
end
|
51
50
|
end
|
@@ -1,24 +1,23 @@
|
|
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 Products
|
18
|
-
TRANSACTIONS =
|
19
|
-
AUTH =
|
20
|
-
IDENTITY =
|
21
|
-
BALANCE =
|
17
|
+
TRANSACTIONS = 'transactions'.freeze
|
18
|
+
AUTH = 'auth'.freeze
|
19
|
+
IDENTITY = 'identity'.freeze
|
20
|
+
BALANCE = 'balance'.freeze
|
22
21
|
|
23
22
|
# Builds the enum from string
|
24
23
|
# @param [String] The enum value in the form of the string
|
@@ -37,5 +36,5 @@ module MoneyKit::PlaidCompatible
|
|
37
36
|
value
|
38
37
|
end
|
39
38
|
end
|
40
|
-
|
39
|
+
end
|
41
40
|
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
|
# A representation of a removed transaction
|
18
17
|
class RemovedTransaction
|
19
18
|
# The ID of the removed transaction.
|
@@ -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
|
+
'transaction_id': :transaction_id
|
26
25
|
}
|
27
26
|
end
|
28
27
|
|
@@ -34,42 +33,44 @@ module MoneyKit::PlaidCompatible
|
|
34
33
|
# Attribute type mapping.
|
35
34
|
def self.openapi_types
|
36
35
|
{
|
37
|
-
|
36
|
+
'transaction_id': :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
|
+
:transaction_id
|
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::RemovedTransaction` 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::RemovedTransaction`. 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
|
-
self.transaction_id = attributes[:'transaction_id']
|
62
|
+
h[k.to_sym] = v
|
65
63
|
end
|
64
|
+
|
65
|
+
return unless attributes.key?(:transaction_id)
|
66
|
+
|
67
|
+
self.transaction_id = attributes[:transaction_id]
|
66
68
|
end
|
67
69
|
|
68
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
69
71
|
# @return Array for valid properties with the reasons
|
70
72
|
def list_invalid_properties
|
71
|
-
|
72
|
-
invalid_properties
|
73
|
+
[]
|
73
74
|
end
|
74
75
|
|
75
76
|
# Check to see if the all the properties in the model are valid
|
@@ -80,16 +81,17 @@ module MoneyKit::PlaidCompatible
|
|
80
81
|
|
81
82
|
# Checks equality by comparing each attribute.
|
82
83
|
# @param [Object] Object to be compared
|
83
|
-
def ==(
|
84
|
-
return true if
|
85
|
-
|
86
|
-
|
84
|
+
def ==(other)
|
85
|
+
return true if equal?(other)
|
86
|
+
|
87
|
+
self.class == other.class &&
|
88
|
+
transaction_id == other.transaction_id
|
87
89
|
end
|
88
90
|
|
89
91
|
# @see the `==` method
|
90
92
|
# @param [Object] Object to be compared
|
91
|
-
def eql?(
|
92
|
-
self ==
|
93
|
+
def eql?(other)
|
94
|
+
self == other
|
93
95
|
end
|
94
96
|
|
95
97
|
# Calculates hash code according to all attributes.
|
@@ -110,17 +112,20 @@ module MoneyKit::PlaidCompatible
|
|
110
112
|
# @return [Object] Returns the model itself
|
111
113
|
def build_from_hash(attributes)
|
112
114
|
return nil unless attributes.is_a?(Hash)
|
115
|
+
|
113
116
|
self.class.openapi_types.each_pair do |key, type|
|
114
117
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
115
|
-
|
118
|
+
send("#{key}=", nil)
|
116
119
|
elsif type =~ /\AArray<(.*)>/i
|
117
120
|
# check to ensure the input is an array given that the attribute
|
118
121
|
# is documented as an array but the input is not
|
119
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
-
|
123
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
124
|
+
_deserialize(::Regexp.last_match(1), v)
|
125
|
+
end)
|
121
126
|
end
|
122
127
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
-
|
128
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
129
|
end
|
125
130
|
end
|
126
131
|
|
@@ -187,7 +192,7 @@ module MoneyKit::PlaidCompatible
|
|
187
192
|
def to_hash
|
188
193
|
hash = {}
|
189
194
|
self.class.attribute_map.each_pair do |attr, param|
|
190
|
-
value =
|
195
|
+
value = send(attr)
|
191
196
|
if value.nil?
|
192
197
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
198
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -215,7 +220,6 @@ module MoneyKit::PlaidCompatible
|
|
215
220
|
value
|
216
221
|
end
|
217
222
|
end
|
218
|
-
|
219
223
|
end
|
220
|
-
|
224
|
+
end
|
221
225
|
end
|