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
@@ -18,8 +18,8 @@ module Lithic
18
18
  T.any(
19
19
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
20
20
  Lithic::AuthRules::VelocityLimitParams::OrHash,
21
- Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters::OrHash,
22
- Lithic::AuthRules::V2CreateParams::Parameters::Conditional3DSActionParameters::OrHash
21
+ Lithic::AuthRules::MerchantLockParameters::OrHash,
22
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash
23
23
  ),
24
24
  type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
25
25
  excluded_card_tokens: T::Array[String],
@@ -199,8 +199,8 @@ module Lithic
199
199
  T.any(
200
200
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
201
201
  Lithic::AuthRules::VelocityLimitParams::OrHash,
202
- Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::OrHash,
203
- Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::OrHash
202
+ Lithic::AuthRules::MerchantLockParameters::OrHash,
203
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash
204
204
  )
205
205
  ),
206
206
  request_options: Lithic::RequestOptions::OrHash
@@ -0,0 +1,133 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional3_ds_action_parameters =
5
+ {
6
+ action: Lithic::Models::AuthRules::Conditional3DSActionParameters::action,
7
+ conditions: ::Array[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
8
+ }
9
+
10
+ class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor action: Lithic::Models::AuthRules::Conditional3DSActionParameters::action
12
+
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
14
+
15
+ def initialize: (
16
+ action: Lithic::Models::AuthRules::Conditional3DSActionParameters::action,
17
+ conditions: ::Array[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ action: Lithic::Models::AuthRules::Conditional3DSActionParameters::action,
22
+ conditions: ::Array[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
23
+ }
24
+
25
+ type action = :DECLINE | :CHALLENGE
26
+
27
+ module Action
28
+ extend Lithic::Internal::Type::Enum
29
+
30
+ DECLINE: :DECLINE
31
+ CHALLENGE: :CHALLENGE
32
+
33
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::action]
34
+ end
35
+
36
+ type condition =
37
+ {
38
+ attribute: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute,
39
+ operation: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation,
40
+ value: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value
41
+ }
42
+
43
+ class Condition < Lithic::Internal::Type::BaseModel
44
+ attr_reader attribute: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute?
45
+
46
+ def attribute=: (
47
+ Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute
48
+ ) -> Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute
49
+
50
+ attr_reader operation: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation?
51
+
52
+ def operation=: (
53
+ Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation
54
+ ) -> Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation
55
+
56
+ attr_reader value: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value?
57
+
58
+ def value=: (
59
+ Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value
60
+ ) -> Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value
61
+
62
+ def initialize: (
63
+ ?attribute: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute,
64
+ ?operation: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation,
65
+ ?value: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value
66
+ ) -> void
67
+
68
+ def to_hash: -> {
69
+ attribute: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute,
70
+ operation: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation,
71
+ value: Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value
72
+ }
73
+
74
+ type attribute =
75
+ :MCC
76
+ | :COUNTRY
77
+ | :CURRENCY
78
+ | :MERCHANT_ID
79
+ | :DESCRIPTOR
80
+ | :TRANSACTION_AMOUNT
81
+ | :RISK_SCORE
82
+ | :MESSAGE_CATEGORY
83
+
84
+ module Attribute
85
+ extend Lithic::Internal::Type::Enum
86
+
87
+ MCC: :MCC
88
+ COUNTRY: :COUNTRY
89
+ CURRENCY: :CURRENCY
90
+ MERCHANT_ID: :MERCHANT_ID
91
+ DESCRIPTOR: :DESCRIPTOR
92
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
93
+ RISK_SCORE: :RISK_SCORE
94
+ MESSAGE_CATEGORY: :MESSAGE_CATEGORY
95
+
96
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute]
97
+ end
98
+
99
+ type operation =
100
+ :IS_ONE_OF
101
+ | :IS_NOT_ONE_OF
102
+ | :MATCHES
103
+ | :DOES_NOT_MATCH
104
+ | :IS_GREATER_THAN
105
+ | :IS_LESS_THAN
106
+
107
+ module Operation
108
+ extend Lithic::Internal::Type::Enum
109
+
110
+ IS_ONE_OF: :IS_ONE_OF
111
+ IS_NOT_ONE_OF: :IS_NOT_ONE_OF
112
+ MATCHES: :MATCHES
113
+ DOES_NOT_MATCH: :DOES_NOT_MATCH
114
+ IS_GREATER_THAN: :IS_GREATER_THAN
115
+ IS_LESS_THAN: :IS_LESS_THAN
116
+
117
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::operation]
118
+ end
119
+
120
+ type value = String | Integer | ::Array[String]
121
+
122
+ module Value
123
+ extend Lithic::Internal::Type::Union
124
+
125
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::value]
126
+
127
+ StringArray: Lithic::Internal::Type::Converter
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,51 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type merchant_lock_parameters =
5
+ {
6
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
7
+ }
8
+
9
+ class MerchantLockParameters < Lithic::Internal::Type::BaseModel
10
+ attr_accessor merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
11
+
12
+ def initialize: (
13
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
14
+ ) -> void
15
+
16
+ def to_hash: -> {
17
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
18
+ }
19
+
20
+ type merchant =
21
+ { comment: String, descriptor: String, merchant_id: String }
22
+
23
+ class Merchant < Lithic::Internal::Type::BaseModel
24
+ attr_reader comment: String?
25
+
26
+ def comment=: (String) -> String
27
+
28
+ attr_reader descriptor: String?
29
+
30
+ def descriptor=: (String) -> String
31
+
32
+ attr_reader merchant_id: String?
33
+
34
+ def merchant_id=: (String) -> String
35
+
36
+ def initialize: (
37
+ ?comment: String,
38
+ ?descriptor: String,
39
+ ?merchant_id: String
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ comment: String,
44
+ descriptor: String,
45
+ merchant_id: String
46
+ }
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -93,186 +93,12 @@ module Lithic
93
93
  type parameters =
94
94
  Lithic::AuthRules::ConditionalBlockParameters
95
95
  | Lithic::AuthRules::VelocityLimitParams
96
- | Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters
97
- | Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
105
- }
106
-
107
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
108
- attr_accessor merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
109
-
110
- def initialize: (
111
- merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::MerchantLockParameters::Merchant]
112
- ) -> void
113
-
114
- def to_hash: -> {
115
- merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
151
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
152
- }
153
-
154
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
155
- attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action
156
-
157
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
158
-
159
- def initialize: (
160
- action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
161
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition]
162
- ) -> void
163
-
164
- def to_hash: -> {
165
- action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action,
166
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::action]
178
- end
179
-
180
- type condition =
181
- {
182
- attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
183
- operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
184
- value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
185
- }
186
-
187
- class Condition < Lithic::Internal::Type::BaseModel
188
- attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
189
-
190
- def attribute=: (
191
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
192
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
193
-
194
- attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
195
-
196
- def operation=: (
197
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
198
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation
199
-
200
- attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value?
201
-
202
- def value=: (
203
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
204
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
205
-
206
- def initialize: (
207
- ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
208
- ?operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
209
- ?value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::value
210
- ) -> void
211
-
212
- def to_hash: -> {
213
- attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
214
- operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
215
- value: Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
305
- | Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
313
- }
314
-
315
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
316
- attr_accessor merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
317
-
318
- def initialize: (
319
- merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters::Merchant]
320
- ) -> void
321
-
322
- def to_hash: -> {
323
- merchants: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
359
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
360
- }
361
-
362
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
363
- attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action
364
-
365
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
366
-
367
- def initialize: (
368
- action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
369
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition]
370
- ) -> void
371
-
372
- def to_hash: -> {
373
- action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action,
374
- conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::action]
386
- end
387
-
388
- type condition =
389
- {
390
- attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
391
- operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
392
- value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
393
- }
394
-
395
- class Condition < Lithic::Internal::Type::BaseModel
396
- attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute?
397
-
398
- def attribute=: (
399
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
400
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute
401
-
402
- attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation?
403
-
404
- def operation=: (
405
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
406
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation
407
-
408
- attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value?
409
-
410
- def value=: (
411
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
412
- ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
413
-
414
- def initialize: (
415
- ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
416
- ?operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
417
- ?value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::value
418
- ) -> void
419
-
420
- def to_hash: -> {
421
- attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::attribute,
422
- operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Conditional3DSActionParameters::Condition::operation,
423
- value: Lithic::Models::AuthRules::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::parameters]
485
137
  end
486
138
  end