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
@@ -11,11 +11,11 @@ module Lithic
11
11
  # @!attribute parameters
12
12
  # Parameters for the Auth Rule
13
13
  #
14
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters, nil]
14
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil]
15
15
  optional :parameters, union: -> { Lithic::AuthRules::V2DraftParams::Parameters }, nil?: true
16
16
 
17
17
  # @!method initialize(parameters: nil, request_options: {})
18
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters, nil] Parameters for the Auth Rule
18
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil] Parameters for the Auth Rule
19
19
  #
20
20
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
21
21
 
@@ -27,252 +27,12 @@ module Lithic
27
27
 
28
28
  variant -> { Lithic::AuthRules::VelocityLimitParams }
29
29
 
30
- variant -> { Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters }
30
+ variant -> { Lithic::AuthRules::MerchantLockParameters }
31
31
 
32
- variant -> { Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters }
33
-
34
- class MerchantLockParameters < Lithic::Internal::Type::BaseModel
35
- # @!attribute merchants
36
- # A list of merchant locks defining specific merchants or groups of merchants
37
- # (based on descriptors or IDs) that the lock applies to.
38
- #
39
- # @return [Array<Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::Merchant>]
40
- required :merchants,
41
- -> {
42
- Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::Merchant]
43
- }
44
-
45
- # @!method initialize(merchants:)
46
- # Some parameter documentations has been truncated, see
47
- # {Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters}
48
- # for more details.
49
- #
50
- # @param merchants [Array<Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
51
-
52
- class Merchant < Lithic::Internal::Type::BaseModel
53
- # @!attribute comment
54
- # A comment or explanation about the merchant, used internally for rule management
55
- # purposes.
56
- #
57
- # @return [String, nil]
58
- optional :comment, String
59
-
60
- # @!attribute descriptor
61
- # Short description of the merchant, often used to provide more human-readable
62
- # context about the transaction merchant. This is typically the name or label
63
- # shown on transaction summaries.
64
- #
65
- # @return [String, nil]
66
- optional :descriptor, String
67
-
68
- # @!attribute merchant_id
69
- # Unique alphanumeric identifier for the payment card acceptor (merchant). This
70
- # attribute specifies the merchant entity that will be locked or referenced for
71
- # authorization rules.
72
- #
73
- # @return [String, nil]
74
- optional :merchant_id, String
75
-
76
- # @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
77
- # Some parameter documentations has been truncated, see
78
- # {Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters::Merchant}
79
- # for more details.
80
- #
81
- # Represents a specific merchant lock based on their ID or descriptor. Each
82
- # merchant object allows transaction rules to work at a granular level and
83
- # requires at least one of merchant_id or descriptor.
84
- #
85
- # @param comment [String] A comment or explanation about the merchant, used internally for rule management
86
- #
87
- # @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
88
- #
89
- # @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
90
- end
91
- end
92
-
93
- class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
94
- # @!attribute action
95
- # The action to take if the conditions are met.
96
- #
97
- # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Action]
98
- required :action,
99
- enum: -> {
100
- Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Action
101
- }
102
-
103
- # @!attribute conditions
104
- #
105
- # @return [Array<Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition>]
106
- required :conditions,
107
- -> {
108
- Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition]
109
- }
110
-
111
- # @!method initialize(action:, conditions:)
112
- # @param action [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
113
- #
114
- # @param conditions [Array<Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition>]
115
-
116
- # The action to take if the conditions are met.
117
- #
118
- # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters#action
119
- module Action
120
- extend Lithic::Internal::Type::Enum
121
-
122
- DECLINE = :DECLINE
123
- CHALLENGE = :CHALLENGE
124
-
125
- # @!method self.values
126
- # @return [Array<Symbol>]
127
- end
128
-
129
- class Condition < Lithic::Internal::Type::BaseModel
130
- # @!attribute attribute
131
- # The attribute to target.
132
- #
133
- # The following attributes may be targeted:
134
- #
135
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
136
- # business by the types of goods or services it provides.
137
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
138
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
139
- # Netherlands Antilles.
140
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
141
- # the transaction.
142
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
143
- # (merchant).
144
- # - `DESCRIPTOR`: Short description of card acceptor.
145
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
146
- # fee field in the settlement/cardholder billing currency. This is the amount
147
- # the issuer should authorize against unless the issuer is paying the acquirer
148
- # fee on behalf of the cardholder.
149
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
150
- # given authentication. Scores are on a range of 0-999, with 0 representing the
151
- # lowest risk and 999 representing the highest risk. For Visa transactions,
152
- # where the raw score has a range of 0-99, Lithic will normalize the score by
153
- # multiplying the raw score by 10x.
154
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
155
- #
156
- # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Attribute, nil]
157
- optional :attribute,
158
- enum: -> {
159
- Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Attribute
160
- }
161
-
162
- # @!attribute operation
163
- # The operation to apply to the attribute
164
- #
165
- # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Operation, nil]
166
- optional :operation,
167
- enum: -> {
168
- Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Operation
169
- }
170
-
171
- # @!attribute value
172
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
173
- #
174
- # @return [String, Integer, Array<String>, nil]
175
- optional :value,
176
- union: -> {
177
- Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Value
178
- }
179
-
180
- # @!method initialize(attribute: nil, operation: nil, value: nil)
181
- # Some parameter documentations has been truncated, see
182
- # {Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition}
183
- # for more details.
184
- #
185
- # @param attribute [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
186
- #
187
- # @param operation [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
188
- #
189
- # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
190
-
191
- # The attribute to target.
192
- #
193
- # The following attributes may be targeted:
194
- #
195
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
196
- # business by the types of goods or services it provides.
197
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
198
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
199
- # Netherlands Antilles.
200
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
201
- # the transaction.
202
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
203
- # (merchant).
204
- # - `DESCRIPTOR`: Short description of card acceptor.
205
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
206
- # fee field in the settlement/cardholder billing currency. This is the amount
207
- # the issuer should authorize against unless the issuer is paying the acquirer
208
- # fee on behalf of the cardholder.
209
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
210
- # given authentication. Scores are on a range of 0-999, with 0 representing the
211
- # lowest risk and 999 representing the highest risk. For Visa transactions,
212
- # where the raw score has a range of 0-99, Lithic will normalize the score by
213
- # multiplying the raw score by 10x.
214
- # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
215
- #
216
- # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition#attribute
217
- module Attribute
218
- extend Lithic::Internal::Type::Enum
219
-
220
- MCC = :MCC
221
- COUNTRY = :COUNTRY
222
- CURRENCY = :CURRENCY
223
- MERCHANT_ID = :MERCHANT_ID
224
- DESCRIPTOR = :DESCRIPTOR
225
- TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
226
- RISK_SCORE = :RISK_SCORE
227
- MESSAGE_CATEGORY = :MESSAGE_CATEGORY
228
-
229
- # @!method self.values
230
- # @return [Array<Symbol>]
231
- end
232
-
233
- # The operation to apply to the attribute
234
- #
235
- # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition#operation
236
- module Operation
237
- extend Lithic::Internal::Type::Enum
238
-
239
- IS_ONE_OF = :IS_ONE_OF
240
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
241
- MATCHES = :MATCHES
242
- DOES_NOT_MATCH = :DOES_NOT_MATCH
243
- IS_GREATER_THAN = :IS_GREATER_THAN
244
- IS_LESS_THAN = :IS_LESS_THAN
245
-
246
- # @!method self.values
247
- # @return [Array<Symbol>]
248
- end
249
-
250
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
251
- #
252
- # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition#value
253
- module Value
254
- extend Lithic::Internal::Type::Union
255
-
256
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
257
- variant String
258
-
259
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
260
- variant Integer
261
-
262
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
263
- variant -> { Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters::Condition::Value::StringArray }
264
-
265
- # @!method self.variants
266
- # @return [Array(String, Integer, Array<String>)]
267
-
268
- # @type [Lithic::Internal::Type::Converter]
269
- StringArray = Lithic::Internal::Type::ArrayOf[String]
270
- end
271
- end
272
- end
32
+ variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
273
33
 
274
34
  # @!method self.variants
275
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters)]
35
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
276
36
  end
277
37
  end
278
38
  end