lithic 0.1.0.pre.alpha.54 → 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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  5. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  17. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  18. data/lib/lithic/models/book_transfer_response.rb +5 -5
  19. data/lib/lithic/models/dispute.rb +510 -242
  20. data/lib/lithic/models/dispute_create_response.rb +326 -0
  21. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  22. data/lib/lithic/models/dispute_list_response.rb +326 -0
  23. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  24. data/lib/lithic/models/dispute_update_response.rb +326 -0
  25. data/lib/lithic/models/event.rb +213 -69
  26. data/lib/lithic/models/event_list_params.rb +112 -6
  27. data/lib/lithic/models/event_subscription.rb +112 -6
  28. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  29. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  30. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  31. data/lib/lithic/models/financial_account.rb +1 -65
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  33. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  34. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  35. data/lib/lithic/models/payment.rb +9 -9
  36. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  37. data/lib/lithic/models/tokenization.rb +189 -23
  38. data/lib/lithic/models/transaction.rb +12 -116
  39. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  40. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  41. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  42. data/lib/lithic/resources/disputes.rb +10 -10
  43. data/lib/lithic/resources/payments.rb +5 -1
  44. data/lib/lithic/version.rb +1 -1
  45. data/lib/lithic.rb +7 -3
  46. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  47. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  48. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  49. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  50. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  51. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  52. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  53. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  54. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  55. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  56. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  57. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  58. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  59. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  60. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  61. data/rbi/lithic/models/dispute.rbi +942 -395
  62. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  63. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  64. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  65. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  66. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  67. data/rbi/lithic/models/event.rbi +348 -111
  68. data/rbi/lithic/models/event_list_params.rbi +155 -25
  69. data/rbi/lithic/models/event_subscription.rbi +155 -25
  70. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  71. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  72. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  73. data/rbi/lithic/models/financial_account.rbi +3 -132
  74. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  75. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  76. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  77. data/rbi/lithic/models/payment.rbi +11 -14
  78. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  79. data/rbi/lithic/models/tokenization.rbi +429 -34
  80. data/rbi/lithic/models/transaction.rbi +22 -246
  81. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  82. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  83. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  84. data/rbi/lithic/resources/disputes.rbi +7 -5
  85. data/rbi/lithic/resources/payments.rbi +6 -0
  86. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  87. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  88. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  89. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  90. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  91. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  92. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  93. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  94. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  95. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  96. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  97. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  98. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  99. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  100. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  101. data/sig/lithic/models/dispute.rbs +417 -157
  102. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  103. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  104. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  105. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  106. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  107. data/sig/lithic/models/event.rbs +25 -13
  108. data/sig/lithic/models/event_list_params.rbs +25 -13
  109. data/sig/lithic/models/event_subscription.rbs +25 -13
  110. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  111. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  112. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  113. data/sig/lithic/models/financial_account.rbs +3 -45
  114. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  115. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  116. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  117. data/sig/lithic/models/payment.rbs +8 -10
  118. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  119. data/sig/lithic/models/tokenization.rbs +160 -13
  120. data/sig/lithic/models/transaction.rbs +13 -94
  121. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  122. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  123. data/sig/lithic/resources/disputes.rbs +5 -5
  124. data/sig/lithic/resources/payments.rbs +2 -0
  125. metadata +23 -11
  126. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  127. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  128. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  129. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  130. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  131. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  132. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  133. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  134. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -8,6 +8,26 @@ module Lithic
8
8
  extend Lithic::Internal::Type::RequestParameters::Converter
9
9
  include Lithic::Internal::Type::RequestParameters
10
10
 
11
+ # @!attribute parameters
12
+ # Parameters for the Auth Rule
13
+ #
14
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters]
15
+ required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters }
16
+
17
+ # @!attribute type
18
+ # The type of Auth Rule. For certain rule types, this determines the event stream
19
+ # during which it will be evaluated. For rules that can be applied to one of
20
+ # several event streams, the effective one is defined by the separate
21
+ # `event_stream` field.
22
+ #
23
+ # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
24
+ # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
25
+ # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
26
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
27
+ #
28
+ # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type]
29
+ required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type }
30
+
11
31
  # @!attribute account_tokens
12
32
  # Account tokens to which the Auth Rule applies.
13
33
  #
@@ -32,26 +52,6 @@ module Lithic
32
52
  # @return [String, nil]
33
53
  optional :name, String, nil?: true
34
54
 
35
- # @!attribute parameters
36
- # Parameters for the Auth Rule
37
- #
38
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters, nil]
39
- optional :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters }
40
-
41
- # @!attribute type
42
- # The type of Auth Rule. For certain rule types, this determines the event stream
43
- # during which it will be evaluated. For rules that can be applied to one of
44
- # several event streams, the effective one is defined by the separate
45
- # `event_stream` field.
46
- #
47
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
48
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
49
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
50
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
51
- #
52
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type, nil]
53
- optional :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type }
54
-
55
55
  # @!attribute card_tokens
56
56
  # Card tokens to which the Auth Rule applies.
57
57
  #
@@ -70,10 +70,14 @@ module Lithic
70
70
  # @return [Array<String>, nil]
71
71
  optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
72
72
 
73
- # @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {})
73
+ # @!method initialize(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {})
74
74
  # Some parameter documentations has been truncated, see
75
75
  # {Lithic::Models::AuthRules::V2CreateParams} for more details.
76
76
  #
77
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
78
+ #
79
+ # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
80
+ #
77
81
  # @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
78
82
  #
79
83
  # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
@@ -86,25 +90,10 @@ module Lithic
86
90
  #
87
91
  # @param name [String, nil] Auth Rule Name
88
92
  #
89
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
90
- #
91
- # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
92
- #
93
93
  # @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
94
94
  #
95
95
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
96
96
 
97
- # The event stream during which the rule will be evaluated.
98
- module EventStream
99
- extend Lithic::Internal::Type::Enum
100
-
101
- AUTHORIZATION = :AUTHORIZATION
102
- THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION
103
-
104
- # @!method self.values
105
- # @return [Array<Symbol>]
106
- end
107
-
108
97
  # Parameters for the Auth Rule
109
98
  module Parameters
110
99
  extend Lithic::Internal::Type::Union
@@ -117,256 +106,10 @@ module Lithic
117
106
 
118
107
  variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
119
108
 
120
- variant -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters }
121
-
122
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
123
- # @!attribute action
124
- # The action to take if the conditions are met.
125
- #
126
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action]
127
- required :action,
128
- enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action }
129
-
130
- # @!attribute conditions
131
- #
132
- # @return [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
133
- required :conditions,
134
- -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] }
135
-
136
- # @!method initialize(action:, conditions:)
137
- # @param action [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
138
- #
139
- # @param conditions [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
140
-
141
- # The action to take if the conditions are met.
142
- #
143
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters#action
144
- module Action
145
- extend Lithic::Internal::Type::Enum
146
-
147
- DECLINE = :DECLINE
148
- CHALLENGE = :CHALLENGE
149
-
150
- # @!method self.values
151
- # @return [Array<Symbol>]
152
- end
153
-
154
- class Condition < Lithic::Internal::Type::BaseModel
155
- # @!attribute attribute
156
- # The attribute to target.
157
- #
158
- # The following attributes may be targeted:
159
- #
160
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
161
- # business by the types of goods or services it provides.
162
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
163
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
164
- # Netherlands Antilles.
165
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
166
- # the transaction.
167
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
168
- # (merchant).
169
- # - `DESCRIPTOR`: Short description of card acceptor.
170
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
171
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
172
- # `TOKEN_AUTHENTICATED`.
173
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
174
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
175
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
176
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
177
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
178
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
179
- # fee field in the settlement/cardholder billing currency. This is the amount
180
- # the issuer should authorize against unless the issuer is paying the acquirer
181
- # fee on behalf of the cardholder.
182
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
183
- # represents the amount of cash being withdrawn or advanced.
184
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
185
- # given authorization. Scores are on a range of 0-999, with 0 representing the
186
- # lowest risk and 999 representing the highest risk. For Visa transactions,
187
- # where the raw score has a range of 0-99, Lithic will normalize the score by
188
- # multiplying the raw score by 10x.
189
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
190
- # trailing 15 minutes before the authorization.
191
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
192
- # trailing hour up and until the authorization.
193
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
194
- # trailing 24 hours up and until the authorization.
195
- # - `CARD_STATE`: The current state of the card associated with the transaction.
196
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
197
- # `PENDING_FULFILLMENT`.
198
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
199
- # Valid values are `TRUE`, `FALSE`.
200
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
201
- # `OK`, `BLOCKED`.
202
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
203
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
204
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
205
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
206
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
207
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
208
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
209
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
210
- #
211
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
212
- optional :attribute,
213
- enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute }
214
-
215
- # @!attribute operation
216
- # The operation to apply to the attribute
217
- #
218
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
219
- optional :operation,
220
- enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation }
221
-
222
- # @!attribute value
223
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
224
- #
225
- # @return [String, Integer, Array<String>, nil]
226
- optional :value,
227
- union: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value }
228
-
229
- # @!method initialize(attribute: nil, operation: nil, value: nil)
230
- # Some parameter documentations has been truncated, see
231
- # {Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition}
232
- # for more details.
233
- #
234
- # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
235
- #
236
- # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
237
- #
238
- # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
239
-
240
- # The attribute to target.
241
- #
242
- # The following attributes may be targeted:
243
- #
244
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
245
- # business by the types of goods or services it provides.
246
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
247
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
248
- # Netherlands Antilles.
249
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
250
- # the transaction.
251
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
252
- # (merchant).
253
- # - `DESCRIPTOR`: Short description of card acceptor.
254
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
255
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
256
- # `TOKEN_AUTHENTICATED`.
257
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
258
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
259
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
260
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
261
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
262
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
263
- # fee field in the settlement/cardholder billing currency. This is the amount
264
- # the issuer should authorize against unless the issuer is paying the acquirer
265
- # fee on behalf of the cardholder.
266
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
267
- # represents the amount of cash being withdrawn or advanced.
268
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
269
- # given authorization. Scores are on a range of 0-999, with 0 representing the
270
- # lowest risk and 999 representing the highest risk. For Visa transactions,
271
- # where the raw score has a range of 0-99, Lithic will normalize the score by
272
- # multiplying the raw score by 10x.
273
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
274
- # trailing 15 minutes before the authorization.
275
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
276
- # trailing hour up and until the authorization.
277
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
278
- # trailing 24 hours up and until the authorization.
279
- # - `CARD_STATE`: The current state of the card associated with the transaction.
280
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
281
- # `PENDING_FULFILLMENT`.
282
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
283
- # Valid values are `TRUE`, `FALSE`.
284
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
285
- # `OK`, `BLOCKED`.
286
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
287
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
288
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
289
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
290
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
291
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
292
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
293
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
294
- #
295
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
296
- module Attribute
297
- extend Lithic::Internal::Type::Enum
298
-
299
- MCC = :MCC
300
- COUNTRY = :COUNTRY
301
- CURRENCY = :CURRENCY
302
- MERCHANT_ID = :MERCHANT_ID
303
- DESCRIPTOR = :DESCRIPTOR
304
- LIABILITY_SHIFT = :LIABILITY_SHIFT
305
- PAN_ENTRY_MODE = :PAN_ENTRY_MODE
306
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
307
- CASH_AMOUNT = :CASH_AMOUNT
308
- RISK_SCORE = :RISK_SCORE
309
- CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
310
- CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
311
- CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
312
- CARD_STATE = :CARD_STATE
313
- PIN_ENTERED = :PIN_ENTERED
314
- PIN_STATUS = :PIN_STATUS
315
- WALLET_TYPE = :WALLET_TYPE
316
- TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
317
- ADDRESS_MATCH = :ADDRESS_MATCH
318
-
319
- # @!method self.values
320
- # @return [Array<Symbol>]
321
- end
322
-
323
- # The operation to apply to the attribute
324
- #
325
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#operation
326
- module Operation
327
- extend Lithic::Internal::Type::Enum
328
-
329
- IS_ONE_OF = :IS_ONE_OF
330
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
331
- MATCHES = :MATCHES
332
- DOES_NOT_MATCH = :DOES_NOT_MATCH
333
- IS_EQUAL_TO = :IS_EQUAL_TO
334
- IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
335
- IS_GREATER_THAN = :IS_GREATER_THAN
336
- IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
337
- IS_LESS_THAN = :IS_LESS_THAN
338
- IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
339
-
340
- # @!method self.values
341
- # @return [Array<Symbol>]
342
- end
343
-
344
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
345
- #
346
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#value
347
- module Value
348
- extend Lithic::Internal::Type::Union
349
-
350
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
351
- variant String
352
-
353
- # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
354
- variant Integer
355
-
356
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
357
- variant -> { Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
358
-
359
- # @!method self.variants
360
- # @return [Array(String, Integer, Array<String>)]
361
-
362
- # @type [Lithic::Internal::Type::Converter]
363
- StringArray = Lithic::Internal::Type::ArrayOf[String]
364
- end
365
- end
366
- end
109
+ variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters }
367
110
 
368
111
  # @!method self.variants
369
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters)]
112
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)]
370
113
  end
371
114
 
372
115
  # The type of Auth Rule. For certain rule types, this determines the event stream
@@ -389,6 +132,17 @@ module Lithic
389
132
  # @!method self.values
390
133
  # @return [Array<Symbol>]
391
134
  end
135
+
136
+ # The event stream during which the rule will be evaluated.
137
+ module EventStream
138
+ extend Lithic::Internal::Type::Enum
139
+
140
+ AUTHORIZATION = :AUTHORIZATION
141
+ THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION
142
+
143
+ # @!method self.values
144
+ # @return [Array<Symbol>]
145
+ end
392
146
  end
393
147
  end
394
148
  end