lithic 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.38

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
  5. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
  6. data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
  13. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
  14. data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
  15. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  16. data/lib/lithic/version.rb +1 -1
  17. data/lib/lithic.rb +2 -0
  18. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
  19. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
  20. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
  21. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
  22. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
  23. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
  24. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
  25. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
  26. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
  27. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
  28. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
  29. data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
  30. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
  31. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
  32. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
  33. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
  34. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
  35. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
  36. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
  37. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
  38. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
  39. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
  40. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
  41. metadata +8 -2
@@ -23,7 +23,7 @@ module Lithic
23
23
  # @!attribute parameters
24
24
  # Parameters for the Auth Rule
25
25
  #
26
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters, nil]
26
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil]
27
27
  optional :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters }
28
28
 
29
29
  # @!attribute type
@@ -68,7 +68,7 @@ module Lithic
68
68
  #
69
69
  # @param name [String, nil] Auth Rule Name
70
70
  #
71
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters] Parameters for the Auth Rule
71
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
72
72
  #
73
73
  # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. Effectively determines the event stream during which it w
74
74
  #
@@ -84,252 +84,12 @@ module Lithic
84
84
 
85
85
  variant -> { Lithic::AuthRules::VelocityLimitParams }
86
86
 
87
- variant -> { Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters }
87
+ variant -> { Lithic::AuthRules::MerchantLockParameters }
88
88
 
89
- variant -> { Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters }
90
-
91
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
92
- # @!attribute merchants
93
- # A list of merchant locks defining specific merchants or groups of merchants
94
- # (based on descriptors or IDs) that the lock applies to.
95
- #
96
- # @return [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant>]
97
- required :merchants,
98
- -> {
99
- Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant]
100
- }
101
-
102
- # @!method initialize(merchants:)
103
- # Some parameter documentations has been truncated, see
104
- # {Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters}
105
- # for more details.
106
- #
107
- # @param merchants [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
108
-
109
- class Merchant < Lithic::Internal::Type::BaseModel
110
- # @!attribute comment
111
- # A comment or explanation about the merchant, used internally for rule management
112
- # purposes.
113
- #
114
- # @return [String, nil]
115
- optional :comment, String
116
-
117
- # @!attribute descriptor
118
- # Short description of the merchant, often used to provide more human-readable
119
- # context about the transaction merchant. This is typically the name or label
120
- # shown on transaction summaries.
121
- #
122
- # @return [String, nil]
123
- optional :descriptor, String
124
-
125
- # @!attribute merchant_id
126
- # Unique alphanumeric identifier for the payment card acceptor (merchant). This
127
- # attribute specifies the merchant entity that will be locked or referenced for
128
- # authorization rules.
129
- #
130
- # @return [String, nil]
131
- optional :merchant_id, String
132
-
133
- # @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
134
- # Some parameter documentations has been truncated, see
135
- # {Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant}
136
- # for more details.
137
- #
138
- # Represents a specific merchant lock based on their ID or descriptor. Each
139
- # merchant object allows transaction rules to work at a granular level and
140
- # requires at least one of merchant_id or descriptor.
141
- #
142
- # @param comment [String] A comment or explanation about the merchant, used internally for rule management
143
- #
144
- # @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
145
- #
146
- # @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
147
- end
148
- end
149
-
150
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
151
- # @!attribute action
152
- # The action to take if the conditions are met.
153
- #
154
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action]
155
- required :action,
156
- enum: -> {
157
- Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action
158
- }
159
-
160
- # @!attribute conditions
161
- #
162
- # @return [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition>]
163
- required :conditions,
164
- -> {
165
- Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
166
- }
167
-
168
- # @!method initialize(action:, conditions:)
169
- # @param action [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
170
- #
171
- # @param conditions [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition>]
172
-
173
- # The action to take if the conditions are met.
174
- #
175
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters#action
176
- module Action
177
- extend Lithic::Internal::Type::Enum
178
-
179
- DECLINE = :DECLINE
180
- CHALLENGE = :CHALLENGE
181
-
182
- # @!method self.values
183
- # @return [Array<Symbol>]
184
- end
185
-
186
- class Condition < Lithic::Internal::Type::BaseModel
187
- # @!attribute attribute
188
- # The attribute to target.
189
- #
190
- # The following attributes may be targeted:
191
- #
192
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
193
- # business by the types of goods or services it provides.
194
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
195
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
196
- # Netherlands Antilles.
197
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
198
- # the transaction.
199
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
200
- # (merchant).
201
- # - `DESCRIPTOR`: Short description of card acceptor.
202
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
203
- # fee field in the settlement/cardholder billing currency. This is the amount
204
- # the issuer should authorize against unless the issuer is paying the acquirer
205
- # fee on behalf of the cardholder.
206
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
207
- # given authentication. Scores are on a range of 0-999, with 0 representing the
208
- # lowest risk and 999 representing the highest risk. For Visa transactions,
209
- # where the raw score has a range of 0-99, Lithic will normalize the score by
210
- # multiplying the raw score by 10x.
211
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
212
- #
213
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
214
- optional :attribute,
215
- enum: -> {
216
- Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute
217
- }
218
-
219
- # @!attribute operation
220
- # The operation to apply to the attribute
221
- #
222
- # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
223
- optional :operation,
224
- enum: -> {
225
- Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation
226
- }
227
-
228
- # @!attribute value
229
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
230
- #
231
- # @return [String, Integer, Array<String>, nil]
232
- optional :value,
233
- union: -> {
234
- Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value
235
- }
236
-
237
- # @!method initialize(attribute: nil, operation: nil, value: nil)
238
- # Some parameter documentations has been truncated, see
239
- # {Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition}
240
- # for more details.
241
- #
242
- # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
243
- #
244
- # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
245
- #
246
- # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
247
-
248
- # The attribute to target.
249
- #
250
- # The following attributes may be targeted:
251
- #
252
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
253
- # business by the types of goods or services it provides.
254
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
255
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
256
- # Netherlands Antilles.
257
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
258
- # the transaction.
259
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
260
- # (merchant).
261
- # - `DESCRIPTOR`: Short description of card acceptor.
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
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
267
- # given authentication. Scores are on a range of 0-999, with 0 representing the
268
- # lowest risk and 999 representing the highest risk. For Visa transactions,
269
- # where the raw score has a range of 0-99, Lithic will normalize the score by
270
- # multiplying the raw score by 10x.
271
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
272
- #
273
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition#attribute
274
- module Attribute
275
- extend Lithic::Internal::Type::Enum
276
-
277
- MCC = :MCC
278
- COUNTRY = :COUNTRY
279
- CURRENCY = :CURRENCY
280
- MERCHANT_ID = :MERCHANT_ID
281
- DESCRIPTOR = :DESCRIPTOR
282
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
283
- RISK_SCORE = :RISK_SCORE
284
- MESSAGE_CATEGORY = :MESSAGE_CATEGORY
285
-
286
- # @!method self.values
287
- # @return [Array<Symbol>]
288
- end
289
-
290
- # The operation to apply to the attribute
291
- #
292
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition#operation
293
- module Operation
294
- extend Lithic::Internal::Type::Enum
295
-
296
- IS_ONE_OF = :IS_ONE_OF
297
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
298
- MATCHES = :MATCHES
299
- DOES_NOT_MATCH = :DOES_NOT_MATCH
300
- IS_GREATER_THAN = :IS_GREATER_THAN
301
- IS_LESS_THAN = :IS_LESS_THAN
302
-
303
- # @!method self.values
304
- # @return [Array<Symbol>]
305
- end
306
-
307
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
308
- #
309
- # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition#value
310
- module Value
311
- extend Lithic::Internal::Type::Union
312
-
313
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
314
- variant String
315
-
316
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
317
- variant Integer
318
-
319
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
320
- variant -> { Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
321
-
322
- # @!method self.variants
323
- # @return [Array(String, Integer, Array<String>)]
324
-
325
- # @type [Lithic::Internal::Type::Converter]
326
- StringArray = Lithic::Internal::Type::ArrayOf[String]
327
- end
328
- end
329
- end
89
+ variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
330
90
 
331
91
  # @!method self.variants
332
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2CreateParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters)]
92
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
333
93
  end
334
94
 
335
95
  # The type of Auth Rule. Effectively determines the event stream during which it