lithic 0.20.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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  7. data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
  8. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  9. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
  10. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
  11. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  12. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  13. data/lib/lithic/models/event.rb +5 -0
  14. data/lib/lithic/models/event_list_params.rb +3 -0
  15. data/lib/lithic/models/event_subscription.rb +3 -0
  16. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  17. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  18. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  19. data/lib/lithic/models/external_payment.rb +6 -0
  20. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  21. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  22. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  23. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  24. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  25. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  26. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  27. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  28. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  29. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  30. data/lib/lithic/models/financial_event.rb +9 -0
  31. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  32. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  33. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  34. data/lib/lithic/models/payment.rb +1 -0
  35. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  36. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  37. data/lib/lithic/models/payment_list_params.rb +1 -0
  38. data/lib/lithic/models/payment_retry_params.rb +28 -1
  39. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  40. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  41. data/lib/lithic/models/transaction.rb +2 -0
  42. data/lib/lithic/models.rb +6 -0
  43. data/lib/lithic/resources/blockchain_recipients.rb +23 -0
  44. data/lib/lithic/resources/cards.rb +4 -2
  45. data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
  46. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  47. data/lib/lithic/resources/financial_accounts.rb +8 -0
  48. data/lib/lithic/resources/payments.rb +71 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +13 -0
  51. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  52. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  53. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  54. data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
  55. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  56. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
  57. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
  58. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  59. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  60. data/rbi/lithic/models/event.rbi +8 -0
  61. data/rbi/lithic/models/event_list_params.rbi +7 -0
  62. data/rbi/lithic/models/event_subscription.rbi +7 -0
  63. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  64. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  65. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  66. data/rbi/lithic/models/external_payment.rbi +30 -0
  67. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  68. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  69. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  70. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  71. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  72. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  73. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  74. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  75. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  76. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  77. data/rbi/lithic/models/financial_event.rbi +35 -0
  78. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  79. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  80. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  81. data/rbi/lithic/models/payment.rbi +2 -0
  82. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  83. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  84. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  85. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  86. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  87. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  88. data/rbi/lithic/models/transaction.rbi +10 -0
  89. data/rbi/lithic/models.rbi +7 -0
  90. data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
  91. data/rbi/lithic/resources/cards.rbi +4 -2
  92. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
  93. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  94. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  95. data/rbi/lithic/resources/payments.rbi +68 -2
  96. data/rbi/lithic/resources/webhooks.rbi +1 -0
  97. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  98. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  100. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
  103. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
  104. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  105. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  106. data/sig/lithic/models/event.rbs +2 -0
  107. data/sig/lithic/models/event_list_params.rbs +2 -0
  108. data/sig/lithic/models/event_subscription.rbs +2 -0
  109. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  110. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  111. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  112. data/sig/lithic/models/external_payment.rbs +12 -0
  113. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  114. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  115. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  116. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  117. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  118. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  119. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  120. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  121. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  122. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  123. data/sig/lithic/models/financial_event.rbs +18 -0
  124. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  126. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  127. data/sig/lithic/models/payment.rbs +2 -0
  128. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  129. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  130. data/sig/lithic/models/payment_list_params.rbs +2 -1
  131. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  132. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  133. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  134. data/sig/lithic/models/transaction.rbs +4 -0
  135. data/sig/lithic/models.rbs +6 -0
  136. data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
  137. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
  138. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  139. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  140. data/sig/lithic/resources/payments.rbs +12 -0
  141. data/sig/lithic/resources/webhooks.rbs +1 -0
  142. metadata +41 -2
@@ -512,7 +512,8 @@ module Lithic
512
512
  # physically damaged). The PAN, expiry, and CVC2 will remain the same and the
513
513
  # original card can continue to be used until the new card is activated. Only
514
514
  # applies to cards of type `PHYSICAL`. A card can be reissued or renewed a total
515
- # of 8 times.
515
+ # of 8 times. Returns `409` if the card is still ongoing manufacturing when using
516
+ # Thales as a manufacturer.
516
517
  sig do
517
518
  params(
518
519
  card_token: String,
@@ -562,7 +563,8 @@ module Lithic
562
563
  # `PHYSICAL` card can be reissued or renewed a total of 8 times. For `VIRTUAL`,
563
564
  # the card will retain the same card token and PAN and receive an updated expiry
564
565
  # and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
565
- # are only relevant for renewing `PHYSICAL` cards.
566
+ # are only relevant for renewing `PHYSICAL` cards. Returns `409` if the card is
567
+ # still ongoing manufacturing when using Thales as a manufacturer.
566
568
  sig do
567
569
  params(
568
570
  card_token: String,
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,24 @@
1
+ module Lithic
2
+ module Models
3
+ type blockchain_recipient_retrieve_params =
4
+ { blockchain_recipient_token: String }
5
+ & Lithic::Internal::Type::request_parameters
6
+
7
+ class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ attr_accessor blockchain_recipient_token: String
12
+
13
+ def initialize: (
14
+ blockchain_recipient_token: String,
15
+ ?request_options: Lithic::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ blockchain_recipient_token: String,
20
+ request_options: Lithic::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,60 @@
1
+ module Lithic
2
+ module Models
3
+ type card_pin_updated_webhook_event =
4
+ {
5
+ card_token: String,
6
+ event_type: :"card.pin_updated",
7
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
8
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
9
+ }
10
+
11
+ class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
12
+ attr_accessor card_token: String
13
+
14
+ attr_accessor event_type: :"card.pin_updated"
15
+
16
+ attr_accessor pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status
17
+
18
+ attr_accessor status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
19
+
20
+ def initialize: (
21
+ card_token: String,
22
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
23
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason,
24
+ ?event_type: :"card.pin_updated"
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ card_token: String,
29
+ event_type: :"card.pin_updated",
30
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
31
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
32
+ }
33
+
34
+ type pin_status = :OK | :BLOCKED
35
+
36
+ module PinStatus
37
+ extend Lithic::Internal::Type::Enum
38
+
39
+ OK: :OK
40
+ BLOCKED: :BLOCKED
41
+
42
+ def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::pin_status]
43
+ end
44
+
45
+ type status_reason =
46
+ :PIN_SET | :PIN_CHANGED | :PIN_UNBLOCKED | :EXCESSIVE_PIN_ATTEMPTS
47
+
48
+ module StatusReason
49
+ extend Lithic::Internal::Type::Enum
50
+
51
+ PIN_SET: :PIN_SET
52
+ PIN_CHANGED: :PIN_CHANGED
53
+ PIN_UNBLOCKED: :PIN_UNBLOCKED
54
+ EXCESSIVE_PIN_ATTEMPTS: :EXCESSIVE_PIN_ATTEMPTS
55
+
56
+ def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::status_reason]
57
+ end
58
+ end
59
+ end
60
+ end
@@ -47,6 +47,7 @@ module Lithic
47
47
  | :"card_transaction.updated"
48
48
  | :"card.converted"
49
49
  | :"card.created"
50
+ | :"card.pin_updated"
50
51
  | :"card.reissued"
51
52
  | :"card.renewed"
52
53
  | :"card.shipped"
@@ -112,6 +113,7 @@ module Lithic
112
113
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
113
114
  CARD_CONVERTED: :"card.converted"
114
115
  CARD_CREATED: :"card.created"
116
+ CARD_PIN_UPDATED: :"card.pin_updated"
115
117
  CARD_REISSUED: :"card.reissued"
116
118
  CARD_RENEWED: :"card.renewed"
117
119
  CARD_SHIPPED: :"card.shipped"
@@ -84,6 +84,7 @@ module Lithic
84
84
  | :"card_transaction.updated"
85
85
  | :"card.converted"
86
86
  | :"card.created"
87
+ | :"card.pin_updated"
87
88
  | :"card.reissued"
88
89
  | :"card.renewed"
89
90
  | :"card.shipped"
@@ -149,6 +150,7 @@ module Lithic
149
150
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
150
151
  CARD_CONVERTED: :"card.converted"
151
152
  CARD_CREATED: :"card.created"
153
+ CARD_PIN_UPDATED: :"card.pin_updated"
152
154
  CARD_REISSUED: :"card.reissued"
153
155
  CARD_RENEWED: :"card.renewed"
154
156
  CARD_SHIPPED: :"card.shipped"
@@ -52,6 +52,7 @@ module Lithic
52
52
  | :"card_transaction.updated"
53
53
  | :"card.converted"
54
54
  | :"card.created"
55
+ | :"card.pin_updated"
55
56
  | :"card.reissued"
56
57
  | :"card.renewed"
57
58
  | :"card.shipped"
@@ -117,6 +118,7 @@ module Lithic
117
118
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
118
119
  CARD_CONVERTED: :"card.converted"
119
120
  CARD_CREATED: :"card.created"
121
+ CARD_PIN_UPDATED: :"card.pin_updated"
120
122
  CARD_REISSUED: :"card.reissued"
121
123
  CARD_RENEWED: :"card.renewed"
122
124
  CARD_SHIPPED: :"card.shipped"
@@ -62,6 +62,7 @@ module Lithic
62
62
  | :"card_transaction.updated"
63
63
  | :"card.converted"
64
64
  | :"card.created"
65
+ | :"card.pin_updated"
65
66
  | :"card.reissued"
66
67
  | :"card.renewed"
67
68
  | :"card.shipped"
@@ -127,6 +128,7 @@ module Lithic
127
128
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
128
129
  CARD_CONVERTED: :"card.converted"
129
130
  CARD_CREATED: :"card.created"
131
+ CARD_PIN_UPDATED: :"card.pin_updated"
130
132
  CARD_REISSUED: :"card.reissued"
131
133
  CARD_RENEWED: :"card.renewed"
132
134
  CARD_SHIPPED: :"card.shipped"
@@ -48,6 +48,7 @@ module Lithic
48
48
  | :"card_transaction.updated"
49
49
  | :"card.converted"
50
50
  | :"card.created"
51
+ | :"card.pin_updated"
51
52
  | :"card.reissued"
52
53
  | :"card.renewed"
53
54
  | :"card.shipped"
@@ -113,6 +114,7 @@ module Lithic
113
114
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
114
115
  CARD_CONVERTED: :"card.converted"
115
116
  CARD_CREATED: :"card.created"
117
+ CARD_PIN_UPDATED: :"card.pin_updated"
116
118
  CARD_REISSUED: :"card.reissued"
117
119
  CARD_RENEWED: :"card.renewed"
118
120
  CARD_SHIPPED: :"card.shipped"
@@ -67,6 +67,7 @@ module Lithic
67
67
  | :"card_transaction.updated"
68
68
  | :"card.converted"
69
69
  | :"card.created"
70
+ | :"card.pin_updated"
70
71
  | :"card.reissued"
71
72
  | :"card.renewed"
72
73
  | :"card.shipped"
@@ -132,6 +133,7 @@ module Lithic
132
133
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
133
134
  CARD_CONVERTED: :"card.converted"
134
135
  CARD_CREATED: :"card.created"
136
+ CARD_PIN_UPDATED: :"card.pin_updated"
135
137
  CARD_REISSUED: :"card.reissued"
136
138
  CARD_RENEWED: :"card.renewed"
137
139
  CARD_SHIPPED: :"card.shipped"
@@ -131,6 +131,7 @@ module Lithic
131
131
  | :EXTERNAL_CHECK
132
132
  | :EXTERNAL_FEDNOW
133
133
  | :EXTERNAL_RTP
134
+ | :EXTERNAL_STABLECOIN
134
135
  | :EXTERNAL_TRANSFER
135
136
 
136
137
  module Category
@@ -141,6 +142,7 @@ module Lithic
141
142
  EXTERNAL_CHECK: :EXTERNAL_CHECK
142
143
  EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
143
144
  EXTERNAL_RTP: :EXTERNAL_RTP
145
+ EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
144
146
  EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
145
147
 
146
148
  def self?.values: -> ::Array[Lithic::Models::ExternalPayment::category]
@@ -250,6 +252,11 @@ module Lithic
250
252
  | :EXTERNAL_RTP_SETTLED
251
253
  | :EXTERNAL_RTP_REVERSED
252
254
  | :EXTERNAL_RTP_RELEASED
255
+ | :EXTERNAL_STABLECOIN_INITIATED
256
+ | :EXTERNAL_STABLECOIN_CANCELED
257
+ | :EXTERNAL_STABLECOIN_SETTLED
258
+ | :EXTERNAL_STABLECOIN_REVERSED
259
+ | :EXTERNAL_STABLECOIN_RELEASED
253
260
 
254
261
  module Type
255
262
  extend Lithic::Internal::Type::Enum
@@ -284,6 +291,11 @@ module Lithic
284
291
  EXTERNAL_RTP_SETTLED: :EXTERNAL_RTP_SETTLED
285
292
  EXTERNAL_RTP_REVERSED: :EXTERNAL_RTP_REVERSED
286
293
  EXTERNAL_RTP_RELEASED: :EXTERNAL_RTP_RELEASED
294
+ EXTERNAL_STABLECOIN_INITIATED: :EXTERNAL_STABLECOIN_INITIATED
295
+ EXTERNAL_STABLECOIN_CANCELED: :EXTERNAL_STABLECOIN_CANCELED
296
+ EXTERNAL_STABLECOIN_SETTLED: :EXTERNAL_STABLECOIN_SETTLED
297
+ EXTERNAL_STABLECOIN_REVERSED: :EXTERNAL_STABLECOIN_REVERSED
298
+ EXTERNAL_STABLECOIN_RELEASED: :EXTERNAL_STABLECOIN_RELEASED
287
299
 
288
300
  def self?.values: -> ::Array[Lithic::Models::ExternalPayment::Event::type_]
289
301
  end
@@ -78,6 +78,7 @@ module Lithic
78
78
  | :EXTERNAL_CHECK
79
79
  | :EXTERNAL_FEDNOW
80
80
  | :EXTERNAL_RTP
81
+ | :EXTERNAL_STABLECOIN
81
82
  | :EXTERNAL_TRANSFER
82
83
 
83
84
  module Category
@@ -88,6 +89,7 @@ module Lithic
88
89
  EXTERNAL_CHECK: :EXTERNAL_CHECK
89
90
  EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
90
91
  EXTERNAL_RTP: :EXTERNAL_RTP
92
+ EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
91
93
  EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
92
94
 
93
95
  def self?.values: -> ::Array[Lithic::Models::ExternalPaymentCreateParams::category]
@@ -99,6 +99,7 @@ module Lithic
99
99
  | :EXTERNAL_CHECK
100
100
  | :EXTERNAL_FEDNOW
101
101
  | :EXTERNAL_RTP
102
+ | :EXTERNAL_STABLECOIN
102
103
  | :EXTERNAL_TRANSFER
103
104
 
104
105
  module Category
@@ -109,6 +110,7 @@ module Lithic
109
110
  EXTERNAL_CHECK: :EXTERNAL_CHECK
110
111
  EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
111
112
  EXTERNAL_RTP: :EXTERNAL_RTP
113
+ EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
112
114
  EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
113
115
 
114
116
  def self?.values: -> ::Array[Lithic::Models::ExternalPaymentListParams::category]