lithic 0.15.0 → 0.17.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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +4 -1
  6. data/lib/lithic/models/account.rb +2 -2
  7. data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
  8. data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
  9. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
  10. data/lib/lithic/models/auth_rules/auth_rule.rb +18 -12
  11. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  12. data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
  13. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
  14. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
  15. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  16. data/lib/lithic/models/auth_rules/rule_feature.rb +52 -7
  17. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  18. data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -27
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  20. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
  21. data/lib/lithic/models/card.rb +1 -1
  22. data/lib/lithic/models/card_authorization.rb +117 -11
  23. data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
  24. data/lib/lithic/models/payment.rb +13 -1
  25. data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
  26. data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
  27. data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
  28. data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
  29. data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
  30. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
  31. data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
  32. data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
  33. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
  34. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
  35. data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
  36. data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
  37. data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
  38. data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
  39. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
  40. data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
  41. data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
  42. data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
  43. data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
  44. data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
  45. data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
  46. data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
  47. data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
  48. data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
  49. data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
  50. data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
  51. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
  52. data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
  53. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
  54. data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
  55. data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
  56. data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
  57. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
  58. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
  59. data/lib/lithic/models/transaction_route_params.rb +29 -0
  60. data/lib/lithic/models.rb +4 -0
  61. data/lib/lithic/resources/account_holders/entities.rb +1 -1
  62. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  63. data/lib/lithic/resources/cards.rb +2 -2
  64. data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
  65. data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
  66. data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
  67. data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
  68. data/lib/lithic/resources/transaction_monitoring.rb +22 -0
  69. data/lib/lithic/resources/transactions.rb +25 -0
  70. data/lib/lithic/version.rb +1 -1
  71. data/lib/lithic.rb +42 -0
  72. data/rbi/lithic/client.rbi +3 -0
  73. data/rbi/lithic/models/account.rbi +3 -3
  74. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
  75. data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
  76. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
  77. data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -9
  78. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  79. data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
  80. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
  81. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
  82. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  83. data/rbi/lithic/models/auth_rules/rule_feature.rbi +77 -6
  84. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -0
  85. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -27
  86. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  87. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
  88. data/rbi/lithic/models/card.rbi +2 -2
  89. data/rbi/lithic/models/card_authorization.rbi +246 -17
  90. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
  91. data/rbi/lithic/models/payment.rbi +13 -0
  92. data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
  93. data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
  94. data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
  95. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
  96. data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
  97. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
  98. data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
  99. data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
  100. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
  101. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
  102. data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
  103. data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
  104. data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
  105. data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
  107. data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
  108. data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
  109. data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
  110. data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
  111. data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
  112. data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
  113. data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
  114. data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
  115. data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
  116. data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
  117. data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
  118. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
  119. data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
  120. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
  121. data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
  122. data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
  123. data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
  124. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
  125. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
  126. data/rbi/lithic/models/transaction_route_params.rbi +49 -0
  127. data/rbi/lithic/models.rbi +4 -0
  128. data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
  129. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  130. data/rbi/lithic/resources/cards.rbi +2 -2
  131. data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
  132. data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
  133. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
  134. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
  135. data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
  136. data/rbi/lithic/resources/transactions.rbi +18 -0
  137. data/sig/lithic/client.rbs +2 -0
  138. data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
  139. data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
  140. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
  141. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  142. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  143. data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
  144. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
  145. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
  146. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  147. data/sig/lithic/models/auth_rules/rule_feature.rbs +31 -0
  148. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  149. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  150. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
  151. data/sig/lithic/models/card_authorization.rbs +84 -10
  152. data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
  153. data/sig/lithic/models/payment.rbs +7 -0
  154. data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
  155. data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
  156. data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
  157. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
  158. data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
  159. data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
  160. data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
  161. data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
  162. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
  163. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
  164. data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
  165. data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
  166. data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
  167. data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
  168. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
  169. data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
  170. data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
  171. data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
  172. data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
  173. data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
  174. data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
  175. data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
  176. data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
  177. data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
  178. data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
  179. data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
  180. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
  181. data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
  182. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
  183. data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
  184. data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
  185. data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
  186. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
  187. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
  188. data/sig/lithic/models/transaction_route_params.rbs +28 -0
  189. data/sig/lithic/models.rbs +4 -0
  190. data/sig/lithic/resources/account_holders/entities.rbs +1 -1
  191. data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
  192. data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
  193. data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
  194. data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
  195. data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
  196. data/sig/lithic/resources/transactions.rbs +6 -0
  197. metadata +128 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e10259688d627bb93eef2d363059f0e306c888a9a3220dd82efee18e717f1ba
4
- data.tar.gz: ba6a76715e31f336634d5fad97de74ff5f272aa196ec23912e0096ff742ffac6
3
+ metadata.gz: 6422fc49a66116c5ba0ad2a2cf0a1ac7dccaa6c8c4790d37a3867bbaed2753d0
4
+ data.tar.gz: 2e22b02922477bc98f07bd78b891b699974f715cd8b7e351ac6dbf8a26129f48
5
5
  SHA512:
6
- metadata.gz: a46972e61a38e973879e34b963d742fe12faa0394569ab7ba090dc9702962e19525c71cf54d8958fe44b3f68608777ffc0a6a83b4fb3f1a743367921abc01fde
7
- data.tar.gz: db062730b149f7841c0c8f7463a00219b4b15ad825f264f793ffb666f2b0bf0fea41b5ef94698fa4afd62f4f094aeac39ef65c989a817b60d64f8c72ae373014
6
+ metadata.gz: 107f3c8df2824b8f4ffdc719cdf455abee3ebc7ecde125e0a1c8a1b4c83c527da7625c7fdfaa0528b9fb274c6371659fd64cb746ac71cf963e17a487d38e729f
7
+ data.tar.gz: 9607fc762f7962dd12e4e43d592251ac01a6092146695f38ecf96d737ddf0ce1a9acab75ab9bb3535995be202231667335687e3d11aeea4fc8c9ba024c855779
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 (2026-06-22)
4
+
5
+ Full Changelog: [v0.16.0...v0.17.0](https://github.com/lithic-com/lithic-ruby/compare/v0.16.0...v0.17.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add ach payment update actions/results, card transaction results to auth_rules ([a761a6f](https://github.com/lithic-com/lithic-ruby/commit/a761a6f5fccb557d7fa03d81043b28d685aaec82))
10
+ * **api:** add ACH_EVENT_TYPE to auth rules conditional ACH payment conditions ([7a83081](https://github.com/lithic-com/lithic-ruby/commit/7a83081818121cbf3cfdb51c1285cfdcf297bb4c))
11
+
12
+ ## 0.16.0 (2026-06-16)
13
+
14
+ Full Changelog: [v0.15.0...v0.16.0](https://github.com/lithic-com/lithic-ruby/compare/v0.15.0...v0.16.0)
15
+
16
+ ### Features
17
+
18
+ * **api:** add CardTransactionFeature to auth_rules RuleFeature ([1071dc2](https://github.com/lithic-com/lithic-ruby/commit/1071dc23ec9899d915a1b6211ca2a876ab1b223d))
19
+ * **api:** add condition attributes, interval/unit/scope to auth_rules ([28a4b65](https://github.com/lithic-com/lithic-ruby/commit/28a4b658b44f1aff6e6902fa6c7b32b0e4d2e197))
20
+ * **api:** Add created field to Challenge object ([e442303](https://github.com/lithic-com/lithic-ruby/commit/e44230324af07930c8cc84b3035677df54bc031f))
21
+ * **api:** add day_of_period field to loan_tape ([71ab28b](https://github.com/lithic-com/lithic-ruby/commit/71ab28b5af8e6118b2133bc8ed190520b6be2396))
22
+ * **api:** add hold_adjustment_action variant to auth_rules action parameter ([bae640f](https://github.com/lithic-com/lithic-ruby/commit/bae640faf01eef0b956cb24eaa73f92c40536082))
23
+ * **api:** add NVS name_validation fields to ASA request and response ([5747fda](https://github.com/lithic-com/lithic-ruby/commit/5747fda7c1065d257bc60d03e770f66be8677d48))
24
+ * **api:** add route method to transactions ([74346e6](https://github.com/lithic-com/lithic-ruby/commit/74346e6f43f4c5153960d99954b7c120296c640f))
25
+ * **api:** add tags field to Payment model ([745a6cd](https://github.com/lithic-com/lithic-ruby/commit/745a6cd3d832409fdcbbd191f06de40f7a8f2ecb))
26
+ * **api:** add transaction_monitoring with cases/comments/files/queues, refactor entity_type ([37af713](https://github.com/lithic-com/lithic-ruby/commit/37af713a243f3380aea47019af34fe1d698bae35))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * **client:** send content-type header for requests with an omitted optional body ([d5b5510](https://github.com/lithic-com/lithic-ruby/commit/d5b551022172beeeb6feccd1886a130ece8a9cc9))
32
+
33
+
34
+ ### Documentation
35
+
36
+ * **api:** update support contact from email to URL in account/card resources ([bd7f679](https://github.com/lithic-com/lithic-ruby/commit/bd7f67927187e7daa99059f5e9190c1df79424c3))
37
+
3
38
  ## 0.15.0 (2026-05-27)
4
39
 
5
40
  Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-ruby/compare/v0.14.0...v0.15.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "lithic", "~> 0.15.0"
27
+ gem "lithic", "~> 0.17.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
data/lib/lithic/client.rb CHANGED
@@ -35,6 +35,9 @@ module Lithic
35
35
  # @return [Lithic::Resources::AuthRules]
36
36
  attr_reader :auth_rules
37
37
 
38
+ # @return [Lithic::Resources::TransactionMonitoring]
39
+ attr_reader :transaction_monitoring
40
+
38
41
  # @return [Lithic::Resources::AuthStreamEnrollment]
39
42
  attr_reader :auth_stream_enrollment
40
43
 
@@ -221,6 +224,7 @@ module Lithic
221
224
  @accounts = Lithic::Resources::Accounts.new(client: self)
222
225
  @account_holders = Lithic::Resources::AccountHolders.new(client: self)
223
226
  @auth_rules = Lithic::Resources::AuthRules.new(client: self)
227
+ @transaction_monitoring = Lithic::Resources::TransactionMonitoring.new(client: self)
224
228
  @auth_stream_enrollment = Lithic::Resources::AuthStreamEnrollment.new(client: self)
225
229
  @tokenization_decisioning = Lithic::Resources::TokenizationDecisioning.new(client: self)
226
230
  @tokenizations = Lithic::Resources::Tokenizations.new(client: self)
@@ -306,7 +306,10 @@ module Lithic
306
306
  Lithic::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
307
307
  end
308
308
 
309
- headers.delete("content-type") if body.nil?
309
+ # Generated methods always pass `req[:body]` for operations that define a
310
+ # request body, so only elide the content-type header when the operation
311
+ # has no body at all, not when an optional body param was omitted.
312
+ headers.delete("content-type") if body.nil? && !req.key?(:body)
310
313
 
311
314
  url = Lithic::Internal::Util.join_parsed_uri(
312
315
  @base_url_components,
@@ -38,7 +38,7 @@ module Lithic
38
38
  # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
39
39
  # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
40
40
  # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
41
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
41
+ # [support.lithic.com](https://support.lithic.com/) if you believe this was done
42
42
  # by mistake.
43
43
  #
44
44
  # @return [Symbol, Lithic::Models::Account::State]
@@ -177,7 +177,7 @@ module Lithic
177
177
  # accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
178
178
  # Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
179
179
  # failure to pass KYB/KYC or for risk/compliance reasons. Please contact
180
- # [support@lithic.com](mailto:support@lithic.com) if you believe this was done
180
+ # [support.lithic.com](https://support.lithic.com/) if you believe this was done
181
181
  # by mistake.
182
182
  #
183
183
  # @see Lithic::Models::Account#state
@@ -62,8 +62,8 @@ module Lithic
62
62
  # @!attribute type
63
63
  # The type of entity
64
64
  #
65
- # @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type]
66
- required :type, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Type }
65
+ # @return [Symbol, Lithic::Models::TransactionMonitoring::EntityType]
66
+ required :type, enum: -> { Lithic::TransactionMonitoring::EntityType }
67
67
 
68
68
  # @!method initialize(token:, account_holder_token:, address:, dob:, email:, first_name:, last_name:, phone_number:, status:, type:)
69
69
  # Information about an entity associated with an account holder
@@ -86,7 +86,7 @@ module Lithic
86
86
  #
87
87
  # @param status [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status] The status of the entity
88
88
  #
89
- # @param type [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type] The type of entity
89
+ # @param type [Symbol, Lithic::Models::TransactionMonitoring::EntityType] The type of entity
90
90
 
91
91
  # @see Lithic::Models::AccountHolders::AccountHolderEntity#address
92
92
  class Address < Lithic::Internal::Type::BaseModel
@@ -162,19 +162,6 @@ module Lithic
162
162
  # @!method self.values
163
163
  # @return [Array<Symbol>]
164
164
  end
165
-
166
- # The type of entity
167
- #
168
- # @see Lithic::Models::AccountHolders::AccountHolderEntity#type
169
- module Type
170
- extend Lithic::Internal::Type::Enum
171
-
172
- BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
173
- CONTROL_PERSON = :CONTROL_PERSON
174
-
175
- # @!method self.values
176
- # @return [Array<Symbol>]
177
- end
178
165
  end
179
166
  end
180
167
 
@@ -63,8 +63,8 @@ module Lithic
63
63
  # @!attribute type
64
64
  # The type of entity to create on the account holder
65
65
  #
66
- # @return [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type]
67
- required :type, enum: -> { Lithic::AccountHolders::EntityCreateParams::Type }
66
+ # @return [Symbol, Lithic::Models::TransactionMonitoring::EntityType]
67
+ required :type, enum: -> { Lithic::TransactionMonitoring::EntityType }
68
68
 
69
69
  # @!method initialize(account_holder_token:, address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {})
70
70
  # Some parameter documentations has been truncated, see
@@ -86,7 +86,7 @@ module Lithic
86
86
  #
87
87
  # @param phone_number [String] Individual's phone number, entered in E.164 format.
88
88
  #
89
- # @param type [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type] The type of entity to create on the account holder
89
+ # @param type [Symbol, Lithic::Models::TransactionMonitoring::EntityType] The type of entity to create on the account holder
90
90
  #
91
91
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
92
92
 
@@ -149,17 +149,6 @@ module Lithic
149
149
  #
150
150
  # @param address2 [String] Unit or apartment number (if applicable).
151
151
  end
152
-
153
- # The type of entity to create on the account holder
154
- module Type
155
- extend Lithic::Internal::Type::Enum
156
-
157
- BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
158
- CONTROL_PERSON = :CONTROL_PERSON
159
-
160
- # @!method self.values
161
- # @return [Array<Symbol>]
162
- end
163
152
  end
164
153
  end
165
154
  end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ module ACHPaymentUpdateAction
7
+ extend Lithic::Internal::Type::Union
8
+
9
+ variant -> { Lithic::AuthRules::ACHPaymentUpdateAction::TagAction }
10
+
11
+ variant -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction }
12
+
13
+ class TagAction < Lithic::Internal::Type::BaseModel
14
+ # @!attribute key
15
+ # The key of the tag to apply to the payment
16
+ #
17
+ # @return [String]
18
+ required :key, String
19
+
20
+ # @!attribute type
21
+ # Tag the payment with key-value metadata
22
+ #
23
+ # @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::Type]
24
+ required :type, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::TagAction::Type }
25
+
26
+ # @!attribute value
27
+ # The value of the tag to apply to the payment
28
+ #
29
+ # @return [String]
30
+ required :value, String
31
+
32
+ # @!method initialize(key:, type:, value:)
33
+ # @param key [String] The key of the tag to apply to the payment
34
+ #
35
+ # @param type [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::Type] Tag the payment with key-value metadata
36
+ #
37
+ # @param value [String] The value of the tag to apply to the payment
38
+
39
+ # Tag the payment with key-value metadata
40
+ #
41
+ # @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction#type
42
+ module Type
43
+ extend Lithic::Internal::Type::Enum
44
+
45
+ TAG = :TAG
46
+
47
+ # @!method self.values
48
+ # @return [Array<Symbol>]
49
+ end
50
+ end
51
+
52
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
53
+ # @!attribute queue_token
54
+ # The token of the queue to create the case in
55
+ #
56
+ # @return [String]
57
+ required :queue_token, String
58
+
59
+ # @!attribute scope
60
+ # The scope of the case to create
61
+ #
62
+ # @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope]
63
+ required :scope, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope }
64
+
65
+ # @!attribute type
66
+ # Create a case for the payment
67
+ #
68
+ # @return [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type]
69
+ required :type, enum: -> { Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type }
70
+
71
+ # @!method initialize(queue_token:, scope:, type:)
72
+ # @param queue_token [String] The token of the queue to create the case in
73
+ #
74
+ # @param scope [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Scope] The scope of the case to create
75
+ #
76
+ # @param type [Symbol, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::Type] Create a case for the payment
77
+
78
+ # The scope of the case to create
79
+ #
80
+ # @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction#scope
81
+ module Scope
82
+ extend Lithic::Internal::Type::Enum
83
+
84
+ FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
85
+
86
+ # @!method self.values
87
+ # @return [Array<Symbol>]
88
+ end
89
+
90
+ # Create a case for the payment
91
+ #
92
+ # @see Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction#type
93
+ module Type
94
+ extend Lithic::Internal::Type::Enum
95
+
96
+ CREATE_CASE = :CREATE_CASE
97
+
98
+ # @!method self.values
99
+ # @return [Array<Symbol>]
100
+ end
101
+ end
102
+
103
+ # @!method self.variants
104
+ # @return [Array(Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction)]
105
+ end
106
+ end
107
+ end
108
+ end
@@ -81,10 +81,11 @@ module Lithic
81
81
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
82
82
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
83
83
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
84
- # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
85
- # stream.
84
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
85
+ # ACH_PAYMENT_UPDATE event stream.
86
86
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
87
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
87
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
88
+ # ACH_PAYMENT_UPDATE event stream.
88
89
  #
89
90
  # @return [Symbol, Lithic::Models::AuthRules::AuthRule::Type]
90
91
  required :type, enum: -> { Lithic::AuthRules::AuthRule::Type }
@@ -146,7 +147,7 @@ module Lithic
146
147
  # @!attribute parameters
147
148
  # Parameters for the Auth Rule
148
149
  #
149
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
150
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
150
151
  required :parameters, union: -> { Lithic::AuthRules::AuthRule::CurrentVersion::Parameters }
151
152
 
152
153
  response_only do
@@ -162,7 +163,7 @@ module Lithic
162
163
  # Some parameter documentations has been truncated, see
163
164
  # {Lithic::Models::AuthRules::AuthRule::CurrentVersion} for more details.
164
165
  #
165
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
166
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
166
167
  #
167
168
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
168
169
 
@@ -189,13 +190,15 @@ module Lithic
189
190
 
190
191
  variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
191
192
 
193
+ variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }
194
+
192
195
  # Parameters for defining a TypeScript code rule
193
196
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
194
197
 
195
198
  variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
196
199
 
197
200
  # @!method self.variants
198
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
201
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
199
202
  end
200
203
  end
201
204
 
@@ -211,7 +214,7 @@ module Lithic
211
214
  # @!attribute parameters
212
215
  # Parameters for the Auth Rule
213
216
  #
214
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
217
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
215
218
  required :parameters, union: -> { Lithic::AuthRules::AuthRule::DraftVersion::Parameters }
216
219
 
217
220
  # @!attribute state
@@ -244,7 +247,7 @@ module Lithic
244
247
  #
245
248
  # @param error [String, nil] An error message if the draft version failed compilation. Populated when `state`
246
249
  #
247
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
250
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
248
251
  #
249
252
  # @param state [Symbol, Lithic::Models::AuthRules::AuthRule::DraftVersion::State] The state of the draft version. Most rules are created synchronously and the sta
250
253
  #
@@ -273,13 +276,15 @@ module Lithic
273
276
 
274
277
  variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
275
278
 
279
+ variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }
280
+
276
281
  # Parameters for defining a TypeScript code rule
277
282
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
278
283
 
279
284
  variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
280
285
 
281
286
  # @!method self.variants
282
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
287
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
283
288
  end
284
289
 
285
290
  # The state of the draft version. Most rules are created synchronously and the
@@ -329,10 +334,11 @@ module Lithic
329
334
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
330
335
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
331
336
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
332
- # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
333
- # stream.
337
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
338
+ # ACH_PAYMENT_UPDATE event stream.
334
339
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
335
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
340
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
341
+ # ACH_PAYMENT_UPDATE event stream.
336
342
  #
337
343
  # @see Lithic::Models::AuthRules::AuthRule#type
338
344
  module Type
@@ -13,7 +13,7 @@ module Lithic
13
13
  # @!attribute parameters
14
14
  # Parameters for the Auth Rule
15
15
  #
16
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
16
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
17
17
  required :parameters, union: -> { Lithic::AuthRules::AuthRuleVersion::Parameters }
18
18
 
19
19
  # @!attribute state
@@ -37,7 +37,7 @@ module Lithic
37
37
  #
38
38
  # @param created [Time] Timestamp of when this version was created.
39
39
  #
40
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
40
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
41
41
  #
42
42
  # @param state [Symbol, Lithic::Models::AuthRules::AuthRuleVersion::State] The current state of this version.
43
43
  #
@@ -66,13 +66,15 @@ module Lithic
66
66
 
67
67
  variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
68
68
 
69
+ variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }
70
+
69
71
  # Parameters for defining a TypeScript code rule
70
72
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
71
73
 
72
74
  variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
73
75
 
74
76
  # @!method self.variants
75
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
77
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
76
78
  end
77
79
 
78
80
  # The current state of this version.
@@ -0,0 +1,142 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalACHPaymentUpdateActionParameters < Lithic::Internal::Type::BaseModel
7
+ # @!attribute action
8
+ # The action to take if the conditions are met.
9
+ #
10
+ # @return [Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction]
11
+ required :action, union: -> { Lithic::AuthRules::ACHPaymentUpdateAction }
12
+
13
+ # @!attribute conditions
14
+ #
15
+ # @return [Array<Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition>]
16
+ required :conditions,
17
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition] }
18
+
19
+ # @!method initialize(action:, conditions:)
20
+ # @param action [Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction, Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction] The action to take if the conditions are met.
21
+ #
22
+ # @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition>]
23
+
24
+ class Condition < Lithic::Internal::Type::BaseModel
25
+ # @!attribute attribute
26
+ # The attribute to target.
27
+ #
28
+ # The following attributes may be targeted:
29
+ #
30
+ # - `TRANSACTION_AMOUNT`: The total amount of the ACH payment in minor units
31
+ # (cents), calculated as the sum of the settled and pending amounts. Use an
32
+ # integer value.
33
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
34
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
35
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
36
+ # (Telephone-Initiated Entry), and others.
37
+ # - `RETURN_REASON_CODE`: NACHA return reason code associated with the payment
38
+ # (for example, `R01`).
39
+ # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the payment.
40
+ # Use an integer value. For programs where Lithic does not manage or retain
41
+ # account holder data, this attribute does not evaluate.
42
+ # - `EXTERNAL_BANK_ACCOUNT_AGE`: The age of the external bank account in seconds
43
+ # at the time of the payment. Use an integer value.
44
+ # - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD`: The method used to verify the
45
+ # external bank account. Valid values are `MANUAL`, `MICRO_DEPOSIT`, `PRENOTE`,
46
+ # `EXTERNALLY_VERIFIED`, or `UNVERIFIED`.
47
+ # - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE`: The verification state of the
48
+ # external bank account. Valid values are `PENDING`, `ENABLED`,
49
+ # `FAILED_VERIFICATION`, or `INSUFFICIENT_FUNDS`.
50
+ # - `EXTERNAL_BANK_ACCOUNT_OWNER_TYPE`: The owner type of the external bank
51
+ # account. Valid values are `INDIVIDUAL` or `BUSINESS`.
52
+ # - `ACH_EVENT_TYPE`: The type of ACH payment event being evaluated. Valid values
53
+ # include `ACH_ORIGINATION_INITIATED`, `ACH_ORIGINATION_REVIEWED`,
54
+ # `ACH_ORIGINATION_CANCELLED`, `ACH_ORIGINATION_PROCESSED`,
55
+ # `ACH_ORIGINATION_SETTLED`, `ACH_ORIGINATION_RELEASED`,
56
+ # `ACH_ORIGINATION_REJECTED`, `ACH_RECEIPT_PROCESSED`, `ACH_RECEIPT_SETTLED`,
57
+ # `ACH_RECEIPT_RELEASED`, `ACH_RECEIPT_RELEASED_EARLY`, `ACH_RETURN_INITIATED`,
58
+ # `ACH_RETURN_PROCESSED`, `ACH_RETURN_SETTLED`, and `ACH_RETURN_REJECTED`.
59
+ #
60
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute]
61
+ required :attribute,
62
+ enum: -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute }
63
+
64
+ # @!attribute operation
65
+ # The operation to apply to the attribute
66
+ #
67
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
68
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
69
+
70
+ # @!attribute value
71
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
72
+ #
73
+ # @return [String, Integer, Float, Array<String>, Time]
74
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
75
+
76
+ # @!method initialize(attribute:, operation:, value:)
77
+ # Some parameter documentations has been truncated, see
78
+ # {Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition}
79
+ # for more details.
80
+ #
81
+ # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::Attribute] The attribute to target.
82
+ #
83
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
84
+ #
85
+ # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
86
+
87
+ # The attribute to target.
88
+ #
89
+ # The following attributes may be targeted:
90
+ #
91
+ # - `TRANSACTION_AMOUNT`: The total amount of the ACH payment in minor units
92
+ # (cents), calculated as the sum of the settled and pending amounts. Use an
93
+ # integer value.
94
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
95
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
96
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
97
+ # (Telephone-Initiated Entry), and others.
98
+ # - `RETURN_REASON_CODE`: NACHA return reason code associated with the payment
99
+ # (for example, `R01`).
100
+ # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the payment.
101
+ # Use an integer value. For programs where Lithic does not manage or retain
102
+ # account holder data, this attribute does not evaluate.
103
+ # - `EXTERNAL_BANK_ACCOUNT_AGE`: The age of the external bank account in seconds
104
+ # at the time of the payment. Use an integer value.
105
+ # - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD`: The method used to verify the
106
+ # external bank account. Valid values are `MANUAL`, `MICRO_DEPOSIT`, `PRENOTE`,
107
+ # `EXTERNALLY_VERIFIED`, or `UNVERIFIED`.
108
+ # - `EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE`: The verification state of the
109
+ # external bank account. Valid values are `PENDING`, `ENABLED`,
110
+ # `FAILED_VERIFICATION`, or `INSUFFICIENT_FUNDS`.
111
+ # - `EXTERNAL_BANK_ACCOUNT_OWNER_TYPE`: The owner type of the external bank
112
+ # account. Valid values are `INDIVIDUAL` or `BUSINESS`.
113
+ # - `ACH_EVENT_TYPE`: The type of ACH payment event being evaluated. Valid values
114
+ # include `ACH_ORIGINATION_INITIATED`, `ACH_ORIGINATION_REVIEWED`,
115
+ # `ACH_ORIGINATION_CANCELLED`, `ACH_ORIGINATION_PROCESSED`,
116
+ # `ACH_ORIGINATION_SETTLED`, `ACH_ORIGINATION_RELEASED`,
117
+ # `ACH_ORIGINATION_REJECTED`, `ACH_RECEIPT_PROCESSED`, `ACH_RECEIPT_SETTLED`,
118
+ # `ACH_RECEIPT_RELEASED`, `ACH_RECEIPT_RELEASED_EARLY`, `ACH_RETURN_INITIATED`,
119
+ # `ACH_RETURN_PROCESSED`, `ACH_RETURN_SETTLED`, and `ACH_RETURN_REJECTED`.
120
+ #
121
+ # @see Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition#attribute
122
+ module Attribute
123
+ extend Lithic::Internal::Type::Enum
124
+
125
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
126
+ SEC_CODE = :SEC_CODE
127
+ RETURN_REASON_CODE = :RETURN_REASON_CODE
128
+ ACCOUNT_AGE = :ACCOUNT_AGE
129
+ EXTERNAL_BANK_ACCOUNT_AGE = :EXTERNAL_BANK_ACCOUNT_AGE
130
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD = :EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD
131
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE = :EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE
132
+ EXTERNAL_BANK_ACCOUNT_OWNER_TYPE = :EXTERNAL_BANK_ACCOUNT_OWNER_TYPE
133
+ ACH_EVENT_TYPE = :ACH_EVENT_TYPE
134
+
135
+ # @!method self.values
136
+ # @return [Array<Symbol>]
137
+ end
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end