lithic 0.20.0 → 0.22.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 (266) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/internal/type/union.rb +21 -7
  5. data/lib/lithic/models/account_activity_list_params.rb +1 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  10. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  11. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  13. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  14. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  15. data/lib/lithic/models/address.rb +33 -19
  16. data/lib/lithic/models/address_update.rb +27 -11
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
  18. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  19. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  20. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  21. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  22. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  23. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  24. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  25. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  26. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  27. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  28. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  29. data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -45
  30. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  32. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
  33. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  34. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  35. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  36. data/lib/lithic/models/card_authorization.rb +11 -1
  37. data/lib/lithic/models/card_create_params.rb +11 -1
  38. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  39. data/lib/lithic/models/card_update_params.rb +12 -1
  40. data/lib/lithic/models/event.rb +5 -0
  41. data/lib/lithic/models/event_list_params.rb +3 -0
  42. data/lib/lithic/models/event_subscription.rb +3 -0
  43. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  44. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  45. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  46. data/lib/lithic/models/external_payment.rb +6 -0
  47. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  48. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  50. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  51. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  52. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  53. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  54. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  55. data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
  56. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  57. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  58. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  59. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  60. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  61. data/lib/lithic/models/financial_event.rb +9 -0
  62. data/lib/lithic/models/kyb.rb +4 -2
  63. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  64. data/lib/lithic/models/kyc.rb +2 -1
  65. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  66. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  67. data/lib/lithic/models/non_pci_card.rb +11 -1
  68. data/lib/lithic/models/parsed_webhook_event.rb +123 -67
  69. data/lib/lithic/models/payment.rb +3 -1
  70. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  71. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  72. data/lib/lithic/models/payment_list_params.rb +1 -0
  73. data/lib/lithic/models/payment_retry_params.rb +28 -1
  74. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  75. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  76. data/lib/lithic/models/transaction.rb +4 -1
  77. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  78. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  79. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  80. data/lib/lithic/models.rb +6 -0
  81. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  82. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  83. data/lib/lithic/resources/blockchain_recipients.rb +23 -0
  84. data/lib/lithic/resources/cards.rb +10 -4
  85. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  86. data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -0
  87. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  88. data/lib/lithic/resources/financial_accounts.rb +8 -0
  89. data/lib/lithic/resources/payments.rb +71 -3
  90. data/lib/lithic/resources/transactions.rb +17 -4
  91. data/lib/lithic/resources/webhooks.rb +18 -0
  92. data/lib/lithic/version.rb +1 -1
  93. data/lib/lithic.rb +21 -1
  94. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  95. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  96. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  97. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  98. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  99. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  100. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  101. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  102. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  103. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  104. data/rbi/lithic/models/address.rbi +57 -29
  105. data/rbi/lithic/models/address_update.rbi +50 -24
  106. data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
  107. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  108. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  109. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  110. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  111. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  112. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  113. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  114. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  115. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  116. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  117. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  118. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
  119. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  120. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  121. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
  122. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  123. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  124. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  125. data/rbi/lithic/models/card_authorization.rbi +12 -0
  126. data/rbi/lithic/models/card_create_params.rbi +15 -0
  127. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  128. data/rbi/lithic/models/card_update_params.rbi +17 -0
  129. data/rbi/lithic/models/event.rbi +8 -0
  130. data/rbi/lithic/models/event_list_params.rbi +7 -0
  131. data/rbi/lithic/models/event_subscription.rbi +7 -0
  132. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  133. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  134. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  135. data/rbi/lithic/models/external_payment.rbi +30 -0
  136. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  137. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  138. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  139. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  140. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  141. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  142. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  143. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  144. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
  145. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  146. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  147. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  148. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  149. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  150. data/rbi/lithic/models/financial_event.rbi +35 -0
  151. data/rbi/lithic/models/kyb.rbi +8 -4
  152. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  153. data/rbi/lithic/models/kyc.rbi +4 -2
  154. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  155. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  156. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  157. data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
  158. data/rbi/lithic/models/payment.rbi +6 -2
  159. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  160. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  161. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  162. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  163. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  164. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  165. data/rbi/lithic/models/transaction.rbi +14 -2
  166. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  167. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  168. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  169. data/rbi/lithic/models.rbi +7 -0
  170. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  171. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  172. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  173. data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
  174. data/rbi/lithic/resources/cards.rbi +15 -2
  175. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  176. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -0
  177. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  178. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  179. data/rbi/lithic/resources/payments.rbi +68 -2
  180. data/rbi/lithic/resources/transactions.rbi +31 -2
  181. data/rbi/lithic/resources/webhooks.rbi +1 -0
  182. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  183. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  184. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  185. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  186. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  187. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  188. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  189. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  190. data/sig/lithic/models/address.rbs +13 -13
  191. data/sig/lithic/models/address_update.rbs +8 -12
  192. data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
  193. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  194. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  195. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  196. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  197. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  198. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  199. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  200. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  201. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  202. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  203. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  204. data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
  205. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  206. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
  207. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  208. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  209. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  210. data/sig/lithic/models/card_authorization.rbs +5 -0
  211. data/sig/lithic/models/card_create_params.rbs +7 -0
  212. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  213. data/sig/lithic/models/card_update_params.rbs +8 -1
  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_payment.rbs +12 -0
  221. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  222. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  223. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  224. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  225. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  226. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  227. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  228. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  229. data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
  230. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  231. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  232. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  233. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  234. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  235. data/sig/lithic/models/financial_event.rbs +18 -0
  236. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  237. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  238. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  239. data/sig/lithic/models/non_pci_card.rbs +5 -0
  240. data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
  241. data/sig/lithic/models/payment.rbs +2 -0
  242. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  243. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  244. data/sig/lithic/models/payment_list_params.rbs +2 -1
  245. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  246. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  247. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  248. data/sig/lithic/models/transaction.rbs +4 -0
  249. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  250. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  251. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  252. data/sig/lithic/models.rbs +6 -0
  253. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  254. data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
  255. data/sig/lithic/resources/cards.rbs +2 -0
  256. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  257. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -0
  258. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  259. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  260. data/sig/lithic/resources/payments.rbs +12 -0
  261. data/sig/lithic/resources/transactions.rbs +5 -0
  262. data/sig/lithic/resources/webhooks.rbs +1 -0
  263. metadata +65 -5
  264. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  265. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  266. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -12,14 +12,13 @@ module Lithic
12
12
 
13
13
  # @!attribute conditions
14
14
  #
15
- # @return [Array<Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition>]
16
- required :conditions,
17
- -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] }
15
+ # @return [Array<Lithic::Models::AuthRules::AuthRuleCondition>]
16
+ required :conditions, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::AuthRuleCondition] }
18
17
 
19
18
  # @!method initialize(action:, conditions:)
20
19
  # @param action [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
21
20
  #
22
- # @param conditions [Array<Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition>]
21
+ # @param conditions [Array<Lithic::Models::AuthRules::AuthRuleCondition>]
23
22
 
24
23
  # The action to take if the conditions are met.
25
24
  #
@@ -33,441 +32,6 @@ module Lithic
33
32
  # @!method self.values
34
33
  # @return [Array<Symbol>]
35
34
  end
36
-
37
- class Condition < Lithic::Internal::Type::BaseModel
38
- # @!attribute attribute
39
- # The attribute to target.
40
- #
41
- # The following attributes may be targeted:
42
- #
43
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
44
- # business by the types of goods or services it provides.
45
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
46
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
47
- # Netherlands Antilles.
48
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
49
- # the transaction.
50
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
51
- # (merchant).
52
- # - `DESCRIPTOR`: Short description of card acceptor.
53
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
54
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
55
- # `TOKEN_AUTHENTICATED`.
56
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
57
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
58
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
59
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
60
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
61
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
62
- # fee field in the settlement/cardholder billing currency. This is the amount
63
- # the issuer should authorize against unless the issuer is paying the acquirer
64
- # fee on behalf of the cardholder. Use an integer value.
65
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
66
- # represents the amount of cash being withdrawn or advanced. Use an integer
67
- # value.
68
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
69
- # given authorization. Scores are on a range of 0-999, with 0 representing the
70
- # lowest risk and 999 representing the highest risk. For Visa transactions,
71
- # where the raw score has a range of 0-99, Lithic will normalize the score by
72
- # multiplying the raw score by 10x. Use an integer value.
73
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
74
- # trailing 15 minutes before the authorization. Use an integer value.
75
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
76
- # trailing hour up and until the authorization. Use an integer value.
77
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
78
- # trailing 24 hours up and until the authorization. Use an integer value.
79
- # - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
80
- # the trailing 15 minutes before the authorization. Use an integer value.
81
- # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
82
- # the trailing hour up and until the authorization. Use an integer value.
83
- # - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
84
- # the trailing 24 hours up and until the authorization. Use an integer value.
85
- # - `CARD_STATE`: The current state of the card associated with the transaction.
86
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
87
- # `PENDING_FULFILLMENT`.
88
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
89
- # Valid values are `TRUE`, `FALSE`.
90
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
91
- # `OK`, `BLOCKED`.
92
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
93
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
94
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
95
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
96
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
97
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
98
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
99
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
100
- # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
101
- # cardholder received the service, e.g. "NY". When a service location is present
102
- # in the network data, the service location state is used. Otherwise, falls back
103
- # to the card acceptor state.
104
- # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
105
- # the service, e.g. "10001". When a service location is present in the network
106
- # data, the service location postal code is used. Otherwise, falls back to the
107
- # card acceptor postal code.
108
- # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
109
- # Use an integer value.
110
- # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
111
- # of the authorization. Use an integer value. For programs where Lithic does not
112
- # manage or retain account holder data, this attribute does not evaluate.
113
- # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
114
- # entity's transaction history. Null if fewer than 30 approved transactions in
115
- # the specified window. Requires `parameters.scope` and `parameters.interval`.
116
- # Use a decimal value.
117
- # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
118
- # entity over the specified window, in cents. Requires `parameters.scope` and
119
- # `parameters.interval`. Use a decimal value.
120
- # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
121
- # amounts for the entity over the specified window, in cents. Null if fewer than
122
- # 30 approved transactions in the specified window. Requires `parameters.scope`
123
- # and `parameters.interval`. Use a decimal value.
124
- # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
125
- # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
126
- # Requires `parameters.scope`.
127
- # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
128
- # transaction history. Valid values are `TRUE`, `FALSE`. Requires
129
- # `parameters.scope`.
130
- # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
131
- # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
132
- # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
133
- # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
134
- # supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
135
- # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
136
- # transaction for the entity, rounded to the nearest whole day. Requires
137
- # `parameters.scope`. Use an integer value.
138
- # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
139
- # the entity's transaction history. Requires `parameters.scope`. Use an integer
140
- # value.
141
- # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
142
- # card's approved transaction history (capped at the 1000 most recently seen
143
- # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
144
- # `parameters` required.
145
- # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
146
- # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
147
- # Use a decimal value.
148
- # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
149
- # between the postal code centers of the last card-present transaction and the
150
- # current transaction, divided by the elapsed time. Null if there is no prior
151
- # card-present transaction, if either postal code cannot be geocoded, or if
152
- # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
153
- # decimal value.
154
- # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
155
- # code centers of the last card-present transaction and the current transaction.
156
- # Null if there is no prior card-present transaction or if either postal code
157
- # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
158
- # Use a decimal value.
159
- #
160
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
161
- required :attribute,
162
- enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute }
163
-
164
- # @!attribute operation
165
- # The operation to apply to the attribute
166
- #
167
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
168
- required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
169
-
170
- # @!attribute value
171
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
172
- #
173
- # @return [String, Integer, Float, Array<String>, Time]
174
- required :value, union: -> { Lithic::AuthRules::ConditionalValue }
175
-
176
- # @!attribute parameters
177
- # Additional parameters for certain attributes. Required when `attribute` is one
178
- # of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`,
179
- # `IS_NEW_COUNTRY`, `IS_NEW_MCC`, `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`,
180
- # `TIME_SINCE_LAST_TRANSACTION`, or `DISTINCT_COUNTRY_COUNT` (require `scope`); or
181
- # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used
182
- # for other attributes.
183
- #
184
- # @return [Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters, nil]
185
- optional :parameters,
186
- -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters }
187
-
188
- # @!method initialize(attribute:, operation:, value:, parameters: nil)
189
- # Some parameter documentations has been truncated, see
190
- # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition}
191
- # for more details.
192
- #
193
- # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
194
- #
195
- # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
196
- #
197
- # @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
198
- #
199
- # @param parameters [Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters] Additional parameters for certain attributes. Required when `attribute` is one o
200
-
201
- # The attribute to target.
202
- #
203
- # The following attributes may be targeted:
204
- #
205
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
206
- # business by the types of goods or services it provides.
207
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
208
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
209
- # Netherlands Antilles.
210
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
211
- # the transaction.
212
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
213
- # (merchant).
214
- # - `DESCRIPTOR`: Short description of card acceptor.
215
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
216
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
217
- # `TOKEN_AUTHENTICATED`.
218
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
219
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
220
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
221
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
222
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
223
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
224
- # fee field in the settlement/cardholder billing currency. This is the amount
225
- # the issuer should authorize against unless the issuer is paying the acquirer
226
- # fee on behalf of the cardholder. Use an integer value.
227
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
228
- # represents the amount of cash being withdrawn or advanced. Use an integer
229
- # value.
230
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
231
- # given authorization. Scores are on a range of 0-999, with 0 representing the
232
- # lowest risk and 999 representing the highest risk. For Visa transactions,
233
- # where the raw score has a range of 0-99, Lithic will normalize the score by
234
- # multiplying the raw score by 10x. Use an integer value.
235
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
236
- # trailing 15 minutes before the authorization. Use an integer value.
237
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
238
- # trailing hour up and until the authorization. Use an integer value.
239
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
240
- # trailing 24 hours up and until the authorization. Use an integer value.
241
- # - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
242
- # the trailing 15 minutes before the authorization. Use an integer value.
243
- # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
244
- # the trailing hour up and until the authorization. Use an integer value.
245
- # - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
246
- # the trailing 24 hours up and until the authorization. Use an integer value.
247
- # - `CARD_STATE`: The current state of the card associated with the transaction.
248
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
249
- # `PENDING_FULFILLMENT`.
250
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
251
- # Valid values are `TRUE`, `FALSE`.
252
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
253
- # `OK`, `BLOCKED`.
254
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
255
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
256
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
257
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
258
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
259
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
260
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
261
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
262
- # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
263
- # cardholder received the service, e.g. "NY". When a service location is present
264
- # in the network data, the service location state is used. Otherwise, falls back
265
- # to the card acceptor state.
266
- # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
267
- # the service, e.g. "10001". When a service location is present in the network
268
- # data, the service location postal code is used. Otherwise, falls back to the
269
- # card acceptor postal code.
270
- # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
271
- # Use an integer value.
272
- # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
273
- # of the authorization. Use an integer value. For programs where Lithic does not
274
- # manage or retain account holder data, this attribute does not evaluate.
275
- # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
276
- # entity's transaction history. Null if fewer than 30 approved transactions in
277
- # the specified window. Requires `parameters.scope` and `parameters.interval`.
278
- # Use a decimal value.
279
- # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
280
- # entity over the specified window, in cents. Requires `parameters.scope` and
281
- # `parameters.interval`. Use a decimal value.
282
- # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
283
- # amounts for the entity over the specified window, in cents. Null if fewer than
284
- # 30 approved transactions in the specified window. Requires `parameters.scope`
285
- # and `parameters.interval`. Use a decimal value.
286
- # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
287
- # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
288
- # Requires `parameters.scope`.
289
- # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
290
- # transaction history. Valid values are `TRUE`, `FALSE`. Requires
291
- # `parameters.scope`.
292
- # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
293
- # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
294
- # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
295
- # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
296
- # supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
297
- # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
298
- # transaction for the entity, rounded to the nearest whole day. Requires
299
- # `parameters.scope`. Use an integer value.
300
- # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
301
- # the entity's transaction history. Requires `parameters.scope`. Use an integer
302
- # value.
303
- # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
304
- # card's approved transaction history (capped at the 1000 most recently seen
305
- # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
306
- # `parameters` required.
307
- # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
308
- # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
309
- # Use a decimal value.
310
- # - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
311
- # between the postal code centers of the last card-present transaction and the
312
- # current transaction, divided by the elapsed time. Null if there is no prior
313
- # card-present transaction, if either postal code cannot be geocoded, or if
314
- # elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
315
- # decimal value.
316
- # - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
317
- # code centers of the last card-present transaction and the current transaction.
318
- # Null if there is no prior card-present transaction or if either postal code
319
- # cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
320
- # Use a decimal value.
321
- #
322
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute
323
- module Attribute
324
- extend Lithic::Internal::Type::Enum
325
-
326
- MCC = :MCC
327
- COUNTRY = :COUNTRY
328
- CURRENCY = :CURRENCY
329
- MERCHANT_ID = :MERCHANT_ID
330
- DESCRIPTOR = :DESCRIPTOR
331
- LIABILITY_SHIFT = :LIABILITY_SHIFT
332
- PAN_ENTRY_MODE = :PAN_ENTRY_MODE
333
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
334
- CASH_AMOUNT = :CASH_AMOUNT
335
- RISK_SCORE = :RISK_SCORE
336
- CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
337
- CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
338
- CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
339
- CARD_DECLINE_COUNT_15_M = :CARD_DECLINE_COUNT_15M
340
- CARD_DECLINE_COUNT_1_H = :CARD_DECLINE_COUNT_1H
341
- CARD_DECLINE_COUNT_24_H = :CARD_DECLINE_COUNT_24H
342
- CARD_STATE = :CARD_STATE
343
- PIN_ENTERED = :PIN_ENTERED
344
- PIN_STATUS = :PIN_STATUS
345
- WALLET_TYPE = :WALLET_TYPE
346
- TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
347
- ADDRESS_MATCH = :ADDRESS_MATCH
348
- SERVICE_LOCATION_STATE = :SERVICE_LOCATION_STATE
349
- SERVICE_LOCATION_POSTAL_CODE = :SERVICE_LOCATION_POSTAL_CODE
350
- CARD_AGE = :CARD_AGE
351
- ACCOUNT_AGE = :ACCOUNT_AGE
352
- AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
353
- AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
354
- STDEV_TRANSACTION_AMOUNT = :STDEV_TRANSACTION_AMOUNT
355
- IS_NEW_COUNTRY = :IS_NEW_COUNTRY
356
- IS_NEW_MCC = :IS_NEW_MCC
357
- IS_FIRST_TRANSACTION = :IS_FIRST_TRANSACTION
358
- CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
359
- TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
360
- DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
361
- IS_NEW_MERCHANT = :IS_NEW_MERCHANT
362
- THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
363
- TRAVEL_SPEED = :TRAVEL_SPEED
364
- DISTANCE_FROM_LAST_TRANSACTION = :DISTANCE_FROM_LAST_TRANSACTION
365
-
366
- # @!method self.values
367
- # @return [Array<Symbol>]
368
- end
369
-
370
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#parameters
371
- class Parameters < Lithic::Internal::Type::BaseModel
372
- # @!attribute interval
373
- # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
374
- # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
375
- # all-time history or a specific window (`7D`, `30D`, `90D`).
376
- #
377
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval, nil]
378
- optional :interval,
379
- enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval }
380
-
381
- # @!attribute scope
382
- # The entity scope to evaluate the attribute against.
383
- #
384
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope, nil]
385
- optional :scope,
386
- enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope }
387
-
388
- # @!attribute unit
389
- # The unit for impossible travel attributes. Required when `attribute` is
390
- # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
391
- #
392
- # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
393
- #
394
- # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
395
- #
396
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Unit, nil]
397
- optional :unit,
398
- enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Unit }
399
-
400
- # @!method initialize(interval: nil, scope: nil, unit: nil)
401
- # Some parameter documentations has been truncated, see
402
- # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters}
403
- # for more details.
404
- #
405
- # Additional parameters for certain attributes. Required when `attribute` is one
406
- # of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`,
407
- # `IS_NEW_COUNTRY`, `IS_NEW_MCC`, `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`,
408
- # `TIME_SINCE_LAST_TRANSACTION`, or `DISTINCT_COUNTRY_COUNT` (require `scope`); or
409
- # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used
410
- # for other attributes.
411
- #
412
- # @param interval [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval] The time window for statistical attributes (`AMOUNT_Z_SCORE`, `AVG_TRANSACTION_A
413
- #
414
- # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
415
- #
416
- # @param unit [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Unit] The unit for impossible travel attributes. Required when `attribute` is
417
- # `TRAVEL\_
418
-
419
- # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
420
- # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
421
- # all-time history or a specific window (`7D`, `30D`, `90D`).
422
- #
423
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters#interval
424
- module Interval
425
- extend Lithic::Internal::Type::Enum
426
-
427
- LIFETIME = :LIFETIME
428
- INTERVAL_7_D = :"7D"
429
- INTERVAL_30_D = :"30D"
430
- INTERVAL_90_D = :"90D"
431
-
432
- # @!method self.values
433
- # @return [Array<Symbol>]
434
- end
435
-
436
- # The entity scope to evaluate the attribute against.
437
- #
438
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters#scope
439
- module Scope
440
- extend Lithic::Internal::Type::Enum
441
-
442
- CARD = :CARD
443
- ACCOUNT = :ACCOUNT
444
- BUSINESS_ACCOUNT = :BUSINESS_ACCOUNT
445
-
446
- # @!method self.values
447
- # @return [Array<Symbol>]
448
- end
449
-
450
- # The unit for impossible travel attributes. Required when `attribute` is
451
- # `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
452
- #
453
- # For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
454
- #
455
- # For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
456
- #
457
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters#unit
458
- module Unit
459
- extend Lithic::Internal::Type::Enum
460
-
461
- MPH = :MPH
462
- KPH = :KPH
463
- MILES = :MILES
464
- KILOMETERS = :KILOMETERS
465
-
466
- # @!method self.values
467
- # @return [Array<Symbol>]
468
- end
469
- end
470
- end
471
35
  end
472
36
  end
473
37
  end
@@ -164,6 +164,9 @@ module Lithic
164
164
  # card acceptor postal code.
165
165
  # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
166
166
  # Use an integer value.
167
+ # - `IS_DOMESTIC`: Whether the merchant's country matches the card program's
168
+ # issuing country. Valid values are `TRUE`, `FALSE`. For programs with no
169
+ # issuing country configured, this attribute does not evaluate.
167
170
  # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
168
171
  # of the authorization. Use an integer value. For programs where Lithic does not
169
172
  # manage or retain account holder data, this attribute does not evaluate.
@@ -326,6 +329,9 @@ module Lithic
326
329
  # card acceptor postal code.
327
330
  # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
328
331
  # Use an integer value.
332
+ # - `IS_DOMESTIC`: Whether the merchant's country matches the card program's
333
+ # issuing country. Valid values are `TRUE`, `FALSE`. For programs with no
334
+ # issuing country configured, this attribute does not evaluate.
329
335
  # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
330
336
  # of the authorization. Use an integer value. For programs where Lithic does not
331
337
  # manage or retain account holder data, this attribute does not evaluate.
@@ -405,6 +411,7 @@ module Lithic
405
411
  SERVICE_LOCATION_STATE = :SERVICE_LOCATION_STATE
406
412
  SERVICE_LOCATION_POSTAL_CODE = :SERVICE_LOCATION_POSTAL_CODE
407
413
  CARD_AGE = :CARD_AGE
414
+ IS_DOMESTIC = :IS_DOMESTIC
408
415
  ACCOUNT_AGE = :ACCOUNT_AGE
409
416
  AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
410
417
  AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
@@ -12,11 +12,21 @@ module Lithic
12
12
  required :merchants,
13
13
  -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::MerchantLockParameters::Merchant] }
14
14
 
15
- # @!method initialize(merchants:)
15
+ response_only do
16
+ # @!attribute locked_at
17
+ # Timestamp of when the merchant lock was created
18
+ #
19
+ # @return [Time, nil]
20
+ optional :locked_at, Time
21
+ end
22
+
23
+ # @!method initialize(merchants:, locked_at: nil)
16
24
  # Some parameter documentations has been truncated, see
17
25
  # {Lithic::Models::AuthRules::MerchantLockParameters} for more details.
18
26
  #
19
27
  # @param merchants [Array<Lithic::Models::AuthRules::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
28
+ #
29
+ # @param locked_at [Time] Timestamp of when the merchant lock was created
20
30
 
21
31
  class Merchant < Lithic::Internal::Type::BaseModel
22
32
  # @!attribute comment
@@ -166,6 +166,7 @@ module Lithic
166
166
  PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
167
167
  PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
168
168
  REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
169
+ SCA_REQUIRED = :SCA_REQUIRED
169
170
  SECURITY_VIOLATION = :SECURITY_VIOLATION
170
171
  SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
171
172
  SUSPECTED_FRAUD = :SUSPECTED_FRAUD