lithic 0.1.0.pre.alpha.36 → 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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +10 -2
  5. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
  6. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
  7. data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
  8. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
  9. data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
  10. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
  11. data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
  12. data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
  13. data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
  16. data/lib/lithic/models/transaction.rb +19 -1
  17. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  18. data/lib/lithic/version.rb +1 -1
  19. data/lib/lithic.rb +2 -0
  20. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
  21. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
  22. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
  23. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
  24. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
  25. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
  26. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
  27. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
  28. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
  30. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
  31. data/rbi/lithic/models/transaction.rbi +47 -0
  32. data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
  33. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
  34. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
  35. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
  36. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
  37. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
  38. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
  39. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
  40. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
  41. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
  42. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
  43. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
  44. data/sig/lithic/models/transaction.rbs +20 -0
  45. metadata +8 -2
@@ -66,186 +66,12 @@ module Lithic
66
66
  type parameters =
67
67
  Lithic::AuthRules::ConditionalBlockParameters
68
68
  | Lithic::AuthRules::VelocityLimitParams
69
- | Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
70
- | Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters
69
+ | Lithic::AuthRules::MerchantLockParameters
70
+ | Lithic::AuthRules::Conditional3DSActionParameters
71
71
 
72
72
  module Parameters
73
73
  extend Lithic::Internal::Type::Union
74
74
 
75
- type merchant_lock_parameters =
76
- {
77
- merchants: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant]
78
- }
79
-
80
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
81
- attr_accessor merchants: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant]
82
-
83
- def initialize: (
84
- merchants: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant]
85
- ) -> void
86
-
87
- def to_hash: -> {
88
- merchants: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::Merchant]
89
- }
90
-
91
- type merchant =
92
- { comment: String, descriptor: String, merchant_id: String }
93
-
94
- class Merchant < Lithic::Internal::Type::BaseModel
95
- attr_reader comment: String?
96
-
97
- def comment=: (String) -> String
98
-
99
- attr_reader descriptor: String?
100
-
101
- def descriptor=: (String) -> String
102
-
103
- attr_reader merchant_id: String?
104
-
105
- def merchant_id=: (String) -> String
106
-
107
- def initialize: (
108
- ?comment: String,
109
- ?descriptor: String,
110
- ?merchant_id: String
111
- ) -> void
112
-
113
- def to_hash: -> {
114
- comment: String,
115
- descriptor: String,
116
- merchant_id: String
117
- }
118
- end
119
- end
120
-
121
- type conditional3_ds_action_parameters =
122
- {
123
- action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
124
- conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
125
- }
126
-
127
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
128
- attr_accessor action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action
129
-
130
- attr_accessor conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
131
-
132
- def initialize: (
133
- action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
134
- conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
135
- ) -> void
136
-
137
- def to_hash: -> {
138
- action: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action,
139
- conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition]
140
- }
141
-
142
- type action = :DECLINE | :CHALLENGE
143
-
144
- module Action
145
- extend Lithic::Internal::Type::Enum
146
-
147
- DECLINE: :DECLINE
148
- CHALLENGE: :CHALLENGE
149
-
150
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::action]
151
- end
152
-
153
- type condition =
154
- {
155
- attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
156
- operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
157
- value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
158
- }
159
-
160
- class Condition < Lithic::Internal::Type::BaseModel
161
- attr_reader attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute?
162
-
163
- def attribute=: (
164
- Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
165
- ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute
166
-
167
- attr_reader operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation?
168
-
169
- def operation=: (
170
- Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
171
- ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation
172
-
173
- attr_reader value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value?
174
-
175
- def value=: (
176
- Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
177
- ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
178
-
179
- def initialize: (
180
- ?attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
181
- ?operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
182
- ?value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
183
- ) -> void
184
-
185
- def to_hash: -> {
186
- attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute,
187
- operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation,
188
- value: Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value
189
- }
190
-
191
- type attribute =
192
- :MCC
193
- | :COUNTRY
194
- | :CURRENCY
195
- | :MERCHANT_ID
196
- | :DESCRIPTOR
197
- | :TRANSACTION_AMOUNT
198
- | :RISK_SCORE
199
- | :MESSAGE_CATEGORY
200
-
201
- module Attribute
202
- extend Lithic::Internal::Type::Enum
203
-
204
- MCC: :MCC
205
- COUNTRY: :COUNTRY
206
- CURRENCY: :CURRENCY
207
- MERCHANT_ID: :MERCHANT_ID
208
- DESCRIPTOR: :DESCRIPTOR
209
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
210
- RISK_SCORE: :RISK_SCORE
211
- MESSAGE_CATEGORY: :MESSAGE_CATEGORY
212
-
213
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::attribute]
214
- end
215
-
216
- type operation =
217
- :IS_ONE_OF
218
- | :IS_NOT_ONE_OF
219
- | :MATCHES
220
- | :DOES_NOT_MATCH
221
- | :IS_GREATER_THAN
222
- | :IS_LESS_THAN
223
-
224
- module Operation
225
- extend Lithic::Internal::Type::Enum
226
-
227
- IS_ONE_OF: :IS_ONE_OF
228
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
229
- MATCHES: :MATCHES
230
- DOES_NOT_MATCH: :DOES_NOT_MATCH
231
- IS_GREATER_THAN: :IS_GREATER_THAN
232
- IS_LESS_THAN: :IS_LESS_THAN
233
-
234
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::operation]
235
- end
236
-
237
- type value = String | Integer | ::Array[String]
238
-
239
- module Value
240
- extend Lithic::Internal::Type::Union
241
-
242
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::Condition::value]
243
-
244
- StringArray: Lithic::Internal::Type::Converter
245
- end
246
- end
247
- end
248
-
249
75
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters]
250
76
  end
251
77
 
@@ -93,186 +93,12 @@ module Lithic
93
93
  type parameters =
94
94
  Lithic::AuthRules::ConditionalBlockParameters
95
95
  | Lithic::AuthRules::VelocityLimitParams
96
- | Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters
97
- | Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters
96
+ | Lithic::AuthRules::MerchantLockParameters
97
+ | Lithic::AuthRules::Conditional3DSActionParameters
98
98
 
99
99
  module Parameters
100
100
  extend Lithic::Internal::Type::Union
101
101
 
102
- type merchant_lock_parameters =
103
- {
104
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
105
- }
106
-
107
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
108
- attr_accessor merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
109
-
110
- def initialize: (
111
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
112
- ) -> void
113
-
114
- def to_hash: -> {
115
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
116
- }
117
-
118
- type merchant =
119
- { comment: String, descriptor: String, merchant_id: String }
120
-
121
- class Merchant < Lithic::Internal::Type::BaseModel
122
- attr_reader comment: String?
123
-
124
- def comment=: (String) -> String
125
-
126
- attr_reader descriptor: String?
127
-
128
- def descriptor=: (String) -> String
129
-
130
- attr_reader merchant_id: String?
131
-
132
- def merchant_id=: (String) -> String
133
-
134
- def initialize: (
135
- ?comment: String,
136
- ?descriptor: String,
137
- ?merchant_id: String
138
- ) -> void
139
-
140
- def to_hash: -> {
141
- comment: String,
142
- descriptor: String,
143
- merchant_id: String
144
- }
145
- end
146
- end
147
-
148
- type conditional3_ds_action_parameters =
149
- {
150
- action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
151
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
152
- }
153
-
154
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
155
- attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action
156
-
157
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
158
-
159
- def initialize: (
160
- action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
161
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
162
- ) -> void
163
-
164
- def to_hash: -> {
165
- action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
166
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
167
- }
168
-
169
- type action = :DECLINE | :CHALLENGE
170
-
171
- module Action
172
- extend Lithic::Internal::Type::Enum
173
-
174
- DECLINE: :DECLINE
175
- CHALLENGE: :CHALLENGE
176
-
177
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action]
178
- end
179
-
180
- type condition =
181
- {
182
- attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
183
- operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
184
- value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
185
- }
186
-
187
- class Condition < Lithic::Internal::Type::BaseModel
188
- attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
189
-
190
- def attribute=: (
191
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
192
- ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
193
-
194
- attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
195
-
196
- def operation=: (
197
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
198
- ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
199
-
200
- attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value?
201
-
202
- def value=: (
203
- Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
204
- ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
205
-
206
- def initialize: (
207
- ?attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
208
- ?operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
209
- ?value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
210
- ) -> void
211
-
212
- def to_hash: -> {
213
- attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
214
- operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
215
- value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
216
- }
217
-
218
- type attribute =
219
- :MCC
220
- | :COUNTRY
221
- | :CURRENCY
222
- | :MERCHANT_ID
223
- | :DESCRIPTOR
224
- | :TRANSACTION_AMOUNT
225
- | :RISK_SCORE
226
- | :MESSAGE_CATEGORY
227
-
228
- module Attribute
229
- extend Lithic::Internal::Type::Enum
230
-
231
- MCC: :MCC
232
- COUNTRY: :COUNTRY
233
- CURRENCY: :CURRENCY
234
- MERCHANT_ID: :MERCHANT_ID
235
- DESCRIPTOR: :DESCRIPTOR
236
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
237
- RISK_SCORE: :RISK_SCORE
238
- MESSAGE_CATEGORY: :MESSAGE_CATEGORY
239
-
240
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
241
- end
242
-
243
- type operation =
244
- :IS_ONE_OF
245
- | :IS_NOT_ONE_OF
246
- | :MATCHES
247
- | :DOES_NOT_MATCH
248
- | :IS_GREATER_THAN
249
- | :IS_LESS_THAN
250
-
251
- module Operation
252
- extend Lithic::Internal::Type::Enum
253
-
254
- IS_ONE_OF: :IS_ONE_OF
255
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
256
- MATCHES: :MATCHES
257
- DOES_NOT_MATCH: :DOES_NOT_MATCH
258
- IS_GREATER_THAN: :IS_GREATER_THAN
259
- IS_LESS_THAN: :IS_LESS_THAN
260
-
261
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
262
- end
263
-
264
- type value = String | Integer | ::Array[String]
265
-
266
- module Value
267
- extend Lithic::Internal::Type::Union
268
-
269
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value]
270
-
271
- StringArray: Lithic::Internal::Type::Converter
272
- end
273
- end
274
- end
275
-
276
102
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::parameters]
277
103
  end
278
104
  end
@@ -301,186 +127,12 @@ module Lithic
301
127
  type parameters =
302
128
  Lithic::AuthRules::ConditionalBlockParameters
303
129
  | Lithic::AuthRules::VelocityLimitParams
304
- | Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
305
- | Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters
130
+ | Lithic::AuthRules::MerchantLockParameters
131
+ | Lithic::AuthRules::Conditional3DSActionParameters
306
132
 
307
133
  module Parameters
308
134
  extend Lithic::Internal::Type::Union
309
135
 
310
- type merchant_lock_parameters =
311
- {
312
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
313
- }
314
-
315
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
316
- attr_accessor merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
317
-
318
- def initialize: (
319
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
320
- ) -> void
321
-
322
- def to_hash: -> {
323
- merchants: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
324
- }
325
-
326
- type merchant =
327
- { comment: String, descriptor: String, merchant_id: String }
328
-
329
- class Merchant < Lithic::Internal::Type::BaseModel
330
- attr_reader comment: String?
331
-
332
- def comment=: (String) -> String
333
-
334
- attr_reader descriptor: String?
335
-
336
- def descriptor=: (String) -> String
337
-
338
- attr_reader merchant_id: String?
339
-
340
- def merchant_id=: (String) -> String
341
-
342
- def initialize: (
343
- ?comment: String,
344
- ?descriptor: String,
345
- ?merchant_id: String
346
- ) -> void
347
-
348
- def to_hash: -> {
349
- comment: String,
350
- descriptor: String,
351
- merchant_id: String
352
- }
353
- end
354
- end
355
-
356
- type conditional3_ds_action_parameters =
357
- {
358
- action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
359
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
360
- }
361
-
362
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
363
- attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action
364
-
365
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
366
-
367
- def initialize: (
368
- action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
369
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
370
- ) -> void
371
-
372
- def to_hash: -> {
373
- action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
374
- conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
375
- }
376
-
377
- type action = :DECLINE | :CHALLENGE
378
-
379
- module Action
380
- extend Lithic::Internal::Type::Enum
381
-
382
- DECLINE: :DECLINE
383
- CHALLENGE: :CHALLENGE
384
-
385
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action]
386
- end
387
-
388
- type condition =
389
- {
390
- attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
391
- operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
392
- value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
393
- }
394
-
395
- class Condition < Lithic::Internal::Type::BaseModel
396
- attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
397
-
398
- def attribute=: (
399
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
400
- ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
401
-
402
- attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
403
-
404
- def operation=: (
405
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
406
- ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
407
-
408
- attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value?
409
-
410
- def value=: (
411
- Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
412
- ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
413
-
414
- def initialize: (
415
- ?attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
416
- ?operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
417
- ?value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
418
- ) -> void
419
-
420
- def to_hash: -> {
421
- attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
422
- operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
423
- value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
424
- }
425
-
426
- type attribute =
427
- :MCC
428
- | :COUNTRY
429
- | :CURRENCY
430
- | :MERCHANT_ID
431
- | :DESCRIPTOR
432
- | :TRANSACTION_AMOUNT
433
- | :RISK_SCORE
434
- | :MESSAGE_CATEGORY
435
-
436
- module Attribute
437
- extend Lithic::Internal::Type::Enum
438
-
439
- MCC: :MCC
440
- COUNTRY: :COUNTRY
441
- CURRENCY: :CURRENCY
442
- MERCHANT_ID: :MERCHANT_ID
443
- DESCRIPTOR: :DESCRIPTOR
444
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
445
- RISK_SCORE: :RISK_SCORE
446
- MESSAGE_CATEGORY: :MESSAGE_CATEGORY
447
-
448
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute]
449
- end
450
-
451
- type operation =
452
- :IS_ONE_OF
453
- | :IS_NOT_ONE_OF
454
- | :MATCHES
455
- | :DOES_NOT_MATCH
456
- | :IS_GREATER_THAN
457
- | :IS_LESS_THAN
458
-
459
- module Operation
460
- extend Lithic::Internal::Type::Enum
461
-
462
- IS_ONE_OF: :IS_ONE_OF
463
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
464
- MATCHES: :MATCHES
465
- DOES_NOT_MATCH: :DOES_NOT_MATCH
466
- IS_GREATER_THAN: :IS_GREATER_THAN
467
- IS_LESS_THAN: :IS_LESS_THAN
468
-
469
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation]
470
- end
471
-
472
- type value = String | Integer | ::Array[String]
473
-
474
- module Value
475
- extend Lithic::Internal::Type::Union
476
-
477
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value]
478
-
479
- StringArray: Lithic::Internal::Type::Converter
480
- end
481
- end
482
- end
483
-
484
136
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::parameters]
485
137
  end
486
138
  end