lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  8. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
  13. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  15. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
  17. data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
  19. data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
  20. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  21. data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
  22. data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
  23. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  24. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
  25. data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
  26. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  27. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  28. data/lib/lithic/models/book_transfer_response.rb +6 -5
  29. data/lib/lithic/models/category_details.rb +27 -0
  30. data/lib/lithic/models/dispute_v2.rb +555 -0
  31. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  32. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  33. data/lib/lithic/models/event.rb +213 -69
  34. data/lib/lithic/models/event_list_params.rb +112 -6
  35. data/lib/lithic/models/event_subscription.rb +112 -6
  36. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  37. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  38. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  39. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  40. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  41. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  42. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  43. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  44. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  45. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  46. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  47. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  48. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  49. data/lib/lithic/models/external_payment.rb +3 -2
  50. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  51. data/lib/lithic/models/financial_account.rb +5 -68
  52. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  53. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  54. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
  55. data/lib/lithic/models/financial_accounts/statement.rb +73 -211
  56. data/lib/lithic/models/financial_event.rb +148 -0
  57. data/lib/lithic/models/financial_transaction.rb +3 -146
  58. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  59. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  60. data/lib/lithic/models/merchant.rb +70 -0
  61. data/lib/lithic/models/payment.rb +16 -14
  62. data/lib/lithic/models/payment_return_params.rb +62 -0
  63. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  64. data/lib/lithic/models/statement_totals.rb +100 -0
  65. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  66. data/lib/lithic/models/tokenization.rb +189 -23
  67. data/lib/lithic/models/transaction.rb +15 -185
  68. data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
  69. data/lib/lithic/models/transfer.rb +3 -146
  70. data/lib/lithic/models.rb +18 -0
  71. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  72. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  73. data/lib/lithic/resources/disputes_v2.rb +74 -0
  74. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  75. data/lib/lithic/resources/payments.rb +53 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +18 -3
  78. data/rbi/lithic/client.rbi +3 -0
  79. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  80. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  81. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  82. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  83. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  84. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  85. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  86. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
  87. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  88. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  89. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  90. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
  91. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
  92. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
  93. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
  94. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  95. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
  96. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
  97. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  98. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
  99. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
  100. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  101. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  102. data/rbi/lithic/models/book_transfer_response.rbi +16 -11
  103. data/rbi/lithic/models/category_details.rbi +43 -0
  104. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  105. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  106. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  107. data/rbi/lithic/models/event.rbi +348 -111
  108. data/rbi/lithic/models/event_list_params.rbi +155 -25
  109. data/rbi/lithic/models/event_subscription.rbi +155 -25
  110. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  111. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  112. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  113. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  114. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  115. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  116. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  117. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  118. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  119. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  120. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  121. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  122. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  123. data/rbi/lithic/models/external_payment.rbi +5 -6
  124. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  125. data/rbi/lithic/models/financial_account.rbi +15 -136
  126. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  127. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  128. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
  129. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
  130. data/rbi/lithic/models/financial_event.rbi +409 -0
  131. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  132. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  133. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  134. data/rbi/lithic/models/merchant.rbi +89 -0
  135. data/rbi/lithic/models/payment.rbi +27 -21
  136. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  137. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  138. data/rbi/lithic/models/statement_totals.rbi +128 -0
  139. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  140. data/rbi/lithic/models/tokenization.rbi +429 -34
  141. data/rbi/lithic/models/transaction.rbi +26 -336
  142. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
  143. data/rbi/lithic/models/transfer.rbi +4 -436
  144. data/rbi/lithic/models.rbi +19 -0
  145. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  146. data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
  147. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  148. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  149. data/rbi/lithic/resources/payments.rbi +52 -0
  150. data/sig/lithic/client.rbs +2 -0
  151. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  152. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  153. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  154. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  155. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  156. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  157. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  158. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
  159. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  160. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  161. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  162. data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
  163. data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
  164. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
  165. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
  166. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  167. data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
  168. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
  169. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  170. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
  171. data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
  172. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  173. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  174. data/sig/lithic/models/book_transfer_response.rbs +10 -8
  175. data/sig/lithic/models/category_details.rbs +26 -0
  176. data/sig/lithic/models/dispute_v2.rbs +438 -0
  177. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  178. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  179. data/sig/lithic/models/event.rbs +25 -13
  180. data/sig/lithic/models/event_list_params.rbs +25 -13
  181. data/sig/lithic/models/event_subscription.rbs +25 -13
  182. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  183. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  184. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  185. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  186. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  187. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  188. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  189. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  190. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  191. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  192. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  193. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  194. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  195. data/sig/lithic/models/external_payment.rbs +7 -7
  196. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  197. data/sig/lithic/models/financial_account.rbs +7 -49
  198. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  199. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  200. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
  201. data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
  202. data/sig/lithic/models/financial_event.rbs +216 -0
  203. data/sig/lithic/models/financial_transaction.rbs +4 -217
  204. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  205. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  206. data/sig/lithic/models/merchant.rbs +50 -0
  207. data/sig/lithic/models/payment.rbs +17 -15
  208. data/sig/lithic/models/payment_return_params.rbs +46 -0
  209. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  210. data/sig/lithic/models/statement_totals.rbs +76 -0
  211. data/sig/lithic/models/tokenization.rbs +160 -13
  212. data/sig/lithic/models/transaction.rbs +17 -145
  213. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  214. data/sig/lithic/models/transfer.rbs +6 -219
  215. data/sig/lithic/models.rbs +18 -0
  216. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  217. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  218. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  219. data/sig/lithic/resources/payments.rbs +12 -0
  220. metadata +56 -11
  221. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  222. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  223. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  224. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  225. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  226. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  227. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  228. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  229. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -12,6 +12,35 @@ module Lithic
12
12
  T.any(Lithic::AuthRules::V2CreateParams, Lithic::Internal::AnyHash)
13
13
  end
14
14
 
15
+ # Parameters for the Auth Rule
16
+ sig do
17
+ returns(
18
+ T.any(
19
+ Lithic::AuthRules::ConditionalBlockParameters,
20
+ Lithic::AuthRules::VelocityLimitParams,
21
+ Lithic::AuthRules::MerchantLockParameters,
22
+ Lithic::AuthRules::Conditional3DSActionParameters,
23
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
24
+ Lithic::AuthRules::ConditionalACHActionParameters,
25
+ Lithic::AuthRules::ConditionalTokenizationActionParameters
26
+ )
27
+ )
28
+ end
29
+ attr_accessor :parameters
30
+
31
+ # The type of Auth Rule. For certain rule types, this determines the event stream
32
+ # during which it will be evaluated. For rules that can be applied to one of
33
+ # several event streams, the effective one is defined by the separate
34
+ # `event_stream` field.
35
+ #
36
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
37
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
38
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
39
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
40
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
41
+ sig { returns(Lithic::AuthRules::V2CreateParams::Type::OrSymbol) }
42
+ attr_accessor :type
43
+
15
44
  # Account tokens to which the Auth Rule applies.
16
45
  sig { returns(T.nilable(T::Array[String])) }
17
46
  attr_reader :account_tokens
@@ -46,55 +75,6 @@ module Lithic
46
75
  sig { returns(T.nilable(String)) }
47
76
  attr_accessor :name
48
77
 
49
- # Parameters for the Auth Rule
50
- sig do
51
- returns(
52
- T.nilable(
53
- T.any(
54
- Lithic::AuthRules::ConditionalBlockParameters,
55
- Lithic::AuthRules::VelocityLimitParams,
56
- Lithic::AuthRules::MerchantLockParameters,
57
- Lithic::AuthRules::Conditional3DSActionParameters,
58
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters
59
- )
60
- )
61
- )
62
- end
63
- attr_reader :parameters
64
-
65
- sig do
66
- params(
67
- parameters:
68
- T.any(
69
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
70
- Lithic::AuthRules::VelocityLimitParams::OrHash,
71
- Lithic::AuthRules::MerchantLockParameters::OrHash,
72
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
73
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
74
- )
75
- ).void
76
- end
77
- attr_writer :parameters
78
-
79
- # The type of Auth Rule. For certain rule types, this determines the event stream
80
- # during which it will be evaluated. For rules that can be applied to one of
81
- # several event streams, the effective one is defined by the separate
82
- # `event_stream` field.
83
- #
84
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
85
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
86
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
87
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
88
- sig do
89
- returns(T.nilable(Lithic::AuthRules::V2CreateParams::Type::OrSymbol))
90
- end
91
- attr_reader :type
92
-
93
- sig do
94
- params(type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol).void
95
- end
96
- attr_writer :type
97
-
98
78
  # Card tokens to which the Auth Rule applies.
99
79
  sig { returns(T::Array[String]) }
100
80
  attr_accessor :card_tokens
@@ -112,27 +92,42 @@ module Lithic
112
92
 
113
93
  sig do
114
94
  params(
115
- card_tokens: T::Array[String],
116
- program_level: T::Boolean,
117
- account_tokens: T::Array[String],
118
- business_account_tokens: T::Array[String],
119
- event_stream:
120
- Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
121
- name: T.nilable(String),
122
95
  parameters:
123
96
  T.any(
124
97
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
125
98
  Lithic::AuthRules::VelocityLimitParams::OrHash,
126
99
  Lithic::AuthRules::MerchantLockParameters::OrHash,
127
100
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
128
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
101
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
102
+ Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
103
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
129
104
  ),
130
105
  type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
106
+ card_tokens: T::Array[String],
107
+ program_level: T::Boolean,
108
+ account_tokens: T::Array[String],
109
+ business_account_tokens: T::Array[String],
110
+ event_stream:
111
+ Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
112
+ name: T.nilable(String),
131
113
  excluded_card_tokens: T::Array[String],
132
114
  request_options: Lithic::RequestOptions::OrHash
133
115
  ).returns(T.attached_class)
134
116
  end
135
117
  def self.new(
118
+ # Parameters for the Auth Rule
119
+ parameters:,
120
+ # The type of Auth Rule. For certain rule types, this determines the event stream
121
+ # during which it will be evaluated. For rules that can be applied to one of
122
+ # several event streams, the effective one is defined by the separate
123
+ # `event_stream` field.
124
+ #
125
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
126
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
127
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
128
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
129
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
130
+ type:,
136
131
  # Card tokens to which the Auth Rule applies.
137
132
  card_tokens:,
138
133
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -145,18 +140,6 @@ module Lithic
145
140
  event_stream: nil,
146
141
  # Auth Rule Name
147
142
  name: nil,
148
- # Parameters for the Auth Rule
149
- parameters: nil,
150
- # The type of Auth Rule. For certain rule types, this determines the event stream
151
- # during which it will be evaluated. For rules that can be applied to one of
152
- # several event streams, the effective one is defined by the separate
153
- # `event_stream` field.
154
- #
155
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
156
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
157
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
158
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
159
- type: nil,
160
143
  # Card tokens to which the Auth Rule does not apply.
161
144
  excluded_card_tokens: nil,
162
145
  request_options: {}
@@ -166,20 +149,22 @@ module Lithic
166
149
  sig do
167
150
  override.returns(
168
151
  {
169
- account_tokens: T::Array[String],
170
- business_account_tokens: T::Array[String],
171
- event_stream:
172
- Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
173
- name: T.nilable(String),
174
152
  parameters:
175
153
  T.any(
176
154
  Lithic::AuthRules::ConditionalBlockParameters,
177
155
  Lithic::AuthRules::VelocityLimitParams,
178
156
  Lithic::AuthRules::MerchantLockParameters,
179
157
  Lithic::AuthRules::Conditional3DSActionParameters,
180
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters
158
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
159
+ Lithic::AuthRules::ConditionalACHActionParameters,
160
+ Lithic::AuthRules::ConditionalTokenizationActionParameters
181
161
  ),
182
162
  type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
163
+ account_tokens: T::Array[String],
164
+ business_account_tokens: T::Array[String],
165
+ event_stream:
166
+ Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
167
+ name: T.nilable(String),
183
168
  card_tokens: T::Array[String],
184
169
  program_level: T::Boolean,
185
170
  excluded_card_tokens: T::Array[String],
@@ -190,38 +175,6 @@ module Lithic
190
175
  def to_hash
191
176
  end
192
177
 
193
- # The event stream during which the rule will be evaluated.
194
- module EventStream
195
- extend Lithic::Internal::Type::Enum
196
-
197
- TaggedSymbol =
198
- T.type_alias do
199
- T.all(Symbol, Lithic::AuthRules::V2CreateParams::EventStream)
200
- end
201
- OrSymbol = T.type_alias { T.any(Symbol, String) }
202
-
203
- AUTHORIZATION =
204
- T.let(
205
- :AUTHORIZATION,
206
- Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
207
- )
208
- THREE_DS_AUTHENTICATION =
209
- T.let(
210
- :THREE_DS_AUTHENTICATION,
211
- Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
212
- )
213
-
214
- sig do
215
- override.returns(
216
- T::Array[
217
- Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
218
- ]
219
- )
220
- end
221
- def self.values
222
- end
223
- end
224
-
225
178
  # Parameters for the Auth Rule
226
179
  module Parameters
227
180
  extend Lithic::Internal::Type::Union
@@ -233,580 +186,11 @@ module Lithic
233
186
  Lithic::AuthRules::VelocityLimitParams,
234
187
  Lithic::AuthRules::MerchantLockParameters,
235
188
  Lithic::AuthRules::Conditional3DSActionParameters,
236
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters
237
- )
238
- end
239
-
240
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
241
- OrHash =
242
- T.type_alias do
243
- T.any(
244
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters,
245
- Lithic::Internal::AnyHash
246
- )
247
- end
248
-
249
- # The action to take if the conditions are met.
250
- sig do
251
- returns(
252
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol
253
- )
254
- end
255
- attr_accessor :action
256
-
257
- sig do
258
- returns(
259
- T::Array[
260
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition
261
- ]
262
- )
263
- end
264
- attr_accessor :conditions
265
-
266
- sig do
267
- params(
268
- action:
269
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
270
- conditions:
271
- T::Array[
272
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
273
- ]
274
- ).returns(T.attached_class)
275
- end
276
- def self.new(
277
- # The action to take if the conditions are met.
278
- action:,
279
- conditions:
280
- )
281
- end
282
-
283
- sig do
284
- override.returns(
285
- {
286
- action:
287
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
288
- conditions:
289
- T::Array[
290
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition
291
- ]
292
- }
189
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters,
190
+ Lithic::AuthRules::ConditionalACHActionParameters,
191
+ Lithic::AuthRules::ConditionalTokenizationActionParameters
293
192
  )
294
193
  end
295
- def to_hash
296
- end
297
-
298
- # The action to take if the conditions are met.
299
- module Action
300
- extend Lithic::Internal::Type::Enum
301
-
302
- TaggedSymbol =
303
- T.type_alias do
304
- T.all(
305
- Symbol,
306
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action
307
- )
308
- end
309
- OrSymbol = T.type_alias { T.any(Symbol, String) }
310
-
311
- DECLINE =
312
- T.let(
313
- :DECLINE,
314
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
315
- )
316
- CHALLENGE =
317
- T.let(
318
- :CHALLENGE,
319
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
320
- )
321
-
322
- sig do
323
- override.returns(
324
- T::Array[
325
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
326
- ]
327
- )
328
- end
329
- def self.values
330
- end
331
- end
332
-
333
- class Condition < Lithic::Internal::Type::BaseModel
334
- OrHash =
335
- T.type_alias do
336
- T.any(
337
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition,
338
- Lithic::Internal::AnyHash
339
- )
340
- end
341
-
342
- # The attribute to target.
343
- #
344
- # The following attributes may be targeted:
345
- #
346
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
347
- # business by the types of goods or services it provides.
348
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
349
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
350
- # Netherlands Antilles.
351
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
352
- # the transaction.
353
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
354
- # (merchant).
355
- # - `DESCRIPTOR`: Short description of card acceptor.
356
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
357
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
358
- # `TOKEN_AUTHENTICATED`.
359
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
360
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
361
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
362
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
363
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
364
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
365
- # fee field in the settlement/cardholder billing currency. This is the amount
366
- # the issuer should authorize against unless the issuer is paying the acquirer
367
- # fee on behalf of the cardholder.
368
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
369
- # represents the amount of cash being withdrawn or advanced.
370
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
371
- # given authorization. Scores are on a range of 0-999, with 0 representing the
372
- # lowest risk and 999 representing the highest risk. For Visa transactions,
373
- # where the raw score has a range of 0-99, Lithic will normalize the score by
374
- # multiplying the raw score by 10x.
375
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
376
- # trailing 15 minutes before the authorization.
377
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
378
- # trailing hour up and until the authorization.
379
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
380
- # trailing 24 hours up and until the authorization.
381
- # - `CARD_STATE`: The current state of the card associated with the transaction.
382
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
383
- # `PENDING_FULFILLMENT`.
384
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
385
- # Valid values are `TRUE`, `FALSE`.
386
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
387
- # `OK`, `BLOCKED`.
388
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
389
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
390
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
391
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
392
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
393
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
394
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
395
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
396
- sig do
397
- returns(
398
- T.nilable(
399
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
400
- )
401
- )
402
- end
403
- attr_reader :attribute
404
-
405
- sig do
406
- params(
407
- attribute:
408
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
409
- ).void
410
- end
411
- attr_writer :attribute
412
-
413
- # The operation to apply to the attribute
414
- sig do
415
- returns(
416
- T.nilable(
417
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
418
- )
419
- )
420
- end
421
- attr_reader :operation
422
-
423
- sig do
424
- params(
425
- operation:
426
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
427
- ).void
428
- end
429
- attr_writer :operation
430
-
431
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
432
- sig do
433
- returns(
434
- T.nilable(
435
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
436
- )
437
- )
438
- end
439
- attr_reader :value
440
-
441
- sig do
442
- params(
443
- value:
444
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
445
- ).void
446
- end
447
- attr_writer :value
448
-
449
- sig do
450
- params(
451
- attribute:
452
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
453
- operation:
454
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
455
- value:
456
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
457
- ).returns(T.attached_class)
458
- end
459
- def self.new(
460
- # The attribute to target.
461
- #
462
- # The following attributes may be targeted:
463
- #
464
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
465
- # business by the types of goods or services it provides.
466
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
467
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
468
- # Netherlands Antilles.
469
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
470
- # the transaction.
471
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
472
- # (merchant).
473
- # - `DESCRIPTOR`: Short description of card acceptor.
474
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
475
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
476
- # `TOKEN_AUTHENTICATED`.
477
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
478
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
479
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
480
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
481
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
482
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
483
- # fee field in the settlement/cardholder billing currency. This is the amount
484
- # the issuer should authorize against unless the issuer is paying the acquirer
485
- # fee on behalf of the cardholder.
486
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
487
- # represents the amount of cash being withdrawn or advanced.
488
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
489
- # given authorization. Scores are on a range of 0-999, with 0 representing the
490
- # lowest risk and 999 representing the highest risk. For Visa transactions,
491
- # where the raw score has a range of 0-99, Lithic will normalize the score by
492
- # multiplying the raw score by 10x.
493
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
494
- # trailing 15 minutes before the authorization.
495
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
496
- # trailing hour up and until the authorization.
497
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
498
- # trailing 24 hours up and until the authorization.
499
- # - `CARD_STATE`: The current state of the card associated with the transaction.
500
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
501
- # `PENDING_FULFILLMENT`.
502
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
503
- # Valid values are `TRUE`, `FALSE`.
504
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
505
- # `OK`, `BLOCKED`.
506
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
507
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
508
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
509
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
510
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
511
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
512
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
513
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
514
- attribute: nil,
515
- # The operation to apply to the attribute
516
- operation: nil,
517
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
518
- value: nil
519
- )
520
- end
521
-
522
- sig do
523
- override.returns(
524
- {
525
- attribute:
526
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
527
- operation:
528
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
529
- value:
530
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
531
- }
532
- )
533
- end
534
- def to_hash
535
- end
536
-
537
- # The attribute to target.
538
- #
539
- # The following attributes may be targeted:
540
- #
541
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
542
- # business by the types of goods or services it provides.
543
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
544
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
545
- # Netherlands Antilles.
546
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
547
- # the transaction.
548
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
549
- # (merchant).
550
- # - `DESCRIPTOR`: Short description of card acceptor.
551
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
552
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
553
- # `TOKEN_AUTHENTICATED`.
554
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
555
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
556
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
557
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
558
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
559
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
560
- # fee field in the settlement/cardholder billing currency. This is the amount
561
- # the issuer should authorize against unless the issuer is paying the acquirer
562
- # fee on behalf of the cardholder.
563
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
564
- # represents the amount of cash being withdrawn or advanced.
565
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
566
- # given authorization. Scores are on a range of 0-999, with 0 representing the
567
- # lowest risk and 999 representing the highest risk. For Visa transactions,
568
- # where the raw score has a range of 0-99, Lithic will normalize the score by
569
- # multiplying the raw score by 10x.
570
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
571
- # trailing 15 minutes before the authorization.
572
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
573
- # trailing hour up and until the authorization.
574
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
575
- # trailing 24 hours up and until the authorization.
576
- # - `CARD_STATE`: The current state of the card associated with the transaction.
577
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
578
- # `PENDING_FULFILLMENT`.
579
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
580
- # Valid values are `TRUE`, `FALSE`.
581
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
582
- # `OK`, `BLOCKED`.
583
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
584
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
585
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
586
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
587
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
588
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
589
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
590
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
591
- module Attribute
592
- extend Lithic::Internal::Type::Enum
593
-
594
- TaggedSymbol =
595
- T.type_alias do
596
- T.all(
597
- Symbol,
598
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
599
- )
600
- end
601
- OrSymbol = T.type_alias { T.any(Symbol, String) }
602
-
603
- MCC =
604
- T.let(
605
- :MCC,
606
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
607
- )
608
- COUNTRY =
609
- T.let(
610
- :COUNTRY,
611
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
612
- )
613
- CURRENCY =
614
- T.let(
615
- :CURRENCY,
616
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
617
- )
618
- MERCHANT_ID =
619
- T.let(
620
- :MERCHANT_ID,
621
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
622
- )
623
- DESCRIPTOR =
624
- T.let(
625
- :DESCRIPTOR,
626
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
627
- )
628
- LIABILITY_SHIFT =
629
- T.let(
630
- :LIABILITY_SHIFT,
631
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
632
- )
633
- PAN_ENTRY_MODE =
634
- T.let(
635
- :PAN_ENTRY_MODE,
636
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
637
- )
638
- TRANSACTION_AMOUNT =
639
- T.let(
640
- :TRANSACTION_AMOUNT,
641
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
642
- )
643
- CASH_AMOUNT =
644
- T.let(
645
- :CASH_AMOUNT,
646
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
647
- )
648
- RISK_SCORE =
649
- T.let(
650
- :RISK_SCORE,
651
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
652
- )
653
- CARD_TRANSACTION_COUNT_15_M =
654
- T.let(
655
- :CARD_TRANSACTION_COUNT_15M,
656
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
657
- )
658
- CARD_TRANSACTION_COUNT_1_H =
659
- T.let(
660
- :CARD_TRANSACTION_COUNT_1H,
661
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
662
- )
663
- CARD_TRANSACTION_COUNT_24_H =
664
- T.let(
665
- :CARD_TRANSACTION_COUNT_24H,
666
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
667
- )
668
- CARD_STATE =
669
- T.let(
670
- :CARD_STATE,
671
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
672
- )
673
- PIN_ENTERED =
674
- T.let(
675
- :PIN_ENTERED,
676
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
677
- )
678
- PIN_STATUS =
679
- T.let(
680
- :PIN_STATUS,
681
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
682
- )
683
- WALLET_TYPE =
684
- T.let(
685
- :WALLET_TYPE,
686
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
687
- )
688
- TRANSACTION_INITIATOR =
689
- T.let(
690
- :TRANSACTION_INITIATOR,
691
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
692
- )
693
- ADDRESS_MATCH =
694
- T.let(
695
- :ADDRESS_MATCH,
696
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
697
- )
698
-
699
- sig do
700
- override.returns(
701
- T::Array[
702
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
703
- ]
704
- )
705
- end
706
- def self.values
707
- end
708
- end
709
-
710
- # The operation to apply to the attribute
711
- module Operation
712
- extend Lithic::Internal::Type::Enum
713
-
714
- TaggedSymbol =
715
- T.type_alias do
716
- T.all(
717
- Symbol,
718
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
719
- )
720
- end
721
- OrSymbol = T.type_alias { T.any(Symbol, String) }
722
-
723
- IS_ONE_OF =
724
- T.let(
725
- :IS_ONE_OF,
726
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
727
- )
728
- IS_NOT_ONE_OF =
729
- T.let(
730
- :IS_NOT_ONE_OF,
731
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
732
- )
733
- MATCHES =
734
- T.let(
735
- :MATCHES,
736
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
737
- )
738
- DOES_NOT_MATCH =
739
- T.let(
740
- :DOES_NOT_MATCH,
741
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
742
- )
743
- IS_EQUAL_TO =
744
- T.let(
745
- :IS_EQUAL_TO,
746
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
747
- )
748
- IS_NOT_EQUAL_TO =
749
- T.let(
750
- :IS_NOT_EQUAL_TO,
751
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
752
- )
753
- IS_GREATER_THAN =
754
- T.let(
755
- :IS_GREATER_THAN,
756
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
757
- )
758
- IS_GREATER_THAN_OR_EQUAL_TO =
759
- T.let(
760
- :IS_GREATER_THAN_OR_EQUAL_TO,
761
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
762
- )
763
- IS_LESS_THAN =
764
- T.let(
765
- :IS_LESS_THAN,
766
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
767
- )
768
- IS_LESS_THAN_OR_EQUAL_TO =
769
- T.let(
770
- :IS_LESS_THAN_OR_EQUAL_TO,
771
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
772
- )
773
-
774
- sig do
775
- override.returns(
776
- T::Array[
777
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
778
- ]
779
- )
780
- end
781
- def self.values
782
- end
783
- end
784
-
785
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
786
- module Value
787
- extend Lithic::Internal::Type::Union
788
-
789
- Variants =
790
- T.type_alias { T.any(String, Integer, T::Array[String]) }
791
-
792
- sig do
793
- override.returns(
794
- T::Array[
795
- Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
796
- ]
797
- )
798
- end
799
- def self.variants
800
- end
801
-
802
- StringArray =
803
- T.let(
804
- Lithic::Internal::Type::ArrayOf[String],
805
- Lithic::Internal::Type::Converter
806
- )
807
- end
808
- end
809
- end
810
194
 
811
195
  sig do
812
196
  override.returns(
@@ -825,7 +209,8 @@ module Lithic
825
209
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
826
210
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
827
211
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
828
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
212
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
213
+ # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
829
214
  module Type
830
215
  extend Lithic::Internal::Type::Enum
831
216
 
@@ -864,6 +249,53 @@ module Lithic
864
249
  def self.values
865
250
  end
866
251
  end
252
+
253
+ # The event stream during which the rule will be evaluated.
254
+ module EventStream
255
+ extend Lithic::Internal::Type::Enum
256
+
257
+ TaggedSymbol =
258
+ T.type_alias do
259
+ T.all(Symbol, Lithic::AuthRules::V2CreateParams::EventStream)
260
+ end
261
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
262
+
263
+ AUTHORIZATION =
264
+ T.let(
265
+ :AUTHORIZATION,
266
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
267
+ )
268
+ THREE_DS_AUTHENTICATION =
269
+ T.let(
270
+ :THREE_DS_AUTHENTICATION,
271
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
272
+ )
273
+ TOKENIZATION =
274
+ T.let(
275
+ :TOKENIZATION,
276
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
277
+ )
278
+ ACH_CREDIT_RECEIPT =
279
+ T.let(
280
+ :ACH_CREDIT_RECEIPT,
281
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
282
+ )
283
+ ACH_DEBIT_RECEIPT =
284
+ T.let(
285
+ :ACH_DEBIT_RECEIPT,
286
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
287
+ )
288
+
289
+ sig do
290
+ override.returns(
291
+ T::Array[
292
+ Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol
293
+ ]
294
+ )
295
+ end
296
+ def self.values
297
+ end
298
+ end
867
299
  end
868
300
  end
869
301
  end