lithic 0.18.1 → 0.20.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -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 +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  10. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  11. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -0
  12. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  13. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  14. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  15. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  16. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  17. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  18. data/lib/lithic/models/book_transfer_response.rb +4 -0
  19. data/lib/lithic/models/card.rb +2 -2
  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/embed_session_generated_webhook_event.rb +83 -0
  25. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  26. data/lib/lithic/models/event.rb +44 -12
  27. data/lib/lithic/models/event_list_params.rb +23 -6
  28. data/lib/lithic/models/event_subscription.rb +23 -6
  29. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  32. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  36. data/lib/lithic/models/financial_event.rb +8 -0
  37. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  38. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  39. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  40. data/lib/lithic/models/payment.rb +91 -6
  41. data/lib/lithic/models/payment_list_params.rb +1 -0
  42. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  43. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  44. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  45. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  46. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  47. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  48. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  49. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  50. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  51. data/lib/lithic/models.rb +10 -0
  52. data/lib/lithic/resources/blockchain_recipients.rb +57 -0
  53. data/lib/lithic/resources/card_authorizations.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +34 -2
  55. data/lib/lithic/resources/disputes_v2.rb +3 -1
  56. data/lib/lithic/resources/external_payments.rb +1 -1
  57. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  58. data/lib/lithic/resources/tokenizations.rb +1 -1
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  61. data/lib/lithic/resources/transactions.rb +4 -3
  62. data/lib/lithic/resources/webhooks.rb +1 -1
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +6 -1
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  67. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  68. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  69. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  70. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  71. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  72. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  74. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  75. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  76. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  77. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  78. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  79. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  80. data/rbi/lithic/models/card.rbi +2 -2
  81. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  82. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  83. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  84. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  85. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  86. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  87. data/rbi/lithic/models/event.rbi +70 -18
  88. data/rbi/lithic/models/event_list_params.rbi +31 -6
  89. data/rbi/lithic/models/event_subscription.rbi +31 -6
  90. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  91. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  92. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  93. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  94. data/rbi/lithic/models/financial_account.rbi +12 -0
  95. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  96. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  97. data/rbi/lithic/models/financial_event.rbi +34 -0
  98. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  99. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  100. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  101. data/rbi/lithic/models/payment.rbi +147 -4
  102. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  103. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  104. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  105. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  107. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  108. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  111. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  112. data/rbi/lithic/models.rbi +12 -0
  113. data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
  114. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  115. data/rbi/lithic/resources/cards.rbi +30 -6
  116. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  117. data/rbi/lithic/resources/external_payments.rbi +1 -1
  118. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  119. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  120. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  121. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +6 -11
  122. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  123. data/rbi/lithic/resources/transactions.rbi +8 -6
  124. data/rbi/lithic/resources/webhooks.rbi +2 -0
  125. data/sig/lithic/client.rbs +2 -0
  126. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  127. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  128. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  129. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  130. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  131. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  132. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -2
  133. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  134. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  135. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  136. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  137. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  138. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  139. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  140. data/sig/lithic/models/dispute_v2.rbs +145 -101
  141. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  142. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  143. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  144. data/sig/lithic/models/event.rbs +4 -0
  145. data/sig/lithic/models/event_list_params.rbs +4 -0
  146. data/sig/lithic/models/event_subscription.rbs +4 -0
  147. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  148. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  149. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  150. data/sig/lithic/models/financial_account.rbs +5 -0
  151. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  152. data/sig/lithic/models/financial_event.rbs +16 -0
  153. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  154. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  155. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  156. data/sig/lithic/models/payment.rbs +46 -1
  157. data/sig/lithic/models/payment_list_params.rbs +2 -1
  158. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  159. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  160. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  161. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  163. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  164. data/sig/lithic/models.rbs +10 -0
  165. data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
  166. data/sig/lithic/resources/cards.rbs +6 -0
  167. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  168. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  170. data/sig/lithic/resources/webhooks.rbs +2 -0
  171. metadata +20 -5
  172. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  173. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  174. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -83,6 +83,10 @@ module Lithic
83
83
  # Dispute evidence.
84
84
  variant -> { Lithic::DisputeEvidenceUploadFailedWebhookEvent }
85
85
 
86
+ variant -> { Lithic::EmbedSessionGeneratedWebhookEvent }
87
+
88
+ variant -> { Lithic::EmbedViewedWebhookEvent }
89
+
86
90
  variant -> { Lithic::ExternalBankAccountCreatedWebhookEvent }
87
91
 
88
92
  variant -> { Lithic::ExternalBankAccountUpdatedWebhookEvent }
@@ -826,7 +830,7 @@ module Lithic
826
830
  end
827
831
 
828
832
  # @!method self.variants
829
- # @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::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)]
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)]
830
834
  end
831
835
  end
832
836
  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
@@ -202,6 +210,7 @@ module Lithic
202
210
 
203
211
  ACH = :ACH
204
212
  WIRE = :WIRE
213
+ STABLECOIN = :STABLECOIN
205
214
  BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
206
215
  FEE = :FEE
207
216
  REWARD = :REWARD
@@ -222,6 +231,7 @@ module Lithic
222
231
  MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
223
232
  HOLD = :HOLD
224
233
  PROGRAM_FUNDING = :PROGRAM_FUNDING
234
+ PROGRAM_TRANSFER = :PROGRAM_TRANSFER
225
235
 
226
236
  # @!method self.values
227
237
  # @return [Array<Symbol>]
@@ -321,6 +331,21 @@ module Lithic
321
331
  # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
322
332
  # Reserve.
323
333
  #
334
+ # Stablecoin events:
335
+ #
336
+ # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending
337
+ # release to available balance.
338
+ # - `STABLECOIN_INITIATED` - Stablecoin withdrawal initiated, with the funds
339
+ # placed on hold.
340
+ # - `STABLECOIN_REVIEWED` - Stablecoin pay-in or withdrawal has completed the
341
+ # review process.
342
+ # - `STABLECOIN_SENT` - Stablecoin withdrawal accepted for on-chain submission to
343
+ # the destination address, and pending confirmation.
344
+ # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance,
345
+ # or stablecoin withdrawal confirmed on-chain.
346
+ # - `STABLECOIN_REJECTED` - Stablecoin withdrawal failed and the hold placed at
347
+ # initiation has been reversed.
348
+ #
324
349
  # @return [Symbol, Lithic::Models::Payment::Event::Type]
325
350
  required :type, enum: -> { Lithic::Payment::Event::Type }
326
351
 
@@ -334,7 +359,9 @@ module Lithic
334
359
  # @!attribute external_id
335
360
  # Payment event external ID. For ACH transactions, this is the ACH trace number.
336
361
  # For inbound wire transfers, this is the IMAD (Input Message Accountability
337
- # Data).
362
+ # Data). For stablecoin payments, this is the on-chain transaction hash of the
363
+ # transfer; it is present on events that reflect on-chain activity and null on
364
+ # internal lifecycle events.
338
365
  #
339
366
  # @return [String, nil]
340
367
  optional :external_id, String, nil?: true
@@ -430,6 +457,21 @@ module Lithic
430
457
  # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
431
458
  # Reserve.
432
459
  #
460
+ # Stablecoin events:
461
+ #
462
+ # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending
463
+ # release to available balance.
464
+ # - `STABLECOIN_INITIATED` - Stablecoin withdrawal initiated, with the funds
465
+ # placed on hold.
466
+ # - `STABLECOIN_REVIEWED` - Stablecoin pay-in or withdrawal has completed the
467
+ # review process.
468
+ # - `STABLECOIN_SENT` - Stablecoin withdrawal accepted for on-chain submission to
469
+ # the destination address, and pending confirmation.
470
+ # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance,
471
+ # or stablecoin withdrawal confirmed on-chain.
472
+ # - `STABLECOIN_REJECTED` - Stablecoin withdrawal failed and the hold placed at
473
+ # initiation has been reversed.
474
+ #
433
475
  # @see Lithic::Models::Payment::Event#type
434
476
  module Type
435
477
  extend Lithic::Internal::Type::Enum
@@ -456,6 +498,12 @@ module Lithic
456
498
  WIRE_RETURN_OUTBOUND_SENT = :WIRE_RETURN_OUTBOUND_SENT
457
499
  WIRE_RETURN_OUTBOUND_SETTLED = :WIRE_RETURN_OUTBOUND_SETTLED
458
500
  WIRE_RETURN_OUTBOUND_REJECTED = :WIRE_RETURN_OUTBOUND_REJECTED
501
+ STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED
502
+ STABLECOIN_INITIATED = :STABLECOIN_INITIATED
503
+ STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED
504
+ STABLECOIN_SENT = :STABLECOIN_SENT
505
+ STABLECOIN_SETTLED = :STABLECOIN_SETTLED
506
+ STABLECOIN_REJECTED = :STABLECOIN_REJECTED
459
507
 
460
508
  # @!method self.values
461
509
  # @return [Array<Symbol>]
@@ -486,6 +534,7 @@ module Lithic
486
534
  ACH_NEXT_DAY = :ACH_NEXT_DAY
487
535
  ACH_SAME_DAY = :ACH_SAME_DAY
488
536
  WIRE = :WIRE
537
+ STABLECOIN = :STABLECOIN
489
538
 
490
539
  # @!method self.values
491
540
  # @return [Array<Symbol>]
@@ -501,6 +550,8 @@ module Lithic
501
550
 
502
551
  variant -> { Lithic::Payment::MethodAttributes::WireMethodAttributes }
503
552
 
553
+ variant -> { Lithic::Payment::MethodAttributes::StablecoinMethodAttributes }
554
+
504
555
  class ACHMethodAttributes < Lithic::Internal::Type::BaseModel
505
556
  # @!attribute sec_code
506
557
  # SEC code for ACH transaction
@@ -539,6 +590,12 @@ module Lithic
539
590
  # @return [String, nil]
540
591
  optional :receipt_routing_number, String, nil?: true
541
592
 
593
+ # @!attribute recipient_name
594
+ # Name of the recipient on ACH receipts. Reflects the originating bank's record
595
+ #
596
+ # @return [String, nil]
597
+ optional :recipient_name, String, nil?: true
598
+
542
599
  # @!attribute retries
543
600
  # Number of retries attempted
544
601
  #
@@ -557,7 +614,7 @@ module Lithic
557
614
  # @return [Array<String>, nil]
558
615
  optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String]
559
616
 
560
- # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, override_company_name: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil)
617
+ # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, override_company_name: nil, receipt_routing_number: nil, recipient_name: nil, retries: nil, return_reason_code: nil, trace_numbers: nil)
561
618
  # Some parameter documentations has been truncated, see
562
619
  # {Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes} for more
563
620
  # details.
@@ -574,6 +631,8 @@ module Lithic
574
631
  #
575
632
  # @param receipt_routing_number [String, nil] Receipt routing number
576
633
  #
634
+ # @param recipient_name [String, nil] Name of the recipient on ACH receipts. Reflects the originating bank's record
635
+ #
577
636
  # @param retries [Integer, nil] Number of retries attempted
578
637
  #
579
638
  # @param return_reason_code [String, nil] Return reason code if the transaction was returned
@@ -665,8 +724,32 @@ module Lithic
665
724
  end
666
725
  end
667
726
 
727
+ class StablecoinMethodAttributes < Lithic::Internal::Type::BaseModel
728
+ # @!attribute chain
729
+ # Blockchain the stablecoin transfer settled on
730
+ #
731
+ # @return [String]
732
+ required :chain, String
733
+
734
+ # @!attribute transaction_hash
735
+ # On-chain transaction hash of the transfer. Null until the transfer has settled
736
+ # on chain
737
+ #
738
+ # @return [String, nil]
739
+ optional :transaction_hash, String, nil?: true
740
+
741
+ # @!method initialize(chain:, transaction_hash: nil)
742
+ # Some parameter documentations has been truncated, see
743
+ # {Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes} for more
744
+ # details.
745
+ #
746
+ # @param chain [String] Blockchain the stablecoin transfer settled on
747
+ #
748
+ # @param transaction_hash [String, nil] On-chain transaction hash of the transfer. Null until the transfer has settled o
749
+ end
750
+
668
751
  # @!method self.variants
669
- # @return [Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes)]
752
+ # @return [Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes, Lithic::Models::Payment::MethodAttributes::StablecoinMethodAttributes)]
670
753
  end
671
754
 
672
755
  # @see Lithic::Models::Payment#related_account_tokens
@@ -748,6 +831,8 @@ module Lithic
748
831
  WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
749
832
  WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
750
833
  WIRE_INBOUND_DRAWDOWN_REQUEST = :WIRE_INBOUND_DRAWDOWN_REQUEST
834
+ STABLECOIN_INBOUND = :STABLECOIN_INBOUND
835
+ STABLECOIN_OUTBOUND = :STABLECOIN_OUTBOUND
751
836
 
752
837
  # @!method self.values
753
838
  # @return [Array<Symbol>]
@@ -124,6 +124,7 @@ module Lithic
124
124
  DECLINED = :DECLINED
125
125
  PENDING = :PENDING
126
126
  RETURNED = :RETURNED
127
+ REVERSED = :REVERSED
127
128
  SETTLED = :SETTLED
128
129
 
129
130
  # @!method self.values
@@ -8,7 +8,7 @@ module Lithic
8
8
  include Lithic::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute cvv
11
- # The three digit cvv for the card.
11
+ # The three or four digit CVV for the card. AMEX cards use four digit CVVs.
12
12
  #
13
13
  # @return [String]
14
14
  required :cvv, String
@@ -63,7 +63,7 @@ module Lithic
63
63
  # Some parameter documentations has been truncated, see
64
64
  # {Lithic::Models::TokenizationSimulateParams} for more details.
65
65
  #
66
- # @param cvv [String] The three digit cvv for the card.
66
+ # @param cvv [String] The three or four digit CVV for the card. AMEX cards use four digit CVVs.
67
67
  #
68
68
  # @param expiration_date [String] The expiration date of the card in 'MM/YY' format.
69
69
  #
@@ -5,16 +5,21 @@ module Lithic
5
5
  module TransactionMonitoring
6
6
  class CaseEntity < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute entity_token
8
- # Globally unique identifier for the associated entity
8
+ # Globally unique identifier for the associated entity: the card token for `CARD`,
9
+ # the account token for `ACCOUNT`, and the financial account token for
10
+ # `FINANCIAL_ACCOUNT`. Null for `PROGRAM`, which is not scoped to an individual
11
+ # entity
9
12
  #
10
- # @return [String]
11
- required :entity_token, String
13
+ # @return [String, nil]
14
+ required :entity_token, String, nil?: true
12
15
 
13
16
  # @!attribute entity_type
14
17
  # The type of entity a case is associated with:
15
18
  #
16
19
  # - `CARD` - The case is associated with a card
17
20
  # - `ACCOUNT` - The case is associated with an account
21
+ # - `FINANCIAL_ACCOUNT` - The case is associated with a financial account
22
+ # - `PROGRAM` - The case is associated with the whole program
18
23
  #
19
24
  # @return [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType]
20
25
  required :entity_type, enum: -> { Lithic::TransactionMonitoring::CaseEntity::EntityType }
@@ -25,7 +30,7 @@ module Lithic
25
30
  #
26
31
  # The entity a case is associated with
27
32
  #
28
- # @param entity_token [String] Globally unique identifier for the associated entity
33
+ # @param entity_token [String, nil] Globally unique identifier for the associated entity: the card token for `CARD`,
29
34
  #
30
35
  # @param entity_type [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType] The type of entity a case is associated with:
31
36
 
@@ -33,6 +38,8 @@ module Lithic
33
38
  #
34
39
  # - `CARD` - The case is associated with a card
35
40
  # - `ACCOUNT` - The case is associated with an account
41
+ # - `FINANCIAL_ACCOUNT` - The case is associated with a financial account
42
+ # - `PROGRAM` - The case is associated with the whole program
36
43
  #
37
44
  # @see Lithic::Models::TransactionMonitoring::CaseEntity#entity_type
38
45
  module EntityType
@@ -40,6 +47,8 @@ module Lithic
40
47
 
41
48
  CARD = :CARD
42
49
  ACCOUNT = :ACCOUNT
50
+ FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
51
+ PROGRAM = :PROGRAM
43
52
 
44
53
  # @!method self.values
45
54
  # @return [Array<Symbol>]
@@ -49,7 +49,9 @@ module Lithic
49
49
  optional :ending_before, String
50
50
 
51
51
  # @!attribute entity_token
52
- # Only return cases associated with the provided entity.
52
+ # Only return cases associated with the provided entity. Accepts a card, account,
53
+ # or financial account token. Cases with a `PROGRAM` entity have no entity token
54
+ # and are never returned by this filter.
53
55
  #
54
56
  # @return [String, nil]
55
57
  optional :entity_token, String
@@ -113,7 +115,7 @@ module Lithic
113
115
  #
114
116
  # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
115
117
  #
116
- # @param entity_token [String] Only return cases associated with the provided entity.
118
+ # @param entity_token [String] Only return cases associated with the provided entity. Accepts a card, account,
117
119
  #
118
120
  # @param page_size [Integer] Page size (for pagination).
119
121
  #
@@ -34,17 +34,11 @@ module Lithic
34
34
  optional :priority, enum: -> { Lithic::TransactionMonitoring::CasePriority }
35
35
 
36
36
  # @!attribute resolution
37
- # Outcome recorded when a case is resolved:
37
+ # Resolution to record on the case. Must be one of the `allowed_resolutions`
38
+ # configured on the case's queue, otherwise the request is rejected with a `400`
38
39
  #
39
- # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent
40
- # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud
41
- # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false
42
- # positive
43
- # - `NO_ACTION_REQUIRED` - No further action is required
44
- # - `ESCALATED_EXTERNAL` - The case was escalated to an external party
45
- #
46
- # @return [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil]
47
- optional :resolution, enum: -> { Lithic::TransactionMonitoring::ResolutionOutcome }
40
+ # @return [String, nil]
41
+ optional :resolution, String
48
42
 
49
43
  # @!attribute resolution_notes
50
44
  # Notes describing the resolution
@@ -97,7 +91,7 @@ module Lithic
97
91
  #
98
92
  # @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency
99
93
  #
100
- # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome] Outcome recorded when a case is resolved:
94
+ # @param resolution [String] Resolution to record on the case. Must be one of the
101
95
  #
102
96
  # @param resolution_notes [String] Notes describing the resolution
103
97
  #
@@ -54,17 +54,11 @@ module Lithic
54
54
  required :queue_token, String
55
55
 
56
56
  # @!attribute resolution
57
- # Outcome recorded when a case is resolved:
57
+ # Outcome recorded when the case was resolved, from the `allowed_resolutions`
58
+ # configured on the case's queue
58
59
  #
59
- # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent
60
- # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud
61
- # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false
62
- # positive
63
- # - `NO_ACTION_REQUIRED` - No further action is required
64
- # - `ESCALATED_EXTERNAL` - The case was escalated to an external party
65
- #
66
- # @return [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil]
67
- required :resolution, enum: -> { Lithic::TransactionMonitoring::ResolutionOutcome }, nil?: true
60
+ # @return [String, nil]
61
+ required :resolution, String, nil?: true
68
62
 
69
63
  # @!attribute resolution_notes
70
64
  # Free-form notes describing the resolution
@@ -145,7 +139,7 @@ module Lithic
145
139
  #
146
140
  # @param queue_token [String] Token of the queue the case belongs to
147
141
  #
148
- # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil] Outcome recorded when a case is resolved:
142
+ # @param resolution [String, nil] Outcome recorded when the case was resolved, from the `allowed_resolutions`
149
143
  #
150
144
  # @param resolution_notes [String, nil] Free-form notes describing the resolution
151
145
  #
@@ -11,6 +11,13 @@ module Lithic
11
11
  # @return [String]
12
12
  required :token, String
13
13
 
14
+ # @!attribute allowed_resolutions
15
+ # Resolutions that can be recorded on cases in this queue. Always the effective
16
+ # list: the queue's own values when it defines them, otherwise the default list
17
+ #
18
+ # @return [Array<String>]
19
+ required :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String]
20
+
14
21
  # @!attribute case_counts
15
22
  # Number of cases in the queue, broken down by status. A status is omitted when
16
23
  # the queue has no cases in that status
@@ -42,7 +49,7 @@ module Lithic
42
49
  # @return [Time]
43
50
  required :updated, Time
44
51
 
45
- # @!method initialize(token:, case_counts:, created:, description:, name:, updated:)
52
+ # @!method initialize(token:, allowed_resolutions:, case_counts:, created:, description:, name:, updated:)
46
53
  # Some parameter documentations has been truncated, see
47
54
  # {Lithic::Models::TransactionMonitoring::Queue} for more details.
48
55
  #
@@ -50,6 +57,8 @@ module Lithic
50
57
  #
51
58
  # @param token [String] Globally unique identifier for the queue
52
59
  #
60
+ # @param allowed_resolutions [Array<String>] Resolutions that can be recorded on cases in this queue. Always the effective
61
+ #
53
62
  # @param case_counts [Lithic::Models::TransactionMonitoring::Queue::CaseCounts] Number of cases in the queue, broken down by status. A status is omitted
54
63
  #
55
64
  # @param created [Time] Date and time at which the queue was created
@@ -14,15 +14,28 @@ module Lithic
14
14
  # @return [String]
15
15
  required :name, String
16
16
 
17
+ # @!attribute allowed_resolutions
18
+ # Resolutions that can be recorded on cases in this queue. Omit or send `null` to
19
+ # use the default list. Values are free-form labels and must be non-empty and
20
+ # unique
21
+ #
22
+ # @return [Array<String>, nil]
23
+ optional :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String], nil?: true
24
+
17
25
  # @!attribute description
18
26
  # Optional description of the queue
19
27
  #
20
28
  # @return [String, nil]
21
29
  optional :description, String, nil?: true
22
30
 
23
- # @!method initialize(name:, description: nil, request_options: {})
31
+ # @!method initialize(name:, allowed_resolutions: nil, description: nil, request_options: {})
32
+ # Some parameter documentations has been truncated, see
33
+ # {Lithic::Models::TransactionMonitoring::QueueCreateParams} for more details.
34
+ #
24
35
  # @param name [String] Human-readable name of the queue
25
36
  #
37
+ # @param allowed_resolutions [Array<String>, nil] Resolutions that can be recorded on cases in this queue. Omit or send `null` to
38
+ #
26
39
  # @param description [String, nil] Optional description of the queue
27
40
  #
28
41
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
@@ -13,6 +13,15 @@ module Lithic
13
13
  # @return [String]
14
14
  required :queue_token, String
15
15
 
16
+ # @!attribute allowed_resolutions
17
+ # New list of resolutions that can be recorded on cases in this queue, or `null`
18
+ # to revert to the default list. Values are free-form labels and must be non-empty
19
+ # and unique. Changing the list only affects what is selectable going forward; the
20
+ # `resolution` already stored on a case is preserved as-is
21
+ #
22
+ # @return [Array<String>, nil]
23
+ optional :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String], nil?: true
24
+
16
25
  # @!attribute description
17
26
  # New description for the queue, or `null` to clear it
18
27
  #
@@ -25,9 +34,14 @@ module Lithic
25
34
  # @return [String, nil]
26
35
  optional :name, String
27
36
 
28
- # @!method initialize(queue_token:, description: nil, name: nil, request_options: {})
37
+ # @!method initialize(queue_token:, allowed_resolutions: nil, description: nil, name: nil, request_options: {})
38
+ # Some parameter documentations has been truncated, see
39
+ # {Lithic::Models::TransactionMonitoring::QueueUpdateParams} for more details.
40
+ #
29
41
  # @param queue_token [String]
30
42
  #
43
+ # @param allowed_resolutions [Array<String>, nil] New list of resolutions that can be recorded on cases in this queue, or `null` t
44
+ #
31
45
  # @param description [String, nil] New description for the queue, or `null` to clear it
32
46
  #
33
47
  # @param name [String] New name for the queue
@@ -20,9 +20,10 @@ module Lithic
20
20
  # example, entering 100 in this field will result in a -100 amount in the
21
21
  # transaction, if the original authorization is a credit authorization.
22
22
  #
23
- # If `amount` is not set, the full amount of the transaction will be cleared.
24
- # Transactions that have already cleared, either partially or fully, cannot be
25
- # cleared again using this endpoint.
23
+ # If `amount` is not set, the full amount of the transaction will be cleared. This
24
+ # endpoint may be called multiple times against the same authorization to simulate
25
+ # a multiple-completion scenario, with each call creating a separate clearing
26
+ # event.
26
27
  #
27
28
  # @return [Integer, nil]
28
29
  optional :amount, Integer
data/lib/lithic/models.rb CHANGED
@@ -112,6 +112,10 @@ module Lithic
112
112
 
113
113
  BalanceUpdatedWebhookEvent = Lithic::Models::BalanceUpdatedWebhookEvent
114
114
 
115
+ BlockchainRecipient = Lithic::Models::BlockchainRecipient
116
+
117
+ BlockchainRecipientCreateParams = Lithic::Models::BlockchainRecipientCreateParams
118
+
115
119
  BookTransferCreateParams = Lithic::Models::BookTransferCreateParams
116
120
 
117
121
  BookTransferListParams = Lithic::Models::BookTransferListParams
@@ -174,6 +178,8 @@ module Lithic
174
178
 
175
179
  CardProvisionParams = Lithic::Models::CardProvisionParams
176
180
 
181
+ CardReassignAccountParams = Lithic::Models::CardReassignAccountParams
182
+
177
183
  CardReissuedWebhookEvent = Lithic::Models::CardReissuedWebhookEvent
178
184
 
179
185
  CardReissueParams = Lithic::Models::CardReissueParams
@@ -290,6 +296,10 @@ module Lithic
290
296
 
291
297
  Document = Lithic::Models::Document
292
298
 
299
+ EmbedSessionGeneratedWebhookEvent = Lithic::Models::EmbedSessionGeneratedWebhookEvent
300
+
301
+ EmbedViewedWebhookEvent = Lithic::Models::EmbedViewedWebhookEvent
302
+
293
303
  Event = Lithic::Models::Event
294
304
 
295
305
  EventListAttemptsParams = Lithic::Models::EventListAttemptsParams
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Resources
5
+ class BlockchainRecipients
6
+ # Some parameter documentations has been truncated, see
7
+ # {Lithic::Models::BlockchainRecipientCreateParams} for more details.
8
+ #
9
+ # Register a blockchain address as a withdrawal destination for a financial
10
+ # account
11
+ #
12
+ # The recipient is created with a `PENDING` verification state and cannot receive
13
+ # a payout until screening of the address completes. Registering an address that
14
+ # is already registered to the same financial account returns the existing
15
+ # recipient and its current verification state, rather than creating a second one
16
+ #
17
+ # @overload create(account_token:, address:, chain:, owner:, owner_type:, address_tag: nil, name: nil, request_options: {})
18
+ #
19
+ # @param account_token [String] The financial account the blockchain recipient belongs to
20
+ #
21
+ # @param address [String] The blockchain address funds will be withdrawn to
22
+ #
23
+ # @param chain [String] The blockchain network that the address belongs to
24
+ #
25
+ # @param owner [String] Legal name of the business or individual who owns the blockchain address
26
+ #
27
+ # @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type
28
+ #
29
+ # @param address_tag [String] An optional tag or memo used by some chains to identify the destination of a tra
30
+ #
31
+ # @param name [String] The nickname for this blockchain recipient
32
+ #
33
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
34
+ #
35
+ # @return [Lithic::Models::BlockchainRecipient]
36
+ #
37
+ # @see Lithic::Models::BlockchainRecipientCreateParams
38
+ def create(params)
39
+ parsed, options = Lithic::BlockchainRecipientCreateParams.dump_request(params)
40
+ @client.request(
41
+ method: :post,
42
+ path: "v1/blockchain_recipients",
43
+ body: parsed,
44
+ model: Lithic::BlockchainRecipient,
45
+ options: options
46
+ )
47
+ end
48
+
49
+ # @api private
50
+ #
51
+ # @param client [Lithic::Client]
52
+ def initialize(client:)
53
+ @client = client
54
+ end
55
+ end
56
+ end
57
+ end
@@ -8,7 +8,7 @@ module Lithic
8
8
  #
9
9
  # Card program's response to Authorization Challenge. Programs that have
10
10
  # Authorization Challenges configured as Out of Band receive a
11
- # [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge)
11
+ # [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook)
12
12
  # webhook when an authorization attempt triggers a challenge. The card program
13
13
  # should respond using this endpoint after the cardholder completes the challenge.
14
14
  #