lithic 0.19.0 → 0.21.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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -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 +1 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
  10. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  11. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  12. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
  13. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +3 -0
  14. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  15. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  16. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  17. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  18. data/lib/lithic/models/card.rb +2 -2
  19. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  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/event.rb +5 -0
  25. data/lib/lithic/models/event_list_params.rb +3 -0
  26. data/lib/lithic/models/event_subscription.rb +3 -0
  27. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  28. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  29. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  30. data/lib/lithic/models/external_payment.rb +6 -0
  31. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  32. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  35. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  36. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  37. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  38. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  39. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  40. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +13 -0
  41. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  42. data/lib/lithic/models/financial_event.rb +12 -0
  43. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  44. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  45. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  46. data/lib/lithic/models/payment.rb +68 -9
  47. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  48. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  49. data/lib/lithic/models/payment_list_params.rb +1 -0
  50. data/lib/lithic/models/payment_retry_params.rb +28 -1
  51. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  52. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  53. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  54. data/lib/lithic/models/transaction.rb +2 -0
  55. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  56. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  57. data/lib/lithic/models.rb +12 -0
  58. data/lib/lithic/resources/blockchain_recipients.rb +80 -0
  59. data/lib/lithic/resources/cards.rb +33 -4
  60. data/lib/lithic/resources/disputes_v2.rb +3 -1
  61. data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
  62. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  63. data/lib/lithic/resources/financial_accounts.rb +8 -0
  64. data/lib/lithic/resources/payments.rb +71 -3
  65. data/lib/lithic/resources/tokenizations.rb +1 -1
  66. data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
  67. data/lib/lithic/version.rb +1 -1
  68. data/lib/lithic.rb +17 -0
  69. data/rbi/lithic/client.rbi +3 -0
  70. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  71. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  72. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  73. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  74. data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
  75. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  76. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  77. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
  78. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +15 -0
  79. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  80. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  81. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  82. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  83. data/rbi/lithic/models/card.rbi +2 -2
  84. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  85. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  86. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  87. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  88. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  89. data/rbi/lithic/models/event.rbi +8 -0
  90. data/rbi/lithic/models/event_list_params.rbi +7 -0
  91. data/rbi/lithic/models/event_subscription.rbi +7 -0
  92. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  93. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  94. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  95. data/rbi/lithic/models/external_payment.rbi +30 -0
  96. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  97. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  98. data/rbi/lithic/models/financial_account.rbi +12 -0
  99. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  100. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  101. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  102. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  103. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  104. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  105. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +65 -0
  106. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  107. data/rbi/lithic/models/financial_event.rbi +47 -0
  108. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  109. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  110. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  111. data/rbi/lithic/models/payment.rbi +108 -10
  112. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  113. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  114. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  115. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  116. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  117. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  118. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  119. data/rbi/lithic/models/transaction.rbi +10 -0
  120. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  121. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  122. data/rbi/lithic/models.rbi +14 -0
  123. data/rbi/lithic/resources/blockchain_recipients.rbi +65 -0
  124. data/rbi/lithic/resources/cards.rbi +31 -8
  125. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  126. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
  127. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  128. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  129. data/rbi/lithic/resources/payments.rbi +68 -2
  130. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  131. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
  132. data/rbi/lithic/resources/webhooks.rbi +1 -0
  133. data/sig/lithic/client.rbs +2 -0
  134. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  135. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  136. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  137. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  138. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  139. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  140. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  141. data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
  142. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +6 -2
  143. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  144. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  145. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  146. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  147. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  148. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  149. data/sig/lithic/models/dispute_v2.rbs +145 -101
  150. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  151. data/sig/lithic/models/event.rbs +2 -0
  152. data/sig/lithic/models/event_list_params.rbs +2 -0
  153. data/sig/lithic/models/event_subscription.rbs +2 -0
  154. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  155. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  156. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  157. data/sig/lithic/models/external_payment.rbs +12 -0
  158. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  159. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  160. data/sig/lithic/models/financial_account.rbs +5 -0
  161. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  162. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  163. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  164. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  165. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  166. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  167. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +26 -0
  168. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  169. data/sig/lithic/models/financial_event.rbs +24 -0
  170. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  171. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  172. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  173. data/sig/lithic/models/payment.rbs +33 -1
  174. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  175. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  176. data/sig/lithic/models/payment_list_params.rbs +2 -1
  177. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  178. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  179. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  180. data/sig/lithic/models/transaction.rbs +4 -0
  181. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  182. data/sig/lithic/models.rbs +12 -0
  183. data/sig/lithic/resources/blockchain_recipients.rbs +23 -0
  184. data/sig/lithic/resources/cards.rbs +6 -0
  185. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  186. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
  187. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  188. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  189. data/sig/lithic/resources/payments.rbs +12 -0
  190. data/sig/lithic/resources/webhooks.rbs +1 -0
  191. metadata +53 -2
@@ -6,7 +6,14 @@ module Lithic
6
6
  # Some parameter documentations has been truncated, see
7
7
  # {Lithic::Models::PaymentCreateParams} for more details.
8
8
  #
9
- # Initiates a payment between a financial account and an external bank account.
9
+ # Initiates an ACH payment between a financial account and an external bank
10
+ # account.
11
+ #
12
+ # This endpoint originates on the ACH rail only. To send a stablecoin payout, use
13
+ # the
14
+ # [Create stablecoin payment](https://docs.lithic.com/reference/createstablecoinpayment)
15
+ # endpoint. Payments on every rail are read back through
16
+ # [List payments](https://docs.lithic.com/reference/searchpayments).
10
17
  #
11
18
  # @overload create(amount:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, type:, token: nil, hold: nil, memo: nil, user_defined_id: nil, request_options: {})
12
19
  #
@@ -112,22 +119,83 @@ module Lithic
112
119
  )
113
120
  end
114
121
 
122
+ # Some parameter documentations has been truncated, see
123
+ # {Lithic::Models::PaymentCreateStablecoinParams} for more details.
124
+ #
125
+ # Initiates a stablecoin payout from a financial account to a registered
126
+ # blockchain recipient.
127
+ #
128
+ # The recipient must have been registered with
129
+ # [Create blockchain recipient](https://docs.lithic.com/reference/createblockchainrecipient)
130
+ # and have completed address screening — only a recipient in the `ENABLED`
131
+ # verification state can receive a payout. The destination address and chain come
132
+ # from the recipient, so they are not supplied here.
133
+ #
134
+ # Only payouts are initiated through this endpoint. Stablecoin pay-ins are
135
+ # credited from on-chain deposits to a financial account's deposit address and are
136
+ # not created through the API. Funds are placed on hold when the payout is
137
+ # initiated, and a payout that fails on chain reverses that hold. A payout cannot
138
+ # be cancelled once it has been submitted on chain.
139
+ #
140
+ # This endpoint is only available to stablecoin-enabled programs. Contact your
141
+ # customer success manager to learn more.
142
+ #
143
+ # @overload create_stablecoin(amount:, blockchain_recipient_token:, financial_account_token:, type:, token: nil, hold: nil, memo: nil, request_options: {})
144
+ #
145
+ # @param amount [Integer] Payout amount in cents
146
+ #
147
+ # @param blockchain_recipient_token [String] Token of the blockchain recipient to send the payout to. The recipient must be i
148
+ #
149
+ # @param financial_account_token [String] Token of the financial account the payout is funded from
150
+ #
151
+ # @param type [Symbol, Lithic::Models::PaymentCreateStablecoinParams::Type] Direction of the payment. Stablecoin supports payouts only
152
+ #
153
+ # @param token [String] Customer-provided token that will serve as an idempotency token. This token will
154
+ #
155
+ # @param hold [Lithic::Models::PaymentCreateStablecoinParams::Hold] Optional hold to settle when this payout is initiated
156
+ #
157
+ # @param memo [String] Memo recorded on the payout. Defaults to `Stablecoin payout on <chain>` when omi
158
+ #
159
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
160
+ #
161
+ # @return [Lithic::Models::PaymentCreateStablecoinResponse]
162
+ #
163
+ # @see Lithic::Models::PaymentCreateStablecoinParams
164
+ def create_stablecoin(params)
165
+ parsed, options = Lithic::PaymentCreateStablecoinParams.dump_request(params)
166
+ @client.request(
167
+ method: :post,
168
+ path: "v1/payments/stablecoin",
169
+ body: parsed,
170
+ model: Lithic::Models::PaymentCreateStablecoinResponse,
171
+ options: options
172
+ )
173
+ end
174
+
175
+ # Some parameter documentations has been truncated, see
176
+ # {Lithic::Models::PaymentRetryParams} for more details.
177
+ #
115
178
  # Retry an origination which has been returned.
116
179
  #
117
- # @overload retry_(payment_token, request_options: {})
180
+ # @overload retry_(payment_token, method_: nil, request_options: {})
118
181
  #
119
182
  # @param payment_token [String]
183
+ #
184
+ # @param method_ [Symbol, Lithic::Models::PaymentRetryParams::Method] Settlement speed to retry the payment at. Defaults to the original payment's met
185
+ #
120
186
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
121
187
  #
122
188
  # @return [Lithic::Models::PaymentRetryResponse]
123
189
  #
124
190
  # @see Lithic::Models::PaymentRetryParams
125
191
  def retry_(payment_token, params = {})
192
+ parsed, options = Lithic::PaymentRetryParams.dump_request(params)
126
193
  @client.request(
127
194
  method: :post,
128
195
  path: ["v1/payments/%1$s/retry", payment_token],
196
+ body: parsed,
129
197
  model: Lithic::Models::PaymentRetryResponse,
130
- options: params[:request_options]
198
+ options: options
131
199
  )
132
200
  end
133
201
 
@@ -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
  #
@@ -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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.19.0"
4
+ VERSION = "0.21.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -167,6 +167,9 @@ 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"
172
+ require_relative "lithic/models/blockchain_recipient_retrieve_params"
170
173
  require_relative "lithic/models/book_transfer_create_params"
171
174
  require_relative "lithic/models/book_transfer_list_params"
172
175
  require_relative "lithic/models/book_transfer_retrieve_params"
@@ -192,11 +195,13 @@ require_relative "lithic/models/card_embed_params"
192
195
  require_relative "lithic/models/card_embed_response"
193
196
  require_relative "lithic/models/cardholder_authentication"
194
197
  require_relative "lithic/models/card_list_params"
198
+ require_relative "lithic/models/card_pin_updated_webhook_event"
195
199
  require_relative "lithic/models/card_program"
196
200
  require_relative "lithic/models/card_program_list_params"
197
201
  require_relative "lithic/models/card_program_retrieve_params"
198
202
  require_relative "lithic/models/card_provision_params"
199
203
  require_relative "lithic/models/card_provision_response"
204
+ require_relative "lithic/models/card_reassign_account_params"
200
205
  require_relative "lithic/models/card_reissued_webhook_event"
201
206
  require_relative "lithic/models/card_reissue_params"
202
207
  require_relative "lithic/models/card_renewed_webhook_event"
@@ -319,9 +324,13 @@ require_relative "lithic/models/financial_accounts/credit_configuration_retrieve
319
324
  require_relative "lithic/models/financial_accounts/credit_configuration_update_params"
320
325
  require_relative "lithic/models/financial_accounts/financial_account_credit_config"
321
326
  require_relative "lithic/models/financial_accounts/loan_tape_configuration"
327
+ require_relative "lithic/models/financial_accounts/open_to_buy"
322
328
  require_relative "lithic/models/financial_accounts/statements"
323
329
  require_relative "lithic/models/financial_accounts/financial_transaction_list_params"
324
330
  require_relative "lithic/models/financial_accounts/financial_transaction_retrieve_params"
331
+ require_relative "lithic/models/financial_accounts/installment_plan"
332
+ require_relative "lithic/models/financial_accounts/installment_plan_list_params"
333
+ require_relative "lithic/models/financial_accounts/installment_plan_retrieve_params"
325
334
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_create_params"
326
335
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_delete_params"
327
336
  require_relative "lithic/models/financial_accounts/interest_tier_schedule_list_params"
@@ -331,10 +340,13 @@ require_relative "lithic/models/financial_accounts/loan_tape_configuration_retri
331
340
  require_relative "lithic/models/financial_accounts/loan_tape_list_params"
332
341
  require_relative "lithic/models/financial_accounts/loan_tape_rebuild_configuration"
333
342
  require_relative "lithic/models/financial_accounts/loan_tape_retrieve_params"
343
+ require_relative "lithic/models/financial_accounts/open_to_buy_retrieve_params"
344
+ require_relative "lithic/models/financial_accounts/open_to_buy_summary"
334
345
  require_relative "lithic/models/financial_accounts/statement_list_params"
335
346
  require_relative "lithic/models/financial_accounts/statement_retrieve_params"
336
347
  require_relative "lithic/models/financial_accounts/statements/line_item_list_params"
337
348
  require_relative "lithic/models/financial_accounts/statements/statement_line_items"
349
+ require_relative "lithic/models/financial_accounts/transaction_category_balances"
338
350
  require_relative "lithic/models/financial_account_updated_webhook_event"
339
351
  require_relative "lithic/models/financial_account_update_params"
340
352
  require_relative "lithic/models/financial_account_update_status_params"
@@ -380,6 +392,8 @@ require_relative "lithic/models/owner_type"
380
392
  require_relative "lithic/models/parsed_webhook_event"
381
393
  require_relative "lithic/models/payment_create_params"
382
394
  require_relative "lithic/models/payment_create_response"
395
+ require_relative "lithic/models/payment_create_stablecoin_params"
396
+ require_relative "lithic/models/payment_create_stablecoin_response"
383
397
  require_relative "lithic/models/payment_list_params"
384
398
  require_relative "lithic/models/payment_retrieve_params"
385
399
  require_relative "lithic/models/payment_retry_params"
@@ -523,6 +537,7 @@ require_relative "lithic/resources/auth_rules/v2"
523
537
  require_relative "lithic/resources/auth_rules/v2/backtests"
524
538
  require_relative "lithic/resources/auth_stream_enrollment"
525
539
  require_relative "lithic/resources/balances"
540
+ require_relative "lithic/resources/blockchain_recipients"
526
541
  require_relative "lithic/resources/book_transfers"
527
542
  require_relative "lithic/resources/card_authorizations"
528
543
  require_relative "lithic/resources/card_bulk_orders"
@@ -546,9 +561,11 @@ require_relative "lithic/resources/financial_accounts"
546
561
  require_relative "lithic/resources/financial_accounts/balances"
547
562
  require_relative "lithic/resources/financial_accounts/credit_configuration"
548
563
  require_relative "lithic/resources/financial_accounts/financial_transactions"
564
+ require_relative "lithic/resources/financial_accounts/installment_plans"
549
565
  require_relative "lithic/resources/financial_accounts/interest_tier_schedule"
550
566
  require_relative "lithic/resources/financial_accounts/loan_tape_configuration"
551
567
  require_relative "lithic/resources/financial_accounts/loan_tapes"
568
+ require_relative "lithic/resources/financial_accounts/open_to_buy"
552
569
  require_relative "lithic/resources/financial_accounts/statements"
553
570
  require_relative "lithic/resources/financial_accounts/statements/line_items"
554
571
  require_relative "lithic/resources/fraud"
@@ -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
 
@@ -250,6 +250,11 @@ module Lithic
250
250
  :EXTERNAL_RTP,
251
251
  Lithic::AccountActivityListParams::Category::TaggedSymbol
252
252
  )
253
+ EXTERNAL_STABLECOIN =
254
+ T.let(
255
+ :EXTERNAL_STABLECOIN,
256
+ Lithic::AccountActivityListParams::Category::TaggedSymbol
257
+ )
253
258
  EXTERNAL_TRANSFER =
254
259
  T.let(
255
260
  :EXTERNAL_TRANSFER,
@@ -256,6 +256,11 @@ module Lithic
256
256
  :EXTERNAL_RTP,
257
257
  Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
258
258
  )
259
+ EXTERNAL_STABLECOIN =
260
+ T.let(
261
+ :EXTERNAL_STABLECOIN,
262
+ Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
263
+ )
259
264
  EXTERNAL_TRANSFER =
260
265
  T.let(
261
266
  :EXTERNAL_TRANSFER,
@@ -256,6 +256,11 @@ module Lithic
256
256
  :EXTERNAL_RTP,
257
257
  Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
258
258
  )
259
+ EXTERNAL_STABLECOIN =
260
+ T.let(
261
+ :EXTERNAL_STABLECOIN,
262
+ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
263
+ )
259
264
  EXTERNAL_TRANSFER =
260
265
  T.let(
261
266
  :EXTERNAL_TRANSFER,
@@ -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(
@@ -85,6 +85,8 @@ module Lithic
85
85
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
86
86
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
87
87
  # ACH_PAYMENT_UPDATE event stream.
88
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
89
+ # are read-only; `OTHER` cannot be used when creating a rule.
88
90
  sig { returns(Lithic::AuthRules::AuthRule::Type::TaggedSymbol) }
89
91
  attr_accessor :type
90
92
 
@@ -167,6 +169,8 @@ module Lithic
167
169
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
168
170
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
169
171
  # ACH_PAYMENT_UPDATE event stream.
172
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
173
+ # are read-only; `OTHER` cannot be used when creating a rule.
170
174
  type:,
171
175
  # Account tokens to which the Auth Rule does not apply.
172
176
  excluded_account_tokens: nil,
@@ -517,6 +521,8 @@ module Lithic
517
521
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
518
522
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
519
523
  # ACH_PAYMENT_UPDATE event stream.
524
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
525
+ # are read-only; `OTHER` cannot be used when creating a rule.
520
526
  module Type
521
527
  extend Lithic::Internal::Type::Enum
522
528
 
@@ -549,6 +555,7 @@ module Lithic
549
555
  :TYPESCRIPT_CODE,
550
556
  Lithic::AuthRules::AuthRule::Type::TaggedSymbol
551
557
  )
558
+ OTHER = T.let(:OTHER, Lithic::AuthRules::AuthRule::Type::TaggedSymbol)
552
559
 
553
560
  sig do
554
561
  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(
@@ -453,6 +453,11 @@ module Lithic
453
453
  :REVERSAL_UNMATCHED,
454
454
  Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol
455
455
  )
456
+ SCA_REQUIRED =
457
+ T.let(
458
+ :SCA_REQUIRED,
459
+ Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol
460
+ )
456
461
  SECURITY_VIOLATION =
457
462
  T.let(
458
463
  :SECURITY_VIOLATION,
@@ -109,6 +109,8 @@ module Lithic
109
109
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
110
110
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
111
111
  # ACH_PAYMENT_UPDATE event stream.
112
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
113
+ # are read-only; `OTHER` cannot be used when creating a rule.
112
114
  sig do
113
115
  returns(
114
116
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol
@@ -187,6 +189,8 @@ module Lithic
187
189
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
188
190
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
189
191
  # ACH_PAYMENT_UPDATE event stream.
192
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
193
+ # are read-only; `OTHER` cannot be used when creating a rule.
190
194
  type:,
191
195
  # Account tokens to which the Auth Rule applies.
192
196
  account_tokens: nil,
@@ -275,6 +279,8 @@ module Lithic
275
279
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
276
280
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
277
281
  # ACH_PAYMENT_UPDATE event stream.
282
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
283
+ # are read-only; `OTHER` cannot be used when creating a rule.
278
284
  module Type
279
285
  extend Lithic::Internal::Type::Enum
280
286
 
@@ -312,6 +318,11 @@ module Lithic
312
318
  :TYPESCRIPT_CODE,
313
319
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
314
320
  )
321
+ OTHER =
322
+ T.let(
323
+ :OTHER,
324
+ Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
325
+ )
315
326
 
316
327
  sig do
317
328
  override.returns(
@@ -373,6 +384,8 @@ module Lithic
373
384
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
374
385
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
375
386
  # ACH_PAYMENT_UPDATE event stream.
387
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
388
+ # are read-only; `OTHER` cannot be used when creating a rule.
376
389
  sig do
377
390
  returns(
378
391
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol
@@ -438,6 +451,8 @@ module Lithic
438
451
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
439
452
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
440
453
  # ACH_PAYMENT_UPDATE event stream.
454
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
455
+ # are read-only; `OTHER` cannot be used when creating a rule.
441
456
  type:,
442
457
  # The event stream during which the rule will be evaluated.
443
458
  event_stream: nil,
@@ -521,6 +536,8 @@ module Lithic
521
536
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
522
537
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
523
538
  # ACH_PAYMENT_UPDATE event stream.
539
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
540
+ # are read-only; `OTHER` cannot be used when creating a rule.
524
541
  module Type
525
542
  extend Lithic::Internal::Type::Enum
526
543
 
@@ -558,6 +575,11 @@ module Lithic
558
575
  :TYPESCRIPT_CODE,
559
576
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
560
577
  )
578
+ OTHER =
579
+ T.let(
580
+ :OTHER,
581
+ Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
582
+ )
561
583
 
562
584
  sig do
563
585
  override.returns(
@@ -619,6 +641,8 @@ module Lithic
619
641
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
620
642
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
621
643
  # ACH_PAYMENT_UPDATE event stream.
644
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
645
+ # are read-only; `OTHER` cannot be used when creating a rule.
622
646
  sig do
623
647
  returns(
624
648
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol
@@ -710,6 +734,8 @@ module Lithic
710
734
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
711
735
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
712
736
  # ACH_PAYMENT_UPDATE event stream.
737
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
738
+ # are read-only; `OTHER` cannot be used when creating a rule.
713
739
  type:,
714
740
  # The event stream during which the rule will be evaluated.
715
741
  event_stream: nil,
@@ -802,6 +828,8 @@ module Lithic
802
828
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
803
829
  # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
804
830
  # ACH_PAYMENT_UPDATE event stream.
831
+ # - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
832
+ # are read-only; `OTHER` cannot be used when creating a rule.
805
833
  module Type
806
834
  extend Lithic::Internal::Type::Enum
807
835
 
@@ -839,6 +867,11 @@ module Lithic
839
867
  :TYPESCRIPT_CODE,
840
868
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
841
869
  )
870
+ OTHER =
871
+ T.let(
872
+ :OTHER,
873
+ Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
874
+ )
842
875
 
843
876
  sig do
844
877
  override.returns(
@@ -455,6 +455,11 @@ module Lithic
455
455
  :REVERSAL_UNMATCHED,
456
456
  Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol
457
457
  )
458
+ SCA_REQUIRED =
459
+ T.let(
460
+ :SCA_REQUIRED,
461
+ Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Action::DeclineActionAuthorization::Code::TaggedSymbol
462
+ )
458
463
  SECURITY_VIOLATION =
459
464
  T.let(
460
465
  :SECURITY_VIOLATION,
@@ -2594,6 +2599,11 @@ module Lithic
2594
2599
  :ACCOUNT,
2595
2600
  Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2596
2601
  )
2602
+ PROGRAM =
2603
+ T.let(
2604
+ :PROGRAM,
2605
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2606
+ )
2597
2607
 
2598
2608
  sig do
2599
2609
  override.returns(
@@ -3003,6 +3013,11 @@ module Lithic
3003
3013
  :FINANCIAL_ACCOUNT,
3004
3014
  Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3005
3015
  )
3016
+ PROGRAM =
3017
+ T.let(
3018
+ :PROGRAM,
3019
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3020
+ )
3006
3021
 
3007
3022
  sig do
3008
3023
  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
  )