Skip to content

Commit 9cf5661

Browse files
authored
Update Entity Type (#369)
* update EntityType common type * entityType?
1 parent fb7f6e6 commit 9cf5661

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

types/application.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { responseEncoding, ResponseType } from "axios"
2-
import { Address, BusinessContact, FullName, Officer, Phone, Relationship, DeviceFingerprint, Agent, RelationshipsArray, Beneficiary, Grantor, TrustContact, Trustee, UnimplementedRelationships, UnimplementedFields, EvaluationParams, Industry, Tags, BaseContactAttributes, Status } from "./common"
2+
import { Address, BusinessContact, FullName, Officer, Phone, Relationship, DeviceFingerprint, Agent, RelationshipsArray, Beneficiary, Grantor, TrustContact, Trustee, UnimplementedRelationships, UnimplementedFields, EvaluationParams, Industry, Tags, BaseContactAttributes, Status, EntityType } from "./common"
33

44
/**
55
* see [Application Statuses](https://docs.unit.co/applications/#application-statuses).
@@ -105,9 +105,6 @@ export type BusinessVertical =
105105
"TransportationOrWarehousing" |
106106
"Utilities"
107107

108-
109-
export type EntityType = "Corporation" | "LLC" | "Partnership" | "PubliclyTradedCorporation" | "PrivatelyHeldCorporation" | "NotForProfitOrganization"
110-
111108
export type CashFlow = "Unpredictable" | "Predictable"
112109

113110
interface OccupationAndIncome {

types/applicationForm.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BeneficialOwner } from "./application"
2-
import { Address, BusinessContact, FullName, Officer, Phone, Relationship } from "./common"
2+
import { Address, BusinessContact, EntityType, FullName, Officer, Phone, Relationship } from "./common"
33

44
export type ApplicationFormStage =
55
"ChooseBusinessOrIndividual" |
@@ -118,9 +118,9 @@ export interface ApplicationFormPrefill {
118118
*/
119119
stateOfIncorporation?: string
120120
/**
121-
* Business. Optional. One of "Corporation", "LLC" or "Partnership".
121+
* Business. Optional. One of LLC, Partnership, PubliclyTradedCorporation, PrivatelyHeldCorporation or NotForProfitOrganization.
122122
*/
123-
entityType?: string
123+
entityType?: EntityType
124124
/**
125125
* Business. Optional. Primary contact of the business.
126126
*/

types/common.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ export type Direction = "Credit" | "Debit"
406406

407407
export type CardNetwork = "Visa" | "Interlink" | "Accel" | "Allpoint" | "Other"
408408

409+
export type EntityType = "Corporation" | "LLC" | "Partnership" | "PubliclyTradedCorporation" | "PrivatelyHeldCorporation" | "NotForProfitOrganization"
410+
411+
409412
export interface RichMerchantData {
410413
logo?: string // URL of the merchant's logo.
411414
phone?: string // Phone number of the merchant.

types/customer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Address, AuthorizedUser, BusinessContact, FullName, Phone, Relationship, State, Tags, TrustContact } from "./common"
1+
import { Address, AuthorizedUser, BusinessContact, EntityType, FullName, Phone, Relationship, State, Tags, TrustContact } from "./common"
22

33
export type CustomerStatus = "Active" | "Archived"
44

@@ -162,9 +162,9 @@ export interface BusinessCustomer extends BaseCustomer {
162162
ein: string
163163

164164
/**
165-
* One of "Corporation" or "LLC".
165+
* One of Corporation, Partnership, LLC, PubliclyTradedCorporation, PrivatelyHeldCorporation or NotForProfitOrganization
166166
*/
167-
entityType: "Corporation" | "LLC"
167+
entityType: EntityType
168168

169169
/**
170170
* Primary contact of the business.

0 commit comments

Comments
 (0)