lithic 0.1.0.pre.alpha.30 → 0.1.0.pre.alpha.31

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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +8 -9
  5. data/lib/lithic/models/account_update_params.rb +4 -4
  6. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +100 -28
  7. data/lib/lithic/models/auth_rules/v2_apply_response.rb +401 -10
  8. data/lib/lithic/models/auth_rules/v2_create_params.rb +205 -6
  9. data/lib/lithic/models/auth_rules/v2_create_response.rb +401 -10
  10. data/lib/lithic/models/auth_rules/v2_draft_params.rb +186 -3
  11. data/lib/lithic/models/auth_rules/v2_draft_response.rb +401 -10
  12. data/lib/lithic/models/auth_rules/v2_list_params.rb +27 -8
  13. data/lib/lithic/models/auth_rules/v2_list_response.rb +401 -10
  14. data/lib/lithic/models/auth_rules/v2_promote_response.rb +401 -10
  15. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +401 -10
  16. data/lib/lithic/models/auth_rules/v2_update_response.rb +401 -10
  17. data/lib/lithic/models/funding_event_list_response.rb +26 -22
  18. data/lib/lithic/models/funding_event_retrieve_response.rb +26 -22
  19. data/lib/lithic/models/payment.rb +2 -2
  20. data/lib/lithic/models/required_document.rb +2 -2
  21. data/lib/lithic/models/transaction.rb +2 -1
  22. data/lib/lithic/resources/auth_rules/v2/backtests.rb +12 -13
  23. data/lib/lithic/resources/auth_rules/v2.rb +43 -39
  24. data/lib/lithic/version.rb +1 -1
  25. data/rbi/lithic/internal/util.rbi +2 -0
  26. data/rbi/lithic/models/account_update_params.rbi +6 -6
  27. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +186 -24
  28. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +895 -7
  29. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +442 -8
  30. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +895 -7
  31. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +414 -4
  32. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +895 -7
  33. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +60 -7
  34. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +895 -7
  35. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +895 -7
  36. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +895 -7
  37. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +895 -7
  38. data/rbi/lithic/models/funding_event_list_response.rbi +35 -28
  39. data/rbi/lithic/models/funding_event_retrieve_response.rbi +35 -28
  40. data/rbi/lithic/models/payment.rbi +3 -3
  41. data/rbi/lithic/models/required_document.rbi +2 -2
  42. data/rbi/lithic/models/transaction.rbi +4 -2
  43. data/rbi/lithic/resources/accounts.rbi +2 -2
  44. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +12 -13
  45. data/rbi/lithic/resources/auth_rules/v2.rbi +49 -38
  46. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +66 -2
  47. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +280 -1
  48. data/sig/lithic/models/auth_rules/v2_create_params.rbs +135 -1
  49. data/sig/lithic/models/auth_rules/v2_create_response.rbs +280 -1
  50. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +129 -0
  51. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +280 -1
  52. data/sig/lithic/models/auth_rules/v2_list_params.rbs +20 -0
  53. data/sig/lithic/models/auth_rules/v2_list_response.rbs +280 -1
  54. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +280 -1
  55. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +280 -1
  56. data/sig/lithic/models/auth_rules/v2_update_response.rbs +280 -1
  57. data/sig/lithic/models/funding_event_list_response.rbs +18 -11
  58. data/sig/lithic/models/funding_event_retrieve_response.rbs +18 -11
  59. data/sig/lithic/resources/auth_rules/v2.rbs +1 -0
  60. metadata +2 -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, nil]
14
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::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, nil] Parameters for the Auth Rule
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
19
19
  #
20
20
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
21
21
 
@@ -29,6 +29,8 @@ module Lithic
29
29
 
30
30
  variant -> { Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters }
31
31
 
32
+ variant -> { Lithic::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters }
33
+
32
34
  class MerchantLockParameters < Lithic::Internal::Type::BaseModel
33
35
  # @!attribute merchants
34
36
  # A list of merchant locks defining specific merchants or groups of merchants
@@ -88,8 +90,189 @@ module Lithic
88
90
  end
89
91
  end
90
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
273
+
91
274
  # @!method self.variants
92
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters)]
275
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftParams::Parameters::MerchantLockParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::Conditional3DSActionParameters)]
93
276
  end
94
277
  end
95
278
  end