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_refresh_response.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
|
# TransactionsRefreshResponse defines the response schema for `/transactions/refresh`
|
18
17
|
class TransactionsRefreshResponse
|
19
18
|
# A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
|
@@ -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
|
+
'request_id': :request_id
|
26
25
|
}
|
27
26
|
end
|
28
27
|
|
@@ -34,43 +33,43 @@ module MoneyKit::PlaidCompatible
|
|
34
33
|
# Attribute type mapping.
|
35
34
|
def self.openapi_types
|
36
35
|
{
|
37
|
-
|
36
|
+
'request_id': :String
|
38
37
|
}
|
39
38
|
end
|
40
39
|
|
41
40
|
# List of attributes with nullable: true
|
42
41
|
def self.openapi_nullable
|
43
|
-
Set.new([
|
44
|
-
])
|
42
|
+
Set.new([])
|
45
43
|
end
|
46
44
|
|
47
45
|
# Initializes the object
|
48
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
47
|
def initialize(attributes = {})
|
50
|
-
|
51
|
-
|
48
|
+
unless attributes.is_a?(Hash)
|
49
|
+
raise ArgumentError,
|
50
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsRefreshResponse` initialize method'
|
52
51
|
end
|
53
52
|
|
54
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
-
attributes = attributes.each_with_object({})
|
56
|
-
|
57
|
-
|
54
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
55
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
56
|
+
raise ArgumentError,
|
57
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsRefreshResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
|
-
h[k.to_sym] = v
|
60
|
-
}
|
61
59
|
|
62
|
-
|
63
|
-
self.request_id = attributes[:'request_id']
|
60
|
+
h[k.to_sym] = v
|
64
61
|
end
|
62
|
+
|
63
|
+
return unless attributes.key?(:request_id)
|
64
|
+
|
65
|
+
self.request_id = attributes[:request_id]
|
65
66
|
end
|
66
67
|
|
67
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
69
|
# @return Array for valid properties with the reasons
|
69
70
|
def list_invalid_properties
|
70
|
-
invalid_properties =
|
71
|
-
if @request_id.nil?
|
72
|
-
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
|
73
|
-
end
|
71
|
+
invalid_properties = []
|
72
|
+
invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') if @request_id.nil?
|
74
73
|
|
75
74
|
invalid_properties
|
76
75
|
end
|
@@ -79,21 +78,23 @@ module MoneyKit::PlaidCompatible
|
|
79
78
|
# @return true if the model is valid
|
80
79
|
def valid?
|
81
80
|
return false if @request_id.nil?
|
81
|
+
|
82
82
|
true
|
83
83
|
end
|
84
84
|
|
85
85
|
# Checks equality by comparing each attribute.
|
86
86
|
# @param [Object] Object to be compared
|
87
|
-
def ==(
|
88
|
-
return true if
|
89
|
-
|
90
|
-
|
87
|
+
def ==(other)
|
88
|
+
return true if equal?(other)
|
89
|
+
|
90
|
+
self.class == other.class &&
|
91
|
+
request_id == other.request_id
|
91
92
|
end
|
92
93
|
|
93
94
|
# @see the `==` method
|
94
95
|
# @param [Object] Object to be compared
|
95
|
-
def eql?(
|
96
|
-
self ==
|
96
|
+
def eql?(other)
|
97
|
+
self == other
|
97
98
|
end
|
98
99
|
|
99
100
|
# Calculates hash code according to all attributes.
|
@@ -114,17 +115,20 @@ module MoneyKit::PlaidCompatible
|
|
114
115
|
# @return [Object] Returns the model itself
|
115
116
|
def build_from_hash(attributes)
|
116
117
|
return nil unless attributes.is_a?(Hash)
|
118
|
+
|
117
119
|
self.class.openapi_types.each_pair do |key, type|
|
118
120
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
119
|
-
|
121
|
+
send("#{key}=", nil)
|
120
122
|
elsif type =~ /\AArray<(.*)>/i
|
121
123
|
# check to ensure the input is an array given that the attribute
|
122
124
|
# is documented as an array but the input is not
|
123
125
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
-
|
126
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
127
|
+
_deserialize(::Regexp.last_match(1), v)
|
128
|
+
end)
|
125
129
|
end
|
126
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
-
|
131
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
132
|
end
|
129
133
|
end
|
130
134
|
|
@@ -191,7 +195,7 @@ module MoneyKit::PlaidCompatible
|
|
191
195
|
def to_hash
|
192
196
|
hash = {}
|
193
197
|
self.class.attribute_map.each_pair do |attr, param|
|
194
|
-
value =
|
198
|
+
value = send(attr)
|
195
199
|
if value.nil?
|
196
200
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
197
201
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -219,7 +223,6 @@ module MoneyKit::PlaidCompatible
|
|
219
223
|
value
|
220
224
|
end
|
221
225
|
end
|
222
|
-
|
223
226
|
end
|
224
|
-
|
227
|
+
end
|
225
228
|
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
|
# TransactionsSyncRequest defines the request schema for `/transactions/sync`
|
18
17
|
class TransactionsSyncRequest
|
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.
|
@@ -36,12 +35,12 @@ module MoneyKit::PlaidCompatible
|
|
36
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
36
|
def self.attribute_map
|
38
37
|
{
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
'client_id': :client_id,
|
39
|
+
'access_token': :access_token,
|
40
|
+
'secret': :secret,
|
41
|
+
'cursor': :cursor,
|
42
|
+
'count': :count,
|
43
|
+
'options': :options
|
45
44
|
}
|
46
45
|
end
|
47
46
|
|
@@ -53,72 +52,63 @@ module MoneyKit::PlaidCompatible
|
|
53
52
|
# Attribute type mapping.
|
54
53
|
def self.openapi_types
|
55
54
|
{
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
'client_id': :String,
|
56
|
+
'access_token': :String,
|
57
|
+
'secret': :String,
|
58
|
+
'cursor': :String,
|
59
|
+
'count': :Integer,
|
60
|
+
'options': :TransactionsSyncRequestOptions
|
62
61
|
}
|
63
62
|
end
|
64
63
|
|
65
64
|
# List of attributes with nullable: true
|
66
65
|
def self.openapi_nullable
|
67
|
-
Set.new([
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
Set.new(%i[
|
67
|
+
client_id
|
68
|
+
secret
|
69
|
+
cursor
|
70
|
+
count
|
71
|
+
])
|
73
72
|
end
|
74
73
|
|
75
74
|
# Initializes the object
|
76
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
77
76
|
def initialize(attributes = {})
|
78
|
-
|
79
|
-
|
77
|
+
unless attributes.is_a?(Hash)
|
78
|
+
raise ArgumentError,
|
79
|
+
'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsSyncRequest` initialize method'
|
80
80
|
end
|
81
81
|
|
82
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({})
|
84
|
-
|
85
|
-
|
83
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
84
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
85
|
+
raise ArgumentError,
|
86
|
+
"`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsSyncRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
86
87
|
end
|
87
|
-
h[k.to_sym] = v
|
88
|
-
}
|
89
88
|
|
90
|
-
|
91
|
-
self.client_id = attributes[:'client_id']
|
89
|
+
h[k.to_sym] = v
|
92
90
|
end
|
93
91
|
|
94
|
-
if attributes.key?(:
|
95
|
-
self.access_token = attributes[:'access_token']
|
96
|
-
end
|
92
|
+
self.client_id = attributes[:client_id] if attributes.key?(:client_id)
|
97
93
|
|
98
|
-
if attributes.key?(:
|
99
|
-
self.secret = attributes[:'secret']
|
100
|
-
end
|
94
|
+
self.access_token = attributes[:access_token] if attributes.key?(:access_token)
|
101
95
|
|
102
|
-
if attributes.key?(:
|
103
|
-
self.cursor = attributes[:'cursor']
|
104
|
-
end
|
96
|
+
self.secret = attributes[:secret] if attributes.key?(:secret)
|
105
97
|
|
106
|
-
if attributes.key?(:
|
107
|
-
self.count = attributes[:'count']
|
108
|
-
end
|
98
|
+
self.cursor = attributes[:cursor] if attributes.key?(:cursor)
|
109
99
|
|
110
|
-
if attributes.key?(:
|
111
|
-
|
112
|
-
|
100
|
+
self.count = attributes[:count] if attributes.key?(:count)
|
101
|
+
|
102
|
+
return unless attributes.key?(:options)
|
103
|
+
|
104
|
+
self.options = attributes[:options]
|
113
105
|
end
|
114
106
|
|
115
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
116
108
|
# @return Array for valid properties with the reasons
|
117
109
|
def list_invalid_properties
|
118
|
-
invalid_properties =
|
119
|
-
if @access_token.nil?
|
120
|
-
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
121
|
-
end
|
110
|
+
invalid_properties = []
|
111
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') if @access_token.nil?
|
122
112
|
|
123
113
|
invalid_properties
|
124
114
|
end
|
@@ -127,26 +117,28 @@ module MoneyKit::PlaidCompatible
|
|
127
117
|
# @return true if the model is valid
|
128
118
|
def valid?
|
129
119
|
return false if @access_token.nil?
|
120
|
+
|
130
121
|
true
|
131
122
|
end
|
132
123
|
|
133
124
|
# Checks equality by comparing each attribute.
|
134
125
|
# @param [Object] Object to be compared
|
135
|
-
def ==(
|
136
|
-
return true if
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
126
|
+
def ==(other)
|
127
|
+
return true if equal?(other)
|
128
|
+
|
129
|
+
self.class == other.class &&
|
130
|
+
client_id == other.client_id &&
|
131
|
+
access_token == other.access_token &&
|
132
|
+
secret == other.secret &&
|
133
|
+
cursor == other.cursor &&
|
134
|
+
count == other.count &&
|
135
|
+
options == other.options
|
144
136
|
end
|
145
137
|
|
146
138
|
# @see the `==` method
|
147
139
|
# @param [Object] Object to be compared
|
148
|
-
def eql?(
|
149
|
-
self ==
|
140
|
+
def eql?(other)
|
141
|
+
self == other
|
150
142
|
end
|
151
143
|
|
152
144
|
# Calculates hash code according to all attributes.
|
@@ -167,17 +159,20 @@ module MoneyKit::PlaidCompatible
|
|
167
159
|
# @return [Object] Returns the model itself
|
168
160
|
def build_from_hash(attributes)
|
169
161
|
return nil unless attributes.is_a?(Hash)
|
162
|
+
|
170
163
|
self.class.openapi_types.each_pair do |key, type|
|
171
164
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
172
|
-
|
165
|
+
send("#{key}=", nil)
|
173
166
|
elsif type =~ /\AArray<(.*)>/i
|
174
167
|
# check to ensure the input is an array given that the attribute
|
175
168
|
# is documented as an array but the input is not
|
176
169
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
177
|
-
|
170
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
171
|
+
_deserialize(::Regexp.last_match(1), v)
|
172
|
+
end)
|
178
173
|
end
|
179
174
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
180
|
-
|
175
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
181
176
|
end
|
182
177
|
end
|
183
178
|
|
@@ -244,7 +239,7 @@ module MoneyKit::PlaidCompatible
|
|
244
239
|
def to_hash
|
245
240
|
hash = {}
|
246
241
|
self.class.attribute_map.each_pair do |attr, param|
|
247
|
-
value =
|
242
|
+
value = send(attr)
|
248
243
|
if value.nil?
|
249
244
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
250
245
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -272,7 +267,6 @@ module MoneyKit::PlaidCompatible
|
|
272
267
|
value
|
273
268
|
end
|
274
269
|
end
|
275
|
-
|
276
270
|
end
|
277
|
-
|
271
|
+
end
|
278
272
|
end
|
data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_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 TransactionsSyncRequestOptions
|
19
18
|
# Include the raw unparsed transaction description from the financial institution. This field is disabled by default. If you need this information in addition to the parsed data provided, contact your Plaid Account Manager or submit a [Support request](https://dashboard.plaid.com/support/new/product-and-development/product-troubleshooting/product-functionality).
|
@@ -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
|
+
'include_original_description': :include_original_description,
|
28
|
+
'include_personal_finance_category': :include_personal_finance_category
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
@@ -38,48 +37,50 @@ module MoneyKit::PlaidCompatible
|
|
38
37
|
# Attribute type mapping.
|
39
38
|
def self.openapi_types
|
40
39
|
{
|
41
|
-
|
42
|
-
|
40
|
+
'include_original_description': :Boolean,
|
41
|
+
'include_personal_finance_category': :Boolean
|
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
|
+
include_original_description
|
49
|
+
include_personal_finance_category
|
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::TransactionsSyncRequestOptions` 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::TransactionsSyncRequestOptions`. 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.include_original_description = attributes[:'include_original_description']
|
68
|
+
h[k.to_sym] = v
|
71
69
|
end
|
72
70
|
|
73
|
-
if attributes.key?(:
|
74
|
-
self.
|
71
|
+
if attributes.key?(:include_original_description)
|
72
|
+
self.include_original_description = attributes[:include_original_description]
|
75
73
|
end
|
74
|
+
|
75
|
+
return unless attributes.key?(:include_personal_finance_category)
|
76
|
+
|
77
|
+
self.include_personal_finance_category = attributes[:include_personal_finance_category]
|
76
78
|
end
|
77
79
|
|
78
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
79
81
|
# @return Array for valid properties with the reasons
|
80
82
|
def list_invalid_properties
|
81
|
-
|
82
|
-
invalid_properties
|
83
|
+
[]
|
83
84
|
end
|
84
85
|
|
85
86
|
# Check to see if the all the properties in the model are valid
|
@@ -90,17 +91,18 @@ module MoneyKit::PlaidCompatible
|
|
90
91
|
|
91
92
|
# Checks equality by comparing each attribute.
|
92
93
|
# @param [Object] Object to be compared
|
93
|
-
def ==(
|
94
|
-
return true if
|
95
|
-
|
96
|
-
|
97
|
-
|
94
|
+
def ==(other)
|
95
|
+
return true if equal?(other)
|
96
|
+
|
97
|
+
self.class == other.class &&
|
98
|
+
include_original_description == other.include_original_description &&
|
99
|
+
include_personal_finance_category == other.include_personal_finance_category
|
98
100
|
end
|
99
101
|
|
100
102
|
# @see the `==` method
|
101
103
|
# @param [Object] Object to be compared
|
102
|
-
def eql?(
|
103
|
-
self ==
|
104
|
+
def eql?(other)
|
105
|
+
self == other
|
104
106
|
end
|
105
107
|
|
106
108
|
# Calculates hash code according to all attributes.
|
@@ -121,17 +123,20 @@ module MoneyKit::PlaidCompatible
|
|
121
123
|
# @return [Object] Returns the model itself
|
122
124
|
def build_from_hash(attributes)
|
123
125
|
return nil unless attributes.is_a?(Hash)
|
126
|
+
|
124
127
|
self.class.openapi_types.each_pair do |key, type|
|
125
128
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
126
|
-
|
129
|
+
send("#{key}=", nil)
|
127
130
|
elsif type =~ /\AArray<(.*)>/i
|
128
131
|
# check to ensure the input is an array given that the attribute
|
129
132
|
# is documented as an array but the input is not
|
130
133
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
|
134
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
135
|
+
_deserialize(::Regexp.last_match(1), v)
|
136
|
+
end)
|
132
137
|
end
|
133
138
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
|
-
|
139
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
140
|
end
|
136
141
|
end
|
137
142
|
|
@@ -198,7 +203,7 @@ module MoneyKit::PlaidCompatible
|
|
198
203
|
def to_hash
|
199
204
|
hash = {}
|
200
205
|
self.class.attribute_map.each_pair do |attr, param|
|
201
|
-
value =
|
206
|
+
value = send(attr)
|
202
207
|
if value.nil?
|
203
208
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
209
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -226,7 +231,6 @@ module MoneyKit::PlaidCompatible
|
|
226
231
|
value
|
227
232
|
end
|
228
233
|
end
|
229
|
-
|
230
234
|
end
|
231
|
-
|
235
|
+
end
|
232
236
|
end
|