Skip to content

Commit 8c0f827

Browse files
Merge pull request #479 from unit-finance/add-app-form-allowed-types
Add AllowedApplicationTypes of ApplicationForm V2
2 parents ccf01f9 + 44071e0 commit 8c0f827

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

types/applicationForm.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export type ApplicationFormStage =
2323
"EnterSoleProprietorshipInformation" |
2424
"SoleProprietorshipPhoneVerification" |
2525
"SoleProprietorshipApplicationCreated"
26+
export type AllowedApplicationTypes = "Individual" | "SoleProprietorship" | "Business" | "MultipleMemberBusiness" | "SingleMemberBusiness"
27+
2628

2729
export interface CreateApplicationForm {
2830
type: "applicationForm"
@@ -38,7 +40,7 @@ export interface CreateApplicationForm {
3840
/**
3941
* Optional. Array of Individual, Business or SoleProprietorship. Restrict the available application type for this specific application.
4042
*/
41-
allowedApplicationTypes?: Array<"Individual" | "SoleProprietorship" | "Business">
43+
allowedApplicationTypes?: Array<AllowedApplicationTypes>
4244
/**
4345
* Optional. Override disclosure and redirect URLs that were defined in the application form settings.
4446
*/
@@ -71,7 +73,7 @@ export interface CreateApplicationFormV2 {
7173
/**
7274
* Optional. Array of Individual, Business or SoleProprietorship. Restrict the available application type for this specific application.
7375
*/
74-
allowedApplicationTypes?: Array<"Individual" | "SoleProprietorship" | "Business">
76+
allowedApplicationTypes?: Array<AllowedApplicationTypes>
7577
/**
7678
* Optional. Override disclosure and redirect URLs that were defined in the application form settings.
7779
*/
@@ -179,7 +181,7 @@ export interface ApplicationFormPrefill {
179181
/**
180182
* Optional. One of "Individual", "Business" or "SoleProprietorship".
181183
*/
182-
applicationType?: "Individual" | "SoleProprietorship" | "Business"
184+
applicationType?: AllowedApplicationTypes
183185

184186
/**
185187
* Individual. Optional. Full name of the individual.

0 commit comments

Comments
 (0)