lithic 0.1.0 → 0.3.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 (256) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +36 -1
  4. data/lib/lithic/client.rb +9 -10
  5. data/lib/lithic/errors.rb +15 -0
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  7. data/lib/lithic/internal/util.rb +7 -2
  8. data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
  9. data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
  10. data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
  11. data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
  12. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  13. data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
  14. data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
  15. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  16. data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
  17. data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
  18. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +1032 -0
  19. data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
  20. data/lib/lithic/models/card_created_webhook_event.rb +32 -0
  21. data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
  22. data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
  23. data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
  24. data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
  25. data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
  26. data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
  27. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
  28. data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
  29. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  30. data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  31. data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
  32. data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
  33. data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
  34. data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
  35. data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
  36. data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
  37. data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
  38. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  39. data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
  40. data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
  41. data/lib/lithic/models/financial_account.rb +33 -25
  42. data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
  43. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  44. data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
  45. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  46. data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
  47. data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
  48. data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
  49. data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
  50. data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
  51. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  52. data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
  53. data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
  54. data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
  55. data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
  56. data/lib/lithic/models/parsed_webhook_event.rb +817 -0
  57. data/lib/lithic/models/payment.rb +10 -1
  58. data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
  59. data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
  60. data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
  61. data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
  62. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  63. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
  64. data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
  65. data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
  66. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
  67. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
  68. data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
  69. data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
  70. data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
  71. data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
  72. data/lib/lithic/models/transaction.rb +2 -0
  73. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  74. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  75. data/lib/lithic/models/webhook_parsed_params.rb +14 -0
  76. data/lib/lithic/models.rb +130 -4
  77. data/lib/lithic/resources/book_transfers.rb +27 -0
  78. data/lib/lithic/resources/cards.rb +1 -5
  79. data/lib/lithic/resources/external_payments.rb +13 -1
  80. data/lib/lithic/resources/financial_accounts.rb +3 -1
  81. data/lib/lithic/resources/management_operations.rb +4 -1
  82. data/lib/lithic/resources/transfer_limits.rb +37 -0
  83. data/lib/lithic/resources/webhooks.rb +88 -0
  84. data/lib/lithic/version.rb +1 -1
  85. data/lib/lithic.rb +79 -23
  86. data/rbi/lithic/client.rbi +6 -3
  87. data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
  88. data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
  89. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
  90. data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
  91. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  92. data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
  93. data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
  94. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  95. data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
  96. data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
  97. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +2367 -0
  98. data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
  99. data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
  100. data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
  101. data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
  102. data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
  103. data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
  104. data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
  105. data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
  106. data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
  107. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
  108. data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
  109. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  110. data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  111. data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
  112. data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
  113. data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
  114. data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
  115. data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
  116. data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
  117. data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
  118. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  119. data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
  120. data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
  121. data/rbi/lithic/models/financial_account.rbi +62 -54
  122. data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
  123. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  124. data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
  125. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  126. data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
  127. data/rbi/lithic/models/internal_transaction.rbi +15 -10
  128. data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
  129. data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
  130. data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
  131. data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
  132. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  133. data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
  134. data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
  135. data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
  136. data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
  137. data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
  138. data/rbi/lithic/models/payment.rbi +13 -3
  139. data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
  140. data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
  141. data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
  142. data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
  143. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  144. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
  145. data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
  146. data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
  147. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
  148. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
  149. data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
  150. data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
  151. data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
  152. data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
  153. data/rbi/lithic/models/transaction.rbi +10 -0
  154. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  155. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  156. data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
  157. data/rbi/lithic/models.rbi +165 -4
  158. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  159. data/rbi/lithic/resources/cards.rbi +1 -4
  160. data/rbi/lithic/resources/external_payments.rbi +2 -0
  161. data/rbi/lithic/resources/financial_accounts.rbi +3 -0
  162. data/rbi/lithic/resources/management_operations.rbi +2 -0
  163. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  164. data/rbi/lithic/resources/webhooks.rbi +36 -0
  165. data/sig/lithic/client.rbs +4 -2
  166. data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
  167. data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
  168. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
  169. data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
  170. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  171. data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
  172. data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
  173. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  174. data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
  175. data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
  176. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +886 -0
  177. data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
  178. data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
  179. data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
  180. data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
  181. data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
  182. data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
  183. data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
  184. data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
  185. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
  186. data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
  187. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  188. data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  189. data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
  190. data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
  191. data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
  192. data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
  193. data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
  194. data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
  195. data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
  196. data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
  197. data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
  198. data/sig/lithic/models/financial_account.rbs +32 -27
  199. data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
  200. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  201. data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
  202. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  203. data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
  204. data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
  205. data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
  206. data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
  207. data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
  208. data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
  209. data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
  210. data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
  211. data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
  212. data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
  213. data/sig/lithic/models/payment.rbs +10 -3
  214. data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
  215. data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
  216. data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
  217. data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
  218. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  219. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
  220. data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
  221. data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
  222. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
  223. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
  224. data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
  225. data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
  226. data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
  227. data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
  228. data/sig/lithic/models/transaction.rbs +4 -0
  229. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  230. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  231. data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
  232. data/sig/lithic/models.rbs +120 -4
  233. data/sig/lithic/resources/book_transfers.rbs +6 -0
  234. data/sig/lithic/resources/cards.rbs +0 -2
  235. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  236. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  237. data/sig/lithic/resources/webhooks.rbs +21 -0
  238. metadata +188 -20
  239. data/lib/lithic/models/aggregate_balance.rb +0 -113
  240. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  241. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  242. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  243. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  244. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  245. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  246. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  247. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  248. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  249. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  250. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  251. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  252. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  253. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  254. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  255. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  256. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -0,0 +1,817 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # KYB payload for an updated account holder.
6
+ module ParsedWebhookEvent
7
+ extend Lithic::Internal::Type::Union
8
+
9
+ variant -> { Lithic::AccountHolderCreatedWebhookEvent }
10
+
11
+ # KYB payload for an updated account holder.
12
+ variant -> { Lithic::ParsedWebhookEvent::KYBPayload }
13
+
14
+ # KYC payload for an updated account holder.
15
+ variant -> { Lithic::ParsedWebhookEvent::KYCPayload }
16
+
17
+ # Legacy payload for an updated account holder.
18
+ variant -> { Lithic::ParsedWebhookEvent::LegacyPayload }
19
+
20
+ variant -> { Lithic::AccountHolderVerificationWebhookEvent }
21
+
22
+ variant -> { Lithic::AccountHolderDocumentUpdatedWebhookEvent }
23
+
24
+ variant -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent }
25
+
26
+ # A webhook for tokenization decisioning sent to the customer's responder endpoint
27
+ variant -> { Lithic::TokenizationDecisioningRequestWebhookEvent }
28
+
29
+ variant -> { Lithic::AuthRulesBacktestReportCreatedWebhookEvent }
30
+
31
+ variant -> { Lithic::BalanceUpdatedWebhookEvent }
32
+
33
+ # Book transfer transaction
34
+ variant -> { Lithic::BookTransferTransactionCreatedWebhookEvent }
35
+
36
+ # Book transfer transaction
37
+ variant -> { Lithic::BookTransferTransactionUpdatedWebhookEvent }
38
+
39
+ variant -> { Lithic::CardCreatedWebhookEvent }
40
+
41
+ variant -> { Lithic::CardConvertedWebhookEvent }
42
+
43
+ variant -> { Lithic::CardRenewedWebhookEvent }
44
+
45
+ variant -> { Lithic::CardReissuedWebhookEvent }
46
+
47
+ variant -> { Lithic::CardShippedWebhookEvent }
48
+
49
+ variant -> { Lithic::CardTransactionUpdatedWebhookEvent }
50
+
51
+ variant -> { Lithic::CardTransactionEnhancedDataCreatedWebhookEvent }
52
+
53
+ variant -> { Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent }
54
+
55
+ variant -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent }
56
+
57
+ variant -> { Lithic::DigitalWalletTokenizationResultWebhookEvent }
58
+
59
+ variant -> { Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent }
60
+
61
+ variant -> { Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent }
62
+
63
+ variant -> { Lithic::DigitalWalletTokenizationUpdatedWebhookEvent }
64
+
65
+ # Dispute.
66
+ variant -> { Lithic::DisputeUpdatedWebhookEvent }
67
+
68
+ # Dispute evidence.
69
+ variant -> { Lithic::DisputeEvidenceUploadFailedWebhookEvent }
70
+
71
+ variant -> { Lithic::ExternalBankAccountCreatedWebhookEvent }
72
+
73
+ variant -> { Lithic::ExternalBankAccountUpdatedWebhookEvent }
74
+
75
+ variant -> { Lithic::ExternalPaymentCreatedWebhookEvent }
76
+
77
+ variant -> { Lithic::ExternalPaymentUpdatedWebhookEvent }
78
+
79
+ variant -> { Lithic::FinancialAccountCreatedWebhookEvent }
80
+
81
+ variant -> { Lithic::FinancialAccountUpdatedWebhookEvent }
82
+
83
+ variant -> { Lithic::FundingEventCreatedWebhookEvent }
84
+
85
+ variant -> { Lithic::LoanTapeCreatedWebhookEvent }
86
+
87
+ variant -> { Lithic::LoanTapeUpdatedWebhookEvent }
88
+
89
+ variant -> { Lithic::ManagementOperationCreatedWebhookEvent }
90
+
91
+ variant -> { Lithic::ManagementOperationUpdatedWebhookEvent }
92
+
93
+ variant -> { Lithic::InternalTransactionCreatedWebhookEvent }
94
+
95
+ variant -> { Lithic::InternalTransactionUpdatedWebhookEvent }
96
+
97
+ variant -> { Lithic::NetworkTotalCreatedWebhookEvent }
98
+
99
+ variant -> { Lithic::NetworkTotalUpdatedWebhookEvent }
100
+
101
+ # Payment transaction
102
+ variant -> { Lithic::PaymentTransactionCreatedWebhookEvent }
103
+
104
+ # Payment transaction
105
+ variant -> { Lithic::PaymentTransactionUpdatedWebhookEvent }
106
+
107
+ variant -> { Lithic::SettlementReportUpdatedWebhookEvent }
108
+
109
+ variant -> { Lithic::StatementsCreatedWebhookEvent }
110
+
111
+ # Represents a 3DS authentication
112
+ variant -> { Lithic::ThreeDSAuthenticationCreatedWebhookEvent }
113
+
114
+ # Represents a 3DS authentication
115
+ variant -> { Lithic::ThreeDSAuthenticationUpdatedWebhookEvent }
116
+
117
+ variant -> { Lithic::ThreeDSAuthenticationChallengeWebhookEvent }
118
+
119
+ variant -> { Lithic::TokenizationApprovalRequestWebhookEvent }
120
+
121
+ variant -> { Lithic::TokenizationResultWebhookEvent }
122
+
123
+ variant -> { Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent }
124
+
125
+ variant -> { Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent }
126
+
127
+ variant -> { Lithic::TokenizationUpdatedWebhookEvent }
128
+
129
+ # Represents a 3DS authentication
130
+ variant -> { Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent }
131
+
132
+ # The Dispute object tracks the progression of a dispute throughout its lifecycle.
133
+ variant -> { Lithic::DisputeTransactionCreatedWebhookEvent }
134
+
135
+ # The Dispute object tracks the progression of a dispute throughout its lifecycle.
136
+ variant -> { Lithic::DisputeTransactionUpdatedWebhookEvent }
137
+
138
+ class KYBPayload < Lithic::Internal::Type::BaseModel
139
+ # @!attribute token
140
+ # The token of the account_holder that was created.
141
+ #
142
+ # @return [String]
143
+ required :token, String
144
+
145
+ # @!attribute update_request
146
+ # Original request to update the account holder.
147
+ #
148
+ # @return [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest]
149
+ required :update_request, -> { Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest }
150
+
151
+ # @!attribute event_type
152
+ # The type of event that occurred.
153
+ #
154
+ # @return [Symbol, Lithic::Models::ParsedWebhookEvent::KYBPayload::EventType, nil]
155
+ optional :event_type, enum: -> { Lithic::ParsedWebhookEvent::KYBPayload::EventType }
156
+
157
+ # @!attribute external_id
158
+ # A user provided id that can be used to link an account holder with an external
159
+ # system
160
+ #
161
+ # @return [String, nil]
162
+ optional :external_id, String
163
+
164
+ # @!attribute nature_of_business
165
+ # Short description of the company's line of business (i.e., what does the company
166
+ # do?).
167
+ #
168
+ # @return [String, nil]
169
+ optional :nature_of_business, String
170
+
171
+ # @!attribute website_url
172
+ # Company website URL.
173
+ #
174
+ # @return [String, nil]
175
+ optional :website_url, String
176
+
177
+ # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil)
178
+ # Some parameter documentations has been truncated, see
179
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload} for more details.
180
+ #
181
+ # KYB payload for an updated account holder.
182
+ #
183
+ # @param token [String] The token of the account_holder that was created.
184
+ #
185
+ # @param update_request [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest] Original request to update the account holder.
186
+ #
187
+ # @param event_type [Symbol, Lithic::Models::ParsedWebhookEvent::KYBPayload::EventType] The type of event that occurred.
188
+ #
189
+ # @param external_id [String] A user provided id that can be used to link an account holder with an external s
190
+ #
191
+ # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
192
+ #
193
+ # @param website_url [String] Company website URL.
194
+
195
+ # @see Lithic::Models::ParsedWebhookEvent::KYBPayload#update_request
196
+ class UpdateRequest < Lithic::Internal::Type::BaseModel
197
+ # @!attribute beneficial_owner_entities
198
+ # @deprecated
199
+ #
200
+ # Deprecated.
201
+ #
202
+ # @return [Array<Lithic::Models::KYBBusinessEntity>, nil]
203
+ optional :beneficial_owner_entities, -> { Lithic::Internal::Type::ArrayOf[Lithic::KYBBusinessEntity] }
204
+
205
+ # @!attribute beneficial_owner_individuals
206
+ # You must submit a list of all direct and indirect individuals with 25% or more
207
+ # ownership in the company. A maximum of 4 beneficial owners can be submitted. If
208
+ # no individual owns 25% of the company you do not need to send beneficial owner
209
+ # information. See
210
+ # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
211
+ # (Section I) for more background on individuals that should be included.
212
+ #
213
+ # @return [Array<Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual>, nil]
214
+ optional :beneficial_owner_individuals,
215
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual] }
216
+
217
+ # @!attribute business_entity
218
+ # Information for business for which the account is being opened and KYB is being
219
+ # run.
220
+ #
221
+ # @return [Lithic::Models::KYBBusinessEntity, nil]
222
+ optional :business_entity, -> { Lithic::KYBBusinessEntity }
223
+
224
+ # @!attribute control_person
225
+ # An individual with significant responsibility for managing the legal entity
226
+ # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
227
+ # Officer, Managing Member, General Partner, President, Vice President, or
228
+ # Treasurer). This can be an executive, or someone who will have program-wide
229
+ # access to the cards that Lithic will provide. In some cases, this individual
230
+ # could also be a beneficial owner listed above. See
231
+ # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
232
+ # (Section II) for more background.
233
+ #
234
+ # @return [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson, nil]
235
+ optional :control_person, -> { Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson }
236
+
237
+ # @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil)
238
+ # Some parameter documentations has been truncated, see
239
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest} for more
240
+ # details.
241
+ #
242
+ # Original request to update the account holder.
243
+ #
244
+ # @param beneficial_owner_entities [Array<Lithic::Models::KYBBusinessEntity>] Deprecated.
245
+ #
246
+ # @param beneficial_owner_individuals [Array<Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual>] You must submit a list of all direct and indirect individuals with 25% or more o
247
+ #
248
+ # @param business_entity [Lithic::Models::KYBBusinessEntity] Information for business for which the account is being opened and KYB is being
249
+ #
250
+ # @param control_person [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson] An individual with significant responsibility for managing the legal entity (e.g
251
+
252
+ class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
253
+ # @!attribute address
254
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
255
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
256
+ #
257
+ # @return [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address, nil]
258
+ optional :address,
259
+ -> { Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address }
260
+
261
+ # @!attribute dob
262
+ # Individual's date of birth, as an RFC 3339 date.
263
+ #
264
+ # @return [String, nil]
265
+ optional :dob, String
266
+
267
+ # @!attribute email
268
+ # Individual's email address. If utilizing Lithic for chargeback processing, this
269
+ # customer email address may be used to communicate dispute status and resolution.
270
+ #
271
+ # @return [String, nil]
272
+ optional :email, String
273
+
274
+ # @!attribute first_name
275
+ # Individual's first name, as it appears on government-issued identity documents.
276
+ #
277
+ # @return [String, nil]
278
+ optional :first_name, String
279
+
280
+ # @!attribute last_name
281
+ # Individual's last name, as it appears on government-issued identity documents.
282
+ #
283
+ # @return [String, nil]
284
+ optional :last_name, String
285
+
286
+ # @!attribute phone_number
287
+ # Individual's phone number, entered in E.164 format.
288
+ #
289
+ # @return [String, nil]
290
+ optional :phone_number, String
291
+
292
+ # @!method initialize(address: nil, dob: nil, email: nil, first_name: nil, last_name: nil, phone_number: nil)
293
+ # Some parameter documentations has been truncated, see
294
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual}
295
+ # for more details.
296
+ #
297
+ # @param address [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
298
+ #
299
+ # @param dob [String] Individual's date of birth, as an RFC 3339 date.
300
+ #
301
+ # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this
302
+ #
303
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
304
+ #
305
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
306
+ #
307
+ # @param phone_number [String] Individual's phone number, entered in E.164 format.
308
+
309
+ # @see Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual#address
310
+ class Address < Lithic::Internal::Type::BaseModel
311
+ # @!attribute address1
312
+ # Valid deliverable address (no PO boxes).
313
+ #
314
+ # @return [String]
315
+ required :address1, String
316
+
317
+ # @!attribute city
318
+ # Name of city.
319
+ #
320
+ # @return [String]
321
+ required :city, String
322
+
323
+ # @!attribute country
324
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO
325
+ # 3166-1 alpha-3 three-character format.
326
+ #
327
+ # @return [String]
328
+ required :country, String
329
+
330
+ # @!attribute postal_code
331
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a
332
+ # five-digit ZIP or nine-digit ZIP+4.
333
+ #
334
+ # @return [String]
335
+ required :postal_code, String
336
+
337
+ # @!attribute state
338
+ # Valid state code. Only USA state codes are currently supported, entered in
339
+ # uppercase ISO 3166-2 two-character format.
340
+ #
341
+ # @return [String]
342
+ required :state, String
343
+
344
+ # @!attribute address2
345
+ # Unit or apartment number (if applicable).
346
+ #
347
+ # @return [String, nil]
348
+ optional :address2, String
349
+
350
+ # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
351
+ # Some parameter documentations has been truncated, see
352
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address}
353
+ # for more details.
354
+ #
355
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
356
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
357
+ #
358
+ # @param address1 [String] Valid deliverable address (no PO boxes).
359
+ #
360
+ # @param city [String] Name of city.
361
+ #
362
+ # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
363
+ #
364
+ # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
365
+ #
366
+ # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
367
+ #
368
+ # @param address2 [String] Unit or apartment number (if applicable).
369
+ end
370
+ end
371
+
372
+ # @see Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest#control_person
373
+ class ControlPerson < Lithic::Internal::Type::BaseModel
374
+ # @!attribute address
375
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
376
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
377
+ #
378
+ # @return [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address, nil]
379
+ optional :address, -> { Lithic::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address }
380
+
381
+ # @!attribute dob
382
+ # Individual's date of birth, as an RFC 3339 date.
383
+ #
384
+ # @return [String, nil]
385
+ optional :dob, String
386
+
387
+ # @!attribute email
388
+ # Individual's email address. If utilizing Lithic for chargeback processing, this
389
+ # customer email address may be used to communicate dispute status and resolution.
390
+ #
391
+ # @return [String, nil]
392
+ optional :email, String
393
+
394
+ # @!attribute first_name
395
+ # Individual's first name, as it appears on government-issued identity documents.
396
+ #
397
+ # @return [String, nil]
398
+ optional :first_name, String
399
+
400
+ # @!attribute last_name
401
+ # Individual's last name, as it appears on government-issued identity documents.
402
+ #
403
+ # @return [String, nil]
404
+ optional :last_name, String
405
+
406
+ # @!attribute phone_number
407
+ # Individual's phone number, entered in E.164 format.
408
+ #
409
+ # @return [String, nil]
410
+ optional :phone_number, String
411
+
412
+ # @!method initialize(address: nil, dob: nil, email: nil, first_name: nil, last_name: nil, phone_number: nil)
413
+ # Some parameter documentations has been truncated, see
414
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson}
415
+ # for more details.
416
+ #
417
+ # An individual with significant responsibility for managing the legal entity
418
+ # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
419
+ # Officer, Managing Member, General Partner, President, Vice President, or
420
+ # Treasurer). This can be an executive, or someone who will have program-wide
421
+ # access to the cards that Lithic will provide. In some cases, this individual
422
+ # could also be a beneficial owner listed above. See
423
+ # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
424
+ # (Section II) for more background.
425
+ #
426
+ # @param address [Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
427
+ #
428
+ # @param dob [String] Individual's date of birth, as an RFC 3339 date.
429
+ #
430
+ # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this
431
+ #
432
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
433
+ #
434
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
435
+ #
436
+ # @param phone_number [String] Individual's phone number, entered in E.164 format.
437
+
438
+ # @see Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson#address
439
+ class Address < Lithic::Internal::Type::BaseModel
440
+ # @!attribute address1
441
+ # Valid deliverable address (no PO boxes).
442
+ #
443
+ # @return [String]
444
+ required :address1, String
445
+
446
+ # @!attribute city
447
+ # Name of city.
448
+ #
449
+ # @return [String]
450
+ required :city, String
451
+
452
+ # @!attribute country
453
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO
454
+ # 3166-1 alpha-3 three-character format.
455
+ #
456
+ # @return [String]
457
+ required :country, String
458
+
459
+ # @!attribute postal_code
460
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a
461
+ # five-digit ZIP or nine-digit ZIP+4.
462
+ #
463
+ # @return [String]
464
+ required :postal_code, String
465
+
466
+ # @!attribute state
467
+ # Valid state code. Only USA state codes are currently supported, entered in
468
+ # uppercase ISO 3166-2 two-character format.
469
+ #
470
+ # @return [String]
471
+ required :state, String
472
+
473
+ # @!attribute address2
474
+ # Unit or apartment number (if applicable).
475
+ #
476
+ # @return [String, nil]
477
+ optional :address2, String
478
+
479
+ # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
480
+ # Some parameter documentations has been truncated, see
481
+ # {Lithic::Models::ParsedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address}
482
+ # for more details.
483
+ #
484
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
485
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
486
+ #
487
+ # @param address1 [String] Valid deliverable address (no PO boxes).
488
+ #
489
+ # @param city [String] Name of city.
490
+ #
491
+ # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
492
+ #
493
+ # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
494
+ #
495
+ # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
496
+ #
497
+ # @param address2 [String] Unit or apartment number (if applicable).
498
+ end
499
+ end
500
+ end
501
+
502
+ # The type of event that occurred.
503
+ #
504
+ # @see Lithic::Models::ParsedWebhookEvent::KYBPayload#event_type
505
+ module EventType
506
+ extend Lithic::Internal::Type::Enum
507
+
508
+ ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
509
+
510
+ # @!method self.values
511
+ # @return [Array<Symbol>]
512
+ end
513
+ end
514
+
515
+ class KYCPayload < Lithic::Internal::Type::BaseModel
516
+ # @!attribute token
517
+ # The token of the account_holder that was created.
518
+ #
519
+ # @return [String]
520
+ required :token, String
521
+
522
+ # @!attribute update_request
523
+ # Original request to update the account holder.
524
+ #
525
+ # @return [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest]
526
+ required :update_request, -> { Lithic::ParsedWebhookEvent::KYCPayload::UpdateRequest }
527
+
528
+ # @!attribute event_type
529
+ # The type of event that occurred.
530
+ #
531
+ # @return [Symbol, Lithic::Models::ParsedWebhookEvent::KYCPayload::EventType, nil]
532
+ optional :event_type, enum: -> { Lithic::ParsedWebhookEvent::KYCPayload::EventType }
533
+
534
+ # @!attribute external_id
535
+ # A user provided id that can be used to link an account holder with an external
536
+ # system
537
+ #
538
+ # @return [String, nil]
539
+ optional :external_id, String
540
+
541
+ # @!method initialize(token:, update_request:, event_type: nil, external_id: nil)
542
+ # Some parameter documentations has been truncated, see
543
+ # {Lithic::Models::ParsedWebhookEvent::KYCPayload} for more details.
544
+ #
545
+ # KYC payload for an updated account holder.
546
+ #
547
+ # @param token [String] The token of the account_holder that was created.
548
+ #
549
+ # @param update_request [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest] Original request to update the account holder.
550
+ #
551
+ # @param event_type [Symbol, Lithic::Models::ParsedWebhookEvent::KYCPayload::EventType] The type of event that occurred.
552
+ #
553
+ # @param external_id [String] A user provided id that can be used to link an account holder with an external s
554
+
555
+ # @see Lithic::Models::ParsedWebhookEvent::KYCPayload#update_request
556
+ class UpdateRequest < Lithic::Internal::Type::BaseModel
557
+ # @!attribute individual
558
+ # Information on the individual for whom the account is being opened and KYC is
559
+ # being run.
560
+ #
561
+ # @return [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual, nil]
562
+ optional :individual, -> { Lithic::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual }
563
+
564
+ # @!method initialize(individual: nil)
565
+ # Some parameter documentations has been truncated, see
566
+ # {Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest} for more
567
+ # details.
568
+ #
569
+ # Original request to update the account holder.
570
+ #
571
+ # @param individual [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual] Information on the individual for whom the account is being opened and KYC is be
572
+
573
+ # @see Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest#individual
574
+ class Individual < Lithic::Internal::Type::BaseModel
575
+ # @!attribute address
576
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
577
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
578
+ #
579
+ # @return [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address, nil]
580
+ optional :address, -> { Lithic::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address }
581
+
582
+ # @!attribute dob
583
+ # Individual's date of birth, as an RFC 3339 date.
584
+ #
585
+ # @return [String, nil]
586
+ optional :dob, String
587
+
588
+ # @!attribute email
589
+ # Individual's email address. If utilizing Lithic for chargeback processing, this
590
+ # customer email address may be used to communicate dispute status and resolution.
591
+ #
592
+ # @return [String, nil]
593
+ optional :email, String
594
+
595
+ # @!attribute first_name
596
+ # Individual's first name, as it appears on government-issued identity documents.
597
+ #
598
+ # @return [String, nil]
599
+ optional :first_name, String
600
+
601
+ # @!attribute last_name
602
+ # Individual's last name, as it appears on government-issued identity documents.
603
+ #
604
+ # @return [String, nil]
605
+ optional :last_name, String
606
+
607
+ # @!attribute phone_number
608
+ # Individual's phone number, entered in E.164 format.
609
+ #
610
+ # @return [String, nil]
611
+ optional :phone_number, String
612
+
613
+ # @!method initialize(address: nil, dob: nil, email: nil, first_name: nil, last_name: nil, phone_number: nil)
614
+ # Some parameter documentations has been truncated, see
615
+ # {Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual} for
616
+ # more details.
617
+ #
618
+ # Information on the individual for whom the account is being opened and KYC is
619
+ # being run.
620
+ #
621
+ # @param address [Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
622
+ #
623
+ # @param dob [String] Individual's date of birth, as an RFC 3339 date.
624
+ #
625
+ # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this
626
+ #
627
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
628
+ #
629
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
630
+ #
631
+ # @param phone_number [String] Individual's phone number, entered in E.164 format.
632
+
633
+ # @see Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual#address
634
+ class Address < Lithic::Internal::Type::BaseModel
635
+ # @!attribute address1
636
+ # Valid deliverable address (no PO boxes).
637
+ #
638
+ # @return [String]
639
+ required :address1, String
640
+
641
+ # @!attribute city
642
+ # Name of city.
643
+ #
644
+ # @return [String]
645
+ required :city, String
646
+
647
+ # @!attribute country
648
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO
649
+ # 3166-1 alpha-3 three-character format.
650
+ #
651
+ # @return [String]
652
+ required :country, String
653
+
654
+ # @!attribute postal_code
655
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a
656
+ # five-digit ZIP or nine-digit ZIP+4.
657
+ #
658
+ # @return [String]
659
+ required :postal_code, String
660
+
661
+ # @!attribute state
662
+ # Valid state code. Only USA state codes are currently supported, entered in
663
+ # uppercase ISO 3166-2 two-character format.
664
+ #
665
+ # @return [String]
666
+ required :state, String
667
+
668
+ # @!attribute address2
669
+ # Unit or apartment number (if applicable).
670
+ #
671
+ # @return [String, nil]
672
+ optional :address2, String
673
+
674
+ # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
675
+ # Some parameter documentations has been truncated, see
676
+ # {Lithic::Models::ParsedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address}
677
+ # for more details.
678
+ #
679
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
680
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
681
+ #
682
+ # @param address1 [String] Valid deliverable address (no PO boxes).
683
+ #
684
+ # @param city [String] Name of city.
685
+ #
686
+ # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
687
+ #
688
+ # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
689
+ #
690
+ # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
691
+ #
692
+ # @param address2 [String] Unit or apartment number (if applicable).
693
+ end
694
+ end
695
+ end
696
+
697
+ # The type of event that occurred.
698
+ #
699
+ # @see Lithic::Models::ParsedWebhookEvent::KYCPayload#event_type
700
+ module EventType
701
+ extend Lithic::Internal::Type::Enum
702
+
703
+ ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
704
+
705
+ # @!method self.values
706
+ # @return [Array<Symbol>]
707
+ end
708
+ end
709
+
710
+ class LegacyPayload < Lithic::Internal::Type::BaseModel
711
+ # @!attribute token
712
+ # The token of the account_holder that was created.
713
+ #
714
+ # @return [String]
715
+ required :token, String
716
+
717
+ # @!attribute business_account_token
718
+ # If applicable, represents the business account token associated with the
719
+ # account_holder.
720
+ #
721
+ # @return [String, nil]
722
+ optional :business_account_token, String, nil?: true
723
+
724
+ # @!attribute created
725
+ # When the account_holder updated event was created
726
+ #
727
+ # @return [Time, nil]
728
+ optional :created, Time
729
+
730
+ # @!attribute email
731
+ # If updated, the newly updated email associated with the account_holder otherwise
732
+ # the existing email is provided.
733
+ #
734
+ # @return [String, nil]
735
+ optional :email, String
736
+
737
+ # @!attribute event_type
738
+ # The type of event that occurred.
739
+ #
740
+ # @return [Symbol, Lithic::Models::ParsedWebhookEvent::LegacyPayload::EventType, nil]
741
+ optional :event_type, enum: -> { Lithic::ParsedWebhookEvent::LegacyPayload::EventType }
742
+
743
+ # @!attribute external_id
744
+ # If applicable, represents the external_id associated with the account_holder.
745
+ #
746
+ # @return [String, nil]
747
+ optional :external_id, String, nil?: true
748
+
749
+ # @!attribute first_name
750
+ # If applicable, represents the account_holder's first name.
751
+ #
752
+ # @return [String, nil]
753
+ optional :first_name, String
754
+
755
+ # @!attribute last_name
756
+ # If applicable, represents the account_holder's last name.
757
+ #
758
+ # @return [String, nil]
759
+ optional :last_name, String
760
+
761
+ # @!attribute legal_business_name
762
+ # If applicable, represents the account_holder's business name.
763
+ #
764
+ # @return [String, nil]
765
+ optional :legal_business_name, String
766
+
767
+ # @!attribute phone_number
768
+ # If updated, the newly updated phone_number associated with the account_holder
769
+ # otherwise the existing phone_number is provided.
770
+ #
771
+ # @return [String, nil]
772
+ optional :phone_number, String
773
+
774
+ # @!method initialize(token:, business_account_token: nil, created: nil, email: nil, event_type: nil, external_id: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil)
775
+ # Some parameter documentations has been truncated, see
776
+ # {Lithic::Models::ParsedWebhookEvent::LegacyPayload} for more details.
777
+ #
778
+ # Legacy payload for an updated account holder.
779
+ #
780
+ # @param token [String] The token of the account_holder that was created.
781
+ #
782
+ # @param business_account_token [String, nil] If applicable, represents the business account token associated with the account
783
+ #
784
+ # @param created [Time] When the account_holder updated event was created
785
+ #
786
+ # @param email [String] If updated, the newly updated email associated with the account_holder otherwise
787
+ #
788
+ # @param event_type [Symbol, Lithic::Models::ParsedWebhookEvent::LegacyPayload::EventType] The type of event that occurred.
789
+ #
790
+ # @param external_id [String, nil] If applicable, represents the external_id associated with the account_holder.
791
+ #
792
+ # @param first_name [String] If applicable, represents the account_holder's first name.
793
+ #
794
+ # @param last_name [String] If applicable, represents the account_holder's last name.
795
+ #
796
+ # @param legal_business_name [String] If applicable, represents the account_holder's business name.
797
+ #
798
+ # @param phone_number [String] If updated, the newly updated phone_number associated with the account_holder ot
799
+
800
+ # The type of event that occurred.
801
+ #
802
+ # @see Lithic::Models::ParsedWebhookEvent::LegacyPayload#event_type
803
+ module EventType
804
+ extend Lithic::Internal::Type::Enum
805
+
806
+ ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
807
+
808
+ # @!method self.values
809
+ # @return [Array<Symbol>]
810
+ end
811
+ end
812
+
813
+ # @!method self.variants
814
+ # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
815
+ end
816
+ end
817
+ end