lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  8. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
  17. data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
  19. data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
  20. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
  23. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  24. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
  25. data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
  26. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  27. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  28. data/lib/lithic/models/book_transfer_response.rb +6 -5
  29. data/lib/lithic/models/category_details.rb +27 -0
  30. data/lib/lithic/models/dispute_v2.rb +555 -0
  31. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  32. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  33. data/lib/lithic/models/event.rb +213 -69
  34. data/lib/lithic/models/event_list_params.rb +112 -6
  35. data/lib/lithic/models/event_subscription.rb +112 -6
  36. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  37. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  38. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  39. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  40. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  41. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  42. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  43. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  44. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  45. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  46. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  47. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  48. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  49. data/lib/lithic/models/external_payment.rb +3 -2
  50. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  51. data/lib/lithic/models/financial_account.rb +5 -68
  52. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  53. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  54. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
  55. data/lib/lithic/models/financial_accounts/statement.rb +73 -211
  56. data/lib/lithic/models/financial_event.rb +148 -0
  57. data/lib/lithic/models/financial_transaction.rb +3 -146
  58. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  59. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  60. data/lib/lithic/models/merchant.rb +70 -0
  61. data/lib/lithic/models/payment.rb +16 -14
  62. data/lib/lithic/models/payment_return_params.rb +62 -0
  63. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  64. data/lib/lithic/models/statement_totals.rb +100 -0
  65. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  66. data/lib/lithic/models/tokenization.rb +189 -23
  67. data/lib/lithic/models/transaction.rb +15 -185
  68. data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
  69. data/lib/lithic/models/transfer.rb +3 -146
  70. data/lib/lithic/models.rb +18 -0
  71. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  72. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  73. data/lib/lithic/resources/disputes_v2.rb +74 -0
  74. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  75. data/lib/lithic/resources/payments.rb +53 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +18 -3
  78. data/rbi/lithic/client.rbi +3 -0
  79. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  80. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  81. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  82. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  83. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  84. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  85. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  86. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
  87. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  88. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  89. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  90. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
  91. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
  92. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
  93. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
  94. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  95. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
  96. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
  97. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  98. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
  99. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
  100. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  101. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  102. data/rbi/lithic/models/book_transfer_response.rbi +16 -11
  103. data/rbi/lithic/models/category_details.rbi +43 -0
  104. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  105. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  106. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  107. data/rbi/lithic/models/event.rbi +348 -111
  108. data/rbi/lithic/models/event_list_params.rbi +155 -25
  109. data/rbi/lithic/models/event_subscription.rbi +155 -25
  110. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  111. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  112. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  113. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  114. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  115. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  116. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  117. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  118. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  119. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  120. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  121. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  122. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  123. data/rbi/lithic/models/external_payment.rbi +5 -6
  124. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  125. data/rbi/lithic/models/financial_account.rbi +15 -136
  126. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  127. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  128. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
  129. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
  130. data/rbi/lithic/models/financial_event.rbi +409 -0
  131. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  132. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  133. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  134. data/rbi/lithic/models/merchant.rbi +89 -0
  135. data/rbi/lithic/models/payment.rbi +27 -21
  136. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  137. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  138. data/rbi/lithic/models/statement_totals.rbi +128 -0
  139. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  140. data/rbi/lithic/models/tokenization.rbi +429 -34
  141. data/rbi/lithic/models/transaction.rbi +26 -336
  142. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
  143. data/rbi/lithic/models/transfer.rbi +4 -436
  144. data/rbi/lithic/models.rbi +19 -0
  145. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  146. data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
  147. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  148. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  149. data/rbi/lithic/resources/payments.rbi +52 -0
  150. data/sig/lithic/client.rbs +2 -0
  151. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  152. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  153. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  154. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  155. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  156. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  157. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  158. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
  159. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  160. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  161. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  162. data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
  163. data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
  164. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
  165. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
  166. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  167. data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
  168. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
  169. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  170. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
  171. data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
  172. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  173. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  174. data/sig/lithic/models/book_transfer_response.rbs +10 -8
  175. data/sig/lithic/models/category_details.rbs +26 -0
  176. data/sig/lithic/models/dispute_v2.rbs +438 -0
  177. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  178. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  179. data/sig/lithic/models/event.rbs +25 -13
  180. data/sig/lithic/models/event_list_params.rbs +25 -13
  181. data/sig/lithic/models/event_subscription.rbs +25 -13
  182. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  183. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  184. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  185. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  186. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  187. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  188. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  189. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  190. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  191. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  192. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  193. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  194. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  195. data/sig/lithic/models/external_payment.rbs +7 -7
  196. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  197. data/sig/lithic/models/financial_account.rbs +7 -49
  198. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  199. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  200. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
  201. data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
  202. data/sig/lithic/models/financial_event.rbs +216 -0
  203. data/sig/lithic/models/financial_transaction.rbs +4 -217
  204. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  205. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  206. data/sig/lithic/models/merchant.rbs +50 -0
  207. data/sig/lithic/models/payment.rbs +17 -15
  208. data/sig/lithic/models/payment_return_params.rbs +46 -0
  209. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  210. data/sig/lithic/models/statement_totals.rbs +76 -0
  211. data/sig/lithic/models/tokenization.rbs +160 -13
  212. data/sig/lithic/models/transaction.rbs +17 -145
  213. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  214. data/sig/lithic/models/transfer.rbs +6 -219
  215. data/sig/lithic/models.rbs +18 -0
  216. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  217. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  218. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  219. data/sig/lithic/resources/payments.rbs +12 -0
  220. metadata +56 -11
  221. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  222. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  223. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  224. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  225. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  226. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  227. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  228. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  229. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -0,0 +1,242 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # @see Lithic::Resources::ExternalBankAccounts#unpause
6
+ class ExternalBankAccountUnpauseResponse < Lithic::Internal::Type::BaseModel
7
+ # @!attribute token
8
+ # A globally unique identifier for this record of an external bank account
9
+ # association. If a program links an external bank account to more than one
10
+ # end-user or to both the program and the end-user, then Lithic will return each
11
+ # record of the association
12
+ #
13
+ # @return [String]
14
+ required :token, String
15
+
16
+ # @!attribute country
17
+ # The country that the bank account is located in using ISO 3166-1. We will only
18
+ # accept USA bank accounts e.g., USA
19
+ #
20
+ # @return [String]
21
+ required :country, String
22
+
23
+ # @!attribute created
24
+ # An ISO 8601 string representing when this funding source was added to the Lithic
25
+ # account.
26
+ #
27
+ # @return [Time]
28
+ required :created, Time
29
+
30
+ # @!attribute currency
31
+ # currency of the external account 3-character alphabetic ISO 4217 code
32
+ #
33
+ # @return [String]
34
+ required :currency, String
35
+
36
+ # @!attribute last_four
37
+ # The last 4 digits of the bank account. Derived by Lithic from the account number
38
+ # passed
39
+ #
40
+ # @return [String]
41
+ required :last_four, String
42
+
43
+ # @!attribute owner
44
+ # Legal Name of the business or individual who owns the external account. This
45
+ # will appear in statements
46
+ #
47
+ # @return [String]
48
+ required :owner, String
49
+
50
+ # @!attribute owner_type
51
+ # Owner Type
52
+ #
53
+ # @return [Symbol, Lithic::Models::OwnerType]
54
+ required :owner_type, enum: -> { Lithic::OwnerType }
55
+
56
+ # @!attribute routing_number
57
+ # Routing Number
58
+ #
59
+ # @return [String]
60
+ required :routing_number, String
61
+
62
+ # @!attribute state
63
+ # Account State
64
+ #
65
+ # @return [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::State]
66
+ required :state, enum: -> { Lithic::Models::ExternalBankAccountUnpauseResponse::State }
67
+
68
+ # @!attribute type
69
+ # Account Type
70
+ #
71
+ # @return [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::Type]
72
+ required :type, enum: -> { Lithic::Models::ExternalBankAccountUnpauseResponse::Type }
73
+
74
+ # @!attribute verification_attempts
75
+ # The number of attempts at verification
76
+ #
77
+ # @return [Integer]
78
+ required :verification_attempts, Integer
79
+
80
+ # @!attribute verification_method
81
+ # Verification Method
82
+ #
83
+ # @return [Symbol, Lithic::Models::VerificationMethod]
84
+ required :verification_method, enum: -> { Lithic::VerificationMethod }
85
+
86
+ # @!attribute verification_state
87
+ # Verification State
88
+ #
89
+ # @return [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::VerificationState]
90
+ required :verification_state,
91
+ enum: -> { Lithic::Models::ExternalBankAccountUnpauseResponse::VerificationState }
92
+
93
+ # @!attribute account_token
94
+ # Indicates which Lithic account the external account is associated with. For
95
+ # external accounts that are associated with the program, account_token field
96
+ # returned will be null
97
+ #
98
+ # @return [String, nil]
99
+ optional :account_token, String, nil?: true
100
+
101
+ # @!attribute address
102
+ # Address
103
+ #
104
+ # @return [Lithic::Models::ExternalBankAccountAddress, nil]
105
+ optional :address, -> { Lithic::ExternalBankAccountAddress }, nil?: true
106
+
107
+ # @!attribute company_id
108
+ # Optional field that helps identify bank accounts in receipts
109
+ #
110
+ # @return [String, nil]
111
+ optional :company_id, String, nil?: true
112
+
113
+ # @!attribute dob
114
+ # Date of Birth of the Individual that owns the external bank account
115
+ #
116
+ # @return [Date, nil]
117
+ optional :dob, Date, nil?: true
118
+
119
+ # @!attribute doing_business_as
120
+ # Doing Business As
121
+ #
122
+ # @return [String, nil]
123
+ optional :doing_business_as, String, nil?: true
124
+
125
+ # @!attribute financial_account_token
126
+ # The financial account token of the operating account to fund the micro deposits
127
+ #
128
+ # @return [String, nil]
129
+ optional :financial_account_token, String, nil?: true
130
+
131
+ # @!attribute name
132
+ # The nickname for this External Bank Account
133
+ #
134
+ # @return [String, nil]
135
+ optional :name, String, nil?: true
136
+
137
+ # @!attribute user_defined_id
138
+ # User Defined ID
139
+ #
140
+ # @return [String, nil]
141
+ optional :user_defined_id, String, nil?: true
142
+
143
+ # @!attribute verification_failed_reason
144
+ # Optional free text description of the reason for the failed verification. For
145
+ # ACH micro-deposits returned, this field will display the reason return code sent
146
+ # by the ACH network
147
+ #
148
+ # @return [String, nil]
149
+ optional :verification_failed_reason, String, nil?: true
150
+
151
+ # @!method initialize(token:, country:, created:, currency:, last_four:, owner:, owner_type:, routing_number:, state:, type:, verification_attempts:, verification_method:, verification_state:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, financial_account_token: nil, name: nil, user_defined_id: nil, verification_failed_reason: nil)
152
+ # Some parameter documentations has been truncated, see
153
+ # {Lithic::Models::ExternalBankAccountUnpauseResponse} for more details.
154
+ #
155
+ # @param token [String] A globally unique identifier for this record of an external bank account associa
156
+ #
157
+ # @param country [String] The country that the bank account is located in using ISO 3166-1. We will only a
158
+ #
159
+ # @param created [Time] An ISO 8601 string representing when this funding source was added to the Lithic
160
+ #
161
+ # @param currency [String] currency of the external account 3-character alphabetic ISO 4217 code
162
+ #
163
+ # @param last_four [String] The last 4 digits of the bank account. Derived by Lithic from the account number
164
+ #
165
+ # @param owner [String] Legal Name of the business or individual who owns the external account. This wil
166
+ #
167
+ # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type
168
+ #
169
+ # @param routing_number [String] Routing Number
170
+ #
171
+ # @param state [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::State] Account State
172
+ #
173
+ # @param type [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::Type] Account Type
174
+ #
175
+ # @param verification_attempts [Integer] The number of attempts at verification
176
+ #
177
+ # @param verification_method [Symbol, Lithic::Models::VerificationMethod] Verification Method
178
+ #
179
+ # @param verification_state [Symbol, Lithic::Models::ExternalBankAccountUnpauseResponse::VerificationState] Verification State
180
+ #
181
+ # @param account_token [String, nil] Indicates which Lithic account the external account is associated with. For exte
182
+ #
183
+ # @param address [Lithic::Models::ExternalBankAccountAddress, nil] Address
184
+ #
185
+ # @param company_id [String, nil] Optional field that helps identify bank accounts in receipts
186
+ #
187
+ # @param dob [Date, nil] Date of Birth of the Individual that owns the external bank account
188
+ #
189
+ # @param doing_business_as [String, nil] Doing Business As
190
+ #
191
+ # @param financial_account_token [String, nil] The financial account token of the operating account to fund the micro deposits
192
+ #
193
+ # @param name [String, nil] The nickname for this External Bank Account
194
+ #
195
+ # @param user_defined_id [String, nil] User Defined ID
196
+ #
197
+ # @param verification_failed_reason [String, nil] Optional free text description of the reason for the failed verification. For AC
198
+
199
+ # Account State
200
+ #
201
+ # @see Lithic::Models::ExternalBankAccountUnpauseResponse#state
202
+ module State
203
+ extend Lithic::Internal::Type::Enum
204
+
205
+ ENABLED = :ENABLED
206
+ CLOSED = :CLOSED
207
+ PAUSED = :PAUSED
208
+
209
+ # @!method self.values
210
+ # @return [Array<Symbol>]
211
+ end
212
+
213
+ # Account Type
214
+ #
215
+ # @see Lithic::Models::ExternalBankAccountUnpauseResponse#type
216
+ module Type
217
+ extend Lithic::Internal::Type::Enum
218
+
219
+ CHECKING = :CHECKING
220
+ SAVINGS = :SAVINGS
221
+
222
+ # @!method self.values
223
+ # @return [Array<Symbol>]
224
+ end
225
+
226
+ # Verification State
227
+ #
228
+ # @see Lithic::Models::ExternalBankAccountUnpauseResponse#verification_state
229
+ module VerificationState
230
+ extend Lithic::Internal::Type::Enum
231
+
232
+ PENDING = :PENDING
233
+ ENABLED = :ENABLED
234
+ FAILED_VERIFICATION = :FAILED_VERIFICATION
235
+ INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
236
+
237
+ # @!method self.values
238
+ # @return [Array<Symbol>]
239
+ end
240
+ end
241
+ end
242
+ end
@@ -97,49 +97,49 @@ module Lithic
97
97
  # returned will be null
98
98
  #
99
99
  # @return [String, nil]
100
- optional :account_token, String
100
+ optional :account_token, String, nil?: true
101
101
 
102
102
  # @!attribute address
103
103
  # Address
104
104
  #
105
105
  # @return [Lithic::Models::ExternalBankAccountAddress, nil]
106
- optional :address, -> { Lithic::ExternalBankAccountAddress }
106
+ optional :address, -> { Lithic::ExternalBankAccountAddress }, nil?: true
107
107
 
108
108
  # @!attribute company_id
109
109
  # Optional field that helps identify bank accounts in receipts
110
110
  #
111
111
  # @return [String, nil]
112
- optional :company_id, String
112
+ optional :company_id, String, nil?: true
113
113
 
114
114
  # @!attribute dob
115
115
  # Date of Birth of the Individual that owns the external bank account
116
116
  #
117
117
  # @return [Date, nil]
118
- optional :dob, Date
118
+ optional :dob, Date, nil?: true
119
119
 
120
120
  # @!attribute doing_business_as
121
121
  # Doing Business As
122
122
  #
123
123
  # @return [String, nil]
124
- optional :doing_business_as, String
124
+ optional :doing_business_as, String, nil?: true
125
125
 
126
126
  # @!attribute financial_account_token
127
127
  # The financial account token of the operating account to fund the micro deposits
128
128
  #
129
129
  # @return [String, nil]
130
- optional :financial_account_token, String
130
+ optional :financial_account_token, String, nil?: true
131
131
 
132
132
  # @!attribute name
133
133
  # The nickname for this External Bank Account
134
134
  #
135
135
  # @return [String, nil]
136
- optional :name, String
136
+ optional :name, String, nil?: true
137
137
 
138
138
  # @!attribute user_defined_id
139
139
  # User Defined ID
140
140
  #
141
141
  # @return [String, nil]
142
- optional :user_defined_id, String
142
+ optional :user_defined_id, String, nil?: true
143
143
 
144
144
  # @!attribute verification_failed_reason
145
145
  # Optional free text description of the reason for the failed verification. For
@@ -147,7 +147,7 @@ module Lithic
147
147
  # by the ACH network
148
148
  #
149
149
  # @return [String, nil]
150
- optional :verification_failed_reason, String
150
+ optional :verification_failed_reason, String, nil?: true
151
151
 
152
152
  # @!method initialize(token:, country:, created:, currency:, last_four:, owner:, owner_type:, routing_number:, state:, type:, verification_attempts:, verification_method:, verification_state:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, financial_account_token: nil, name: nil, user_defined_id: nil, verification_failed_reason: nil)
153
153
  # Some parameter documentations has been truncated, see
@@ -179,23 +179,23 @@ module Lithic
179
179
  #
180
180
  # @param verification_state [Symbol, Lithic::Models::ExternalBankAccountUpdateResponse::VerificationState] Verification State
181
181
  #
182
- # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte
182
+ # @param account_token [String, nil] Indicates which Lithic account the external account is associated with. For exte
183
183
  #
184
- # @param address [Lithic::Models::ExternalBankAccountAddress] Address
184
+ # @param address [Lithic::Models::ExternalBankAccountAddress, nil] Address
185
185
  #
186
- # @param company_id [String] Optional field that helps identify bank accounts in receipts
186
+ # @param company_id [String, nil] Optional field that helps identify bank accounts in receipts
187
187
  #
188
- # @param dob [Date] Date of Birth of the Individual that owns the external bank account
188
+ # @param dob [Date, nil] Date of Birth of the Individual that owns the external bank account
189
189
  #
190
- # @param doing_business_as [String] Doing Business As
190
+ # @param doing_business_as [String, nil] Doing Business As
191
191
  #
192
- # @param financial_account_token [String] The financial account token of the operating account to fund the micro deposits
192
+ # @param financial_account_token [String, nil] The financial account token of the operating account to fund the micro deposits
193
193
  #
194
- # @param name [String] The nickname for this External Bank Account
194
+ # @param name [String, nil] The nickname for this External Bank Account
195
195
  #
196
- # @param user_defined_id [String] User Defined ID
196
+ # @param user_defined_id [String, nil] User Defined ID
197
197
  #
198
- # @param verification_failed_reason [String] Optional free text description of the reason for the failed verification. For AC
198
+ # @param verification_failed_reason [String, nil] Optional free text description of the reason for the failed verification. For AC
199
199
 
200
200
  # Owner Type
201
201
  #
@@ -99,49 +99,49 @@ module Lithic
99
99
  # returned will be null
100
100
  #
101
101
  # @return [String, nil]
102
- optional :account_token, String
102
+ optional :account_token, String, nil?: true
103
103
 
104
104
  # @!attribute address
105
105
  # Address
106
106
  #
107
107
  # @return [Lithic::Models::ExternalBankAccountAddress, nil]
108
- optional :address, -> { Lithic::ExternalBankAccountAddress }
108
+ optional :address, -> { Lithic::ExternalBankAccountAddress }, nil?: true
109
109
 
110
110
  # @!attribute company_id
111
111
  # Optional field that helps identify bank accounts in receipts
112
112
  #
113
113
  # @return [String, nil]
114
- optional :company_id, String
114
+ optional :company_id, String, nil?: true
115
115
 
116
116
  # @!attribute dob
117
117
  # Date of Birth of the Individual that owns the external bank account
118
118
  #
119
119
  # @return [Date, nil]
120
- optional :dob, Date
120
+ optional :dob, Date, nil?: true
121
121
 
122
122
  # @!attribute doing_business_as
123
123
  # Doing Business As
124
124
  #
125
125
  # @return [String, nil]
126
- optional :doing_business_as, String
126
+ optional :doing_business_as, String, nil?: true
127
127
 
128
128
  # @!attribute financial_account_token
129
129
  # The financial account token of the operating account to fund the micro deposits
130
130
  #
131
131
  # @return [String, nil]
132
- optional :financial_account_token, String
132
+ optional :financial_account_token, String, nil?: true
133
133
 
134
134
  # @!attribute name
135
135
  # The nickname for this External Bank Account
136
136
  #
137
137
  # @return [String, nil]
138
- optional :name, String
138
+ optional :name, String, nil?: true
139
139
 
140
140
  # @!attribute user_defined_id
141
141
  # User Defined ID
142
142
  #
143
143
  # @return [String, nil]
144
- optional :user_defined_id, String
144
+ optional :user_defined_id, String, nil?: true
145
145
 
146
146
  # @!attribute verification_failed_reason
147
147
  # Optional free text description of the reason for the failed verification. For
@@ -149,7 +149,7 @@ module Lithic
149
149
  # by the ACH network
150
150
  #
151
151
  # @return [String, nil]
152
- optional :verification_failed_reason, String
152
+ optional :verification_failed_reason, String, nil?: true
153
153
 
154
154
  # @!method initialize(token:, country:, created:, currency:, last_four:, owner:, owner_type:, routing_number:, state:, type:, verification_attempts:, verification_method:, verification_state:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, financial_account_token: nil, name: nil, user_defined_id: nil, verification_failed_reason: nil)
155
155
  # Some parameter documentations has been truncated, see
@@ -182,23 +182,23 @@ module Lithic
182
182
  #
183
183
  # @param verification_state [Symbol, Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse::VerificationState] Verification State
184
184
  #
185
- # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte
185
+ # @param account_token [String, nil] Indicates which Lithic account the external account is associated with. For exte
186
186
  #
187
- # @param address [Lithic::Models::ExternalBankAccountAddress] Address
187
+ # @param address [Lithic::Models::ExternalBankAccountAddress, nil] Address
188
188
  #
189
- # @param company_id [String] Optional field that helps identify bank accounts in receipts
189
+ # @param company_id [String, nil] Optional field that helps identify bank accounts in receipts
190
190
  #
191
- # @param dob [Date] Date of Birth of the Individual that owns the external bank account
191
+ # @param dob [Date, nil] Date of Birth of the Individual that owns the external bank account
192
192
  #
193
- # @param doing_business_as [String] Doing Business As
193
+ # @param doing_business_as [String, nil] Doing Business As
194
194
  #
195
- # @param financial_account_token [String] The financial account token of the operating account to fund the micro deposits
195
+ # @param financial_account_token [String, nil] The financial account token of the operating account to fund the micro deposits
196
196
  #
197
- # @param name [String] The nickname for this External Bank Account
197
+ # @param name [String, nil] The nickname for this External Bank Account
198
198
  #
199
- # @param user_defined_id [String] User Defined ID
199
+ # @param user_defined_id [String, nil] User Defined ID
200
200
  #
201
- # @param verification_failed_reason [String] Optional free text description of the reason for the failed verification. For AC
201
+ # @param verification_failed_reason [String, nil] Optional free text description of the reason for the failed verification. For AC
202
202
 
203
203
  # Owner Type
204
204
  #
@@ -77,7 +77,7 @@ module Lithic
77
77
  # @!attribute user_defined_id
78
78
  #
79
79
  # @return [String, nil]
80
- optional :user_defined_id, String
80
+ optional :user_defined_id, String, nil?: true
81
81
 
82
82
  # @!method initialize(token:, created:, status:, updated:, category: nil, currency: nil, events: nil, family: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil)
83
83
  # @param token [String] Unique identifier for the transaction
@@ -106,7 +106,7 @@ module Lithic
106
106
  #
107
107
  # @param settled_amount [Integer]
108
108
  #
109
- # @param user_defined_id [String]
109
+ # @param user_defined_id [String, nil]
110
110
 
111
111
  # The status of the transaction
112
112
  #
@@ -119,6 +119,7 @@ module Lithic
119
119
  DECLINED = :DECLINED
120
120
  REVERSED = :REVERSED
121
121
  CANCELED = :CANCELED
122
+ RETURNED = :RETURNED
122
123
 
123
124
  # @!method self.values
124
125
  # @return [Array<Symbol>]
@@ -130,6 +130,7 @@ module Lithic
130
130
  DECLINED = :DECLINED
131
131
  REVERSED = :REVERSED
132
132
  CANCELED = :CANCELED
133
+ RETURNED = :RETURNED
133
134
 
134
135
  # @!method self.values
135
136
  # @return [Array<Symbol>]
@@ -97,9 +97,10 @@ module Lithic
97
97
  class CreditConfiguration < Lithic::Internal::Type::BaseModel
98
98
  # @!attribute auto_collection_configuration
99
99
  #
100
- # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration]
100
+ # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, nil]
101
101
  required :auto_collection_configuration,
102
- -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration }
102
+ -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration },
103
+ nil?: true
103
104
 
104
105
  # @!attribute credit_limit
105
106
  #
@@ -123,34 +124,8 @@ module Lithic
123
124
  # @return [String, nil]
124
125
  required :tier, String, nil?: true
125
126
 
126
- # @!attribute charged_off_reason
127
- # @deprecated
128
- #
129
- # Reason for the financial account being marked as Charged Off
130
- #
131
- # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil]
132
- optional :charged_off_reason,
133
- enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason },
134
- nil?: true
135
-
136
- # @!attribute financial_account_state
137
- # @deprecated
138
- #
139
- # State of the financial account
140
- #
141
- # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil]
142
- optional :financial_account_state,
143
- enum: -> { Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState },
144
- nil?: true
145
-
146
- # @!attribute is_spend_blocked
147
- # @deprecated
148
- #
149
- # @return [Boolean, nil]
150
- optional :is_spend_blocked, Lithic::Internal::Type::Boolean
151
-
152
- # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil)
153
- # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration]
127
+ # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:)
128
+ # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, nil]
154
129
  #
155
130
  # @param credit_limit [Integer, nil]
156
131
  #
@@ -159,12 +134,6 @@ module Lithic
159
134
  # @param external_bank_account_token [String, nil]
160
135
  #
161
136
  # @param tier [String, nil] Tier assigned to the financial account
162
- #
163
- # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
164
- #
165
- # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account
166
- #
167
- # @param is_spend_blocked [Boolean]
168
137
 
169
138
  # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration
170
139
  class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
@@ -177,38 +146,6 @@ module Lithic
177
146
  # @!method initialize(auto_collection_enabled:)
178
147
  # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account
179
148
  end
180
-
181
- # @deprecated
182
- #
183
- # Reason for the financial account being marked as Charged Off
184
- #
185
- # @see Lithic::Models::FinancialAccount::CreditConfiguration#charged_off_reason
186
- module ChargedOffReason
187
- extend Lithic::Internal::Type::Enum
188
-
189
- DELINQUENT = :DELINQUENT
190
- FRAUD = :FRAUD
191
-
192
- # @!method self.values
193
- # @return [Array<Symbol>]
194
- end
195
-
196
- # @deprecated
197
- #
198
- # State of the financial account
199
- #
200
- # @see Lithic::Models::FinancialAccount::CreditConfiguration#financial_account_state
201
- module FinancialAccountState
202
- extend Lithic::Internal::Type::Enum
203
-
204
- PENDING = :PENDING
205
- CURRENT = :CURRENT
206
- DELINQUENT = :DELINQUENT
207
- CHARGED_OFF = :CHARGED_OFF
208
-
209
- # @!method self.values
210
- # @return [Array<Symbol>]
211
- end
212
149
  end
213
150
 
214
151
  # Status of the financial account
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ class CategoryBalances < Lithic::Internal::Type::BaseModel
7
+ # @!attribute fees
8
+ #
9
+ # @return [Integer]
10
+ required :fees, Integer
11
+
12
+ # @!attribute interest
13
+ #
14
+ # @return [Integer]
15
+ required :interest, Integer
16
+
17
+ # @!attribute principal
18
+ #
19
+ # @return [Integer]
20
+ required :principal, Integer
21
+
22
+ # @!method initialize(fees:, interest:, principal:)
23
+ # @param fees [Integer]
24
+ # @param interest [Integer]
25
+ # @param principal [Integer]
26
+ end
27
+ end
28
+ end
29
+ end