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
data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb
CHANGED
@@ -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 be used with the request. If specified, `options` must not be `null`.
|
18
17
|
class TransactionsGetRequestOptions
|
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.
|
@@ -34,11 +33,11 @@ module MoneyKit::PlaidCompatible
|
|
34
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
34
|
def self.attribute_map
|
36
35
|
{
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
'account_ids': :account_ids,
|
37
|
+
'count': :count,
|
38
|
+
'offset': :offset,
|
39
|
+
'include_original_description': :include_original_description,
|
40
|
+
'include_personal_finance_category': :include_personal_finance_category
|
42
41
|
}
|
43
42
|
end
|
44
43
|
|
@@ -50,68 +49,64 @@ module MoneyKit::PlaidCompatible
|
|
50
49
|
# Attribute type mapping.
|
51
50
|
def self.openapi_types
|
52
51
|
{
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
'account_ids': :'Array<String>',
|
53
|
+
'count': :Integer,
|
54
|
+
'offset': :Integer,
|
55
|
+
'include_original_description': :Boolean,
|
56
|
+
'include_personal_finance_category': :Boolean
|
58
57
|
}
|
59
58
|
end
|
60
59
|
|
61
60
|
# List of attributes with nullable: true
|
62
61
|
def self.openapi_nullable
|
63
|
-
Set.new([
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
62
|
+
Set.new(%i[
|
63
|
+
account_ids
|
64
|
+
count
|
65
|
+
offset
|
66
|
+
include_original_description
|
67
|
+
include_personal_finance_category
|
68
|
+
])
|
70
69
|
end
|
71
70
|
|
72
71
|
# Initializes the object
|
73
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
73
|
def initialize(attributes = {})
|
75
|
-
|
76
|
-
|
74
|
+
unless attributes.is_a?(Hash)
|
75
|
+
raise ArgumentError,
|
76
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsGetRequestOptions` initialize method'
|
77
77
|
end
|
78
78
|
|
79
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
|
-
attributes = attributes.each_with_object({})
|
81
|
-
|
82
|
-
|
80
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
81
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
82
|
+
raise ArgumentError,
|
83
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsGetRequestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
84
|
end
|
84
|
-
h[k.to_sym] = v
|
85
|
-
}
|
86
85
|
|
87
|
-
|
88
|
-
if (value = attributes[:'account_ids']).is_a?(Array)
|
89
|
-
self.account_ids = value
|
90
|
-
end
|
86
|
+
h[k.to_sym] = v
|
91
87
|
end
|
92
88
|
|
93
|
-
if attributes.key?(:
|
94
|
-
self.
|
89
|
+
if attributes.key?(:account_ids) && (value = attributes[:account_ids]).is_a?(Array)
|
90
|
+
self.account_ids = value
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:
|
98
|
-
self.offset = attributes[:'offset']
|
99
|
-
end
|
93
|
+
self.count = attributes[:count] if attributes.key?(:count)
|
100
94
|
|
101
|
-
if attributes.key?(:
|
102
|
-
self.include_original_description = attributes[:'include_original_description']
|
103
|
-
end
|
95
|
+
self.offset = attributes[:offset] if attributes.key?(:offset)
|
104
96
|
|
105
|
-
if attributes.key?(:
|
106
|
-
self.
|
97
|
+
if attributes.key?(:include_original_description)
|
98
|
+
self.include_original_description = attributes[:include_original_description]
|
107
99
|
end
|
100
|
+
|
101
|
+
return unless attributes.key?(:include_personal_finance_category)
|
102
|
+
|
103
|
+
self.include_personal_finance_category = attributes[:include_personal_finance_category]
|
108
104
|
end
|
109
105
|
|
110
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
111
107
|
# @return Array for valid properties with the reasons
|
112
108
|
def list_invalid_properties
|
113
|
-
|
114
|
-
invalid_properties
|
109
|
+
[]
|
115
110
|
end
|
116
111
|
|
117
112
|
# Check to see if the all the properties in the model are valid
|
@@ -122,20 +117,21 @@ module MoneyKit::PlaidCompatible
|
|
122
117
|
|
123
118
|
# Checks equality by comparing each attribute.
|
124
119
|
# @param [Object] Object to be compared
|
125
|
-
def ==(
|
126
|
-
return true if
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
120
|
+
def ==(other)
|
121
|
+
return true if equal?(other)
|
122
|
+
|
123
|
+
self.class == other.class &&
|
124
|
+
account_ids == other.account_ids &&
|
125
|
+
count == other.count &&
|
126
|
+
offset == other.offset &&
|
127
|
+
include_original_description == other.include_original_description &&
|
128
|
+
include_personal_finance_category == other.include_personal_finance_category
|
133
129
|
end
|
134
130
|
|
135
131
|
# @see the `==` method
|
136
132
|
# @param [Object] Object to be compared
|
137
|
-
def eql?(
|
138
|
-
self ==
|
133
|
+
def eql?(other)
|
134
|
+
self == other
|
139
135
|
end
|
140
136
|
|
141
137
|
# Calculates hash code according to all attributes.
|
@@ -156,17 +152,20 @@ module MoneyKit::PlaidCompatible
|
|
156
152
|
# @return [Object] Returns the model itself
|
157
153
|
def build_from_hash(attributes)
|
158
154
|
return nil unless attributes.is_a?(Hash)
|
155
|
+
|
159
156
|
self.class.openapi_types.each_pair do |key, type|
|
160
157
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
161
|
-
|
158
|
+
send("#{key}=", nil)
|
162
159
|
elsif type =~ /\AArray<(.*)>/i
|
163
160
|
# check to ensure the input is an array given that the attribute
|
164
161
|
# is documented as an array but the input is not
|
165
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
166
|
-
|
163
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
164
|
+
_deserialize(::Regexp.last_match(1), v)
|
165
|
+
end)
|
167
166
|
end
|
168
167
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
169
|
-
|
168
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
170
169
|
end
|
171
170
|
end
|
172
171
|
|
@@ -233,7 +232,7 @@ module MoneyKit::PlaidCompatible
|
|
233
232
|
def to_hash
|
234
233
|
hash = {}
|
235
234
|
self.class.attribute_map.each_pair do |attr, param|
|
236
|
-
value =
|
235
|
+
value = send(attr)
|
237
236
|
if value.nil?
|
238
237
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
239
238
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -261,7 +260,6 @@ module MoneyKit::PlaidCompatible
|
|
261
260
|
value
|
262
261
|
end
|
263
262
|
end
|
264
|
-
|
265
263
|
end
|
266
|
-
|
264
|
+
end
|
267
265
|
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
|
# TransactionsGetResponse defines the response schema for `/transactions/get`
|
18
17
|
class TransactionsGetResponse
|
19
18
|
# An array containing the `accounts` associated with the Item for which transactions are being returned. Each transaction can be mapped to its corresponding account via the `account_id` field.
|
@@ -33,11 +32,11 @@ module MoneyKit::PlaidCompatible
|
|
33
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
33
|
def self.attribute_map
|
35
34
|
{
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
35
|
+
'accounts': :accounts,
|
36
|
+
'transactions': :transactions,
|
37
|
+
'total_transactions': :total_transactions,
|
38
|
+
'item': :item,
|
39
|
+
'request_id': :request_id
|
41
40
|
}
|
42
41
|
end
|
43
42
|
|
@@ -49,83 +48,69 @@ module MoneyKit::PlaidCompatible
|
|
49
48
|
# Attribute type mapping.
|
50
49
|
def self.openapi_types
|
51
50
|
{
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
'accounts': :'Array<AccountBase>',
|
52
|
+
'transactions': :'Array<Transaction>',
|
53
|
+
'total_transactions': :Integer,
|
54
|
+
'item': :Item,
|
55
|
+
'request_id': :String
|
57
56
|
}
|
58
57
|
end
|
59
58
|
|
60
59
|
# List of attributes with nullable: true
|
61
60
|
def self.openapi_nullable
|
62
|
-
Set.new([
|
63
|
-
])
|
61
|
+
Set.new([])
|
64
62
|
end
|
65
63
|
|
66
64
|
# Initializes the object
|
67
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
66
|
def initialize(attributes = {})
|
69
|
-
|
70
|
-
|
67
|
+
unless attributes.is_a?(Hash)
|
68
|
+
raise ArgumentError,
|
69
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsGetResponse` initialize method'
|
71
70
|
end
|
72
71
|
|
73
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
-
attributes = attributes.each_with_object({})
|
75
|
-
|
76
|
-
|
73
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
74
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
75
|
+
raise ArgumentError,
|
76
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
77
|
end
|
78
|
-
h[k.to_sym] = v
|
79
|
-
}
|
80
78
|
|
81
|
-
|
82
|
-
if (value = attributes[:'accounts']).is_a?(Array)
|
83
|
-
self.accounts = value
|
84
|
-
end
|
79
|
+
h[k.to_sym] = v
|
85
80
|
end
|
86
81
|
|
87
|
-
if attributes.key?(:
|
88
|
-
|
89
|
-
self.transactions = value
|
90
|
-
end
|
82
|
+
if attributes.key?(:accounts) && (value = attributes[:accounts]).is_a?(Array)
|
83
|
+
self.accounts = value
|
91
84
|
end
|
92
85
|
|
93
|
-
if attributes.key?(:
|
94
|
-
self.
|
86
|
+
if attributes.key?(:transactions) && (value = attributes[:transactions]).is_a?(Array)
|
87
|
+
self.transactions = value
|
95
88
|
end
|
96
89
|
|
97
|
-
if attributes.key?(:
|
98
|
-
self.item = attributes[:'item']
|
99
|
-
end
|
90
|
+
self.total_transactions = attributes[:total_transactions] if attributes.key?(:total_transactions)
|
100
91
|
|
101
|
-
if attributes.key?(:
|
102
|
-
|
103
|
-
|
92
|
+
self.item = attributes[:item] if attributes.key?(:item)
|
93
|
+
|
94
|
+
return unless attributes.key?(:request_id)
|
95
|
+
|
96
|
+
self.request_id = attributes[:request_id]
|
104
97
|
end
|
105
98
|
|
106
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
107
100
|
# @return Array for valid properties with the reasons
|
108
101
|
def list_invalid_properties
|
109
|
-
invalid_properties =
|
110
|
-
if @accounts.nil?
|
111
|
-
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
|
112
|
-
end
|
102
|
+
invalid_properties = []
|
103
|
+
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.') if @accounts.nil?
|
113
104
|
|
114
|
-
if @transactions.nil?
|
115
|
-
invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
|
116
|
-
end
|
105
|
+
invalid_properties.push('invalid value for "transactions", transactions cannot be nil.') if @transactions.nil?
|
117
106
|
|
118
107
|
if @total_transactions.nil?
|
119
108
|
invalid_properties.push('invalid value for "total_transactions", total_transactions cannot be nil.')
|
120
109
|
end
|
121
110
|
|
122
|
-
if @item.nil?
|
123
|
-
invalid_properties.push('invalid value for "item", item cannot be nil.')
|
124
|
-
end
|
111
|
+
invalid_properties.push('invalid value for "item", item cannot be nil.') if @item.nil?
|
125
112
|
|
126
|
-
if @request_id.nil?
|
127
|
-
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
128
|
-
end
|
113
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') if @request_id.nil?
|
129
114
|
|
130
115
|
invalid_properties
|
131
116
|
end
|
@@ -138,25 +123,27 @@ module MoneyKit::PlaidCompatible
|
|
138
123
|
return false if @total_transactions.nil?
|
139
124
|
return false if @item.nil?
|
140
125
|
return false if @request_id.nil?
|
126
|
+
|
141
127
|
true
|
142
128
|
end
|
143
129
|
|
144
130
|
# Checks equality by comparing each attribute.
|
145
131
|
# @param [Object] Object to be compared
|
146
|
-
def ==(
|
147
|
-
return true if
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
132
|
+
def ==(other)
|
133
|
+
return true if equal?(other)
|
134
|
+
|
135
|
+
self.class == other.class &&
|
136
|
+
accounts == other.accounts &&
|
137
|
+
transactions == other.transactions &&
|
138
|
+
total_transactions == other.total_transactions &&
|
139
|
+
item == other.item &&
|
140
|
+
request_id == other.request_id
|
154
141
|
end
|
155
142
|
|
156
143
|
# @see the `==` method
|
157
144
|
# @param [Object] Object to be compared
|
158
|
-
def eql?(
|
159
|
-
self ==
|
145
|
+
def eql?(other)
|
146
|
+
self == other
|
160
147
|
end
|
161
148
|
|
162
149
|
# Calculates hash code according to all attributes.
|
@@ -177,17 +164,20 @@ module MoneyKit::PlaidCompatible
|
|
177
164
|
# @return [Object] Returns the model itself
|
178
165
|
def build_from_hash(attributes)
|
179
166
|
return nil unless attributes.is_a?(Hash)
|
167
|
+
|
180
168
|
self.class.openapi_types.each_pair do |key, type|
|
181
169
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
182
|
-
|
170
|
+
send("#{key}=", nil)
|
183
171
|
elsif type =~ /\AArray<(.*)>/i
|
184
172
|
# check to ensure the input is an array given that the attribute
|
185
173
|
# is documented as an array but the input is not
|
186
174
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
187
|
-
|
175
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
176
|
+
_deserialize(::Regexp.last_match(1), v)
|
177
|
+
end)
|
188
178
|
end
|
189
179
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
190
|
-
|
180
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
191
181
|
end
|
192
182
|
end
|
193
183
|
|
@@ -254,7 +244,7 @@ module MoneyKit::PlaidCompatible
|
|
254
244
|
def to_hash
|
255
245
|
hash = {}
|
256
246
|
self.class.attribute_map.each_pair do |attr, param|
|
257
|
-
value =
|
247
|
+
value = send(attr)
|
258
248
|
if value.nil?
|
259
249
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
260
250
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -282,7 +272,6 @@ module MoneyKit::PlaidCompatible
|
|
282
272
|
value
|
283
273
|
end
|
284
274
|
end
|
285
|
-
|
286
275
|
end
|
287
|
-
|
276
|
+
end
|
288
277
|
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
|
# TransactionsRefreshRequest defines the request schema for `/transactions/refresh`
|
18
17
|
class TransactionsRefreshRequest
|
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.
|
@@ -28,9 +27,9 @@ module MoneyKit::PlaidCompatible
|
|
28
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
28
|
def self.attribute_map
|
30
29
|
{
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
'client_id': :client_id,
|
31
|
+
'access_token': :access_token,
|
32
|
+
'secret': :secret
|
34
33
|
}
|
35
34
|
end
|
36
35
|
|
@@ -42,55 +41,52 @@ module MoneyKit::PlaidCompatible
|
|
42
41
|
# Attribute type mapping.
|
43
42
|
def self.openapi_types
|
44
43
|
{
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
'client_id': :String,
|
45
|
+
'access_token': :String,
|
46
|
+
'secret': :String
|
48
47
|
}
|
49
48
|
end
|
50
49
|
|
51
50
|
# List of attributes with nullable: true
|
52
51
|
def self.openapi_nullable
|
53
|
-
Set.new([
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
Set.new(%i[
|
53
|
+
client_id
|
54
|
+
secret
|
55
|
+
])
|
57
56
|
end
|
58
57
|
|
59
58
|
# Initializes the object
|
60
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
60
|
def initialize(attributes = {})
|
62
|
-
|
63
|
-
|
61
|
+
unless attributes.is_a?(Hash)
|
62
|
+
raise ArgumentError,
|
63
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsRefreshRequest` initialize method'
|
64
64
|
end
|
65
65
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({})
|
68
|
-
|
69
|
-
|
67
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
68
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
69
|
+
raise ArgumentError,
|
70
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsRefreshRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
71
|
end
|
71
|
-
h[k.to_sym] = v
|
72
|
-
}
|
73
72
|
|
74
|
-
|
75
|
-
self.client_id = attributes[:'client_id']
|
73
|
+
h[k.to_sym] = v
|
76
74
|
end
|
77
75
|
|
78
|
-
if attributes.key?(:
|
79
|
-
self.access_token = attributes[:'access_token']
|
80
|
-
end
|
76
|
+
self.client_id = attributes[:client_id] if attributes.key?(:client_id)
|
81
77
|
|
82
|
-
if attributes.key?(:
|
83
|
-
|
84
|
-
|
78
|
+
self.access_token = attributes[:access_token] if attributes.key?(:access_token)
|
79
|
+
|
80
|
+
return unless attributes.key?(:secret)
|
81
|
+
|
82
|
+
self.secret = attributes[:secret]
|
85
83
|
end
|
86
84
|
|
87
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
86
|
# @return Array for valid properties with the reasons
|
89
87
|
def list_invalid_properties
|
90
|
-
invalid_properties =
|
91
|
-
if @access_token.nil?
|
92
|
-
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
93
|
-
end
|
88
|
+
invalid_properties = []
|
89
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') if @access_token.nil?
|
94
90
|
|
95
91
|
invalid_properties
|
96
92
|
end
|
@@ -99,23 +95,25 @@ module MoneyKit::PlaidCompatible
|
|
99
95
|
# @return true if the model is valid
|
100
96
|
def valid?
|
101
97
|
return false if @access_token.nil?
|
98
|
+
|
102
99
|
true
|
103
100
|
end
|
104
101
|
|
105
102
|
# Checks equality by comparing each attribute.
|
106
103
|
# @param [Object] Object to be compared
|
107
|
-
def ==(
|
108
|
-
return true if
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
104
|
+
def ==(other)
|
105
|
+
return true if equal?(other)
|
106
|
+
|
107
|
+
self.class == other.class &&
|
108
|
+
client_id == other.client_id &&
|
109
|
+
access_token == other.access_token &&
|
110
|
+
secret == other.secret
|
113
111
|
end
|
114
112
|
|
115
113
|
# @see the `==` method
|
116
114
|
# @param [Object] Object to be compared
|
117
|
-
def eql?(
|
118
|
-
self ==
|
115
|
+
def eql?(other)
|
116
|
+
self == other
|
119
117
|
end
|
120
118
|
|
121
119
|
# Calculates hash code according to all attributes.
|
@@ -136,17 +134,20 @@ module MoneyKit::PlaidCompatible
|
|
136
134
|
# @return [Object] Returns the model itself
|
137
135
|
def build_from_hash(attributes)
|
138
136
|
return nil unless attributes.is_a?(Hash)
|
137
|
+
|
139
138
|
self.class.openapi_types.each_pair do |key, type|
|
140
139
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
141
|
-
|
140
|
+
send("#{key}=", nil)
|
142
141
|
elsif type =~ /\AArray<(.*)>/i
|
143
142
|
# check to ensure the input is an array given that the attribute
|
144
143
|
# is documented as an array but the input is not
|
145
144
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
-
|
145
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
146
|
+
_deserialize(::Regexp.last_match(1), v)
|
147
|
+
end)
|
147
148
|
end
|
148
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
-
|
150
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
150
151
|
end
|
151
152
|
end
|
152
153
|
|
@@ -213,7 +214,7 @@ module MoneyKit::PlaidCompatible
|
|
213
214
|
def to_hash
|
214
215
|
hash = {}
|
215
216
|
self.class.attribute_map.each_pair do |attr, param|
|
216
|
-
value =
|
217
|
+
value = send(attr)
|
217
218
|
if value.nil?
|
218
219
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
220
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -241,7 +242,6 @@ module MoneyKit::PlaidCompatible
|
|
241
242
|
value
|
242
243
|
end
|
243
244
|
end
|
244
|
-
|
245
245
|
end
|
246
|
-
|
246
|
+
end
|
247
247
|
end
|