lithic 0.18.1 → 0.20.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  10. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  11. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -0
  12. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  13. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  14. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  15. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  16. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  17. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  18. data/lib/lithic/models/book_transfer_response.rb +4 -0
  19. data/lib/lithic/models/card.rb +2 -2
  20. data/lib/lithic/models/card_provision_params.rb +10 -8
  21. data/lib/lithic/models/card_reassign_account_params.rb +29 -0
  22. data/lib/lithic/models/dispute_v2.rb +178 -130
  23. data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
  24. data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
  25. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  26. data/lib/lithic/models/event.rb +44 -12
  27. data/lib/lithic/models/event_list_params.rb +23 -6
  28. data/lib/lithic/models/event_subscription.rb +23 -6
  29. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  32. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  36. data/lib/lithic/models/financial_event.rb +8 -0
  37. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  38. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  39. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  40. data/lib/lithic/models/payment.rb +91 -6
  41. data/lib/lithic/models/payment_list_params.rb +1 -0
  42. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  43. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  44. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  45. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  46. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  47. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  48. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  49. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  50. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  51. data/lib/lithic/models.rb +10 -0
  52. data/lib/lithic/resources/blockchain_recipients.rb +57 -0
  53. data/lib/lithic/resources/card_authorizations.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +34 -2
  55. data/lib/lithic/resources/disputes_v2.rb +3 -1
  56. data/lib/lithic/resources/external_payments.rb +1 -1
  57. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  58. data/lib/lithic/resources/tokenizations.rb +1 -1
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  61. data/lib/lithic/resources/transactions.rb +4 -3
  62. data/lib/lithic/resources/webhooks.rb +1 -1
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +6 -1
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  67. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  68. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  69. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  70. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  71. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  72. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  74. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  75. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  76. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  77. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  78. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  79. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  80. data/rbi/lithic/models/card.rbi +2 -2
  81. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  82. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  83. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  84. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  85. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  86. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  87. data/rbi/lithic/models/event.rbi +70 -18
  88. data/rbi/lithic/models/event_list_params.rbi +31 -6
  89. data/rbi/lithic/models/event_subscription.rbi +31 -6
  90. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  91. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  92. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  93. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  94. data/rbi/lithic/models/financial_account.rbi +12 -0
  95. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  96. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  97. data/rbi/lithic/models/financial_event.rbi +34 -0
  98. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  99. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  100. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  101. data/rbi/lithic/models/payment.rbi +147 -4
  102. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  103. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  104. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  105. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  107. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  108. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  111. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  112. data/rbi/lithic/models.rbi +12 -0
  113. data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
  114. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  115. data/rbi/lithic/resources/cards.rbi +30 -6
  116. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  117. data/rbi/lithic/resources/external_payments.rbi +1 -1
  118. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  119. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  120. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  121. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +6 -11
  122. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  123. data/rbi/lithic/resources/transactions.rbi +8 -6
  124. data/rbi/lithic/resources/webhooks.rbi +2 -0
  125. data/sig/lithic/client.rbs +2 -0
  126. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  127. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  128. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  129. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  130. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  131. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  132. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -2
  133. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  134. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  135. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  136. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  137. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  138. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  139. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  140. data/sig/lithic/models/dispute_v2.rbs +145 -101
  141. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  142. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  143. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  144. data/sig/lithic/models/event.rbs +4 -0
  145. data/sig/lithic/models/event_list_params.rbs +4 -0
  146. data/sig/lithic/models/event_subscription.rbs +4 -0
  147. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  148. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  149. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  150. data/sig/lithic/models/financial_account.rbs +5 -0
  151. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  152. data/sig/lithic/models/financial_event.rbs +16 -0
  153. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  154. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  155. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  156. data/sig/lithic/models/payment.rbs +46 -1
  157. data/sig/lithic/models/payment_list_params.rbs +2 -1
  158. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  159. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  160. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  161. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  163. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  164. data/sig/lithic/models.rbs +10 -0
  165. data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
  166. data/sig/lithic/resources/cards.rbs +6 -0
  167. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  168. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  170. data/sig/lithic/resources/webhooks.rbs +2 -0
  171. metadata +20 -5
  172. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  173. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  174. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -228,6 +228,11 @@ module Lithic
228
228
  )
229
229
  end
230
230
 
231
+ # @deprecated
232
+ #
233
+ # **Deprecated.** Use the modern embedded card flow instead: create a session with
234
+ # `POST /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`.
235
+ #
231
236
  # Handling full card PANs and CVV codes requires that you comply with the Payment
232
237
  # Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce
233
238
  # their compliance obligations by leveraging our embedded card UI solution
@@ -296,9 +301,9 @@ module Lithic
296
301
  #
297
302
  # @param certificate [String] Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activa
298
303
  #
299
- # @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the car
304
+ # @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable dev
300
305
  #
301
- # @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the car
306
+ # @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer I
302
307
  #
303
308
  # @param digital_wallet [Symbol, Lithic::Models::CardProvisionParams::DigitalWallet] Name of digital wallet provider.
304
309
  #
@@ -322,6 +327,33 @@ module Lithic
322
327
  )
323
328
  end
324
329
 
330
+ # Reassigns a card to another account. The card must be in an `OPEN` or `PAUSED`
331
+ # state, and the destination account must be in an `ACTIVE` state.
332
+ #
333
+ # Clients must contact their Lithic account manager for access to this endpoint.
334
+ #
335
+ # @overload reassign_account(card_token, new_account_token:, request_options: {})
336
+ #
337
+ # @param card_token [String]
338
+ #
339
+ # @param new_account_token [String] Globally unique identifier for the account to associate with the card
340
+ #
341
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
342
+ #
343
+ # @return [Lithic::Models::Card]
344
+ #
345
+ # @see Lithic::Models::CardReassignAccountParams
346
+ def reassign_account(card_token, params)
347
+ parsed, options = Lithic::CardReassignAccountParams.dump_request(params)
348
+ @client.request(
349
+ method: :post,
350
+ path: ["v1/cards/%1$s/reassign_account", card_token],
351
+ body: parsed,
352
+ model: Lithic::Card,
353
+ options: options
354
+ )
355
+ end
356
+
325
357
  # Some parameter documentations has been truncated, see
326
358
  # {Lithic::Models::CardReissueParams} for more details.
327
359
  #
@@ -28,7 +28,7 @@ module Lithic
28
28
  #
29
29
  # Returns a paginated list of disputes.
30
30
  #
31
- # @overload list(account_token: nil, begin_: nil, card_token: nil, disputed_transaction_token: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
31
+ # @overload list(account_token: nil, begin_: nil, card_token: nil, claim_token: nil, disputed_transaction_token: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
32
32
  #
33
33
  # @param account_token [String] Filter by account token.
34
34
  #
@@ -36,6 +36,8 @@ module Lithic
36
36
  #
37
37
  # @param card_token [String] Filter by card token.
38
38
  #
39
+ # @param claim_token [String] Filter by the token of the claim the dispute was filed under. Returns the disput
40
+ #
39
41
  # @param disputed_transaction_token [String] Filter by the token of the transaction being disputed. Corresponds with transact
40
42
  #
41
43
  # @param end_ [Time] RFC 3339 timestamp for filtering by created date, inclusive.
@@ -75,7 +75,7 @@ module Lithic
75
75
  #
76
76
  # @param business_account_token [String]
77
77
  #
78
- # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] External Payment category to be returned.
78
+ # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] The external rail the funds moved on
79
79
  #
80
80
  # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
81
81
  #
@@ -9,7 +9,7 @@ module Lithic
9
9
  #
10
10
  # Card program's response to a 3DS Challenge Request. Challenge Request is emitted
11
11
  # as a webhook
12
- # [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge)
12
+ # [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook)
13
13
  # and your Card Program needs to be configured with Out of Band (OOB) Challenges
14
14
  # in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for
15
15
  # more information).
@@ -190,7 +190,7 @@ module Lithic
190
190
  #
191
191
  # @overload simulate(cvv:, expiration_date:, pan:, tokenization_source:, account_score: nil, device_score: nil, entity: nil, wallet_recommended_decision: nil, request_options: {})
192
192
  #
193
- # @param cvv [String] The three digit cvv for the card.
193
+ # @param cvv [String] The three or four digit CVV for the card. AMEX cards use four digit CVVs.
194
194
  #
195
195
  # @param expiration_date [String] The expiration date of the card in 'MM/YY' format.
196
196
  #
@@ -45,7 +45,7 @@ module Lithic
45
45
  #
46
46
  # @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency
47
47
  #
48
- # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome] Outcome recorded when a case is resolved:
48
+ # @param resolution [String] Resolution to record on the case. Must be one of the
49
49
  #
50
50
  # @param resolution_notes [String] Notes describing the resolution
51
51
  #
@@ -92,7 +92,7 @@ module Lithic
92
92
  #
93
93
  # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
94
94
  #
95
- # @param entity_token [String] Only return cases associated with the provided entity.
95
+ # @param entity_token [String] Only return cases associated with the provided entity. Accepts a card, account,
96
96
  #
97
97
  # @param page_size [Integer] Page size (for pagination).
98
98
  #
@@ -4,12 +4,17 @@ module Lithic
4
4
  module Resources
5
5
  class TransactionMonitoring
6
6
  class Queues
7
+ # Some parameter documentations has been truncated, see
8
+ # {Lithic::Models::TransactionMonitoring::QueueCreateParams} for more details.
9
+ #
7
10
  # Creates a new queue for grouping transaction monitoring cases.
8
11
  #
9
- # @overload create(name:, description: nil, request_options: {})
12
+ # @overload create(name:, allowed_resolutions: nil, description: nil, request_options: {})
10
13
  #
11
14
  # @param name [String] Human-readable name of the queue
12
15
  #
16
+ # @param allowed_resolutions [Array<String>, nil] Resolutions that can be recorded on cases in this queue. Omit or send `null` to
17
+ #
13
18
  # @param description [String, nil] Optional description of the queue
14
19
  #
15
20
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -48,12 +53,17 @@ module Lithic
48
53
  )
49
54
  end
50
55
 
56
+ # Some parameter documentations has been truncated, see
57
+ # {Lithic::Models::TransactionMonitoring::QueueUpdateParams} for more details.
58
+ #
51
59
  # Updates a transaction monitoring queue.
52
60
  #
53
- # @overload update(queue_token, description: nil, name: nil, request_options: {})
61
+ # @overload update(queue_token, allowed_resolutions: nil, description: nil, name: nil, request_options: {})
54
62
  #
55
63
  # @param queue_token [String] Globally unique identifier for the queue.
56
64
  #
65
+ # @param allowed_resolutions [Array<String>, nil] New list of resolutions that can be recorded on cases in this queue, or `null` t
66
+ #
57
67
  # @param description [String, nil] New description for the queue, or `null` to clear it
58
68
  #
59
69
  # @param name [String] New name for the queue
@@ -210,9 +210,10 @@ module Lithic
210
210
  # Clears an existing authorization, either debit or credit. After this event, the
211
211
  # transaction transitions from `PENDING` to `SETTLED` status.
212
212
  #
213
- # If `amount` is not set, the full amount of the transaction will be cleared.
214
- # Transactions that have already cleared, either partially or fully, cannot be
215
- # cleared again using this endpoint.
213
+ # If `amount` is not set, the full amount of the transaction will be cleared. This
214
+ # endpoint may be called multiple times against the same authorization to simulate
215
+ # a multiple-completion scenario, with each call creating a separate clearing
216
+ # event.
216
217
  #
217
218
  # @overload simulate_clearing(token:, amount: nil, request_options: {})
218
219
  #
@@ -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::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] #
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::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, 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.18.1"
4
+ VERSION = "0.20.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -167,6 +167,8 @@ require_relative "lithic/models/auth_stream_secret"
167
167
  require_relative "lithic/models/balance"
168
168
  require_relative "lithic/models/balance_list_params"
169
169
  require_relative "lithic/models/balance_updated_webhook_event"
170
+ require_relative "lithic/models/blockchain_recipient"
171
+ require_relative "lithic/models/blockchain_recipient_create_params"
170
172
  require_relative "lithic/models/book_transfer_create_params"
171
173
  require_relative "lithic/models/book_transfer_list_params"
172
174
  require_relative "lithic/models/book_transfer_retrieve_params"
@@ -197,6 +199,7 @@ require_relative "lithic/models/card_program_list_params"
197
199
  require_relative "lithic/models/card_program_retrieve_params"
198
200
  require_relative "lithic/models/card_provision_params"
199
201
  require_relative "lithic/models/card_provision_response"
202
+ require_relative "lithic/models/card_reassign_account_params"
200
203
  require_relative "lithic/models/card_reissued_webhook_event"
201
204
  require_relative "lithic/models/card_reissue_params"
202
205
  require_relative "lithic/models/card_renewed_webhook_event"
@@ -256,6 +259,8 @@ require_relative "lithic/models/dispute_transaction_updated_webhook_event"
256
259
  require_relative "lithic/models/dispute_updated_webhook_event"
257
260
  require_relative "lithic/models/dispute_update_params"
258
261
  require_relative "lithic/models/document"
262
+ require_relative "lithic/models/embed_session_generated_webhook_event"
263
+ require_relative "lithic/models/embed_viewed_webhook_event"
259
264
  require_relative "lithic/models/event"
260
265
  require_relative "lithic/models/event_list_attempts_params"
261
266
  require_relative "lithic/models/event_list_params"
@@ -484,7 +489,6 @@ require_relative "lithic/models/transaction_monitoring/queue_delete_params"
484
489
  require_relative "lithic/models/transaction_monitoring/queue_list_params"
485
490
  require_relative "lithic/models/transaction_monitoring/queue_retrieve_params"
486
491
  require_relative "lithic/models/transaction_monitoring/queue_update_params"
487
- require_relative "lithic/models/transaction_monitoring/resolution_outcome"
488
492
  require_relative "lithic/models/transaction_retrieve_params"
489
493
  require_relative "lithic/models/transaction_route_params"
490
494
  require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_params"
@@ -522,6 +526,7 @@ require_relative "lithic/resources/auth_rules/v2"
522
526
  require_relative "lithic/resources/auth_rules/v2/backtests"
523
527
  require_relative "lithic/resources/auth_stream_enrollment"
524
528
  require_relative "lithic/resources/balances"
529
+ require_relative "lithic/resources/blockchain_recipients"
525
530
  require_relative "lithic/resources/book_transfers"
526
531
  require_relative "lithic/resources/card_authorizations"
527
532
  require_relative "lithic/resources/card_bulk_orders"
@@ -82,6 +82,9 @@ module Lithic
82
82
  sig { returns(Lithic::Resources::ExternalBankAccounts) }
83
83
  attr_reader :external_bank_accounts
84
84
 
85
+ sig { returns(Lithic::Resources::BlockchainRecipients) }
86
+ attr_reader :blockchain_recipients
87
+
85
88
  sig { returns(Lithic::Resources::Payments) }
86
89
  attr_reader :payments
87
90
 
@@ -193,6 +193,11 @@ module Lithic
193
193
  :WIRE,
194
194
  Lithic::AccountActivityListParams::Category::TaggedSymbol
195
195
  )
196
+ STABLECOIN =
197
+ T.let(
198
+ :STABLECOIN,
199
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
200
+ )
196
201
  BALANCE_OR_FUNDING =
197
202
  T.let(
198
203
  :BALANCE_OR_FUNDING,
@@ -290,6 +295,11 @@ module Lithic
290
295
  :PROGRAM_FUNDING,
291
296
  Lithic::AccountActivityListParams::Category::TaggedSymbol
292
297
  )
298
+ PROGRAM_TRANSFER =
299
+ T.let(
300
+ :PROGRAM_TRANSFER,
301
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
302
+ )
293
303
 
294
304
  sig do
295
305
  override.returns(
@@ -196,6 +196,11 @@ module Lithic
196
196
  :WIRE,
197
197
  Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
198
198
  )
199
+ STABLECOIN =
200
+ T.let(
201
+ :STABLECOIN,
202
+ Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
203
+ )
199
204
  BALANCE_OR_FUNDING =
200
205
  T.let(
201
206
  :BALANCE_OR_FUNDING,
@@ -296,6 +301,11 @@ module Lithic
296
301
  :PROGRAM_FUNDING,
297
302
  Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
298
303
  )
304
+ PROGRAM_TRANSFER =
305
+ T.let(
306
+ :PROGRAM_TRANSFER,
307
+ Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
308
+ )
299
309
 
300
310
  sig do
301
311
  override.returns(
@@ -196,6 +196,11 @@ module Lithic
196
196
  :WIRE,
197
197
  Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
198
198
  )
199
+ STABLECOIN =
200
+ T.let(
201
+ :STABLECOIN,
202
+ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
203
+ )
199
204
  BALANCE_OR_FUNDING =
200
205
  T.let(
201
206
  :BALANCE_OR_FUNDING,
@@ -296,6 +301,11 @@ module Lithic
296
301
  :PROGRAM_FUNDING,
297
302
  Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
298
303
  )
304
+ PROGRAM_TRANSFER =
305
+ T.let(
306
+ :PROGRAM_TRANSFER,
307
+ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
308
+ )
299
309
 
300
310
  sig do
301
311
  override.returns(
@@ -181,6 +181,11 @@ module Lithic
181
181
  :FINANCIAL_ACCOUNT,
182
182
  Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope::TaggedSymbol
183
183
  )
184
+ PROGRAM =
185
+ T.let(
186
+ :PROGRAM,
187
+ Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope::TaggedSymbol
188
+ )
184
189
 
185
190
  sig do
186
191
  override.returns(
@@ -186,6 +186,11 @@ module Lithic
186
186
  :ACCOUNT,
187
187
  Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Scope::TaggedSymbol
188
188
  )
189
+ PROGRAM =
190
+ T.let(
191
+ :PROGRAM,
192
+ Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Scope::TaggedSymbol
193
+ )
189
194
 
190
195
  sig do
191
196
  override.returns(
@@ -654,6 +654,7 @@ module Lithic
654
654
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
655
655
  # (Telephone-Initiated Entry), and others.
656
656
  # - `MEMO`: Optional memo or description field included with the ACH transaction.
657
+ # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
657
658
  sig do
658
659
  returns(
659
660
  Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol
@@ -693,6 +694,7 @@ module Lithic
693
694
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
694
695
  # (Telephone-Initiated Entry), and others.
695
696
  # - `MEMO`: Optional memo or description field included with the ACH transaction.
697
+ # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
696
698
  attribute:,
697
699
  # The operation to apply to the attribute
698
700
  operation:,
@@ -729,6 +731,7 @@ module Lithic
729
731
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
730
732
  # (Telephone-Initiated Entry), and others.
731
733
  # - `MEMO`: Optional memo or description field included with the ACH transaction.
734
+ # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
732
735
  module Attribute
733
736
  extend Lithic::Internal::Type::Enum
734
737
 
@@ -771,6 +774,11 @@ module Lithic
771
774
  :MEMO,
772
775
  Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
773
776
  )
777
+ RECIPIENT_NAME =
778
+ T.let(
779
+ :RECIPIENT_NAME,
780
+ Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
781
+ )
774
782
 
775
783
  sig do
776
784
  override.returns(
@@ -2594,6 +2594,11 @@ module Lithic
2594
2594
  :ACCOUNT,
2595
2595
  Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2596
2596
  )
2597
+ PROGRAM =
2598
+ T.let(
2599
+ :PROGRAM,
2600
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2601
+ )
2597
2602
 
2598
2603
  sig do
2599
2604
  override.returns(
@@ -3003,6 +3008,11 @@ module Lithic
3003
3008
  :FINANCIAL_ACCOUNT,
3004
3009
  Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3005
3010
  )
3011
+ PROGRAM =
3012
+ T.let(
3013
+ :PROGRAM,
3014
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3015
+ )
3006
3016
 
3007
3017
  sig do
3008
3018
  override.returns(
@@ -44,6 +44,21 @@ module Lithic
44
44
  sig { returns(T.nilable(Integer)) }
45
45
  attr_accessor :limit_amount
46
46
 
47
+ # The maximum amount of cash spend velocity allowed in the period in minor units
48
+ # (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM
49
+ # withdrawals, cash disbursements, and purchases with cashback. Transactions
50
+ # exceeding this limit will be declined.
51
+ sig { returns(T.nilable(Integer)) }
52
+ attr_accessor :limit_cash_amount
53
+
54
+ # The number of cash spend velocity impacting transactions may not exceed this
55
+ # limit in the period. Transactions exceeding this limit will be declined. A cash
56
+ # velocity impacting transaction is an ATM withdrawal, cash disbursement, or
57
+ # purchase with cashback that has been authorized, and optionally settled, or a
58
+ # force post (a transaction that settled without prior authorization).
59
+ sig { returns(T.nilable(Integer)) }
60
+ attr_accessor :limit_cash_count
61
+
47
62
  # The number of spend velocity impacting transactions may not exceed this limit in
48
63
  # the period. Transactions exceeding this limit will be declined. A spend velocity
49
64
  # impacting transaction is a transaction that has been authorized, and optionally
@@ -65,6 +80,8 @@ module Lithic
65
80
  scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
66
81
  filters: Lithic::AuthRules::VelocityLimitFilters::OrHash,
67
82
  limit_amount: T.nilable(Integer),
83
+ limit_cash_amount: T.nilable(Integer),
84
+ limit_cash_count: T.nilable(Integer),
68
85
  limit_count: T.nilable(Integer)
69
86
  ).returns(T.attached_class)
70
87
  end
@@ -78,6 +95,17 @@ module Lithic
78
95
  # smallest unit of a currency, e.g. cents for USD). Transactions exceeding this
79
96
  # limit will be declined.
80
97
  limit_amount: nil,
98
+ # The maximum amount of cash spend velocity allowed in the period in minor units
99
+ # (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM
100
+ # withdrawals, cash disbursements, and purchases with cashback. Transactions
101
+ # exceeding this limit will be declined.
102
+ limit_cash_amount: nil,
103
+ # The number of cash spend velocity impacting transactions may not exceed this
104
+ # limit in the period. Transactions exceeding this limit will be declined. A cash
105
+ # velocity impacting transaction is an ATM withdrawal, cash disbursement, or
106
+ # purchase with cashback that has been authorized, and optionally settled, or a
107
+ # force post (a transaction that settled without prior authorization).
108
+ limit_cash_count: nil,
81
109
  # The number of spend velocity impacting transactions may not exceed this limit in
82
110
  # the period. Transactions exceeding this limit will be declined. A spend velocity
83
111
  # impacting transaction is a transaction that has been authorized, and optionally
@@ -101,6 +129,8 @@ module Lithic
101
129
  scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
102
130
  filters: Lithic::AuthRules::VelocityLimitFilters,
103
131
  limit_amount: T.nilable(Integer),
132
+ limit_cash_amount: T.nilable(Integer),
133
+ limit_cash_count: T.nilable(Integer),
104
134
  limit_count: T.nilable(Integer)
105
135
  }
106
136
  )
@@ -28,7 +28,7 @@ module Lithic
28
28
  end
29
29
 
30
30
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
31
- # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
31
+ # minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
32
32
  sig { returns(Integer) }
33
33
  attr_accessor :duration
34
34
 
@@ -40,7 +40,7 @@ module Lithic
40
40
  end
41
41
  def self.new(
42
42
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
43
- # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
43
+ # minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
44
44
  duration:,
45
45
  type: :CUSTOM
46
46
  )