lithic 0.16.0 → 0.18.0

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
  5. data/lib/lithic/models/auth_rules/auth_rule.rb +18 -14
  6. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  7. data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
  8. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  9. data/lib/lithic/models/auth_rules/rule_feature.rb +316 -5
  10. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -33
  12. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  13. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
  14. data/lib/lithic/models/claim_created_webhook_event.rb +190 -0
  15. data/lib/lithic/models/claim_document_accepted_webhook_event.rb +175 -0
  16. data/lib/lithic/models/claim_document_rejected_webhook_event.rb +175 -0
  17. data/lib/lithic/models/claim_document_uploaded_webhook_event.rb +175 -0
  18. data/lib/lithic/models/claim_updated_webhook_event.rb +190 -0
  19. data/lib/lithic/models/event.rb +23 -0
  20. data/lib/lithic/models/event_list_params.rb +14 -0
  21. data/lib/lithic/models/event_subscription.rb +14 -0
  22. data/lib/lithic/models/events/subscription_create_params.rb +14 -0
  23. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +5 -0
  24. data/lib/lithic/models/events/subscription_update_params.rb +14 -0
  25. data/lib/lithic/models/parsed_webhook_event.rb +11 -1
  26. data/lib/lithic/models.rb +10 -0
  27. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  28. data/lib/lithic/resources/webhooks.rb +1 -1
  29. data/lib/lithic/version.rb +1 -1
  30. data/lib/lithic.rb +7 -0
  31. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
  32. data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -12
  33. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  34. data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
  35. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  36. data/rbi/lithic/models/auth_rules/rule_feature.rbi +724 -5
  37. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +18 -3
  38. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -36
  39. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  40. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
  41. data/rbi/lithic/models/claim_created_webhook_event.rbi +386 -0
  42. data/rbi/lithic/models/claim_document_accepted_webhook_event.rbi +315 -0
  43. data/rbi/lithic/models/claim_document_rejected_webhook_event.rbi +315 -0
  44. data/rbi/lithic/models/claim_document_uploaded_webhook_event.rbi +315 -0
  45. data/rbi/lithic/models/claim_updated_webhook_event.rbi +386 -0
  46. data/rbi/lithic/models/event.rbi +46 -0
  47. data/rbi/lithic/models/event_list_params.rbi +34 -0
  48. data/rbi/lithic/models/event_subscription.rbi +34 -0
  49. data/rbi/lithic/models/events/subscription_create_params.rbi +34 -0
  50. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +25 -0
  51. data/rbi/lithic/models/events/subscription_update_params.rbi +34 -0
  52. data/rbi/lithic/models/parsed_webhook_event.rbi +5 -0
  53. data/rbi/lithic/models.rbi +13 -0
  54. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  55. data/rbi/lithic/resources/webhooks.rbi +5 -0
  56. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
  57. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  58. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  59. data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
  60. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  61. data/sig/lithic/models/auth_rules/rule_feature.rbs +267 -0
  62. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  63. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  64. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
  65. data/sig/lithic/models/claim_created_webhook_event.rbs +169 -0
  66. data/sig/lithic/models/claim_document_accepted_webhook_event.rbs +131 -0
  67. data/sig/lithic/models/claim_document_rejected_webhook_event.rbs +131 -0
  68. data/sig/lithic/models/claim_document_uploaded_webhook_event.rbs +131 -0
  69. data/sig/lithic/models/claim_updated_webhook_event.rbs +169 -0
  70. data/sig/lithic/models/event.rbs +10 -0
  71. data/sig/lithic/models/event_list_params.rbs +10 -0
  72. data/sig/lithic/models/event_subscription.rbs +10 -0
  73. data/sig/lithic/models/events/subscription_create_params.rbs +10 -0
  74. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +10 -0
  75. data/sig/lithic/models/events/subscription_update_params.rbs +10 -0
  76. data/sig/lithic/models/parsed_webhook_event.rbs +5 -0
  77. data/sig/lithic/models.rbs +10 -0
  78. data/sig/lithic/resources/webhooks.rbs +5 -0
  79. metadata +23 -2
@@ -194,6 +194,19 @@ module Lithic
194
194
 
195
195
  CategoryDetails = Lithic::Models::CategoryDetails
196
196
 
197
+ ClaimCreatedWebhookEvent = Lithic::Models::ClaimCreatedWebhookEvent
198
+
199
+ ClaimDocumentAcceptedWebhookEvent =
200
+ Lithic::Models::ClaimDocumentAcceptedWebhookEvent
201
+
202
+ ClaimDocumentRejectedWebhookEvent =
203
+ Lithic::Models::ClaimDocumentRejectedWebhookEvent
204
+
205
+ ClaimDocumentUploadedWebhookEvent =
206
+ Lithic::Models::ClaimDocumentUploadedWebhookEvent
207
+
208
+ ClaimUpdatedWebhookEvent = Lithic::Models::ClaimUpdatedWebhookEvent
209
+
197
210
  ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
198
211
 
199
212
  CreditProducts = Lithic::Models::CreditProducts
@@ -123,6 +123,7 @@ module Lithic
123
123
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
124
124
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
125
125
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
126
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
126
127
  Lithic::AuthRules::TypescriptCodeParameters::OrHash,
127
128
  Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
128
129
  )
@@ -32,6 +32,11 @@ module Lithic
32
32
  Lithic::CardTransactionUpdatedWebhookEvent,
33
33
  Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
34
34
  Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
35
+ Lithic::ClaimCreatedWebhookEvent,
36
+ Lithic::ClaimUpdatedWebhookEvent,
37
+ Lithic::ClaimDocumentUploadedWebhookEvent,
38
+ Lithic::ClaimDocumentAcceptedWebhookEvent,
39
+ Lithic::ClaimDocumentRejectedWebhookEvent,
35
40
  Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
36
41
  Lithic::DigitalWalletTokenizationResultWebhookEvent,
37
42
  Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
@@ -0,0 +1,99 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type ach_payment_update_action =
5
+ Lithic::AuthRules::ACHPaymentUpdateAction::TagAction
6
+ | Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction
7
+
8
+ module ACHPaymentUpdateAction
9
+ extend Lithic::Internal::Type::Union
10
+
11
+ type tag_action =
12
+ {
13
+ key: String,
14
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
15
+ value: String
16
+ }
17
+
18
+ class TagAction < Lithic::Internal::Type::BaseModel
19
+ attr_accessor key: String
20
+
21
+ attr_accessor type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_
22
+
23
+ attr_accessor value: String
24
+
25
+ def initialize: (
26
+ key: String,
27
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
28
+ value: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ key: String,
33
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
34
+ value: String
35
+ }
36
+
37
+ type type_ = :TAG
38
+
39
+ module Type
40
+ extend Lithic::Internal::Type::Enum
41
+
42
+ TAG: :TAG
43
+
44
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_]
45
+ end
46
+ end
47
+
48
+ type create_case_action =
49
+ {
50
+ queue_token: String,
51
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
52
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
53
+ }
54
+
55
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
56
+ attr_accessor queue_token: String
57
+
58
+ attr_accessor scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope
59
+
60
+ attr_accessor type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
61
+
62
+ def initialize: (
63
+ queue_token: String,
64
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
65
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
66
+ ) -> void
67
+
68
+ def to_hash: -> {
69
+ queue_token: String,
70
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
71
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
72
+ }
73
+
74
+ type scope = :FINANCIAL_ACCOUNT
75
+
76
+ module Scope
77
+ extend Lithic::Internal::Type::Enum
78
+
79
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
80
+
81
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope]
82
+ end
83
+
84
+ type type_ = :CREATE_CASE
85
+
86
+ module Type
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ CREATE_CASE: :CREATE_CASE
90
+
91
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_]
92
+ end
93
+ end
94
+
95
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::ach_payment_update_action]
96
+ end
97
+ end
98
+ end
99
+ end
@@ -127,6 +127,7 @@ module Lithic
127
127
  | Lithic::AuthRules::ConditionalACHActionParameters
128
128
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
129
129
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
130
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
130
131
  | Lithic::AuthRules::TypescriptCodeParameters
131
132
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
132
133
 
@@ -177,6 +178,7 @@ module Lithic
177
178
  | Lithic::AuthRules::ConditionalACHActionParameters
178
179
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
179
180
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
181
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
180
182
  | Lithic::AuthRules::TypescriptCodeParameters
181
183
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
182
184
 
@@ -43,6 +43,7 @@ module Lithic
43
43
  | Lithic::AuthRules::ConditionalACHActionParameters
44
44
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
45
45
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
46
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
46
47
  | Lithic::AuthRules::TypescriptCodeParameters
47
48
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
48
49
 
@@ -0,0 +1,81 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_ach_payment_update_action_parameters =
5
+ {
6
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
7
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
8
+ }
9
+
10
+ class ConditionalACHPaymentUpdateActionParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor action: Lithic::Models::AuthRules::ach_payment_update_action
12
+
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
14
+
15
+ def initialize: (
16
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
17
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
22
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
23
+ }
24
+
25
+ type condition =
26
+ {
27
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
28
+ operation: Lithic::Models::AuthRules::conditional_operation,
29
+ value: Lithic::Models::AuthRules::conditional_value
30
+ }
31
+
32
+ class Condition < Lithic::Internal::Type::BaseModel
33
+ attr_accessor attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute
34
+
35
+ attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
36
+
37
+ attr_accessor value: Lithic::Models::AuthRules::conditional_value
38
+
39
+ def initialize: (
40
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
41
+ operation: Lithic::Models::AuthRules::conditional_operation,
42
+ value: Lithic::Models::AuthRules::conditional_value
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
47
+ operation: Lithic::Models::AuthRules::conditional_operation,
48
+ value: Lithic::Models::AuthRules::conditional_value
49
+ }
50
+
51
+ type attribute =
52
+ :TRANSACTION_AMOUNT
53
+ | :SEC_CODE
54
+ | :RETURN_REASON_CODE
55
+ | :ACCOUNT_AGE
56
+ | :EXTERNAL_BANK_ACCOUNT_AGE
57
+ | :EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD
58
+ | :EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE
59
+ | :EXTERNAL_BANK_ACCOUNT_OWNER_TYPE
60
+ | :ACH_EVENT_TYPE
61
+
62
+ module Attribute
63
+ extend Lithic::Internal::Type::Enum
64
+
65
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
66
+ SEC_CODE: :SEC_CODE
67
+ RETURN_REASON_CODE: :RETURN_REASON_CODE
68
+ ACCOUNT_AGE: :ACCOUNT_AGE
69
+ EXTERNAL_BANK_ACCOUNT_AGE: :EXTERNAL_BANK_ACCOUNT_AGE
70
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD: :EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD
71
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE: :EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE
72
+ EXTERNAL_BANK_ACCOUNT_OWNER_TYPE: :EXTERNAL_BANK_ACCOUNT_OWNER_TYPE
73
+ ACH_EVENT_TYPE: :ACH_EVENT_TYPE
74
+
75
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute]
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -8,6 +8,7 @@ module Lithic
8
8
  | :ACH_CREDIT_RECEIPT
9
9
  | :ACH_DEBIT_RECEIPT
10
10
  | :CARD_TRANSACTION_UPDATE
11
+ | :ACH_PAYMENT_UPDATE
11
12
 
12
13
  module EventStream
13
14
  extend Lithic::Internal::Type::Enum
@@ -18,6 +19,7 @@ module Lithic
18
19
  ACH_CREDIT_RECEIPT: :ACH_CREDIT_RECEIPT
19
20
  ACH_DEBIT_RECEIPT: :ACH_DEBIT_RECEIPT
20
21
  CARD_TRANSACTION_UPDATE: :CARD_TRANSACTION_UPDATE
22
+ ACH_PAYMENT_UPDATE: :ACH_PAYMENT_UPDATE
21
23
 
22
24
  def self?.values: -> ::Array[Lithic::Models::AuthRules::event_stream]
23
25
  end
@@ -7,11 +7,16 @@ module Lithic
7
7
  | Lithic::AuthRules::RuleFeature::TokenizationFeature
8
8
  | Lithic::AuthRules::RuleFeature::ACHReceiptFeature
9
9
  | Lithic::AuthRules::RuleFeature::CardTransactionFeature
10
+ | Lithic::AuthRules::RuleFeature::ACHPaymentFeature
11
+ | Lithic::AuthRules::RuleFeature::ExternalBankAccountFeature
10
12
  | Lithic::AuthRules::RuleFeature::CardFeature
11
13
  | Lithic::AuthRules::RuleFeature::AccountHolderFeature
12
14
  | Lithic::AuthRules::RuleFeature::IPMetadataFeature
13
15
  | Lithic::AuthRules::RuleFeature::SpendVelocityFeature
16
+ | Lithic::AuthRules::RuleFeature::PaymentVelocityFeature
14
17
  | Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
18
+ | Lithic::AuthRules::RuleFeature::ConsecutiveDeclinesFeature
19
+ | Lithic::AuthRules::RuleFeature::ACHPaymentHistoryFeature
15
20
 
16
21
  module RuleFeature
17
22
  extend Lithic::Internal::Type::Union
@@ -87,6 +92,35 @@ module Lithic
87
92
  def to_hash: -> { type: :CARD_TRANSACTION, name: String }
88
93
  end
89
94
 
95
+ type ach_payment_feature = { type: :ACH_PAYMENT, name: String }
96
+
97
+ class ACHPaymentFeature < Lithic::Internal::Type::BaseModel
98
+ attr_accessor type: :ACH_PAYMENT
99
+
100
+ attr_reader name: String?
101
+
102
+ def name=: (String) -> String
103
+
104
+ def initialize: (?name: String, ?type: :ACH_PAYMENT) -> void
105
+
106
+ def to_hash: -> { type: :ACH_PAYMENT, name: String }
107
+ end
108
+
109
+ type external_bank_account_feature =
110
+ { type: :EXTERNAL_BANK_ACCOUNT, name: String }
111
+
112
+ class ExternalBankAccountFeature < Lithic::Internal::Type::BaseModel
113
+ attr_accessor type: :EXTERNAL_BANK_ACCOUNT
114
+
115
+ attr_reader name: String?
116
+
117
+ def name=: (String) -> String
118
+
119
+ def initialize: (?name: String, ?type: :EXTERNAL_BANK_ACCOUNT) -> void
120
+
121
+ def to_hash: -> { type: :EXTERNAL_BANK_ACCOUNT, name: String }
122
+ end
123
+
90
124
  type card_feature = { type: :CARD, name: String }
91
125
 
92
126
  class CardFeature < Lithic::Internal::Type::BaseModel
@@ -183,6 +217,160 @@ module Lithic
183
217
  end
184
218
  end
185
219
 
220
+ type payment_velocity_feature =
221
+ {
222
+ period: Lithic::Models::AuthRules::velocity_limit_period,
223
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
224
+ type: :PAYMENT_VELOCITY,
225
+ filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
226
+ name: String
227
+ }
228
+
229
+ class PaymentVelocityFeature < Lithic::Internal::Type::BaseModel
230
+ attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
231
+
232
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope
233
+
234
+ attr_accessor type: :PAYMENT_VELOCITY
235
+
236
+ attr_reader filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters?
237
+
238
+ def filters=: (
239
+ Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters
240
+ ) -> Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters
241
+
242
+ attr_reader name: String?
243
+
244
+ def name=: (String) -> String
245
+
246
+ def initialize: (
247
+ period: Lithic::Models::AuthRules::velocity_limit_period,
248
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
249
+ ?filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
250
+ ?name: String,
251
+ ?type: :PAYMENT_VELOCITY
252
+ ) -> void
253
+
254
+ def to_hash: -> {
255
+ period: Lithic::Models::AuthRules::velocity_limit_period,
256
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
257
+ type: :PAYMENT_VELOCITY,
258
+ filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
259
+ name: String
260
+ }
261
+
262
+ type scope = :FINANCIAL_ACCOUNT | :GLOBAL
263
+
264
+ module Scope
265
+ extend Lithic::Internal::Type::Enum
266
+
267
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
268
+ GLOBAL: :GLOBAL
269
+
270
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope]
271
+ end
272
+
273
+ type filters =
274
+ {
275
+ exclude_tags: ::Hash[Symbol, String]?,
276
+ include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
277
+ include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
278
+ include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
279
+ include_tags: ::Hash[Symbol, String]?,
280
+ result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
281
+ }
282
+
283
+ class Filters < Lithic::Internal::Type::BaseModel
284
+ attr_accessor exclude_tags: ::Hash[Symbol, String]?
285
+
286
+ attr_accessor include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?
287
+
288
+ attr_accessor include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?
289
+
290
+ attr_accessor include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?
291
+
292
+ attr_accessor include_tags: ::Hash[Symbol, String]?
293
+
294
+ attr_reader result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result?
295
+
296
+ def result=: (
297
+ Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
298
+ ) -> Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
299
+
300
+ def initialize: (
301
+ ?exclude_tags: ::Hash[Symbol, String]?,
302
+ ?include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
303
+ ?include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
304
+ ?include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
305
+ ?include_tags: ::Hash[Symbol, String]?,
306
+ ?result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
307
+ ) -> void
308
+
309
+ def to_hash: -> {
310
+ exclude_tags: ::Hash[Symbol, String]?,
311
+ include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
312
+ include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
313
+ include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
314
+ include_tags: ::Hash[Symbol, String]?,
315
+ result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
316
+ }
317
+
318
+ type include_payment_type = :ORIGINATION | :RECEIPT
319
+
320
+ module IncludePaymentType
321
+ extend Lithic::Internal::Type::Enum
322
+
323
+ ORIGINATION: :ORIGINATION
324
+ RECEIPT: :RECEIPT
325
+
326
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]
327
+ end
328
+
329
+ type include_polarity = :CREDIT | :DEBIT
330
+
331
+ module IncludePolarity
332
+ extend Lithic::Internal::Type::Enum
333
+
334
+ CREDIT: :CREDIT
335
+ DEBIT: :DEBIT
336
+
337
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]
338
+ end
339
+
340
+ type include_status =
341
+ :PENDING
342
+ | :SETTLED
343
+ | :DECLINED
344
+ | :REVERSED
345
+ | :CANCELED
346
+ | :RETURNED
347
+
348
+ module IncludeStatus
349
+ extend Lithic::Internal::Type::Enum
350
+
351
+ PENDING: :PENDING
352
+ SETTLED: :SETTLED
353
+ DECLINED: :DECLINED
354
+ REVERSED: :REVERSED
355
+ CANCELED: :CANCELED
356
+ RETURNED: :RETURNED
357
+
358
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]
359
+ end
360
+
361
+ type result = :APPROVED | :DECLINED
362
+
363
+ module Result
364
+ extend Lithic::Internal::Type::Enum
365
+
366
+ APPROVED: :APPROVED
367
+ DECLINED: :DECLINED
368
+
369
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result]
370
+ end
371
+ end
372
+ end
373
+
186
374
  type transaction_history_signals_feature =
187
375
  {
188
376
  scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
@@ -224,6 +412,85 @@ module Lithic
224
412
  end
225
413
  end
226
414
 
415
+ type consecutive_declines_feature =
416
+ {
417
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
418
+ type: :CONSECUTIVE_DECLINES,
419
+ name: String
420
+ }
421
+
422
+ class ConsecutiveDeclinesFeature < Lithic::Internal::Type::BaseModel
423
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope
424
+
425
+ attr_accessor type: :CONSECUTIVE_DECLINES
426
+
427
+ attr_reader name: String?
428
+
429
+ def name=: (String) -> String
430
+
431
+ def initialize: (
432
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
433
+ ?name: String,
434
+ ?type: :CONSECUTIVE_DECLINES
435
+ ) -> void
436
+
437
+ def to_hash: -> {
438
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
439
+ type: :CONSECUTIVE_DECLINES,
440
+ name: String
441
+ }
442
+
443
+ type scope = :CARD | :ACCOUNT
444
+
445
+ module Scope
446
+ extend Lithic::Internal::Type::Enum
447
+
448
+ CARD: :CARD
449
+ ACCOUNT: :ACCOUNT
450
+
451
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope]
452
+ end
453
+ end
454
+
455
+ type ach_payment_history_feature =
456
+ {
457
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
458
+ type: :ACH_PAYMENT_HISTORY,
459
+ name: String
460
+ }
461
+
462
+ class ACHPaymentHistoryFeature < Lithic::Internal::Type::BaseModel
463
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope
464
+
465
+ attr_accessor type: :ACH_PAYMENT_HISTORY
466
+
467
+ attr_reader name: String?
468
+
469
+ def name=: (String) -> String
470
+
471
+ def initialize: (
472
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
473
+ ?name: String,
474
+ ?type: :ACH_PAYMENT_HISTORY
475
+ ) -> void
476
+
477
+ def to_hash: -> {
478
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
479
+ type: :ACH_PAYMENT_HISTORY,
480
+ name: String
481
+ }
482
+
483
+ type scope = :FINANCIAL_ACCOUNT
484
+
485
+ module Scope
486
+ extend Lithic::Internal::Type::Enum
487
+
488
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
489
+
490
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope]
491
+ end
492
+ end
493
+
227
494
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::rule_feature]
228
495
  end
229
496
  end
@@ -87,6 +87,7 @@ module Lithic
87
87
  | Lithic::AuthRules::ConditionalACHActionParameters
88
88
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
89
89
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
90
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
90
91
  | Lithic::AuthRules::TypescriptCodeParameters
91
92
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
92
93
 
@@ -165,6 +166,7 @@ module Lithic
165
166
  | Lithic::AuthRules::ConditionalACHActionParameters
166
167
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
167
168
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
169
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
168
170
  | Lithic::AuthRules::TypescriptCodeParameters
169
171
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
170
172
 
@@ -266,6 +268,7 @@ module Lithic
266
268
  | Lithic::AuthRules::ConditionalACHActionParameters
267
269
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
268
270
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
271
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
269
272
  | Lithic::AuthRules::TypescriptCodeParameters
270
273
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
271
274
 
@@ -37,6 +37,7 @@ module Lithic
37
37
  | Lithic::AuthRules::ConditionalACHActionParameters
38
38
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
39
39
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
40
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
40
41
  | Lithic::AuthRules::TypescriptCodeParameters
41
42
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
42
43