lithic 0.12.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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -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 +9 -0
  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/spend_velocity_filters.rb +33 -0
  16. data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
  17. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  18. data/lib/lithic/models/card_create_params.rb +4 -2
  19. data/lib/lithic/models/card_renew_params.rb +4 -2
  20. data/lib/lithic/models/non_pci_card.rb +13 -13
  21. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
  22. data/lib/lithic/models/settlement_detail.rb +11 -4
  23. data/lib/lithic/models/settlement_summary_details.rb +1 -0
  24. data/lib/lithic/resources/accounts.rb +1 -1
  25. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  26. data/lib/lithic/version.rb +1 -1
  27. data/lib/lithic.rb +4 -1
  28. data/rbi/lithic/models/account.rbi +3 -6
  29. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -14
  30. data/rbi/lithic/models/account_holder_update_response.rbi +3 -3
  31. data/rbi/lithic/models/account_update_params.rbi +5 -8
  32. data/rbi/lithic/models/auth_rules/auth_rule.rbi +10 -3
  33. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  34. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +242 -0
  35. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +17 -0
  36. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +573 -0
  37. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  38. data/rbi/lithic/models/auth_rules/spend_velocity_filters.rbi +58 -0
  39. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +30 -9
  40. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  41. data/rbi/lithic/models/card_create_params.rbi +8 -4
  42. data/rbi/lithic/models/card_renew_params.rbi +8 -4
  43. data/rbi/lithic/models/non_pci_card.rbi +21 -31
  44. data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +5 -0
  45. data/rbi/lithic/models/settlement_detail.rbi +17 -4
  46. data/rbi/lithic/models/settlement_summary_details.rbi +2 -0
  47. data/rbi/lithic/resources/accounts.rbi +2 -1
  48. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  49. data/rbi/lithic/resources/cards.rbi +8 -4
  50. data/sig/lithic/models/account.rbs +4 -8
  51. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -8
  52. data/sig/lithic/models/account_update_params.rbs +4 -8
  53. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  54. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  55. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +100 -0
  56. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +2 -0
  57. data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +155 -0
  58. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  59. data/sig/lithic/models/auth_rules/spend_velocity_filters.rbs +35 -0
  60. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  61. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  62. data/sig/lithic/models/non_pci_card.rbs +20 -30
  63. data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +2 -1
  64. data/sig/lithic/models/settlement_detail.rbs +3 -1
  65. data/sig/lithic/models/settlement_summary_details.rbs +3 -1
  66. data/sig/lithic/resources/accounts.rbs +1 -1
  67. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0ee91f9eb716880267ff8f0ceec1c0c1a68c030864826cdd077802e802c7b07
4
- data.tar.gz: a43b4db3e1c7c2084c6bc79c8b6ab6f9776ce1402f3380e997e977ac6c15a6f2
3
+ metadata.gz: 55e88915ee36cb45b0dbc3d0f0e137d540c453057422cbe736b19c36e33a4715
4
+ data.tar.gz: d0f7269d109d93e082076899c1b0a76d2dba25a78033ac77ffdcc1794441c940
5
5
  SHA512:
6
- metadata.gz: 9bc92ae6b2aed386110d68ee7bc6f423fe5e8c34b16e923b97efeb004c5c1699bab929e41f0af80a7733d32e25d42fd19a09bb22323e2fe3801c10e21ce3da9d
7
- data.tar.gz: 7b4c1ecbb2902bc7ecb06e55f730f9db3e25536179e7042ef013de2fc126d8b413a0834f2878824cec583c065c50fc57e0f228a75dcade4f2d5130bf6b7e85b0
6
+ metadata.gz: 0c0a3fdff861422c1746f03a32a7fe070bd02c6eb58c7388cf85c4a47938a3cd84458380047dd8ad577507509a42ce22eaa2abe57ad0cc0cdda948d3d104518a
7
+ data.tar.gz: d9e925524aac256ed4d04920fc9d0a04731d2ca1ef58e921c28ac8775f84308f43f679d90edf262a7566ea73eac274daa7b82eb82a21af8e8f568bcd5ecc7a20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
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
+
3
31
  ## 0.12.0 (2026-04-20)
4
32
 
5
33
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/lithic-com/lithic-ruby/compare/v0.11.0...v0.12.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.12.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
@@ -132,6 +132,10 @@ module Lithic
132
132
  # transaction for the entity. Requires `parameters.scope`.
133
133
  # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
134
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.
135
139
  # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
136
140
  # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
137
141
  #
@@ -271,6 +275,10 @@ module Lithic
271
275
  # transaction for the entity. Requires `parameters.scope`.
272
276
  # - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
273
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.
274
282
  # - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
275
283
  # a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
276
284
  #
@@ -313,6 +321,7 @@ module Lithic
313
321
  CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
314
322
  TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
315
323
  DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
324
+ IS_NEW_MERCHANT = :IS_NEW_MERCHANT
316
325
  THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
317
326
 
318
327
  # @!method self.values