lithic 0.20.0 → 0.22.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 (266) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/internal/type/union.rb +21 -7
  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/account_holder_create_params.rb +4 -2
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  10. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  11. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  13. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  14. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  15. data/lib/lithic/models/address.rb +33 -19
  16. data/lib/lithic/models/address_update.rb +27 -11
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
  18. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  19. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  20. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  21. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  22. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  23. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  24. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  25. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  26. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  27. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  28. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  29. data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -45
  30. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  32. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
  33. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  34. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  35. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  36. data/lib/lithic/models/card_authorization.rb +11 -1
  37. data/lib/lithic/models/card_create_params.rb +11 -1
  38. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  39. data/lib/lithic/models/card_update_params.rb +12 -1
  40. data/lib/lithic/models/event.rb +5 -0
  41. data/lib/lithic/models/event_list_params.rb +3 -0
  42. data/lib/lithic/models/event_subscription.rb +3 -0
  43. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  44. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  45. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  46. data/lib/lithic/models/external_payment.rb +6 -0
  47. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  48. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  50. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  51. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  52. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  53. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  54. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  55. data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
  56. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  57. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  58. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  59. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  60. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  61. data/lib/lithic/models/financial_event.rb +9 -0
  62. data/lib/lithic/models/kyb.rb +4 -2
  63. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  64. data/lib/lithic/models/kyc.rb +2 -1
  65. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  66. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  67. data/lib/lithic/models/non_pci_card.rb +11 -1
  68. data/lib/lithic/models/parsed_webhook_event.rb +123 -67
  69. data/lib/lithic/models/payment.rb +3 -1
  70. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  71. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  72. data/lib/lithic/models/payment_list_params.rb +1 -0
  73. data/lib/lithic/models/payment_retry_params.rb +28 -1
  74. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  75. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  76. data/lib/lithic/models/transaction.rb +4 -1
  77. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  78. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  79. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  80. data/lib/lithic/models.rb +6 -0
  81. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  82. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  83. data/lib/lithic/resources/blockchain_recipients.rb +23 -0
  84. data/lib/lithic/resources/cards.rb +10 -4
  85. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  86. data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -0
  87. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  88. data/lib/lithic/resources/financial_accounts.rb +8 -0
  89. data/lib/lithic/resources/payments.rb +71 -3
  90. data/lib/lithic/resources/transactions.rb +17 -4
  91. data/lib/lithic/resources/webhooks.rb +18 -0
  92. data/lib/lithic/version.rb +1 -1
  93. data/lib/lithic.rb +21 -1
  94. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  95. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  96. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  97. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  98. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  99. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  100. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  101. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  102. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  103. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  104. data/rbi/lithic/models/address.rbi +57 -29
  105. data/rbi/lithic/models/address_update.rbi +50 -24
  106. data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
  107. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  108. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  109. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  110. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  111. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  112. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  113. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  114. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  115. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  116. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  117. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  118. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
  119. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  120. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  121. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
  122. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  123. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  124. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  125. data/rbi/lithic/models/card_authorization.rbi +12 -0
  126. data/rbi/lithic/models/card_create_params.rbi +15 -0
  127. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  128. data/rbi/lithic/models/card_update_params.rbi +17 -0
  129. data/rbi/lithic/models/event.rbi +8 -0
  130. data/rbi/lithic/models/event_list_params.rbi +7 -0
  131. data/rbi/lithic/models/event_subscription.rbi +7 -0
  132. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  133. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  134. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  135. data/rbi/lithic/models/external_payment.rbi +30 -0
  136. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  137. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  138. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  139. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  140. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  141. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  142. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  143. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  144. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
  145. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  146. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  147. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  148. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  149. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  150. data/rbi/lithic/models/financial_event.rbi +35 -0
  151. data/rbi/lithic/models/kyb.rbi +8 -4
  152. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  153. data/rbi/lithic/models/kyc.rbi +4 -2
  154. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  155. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  156. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  157. data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
  158. data/rbi/lithic/models/payment.rbi +6 -2
  159. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  160. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  161. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  162. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  163. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  164. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  165. data/rbi/lithic/models/transaction.rbi +14 -2
  166. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  167. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  168. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  169. data/rbi/lithic/models.rbi +7 -0
  170. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  171. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  172. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  173. data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
  174. data/rbi/lithic/resources/cards.rbi +15 -2
  175. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  176. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -0
  177. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  178. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  179. data/rbi/lithic/resources/payments.rbi +68 -2
  180. data/rbi/lithic/resources/transactions.rbi +31 -2
  181. data/rbi/lithic/resources/webhooks.rbi +1 -0
  182. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  183. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  184. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  185. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  186. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  187. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  188. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  189. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  190. data/sig/lithic/models/address.rbs +13 -13
  191. data/sig/lithic/models/address_update.rbs +8 -12
  192. data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
  193. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  194. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  195. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  196. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  197. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  198. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  199. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  200. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  201. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  202. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  203. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  204. data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
  205. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  206. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
  207. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  208. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  209. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  210. data/sig/lithic/models/card_authorization.rbs +5 -0
  211. data/sig/lithic/models/card_create_params.rbs +7 -0
  212. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  213. data/sig/lithic/models/card_update_params.rbs +8 -1
  214. data/sig/lithic/models/event.rbs +2 -0
  215. data/sig/lithic/models/event_list_params.rbs +2 -0
  216. data/sig/lithic/models/event_subscription.rbs +2 -0
  217. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  218. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  219. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  220. data/sig/lithic/models/external_payment.rbs +12 -0
  221. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  222. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  223. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  224. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  225. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  226. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  227. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  228. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  229. data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
  230. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  231. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  232. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  233. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  234. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  235. data/sig/lithic/models/financial_event.rbs +18 -0
  236. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  237. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  238. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  239. data/sig/lithic/models/non_pci_card.rbs +5 -0
  240. data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
  241. data/sig/lithic/models/payment.rbs +2 -0
  242. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  243. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  244. data/sig/lithic/models/payment_list_params.rbs +2 -1
  245. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  246. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  247. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  248. data/sig/lithic/models/transaction.rbs +4 -0
  249. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  250. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  251. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  252. data/sig/lithic/models.rbs +6 -0
  253. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  254. data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
  255. data/sig/lithic/resources/cards.rbs +2 -0
  256. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  257. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -0
  258. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  259. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  260. data/sig/lithic/resources/payments.rbs +12 -0
  261. data/sig/lithic/resources/transactions.rbs +5 -0
  262. data/sig/lithic/resources/webhooks.rbs +1 -0
  263. metadata +65 -5
  264. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  265. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  266. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -28,7 +28,8 @@ module Lithic
28
28
  # Globally unique identifier for the account holder.
29
29
  account_holder_token,
30
30
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
31
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
31
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
32
+ # and KYC workflows.
32
33
  address:,
33
34
  # Individual's date of birth, as an RFC 3339 date.
34
35
  dob:,
@@ -22,14 +22,14 @@ module Lithic
22
22
  # `/v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}`
23
23
  # endpoint.
24
24
  #
25
- # Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
26
- # `CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
27
- # not supported. In specific cases (i.e. where Lithic has pre-calculated the
28
- # requested velocity metrics for historical transactions), a backtest may be
29
- # feasible. However, such cases are uncommon and customers should not anticipate
30
- # support for velocity backtests under most configurations. If a historical
31
- # transaction does not feature the required inputs to evaluate the rule, then it
32
- # will not be included in the final backtest report.
25
+ # Lithic currently supports backtesting for `CONDITIONAL_ACTION` rules.
26
+ # Backtesting for `VELOCITY_LIMIT` rules is generally not supported. In specific
27
+ # cases (i.e. where Lithic has pre-calculated the requested velocity metrics for
28
+ # historical transactions), a backtest may be feasible. However, such cases are
29
+ # uncommon and customers should not anticipate support for velocity backtests
30
+ # under most configurations. If a historical transaction does not feature the
31
+ # required inputs to evaluate the rule, then it will not be included in the final
32
+ # backtest report.
33
33
  sig do
34
34
  params(
35
35
  auth_rule_token: String,
@@ -12,6 +12,7 @@ module Lithic
12
12
  params(
13
13
  body:
14
14
  T.any(
15
+ Lithic::AuthRules::V2CreateParams::Body::Rule::OrHash,
15
16
  Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash,
16
17
  Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash,
17
18
  Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash
@@ -19,7 +20,11 @@ module Lithic
19
20
  request_options: Lithic::RequestOptions::OrHash
20
21
  ).returns(Lithic::AuthRules::AuthRule)
21
22
  end
22
- def create(body:, request_options: {})
23
+ def create(
24
+ # Deprecated: Use `entities` instead. Cannot be combined with `entities`.
25
+ body:,
26
+ request_options: {}
27
+ )
23
28
  end
24
29
 
25
30
  # Fetches a V2 Auth rule by its token
@@ -34,14 +39,15 @@ module Lithic
34
39
 
35
40
  # Updates a V2 Auth rule's properties
36
41
  #
37
- # If `account_tokens`, `card_tokens`, `program_level`, `excluded_card_tokens`,
38
- # `excluded_account_tokens`, or `excluded_business_account_tokens` is provided,
39
- # this will replace existing associations with the provided list of entities.
42
+ # If `entities` is provided, this will replace the rule's existing entities with
43
+ # the provided `include` and `exclude` lists. To change entities incrementally,
44
+ # use `PATCH /v2/auth_rules/{auth_rule_token}/entities` instead.
40
45
  sig do
41
46
  params(
42
47
  auth_rule_token: String,
43
48
  body:
44
49
  T.any(
50
+ Lithic::AuthRules::V2UpdateParams::Body::Rule::OrHash,
45
51
  Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::OrHash,
46
52
  Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::OrHash,
47
53
  Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::OrHash
@@ -49,7 +55,13 @@ module Lithic
49
55
  request_options: Lithic::RequestOptions::OrHash
50
56
  ).returns(Lithic::AuthRules::AuthRule)
51
57
  end
52
- def update(auth_rule_token, body:, request_options: {})
58
+ def update(
59
+ auth_rule_token,
60
+ # Replaces the rule's existing entities with the provided `include` and `exclude`
61
+ # lists. A missing list is treated as empty, so `include` must always be provided.
62
+ body:,
63
+ request_options: {}
64
+ )
53
65
  end
54
66
 
55
67
  # Lists V2 Auth rules
@@ -86,7 +98,8 @@ module Lithic
86
98
  event_streams: nil,
87
99
  # Page size (for pagination).
88
100
  page_size: nil,
89
- # Only return Auth Rules that are bound to the provided scope.
101
+ # Only return Auth Rules that are bound to the provided scope. When no token is
102
+ # provided, `CARD` also returns Auth Rules that include a `CARD_TAG` entity.
90
103
  scope: nil,
91
104
  # A cursor representing an item's token after which a page of results should
92
105
  # begin. Used to retrieve the next page of results after this item.
@@ -115,7 +128,6 @@ module Lithic
115
128
  parameters:
116
129
  T.nilable(
117
130
  T.any(
118
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
119
131
  Lithic::AuthRules::VelocityLimitParams::OrHash,
120
132
  Lithic::AuthRules::MerchantLockParameters::OrHash,
121
133
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
@@ -218,7 +230,7 @@ module Lithic
218
230
  # - VelocityLimit Rules calculates the current Velocity Feature data. This
219
231
  # requires a `card_token` or `account_token` matching what the rule is Scoped
220
232
  # to.
221
- # - ConditionalBlock Rules calculates the CARD*TRANSACTION_COUNT*\* attributes on
233
+ # - ConditionalAction Rules calculates the CARD*TRANSACTION_COUNT*\* attributes on
222
234
  # the rule. This requires a `card_token`
223
235
  sig do
224
236
  params(
@@ -267,6 +279,29 @@ module Lithic
267
279
  )
268
280
  end
269
281
 
282
+ # Adds entities to and removes entities from a V2 Auth rule's `include` and
283
+ # `exclude` lists
284
+ #
285
+ # To replace all of the rule's entities at once, provide `entities` to
286
+ # `PATCH /v2/auth_rules/{auth_rule_token}` instead.
287
+ sig do
288
+ params(
289
+ auth_rule_token: String,
290
+ add: Lithic::AuthRules::AuthRuleEntities::OrHash,
291
+ remove: Lithic::AuthRules::AuthRuleEntities::OrHash,
292
+ request_options: Lithic::RequestOptions::OrHash
293
+ ).returns(Lithic::AuthRules::AuthRule)
294
+ end
295
+ def update_entities(
296
+ auth_rule_token,
297
+ # Entities to add to the rule's `include` and `exclude` lists
298
+ add: nil,
299
+ # Entities to remove from the rule's `include` and `exclude` lists
300
+ remove: nil,
301
+ request_options: {}
302
+ )
303
+ end
304
+
270
305
  # @api private
271
306
  sig { params(client: Lithic::Client).returns(T.attached_class) }
272
307
  def self.new(client:)
@@ -42,6 +42,20 @@ module Lithic
42
42
  )
43
43
  end
44
44
 
45
+ # Get a blockchain recipient by token
46
+ #
47
+ # Use this to poll the `verification_state` after registering an address: a
48
+ # recipient cannot receive a payout until screening completes and moves it out of
49
+ # `PENDING`
50
+ sig do
51
+ params(
52
+ blockchain_recipient_token: String,
53
+ request_options: Lithic::RequestOptions::OrHash
54
+ ).returns(Lithic::BlockchainRecipient)
55
+ end
56
+ def retrieve(blockchain_recipient_token, request_options: {})
57
+ end
58
+
45
59
  # @api private
46
60
  sig { params(client: Lithic::Client).returns(T.attached_class) }
47
61
  def self.new(client:)
@@ -34,6 +34,7 @@ module Lithic
34
34
  spend_limit: Integer,
35
35
  spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
36
36
  state: Lithic::CardCreateParams::State::OrSymbol,
37
+ tags: T::Hash[Symbol, String],
37
38
  idempotency_key: String,
38
39
  request_options: Lithic::RequestOptions::OrHash
39
40
  ).returns(Lithic::Card)
@@ -184,6 +185,10 @@ module Lithic
184
185
  # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
185
186
  # time.
186
187
  state: nil,
188
+ # Body param: Key-value pairs to tag the card with. A replacement card does not
189
+ # inherit tags from the card it replaces. A card can have at most 50 tags, with
190
+ # keys up to 40 characters and values up to 500 characters
191
+ tags: nil,
187
192
  # Header param: Idempotency key for the request
188
193
  idempotency_key: nil,
189
194
  request_options: {}
@@ -218,6 +223,7 @@ module Lithic
218
223
  spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
219
224
  state: Lithic::CardUpdateParams::State::OrSymbol,
220
225
  substatus: Lithic::CardUpdateParams::Substatus::OrSymbol,
226
+ tags: T::Hash[Symbol, T.nilable(String)],
221
227
  request_options: Lithic::RequestOptions::OrHash
222
228
  ).returns(Lithic::Card)
223
229
  end
@@ -298,6 +304,11 @@ module Lithic
298
304
  # - `OTHER` - The reason for the status does not fall into any of the above
299
305
  # categories. A comment should be provided to specify the reason.
300
306
  substatus: nil,
307
+ # Key-value pairs to merge into the card's tags. Supplied keys are added or
308
+ # overwritten, a key with a `null` value is removed, and omitted keys remain
309
+ # unchanged. A card can have at most 50 tags, with keys up to 40 characters and
310
+ # values up to 500 characters
311
+ tags: nil,
301
312
  request_options: {}
302
313
  )
303
314
  end
@@ -512,7 +523,8 @@ module Lithic
512
523
  # physically damaged). The PAN, expiry, and CVC2 will remain the same and the
513
524
  # original card can continue to be used until the new card is activated. Only
514
525
  # applies to cards of type `PHYSICAL`. A card can be reissued or renewed a total
515
- # of 8 times.
526
+ # of 8 times. Returns `409` if the card is still ongoing manufacturing when using
527
+ # Thales as a manufacturer.
516
528
  sig do
517
529
  params(
518
530
  card_token: String,
@@ -562,7 +574,8 @@ module Lithic
562
574
  # `PHYSICAL` card can be reissued or renewed a total of 8 times. For `VIRTUAL`,
563
575
  # the card will retain the same card token and PAN and receive an updated expiry
564
576
  # and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
565
- # are only relevant for renewing `PHYSICAL` cards.
577
+ # are only relevant for renewing `PHYSICAL` cards. Returns `409` if the card is
578
+ # still ongoing manufacturing when using Thales as a manufacturer.
566
579
  sig do
567
580
  params(
568
581
  card_token: String,
@@ -0,0 +1,86 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FinancialAccounts
6
+ class InstallmentPlans
7
+ class Statements
8
+ # Get a specific statement snapshot for a given installment plan.
9
+ sig do
10
+ params(
11
+ statement_token: String,
12
+ financial_account_token: String,
13
+ installment_plan_token: String,
14
+ request_options: Lithic::RequestOptions::OrHash
15
+ ).returns(
16
+ Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement
17
+ )
18
+ end
19
+ def retrieve(
20
+ # Globally unique identifier for statement.
21
+ statement_token,
22
+ # Globally unique identifier for financial account.
23
+ financial_account_token:,
24
+ # Globally unique identifier for installment plan.
25
+ installment_plan_token:,
26
+ request_options: {}
27
+ )
28
+ end
29
+
30
+ # List the statement snapshots for a given installment plan.
31
+ sig do
32
+ params(
33
+ installment_plan_token: String,
34
+ financial_account_token: String,
35
+ begin_: Date,
36
+ end_: Date,
37
+ ending_before: String,
38
+ page_size: Integer,
39
+ starting_after: String,
40
+ state:
41
+ T.nilable(
42
+ Lithic::FinancialAccounts::InstallmentPlans::StatementListParams::State::OrSymbol
43
+ ),
44
+ request_options: Lithic::RequestOptions::OrHash
45
+ ).returns(
46
+ Lithic::Internal::CursorPage[
47
+ Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement
48
+ ]
49
+ )
50
+ end
51
+ def list(
52
+ # Path param: Globally unique identifier for installment plan.
53
+ installment_plan_token,
54
+ # Path param: Globally unique identifier for financial account.
55
+ financial_account_token:,
56
+ # Query param: Date string in RFC 3339 format. Only entries created after the
57
+ # specified date will be included.
58
+ begin_: nil,
59
+ # Query param: Date string in RFC 3339 format. Only entries created before the
60
+ # specified date will be included.
61
+ end_: nil,
62
+ # Query param: A cursor representing an item's token before which a page of
63
+ # results should end. Used to retrieve the previous page of results before this
64
+ # item.
65
+ ending_before: nil,
66
+ # Query param: Page size (for pagination).
67
+ page_size: nil,
68
+ # Query param: A cursor representing an item's token after which a page of results
69
+ # should begin. Used to retrieve the next page of results after this item.
70
+ starting_after: nil,
71
+ # Query param: Only snapshots in which the plan was in this state will be
72
+ # included.
73
+ state: nil,
74
+ request_options: {}
75
+ )
76
+ end
77
+
78
+ # @api private
79
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
80
+ def self.new(client:)
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,73 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FinancialAccounts
6
+ class InstallmentPlans
7
+ sig do
8
+ returns(
9
+ Lithic::Resources::FinancialAccounts::InstallmentPlans::Statements
10
+ )
11
+ end
12
+ attr_reader :statements
13
+
14
+ # Get a specific installment plan for a given financial account.
15
+ sig do
16
+ params(
17
+ installment_plan_token: String,
18
+ financial_account_token: String,
19
+ request_options: Lithic::RequestOptions::OrHash
20
+ ).returns(Lithic::FinancialAccounts::InstallmentPlan)
21
+ end
22
+ def retrieve(
23
+ # Globally unique identifier for installment plan.
24
+ installment_plan_token,
25
+ # Globally unique identifier for financial account.
26
+ financial_account_token:,
27
+ request_options: {}
28
+ )
29
+ end
30
+
31
+ # List the installment plans for a given financial account.
32
+ sig do
33
+ params(
34
+ financial_account_token: String,
35
+ ending_before: String,
36
+ page_size: Integer,
37
+ starting_after: String,
38
+ state:
39
+ T.nilable(
40
+ Lithic::FinancialAccounts::InstallmentPlanListParams::State::OrSymbol
41
+ ),
42
+ request_options: Lithic::RequestOptions::OrHash
43
+ ).returns(
44
+ Lithic::Internal::CursorPage[
45
+ Lithic::FinancialAccounts::InstallmentPlan
46
+ ]
47
+ )
48
+ end
49
+ def list(
50
+ # Globally unique identifier for financial account.
51
+ financial_account_token,
52
+ # A cursor representing an item's token before which a page of results should end.
53
+ # Used to retrieve the previous page of results before this item.
54
+ ending_before: nil,
55
+ # Page size (for pagination).
56
+ page_size: nil,
57
+ # A cursor representing an item's token after which a page of results should
58
+ # begin. Used to retrieve the next page of results after this item.
59
+ starting_after: nil,
60
+ # Only installment plans in this state will be included.
61
+ state: nil,
62
+ request_options: {}
63
+ )
64
+ end
65
+
66
+ # @api private
67
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
68
+ def self.new(client:)
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,40 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FinancialAccounts
6
+ class OpenToBuy
7
+ # Get the funds available for card spend backed by a given Security Account, along
8
+ # with the balances that amount is derived from.
9
+ #
10
+ # Open to buy is the amount Lithic authorizes card spend against. It is not a
11
+ # stored balance, so it is recalculated on every request from the Security
12
+ # Account, the funds held against spend Lithic has already paid out to the
13
+ # networks on your behalf, and the spend that has not yet been collected. The
14
+ # accounts that feed the calculation depend on your program setup, so
15
+ # `summary.settled_funds` is `null` outside Commercial Charge.
16
+ #
17
+ # Supported for Commercial Charge, Dynamic Reserve, and Secured Charge programs.
18
+ # Returns `404` if `financial_account_token` is not a Security Account you own, or
19
+ # if your program setup does not use an open to buy calculation.
20
+ sig do
21
+ params(
22
+ financial_account_token: String,
23
+ request_options: Lithic::RequestOptions::OrHash
24
+ ).returns(Lithic::FinancialAccounts::FinancialAccountsOpenToBuy)
25
+ end
26
+ def retrieve(
27
+ # Globally unique identifier for the Security Account to price
28
+ financial_account_token,
29
+ request_options: {}
30
+ )
31
+ end
32
+
33
+ # @api private
34
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
35
+ def self.new(client:)
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -6,6 +6,9 @@ module Lithic
6
6
  sig { returns(Lithic::Resources::FinancialAccounts::Balances) }
7
7
  attr_reader :balances
8
8
 
9
+ sig { returns(Lithic::Resources::FinancialAccounts::OpenToBuy) }
10
+ attr_reader :open_to_buy
11
+
9
12
  sig do
10
13
  returns(Lithic::Resources::FinancialAccounts::FinancialTransactions)
11
14
  end
@@ -20,6 +23,9 @@ module Lithic
20
23
  sig { returns(Lithic::Resources::FinancialAccounts::LoanTapes) }
21
24
  attr_reader :loan_tapes
22
25
 
26
+ sig { returns(Lithic::Resources::FinancialAccounts::InstallmentPlans) }
27
+ attr_reader :installment_plans
28
+
23
29
  sig do
24
30
  returns(Lithic::Resources::FinancialAccounts::LoanTapeConfiguration)
25
31
  end
@@ -3,7 +3,14 @@
3
3
  module Lithic
4
4
  module Resources
5
5
  class Payments
6
- # Initiates a payment between a financial account and an external bank account.
6
+ # Initiates an ACH payment between a financial account and an external bank
7
+ # account.
8
+ #
9
+ # This endpoint originates on the ACH rail only. To send a stablecoin payout, use
10
+ # the
11
+ # [Create stablecoin payment](https://docs.lithic.com/reference/createstablecoinpayment)
12
+ # endpoint. Payments on every rail are read back through
13
+ # [List payments](https://docs.lithic.com/reference/searchpayments).
7
14
  sig do
8
15
  params(
9
16
  amount: Integer,
@@ -90,14 +97,73 @@ module Lithic
90
97
  )
91
98
  end
92
99
 
100
+ # Initiates a stablecoin payout from a financial account to a registered
101
+ # blockchain recipient.
102
+ #
103
+ # The recipient must have been registered with
104
+ # [Create blockchain recipient](https://docs.lithic.com/reference/createblockchainrecipient)
105
+ # and have completed address screening — only a recipient in the `ENABLED`
106
+ # verification state can receive a payout. The destination address and chain come
107
+ # from the recipient, so they are not supplied here.
108
+ #
109
+ # Only payouts are initiated through this endpoint. Stablecoin pay-ins are
110
+ # credited from on-chain deposits to a financial account's deposit address and are
111
+ # not created through the API. Funds are placed on hold when the payout is
112
+ # initiated, and a payout that fails on chain reverses that hold. A payout cannot
113
+ # be cancelled once it has been submitted on chain.
114
+ #
115
+ # This endpoint is only available to stablecoin-enabled programs. Contact your
116
+ # customer success manager to learn more.
117
+ sig do
118
+ params(
119
+ amount: Integer,
120
+ blockchain_recipient_token: String,
121
+ financial_account_token: String,
122
+ type: Lithic::PaymentCreateStablecoinParams::Type::OrSymbol,
123
+ token: String,
124
+ hold: Lithic::PaymentCreateStablecoinParams::Hold::OrHash,
125
+ memo: String,
126
+ request_options: Lithic::RequestOptions::OrHash
127
+ ).returns(Lithic::Models::PaymentCreateStablecoinResponse)
128
+ end
129
+ def create_stablecoin(
130
+ # Payout amount in cents
131
+ amount:,
132
+ # Token of the blockchain recipient to send the payout to. The recipient must be
133
+ # in the `ENABLED` verification state
134
+ blockchain_recipient_token:,
135
+ # Token of the financial account the payout is funded from
136
+ financial_account_token:,
137
+ # Direction of the payment. Stablecoin supports payouts only
138
+ type:,
139
+ # Customer-provided token that will serve as an idempotency token. This token will
140
+ # become the transaction token
141
+ token: nil,
142
+ # Optional hold to settle when this payout is initiated
143
+ hold: nil,
144
+ # Memo recorded on the payout. Defaults to `Stablecoin payout on <chain>` when
145
+ # omitted
146
+ memo: nil,
147
+ request_options: {}
148
+ )
149
+ end
150
+
93
151
  # Retry an origination which has been returned.
94
152
  sig do
95
153
  params(
96
154
  payment_token: String,
155
+ method_: Lithic::PaymentRetryParams::Method::OrSymbol,
97
156
  request_options: Lithic::RequestOptions::OrHash
98
157
  ).returns(Lithic::Models::PaymentRetryResponse)
99
158
  end
100
- def retry_(payment_token, request_options: {})
159
+ def retry_(
160
+ payment_token,
161
+ # Settlement speed to retry the payment at. Defaults to the original payment's
162
+ # method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
163
+ # or more, or if it is submitted after the same day ACH cutoff
164
+ method_: nil,
165
+ request_options: {}
166
+ )
101
167
  end
102
168
 
103
169
  # Return an ACH payment with a specified return reason code. Returns must be
@@ -113,6 +113,7 @@ module Lithic
113
113
  amount: Integer,
114
114
  descriptor: String,
115
115
  pan: String,
116
+ billing_currency: String,
116
117
  mcc: String,
117
118
  merchant_acceptor_city: String,
118
119
  merchant_acceptor_country: String,
@@ -122,6 +123,7 @@ module Lithic
122
123
  merchant_currency: String,
123
124
  partial_approval_capable: T::Boolean,
124
125
  pin: String,
126
+ settlement_currency: String,
125
127
  status:
126
128
  Lithic::TransactionSimulateAuthorizationParams::Status::OrSymbol,
127
129
  request_options: Lithic::RequestOptions::OrHash
@@ -138,6 +140,10 @@ module Lithic
138
140
  descriptor:,
139
141
  # Sixteen digit card number.
140
142
  pan:,
143
+ # 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
144
+ # Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
145
+ # a 422. Defaults to USD
146
+ billing_currency: nil,
141
147
  # Merchant category code for the transaction to be simulated. A four-digit number
142
148
  # listed in ISO 18245. Supported merchant category codes can be found
143
149
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
@@ -153,8 +159,10 @@ module Lithic
153
159
  # Amount of the transaction to be simulated in currency specified in
154
160
  # merchant_currency, including any acquirer fees.
155
161
  merchant_amount: nil,
156
- # 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
157
- # GBP, EUR and defaults to GBP if another ISO 4217 code is provided
162
+ # 3-character alphabetic ISO 4217 currency code for the merchant amount. Only used
163
+ # when merchant_amount is set, and defaults to GBP in that case. Without
164
+ # merchant_amount, the merchant amount uses the billing currency. Permitted values
165
+ # are USD, GBP, EUR and CAD, and any other ISO 4217 code returns a 422
158
166
  merchant_currency: nil,
159
167
  # Set to true if the terminal is capable of partial approval otherwise false.
160
168
  # Partial approval is when part of a transaction is approved and another payment
@@ -162,6 +170,12 @@ module Lithic
162
170
  partial_approval_capable: nil,
163
171
  # Simulate entering a PIN. If omitted, PIN check will not be performed.
164
172
  pin: nil,
173
+ # 3-character alphabetic ISO 4217 currency code for the settlement amount.
174
+ # Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
175
+ # a 422. Defaults to the value of billing_currency. Only single message
176
+ # (financial) authorizations carry a settlement amount, and the value is ignored
177
+ # for dual message authorizations
178
+ settlement_currency: nil,
165
179
  # Type of event to simulate.
166
180
  #
167
181
  # - `AUTHORIZATION` is a dual message purchase authorization, meaning a subsequent
@@ -244,6 +258,7 @@ module Lithic
244
258
  amount: Integer,
245
259
  descriptor: String,
246
260
  pan: String,
261
+ billing_currency: String,
247
262
  mcc: String,
248
263
  merchant_acceptor_city: String,
249
264
  merchant_acceptor_country: String,
@@ -263,6 +278,10 @@ module Lithic
263
278
  descriptor:,
264
279
  # Sixteen digit card number.
265
280
  pan:,
281
+ # 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
282
+ # Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
283
+ # a 422. Defaults to USD
284
+ billing_currency: nil,
266
285
  # Merchant category code for the transaction to be simulated. A four-digit number
267
286
  # listed in ISO 18245. Supported merchant category codes can be found
268
287
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
@@ -287,6 +306,8 @@ module Lithic
287
306
  amount: Integer,
288
307
  descriptor: String,
289
308
  pan: String,
309
+ billing_currency: String,
310
+ settlement_currency: String,
290
311
  request_options: Lithic::RequestOptions::OrHash
291
312
  ).returns(Lithic::Models::TransactionSimulateReturnResponse)
292
313
  end
@@ -297,6 +318,14 @@ module Lithic
297
318
  descriptor:,
298
319
  # Sixteen digit card number.
299
320
  pan:,
321
+ # 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
322
+ # Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
323
+ # a 422. Defaults to USD
324
+ billing_currency: nil,
325
+ # 3-character alphabetic ISO 4217 currency code for the settlement amount.
326
+ # Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
327
+ # a 422. Defaults to the value of billing_currency
328
+ settlement_currency: nil,
300
329
  request_options: {}
301
330
  )
302
331
  end
@@ -25,6 +25,7 @@ module Lithic
25
25
  Lithic::BookTransferTransactionUpdatedWebhookEvent,
26
26
  Lithic::CardCreatedWebhookEvent,
27
27
  Lithic::CardConvertedWebhookEvent,
28
+ Lithic::CardPinUpdatedWebhookEvent,
28
29
  Lithic::CardRenewedWebhookEvent,
29
30
  Lithic::CardReissuedWebhookEvent,
30
31
  Lithic::CardShippedWebhookEvent,
@@ -115,6 +115,7 @@ module Lithic
115
115
  | :EXTERNAL_CHECK
116
116
  | :EXTERNAL_FEDNOW
117
117
  | :EXTERNAL_RTP
118
+ | :EXTERNAL_STABLECOIN
118
119
  | :EXTERNAL_TRANSFER
119
120
  | :EXTERNAL_WIRE
120
121
  | :MANAGEMENT_ADJUSTMENT
@@ -143,6 +144,7 @@ module Lithic
143
144
  EXTERNAL_CHECK: :EXTERNAL_CHECK
144
145
  EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
145
146
  EXTERNAL_RTP: :EXTERNAL_RTP
147
+ EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
146
148
  EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
147
149
  EXTERNAL_WIRE: :EXTERNAL_WIRE
148
150
  MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT
@@ -103,6 +103,7 @@ module Lithic
103
103
  | :EXTERNAL_CHECK
104
104
  | :EXTERNAL_FEDNOW
105
105
  | :EXTERNAL_RTP
106
+ | :EXTERNAL_STABLECOIN
106
107
  | :EXTERNAL_TRANSFER
107
108
  | :EXTERNAL_WIRE
108
109
  | :MANAGEMENT_ADJUSTMENT
@@ -131,6 +132,7 @@ module Lithic
131
132
  EXTERNAL_CHECK: :EXTERNAL_CHECK
132
133
  EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
133
134
  EXTERNAL_RTP: :EXTERNAL_RTP
135
+ EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
134
136
  EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
135
137
  EXTERNAL_WIRE: :EXTERNAL_WIRE
136
138
  MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT