lithic 0.1.0.pre.alpha.53 → 0.1.0.pre.alpha.55

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 (157) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +6 -2
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  9. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  12. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  14. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  18. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  19. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  20. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  21. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  22. data/lib/lithic/models/book_transfer_response.rb +5 -5
  23. data/lib/lithic/models/dispute.rb +510 -242
  24. data/lib/lithic/models/dispute_create_response.rb +326 -0
  25. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  26. data/lib/lithic/models/dispute_list_response.rb +326 -0
  27. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  28. data/lib/lithic/models/dispute_update_response.rb +326 -0
  29. data/lib/lithic/models/event.rb +213 -69
  30. data/lib/lithic/models/event_list_params.rb +112 -6
  31. data/lib/lithic/models/event_subscription.rb +112 -6
  32. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  33. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  34. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  35. data/lib/lithic/models/financial_account.rb +1 -65
  36. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  38. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  39. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  40. data/lib/lithic/models/financial_transaction.rb +1 -0
  41. data/lib/lithic/models/payment.rb +29 -18
  42. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  43. data/lib/lithic/models/tokenization.rb +189 -23
  44. data/lib/lithic/models/transaction.rb +12 -116
  45. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  46. data/lib/lithic/models/transfer.rb +1 -0
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  48. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  49. data/lib/lithic/resources/disputes.rb +10 -10
  50. data/lib/lithic/resources/payments.rb +5 -1
  51. data/lib/lithic/version.rb +1 -1
  52. data/lib/lithic.rb +8 -3
  53. data/manifest.yaml +1 -0
  54. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  55. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  56. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  57. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  58. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  59. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  60. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  61. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  63. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  64. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  65. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  66. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  67. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  68. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  70. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  71. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  72. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  73. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  74. data/rbi/lithic/models/dispute.rbi +942 -395
  75. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  76. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  77. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  78. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  79. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  80. data/rbi/lithic/models/event.rbi +348 -111
  81. data/rbi/lithic/models/event_list_params.rbi +155 -25
  82. data/rbi/lithic/models/event_subscription.rbi +155 -25
  83. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  84. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  85. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  86. data/rbi/lithic/models/financial_account.rbi +3 -132
  87. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  89. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  90. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  91. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  92. data/rbi/lithic/models/payment.rbi +52 -28
  93. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  94. data/rbi/lithic/models/tokenization.rbi +429 -34
  95. data/rbi/lithic/models/transaction.rbi +22 -246
  96. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  97. data/rbi/lithic/models/transfer.rbi +5 -0
  98. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  99. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  100. data/rbi/lithic/resources/disputes.rbi +7 -5
  101. data/rbi/lithic/resources/payments.rbi +6 -0
  102. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  103. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  104. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  105. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  106. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  107. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  108. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  109. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  110. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  111. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  112. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  113. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  114. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  115. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  116. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  117. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  118. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  119. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  120. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  121. data/sig/lithic/models/dispute.rbs +417 -157
  122. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  123. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  124. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  125. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  126. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  127. data/sig/lithic/models/event.rbs +25 -13
  128. data/sig/lithic/models/event_list_params.rbs +25 -13
  129. data/sig/lithic/models/event_subscription.rbs +25 -13
  130. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  131. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  132. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  133. data/sig/lithic/models/financial_account.rbs +3 -45
  134. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  135. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  136. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  137. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  138. data/sig/lithic/models/financial_transaction.rbs +2 -0
  139. data/sig/lithic/models/payment.rbs +16 -12
  140. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  141. data/sig/lithic/models/tokenization.rbs +160 -13
  142. data/sig/lithic/models/transaction.rbs +13 -94
  143. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  144. data/sig/lithic/models/transfer.rbs +2 -0
  145. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  146. data/sig/lithic/resources/disputes.rbs +5 -5
  147. data/sig/lithic/resources/payments.rbs +2 -0
  148. metadata +23 -11
  149. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  150. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  151. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  152. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  153. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  154. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  155. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  156. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  157. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -105,169 +105,11 @@ module Lithic
105
105
  | Lithic::AuthRules::VelocityLimitParams
106
106
  | Lithic::AuthRules::MerchantLockParameters
107
107
  | Lithic::AuthRules::Conditional3DSActionParameters
108
- | Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters
108
+ | Lithic::AuthRules::ConditionalAuthorizationActionParameters
109
109
 
110
110
  module Parameters
111
111
  extend Lithic::Internal::Type::Union
112
112
 
113
- type conditional_authorization_action_parameters =
114
- {
115
- action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action,
116
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
117
- }
118
-
119
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
120
- attr_accessor action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action
121
-
122
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
123
-
124
- def initialize: (
125
- action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action,
126
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
127
- ) -> void
128
-
129
- def to_hash: -> {
130
- action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action,
131
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
132
- }
133
-
134
- type action = :DECLINE | :CHALLENGE
135
-
136
- module Action
137
- extend Lithic::Internal::Type::Enum
138
-
139
- DECLINE: :DECLINE
140
- CHALLENGE: :CHALLENGE
141
-
142
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action]
143
- end
144
-
145
- type condition =
146
- {
147
- attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
148
- operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
149
- value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
150
- }
151
-
152
- class Condition < Lithic::Internal::Type::BaseModel
153
- attr_reader attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute?
154
-
155
- def attribute=: (
156
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
157
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
158
-
159
- attr_reader operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation?
160
-
161
- def operation=: (
162
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
163
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
164
-
165
- attr_reader value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value?
166
-
167
- def value=: (
168
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
169
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
170
-
171
- def initialize: (
172
- ?attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
173
- ?operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
174
- ?value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
175
- ) -> void
176
-
177
- def to_hash: -> {
178
- attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
179
- operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
180
- value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
181
- }
182
-
183
- type attribute =
184
- :MCC
185
- | :COUNTRY
186
- | :CURRENCY
187
- | :MERCHANT_ID
188
- | :DESCRIPTOR
189
- | :LIABILITY_SHIFT
190
- | :PAN_ENTRY_MODE
191
- | :TRANSACTION_AMOUNT
192
- | :CASH_AMOUNT
193
- | :RISK_SCORE
194
- | :CARD_TRANSACTION_COUNT_15M
195
- | :CARD_TRANSACTION_COUNT_1H
196
- | :CARD_TRANSACTION_COUNT_24H
197
- | :CARD_STATE
198
- | :PIN_ENTERED
199
- | :PIN_STATUS
200
- | :WALLET_TYPE
201
- | :TRANSACTION_INITIATOR
202
- | :ADDRESS_MATCH
203
-
204
- module Attribute
205
- extend Lithic::Internal::Type::Enum
206
-
207
- MCC: :MCC
208
- COUNTRY: :COUNTRY
209
- CURRENCY: :CURRENCY
210
- MERCHANT_ID: :MERCHANT_ID
211
- DESCRIPTOR: :DESCRIPTOR
212
- LIABILITY_SHIFT: :LIABILITY_SHIFT
213
- PAN_ENTRY_MODE: :PAN_ENTRY_MODE
214
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
215
- CASH_AMOUNT: :CASH_AMOUNT
216
- RISK_SCORE: :RISK_SCORE
217
- CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
218
- CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
219
- CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
220
- CARD_STATE: :CARD_STATE
221
- PIN_ENTERED: :PIN_ENTERED
222
- PIN_STATUS: :PIN_STATUS
223
- WALLET_TYPE: :WALLET_TYPE
224
- TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
225
- ADDRESS_MATCH: :ADDRESS_MATCH
226
-
227
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute]
228
- end
229
-
230
- type operation =
231
- :IS_ONE_OF
232
- | :IS_NOT_ONE_OF
233
- | :MATCHES
234
- | :DOES_NOT_MATCH
235
- | :IS_EQUAL_TO
236
- | :IS_NOT_EQUAL_TO
237
- | :IS_GREATER_THAN
238
- | :IS_GREATER_THAN_OR_EQUAL_TO
239
- | :IS_LESS_THAN
240
- | :IS_LESS_THAN_OR_EQUAL_TO
241
-
242
- module Operation
243
- extend Lithic::Internal::Type::Enum
244
-
245
- IS_ONE_OF: :IS_ONE_OF
246
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
247
- MATCHES: :MATCHES
248
- DOES_NOT_MATCH: :DOES_NOT_MATCH
249
- IS_EQUAL_TO: :IS_EQUAL_TO
250
- IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
251
- IS_GREATER_THAN: :IS_GREATER_THAN
252
- IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
253
- IS_LESS_THAN: :IS_LESS_THAN
254
- IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
255
-
256
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation]
257
- end
258
-
259
- type value = String | Integer | ::Array[String]
260
-
261
- module Value
262
- extend Lithic::Internal::Type::Union
263
-
264
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value]
265
-
266
- StringArray: Lithic::Internal::Type::Converter
267
- end
268
- end
269
- end
270
-
271
113
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::parameters]
272
114
  end
273
115
  end
@@ -298,169 +140,11 @@ module Lithic
298
140
  | Lithic::AuthRules::VelocityLimitParams
299
141
  | Lithic::AuthRules::MerchantLockParameters
300
142
  | Lithic::AuthRules::Conditional3DSActionParameters
301
- | Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters
143
+ | Lithic::AuthRules::ConditionalAuthorizationActionParameters
302
144
 
303
145
  module Parameters
304
146
  extend Lithic::Internal::Type::Union
305
147
 
306
- type conditional_authorization_action_parameters =
307
- {
308
- action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action,
309
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
310
- }
311
-
312
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
313
- attr_accessor action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action
314
-
315
- attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
316
-
317
- def initialize: (
318
- action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action,
319
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
320
- ) -> void
321
-
322
- def to_hash: -> {
323
- action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action,
324
- conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition]
325
- }
326
-
327
- type action = :DECLINE | :CHALLENGE
328
-
329
- module Action
330
- extend Lithic::Internal::Type::Enum
331
-
332
- DECLINE: :DECLINE
333
- CHALLENGE: :CHALLENGE
334
-
335
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action]
336
- end
337
-
338
- type condition =
339
- {
340
- attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
341
- operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
342
- value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
343
- }
344
-
345
- class Condition < Lithic::Internal::Type::BaseModel
346
- attr_reader attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute?
347
-
348
- def attribute=: (
349
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
350
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute
351
-
352
- attr_reader operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation?
353
-
354
- def operation=: (
355
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
356
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation
357
-
358
- attr_reader value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value?
359
-
360
- def value=: (
361
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
362
- ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
363
-
364
- def initialize: (
365
- ?attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
366
- ?operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
367
- ?value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
368
- ) -> void
369
-
370
- def to_hash: -> {
371
- attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute,
372
- operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation,
373
- value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value
374
- }
375
-
376
- type attribute =
377
- :MCC
378
- | :COUNTRY
379
- | :CURRENCY
380
- | :MERCHANT_ID
381
- | :DESCRIPTOR
382
- | :LIABILITY_SHIFT
383
- | :PAN_ENTRY_MODE
384
- | :TRANSACTION_AMOUNT
385
- | :CASH_AMOUNT
386
- | :RISK_SCORE
387
- | :CARD_TRANSACTION_COUNT_15M
388
- | :CARD_TRANSACTION_COUNT_1H
389
- | :CARD_TRANSACTION_COUNT_24H
390
- | :CARD_STATE
391
- | :PIN_ENTERED
392
- | :PIN_STATUS
393
- | :WALLET_TYPE
394
- | :TRANSACTION_INITIATOR
395
- | :ADDRESS_MATCH
396
-
397
- module Attribute
398
- extend Lithic::Internal::Type::Enum
399
-
400
- MCC: :MCC
401
- COUNTRY: :COUNTRY
402
- CURRENCY: :CURRENCY
403
- MERCHANT_ID: :MERCHANT_ID
404
- DESCRIPTOR: :DESCRIPTOR
405
- LIABILITY_SHIFT: :LIABILITY_SHIFT
406
- PAN_ENTRY_MODE: :PAN_ENTRY_MODE
407
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
408
- CASH_AMOUNT: :CASH_AMOUNT
409
- RISK_SCORE: :RISK_SCORE
410
- CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
411
- CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
412
- CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
413
- CARD_STATE: :CARD_STATE
414
- PIN_ENTERED: :PIN_ENTERED
415
- PIN_STATUS: :PIN_STATUS
416
- WALLET_TYPE: :WALLET_TYPE
417
- TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
418
- ADDRESS_MATCH: :ADDRESS_MATCH
419
-
420
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute]
421
- end
422
-
423
- type operation =
424
- :IS_ONE_OF
425
- | :IS_NOT_ONE_OF
426
- | :MATCHES
427
- | :DOES_NOT_MATCH
428
- | :IS_EQUAL_TO
429
- | :IS_NOT_EQUAL_TO
430
- | :IS_GREATER_THAN
431
- | :IS_GREATER_THAN_OR_EQUAL_TO
432
- | :IS_LESS_THAN
433
- | :IS_LESS_THAN_OR_EQUAL_TO
434
-
435
- module Operation
436
- extend Lithic::Internal::Type::Enum
437
-
438
- IS_ONE_OF: :IS_ONE_OF
439
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
440
- MATCHES: :MATCHES
441
- DOES_NOT_MATCH: :DOES_NOT_MATCH
442
- IS_EQUAL_TO: :IS_EQUAL_TO
443
- IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
444
- IS_GREATER_THAN: :IS_GREATER_THAN
445
- IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
446
- IS_LESS_THAN: :IS_LESS_THAN
447
- IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
448
-
449
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation]
450
- end
451
-
452
- type value = String | Integer | ::Array[String]
453
-
454
- module Value
455
- extend Lithic::Internal::Type::Union
456
-
457
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value]
458
-
459
- StringArray: Lithic::Internal::Type::Converter
460
- end
461
- end
462
- end
463
-
464
148
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::parameters]
465
149
  end
466
150
  end
@@ -4,7 +4,7 @@ module Lithic
4
4
  type velocity_limit_params =
5
5
  {
6
6
  filters: Lithic::AuthRules::VelocityLimitParams::Filters,
7
- period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
7
+ period: Lithic::Models::AuthRules::velocity_limit_period,
8
8
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
9
9
  limit_amount: Integer?,
10
10
  limit_count: Integer?
@@ -13,7 +13,7 @@ module Lithic
13
13
  class VelocityLimitParams < Lithic::Internal::Type::BaseModel
14
14
  attr_accessor filters: Lithic::AuthRules::VelocityLimitParams::Filters
15
15
 
16
- attr_accessor period: Lithic::Models::AuthRules::velocity_limit_params_period_window
16
+ attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
17
17
 
18
18
  attr_accessor scope: Lithic::Models::AuthRules::VelocityLimitParams::scope
19
19
 
@@ -23,7 +23,7 @@ module Lithic
23
23
 
24
24
  def initialize: (
25
25
  filters: Lithic::AuthRules::VelocityLimitParams::Filters,
26
- period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
26
+ period: Lithic::Models::AuthRules::velocity_limit_period,
27
27
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
28
28
  ?limit_amount: Integer?,
29
29
  ?limit_count: Integer?
@@ -31,7 +31,7 @@ module Lithic
31
31
 
32
32
  def to_hash: -> {
33
33
  filters: Lithic::AuthRules::VelocityLimitParams::Filters,
34
- period: Lithic::Models::AuthRules::velocity_limit_params_period_window,
34
+ period: Lithic::Models::AuthRules::velocity_limit_period,
35
35
  scope: Lithic::Models::AuthRules::VelocityLimitParams::scope,
36
36
  limit_amount: Integer?,
37
37
  limit_count: Integer?
@@ -0,0 +1,91 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type velocity_limit_period =
5
+ Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject
6
+ | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay
7
+ | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek
8
+ | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth
9
+ | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
10
+
11
+ module VelocityLimitPeriod
12
+ extend Lithic::Internal::Type::Union
13
+
14
+ type trailing_window_object = { duration: Integer, type: :CUSTOM }
15
+
16
+ class TrailingWindowObject < Lithic::Internal::Type::BaseModel
17
+ attr_accessor duration: Integer
18
+
19
+ attr_accessor type: :CUSTOM
20
+
21
+ def initialize: (duration: Integer, ?type: :CUSTOM) -> void
22
+
23
+ def to_hash: -> { duration: Integer, type: :CUSTOM }
24
+ end
25
+
26
+ type fixed_window_day = { type: :DAY }
27
+
28
+ class FixedWindowDay < Lithic::Internal::Type::BaseModel
29
+ attr_accessor type: :DAY
30
+
31
+ def initialize: (?type: :DAY) -> void
32
+
33
+ def to_hash: -> { type: :DAY }
34
+ end
35
+
36
+ type fixed_window_week = { type: :WEEK, day_of_week: Integer }
37
+
38
+ class FixedWindowWeek < Lithic::Internal::Type::BaseModel
39
+ attr_accessor type: :WEEK
40
+
41
+ attr_reader day_of_week: Integer?
42
+
43
+ def day_of_week=: (Integer) -> Integer
44
+
45
+ def initialize: (?day_of_week: Integer, ?type: :WEEK) -> void
46
+
47
+ def to_hash: -> { type: :WEEK, day_of_week: Integer }
48
+ end
49
+
50
+ type fixed_window_month = { type: :MONTH, day_of_month: Integer }
51
+
52
+ class FixedWindowMonth < Lithic::Internal::Type::BaseModel
53
+ attr_accessor type: :MONTH
54
+
55
+ attr_reader day_of_month: Integer?
56
+
57
+ def day_of_month=: (Integer) -> Integer
58
+
59
+ def initialize: (?day_of_month: Integer, ?type: :MONTH) -> void
60
+
61
+ def to_hash: -> { type: :MONTH, day_of_month: Integer }
62
+ end
63
+
64
+ type fixed_window_year =
65
+ { type: :YEAR, day_of_month: Integer, month: Integer }
66
+
67
+ class FixedWindowYear < Lithic::Internal::Type::BaseModel
68
+ attr_accessor type: :YEAR
69
+
70
+ attr_reader day_of_month: Integer?
71
+
72
+ def day_of_month=: (Integer) -> Integer
73
+
74
+ attr_reader month: Integer?
75
+
76
+ def month=: (Integer) -> Integer
77
+
78
+ def initialize: (
79
+ ?day_of_month: Integer,
80
+ ?month: Integer,
81
+ ?type: :YEAR
82
+ ) -> void
83
+
84
+ def to_hash: -> { type: :YEAR, day_of_month: Integer, month: Integer }
85
+ end
86
+
87
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::velocity_limit_period]
88
+ end
89
+ end
90
+ end
91
+ end
@@ -123,7 +123,7 @@ module Lithic
123
123
  token: String,
124
124
  amount: Integer,
125
125
  created: Time,
126
- detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
126
+ detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result],
127
127
  memo: String,
128
128
  result: Lithic::Models::BookTransferResponse::Event::result,
129
129
  subtype: String,
@@ -137,7 +137,7 @@ module Lithic
137
137
 
138
138
  attr_accessor created: Time
139
139
 
140
- attr_accessor detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results
140
+ attr_accessor detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result]
141
141
 
142
142
  attr_accessor memo: String
143
143
 
@@ -151,7 +151,7 @@ module Lithic
151
151
  token: String,
152
152
  amount: Integer,
153
153
  created: Time,
154
- detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
154
+ detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result],
155
155
  memo: String,
156
156
  result: Lithic::Models::BookTransferResponse::Event::result,
157
157
  subtype: String,
@@ -162,22 +162,22 @@ module Lithic
162
162
  token: String,
163
163
  amount: Integer,
164
164
  created: Time,
165
- detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
165
+ detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result],
166
166
  memo: String,
167
167
  result: Lithic::Models::BookTransferResponse::Event::result,
168
168
  subtype: String,
169
169
  type: Lithic::Models::BookTransferResponse::Event::type_
170
170
  }
171
171
 
172
- type detailed_results = :APPROVED | :FUNDS_INSUFFICIENT
172
+ type detailed_result = :APPROVED | :FUNDS_INSUFFICIENT
173
173
 
174
- module DetailedResults
174
+ module DetailedResult
175
175
  extend Lithic::Internal::Type::Enum
176
176
 
177
177
  APPROVED: :APPROVED
178
178
  FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT
179
179
 
180
- def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::detailed_results]
180
+ def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result]
181
181
  end
182
182
 
183
183
  type result = :APPROVED | :DECLINED