lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55

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 (157) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +6 -2
  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_simulate_enrollment_review_response.rb +2 -2
  9. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  12. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  14. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  18. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  19. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  20. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  21. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  22. data/lib/lithic/models/book_transfer_response.rb +5 -5
  23. data/lib/lithic/models/dispute.rb +510 -242
  24. data/lib/lithic/models/dispute_create_response.rb +326 -0
  25. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  26. data/lib/lithic/models/dispute_list_response.rb +326 -0
  27. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  28. data/lib/lithic/models/dispute_update_response.rb +326 -0
  29. data/lib/lithic/models/event.rb +213 -69
  30. data/lib/lithic/models/event_list_params.rb +112 -6
  31. data/lib/lithic/models/event_subscription.rb +112 -6
  32. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  33. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  34. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  35. data/lib/lithic/models/financial_account.rb +1 -65
  36. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  38. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  39. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  40. data/lib/lithic/models/financial_transaction.rb +1 -0
  41. data/lib/lithic/models/payment.rb +29 -18
  42. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  43. data/lib/lithic/models/tokenization.rb +189 -23
  44. data/lib/lithic/models/transaction.rb +12 -116
  45. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  46. data/lib/lithic/models/transfer.rb +1 -0
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  48. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  49. data/lib/lithic/resources/disputes.rb +10 -10
  50. data/lib/lithic/resources/payments.rb +5 -1
  51. data/lib/lithic/version.rb +1 -1
  52. data/lib/lithic.rb +8 -3
  53. data/manifest.yaml +1 -0
  54. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  55. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  56. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  57. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  58. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  59. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  60. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  61. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  63. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  64. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  65. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  66. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  67. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  68. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  70. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  71. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  72. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  73. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  74. data/rbi/lithic/models/dispute.rbi +942 -395
  75. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  76. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  77. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  78. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  79. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  80. data/rbi/lithic/models/event.rbi +348 -111
  81. data/rbi/lithic/models/event_list_params.rbi +155 -25
  82. data/rbi/lithic/models/event_subscription.rbi +155 -25
  83. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  84. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  85. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  86. data/rbi/lithic/models/financial_account.rbi +3 -132
  87. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  89. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  90. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  91. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  92. data/rbi/lithic/models/payment.rbi +52 -28
  93. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  94. data/rbi/lithic/models/tokenization.rbi +429 -34
  95. data/rbi/lithic/models/transaction.rbi +22 -246
  96. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  97. data/rbi/lithic/models/transfer.rbi +5 -0
  98. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  99. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  100. data/rbi/lithic/resources/disputes.rbi +7 -5
  101. data/rbi/lithic/resources/payments.rbi +6 -0
  102. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  103. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  104. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  105. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  106. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  107. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  109. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  110. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  111. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  112. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  113. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  114. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  115. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  116. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  117. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  118. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  119. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  120. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  121. data/sig/lithic/models/dispute.rbs +417 -157
  122. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  123. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  124. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  125. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  126. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  127. data/sig/lithic/models/event.rbs +25 -13
  128. data/sig/lithic/models/event_list_params.rbs +25 -13
  129. data/sig/lithic/models/event_subscription.rbs +25 -13
  130. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  131. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  132. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  133. data/sig/lithic/models/financial_account.rbs +3 -45
  134. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  135. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  136. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  137. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  138. data/sig/lithic/models/financial_transaction.rbs +2 -0
  139. data/sig/lithic/models/payment.rbs +16 -12
  140. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  141. data/sig/lithic/models/tokenization.rbs +160 -13
  142. data/sig/lithic/models/transaction.rbs +13 -94
  143. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  144. data/sig/lithic/models/transfer.rbs +2 -0
  145. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  146. data/sig/lithic/resources/disputes.rbs +5 -5
  147. data/sig/lithic/resources/payments.rbs +2 -0
  148. metadata +23 -11
  149. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  150. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  151. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  152. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  153. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  154. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  155. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  156. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  157. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -21,7 +21,7 @@ module Lithic
21
21
  Lithic::AuthRules::VelocityLimitParams,
22
22
  Lithic::AuthRules::MerchantLockParameters,
23
23
  Lithic::AuthRules::Conditional3DSActionParameters,
24
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters
24
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters
25
25
  )
26
26
  )
27
27
  )
@@ -37,7 +37,7 @@ module Lithic
37
37
  Lithic::AuthRules::VelocityLimitParams::OrHash,
38
38
  Lithic::AuthRules::MerchantLockParameters::OrHash,
39
39
  Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
40
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
40
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash
41
41
  )
42
42
  ),
43
43
  request_options: Lithic::RequestOptions::OrHash
@@ -60,7 +60,7 @@ module Lithic
60
60
  Lithic::AuthRules::VelocityLimitParams,
61
61
  Lithic::AuthRules::MerchantLockParameters,
62
62
  Lithic::AuthRules::Conditional3DSActionParameters,
63
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters
63
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters
64
64
  )
65
65
  ),
66
66
  request_options: Lithic::RequestOptions
@@ -81,581 +81,10 @@ module Lithic
81
81
  Lithic::AuthRules::VelocityLimitParams,
82
82
  Lithic::AuthRules::MerchantLockParameters,
83
83
  Lithic::AuthRules::Conditional3DSActionParameters,
84
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters
84
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters
85
85
  )
86
86
  end
87
87
 
88
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
89
- OrHash =
90
- T.type_alias do
91
- T.any(
92
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters,
93
- Lithic::Internal::AnyHash
94
- )
95
- end
96
-
97
- # The action to take if the conditions are met.
98
- sig do
99
- returns(
100
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol
101
- )
102
- end
103
- attr_accessor :action
104
-
105
- sig do
106
- returns(
107
- T::Array[
108
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition
109
- ]
110
- )
111
- end
112
- attr_accessor :conditions
113
-
114
- sig do
115
- params(
116
- action:
117
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
118
- conditions:
119
- T::Array[
120
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
121
- ]
122
- ).returns(T.attached_class)
123
- end
124
- def self.new(
125
- # The action to take if the conditions are met.
126
- action:,
127
- conditions:
128
- )
129
- end
130
-
131
- sig do
132
- override.returns(
133
- {
134
- action:
135
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
136
- conditions:
137
- T::Array[
138
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition
139
- ]
140
- }
141
- )
142
- end
143
- def to_hash
144
- end
145
-
146
- # The action to take if the conditions are met.
147
- module Action
148
- extend Lithic::Internal::Type::Enum
149
-
150
- TaggedSymbol =
151
- T.type_alias do
152
- T.all(
153
- Symbol,
154
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action
155
- )
156
- end
157
- OrSymbol = T.type_alias { T.any(Symbol, String) }
158
-
159
- DECLINE =
160
- T.let(
161
- :DECLINE,
162
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
163
- )
164
- CHALLENGE =
165
- T.let(
166
- :CHALLENGE,
167
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
168
- )
169
-
170
- sig do
171
- override.returns(
172
- T::Array[
173
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
174
- ]
175
- )
176
- end
177
- def self.values
178
- end
179
- end
180
-
181
- class Condition < Lithic::Internal::Type::BaseModel
182
- OrHash =
183
- T.type_alias do
184
- T.any(
185
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition,
186
- Lithic::Internal::AnyHash
187
- )
188
- end
189
-
190
- # The attribute to target.
191
- #
192
- # The following attributes may be targeted:
193
- #
194
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
195
- # business by the types of goods or services it provides.
196
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
197
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
198
- # Netherlands Antilles.
199
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
200
- # the transaction.
201
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
202
- # (merchant).
203
- # - `DESCRIPTOR`: Short description of card acceptor.
204
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
205
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
206
- # `TOKEN_AUTHENTICATED`.
207
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
208
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
209
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
210
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
211
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
212
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
213
- # fee field in the settlement/cardholder billing currency. This is the amount
214
- # the issuer should authorize against unless the issuer is paying the acquirer
215
- # fee on behalf of the cardholder.
216
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
217
- # represents the amount of cash being withdrawn or advanced.
218
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
219
- # given authorization. Scores are on a range of 0-999, with 0 representing the
220
- # lowest risk and 999 representing the highest risk. For Visa transactions,
221
- # where the raw score has a range of 0-99, Lithic will normalize the score by
222
- # multiplying the raw score by 10x.
223
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
224
- # trailing 15 minutes before the authorization.
225
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
226
- # trailing hour up and until the authorization.
227
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
228
- # trailing 24 hours up and until the authorization.
229
- # - `CARD_STATE`: The current state of the card associated with the transaction.
230
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
231
- # `PENDING_FULFILLMENT`.
232
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
233
- # Valid values are `TRUE`, `FALSE`.
234
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
235
- # `OK`, `BLOCKED`.
236
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
237
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
238
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
239
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
240
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
241
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
242
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
243
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
244
- sig do
245
- returns(
246
- T.nilable(
247
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
248
- )
249
- )
250
- end
251
- attr_reader :attribute
252
-
253
- sig do
254
- params(
255
- attribute:
256
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
257
- ).void
258
- end
259
- attr_writer :attribute
260
-
261
- # The operation to apply to the attribute
262
- sig do
263
- returns(
264
- T.nilable(
265
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
266
- )
267
- )
268
- end
269
- attr_reader :operation
270
-
271
- sig do
272
- params(
273
- operation:
274
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
275
- ).void
276
- end
277
- attr_writer :operation
278
-
279
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
280
- sig do
281
- returns(
282
- T.nilable(
283
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
284
- )
285
- )
286
- end
287
- attr_reader :value
288
-
289
- sig do
290
- params(
291
- value:
292
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
293
- ).void
294
- end
295
- attr_writer :value
296
-
297
- sig do
298
- params(
299
- attribute:
300
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
301
- operation:
302
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
303
- value:
304
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
305
- ).returns(T.attached_class)
306
- end
307
- def self.new(
308
- # The attribute to target.
309
- #
310
- # The following attributes may be targeted:
311
- #
312
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
313
- # business by the types of goods or services it provides.
314
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
315
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
316
- # Netherlands Antilles.
317
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
318
- # the transaction.
319
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
320
- # (merchant).
321
- # - `DESCRIPTOR`: Short description of card acceptor.
322
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
323
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
324
- # `TOKEN_AUTHENTICATED`.
325
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
326
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
327
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
328
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
329
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
330
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
331
- # fee field in the settlement/cardholder billing currency. This is the amount
332
- # the issuer should authorize against unless the issuer is paying the acquirer
333
- # fee on behalf of the cardholder.
334
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
335
- # represents the amount of cash being withdrawn or advanced.
336
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
337
- # given authorization. Scores are on a range of 0-999, with 0 representing the
338
- # lowest risk and 999 representing the highest risk. For Visa transactions,
339
- # where the raw score has a range of 0-99, Lithic will normalize the score by
340
- # multiplying the raw score by 10x.
341
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
342
- # trailing 15 minutes before the authorization.
343
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
344
- # trailing hour up and until the authorization.
345
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
346
- # trailing 24 hours up and until the authorization.
347
- # - `CARD_STATE`: The current state of the card associated with the transaction.
348
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
349
- # `PENDING_FULFILLMENT`.
350
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
351
- # Valid values are `TRUE`, `FALSE`.
352
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
353
- # `OK`, `BLOCKED`.
354
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
355
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
356
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
357
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
358
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
359
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
360
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
361
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
362
- attribute: nil,
363
- # The operation to apply to the attribute
364
- operation: nil,
365
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
366
- value: nil
367
- )
368
- end
369
-
370
- sig do
371
- override.returns(
372
- {
373
- attribute:
374
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
375
- operation:
376
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
377
- value:
378
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
379
- }
380
- )
381
- end
382
- def to_hash
383
- end
384
-
385
- # The attribute to target.
386
- #
387
- # The following attributes may be targeted:
388
- #
389
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
390
- # business by the types of goods or services it provides.
391
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
392
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
393
- # Netherlands Antilles.
394
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
395
- # the transaction.
396
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
397
- # (merchant).
398
- # - `DESCRIPTOR`: Short description of card acceptor.
399
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
400
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
401
- # `TOKEN_AUTHENTICATED`.
402
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
403
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
404
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
405
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
406
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
407
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
408
- # fee field in the settlement/cardholder billing currency. This is the amount
409
- # the issuer should authorize against unless the issuer is paying the acquirer
410
- # fee on behalf of the cardholder.
411
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
412
- # represents the amount of cash being withdrawn or advanced.
413
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
414
- # given authorization. Scores are on a range of 0-999, with 0 representing the
415
- # lowest risk and 999 representing the highest risk. For Visa transactions,
416
- # where the raw score has a range of 0-99, Lithic will normalize the score by
417
- # multiplying the raw score by 10x.
418
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
419
- # trailing 15 minutes before the authorization.
420
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
421
- # trailing hour up and until the authorization.
422
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
423
- # trailing 24 hours up and until the authorization.
424
- # - `CARD_STATE`: The current state of the card associated with the transaction.
425
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
426
- # `PENDING_FULFILLMENT`.
427
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
428
- # Valid values are `TRUE`, `FALSE`.
429
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
430
- # `OK`, `BLOCKED`.
431
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
432
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
433
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
434
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
435
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
436
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
437
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
438
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
439
- module Attribute
440
- extend Lithic::Internal::Type::Enum
441
-
442
- TaggedSymbol =
443
- T.type_alias do
444
- T.all(
445
- Symbol,
446
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
447
- )
448
- end
449
- OrSymbol = T.type_alias { T.any(Symbol, String) }
450
-
451
- MCC =
452
- T.let(
453
- :MCC,
454
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
455
- )
456
- COUNTRY =
457
- T.let(
458
- :COUNTRY,
459
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
460
- )
461
- CURRENCY =
462
- T.let(
463
- :CURRENCY,
464
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
465
- )
466
- MERCHANT_ID =
467
- T.let(
468
- :MERCHANT_ID,
469
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
470
- )
471
- DESCRIPTOR =
472
- T.let(
473
- :DESCRIPTOR,
474
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
475
- )
476
- LIABILITY_SHIFT =
477
- T.let(
478
- :LIABILITY_SHIFT,
479
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
480
- )
481
- PAN_ENTRY_MODE =
482
- T.let(
483
- :PAN_ENTRY_MODE,
484
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
485
- )
486
- TRANSACTION_AMOUNT =
487
- T.let(
488
- :TRANSACTION_AMOUNT,
489
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
490
- )
491
- CASH_AMOUNT =
492
- T.let(
493
- :CASH_AMOUNT,
494
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
495
- )
496
- RISK_SCORE =
497
- T.let(
498
- :RISK_SCORE,
499
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
500
- )
501
- CARD_TRANSACTION_COUNT_15_M =
502
- T.let(
503
- :CARD_TRANSACTION_COUNT_15M,
504
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
505
- )
506
- CARD_TRANSACTION_COUNT_1_H =
507
- T.let(
508
- :CARD_TRANSACTION_COUNT_1H,
509
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
510
- )
511
- CARD_TRANSACTION_COUNT_24_H =
512
- T.let(
513
- :CARD_TRANSACTION_COUNT_24H,
514
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
515
- )
516
- CARD_STATE =
517
- T.let(
518
- :CARD_STATE,
519
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
520
- )
521
- PIN_ENTERED =
522
- T.let(
523
- :PIN_ENTERED,
524
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
525
- )
526
- PIN_STATUS =
527
- T.let(
528
- :PIN_STATUS,
529
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
530
- )
531
- WALLET_TYPE =
532
- T.let(
533
- :WALLET_TYPE,
534
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
535
- )
536
- TRANSACTION_INITIATOR =
537
- T.let(
538
- :TRANSACTION_INITIATOR,
539
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
540
- )
541
- ADDRESS_MATCH =
542
- T.let(
543
- :ADDRESS_MATCH,
544
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
545
- )
546
-
547
- sig do
548
- override.returns(
549
- T::Array[
550
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
551
- ]
552
- )
553
- end
554
- def self.values
555
- end
556
- end
557
-
558
- # The operation to apply to the attribute
559
- module Operation
560
- extend Lithic::Internal::Type::Enum
561
-
562
- TaggedSymbol =
563
- T.type_alias do
564
- T.all(
565
- Symbol,
566
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
567
- )
568
- end
569
- OrSymbol = T.type_alias { T.any(Symbol, String) }
570
-
571
- IS_ONE_OF =
572
- T.let(
573
- :IS_ONE_OF,
574
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
575
- )
576
- IS_NOT_ONE_OF =
577
- T.let(
578
- :IS_NOT_ONE_OF,
579
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
580
- )
581
- MATCHES =
582
- T.let(
583
- :MATCHES,
584
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
585
- )
586
- DOES_NOT_MATCH =
587
- T.let(
588
- :DOES_NOT_MATCH,
589
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
590
- )
591
- IS_EQUAL_TO =
592
- T.let(
593
- :IS_EQUAL_TO,
594
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
595
- )
596
- IS_NOT_EQUAL_TO =
597
- T.let(
598
- :IS_NOT_EQUAL_TO,
599
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
600
- )
601
- IS_GREATER_THAN =
602
- T.let(
603
- :IS_GREATER_THAN,
604
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
605
- )
606
- IS_GREATER_THAN_OR_EQUAL_TO =
607
- T.let(
608
- :IS_GREATER_THAN_OR_EQUAL_TO,
609
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
610
- )
611
- IS_LESS_THAN =
612
- T.let(
613
- :IS_LESS_THAN,
614
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
615
- )
616
- IS_LESS_THAN_OR_EQUAL_TO =
617
- T.let(
618
- :IS_LESS_THAN_OR_EQUAL_TO,
619
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
620
- )
621
-
622
- sig do
623
- override.returns(
624
- T::Array[
625
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
626
- ]
627
- )
628
- end
629
- def self.values
630
- end
631
- end
632
-
633
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
634
- module Value
635
- extend Lithic::Internal::Type::Union
636
-
637
- Variants =
638
- T.type_alias { T.any(String, Integer, T::Array[String]) }
639
-
640
- sig do
641
- override.returns(
642
- T::Array[
643
- Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
644
- ]
645
- )
646
- end
647
- def self.variants
648
- end
649
-
650
- StringArray =
651
- T.let(
652
- Lithic::Internal::Type::ArrayOf[String],
653
- Lithic::Internal::Type::Converter
654
- )
655
- end
656
- end
657
- end
658
-
659
88
  sig do
660
89
  override.returns(
661
90
  T::Array[Lithic::AuthRules::V2DraftParams::Parameters::Variants]