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,587 @@
1
+ module Lithic
2
+ module Models
3
+ type account_holder_updated_webhook_event =
4
+ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload
5
+ | Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload
6
+ | Lithic::AccountHolderUpdatedWebhookEvent::LegacyPayload
7
+
8
+ module AccountHolderUpdatedWebhookEvent
9
+ extend Lithic::Internal::Type::Union
10
+
11
+ type kyb_payload =
12
+ {
13
+ token: String,
14
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
15
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
16
+ external_id: String,
17
+ nature_of_business: String,
18
+ website_url: String
19
+ }
20
+
21
+ class KYBPayload < Lithic::Internal::Type::BaseModel
22
+ attr_accessor token: String
23
+
24
+ attr_accessor update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest
25
+
26
+ attr_reader event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type?
27
+
28
+ def event_type=: (
29
+ Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type
30
+ ) -> Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type
31
+
32
+ attr_reader external_id: String?
33
+
34
+ def external_id=: (String) -> String
35
+
36
+ attr_reader nature_of_business: String?
37
+
38
+ def nature_of_business=: (String) -> String
39
+
40
+ attr_reader website_url: String?
41
+
42
+ def website_url=: (String) -> String
43
+
44
+ def initialize: (
45
+ token: String,
46
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
47
+ ?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
48
+ ?external_id: String,
49
+ ?nature_of_business: String,
50
+ ?website_url: String
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ token: String,
55
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest,
56
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type,
57
+ external_id: String,
58
+ nature_of_business: String,
59
+ website_url: String
60
+ }
61
+
62
+ type update_request =
63
+ {
64
+ beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
65
+ beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual],
66
+ business_entity: Lithic::KYBBusinessEntity,
67
+ control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson
68
+ }
69
+
70
+ class UpdateRequest < Lithic::Internal::Type::BaseModel
71
+ attr_reader beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity]?
72
+
73
+ def beneficial_owner_entities=: (
74
+ ::Array[Lithic::KYBBusinessEntity]
75
+ ) -> ::Array[Lithic::KYBBusinessEntity]
76
+
77
+ attr_reader beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual]?
78
+
79
+ def beneficial_owner_individuals=: (
80
+ ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual]
81
+ ) -> ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual]
82
+
83
+ attr_reader business_entity: Lithic::KYBBusinessEntity?
84
+
85
+ def business_entity=: (
86
+ Lithic::KYBBusinessEntity
87
+ ) -> Lithic::KYBBusinessEntity
88
+
89
+ attr_reader control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson?
90
+
91
+ def control_person=: (
92
+ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson
93
+ ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson
94
+
95
+ def initialize: (
96
+ ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
97
+ ?beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual],
98
+ ?business_entity: Lithic::KYBBusinessEntity,
99
+ ?control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson
100
+ ) -> void
101
+
102
+ def to_hash: -> {
103
+ beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity],
104
+ beneficial_owner_individuals: ::Array[Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual],
105
+ business_entity: Lithic::KYBBusinessEntity,
106
+ control_person: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson
107
+ }
108
+
109
+ type beneficial_owner_individual =
110
+ {
111
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address,
112
+ dob: String,
113
+ email: String,
114
+ first_name: String,
115
+ government_id: String,
116
+ last_name: String,
117
+ phone_number: String
118
+ }
119
+
120
+ class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
121
+ attr_reader address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address?
122
+
123
+ def address=: (
124
+ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address
125
+ ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address
126
+
127
+ attr_reader dob: String?
128
+
129
+ def dob=: (String) -> String
130
+
131
+ attr_reader email: String?
132
+
133
+ def email=: (String) -> String
134
+
135
+ attr_reader first_name: String?
136
+
137
+ def first_name=: (String) -> String
138
+
139
+ attr_reader last_name: String?
140
+
141
+ def last_name=: (String) -> String
142
+
143
+ attr_reader phone_number: String?
144
+
145
+ def phone_number=: (String) -> String
146
+
147
+ def initialize: (
148
+ ?address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address,
149
+ ?dob: String,
150
+ ?email: String,
151
+ ?first_name: String,
152
+ ?last_name: String,
153
+ ?phone_number: String
154
+ ) -> void
155
+
156
+ def to_hash: -> {
157
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::BeneficialOwnerIndividual::Address,
158
+ dob: String,
159
+ email: String,
160
+ first_name: String,
161
+ government_id: String,
162
+ last_name: String,
163
+ phone_number: String
164
+ }
165
+
166
+ type address =
167
+ {
168
+ :address1 => String,
169
+ city: String,
170
+ country: String,
171
+ postal_code: String,
172
+ state: String,
173
+ :address2 => String
174
+ }
175
+
176
+ class Address < Lithic::Internal::Type::BaseModel
177
+ attr_accessor address1: String
178
+
179
+ attr_accessor city: String
180
+
181
+ attr_accessor country: String
182
+
183
+ attr_accessor postal_code: String
184
+
185
+ attr_accessor state: String
186
+
187
+ attr_reader address2: String?
188
+
189
+ def address2=: (String) -> String
190
+
191
+ def initialize: (
192
+ address1: String,
193
+ city: String,
194
+ country: String,
195
+ postal_code: String,
196
+ state: String,
197
+ ?address2: String
198
+ ) -> void
199
+
200
+ def to_hash: -> {
201
+ :address1 => String,
202
+ city: String,
203
+ country: String,
204
+ postal_code: String,
205
+ state: String,
206
+ :address2 => String
207
+ }
208
+ end
209
+ end
210
+
211
+ type control_person =
212
+ {
213
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address,
214
+ dob: String,
215
+ email: String,
216
+ first_name: String,
217
+ government_id: String,
218
+ last_name: String,
219
+ phone_number: String
220
+ }
221
+
222
+ class ControlPerson < Lithic::Internal::Type::BaseModel
223
+ attr_reader address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address?
224
+
225
+ def address=: (
226
+ Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address
227
+ ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address
228
+
229
+ attr_reader dob: String?
230
+
231
+ def dob=: (String) -> String
232
+
233
+ attr_reader email: String?
234
+
235
+ def email=: (String) -> String
236
+
237
+ attr_reader first_name: String?
238
+
239
+ def first_name=: (String) -> String
240
+
241
+ attr_reader last_name: String?
242
+
243
+ def last_name=: (String) -> String
244
+
245
+ attr_reader phone_number: String?
246
+
247
+ def phone_number=: (String) -> String
248
+
249
+ def initialize: (
250
+ ?address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address,
251
+ ?dob: String,
252
+ ?email: String,
253
+ ?first_name: String,
254
+ ?last_name: String,
255
+ ?phone_number: String
256
+ ) -> void
257
+
258
+ def to_hash: -> {
259
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::UpdateRequest::ControlPerson::Address,
260
+ dob: String,
261
+ email: String,
262
+ first_name: String,
263
+ government_id: String,
264
+ last_name: String,
265
+ phone_number: String
266
+ }
267
+
268
+ type address =
269
+ {
270
+ :address1 => String,
271
+ city: String,
272
+ country: String,
273
+ postal_code: String,
274
+ state: String,
275
+ :address2 => String
276
+ }
277
+
278
+ class Address < Lithic::Internal::Type::BaseModel
279
+ attr_accessor address1: String
280
+
281
+ attr_accessor city: String
282
+
283
+ attr_accessor country: String
284
+
285
+ attr_accessor postal_code: String
286
+
287
+ attr_accessor state: String
288
+
289
+ attr_reader address2: String?
290
+
291
+ def address2=: (String) -> String
292
+
293
+ def initialize: (
294
+ address1: String,
295
+ city: String,
296
+ country: String,
297
+ postal_code: String,
298
+ state: String,
299
+ ?address2: String
300
+ ) -> void
301
+
302
+ def to_hash: -> {
303
+ :address1 => String,
304
+ city: String,
305
+ country: String,
306
+ postal_code: String,
307
+ state: String,
308
+ :address2 => String
309
+ }
310
+ end
311
+ end
312
+ end
313
+
314
+ type event_type = :"account_holder.updated"
315
+
316
+ module EventType
317
+ extend Lithic::Internal::Type::Enum
318
+
319
+ ACCOUNT_HOLDER_UPDATED: :"account_holder.updated"
320
+
321
+ def self?.values: -> ::Array[Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload::event_type]
322
+ end
323
+ end
324
+
325
+ type kyc_payload =
326
+ {
327
+ token: String,
328
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest,
329
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type,
330
+ external_id: String
331
+ }
332
+
333
+ class KYCPayload < Lithic::Internal::Type::BaseModel
334
+ attr_accessor token: String
335
+
336
+ attr_accessor update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest
337
+
338
+ attr_reader event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type?
339
+
340
+ def event_type=: (
341
+ Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type
342
+ ) -> Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type
343
+
344
+ attr_reader external_id: String?
345
+
346
+ def external_id=: (String) -> String
347
+
348
+ def initialize: (
349
+ token: String,
350
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest,
351
+ ?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type,
352
+ ?external_id: String
353
+ ) -> void
354
+
355
+ def to_hash: -> {
356
+ token: String,
357
+ update_request: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest,
358
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type,
359
+ external_id: String
360
+ }
361
+
362
+ type update_request =
363
+ {
364
+ individual: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual
365
+ }
366
+
367
+ class UpdateRequest < Lithic::Internal::Type::BaseModel
368
+ attr_reader individual: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual?
369
+
370
+ def individual=: (
371
+ Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual
372
+ ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual
373
+
374
+ def initialize: (
375
+ ?individual: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual
376
+ ) -> void
377
+
378
+ def to_hash: -> {
379
+ individual: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual
380
+ }
381
+
382
+ type individual =
383
+ {
384
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address,
385
+ dob: String,
386
+ email: String,
387
+ first_name: String,
388
+ government_id: String,
389
+ last_name: String,
390
+ phone_number: String
391
+ }
392
+
393
+ class Individual < Lithic::Internal::Type::BaseModel
394
+ attr_reader address: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address?
395
+
396
+ def address=: (
397
+ Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address
398
+ ) -> Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address
399
+
400
+ attr_reader dob: String?
401
+
402
+ def dob=: (String) -> String
403
+
404
+ attr_reader email: String?
405
+
406
+ def email=: (String) -> String
407
+
408
+ attr_reader first_name: String?
409
+
410
+ def first_name=: (String) -> String
411
+
412
+ attr_reader last_name: String?
413
+
414
+ def last_name=: (String) -> String
415
+
416
+ attr_reader phone_number: String?
417
+
418
+ def phone_number=: (String) -> String
419
+
420
+ def initialize: (
421
+ ?address: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address,
422
+ ?dob: String,
423
+ ?email: String,
424
+ ?first_name: String,
425
+ ?last_name: String,
426
+ ?phone_number: String
427
+ ) -> void
428
+
429
+ def to_hash: -> {
430
+ address: Lithic::AccountHolderUpdatedWebhookEvent::KYCPayload::UpdateRequest::Individual::Address,
431
+ dob: String,
432
+ email: String,
433
+ first_name: String,
434
+ government_id: String,
435
+ last_name: String,
436
+ phone_number: String
437
+ }
438
+
439
+ type address =
440
+ {
441
+ :address1 => String,
442
+ city: String,
443
+ country: String,
444
+ postal_code: String,
445
+ state: String,
446
+ :address2 => String
447
+ }
448
+
449
+ class Address < Lithic::Internal::Type::BaseModel
450
+ attr_accessor address1: String
451
+
452
+ attr_accessor city: String
453
+
454
+ attr_accessor country: String
455
+
456
+ attr_accessor postal_code: String
457
+
458
+ attr_accessor state: String
459
+
460
+ attr_reader address2: String?
461
+
462
+ def address2=: (String) -> String
463
+
464
+ def initialize: (
465
+ address1: String,
466
+ city: String,
467
+ country: String,
468
+ postal_code: String,
469
+ state: String,
470
+ ?address2: String
471
+ ) -> void
472
+
473
+ def to_hash: -> {
474
+ :address1 => String,
475
+ city: String,
476
+ country: String,
477
+ postal_code: String,
478
+ state: String,
479
+ :address2 => String
480
+ }
481
+ end
482
+ end
483
+ end
484
+
485
+ type event_type = :"account_holder.updated"
486
+
487
+ module EventType
488
+ extend Lithic::Internal::Type::Enum
489
+
490
+ ACCOUNT_HOLDER_UPDATED: :"account_holder.updated"
491
+
492
+ def self?.values: -> ::Array[Lithic::Models::AccountHolderUpdatedWebhookEvent::KYCPayload::event_type]
493
+ end
494
+ end
495
+
496
+ type legacy_payload =
497
+ {
498
+ token: String,
499
+ business_account_token: String?,
500
+ created: Time,
501
+ email: String,
502
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type,
503
+ external_id: String?,
504
+ first_name: String,
505
+ last_name: String,
506
+ legal_business_name: String,
507
+ phone_number: String
508
+ }
509
+
510
+ class LegacyPayload < Lithic::Internal::Type::BaseModel
511
+ attr_accessor token: String
512
+
513
+ attr_accessor business_account_token: String?
514
+
515
+ attr_reader created: Time?
516
+
517
+ def created=: (Time) -> Time
518
+
519
+ attr_reader email: String?
520
+
521
+ def email=: (String) -> String
522
+
523
+ attr_reader event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type?
524
+
525
+ def event_type=: (
526
+ Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type
527
+ ) -> Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type
528
+
529
+ attr_accessor external_id: String?
530
+
531
+ attr_reader first_name: String?
532
+
533
+ def first_name=: (String) -> String
534
+
535
+ attr_reader last_name: String?
536
+
537
+ def last_name=: (String) -> String
538
+
539
+ attr_reader legal_business_name: String?
540
+
541
+ def legal_business_name=: (String) -> String
542
+
543
+ attr_reader phone_number: String?
544
+
545
+ def phone_number=: (String) -> String
546
+
547
+ def initialize: (
548
+ token: String,
549
+ ?business_account_token: String?,
550
+ ?created: Time,
551
+ ?email: String,
552
+ ?event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type,
553
+ ?external_id: String?,
554
+ ?first_name: String,
555
+ ?last_name: String,
556
+ ?legal_business_name: String,
557
+ ?phone_number: String
558
+ ) -> void
559
+
560
+ def to_hash: -> {
561
+ token: String,
562
+ business_account_token: String?,
563
+ created: Time,
564
+ email: String,
565
+ event_type: Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type,
566
+ external_id: String?,
567
+ first_name: String,
568
+ last_name: String,
569
+ legal_business_name: String,
570
+ phone_number: String
571
+ }
572
+
573
+ type event_type = :"account_holder.updated"
574
+
575
+ module EventType
576
+ extend Lithic::Internal::Type::Enum
577
+
578
+ ACCOUNT_HOLDER_UPDATED: :"account_holder.updated"
579
+
580
+ def self?.values: -> ::Array[Lithic::Models::AccountHolderUpdatedWebhookEvent::LegacyPayload::event_type]
581
+ end
582
+ end
583
+
584
+ def self?.variants: -> ::Array[Lithic::Models::account_holder_updated_webhook_event]
585
+ end
586
+ end
587
+ end
@@ -0,0 +1,69 @@
1
+ module Lithic
2
+ module Models
3
+ type account_holder_verification_webhook_event =
4
+ {
5
+ event_type: :"account_holder.verification",
6
+ token: String,
7
+ account_token: String,
8
+ created: Time,
9
+ status: Lithic::Models::AccountHolderVerificationWebhookEvent::status,
10
+ status_reasons: ::Array[String]
11
+ }
12
+
13
+ class AccountHolderVerificationWebhookEvent < Lithic::Internal::Type::BaseModel
14
+ attr_accessor event_type: :"account_holder.verification"
15
+
16
+ attr_reader token: String?
17
+
18
+ def token=: (String) -> String
19
+
20
+ attr_reader account_token: String?
21
+
22
+ def account_token=: (String) -> String
23
+
24
+ attr_reader created: Time?
25
+
26
+ def created=: (Time) -> Time
27
+
28
+ attr_reader status: Lithic::Models::AccountHolderVerificationWebhookEvent::status?
29
+
30
+ def status=: (
31
+ Lithic::Models::AccountHolderVerificationWebhookEvent::status
32
+ ) -> Lithic::Models::AccountHolderVerificationWebhookEvent::status
33
+
34
+ attr_reader status_reasons: ::Array[String]?
35
+
36
+ def status_reasons=: (::Array[String]) -> ::Array[String]
37
+
38
+ def initialize: (
39
+ ?token: String,
40
+ ?account_token: String,
41
+ ?created: Time,
42
+ ?status: Lithic::Models::AccountHolderVerificationWebhookEvent::status,
43
+ ?status_reasons: ::Array[String],
44
+ ?event_type: :"account_holder.verification"
45
+ ) -> void
46
+
47
+ def to_hash: -> {
48
+ event_type: :"account_holder.verification",
49
+ token: String,
50
+ account_token: String,
51
+ created: Time,
52
+ status: Lithic::Models::AccountHolderVerificationWebhookEvent::status,
53
+ status_reasons: ::Array[String]
54
+ }
55
+
56
+ type status = :ACCEPTED | :PENDING_REVIEW | :REJECTED
57
+
58
+ module Status
59
+ extend Lithic::Internal::Type::Enum
60
+
61
+ ACCEPTED: :ACCEPTED
62
+ PENDING_REVIEW: :PENDING_REVIEW
63
+ REJECTED: :REJECTED
64
+
65
+ def self?.values: -> ::Array[Lithic::Models::AccountHolderVerificationWebhookEvent::status]
66
+ end
67
+ end
68
+ end
69
+ end