diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 988e843f..b6700282 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.116.0"
+ ".": "0.117.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 0080147f..2c43cb20 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 176
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ce2adff9b644ed4562b5342a4a43d0b40c98d43b4e063b4626f4ca5d342f1b92.yml
-openapi_spec_hash: fbc84b866ce96457261ac58b4e75c71d
-config_hash: 31d71922d7838f34ae0875c9b8026d99
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-05d665e9c7e81d85c0d6629bf3898e2eb221268d677b772ef3da3891b25d8346.yml
+openapi_spec_hash: fd8900412ab9a393719dba3669d44d3a
+config_hash: faacaff68ffb3a4d051f0a7b8442e099
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb6fe40f..977fe577 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,24 @@
# Changelog
+## 0.117.0 (2026-01-30)
+
+Full Changelog: [v0.116.0...v0.117.0](https://github.com/lithic-com/lithic-java/compare/v0.116.0...v0.117.0)
+
+### Features
+
+* **api:** Add naics_code to account holder requests/responses ([c9ff6da](https://github.com/lithic-com/lithic-java/commit/c9ff6daa033e4022ac9208f4ff81d18346f53695))
+
+
+### Bug Fixes
+
+* add missing fields ([b075f58](https://github.com/lithic-com/lithic-java/commit/b075f58683c40bd097d18490992744526f74161a))
+
+
+### Chores
+
+* configure new SDK language ([2ddf823](https://github.com/lithic-com/lithic-java/commit/2ddf82360b21d85b57231fafc022f10ef909df40))
+* Enable stainless MCP in config ([2f605c1](https://github.com/lithic-com/lithic-java/commit/2f605c19967c7c77dec0358e1ccbacbadf9fc632))
+
## 0.116.0 (2026-01-27)
Full Changelog: [v0.115.0...v0.116.0](https://github.com/lithic-com/lithic-java/compare/v0.115.0...v0.116.0)
diff --git a/README.md b/README.md
index 7829b853..9745371d 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.116.0)
-[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.116.0)
+[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.117.0)
+[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.117.0)
@@ -11,9 +11,18 @@ The Lithic Java SDK provides convenient access to the [Lithic REST API](https://
The Lithic Java SDK is similar to the Lithic Kotlin SDK but with minor differences that make it more ergonomic for use in Java, such as `Optional` instead of nullable values, `Stream` instead of `Sequence`, and `CompletableFuture` instead of suspend functions.
+## MCP Server
+
+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.
+
+[](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJuYW1lIjoibGl0aGljLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2xpdGhpYy5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LWxpdGhpYy1hcGkta2V5IjoiTXkgTGl0aGljIEFQSSBLZXkifX0)
+[](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)
+
+> Note: You may need to set environment variables in your MCP client.
+
-The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.116.0).
+The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.117.0).
@@ -24,7 +33,7 @@ The REST API documentation can be found on [docs.lithic.com](https://docs.lithic
### Gradle
```kotlin
-implementation("com.lithic.api:lithic-java:0.116.0")
+implementation("com.lithic.api:lithic-java:0.117.0")
```
### Maven
@@ -33,7 +42,7 @@ implementation("com.lithic.api:lithic-java:0.116.0")
com.lithic.api
lithic-java
- 0.116.0
+ 0.117.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 72a101ec..3371f3d6 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.lithic.api"
- version = "0.116.0" // x-release-please-version
+ version = "0.117.0" // x-release-please-version
}
subprojects {
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt
index 94557f28..0bf76e54 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolder.kt
@@ -36,6 +36,7 @@ private constructor(
private val exemptionType: JsonField,
private val externalId: JsonField,
private val individual: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val phoneNumber: JsonField,
private val requiredDocuments: JsonField>,
@@ -82,6 +83,7 @@ private constructor(
@JsonProperty("individual")
@ExcludeMissing
individual: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code") @ExcludeMissing naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -115,6 +117,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -245,6 +248,15 @@ private constructor(
fun individual(): Optional =
individual.getOptional("individual")
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
+ * System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the business.
*
@@ -299,8 +311,8 @@ private constructor(
/**
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
* present. If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
- * present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -430,6 +442,13 @@ private constructor(
@ExcludeMissing
fun _individual(): JsonField = individual
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -545,6 +564,7 @@ private constructor(
private var exemptionType: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
private var individual: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var phoneNumber: JsonField = JsonMissing.of()
private var requiredDocuments: JsonField>? = null
@@ -572,6 +592,7 @@ private constructor(
exemptionType = accountHolder.exemptionType
externalId = accountHolder.externalId
individual = accountHolder.individual
+ naicsCode = accountHolder.naicsCode
natureOfBusiness = accountHolder.natureOfBusiness
phoneNumber = accountHolder.phoneNumber
requiredDocuments = accountHolder.requiredDocuments.map { it.toMutableList() }
@@ -811,6 +832,21 @@ private constructor(
this.individual = individual
}
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
+ * System (NAICS) code for the business.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the business.
*/
@@ -926,8 +962,8 @@ private constructor(
/**
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will
* be present. If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will
- * be present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
fun userType(userType: UserType) = userType(JsonField.of(userType))
@@ -1013,6 +1049,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
(requiredDocuments ?: JsonMissing.of()).map { it.toImmutable() },
@@ -1044,6 +1081,7 @@ private constructor(
exemptionType().ifPresent { it.validate() }
externalId()
individual().ifPresent { it.validate() }
+ naicsCode()
natureOfBusiness()
phoneNumber()
requiredDocuments().ifPresent { it.forEach { it.validate() } }
@@ -1083,6 +1121,7 @@ private constructor(
(exemptionType.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (phoneNumber.asKnown().isPresent) 1 else 0) +
(requiredDocuments.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
@@ -2447,8 +2486,8 @@ private constructor(
/**
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
* present. If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
- * present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
class UserType @JsonCreator private constructor(private val value: JsonField) : Enum {
@@ -3226,6 +3265,7 @@ private constructor(
exemptionType == other.exemptionType &&
externalId == other.externalId &&
individual == other.individual &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
phoneNumber == other.phoneNumber &&
requiredDocuments == other.requiredDocuments &&
@@ -3251,6 +3291,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -3266,5 +3307,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "AccountHolder{token=$token, created=$created, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "AccountHolder{token=$token, created=$created, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateParams.kt
index d31c3821..6240d0c4 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderCreateParams.kt
@@ -453,6 +453,7 @@ private constructor(
private val beneficialOwnerIndividuals: JsonField>,
private val controlPerson: JsonField,
private val externalId: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val tosTimestamp: JsonField,
private val websiteUrl: JsonField,
@@ -474,6 +475,9 @@ private constructor(
@JsonProperty("external_id")
@ExcludeMissing
externalId: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -491,6 +495,7 @@ private constructor(
beneficialOwnerIndividuals,
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
tosTimestamp,
websiteUrl,
@@ -546,6 +551,14 @@ private constructor(
*/
fun externalId(): Optional = externalId.getOptional("external_id")
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -623,6 +636,16 @@ private constructor(
@ExcludeMissing
fun _externalId(): JsonField = externalId
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -696,6 +719,7 @@ private constructor(
null
private var controlPerson: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var tosTimestamp: JsonField = JsonMissing.of()
private var websiteUrl: JsonField = JsonMissing.of()
@@ -709,6 +733,7 @@ private constructor(
kybDelegated.beneficialOwnerIndividuals.map { it.toMutableList() }
controlPerson = kybDelegated.controlPerson
externalId = kybDelegated.externalId
+ naicsCode = kybDelegated.naicsCode
natureOfBusiness = kybDelegated.natureOfBusiness
tosTimestamp = kybDelegated.tosTimestamp
websiteUrl = kybDelegated.websiteUrl
@@ -810,6 +835,21 @@ private constructor(
this.externalId = externalId
}
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the
+ * business.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -912,6 +952,7 @@ private constructor(
(beneficialOwnerIndividuals ?: JsonMissing.of()).map { it.toImmutable() },
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
tosTimestamp,
websiteUrl,
@@ -931,6 +972,7 @@ private constructor(
beneficialOwnerIndividuals().ifPresent { it.forEach { it.validate() } }
controlPerson().ifPresent { it.validate() }
externalId()
+ naicsCode()
natureOfBusiness()
tosTimestamp()
websiteUrl()
@@ -960,6 +1002,7 @@ private constructor(
} ?: 0) +
(controlPerson.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (tosTimestamp.asKnown().isPresent) 1 else 0) +
(if (websiteUrl.asKnown().isPresent) 1 else 0) +
@@ -2014,6 +2057,7 @@ private constructor(
beneficialOwnerIndividuals == other.beneficialOwnerIndividuals &&
controlPerson == other.controlPerson &&
externalId == other.externalId &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
tosTimestamp == other.tosTimestamp &&
websiteUrl == other.websiteUrl &&
@@ -2027,6 +2071,7 @@ private constructor(
beneficialOwnerIndividuals,
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
tosTimestamp,
websiteUrl,
@@ -2038,7 +2083,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "KybDelegated{businessEntity=$businessEntity, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, controlPerson=$controlPerson, externalId=$externalId, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, websiteUrl=$websiteUrl, workflow=$workflow, additionalProperties=$additionalProperties}"
+ "KybDelegated{businessEntity=$businessEntity, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, controlPerson=$controlPerson, externalId=$externalId, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, websiteUrl=$websiteUrl, workflow=$workflow, additionalProperties=$additionalProperties}"
}
}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt
index 2a9e0c44..9ec3b45e 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponse.kt
@@ -36,6 +36,7 @@ private constructor(
private val exemptionType: JsonField,
private val externalId: JsonField,
private val individual: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val phoneNumber: JsonField,
private val requiredDocuments: JsonField>,
@@ -81,6 +82,7 @@ private constructor(
@JsonProperty("individual")
@ExcludeMissing
individual: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code") @ExcludeMissing naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -114,6 +116,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -246,6 +249,15 @@ private constructor(
*/
fun individual(): Optional = individual.getOptional("individual")
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
+ * System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the business.
*
@@ -298,8 +310,8 @@ private constructor(
* present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
- * present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -426,6 +438,13 @@ private constructor(
@ExcludeMissing
fun _individual(): JsonField = individual
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -531,6 +550,7 @@ private constructor(
private var exemptionType: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
private var individual: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var phoneNumber: JsonField = JsonMissing.of()
private var requiredDocuments: JsonField>? = null
@@ -565,6 +585,7 @@ private constructor(
exemptionType = accountHolderSimulateEnrollmentReviewResponse.exemptionType
externalId = accountHolderSimulateEnrollmentReviewResponse.externalId
individual = accountHolderSimulateEnrollmentReviewResponse.individual
+ naicsCode = accountHolderSimulateEnrollmentReviewResponse.naicsCode
natureOfBusiness = accountHolderSimulateEnrollmentReviewResponse.natureOfBusiness
phoneNumber = accountHolderSimulateEnrollmentReviewResponse.phoneNumber
requiredDocuments =
@@ -815,6 +836,21 @@ private constructor(
*/
fun individual(individual: JsonField) = apply { this.individual = individual }
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
+ * System (NAICS) code for the business.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the business.
*/
@@ -929,8 +965,8 @@ private constructor(
* be present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will
- * be present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
fun userType(userType: UserType) = userType(JsonField.of(userType))
@@ -1009,6 +1045,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
(requiredDocuments ?: JsonMissing.of()).map { it.toImmutable() },
@@ -1040,6 +1077,7 @@ private constructor(
exemptionType().ifPresent { it.validate() }
externalId()
individual().ifPresent { it.validate() }
+ naicsCode()
natureOfBusiness()
phoneNumber()
requiredDocuments().ifPresent { it.forEach { it.validate() } }
@@ -1079,6 +1117,7 @@ private constructor(
(exemptionType.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (phoneNumber.asKnown().isPresent) 1 else 0) +
(requiredDocuments.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
@@ -2483,8 +2522,8 @@ private constructor(
* present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
- * present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
class UserType @JsonCreator private constructor(private val value: JsonField) : Enum {
@@ -3444,6 +3483,7 @@ private constructor(
exemptionType == other.exemptionType &&
externalId == other.externalId &&
individual == other.individual &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
phoneNumber == other.phoneNumber &&
requiredDocuments == other.requiredDocuments &&
@@ -3469,6 +3509,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -3484,5 +3525,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "AccountHolderSimulateEnrollmentReviewResponse{token=$token, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "AccountHolderSimulateEnrollmentReviewResponse{token=$token, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt
index 35fd00bc..54a08bcc 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateParams.kt
@@ -473,6 +473,7 @@ private constructor(
private val businessEntity: JsonField,
private val controlPerson: JsonField,
private val externalId: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val websiteUrl: JsonField,
private val additionalProperties: MutableMap,
@@ -495,6 +496,9 @@ private constructor(
@JsonProperty("external_id")
@ExcludeMissing
externalId: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -507,6 +511,7 @@ private constructor(
businessEntity,
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
mutableMapOf(),
@@ -569,6 +574,14 @@ private constructor(
*/
fun externalId(): Optional = externalId.getOptional("external_id")
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -640,6 +653,16 @@ private constructor(
@ExcludeMissing
fun _externalId(): JsonField = externalId
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -689,6 +712,7 @@ private constructor(
private var businessEntity: JsonField = JsonMissing.of()
private var controlPerson: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var websiteUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -702,6 +726,7 @@ private constructor(
businessEntity = kybPatchRequest.businessEntity
controlPerson = kybPatchRequest.controlPerson
externalId = kybPatchRequest.externalId
+ naicsCode = kybPatchRequest.naicsCode
natureOfBusiness = kybPatchRequest.natureOfBusiness
websiteUrl = kybPatchRequest.websiteUrl
additionalProperties = kybPatchRequest.additionalProperties.toMutableMap()
@@ -839,6 +864,21 @@ private constructor(
this.externalId = externalId
}
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the
+ * business.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -905,6 +945,7 @@ private constructor(
businessEntity,
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties.toMutableMap(),
@@ -923,6 +964,7 @@ private constructor(
businessEntity().ifPresent { it.validate() }
controlPerson().ifPresent { it.validate() }
externalId()
+ naicsCode()
natureOfBusiness()
websiteUrl()
validated = true
@@ -952,6 +994,7 @@ private constructor(
(businessEntity.asKnown().getOrNull()?.validity() ?: 0) +
(controlPerson.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (websiteUrl.asKnown().isPresent) 1 else 0)
@@ -1951,6 +1994,7 @@ private constructor(
businessEntity == other.businessEntity &&
controlPerson == other.controlPerson &&
externalId == other.externalId &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
websiteUrl == other.websiteUrl &&
additionalProperties == other.additionalProperties
@@ -1963,6 +2007,7 @@ private constructor(
businessEntity,
controlPerson,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties,
@@ -1972,7 +2017,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "KybPatchRequest{beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, externalId=$externalId, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "KybPatchRequest{beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, externalId=$externalId, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
/** The KYC request payload for updating an account holder. */
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt
index 9178f9da..2291db7d 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdateResponse.kt
@@ -225,6 +225,7 @@ private constructor(
private val exemptionType: JsonField,
private val externalId: JsonField,
private val individual: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val phoneNumber: JsonField,
private val requiredDocuments: JsonField>,
@@ -270,6 +271,9 @@ private constructor(
@JsonProperty("individual")
@ExcludeMissing
individual: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -305,6 +309,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -437,6 +442,15 @@ private constructor(
*/
fun individual(): Optional = individual.getOptional("individual")
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
+ * System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the business.
*
@@ -492,8 +506,8 @@ private constructor(
* be present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will
- * be present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -626,6 +640,13 @@ private constructor(
@ExcludeMissing
fun _individual(): JsonField = individual
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -731,6 +752,7 @@ private constructor(
private var exemptionType: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
private var individual: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var phoneNumber: JsonField = JsonMissing.of()
private var requiredDocuments: JsonField>? = null
@@ -758,6 +780,7 @@ private constructor(
exemptionType = kybKycPatchResponse.exemptionType
externalId = kybKycPatchResponse.externalId
individual = kybKycPatchResponse.individual
+ naicsCode = kybKycPatchResponse.naicsCode
natureOfBusiness = kybKycPatchResponse.natureOfBusiness
phoneNumber = kybKycPatchResponse.phoneNumber
requiredDocuments = kybKycPatchResponse.requiredDocuments.map { it.toMutableList() }
@@ -1009,6 +1032,21 @@ private constructor(
this.individual = individual
}
+ /**
+ * Only present when user_type == "BUSINESS". 6-digit North American Industry
+ * Classification System (NAICS) code for the business.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Only present when user_type == "BUSINESS". User-submitted description of the
* business.
@@ -1128,8 +1166,8 @@ private constructor(
* will be present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes
- * will be present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
fun userType(userType: UserType) = userType(JsonField.of(userType))
@@ -1207,6 +1245,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
(requiredDocuments ?: JsonMissing.of()).map { it.toImmutable() },
@@ -1238,6 +1277,7 @@ private constructor(
exemptionType().ifPresent { it.validate() }
externalId()
individual().ifPresent { it.validate() }
+ naicsCode()
natureOfBusiness()
phoneNumber()
requiredDocuments().ifPresent { it.forEach { it.validate() } }
@@ -1279,6 +1319,7 @@ private constructor(
(exemptionType.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (phoneNumber.asKnown().isPresent) 1 else 0) +
(requiredDocuments.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
@@ -2719,8 +2760,8 @@ private constructor(
* be present.
*
* If the type is "BUSINESS" then the "business_entity", "control_person",
- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will
- * be present.
+ * "beneficial_owner_individuals", "naics_code", "nature_of_business", and "website_url"
+ * attributes will be present.
*/
class UserType @JsonCreator private constructor(private val value: JsonField) :
Enum {
@@ -3713,6 +3754,7 @@ private constructor(
exemptionType == other.exemptionType &&
externalId == other.externalId &&
individual == other.individual &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
phoneNumber == other.phoneNumber &&
requiredDocuments == other.requiredDocuments &&
@@ -3738,6 +3780,7 @@ private constructor(
exemptionType,
externalId,
individual,
+ naicsCode,
natureOfBusiness,
phoneNumber,
requiredDocuments,
@@ -3753,7 +3796,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "KybKycPatchResponse{token=$token, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "KybKycPatchResponse{token=$token, accountToken=$accountToken, beneficialOwnerEntities=$beneficialOwnerEntities, beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessAccountToken=$businessAccountToken, businessEntity=$businessEntity, controlPerson=$controlPerson, created=$created, email=$email, exemptionType=$exemptionType, externalId=$externalId, individual=$individual, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, phoneNumber=$phoneNumber, requiredDocuments=$requiredDocuments, status=$status, statusReasons=$statusReasons, userType=$userType, verificationApplication=$verificationApplication, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
class PatchResponse
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEvent.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEvent.kt
index 9a49ea1a..2c1485c4 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEvent.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEvent.kt
@@ -262,6 +262,7 @@ private constructor(
private val updateRequest: JsonField,
private val eventType: JsonField,
private val externalId: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val websiteUrl: JsonField,
private val additionalProperties: MutableMap,
@@ -279,6 +280,9 @@ private constructor(
@JsonProperty("external_id")
@ExcludeMissing
externalId: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -290,6 +294,7 @@ private constructor(
updateRequest,
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
mutableMapOf(),
@@ -327,6 +332,15 @@ private constructor(
*/
fun externalId(): Optional = externalId.getOptional("external_id")
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business. Only
+ * present if naics_code was included in the update request.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Short description of the company's line of business (i.e., what does the company do?).
*
@@ -379,6 +393,13 @@ private constructor(
@ExcludeMissing
fun _externalId(): JsonField = externalId
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -431,6 +452,7 @@ private constructor(
private var updateRequest: JsonField? = null
private var eventType: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var websiteUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -441,6 +463,7 @@ private constructor(
updateRequest = kybPayload.updateRequest
eventType = kybPayload.eventType
externalId = kybPayload.externalId
+ naicsCode = kybPayload.naicsCode
natureOfBusiness = kybPayload.natureOfBusiness
websiteUrl = kybPayload.websiteUrl
additionalProperties = kybPayload.additionalProperties.toMutableMap()
@@ -499,6 +522,21 @@ private constructor(
*/
fun externalId(externalId: JsonField) = apply { this.externalId = externalId }
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business.
+ * Only present if naics_code was included in the update request.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -567,6 +605,7 @@ private constructor(
checkRequired("updateRequest", updateRequest),
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties.toMutableMap(),
@@ -584,6 +623,7 @@ private constructor(
updateRequest().validate()
eventType().ifPresent { it.validate() }
externalId()
+ naicsCode()
natureOfBusiness()
websiteUrl()
validated = true
@@ -609,6 +649,7 @@ private constructor(
(updateRequest.asKnown().getOrNull()?.validity() ?: 0) +
(eventType.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (websiteUrl.asKnown().isPresent) 1 else 0)
@@ -1978,6 +2019,7 @@ private constructor(
updateRequest == other.updateRequest &&
eventType == other.eventType &&
externalId == other.externalId &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
websiteUrl == other.websiteUrl &&
additionalProperties == other.additionalProperties
@@ -1989,6 +2031,7 @@ private constructor(
updateRequest,
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties,
@@ -1998,7 +2041,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "KybPayload{token=$token, updateRequest=$updateRequest, eventType=$eventType, externalId=$externalId, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "KybPayload{token=$token, updateRequest=$updateRequest, eventType=$eventType, externalId=$externalId, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
/** KYC payload for an updated account holder. */
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt
index 7a476160..34e9a22b 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Kyb.kt
@@ -32,6 +32,7 @@ private constructor(
private val beneficialOwnerEntities: JsonField>,
private val externalId: JsonField,
private val kybPassedTimestamp: JsonField,
+ private val naicsCode: JsonField,
private val websiteUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -63,6 +64,7 @@ private constructor(
@JsonProperty("kyb_passed_timestamp")
@ExcludeMissing
kybPassedTimestamp: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code") @ExcludeMissing naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("website_url")
@ExcludeMissing
websiteUrl: JsonField = JsonMissing.of(),
@@ -76,6 +78,7 @@ private constructor(
beneficialOwnerEntities,
externalId,
kybPassedTimestamp,
+ naicsCode,
websiteUrl,
mutableMapOf(),
)
@@ -171,6 +174,14 @@ private constructor(
fun kybPassedTimestamp(): Optional =
kybPassedTimestamp.getOptional("kyb_passed_timestamp")
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Company website URL.
*
@@ -261,6 +272,13 @@ private constructor(
@ExcludeMissing
fun _kybPassedTimestamp(): JsonField = kybPassedTimestamp
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [websiteUrl].
*
@@ -310,6 +328,7 @@ private constructor(
private var beneficialOwnerEntities: JsonField>? = null
private var externalId: JsonField = JsonMissing.of()
private var kybPassedTimestamp: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var websiteUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -324,6 +343,7 @@ private constructor(
beneficialOwnerEntities = kyb.beneficialOwnerEntities.map { it.toMutableList() }
externalId = kyb.externalId
kybPassedTimestamp = kyb.kybPassedTimestamp
+ naicsCode = kyb.naicsCode
websiteUrl = kyb.websiteUrl
additionalProperties = kyb.additionalProperties.toMutableMap()
}
@@ -511,6 +531,18 @@ private constructor(
this.kybPassedTimestamp = kybPassedTimestamp
}
+ /** 6-digit North American Industry Classification System (NAICS) code for the business. */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/** Company website URL. */
fun websiteUrl(websiteUrl: String) = websiteUrl(JsonField.of(websiteUrl))
@@ -572,6 +604,7 @@ private constructor(
(beneficialOwnerEntities ?: JsonMissing.of()).map { it.toImmutable() },
externalId,
kybPassedTimestamp,
+ naicsCode,
websiteUrl,
additionalProperties.toMutableMap(),
)
@@ -593,6 +626,7 @@ private constructor(
beneficialOwnerEntities().ifPresent { it.forEach { it.validate() } }
externalId()
kybPassedTimestamp()
+ naicsCode()
websiteUrl()
validated = true
}
@@ -621,6 +655,7 @@ private constructor(
(beneficialOwnerEntities.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
(if (kybPassedTimestamp.asKnown().isPresent) 1 else 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (websiteUrl.asKnown().isPresent) 1 else 0)
/** Individuals associated with a KYB application. Phone number is optional. */
@@ -1621,6 +1656,7 @@ private constructor(
beneficialOwnerEntities == other.beneficialOwnerEntities &&
externalId == other.externalId &&
kybPassedTimestamp == other.kybPassedTimestamp &&
+ naicsCode == other.naicsCode &&
websiteUrl == other.websiteUrl &&
additionalProperties == other.additionalProperties
}
@@ -1636,6 +1672,7 @@ private constructor(
beneficialOwnerEntities,
externalId,
kybPassedTimestamp,
+ naicsCode,
websiteUrl,
additionalProperties,
)
@@ -1644,5 +1681,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Kyb{beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, workflow=$workflow, beneficialOwnerEntities=$beneficialOwnerEntities, externalId=$externalId, kybPassedTimestamp=$kybPassedTimestamp, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "Kyb{beneficialOwnerIndividuals=$beneficialOwnerIndividuals, businessEntity=$businessEntity, controlPerson=$controlPerson, natureOfBusiness=$natureOfBusiness, tosTimestamp=$tosTimestamp, workflow=$workflow, beneficialOwnerEntities=$beneficialOwnerEntities, externalId=$externalId, kybPassedTimestamp=$kybPassedTimestamp, naicsCode=$naicsCode, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
index 9444b8ad..1f4257ba 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
@@ -2615,6 +2615,7 @@ private constructor(
private val updateRequest: JsonField,
private val eventType: JsonField,
private val externalId: JsonField,
+ private val naicsCode: JsonField,
private val natureOfBusiness: JsonField,
private val websiteUrl: JsonField,
private val additionalProperties: MutableMap,
@@ -2632,6 +2633,9 @@ private constructor(
@JsonProperty("external_id")
@ExcludeMissing
externalId: JsonField = JsonMissing.of(),
+ @JsonProperty("naics_code")
+ @ExcludeMissing
+ naicsCode: JsonField = JsonMissing.of(),
@JsonProperty("nature_of_business")
@ExcludeMissing
natureOfBusiness: JsonField = JsonMissing.of(),
@@ -2643,6 +2647,7 @@ private constructor(
updateRequest,
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
mutableMapOf(),
@@ -2680,6 +2685,15 @@ private constructor(
*/
fun externalId(): Optional = externalId.getOptional("external_id")
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business. Only
+ * present if naics_code was included in the update request.
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun naicsCode(): Optional = naicsCode.getOptional("naics_code")
+
/**
* Short description of the company's line of business (i.e., what does the company do?).
*
@@ -2732,6 +2746,13 @@ private constructor(
@ExcludeMissing
fun _externalId(): JsonField = externalId
+ /**
+ * Returns the raw JSON value of [naicsCode].
+ *
+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("naics_code") @ExcludeMissing fun _naicsCode(): JsonField = naicsCode
+
/**
* Returns the raw JSON value of [natureOfBusiness].
*
@@ -2784,6 +2805,7 @@ private constructor(
private var updateRequest: JsonField? = null
private var eventType: JsonField = JsonMissing.of()
private var externalId: JsonField = JsonMissing.of()
+ private var naicsCode: JsonField = JsonMissing.of()
private var natureOfBusiness: JsonField = JsonMissing.of()
private var websiteUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -2794,6 +2816,7 @@ private constructor(
updateRequest = kybPayload.updateRequest
eventType = kybPayload.eventType
externalId = kybPayload.externalId
+ naicsCode = kybPayload.naicsCode
natureOfBusiness = kybPayload.natureOfBusiness
websiteUrl = kybPayload.websiteUrl
additionalProperties = kybPayload.additionalProperties.toMutableMap()
@@ -2852,6 +2875,21 @@ private constructor(
*/
fun externalId(externalId: JsonField) = apply { this.externalId = externalId }
+ /**
+ * 6-digit North American Industry Classification System (NAICS) code for the business.
+ * Only present if naics_code was included in the update request.
+ */
+ fun naicsCode(naicsCode: String) = naicsCode(JsonField.of(naicsCode))
+
+ /**
+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun naicsCode(naicsCode: JsonField) = apply { this.naicsCode = naicsCode }
+
/**
* Short description of the company's line of business (i.e., what does the company
* do?).
@@ -2920,6 +2958,7 @@ private constructor(
checkRequired("updateRequest", updateRequest),
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties.toMutableMap(),
@@ -2937,6 +2976,7 @@ private constructor(
updateRequest().validate()
eventType().ifPresent { it.validate() }
externalId()
+ naicsCode()
natureOfBusiness()
websiteUrl()
validated = true
@@ -2962,6 +3002,7 @@ private constructor(
(updateRequest.asKnown().getOrNull()?.validity() ?: 0) +
(eventType.asKnown().getOrNull()?.validity() ?: 0) +
(if (externalId.asKnown().isPresent) 1 else 0) +
+ (if (naicsCode.asKnown().isPresent) 1 else 0) +
(if (natureOfBusiness.asKnown().isPresent) 1 else 0) +
(if (websiteUrl.asKnown().isPresent) 1 else 0)
@@ -4331,6 +4372,7 @@ private constructor(
updateRequest == other.updateRequest &&
eventType == other.eventType &&
externalId == other.externalId &&
+ naicsCode == other.naicsCode &&
natureOfBusiness == other.natureOfBusiness &&
websiteUrl == other.websiteUrl &&
additionalProperties == other.additionalProperties
@@ -4342,6 +4384,7 @@ private constructor(
updateRequest,
eventType,
externalId,
+ naicsCode,
natureOfBusiness,
websiteUrl,
additionalProperties,
@@ -4351,7 +4394,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "KybPayload{token=$token, updateRequest=$updateRequest, eventType=$eventType, externalId=$externalId, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
+ "KybPayload{token=$token, updateRequest=$updateRequest, eventType=$eventType, externalId=$externalId, naicsCode=$naicsCode, natureOfBusiness=$natureOfBusiness, websiteUrl=$websiteUrl, additionalProperties=$additionalProperties}"
}
/** KYC payload for an updated account holder. */
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderCreateParamsTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderCreateParamsTest.kt
index 41cf0349..c5b3e4f0 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderCreateParamsTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderCreateParamsTest.kt
@@ -97,6 +97,7 @@ internal class AccountHolderCreateParamsTest {
)
.externalId("external_id")
.kybPassedTimestamp("2022-03-08T08:00:00Z")
+ .naicsCode("541512")
.websiteUrl("https://www.mybusiness.com")
.build()
)
@@ -194,6 +195,7 @@ internal class AccountHolderCreateParamsTest {
)
.externalId("external_id")
.kybPassedTimestamp("2022-03-08T08:00:00Z")
+ .naicsCode("541512")
.websiteUrl("https://www.mybusiness.com")
.build()
)
@@ -290,6 +292,7 @@ internal class AccountHolderCreateParamsTest {
)
.externalId("external_id")
.kybPassedTimestamp("2022-03-08T08:00:00Z")
+ .naicsCode("541512")
.websiteUrl("https://www.mybusiness.com")
.build()
)
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderListPageResponseTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderListPageResponseTest.kt
index 3a8e72f6..998a0625 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderListPageResponseTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderListPageResponseTest.kt
@@ -123,6 +123,7 @@ internal class AccountHolderListPageResponseTest {
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("+15555555555")
.addRequiredDocument(
@@ -265,6 +266,7 @@ internal class AccountHolderListPageResponseTest {
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("+15555555555")
.addRequiredDocument(
@@ -410,6 +412,7 @@ internal class AccountHolderListPageResponseTest {
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("+15555555555")
.addRequiredDocument(
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponseTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponseTest.kt
index a735a637..0a8832f0 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponseTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderSimulateEnrollmentReviewResponseTest.kt
@@ -52,6 +52,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -92,6 +93,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -118,10 +120,12 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("phone_number")
.addRequiredDocument(
@@ -203,6 +207,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -245,6 +250,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -272,10 +278,12 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
+ assertThat(accountHolderSimulateEnrollmentReviewResponse.naicsCode()).contains("naics_code")
assertThat(accountHolderSimulateEnrollmentReviewResponse.natureOfBusiness())
.contains("nature_of_business")
assertThat(accountHolderSimulateEnrollmentReviewResponse.phoneNumber())
@@ -360,6 +368,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -400,6 +409,7 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -426,10 +436,12 @@ internal class AccountHolderSimulateEnrollmentReviewResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("phone_number")
.addRequiredDocument(
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderTest.kt
index f668dde1..151331ef 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderTest.kt
@@ -122,6 +122,7 @@ internal class AccountHolderTest {
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("+15555555555")
.addRequiredDocument(
@@ -263,6 +264,7 @@ internal class AccountHolderTest {
.phoneNumber("+15555555555")
.build()
)
+ assertThat(accountHolder.naicsCode()).contains("naics_code")
assertThat(accountHolder.natureOfBusiness()).contains("nature_of_business")
assertThat(accountHolder.phoneNumber()).contains("+15555555555")
assertThat(accountHolder.requiredDocuments().getOrNull())
@@ -404,6 +406,7 @@ internal class AccountHolderTest {
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("+15555555555")
.addRequiredDocument(
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateParamsTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateParamsTest.kt
index d3953760..ed955519 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateParamsTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateParamsTest.kt
@@ -50,6 +50,7 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -91,11 +92,13 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
@@ -162,6 +165,7 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -203,11 +207,13 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
@@ -259,6 +265,7 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -300,11 +307,13 @@ internal class AccountHolderUpdateParamsTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateResponseTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateResponseTest.kt
index bbb82a46..61938f69 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateResponseTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdateResponseTest.kt
@@ -56,6 +56,7 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -96,6 +97,7 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -122,10 +124,12 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("phone_number")
.addRequiredDocument(
@@ -211,6 +215,7 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -251,6 +256,7 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -278,10 +284,12 @@ internal class AccountHolderUpdateResponseTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
+ .naicsCode("naics_code")
.natureOfBusiness("nature_of_business")
.phoneNumber("phone_number")
.addRequiredDocument(
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEventTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEventTest.kt
index 648947d4..0b07e515 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEventTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderUpdatedWebhookEventTest.kt
@@ -60,6 +60,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -102,6 +103,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -112,6 +114,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
AccountHolderUpdatedWebhookEvent.KybPayload.EventType.ACCOUNT_HOLDER_UPDATED
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness("Software company selling solutions to the restaurant industry")
.websiteUrl("www.mybusiness.com")
.build()
@@ -171,6 +174,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -213,6 +217,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -223,6 +228,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
AccountHolderUpdatedWebhookEvent.KybPayload.EventType.ACCOUNT_HOLDER_UPDATED
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
@@ -266,6 +272,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -314,6 +321,7 @@ internal class AccountHolderUpdatedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/KybTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/KybTest.kt
index 26a23ee1..ba2defb1 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/KybTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/KybTest.kt
@@ -97,6 +97,7 @@ internal class KybTest {
)
.externalId("external_id")
.kybPassedTimestamp("2018-05-29T21:16:05Z")
+ .naicsCode("541512")
.websiteUrl("www.mybusiness.com")
.build()
@@ -188,6 +189,7 @@ internal class KybTest {
)
assertThat(kyb.externalId()).contains("external_id")
assertThat(kyb.kybPassedTimestamp()).contains("2018-05-29T21:16:05Z")
+ assertThat(kyb.naicsCode()).contains("541512")
assertThat(kyb.websiteUrl()).contains("www.mybusiness.com")
}
@@ -279,6 +281,7 @@ internal class KybTest {
)
.externalId("external_id")
.kybPassedTimestamp("2018-05-29T21:16:05Z")
+ .naicsCode("541512")
.websiteUrl("www.mybusiness.com")
.build()
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
index 92718683..f2c08fec 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
@@ -172,6 +172,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -211,6 +212,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -219,6 +221,7 @@ internal class ParsedWebhookEventTest {
)
.eventType(ParsedWebhookEvent.KybPayload.EventType.ACCOUNT_HOLDER_UPDATED)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness("Software company selling solutions to the restaurant industry")
.websiteUrl("www.mybusiness.com")
.build()
@@ -332,6 +335,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -372,6 +376,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -380,6 +385,7 @@ internal class ParsedWebhookEventTest {
)
.eventType(ParsedWebhookEvent.KybPayload.EventType.ACCOUNT_HOLDER_UPDATED)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
@@ -419,6 +425,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -519,6 +526,7 @@ internal class ParsedWebhookEventTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/services/async/AccountHolderServiceAsyncTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/services/async/AccountHolderServiceAsyncTest.kt
index 16db460e..cde7d409 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/services/async/AccountHolderServiceAsyncTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/services/async/AccountHolderServiceAsyncTest.kt
@@ -118,6 +118,7 @@ internal class AccountHolderServiceAsyncTest {
)
.externalId("external_id")
.kybPassedTimestamp("2022-03-08T08:00:00Z")
+ .naicsCode("541512")
.websiteUrl("https://www.mybusiness.com")
.build()
)
@@ -198,6 +199,7 @@ internal class AccountHolderServiceAsyncTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -241,11 +243,13 @@ internal class AccountHolderServiceAsyncTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/services/blocking/AccountHolderServiceTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/services/blocking/AccountHolderServiceTest.kt
index 62807a33..e4a902fc 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/services/blocking/AccountHolderServiceTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/services/blocking/AccountHolderServiceTest.kt
@@ -118,6 +118,7 @@ internal class AccountHolderServiceTest {
)
.externalId("external_id")
.kybPassedTimestamp("2022-03-08T08:00:00Z")
+ .naicsCode("541512")
.websiteUrl("https://www.mybusiness.com")
.build()
)
@@ -195,6 +196,7 @@ internal class AccountHolderServiceTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
@@ -238,11 +240,13 @@ internal class AccountHolderServiceTest {
.dob("1991-03-08 08:00:00")
.email("tom@middle-earth.com")
.firstName("Tom")
+ .governmentId("111-23-1412")
.lastName("Bombadil")
.phoneNumber("+15555555555")
.build()
)
.externalId("external_id")
+ .naicsCode("541512")
.natureOfBusiness(
"Software company selling solutions to the restaurant industry"
)