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,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ class OpenToBuySummary < Lithic::Internal::Type::BaseModel
7
+ # @!attribute security
8
+ # Available balance of the Security Account backing card spend, in the currency's
9
+ # smallest unit (e.g., cents for USD)
10
+ #
11
+ # @return [Integer]
12
+ required :security, Integer
13
+
14
+ # @!attribute settled_funds
15
+ # Funding that has moved out of the Security Account to cover card spend Lithic
16
+ # has already paid out to the networks, in the currency's smallest unit (e.g.,
17
+ # cents for USD). Open to buy counts it alongside `security`, and it clears once
18
+ # collected from your business clients. Only Commercial Charge tracks this
19
+ # separately, so this is `null` for every other program setup
20
+ #
21
+ # @return [Integer, nil]
22
+ required :settled_funds, Integer, nil?: true
23
+
24
+ # @!attribute total_outstanding_spend
25
+ # Customer card spend that has not yet been collected, in the currency's smallest
26
+ # unit (e.g., cents for USD). Reported as a negative amount, because it reduces
27
+ # open to buy
28
+ #
29
+ # @return [Integer]
30
+ required :total_outstanding_spend, Integer
31
+
32
+ # @!method initialize(security:, settled_funds:, total_outstanding_spend:)
33
+ # Some parameter documentations has been truncated, see
34
+ # {Lithic::Models::FinancialAccounts::OpenToBuySummary} for more details.
35
+ #
36
+ # Open to Buy Summary
37
+ #
38
+ # @param security [Integer] Available balance of the Security Account backing card spend, in the currency's
39
+ #
40
+ # @param settled_funds [Integer, nil] Funding that has moved out of the Security Account to cover card spend Lithic ha
41
+ #
42
+ # @param total_outstanding_spend [Integer] Customer card spend that has not yet been collected, in the currency's
43
+ end
44
+ end
45
+ end
46
+ end
@@ -162,6 +162,7 @@ module Lithic
162
162
  EXTERNAL_CHECK = :EXTERNAL_CHECK
163
163
  EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
164
164
  EXTERNAL_RTP = :EXTERNAL_RTP
165
+ EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
165
166
  EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
166
167
  EXTERNAL_WIRE = :EXTERNAL_WIRE
167
168
  MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
@@ -234,6 +235,11 @@ module Lithic
234
235
  EXTERNAL_RTP_RELEASED = :EXTERNAL_RTP_RELEASED
235
236
  EXTERNAL_RTP_REVERSED = :EXTERNAL_RTP_REVERSED
236
237
  EXTERNAL_RTP_SETTLED = :EXTERNAL_RTP_SETTLED
238
+ EXTERNAL_STABLECOIN_CANCELED = :EXTERNAL_STABLECOIN_CANCELED
239
+ EXTERNAL_STABLECOIN_INITIATED = :EXTERNAL_STABLECOIN_INITIATED
240
+ EXTERNAL_STABLECOIN_RELEASED = :EXTERNAL_STABLECOIN_RELEASED
241
+ EXTERNAL_STABLECOIN_REVERSED = :EXTERNAL_STABLECOIN_REVERSED
242
+ EXTERNAL_STABLECOIN_SETTLED = :EXTERNAL_STABLECOIN_SETTLED
237
243
  EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
238
244
  EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
239
245
  EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
@@ -244,8 +250,12 @@ module Lithic
244
250
  EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
245
251
  EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
246
252
  EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
253
+ FEE = :FEE
254
+ FEE_REVERSAL = :FEE_REVERSAL
247
255
  FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
248
256
  FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
257
+ INSTALLMENT_FEE = :INSTALLMENT_FEE
258
+ INSTALLMENT_FEE_REVERSAL = :INSTALLMENT_FEE_REVERSAL
249
259
  INTEREST = :INTEREST
250
260
  INTEREST_REVERSAL = :INTEREST_REVERSAL
251
261
  INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
@@ -272,8 +282,11 @@ module Lithic
272
282
  MONTHLY_REVERSAL = :MONTHLY_REVERSAL
273
283
  ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT
274
284
  STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED
285
+ STABLECOIN_INITIATED = :STABLECOIN_INITIATED
275
286
  STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED
287
+ STABLECOIN_SENT = :STABLECOIN_SENT
276
288
  STABLECOIN_SETTLED = :STABLECOIN_SETTLED
289
+ STABLECOIN_REJECTED = :STABLECOIN_REJECTED
277
290
 
278
291
  # @!method self.values
279
292
  # @return [Array<Symbol>]
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ class TransactionCategoryBalances < Lithic::Internal::Type::BaseModel
7
+ # @!attribute balance_transfers
8
+ # Amounts attributable to balance transfers
9
+ #
10
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
11
+ required :balance_transfers, -> { Lithic::FinancialAccounts::CategoryBalances }
12
+
13
+ # @!attribute cash_advances
14
+ # Amounts attributable to cash advances
15
+ #
16
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
17
+ required :cash_advances, -> { Lithic::FinancialAccounts::CategoryBalances }
18
+
19
+ # @!attribute purchases
20
+ # Amounts attributable to purchases
21
+ #
22
+ # @return [Lithic::Models::FinancialAccounts::CategoryBalances]
23
+ required :purchases, -> { Lithic::FinancialAccounts::CategoryBalances }
24
+
25
+ # @!method initialize(balance_transfers:, cash_advances:, purchases:)
26
+ # @param balance_transfers [Lithic::Models::FinancialAccounts::CategoryBalances] Amounts attributable to balance transfers
27
+ #
28
+ # @param cash_advances [Lithic::Models::FinancialAccounts::CategoryBalances] Amounts attributable to cash advances
29
+ #
30
+ # @param purchases [Lithic::Models::FinancialAccounts::CategoryBalances] Amounts attributable to purchases
31
+ end
32
+ end
33
+ end
34
+ end
@@ -121,6 +121,11 @@ module Lithic
121
121
  EXTERNAL_RTP_RELEASED = :EXTERNAL_RTP_RELEASED
122
122
  EXTERNAL_RTP_REVERSED = :EXTERNAL_RTP_REVERSED
123
123
  EXTERNAL_RTP_SETTLED = :EXTERNAL_RTP_SETTLED
124
+ EXTERNAL_STABLECOIN_CANCELED = :EXTERNAL_STABLECOIN_CANCELED
125
+ EXTERNAL_STABLECOIN_INITIATED = :EXTERNAL_STABLECOIN_INITIATED
126
+ EXTERNAL_STABLECOIN_RELEASED = :EXTERNAL_STABLECOIN_RELEASED
127
+ EXTERNAL_STABLECOIN_REVERSED = :EXTERNAL_STABLECOIN_REVERSED
128
+ EXTERNAL_STABLECOIN_SETTLED = :EXTERNAL_STABLECOIN_SETTLED
124
129
  EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
125
130
  EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
126
131
  EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
@@ -131,8 +136,12 @@ module Lithic
131
136
  EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
132
137
  EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
133
138
  EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
139
+ FEE = :FEE
140
+ FEE_REVERSAL = :FEE_REVERSAL
134
141
  FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
135
142
  FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
143
+ INSTALLMENT_FEE = :INSTALLMENT_FEE
144
+ INSTALLMENT_FEE_REVERSAL = :INSTALLMENT_FEE_REVERSAL
136
145
  INTEREST = :INTEREST
137
146
  INTEREST_REVERSAL = :INTEREST_REVERSAL
138
147
  INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
@@ -159,8 +168,11 @@ module Lithic
159
168
  MONTHLY_REVERSAL = :MONTHLY_REVERSAL
160
169
  ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT
161
170
  STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED
171
+ STABLECOIN_INITIATED = :STABLECOIN_INITIATED
162
172
  STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED
173
+ STABLECOIN_SENT = :STABLECOIN_SENT
163
174
  STABLECOIN_SETTLED = :STABLECOIN_SETTLED
175
+ STABLECOIN_REJECTED = :STABLECOIN_REJECTED
164
176
 
165
177
  # @!method self.values
166
178
  # @return [Array<Symbol>]
@@ -126,6 +126,8 @@ module Lithic
126
126
  CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
127
127
  INTEREST = :INTEREST
128
128
  INTEREST_REVERSAL = :INTEREST_REVERSAL
129
+ INSTALLMENT_FEE = :INSTALLMENT_FEE
130
+ INSTALLMENT_FEE_REVERSAL = :INSTALLMENT_FEE_REVERSAL
129
131
  LATE_PAYMENT = :LATE_PAYMENT
130
132
  LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
131
133
  BILLING_ERROR = :BILLING_ERROR
@@ -144,6 +146,8 @@ module Lithic
144
146
  QUARTERLY_REVERSAL = :QUARTERLY_REVERSAL
145
147
  MONTHLY = :MONTHLY
146
148
  MONTHLY_REVERSAL = :MONTHLY_REVERSAL
149
+ FEE = :FEE
150
+ FEE_REVERSAL = :FEE_REVERSAL
147
151
 
148
152
  # @!method self.values
149
153
  # @return [Array<Symbol>]
@@ -259,6 +259,8 @@ module Lithic
259
259
  CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
260
260
  INTEREST = :INTEREST
261
261
  INTEREST_REVERSAL = :INTEREST_REVERSAL
262
+ INSTALLMENT_FEE = :INSTALLMENT_FEE
263
+ INSTALLMENT_FEE_REVERSAL = :INSTALLMENT_FEE_REVERSAL
262
264
  LATE_PAYMENT = :LATE_PAYMENT
263
265
  LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
264
266
  BILLING_ERROR = :BILLING_ERROR
@@ -277,6 +279,8 @@ module Lithic
277
279
  QUARTERLY_REVERSAL = :QUARTERLY_REVERSAL
278
280
  MONTHLY = :MONTHLY
279
281
  MONTHLY_REVERSAL = :MONTHLY_REVERSAL
282
+ FEE = :FEE
283
+ FEE_REVERSAL = :FEE_REVERSAL
280
284
 
281
285
  # @!method self.values
282
286
  # @return [Array<Symbol>]
@@ -42,6 +42,8 @@ module Lithic
42
42
 
43
43
  variant -> { Lithic::CardConvertedWebhookEvent }
44
44
 
45
+ variant -> { Lithic::CardPinUpdatedWebhookEvent }
46
+
45
47
  variant -> { Lithic::CardRenewedWebhookEvent }
46
48
 
47
49
  variant -> { Lithic::CardReissuedWebhookEvent }
@@ -830,7 +832,7 @@ module Lithic
830
832
  end
831
833
 
832
834
  # @!method self.variants
833
- # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
835
+ # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardPinUpdatedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)]
834
836
  end
835
837
  end
836
838
  end
@@ -61,7 +61,7 @@ module Lithic
61
61
  # @!attribute method_attributes
62
62
  # Method-specific attributes
63
63
  #
64
- # @return [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes]
64
+ # @return [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes, Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes]
65
65
  required :method_attributes, union: -> { Lithic::Payment::MethodAttributes }
66
66
 
67
67
  # @!attribute pending_amount
@@ -106,6 +106,12 @@ module Lithic
106
106
  # @return [Time]
107
107
  required :updated, Time
108
108
 
109
+ # @!attribute blockchain_recipient_token
110
+ # Token of the blockchain recipient the payout is sent to
111
+ #
112
+ # @return [String, nil]
113
+ optional :blockchain_recipient_token, String, nil?: true
114
+
109
115
  # @!attribute currency
110
116
  # Currency of the transaction in ISO 4217 format
111
117
  #
@@ -142,7 +148,7 @@ module Lithic
142
148
  # @return [String, nil]
143
149
  optional :user_defined_id, String, nil?: true
144
150
 
145
- # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, tags: nil, type: nil, user_defined_id: nil, family: :PAYMENT)
151
+ # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, blockchain_recipient_token: nil, currency: nil, expected_release_date: nil, external_bank_account_token: nil, tags: nil, type: nil, user_defined_id: nil, family: :PAYMENT)
146
152
  # Some parameter documentations has been truncated, see {Lithic::Models::Payment}
147
153
  # for more details.
148
154
  #
@@ -164,7 +170,7 @@ module Lithic
164
170
  #
165
171
  # @param method_ [Symbol, Lithic::Models::Payment::Method] Transfer method
166
172
  #
167
- # @param method_attributes [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes] Method-specific attributes
173
+ # @param method_attributes [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes, Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes] Method-specific attributes
168
174
  #
169
175
  # @param pending_amount [Integer] Pending amount in cents
170
176
  #
@@ -180,6 +186,8 @@ module Lithic
180
186
  #
181
187
  # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
182
188
  #
189
+ # @param blockchain_recipient_token [String, nil] Token of the blockchain recipient the payout is sent to
190
+ #
183
191
  # @param currency [String] Currency of the transaction in ISO 4217 format
184
192
  #
185
193
  # @param expected_release_date [Date, nil] Expected release date for the transaction
@@ -214,6 +222,7 @@ module Lithic
214
222
  EXTERNAL_CHECK = :EXTERNAL_CHECK
215
223
  EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
216
224
  EXTERNAL_RTP = :EXTERNAL_RTP
225
+ EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
217
226
  EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
218
227
  EXTERNAL_WIRE = :EXTERNAL_WIRE
219
228
  MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
@@ -327,8 +336,16 @@ module Lithic
327
336
  #
328
337
  # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending
329
338
  # release to available balance.
330
- # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process.
331
- # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance.
339
+ # - `STABLECOIN_INITIATED` - Stablecoin withdrawal initiated, with the funds
340
+ # placed on hold.
341
+ # - `STABLECOIN_REVIEWED` - Stablecoin pay-in or withdrawal has completed the
342
+ # review process.
343
+ # - `STABLECOIN_SENT` - Stablecoin withdrawal accepted for on-chain submission to
344
+ # the destination address, and pending confirmation.
345
+ # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance,
346
+ # or stablecoin withdrawal confirmed on-chain.
347
+ # - `STABLECOIN_REJECTED` - Stablecoin withdrawal failed and the hold placed at
348
+ # initiation has been reversed.
332
349
  #
333
350
  # @return [Symbol, Lithic::Models::Payment::Event::Type]
334
351
  required :type, enum: -> { Lithic::Payment::Event::Type }
@@ -343,7 +360,9 @@ module Lithic
343
360
  # @!attribute external_id
344
361
  # Payment event external ID. For ACH transactions, this is the ACH trace number.
345
362
  # For inbound wire transfers, this is the IMAD (Input Message Accountability
346
- # Data).
363
+ # Data). For stablecoin payments, this is the on-chain transaction hash of the
364
+ # transfer; it is present on events that reflect on-chain activity and null on
365
+ # internal lifecycle events.
347
366
  #
348
367
  # @return [String, nil]
349
368
  optional :external_id, String, nil?: true
@@ -443,8 +462,16 @@ module Lithic
443
462
  #
444
463
  # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending
445
464
  # release to available balance.
446
- # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process.
447
- # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance.
465
+ # - `STABLECOIN_INITIATED` - Stablecoin withdrawal initiated, with the funds
466
+ # placed on hold.
467
+ # - `STABLECOIN_REVIEWED` - Stablecoin pay-in or withdrawal has completed the
468
+ # review process.
469
+ # - `STABLECOIN_SENT` - Stablecoin withdrawal accepted for on-chain submission to
470
+ # the destination address, and pending confirmation.
471
+ # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance,
472
+ # or stablecoin withdrawal confirmed on-chain.
473
+ # - `STABLECOIN_REJECTED` - Stablecoin withdrawal failed and the hold placed at
474
+ # initiation has been reversed.
448
475
  #
449
476
  # @see Lithic::Models::Payment::Event#type
450
477
  module Type
@@ -473,8 +500,11 @@ module Lithic
473
500
  WIRE_RETURN_OUTBOUND_SETTLED = :WIRE_RETURN_OUTBOUND_SETTLED
474
501
  WIRE_RETURN_OUTBOUND_REJECTED = :WIRE_RETURN_OUTBOUND_REJECTED
475
502
  STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED
503
+ STABLECOIN_INITIATED = :STABLECOIN_INITIATED
476
504
  STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED
505
+ STABLECOIN_SENT = :STABLECOIN_SENT
477
506
  STABLECOIN_SETTLED = :STABLECOIN_SETTLED
507
+ STABLECOIN_REJECTED = :STABLECOIN_REJECTED
478
508
 
479
509
  # @!method self.values
480
510
  # @return [Array<Symbol>]
@@ -505,6 +535,7 @@ module Lithic
505
535
  ACH_NEXT_DAY = :ACH_NEXT_DAY
506
536
  ACH_SAME_DAY = :ACH_SAME_DAY
507
537
  WIRE = :WIRE
538
+ STABLECOIN = :STABLECOIN
508
539
 
509
540
  # @!method self.values
510
541
  # @return [Array<Symbol>]
@@ -520,6 +551,8 @@ module Lithic
520
551
 
521
552
  variant -> { Lithic::Payment::MethodAttributes::WireMethodAttributes }
522
553
 
554
+ variant -> { Lithic::Payment::MethodAttributes::StablecoinMethodAttributes }
555
+
523
556
  class ACHMethodAttributes < Lithic::Internal::Type::BaseModel
524
557
  # @!attribute sec_code
525
558
  # SEC code for ACH transaction
@@ -692,8 +725,32 @@ module Lithic
692
725
  end
693
726
  end
694
727
 
728
+ class StablecoinMethodAttributes < Lithic::Internal::Type::BaseModel
729
+ # @!attribute chain
730
+ # Blockchain the stablecoin transfer settled on
731
+ #
732
+ # @return [String]
733
+ required :chain, String
734
+
735
+ # @!attribute transaction_hash
736
+ # On-chain transaction hash of the transfer. Null until the transfer has settled
737
+ # on chain
738
+ #
739
+ # @return [String, nil]
740
+ optional :transaction_hash, String, nil?: true
741
+
742
+ # @!method initialize(chain:, transaction_hash: nil)
743
+ # Some parameter documentations has been truncated, see
744
+ # {Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes} for more
745
+ # details.
746
+ #
747
+ # @param chain [String] Blockchain the stablecoin transfer settled on
748
+ #
749
+ # @param transaction_hash [String, nil] On-chain transaction hash of the transfer. Null until the transfer has settled o
750
+ end
751
+
695
752
  # @!method self.variants
696
- # @return [Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes)]
753
+ # @return [Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes, Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes)]
697
754
  end
698
755
 
699
756
  # @see Lithic::Models::Payment#related_account_tokens
@@ -775,6 +832,8 @@ module Lithic
775
832
  WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
776
833
  WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
777
834
  WIRE_INBOUND_DRAWDOWN_REQUEST = :WIRE_INBOUND_DRAWDOWN_REQUEST
835
+ STABLECOIN_INBOUND = :STABLECOIN_INBOUND
836
+ STABLECOIN_OUTBOUND = :STABLECOIN_OUTBOUND
778
837
 
779
838
  # @!method self.values
780
839
  # @return [Array<Symbol>]
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # @see Lithic::Resources::Payments#create_stablecoin
6
+ class PaymentCreateStablecoinParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ # @!attribute amount
11
+ # Payout amount in cents
12
+ #
13
+ # @return [Integer]
14
+ required :amount, Integer
15
+
16
+ # @!attribute blockchain_recipient_token
17
+ # Token of the blockchain recipient to send the payout to. The recipient must be
18
+ # in the `ENABLED` verification state
19
+ #
20
+ # @return [String]
21
+ required :blockchain_recipient_token, String
22
+
23
+ # @!attribute financial_account_token
24
+ # Token of the financial account the payout is funded from
25
+ #
26
+ # @return [String]
27
+ required :financial_account_token, String
28
+
29
+ # @!attribute type
30
+ # Direction of the payment. Stablecoin supports payouts only
31
+ #
32
+ # @return [Symbol, Lithic::Models::PaymentCreateStablecoinParams::Type]
33
+ required :type, enum: -> { Lithic::PaymentCreateStablecoinParams::Type }
34
+
35
+ # @!attribute token
36
+ # Customer-provided token that will serve as an idempotency token. This token will
37
+ # become the transaction token
38
+ #
39
+ # @return [String, nil]
40
+ optional :token, String
41
+
42
+ # @!attribute hold
43
+ # Optional hold to settle when this payout is initiated
44
+ #
45
+ # @return [Lithic::Models::PaymentCreateStablecoinParams::Hold, nil]
46
+ optional :hold, -> { Lithic::PaymentCreateStablecoinParams::Hold }
47
+
48
+ # @!attribute memo
49
+ # Memo recorded on the payout. Defaults to `Stablecoin payout on <chain>` when
50
+ # omitted
51
+ #
52
+ # @return [String, nil]
53
+ optional :memo, String
54
+
55
+ # @!method initialize(amount:, blockchain_recipient_token:, financial_account_token:, type:, token: nil, hold: nil, memo: nil, request_options: {})
56
+ # Some parameter documentations has been truncated, see
57
+ # {Lithic::Models::PaymentCreateStablecoinParams} for more details.
58
+ #
59
+ # @param amount [Integer] Payout amount in cents
60
+ #
61
+ # @param blockchain_recipient_token [String] Token of the blockchain recipient to send the payout to. The recipient must be i
62
+ #
63
+ # @param financial_account_token [String] Token of the financial account the payout is funded from
64
+ #
65
+ # @param type [Symbol, Lithic::Models::PaymentCreateStablecoinParams::Type] Direction of the payment. Stablecoin supports payouts only
66
+ #
67
+ # @param token [String] Customer-provided token that will serve as an idempotency token. This token will
68
+ #
69
+ # @param hold [Lithic::Models::PaymentCreateStablecoinParams::Hold] Optional hold to settle when this payout is initiated
70
+ #
71
+ # @param memo [String] Memo recorded on the payout. Defaults to `Stablecoin payout on <chain>` when omi
72
+ #
73
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
74
+
75
+ # Direction of the payment. Stablecoin supports payouts only
76
+ module Type
77
+ extend Lithic::Internal::Type::Enum
78
+
79
+ PAYMENT = :PAYMENT
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+
85
+ class Hold < Lithic::Internal::Type::BaseModel
86
+ # @!attribute token
87
+ # Token of the hold to settle when this payout is initiated
88
+ #
89
+ # @return [String]
90
+ required :token, String
91
+
92
+ # @!method initialize(token:)
93
+ # Optional hold to settle when this payout is initiated
94
+ #
95
+ # @param token [String] Token of the hold to settle when this payout is initiated
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # @see Lithic::Resources::Payments#create_stablecoin
6
+ class PaymentCreateStablecoinResponse < Lithic::Models::Payment
7
+ # @!attribute balance
8
+ # Balance
9
+ #
10
+ # @return [Lithic::Models::Balance, nil]
11
+ optional :balance, -> { Lithic::Balance }
12
+
13
+ # @!method initialize(balance: nil)
14
+ # Payment transaction
15
+ #
16
+ # @param balance [Lithic::Models::Balance] Balance
17
+ end
18
+ end
19
+ end
@@ -103,6 +103,7 @@ module Lithic
103
103
  extend Lithic::Internal::Type::Enum
104
104
 
105
105
  ACH = :ACH
106
+ STABLECOIN = :STABLECOIN
106
107
 
107
108
  # @!method self.values
108
109
  # @return [Array<Symbol>]
@@ -12,9 +12,36 @@ module Lithic
12
12
  # @return [String]
13
13
  required :payment_token, String
14
14
 
15
- # @!method initialize(payment_token:, request_options: {})
15
+ # @!attribute method_
16
+ # Settlement speed to retry the payment at. Defaults to the original payment's
17
+ # method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
18
+ # or more, or if it is submitted after the same day ACH cutoff
19
+ #
20
+ # @return [Symbol, Lithic::Models::PaymentRetryParams::Method, nil]
21
+ optional :method_, enum: -> { Lithic::PaymentRetryParams::Method }, api_name: :method
22
+
23
+ # @!method initialize(payment_token:, method_: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {Lithic::Models::PaymentRetryParams} for more details.
26
+ #
16
27
  # @param payment_token [String]
28
+ #
29
+ # @param method_ [Symbol, Lithic::Models::PaymentRetryParams::Method] Settlement speed to retry the payment at. Defaults to the original payment's met
30
+ #
17
31
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
32
+
33
+ # Settlement speed to retry the payment at. Defaults to the original payment's
34
+ # method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
35
+ # or more, or if it is submitted after the same day ACH cutoff
36
+ module Method
37
+ extend Lithic::Internal::Type::Enum
38
+
39
+ ACH_NEXT_DAY = :ACH_NEXT_DAY
40
+ ACH_SAME_DAY = :ACH_SAME_DAY
41
+
42
+ # @!method self.values
43
+ # @return [Array<Symbol>]
44
+ end
18
45
  end
19
46
  end
20
47
  end
@@ -71,6 +71,7 @@ module Lithic
71
71
  ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
72
72
  ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
73
73
  ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
74
+ STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED
74
75
 
75
76
  # @!method self.values
76
77
  # @return [Array<Symbol>]