moneykit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moneykit/api/access_token_api.rb +53 -55
- data/lib/moneykit/api/account_numbers_api.rb +24 -24
- data/lib/moneykit/api/accounts_api.rb +86 -80
- data/lib/moneykit/api/identity_api.rb +29 -28
- data/lib/moneykit/api/institutions_api.rb +50 -48
- data/lib/moneykit/api/link_session_api.rb +47 -50
- data/lib/moneykit/api/links_api.rb +74 -81
- data/lib/moneykit/api/products_api.rb +31 -33
- data/lib/moneykit/api/transactions_api.rb +112 -87
- data/lib/moneykit/api/users_api.rb +96 -79
- data/lib/moneykit/api_client.rb +64 -71
- data/lib/moneykit/api_error.rb +14 -16
- data/lib/moneykit/configuration.rb +42 -45
- data/lib/moneykit/models/account.rb +62 -78
- data/lib/moneykit/models/account_balances.rb +58 -63
- data/lib/moneykit/models/account_group.rb +47 -47
- data/lib/moneykit/models/account_identity.rb +69 -89
- data/lib/moneykit/models/account_numbers.rb +50 -49
- data/lib/moneykit/models/account_numbers_link_product.rb +52 -54
- data/lib/moneykit/models/account_numbers_product_settings.rb +49 -48
- data/lib/moneykit/models/account_type.rb +23 -23
- data/lib/moneykit/models/account_with_account_numbers.rb +68 -89
- data/lib/moneykit/models/accounts_link_product.rb +46 -46
- data/lib/moneykit/models/ach_number.rb +48 -49
- data/lib/moneykit/models/address.rb +66 -75
- data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +63 -62
- data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +60 -62
- data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +63 -62
- data/lib/moneykit/models/app.rb +46 -50
- data/lib/moneykit/models/bacs_number.rb +45 -46
- data/lib/moneykit/models/balances.rb +58 -64
- data/lib/moneykit/models/basic_account_details.rb +55 -61
- data/lib/moneykit/models/country.rb +13 -14
- data/lib/moneykit/models/create_link_session_request.rb +83 -96
- data/lib/moneykit/models/create_link_session_response.rb +40 -37
- data/lib/moneykit/models/currency.rb +193 -193
- data/lib/moneykit/models/cursor.rb +40 -39
- data/lib/moneykit/models/cursor_pagination.rb +40 -38
- data/lib/moneykit/models/cursors.rb +40 -39
- data/lib/moneykit/models/customer_app.rb +46 -49
- data/lib/moneykit/models/customer_user.rb +59 -69
- data/lib/moneykit/models/eft_number.rb +48 -52
- data/lib/moneykit/models/email.rb +46 -48
- data/lib/moneykit/models/email1.rb +50 -53
- data/lib/moneykit/models/exchange_token_request.rb +40 -37
- data/lib/moneykit/models/exchange_token_response.rb +46 -49
- data/lib/moneykit/models/generate_access_token_response.rb +51 -58
- data/lib/moneykit/models/get_account_numbers_response.rb +48 -53
- data/lib/moneykit/models/get_account_response.rb +47 -52
- data/lib/moneykit/models/get_accounts_response.rb +47 -50
- data/lib/moneykit/models/get_institutions_response.rb +47 -50
- data/lib/moneykit/models/get_transactions_response.rb +68 -87
- data/lib/moneykit/models/get_user_accounts_response.rb +42 -42
- data/lib/moneykit/models/get_user_links_response.rb +42 -42
- data/lib/moneykit/models/get_user_transactions_response.rb +64 -82
- data/lib/moneykit/models/http_validation_error.rb +68 -71
- data/lib/moneykit/models/identity.rb +49 -49
- data/lib/moneykit/models/identity_link_product.rb +52 -54
- data/lib/moneykit/models/identity_product_settings.rb +49 -48
- data/lib/moneykit/models/identity_response.rb +47 -50
- data/lib/moneykit/models/institution.rb +77 -96
- data/lib/moneykit/models/institution_error_not_found_response.rb +63 -64
- data/lib/moneykit/models/institution_styling_response.rb +77 -93
- data/lib/moneykit/models/international_number.rb +46 -49
- data/lib/moneykit/models/introspect_client_response.rb +61 -73
- data/lib/moneykit/models/jwk_set.rb +41 -42
- data/lib/moneykit/models/link.rb +78 -100
- data/lib/moneykit/models/link1.rb +78 -100
- data/lib/moneykit/models/link2.rb +78 -100
- data/lib/moneykit/models/link3.rb +78 -100
- data/lib/moneykit/models/link4.rb +78 -100
- data/lib/moneykit/models/link_common.rb +78 -99
- data/lib/moneykit/models/link_error.rb +19 -19
- data/lib/moneykit/models/link_error_bad_state_response.rb +64 -72
- data/lib/moneykit/models/link_error_deleted_response.rb +63 -64
- data/lib/moneykit/models/link_error_forbidden_action_response.rb +60 -62
- data/lib/moneykit/models/link_error_not_found_response.rb +63 -64
- data/lib/moneykit/models/link_error_unauthorized_access_response.rb +63 -64
- data/lib/moneykit/models/link_permission_scope.rb +14 -15
- data/lib/moneykit/models/link_permissions.rb +43 -43
- data/lib/moneykit/models/link_products.rb +52 -63
- data/lib/moneykit/models/link_response.rb +90 -118
- data/lib/moneykit/models/link_session_customer_user.rb +58 -68
- data/lib/moneykit/models/link_session_customer_user_email.rb +50 -52
- data/lib/moneykit/models/link_session_customer_user_phone.rb +60 -67
- data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +60 -62
- data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +60 -62
- data/lib/moneykit/models/link_session_setting_overrides.rb +61 -72
- data/lib/moneykit/models/link_state.rb +15 -16
- data/lib/moneykit/models/link_state_changed_webhook.rb +110 -134
- data/lib/moneykit/models/location_inner.rb +41 -46
- data/lib/moneykit/models/money_kit_env.rb +12 -13
- data/lib/moneykit/models/money_link_features.rb +49 -48
- data/lib/moneykit/models/moneylink_features.rb +50 -49
- data/lib/moneykit/models/numbers.rb +60 -73
- data/lib/moneykit/models/owner.rb +59 -72
- data/lib/moneykit/models/phone.rb +60 -68
- data/lib/moneykit/models/phone_number.rb +55 -59
- data/lib/moneykit/models/phone_number_type.rb +14 -15
- data/lib/moneykit/models/product.rb +14 -15
- data/lib/moneykit/models/products.rb +52 -64
- data/lib/moneykit/models/products1.rb +48 -56
- data/lib/moneykit/models/products_settings.rb +48 -55
- data/lib/moneykit/models/provider.rb +15 -16
- data/lib/moneykit/models/refresh_products_request.rb +43 -45
- data/lib/moneykit/models/requested_link_permission.rb +52 -60
- data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +71 -77
- data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +66 -72
- data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +71 -77
- data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +71 -77
- data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +71 -77
- data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +71 -77
- data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +66 -72
- data/lib/moneykit/models/response401_get_institution_styling_institutions_institution_id_styling_get.rb +66 -72
- data/lib/moneykit/models/response401_get_institutions_institutions_get.rb +66 -72
- data/lib/moneykit/models/response401_get_link_links_id_get.rb +71 -77
- data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +71 -77
- data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +71 -77
- data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +66 -72
- data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +66 -72
- data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +66 -72
- data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +66 -72
- data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +66 -72
- data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +71 -77
- data/lib/moneykit/models/response401_update_link_links_id_patch.rb +71 -77
- data/lib/moneykit/models/settings.rb +61 -73
- data/lib/moneykit/models/supported_version.rb +11 -12
- data/lib/moneykit/models/transaction.rb +87 -114
- data/lib/moneykit/models/transaction_diff.rb +54 -62
- data/lib/moneykit/models/transaction_sync_response.rb +57 -72
- data/lib/moneykit/models/transaction_type.rb +12 -13
- data/lib/moneykit/models/transaction_type_filter.rb +12 -13
- data/lib/moneykit/models/transactions.rb +58 -57
- data/lib/moneykit/models/transactions1.rb +55 -63
- data/lib/moneykit/models/transactions_link_product.rb +52 -54
- data/lib/moneykit/models/transactions_product_settings.rb +57 -56
- data/lib/moneykit/models/update_link_request.rb +53 -52
- data/lib/moneykit/models/user_accounts_out.rb +40 -40
- data/lib/moneykit/models/user_links_out.rb +40 -40
- data/lib/moneykit/models/user_transactions_paged_response.rb +40 -40
- data/lib/moneykit/models/validation_error.rb +53 -64
- data/lib/moneykit/version.rb +10 -12
- data/lib/moneykit.rb +9 -11
- data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +203 -207
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +75 -76
- data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +19 -19
- data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +38 -40
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +71 -87
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +77 -98
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +85 -86
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +18 -19
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +55 -60
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +65 -69
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +63 -73
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +61 -72
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +15 -16
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +43 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +59 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +55 -60
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +65 -71
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +60 -61
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +85 -96
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +65 -77
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +55 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +50 -48
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +55 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +49 -47
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +100 -121
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +66 -66
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +59 -65
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +59 -68
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +63 -73
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +49 -50
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +54 -59
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +88 -103
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +26 -27
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +16 -17
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +43 -39
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +107 -134
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +69 -79
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +66 -68
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +65 -76
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +55 -55
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +44 -41
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +69 -75
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +50 -46
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +72 -89
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +56 -65
- data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +15 -16
- data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +13 -13
- data/lib/plaid_compatible/money_kit_plaid_compatible.rb +12 -12
- data/moneykit.gemspec +21 -25
- metadata +1 -1
@@ -1,23 +1,19 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
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: 6.5.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
15
13
|
|
16
14
|
module MoneyKit
|
17
15
|
class CreateLinkSessionRequest
|
18
|
-
attr_accessor :settings
|
19
|
-
|
20
|
-
attr_accessor :customer_user
|
16
|
+
attr_accessor :settings, :customer_user, :moneylink_features
|
21
17
|
|
22
18
|
# Supply the existing `link_id` if you are asking the user to reconnect this link.
|
23
19
|
attr_accessor :existing_link_id
|
@@ -31,18 +27,16 @@ module MoneyKit
|
|
31
27
|
# You can supply one or more arbitrary strings as tags to describe this link.
|
32
28
|
attr_accessor :link_tags
|
33
29
|
|
34
|
-
attr_accessor :moneylink_features
|
35
|
-
|
36
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
31
|
def self.attribute_map
|
38
32
|
{
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
33
|
+
'settings': :settings,
|
34
|
+
'customer_user': :customer_user,
|
35
|
+
'existing_link_id': :existing_link_id,
|
36
|
+
'redirect_uri': :redirect_uri,
|
37
|
+
'webhook': :webhook,
|
38
|
+
'link_tags': :link_tags,
|
39
|
+
'moneylink_features': :moneylink_features
|
46
40
|
}
|
47
41
|
end
|
48
42
|
|
@@ -54,81 +48,70 @@ module MoneyKit
|
|
54
48
|
# Attribute type mapping.
|
55
49
|
def self.openapi_types
|
56
50
|
{
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
51
|
+
'settings': :Settings,
|
52
|
+
'customer_user': :CustomerUser,
|
53
|
+
'existing_link_id': :String,
|
54
|
+
'redirect_uri': :String,
|
55
|
+
'webhook': :String,
|
56
|
+
'link_tags': :'Array<String>',
|
57
|
+
'moneylink_features': :MoneylinkFeatures
|
64
58
|
}
|
65
59
|
end
|
66
60
|
|
67
61
|
# List of attributes with nullable: true
|
68
62
|
def self.openapi_nullable
|
69
|
-
Set.new([
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
63
|
+
Set.new(%i[
|
64
|
+
settings
|
65
|
+
existing_link_id
|
66
|
+
redirect_uri
|
67
|
+
webhook
|
68
|
+
])
|
75
69
|
end
|
76
70
|
|
77
71
|
# Initializes the object
|
78
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
73
|
def initialize(attributes = {})
|
80
|
-
|
81
|
-
|
74
|
+
unless attributes.is_a?(Hash)
|
75
|
+
raise ArgumentError,
|
76
|
+
'The input argument (attributes) must be a hash in `MoneyKit::CreateLinkSessionRequest` initialize method'
|
82
77
|
end
|
83
78
|
|
84
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
-
attributes = attributes.each_with_object({})
|
86
|
-
|
87
|
-
|
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::CreateLinkSessionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
84
|
end
|
89
|
-
h[k.to_sym] = v
|
90
|
-
}
|
91
85
|
|
92
|
-
|
93
|
-
self.settings = attributes[:'settings']
|
86
|
+
h[k.to_sym] = v
|
94
87
|
end
|
95
88
|
|
96
|
-
if attributes.key?(:
|
97
|
-
self.customer_user = attributes[:'customer_user']
|
98
|
-
end
|
89
|
+
self.settings = attributes[:settings] if attributes.key?(:settings)
|
99
90
|
|
100
|
-
if attributes.key?(:
|
101
|
-
self.existing_link_id = attributes[:'existing_link_id']
|
102
|
-
end
|
91
|
+
self.customer_user = attributes[:customer_user] if attributes.key?(:customer_user)
|
103
92
|
|
104
|
-
if attributes.key?(:
|
105
|
-
self.redirect_uri = attributes[:'redirect_uri']
|
106
|
-
end
|
93
|
+
self.existing_link_id = attributes[:existing_link_id] if attributes.key?(:existing_link_id)
|
107
94
|
|
108
|
-
if attributes.key?(:
|
109
|
-
self.webhook = attributes[:'webhook']
|
110
|
-
end
|
95
|
+
self.redirect_uri = attributes[:redirect_uri] if attributes.key?(:redirect_uri)
|
111
96
|
|
112
|
-
if attributes.key?(:
|
113
|
-
if (value = attributes[:'link_tags']).is_a?(Array)
|
114
|
-
self.link_tags = value
|
115
|
-
end
|
116
|
-
end
|
97
|
+
self.webhook = attributes[:webhook] if attributes.key?(:webhook)
|
117
98
|
|
118
|
-
if attributes.key?(:
|
119
|
-
self.
|
99
|
+
if attributes.key?(:link_tags) && (value = attributes[:link_tags]).is_a?(Array)
|
100
|
+
self.link_tags = value
|
120
101
|
end
|
102
|
+
|
103
|
+
return unless attributes.key?(:moneylink_features)
|
104
|
+
|
105
|
+
self.moneylink_features = attributes[:moneylink_features]
|
121
106
|
end
|
122
107
|
|
123
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
109
|
# @return Array for valid properties with the reasons
|
125
110
|
def list_invalid_properties
|
126
|
-
invalid_properties =
|
127
|
-
if @customer_user.nil?
|
128
|
-
invalid_properties.push('invalid value for "customer_user", customer_user cannot be nil.')
|
129
|
-
end
|
111
|
+
invalid_properties = []
|
112
|
+
invalid_properties.push('invalid value for "customer_user", customer_user cannot be nil.') if @customer_user.nil?
|
130
113
|
|
131
|
-
if !@redirect_uri.nil? && @redirect_uri.to_s.length >
|
114
|
+
if !@redirect_uri.nil? && @redirect_uri.to_s.length > 65_536
|
132
115
|
invalid_properties.push('invalid value for "redirect_uri", the character length must be smaller than or equal to 65536.')
|
133
116
|
end
|
134
117
|
|
@@ -136,7 +119,7 @@ module MoneyKit
|
|
136
119
|
invalid_properties.push('invalid value for "redirect_uri", the character length must be great than or equal to 1.')
|
137
120
|
end
|
138
121
|
|
139
|
-
if !@webhook.nil? && @webhook.to_s.length >
|
122
|
+
if !@webhook.nil? && @webhook.to_s.length > 65_536
|
140
123
|
invalid_properties.push('invalid value for "webhook", the character length must be smaller than or equal to 65536.')
|
141
124
|
end
|
142
125
|
|
@@ -151,22 +134,24 @@ module MoneyKit
|
|
151
134
|
# @return true if the model is valid
|
152
135
|
def valid?
|
153
136
|
return false if @customer_user.nil?
|
154
|
-
return false if !@redirect_uri.nil? && @redirect_uri.to_s.length >
|
137
|
+
return false if !@redirect_uri.nil? && @redirect_uri.to_s.length > 65_536
|
155
138
|
return false if !@redirect_uri.nil? && @redirect_uri.to_s.length < 1
|
156
|
-
return false if !@webhook.nil? && @webhook.to_s.length >
|
139
|
+
return false if !@webhook.nil? && @webhook.to_s.length > 65_536
|
157
140
|
return false if !@webhook.nil? && @webhook.to_s.length < 1
|
141
|
+
|
158
142
|
true
|
159
143
|
end
|
160
144
|
|
161
145
|
# Custom attribute writer method with validation
|
162
146
|
# @param [Object] redirect_uri Value to be assigned
|
163
147
|
def redirect_uri=(redirect_uri)
|
164
|
-
if !redirect_uri.nil? && redirect_uri.to_s.length >
|
165
|
-
|
148
|
+
if !redirect_uri.nil? && redirect_uri.to_s.length > 65_536
|
149
|
+
raise ArgumentError,
|
150
|
+
'invalid value for "redirect_uri", the character length must be smaller than or equal to 65536.'
|
166
151
|
end
|
167
152
|
|
168
153
|
if !redirect_uri.nil? && redirect_uri.to_s.length < 1
|
169
|
-
|
154
|
+
raise ArgumentError, 'invalid value for "redirect_uri", the character length must be great than or equal to 1.'
|
170
155
|
end
|
171
156
|
|
172
157
|
@redirect_uri = redirect_uri
|
@@ -175,12 +160,12 @@ module MoneyKit
|
|
175
160
|
# Custom attribute writer method with validation
|
176
161
|
# @param [Object] webhook Value to be assigned
|
177
162
|
def webhook=(webhook)
|
178
|
-
if !webhook.nil? && webhook.to_s.length >
|
179
|
-
|
163
|
+
if !webhook.nil? && webhook.to_s.length > 65_536
|
164
|
+
raise ArgumentError, 'invalid value for "webhook", the character length must be smaller than or equal to 65536.'
|
180
165
|
end
|
181
166
|
|
182
167
|
if !webhook.nil? && webhook.to_s.length < 1
|
183
|
-
|
168
|
+
raise ArgumentError, 'invalid value for "webhook", the character length must be great than or equal to 1.'
|
184
169
|
end
|
185
170
|
|
186
171
|
@webhook = webhook
|
@@ -188,22 +173,23 @@ module MoneyKit
|
|
188
173
|
|
189
174
|
# Checks equality by comparing each attribute.
|
190
175
|
# @param [Object] Object to be compared
|
191
|
-
def ==(
|
192
|
-
return true if
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
176
|
+
def ==(other)
|
177
|
+
return true if equal?(other)
|
178
|
+
|
179
|
+
self.class == other.class &&
|
180
|
+
settings == other.settings &&
|
181
|
+
customer_user == other.customer_user &&
|
182
|
+
existing_link_id == other.existing_link_id &&
|
183
|
+
redirect_uri == other.redirect_uri &&
|
184
|
+
webhook == other.webhook &&
|
185
|
+
link_tags == other.link_tags &&
|
186
|
+
moneylink_features == other.moneylink_features
|
201
187
|
end
|
202
188
|
|
203
189
|
# @see the `==` method
|
204
190
|
# @param [Object] Object to be compared
|
205
|
-
def eql?(
|
206
|
-
self ==
|
191
|
+
def eql?(other)
|
192
|
+
self == other
|
207
193
|
end
|
208
194
|
|
209
195
|
# Calculates hash code according to all attributes.
|
@@ -224,18 +210,21 @@ module MoneyKit
|
|
224
210
|
# @return [Object] Returns the model itself
|
225
211
|
def build_from_hash(attributes)
|
226
212
|
return nil unless attributes.is_a?(Hash)
|
213
|
+
|
227
214
|
attributes = attributes.transform_keys(&:to_sym)
|
228
215
|
self.class.openapi_types.each_pair do |key, type|
|
229
216
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
230
|
-
|
217
|
+
send("#{key}=", nil)
|
231
218
|
elsif type =~ /\AArray<(.*)>/i
|
232
219
|
# check to ensure the input is an array given that the attribute
|
233
220
|
# is documented as an array but the input is not
|
234
221
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
235
|
-
|
222
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
223
|
+
_deserialize(::Regexp.last_match(1), v)
|
224
|
+
end)
|
236
225
|
end
|
237
226
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
238
|
-
|
227
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
239
228
|
end
|
240
229
|
end
|
241
230
|
|
@@ -302,7 +291,7 @@ module MoneyKit
|
|
302
291
|
def to_hash
|
303
292
|
hash = {}
|
304
293
|
self.class.attribute_map.each_pair do |attr, param|
|
305
|
-
value =
|
294
|
+
value = send(attr)
|
306
295
|
if value.nil?
|
307
296
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
308
297
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -330,7 +319,5 @@ module MoneyKit
|
|
330
319
|
value
|
331
320
|
end
|
332
321
|
end
|
333
|
-
|
334
322
|
end
|
335
|
-
|
336
323
|
end
|
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
1
|
+
# #MoneyKit API
|
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: 6.5.0
|
9
|
+
#
|
12
10
|
|
13
11
|
require 'date'
|
14
12
|
require 'time'
|
@@ -21,7 +19,7 @@ module MoneyKit
|
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
24
|
-
|
22
|
+
'link_session_token': :link_session_token
|
25
23
|
}
|
26
24
|
end
|
27
25
|
|
@@ -33,40 +31,42 @@ module MoneyKit
|
|
33
31
|
# Attribute type mapping.
|
34
32
|
def self.openapi_types
|
35
33
|
{
|
36
|
-
|
34
|
+
'link_session_token': :String
|
37
35
|
}
|
38
36
|
end
|
39
37
|
|
40
38
|
# List of attributes with nullable: true
|
41
39
|
def self.openapi_nullable
|
42
|
-
Set.new([
|
43
|
-
])
|
40
|
+
Set.new([])
|
44
41
|
end
|
45
42
|
|
46
43
|
# Initializes the object
|
47
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
45
|
def initialize(attributes = {})
|
49
|
-
|
50
|
-
|
46
|
+
unless attributes.is_a?(Hash)
|
47
|
+
raise ArgumentError,
|
48
|
+
'The input argument (attributes) must be a hash in `MoneyKit::CreateLinkSessionResponse` initialize method'
|
51
49
|
end
|
52
50
|
|
53
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
-
attributes = attributes.each_with_object({})
|
55
|
-
|
56
|
-
|
52
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
53
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
54
|
+
raise ArgumentError,
|
55
|
+
"`#{k}` is not a valid attribute in `MoneyKit::CreateLinkSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
|
-
h[k.to_sym] = v
|
59
|
-
}
|
60
57
|
|
61
|
-
|
62
|
-
self.link_session_token = attributes[:'link_session_token']
|
58
|
+
h[k.to_sym] = v
|
63
59
|
end
|
60
|
+
|
61
|
+
return unless attributes.key?(:link_session_token)
|
62
|
+
|
63
|
+
self.link_session_token = attributes[:link_session_token]
|
64
64
|
end
|
65
65
|
|
66
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
67
67
|
# @return Array for valid properties with the reasons
|
68
68
|
def list_invalid_properties
|
69
|
-
invalid_properties =
|
69
|
+
invalid_properties = []
|
70
70
|
if @link_session_token.nil?
|
71
71
|
invalid_properties.push('invalid value for "link_session_token", link_session_token cannot be nil.')
|
72
72
|
end
|
@@ -78,21 +78,23 @@ module MoneyKit
|
|
78
78
|
# @return true if the model is valid
|
79
79
|
def valid?
|
80
80
|
return false if @link_session_token.nil?
|
81
|
+
|
81
82
|
true
|
82
83
|
end
|
83
84
|
|
84
85
|
# Checks equality by comparing each attribute.
|
85
86
|
# @param [Object] Object to be compared
|
86
|
-
def ==(
|
87
|
-
return true if
|
88
|
-
|
89
|
-
|
87
|
+
def ==(other)
|
88
|
+
return true if equal?(other)
|
89
|
+
|
90
|
+
self.class == other.class &&
|
91
|
+
link_session_token == other.link_session_token
|
90
92
|
end
|
91
93
|
|
92
94
|
# @see the `==` method
|
93
95
|
# @param [Object] Object to be compared
|
94
|
-
def eql?(
|
95
|
-
self ==
|
96
|
+
def eql?(other)
|
97
|
+
self == other
|
96
98
|
end
|
97
99
|
|
98
100
|
# Calculates hash code according to all attributes.
|
@@ -113,18 +115,21 @@ module MoneyKit
|
|
113
115
|
# @return [Object] Returns the model itself
|
114
116
|
def build_from_hash(attributes)
|
115
117
|
return nil unless attributes.is_a?(Hash)
|
118
|
+
|
116
119
|
attributes = attributes.transform_keys(&:to_sym)
|
117
120
|
self.class.openapi_types.each_pair do |key, type|
|
118
121
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
119
|
-
|
122
|
+
send("#{key}=", nil)
|
120
123
|
elsif type =~ /\AArray<(.*)>/i
|
121
124
|
# check to ensure the input is an array given that the attribute
|
122
125
|
# is documented as an array but the input is not
|
123
126
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
-
|
127
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
128
|
+
_deserialize(::Regexp.last_match(1), v)
|
129
|
+
end)
|
125
130
|
end
|
126
131
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
-
|
132
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
133
|
end
|
129
134
|
end
|
130
135
|
|
@@ -191,7 +196,7 @@ module MoneyKit
|
|
191
196
|
def to_hash
|
192
197
|
hash = {}
|
193
198
|
self.class.attribute_map.each_pair do |attr, param|
|
194
|
-
value =
|
199
|
+
value = send(attr)
|
195
200
|
if value.nil?
|
196
201
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
197
202
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -219,7 +224,5 @@ module MoneyKit
|
|
219
224
|
value
|
220
225
|
end
|
221
226
|
end
|
222
|
-
|
223
227
|
end
|
224
|
-
|
225
228
|
end
|