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