moneykit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moneykit/api/access_token_api.rb +53 -55
  3. data/lib/moneykit/api/account_numbers_api.rb +24 -24
  4. data/lib/moneykit/api/accounts_api.rb +86 -80
  5. data/lib/moneykit/api/identity_api.rb +29 -28
  6. data/lib/moneykit/api/institutions_api.rb +50 -48
  7. data/lib/moneykit/api/link_session_api.rb +47 -50
  8. data/lib/moneykit/api/links_api.rb +74 -81
  9. data/lib/moneykit/api/products_api.rb +31 -33
  10. data/lib/moneykit/api/transactions_api.rb +112 -87
  11. data/lib/moneykit/api/users_api.rb +96 -79
  12. data/lib/moneykit/api_client.rb +64 -71
  13. data/lib/moneykit/api_error.rb +14 -16
  14. data/lib/moneykit/configuration.rb +42 -45
  15. data/lib/moneykit/models/account.rb +62 -78
  16. data/lib/moneykit/models/account_balances.rb +58 -63
  17. data/lib/moneykit/models/account_group.rb +47 -47
  18. data/lib/moneykit/models/account_identity.rb +69 -89
  19. data/lib/moneykit/models/account_numbers.rb +50 -49
  20. data/lib/moneykit/models/account_numbers_link_product.rb +52 -54
  21. data/lib/moneykit/models/account_numbers_product_settings.rb +49 -48
  22. data/lib/moneykit/models/account_type.rb +23 -23
  23. data/lib/moneykit/models/account_with_account_numbers.rb +68 -89
  24. data/lib/moneykit/models/accounts_link_product.rb +46 -46
  25. data/lib/moneykit/models/ach_number.rb +48 -49
  26. data/lib/moneykit/models/address.rb +66 -75
  27. data/lib/moneykit/models/api_error_auth_expired_access_token_response.rb +63 -62
  28. data/lib/moneykit/models/api_error_auth_unauthorized_response.rb +60 -62
  29. data/lib/moneykit/models/api_error_rate_limit_exceeded_response.rb +63 -62
  30. data/lib/moneykit/models/app.rb +46 -50
  31. data/lib/moneykit/models/bacs_number.rb +45 -46
  32. data/lib/moneykit/models/balances.rb +58 -64
  33. data/lib/moneykit/models/basic_account_details.rb +55 -61
  34. data/lib/moneykit/models/country.rb +13 -14
  35. data/lib/moneykit/models/create_link_session_request.rb +83 -96
  36. data/lib/moneykit/models/create_link_session_response.rb +40 -37
  37. data/lib/moneykit/models/currency.rb +193 -193
  38. data/lib/moneykit/models/cursor.rb +40 -39
  39. data/lib/moneykit/models/cursor_pagination.rb +40 -38
  40. data/lib/moneykit/models/cursors.rb +40 -39
  41. data/lib/moneykit/models/customer_app.rb +46 -49
  42. data/lib/moneykit/models/customer_user.rb +59 -69
  43. data/lib/moneykit/models/eft_number.rb +48 -52
  44. data/lib/moneykit/models/email.rb +46 -48
  45. data/lib/moneykit/models/email1.rb +50 -53
  46. data/lib/moneykit/models/exchange_token_request.rb +40 -37
  47. data/lib/moneykit/models/exchange_token_response.rb +46 -49
  48. data/lib/moneykit/models/generate_access_token_response.rb +51 -58
  49. data/lib/moneykit/models/get_account_numbers_response.rb +48 -53
  50. data/lib/moneykit/models/get_account_response.rb +47 -52
  51. data/lib/moneykit/models/get_accounts_response.rb +47 -50
  52. data/lib/moneykit/models/get_institutions_response.rb +47 -50
  53. data/lib/moneykit/models/get_transactions_response.rb +68 -87
  54. data/lib/moneykit/models/get_user_accounts_response.rb +42 -42
  55. data/lib/moneykit/models/get_user_links_response.rb +42 -42
  56. data/lib/moneykit/models/get_user_transactions_response.rb +64 -82
  57. data/lib/moneykit/models/http_validation_error.rb +68 -71
  58. data/lib/moneykit/models/identity.rb +49 -49
  59. data/lib/moneykit/models/identity_link_product.rb +52 -54
  60. data/lib/moneykit/models/identity_product_settings.rb +49 -48
  61. data/lib/moneykit/models/identity_response.rb +47 -50
  62. data/lib/moneykit/models/institution.rb +77 -96
  63. data/lib/moneykit/models/institution_error_not_found_response.rb +63 -64
  64. data/lib/moneykit/models/institution_styling_response.rb +77 -93
  65. data/lib/moneykit/models/international_number.rb +46 -49
  66. data/lib/moneykit/models/introspect_client_response.rb +61 -73
  67. data/lib/moneykit/models/jwk_set.rb +41 -42
  68. data/lib/moneykit/models/link.rb +78 -100
  69. data/lib/moneykit/models/link1.rb +78 -100
  70. data/lib/moneykit/models/link2.rb +78 -100
  71. data/lib/moneykit/models/link3.rb +78 -100
  72. data/lib/moneykit/models/link4.rb +78 -100
  73. data/lib/moneykit/models/link_common.rb +78 -99
  74. data/lib/moneykit/models/link_error.rb +19 -19
  75. data/lib/moneykit/models/link_error_bad_state_response.rb +64 -72
  76. data/lib/moneykit/models/link_error_deleted_response.rb +63 -64
  77. data/lib/moneykit/models/link_error_forbidden_action_response.rb +60 -62
  78. data/lib/moneykit/models/link_error_not_found_response.rb +63 -64
  79. data/lib/moneykit/models/link_error_unauthorized_access_response.rb +63 -64
  80. data/lib/moneykit/models/link_permission_scope.rb +14 -15
  81. data/lib/moneykit/models/link_permissions.rb +43 -43
  82. data/lib/moneykit/models/link_products.rb +52 -63
  83. data/lib/moneykit/models/link_response.rb +90 -118
  84. data/lib/moneykit/models/link_session_customer_user.rb +58 -68
  85. data/lib/moneykit/models/link_session_customer_user_email.rb +50 -52
  86. data/lib/moneykit/models/link_session_customer_user_phone.rb +60 -67
  87. data/lib/moneykit/models/link_session_error_forbidden_config_response.rb +60 -62
  88. data/lib/moneykit/models/link_session_error_invalid_token_exchange.rb +60 -62
  89. data/lib/moneykit/models/link_session_setting_overrides.rb +61 -72
  90. data/lib/moneykit/models/link_state.rb +15 -16
  91. data/lib/moneykit/models/link_state_changed_webhook.rb +110 -134
  92. data/lib/moneykit/models/location_inner.rb +41 -46
  93. data/lib/moneykit/models/money_kit_env.rb +12 -13
  94. data/lib/moneykit/models/money_link_features.rb +49 -48
  95. data/lib/moneykit/models/moneylink_features.rb +50 -49
  96. data/lib/moneykit/models/numbers.rb +60 -73
  97. data/lib/moneykit/models/owner.rb +59 -72
  98. data/lib/moneykit/models/phone.rb +60 -68
  99. data/lib/moneykit/models/phone_number.rb +55 -59
  100. data/lib/moneykit/models/phone_number_type.rb +14 -15
  101. data/lib/moneykit/models/product.rb +14 -15
  102. data/lib/moneykit/models/products.rb +52 -64
  103. data/lib/moneykit/models/products1.rb +48 -56
  104. data/lib/moneykit/models/products_settings.rb +48 -55
  105. data/lib/moneykit/models/provider.rb +15 -16
  106. data/lib/moneykit/models/refresh_products_request.rb +43 -45
  107. data/lib/moneykit/models/requested_link_permission.rb +52 -60
  108. data/lib/moneykit/models/response401_disconnect_links_id_delete.rb +71 -77
  109. data/lib/moneykit/models/response401_exchange_token_link_session_exchange_token_post.rb +66 -72
  110. data/lib/moneykit/models/response401_get_account_links_id_accounts_account_id_get.rb +71 -77
  111. data/lib/moneykit/models/response401_get_account_numbers_links_id_accounts_numbers_get.rb +71 -77
  112. data/lib/moneykit/models/response401_get_accounts_links_id_accounts_get.rb +71 -77
  113. data/lib/moneykit/models/response401_get_identities_links_id_identity_get.rb +71 -77
  114. data/lib/moneykit/models/response401_get_institution_institutions_institution_id_get.rb +66 -72
  115. data/lib/moneykit/models/response401_get_institution_styling_institutions_institution_id_styling_get.rb +66 -72
  116. data/lib/moneykit/models/response401_get_institutions_institutions_get.rb +66 -72
  117. data/lib/moneykit/models/response401_get_link_links_id_get.rb +71 -77
  118. data/lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb +71 -77
  119. data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +71 -77
  120. data/lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb +66 -72
  121. data/lib/moneykit/models/response401_get_user_links_users_id_links_get.rb +66 -72
  122. data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +66 -72
  123. data/lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb +66 -72
  124. data/lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb +66 -72
  125. data/lib/moneykit/models/response401_refresh_products_links_id_products_post.rb +71 -77
  126. data/lib/moneykit/models/response401_update_link_links_id_patch.rb +71 -77
  127. data/lib/moneykit/models/settings.rb +61 -73
  128. data/lib/moneykit/models/supported_version.rb +11 -12
  129. data/lib/moneykit/models/transaction.rb +87 -114
  130. data/lib/moneykit/models/transaction_diff.rb +54 -62
  131. data/lib/moneykit/models/transaction_sync_response.rb +57 -72
  132. data/lib/moneykit/models/transaction_type.rb +12 -13
  133. data/lib/moneykit/models/transaction_type_filter.rb +12 -13
  134. data/lib/moneykit/models/transactions.rb +58 -57
  135. data/lib/moneykit/models/transactions1.rb +55 -63
  136. data/lib/moneykit/models/transactions_link_product.rb +52 -54
  137. data/lib/moneykit/models/transactions_product_settings.rb +57 -56
  138. data/lib/moneykit/models/update_link_request.rb +53 -52
  139. data/lib/moneykit/models/user_accounts_out.rb +40 -40
  140. data/lib/moneykit/models/user_links_out.rb +40 -40
  141. data/lib/moneykit/models/user_transactions_paged_response.rb +40 -40
  142. data/lib/moneykit/models/validation_error.rb +53 -64
  143. data/lib/moneykit/version.rb +10 -12
  144. data/lib/moneykit.rb +9 -11
  145. data/lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb +203 -207
  146. data/lib/plaid_compatible/money_kit_plaid_compatible/api_client.rb +75 -76
  147. data/lib/plaid_compatible/money_kit_plaid_compatible/api_error.rb +19 -19
  148. data/lib/plaid_compatible/money_kit_plaid_compatible/configuration.rb +38 -40
  149. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_balance.rb +59 -61
  150. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_base.rb +71 -87
  151. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_identity.rb +77 -98
  152. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_subtype.rb +85 -86
  153. data/lib/plaid_compatible/money_kit_plaid_compatible/models/account_type.rb +18 -19
  154. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request.rb +59 -61
  155. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_request_options.rb +44 -41
  156. data/lib/plaid_compatible/money_kit_plaid_compatible/models/accounts_get_response.rb +55 -60
  157. data/lib/plaid_compatible/money_kit_plaid_compatible/models/address.rb +49 -47
  158. data/lib/plaid_compatible/money_kit_plaid_compatible/models/address_data.rb +65 -69
  159. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_numbers.rb +63 -73
  160. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request.rb +59 -61
  161. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_request_options.rb +44 -41
  162. data/lib/plaid_compatible/money_kit_plaid_compatible/models/auth_get_response.rb +61 -72
  163. data/lib/plaid_compatible/money_kit_plaid_compatible/models/country_code.rb +15 -16
  164. data/lib/plaid_compatible/money_kit_plaid_compatible/models/email.rb +49 -50
  165. data/lib/plaid_compatible/money_kit_plaid_compatible/models/http_validation_error.rb +43 -41
  166. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request.rb +59 -61
  167. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_request_options.rb +44 -41
  168. data/lib/plaid_compatible/money_kit_plaid_compatible/models/identity_get_response.rb +55 -60
  169. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institution.rb +65 -71
  170. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_request.rb +60 -61
  171. data/lib/plaid_compatible/money_kit_plaid_compatible/models/institutions_get_by_id_response.rb +49 -50
  172. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item.rb +85 -96
  173. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_error_webhook.rb +65 -77
  174. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_request.rb +55 -55
  175. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_get_response.rb +55 -59
  176. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_request.rb +55 -55
  177. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_public_token_exchange_response.rb +54 -59
  178. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_request.rb +55 -55
  179. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_remove_response.rb +44 -41
  180. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_investments.rb +49 -47
  181. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_last_webhook.rb +50 -48
  182. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_nullable.rb +55 -59
  183. data/lib/plaid_compatible/money_kit_plaid_compatible/models/item_status_transactions.rb +49 -47
  184. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request.rb +100 -121
  185. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_request_user.rb +66 -66
  186. data/lib/plaid_compatible/money_kit_plaid_compatible/models/link_token_create_response.rb +54 -59
  187. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_ach.rb +59 -65
  188. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_bacs.rb +54 -59
  189. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_eft.rb +59 -68
  190. data/lib/plaid_compatible/money_kit_plaid_compatible/models/numbers_international.rb +54 -59
  191. data/lib/plaid_compatible/money_kit_plaid_compatible/models/owner.rb +63 -73
  192. data/lib/plaid_compatible/money_kit_plaid_compatible/models/personal_finance_category.rb +49 -50
  193. data/lib/plaid_compatible/money_kit_plaid_compatible/models/phone_number.rb +54 -59
  194. data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error.rb +88 -103
  195. data/lib/plaid_compatible/money_kit_plaid_compatible/models/plaid_error_type.rb +26 -27
  196. data/lib/plaid_compatible/money_kit_plaid_compatible/models/products.rb +16 -17
  197. data/lib/plaid_compatible/money_kit_plaid_compatible/models/removed_transaction.rb +43 -39
  198. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transaction.rb +107 -134
  199. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request.rb +69 -79
  200. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_request_options.rb +66 -68
  201. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_get_response.rb +65 -76
  202. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_request.rb +55 -55
  203. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_refresh_response.rb +44 -41
  204. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request.rb +69 -75
  205. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_request_options.rb +50 -46
  206. data/lib/plaid_compatible/money_kit_plaid_compatible/models/transactions_sync_response.rb +72 -89
  207. data/lib/plaid_compatible/money_kit_plaid_compatible/models/validation_error.rb +56 -65
  208. data/lib/plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_values.rb +15 -16
  209. data/lib/plaid_compatible/money_kit_plaid_compatible/version.rb +13 -13
  210. data/lib/plaid_compatible/money_kit_plaid_compatible.rb +12 -12
  211. data/moneykit.gemspec +21 -25
  212. metadata +1 -1
@@ -1,19 +1,18 @@
1
- =begin
2
- #Plaid Compatibility Layer
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
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::PlaidCompatible
14
+ module MoneyKit
15
+ module PlaidCompatible
17
16
  # An object specifying information about the end user who will be linking their account.
18
17
  class LinkTokenCreateRequestUser
19
18
  # A unique ID representing the end user. Typically this will be a user ID number from your application. Personally identifiable information, such as an email address or phone number, should not be used in the `client_user_id`. It is currently used as a means of searching logs for the given user in the Plaid Dashboard.
@@ -22,7 +21,7 @@ module MoneyKit::PlaidCompatible
22
21
  # The user's phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. This field is optional, but required to enable the [returning user experience](https://plaid.com/docs/link/returning-user).
23
22
  attr_accessor :phone_number
24
23
 
25
- # The date and time the phone number was verified in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDThh:mm:ssZ`). This was previously an optional field used in the [returning user experience](https://plaid.com/docs/link/returning-user). This field is no longer required to enable the returning user experience. Only pass a verification time for a phone number that you have verified. If you have performed verification but don’t have the time, you may supply a signal value of the start of the UNIX epoch. Example: `2020-01-01T00:00:00Z`
24
+ # The date and time the phone number was verified in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDThh:mm:ssZ`). This was previously an optional field used in the [returning user experience](https://plaid.com/docs/link/returning-user). This field is no longer required to enable the returning user experience. Only pass a verification time for a phone number that you have verified. If you have performed verification but don’t have the time, you may supply a signal value of the start of the UNIX epoch. Example: `2020-01-01T00:00:00Z`
26
25
  attr_accessor :phone_number_verified_time
27
26
 
28
27
  # The user's email address. This field is optional, but required to enable the [pre-authenticated returning user flow](https://plaid.com/docs/link/returning-user/#pre-authenticated-rux).
@@ -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
- :'client_user_id' => :'client_user_id',
38
- :'phone_number' => :'phone_number',
39
- :'phone_number_verified_time' => :'phone_number_verified_time',
40
- :'email_address' => :'email_address',
41
- :'email_address_verified_time' => :'email_address_verified_time'
36
+ 'client_user_id': :client_user_id,
37
+ 'phone_number': :phone_number,
38
+ 'phone_number_verified_time': :phone_number_verified_time,
39
+ 'email_address': :email_address,
40
+ 'email_address_verified_time': :email_address_verified_time
42
41
  }
43
42
  end
44
43
 
@@ -50,64 +49,61 @@ module MoneyKit::PlaidCompatible
50
49
  # Attribute type mapping.
51
50
  def self.openapi_types
52
51
  {
53
- :'client_user_id' => :'String',
54
- :'phone_number' => :'String',
55
- :'phone_number_verified_time' => :'Time',
56
- :'email_address' => :'String',
57
- :'email_address_verified_time' => :'Time'
52
+ 'client_user_id': :String,
53
+ 'phone_number': :String,
54
+ 'phone_number_verified_time': :Time,
55
+ 'email_address': :String,
56
+ 'email_address_verified_time': :Time
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
- :'phone_number',
65
- :'phone_number_verified_time',
66
- :'email_address',
67
- :'email_address_verified_time'
68
- ])
62
+ Set.new(%i[
63
+ phone_number
64
+ phone_number_verified_time
65
+ email_address
66
+ email_address_verified_time
67
+ ])
69
68
  end
70
69
 
71
70
  # Initializes the object
72
71
  # @param [Hash] attributes Model attributes in the form of hash
73
72
  def initialize(attributes = {})
74
- if (!attributes.is_a?(Hash))
75
- fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::LinkTokenCreateRequestUser` initialize method"
73
+ unless attributes.is_a?(Hash)
74
+ raise ArgumentError,
75
+ 'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::LinkTokenCreateRequestUser` initialize method'
76
76
  end
77
77
 
78
78
  # check to see if the attribute exists and convert string to symbol for hash key
79
- attributes = attributes.each_with_object({}) { |(k, v), h|
80
- if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::LinkTokenCreateRequestUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ attributes = attributes.each_with_object({}) do |(k, v), h|
80
+ unless self.class.attribute_map.key?(k.to_sym)
81
+ raise ArgumentError,
82
+ "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::LinkTokenCreateRequestUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
83
  end
83
- h[k.to_sym] = v
84
- }
85
84
 
86
- if attributes.key?(:'client_user_id')
87
- self.client_user_id = attributes[:'client_user_id']
85
+ h[k.to_sym] = v
88
86
  end
89
87
 
90
- if attributes.key?(:'phone_number')
91
- self.phone_number = attributes[:'phone_number']
92
- end
88
+ self.client_user_id = attributes[:client_user_id] if attributes.key?(:client_user_id)
93
89
 
94
- if attributes.key?(:'phone_number_verified_time')
95
- self.phone_number_verified_time = attributes[:'phone_number_verified_time']
96
- end
90
+ self.phone_number = attributes[:phone_number] if attributes.key?(:phone_number)
97
91
 
98
- if attributes.key?(:'email_address')
99
- self.email_address = attributes[:'email_address']
92
+ if attributes.key?(:phone_number_verified_time)
93
+ self.phone_number_verified_time = attributes[:phone_number_verified_time]
100
94
  end
101
95
 
102
- if attributes.key?(:'email_address_verified_time')
103
- self.email_address_verified_time = attributes[:'email_address_verified_time']
104
- end
96
+ self.email_address = attributes[:email_address] if attributes.key?(:email_address)
97
+
98
+ return unless attributes.key?(:email_address_verified_time)
99
+
100
+ self.email_address_verified_time = attributes[:email_address_verified_time]
105
101
  end
106
102
 
107
103
  # Show invalid properties with the reasons. Usually used together with valid?
108
104
  # @return Array for valid properties with the reasons
109
105
  def list_invalid_properties
110
- invalid_properties = Array.new
106
+ invalid_properties = []
111
107
  if @client_user_id.nil?
112
108
  invalid_properties.push('invalid value for "client_user_id", client_user_id cannot be nil.')
113
109
  end
@@ -119,25 +115,27 @@ module MoneyKit::PlaidCompatible
119
115
  # @return true if the model is valid
120
116
  def valid?
121
117
  return false if @client_user_id.nil?
118
+
122
119
  true
123
120
  end
124
121
 
125
122
  # Checks equality by comparing each attribute.
126
123
  # @param [Object] Object to be compared
127
- def ==(o)
128
- return true if self.equal?(o)
129
- self.class == o.class &&
130
- client_user_id == o.client_user_id &&
131
- phone_number == o.phone_number &&
132
- phone_number_verified_time == o.phone_number_verified_time &&
133
- email_address == o.email_address &&
134
- email_address_verified_time == o.email_address_verified_time
124
+ def ==(other)
125
+ return true if equal?(other)
126
+
127
+ self.class == other.class &&
128
+ client_user_id == other.client_user_id &&
129
+ phone_number == other.phone_number &&
130
+ phone_number_verified_time == other.phone_number_verified_time &&
131
+ email_address == other.email_address &&
132
+ email_address_verified_time == other.email_address_verified_time
135
133
  end
136
134
 
137
135
  # @see the `==` method
138
136
  # @param [Object] Object to be compared
139
- def eql?(o)
140
- self == o
137
+ def eql?(other)
138
+ self == other
141
139
  end
142
140
 
143
141
  # Calculates hash code according to all attributes.
@@ -158,17 +156,20 @@ module MoneyKit::PlaidCompatible
158
156
  # @return [Object] Returns the model itself
159
157
  def build_from_hash(attributes)
160
158
  return nil unless attributes.is_a?(Hash)
159
+
161
160
  self.class.openapi_types.each_pair do |key, type|
162
161
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
163
- self.send("#{key}=", nil)
162
+ send("#{key}=", nil)
164
163
  elsif type =~ /\AArray<(.*)>/i
165
164
  # check to ensure the input is an array given that the attribute
166
165
  # is documented as an array but the input is not
167
166
  if attributes[self.class.attribute_map[key]].is_a?(Array)
168
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
167
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
168
+ _deserialize(::Regexp.last_match(1), v)
169
+ end)
169
170
  end
170
171
  elsif !attributes[self.class.attribute_map[key]].nil?
171
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
172
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
172
173
  end
173
174
  end
174
175
 
@@ -235,7 +236,7 @@ module MoneyKit::PlaidCompatible
235
236
  def to_hash
236
237
  hash = {}
237
238
  self.class.attribute_map.each_pair do |attr, param|
238
- value = self.send(attr)
239
+ value = send(attr)
239
240
  if value.nil?
240
241
  is_nullable = self.class.openapi_nullable.include?(attr)
241
242
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -263,7 +264,6 @@ module MoneyKit::PlaidCompatible
263
264
  value
264
265
  end
265
266
  end
266
-
267
267
  end
268
-
268
+ end
269
269
  end
@@ -1,19 +1,18 @@
1
- =begin
2
- #Plaid Compatibility Layer
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
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::PlaidCompatible
14
+ module MoneyKit
15
+ module PlaidCompatible
17
16
  # LinkTokenCreateResponse defines the response schema for `/link/token/create`
18
17
  class LinkTokenCreateResponse
19
18
  # A `link_token`, which can be supplied to Link in order to initialize it and receive a `public_token`, which can be exchanged for an `access_token`.
@@ -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
- :'link_token' => :'link_token',
32
- :'expiration' => :'expiration',
33
- :'request_id' => :'request_id'
30
+ 'link_token': :link_token,
31
+ 'expiration': :expiration,
32
+ 'request_id': :request_id
34
33
  }
35
34
  end
36
35
 
@@ -42,61 +41,53 @@ module MoneyKit::PlaidCompatible
42
41
  # Attribute type mapping.
43
42
  def self.openapi_types
44
43
  {
45
- :'link_token' => :'String',
46
- :'expiration' => :'Time',
47
- :'request_id' => :'String'
44
+ 'link_token': :String,
45
+ 'expiration': :Time,
46
+ 'request_id': :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
- ])
52
+ Set.new([])
55
53
  end
56
54
 
57
55
  # Initializes the object
58
56
  # @param [Hash] attributes Model attributes in the form of hash
59
57
  def initialize(attributes = {})
60
- if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::LinkTokenCreateResponse` initialize method"
58
+ unless attributes.is_a?(Hash)
59
+ raise ArgumentError,
60
+ 'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::LinkTokenCreateResponse` initialize method'
62
61
  end
63
62
 
64
63
  # check to see if the attribute exists and convert string to symbol for hash key
65
- attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::LinkTokenCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ attributes = attributes.each_with_object({}) do |(k, v), h|
65
+ unless self.class.attribute_map.key?(k.to_sym)
66
+ raise ArgumentError,
67
+ "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::LinkTokenCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
68
  end
69
- h[k.to_sym] = v
70
- }
71
69
 
72
- if attributes.key?(:'link_token')
73
- self.link_token = attributes[:'link_token']
70
+ h[k.to_sym] = v
74
71
  end
75
72
 
76
- if attributes.key?(:'expiration')
77
- self.expiration = attributes[:'expiration']
78
- end
73
+ self.link_token = attributes[:link_token] if attributes.key?(:link_token)
79
74
 
80
- if attributes.key?(:'request_id')
81
- self.request_id = attributes[:'request_id']
82
- end
75
+ self.expiration = attributes[:expiration] if attributes.key?(:expiration)
76
+
77
+ return unless attributes.key?(:request_id)
78
+
79
+ self.request_id = attributes[:request_id]
83
80
  end
84
81
 
85
82
  # Show invalid properties with the reasons. Usually used together with valid?
86
83
  # @return Array for valid properties with the reasons
87
84
  def list_invalid_properties
88
- invalid_properties = Array.new
89
- if @link_token.nil?
90
- invalid_properties.push('invalid value for "link_token", link_token cannot be nil.')
91
- end
85
+ invalid_properties = []
86
+ invalid_properties.push('invalid value for "link_token", link_token cannot be nil.') if @link_token.nil?
92
87
 
93
- if @expiration.nil?
94
- invalid_properties.push('invalid value for "expiration", expiration cannot be nil.')
95
- end
88
+ invalid_properties.push('invalid value for "expiration", expiration cannot be nil.') if @expiration.nil?
96
89
 
97
- if @request_id.nil?
98
- invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
99
- end
90
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') if @request_id.nil?
100
91
 
101
92
  invalid_properties
102
93
  end
@@ -107,23 +98,25 @@ module MoneyKit::PlaidCompatible
107
98
  return false if @link_token.nil?
108
99
  return false if @expiration.nil?
109
100
  return false if @request_id.nil?
101
+
110
102
  true
111
103
  end
112
104
 
113
105
  # Checks equality by comparing each attribute.
114
106
  # @param [Object] Object to be compared
115
- def ==(o)
116
- return true if self.equal?(o)
117
- self.class == o.class &&
118
- link_token == o.link_token &&
119
- expiration == o.expiration &&
120
- request_id == o.request_id
107
+ def ==(other)
108
+ return true if equal?(other)
109
+
110
+ self.class == other.class &&
111
+ link_token == other.link_token &&
112
+ expiration == other.expiration &&
113
+ request_id == other.request_id
121
114
  end
122
115
 
123
116
  # @see the `==` method
124
117
  # @param [Object] Object to be compared
125
- def eql?(o)
126
- self == o
118
+ def eql?(other)
119
+ self == other
127
120
  end
128
121
 
129
122
  # Calculates hash code according to all attributes.
@@ -144,17 +137,20 @@ module MoneyKit::PlaidCompatible
144
137
  # @return [Object] Returns the model itself
145
138
  def build_from_hash(attributes)
146
139
  return nil unless attributes.is_a?(Hash)
140
+
147
141
  self.class.openapi_types.each_pair do |key, type|
148
142
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
149
- self.send("#{key}=", nil)
143
+ send("#{key}=", nil)
150
144
  elsif type =~ /\AArray<(.*)>/i
151
145
  # check to ensure the input is an array given that the attribute
152
146
  # is documented as an array but the input is not
153
147
  if attributes[self.class.attribute_map[key]].is_a?(Array)
154
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
149
+ _deserialize(::Regexp.last_match(1), v)
150
+ end)
155
151
  end
156
152
  elsif !attributes[self.class.attribute_map[key]].nil?
157
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
154
  end
159
155
  end
160
156
 
@@ -221,7 +217,7 @@ module MoneyKit::PlaidCompatible
221
217
  def to_hash
222
218
  hash = {}
223
219
  self.class.attribute_map.each_pair do |attr, param|
224
- value = self.send(attr)
220
+ value = send(attr)
225
221
  if value.nil?
226
222
  is_nullable = self.class.openapi_nullable.include?(attr)
227
223
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -249,7 +245,6 @@ module MoneyKit::PlaidCompatible
249
245
  value
250
246
  end
251
247
  end
252
-
253
248
  end
254
-
249
+ end
255
250
  end
@@ -1,19 +1,18 @@
1
- =begin
2
- #Plaid Compatibility Layer
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 0.1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
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::PlaidCompatible
14
+ module MoneyKit
15
+ module PlaidCompatible
17
16
  # Identifying information for transferring money to or from a US account via ACH or wire transfer.
18
17
  class NumbersACH
19
18
  # The Plaid account ID associated with the account numbers
@@ -31,10 +30,10 @@ module MoneyKit::PlaidCompatible
31
30
  # Attribute mapping from ruby-style variable name to JSON key.
32
31
  def self.attribute_map
33
32
  {
34
- :'account_id' => :'account_id',
35
- :'account' => :'account',
36
- :'routing' => :'routing',
37
- :'wire_routing' => :'wire_routing'
33
+ 'account_id': :account_id,
34
+ 'account': :account,
35
+ 'routing': :routing,
36
+ 'wire_routing': :wire_routing
38
37
  }
39
38
  end
40
39
 
@@ -46,67 +45,58 @@ module MoneyKit::PlaidCompatible
46
45
  # Attribute type mapping.
47
46
  def self.openapi_types
48
47
  {
49
- :'account_id' => :'String',
50
- :'account' => :'String',
51
- :'routing' => :'String',
52
- :'wire_routing' => :'String'
48
+ 'account_id': :String,
49
+ 'account': :String,
50
+ 'routing': :String,
51
+ 'wire_routing': :String
53
52
  }
54
53
  end
55
54
 
56
55
  # List of attributes with nullable: true
57
56
  def self.openapi_nullable
58
57
  Set.new([
59
- :'wire_routing'
60
- ])
58
+ :wire_routing
59
+ ])
61
60
  end
62
61
 
63
62
  # Initializes the object
64
63
  # @param [Hash] attributes Model attributes in the form of hash
65
64
  def initialize(attributes = {})
66
- if (!attributes.is_a?(Hash))
67
- fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::NumbersACH` initialize method"
65
+ unless attributes.is_a?(Hash)
66
+ raise ArgumentError,
67
+ 'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::NumbersACH` initialize method'
68
68
  end
69
69
 
70
70
  # check to see if the attribute exists and convert string to symbol for hash key
71
- attributes = attributes.each_with_object({}) { |(k, v), h|
72
- if (!self.class.attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::NumbersACH`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ attributes = attributes.each_with_object({}) do |(k, v), h|
72
+ unless self.class.attribute_map.key?(k.to_sym)
73
+ raise ArgumentError,
74
+ "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::NumbersACH`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
75
  end
75
- h[k.to_sym] = v
76
- }
77
76
 
78
- if attributes.key?(:'account_id')
79
- self.account_id = attributes[:'account_id']
77
+ h[k.to_sym] = v
80
78
  end
81
79
 
82
- if attributes.key?(:'account')
83
- self.account = attributes[:'account']
84
- end
80
+ self.account_id = attributes[:account_id] if attributes.key?(:account_id)
85
81
 
86
- if attributes.key?(:'routing')
87
- self.routing = attributes[:'routing']
88
- end
82
+ self.account = attributes[:account] if attributes.key?(:account)
89
83
 
90
- if attributes.key?(:'wire_routing')
91
- self.wire_routing = attributes[:'wire_routing']
92
- end
84
+ self.routing = attributes[:routing] if attributes.key?(:routing)
85
+
86
+ return unless attributes.key?(:wire_routing)
87
+
88
+ self.wire_routing = attributes[:wire_routing]
93
89
  end
94
90
 
95
91
  # Show invalid properties with the reasons. Usually used together with valid?
96
92
  # @return Array for valid properties with the reasons
97
93
  def list_invalid_properties
98
- invalid_properties = Array.new
99
- if @account_id.nil?
100
- invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
101
- end
94
+ invalid_properties = []
95
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') if @account_id.nil?
102
96
 
103
- if @account.nil?
104
- invalid_properties.push('invalid value for "account", account cannot be nil.')
105
- end
97
+ invalid_properties.push('invalid value for "account", account cannot be nil.') if @account.nil?
106
98
 
107
- if @routing.nil?
108
- invalid_properties.push('invalid value for "routing", routing cannot be nil.')
109
- end
99
+ invalid_properties.push('invalid value for "routing", routing cannot be nil.') if @routing.nil?
110
100
 
111
101
  invalid_properties
112
102
  end
@@ -117,24 +107,26 @@ module MoneyKit::PlaidCompatible
117
107
  return false if @account_id.nil?
118
108
  return false if @account.nil?
119
109
  return false if @routing.nil?
110
+
120
111
  true
121
112
  end
122
113
 
123
114
  # Checks equality by comparing each attribute.
124
115
  # @param [Object] Object to be compared
125
- def ==(o)
126
- return true if self.equal?(o)
127
- self.class == o.class &&
128
- account_id == o.account_id &&
129
- account == o.account &&
130
- routing == o.routing &&
131
- wire_routing == o.wire_routing
116
+ def ==(other)
117
+ return true if equal?(other)
118
+
119
+ self.class == other.class &&
120
+ account_id == other.account_id &&
121
+ account == other.account &&
122
+ routing == other.routing &&
123
+ wire_routing == other.wire_routing
132
124
  end
133
125
 
134
126
  # @see the `==` method
135
127
  # @param [Object] Object to be compared
136
- def eql?(o)
137
- self == o
128
+ def eql?(other)
129
+ self == other
138
130
  end
139
131
 
140
132
  # Calculates hash code according to all attributes.
@@ -155,17 +147,20 @@ module MoneyKit::PlaidCompatible
155
147
  # @return [Object] Returns the model itself
156
148
  def build_from_hash(attributes)
157
149
  return nil unless attributes.is_a?(Hash)
150
+
158
151
  self.class.openapi_types.each_pair do |key, type|
159
152
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
160
- self.send("#{key}=", nil)
153
+ send("#{key}=", nil)
161
154
  elsif type =~ /\AArray<(.*)>/i
162
155
  # check to ensure the input is an array given that the attribute
163
156
  # is documented as an array but the input is not
164
157
  if attributes[self.class.attribute_map[key]].is_a?(Array)
165
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
159
+ _deserialize(::Regexp.last_match(1), v)
160
+ end)
166
161
  end
167
162
  elsif !attributes[self.class.attribute_map[key]].nil?
168
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
164
  end
170
165
  end
171
166
 
@@ -232,7 +227,7 @@ module MoneyKit::PlaidCompatible
232
227
  def to_hash
233
228
  hash = {}
234
229
  self.class.attribute_map.each_pair do |attr, param|
235
- value = self.send(attr)
230
+ value = send(attr)
236
231
  if value.nil?
237
232
  is_nullable = self.class.openapi_nullable.include?(attr)
238
233
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -260,7 +255,6 @@ module MoneyKit::PlaidCompatible
260
255
  value
261
256
  end
262
257
  end
263
-
264
258
  end
265
-
259
+ end
266
260
  end