@@ -36,6 +36,7 @@ private constructor(
3636 private val exemptionType: JsonField <ExemptionType >,
3737 private val externalId: JsonField <String >,
3838 private val individual: JsonField <AccountHolderIndividualResponse >,
39+ private val naicsCode: JsonField <String >,
3940 private val natureOfBusiness: JsonField <String >,
4041 private val phoneNumber: JsonField <String >,
4142 private val requiredDocuments: JsonField <List <RequiredDocument >>,
@@ -82,6 +83,7 @@ private constructor(
8283 @JsonProperty(" individual" )
8384 @ExcludeMissing
8485 individual: JsonField <AccountHolderIndividualResponse > = JsonMissing .of(),
86+ @JsonProperty(" naics_code" ) @ExcludeMissing naicsCode: JsonField <String > = JsonMissing .of(),
8587 @JsonProperty(" nature_of_business" )
8688 @ExcludeMissing
8789 natureOfBusiness: JsonField <String > = JsonMissing .of(),
@@ -115,6 +117,7 @@ private constructor(
115117 exemptionType,
116118 externalId,
117119 individual,
120+ naicsCode,
118121 natureOfBusiness,
119122 phoneNumber,
120123 requiredDocuments,
@@ -245,6 +248,15 @@ private constructor(
245248 fun individual (): Optional <AccountHolderIndividualResponse > =
246249 individual.getOptional(" individual" )
247250
251+ /* *
252+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
253+ * System (NAICS) code for the business.
254+ *
255+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
256+ * server responded with an unexpected value).
257+ */
258+ fun naicsCode (): Optional <String > = naicsCode.getOptional(" naics_code" )
259+
248260 /* *
249261 * Only present when user_type == "BUSINESS". User-submitted description of the business.
250262 *
@@ -299,8 +311,8 @@ private constructor(
299311 /* *
300312 * The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
301313 * present. If the type is "BUSINESS" then the "business_entity", "control_person",
302- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
303- * present.
314+ * "beneficial_owner_individuals", "naics_code", " nature_of_business", and "website_url"
315+ * attributes will be present.
304316 *
305317 * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
306318 * server responded with an unexpected value).
@@ -430,6 +442,13 @@ private constructor(
430442 @ExcludeMissing
431443 fun _individual (): JsonField <AccountHolderIndividualResponse > = individual
432444
445+ /* *
446+ * Returns the raw JSON value of [naicsCode].
447+ *
448+ * Unlike [naicsCode], this method doesn't throw if the JSON field has an unexpected type.
449+ */
450+ @JsonProperty(" naics_code" ) @ExcludeMissing fun _naicsCode (): JsonField <String > = naicsCode
451+
433452 /* *
434453 * Returns the raw JSON value of [natureOfBusiness].
435454 *
@@ -545,6 +564,7 @@ private constructor(
545564 private var exemptionType: JsonField <ExemptionType > = JsonMissing .of()
546565 private var externalId: JsonField <String > = JsonMissing .of()
547566 private var individual: JsonField <AccountHolderIndividualResponse > = JsonMissing .of()
567+ private var naicsCode: JsonField <String > = JsonMissing .of()
548568 private var natureOfBusiness: JsonField <String > = JsonMissing .of()
549569 private var phoneNumber: JsonField <String > = JsonMissing .of()
550570 private var requiredDocuments: JsonField <MutableList <RequiredDocument >>? = null
@@ -572,6 +592,7 @@ private constructor(
572592 exemptionType = accountHolder.exemptionType
573593 externalId = accountHolder.externalId
574594 individual = accountHolder.individual
595+ naicsCode = accountHolder.naicsCode
575596 natureOfBusiness = accountHolder.natureOfBusiness
576597 phoneNumber = accountHolder.phoneNumber
577598 requiredDocuments = accountHolder.requiredDocuments.map { it.toMutableList() }
@@ -811,6 +832,21 @@ private constructor(
811832 this .individual = individual
812833 }
813834
835+ /* *
836+ * Only present when user_type == "BUSINESS". 6-digit North American Industry Classification
837+ * System (NAICS) code for the business.
838+ */
839+ fun naicsCode (naicsCode : String ) = naicsCode(JsonField .of(naicsCode))
840+
841+ /* *
842+ * Sets [Builder.naicsCode] to an arbitrary JSON value.
843+ *
844+ * You should usually call [Builder.naicsCode] with a well-typed [String] value instead.
845+ * This method is primarily for setting the field to an undocumented or not yet supported
846+ * value.
847+ */
848+ fun naicsCode (naicsCode : JsonField <String >) = apply { this .naicsCode = naicsCode }
849+
814850 /* *
815851 * Only present when user_type == "BUSINESS". User-submitted description of the business.
816852 */
@@ -926,8 +962,8 @@ private constructor(
926962 /* *
927963 * The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will
928964 * be present. If the type is "BUSINESS" then the "business_entity", "control_person",
929- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will
930- * be present.
965+ * "beneficial_owner_individuals", "naics_code", " nature_of_business", and "website_url"
966+ * attributes will be present.
931967 */
932968 fun userType (userType : UserType ) = userType(JsonField .of(userType))
933969
@@ -1013,6 +1049,7 @@ private constructor(
10131049 exemptionType,
10141050 externalId,
10151051 individual,
1052+ naicsCode,
10161053 natureOfBusiness,
10171054 phoneNumber,
10181055 (requiredDocuments ? : JsonMissing .of()).map { it.toImmutable() },
@@ -1044,6 +1081,7 @@ private constructor(
10441081 exemptionType().ifPresent { it.validate() }
10451082 externalId()
10461083 individual().ifPresent { it.validate() }
1084+ naicsCode()
10471085 natureOfBusiness()
10481086 phoneNumber()
10491087 requiredDocuments().ifPresent { it.forEach { it.validate() } }
@@ -1083,6 +1121,7 @@ private constructor(
10831121 (exemptionType.asKnown().getOrNull()?.validity() ? : 0 ) +
10841122 (if (externalId.asKnown().isPresent) 1 else 0 ) +
10851123 (individual.asKnown().getOrNull()?.validity() ? : 0 ) +
1124+ (if (naicsCode.asKnown().isPresent) 1 else 0 ) +
10861125 (if (natureOfBusiness.asKnown().isPresent) 1 else 0 ) +
10871126 (if (phoneNumber.asKnown().isPresent) 1 else 0 ) +
10881127 (requiredDocuments.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ? : 0 ) +
@@ -2447,8 +2486,8 @@ private constructor(
24472486 /* *
24482487 * The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
24492488 * present. If the type is "BUSINESS" then the "business_entity", "control_person",
2450- * "beneficial_owner_individuals", "nature_of_business", and "website_url" attributes will be
2451- * present.
2489+ * "beneficial_owner_individuals", "naics_code", " nature_of_business", and "website_url"
2490+ * attributes will be present.
24522491 */
24532492 class UserType @JsonCreator private constructor(private val value : JsonField <String >) : Enum {
24542493
@@ -3226,6 +3265,7 @@ private constructor(
32263265 exemptionType == other.exemptionType &&
32273266 externalId == other.externalId &&
32283267 individual == other.individual &&
3268+ naicsCode == other.naicsCode &&
32293269 natureOfBusiness == other.natureOfBusiness &&
32303270 phoneNumber == other.phoneNumber &&
32313271 requiredDocuments == other.requiredDocuments &&
@@ -3251,6 +3291,7 @@ private constructor(
32513291 exemptionType,
32523292 externalId,
32533293 individual,
3294+ naicsCode,
32543295 natureOfBusiness,
32553296 phoneNumber,
32563297 requiredDocuments,
@@ -3266,5 +3307,5 @@ private constructor(
32663307 override fun hashCode (): Int = hashCode
32673308
32683309 override fun toString () =
3269- " 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 }"
3310+ " 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 }"
32703311}
0 commit comments