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
@@ -0,0 +1,66 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FinancialAccounts
6
+ class InstallmentPlans
7
+ # Get a specific installment plan for a given financial account.
8
+ sig do
9
+ params(
10
+ installment_plan_token: String,
11
+ financial_account_token: String,
12
+ request_options: Lithic::RequestOptions::OrHash
13
+ ).returns(Lithic::FinancialAccounts::InstallmentPlan)
14
+ end
15
+ def retrieve(
16
+ # Globally unique identifier for installment plan.
17
+ installment_plan_token,
18
+ # Globally unique identifier for financial account.
19
+ financial_account_token:,
20
+ request_options: {}
21
+ )
22
+ end
23
+
24
+ # List the installment plans for a given financial account.
25
+ sig do
26
+ params(
27
+ financial_account_token: String,
28
+ ending_before: String,
29
+ page_size: Integer,
30
+ starting_after: String,
31
+ state:
32
+ T.nilable(
33
+ Lithic::FinancialAccounts::InstallmentPlanListParams::State::OrSymbol
34
+ ),
35
+ request_options: Lithic::RequestOptions::OrHash
36
+ ).returns(
37
+ Lithic::Internal::CursorPage[
38
+ Lithic::FinancialAccounts::InstallmentPlan
39
+ ]
40
+ )
41
+ end
42
+ def list(
43
+ # Globally unique identifier for financial account.
44
+ financial_account_token,
45
+ # A cursor representing an item's token before which a page of results should end.
46
+ # Used to retrieve the previous page of results before this item.
47
+ ending_before: nil,
48
+ # Page size (for pagination).
49
+ page_size: nil,
50
+ # A cursor representing an item's token after which a page of results should
51
+ # begin. Used to retrieve the next page of results after this item.
52
+ starting_after: nil,
53
+ # Only installment plans in this state will be included.
54
+ state: nil,
55
+ request_options: {}
56
+ )
57
+ end
58
+
59
+ # @api private
60
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
61
+ def self.new(client:)
62
+ end
63
+ end
64
+ end
65
+ end
66
+ 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
@@ -167,7 +167,7 @@ module Lithic
167
167
  ).returns(Lithic::Tokenization)
168
168
  end
169
169
  def simulate(
170
- # The three digit cvv for the card.
170
+ # The three or four digit CVV for the card. AMEX cards use four digit CVVs.
171
171
  cvv:,
172
172
  # The expiration date of the card in 'MM/YY' format.
173
173
  expiration_date:,
@@ -120,7 +120,9 @@ module Lithic
120
120
  # A cursor representing an item's token before which a page of results should end.
121
121
  # Used to retrieve the previous page of results before this item.
122
122
  ending_before: nil,
123
- # Only return cases associated with the provided entity.
123
+ # Only return cases associated with the provided entity. Accepts a card, account,
124
+ # or financial account token. Cases with a `PROGRAM` entity have no entity token
125
+ # and are never returned by this filter.
124
126
  entity_token: nil,
125
127
  # Page size (for pagination).
126
128
  page_size: nil,
@@ -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,
@@ -55,6 +55,8 @@ module Lithic
55
55
 
56
56
  attr_reader external_bank_accounts: Lithic::Resources::ExternalBankAccounts
57
57
 
58
+ attr_reader blockchain_recipients: Lithic::Resources::BlockchainRecipients
59
+
58
60
  attr_reader payments: Lithic::Resources::Payments
59
61
 
60
62
  attr_reader three_ds: Lithic::Resources::ThreeDS
@@ -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
@@ -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
@@ -71,12 +71,13 @@ module Lithic
71
71
  type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
72
72
  }
73
73
 
74
- type scope = :FINANCIAL_ACCOUNT
74
+ type scope = :FINANCIAL_ACCOUNT | :PROGRAM
75
75
 
76
76
  module Scope
77
77
  extend Lithic::Internal::Type::Enum
78
78
 
79
79
  FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
80
+ PROGRAM: :PROGRAM
80
81
 
81
82
  def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope]
82
83
  end
@@ -218,6 +218,7 @@ module Lithic
218
218
  | :MERCHANT_LOCK
219
219
  | :CONDITIONAL_ACTION
220
220
  | :TYPESCRIPT_CODE
221
+ | :OTHER
221
222
 
222
223
  module Type
223
224
  extend Lithic::Internal::Type::Enum
@@ -227,6 +228,7 @@ module Lithic
227
228
  MERCHANT_LOCK: :MERCHANT_LOCK
228
229
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
229
230
  TYPESCRIPT_CODE: :TYPESCRIPT_CODE
231
+ OTHER: :OTHER
230
232
 
231
233
  def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRule::type_]
232
234
  end
@@ -71,13 +71,14 @@ module Lithic
71
71
  type: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_
72
72
  }
73
73
 
74
- type scope = :CARD | :ACCOUNT
74
+ type scope = :CARD | :ACCOUNT | :PROGRAM
75
75
 
76
76
  module Scope
77
77
  extend Lithic::Internal::Type::Enum
78
78
 
79
79
  CARD: :CARD
80
80
  ACCOUNT: :ACCOUNT
81
+ PROGRAM: :PROGRAM
81
82
 
82
83
  def self?.values: -> ::Array[Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope]
83
84
  end
@@ -143,6 +143,7 @@ module Lithic
143
143
  | :PROGRAM_SUSPENDED
144
144
  | :PROGRAM_USAGE_RESTRICTION
145
145
  | :REVERSAL_UNMATCHED
146
+ | :SCA_REQUIRED
146
147
  | :SECURITY_VIOLATION
147
148
  | :SINGLE_USE_CARD_REATTEMPTED
148
149
  | :SUSPECTED_FRAUD
@@ -204,6 +205,7 @@ module Lithic
204
205
  PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED
205
206
  PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION
206
207
  REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED
208
+ SCA_REQUIRED: :SCA_REQUIRED
207
209
  SECURITY_VIOLATION: :SECURITY_VIOLATION
208
210
  SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED
209
211
  SUSPECTED_FRAUD: :SUSPECTED_FRAUD
@@ -103,6 +103,7 @@ module Lithic
103
103
  | :MERCHANT_LOCK
104
104
  | :CONDITIONAL_ACTION
105
105
  | :TYPESCRIPT_CODE
106
+ | :OTHER
106
107
 
107
108
  module Type
108
109
  extend Lithic::Internal::Type::Enum
@@ -112,6 +113,7 @@ module Lithic
112
113
  MERCHANT_LOCK: :MERCHANT_LOCK
113
114
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
114
115
  TYPESCRIPT_CODE: :TYPESCRIPT_CODE
116
+ OTHER: :OTHER
115
117
 
116
118
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_]
117
119
  end
@@ -182,6 +184,7 @@ module Lithic
182
184
  | :MERCHANT_LOCK
183
185
  | :CONDITIONAL_ACTION
184
186
  | :TYPESCRIPT_CODE
187
+ | :OTHER
185
188
 
186
189
  module Type
187
190
  extend Lithic::Internal::Type::Enum
@@ -191,6 +194,7 @@ module Lithic
191
194
  MERCHANT_LOCK: :MERCHANT_LOCK
192
195
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
193
196
  TYPESCRIPT_CODE: :TYPESCRIPT_CODE
197
+ OTHER: :OTHER
194
198
 
195
199
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_]
196
200
  end
@@ -284,6 +288,7 @@ module Lithic
284
288
  | :MERCHANT_LOCK
285
289
  | :CONDITIONAL_ACTION
286
290
  | :TYPESCRIPT_CODE
291
+ | :OTHER
287
292
 
288
293
  module Type
289
294
  extend Lithic::Internal::Type::Enum
@@ -293,6 +298,7 @@ module Lithic
293
298
  MERCHANT_LOCK: :MERCHANT_LOCK
294
299
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
295
300
  TYPESCRIPT_CODE: :TYPESCRIPT_CODE
301
+ OTHER: :OTHER
296
302
 
297
303
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_]
298
304
  end
@@ -150,6 +150,7 @@ module Lithic
150
150
  | :PROGRAM_SUSPENDED
151
151
  | :PROGRAM_USAGE_RESTRICTION
152
152
  | :REVERSAL_UNMATCHED
153
+ | :SCA_REQUIRED
153
154
  | :SECURITY_VIOLATION
154
155
  | :SINGLE_USE_CARD_REATTEMPTED
155
156
  | :SUSPECTED_FRAUD
@@ -211,6 +212,7 @@ module Lithic
211
212
  PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED
212
213
  PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION
213
214
  REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED
215
+ SCA_REQUIRED: :SCA_REQUIRED
214
216
  SECURITY_VIOLATION: :SECURITY_VIOLATION
215
217
  SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED
216
218
  SUSPECTED_FRAUD: :SUSPECTED_FRAUD
@@ -1078,13 +1080,14 @@ module Lithic
1078
1080
  explanation: String
1079
1081
  }
1080
1082
 
1081
- type scope = :CARD | :ACCOUNT
1083
+ type scope = :CARD | :ACCOUNT | :PROGRAM
1082
1084
 
1083
1085
  module Scope
1084
1086
  extend Lithic::Internal::Type::Enum
1085
1087
 
1086
1088
  CARD: :CARD
1087
1089
  ACCOUNT: :ACCOUNT
1090
+ PROGRAM: :PROGRAM
1088
1091
 
1089
1092
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope]
1090
1093
  end
@@ -1255,12 +1258,13 @@ module Lithic
1255
1258
  explanation: String
1256
1259
  }
1257
1260
 
1258
- type scope = :FINANCIAL_ACCOUNT
1261
+ type scope = :FINANCIAL_ACCOUNT | :PROGRAM
1259
1262
 
1260
1263
  module Scope
1261
1264
  extend Lithic::Internal::Type::Enum
1262
1265
 
1263
1266
  FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
1267
+ PROGRAM: :PROGRAM
1264
1268
 
1265
1269
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope]
1266
1270
  end
@@ -7,6 +7,8 @@ module Lithic
7
7
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
8
8
  filters: Lithic::AuthRules::VelocityLimitFilters,
9
9
  limit_amount: Integer?,
10
+ limit_cash_amount: Integer?,
11
+ limit_cash_count: Integer?,
10
12
  limit_count: Integer?
11
13
  }
12
14
 
@@ -23,6 +25,10 @@ module Lithic
23
25
 
24
26
  attr_accessor limit_amount: Integer?
25
27
 
28
+ attr_accessor limit_cash_amount: Integer?
29
+
30
+ attr_accessor limit_cash_count: Integer?
31
+
26
32
  attr_accessor limit_count: Integer?
27
33
 
28
34
  def initialize: (
@@ -30,6 +36,8 @@ module Lithic
30
36
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
31
37
  ?filters: Lithic::AuthRules::VelocityLimitFilters,
32
38
  ?limit_amount: Integer?,
39
+ ?limit_cash_amount: Integer?,
40
+ ?limit_cash_count: Integer?,
33
41
  ?limit_count: Integer?
34
42
  ) -> void
35
43
 
@@ -38,6 +46,8 @@ module Lithic
38
46
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
39
47
  filters: Lithic::AuthRules::VelocityLimitFilters,
40
48
  limit_amount: Integer?,
49
+ limit_cash_amount: Integer?,
50
+ limit_cash_count: Integer?,
41
51
  limit_count: Integer?
42
52
  }
43
53
 
@@ -0,0 +1,106 @@
1
+ module Lithic
2
+ module Models
3
+ type blockchain_recipient =
4
+ {
5
+ token: String,
6
+ account_token: String?,
7
+ address_tag: String?,
8
+ chain: String,
9
+ created: Time,
10
+ external_id: String?,
11
+ name: String?,
12
+ owner: String,
13
+ owner_type: Lithic::Models::owner_type,
14
+ program_id: String,
15
+ state: Lithic::Models::BlockchainRecipient::state,
16
+ updated: Time,
17
+ verification_state: Lithic::Models::BlockchainRecipient::verification_state
18
+ }
19
+
20
+ class BlockchainRecipient < Lithic::Internal::Type::BaseModel
21
+ attr_accessor token: String
22
+
23
+ attr_accessor account_token: String?
24
+
25
+ attr_accessor address_tag: String?
26
+
27
+ attr_accessor chain: String
28
+
29
+ attr_accessor created: Time
30
+
31
+ attr_accessor external_id: String?
32
+
33
+ attr_accessor name: String?
34
+
35
+ attr_accessor owner: String
36
+
37
+ attr_accessor owner_type: Lithic::Models::owner_type
38
+
39
+ attr_accessor program_id: String
40
+
41
+ attr_accessor state: Lithic::Models::BlockchainRecipient::state
42
+
43
+ attr_accessor updated: Time
44
+
45
+ attr_accessor verification_state: Lithic::Models::BlockchainRecipient::verification_state
46
+
47
+ def initialize: (
48
+ token: String,
49
+ account_token: String?,
50
+ address_tag: String?,
51
+ chain: String,
52
+ created: Time,
53
+ external_id: String?,
54
+ name: String?,
55
+ owner: String,
56
+ owner_type: Lithic::Models::owner_type,
57
+ program_id: String,
58
+ state: Lithic::Models::BlockchainRecipient::state,
59
+ updated: Time,
60
+ verification_state: Lithic::Models::BlockchainRecipient::verification_state
61
+ ) -> void
62
+
63
+ def to_hash: -> {
64
+ token: String,
65
+ account_token: String?,
66
+ address_tag: String?,
67
+ chain: String,
68
+ created: Time,
69
+ external_id: String?,
70
+ name: String?,
71
+ owner: String,
72
+ owner_type: Lithic::Models::owner_type,
73
+ program_id: String,
74
+ state: Lithic::Models::BlockchainRecipient::state,
75
+ updated: Time,
76
+ verification_state: Lithic::Models::BlockchainRecipient::verification_state
77
+ }
78
+
79
+ type state = :ENABLED | :CLOSED | :PAUSED
80
+
81
+ module State
82
+ extend Lithic::Internal::Type::Enum
83
+
84
+ ENABLED: :ENABLED
85
+ CLOSED: :CLOSED
86
+ PAUSED: :PAUSED
87
+
88
+ def self?.values: -> ::Array[Lithic::Models::BlockchainRecipient::state]
89
+ end
90
+
91
+ type verification_state =
92
+ :PENDING | :ENABLED | :FAILED_VERIFICATION | :INSUFFICIENT_FUNDS
93
+
94
+ module VerificationState
95
+ extend Lithic::Internal::Type::Enum
96
+
97
+ PENDING: :PENDING
98
+ ENABLED: :ENABLED
99
+ FAILED_VERIFICATION: :FAILED_VERIFICATION
100
+ INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
101
+
102
+ def self?.values: -> ::Array[Lithic::Models::BlockchainRecipient::verification_state]
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,60 @@
1
+ module Lithic
2
+ module Models
3
+ type blockchain_recipient_create_params =
4
+ {
5
+ account_token: String,
6
+ address: String,
7
+ chain: String,
8
+ owner: String,
9
+ owner_type: Lithic::Models::owner_type,
10
+ address_tag: String,
11
+ name: String
12
+ }
13
+ & Lithic::Internal::Type::request_parameters
14
+
15
+ class BlockchainRecipientCreateParams < Lithic::Internal::Type::BaseModel
16
+ extend Lithic::Internal::Type::RequestParameters::Converter
17
+ include Lithic::Internal::Type::RequestParameters
18
+
19
+ attr_accessor account_token: String
20
+
21
+ attr_accessor address: String
22
+
23
+ attr_accessor chain: String
24
+
25
+ attr_accessor owner: String
26
+
27
+ attr_accessor owner_type: Lithic::Models::owner_type
28
+
29
+ attr_reader address_tag: String?
30
+
31
+ def address_tag=: (String) -> String
32
+
33
+ attr_reader name: String?
34
+
35
+ def name=: (String) -> String
36
+
37
+ def initialize: (
38
+ account_token: String,
39
+ address: String,
40
+ chain: String,
41
+ owner: String,
42
+ owner_type: Lithic::Models::owner_type,
43
+ ?address_tag: String,
44
+ ?name: String,
45
+ ?request_options: Lithic::request_opts
46
+ ) -> void
47
+
48
+ def to_hash: -> {
49
+ account_token: String,
50
+ address: String,
51
+ chain: String,
52
+ owner: String,
53
+ owner_type: Lithic::Models::owner_type,
54
+ address_tag: String,
55
+ name: String,
56
+ request_options: Lithic::RequestOptions
57
+ }
58
+ end
59
+ end
60
+ end