moneykit 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
  # TransactionsSyncResponse defines the response schema for `/transactions/sync`
18
17
  class TransactionsSyncResponse
19
18
  # Transactions that have been added to the Item since `cursor` ordered by ascending last modified time.
@@ -37,12 +36,12 @@ module MoneyKit::PlaidCompatible
37
36
  # Attribute mapping from ruby-style variable name to JSON key.
38
37
  def self.attribute_map
39
38
  {
40
- :'added' => :'added',
41
- :'modified' => :'modified',
42
- :'removed' => :'removed',
43
- :'next_cursor' => :'next_cursor',
44
- :'has_more' => :'has_more',
45
- :'request_id' => :'request_id'
39
+ 'added': :added,
40
+ 'modified': :modified,
41
+ 'removed': :removed,
42
+ 'next_cursor': :next_cursor,
43
+ 'has_more': :has_more,
44
+ 'request_id': :request_id
46
45
  }
47
46
  end
48
47
 
@@ -54,94 +53,74 @@ module MoneyKit::PlaidCompatible
54
53
  # Attribute type mapping.
55
54
  def self.openapi_types
56
55
  {
57
- :'added' => :'Array<Transaction>',
58
- :'modified' => :'Array<Transaction>',
59
- :'removed' => :'Array<RemovedTransaction>',
60
- :'next_cursor' => :'String',
61
- :'has_more' => :'Boolean',
62
- :'request_id' => :'String'
56
+ 'added': :'Array<Transaction>',
57
+ 'modified': :'Array<Transaction>',
58
+ 'removed': :'Array<RemovedTransaction>',
59
+ 'next_cursor': :String,
60
+ 'has_more': :Boolean,
61
+ 'request_id': :String
63
62
  }
64
63
  end
65
64
 
66
65
  # List of attributes with nullable: true
67
66
  def self.openapi_nullable
68
- Set.new([
69
- ])
67
+ Set.new([])
70
68
  end
71
69
 
72
70
  # Initializes the object
73
71
  # @param [Hash] attributes Model attributes in the form of hash
74
72
  def initialize(attributes = {})
75
- if (!attributes.is_a?(Hash))
76
- fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsSyncResponse` initialize method"
73
+ unless attributes.is_a?(Hash)
74
+ raise ArgumentError,
75
+ 'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::TransactionsSyncResponse` initialize method'
77
76
  end
78
77
 
79
78
  # check to see if the attribute exists and convert string to symbol for hash key
80
- attributes = attributes.each_with_object({}) { |(k, v), h|
81
- if (!self.class.attribute_map.key?(k.to_sym))
82
- fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::TransactionsSyncResponse`. 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::TransactionsSyncResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
83
  end
84
- h[k.to_sym] = v
85
- }
86
84
 
87
- if attributes.key?(:'added')
88
- if (value = attributes[:'added']).is_a?(Array)
89
- self.added = value
90
- end
85
+ h[k.to_sym] = v
91
86
  end
92
87
 
93
- if attributes.key?(:'modified')
94
- if (value = attributes[:'modified']).is_a?(Array)
95
- self.modified = value
96
- end
88
+ if attributes.key?(:added) && (value = attributes[:added]).is_a?(Array)
89
+ self.added = value
97
90
  end
98
91
 
99
- if attributes.key?(:'removed')
100
- if (value = attributes[:'removed']).is_a?(Array)
101
- self.removed = value
102
- end
92
+ if attributes.key?(:modified) && (value = attributes[:modified]).is_a?(Array)
93
+ self.modified = value
103
94
  end
104
95
 
105
- if attributes.key?(:'next_cursor')
106
- self.next_cursor = attributes[:'next_cursor']
96
+ if attributes.key?(:removed) && (value = attributes[:removed]).is_a?(Array)
97
+ self.removed = value
107
98
  end
108
99
 
109
- if attributes.key?(:'has_more')
110
- self.has_more = attributes[:'has_more']
111
- end
100
+ self.next_cursor = attributes[:next_cursor] if attributes.key?(:next_cursor)
112
101
 
113
- if attributes.key?(:'request_id')
114
- self.request_id = attributes[:'request_id']
115
- end
102
+ self.has_more = attributes[:has_more] if attributes.key?(:has_more)
103
+
104
+ return unless attributes.key?(:request_id)
105
+
106
+ self.request_id = attributes[:request_id]
116
107
  end
117
108
 
118
109
  # Show invalid properties with the reasons. Usually used together with valid?
119
110
  # @return Array for valid properties with the reasons
120
111
  def list_invalid_properties
121
- invalid_properties = Array.new
122
- if @added.nil?
123
- invalid_properties.push('invalid value for "added", added cannot be nil.')
124
- end
112
+ invalid_properties = []
113
+ invalid_properties.push('invalid value for "added", added cannot be nil.') if @added.nil?
125
114
 
126
- if @modified.nil?
127
- invalid_properties.push('invalid value for "modified", modified cannot be nil.')
128
- end
115
+ invalid_properties.push('invalid value for "modified", modified cannot be nil.') if @modified.nil?
129
116
 
130
- if @removed.nil?
131
- invalid_properties.push('invalid value for "removed", removed cannot be nil.')
132
- end
117
+ invalid_properties.push('invalid value for "removed", removed cannot be nil.') if @removed.nil?
133
118
 
134
- if @next_cursor.nil?
135
- invalid_properties.push('invalid value for "next_cursor", next_cursor cannot be nil.')
136
- end
119
+ invalid_properties.push('invalid value for "next_cursor", next_cursor cannot be nil.') if @next_cursor.nil?
137
120
 
138
- if @has_more.nil?
139
- invalid_properties.push('invalid value for "has_more", has_more cannot be nil.')
140
- end
121
+ invalid_properties.push('invalid value for "has_more", has_more cannot be nil.') if @has_more.nil?
141
122
 
142
- if @request_id.nil?
143
- invalid_properties.push('invalid value for "request_id", request_id cannot be nil.')
144
- end
123
+ invalid_properties.push('invalid value for "request_id", request_id cannot be nil.') if @request_id.nil?
145
124
 
146
125
  invalid_properties
147
126
  end
@@ -155,26 +134,28 @@ module MoneyKit::PlaidCompatible
155
134
  return false if @next_cursor.nil?
156
135
  return false if @has_more.nil?
157
136
  return false if @request_id.nil?
137
+
158
138
  true
159
139
  end
160
140
 
161
141
  # Checks equality by comparing each attribute.
162
142
  # @param [Object] Object to be compared
163
- def ==(o)
164
- return true if self.equal?(o)
165
- self.class == o.class &&
166
- added == o.added &&
167
- modified == o.modified &&
168
- removed == o.removed &&
169
- next_cursor == o.next_cursor &&
170
- has_more == o.has_more &&
171
- request_id == o.request_id
143
+ def ==(other)
144
+ return true if equal?(other)
145
+
146
+ self.class == other.class &&
147
+ added == other.added &&
148
+ modified == other.modified &&
149
+ removed == other.removed &&
150
+ next_cursor == other.next_cursor &&
151
+ has_more == other.has_more &&
152
+ request_id == other.request_id
172
153
  end
173
154
 
174
155
  # @see the `==` method
175
156
  # @param [Object] Object to be compared
176
- def eql?(o)
177
- self == o
157
+ def eql?(other)
158
+ self == other
178
159
  end
179
160
 
180
161
  # Calculates hash code according to all attributes.
@@ -195,17 +176,20 @@ module MoneyKit::PlaidCompatible
195
176
  # @return [Object] Returns the model itself
196
177
  def build_from_hash(attributes)
197
178
  return nil unless attributes.is_a?(Hash)
179
+
198
180
  self.class.openapi_types.each_pair do |key, type|
199
181
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
200
- self.send("#{key}=", nil)
182
+ send("#{key}=", nil)
201
183
  elsif type =~ /\AArray<(.*)>/i
202
184
  # check to ensure the input is an array given that the attribute
203
185
  # is documented as an array but the input is not
204
186
  if attributes[self.class.attribute_map[key]].is_a?(Array)
205
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
187
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
188
+ _deserialize(::Regexp.last_match(1), v)
189
+ end)
206
190
  end
207
191
  elsif !attributes[self.class.attribute_map[key]].nil?
208
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
192
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
209
193
  end
210
194
  end
211
195
 
@@ -272,7 +256,7 @@ module MoneyKit::PlaidCompatible
272
256
  def to_hash
273
257
  hash = {}
274
258
  self.class.attribute_map.each_pair do |attr, param|
275
- value = self.send(attr)
259
+ value = send(attr)
276
260
  if value.nil?
277
261
  is_nullable = self.class.openapi_nullable.include?(attr)
278
262
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -300,7 +284,6 @@ module MoneyKit::PlaidCompatible
300
284
  value
301
285
  end
302
286
  end
303
-
304
287
  end
305
-
288
+ end
306
289
  end
@@ -1,32 +1,27 @@
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
  class ValidationError
18
- attr_accessor :loc
19
-
20
- attr_accessor :msg
21
-
22
- attr_accessor :type
17
+ attr_accessor :loc, :msg, :type
23
18
 
24
19
  # Attribute mapping from ruby-style variable name to JSON key.
25
20
  def self.attribute_map
26
21
  {
27
- :'loc' => :'loc',
28
- :'msg' => :'msg',
29
- :'type' => :'type'
22
+ 'loc': :loc,
23
+ 'msg': :msg,
24
+ 'type': :type
30
25
  }
31
26
  end
32
27
 
@@ -38,63 +33,55 @@ module MoneyKit::PlaidCompatible
38
33
  # Attribute type mapping.
39
34
  def self.openapi_types
40
35
  {
41
- :'loc' => :'Array<AnyOfstringinteger>',
42
- :'msg' => :'String',
43
- :'type' => :'String'
36
+ 'loc': :'Array<AnyOfstringinteger>',
37
+ 'msg': :String,
38
+ 'type': :String
44
39
  }
45
40
  end
46
41
 
47
42
  # List of attributes with nullable: true
48
43
  def self.openapi_nullable
49
- Set.new([
50
- ])
44
+ Set.new([])
51
45
  end
52
46
 
53
47
  # Initializes the object
54
48
  # @param [Hash] attributes Model attributes in the form of hash
55
49
  def initialize(attributes = {})
56
- if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::ValidationError` initialize method"
50
+ unless attributes.is_a?(Hash)
51
+ raise ArgumentError,
52
+ 'The input argument (attributes) must be a hash in `MoneyKit::PlaidCompatible::ValidationError` initialize method'
58
53
  end
59
54
 
60
55
  # check to see if the attribute exists and convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h|
62
- if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::ValidationError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ attributes = attributes.each_with_object({}) do |(k, v), h|
57
+ unless self.class.attribute_map.key?(k.to_sym)
58
+ raise ArgumentError,
59
+ "`#{k}` is not a valid attribute in `MoneyKit::PlaidCompatible::ValidationError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
60
  end
65
- h[k.to_sym] = v
66
- }
67
61
 
68
- if attributes.key?(:'loc')
69
- if (value = attributes[:'loc']).is_a?(Array)
70
- self.loc = value
71
- end
62
+ h[k.to_sym] = v
72
63
  end
73
64
 
74
- if attributes.key?(:'msg')
75
- self.msg = attributes[:'msg']
65
+ if attributes.key?(:loc) && (value = attributes[:loc]).is_a?(Array)
66
+ self.loc = value
76
67
  end
77
68
 
78
- if attributes.key?(:'type')
79
- self.type = attributes[:'type']
80
- end
69
+ self.msg = attributes[:msg] if attributes.key?(:msg)
70
+
71
+ return unless attributes.key?(:type)
72
+
73
+ self.type = attributes[:type]
81
74
  end
82
75
 
83
76
  # Show invalid properties with the reasons. Usually used together with valid?
84
77
  # @return Array for valid properties with the reasons
85
78
  def list_invalid_properties
86
- invalid_properties = Array.new
87
- if @loc.nil?
88
- invalid_properties.push('invalid value for "loc", loc cannot be nil.')
89
- end
79
+ invalid_properties = []
80
+ invalid_properties.push('invalid value for "loc", loc cannot be nil.') if @loc.nil?
90
81
 
91
- if @msg.nil?
92
- invalid_properties.push('invalid value for "msg", msg cannot be nil.')
93
- end
82
+ invalid_properties.push('invalid value for "msg", msg cannot be nil.') if @msg.nil?
94
83
 
95
- if @type.nil?
96
- invalid_properties.push('invalid value for "type", type cannot be nil.')
97
- end
84
+ invalid_properties.push('invalid value for "type", type cannot be nil.') if @type.nil?
98
85
 
99
86
  invalid_properties
100
87
  end
@@ -105,23 +92,25 @@ module MoneyKit::PlaidCompatible
105
92
  return false if @loc.nil?
106
93
  return false if @msg.nil?
107
94
  return false if @type.nil?
95
+
108
96
  true
109
97
  end
110
98
 
111
99
  # Checks equality by comparing each attribute.
112
100
  # @param [Object] Object to be compared
113
- def ==(o)
114
- return true if self.equal?(o)
115
- self.class == o.class &&
116
- loc == o.loc &&
117
- msg == o.msg &&
118
- type == o.type
101
+ def ==(other)
102
+ return true if equal?(other)
103
+
104
+ self.class == other.class &&
105
+ loc == other.loc &&
106
+ msg == other.msg &&
107
+ type == other.type
119
108
  end
120
109
 
121
110
  # @see the `==` method
122
111
  # @param [Object] Object to be compared
123
- def eql?(o)
124
- self == o
112
+ def eql?(other)
113
+ self == other
125
114
  end
126
115
 
127
116
  # Calculates hash code according to all attributes.
@@ -142,17 +131,20 @@ module MoneyKit::PlaidCompatible
142
131
  # @return [Object] Returns the model itself
143
132
  def build_from_hash(attributes)
144
133
  return nil unless attributes.is_a?(Hash)
134
+
145
135
  self.class.openapi_types.each_pair do |key, type|
146
136
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
147
- self.send("#{key}=", nil)
137
+ send("#{key}=", nil)
148
138
  elsif type =~ /\AArray<(.*)>/i
149
139
  # check to ensure the input is an array given that the attribute
150
140
  # is documented as an array but the input is not
151
141
  if attributes[self.class.attribute_map[key]].is_a?(Array)
152
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
143
+ _deserialize(::Regexp.last_match(1), v)
144
+ end)
153
145
  end
154
146
  elsif !attributes[self.class.attribute_map[key]].nil?
155
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
148
  end
157
149
  end
158
150
 
@@ -219,7 +211,7 @@ module MoneyKit::PlaidCompatible
219
211
  def to_hash
220
212
  hash = {}
221
213
  self.class.attribute_map.each_pair do |attr, param|
222
- value = self.send(attr)
214
+ value = send(attr)
223
215
  if value.nil?
224
216
  is_nullable = self.class.openapi_nullable.include?(attr)
225
217
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -247,7 +239,6 @@ module MoneyKit::PlaidCompatible
247
239
  value
248
240
  end
249
241
  end
250
-
251
242
  end
252
-
243
+ end
253
244
  end
@@ -1,23 +1,22 @@
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
  class WebhookEnvironmentValues
18
- DEVELOPMENT = "development".freeze
19
- SANDBOX = "sandbox".freeze
20
- PRODUCTION = "production".freeze
17
+ DEVELOPMENT = 'development'.freeze
18
+ SANDBOX = 'sandbox'.freeze
19
+ PRODUCTION = 'production'.freeze
21
20
 
22
21
  # Builds the enum from string
23
22
  # @param [String] The enum value in the form of the string
@@ -36,5 +35,5 @@ module MoneyKit::PlaidCompatible
36
35
  value
37
36
  end
38
37
  end
39
-
38
+ end
40
39
  end
@@ -1,15 +1,15 @@
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
12
-
13
- module MoneyKit::PlaidCompatible
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
+ #
10
+
11
+ module MoneyKit
12
+ module PlaidCompatible
14
13
  VERSION = '1.0.0'
14
+ end
15
15
  end
@@ -1,14 +1,12 @@
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
  # Common files
14
12
  require 'plaid_compatible/money_kit_plaid_compatible/api_client'
@@ -81,7 +79,8 @@ require 'plaid_compatible/money_kit_plaid_compatible/models/webhook_environment_
81
79
  # APIs
82
80
  require 'plaid_compatible/money_kit_plaid_compatible/api/plaid_api'
83
81
 
84
- module MoneyKit::PlaidCompatible
82
+ module MoneyKit
83
+ module PlaidCompatible
85
84
  class << self
86
85
  # Customize default settings for the SDK using block.
87
86
  # MoneyKit::PlaidCompatible.configure do |config|
@@ -97,4 +96,5 @@ module MoneyKit::PlaidCompatible
97
96
  end
98
97
  end
99
98
  end
99
+ end
100
100
  end
data/moneykit.gemspec CHANGED
@@ -1,31 +1,27 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- =begin
4
- #MoneyKit API
5
-
6
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.0
9
-
10
- Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.5.0
12
-
13
- =end
14
-
15
- $:.push File.expand_path("../lib", __FILE__)
16
- require "moneykit/version"
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
+ #
10
+
11
+ $:.push File.expand_path('lib', __dir__)
12
+ require 'moneykit/version'
17
13
 
18
14
  Gem::Specification.new do |s|
19
- s.name = "moneykit"
15
+ s.name = 'moneykit'
20
16
  s.version = MoneyKit::VERSION
21
17
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["MoneyKit"]
23
- s.email = [""]
24
- s.homepage = "https://github.com/moneykit/moneykit-ruby"
25
- s.summary = "MoneyKit API Ruby Gem"
26
- s.description = "MoneyKit API"
27
- s.license = "Unlicense"
28
- s.required_ruby_version = ">= 2.7"
18
+ s.authors = ['MoneyKit']
19
+ s.email = ['']
20
+ s.homepage = 'https://github.com/moneykit/moneykit-ruby'
21
+ s.summary = 'MoneyKit API Ruby Gem'
22
+ s.description = 'MoneyKit API'
23
+ s.license = 'Unlicense'
24
+ s.required_ruby_version = '>= 2.7'
29
25
 
30
26
  s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
31
27
  s.add_runtime_dependency 'faraday-multipart'
@@ -35,5 +31,5 @@ Gem::Specification.new do |s|
35
31
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
32
  s.test_files = `find spec/*`.split("\n")
37
33
  s.executables = []
38
- s.require_paths = ["lib"]
34
+ s.require_paths = ['lib']
39
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoneyKit