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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +36 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/errors.rb +15 -0
- data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
- data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
- data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
- data/lib/lithic/models/asa_request_webhook_event.rb +1010 -0
- data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
- data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
- data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
- data/lib/lithic/models/card_created_webhook_event.rb +32 -0
- data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
- data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
- data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
- data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
- data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/parsed_webhook_event.rb +818 -0
- data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
- data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
- data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
- data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
- data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/webhook_parsed_params.rb +14 -0
- data/lib/lithic/models.rb +120 -0
- data/lib/lithic/resources/webhooks.rb +87 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +74 -17
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
- data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
- data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
- data/rbi/lithic/models/asa_request_webhook_event.rbi +2229 -0
- data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
- data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
- data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
- data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
- data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
- data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
- data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction.rbi +15 -10
- data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
- data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
- data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
- data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
- data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
- data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
- data/rbi/lithic/models.rbi +155 -0
- data/rbi/lithic/resources/webhooks.rbi +158 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
- data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
- data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
- data/sig/lithic/models/asa_request_webhook_event.rbs +881 -0
- data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
- data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
- data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
- data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
- data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
- data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
- data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
- data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
- data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
- data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
- data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
- data/sig/lithic/models.rbs +112 -0
- data/sig/lithic/resources/webhooks.rbs +135 -0
- metadata +173 -2
data/rbi/lithic/models.rbi
CHANGED
|
@@ -12,8 +12,14 @@ module Lithic
|
|
|
12
12
|
|
|
13
13
|
AccountHolder = Lithic::Models::AccountHolder
|
|
14
14
|
|
|
15
|
+
AccountHolderCreatedWebhookEvent =
|
|
16
|
+
Lithic::Models::AccountHolderCreatedWebhookEvent
|
|
17
|
+
|
|
15
18
|
AccountHolderCreateParams = Lithic::Models::AccountHolderCreateParams
|
|
16
19
|
|
|
20
|
+
AccountHolderDocumentUpdatedWebhookEvent =
|
|
21
|
+
Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent
|
|
22
|
+
|
|
17
23
|
AccountHolderListDocumentsParams =
|
|
18
24
|
Lithic::Models::AccountHolderListDocumentsParams
|
|
19
25
|
|
|
@@ -30,11 +36,17 @@ module Lithic
|
|
|
30
36
|
AccountHolderSimulateEnrollmentReviewParams =
|
|
31
37
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewParams
|
|
32
38
|
|
|
39
|
+
AccountHolderUpdatedWebhookEvent =
|
|
40
|
+
Lithic::Models::AccountHolderUpdatedWebhookEvent
|
|
41
|
+
|
|
33
42
|
AccountHolderUpdateParams = Lithic::Models::AccountHolderUpdateParams
|
|
34
43
|
|
|
35
44
|
AccountHolderUploadDocumentParams =
|
|
36
45
|
Lithic::Models::AccountHolderUploadDocumentParams
|
|
37
46
|
|
|
47
|
+
AccountHolderVerificationWebhookEvent =
|
|
48
|
+
Lithic::Models::AccountHolderVerificationWebhookEvent
|
|
49
|
+
|
|
38
50
|
AccountListParams = Lithic::Models::AccountListParams
|
|
39
51
|
|
|
40
52
|
AccountRetrieveParams = Lithic::Models::AccountRetrieveParams
|
|
@@ -56,8 +68,13 @@ module Lithic
|
|
|
56
68
|
|
|
57
69
|
APIStatus = Lithic::Models::APIStatus
|
|
58
70
|
|
|
71
|
+
AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent
|
|
72
|
+
|
|
59
73
|
AuthRules = Lithic::Models::AuthRules
|
|
60
74
|
|
|
75
|
+
AuthRulesBacktestReportCreatedWebhookEvent =
|
|
76
|
+
Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent
|
|
77
|
+
|
|
61
78
|
AuthStreamEnrollmentRetrieveSecretParams =
|
|
62
79
|
Lithic::Models::AuthStreamEnrollmentRetrieveSecretParams
|
|
63
80
|
|
|
@@ -70,6 +87,8 @@ module Lithic
|
|
|
70
87
|
|
|
71
88
|
BalanceListParams = Lithic::Models::BalanceListParams
|
|
72
89
|
|
|
90
|
+
BalanceUpdatedWebhookEvent = Lithic::Models::BalanceUpdatedWebhookEvent
|
|
91
|
+
|
|
73
92
|
BookTransferCreateParams = Lithic::Models::BookTransferCreateParams
|
|
74
93
|
|
|
75
94
|
BookTransferListParams = Lithic::Models::BookTransferListParams
|
|
@@ -80,6 +99,12 @@ module Lithic
|
|
|
80
99
|
|
|
81
100
|
BookTransferReverseParams = Lithic::Models::BookTransferReverseParams
|
|
82
101
|
|
|
102
|
+
BookTransferTransactionCreatedWebhookEvent =
|
|
103
|
+
Lithic::Models::BookTransferTransactionCreatedWebhookEvent
|
|
104
|
+
|
|
105
|
+
BookTransferTransactionUpdatedWebhookEvent =
|
|
106
|
+
Lithic::Models::BookTransferTransactionUpdatedWebhookEvent
|
|
107
|
+
|
|
83
108
|
Card = Lithic::Models::Card
|
|
84
109
|
|
|
85
110
|
CardBulkOrder = Lithic::Models::CardBulkOrder
|
|
@@ -92,8 +117,12 @@ module Lithic
|
|
|
92
117
|
|
|
93
118
|
CardBulkOrderUpdateParams = Lithic::Models::CardBulkOrderUpdateParams
|
|
94
119
|
|
|
120
|
+
CardConvertedWebhookEvent = Lithic::Models::CardConvertedWebhookEvent
|
|
121
|
+
|
|
95
122
|
CardConvertPhysicalParams = Lithic::Models::CardConvertPhysicalParams
|
|
96
123
|
|
|
124
|
+
CardCreatedWebhookEvent = Lithic::Models::CardCreatedWebhookEvent
|
|
125
|
+
|
|
97
126
|
CardCreateParams = Lithic::Models::CardCreateParams
|
|
98
127
|
|
|
99
128
|
CardEmbedParams = Lithic::Models::CardEmbedParams
|
|
@@ -110,8 +139,12 @@ module Lithic
|
|
|
110
139
|
|
|
111
140
|
CardProvisionParams = Lithic::Models::CardProvisionParams
|
|
112
141
|
|
|
142
|
+
CardReissuedWebhookEvent = Lithic::Models::CardReissuedWebhookEvent
|
|
143
|
+
|
|
113
144
|
CardReissueParams = Lithic::Models::CardReissueParams
|
|
114
145
|
|
|
146
|
+
CardRenewedWebhookEvent = Lithic::Models::CardRenewedWebhookEvent
|
|
147
|
+
|
|
115
148
|
CardRenewParams = Lithic::Models::CardRenewParams
|
|
116
149
|
|
|
117
150
|
CardRetrieveParams = Lithic::Models::CardRetrieveParams
|
|
@@ -122,8 +155,19 @@ module Lithic
|
|
|
122
155
|
|
|
123
156
|
CardSearchByPanParams = Lithic::Models::CardSearchByPanParams
|
|
124
157
|
|
|
158
|
+
CardShippedWebhookEvent = Lithic::Models::CardShippedWebhookEvent
|
|
159
|
+
|
|
125
160
|
CardSpendLimits = Lithic::Models::CardSpendLimits
|
|
126
161
|
|
|
162
|
+
CardTransactionEnhancedDataCreatedWebhookEvent =
|
|
163
|
+
Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent
|
|
164
|
+
|
|
165
|
+
CardTransactionEnhancedDataUpdatedWebhookEvent =
|
|
166
|
+
Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent
|
|
167
|
+
|
|
168
|
+
CardTransactionUpdatedWebhookEvent =
|
|
169
|
+
Lithic::Models::CardTransactionUpdatedWebhookEvent
|
|
170
|
+
|
|
127
171
|
CardUpdateParams = Lithic::Models::CardUpdateParams
|
|
128
172
|
|
|
129
173
|
CardWebProvisionParams = Lithic::Models::CardWebProvisionParams
|
|
@@ -146,6 +190,21 @@ module Lithic
|
|
|
146
190
|
|
|
147
191
|
DigitalCardArtRetrieveParams = Lithic::Models::DigitalCardArtRetrieveParams
|
|
148
192
|
|
|
193
|
+
DigitalWalletTokenizationApprovalRequestWebhookEvent =
|
|
194
|
+
Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent
|
|
195
|
+
|
|
196
|
+
DigitalWalletTokenizationResultWebhookEvent =
|
|
197
|
+
Lithic::Models::DigitalWalletTokenizationResultWebhookEvent
|
|
198
|
+
|
|
199
|
+
DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent =
|
|
200
|
+
Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent
|
|
201
|
+
|
|
202
|
+
DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent =
|
|
203
|
+
Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent
|
|
204
|
+
|
|
205
|
+
DigitalWalletTokenizationUpdatedWebhookEvent =
|
|
206
|
+
Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent
|
|
207
|
+
|
|
149
208
|
DigitalWalletTokenMetadata = Lithic::Models::DigitalWalletTokenMetadata
|
|
150
209
|
|
|
151
210
|
Dispute = Lithic::Models::Dispute
|
|
@@ -158,6 +217,9 @@ module Lithic
|
|
|
158
217
|
|
|
159
218
|
DisputeEvidence = Lithic::Models::DisputeEvidence
|
|
160
219
|
|
|
220
|
+
DisputeEvidenceUploadFailedWebhookEvent =
|
|
221
|
+
Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent
|
|
222
|
+
|
|
161
223
|
DisputeInitiateEvidenceUploadParams =
|
|
162
224
|
Lithic::Models::DisputeInitiateEvidenceUploadParams
|
|
163
225
|
|
|
@@ -173,6 +235,14 @@ module Lithic
|
|
|
173
235
|
|
|
174
236
|
DisputesV2RetrieveParams = Lithic::Models::DisputesV2RetrieveParams
|
|
175
237
|
|
|
238
|
+
DisputeTransactionCreatedWebhookEvent =
|
|
239
|
+
Lithic::Models::DisputeTransactionCreatedWebhookEvent
|
|
240
|
+
|
|
241
|
+
DisputeTransactionUpdatedWebhookEvent =
|
|
242
|
+
Lithic::Models::DisputeTransactionUpdatedWebhookEvent
|
|
243
|
+
|
|
244
|
+
DisputeUpdatedWebhookEvent = Lithic::Models::DisputeUpdatedWebhookEvent
|
|
245
|
+
|
|
176
246
|
DisputeUpdateParams = Lithic::Models::DisputeUpdateParams
|
|
177
247
|
|
|
178
248
|
DisputeV2 = Lithic::Models::DisputeV2
|
|
@@ -195,6 +265,9 @@ module Lithic
|
|
|
195
265
|
|
|
196
266
|
ExternalBankAccountAddress = Lithic::Models::ExternalBankAccountAddress
|
|
197
267
|
|
|
268
|
+
ExternalBankAccountCreatedWebhookEvent =
|
|
269
|
+
Lithic::Models::ExternalBankAccountCreatedWebhookEvent
|
|
270
|
+
|
|
198
271
|
ExternalBankAccountCreateParams =
|
|
199
272
|
Lithic::Models::ExternalBankAccountCreateParams
|
|
200
273
|
|
|
@@ -214,6 +287,9 @@ module Lithic
|
|
|
214
287
|
ExternalBankAccountUnpauseParams =
|
|
215
288
|
Lithic::Models::ExternalBankAccountUnpauseParams
|
|
216
289
|
|
|
290
|
+
ExternalBankAccountUpdatedWebhookEvent =
|
|
291
|
+
Lithic::Models::ExternalBankAccountUpdatedWebhookEvent
|
|
292
|
+
|
|
217
293
|
ExternalBankAccountUpdateParams =
|
|
218
294
|
Lithic::Models::ExternalBankAccountUpdateParams
|
|
219
295
|
|
|
@@ -221,6 +297,9 @@ module Lithic
|
|
|
221
297
|
|
|
222
298
|
ExternalPaymentCancelParams = Lithic::Models::ExternalPaymentCancelParams
|
|
223
299
|
|
|
300
|
+
ExternalPaymentCreatedWebhookEvent =
|
|
301
|
+
Lithic::Models::ExternalPaymentCreatedWebhookEvent
|
|
302
|
+
|
|
224
303
|
ExternalPaymentCreateParams = Lithic::Models::ExternalPaymentCreateParams
|
|
225
304
|
|
|
226
305
|
ExternalPaymentListParams = Lithic::Models::ExternalPaymentListParams
|
|
@@ -233,6 +312,9 @@ module Lithic
|
|
|
233
312
|
|
|
234
313
|
ExternalPaymentSettleParams = Lithic::Models::ExternalPaymentSettleParams
|
|
235
314
|
|
|
315
|
+
ExternalPaymentUpdatedWebhookEvent =
|
|
316
|
+
Lithic::Models::ExternalPaymentUpdatedWebhookEvent
|
|
317
|
+
|
|
236
318
|
ExternalResource = Lithic::Models::ExternalResource
|
|
237
319
|
|
|
238
320
|
ExternalResourceType = Lithic::Models::ExternalResourceType
|
|
@@ -241,6 +323,9 @@ module Lithic
|
|
|
241
323
|
|
|
242
324
|
FinancialAccountBalance = Lithic::Models::FinancialAccountBalance
|
|
243
325
|
|
|
326
|
+
FinancialAccountCreatedWebhookEvent =
|
|
327
|
+
Lithic::Models::FinancialAccountCreatedWebhookEvent
|
|
328
|
+
|
|
244
329
|
FinancialAccountCreateParams = Lithic::Models::FinancialAccountCreateParams
|
|
245
330
|
|
|
246
331
|
FinancialAccountListParams = Lithic::Models::FinancialAccountListParams
|
|
@@ -253,6 +338,9 @@ module Lithic
|
|
|
253
338
|
|
|
254
339
|
FinancialAccounts = Lithic::Models::FinancialAccounts
|
|
255
340
|
|
|
341
|
+
FinancialAccountUpdatedWebhookEvent =
|
|
342
|
+
Lithic::Models::FinancialAccountUpdatedWebhookEvent
|
|
343
|
+
|
|
256
344
|
FinancialAccountUpdateParams = Lithic::Models::FinancialAccountUpdateParams
|
|
257
345
|
|
|
258
346
|
FinancialAccountUpdateStatusParams =
|
|
@@ -266,6 +354,9 @@ module Lithic
|
|
|
266
354
|
|
|
267
355
|
FundingEvent = Lithic::Models::FundingEvent
|
|
268
356
|
|
|
357
|
+
FundingEventCreatedWebhookEvent =
|
|
358
|
+
Lithic::Models::FundingEventCreatedWebhookEvent
|
|
359
|
+
|
|
269
360
|
FundingEventListParams = Lithic::Models::FundingEventListParams
|
|
270
361
|
|
|
271
362
|
FundingEventRetrieveDetailsParams =
|
|
@@ -277,6 +368,12 @@ module Lithic
|
|
|
277
368
|
|
|
278
369
|
InternalTransactionAPI = Lithic::Models::InternalTransactionAPI
|
|
279
370
|
|
|
371
|
+
InternalTransactionCreatedWebhookEvent =
|
|
372
|
+
Lithic::Models::InternalTransactionCreatedWebhookEvent
|
|
373
|
+
|
|
374
|
+
InternalTransactionUpdatedWebhookEvent =
|
|
375
|
+
Lithic::Models::InternalTransactionUpdatedWebhookEvent
|
|
376
|
+
|
|
280
377
|
KYB = Lithic::Models::KYB
|
|
281
378
|
|
|
282
379
|
KYBBusinessEntity = Lithic::Models::KYBBusinessEntity
|
|
@@ -285,6 +382,13 @@ module Lithic
|
|
|
285
382
|
|
|
286
383
|
KYCExempt = Lithic::Models::KYCExempt
|
|
287
384
|
|
|
385
|
+
LoanTapeCreatedWebhookEvent = Lithic::Models::LoanTapeCreatedWebhookEvent
|
|
386
|
+
|
|
387
|
+
LoanTapeUpdatedWebhookEvent = Lithic::Models::LoanTapeUpdatedWebhookEvent
|
|
388
|
+
|
|
389
|
+
ManagementOperationCreatedWebhookEvent =
|
|
390
|
+
Lithic::Models::ManagementOperationCreatedWebhookEvent
|
|
391
|
+
|
|
288
392
|
ManagementOperationCreateParams =
|
|
289
393
|
Lithic::Models::ManagementOperationCreateParams
|
|
290
394
|
|
|
@@ -299,6 +403,9 @@ module Lithic
|
|
|
299
403
|
ManagementOperationTransaction =
|
|
300
404
|
Lithic::Models::ManagementOperationTransaction
|
|
301
405
|
|
|
406
|
+
ManagementOperationUpdatedWebhookEvent =
|
|
407
|
+
Lithic::Models::ManagementOperationUpdatedWebhookEvent
|
|
408
|
+
|
|
302
409
|
Merchant = Lithic::Models::Merchant
|
|
303
410
|
|
|
304
411
|
MessageAttempt = Lithic::Models::MessageAttempt
|
|
@@ -311,10 +418,18 @@ module Lithic
|
|
|
311
418
|
|
|
312
419
|
NetworkTotal = Lithic::Models::NetworkTotal
|
|
313
420
|
|
|
421
|
+
NetworkTotalCreatedWebhookEvent =
|
|
422
|
+
Lithic::Models::NetworkTotalCreatedWebhookEvent
|
|
423
|
+
|
|
424
|
+
NetworkTotalUpdatedWebhookEvent =
|
|
425
|
+
Lithic::Models::NetworkTotalUpdatedWebhookEvent
|
|
426
|
+
|
|
314
427
|
NonPCICard = Lithic::Models::NonPCICard
|
|
315
428
|
|
|
316
429
|
OwnerType = Lithic::Models::OwnerType
|
|
317
430
|
|
|
431
|
+
ParsedWebhookEvent = Lithic::Models::ParsedWebhookEvent
|
|
432
|
+
|
|
318
433
|
Payment = Lithic::Models::Payment
|
|
319
434
|
|
|
320
435
|
PaymentCreateParams = Lithic::Models::PaymentCreateParams
|
|
@@ -335,6 +450,12 @@ module Lithic
|
|
|
335
450
|
|
|
336
451
|
PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
|
|
337
452
|
|
|
453
|
+
PaymentTransactionCreatedWebhookEvent =
|
|
454
|
+
Lithic::Models::PaymentTransactionCreatedWebhookEvent
|
|
455
|
+
|
|
456
|
+
PaymentTransactionUpdatedWebhookEvent =
|
|
457
|
+
Lithic::Models::PaymentTransactionUpdatedWebhookEvent
|
|
458
|
+
|
|
338
459
|
ProvisionResponse = Lithic::Models::ProvisionResponse
|
|
339
460
|
|
|
340
461
|
Reports = Lithic::Models::Reports
|
|
@@ -354,26 +475,46 @@ module Lithic
|
|
|
354
475
|
|
|
355
476
|
SettlementReport = Lithic::Models::SettlementReport
|
|
356
477
|
|
|
478
|
+
SettlementReportUpdatedWebhookEvent =
|
|
479
|
+
Lithic::Models::SettlementReportUpdatedWebhookEvent
|
|
480
|
+
|
|
357
481
|
SettlementSummaryDetails = Lithic::Models::SettlementSummaryDetails
|
|
358
482
|
|
|
359
483
|
ShippingAddress = Lithic::Models::ShippingAddress
|
|
360
484
|
|
|
361
485
|
SpendLimitDuration = Lithic::Models::SpendLimitDuration
|
|
362
486
|
|
|
487
|
+
StatementsCreatedWebhookEvent = Lithic::Models::StatementsCreatedWebhookEvent
|
|
488
|
+
|
|
363
489
|
StatementTotals = Lithic::Models::StatementTotals
|
|
364
490
|
|
|
365
491
|
ThreeDS = Lithic::Models::ThreeDS
|
|
366
492
|
|
|
367
493
|
ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication
|
|
368
494
|
|
|
495
|
+
ThreeDSAuthenticationChallengeWebhookEvent =
|
|
496
|
+
Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent
|
|
497
|
+
|
|
498
|
+
ThreeDSAuthenticationCreatedWebhookEvent =
|
|
499
|
+
Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent
|
|
500
|
+
|
|
501
|
+
ThreeDSAuthenticationUpdatedWebhookEvent =
|
|
502
|
+
Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent
|
|
503
|
+
|
|
369
504
|
TokenInfo = Lithic::Models::TokenInfo
|
|
370
505
|
|
|
371
506
|
Tokenization = Lithic::Models::Tokenization
|
|
372
507
|
|
|
373
508
|
TokenizationActivateParams = Lithic::Models::TokenizationActivateParams
|
|
374
509
|
|
|
510
|
+
TokenizationApprovalRequestWebhookEvent =
|
|
511
|
+
Lithic::Models::TokenizationApprovalRequestWebhookEvent
|
|
512
|
+
|
|
375
513
|
TokenizationDeactivateParams = Lithic::Models::TokenizationDeactivateParams
|
|
376
514
|
|
|
515
|
+
TokenizationDecisioningRequestWebhookEvent =
|
|
516
|
+
Lithic::Models::TokenizationDecisioningRequestWebhookEvent
|
|
517
|
+
|
|
377
518
|
TokenizationDecisioningRetrieveSecretParams =
|
|
378
519
|
Lithic::Models::TokenizationDecisioningRetrieveSecretParams
|
|
379
520
|
|
|
@@ -389,6 +530,9 @@ module Lithic
|
|
|
389
530
|
TokenizationResendActivationCodeParams =
|
|
390
531
|
Lithic::Models::TokenizationResendActivationCodeParams
|
|
391
532
|
|
|
533
|
+
TokenizationResultWebhookEvent =
|
|
534
|
+
Lithic::Models::TokenizationResultWebhookEvent
|
|
535
|
+
|
|
392
536
|
TokenizationRetrieveParams = Lithic::Models::TokenizationRetrieveParams
|
|
393
537
|
|
|
394
538
|
TokenizationRuleResult = Lithic::Models::TokenizationRuleResult
|
|
@@ -399,11 +543,20 @@ module Lithic
|
|
|
399
543
|
|
|
400
544
|
TokenizationTfaReason = Lithic::Models::TokenizationTfaReason
|
|
401
545
|
|
|
546
|
+
TokenizationTwoFactorAuthenticationCodeSentWebhookEvent =
|
|
547
|
+
Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent
|
|
548
|
+
|
|
549
|
+
TokenizationTwoFactorAuthenticationCodeWebhookEvent =
|
|
550
|
+
Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent
|
|
551
|
+
|
|
402
552
|
TokenizationUnpauseParams = Lithic::Models::TokenizationUnpauseParams
|
|
403
553
|
|
|
404
554
|
TokenizationUpdateDigitalCardArtParams =
|
|
405
555
|
Lithic::Models::TokenizationUpdateDigitalCardArtParams
|
|
406
556
|
|
|
557
|
+
TokenizationUpdatedWebhookEvent =
|
|
558
|
+
Lithic::Models::TokenizationUpdatedWebhookEvent
|
|
559
|
+
|
|
407
560
|
Transaction = Lithic::Models::Transaction
|
|
408
561
|
|
|
409
562
|
TransactionExpireAuthorizationParams =
|
|
@@ -443,5 +596,7 @@ module Lithic
|
|
|
443
596
|
|
|
444
597
|
WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo
|
|
445
598
|
|
|
599
|
+
WebhookParsedParams = Lithic::Models::WebhookParsedParams
|
|
600
|
+
|
|
446
601
|
WirePartyDetails = Lithic::Models::WirePartyDetails
|
|
447
602
|
end
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class Webhooks
|
|
6
|
+
sig do
|
|
7
|
+
params(
|
|
8
|
+
payload: String,
|
|
9
|
+
headers: T::Hash[String, String],
|
|
10
|
+
secret: T.nilable(String)
|
|
11
|
+
).returns(
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::AccountHolderCreatedWebhookEvent,
|
|
14
|
+
Lithic::ParsedWebhookEvent::KYBPayload,
|
|
15
|
+
Lithic::ParsedWebhookEvent::KYCPayload,
|
|
16
|
+
Lithic::ParsedWebhookEvent::LegacyPayload,
|
|
17
|
+
Lithic::AccountHolderVerificationWebhookEvent,
|
|
18
|
+
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
19
|
+
Lithic::AsaRequestWebhookEvent,
|
|
20
|
+
Lithic::TokenizationDecisioningRequestWebhookEvent,
|
|
21
|
+
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
22
|
+
Lithic::BalanceUpdatedWebhookEvent,
|
|
23
|
+
Lithic::BookTransferTransactionCreatedWebhookEvent,
|
|
24
|
+
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
25
|
+
Lithic::CardCreatedWebhookEvent,
|
|
26
|
+
Lithic::CardConvertedWebhookEvent,
|
|
27
|
+
Lithic::CardRenewedWebhookEvent,
|
|
28
|
+
Lithic::CardReissuedWebhookEvent,
|
|
29
|
+
Lithic::CardShippedWebhookEvent,
|
|
30
|
+
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
31
|
+
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
32
|
+
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
33
|
+
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
34
|
+
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
35
|
+
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
36
|
+
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
37
|
+
Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
|
|
38
|
+
Lithic::DisputeUpdatedWebhookEvent,
|
|
39
|
+
Lithic::DisputeEvidenceUploadFailedWebhookEvent,
|
|
40
|
+
Lithic::ExternalBankAccountCreatedWebhookEvent,
|
|
41
|
+
Lithic::ExternalBankAccountUpdatedWebhookEvent,
|
|
42
|
+
Lithic::ExternalPaymentCreatedWebhookEvent,
|
|
43
|
+
Lithic::ExternalPaymentUpdatedWebhookEvent,
|
|
44
|
+
Lithic::FinancialAccountCreatedWebhookEvent,
|
|
45
|
+
Lithic::FinancialAccountUpdatedWebhookEvent,
|
|
46
|
+
Lithic::FundingEventCreatedWebhookEvent,
|
|
47
|
+
Lithic::LoanTapeCreatedWebhookEvent,
|
|
48
|
+
Lithic::LoanTapeUpdatedWebhookEvent,
|
|
49
|
+
Lithic::ManagementOperationCreatedWebhookEvent,
|
|
50
|
+
Lithic::ManagementOperationUpdatedWebhookEvent,
|
|
51
|
+
Lithic::InternalTransactionCreatedWebhookEvent,
|
|
52
|
+
Lithic::InternalTransactionUpdatedWebhookEvent,
|
|
53
|
+
Lithic::NetworkTotalCreatedWebhookEvent,
|
|
54
|
+
Lithic::NetworkTotalUpdatedWebhookEvent,
|
|
55
|
+
Lithic::PaymentTransactionCreatedWebhookEvent,
|
|
56
|
+
Lithic::PaymentTransactionUpdatedWebhookEvent,
|
|
57
|
+
Lithic::SettlementReportUpdatedWebhookEvent,
|
|
58
|
+
Lithic::StatementsCreatedWebhookEvent,
|
|
59
|
+
Lithic::ThreeDSAuthenticationCreatedWebhookEvent,
|
|
60
|
+
Lithic::ThreeDSAuthenticationUpdatedWebhookEvent,
|
|
61
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent,
|
|
62
|
+
Lithic::TokenizationApprovalRequestWebhookEvent,
|
|
63
|
+
Lithic::TokenizationResultWebhookEvent,
|
|
64
|
+
Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
65
|
+
Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
66
|
+
Lithic::TokenizationUpdatedWebhookEvent,
|
|
67
|
+
Lithic::ThreeDSAuthentication,
|
|
68
|
+
Lithic::DisputeTransactionCreatedWebhookEvent,
|
|
69
|
+
Lithic::DisputeTransactionUpdatedWebhookEvent
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
def parse(payload, headers:, secret: nil)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
params(payload: String).returns(
|
|
78
|
+
T.any(
|
|
79
|
+
Lithic::AccountHolderCreatedWebhookEvent,
|
|
80
|
+
Lithic::ParsedWebhookEvent::KYBPayload,
|
|
81
|
+
Lithic::ParsedWebhookEvent::KYCPayload,
|
|
82
|
+
Lithic::ParsedWebhookEvent::LegacyPayload,
|
|
83
|
+
Lithic::AccountHolderVerificationWebhookEvent,
|
|
84
|
+
Lithic::AccountHolderDocumentUpdatedWebhookEvent,
|
|
85
|
+
Lithic::AsaRequestWebhookEvent,
|
|
86
|
+
Lithic::TokenizationDecisioningRequestWebhookEvent,
|
|
87
|
+
Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
|
|
88
|
+
Lithic::BalanceUpdatedWebhookEvent,
|
|
89
|
+
Lithic::BookTransferTransactionCreatedWebhookEvent,
|
|
90
|
+
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
91
|
+
Lithic::CardCreatedWebhookEvent,
|
|
92
|
+
Lithic::CardConvertedWebhookEvent,
|
|
93
|
+
Lithic::CardRenewedWebhookEvent,
|
|
94
|
+
Lithic::CardReissuedWebhookEvent,
|
|
95
|
+
Lithic::CardShippedWebhookEvent,
|
|
96
|
+
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
97
|
+
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
98
|
+
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
99
|
+
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
100
|
+
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
101
|
+
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
102
|
+
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
103
|
+
Lithic::DigitalWalletTokenizationUpdatedWebhookEvent,
|
|
104
|
+
Lithic::DisputeUpdatedWebhookEvent,
|
|
105
|
+
Lithic::DisputeEvidenceUploadFailedWebhookEvent,
|
|
106
|
+
Lithic::ExternalBankAccountCreatedWebhookEvent,
|
|
107
|
+
Lithic::ExternalBankAccountUpdatedWebhookEvent,
|
|
108
|
+
Lithic::ExternalPaymentCreatedWebhookEvent,
|
|
109
|
+
Lithic::ExternalPaymentUpdatedWebhookEvent,
|
|
110
|
+
Lithic::FinancialAccountCreatedWebhookEvent,
|
|
111
|
+
Lithic::FinancialAccountUpdatedWebhookEvent,
|
|
112
|
+
Lithic::FundingEventCreatedWebhookEvent,
|
|
113
|
+
Lithic::LoanTapeCreatedWebhookEvent,
|
|
114
|
+
Lithic::LoanTapeUpdatedWebhookEvent,
|
|
115
|
+
Lithic::ManagementOperationCreatedWebhookEvent,
|
|
116
|
+
Lithic::ManagementOperationUpdatedWebhookEvent,
|
|
117
|
+
Lithic::InternalTransactionCreatedWebhookEvent,
|
|
118
|
+
Lithic::InternalTransactionUpdatedWebhookEvent,
|
|
119
|
+
Lithic::NetworkTotalCreatedWebhookEvent,
|
|
120
|
+
Lithic::NetworkTotalUpdatedWebhookEvent,
|
|
121
|
+
Lithic::PaymentTransactionCreatedWebhookEvent,
|
|
122
|
+
Lithic::PaymentTransactionUpdatedWebhookEvent,
|
|
123
|
+
Lithic::SettlementReportUpdatedWebhookEvent,
|
|
124
|
+
Lithic::StatementsCreatedWebhookEvent,
|
|
125
|
+
Lithic::ThreeDSAuthenticationCreatedWebhookEvent,
|
|
126
|
+
Lithic::ThreeDSAuthenticationUpdatedWebhookEvent,
|
|
127
|
+
Lithic::ThreeDSAuthenticationChallengeWebhookEvent,
|
|
128
|
+
Lithic::TokenizationApprovalRequestWebhookEvent,
|
|
129
|
+
Lithic::TokenizationResultWebhookEvent,
|
|
130
|
+
Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
131
|
+
Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
|
|
132
|
+
Lithic::TokenizationUpdatedWebhookEvent,
|
|
133
|
+
Lithic::ThreeDSAuthentication,
|
|
134
|
+
Lithic::DisputeTransactionCreatedWebhookEvent,
|
|
135
|
+
Lithic::DisputeTransactionUpdatedWebhookEvent
|
|
136
|
+
)
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
def parse_unsafe(payload)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
params(
|
|
144
|
+
payload: String,
|
|
145
|
+
headers: T::Hash[String, String],
|
|
146
|
+
secret: T.nilable(String)
|
|
147
|
+
).returns(T::Hash[Symbol, T.untyped])
|
|
148
|
+
end
|
|
149
|
+
def verify_signature(payload:, headers:, secret: nil)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# @api private
|
|
153
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
154
|
+
def self.new(client:)
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
data/sig/lithic/client.rbs
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type account_holder_created_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
event_type: :"account_holder.created",
|
|
6
|
+
token: String,
|
|
7
|
+
account_token: String,
|
|
8
|
+
created: Time,
|
|
9
|
+
required_documents: ::Array[Lithic::RequiredDocument],
|
|
10
|
+
status: Lithic::Models::AccountHolderCreatedWebhookEvent::status,
|
|
11
|
+
status_reason: ::Array[String]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class AccountHolderCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor event_type: :"account_holder.created"
|
|
16
|
+
|
|
17
|
+
attr_reader token: String?
|
|
18
|
+
|
|
19
|
+
def token=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader account_token: String?
|
|
22
|
+
|
|
23
|
+
def account_token=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader created: Time?
|
|
26
|
+
|
|
27
|
+
def created=: (Time) -> Time
|
|
28
|
+
|
|
29
|
+
attr_reader required_documents: ::Array[Lithic::RequiredDocument]?
|
|
30
|
+
|
|
31
|
+
def required_documents=: (
|
|
32
|
+
::Array[Lithic::RequiredDocument]
|
|
33
|
+
) -> ::Array[Lithic::RequiredDocument]
|
|
34
|
+
|
|
35
|
+
attr_reader status: Lithic::Models::AccountHolderCreatedWebhookEvent::status?
|
|
36
|
+
|
|
37
|
+
def status=: (
|
|
38
|
+
Lithic::Models::AccountHolderCreatedWebhookEvent::status
|
|
39
|
+
) -> Lithic::Models::AccountHolderCreatedWebhookEvent::status
|
|
40
|
+
|
|
41
|
+
attr_reader status_reason: ::Array[String]?
|
|
42
|
+
|
|
43
|
+
def status_reason=: (::Array[String]) -> ::Array[String]
|
|
44
|
+
|
|
45
|
+
def initialize: (
|
|
46
|
+
?token: String,
|
|
47
|
+
?account_token: String,
|
|
48
|
+
?created: Time,
|
|
49
|
+
?required_documents: ::Array[Lithic::RequiredDocument],
|
|
50
|
+
?status: Lithic::Models::AccountHolderCreatedWebhookEvent::status,
|
|
51
|
+
?status_reason: ::Array[String],
|
|
52
|
+
?event_type: :"account_holder.created"
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
event_type: :"account_holder.created",
|
|
57
|
+
token: String,
|
|
58
|
+
account_token: String,
|
|
59
|
+
created: Time,
|
|
60
|
+
required_documents: ::Array[Lithic::RequiredDocument],
|
|
61
|
+
status: Lithic::Models::AccountHolderCreatedWebhookEvent::status,
|
|
62
|
+
status_reason: ::Array[String]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
type status = :ACCEPTED | :PENDING_REVIEW
|
|
66
|
+
|
|
67
|
+
module Status
|
|
68
|
+
extend Lithic::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
ACCEPTED: :ACCEPTED
|
|
71
|
+
PENDING_REVIEW: :PENDING_REVIEW
|
|
72
|
+
|
|
73
|
+
def self?.values: -> ::Array[Lithic::Models::AccountHolderCreatedWebhookEvent::status]
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|