lithic 0.17.0 → 0.18.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/rule_feature.rb +291 -2
  5. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  6. data/lib/lithic/models/claim_created_webhook_event.rb +190 -0
  7. data/lib/lithic/models/claim_document_accepted_webhook_event.rb +175 -0
  8. data/lib/lithic/models/claim_document_rejected_webhook_event.rb +175 -0
  9. data/lib/lithic/models/claim_document_uploaded_webhook_event.rb +175 -0
  10. data/lib/lithic/models/claim_updated_webhook_event.rb +190 -0
  11. data/lib/lithic/models/event.rb +23 -0
  12. data/lib/lithic/models/event_list_params.rb +14 -0
  13. data/lib/lithic/models/event_subscription.rb +14 -0
  14. data/lib/lithic/models/events/subscription_create_params.rb +14 -0
  15. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +5 -0
  16. data/lib/lithic/models/events/subscription_update_params.rb +14 -0
  17. data/lib/lithic/models/parsed_webhook_event.rb +11 -1
  18. data/lib/lithic/models.rb +10 -0
  19. data/lib/lithic/resources/webhooks.rb +1 -1
  20. data/lib/lithic/version.rb +1 -1
  21. data/lib/lithic.rb +5 -0
  22. data/rbi/lithic/models/auth_rules/rule_feature.rbi +686 -2
  23. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +15 -3
  24. data/rbi/lithic/models/claim_created_webhook_event.rbi +386 -0
  25. data/rbi/lithic/models/claim_document_accepted_webhook_event.rbi +315 -0
  26. data/rbi/lithic/models/claim_document_rejected_webhook_event.rbi +315 -0
  27. data/rbi/lithic/models/claim_document_uploaded_webhook_event.rbi +315 -0
  28. data/rbi/lithic/models/claim_updated_webhook_event.rbi +386 -0
  29. data/rbi/lithic/models/event.rbi +46 -0
  30. data/rbi/lithic/models/event_list_params.rbi +34 -0
  31. data/rbi/lithic/models/event_subscription.rbi +34 -0
  32. data/rbi/lithic/models/events/subscription_create_params.rbi +34 -0
  33. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +25 -0
  34. data/rbi/lithic/models/events/subscription_update_params.rbi +34 -0
  35. data/rbi/lithic/models/parsed_webhook_event.rbi +5 -0
  36. data/rbi/lithic/models.rbi +13 -0
  37. data/rbi/lithic/resources/webhooks.rbi +5 -0
  38. data/sig/lithic/models/auth_rules/rule_feature.rbs +252 -0
  39. data/sig/lithic/models/claim_created_webhook_event.rbs +169 -0
  40. data/sig/lithic/models/claim_document_accepted_webhook_event.rbs +131 -0
  41. data/sig/lithic/models/claim_document_rejected_webhook_event.rbs +131 -0
  42. data/sig/lithic/models/claim_document_uploaded_webhook_event.rbs +131 -0
  43. data/sig/lithic/models/claim_updated_webhook_event.rbs +169 -0
  44. data/sig/lithic/models/event.rbs +10 -0
  45. data/sig/lithic/models/event_list_params.rbs +10 -0
  46. data/sig/lithic/models/event_subscription.rbs +10 -0
  47. data/sig/lithic/models/events/subscription_create_params.rbs +10 -0
  48. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +10 -0
  49. data/sig/lithic/models/events/subscription_update_params.rbs +10 -0
  50. data/sig/lithic/models/parsed_webhook_event.rbs +5 -0
  51. data/sig/lithic/models.rbs +10 -0
  52. data/sig/lithic/resources/webhooks.rbs +5 -0
  53. metadata +17 -2
@@ -0,0 +1,190 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class ClaimUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
6
+ # @!attribute token
7
+ # Unique identifier for the claim, in UUID format
8
+ #
9
+ # @return [String]
10
+ required :token, String
11
+
12
+ # @!attribute account_holder_token
13
+ # Token for the account holder that filed the claim
14
+ #
15
+ # @return [String, nil]
16
+ required :account_holder_token, String, nil?: true
17
+
18
+ # @!attribute account_token
19
+ # Token for the account associated with the claim
20
+ #
21
+ # @return [String, nil]
22
+ required :account_token, String, nil?: true
23
+
24
+ # @!attribute card_tokens
25
+ # Tokens for the cards associated with the disputed transactions
26
+ #
27
+ # @return [Array<String>]
28
+ required :card_tokens, Lithic::Internal::Type::ArrayOf[String]
29
+
30
+ # @!attribute created
31
+ # When the claim was created
32
+ #
33
+ # @return [Time]
34
+ required :created, Time
35
+
36
+ # @!attribute disputed_transactions
37
+ # Transactions included in this claim
38
+ #
39
+ # @return [Array<Lithic::Models::ClaimUpdatedWebhookEvent::DisputedTransaction>]
40
+ required :disputed_transactions,
41
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::ClaimUpdatedWebhookEvent::DisputedTransaction] }
42
+
43
+ # @!attribute event_type
44
+ # The type of event that occurred.
45
+ #
46
+ # @return [Symbol, :"claim.updated"]
47
+ required :event_type, const: :"claim.updated"
48
+
49
+ # @!attribute outstanding_requirements
50
+ # Requirements that must be fulfilled before the claim can be submitted
51
+ #
52
+ # @return [Array<Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::OutstandingRequirement>]
53
+ required :outstanding_requirements,
54
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::ClaimUpdatedWebhookEvent::OutstandingRequirement] }
55
+
56
+ # @!attribute reason
57
+ # Dispute reason code provided when creating the claim
58
+ #
59
+ # @return [Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::Reason]
60
+ required :reason, enum: -> { Lithic::ClaimUpdatedWebhookEvent::Reason }
61
+
62
+ # @!attribute status
63
+ # Current lifecycle status of the claim
64
+ #
65
+ # @return [Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::Status]
66
+ required :status, enum: -> { Lithic::ClaimUpdatedWebhookEvent::Status }
67
+
68
+ # @!attribute submitted
69
+ # When the claim was submitted. Null until the claim reaches `SUBMITTED` status
70
+ #
71
+ # @return [Time, nil]
72
+ required :submitted, Time, nil?: true
73
+
74
+ # @!attribute updated
75
+ # When the claim was last updated
76
+ #
77
+ # @return [Time]
78
+ required :updated, Time
79
+
80
+ # @!method initialize(token:, account_holder_token:, account_token:, card_tokens:, created:, disputed_transactions:, outstanding_requirements:, reason:, status:, submitted:, updated:, event_type: :"claim.updated")
81
+ # @param token [String] Unique identifier for the claim, in UUID format
82
+ #
83
+ # @param account_holder_token [String, nil] Token for the account holder that filed the claim
84
+ #
85
+ # @param account_token [String, nil] Token for the account associated with the claim
86
+ #
87
+ # @param card_tokens [Array<String>] Tokens for the cards associated with the disputed transactions
88
+ #
89
+ # @param created [Time] When the claim was created
90
+ #
91
+ # @param disputed_transactions [Array<Lithic::Models::ClaimUpdatedWebhookEvent::DisputedTransaction>] Transactions included in this claim
92
+ #
93
+ # @param outstanding_requirements [Array<Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::OutstandingRequirement>] Requirements that must be fulfilled before the claim can be submitted
94
+ #
95
+ # @param reason [Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::Reason] Dispute reason code provided when creating the claim
96
+ #
97
+ # @param status [Symbol, Lithic::Models::ClaimUpdatedWebhookEvent::Status] Current lifecycle status of the claim
98
+ #
99
+ # @param submitted [Time, nil] When the claim was submitted. Null until the claim reaches `SUBMITTED` status
100
+ #
101
+ # @param updated [Time] When the claim was last updated
102
+ #
103
+ # @param event_type [Symbol, :"claim.updated"] The type of event that occurred.
104
+
105
+ class DisputedTransaction < Lithic::Internal::Type::BaseModel
106
+ # @!attribute event_tokens
107
+ # Tokens for the specific events within the transaction being disputed. Lithic
108
+ # creates one dispute per event token
109
+ #
110
+ # @return [Array<String>]
111
+ required :event_tokens, Lithic::Internal::Type::ArrayOf[String]
112
+
113
+ # @!attribute transaction_token
114
+ # Token for the transaction being disputed, in UUID format
115
+ #
116
+ # @return [String]
117
+ required :transaction_token, String
118
+
119
+ # @!method initialize(event_tokens:, transaction_token:)
120
+ # Some parameter documentations has been truncated, see
121
+ # {Lithic::Models::ClaimUpdatedWebhookEvent::DisputedTransaction} for more
122
+ # details.
123
+ #
124
+ # A transaction included in a claim, along with the specific events being
125
+ # disputed.
126
+ #
127
+ # @param event_tokens [Array<String>] Tokens for the specific events within the transaction being disputed. Lithic cre
128
+ #
129
+ # @param transaction_token [String] Token for the transaction being disputed, in UUID format
130
+ end
131
+
132
+ module OutstandingRequirement
133
+ extend Lithic::Internal::Type::Enum
134
+
135
+ QUESTIONNAIRE = :QUESTIONNAIRE
136
+ DOCUMENTS = :DOCUMENTS
137
+
138
+ # @!method self.values
139
+ # @return [Array<Symbol>]
140
+ end
141
+
142
+ # Dispute reason code provided when creating the claim
143
+ #
144
+ # @see Lithic::Models::ClaimUpdatedWebhookEvent#reason
145
+ module Reason
146
+ extend Lithic::Internal::Type::Enum
147
+
148
+ CARD_NOT_PRESENT = :CARD_NOT_PRESENT
149
+ CARD_LOST = :CARD_LOST
150
+ CARD_STOLEN = :CARD_STOLEN
151
+ CARD_NEVER_RECEIVED = :CARD_NEVER_RECEIVED
152
+ COUNTERFEIT = :COUNTERFEIT
153
+ ACCOUNT_TAKEOVER = :ACCOUNT_TAKEOVER
154
+ PRODUCT_NOT_RECEIVED = :PRODUCT_NOT_RECEIVED
155
+ NOT_AS_DESCRIBED = :NOT_AS_DESCRIBED
156
+ CREDIT_NOT_PROCESSED = :CREDIT_NOT_PROCESSED
157
+ CANCELLED_RECURRING = :CANCELLED_RECURRING
158
+ PAID_BY_OTHER_MEANS = :PAID_BY_OTHER_MEANS
159
+ DUPLICATE_CHARGE = :DUPLICATE_CHARGE
160
+ LATE_PRESENTMENT = :LATE_PRESENTMENT
161
+ INCORRECT_TRANSACTION_CODE = :INCORRECT_TRANSACTION_CODE
162
+ NO_AUTHORIZATION = :NO_AUTHORIZATION
163
+ DECLINED = :DECLINED
164
+ INCORRECT_AMOUNT = :INCORRECT_AMOUNT
165
+ ATM_CASH_NOT_DISPENSED = :ATM_CASH_NOT_DISPENSED
166
+ ATM_DEPOSIT_WRONG_AMOUNT = :ATM_DEPOSIT_WRONG_AMOUNT
167
+ ATM_DEPOSIT_MISSING = :ATM_DEPOSIT_MISSING
168
+
169
+ # @!method self.values
170
+ # @return [Array<Symbol>]
171
+ end
172
+
173
+ # Current lifecycle status of the claim
174
+ #
175
+ # @see Lithic::Models::ClaimUpdatedWebhookEvent#status
176
+ module Status
177
+ extend Lithic::Internal::Type::Enum
178
+
179
+ INITIALIZING = :INITIALIZING
180
+ AWAITING_INFO = :AWAITING_INFO
181
+ SUBMITTED = :SUBMITTED
182
+ RESOLVED = :RESOLVED
183
+ ABANDONED = :ABANDONED
184
+
185
+ # @!method self.values
186
+ # @return [Array<Symbol>]
187
+ end
188
+ end
189
+ end
190
+ end
@@ -51,6 +51,15 @@ module Lithic
51
51
  # - card.renewed: Occurs when a card is renewed.
52
52
  # - card.shipped: Occurs when a card is shipped.
53
53
  # - card.updated: Occurs when a card is updated.
54
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
55
+ # accepted.
56
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
57
+ # rejected.
58
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
59
+ # validation.
60
+ # - claim.created: Occurs when a dispute intake claim is created.
61
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
62
+ # change or a change to its outstanding requirements.
54
63
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
55
64
  # succeeded or failed.
56
65
  #
@@ -178,6 +187,15 @@ module Lithic
178
187
  # - card.renewed: Occurs when a card is renewed.
179
188
  # - card.shipped: Occurs when a card is shipped.
180
189
  # - card.updated: Occurs when a card is updated.
190
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
191
+ # accepted.
192
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
193
+ # rejected.
194
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
195
+ # validation.
196
+ # - claim.created: Occurs when a dispute intake claim is created.
197
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
198
+ # change or a change to its outstanding requirements.
181
199
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
182
200
  # succeeded or failed.
183
201
  #
@@ -274,6 +292,11 @@ module Lithic
274
292
  CARD_RENEWED = :"card.renewed"
275
293
  CARD_SHIPPED = :"card.shipped"
276
294
  CARD_UPDATED = :"card.updated"
295
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
296
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
297
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
298
+ CLAIM_CREATED = :"claim.created"
299
+ CLAIM_UPDATED = :"claim.updated"
277
300
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
278
301
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
279
302
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -105,6 +105,15 @@ module Lithic
105
105
  # - card.renewed: Occurs when a card is renewed.
106
106
  # - card.shipped: Occurs when a card is shipped.
107
107
  # - card.updated: Occurs when a card is updated.
108
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
109
+ # accepted.
110
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
111
+ # rejected.
112
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
113
+ # validation.
114
+ # - claim.created: Occurs when a dispute intake claim is created.
115
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
116
+ # change or a change to its outstanding requirements.
108
117
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
109
118
  # succeeded or failed.
110
119
  #
@@ -199,6 +208,11 @@ module Lithic
199
208
  CARD_RENEWED = :"card.renewed"
200
209
  CARD_SHIPPED = :"card.shipped"
201
210
  CARD_UPDATED = :"card.updated"
211
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
212
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
213
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
214
+ CLAIM_CREATED = :"claim.created"
215
+ CLAIM_UPDATED = :"claim.updated"
202
216
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
203
217
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
204
218
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -78,6 +78,15 @@ module Lithic
78
78
  # - card.renewed: Occurs when a card is renewed.
79
79
  # - card.shipped: Occurs when a card is shipped.
80
80
  # - card.updated: Occurs when a card is updated.
81
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
82
+ # accepted.
83
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
84
+ # rejected.
85
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
86
+ # validation.
87
+ # - claim.created: Occurs when a dispute intake claim is created.
88
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
89
+ # change or a change to its outstanding requirements.
81
90
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
82
91
  # succeeded or failed.
83
92
  #
@@ -172,6 +181,11 @@ module Lithic
172
181
  CARD_RENEWED = :"card.renewed"
173
182
  CARD_SHIPPED = :"card.shipped"
174
183
  CARD_UPDATED = :"card.updated"
184
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
185
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
186
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
187
+ CLAIM_CREATED = :"claim.created"
188
+ CLAIM_UPDATED = :"claim.updated"
175
189
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
176
190
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
177
191
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -80,6 +80,15 @@ module Lithic
80
80
  # - card.renewed: Occurs when a card is renewed.
81
81
  # - card.shipped: Occurs when a card is shipped.
82
82
  # - card.updated: Occurs when a card is updated.
83
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
84
+ # accepted.
85
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
86
+ # rejected.
87
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
88
+ # validation.
89
+ # - claim.created: Occurs when a dispute intake claim is created.
90
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
91
+ # change or a change to its outstanding requirements.
83
92
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
84
93
  # succeeded or failed.
85
94
  #
@@ -174,6 +183,11 @@ module Lithic
174
183
  CARD_RENEWED = :"card.renewed"
175
184
  CARD_SHIPPED = :"card.shipped"
176
185
  CARD_UPDATED = :"card.updated"
186
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
187
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
188
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
189
+ CLAIM_CREATED = :"claim.created"
190
+ CLAIM_UPDATED = :"claim.updated"
177
191
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
178
192
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
179
193
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -49,6 +49,11 @@ module Lithic
49
49
  CARD_RENEWED = :"card.renewed"
50
50
  CARD_SHIPPED = :"card.shipped"
51
51
  CARD_UPDATED = :"card.updated"
52
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
53
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
54
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
55
+ CLAIM_CREATED = :"claim.created"
56
+ CLAIM_UPDATED = :"claim.updated"
52
57
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
53
58
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
54
59
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -87,6 +87,15 @@ module Lithic
87
87
  # - card.renewed: Occurs when a card is renewed.
88
88
  # - card.shipped: Occurs when a card is shipped.
89
89
  # - card.updated: Occurs when a card is updated.
90
+ # - claim_document.accepted: Occurs when a claim document passes validation and is
91
+ # accepted.
92
+ # - claim_document.rejected: Occurs when a claim document fails validation and is
93
+ # rejected.
94
+ # - claim_document.uploaded: Occurs when a claim document is uploaded and begins
95
+ # validation.
96
+ # - claim.created: Occurs when a dispute intake claim is created.
97
+ # - claim.updated: Occurs when a dispute intake claim is updated, such as a status
98
+ # change or a change to its outstanding requirements.
90
99
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
91
100
  # succeeded or failed.
92
101
  #
@@ -181,6 +190,11 @@ module Lithic
181
190
  CARD_RENEWED = :"card.renewed"
182
191
  CARD_SHIPPED = :"card.shipped"
183
192
  CARD_UPDATED = :"card.updated"
193
+ CLAIM_DOCUMENT_ACCEPTED = :"claim_document.accepted"
194
+ CLAIM_DOCUMENT_REJECTED = :"claim_document.rejected"
195
+ CLAIM_DOCUMENT_UPLOADED = :"claim_document.uploaded"
196
+ CLAIM_CREATED = :"claim.created"
197
+ CLAIM_UPDATED = :"claim.updated"
184
198
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
185
199
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
186
200
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -56,6 +56,16 @@ module Lithic
56
56
 
57
57
  variant -> { Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent }
58
58
 
59
+ variant -> { Lithic::ClaimCreatedWebhookEvent }
60
+
61
+ variant -> { Lithic::ClaimUpdatedWebhookEvent }
62
+
63
+ variant -> { Lithic::ClaimDocumentUploadedWebhookEvent }
64
+
65
+ variant -> { Lithic::ClaimDocumentAcceptedWebhookEvent }
66
+
67
+ variant -> { Lithic::ClaimDocumentRejectedWebhookEvent }
68
+
59
69
  # Payload for digital wallet tokenization approval requests. Used for both the decisioning responder request (sent to the customer's endpoint for a real-time decision) and the subsequent webhook event (sent after the decision is made). Fields like customer_tokenization_decision, tokenization_decline_reasons, tokenization_tfa_reasons, and rule_results are only populated in the webhook event, not in the initial decisioning request.
60
70
  variant -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent }
61
71
 
@@ -816,7 +826,7 @@ module Lithic
816
826
  end
817
827
 
818
828
  # @!method self.variants
819
- # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
829
+ # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
820
830
  end
821
831
  end
822
832
  end
data/lib/lithic/models.rb CHANGED
@@ -214,6 +214,16 @@ module Lithic
214
214
 
215
215
  CategoryDetails = Lithic::Models::CategoryDetails
216
216
 
217
+ ClaimCreatedWebhookEvent = Lithic::Models::ClaimCreatedWebhookEvent
218
+
219
+ ClaimDocumentAcceptedWebhookEvent = Lithic::Models::ClaimDocumentAcceptedWebhookEvent
220
+
221
+ ClaimDocumentRejectedWebhookEvent = Lithic::Models::ClaimDocumentRejectedWebhookEvent
222
+
223
+ ClaimDocumentUploadedWebhookEvent = Lithic::Models::ClaimDocumentUploadedWebhookEvent
224
+
225
+ ClaimUpdatedWebhookEvent = Lithic::Models::ClaimUpdatedWebhookEvent
226
+
217
227
  ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
218
228
 
219
229
  CreditProducts = Lithic::Models::CreditProducts
@@ -9,7 +9,7 @@ module Lithic
9
9
  # @param headers [Hash{String => String}] The webhook request headers
10
10
  # @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable.
11
11
  #
12
- # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
12
+ # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
13
13
  # @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set
14
14
  # @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed
15
15
  # @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.17.0"
4
+ VERSION = "0.18.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -219,6 +219,11 @@ require_relative "lithic/models/card_web_provision_params"
219
219
  require_relative "lithic/models/card_web_provision_response"
220
220
  require_relative "lithic/models/carrier"
221
221
  require_relative "lithic/models/category_details"
222
+ require_relative "lithic/models/claim_created_webhook_event"
223
+ require_relative "lithic/models/claim_document_accepted_webhook_event"
224
+ require_relative "lithic/models/claim_document_rejected_webhook_event"
225
+ require_relative "lithic/models/claim_document_uploaded_webhook_event"
226
+ require_relative "lithic/models/claim_updated_webhook_event"
222
227
  require_relative "lithic/models/client_api_status_params"
223
228
  require_relative "lithic/models/credit_products/extended_credit"
224
229
  require_relative "lithic/models/credit_products/extended_credit_retrieve_params"