lithic 0.8.0 → 0.10.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_holder_create_params.rb +54 -52
  5. data/lib/lithic/models/account_holder_update_params.rb +2 -1
  6. data/lib/lithic/models/account_holder_updated_webhook_event.rb +2 -1
  7. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +26 -0
  8. data/lib/lithic/models/auth_rules/rule_feature.rb +1 -1
  9. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +95 -4
  10. data/lib/lithic/models/carrier.rb +7 -2
  11. data/lib/lithic/models/kyb.rb +2 -1
  12. data/lib/lithic/models/parsed_webhook_event.rb +2 -1
  13. data/lib/lithic/models/payment.rb +23 -2
  14. data/lib/lithic/models/transaction.rb +93 -4
  15. data/lib/lithic/resources/account_holders.rb +2 -2
  16. data/lib/lithic/version.rb +1 -1
  17. data/lib/lithic.rb +1 -1
  18. data/rbi/lithic/models/account_holder_create_params.rbi +74 -53
  19. data/rbi/lithic/models/account_holder_update_params.rbi +4 -2
  20. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +4 -2
  21. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +53 -0
  22. data/rbi/lithic/models/auth_rules/rule_feature.rbi +1 -1
  23. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +171 -4
  24. data/rbi/lithic/models/carrier.rbi +6 -2
  25. data/rbi/lithic/models/kyb.rbi +4 -2
  26. data/rbi/lithic/models/parsed_webhook_event.rbi +4 -2
  27. data/rbi/lithic/models/payment.rbi +21 -3
  28. data/rbi/lithic/models/transaction.rbi +146 -4
  29. data/rbi/lithic/resources/account_holders.rbi +2 -2
  30. data/sig/lithic/models/account_holder_create_params.rbs +44 -28
  31. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +8 -0
  32. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +75 -4
  33. data/sig/lithic/models/payment.rbs +13 -3
  34. data/sig/lithic/models/transaction.rbs +75 -4
  35. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67af32ffcf50a40837eca3e3fe0eeb991c5c9cd5d61ddd545d5476157870fd32
4
- data.tar.gz: dbae341ad40f2b8e70fbe6dae7ec8cb50ed4a6d7948a32f280cc5c848a79463c
3
+ metadata.gz: 11e88e82fcc0153f5cdb72e8c89059d80322983cad5a04f21f7ee8cb58652a86
4
+ data.tar.gz: 326182c35442ef57d523b917d1f561302916593e64d9be3e72c4d8c47607ffd5
5
5
  SHA512:
6
- metadata.gz: 76b19130e933adb9b63f78e25c80767906846288ac5db76273cf23a1afa1f0dd4eac650b0365acab561fa9a82cf83b71ebfe7505e349323cbe571e00ab080313
7
- data.tar.gz: 2b7f407c0b9e9bbfe3ba928ed86ea046dd48766f1fdb6c8102a565c55af10e4b164e7a50de9d43401f810a5efb450f486001c76c638cb055b62615bf0477e620
6
+ metadata.gz: da808cf2213f4fb880952816609649f93de70b6b4c544820d0bc3a86c93644f63bafb3a78debe42c0ba3c42bc5c9b62fdef755353f79234f6081990c72be9478
7
+ data.tar.gz: 29c1e2e9d8dbecf4f4fe2d20942afc6b625935627fe15deffc3b49ab03722f07aadd0eacf5c2146920feb50d6c6ab57f5e18544517dc6ca076c536fbbf890c13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0 (2026-03-23)
4
+
5
+ Full Changelog: [v0.9.0...v0.10.0](https://github.com/lithic-com/lithic-ruby/compare/v0.9.0...v0.10.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add CARD_AGE and ACCOUNT_AGE attributes to authorization rules ([b5bc545](https://github.com/lithic-com/lithic-ruby/commit/b5bc54552df7e04862780f15b0dc96d2732ad038))
10
+ * **api:** add override_company_name parameter to external payment create ([73612ab](https://github.com/lithic-com/lithic-ruby/commit/73612ab7a4e46f5572f7d12839acddb7beeb4b75))
11
+ * **api:** Add service and merchant location fields ([d0111e3](https://github.com/lithic-com/lithic-ruby/commit/d0111e33b4f6ca04b75f07440f3fc11e0406bbcd))
12
+
13
+
14
+ ### Chores
15
+
16
+ * **internal:** replace steady mock server with prism ([180a5d5](https://github.com/lithic-com/lithic-ruby/commit/180a5d5b2986fd1c32ea81bb3b036eb609c35e9a))
17
+ * **internal:** update gitignore ([eac11a4](https://github.com/lithic-com/lithic-ruby/commit/eac11a49332ba63990479fb14e171fcb09edab93))
18
+ * **tests:** bump steady to v0.19.4 ([ecee69a](https://github.com/lithic-com/lithic-ruby/commit/ecee69aa012a80f970784d78a9298db6155dd991))
19
+ * **tests:** bump steady to v0.19.5 ([8a046d1](https://github.com/lithic-com/lithic-ruby/commit/8a046d1ed8d6b7409244efb552809b28937ebed8))
20
+ * **tests:** bump steady to v0.19.6 ([5b45679](https://github.com/lithic-com/lithic-ruby/commit/5b45679d7f42fb122e2c7254a8568189cc8ae2c7))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * Update field descriptions for character limits and allowlist requirements ([e999dc1](https://github.com/lithic-com/lithic-ruby/commit/e999dc1091255c9688545bb50e39ec62fcdad9fc))
26
+
27
+
28
+ ### Refactors
29
+
30
+ * **tests:** switch from prism to steady ([74cea9d](https://github.com/lithic-com/lithic-ruby/commit/74cea9d46211777e8e1de61ef24f52b0412564cd))
31
+
32
+ ## 0.9.0 (2026-03-17)
33
+
34
+ Full Changelog: [v0.8.0...v0.9.0](https://github.com/lithic-com/lithic-ruby/compare/v0.8.0...v0.9.0)
35
+
36
+ ### Features
37
+
38
+ * **api:** add remittance_information field to payment wire method attributes ([100269f](https://github.com/lithic-com/lithic-ruby/commit/100269f1b5978d70bb1349ec194ecb960ded5e10))
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * **types:** make first_name/last_name required in account holder beneficial owner/control person ([8925468](https://github.com/lithic-com/lithic-ruby/commit/892546852aadf3b3442879869f7b0c2059bcbb4c))
44
+
45
+
46
+ ### Chores
47
+
48
+ * **internal:** tweak CI branches ([6cd6af9](https://github.com/lithic-com/lithic-ruby/commit/6cd6af964276e2a5d921dc2efcb1e30aab3c1212))
49
+
50
+
51
+ ### Documentation
52
+
53
+ * **api:** add pdf to supported file types in account_holders ([cc89c60](https://github.com/lithic-com/lithic-ruby/commit/cc89c60c821f98d9ed8602acf255e627a5d663af))
54
+
3
55
  ## 0.8.0 (2026-03-16)
4
56
 
5
57
  Full Changelog: [v0.7.0...v0.8.0](https://github.com/lithic-com/lithic-ruby/compare/v0.7.0...v0.8.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.8.0"
27
+ gem "lithic", "~> 0.10.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -75,7 +75,8 @@ module Lithic
75
75
 
76
76
  # @!attribute nature_of_business
77
77
  # Short description of the company's line of business (i.e., what does the company
78
- # do?).
78
+ # do?). Values longer than 255 characters will be truncated before KYB
79
+ # verification
79
80
  #
80
81
  # @return [String, nil]
81
82
  optional :nature_of_business, String
@@ -187,31 +188,37 @@ module Lithic
187
188
  end
188
189
 
189
190
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
191
+ # @!attribute first_name
192
+ # Individual's first name, as it appears on government-issued identity documents.
193
+ #
194
+ # @return [String]
195
+ required :first_name, String
196
+
197
+ # @!attribute last_name
198
+ # Individual's last name, as it appears on government-issued identity documents.
199
+ #
200
+ # @return [String]
201
+ required :last_name, String
202
+
190
203
  # @!attribute address
191
204
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
192
205
  # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
193
206
  #
194
- # @return [Lithic::Models::Address]
195
- required :address, -> { Lithic::Address }
207
+ # @return [Lithic::Models::Address, nil]
208
+ optional :address, -> { Lithic::Address }
196
209
 
197
210
  # @!attribute dob
198
211
  # Individual's date of birth, as an RFC 3339 date.
199
212
  #
200
- # @return [String]
201
- required :dob, String
213
+ # @return [String, nil]
214
+ optional :dob, String
202
215
 
203
216
  # @!attribute email
204
217
  # Individual's email address. If utilizing Lithic for chargeback processing, this
205
218
  # customer email address may be used to communicate dispute status and resolution.
206
219
  #
207
- # @return [String]
208
- required :email, String
209
-
210
- # @!attribute first_name
211
- # Individual's first name, as it appears on government-issued identity documents.
212
- #
213
- # @return [String]
214
- required :first_name, String
220
+ # @return [String, nil]
221
+ optional :email, String
215
222
 
216
223
  # @!attribute government_id
217
224
  # Government-issued identification number (required for identity verification and
@@ -219,14 +226,8 @@ module Lithic
219
226
  # Individual Taxpayer Identification Numbers (ITIN) are currently supported,
220
227
  # entered as full nine-digits, with or without hyphens
221
228
  #
222
- # @return [String]
223
- required :government_id, String
224
-
225
- # @!attribute last_name
226
- # Individual's last name, as it appears on government-issued identity documents.
227
- #
228
- # @return [String]
229
- required :last_name, String
229
+ # @return [String, nil]
230
+ optional :government_id, String
230
231
 
231
232
  # @!attribute phone_number
232
233
  # Individual's phone number, entered in E.164 format.
@@ -234,12 +235,17 @@ module Lithic
234
235
  # @return [String, nil]
235
236
  optional :phone_number, String
236
237
 
237
- # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil)
238
+ # @!method initialize(first_name:, last_name:, address: nil, dob: nil, email: nil, government_id: nil, phone_number: nil)
238
239
  # Some parameter documentations has been truncated, see
239
240
  # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::BeneficialOwnerIndividual}
240
241
  # for more details.
241
242
  #
242
- # Individuals associated with a KYB application. Phone number is optional.
243
+ # Individuals associated with a KYB_DELEGATED application. Only first and last
244
+ # name are required.
245
+ #
246
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
247
+ #
248
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
243
249
  #
244
250
  # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
245
251
  #
@@ -247,42 +253,44 @@ module Lithic
247
253
  #
248
254
  # @param email [String] Individual's email address.
249
255
  #
250
- # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
251
- #
252
256
  # @param government_id [String] Government-issued identification number (required for identity verification and
253
257
  #
254
- # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
255
- #
256
258
  # @param phone_number [String] Individual's phone number, entered in E.164 format.
257
259
  end
258
260
 
259
261
  # @see Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated#control_person
260
262
  class ControlPerson < Lithic::Internal::Type::BaseModel
263
+ # @!attribute first_name
264
+ # Individual's first name, as it appears on government-issued identity documents.
265
+ #
266
+ # @return [String]
267
+ required :first_name, String
268
+
269
+ # @!attribute last_name
270
+ # Individual's last name, as it appears on government-issued identity documents.
271
+ #
272
+ # @return [String]
273
+ required :last_name, String
274
+
261
275
  # @!attribute address
262
276
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
263
277
  # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
264
278
  #
265
- # @return [Lithic::Models::Address]
266
- required :address, -> { Lithic::Address }
279
+ # @return [Lithic::Models::Address, nil]
280
+ optional :address, -> { Lithic::Address }
267
281
 
268
282
  # @!attribute dob
269
283
  # Individual's date of birth, as an RFC 3339 date.
270
284
  #
271
- # @return [String]
272
- required :dob, String
285
+ # @return [String, nil]
286
+ optional :dob, String
273
287
 
274
288
  # @!attribute email
275
289
  # Individual's email address. If utilizing Lithic for chargeback processing, this
276
290
  # customer email address may be used to communicate dispute status and resolution.
277
291
  #
278
- # @return [String]
279
- required :email, String
280
-
281
- # @!attribute first_name
282
- # Individual's first name, as it appears on government-issued identity documents.
283
- #
284
- # @return [String]
285
- required :first_name, String
292
+ # @return [String, nil]
293
+ optional :email, String
286
294
 
287
295
  # @!attribute government_id
288
296
  # Government-issued identification number (required for identity verification and
@@ -290,14 +298,8 @@ module Lithic
290
298
  # Individual Taxpayer Identification Numbers (ITIN) are currently supported,
291
299
  # entered as full nine-digits, with or without hyphens
292
300
  #
293
- # @return [String]
294
- required :government_id, String
295
-
296
- # @!attribute last_name
297
- # Individual's last name, as it appears on government-issued identity documents.
298
- #
299
- # @return [String]
300
- required :last_name, String
301
+ # @return [String, nil]
302
+ optional :government_id, String
301
303
 
302
304
  # @!attribute phone_number
303
305
  # Individual's phone number, entered in E.164 format.
@@ -305,7 +307,7 @@ module Lithic
305
307
  # @return [String, nil]
306
308
  optional :phone_number, String
307
309
 
308
- # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number: nil)
310
+ # @!method initialize(first_name:, last_name:, address: nil, dob: nil, email: nil, government_id: nil, phone_number: nil)
309
311
  # Some parameter documentations has been truncated, see
310
312
  # {Lithic::Models::AccountHolderCreateParams::Body::KYBDelegated::ControlPerson}
311
313
  # for more details.
@@ -319,18 +321,18 @@ module Lithic
319
321
  # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
320
322
  # (Section II) for more background.
321
323
  #
324
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
325
+ #
326
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
327
+ #
322
328
  # @param address [Lithic::Models::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
323
329
  #
324
330
  # @param dob [String] Individual's date of birth, as an RFC 3339 date.
325
331
  #
326
332
  # @param email [String] Individual's email address.
327
333
  #
328
- # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
329
- #
330
334
  # @param government_id [String] Government-issued identification number (required for identity verification and
331
335
  #
332
- # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
333
- #
334
336
  # @param phone_number [String] Individual's phone number, entered in E.164 format.
335
337
  end
336
338
 
@@ -87,7 +87,8 @@ module Lithic
87
87
 
88
88
  # @!attribute nature_of_business
89
89
  # Short description of the company's line of business (i.e., what does the company
90
- # do?).
90
+ # do?). Values longer than 255 characters will be truncated before KYB
91
+ # verification
91
92
  #
92
93
  # @return [String, nil]
93
94
  optional :nature_of_business, String
@@ -50,7 +50,8 @@ module Lithic
50
50
 
51
51
  # @!attribute nature_of_business
52
52
  # Short description of the company's line of business (i.e., what does the company
53
- # do?).
53
+ # do?). Values longer than 255 characters will be truncated before KYB
54
+ # verification
54
55
  #
55
56
  # @return [String, nil]
56
57
  optional :nature_of_business, String
@@ -90,6 +90,17 @@ module Lithic
90
90
  # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
91
91
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
92
92
  # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
93
+ # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
94
+ # cardholder received the service, e.g. "NY". When a service location is present
95
+ # in the network data, the service location state is used. Otherwise, falls back
96
+ # to the card acceptor state.
97
+ # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
98
+ # the service, e.g. "10001". When a service location is present in the network
99
+ # data, the service location postal code is used. Otherwise, falls back to the
100
+ # card acceptor postal code.
101
+ # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
102
+ # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
103
+ # of the authorization.
93
104
  #
94
105
  # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
95
106
  required :attribute,
@@ -172,6 +183,17 @@ module Lithic
172
183
  # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
173
184
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
174
185
  # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
186
+ # - `SERVICE_LOCATION_STATE`: The state/province code (ISO 3166-2) where the
187
+ # cardholder received the service, e.g. "NY". When a service location is present
188
+ # in the network data, the service location state is used. Otherwise, falls back
189
+ # to the card acceptor state.
190
+ # - `SERVICE_LOCATION_POSTAL_CODE`: The postal code where the cardholder received
191
+ # the service, e.g. "10001". When a service location is present in the network
192
+ # data, the service location postal code is used. Otherwise, falls back to the
193
+ # card acceptor postal code.
194
+ # - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
195
+ # - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
196
+ # of the authorization.
175
197
  #
176
198
  # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute
177
199
  module Attribute
@@ -196,6 +218,10 @@ module Lithic
196
218
  WALLET_TYPE = :WALLET_TYPE
197
219
  TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
198
220
  ADDRESS_MATCH = :ADDRESS_MATCH
221
+ SERVICE_LOCATION_STATE = :SERVICE_LOCATION_STATE
222
+ SERVICE_LOCATION_POSTAL_CODE = :SERVICE_LOCATION_POSTAL_CODE
223
+ CARD_AGE = :CARD_AGE
224
+ ACCOUNT_AGE = :ACCOUNT_AGE
199
225
 
200
226
  # @!method self.values
201
227
  # @return [Array<Symbol>]
@@ -18,7 +18,7 @@ module Lithic
18
18
  # - `CARD`: The card associated with the event. Available for AUTHORIZATION and
19
19
  # THREE_DS_AUTHENTICATION event stream rules.
20
20
  # - `ACCOUNT_HOLDER`: The account holder associated with the card. Available for
21
- # THREE_DS_AUTHENTICATION event stream rules.
21
+ # AUTHORIZATION and THREE_DS_AUTHENTICATION event stream rules.
22
22
  # - `IP_METADATA`: IP address metadata for the request. Available for
23
23
  # THREE_DS_AUTHENTICATION event stream rules.
24
24
  # - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
@@ -90,9 +90,10 @@ module Lithic
90
90
  required :event_type, const: :"card_authorization.approval_request"
91
91
 
92
92
  # @!attribute merchant
93
+ # Merchant information including full location details.
93
94
  #
94
- # @return [Lithic::Models::Merchant]
95
- required :merchant, -> { Lithic::Merchant }
95
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Merchant]
96
+ required :merchant, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Merchant }
96
97
 
97
98
  # @!attribute merchant_amount
98
99
  # @deprecated
@@ -114,6 +115,16 @@ module Lithic
114
115
  # @return [String]
115
116
  required :merchant_currency, String
116
117
 
118
+ # @!attribute service_location
119
+ # Where the cardholder received the service, when different from the card acceptor
120
+ # location. This is populated from network data elements such as Mastercard DE-122
121
+ # SE1 SF9-14 and Visa F34 DS02.
122
+ #
123
+ # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation, nil]
124
+ required :service_location,
125
+ -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation },
126
+ nil?: true
127
+
117
128
  # @!attribute settled_amount
118
129
  # @deprecated
119
130
  #
@@ -232,7 +243,7 @@ module Lithic
232
243
  # @return [Time, nil]
233
244
  optional :ttl, Time
234
245
 
235
- # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil, event_type: :"card_authorization.approval_request")
246
+ # @!method initialize(token:, acquirer_fee:, amount:, amounts:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, service_location:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil, event_type: :"card_authorization.approval_request")
236
247
  # Some parameter documentations has been truncated, see
237
248
  # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent} for more details.
238
249
  #
@@ -256,12 +267,14 @@ module Lithic
256
267
  #
257
268
  # @param created [Time] Date and time when the transaction first occurred in UTC.
258
269
  #
259
- # @param merchant [Lithic::Models::Merchant]
270
+ # @param merchant [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Merchant] Merchant information including full location details.
260
271
  #
261
272
  # @param merchant_amount [Integer] Deprecated, use `amounts`. The amount that the merchant will receive, denominate
262
273
  #
263
274
  # @param merchant_currency [String] 3-character alphabetic ISO 4217 code for the local currency of the transaction.
264
275
  #
276
+ # @param service_location [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::ServiceLocation, nil] Where the cardholder received the service, when different from the card acceptor
277
+ #
265
278
  # @param settled_amount [Integer] Deprecated, use `amounts`. Amount (in cents) of the transaction that has been se
266
279
  #
267
280
  # @param status [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Status] The type of authorization request that this request is for. Note that `CREDIT_AU
@@ -605,6 +618,84 @@ module Lithic
605
618
  end
606
619
  end
607
620
 
621
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#merchant
622
+ class Merchant < Lithic::Models::Merchant
623
+ # @!attribute phone_number
624
+ # Phone number of card acceptor.
625
+ #
626
+ # @return [String, nil]
627
+ required :phone_number, String, nil?: true
628
+
629
+ # @!attribute postal_code
630
+ # Postal code of card acceptor.
631
+ #
632
+ # @return [String, nil]
633
+ required :postal_code, String, nil?: true
634
+
635
+ # @!attribute street_address
636
+ # Street address of card acceptor.
637
+ #
638
+ # @return [String, nil]
639
+ required :street_address, String, nil?: true
640
+
641
+ # @!method initialize(phone_number:, postal_code:, street_address:)
642
+ # Merchant information including full location details.
643
+ #
644
+ # @param phone_number [String, nil] Phone number of card acceptor.
645
+ #
646
+ # @param postal_code [String, nil] Postal code of card acceptor.
647
+ #
648
+ # @param street_address [String, nil] Street address of card acceptor.
649
+ end
650
+
651
+ # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#service_location
652
+ class ServiceLocation < Lithic::Internal::Type::BaseModel
653
+ # @!attribute city
654
+ # City of service location.
655
+ #
656
+ # @return [String, nil]
657
+ required :city, String, nil?: true
658
+
659
+ # @!attribute country
660
+ # Country code of service location, ISO 3166-1 alpha-3.
661
+ #
662
+ # @return [String, nil]
663
+ required :country, String, nil?: true
664
+
665
+ # @!attribute postal_code
666
+ # Postal code of service location.
667
+ #
668
+ # @return [String, nil]
669
+ required :postal_code, String, nil?: true
670
+
671
+ # @!attribute state
672
+ # State/province code of service location, ISO 3166-2.
673
+ #
674
+ # @return [String, nil]
675
+ required :state, String, nil?: true
676
+
677
+ # @!attribute street_address
678
+ # Street address of service location.
679
+ #
680
+ # @return [String, nil]
681
+ required :street_address, String, nil?: true
682
+
683
+ # @!method initialize(city:, country:, postal_code:, state:, street_address:)
684
+ # Where the cardholder received the service, when different from the card acceptor
685
+ # location. This is populated from network data elements such as Mastercard DE-122
686
+ # SE1 SF9-14 and Visa F34 DS02.
687
+ #
688
+ # @param city [String, nil] City of service location.
689
+ #
690
+ # @param country [String, nil] Country code of service location, ISO 3166-1 alpha-3.
691
+ #
692
+ # @param postal_code [String, nil] Postal code of service location.
693
+ #
694
+ # @param state [String, nil] State/province code of service location, ISO 3166-2.
695
+ #
696
+ # @param street_address [String, nil] Street address of service location.
697
+ end
698
+
608
699
  # The type of authorization request that this request is for. Note that
609
700
  # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to
610
701
  # users with credit decisioning via ASA enabled.
@@ -4,13 +4,18 @@ module Lithic
4
4
  module Models
5
5
  class Carrier < Lithic::Internal::Type::BaseModel
6
6
  # @!attribute qr_code_url
7
- # QR code url to display on the card carrier
7
+ # QR code URL to display on the card carrier. The `qr_code_url` field requires
8
+ # your domain to be allowlisted by Lithic before use. Contact Support to configure
9
+ # your QR code domain
8
10
  #
9
11
  # @return [String, nil]
10
12
  optional :qr_code_url, String
11
13
 
12
14
  # @!method initialize(qr_code_url: nil)
13
- # @param qr_code_url [String] QR code url to display on the card carrier
15
+ # Some parameter documentations has been truncated, see {Lithic::Models::Carrier}
16
+ # for more details.
17
+ #
18
+ # @param qr_code_url [String] QR code URL to display on the card carrier. The `qr_code_url` field requires you
14
19
  end
15
20
  end
16
21
  end
@@ -37,7 +37,8 @@ module Lithic
37
37
 
38
38
  # @!attribute nature_of_business
39
39
  # Short description of the company's line of business (i.e., what does the company
40
- # do?).
40
+ # do?). Values longer than 255 characters will be truncated before KYB
41
+ # verification
41
42
  #
42
43
  # @return [String]
43
44
  required :nature_of_business, String
@@ -170,7 +170,8 @@ module Lithic
170
170
 
171
171
  # @!attribute nature_of_business
172
172
  # Short description of the company's line of business (i.e., what does the company
173
- # do?).
173
+ # do?). Values longer than 255 characters will be truncated before KYB
174
+ # verification
174
175
  #
175
176
  # @return [String, nil]
176
177
  optional :nature_of_business, String
@@ -514,6 +514,13 @@ module Lithic
514
514
  # @return [String, nil]
515
515
  optional :company_id, String, nil?: true
516
516
 
517
+ # @!attribute override_company_name
518
+ # Value to override the configured company name with. Can only be used if allowed
519
+ # to override
520
+ #
521
+ # @return [String, nil]
522
+ optional :override_company_name, String, nil?: true
523
+
517
524
  # @!attribute receipt_routing_number
518
525
  # Receipt routing number
519
526
  #
@@ -538,7 +545,11 @@ module Lithic
538
545
  # @return [Array<String>, nil]
539
546
  optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String]
540
547
 
541
- # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil)
548
+ # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, override_company_name: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil)
549
+ # Some parameter documentations has been truncated, see
550
+ # {Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes} for more
551
+ # details.
552
+ #
542
553
  # @param sec_code [Symbol, Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::SecCode] SEC code for ACH transaction
543
554
  #
544
555
  # @param ach_hold_period [Integer, nil] Number of days the ACH transaction is on hold
@@ -547,6 +558,8 @@ module Lithic
547
558
  #
548
559
  # @param company_id [String, nil] Company ID for the ACH transaction
549
560
  #
561
+ # @param override_company_name [String, nil] Value to override the configured company name with. Can only be used if allowed
562
+ #
550
563
  # @param receipt_routing_number [String, nil] Receipt routing number
551
564
  #
552
565
  # @param retries [Integer, nil] Number of retries attempted
@@ -603,7 +616,13 @@ module Lithic
603
616
  # @return [String, nil]
604
617
  optional :message_id, String, nil?: true
605
618
 
606
- # @!method initialize(wire_message_type:, wire_network:, creditor: nil, debtor: nil, message_id: nil)
619
+ # @!attribute remittance_information
620
+ # Payment details or invoice reference
621
+ #
622
+ # @return [String, nil]
623
+ optional :remittance_information, String, nil?: true
624
+
625
+ # @!method initialize(wire_message_type:, wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil)
607
626
  # Some parameter documentations has been truncated, see
608
627
  # {Lithic::Models::Payment::MethodAttributes::WireMethodAttributes} for more
609
628
  # details.
@@ -617,6 +636,8 @@ module Lithic
617
636
  # @param debtor [Lithic::Models::WirePartyDetails]
618
637
  #
619
638
  # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used
639
+ #
640
+ # @param remittance_information [String, nil] Payment details or invoice reference
620
641
 
621
642
  # Type of wire transfer
622
643
  #