lithic 0.1.0 → 0.2.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 (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +36 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/errors.rb +15 -0
  6. data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
  7. data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
  8. data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
  9. data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
  10. data/lib/lithic/models/asa_request_webhook_event.rb +1010 -0
  11. data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
  12. data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
  13. data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
  14. data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
  15. data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
  16. data/lib/lithic/models/card_created_webhook_event.rb +32 -0
  17. data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
  18. data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
  19. data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
  20. data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
  21. data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
  22. data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
  23. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
  24. data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
  25. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  26. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  27. data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
  28. data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
  29. data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
  30. data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
  31. data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
  32. data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
  33. data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
  34. data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
  35. data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
  36. data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
  37. data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
  38. data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
  39. data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
  40. data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
  41. data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
  42. data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
  43. data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
  44. data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
  45. data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
  46. data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
  47. data/lib/lithic/models/parsed_webhook_event.rb +818 -0
  48. data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
  49. data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
  50. data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
  51. data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
  52. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
  53. data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
  54. data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
  55. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
  56. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
  57. data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
  58. data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  59. data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  60. data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
  61. data/lib/lithic/models/webhook_parsed_params.rb +14 -0
  62. data/lib/lithic/models.rb +120 -0
  63. data/lib/lithic/resources/webhooks.rb +87 -0
  64. data/lib/lithic/version.rb +1 -1
  65. data/lib/lithic.rb +74 -17
  66. data/rbi/lithic/client.rbi +3 -0
  67. data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
  68. data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
  69. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
  70. data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
  71. data/rbi/lithic/models/asa_request_webhook_event.rbi +2229 -0
  72. data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
  73. data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
  74. data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
  75. data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
  76. data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
  77. data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
  78. data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
  79. data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
  80. data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
  81. data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
  82. data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
  83. data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
  84. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
  85. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
  86. data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
  87. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  88. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  89. data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
  90. data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
  91. data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
  92. data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
  93. data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
  94. data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
  95. data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
  96. data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
  97. data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
  98. data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
  99. data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
  100. data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
  101. data/rbi/lithic/models/internal_transaction.rbi +15 -10
  102. data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
  103. data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
  104. data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
  105. data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
  106. data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
  107. data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
  108. data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
  109. data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
  110. data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
  111. data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
  112. data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
  113. data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
  114. data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
  115. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
  116. data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
  117. data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
  118. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
  119. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
  120. data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
  121. data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  122. data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  123. data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
  124. data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
  125. data/rbi/lithic/models.rbi +155 -0
  126. data/rbi/lithic/resources/webhooks.rbi +158 -0
  127. data/sig/lithic/client.rbs +2 -0
  128. data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
  129. data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
  130. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
  131. data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
  132. data/sig/lithic/models/asa_request_webhook_event.rbs +881 -0
  133. data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
  134. data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
  135. data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
  136. data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
  137. data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
  138. data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
  139. data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
  140. data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
  141. data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
  142. data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
  143. data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
  144. data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
  145. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
  146. data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
  147. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  148. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  149. data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
  150. data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
  151. data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
  152. data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
  153. data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
  154. data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
  155. data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
  156. data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
  157. data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
  158. data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
  159. data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
  160. data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
  161. data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
  162. data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
  163. data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
  164. data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
  165. data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
  166. data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
  167. data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
  168. data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
  169. data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
  170. data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
  171. data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
  172. data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
  173. data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
  174. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
  175. data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
  176. data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
  177. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
  178. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
  179. data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
  180. data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  181. data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  182. data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
  183. data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
  184. data/sig/lithic/models.rbs +112 -0
  185. data/sig/lithic/resources/webhooks.rbs +135 -0
  186. metadata +173 -2
@@ -0,0 +1,479 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class AccountHolderDocumentUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The type of event that occurred.
15
+ sig { returns(Symbol) }
16
+ attr_accessor :event_type
17
+
18
+ # The token of the account holder document
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :token
21
+
22
+ sig { params(token: String).void }
23
+ attr_writer :token
24
+
25
+ # The token of the account_holder that the document belongs to
26
+ sig { returns(T.nilable(String)) }
27
+ attr_reader :account_holder_token
28
+
29
+ sig { params(account_holder_token: String).void }
30
+ attr_writer :account_holder_token
31
+
32
+ # When the account_holder was created
33
+ sig { returns(T.nilable(Time)) }
34
+ attr_reader :created
35
+
36
+ sig { params(created: Time).void }
37
+ attr_writer :created
38
+
39
+ # Type of documentation to be submitted for verification of an account holder
40
+ sig do
41
+ returns(
42
+ T.nilable(
43
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
44
+ )
45
+ )
46
+ end
47
+ attr_reader :document_type
48
+
49
+ sig do
50
+ params(
51
+ document_type:
52
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::OrSymbol
53
+ ).void
54
+ end
55
+ attr_writer :document_type
56
+
57
+ # The token of the entity that the document belongs to
58
+ sig { returns(T.nilable(String)) }
59
+ attr_reader :entity_token
60
+
61
+ sig { params(entity_token: String).void }
62
+ attr_writer :entity_token
63
+
64
+ sig do
65
+ returns(
66
+ T.nilable(
67
+ T::Array[
68
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload
69
+ ]
70
+ )
71
+ )
72
+ end
73
+ attr_reader :required_document_uploads
74
+
75
+ sig do
76
+ params(
77
+ required_document_uploads:
78
+ T::Array[
79
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::OrHash
80
+ ]
81
+ ).void
82
+ end
83
+ attr_writer :required_document_uploads
84
+
85
+ sig do
86
+ params(
87
+ token: String,
88
+ account_holder_token: String,
89
+ created: Time,
90
+ document_type:
91
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::OrSymbol,
92
+ entity_token: String,
93
+ required_document_uploads:
94
+ T::Array[
95
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::OrHash
96
+ ],
97
+ event_type: Symbol
98
+ ).returns(T.attached_class)
99
+ end
100
+ def self.new(
101
+ # The token of the account holder document
102
+ token: nil,
103
+ # The token of the account_holder that the document belongs to
104
+ account_holder_token: nil,
105
+ # When the account_holder was created
106
+ created: nil,
107
+ # Type of documentation to be submitted for verification of an account holder
108
+ document_type: nil,
109
+ # The token of the entity that the document belongs to
110
+ entity_token: nil,
111
+ required_document_uploads: nil,
112
+ # The type of event that occurred.
113
+ event_type: :"account_holder_document.updated"
114
+ )
115
+ end
116
+
117
+ sig do
118
+ override.returns(
119
+ {
120
+ event_type: Symbol,
121
+ token: String,
122
+ account_holder_token: String,
123
+ created: Time,
124
+ document_type:
125
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol,
126
+ entity_token: String,
127
+ required_document_uploads:
128
+ T::Array[
129
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload
130
+ ]
131
+ }
132
+ )
133
+ end
134
+ def to_hash
135
+ end
136
+
137
+ # Type of documentation to be submitted for verification of an account holder
138
+ module DocumentType
139
+ extend Lithic::Internal::Type::Enum
140
+
141
+ TaggedSymbol =
142
+ T.type_alias do
143
+ T.all(
144
+ Symbol,
145
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType
146
+ )
147
+ end
148
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
149
+
150
+ DRIVERS_LICENSE =
151
+ T.let(
152
+ :DRIVERS_LICENSE,
153
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
154
+ )
155
+ PASSPORT =
156
+ T.let(
157
+ :PASSPORT,
158
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
159
+ )
160
+ PASSPORT_CARD =
161
+ T.let(
162
+ :PASSPORT_CARD,
163
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
164
+ )
165
+ EIN_LETTER =
166
+ T.let(
167
+ :EIN_LETTER,
168
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
169
+ )
170
+ TAX_RETURN =
171
+ T.let(
172
+ :TAX_RETURN,
173
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
174
+ )
175
+ OPERATING_AGREEMENT =
176
+ T.let(
177
+ :OPERATING_AGREEMENT,
178
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
179
+ )
180
+ CERTIFICATE_OF_FORMATION =
181
+ T.let(
182
+ :CERTIFICATE_OF_FORMATION,
183
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
184
+ )
185
+ CERTIFICATE_OF_GOOD_STANDING =
186
+ T.let(
187
+ :CERTIFICATE_OF_GOOD_STANDING,
188
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
189
+ )
190
+ ARTICLES_OF_INCORPORATION =
191
+ T.let(
192
+ :ARTICLES_OF_INCORPORATION,
193
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
194
+ )
195
+ ARTICLES_OF_ORGANIZATION =
196
+ T.let(
197
+ :ARTICLES_OF_ORGANIZATION,
198
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
199
+ )
200
+ BYLAWS =
201
+ T.let(
202
+ :BYLAWS,
203
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
204
+ )
205
+ GOVERNMENT_BUSINESS_LICENSE =
206
+ T.let(
207
+ :GOVERNMENT_BUSINESS_LICENSE,
208
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
209
+ )
210
+ PARTNERSHIP_AGREEMENT =
211
+ T.let(
212
+ :PARTNERSHIP_AGREEMENT,
213
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
214
+ )
215
+ SS4_FORM =
216
+ T.let(
217
+ :SS4_FORM,
218
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
219
+ )
220
+ BANK_STATEMENT =
221
+ T.let(
222
+ :BANK_STATEMENT,
223
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
224
+ )
225
+ UTILITY_BILL_STATEMENT =
226
+ T.let(
227
+ :UTILITY_BILL_STATEMENT,
228
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
229
+ )
230
+ SSN_CARD =
231
+ T.let(
232
+ :SSN_CARD,
233
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
234
+ )
235
+ ITIN_LETTER =
236
+ T.let(
237
+ :ITIN_LETTER,
238
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
239
+ )
240
+ FINCEN_BOI_REPORT =
241
+ T.let(
242
+ :FINCEN_BOI_REPORT,
243
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
244
+ )
245
+
246
+ sig do
247
+ override.returns(
248
+ T::Array[
249
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::DocumentType::TaggedSymbol
250
+ ]
251
+ )
252
+ end
253
+ def self.values
254
+ end
255
+ end
256
+
257
+ class RequiredDocumentUpload < Lithic::Internal::Type::BaseModel
258
+ OrHash =
259
+ T.type_alias do
260
+ T.any(
261
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload,
262
+ Lithic::Internal::AnyHash
263
+ )
264
+ end
265
+
266
+ # The token of the document upload
267
+ sig { returns(T.nilable(String)) }
268
+ attr_reader :token
269
+
270
+ sig { params(token: String).void }
271
+ attr_writer :token
272
+
273
+ sig { returns(T.nilable(T::Array[String])) }
274
+ attr_reader :accepted_entity_status_reasons
275
+
276
+ sig { params(accepted_entity_status_reasons: T::Array[String]).void }
277
+ attr_writer :accepted_entity_status_reasons
278
+
279
+ # When the document upload was created
280
+ sig { returns(T.nilable(Time)) }
281
+ attr_reader :created
282
+
283
+ sig { params(created: Time).void }
284
+ attr_writer :created
285
+
286
+ # The type of image that was uploaded
287
+ sig do
288
+ returns(
289
+ T.nilable(
290
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::TaggedSymbol
291
+ )
292
+ )
293
+ end
294
+ attr_reader :image_type
295
+
296
+ sig do
297
+ params(
298
+ image_type:
299
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::OrSymbol
300
+ ).void
301
+ end
302
+ attr_writer :image_type
303
+
304
+ sig { returns(T.nilable(T::Array[String])) }
305
+ attr_reader :rejected_entity_status_reasons
306
+
307
+ sig { params(rejected_entity_status_reasons: T::Array[String]).void }
308
+ attr_writer :rejected_entity_status_reasons
309
+
310
+ # The status of the document upload
311
+ sig do
312
+ returns(
313
+ T.nilable(
314
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
315
+ )
316
+ )
317
+ end
318
+ attr_reader :status
319
+
320
+ sig do
321
+ params(
322
+ status:
323
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::OrSymbol
324
+ ).void
325
+ end
326
+ attr_writer :status
327
+
328
+ sig { returns(T.nilable(T::Array[String])) }
329
+ attr_reader :status_reasons
330
+
331
+ sig { params(status_reasons: T::Array[String]).void }
332
+ attr_writer :status_reasons
333
+
334
+ # When the document upload was last updated
335
+ sig { returns(T.nilable(Time)) }
336
+ attr_reader :updated
337
+
338
+ sig { params(updated: Time).void }
339
+ attr_writer :updated
340
+
341
+ # A document upload that belongs to the overall account holder document
342
+ sig do
343
+ params(
344
+ token: String,
345
+ accepted_entity_status_reasons: T::Array[String],
346
+ created: Time,
347
+ image_type:
348
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::OrSymbol,
349
+ rejected_entity_status_reasons: T::Array[String],
350
+ status:
351
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::OrSymbol,
352
+ status_reasons: T::Array[String],
353
+ updated: Time
354
+ ).returns(T.attached_class)
355
+ end
356
+ def self.new(
357
+ # The token of the document upload
358
+ token: nil,
359
+ accepted_entity_status_reasons: nil,
360
+ # When the document upload was created
361
+ created: nil,
362
+ # The type of image that was uploaded
363
+ image_type: nil,
364
+ rejected_entity_status_reasons: nil,
365
+ # The status of the document upload
366
+ status: nil,
367
+ status_reasons: nil,
368
+ # When the document upload was last updated
369
+ updated: nil
370
+ )
371
+ end
372
+
373
+ sig do
374
+ override.returns(
375
+ {
376
+ token: String,
377
+ accepted_entity_status_reasons: T::Array[String],
378
+ created: Time,
379
+ image_type:
380
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::TaggedSymbol,
381
+ rejected_entity_status_reasons: T::Array[String],
382
+ status:
383
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol,
384
+ status_reasons: T::Array[String],
385
+ updated: Time
386
+ }
387
+ )
388
+ end
389
+ def to_hash
390
+ end
391
+
392
+ # The type of image that was uploaded
393
+ module ImageType
394
+ extend Lithic::Internal::Type::Enum
395
+
396
+ TaggedSymbol =
397
+ T.type_alias do
398
+ T.all(
399
+ Symbol,
400
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType
401
+ )
402
+ end
403
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
404
+
405
+ FRONT =
406
+ T.let(
407
+ :FRONT,
408
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::TaggedSymbol
409
+ )
410
+ BACK =
411
+ T.let(
412
+ :BACK,
413
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::TaggedSymbol
414
+ )
415
+
416
+ sig do
417
+ override.returns(
418
+ T::Array[
419
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::ImageType::TaggedSymbol
420
+ ]
421
+ )
422
+ end
423
+ def self.values
424
+ end
425
+ end
426
+
427
+ # The status of the document upload
428
+ module Status
429
+ extend Lithic::Internal::Type::Enum
430
+
431
+ TaggedSymbol =
432
+ T.type_alias do
433
+ T.all(
434
+ Symbol,
435
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status
436
+ )
437
+ end
438
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
439
+
440
+ ACCEPTED =
441
+ T.let(
442
+ :ACCEPTED,
443
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
444
+ )
445
+ REJECTED =
446
+ T.let(
447
+ :REJECTED,
448
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
449
+ )
450
+ PENDING_UPLOAD =
451
+ T.let(
452
+ :PENDING_UPLOAD,
453
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
454
+ )
455
+ UPLOADED =
456
+ T.let(
457
+ :UPLOADED,
458
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
459
+ )
460
+ PARTIAL_APPROVAL =
461
+ T.let(
462
+ :PARTIAL_APPROVAL,
463
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
464
+ )
465
+
466
+ sig do
467
+ override.returns(
468
+ T::Array[
469
+ Lithic::AccountHolderDocumentUpdatedWebhookEvent::RequiredDocumentUpload::Status::TaggedSymbol
470
+ ]
471
+ )
472
+ end
473
+ def self.values
474
+ end
475
+ end
476
+ end
477
+ end
478
+ end
479
+ end