lithic 0.14.0 → 0.16.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 (279) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -0
  5. data/lib/lithic/internal/transport/base_client.rb +5 -0
  6. data/lib/lithic/models/account.rb +2 -2
  7. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
  8. data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
  9. data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
  10. data/lib/lithic/models/auth_rules/auth_rule.rb +14 -8
  11. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  12. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  13. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
  14. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
  15. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +52 -34
  16. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +531 -0
  17. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +213 -23
  18. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
  19. data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
  20. data/lib/lithic/models/auth_rules/rule_feature.rb +29 -6
  21. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  22. data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
  23. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  24. data/lib/lithic/models/balance.rb +8 -6
  25. data/lib/lithic/models/card.rb +1 -1
  26. data/lib/lithic/models/card_authorization.rb +1372 -0
  27. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
  28. data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
  29. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
  30. data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
  31. data/lib/lithic/models/card_program.rb +2 -2
  32. data/lib/lithic/models/event.rb +13 -4
  33. data/lib/lithic/models/event_list_params.rb +7 -2
  34. data/lib/lithic/models/event_subscription.rb +7 -2
  35. data/lib/lithic/models/events/subscription_create_params.rb +7 -2
  36. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  37. data/lib/lithic/models/events/subscription_update_params.rb +7 -2
  38. data/lib/lithic/models/external_bank_account.rb +1 -1
  39. data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
  40. data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
  41. data/lib/lithic/models/financial_accounts/statement.rb +4 -4
  42. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
  43. data/lib/lithic/models/financial_event.rb +1 -0
  44. data/lib/lithic/models/kyb_business_entity.rb +2 -2
  45. data/lib/lithic/models/parsed_webhook_event.rb +4 -1
  46. data/lib/lithic/models/payment.rb +13 -1
  47. data/lib/lithic/models/settlement_detail.rb +14 -14
  48. data/lib/lithic/models/statement_totals.rb +6 -6
  49. data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
  50. data/lib/lithic/models/transaction.rb +2 -2
  51. data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
  52. data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
  53. data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
  54. data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
  55. data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
  56. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
  57. data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
  58. data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
  59. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
  60. data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
  61. data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
  62. data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
  63. data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
  64. data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
  65. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
  66. data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
  67. data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
  68. data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
  69. data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
  70. data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
  71. data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
  72. data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
  73. data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
  74. data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
  75. data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
  76. data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
  77. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
  78. data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
  79. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
  80. data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
  81. data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
  82. data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
  83. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
  84. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
  85. data/lib/lithic/models/transaction_route_params.rb +29 -0
  86. data/lib/lithic/models/transfer_limits_response.rb +12 -12
  87. data/lib/lithic/models.rb +12 -0
  88. data/lib/lithic/resources/account_holders/entities.rb +1 -1
  89. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  90. data/lib/lithic/resources/card_authorizations.rb +45 -0
  91. data/lib/lithic/resources/cards.rb +2 -2
  92. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  93. data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
  94. data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
  95. data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
  96. data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
  97. data/lib/lithic/resources/transaction_monitoring.rb +22 -0
  98. data/lib/lithic/resources/transactions.rb +25 -0
  99. data/lib/lithic/resources/webhooks.rb +1 -1
  100. data/lib/lithic/version.rb +1 -1
  101. data/lib/lithic.rb +46 -0
  102. data/rbi/lithic/client.rbi +6 -0
  103. data/rbi/lithic/models/account.rbi +3 -3
  104. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
  105. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
  106. data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
  107. data/rbi/lithic/models/auth_rules/auth_rule.rbi +14 -7
  108. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
  109. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
  110. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  111. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +75 -48
  112. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
  113. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +419 -30
  114. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
  115. data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
  116. data/rbi/lithic/models/auth_rules/rule_feature.rbi +41 -5
  117. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
  118. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +42 -21
  119. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  120. data/rbi/lithic/models/balance.rbi +12 -6
  121. data/rbi/lithic/models/card.rbi +2 -2
  122. data/rbi/lithic/models/card_authorization.rbi +2769 -0
  123. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
  124. data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
  125. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
  126. data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
  127. data/rbi/lithic/models/card_program.rbi +3 -6
  128. data/rbi/lithic/models/event.rbi +23 -6
  129. data/rbi/lithic/models/event_list_params.rbi +11 -2
  130. data/rbi/lithic/models/event_subscription.rbi +11 -2
  131. data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
  132. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  133. data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
  134. data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
  135. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
  136. data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
  137. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
  138. data/rbi/lithic/models/financial_event.rbi +2 -0
  139. data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
  140. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  141. data/rbi/lithic/models/payment.rbi +13 -0
  142. data/rbi/lithic/models/settlement_detail.rbi +15 -15
  143. data/rbi/lithic/models/statement_totals.rbi +9 -18
  144. data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
  145. data/rbi/lithic/models/transaction.rbi +3 -3
  146. data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
  147. data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
  148. data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
  149. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
  150. data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
  151. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
  152. data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
  153. data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
  154. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
  155. data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
  156. data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
  157. data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
  158. data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
  159. data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
  160. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
  161. data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
  162. data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
  163. data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
  164. data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
  165. data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
  166. data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
  167. data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
  168. data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
  169. data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
  170. data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
  171. data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
  172. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
  173. data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
  174. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
  175. data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
  176. data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
  177. data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
  178. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
  179. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
  180. data/rbi/lithic/models/transaction_route_params.rbi +49 -0
  181. data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
  182. data/rbi/lithic/models.rbi +15 -0
  183. data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
  184. data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
  185. data/rbi/lithic/resources/card_authorizations.rbi +35 -0
  186. data/rbi/lithic/resources/cards.rbi +2 -2
  187. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  188. data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
  189. data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
  190. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
  191. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
  192. data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
  193. data/rbi/lithic/resources/transactions.rbi +18 -0
  194. data/rbi/lithic/resources/webhooks.rbi +4 -1
  195. data/sig/lithic/client.rbs +4 -0
  196. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
  197. data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
  198. data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
  199. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  200. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  201. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
  202. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
  203. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  204. data/sig/lithic/models/auth_rules/rule_feature.rbs +16 -0
  205. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  206. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  207. data/sig/lithic/models/balance.rbs +17 -9
  208. data/sig/lithic/models/card_authorization.rbs +1112 -0
  209. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
  210. data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
  211. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
  212. data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
  213. data/sig/lithic/models/card_program.rbs +4 -6
  214. data/sig/lithic/models/event.rbs +2 -0
  215. data/sig/lithic/models/event_list_params.rbs +2 -0
  216. data/sig/lithic/models/event_subscription.rbs +2 -0
  217. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  218. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  219. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  220. data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
  221. data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
  222. data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
  223. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
  224. data/sig/lithic/models/financial_event.rbs +2 -0
  225. data/sig/lithic/models/kyb_business_entity.rbs +4 -6
  226. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  227. data/sig/lithic/models/payment.rbs +7 -0
  228. data/sig/lithic/models/settlement_detail.rbs +18 -18
  229. data/sig/lithic/models/statement_totals.rbs +12 -18
  230. data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
  231. data/sig/lithic/models/transaction.rbs +4 -8
  232. data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
  233. data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
  234. data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
  235. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
  236. data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
  237. data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
  238. data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
  239. data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
  240. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
  241. data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
  242. data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
  243. data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
  244. data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
  245. data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
  246. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
  247. data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
  248. data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
  249. data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
  250. data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
  251. data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
  252. data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
  253. data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
  254. data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
  255. data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
  256. data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
  257. data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
  258. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
  259. data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
  260. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
  261. data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
  262. data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
  263. data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
  264. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
  265. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
  266. data/sig/lithic/models/transaction_route_params.rbs +28 -0
  267. data/sig/lithic/models/transfer_limits_response.rbs +24 -36
  268. data/sig/lithic/models.rbs +12 -0
  269. data/sig/lithic/resources/account_holders/entities.rbs +1 -1
  270. data/sig/lithic/resources/card_authorizations.rbs +13 -0
  271. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  272. data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
  273. data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
  274. data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
  275. data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
  276. data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
  277. data/sig/lithic/resources/transactions.rbs +6 -0
  278. data/sig/lithic/resources/webhooks.rbs +1 -0
  279. metadata +140 -2
@@ -40,12 +40,12 @@ module Lithic
40
40
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
41
41
  # fee field in the settlement/cardholder billing currency. This is the amount
42
42
  # the issuer should authorize against unless the issuer is paying the acquirer
43
- # fee on behalf of the cardholder.
43
+ # fee on behalf of the cardholder. Use an integer value.
44
44
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
45
45
  # given authorization. Scores are on a range of 0-999, with 0 representing the
46
46
  # lowest risk and 999 representing the highest risk. For Visa transactions,
47
47
  # where the raw score has a range of 0-99, Lithic will normalize the score by
48
- # multiplying the raw score by 10x.
48
+ # multiplying the raw score by 10x. Use an integer value.
49
49
  # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
50
50
  # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
51
51
  # `EXPIRED`.
@@ -66,15 +66,63 @@ module Lithic
66
66
  # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
67
67
  # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
68
68
  # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
69
- # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
69
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use
70
+ # an integer value.
70
71
  # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
71
- # transaction.
72
+ # transaction. Use an integer value. For programs where Lithic does not manage
73
+ # or retain account holder data, this attribute does not evaluate.
72
74
  # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
73
75
  # filters within the given period. Requires `parameters` with `scope`, `period`,
74
- # and optional `filters`.
76
+ # and optional `filters`. Use an integer value.
75
77
  # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
76
78
  # matching the specified filters within the given period. Requires `parameters`
77
- # with `scope`, `period`, and optional `filters`.
79
+ # with `scope`, `period`, and optional `filters`. Use an integer value.
80
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
81
+ # entity's transaction history. Null if fewer than 30 approved transactions in
82
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
83
+ # Use a decimal value.
84
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
85
+ # entity over the specified window, in cents. Requires `parameters.scope` and
86
+ # `parameters.interval`. Use a decimal value.
87
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
88
+ # amounts for the entity over the specified window, in cents. Null if fewer than
89
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
90
+ # and `parameters.interval`. Use a decimal value.
91
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
92
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
93
+ # Requires `parameters.scope`.
94
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
95
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
96
+ # `parameters.scope`.
97
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
98
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
99
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
100
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
101
+ # an integer value.
102
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
103
+ # transaction for the entity, rounded to the nearest whole day. Requires
104
+ # `parameters.scope`. Use an integer value.
105
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
106
+ # the entity's transaction history. Requires `parameters.scope`. Use an integer
107
+ # value.
108
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
109
+ # card's approved transaction history (capped at the 1000 most recently seen
110
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
111
+ # `parameters` required.
112
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
113
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
114
+ # Use a decimal value.
115
+ # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
116
+ # between the postal code centers of the last card-present transaction and the
117
+ # current transaction, divided by the elapsed time. Null if there is no prior
118
+ # card-present transaction, if either postal code cannot be geocoded, or if
119
+ # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
120
+ # decimal value.
121
+ # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
122
+ # code centers of the last card-present transaction and the current transaction.
123
+ # Null if there is no prior card-present transaction or if either postal code
124
+ # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
125
+ # Use a decimal value.
78
126
  #
79
127
  # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute]
80
128
  required :attribute,
@@ -89,12 +137,18 @@ module Lithic
89
137
  # @!attribute value
90
138
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
91
139
  #
92
- # @return [String, Integer, Array<String>, Time]
140
+ # @return [String, Integer, Float, Array<String>, Time]
93
141
  required :value, union: -> { Lithic::AuthRules::ConditionalValue }
94
142
 
95
143
  # @!attribute parameters
96
- # Additional parameters for spend velocity attributes. Required when `attribute`
97
- # is `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT`. Not used for other
144
+ # Additional parameters for certain attributes. Required when `attribute` is
145
+ # `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
146
+ # and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
147
+ # `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
148
+ # `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
149
+ # or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
150
+ # the statistical attributes); or `TRAVEL_SPEED` or
151
+ # `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
98
152
  # attributes.
99
153
  #
100
154
  # @return [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters, nil]
@@ -110,9 +164,9 @@ module Lithic
110
164
  #
111
165
  # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
112
166
  #
113
- # @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
167
+ # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
114
168
  #
115
- # @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for spend velocity attributes. Required when `attribute` i
169
+ # @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for certain attributes. Required when `attribute` is
116
170
 
117
171
  # The attribute to target.
118
172
  #
@@ -131,12 +185,12 @@ module Lithic
131
185
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
132
186
  # fee field in the settlement/cardholder billing currency. This is the amount
133
187
  # the issuer should authorize against unless the issuer is paying the acquirer
134
- # fee on behalf of the cardholder.
188
+ # fee on behalf of the cardholder. Use an integer value.
135
189
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
136
190
  # given authorization. Scores are on a range of 0-999, with 0 representing the
137
191
  # lowest risk and 999 representing the highest risk. For Visa transactions,
138
192
  # where the raw score has a range of 0-99, Lithic will normalize the score by
139
- # multiplying the raw score by 10x.
193
+ # multiplying the raw score by 10x. Use an integer value.
140
194
  # - `TRANSACTION_STATUS`: The status of the transaction. Valid values are
141
195
  # `PENDING`, `VOIDED`, `SETTLING`, `SETTLED`, `BOUNCED`, `RETURNED`, `DECLINED`,
142
196
  # `EXPIRED`.
@@ -157,15 +211,63 @@ module Lithic
157
211
  # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
158
212
  # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
159
213
  # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
160
- # - `CARD_AGE`: The age of the card in seconds at the time of the transaction.
214
+ # - `CARD_AGE`: The age of the card in seconds at the time of the transaction. Use
215
+ # an integer value.
161
216
  # - `ACCOUNT_AGE`: The age of the account in seconds at the time of the
162
- # transaction.
217
+ # transaction. Use an integer value. For programs where Lithic does not manage
218
+ # or retain account holder data, this attribute does not evaluate.
163
219
  # - `SPEND_VELOCITY_COUNT`: The number of transactions matching the specified
164
220
  # filters within the given period. Requires `parameters` with `scope`, `period`,
165
- # and optional `filters`.
221
+ # and optional `filters`. Use an integer value.
166
222
  # - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
167
223
  # matching the specified filters within the given period. Requires `parameters`
168
- # with `scope`, `period`, and optional `filters`.
224
+ # with `scope`, `period`, and optional `filters`. Use an integer value.
225
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
226
+ # entity's transaction history. Null if fewer than 30 approved transactions in
227
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
228
+ # Use a decimal value.
229
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
230
+ # entity over the specified window, in cents. Requires `parameters.scope` and
231
+ # `parameters.interval`. Use a decimal value.
232
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
233
+ # amounts for the entity over the specified window, in cents. Null if fewer than
234
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
235
+ # and `parameters.interval`. Use a decimal value.
236
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
237
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
238
+ # Requires `parameters.scope`.
239
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
240
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
241
+ # `parameters.scope`.
242
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
243
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
244
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
245
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
246
+ # an integer value.
247
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
248
+ # transaction for the entity, rounded to the nearest whole day. Requires
249
+ # `parameters.scope`. Use an integer value.
250
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
251
+ # the entity's transaction history. Requires `parameters.scope`. Use an integer
252
+ # value.
253
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
254
+ # card's approved transaction history (capped at the 1000 most recently seen
255
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
256
+ # `parameters` required.
257
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
258
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
259
+ # Use a decimal value.
260
+ # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
261
+ # between the postal code centers of the last card-present transaction and the
262
+ # current transaction, divided by the elapsed time. Null if there is no prior
263
+ # card-present transaction, if either postal code cannot be geocoded, or if
264
+ # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
265
+ # decimal value.
266
+ # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
267
+ # code centers of the last card-present transaction and the current transaction.
268
+ # Null if there is no prior card-present transaction or if either postal code
269
+ # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
270
+ # Use a decimal value.
169
271
  #
170
272
  # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition#attribute
171
273
  module Attribute
@@ -187,6 +289,19 @@ module Lithic
187
289
  ACCOUNT_AGE = :ACCOUNT_AGE
188
290
  SPEND_VELOCITY_COUNT = :SPEND_VELOCITY_COUNT
189
291
  SPEND_VELOCITY_AMOUNT = :SPEND_VELOCITY_AMOUNT
292
+ AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
293
+ AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
294
+ STDEV_TRANSACTION_AMOUNT = :STDEV_TRANSACTION_AMOUNT
295
+ IS_NEW_COUNTRY = :IS_NEW_COUNTRY
296
+ IS_NEW_MCC = :IS_NEW_MCC
297
+ IS_FIRST_TRANSACTION = :IS_FIRST_TRANSACTION
298
+ CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
299
+ TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
300
+ DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
301
+ IS_NEW_MERCHANT = :IS_NEW_MERCHANT
302
+ THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
303
+ TRAVEL_SPEED = :TRAVEL_SPEED
304
+ DISTANCE_FROM_LAST_TRANSACTION = :DISTANCE_FROM_LAST_TRANSACTION
190
305
 
191
306
  # @!method self.values
192
307
  # @return [Array<Symbol>]
@@ -199,6 +314,15 @@ module Lithic
199
314
  # @return [Lithic::Models::AuthRules::SpendVelocityFilters, nil]
200
315
  optional :filters, -> { Lithic::AuthRules::SpendVelocityFilters }
201
316
 
317
+ # @!attribute interval
318
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
319
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
320
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
321
+ #
322
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval, nil]
323
+ optional :interval,
324
+ enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval }
325
+
202
326
  # @!attribute period
203
327
  # The time period over which to calculate the spend velocity.
204
328
  #
@@ -206,24 +330,70 @@ module Lithic
206
330
  optional :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod }
207
331
 
208
332
  # @!attribute scope
209
- # The entity scope to evaluate the attribute against.
333
+ # The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
334
+ # spend velocity attributes.
210
335
  #
211
336
  # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope, nil]
212
337
  optional :scope,
213
338
  enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope }
214
339
 
215
- # @!method initialize(filters: nil, period: nil, scope: nil)
216
- # Additional parameters for spend velocity attributes. Required when `attribute`
217
- # is `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT`. Not used for other
340
+ # @!attribute unit
341
+ # The unit for impossible travel attributes. Required when `attribute` is
342
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
343
+ #
344
+ # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
345
+ #
346
+ # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
347
+ #
348
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit, nil]
349
+ optional :unit,
350
+ enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit }
351
+
352
+ # @!method initialize(filters: nil, interval: nil, period: nil, scope: nil, unit: nil)
353
+ # Some parameter documentations has been truncated, see
354
+ # {Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters}
355
+ # for more details.
356
+ #
357
+ # Additional parameters for certain attributes. Required when `attribute` is
358
+ # `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
359
+ # and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
360
+ # `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
361
+ # `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
362
+ # or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
363
+ # the statistical attributes); or `TRAVEL_SPEED` or
364
+ # `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
218
365
  # attributes.
219
366
  #
220
367
  # @param filters [Lithic::Models::AuthRules::SpendVelocityFilters]
221
368
  #
369
+ # @param interval [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval] The time window for statistical attributes (`AMOUNT_Z_SCORE`, `AVG_TRANSACTION_A
370
+ #
222
371
  # @param period [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] The time period over which to calculate the spend velocity.
223
372
  #
224
- # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
373
+ # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
374
+ #
375
+ # @param unit [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit] The unit for impossible travel attributes. Required when `attribute` is
376
+ # `TRAVEL\_
225
377
 
226
- # The entity scope to evaluate the attribute against.
378
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
379
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
380
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
381
+ #
382
+ # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#interval
383
+ module Interval
384
+ extend Lithic::Internal::Type::Enum
385
+
386
+ LIFETIME = :LIFETIME
387
+ INTERVAL_7_D = :"7D"
388
+ INTERVAL_30_D = :"30D"
389
+ INTERVAL_90_D = :"90D"
390
+
391
+ # @!method self.values
392
+ # @return [Array<Symbol>]
393
+ end
394
+
395
+ # The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
396
+ # spend velocity attributes.
227
397
  #
228
398
  # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#scope
229
399
  module Scope
@@ -236,6 +406,26 @@ module Lithic
236
406
  # @!method self.values
237
407
  # @return [Array<Symbol>]
238
408
  end
409
+
410
+ # The unit for impossible travel attributes. Required when `attribute` is
411
+ # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
412
+ #
413
+ # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
414
+ #
415
+ # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
416
+ #
417
+ # @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#unit
418
+ module Unit
419
+ extend Lithic::Internal::Type::Enum
420
+
421
+ MPH = :MPH
422
+ KPH = :KPH
423
+ MILES = :MILES
424
+ KILOMETERS = :KILOMETERS
425
+
426
+ # @!method self.values
427
+ # @return [Array<Symbol>]
428
+ end
239
429
  end
240
430
  end
241
431
  end
@@ -170,10 +170,10 @@ module Lithic
170
170
  # `SAMSUNG_PAY`, `UNKNOWN`, `VISA_CHECKOUT`.
171
171
  # - `WALLET_ACCOUNT_SCORE`: Risk score for the account in the digital wallet.
172
172
  # Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2
173
- # = medium risk).
173
+ # = medium risk). Use an integer value.
174
174
  # - `WALLET_DEVICE_SCORE`: Risk score for the device in the digital wallet.
175
175
  # Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2
176
- # = medium risk).
176
+ # = medium risk). Use an integer value.
177
177
  # - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet
178
178
  # provider. Valid values include APPROVE, DECLINE,
179
179
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
@@ -214,7 +214,7 @@ module Lithic
214
214
  # @!attribute value
215
215
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
216
216
  #
217
- # @return [String, Integer, Array<String>, Time]
217
+ # @return [String, Integer, Float, Array<String>, Time]
218
218
  required :value, union: -> { Lithic::AuthRules::ConditionalValue }
219
219
 
220
220
  # @!method initialize(attribute:, operation:, value:)
@@ -226,7 +226,7 @@ module Lithic
226
226
  #
227
227
  # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
228
228
  #
229
- # @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
229
+ # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
230
230
 
231
231
  # The attribute to target.
232
232
  #
@@ -245,10 +245,10 @@ module Lithic
245
245
  # `SAMSUNG_PAY`, `UNKNOWN`, `VISA_CHECKOUT`.
246
246
  # - `WALLET_ACCOUNT_SCORE`: Risk score for the account in the digital wallet.
247
247
  # Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2
248
- # = medium risk).
248
+ # = medium risk). Use an integer value.
249
249
  # - `WALLET_DEVICE_SCORE`: Risk score for the device in the digital wallet.
250
250
  # Numeric value where lower numbers indicate higher risk (e.g., 1 = high risk, 2
251
- # = medium risk).
251
+ # = medium risk). Use an integer value.
252
252
  # - `WALLET_RECOMMENDED_DECISION`: The decision recommended by the digital wallet
253
253
  # provider. Valid values include APPROVE, DECLINE,
254
254
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
@@ -10,9 +10,10 @@ module Lithic
10
10
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
11
11
  variant String
12
12
 
13
- # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
14
13
  variant Integer
15
14
 
15
+ variant Float
16
+
16
17
  # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
17
18
  variant -> { Lithic::Models::AuthRules::ConditionalValue::StringArray }
18
19
 
@@ -20,7 +21,7 @@ module Lithic
20
21
  variant Time
21
22
 
22
23
  # @!method self.variants
23
- # @return [Array(String, Integer, Array<String>, Time)]
24
+ # @return [Array(String, Integer, Float, Array<String>, Time)]
24
25
 
25
26
  # @type [Lithic::Internal::Type::Converter]
26
27
  StringArray = Lithic::Internal::Type::ArrayOf[String]
@@ -15,10 +15,13 @@ module Lithic
15
15
  # TOKENIZATION event stream rules.
16
16
  # - `ACH_RECEIPT`: The ACH receipt being evaluated. Only available for
17
17
  # ACH_CREDIT_RECEIPT and ACH_DEBIT_RECEIPT event stream rules.
18
- # - `CARD`: The card associated with the event. Available for AUTHORIZATION and
19
- # THREE_DS_AUTHENTICATION event stream rules.
18
+ # - `CARD_TRANSACTION`: The card transaction being evaluated. Only available for
19
+ # CARD_TRANSACTION_UPDATE event stream rules.
20
+ # - `CARD`: The card associated with the event. Available for AUTHORIZATION,
21
+ # THREE_DS_AUTHENTICATION, and CARD_TRANSACTION_UPDATE event stream rules.
20
22
  # - `ACCOUNT_HOLDER`: The account holder associated with the card. Available for
21
- # AUTHORIZATION and THREE_DS_AUTHENTICATION event stream rules.
23
+ # AUTHORIZATION, THREE_DS_AUTHENTICATION, and CARD_TRANSACTION_UPDATE event
24
+ # stream rules.
22
25
  # - `IP_METADATA`: IP address metadata for the request. Available for
23
26
  # THREE_DS_AUTHENTICATION event stream rules.
24
27
  # - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
@@ -26,8 +29,8 @@ module Lithic
26
29
  # calculation. Available for AUTHORIZATION event stream rules.
27
30
  # - `TRANSACTION_HISTORY_SIGNALS`: Behavioral feature state derived from the
28
31
  # entity's transaction history. Requires `scope` to specify whether to load
29
- # card, account, or business account history. Available for AUTHORIZATION event
30
- # stream rules.
32
+ # card, account, or business account history. Available for AUTHORIZATION and
33
+ # CARD_TRANSACTION_UPDATE event stream rules.
31
34
  module RuleFeature
32
35
  extend Lithic::Internal::Type::Union
33
36
 
@@ -39,6 +42,8 @@ module Lithic
39
42
 
40
43
  variant -> { Lithic::AuthRules::RuleFeature::ACHReceiptFeature }
41
44
 
45
+ variant -> { Lithic::AuthRules::RuleFeature::CardTransactionFeature }
46
+
42
47
  variant -> { Lithic::AuthRules::RuleFeature::CardFeature }
43
48
 
44
49
  variant -> { Lithic::AuthRules::RuleFeature::AccountHolderFeature }
@@ -121,6 +126,24 @@ module Lithic
121
126
  # @param type [Symbol, :ACH_RECEIPT]
122
127
  end
123
128
 
129
+ class CardTransactionFeature < Lithic::Internal::Type::BaseModel
130
+ # @!attribute type
131
+ #
132
+ # @return [Symbol, :CARD_TRANSACTION]
133
+ required :type, const: :CARD_TRANSACTION
134
+
135
+ # @!attribute name
136
+ # The variable name for this feature in the rule function signature
137
+ #
138
+ # @return [String, nil]
139
+ optional :name, String
140
+
141
+ # @!method initialize(name: nil, type: :CARD_TRANSACTION)
142
+ # @param name [String] The variable name for this feature in the rule function signature
143
+ #
144
+ # @param type [Symbol, :CARD_TRANSACTION]
145
+ end
146
+
124
147
  class CardFeature < Lithic::Internal::Type::BaseModel
125
148
  # @!attribute type
126
149
  #
@@ -270,7 +293,7 @@ module Lithic
270
293
  end
271
294
 
272
295
  # @!method self.variants
273
- # @return [Array(Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature)]
296
+ # @return [Array(Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature)]
274
297
  end
275
298
  end
276
299
  end
@@ -15,7 +15,7 @@ module Lithic
15
15
  # @!attribute features
16
16
  # Features available to the TypeScript code at evaluation time
17
17
  #
18
- # @return [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
18
+ # @return [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
19
19
  required :features, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::RuleFeature] }
20
20
 
21
21
  # @!method initialize(code:, features:)
@@ -26,7 +26,7 @@ module Lithic
26
26
  #
27
27
  # @param code [String] The TypeScript source code of the rule. Must define a `rule()` function that acc
28
28
  #
29
- # @param features [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
29
+ # @param features [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
30
30
  end
31
31
  end
32
32
  end