lithic 0.4.0 → 0.6.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 (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -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/account_holders/account_holder_entity.rb +183 -0
  14. data/lib/lithic/models/account_holders/entity_create_params.rb +159 -0
  15. data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
  16. data/lib/lithic/models/account_holders/entity_delete_params.rb +22 -0
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
  18. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  19. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -0
  20. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  21. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -2
  22. data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
  23. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  24. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  25. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  26. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  27. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
  28. data/lib/lithic/models/financial_account.rb +1 -0
  29. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  30. data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
  31. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
  32. data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +16 -0
  33. data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +22 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +40 -0
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +22 -0
  36. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +44 -0
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
  38. data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
  39. data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +16 -0
  40. data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
  41. data/lib/lithic/models/financial_accounts/statement.rb +1 -0
  42. data/lib/lithic/models/kyb.rb +10 -1
  43. data/lib/lithic/models/parsed_webhook_event.rb +10 -1
  44. data/lib/lithic/models/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
  45. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
  46. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
  47. data/lib/lithic/models.rb +4 -2
  48. data/lib/lithic/resources/account_holders/entities.rb +89 -0
  49. data/lib/lithic/resources/account_holders.rb +10 -2
  50. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  51. data/lib/lithic/resources/book_transfers.rb +3 -1
  52. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +205 -0
  53. data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
  54. data/lib/lithic/resources/financial_accounts.rb +9 -0
  55. data/lib/lithic/version.rb +1 -1
  56. data/lib/lithic.rb +20 -1
  57. data/rbi/lithic/internal/util.rbi +1 -1
  58. data/rbi/lithic/models/account_holder.rbi +19 -6
  59. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  60. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  61. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  62. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  63. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  64. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  65. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +296 -0
  66. data/rbi/lithic/models/account_holders/entity_create_params.rbi +242 -0
  67. data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
  68. data/rbi/lithic/models/account_holders/entity_delete_params.rbi +43 -0
  69. data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
  70. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  71. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +1 -0
  72. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  73. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
  74. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  75. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  76. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  77. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  78. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
  79. data/rbi/lithic/models/financial_account.rbi +5 -0
  80. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  81. data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
  82. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
  83. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +32 -0
  84. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +43 -0
  85. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +73 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +43 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +70 -0
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
  89. data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
  90. data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +32 -0
  91. data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
  92. data/rbi/lithic/models/financial_accounts/statement.rbi +5 -0
  93. data/rbi/lithic/models/kyb.rbi +13 -0
  94. data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
  95. data/rbi/lithic/models/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
  96. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
  97. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
  98. data/rbi/lithic/models.rbi +4 -2
  99. data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
  100. data/rbi/lithic/resources/account_holders.rbi +11 -0
  101. data/rbi/lithic/resources/auth_rules/v2.rbi +44 -1
  102. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  103. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
  104. data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
  105. data/rbi/lithic/resources/financial_accounts.rbi +10 -0
  106. data/sig/lithic/models/account_holder.rbs +7 -0
  107. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  108. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  109. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  110. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  111. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  112. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  113. data/sig/lithic/models/account_holders/account_holder_entity.rbs +137 -0
  114. data/sig/lithic/models/account_holders/entity_create_params.rbs +118 -0
  115. data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
  116. data/sig/lithic/models/account_holders/entity_delete_params.rbs +26 -0
  117. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  118. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  119. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  120. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  121. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
  122. data/sig/lithic/models/financial_account.rbs +2 -0
  123. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  124. data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
  125. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
  126. data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +17 -0
  127. data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +26 -0
  128. data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +40 -0
  129. data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +26 -0
  130. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +38 -0
  131. data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
  132. data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
  133. data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +17 -0
  134. data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
  135. data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
  136. data/sig/lithic/models/kyb.rbs +7 -0
  137. data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
  138. data/sig/lithic/models/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
  139. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
  140. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
  141. data/sig/lithic/models.rbs +4 -2
  142. data/sig/lithic/resources/account_holders/entities.rbs +28 -0
  143. data/sig/lithic/resources/account_holders.rbs +4 -0
  144. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  145. data/sig/lithic/resources/book_transfers.rbs +1 -0
  146. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +46 -0
  147. data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
  148. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  149. metadata +62 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c9b82b20af6ee10e138b64db9e21fa9859d5058b058b3f4d8bd9c3ce12f83ac
4
- data.tar.gz: 2bf7dbce1c92170c905528b75e67a6b69145a154c217286a25710b83cd42c325
3
+ metadata.gz: 37d9177dabd71343c3ba0be9ae82c47b899ac8c61b839359e72b13f35bb9a682
4
+ data.tar.gz: ea676fad5f242c817a9921928107da0be0612b88f7d4271d3b4c8a2d09685188
5
5
  SHA512:
6
- metadata.gz: c23410831a8ff4b4f658af06396bd4239a09b44a66a02e797010247c78b6534d56eca63064d267a74ed8ed6b07fdcd3c10c3dc3ec1722dcbad2fe39aae72388f
7
- data.tar.gz: e07f42259409e859856a1635d9cd2f3681f8b0bcce3f29a69e128141a43623451126b6dd1f42d01468db0cc5bbcf024d1a9e98c2f2d5fd54a603890cc9103c4a
6
+ metadata.gz: 30978d9d1a737b508380fac34fd692dceed11ec5e5990028f6446c2387181b4e25d3006ad43d536f7094999a2745a516219b6e27d638c63be937271bf23ab4c9
7
+ data.tar.gz: 39c3a61ae93bfffb325b76dd6765990d55c80d8193b39aa57ad49ba034cb6df60fb9ea64cb98a830b50e1d6ea104c80ccd5704400a39c5e3f2fb3256a443dcc4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,64 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0 (2026-02-27)
4
+
5
+ Full Changelog: [v0.5.0...v0.6.0](https://github.com/lithic-com/lithic-ruby/compare/v0.5.0...v0.6.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add account holder entity endpoints ([508b031](https://github.com/lithic-com/lithic-ruby/commit/508b0315e2ec79e74014759a97e82d209259e2cf))
10
+ * **api:** Add INTEREST_AND_FEES_PAUSED substatus to financial account ([23c7be9](https://github.com/lithic-com/lithic-ruby/commit/23c7be999b5a04a770dd18d2d34ff3967c68a85a))
11
+ * **api:** Expose MIL interest schedules and loan tape configuration endpoints ([a07d19f](https://github.com/lithic-com/lithic-ruby/commit/a07d19f3933cc1e282073f015bec87421a9a76d6))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **api:** Correct token_metadata field name in tokenization.approval_request schema ([a4d5ae7](https://github.com/lithic-com/lithic-ruby/commit/a4d5ae7a5754d8901469be17c57b020c6c246839))
17
+ * properly mock time in ruby ci tests ([ac193de](https://github.com/lithic-com/lithic-ruby/commit/ac193de27a9ce3b9f5bf3162a57a95da2ea88352))
18
+
19
+
20
+ ### Chores
21
+
22
+ * update mock server docs ([8abd2ee](https://github.com/lithic-com/lithic-ruby/commit/8abd2eee9b45f88f1a5e821200cb657b07c48084))
23
+
24
+
25
+ ### Documentation
26
+
27
+ * Remove CONDITIONAL_BLOCK from docs ([993ab5c](https://github.com/lithic-com/lithic-ruby/commit/993ab5cda8b310bab4083f59713043549cc154f1))
28
+
29
+ ## 0.5.0 (2026-02-13)
30
+
31
+ Full Changelog: [v0.4.0...v0.5.0](https://github.com/lithic-com/lithic-ruby/compare/v0.4.0...v0.5.0)
32
+
33
+ ### Features
34
+
35
+ * **api:** Add /v2/auth_rules/results endpoint for listing rule evaluation data ([638e66d](https://github.com/lithic-com/lithic-ruby/commit/638e66d63951f2710eff7865b66b8424ee9df347))
36
+ * **api:** Add amounts object to ASA request ([22955ed](https://github.com/lithic-com/lithic-ruby/commit/22955ed42c914a5f505254ca94561c192363bca6))
37
+ * **api:** Add hold token field to book transfers ([d23cb0b](https://github.com/lithic-com/lithic-ruby/commit/d23cb0bc4df0226c18bb47da55aa397f1bbc3354))
38
+ * **api:** Add naics_code to account holder requests/responses ([76b507b](https://github.com/lithic-com/lithic-ruby/commit/76b507bf26f50ac5be4cd8210e781435a5d8bd0f))
39
+ * **api:** Add network specific wallet recommendation reasons ([6ddef73](https://github.com/lithic-com/lithic-ruby/commit/6ddef73bfef32916381d94e54565e0e47d81c169))
40
+ * **api:** Add PENDING_REVIEW status to KYB enrollment simulation ([1a6d821](https://github.com/lithic-com/lithic-ruby/commit/1a6d821b937e9a263e0e5f765a80e44d52471867))
41
+ * **api:** Add result schemas for Authorization and Authentication (3DS) actions ([f669caf](https://github.com/lithic-com/lithic-ruby/commit/f669cafbb5f8d2f84295b576de01c4e41e1b1789))
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **api:** Update /v2/auth_rules/results endpoint parameter naming and action types ([25e39e6](https://github.com/lithic-com/lithic-ruby/commit/25e39e68e249381a826c6a17811ff69eb882f82d))
47
+ * **client:** always add content-length to post body, even when empty ([dc99413](https://github.com/lithic-com/lithic-ruby/commit/dc994133ff0d96a903dab13326254b2b378c06ae))
48
+ * **client:** loosen json header parsing ([a9a41d9](https://github.com/lithic-com/lithic-ruby/commit/a9a41d9cff9dd7f7a1772c76f9c9aae130b1b90a))
49
+
50
+
51
+ ### Chores
52
+
53
+ * configure new SDK language ([8192e34](https://github.com/lithic-com/lithic-ruby/commit/8192e34c05ef27263d1e3490092035c9e316c986))
54
+ * **docs:** remove www prefix ([cecdec2](https://github.com/lithic-com/lithic-ruby/commit/cecdec231888818a2ec01dca178d45a741d5326b))
55
+ * Enable stainless MCP in config ([03570d6](https://github.com/lithic-com/lithic-ruby/commit/03570d6a7cde12dc24f4a4237ea4d0042d215817))
56
+
57
+
58
+ ### Documentation
59
+
60
+ * Fix documentation of tokenization channel and tokenization source for tokenization rules ([5de9576](https://github.com/lithic-com/lithic-ruby/commit/5de957671f0c262e663dd787617921e6ade623e0))
61
+
3
62
  ## 0.4.0 (2026-01-27)
4
63
 
5
64
  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.6.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.
@@ -0,0 +1,183 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AccountHolders
6
+ # @see Lithic::Resources::AccountHolders::Entities#delete
7
+ class AccountHolderEntity < Lithic::Internal::Type::BaseModel
8
+ # @!attribute token
9
+ # Globally unique identifier for the entity
10
+ #
11
+ # @return [String]
12
+ required :token, String
13
+
14
+ # @!attribute account_holder_token
15
+ # Globally unique identifier for the account holder
16
+ #
17
+ # @return [String]
18
+ required :account_holder_token, String
19
+
20
+ # @!attribute address
21
+ # Individual's current address
22
+ #
23
+ # @return [Lithic::Models::AccountHolders::AccountHolderEntity::Address]
24
+ required :address, -> { Lithic::AccountHolders::AccountHolderEntity::Address }
25
+
26
+ # @!attribute dob
27
+ # Individual's date of birth, as an RFC 3339 date
28
+ #
29
+ # @return [String, nil]
30
+ required :dob, String, nil?: true
31
+
32
+ # @!attribute email
33
+ # Individual's email address
34
+ #
35
+ # @return [String, nil]
36
+ required :email, String, nil?: true
37
+
38
+ # @!attribute first_name
39
+ # Individual's first name, as it appears on government-issued identity documents
40
+ #
41
+ # @return [String, nil]
42
+ required :first_name, String, nil?: true
43
+
44
+ # @!attribute last_name
45
+ # Individual's last name, as it appears on government-issued identity documents
46
+ #
47
+ # @return [String, nil]
48
+ required :last_name, String, nil?: true
49
+
50
+ # @!attribute phone_number
51
+ # Individual's phone number, entered in E.164 format
52
+ #
53
+ # @return [String, nil]
54
+ required :phone_number, String, nil?: true
55
+
56
+ # @!attribute status
57
+ # The status of the entity
58
+ #
59
+ # @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status]
60
+ required :status, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Status }
61
+
62
+ # @!attribute type
63
+ # The type of entity
64
+ #
65
+ # @return [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type]
66
+ required :type, enum: -> { Lithic::AccountHolders::AccountHolderEntity::Type }
67
+
68
+ # @!method initialize(token:, account_holder_token:, address:, dob:, email:, first_name:, last_name:, phone_number:, status:, type:)
69
+ # Information about an entity associated with an account holder
70
+ #
71
+ # @param token [String] Globally unique identifier for the entity
72
+ #
73
+ # @param account_holder_token [String] Globally unique identifier for the account holder
74
+ #
75
+ # @param address [Lithic::Models::AccountHolders::AccountHolderEntity::Address] Individual's current address
76
+ #
77
+ # @param dob [String, nil] Individual's date of birth, as an RFC 3339 date
78
+ #
79
+ # @param email [String, nil] Individual's email address
80
+ #
81
+ # @param first_name [String, nil] Individual's first name, as it appears on government-issued identity documents
82
+ #
83
+ # @param last_name [String, nil] Individual's last name, as it appears on government-issued identity documents
84
+ #
85
+ # @param phone_number [String, nil] Individual's phone number, entered in E.164 format
86
+ #
87
+ # @param status [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Status] The status of the entity
88
+ #
89
+ # @param type [Symbol, Lithic::Models::AccountHolders::AccountHolderEntity::Type] The type of entity
90
+
91
+ # @see Lithic::Models::AccountHolders::AccountHolderEntity#address
92
+ class Address < Lithic::Internal::Type::BaseModel
93
+ # @!attribute address1
94
+ # Valid deliverable address (no PO boxes).
95
+ #
96
+ # @return [String]
97
+ required :address1, String
98
+
99
+ # @!attribute city
100
+ # Name of city.
101
+ #
102
+ # @return [String]
103
+ required :city, String
104
+
105
+ # @!attribute country
106
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO
107
+ # 3166-1 alpha-3 three-character format.
108
+ #
109
+ # @return [String]
110
+ required :country, String
111
+
112
+ # @!attribute postal_code
113
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a
114
+ # five-digit ZIP or nine-digit ZIP+4.
115
+ #
116
+ # @return [String]
117
+ required :postal_code, String
118
+
119
+ # @!attribute state
120
+ # Valid state code. Only USA state codes are currently supported, entered in
121
+ # uppercase ISO 3166-2 two-character format.
122
+ #
123
+ # @return [String]
124
+ required :state, String
125
+
126
+ # @!attribute address2
127
+ # Unit or apartment number (if applicable).
128
+ #
129
+ # @return [String, nil]
130
+ optional :address2, String
131
+
132
+ # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
133
+ # Some parameter documentations has been truncated, see
134
+ # {Lithic::Models::AccountHolders::AccountHolderEntity::Address} for more details.
135
+ #
136
+ # Individual's current address
137
+ #
138
+ # @param address1 [String] Valid deliverable address (no PO boxes).
139
+ #
140
+ # @param city [String] Name of city.
141
+ #
142
+ # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
143
+ #
144
+ # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
145
+ #
146
+ # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
147
+ #
148
+ # @param address2 [String] Unit or apartment number (if applicable).
149
+ end
150
+
151
+ # The status of the entity
152
+ #
153
+ # @see Lithic::Models::AccountHolders::AccountHolderEntity#status
154
+ module Status
155
+ extend Lithic::Internal::Type::Enum
156
+
157
+ ACCEPTED = :ACCEPTED
158
+ INACTIVE = :INACTIVE
159
+ PENDING_REVIEW = :PENDING_REVIEW
160
+ REJECTED = :REJECTED
161
+
162
+ # @!method self.values
163
+ # @return [Array<Symbol>]
164
+ end
165
+
166
+ # The type of entity
167
+ #
168
+ # @see Lithic::Models::AccountHolders::AccountHolderEntity#type
169
+ module Type
170
+ extend Lithic::Internal::Type::Enum
171
+
172
+ BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
173
+ CONTROL_PERSON = :CONTROL_PERSON
174
+
175
+ # @!method self.values
176
+ # @return [Array<Symbol>]
177
+ end
178
+ end
179
+ end
180
+
181
+ AccountHolderEntity = AccountHolders::AccountHolderEntity
182
+ end
183
+ end