lithic 0.1.0.pre.alpha.56 → 0.1.0

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 (242) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +208 -49
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +2 -2
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +2 -2
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +2 -2
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +5 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +19 -2
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +4 -1
  16. data/lib/lithic/models/auth_rules/event_stream.rb +21 -0
  17. data/lib/lithic/models/auth_rules/v2_create_params.rb +3 -17
  18. data/lib/lithic/models/auth_rules/v2_list_params.rb +16 -19
  19. data/lib/lithic/models/card_bulk_order.rb +106 -0
  20. data/lib/lithic/models/card_bulk_order_create_params.rb +52 -0
  21. data/lib/lithic/models/card_bulk_order_list_params.rb +61 -0
  22. data/lib/lithic/models/card_bulk_order_retrieve_params.rb +14 -0
  23. data/lib/lithic/models/card_bulk_order_update_params.rb +32 -0
  24. data/lib/lithic/models/card_convert_physical_params.rb +3 -0
  25. data/lib/lithic/models/card_create_params.rb +14 -1
  26. data/lib/lithic/models/card_program.rb +10 -10
  27. data/lib/lithic/models/card_reissue_params.rb +3 -0
  28. data/lib/lithic/models/card_renew_params.rb +3 -0
  29. data/lib/lithic/models/card_web_provision_params.rb +32 -1
  30. data/lib/lithic/models/card_web_provision_response.rb +98 -60
  31. data/lib/lithic/models/cardholder_authentication.rb +132 -0
  32. data/lib/lithic/models/device.rb +37 -0
  33. data/lib/lithic/models/digital_wallet_token_metadata.rb +141 -0
  34. data/lib/lithic/models/{external_bank_account_unpause_response.rb → external_bank_account.rb} +15 -16
  35. data/lib/lithic/models/external_payment.rb +12 -0
  36. data/lib/lithic/models/external_payment_create_params.rb +2 -0
  37. data/lib/lithic/models/external_payment_list_params.rb +2 -0
  38. data/lib/lithic/models/financial_account_balance.rb +112 -0
  39. data/lib/lithic/models/financial_accounts/statement.rb +9 -9
  40. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -0
  41. data/lib/lithic/models/financial_event.rb +16 -0
  42. data/lib/lithic/models/{funding_event_retrieve_response.rb → funding_event.rb} +9 -10
  43. data/lib/lithic/models/internal_transaction.rb +166 -0
  44. data/lib/lithic/models/management_operation_create_params.rb +6 -0
  45. data/lib/lithic/models/management_operation_transaction.rb +6 -0
  46. data/lib/lithic/models/network_total.rb +169 -0
  47. data/lib/lithic/models/non_pci_card.rb +10 -1
  48. data/lib/lithic/models/payment.rb +11 -1
  49. data/lib/lithic/models/payment_create_params.rb +10 -1
  50. data/lib/lithic/models/three_ds_authentication.rb +1259 -0
  51. data/lib/lithic/models/token_info.rb +42 -0
  52. data/lib/lithic/models/tokenization.rb +9 -111
  53. data/lib/lithic/models/tokenization_decline_reason.rb +27 -0
  54. data/lib/lithic/models/tokenization_rule_result.rb +61 -0
  55. data/lib/lithic/models/tokenization_tfa_reason.rb +29 -0
  56. data/lib/lithic/models/transaction.rb +6 -174
  57. data/lib/lithic/models/wallet_decisioning_info.rb +44 -0
  58. data/lib/lithic/models.rb +38 -0
  59. data/lib/lithic/resources/auth_rules/v2.rb +17 -15
  60. data/lib/lithic/resources/card_bulk_orders.rb +127 -0
  61. data/lib/lithic/resources/cards/balances.rb +2 -2
  62. data/lib/lithic/resources/cards.rb +14 -3
  63. data/lib/lithic/resources/external_bank_accounts.rb +4 -4
  64. data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
  65. data/lib/lithic/resources/funding_events.rb +4 -4
  66. data/lib/lithic/resources/internal_transaction.rb +14 -0
  67. data/lib/lithic/resources/reports/settlement/network_totals.rb +4 -4
  68. data/lib/lithic/resources/three_ds/authentication.rb +2 -2
  69. data/lib/lithic/resources/tokenizations.rb +4 -4
  70. data/lib/lithic/version.rb +1 -1
  71. data/lib/lithic.rb +23 -17
  72. data/manifest.yaml +1 -0
  73. data/rbi/lithic/client.rbi +6 -0
  74. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  75. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  76. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  77. data/rbi/lithic/models/auth_rules/auth_rule.rbi +339 -80
  78. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +25 -0
  79. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +29 -0
  80. data/rbi/lithic/models/auth_rules/conditional_value.rbi +2 -1
  81. data/rbi/lithic/models/auth_rules/event_stream.rbi +44 -0
  82. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +4 -60
  83. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +27 -59
  84. data/rbi/lithic/models/card_bulk_order.rbi +141 -0
  85. data/rbi/lithic/models/card_bulk_order_create_params.rbi +92 -0
  86. data/rbi/lithic/models/card_bulk_order_list_params.rbi +98 -0
  87. data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +27 -0
  88. data/rbi/lithic/models/card_bulk_order_update_params.rbi +68 -0
  89. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -0
  90. data/rbi/lithic/models/card_create_params.rbi +23 -0
  91. data/rbi/lithic/models/card_program.rbi +10 -13
  92. data/rbi/lithic/models/card_reissue_params.rbi +8 -0
  93. data/rbi/lithic/models/card_renew_params.rbi +8 -0
  94. data/rbi/lithic/models/card_web_provision_params.rbi +44 -0
  95. data/rbi/lithic/models/card_web_provision_response.rbi +182 -102
  96. data/rbi/lithic/models/cardholder_authentication.rbi +296 -0
  97. data/rbi/lithic/models/device.rbi +54 -0
  98. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +290 -0
  99. data/rbi/lithic/models/{external_bank_account_unpause_response.rbi → external_bank_account.rbi} +26 -75
  100. data/rbi/lithic/models/external_payment.rbi +57 -0
  101. data/rbi/lithic/models/external_payment_create_params.rbi +10 -0
  102. data/rbi/lithic/models/external_payment_list_params.rbi +10 -0
  103. data/rbi/lithic/models/financial_account_balance.rbi +144 -0
  104. data/rbi/lithic/models/financial_accounts/statement.rbi +9 -9
  105. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +90 -0
  106. data/rbi/lithic/models/financial_event.rbi +60 -0
  107. data/rbi/lithic/models/{funding_event_list_response.rbi → funding_event.rbi} +13 -35
  108. data/rbi/lithic/models/internal_transaction.rbi +277 -0
  109. data/rbi/lithic/models/management_operation_create_params.rbi +30 -0
  110. data/rbi/lithic/models/management_operation_transaction.rbi +30 -0
  111. data/rbi/lithic/models/network_total.rbi +226 -0
  112. data/rbi/lithic/models/non_pci_card.rbi +10 -0
  113. data/rbi/lithic/models/payment.rbi +12 -0
  114. data/rbi/lithic/models/payment_create_params.rbi +15 -1
  115. data/rbi/lithic/models/three_ds_authentication.rbi +2432 -0
  116. data/rbi/lithic/models/token_info.rbi +70 -0
  117. data/rbi/lithic/models/tokenization.rbi +12 -335
  118. data/rbi/lithic/models/tokenization_decline_reason.rbi +73 -0
  119. data/rbi/lithic/models/tokenization_rule_result.rbi +96 -0
  120. data/rbi/lithic/models/tokenization_tfa_reason.rbi +74 -0
  121. data/rbi/lithic/models/transaction.rbi +8 -410
  122. data/rbi/lithic/models/wallet_decisioning_info.rbi +63 -0
  123. data/rbi/lithic/models.rbi +38 -0
  124. data/rbi/lithic/resources/auth_rules/v2.rbi +15 -15
  125. data/rbi/lithic/resources/card_bulk_orders.rbi +101 -0
  126. data/rbi/lithic/resources/cards/balances.rbi +1 -3
  127. data/rbi/lithic/resources/cards.rbi +22 -1
  128. data/rbi/lithic/resources/external_bank_accounts.rbi +2 -2
  129. data/rbi/lithic/resources/financial_accounts/balances.rbi +1 -3
  130. data/rbi/lithic/resources/funding_events.rbi +2 -4
  131. data/rbi/lithic/resources/internal_transaction.rbi +12 -0
  132. data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -8
  133. data/rbi/lithic/resources/three_ds/authentication.rbi +1 -1
  134. data/rbi/lithic/resources/tokenizations.rbi +2 -2
  135. data/sig/lithic/client.rbs +4 -0
  136. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  137. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  138. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  139. data/sig/lithic/models/auth_rules/auth_rule.rbs +135 -36
  140. data/sig/lithic/models/auth_rules/conditional_operation.rbs +10 -0
  141. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  142. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  143. data/sig/lithic/models/auth_rules/event_stream.rbs +24 -0
  144. data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -25
  145. data/sig/lithic/models/auth_rules/v2_list_params.rbs +15 -25
  146. data/sig/lithic/models/card_bulk_order.rbs +76 -0
  147. data/sig/lithic/models/card_bulk_order_create_params.rbs +46 -0
  148. data/sig/lithic/models/card_bulk_order_list_params.rbs +56 -0
  149. data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +15 -0
  150. data/sig/lithic/models/card_bulk_order_update_params.rbs +34 -0
  151. data/sig/lithic/models/card_convert_physical_params.rbs +2 -0
  152. data/sig/lithic/models/card_create_params.rbs +9 -0
  153. data/sig/lithic/models/card_program.rbs +5 -7
  154. data/sig/lithic/models/card_reissue_params.rbs +2 -0
  155. data/sig/lithic/models/card_renew_params.rbs +2 -0
  156. data/sig/lithic/models/card_web_provision_params.rbs +26 -2
  157. data/sig/lithic/models/card_web_provision_response.rbs +81 -51
  158. data/sig/lithic/models/cardholder_authentication.rbs +98 -0
  159. data/sig/lithic/models/device.rbs +21 -0
  160. data/sig/lithic/models/digital_wallet_token_metadata.rbs +119 -0
  161. data/sig/lithic/models/{external_bank_account_unpause_response.rbs → external_bank_account.rbs} +17 -17
  162. data/sig/lithic/models/external_payment.rbs +28 -1
  163. data/sig/lithic/models/external_payment_create_params.rbs +8 -1
  164. data/sig/lithic/models/external_payment_list_params.rbs +8 -1
  165. data/sig/lithic/models/financial_account_balance.rbs +78 -0
  166. data/sig/lithic/models/financial_accounts/statement.rbs +12 -12
  167. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +36 -0
  168. data/sig/lithic/models/financial_event.rbs +32 -0
  169. data/sig/lithic/models/{funding_event_list_response.rbs → funding_event.rbs} +11 -11
  170. data/sig/lithic/models/internal_transaction.rbs +165 -0
  171. data/sig/lithic/models/management_operation_create_params.rbs +12 -0
  172. data/sig/lithic/models/management_operation_transaction.rbs +12 -0
  173. data/sig/lithic/models/network_total.rbs +125 -0
  174. data/sig/lithic/models/non_pci_card.rbs +5 -0
  175. data/sig/lithic/models/payment.rbs +9 -0
  176. data/sig/lithic/models/payment_create_params.rbs +7 -0
  177. data/sig/lithic/models/three_ds_authentication.rbs +911 -0
  178. data/sig/lithic/models/token_info.rbs +36 -0
  179. data/sig/lithic/models/tokenization.rbs +18 -137
  180. data/sig/lithic/models/tokenization_decline_reason.rbs +38 -0
  181. data/sig/lithic/models/tokenization_rule_result.rbs +48 -0
  182. data/sig/lithic/models/tokenization_tfa_reason.rbs +42 -0
  183. data/sig/lithic/models/transaction.rbs +8 -140
  184. data/sig/lithic/models/wallet_decisioning_info.rbs +35 -0
  185. data/sig/lithic/models.rbs +38 -0
  186. data/sig/lithic/resources/auth_rules/v2.rbs +9 -8
  187. data/sig/lithic/resources/card_bulk_orders.rbs +34 -0
  188. data/sig/lithic/resources/cards/balances.rbs +1 -1
  189. data/sig/lithic/resources/cards.rbs +5 -1
  190. data/sig/lithic/resources/external_bank_accounts.rbs +2 -2
  191. data/sig/lithic/resources/financial_accounts/balances.rbs +1 -1
  192. data/sig/lithic/resources/funding_events.rbs +2 -2
  193. data/sig/lithic/resources/internal_transaction.rbs +7 -0
  194. data/sig/lithic/resources/reports/settlement/network_totals.rbs +2 -2
  195. data/sig/lithic/resources/three_ds/authentication.rbs +1 -1
  196. data/sig/lithic/resources/tokenizations.rbs +2 -2
  197. metadata +70 -55
  198. data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -280
  199. data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -279
  200. data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -279
  201. data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -280
  202. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -284
  203. data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -280
  204. data/lib/lithic/models/cards/balance_list_response.rb +0 -115
  205. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +0 -242
  206. data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -115
  207. data/lib/lithic/models/funding_event_list_response.rb +0 -108
  208. data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -176
  209. data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -176
  210. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +0 -1288
  211. data/lib/lithic/models/tokenization_simulate_response.rb +0 -16
  212. data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +0 -16
  213. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +0 -522
  214. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +0 -522
  215. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +0 -518
  216. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +0 -525
  217. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +0 -528
  218. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +0 -522
  219. data/rbi/lithic/models/cards/balance_list_response.rbi +0 -170
  220. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +0 -375
  221. data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +0 -174
  222. data/rbi/lithic/models/funding_event_retrieve_response.rbi +0 -184
  223. data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +0 -280
  224. data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +0 -280
  225. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +0 -2580
  226. data/rbi/lithic/models/tokenization_simulate_response.rbi +0 -33
  227. data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +0 -31
  228. data/sig/lithic/models/auth_rules/v2_create_response.rbs +0 -205
  229. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +0 -205
  230. data/sig/lithic/models/auth_rules/v2_list_response.rbs +0 -205
  231. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +0 -205
  232. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +0 -205
  233. data/sig/lithic/models/auth_rules/v2_update_response.rbs +0 -205
  234. data/sig/lithic/models/cards/balance_list_response.rbs +0 -80
  235. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +0 -162
  236. data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -80
  237. data/sig/lithic/models/funding_event_retrieve_response.rbs +0 -85
  238. data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -129
  239. data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -129
  240. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +0 -913
  241. data/sig/lithic/models/tokenization_simulate_response.rbs +0 -18
  242. data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +0 -16
@@ -1,375 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- class ExternalBankAccountRetryPrenoteResponse < Lithic::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse,
10
- Lithic::Internal::AnyHash
11
- )
12
- end
13
-
14
- # A globally unique identifier for this record of an external bank account
15
- # association. If a program links an external bank account to more than one
16
- # end-user or to both the program and the end-user, then Lithic will return each
17
- # record of the association
18
- sig { returns(String) }
19
- attr_accessor :token
20
-
21
- # The country that the bank account is located in using ISO 3166-1. We will only
22
- # accept USA bank accounts e.g., USA
23
- sig { returns(String) }
24
- attr_accessor :country
25
-
26
- # An ISO 8601 string representing when this funding source was added to the Lithic
27
- # account.
28
- sig { returns(Time) }
29
- attr_accessor :created
30
-
31
- # currency of the external account 3-character alphabetic ISO 4217 code
32
- sig { returns(String) }
33
- attr_accessor :currency
34
-
35
- # The last 4 digits of the bank account. Derived by Lithic from the account number
36
- # passed
37
- sig { returns(String) }
38
- attr_accessor :last_four
39
-
40
- # Legal Name of the business or individual who owns the external account. This
41
- # will appear in statements
42
- sig { returns(String) }
43
- attr_accessor :owner
44
-
45
- # Owner Type
46
- sig { returns(Lithic::OwnerType::TaggedSymbol) }
47
- attr_accessor :owner_type
48
-
49
- # Routing Number
50
- sig { returns(String) }
51
- attr_accessor :routing_number
52
-
53
- # Account State
54
- sig do
55
- returns(
56
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol
57
- )
58
- end
59
- attr_accessor :state
60
-
61
- # Account Type
62
- sig do
63
- returns(
64
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::TaggedSymbol
65
- )
66
- end
67
- attr_accessor :type
68
-
69
- # The number of attempts at verification
70
- sig { returns(Integer) }
71
- attr_accessor :verification_attempts
72
-
73
- # Verification Method
74
- sig { returns(Lithic::VerificationMethod::TaggedSymbol) }
75
- attr_accessor :verification_method
76
-
77
- # Verification State
78
- sig do
79
- returns(
80
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
81
- )
82
- end
83
- attr_accessor :verification_state
84
-
85
- # Indicates which Lithic account the external account is associated with. For
86
- # external accounts that are associated with the program, account_token field
87
- # returned will be null
88
- sig { returns(T.nilable(String)) }
89
- attr_accessor :account_token
90
-
91
- # Address
92
- sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) }
93
- attr_reader :address
94
-
95
- sig do
96
- params(
97
- address: T.nilable(Lithic::ExternalBankAccountAddress::OrHash)
98
- ).void
99
- end
100
- attr_writer :address
101
-
102
- # Optional field that helps identify bank accounts in receipts
103
- sig { returns(T.nilable(String)) }
104
- attr_accessor :company_id
105
-
106
- # Date of Birth of the Individual that owns the external bank account
107
- sig { returns(T.nilable(Date)) }
108
- attr_accessor :dob
109
-
110
- # Doing Business As
111
- sig { returns(T.nilable(String)) }
112
- attr_accessor :doing_business_as
113
-
114
- # The financial account token of the operating account to fund the micro deposits
115
- sig { returns(T.nilable(String)) }
116
- attr_accessor :financial_account_token
117
-
118
- # The nickname for this External Bank Account
119
- sig { returns(T.nilable(String)) }
120
- attr_accessor :name
121
-
122
- # User Defined ID
123
- sig { returns(T.nilable(String)) }
124
- attr_accessor :user_defined_id
125
-
126
- # Optional free text description of the reason for the failed verification. For
127
- # ACH micro-deposits returned, this field will display the reason return code sent
128
- # by the ACH network
129
- sig { returns(T.nilable(String)) }
130
- attr_accessor :verification_failed_reason
131
-
132
- sig do
133
- params(
134
- token: String,
135
- country: String,
136
- created: Time,
137
- currency: String,
138
- last_four: String,
139
- owner: String,
140
- owner_type: Lithic::OwnerType::OrSymbol,
141
- routing_number: String,
142
- state:
143
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::OrSymbol,
144
- type:
145
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::OrSymbol,
146
- verification_attempts: Integer,
147
- verification_method: Lithic::VerificationMethod::OrSymbol,
148
- verification_state:
149
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::OrSymbol,
150
- account_token: T.nilable(String),
151
- address: T.nilable(Lithic::ExternalBankAccountAddress::OrHash),
152
- company_id: T.nilable(String),
153
- dob: T.nilable(Date),
154
- doing_business_as: T.nilable(String),
155
- financial_account_token: T.nilable(String),
156
- name: T.nilable(String),
157
- user_defined_id: T.nilable(String),
158
- verification_failed_reason: T.nilable(String)
159
- ).returns(T.attached_class)
160
- end
161
- def self.new(
162
- # A globally unique identifier for this record of an external bank account
163
- # association. If a program links an external bank account to more than one
164
- # end-user or to both the program and the end-user, then Lithic will return each
165
- # record of the association
166
- token:,
167
- # The country that the bank account is located in using ISO 3166-1. We will only
168
- # accept USA bank accounts e.g., USA
169
- country:,
170
- # An ISO 8601 string representing when this funding source was added to the Lithic
171
- # account.
172
- created:,
173
- # currency of the external account 3-character alphabetic ISO 4217 code
174
- currency:,
175
- # The last 4 digits of the bank account. Derived by Lithic from the account number
176
- # passed
177
- last_four:,
178
- # Legal Name of the business or individual who owns the external account. This
179
- # will appear in statements
180
- owner:,
181
- # Owner Type
182
- owner_type:,
183
- # Routing Number
184
- routing_number:,
185
- # Account State
186
- state:,
187
- # Account Type
188
- type:,
189
- # The number of attempts at verification
190
- verification_attempts:,
191
- # Verification Method
192
- verification_method:,
193
- # Verification State
194
- verification_state:,
195
- # Indicates which Lithic account the external account is associated with. For
196
- # external accounts that are associated with the program, account_token field
197
- # returned will be null
198
- account_token: nil,
199
- # Address
200
- address: nil,
201
- # Optional field that helps identify bank accounts in receipts
202
- company_id: nil,
203
- # Date of Birth of the Individual that owns the external bank account
204
- dob: nil,
205
- # Doing Business As
206
- doing_business_as: nil,
207
- # The financial account token of the operating account to fund the micro deposits
208
- financial_account_token: nil,
209
- # The nickname for this External Bank Account
210
- name: nil,
211
- # User Defined ID
212
- user_defined_id: nil,
213
- # Optional free text description of the reason for the failed verification. For
214
- # ACH micro-deposits returned, this field will display the reason return code sent
215
- # by the ACH network
216
- verification_failed_reason: nil
217
- )
218
- end
219
-
220
- sig do
221
- override.returns(
222
- {
223
- token: String,
224
- country: String,
225
- created: Time,
226
- currency: String,
227
- last_four: String,
228
- owner: String,
229
- owner_type: Lithic::OwnerType::TaggedSymbol,
230
- routing_number: String,
231
- state:
232
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol,
233
- type:
234
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::TaggedSymbol,
235
- verification_attempts: Integer,
236
- verification_method: Lithic::VerificationMethod::TaggedSymbol,
237
- verification_state:
238
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol,
239
- account_token: T.nilable(String),
240
- address: T.nilable(Lithic::ExternalBankAccountAddress),
241
- company_id: T.nilable(String),
242
- dob: T.nilable(Date),
243
- doing_business_as: T.nilable(String),
244
- financial_account_token: T.nilable(String),
245
- name: T.nilable(String),
246
- user_defined_id: T.nilable(String),
247
- verification_failed_reason: T.nilable(String)
248
- }
249
- )
250
- end
251
- def to_hash
252
- end
253
-
254
- # Account State
255
- module State
256
- extend Lithic::Internal::Type::Enum
257
-
258
- TaggedSymbol =
259
- T.type_alias do
260
- T.all(
261
- Symbol,
262
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State
263
- )
264
- end
265
- OrSymbol = T.type_alias { T.any(Symbol, String) }
266
-
267
- ENABLED =
268
- T.let(
269
- :ENABLED,
270
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol
271
- )
272
- CLOSED =
273
- T.let(
274
- :CLOSED,
275
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol
276
- )
277
- PAUSED =
278
- T.let(
279
- :PAUSED,
280
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol
281
- )
282
-
283
- sig do
284
- override.returns(
285
- T::Array[
286
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::State::TaggedSymbol
287
- ]
288
- )
289
- end
290
- def self.values
291
- end
292
- end
293
-
294
- # Account Type
295
- module Type
296
- extend Lithic::Internal::Type::Enum
297
-
298
- TaggedSymbol =
299
- T.type_alias do
300
- T.all(
301
- Symbol,
302
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type
303
- )
304
- end
305
- OrSymbol = T.type_alias { T.any(Symbol, String) }
306
-
307
- CHECKING =
308
- T.let(
309
- :CHECKING,
310
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::TaggedSymbol
311
- )
312
- SAVINGS =
313
- T.let(
314
- :SAVINGS,
315
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::TaggedSymbol
316
- )
317
-
318
- sig do
319
- override.returns(
320
- T::Array[
321
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::Type::TaggedSymbol
322
- ]
323
- )
324
- end
325
- def self.values
326
- end
327
- end
328
-
329
- # Verification State
330
- module VerificationState
331
- extend Lithic::Internal::Type::Enum
332
-
333
- TaggedSymbol =
334
- T.type_alias do
335
- T.all(
336
- Symbol,
337
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState
338
- )
339
- end
340
- OrSymbol = T.type_alias { T.any(Symbol, String) }
341
-
342
- PENDING =
343
- T.let(
344
- :PENDING,
345
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
346
- )
347
- ENABLED =
348
- T.let(
349
- :ENABLED,
350
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
351
- )
352
- FAILED_VERIFICATION =
353
- T.let(
354
- :FAILED_VERIFICATION,
355
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
356
- )
357
- INSUFFICIENT_FUNDS =
358
- T.let(
359
- :INSUFFICIENT_FUNDS,
360
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
361
- )
362
-
363
- sig do
364
- override.returns(
365
- T::Array[
366
- Lithic::Models::ExternalBankAccountRetryPrenoteResponse::VerificationState::TaggedSymbol
367
- ]
368
- )
369
- end
370
- def self.values
371
- end
372
- end
373
- end
374
- end
375
- end
@@ -1,174 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- module FinancialAccounts
6
- class BalanceListResponse < Lithic::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Lithic::Models::FinancialAccounts::BalanceListResponse,
11
- Lithic::Internal::AnyHash
12
- )
13
- end
14
-
15
- # Globally unique identifier for the financial account that holds this balance.
16
- sig { returns(String) }
17
- attr_accessor :token
18
-
19
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
20
- sig { returns(Integer) }
21
- attr_accessor :available_amount
22
-
23
- # Date and time for when the balance was first created.
24
- sig { returns(Time) }
25
- attr_accessor :created
26
-
27
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
28
- sig { returns(String) }
29
- attr_accessor :currency
30
-
31
- # Globally unique identifier for the last financial transaction event that
32
- # impacted this balance.
33
- sig { returns(String) }
34
- attr_accessor :last_transaction_event_token
35
-
36
- # Globally unique identifier for the last financial transaction that impacted this
37
- # balance.
38
- sig { returns(String) }
39
- attr_accessor :last_transaction_token
40
-
41
- # Funds not available for spend due to card authorizations or pending ACH release.
42
- # Shown in the currency's smallest unit (e.g., cents for USD).
43
- sig { returns(Integer) }
44
- attr_accessor :pending_amount
45
-
46
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
47
- # cents for USD).
48
- sig { returns(Integer) }
49
- attr_accessor :total_amount
50
-
51
- # Type of financial account.
52
- sig do
53
- returns(
54
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
55
- )
56
- end
57
- attr_accessor :type
58
-
59
- # Date and time for when the balance was last updated.
60
- sig { returns(Time) }
61
- attr_accessor :updated
62
-
63
- # Balance of a Financial Account
64
- sig do
65
- params(
66
- token: String,
67
- available_amount: Integer,
68
- created: Time,
69
- currency: String,
70
- last_transaction_event_token: String,
71
- last_transaction_token: String,
72
- pending_amount: Integer,
73
- total_amount: Integer,
74
- type:
75
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::OrSymbol,
76
- updated: Time
77
- ).returns(T.attached_class)
78
- end
79
- def self.new(
80
- # Globally unique identifier for the financial account that holds this balance.
81
- token:,
82
- # Funds available for spend in the currency's smallest unit (e.g., cents for USD)
83
- available_amount:,
84
- # Date and time for when the balance was first created.
85
- created:,
86
- # 3-character alphabetic ISO 4217 code for the local currency of the balance.
87
- currency:,
88
- # Globally unique identifier for the last financial transaction event that
89
- # impacted this balance.
90
- last_transaction_event_token:,
91
- # Globally unique identifier for the last financial transaction that impacted this
92
- # balance.
93
- last_transaction_token:,
94
- # Funds not available for spend due to card authorizations or pending ACH release.
95
- # Shown in the currency's smallest unit (e.g., cents for USD).
96
- pending_amount:,
97
- # The sum of available and pending balance in the currency's smallest unit (e.g.,
98
- # cents for USD).
99
- total_amount:,
100
- # Type of financial account.
101
- type:,
102
- # Date and time for when the balance was last updated.
103
- updated:
104
- )
105
- end
106
-
107
- sig do
108
- override.returns(
109
- {
110
- token: String,
111
- available_amount: Integer,
112
- created: Time,
113
- currency: String,
114
- last_transaction_event_token: String,
115
- last_transaction_token: String,
116
- pending_amount: Integer,
117
- total_amount: Integer,
118
- type:
119
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol,
120
- updated: Time
121
- }
122
- )
123
- end
124
- def to_hash
125
- end
126
-
127
- # Type of financial account.
128
- module Type
129
- extend Lithic::Internal::Type::Enum
130
-
131
- TaggedSymbol =
132
- T.type_alias do
133
- T.all(
134
- Symbol,
135
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type
136
- )
137
- end
138
- OrSymbol = T.type_alias { T.any(Symbol, String) }
139
-
140
- ISSUING =
141
- T.let(
142
- :ISSUING,
143
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
144
- )
145
- OPERATING =
146
- T.let(
147
- :OPERATING,
148
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
149
- )
150
- RESERVE =
151
- T.let(
152
- :RESERVE,
153
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
154
- )
155
- SECURITY =
156
- T.let(
157
- :SECURITY,
158
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
159
- )
160
-
161
- sig do
162
- override.returns(
163
- T::Array[
164
- Lithic::Models::FinancialAccounts::BalanceListResponse::Type::TaggedSymbol
165
- ]
166
- )
167
- end
168
- def self.values
169
- end
170
- end
171
- end
172
- end
173
- end
174
- end