lithic 0.4.0 → 0.5.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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  15. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  16. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  17. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  18. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  19. data/lib/lithic/models/kyb.rb +10 -1
  20. data/lib/lithic/models/parsed_webhook_event.rb +10 -1
  21. data/lib/lithic/resources/account_holders.rb +6 -2
  22. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  23. data/lib/lithic/resources/book_transfers.rb +3 -1
  24. data/lib/lithic/version.rb +1 -1
  25. data/lib/lithic.rb +2 -0
  26. data/rbi/lithic/internal/util.rbi +1 -1
  27. data/rbi/lithic/models/account_holder.rbi +19 -6
  28. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  29. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  30. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  31. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  32. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  33. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  34. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  35. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  36. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  37. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  38. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  39. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  40. data/rbi/lithic/models/kyb.rbi +13 -0
  41. data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
  42. data/rbi/lithic/resources/account_holders.rbi +8 -0
  43. data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
  44. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  45. data/sig/lithic/models/account_holder.rbs +7 -0
  46. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  47. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  48. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  49. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  50. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  51. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  52. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  53. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  54. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  55. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  56. data/sig/lithic/models/kyb.rbs +7 -0
  57. data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
  58. data/sig/lithic/resources/account_holders.rbs +2 -0
  59. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  60. data/sig/lithic/resources/book_transfers.rbs +1 -0
  61. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c9b82b20af6ee10e138b64db9e21fa9859d5058b058b3f4d8bd9c3ce12f83ac
4
- data.tar.gz: 2bf7dbce1c92170c905528b75e67a6b69145a154c217286a25710b83cd42c325
3
+ metadata.gz: 3304bf0ccf6dceb8b20be0b0dd50668a3ca9db38a498cd71744ca697fadd450a
4
+ data.tar.gz: 1bbb7a270b048dbcf98c63b31d6fab72cf3f89f45ffdaeabdd291ff6afcd27c7
5
5
  SHA512:
6
- metadata.gz: c23410831a8ff4b4f658af06396bd4239a09b44a66a02e797010247c78b6534d56eca63064d267a74ed8ed6b07fdcd3c10c3dc3ec1722dcbad2fe39aae72388f
7
- data.tar.gz: e07f42259409e859856a1635d9cd2f3681f8b0bcce3f29a69e128141a43623451126b6dd1f42d01468db0cc5bbcf024d1a9e98c2f2d5fd54a603890cc9103c4a
6
+ metadata.gz: 6be1b8020fe880a0c212a2ed28febf250c84f5f1862517e7ff1632d5b46c60d0f7bf1ecf57d89b0f04feceab67e06bcd44274691cd0b6a2ee6dc47207c4fbae5
7
+ data.tar.gz: 8f7ee13cf8998bef9e4a8ce48337c3b5fe3205db212cd7bfca4db2e743b42168340c510e0d7be6ce41ccf2f5aaa4363acacd530441e34ebd7044f3bd7bd2878e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0 (2026-02-13)
4
+
5
+ Full Changelog: [v0.4.0...v0.5.0](https://github.com/lithic-com/lithic-ruby/compare/v0.4.0...v0.5.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add /v2/auth_rules/results endpoint for listing rule evaluation data ([638e66d](https://github.com/lithic-com/lithic-ruby/commit/638e66d63951f2710eff7865b66b8424ee9df347))
10
+ * **api:** Add amounts object to ASA request ([22955ed](https://github.com/lithic-com/lithic-ruby/commit/22955ed42c914a5f505254ca94561c192363bca6))
11
+ * **api:** Add hold token field to book transfers ([d23cb0b](https://github.com/lithic-com/lithic-ruby/commit/d23cb0bc4df0226c18bb47da55aa397f1bbc3354))
12
+ * **api:** Add naics_code to account holder requests/responses ([76b507b](https://github.com/lithic-com/lithic-ruby/commit/76b507bf26f50ac5be4cd8210e781435a5d8bd0f))
13
+ * **api:** Add network specific wallet recommendation reasons ([6ddef73](https://github.com/lithic-com/lithic-ruby/commit/6ddef73bfef32916381d94e54565e0e47d81c169))
14
+ * **api:** Add PENDING_REVIEW status to KYB enrollment simulation ([1a6d821](https://github.com/lithic-com/lithic-ruby/commit/1a6d821b937e9a263e0e5f765a80e44d52471867))
15
+ * **api:** Add result schemas for Authorization and Authentication (3DS) actions ([f669caf](https://github.com/lithic-com/lithic-ruby/commit/f669cafbb5f8d2f84295b576de01c4e41e1b1789))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **api:** Update /v2/auth_rules/results endpoint parameter naming and action types ([25e39e6](https://github.com/lithic-com/lithic-ruby/commit/25e39e68e249381a826c6a17811ff69eb882f82d))
21
+ * **client:** always add content-length to post body, even when empty ([dc99413](https://github.com/lithic-com/lithic-ruby/commit/dc994133ff0d96a903dab13326254b2b378c06ae))
22
+ * **client:** loosen json header parsing ([a9a41d9](https://github.com/lithic-com/lithic-ruby/commit/a9a41d9cff9dd7f7a1772c76f9c9aae130b1b90a))
23
+
24
+
25
+ ### Chores
26
+
27
+ * configure new SDK language ([8192e34](https://github.com/lithic-com/lithic-ruby/commit/8192e34c05ef27263d1e3490092035c9e316c986))
28
+ * **docs:** remove www prefix ([cecdec2](https://github.com/lithic-com/lithic-ruby/commit/cecdec231888818a2ec01dca178d45a741d5326b))
29
+ * Enable stainless MCP in config ([03570d6](https://github.com/lithic-com/lithic-ruby/commit/03570d6a7cde12dc24f4a4237ea4d0042d215817))
30
+
31
+
32
+ ### Documentation
33
+
34
+ * Fix documentation of tokenization channel and tokenization source for tokenization rules ([5de9576](https://github.com/lithic-com/lithic-ruby/commit/5de957671f0c262e663dd787617921e6ade623e0))
35
+
3
36
  ## 0.4.0 (2026-01-27)
4
37
 
5
38
  Full Changelog: [v0.3.0...v0.4.0](https://github.com/lithic-com/lithic-ruby/compare/v0.3.0...v0.4.0)
data/README.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  The Lithic Ruby library provides convenient access to the Lithic REST API from any Ruby 3.2.0+ application. It ships with comprehensive types & docstrings in Yard, RBS, and RBI – [see below](https://github.com/lithic-com/lithic-ruby#Sorbet) for usage with Sorbet. The standard library's `net/http` is used as the HTTP transport, with connection pooling via the `connection_pool` gem.
4
4
 
5
+ ## MCP Server
6
+
7
+ Use the Lithic MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
8
+
9
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJuYW1lIjoibGl0aGljLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2xpdGhpYy5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LWxpdGhpYy1hcGkta2V5IjoiTXkgTGl0aGljIEFQSSBLZXkifX0)
10
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22lithic-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Flithic.stlmcp.com%22%2C%22headers%22%3A%7B%22x-lithic-api-key%22%3A%22My%20Lithic%20API%20Key%22%7D%7D)
11
+
12
+ > Note: You may need to set environment variables in your MCP client.
13
+
5
14
  ## Documentation
6
15
 
7
16
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/lithic).
@@ -15,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
15
24
  <!-- x-release-please-start-version -->
16
25
 
17
26
  ```ruby
18
- gem "lithic", "~> 0.4.0"
27
+ gem "lithic", "~> 0.5.0"
19
28
  ```
20
29
 
21
30
  <!-- x-release-please-end -->
@@ -75,7 +75,7 @@ module Lithic
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = Lithic::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -485,7 +485,7 @@ module Lithic
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -97,6 +97,13 @@ module Lithic
97
97
  # @return [Lithic::Models::AccountHolder::Individual, nil]
98
98
  optional :individual, -> { Lithic::AccountHolder::Individual }
99
99
 
100
+ # @!attribute naics_code
101
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
102
+ # Classification System (NAICS) code for the business.
103
+ #
104
+ # @return [String, nil]
105
+ optional :naics_code, String
106
+
100
107
  # @!attribute nature_of_business
101
108
  # Only present when user_type == "BUSINESS". User-submitted description of the
102
109
  # business.
@@ -143,8 +150,8 @@ module Lithic
143
150
  # @!attribute user_type
144
151
  # The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
145
152
  # attribute will be present. If the type is "BUSINESS" then the "business_entity",
146
- # "control_person", "beneficial_owner_individuals", "nature_of_business", and
147
- # "website_url" attributes will be present.
153
+ # "control_person", "beneficial_owner_individuals", "naics_code",
154
+ # "nature_of_business", and "website_url" attributes will be present.
148
155
  #
149
156
  # @return [Symbol, Lithic::Models::AccountHolder::UserType, nil]
150
157
  optional :user_type, enum: -> { Lithic::AccountHolder::UserType }
@@ -161,7 +168,7 @@ module Lithic
161
168
  # @return [String, nil]
162
169
  optional :website_url, String
163
170
 
164
- # @!method initialize(token:, created:, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
171
+ # @!method initialize(token:, created:, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
165
172
  # Some parameter documentations has been truncated, see
166
173
  # {Lithic::Models::AccountHolder} for more details.
167
174
  #
@@ -189,6 +196,8 @@ module Lithic
189
196
  #
190
197
  # @param individual [Lithic::Models::AccountHolder::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
191
198
  #
199
+ # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
200
+ #
192
201
  # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
193
202
  #
194
203
  # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS". Use i
@@ -592,8 +601,8 @@ module Lithic
592
601
 
593
602
  # The type of Account Holder. If the type is "INDIVIDUAL", the "individual"
594
603
  # attribute will be present. If the type is "BUSINESS" then the "business_entity",
595
- # "control_person", "beneficial_owner_individuals", "nature_of_business", and
596
- # "website_url" attributes will be present.
604
+ # "control_person", "beneficial_owner_individuals", "naics_code",
605
+ # "nature_of_business", and "website_url" attributes will be present.
597
606
  #
598
607
  # @see Lithic::Models::AccountHolder#user_type
599
608
  module UserType
@@ -84,6 +84,13 @@ module Lithic
84
84
  # @return [String, nil]
85
85
  optional :kyb_passed_timestamp, String
86
86
 
87
+ # @!attribute naics_code
88
+ # 6-digit North American Industry Classification System (NAICS) code for the
89
+ # business.
90
+ #
91
+ # @return [String, nil]
92
+ optional :naics_code, String
93
+
87
94
  # @!attribute website_url
88
95
  # Company website URL.
89
96
  #
@@ -151,7 +158,7 @@ module Lithic
151
158
  # @return [String, nil]
152
159
  optional :business_account_token, String
153
160
 
154
- # @!method initialize(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
161
+ # @!method initialize(business_entity:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_individuals: nil, control_person: nil, nature_of_business: nil, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, naics_code: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
155
162
  # Some parameter documentations has been truncated, see
156
163
  # {Lithic::Models::AccountHolderCreateParams} for more details.
157
164
  #
@@ -187,6 +194,8 @@ module Lithic
187
194
  #
188
195
  # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
189
196
  #
197
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
198
+ #
190
199
  # @param website_url [String] Company website URL.
191
200
  #
192
201
  # @param kyc_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the indiv
@@ -45,6 +45,7 @@ module Lithic
45
45
 
46
46
  ACCEPTED = :ACCEPTED
47
47
  REJECTED = :REJECTED
48
+ PENDING_REVIEW = :PENDING_REVIEW
48
49
 
49
50
  # @!method self.values
50
51
  # @return [Array<Symbol>]
@@ -102,6 +102,13 @@ module Lithic
102
102
  # @return [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual, nil]
103
103
  optional :individual, -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual }
104
104
 
105
+ # @!attribute naics_code
106
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
107
+ # Classification System (NAICS) code for the business.
108
+ #
109
+ # @return [String, nil]
110
+ optional :naics_code, String
111
+
105
112
  # @!attribute nature_of_business
106
113
  # Only present when user_type == "BUSINESS". User-submitted description of the
107
114
  # business.
@@ -147,8 +154,8 @@ module Lithic
147
154
  # attribute will be present.
148
155
  #
149
156
  # If the type is "BUSINESS" then the "business_entity", "control_person",
150
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
151
- # attributes will be present.
157
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
158
+ # "website_url" attributes will be present.
152
159
  #
153
160
  # @return [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType, nil]
154
161
  optional :user_type, enum: -> { Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::UserType }
@@ -166,7 +173,7 @@ module Lithic
166
173
  # @return [String, nil]
167
174
  optional :website_url, String
168
175
 
169
- # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
176
+ # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
170
177
  # Some parameter documentations has been truncated, see
171
178
  # {Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse} for more
172
179
  # details.
@@ -195,6 +202,8 @@ module Lithic
195
202
  #
196
203
  # @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
197
204
  #
205
+ # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
206
+ #
198
207
  # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
199
208
  #
200
209
  # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
@@ -660,8 +669,8 @@ module Lithic
660
669
  # attribute will be present.
661
670
  #
662
671
  # If the type is "BUSINESS" then the "business_entity", "control_person",
663
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
664
- # attributes will be present.
672
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
673
+ # "website_url" attributes will be present.
665
674
  #
666
675
  # @see Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse#user_type
667
676
  module UserType
@@ -55,6 +55,13 @@ module Lithic
55
55
  # @return [String, nil]
56
56
  optional :external_id, String
57
57
 
58
+ # @!attribute naics_code
59
+ # 6-digit North American Industry Classification System (NAICS) code for the
60
+ # business.
61
+ #
62
+ # @return [String, nil]
63
+ optional :naics_code, String
64
+
58
65
  # @!attribute nature_of_business
59
66
  # Short description of the company's line of business (i.e., what does the company
60
67
  # do?).
@@ -122,7 +129,7 @@ module Lithic
122
129
  # @return [String, nil]
123
130
  optional :phone_number, String
124
131
 
125
- # @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
132
+ # @!method initialize(beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
126
133
  # Some parameter documentations has been truncated, see
127
134
  # {Lithic::Models::AccountHolderUpdateParams} for more details.
128
135
  #
@@ -136,6 +143,8 @@ module Lithic
136
143
  #
137
144
  # @param external_id [String] A user provided id that can be used to link an account holder with an external s
138
145
  #
146
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
147
+ #
139
148
  # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
140
149
  #
141
150
  # @param website_url [String] Company website URL.
@@ -109,6 +109,13 @@ module Lithic
109
109
  # @return [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual, nil]
110
110
  optional :individual, -> { Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual }
111
111
 
112
+ # @!attribute naics_code
113
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
114
+ # Classification System (NAICS) code for the business.
115
+ #
116
+ # @return [String, nil]
117
+ optional :naics_code, String
118
+
112
119
  # @!attribute nature_of_business
113
120
  # Only present when user_type == "BUSINESS". User-submitted description of the
114
121
  # business.
@@ -154,8 +161,8 @@ module Lithic
154
161
  # attribute will be present.
155
162
  #
156
163
  # If the type is "BUSINESS" then the "business_entity", "control_person",
157
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
158
- # attributes will be present.
164
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
165
+ # "website_url" attributes will be present.
159
166
  #
160
167
  # @return [Symbol, Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::UserType, nil]
161
168
  optional :user_type,
@@ -174,7 +181,7 @@ module Lithic
174
181
  # @return [String, nil]
175
182
  optional :website_url, String
176
183
 
177
- # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
184
+ # @!method initialize(token: nil, account_token: nil, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_account_token: nil, business_entity: nil, control_person: nil, created: nil, email: nil, exemption_type: nil, external_id: nil, individual: nil, naics_code: nil, nature_of_business: nil, phone_number: nil, required_documents: nil, status: nil, status_reasons: nil, user_type: nil, verification_application: nil, website_url: nil)
178
185
  # Some parameter documentations has been truncated, see
179
186
  # {Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse} for more
180
187
  # details.
@@ -203,6 +210,8 @@ module Lithic
203
210
  #
204
211
  # @param individual [Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
205
212
  #
213
+ # @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
214
+ #
206
215
  # @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
207
216
  #
208
217
  # @param phone_number [String] (Deprecated. Use control_person.phone_number when user_type == "BUSINESS".
@@ -668,8 +677,8 @@ module Lithic
668
677
  # attribute will be present.
669
678
  #
670
679
  # If the type is "BUSINESS" then the "business_entity", "control_person",
671
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
672
- # attributes will be present.
680
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
681
+ # "website_url" attributes will be present.
673
682
  #
674
683
  # @see Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse#user_type
675
684
  module UserType
@@ -41,6 +41,13 @@ module Lithic
41
41
  # @return [String, nil]
42
42
  optional :external_id, String
43
43
 
44
+ # @!attribute naics_code
45
+ # 6-digit North American Industry Classification System (NAICS) code for the
46
+ # business. Only present if naics_code was included in the update request.
47
+ #
48
+ # @return [String, nil]
49
+ optional :naics_code, String
50
+
44
51
  # @!attribute nature_of_business
45
52
  # Short description of the company's line of business (i.e., what does the company
46
53
  # do?).
@@ -54,7 +61,7 @@ module Lithic
54
61
  # @return [String, nil]
55
62
  optional :website_url, String
56
63
 
57
- # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, nature_of_business: nil, website_url: nil)
64
+ # @!method initialize(token:, update_request:, event_type: nil, external_id: nil, naics_code: nil, nature_of_business: nil, website_url: nil)
58
65
  # Some parameter documentations has been truncated, see
59
66
  # {Lithic::Models::AccountHolderUpdatedWebhookEvent::KYBPayload} for more details.
60
67
  #
@@ -68,6 +75,8 @@ module Lithic
68
75
  #
69
76
  # @param external_id [String] A user provided id that can be used to link an account holder with an external s
70
77
  #
78
+ # @param naics_code [String] 6-digit North American Industry Classification System (NAICS) code for the busin
79
+ #
71
80
  # @param nature_of_business [String] Short description of the company's line of business (i.e., what does the company
72
81
  #
73
82
  # @param website_url [String] Company website URL.
@@ -5,7 +5,7 @@ module Lithic
5
5
  module AuthRules
6
6
  class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute action
8
- # The action to take if the conditions are met
8
+ # The action to take if the conditions are met.
9
9
  #
10
10
  # @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
11
11
  required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
@@ -17,11 +17,11 @@ module Lithic
17
17
  -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
18
18
 
19
19
  # @!method initialize(action:, conditions:)
20
- # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
20
+ # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met.
21
21
  #
22
22
  # @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
23
23
 
24
- # The action to take if the conditions are met
24
+ # The action to take if the conditions are met.
25
25
  #
26
26
  # @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
27
27
  module Action
@@ -5,7 +5,7 @@ module Lithic
5
5
  module AuthRules
6
6
  class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute action
8
- # The action to take if the conditions are met
8
+ # The action to take if the conditions are met.
9
9
  #
10
10
  # @return [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction]
11
11
  required :action, union: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action }
@@ -17,11 +17,11 @@ module Lithic
17
17
  -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition] }
18
18
 
19
19
  # @!method initialize(action:, conditions:)
20
- # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met
20
+ # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met.
21
21
  #
22
22
  # @param conditions [Array<Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition>]
23
23
 
24
- # The action to take if the conditions are met
24
+ # The action to take if the conditions are met.
25
25
  #
26
26
  # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters#action
27
27
  module Action
@@ -159,8 +159,10 @@ module Lithic
159
159
  #
160
160
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
161
161
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
162
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
163
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
162
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
163
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
164
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
165
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
164
166
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
165
167
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
166
168
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -176,13 +178,24 @@ module Lithic
176
178
  # provider. Valid values include APPROVE, DECLINE,
177
179
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
178
180
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
179
- # wallet provider for the recommended decision. Valid values are
180
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
181
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
182
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
183
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
184
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
185
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
181
+ # wallet provider for the recommended decision. Valid values are:
182
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
183
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
184
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
185
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
186
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
187
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
188
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
189
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
190
+ # `WALLET_ACCOUNT_TOO_NEW`
191
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
192
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
193
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
194
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
195
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
196
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
197
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
198
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
186
199
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
187
200
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
188
201
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -221,8 +234,10 @@ module Lithic
221
234
  #
222
235
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
223
236
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
224
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
225
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
237
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
238
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
239
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
240
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
226
241
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
227
242
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
228
243
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -238,13 +253,24 @@ module Lithic
238
253
  # provider. Valid values include APPROVE, DECLINE,
239
254
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
240
255
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
241
- # wallet provider for the recommended decision. Valid values are
242
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
243
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
244
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
245
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
246
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
247
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
256
+ # wallet provider for the recommended decision. Valid values are:
257
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
258
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
259
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
260
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
261
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
262
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
263
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
264
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
265
+ # `WALLET_ACCOUNT_TOO_NEW`
266
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
267
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
268
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
269
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
270
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
271
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
272
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
273
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
248
274
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
249
275
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
250
276
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ # @see Lithic::Resources::AuthRules::V2#list_results
7
+ class V2ListResultsParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute auth_rule_token
12
+ # Filter by Auth Rule token
13
+ #
14
+ # @return [String, nil]
15
+ optional :auth_rule_token, String
16
+
17
+ # @!attribute ending_before
18
+ # A cursor representing an item's token before which a page of results should end.
19
+ # Used to retrieve the previous page of results before this item.
20
+ #
21
+ # @return [String, nil]
22
+ optional :ending_before, String
23
+
24
+ # @!attribute event_token
25
+ # Filter by event token
26
+ #
27
+ # @return [String, nil]
28
+ optional :event_token, String
29
+
30
+ # @!attribute has_actions
31
+ # Filter by whether the rule evaluation produced any actions. When not provided,
32
+ # all results are returned.
33
+ #
34
+ # @return [Boolean, nil]
35
+ optional :has_actions, Lithic::Internal::Type::Boolean
36
+
37
+ # @!attribute page_size
38
+ # Page size (for pagination).
39
+ #
40
+ # @return [Integer, nil]
41
+ optional :page_size, Integer
42
+
43
+ # @!attribute starting_after
44
+ # A cursor representing an item's token after which a page of results should
45
+ # begin. Used to retrieve the next page of results after this item.
46
+ #
47
+ # @return [String, nil]
48
+ optional :starting_after, String
49
+
50
+ # @!method initialize(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
51
+ # Some parameter documentations has been truncated, see
52
+ # {Lithic::Models::AuthRules::V2ListResultsParams} for more details.
53
+ #
54
+ # @param auth_rule_token [String] Filter by Auth Rule token
55
+ #
56
+ # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
57
+ #
58
+ # @param event_token [String] Filter by event token
59
+ #
60
+ # @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
61
+ #
62
+ # @param page_size [Integer] Page size (for pagination).
63
+ #
64
+ # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
65
+ #
66
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
67
+ end
68
+ end
69
+ end
70
+ end