lithic 0.11.0 → 0.13.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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +15 -1
  5. data/lib/lithic/models/account.rb +2 -2
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +5 -4
  7. data/lib/lithic/models/account_holder_update_response.rb +3 -3
  8. data/lib/lithic/models/account_update_params.rb +2 -2
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +14 -8
  10. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  11. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +109 -0
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +152 -1
  13. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +244 -0
  14. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  15. data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
  16. data/lib/lithic/models/auth_rules/spend_velocity_filters.rb +33 -0
  17. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  18. data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
  19. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  20. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
  21. data/lib/lithic/models/card_create_params.rb +4 -2
  22. data/lib/lithic/models/card_renew_params.rb +4 -2
  23. data/lib/lithic/models/event.rb +5 -0
  24. data/lib/lithic/models/event_list_params.rb +3 -0
  25. data/lib/lithic/models/event_subscription.rb +3 -0
  26. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  28. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  29. data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
  30. data/lib/lithic/models/non_pci_card.rb +13 -13
  31. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  32. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
  33. data/lib/lithic/models/settlement_detail.rb +11 -4
  34. data/lib/lithic/models/settlement_summary_details.rb +1 -0
  35. data/lib/lithic/models.rb +6 -0
  36. data/lib/lithic/resources/accounts.rb +1 -1
  37. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  38. data/lib/lithic/resources/external_bank_accounts.rb +31 -0
  39. data/lib/lithic/resources/webhooks.rb +1 -1
  40. data/lib/lithic/version.rb +1 -1
  41. data/lib/lithic.rb +6 -1
  42. data/rbi/lithic/models/account.rbi +3 -6
  43. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -14
  44. data/rbi/lithic/models/account_holder_update_response.rbi +3 -3
  45. data/rbi/lithic/models/account_update_params.rbi +5 -8
  46. data/rbi/lithic/models/auth_rules/auth_rule.rbi +10 -3
  47. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  48. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +242 -0
  49. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +354 -3
  50. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +573 -0
  51. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  52. data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
  53. data/rbi/lithic/models/auth_rules/spend_velocity_filters.rbi +58 -0
  54. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
  55. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +30 -9
  56. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  57. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
  58. data/rbi/lithic/models/card_create_params.rbi +8 -4
  59. data/rbi/lithic/models/card_renew_params.rbi +8 -4
  60. data/rbi/lithic/models/event.rbi +11 -0
  61. data/rbi/lithic/models/event_list_params.rbi +7 -0
  62. data/rbi/lithic/models/event_subscription.rbi +7 -0
  63. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  64. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  65. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  66. data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
  67. data/rbi/lithic/models/non_pci_card.rbi +21 -31
  68. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  69. data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +5 -0
  70. data/rbi/lithic/models/settlement_detail.rbi +17 -4
  71. data/rbi/lithic/models/settlement_summary_details.rbi +2 -0
  72. data/rbi/lithic/models.rbi +6 -0
  73. data/rbi/lithic/resources/accounts.rbi +2 -1
  74. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  75. data/rbi/lithic/resources/cards.rbi +8 -4
  76. data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
  77. data/rbi/lithic/resources/webhooks.rbi +1 -0
  78. data/sig/lithic/models/account.rbs +4 -8
  79. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -8
  80. data/sig/lithic/models/account_update_params.rbs +4 -8
  81. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  82. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  83. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +100 -0
  84. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +89 -3
  85. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +155 -0
  86. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  87. data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
  88. data/sig/lithic/models/auth_rules/spend_velocity_filters.rbs +35 -0
  89. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  90. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  91. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
  92. data/sig/lithic/models/event.rbs +2 -0
  93. data/sig/lithic/models/event_list_params.rbs +2 -0
  94. data/sig/lithic/models/event_subscription.rbs +2 -0
  95. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  96. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  97. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  98. data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
  99. data/sig/lithic/models/non_pci_card.rbs +20 -30
  100. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  101. data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +2 -1
  102. data/sig/lithic/models/settlement_detail.rbs +3 -1
  103. data/sig/lithic/models/settlement_summary_details.rbs +3 -1
  104. data/sig/lithic/models.rbs +4 -0
  105. data/sig/lithic/resources/accounts.rbs +1 -1
  106. data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
  107. data/sig/lithic/resources/webhooks.rbs +1 -0
  108. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 553b9c0f364c3ceda24f43c9070054640c640d3a64098de3b0ba14482cd5e3fa
4
- data.tar.gz: 60d02df14fc6c2b57f8cbe950626641d8d97615c4739834e2ed0e6568e9a2160
3
+ metadata.gz: 55e88915ee36cb45b0dbc3d0f0e137d540c453057422cbe736b19c36e33a4715
4
+ data.tar.gz: d0f7269d109d93e082076899c1b0a76d2dba25a78033ac77ffdcc1794441c940
5
5
  SHA512:
6
- metadata.gz: 49da4437a7eb8c6e4641e0317172d04d04894bf7d105ab6cfa09b9c841f87889610a5a70788477cf6395721fa377b621b451590428db5cb63ebcb21373535cf2
7
- data.tar.gz: d727b8abf57c1facda792f2c410f64b1fbe055541c44c7d8002027e103704e1165042e185a1b01a1af55cda82ccbfaa16e3af844fea082ec9aed4001d4d24cf7
6
+ metadata.gz: 0c0a3fdff861422c1746f03a32a7fe070bd02c6eb58c7388cf85c4a47938a3cd84458380047dd8ad577507509a42ce22eaa2abe57ad0cc0cdda948d3d104518a
7
+ data.tar.gz: d9e925524aac256ed4d04920fc9d0a04731d2ca1ef58e921c28ac8775f84308f43f679d90edf262a7566ea73eac274daa7b82eb82a21af8e8f568bcd5ecc7a20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-05-06)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/lithic-com/lithic-ruby/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add AMEX network value to settlement models ([a209f16](https://github.com/lithic-com/lithic-ruby/commit/a209f16480d3a19ba50c00ea1c5b8c6b3950129e))
10
+ * **api:** add CARD_TRANSACTION_UPDATE event stream to auth_rules ([7f395eb](https://github.com/lithic-com/lithic-ruby/commit/7f395eb5b666d1d5563705da6ebe8dd7d8d98787))
11
+ * **api:** add IS_NEW_MERCHANT attribute to auth rules conditional authorization ([48b6bd5](https://github.com/lithic-com/lithic-ruby/commit/48b6bd5a7a5076b8e59b6b6f30730c4d1c706a0b))
12
+ * support setting headers via env ([01b4c63](https://github.com/lithic-com/lithic-ruby/commit/01b4c634e91f47513e26619946ab010f5f1decec))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **api:** Allow null values for optional enum and object fields in schema validation ([9ebb823](https://github.com/lithic-com/lithic-ruby/commit/9ebb8239e22dc3f680560918ac628af6707a3114))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **internal:** codegen related update ([7da8cdf](https://github.com/lithic-com/lithic-ruby/commit/7da8cdf24a46edc1a7cdd8764275542590c729a7))
23
+ * **internal:** more robust bootstrap script ([b03a0eb](https://github.com/lithic-com/lithic-ruby/commit/b03a0eb40e63ea3c40ffe90eaa30796a7722feac))
24
+
25
+
26
+ ### Documentation
27
+
28
+ * **api:** update exp_month/exp_year descriptions in card create/renew params ([02db7be](https://github.com/lithic-com/lithic-ruby/commit/02db7be84225c5782bdcf2de90c55890bd2b0358))
29
+ * **types:** clarify event_tokens and transaction_token fields in SettlementDetail ([5eacf6f](https://github.com/lithic-com/lithic-ruby/commit/5eacf6f69073956549ff4d3e2141d56650dd0ba7))
30
+
31
+ ## 0.12.0 (2026-04-20)
32
+
33
+ Full Changelog: [v0.11.0...v0.12.0](https://github.com/lithic-com/lithic-ruby/compare/v0.11.0...v0.12.0)
34
+
35
+ ### Features
36
+
37
+ * **api:** Add card_authorization.challenge_response webhook ([8abc734](https://github.com/lithic-com/lithic-ruby/commit/8abc7348e6ed248c532058d68388fc357e54f65f))
38
+ * **api:** Add card/account/business account signals endpoints and behavioral rule attributes ([76de3de](https://github.com/lithic-com/lithic-ruby/commit/76de3de7a510e54712be632789e90457b7486f3d))
39
+ * **api:** add set_verification_method to external_bank_accounts ([3878cb3](https://github.com/lithic-com/lithic-ruby/commit/3878cb30db9f591d2070bed948cc40da07dd3f0e))
40
+
3
41
  ## 0.11.0 (2026-04-13)
4
42
 
5
43
  Full Changelog: [v0.10.0...v0.11.0](https://github.com/lithic-com/lithic-ruby/compare/v0.10.0...v0.11.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "lithic", "~> 0.11.0"
27
+ gem "lithic", "~> 0.13.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
data/lib/lithic/client.rb CHANGED
@@ -190,6 +190,19 @@ module Lithic
190
190
  raise ArgumentError.new("api_key is required, and can be set via environ: \"LITHIC_API_KEY\"")
191
191
  end
192
192
 
193
+ headers = {}
194
+ custom_headers_env = ENV["LITHIC_CUSTOM_HEADERS"]
195
+ unless custom_headers_env.nil?
196
+ parsed = {}
197
+ custom_headers_env.split("\n").each do |line|
198
+ colon = line.index(":")
199
+ unless colon.nil?
200
+ parsed[line[0...colon].strip] = line[(colon + 1)..].strip
201
+ end
202
+ end
203
+ headers = parsed.merge(headers)
204
+ end
205
+
193
206
  @api_key = api_key.to_s
194
207
  @webhook_secret = webhook_secret&.to_s
195
208
 
@@ -198,7 +211,8 @@ module Lithic
198
211
  timeout: timeout,
199
212
  max_retries: max_retries,
200
213
  initial_retry_delay: initial_retry_delay,
201
- max_retry_delay: max_retry_delay
214
+ max_retry_delay: max_retry_delay,
215
+ headers: headers
202
216
  )
203
217
 
204
218
  @accounts = Lithic::Resources::Accounts.new(client: self)
@@ -102,7 +102,7 @@ module Lithic
102
102
  # particular reason.
103
103
  #
104
104
  # @return [Symbol, Lithic::Models::Account::Substatus, nil]
105
- optional :substatus, enum: -> { Lithic::Account::Substatus }
105
+ optional :substatus, enum: -> { Lithic::Account::Substatus }, nil?: true
106
106
 
107
107
  # @!attribute verification_address
108
108
  # @deprecated
@@ -130,7 +130,7 @@ module Lithic
130
130
  #
131
131
  # @param comment [String] Additional context or information related to the account.
132
132
  #
133
- # @param substatus [Symbol, Lithic::Models::Account::Substatus] Account state substatus values:
133
+ # @param substatus [Symbol, Lithic::Models::Account::Substatus, nil] Account state substatus values:
134
134
  #
135
135
  # @param verification_address [Lithic::Models::Account::VerificationAddress]
136
136
 
@@ -75,12 +75,13 @@ module Lithic
75
75
  optional :email, String
76
76
 
77
77
  # @!attribute exemption_type
78
- # The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
78
+ # The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
79
79
  # holder is not KYC-Exempt.
80
80
  #
81
81
  # @return [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType, nil]
82
82
  optional :exemption_type,
83
- enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType }
83
+ enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType },
84
+ nil?: true
84
85
 
85
86
  # @!attribute external_id
86
87
  # Customer-provided token that indicates a relationship with an object outside of
@@ -188,7 +189,7 @@ module Lithic
188
189
  #
189
190
  # @param email [String] (Deprecated. Use control_person.email when user_type == "BUSINESS".
190
191
  #
191
- # @param exemption_type [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType] The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
192
+ # @param exemption_type [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType, nil] The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
192
193
  #
193
194
  # @param external_id [String] Customer-provided token that indicates a relationship with an object outside of
194
195
  #
@@ -465,7 +466,7 @@ module Lithic
465
466
  end
466
467
  end
467
468
 
468
- # The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
469
+ # The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
469
470
  # holder is not KYC-Exempt.
470
471
  #
471
472
  # @see Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse#exemption_type
@@ -82,7 +82,7 @@ module Lithic
82
82
  optional :email, String
83
83
 
84
84
  # @!attribute exemption_type
85
- # The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
85
+ # The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
86
86
  # holder is not KYC-Exempt.
87
87
  #
88
88
  # @return [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ExemptionType, nil]
@@ -196,7 +196,7 @@ module Lithic
196
196
  #
197
197
  # @param email [String] (Deprecated. Use control_person.email when user_type == "BUSINESS".
198
198
  #
199
- # @param exemption_type [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ExemptionType] The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
199
+ # @param exemption_type [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ExemptionType] The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
200
200
  #
201
201
  # @param external_id [String] Customer-provided token that indicates a relationship with an object outside of
202
202
  #
@@ -473,7 +473,7 @@ module Lithic
473
473
  end
474
474
  end
475
475
 
476
- # The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
476
+ # The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
477
477
  # holder is not KYC-Exempt.
478
478
  #
479
479
  # @see Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse#exemption_type
@@ -80,7 +80,7 @@ module Lithic
80
80
  # particular reason.
81
81
  #
82
82
  # @return [Symbol, Lithic::Models::AccountUpdateParams::Substatus, nil]
83
- optional :substatus, enum: -> { Lithic::AccountUpdateParams::Substatus }
83
+ optional :substatus, enum: -> { Lithic::AccountUpdateParams::Substatus }, nil?: true
84
84
 
85
85
  # @!attribute verification_address
86
86
  # @deprecated
@@ -109,7 +109,7 @@ module Lithic
109
109
  #
110
110
  # @param state [Symbol, Lithic::Models::AccountUpdateParams::State] Account states.
111
111
  #
112
- # @param substatus [Symbol, Lithic::Models::AccountUpdateParams::Substatus] Account state substatus values:
112
+ # @param substatus [Symbol, Lithic::Models::AccountUpdateParams::Substatus, nil] Account state substatus values:
113
113
  #
114
114
  # @param verification_address [Lithic::Models::AccountUpdateParams::VerificationAddress] Address used during Address Verification Service (AVS) checks during transaction
115
115
  #
@@ -81,7 +81,8 @@ module Lithic
81
81
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
82
82
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
83
83
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
84
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
84
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
85
+ # stream.
85
86
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
86
87
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
87
88
  #
@@ -145,7 +146,7 @@ module Lithic
145
146
  # @!attribute parameters
146
147
  # Parameters for the Auth Rule
147
148
  #
148
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
149
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
149
150
  required :parameters, union: -> { Lithic::AuthRules::AuthRule::CurrentVersion::Parameters }
150
151
 
151
152
  response_only do
@@ -161,7 +162,7 @@ module Lithic
161
162
  # Some parameter documentations has been truncated, see
162
163
  # {Lithic::Models::AuthRules::AuthRule::CurrentVersion} for more details.
163
164
  #
164
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
165
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
165
166
  #
166
167
  # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
167
168
 
@@ -186,11 +187,13 @@ module Lithic
186
187
 
187
188
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
188
189
 
190
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
191
+
189
192
  # Parameters for defining a TypeScript code rule
190
193
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
191
194
 
192
195
  # @!method self.variants
193
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
196
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
194
197
  end
195
198
  end
196
199
 
@@ -206,7 +209,7 @@ module Lithic
206
209
  # @!attribute parameters
207
210
  # Parameters for the Auth Rule
208
211
  #
209
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
212
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
210
213
  required :parameters, union: -> { Lithic::AuthRules::AuthRule::DraftVersion::Parameters }
211
214
 
212
215
  # @!attribute state
@@ -239,7 +242,7 @@ module Lithic
239
242
  #
240
243
  # @param error [String, nil] An error message if the draft version failed compilation. Populated when `state`
241
244
  #
242
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
245
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
243
246
  #
244
247
  # @param state [Symbol, Lithic::Models::AuthRules::AuthRule::DraftVersion::State] The state of the draft version. Most rules are created synchronously and the sta
245
248
  #
@@ -266,11 +269,13 @@ module Lithic
266
269
 
267
270
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
268
271
 
272
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
273
+
269
274
  # Parameters for defining a TypeScript code rule
270
275
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
271
276
 
272
277
  # @!method self.variants
273
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
278
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
274
279
  end
275
280
 
276
281
  # The state of the draft version. Most rules are created synchronously and the
@@ -320,7 +325,8 @@ module Lithic
320
325
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
321
326
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
322
327
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
323
- # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
328
+ # ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, or CARD_TRANSACTION_UPDATE event
329
+ # stream.
324
330
  # - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
325
331
  # ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
326
332
  #
@@ -13,7 +13,7 @@ module Lithic
13
13
  # @!attribute parameters
14
14
  # Parameters for the Auth Rule
15
15
  #
16
- # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
16
+ # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
17
17
  required :parameters, union: -> { Lithic::AuthRules::AuthRuleVersion::Parameters }
18
18
 
19
19
  # @!attribute state
@@ -37,7 +37,7 @@ module Lithic
37
37
  #
38
38
  # @param created [Time] Timestamp of when this version was created.
39
39
  #
40
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
40
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
41
41
  #
42
42
  # @param state [Symbol, Lithic::Models::AuthRules::AuthRuleVersion::State] The current state of this version.
43
43
  #
@@ -64,11 +64,13 @@ module Lithic
64
64
 
65
65
  variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
66
66
 
67
+ variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
68
+
67
69
  # Parameters for defining a TypeScript code rule
68
70
  variant -> { Lithic::AuthRules::TypescriptCodeParameters }
69
71
 
70
72
  # @!method self.variants
71
- # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
73
+ # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
72
74
  end
73
75
 
74
76
  # The current state of this version.
@@ -0,0 +1,109 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ module CardTransactionUpdateAction
7
+ extend Lithic::Internal::Type::Union
8
+
9
+ variant -> { Lithic::AuthRules::CardTransactionUpdateAction::TagAction }
10
+
11
+ variant -> { Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction }
12
+
13
+ class TagAction < Lithic::Internal::Type::BaseModel
14
+ # @!attribute key
15
+ # The key of the tag to apply to the transaction
16
+ #
17
+ # @return [String]
18
+ required :key, String
19
+
20
+ # @!attribute type
21
+ # Tag the transaction with key-value metadata
22
+ #
23
+ # @return [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::Type]
24
+ required :type, enum: -> { Lithic::AuthRules::CardTransactionUpdateAction::TagAction::Type }
25
+
26
+ # @!attribute value
27
+ # The value of the tag to apply to the transaction
28
+ #
29
+ # @return [String]
30
+ required :value, String
31
+
32
+ # @!method initialize(key:, type:, value:)
33
+ # @param key [String] The key of the tag to apply to the transaction
34
+ #
35
+ # @param type [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::Type] Tag the transaction with key-value metadata
36
+ #
37
+ # @param value [String] The value of the tag to apply to the transaction
38
+
39
+ # Tag the transaction with key-value metadata
40
+ #
41
+ # @see Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction#type
42
+ module Type
43
+ extend Lithic::Internal::Type::Enum
44
+
45
+ TAG = :TAG
46
+
47
+ # @!method self.values
48
+ # @return [Array<Symbol>]
49
+ end
50
+ end
51
+
52
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
53
+ # @!attribute queue_token
54
+ # The token of the queue to create the case in
55
+ #
56
+ # @return [String]
57
+ required :queue_token, String
58
+
59
+ # @!attribute scope
60
+ # The scope of the case to create
61
+ #
62
+ # @return [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Scope]
63
+ required :scope, enum: -> { Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Scope }
64
+
65
+ # @!attribute type
66
+ # Create a case for the transaction
67
+ #
68
+ # @return [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Type]
69
+ required :type, enum: -> { Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Type }
70
+
71
+ # @!method initialize(queue_token:, scope:, type:)
72
+ # @param queue_token [String] The token of the queue to create the case in
73
+ #
74
+ # @param scope [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Scope] The scope of the case to create
75
+ #
76
+ # @param type [Symbol, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::Type] Create a case for the transaction
77
+
78
+ # The scope of the case to create
79
+ #
80
+ # @see Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction#scope
81
+ module Scope
82
+ extend Lithic::Internal::Type::Enum
83
+
84
+ CARD = :CARD
85
+ ACCOUNT = :ACCOUNT
86
+
87
+ # @!method self.values
88
+ # @return [Array<Symbol>]
89
+ end
90
+
91
+ # Create a case for the transaction
92
+ #
93
+ # @see Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction#type
94
+ module Type
95
+ extend Lithic::Internal::Type::Enum
96
+
97
+ CREATE_CASE = :CREATE_CASE
98
+
99
+ # @!method self.values
100
+ # @return [Array<Symbol>]
101
+ end
102
+ end
103
+
104
+ # @!method self.variants
105
+ # @return [Array(Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction, Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction)]
106
+ end
107
+ end
108
+ end
109
+ end
@@ -107,6 +107,37 @@ module Lithic
107
107
  # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
108
108
  # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
109
109
  # of the authorization.
110
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
111
+ # entity's transaction history. Null if fewer than 30 approved transactions in
112
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
113
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
114
+ # entity over the specified window, in cents. Requires `parameters.scope` and
115
+ # `parameters.interval`.
116
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
117
+ # amounts for the entity over the specified window, in cents. Null if fewer than
118
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
119
+ # and `parameters.interval`.
120
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
121
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
122
+ # Requires `parameters.scope`.
123
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
124
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
125
+ # `parameters.scope`.
126
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
127
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
128
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
129
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
130
+ # supported for `BUSINESS_ACCOUNT` scope.
131
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
132
+ # transaction for the entity. Requires `parameters.scope`.
133
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
134
+ # the entity's transaction history. Requires `parameters.scope`.
135
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
136
+ # card's approved transaction history (capped at the 1000 most recently seen
137
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
138
+ # `parameters` required.
139
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
140
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
110
141
  #
111
142
  # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
112
143
  required :attribute,
@@ -124,7 +155,18 @@ module Lithic
124
155
  # @return [String, Integer, Array<String>, Time]
125
156
  required :value, union: -> { Lithic::AuthRules::ConditionalValue }
126
157
 
127
- # @!method initialize(attribute:, operation:, value:)
158
+ # @!attribute parameters
159
+ # Additional parameters required for transaction history signal attributes.
160
+ # Required when `attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
161
+ # `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
162
+ # `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
163
+ # or `DISTINCT_COUNTRY_COUNT`. Not used for other attributes.
164
+ #
165
+ # @return [Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters, nil]
166
+ optional :parameters,
167
+ -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters }
168
+
169
+ # @!method initialize(attribute:, operation:, value:, parameters: nil)
128
170
  # Some parameter documentations has been truncated, see
129
171
  # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition}
130
172
  # for more details.
@@ -134,6 +176,8 @@ module Lithic
134
176
  # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
135
177
  #
136
178
  # @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
179
+ #
180
+ # @param parameters [Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters] Additional parameters required for transaction history signal attributes. Requir
137
181
 
138
182
  # The attribute to target.
139
183
  #
@@ -206,6 +250,37 @@ module Lithic
206
250
  # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
207
251
  # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
208
252
  # of the authorization.
253
+ # - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
254
+ # entity's transaction history. Null if fewer than 30 approved transactions in
255
+ # the specified window. Requires `parameters.scope` and `parameters.interval`.
256
+ # - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
257
+ # entity over the specified window, in cents. Requires `parameters.scope` and
258
+ # `parameters.interval`.
259
+ # - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
260
+ # amounts for the entity over the specified window, in cents. Null if fewer than
261
+ # 30 approved transactions in the specified window. Requires `parameters.scope`
262
+ # and `parameters.interval`.
263
+ # - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
264
+ # in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
265
+ # Requires `parameters.scope`.
266
+ # - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
267
+ # transaction history. Valid values are `TRUE`, `FALSE`. Requires
268
+ # `parameters.scope`.
269
+ # - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
270
+ # Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
271
+ # - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
272
+ # the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
273
+ # supported for `BUSINESS_ACCOUNT` scope.
274
+ # - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
275
+ # transaction for the entity. Requires `parameters.scope`.
276
+ # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
277
+ # the entity's transaction history. Requires `parameters.scope`.
278
+ # - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
279
+ # card's approved transaction history (capped at the 1000 most recently seen
280
+ # merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
281
+ # `parameters` required.
282
+ # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
283
+ # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
209
284
  #
210
285
  # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute
211
286
  module Attribute
@@ -237,10 +312,86 @@ module Lithic
237
312
  SERVICE_LOCATION_POSTAL_CODE = :SERVICE_LOCATION_POSTAL_CODE
238
313
  CARD_AGE = :CARD_AGE
239
314
  ACCOUNT_AGE = :ACCOUNT_AGE
315
+ AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
316
+ AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
317
+ STDEV_TRANSACTION_AMOUNT = :STDEV_TRANSACTION_AMOUNT
318
+ IS_NEW_COUNTRY = :IS_NEW_COUNTRY
319
+ IS_NEW_MCC = :IS_NEW_MCC
320
+ IS_FIRST_TRANSACTION = :IS_FIRST_TRANSACTION
321
+ CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
322
+ TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
323
+ DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
324
+ IS_NEW_MERCHANT = :IS_NEW_MERCHANT
325
+ THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
240
326
 
241
327
  # @!method self.values
242
328
  # @return [Array<Symbol>]
243
329
  end
330
+
331
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#parameters
332
+ class Parameters < Lithic::Internal::Type::BaseModel
333
+ # @!attribute interval
334
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
335
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
336
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
337
+ #
338
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval, nil]
339
+ optional :interval,
340
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval }
341
+
342
+ # @!attribute scope
343
+ # The entity scope to evaluate the attribute against.
344
+ #
345
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope, nil]
346
+ optional :scope,
347
+ enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope }
348
+
349
+ # @!method initialize(interval: nil, scope: nil)
350
+ # Some parameter documentations has been truncated, see
351
+ # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters}
352
+ # for more details.
353
+ #
354
+ # Additional parameters required for transaction history signal attributes.
355
+ # Required when `attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
356
+ # `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
357
+ # `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
358
+ # or `DISTINCT_COUNTRY_COUNT`. Not used for other attributes.
359
+ #
360
+ # @param interval [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval] The time window for statistical attributes (`AMOUNT_Z_SCORE`, `AVG_TRANSACTION_A
361
+ #
362
+ # @param scope [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
363
+
364
+ # The time window for statistical attributes (`AMOUNT_Z_SCORE`,
365
+ # `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
366
+ # all-time history or a specific window (`7D`, `30D`, `90D`).
367
+ #
368
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters#interval
369
+ module Interval
370
+ extend Lithic::Internal::Type::Enum
371
+
372
+ LIFETIME = :LIFETIME
373
+ INTERVAL_7_D = :"7D"
374
+ INTERVAL_30_D = :"30D"
375
+ INTERVAL_90_D = :"90D"
376
+
377
+ # @!method self.values
378
+ # @return [Array<Symbol>]
379
+ end
380
+
381
+ # The entity scope to evaluate the attribute against.
382
+ #
383
+ # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters#scope
384
+ module Scope
385
+ extend Lithic::Internal::Type::Enum
386
+
387
+ CARD = :CARD
388
+ ACCOUNT = :ACCOUNT
389
+ BUSINESS_ACCOUNT = :BUSINESS_ACCOUNT
390
+
391
+ # @!method self.values
392
+ # @return [Array<Symbol>]
393
+ end
394
+ end
244
395
  end
245
396
  end
246
397
  end