@lendi/act-credit-decisions-transform 2.0.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.
- package/README.md +31 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +28 -0
- package/lib/logger.d.ts +1 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/application-workflow-event.json +240 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +910 -0
- package/lib/schemas/public-application-event.json +250 -0
- package/lib/schemas/public-asset-event.json +679 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +609 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +278 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +133 -0
- package/lib/schemas/public-funding-position-event.json +419 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +262 -0
- package/lib/schemas/public-required-document-event.json +366 -0
- package/lib/schemas/public-update-applicant-event.json +606 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +10 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/transform-applicant.d.ts +8 -0
- package/lib/transform-events/transform-applicant.js +180 -0
- package/lib/transform-events/transform-application-workflow.d.ts +8 -0
- package/lib/transform-events/transform-application-workflow.js +30 -0
- package/lib/transform-events/transform-application.d.ts +20 -0
- package/lib/transform-events/transform-application.js +67 -0
- package/lib/transform-events/transform-asset-address.d.ts +25 -0
- package/lib/transform-events/transform-asset-address.js +87 -0
- package/lib/transform-events/transform-asset.d.ts +58 -0
- package/lib/transform-events/transform-asset.js +337 -0
- package/lib/transform-events/transform-employment.d.ts +9 -0
- package/lib/transform-events/transform-employment.js +107 -0
- package/lib/transform-events/transform-expenses.d.ts +41 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/transform-events/transform-funding-position.d.ts +21 -0
- package/lib/transform-events/transform-funding-position.js +107 -0
- package/lib/transform-events/transform-income.d.ts +48 -0
- package/lib/transform-events/transform-income.js +260 -0
- package/lib/transform-events/transform-liability.d.ts +12 -0
- package/lib/transform-events/transform-liability.js +117 -0
- package/lib/transform-events/transform-percent-owned.d.ts +10 -0
- package/lib/transform-events/transform-percent-owned.js +22 -0
- package/lib/transform-events/transform-required-document.d.ts +67 -0
- package/lib/transform-events/transform-required-document.js +148 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +25 -0
- package/lib/types/enum-mappings/applicant-gender.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-gender.js +11 -0
- package/lib/types/enum-mappings/applicant-type.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-type.js +10 -0
- package/lib/types/enum-mappings/asset-type.d.ts +3 -0
- package/lib/types/enum-mappings/asset-type.js +17 -0
- package/lib/types/enum-mappings/builder-type.d.ts +7 -0
- package/lib/types/enum-mappings/builder-type.js +9 -0
- package/lib/types/enum-mappings/company-structure.d.ts +7 -0
- package/lib/types/enum-mappings/company-structure.js +10 -0
- package/lib/types/enum-mappings/company-type.d.ts +7 -0
- package/lib/types/enum-mappings/company-type.js +11 -0
- package/lib/types/enum-mappings/construction-type.d.ts +7 -0
- package/lib/types/enum-mappings/construction-type.js +10 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +246 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +12 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +11 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +36 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +10 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.d.ts +3 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.js +16 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +15 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +16 -0
- package/lib/types/enum-mappings/index.d.ts +27 -0
- package/lib/types/enum-mappings/index.js +43 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +9 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +21 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +12 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +15 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +10 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +10 -0
- package/lib/types/enum-mappings/property-expense-category.d.ts +7 -0
- package/lib/types/enum-mappings/property-expense-category.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +12 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +9 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +11 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +23 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +11 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +13 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +13 -0
- package/lib/types/enum-mappings/to-be-purchased.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-purchased.js +8 -0
- package/lib/types/enum-mappings/to-be-used-as-security.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-used-as-security.js +8 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +9 -0
- package/lib/types/enum-mappings/trust.d.ts +7 -0
- package/lib/types/enum-mappings/trust.js +14 -0
- package/lib/types/enum-mappings/verification.d.ts +3 -0
- package/lib/types/enum-mappings/verification.js +13 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/application-workflow.d.ts +233 -0
- package/lib/types/events/application-workflow.js +172 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +628 -0
- package/lib/types/events/public-applicant.js +411 -0
- package/lib/types/events/public-application.d.ts +151 -0
- package/lib/types/events/public-application.js +103 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +502 -0
- package/lib/types/events/public-asset.js +348 -0
- package/lib/types/events/public-employment.d.ts +121 -0
- package/lib/types/events/public-employment.js +46 -0
- package/lib/types/events/public-expense.d.ts +84 -0
- package/lib/types/events/public-expense.js +51 -0
- package/lib/types/events/public-funding-position.d.ts +341 -0
- package/lib/types/events/public-funding-position.js +20 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +140 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +374 -0
- package/lib/types/events/public-required-document.js +297 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/update-application/merge-application.d.ts +14 -0
- package/lib/update-application/merge-application.js +175 -0
- package/lib/update-application/remove-ids-not-required.d.ts +11 -0
- package/lib/update-application/remove-ids-not-required.js +63 -0
- package/lib/update-application/update-primary-applicant.d.ts +27 -0
- package/lib/update-application/update-primary-applicant.js +46 -0
- package/lib/utils/address-tools.d.ts +84 -0
- package/lib/utils/address-tools.js +176 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/errors.d.ts +28 -0
- package/lib/utils/errors.js +43 -0
- package/lib/utils/formatYesNo.d.ts +8 -0
- package/lib/utils/formatYesNo.js +12 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +97 -0
- package/lib/utils/get-financial-institution.d.ts +8 -0
- package/lib/utils/get-financial-institution.js +17 -0
- package/lib/utils/is-asset-type.d.ts +25 -0
- package/lib/utils/is-asset-type.js +46 -0
- package/lib/utils/is-income-type.d.ts +73 -0
- package/lib/utils/is-income-type.js +134 -0
- package/lib/utils/iso-date.d.ts +7 -0
- package/lib/utils/iso-date.js +12 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +79 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create or update.
|
|
3
|
+
*/
|
|
4
|
+
export interface PublicApplicant {
|
|
5
|
+
payload: Payload;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* create applicant payload
|
|
14
|
+
*/
|
|
15
|
+
export interface Payload {
|
|
16
|
+
abn?: string;
|
|
17
|
+
acn?: string;
|
|
18
|
+
actingAsFranchiseDetails?: string;
|
|
19
|
+
applicantType: ApplicantType;
|
|
20
|
+
/**
|
|
21
|
+
* uuid of application
|
|
22
|
+
*/
|
|
23
|
+
applicationId: string;
|
|
24
|
+
branch?: string;
|
|
25
|
+
citizenship?: Countries;
|
|
26
|
+
cityOfBirth?: string;
|
|
27
|
+
/**
|
|
28
|
+
* uuid of source applicant
|
|
29
|
+
*/
|
|
30
|
+
clonedFromApplicantId?: string;
|
|
31
|
+
companyName?: string;
|
|
32
|
+
companyStructure?: CompanyStructure;
|
|
33
|
+
companyType?: CompanyType;
|
|
34
|
+
contact?: Contact;
|
|
35
|
+
countryOfBirth?: Countries;
|
|
36
|
+
creditStatus?: CreditStatus;
|
|
37
|
+
currentLender?: string;
|
|
38
|
+
/**
|
|
39
|
+
* uuid of customer
|
|
40
|
+
*/
|
|
41
|
+
customerId?: string;
|
|
42
|
+
dateOfBirth?: string;
|
|
43
|
+
dependants?: Dependant[];
|
|
44
|
+
/**
|
|
45
|
+
* 100% funding required for Term Loans
|
|
46
|
+
*/
|
|
47
|
+
doesTermLoanNeed100PercentFunding?: boolean;
|
|
48
|
+
employmentType?: EmploymentType;
|
|
49
|
+
entity: Entity;
|
|
50
|
+
firstName?: string;
|
|
51
|
+
gender?: Gender;
|
|
52
|
+
guarantorRelationshipToBorrower?: GuarantorRelationshipToBorrowerDefinition;
|
|
53
|
+
/**
|
|
54
|
+
* Has the applicant had any late payments, loan arrears or adverse credit history such as
|
|
55
|
+
* current or prior defaults or bankruptcies?
|
|
56
|
+
*/
|
|
57
|
+
hadLatePaymentsOrArrearsOrAdverseCreditHistory?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Have you had any difficulty in meeting your existing loan repayments, or had any
|
|
60
|
+
* financial judgments or legal proceedings, in the past two years?
|
|
61
|
+
*/
|
|
62
|
+
hadRepaymentDifficultyOrLegalProceedings?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The applicant has not been over the credit limit, in arrears or in hardship in relation
|
|
65
|
+
* to any existing credit or other fixed expenses
|
|
66
|
+
*/
|
|
67
|
+
hasGoodConduct?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Company doing more than 25% of business with one customer or supplier
|
|
70
|
+
*/
|
|
71
|
+
hasMoreThan25PercentBusinessWithOneCustomer?: boolean;
|
|
72
|
+
hasOutstandingTax?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Have you or a company with which you are associated had any past or current debts that
|
|
75
|
+
* were or are in default of the payment arrangement?
|
|
76
|
+
*/
|
|
77
|
+
hasPastOrCurrentDebts?: boolean;
|
|
78
|
+
hasSelfEmploymentProof?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* uuid of applicant
|
|
81
|
+
*/
|
|
82
|
+
id: string;
|
|
83
|
+
industryCode?: string;
|
|
84
|
+
investingInPropertyDetails?: string;
|
|
85
|
+
invitationStatus?: InvitationStatus;
|
|
86
|
+
isActingAsFranchise?: YesNoIntend;
|
|
87
|
+
isCommercialRelationship?: boolean;
|
|
88
|
+
isDiversified?: boolean;
|
|
89
|
+
isFirstHomeBuyer?: boolean;
|
|
90
|
+
isInvestingInProperty?: YesNoIntend;
|
|
91
|
+
isPassiveEntity?: boolean;
|
|
92
|
+
isPrimaryApplicant?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Is the principal place of business leased
|
|
95
|
+
*/
|
|
96
|
+
isPrincipalPlaceOfBusinessLeased?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Is the applicant a US citizen or resident for US tax purposes?
|
|
99
|
+
*/
|
|
100
|
+
isUSCitizenOrResident?: boolean;
|
|
101
|
+
isWorkingInImportExport?: YesNoIntend;
|
|
102
|
+
lastName?: string;
|
|
103
|
+
legalEntitiesInGroup?: number;
|
|
104
|
+
legalEntitiesWithCurrentLender?: number;
|
|
105
|
+
mailingAddress?: Address;
|
|
106
|
+
maritalDetails?: ApplicantKeyObject;
|
|
107
|
+
maritalStatus?: MaritalStatus;
|
|
108
|
+
meta: ApplicantMeta;
|
|
109
|
+
middleName?: string;
|
|
110
|
+
monthsWithCurrentLender?: number;
|
|
111
|
+
moreThan25PercentBusinessWithOneCustomerDetails?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Mothers Maiden Name
|
|
114
|
+
*/
|
|
115
|
+
mothersMaidenName?: string;
|
|
116
|
+
outstandingTaxDetails?: string;
|
|
117
|
+
principalPlaceOfBusinessLeasedDetails?: string;
|
|
118
|
+
registeredAddress?: Address;
|
|
119
|
+
registeredCountry?: Countries;
|
|
120
|
+
registeredDate?: string;
|
|
121
|
+
registeredState?: AustralianStates;
|
|
122
|
+
residencyStatus?: ResidencyStatus;
|
|
123
|
+
termLoanNeed100PercentFundingDetails?: string;
|
|
124
|
+
title?: Title;
|
|
125
|
+
totalIncomeEstimate?: number;
|
|
126
|
+
trustName?: string;
|
|
127
|
+
trustType?: TrustType;
|
|
128
|
+
/**
|
|
129
|
+
* Have you been: bankrupt or insolvent, petitioned or aware of anyone petitioning you for
|
|
130
|
+
* bankruptcy, advised to seek bankruptcy, or associated with a company that was or
|
|
131
|
+
* threatened to be placed into administration?
|
|
132
|
+
*/
|
|
133
|
+
wasBankruptOrInsolvent?: boolean;
|
|
134
|
+
workingInImportExportDetails?: string;
|
|
135
|
+
yearsOfTrading?: YearsOfTrading;
|
|
136
|
+
}
|
|
137
|
+
export declare enum ApplicantType {
|
|
138
|
+
Borrower = "BORROWER",
|
|
139
|
+
BorrowerAndGuarantor = "BORROWER_AND_GUARANTOR",
|
|
140
|
+
Guarantor = "GUARANTOR"
|
|
141
|
+
}
|
|
142
|
+
export declare enum Countries {
|
|
143
|
+
Afghanistan = "Afghanistan",
|
|
144
|
+
Albania = "Albania",
|
|
145
|
+
Algeria = "Algeria",
|
|
146
|
+
AmericanSamoa = "American Samoa",
|
|
147
|
+
Andorra = "Andorra",
|
|
148
|
+
Angola = "Angola",
|
|
149
|
+
Anguilla = "Anguilla",
|
|
150
|
+
Antarctica = "Antarctica",
|
|
151
|
+
AntiguaAndBarbuda = "Antigua And Barbuda",
|
|
152
|
+
Argentina = "Argentina",
|
|
153
|
+
Armenia = "Armenia",
|
|
154
|
+
Aruba = "Aruba",
|
|
155
|
+
Australia = "Australia",
|
|
156
|
+
Austria = "Austria",
|
|
157
|
+
Azerbaijan = "Azerbaijan",
|
|
158
|
+
Bahamas = "Bahamas",
|
|
159
|
+
Bahrain = "Bahrain",
|
|
160
|
+
Bangladesh = "Bangladesh",
|
|
161
|
+
Barbados = "Barbados",
|
|
162
|
+
Belarus = "Belarus",
|
|
163
|
+
Belgium = "Belgium",
|
|
164
|
+
Belize = "Belize",
|
|
165
|
+
Benin = "Benin",
|
|
166
|
+
Bermuda = "Bermuda",
|
|
167
|
+
Bhutan = "Bhutan",
|
|
168
|
+
Bolivia = "Bolivia",
|
|
169
|
+
BosniaAndHerzegovina = "Bosnia And Herzegovina",
|
|
170
|
+
Botswana = "Botswana",
|
|
171
|
+
BouvetIsland = "Bouvet Island",
|
|
172
|
+
Brazil = "Brazil",
|
|
173
|
+
BritishIndianOceanTerritory = "British Indian Ocean Territory",
|
|
174
|
+
BritishVirginIslands = "British Virgin Islands",
|
|
175
|
+
BruneiDarussalam = "Brunei Darussalam",
|
|
176
|
+
Bulgaria = "Bulgaria",
|
|
177
|
+
BurkinaFaso = "Burkina Faso",
|
|
178
|
+
Burundi = "Burundi",
|
|
179
|
+
Cambodia = "Cambodia",
|
|
180
|
+
Cameroon = "Cameroon",
|
|
181
|
+
Canada = "Canada",
|
|
182
|
+
CapeVerde = "Cape Verde",
|
|
183
|
+
CaymanIslands = "Cayman Islands",
|
|
184
|
+
CentralAfricanRepublic = "Central African Republic",
|
|
185
|
+
Chad = "Chad",
|
|
186
|
+
Chile = "Chile",
|
|
187
|
+
China = "China",
|
|
188
|
+
ChristmasIsland = "Christmas Island",
|
|
189
|
+
CocosKeelingIslands = "Cocos (Keeling) Islands",
|
|
190
|
+
Colombia = "Colombia",
|
|
191
|
+
Comoros = "Comoros",
|
|
192
|
+
CookIslands = "Cook Islands",
|
|
193
|
+
CostaRica = "Costa Rica",
|
|
194
|
+
CoteDIvoire = "Cote D'ivoire",
|
|
195
|
+
Croatia = "Croatia",
|
|
196
|
+
Cuba = "Cuba",
|
|
197
|
+
Cyprus = "Cyprus",
|
|
198
|
+
CzechRepublic = "Czech Republic",
|
|
199
|
+
DemocraticPeopleSRepublicOfKorea = "Democratic People's Republic of Korea",
|
|
200
|
+
DemocraticRepublicOfTheCongo = "Democratic Republic Of The Congo",
|
|
201
|
+
Denmark = "Denmark",
|
|
202
|
+
Djibouti = "Djibouti",
|
|
203
|
+
Dominica = "Dominica",
|
|
204
|
+
DominicanRepublic = "Dominican Republic",
|
|
205
|
+
EastTimor = "East Timor",
|
|
206
|
+
Ecuador = "Ecuador",
|
|
207
|
+
Egypt = "Egypt",
|
|
208
|
+
ElSalvador = "El Salvador",
|
|
209
|
+
EquatorialGuinea = "Equatorial Guinea",
|
|
210
|
+
Eritrea = "Eritrea",
|
|
211
|
+
Estonia = "Estonia",
|
|
212
|
+
Ethiopia = "Ethiopia",
|
|
213
|
+
FalklandIslands = "Falkland Islands",
|
|
214
|
+
FaroeIslands = "Faroe Islands",
|
|
215
|
+
FederatedStatesOfMicronesia = "Federated States Of Micronesia",
|
|
216
|
+
Fiji = "Fiji",
|
|
217
|
+
Finland = "Finland",
|
|
218
|
+
France = "France",
|
|
219
|
+
FrenchGuiana = "French Guiana",
|
|
220
|
+
FrenchPolynesia = "French Polynesia",
|
|
221
|
+
FrenchSouthernTerritories = "French Southern Territories",
|
|
222
|
+
Gabon = "Gabon",
|
|
223
|
+
Gambia = "Gambia",
|
|
224
|
+
Georgia = "Georgia",
|
|
225
|
+
Germany = "Germany",
|
|
226
|
+
Ghana = "Ghana",
|
|
227
|
+
Gibraltar = "Gibraltar",
|
|
228
|
+
Greece = "Greece",
|
|
229
|
+
Greenland = "Greenland",
|
|
230
|
+
Grenada = "Grenada",
|
|
231
|
+
Guadeloupe = "Guadeloupe",
|
|
232
|
+
Guam = "Guam",
|
|
233
|
+
Guatemala = "Guatemala",
|
|
234
|
+
Guinea = "Guinea",
|
|
235
|
+
GuineaBissau = "Guinea-bissau",
|
|
236
|
+
Guyana = "Guyana",
|
|
237
|
+
Haiti = "Haiti",
|
|
238
|
+
HeardIslandAndMcdonaldIslands = "Heard Island And Mcdonald Islands",
|
|
239
|
+
HolySeeVaticanCityState = "Holy See (Vatican City State)",
|
|
240
|
+
Honduras = "Honduras",
|
|
241
|
+
HongKong = "Hong Kong",
|
|
242
|
+
Hungary = "Hungary",
|
|
243
|
+
Iceland = "Iceland",
|
|
244
|
+
India = "India",
|
|
245
|
+
Indonesia = "Indonesia",
|
|
246
|
+
Iran = "Iran",
|
|
247
|
+
Iraq = "Iraq",
|
|
248
|
+
Ireland = "Ireland",
|
|
249
|
+
Israel = "Israel",
|
|
250
|
+
Italy = "Italy",
|
|
251
|
+
Jamaica = "Jamaica",
|
|
252
|
+
Japan = "Japan",
|
|
253
|
+
Jordan = "Jordan",
|
|
254
|
+
Kazakstan = "Kazakstan",
|
|
255
|
+
Kenya = "Kenya",
|
|
256
|
+
Kiribati = "Kiribati",
|
|
257
|
+
Kosovo = "Kosovo",
|
|
258
|
+
Kuwait = "Kuwait",
|
|
259
|
+
Kyrgyzstan = "Kyrgyzstan",
|
|
260
|
+
Laos = "Laos",
|
|
261
|
+
Latvia = "Latvia",
|
|
262
|
+
Lebanon = "Lebanon",
|
|
263
|
+
Lesotho = "Lesotho",
|
|
264
|
+
Liberia = "Liberia",
|
|
265
|
+
LibyanArabJamahiriya = "Libyan Arab Jamahiriya",
|
|
266
|
+
Liechtenstein = "Liechtenstein",
|
|
267
|
+
Lithuania = "Lithuania",
|
|
268
|
+
Luxembourg = "Luxembourg",
|
|
269
|
+
Macau = "Macau",
|
|
270
|
+
Macedonia = "Macedonia",
|
|
271
|
+
Madagascar = "Madagascar",
|
|
272
|
+
Malawi = "Malawi",
|
|
273
|
+
Malaysia = "Malaysia",
|
|
274
|
+
Maldives = "Maldives",
|
|
275
|
+
Mali = "Mali",
|
|
276
|
+
Malta = "Malta",
|
|
277
|
+
MarshallIslands = "Marshall Islands",
|
|
278
|
+
Martinique = "Martinique",
|
|
279
|
+
Mauritania = "Mauritania",
|
|
280
|
+
Mauritius = "Mauritius",
|
|
281
|
+
Mayotte = "Mayotte",
|
|
282
|
+
Mexico = "Mexico",
|
|
283
|
+
Monaco = "Monaco",
|
|
284
|
+
Mongolia = "Mongolia",
|
|
285
|
+
Montenegro = "Montenegro",
|
|
286
|
+
Montserrat = "Montserrat",
|
|
287
|
+
Morocco = "Morocco",
|
|
288
|
+
Mozambique = "Mozambique",
|
|
289
|
+
Myanmar = "Myanmar",
|
|
290
|
+
Namibia = "Namibia",
|
|
291
|
+
Nauru = "Nauru",
|
|
292
|
+
Nepal = "Nepal",
|
|
293
|
+
Netherlands = "Netherlands",
|
|
294
|
+
NetherlandsAntilles = "Netherlands Antilles",
|
|
295
|
+
NewCaledonia = "New Caledonia",
|
|
296
|
+
NewZealand = "New Zealand",
|
|
297
|
+
Nicaragua = "Nicaragua",
|
|
298
|
+
Niger = "Niger",
|
|
299
|
+
Nigeria = "Nigeria",
|
|
300
|
+
Niue = "Niue",
|
|
301
|
+
NorfolkIsland = "Norfolk Island",
|
|
302
|
+
NorthernMarianaIslands = "Northern Mariana Islands",
|
|
303
|
+
Norway = "Norway",
|
|
304
|
+
Oman = "Oman",
|
|
305
|
+
Pakistan = "Pakistan",
|
|
306
|
+
Palau = "Palau",
|
|
307
|
+
PalestinianTerritory = "Palestinian Territory",
|
|
308
|
+
Panama = "Panama",
|
|
309
|
+
PapuaNewGuinea = "Papua New Guinea",
|
|
310
|
+
Paraguay = "Paraguay",
|
|
311
|
+
Peru = "Peru",
|
|
312
|
+
Philippines = "Philippines",
|
|
313
|
+
Pitcairn = "Pitcairn",
|
|
314
|
+
Poland = "Poland",
|
|
315
|
+
Portugal = "Portugal",
|
|
316
|
+
PuertoRico = "Puerto Rico",
|
|
317
|
+
Qatar = "Qatar",
|
|
318
|
+
RepublicOfMoldova = "Republic Of Moldova",
|
|
319
|
+
Romania = "Romania",
|
|
320
|
+
RussianFederation = "Russian Federation",
|
|
321
|
+
Rwanda = "Rwanda",
|
|
322
|
+
SANMarino = "San Marino",
|
|
323
|
+
SaintHelena = "Saint Helena",
|
|
324
|
+
SaintKittsAndNevis = "Saint Kitts And Nevis",
|
|
325
|
+
SaintLucia = "Saint Lucia",
|
|
326
|
+
SaintPierreAndMiquelon = "Saint Pierre And Miquelon",
|
|
327
|
+
SaintVincentAndTheGrenadines = "Saint Vincent And The Grenadines",
|
|
328
|
+
Samoa = "Samoa",
|
|
329
|
+
SaoTomeAndPrincipe = "Sao Tome And Principe",
|
|
330
|
+
SaudiArabia = "Saudi Arabia",
|
|
331
|
+
Senegal = "Senegal",
|
|
332
|
+
Serbia = "Serbia",
|
|
333
|
+
Seychelles = "Seychelles",
|
|
334
|
+
SierraLeone = "Sierra Leone",
|
|
335
|
+
Singapore = "Singapore",
|
|
336
|
+
Slovakia = "Slovakia",
|
|
337
|
+
Slovenia = "Slovenia",
|
|
338
|
+
SolomonIslands = "Solomon Islands",
|
|
339
|
+
Somalia = "Somalia",
|
|
340
|
+
SouthAfrica = "South Africa",
|
|
341
|
+
SouthGeorgiaAndTheSouthSandwichIslands = "South Georgia And The South Sandwich Islands",
|
|
342
|
+
Spain = "Spain",
|
|
343
|
+
SriLanka = "Sri Lanka",
|
|
344
|
+
Sudan = "Sudan",
|
|
345
|
+
Suriname = "Suriname",
|
|
346
|
+
SvalbardAndJanMayen = "Svalbard And Jan Mayen",
|
|
347
|
+
Swaziland = "Swaziland",
|
|
348
|
+
Sweden = "Sweden",
|
|
349
|
+
Switzerland = "Switzerland",
|
|
350
|
+
SyrianArabRepublic = "Syrian Arab Republic",
|
|
351
|
+
Taiwan = "Taiwan",
|
|
352
|
+
Tajikistan = "Tajikistan",
|
|
353
|
+
Tanzania = "Tanzania",
|
|
354
|
+
Thailand = "Thailand",
|
|
355
|
+
TheRepublicOfSouthKorea = "The Republic of South Korea",
|
|
356
|
+
Togo = "Togo",
|
|
357
|
+
Tokelau = "Tokelau",
|
|
358
|
+
Tonga = "Tonga",
|
|
359
|
+
TrinidadAndTobago = "Trinidad And Tobago",
|
|
360
|
+
Tunisia = "Tunisia",
|
|
361
|
+
Turkey = "Turkey",
|
|
362
|
+
Turkmenistan = "Turkmenistan",
|
|
363
|
+
TurksAndCaicosIslands = "Turks And Caicos Islands",
|
|
364
|
+
Tuvalu = "Tuvalu",
|
|
365
|
+
USVirginIslands = "US Virgin Islands",
|
|
366
|
+
Uganda = "Uganda",
|
|
367
|
+
Ukraine = "Ukraine",
|
|
368
|
+
UnitedArabEmirates = "United Arab Emirates",
|
|
369
|
+
UnitedKingdom = "United Kingdom",
|
|
370
|
+
UnitedStatesMinorOutlyingIslands = "United States Minor Outlying Islands",
|
|
371
|
+
UnitedStatesOfAmerica = "United States of America",
|
|
372
|
+
Uruguay = "Uruguay",
|
|
373
|
+
Uzbekistan = "Uzbekistan",
|
|
374
|
+
Vanuatu = "Vanuatu",
|
|
375
|
+
Venezuela = "Venezuela",
|
|
376
|
+
Vietnam = "Vietnam",
|
|
377
|
+
WallisAndFutuna = "Wallis And Futuna",
|
|
378
|
+
WesternSahara = "Western Sahara",
|
|
379
|
+
Yemen = "Yemen",
|
|
380
|
+
Zambia = "Zambia",
|
|
381
|
+
Zimbabwe = "Zimbabwe"
|
|
382
|
+
}
|
|
383
|
+
export declare enum CompanyStructure {
|
|
384
|
+
Corporation = "CORPORATION",
|
|
385
|
+
Partnership = "PARTNERSHIP",
|
|
386
|
+
SoleTrader = "SOLE_TRADER",
|
|
387
|
+
Trust = "TRUST"
|
|
388
|
+
}
|
|
389
|
+
export declare enum CompanyType {
|
|
390
|
+
Incorporated = "INCORPORATED",
|
|
391
|
+
Ltd = "LTD",
|
|
392
|
+
Nl = "NL",
|
|
393
|
+
PtyLtd = "PTY_LTD"
|
|
394
|
+
}
|
|
395
|
+
export interface Contact {
|
|
396
|
+
currentAddress?: CommonAddressProperties;
|
|
397
|
+
/**
|
|
398
|
+
* The applicant email
|
|
399
|
+
*/
|
|
400
|
+
emailAddress?: string;
|
|
401
|
+
/**
|
|
402
|
+
* applicant's mailing address being captured as part of funnels 5 (post product select)
|
|
403
|
+
*/
|
|
404
|
+
mailingAddress?: Address;
|
|
405
|
+
/**
|
|
406
|
+
* applicant's mobile number formatted in +611234567890
|
|
407
|
+
*/
|
|
408
|
+
mobileNumber?: string;
|
|
409
|
+
/**
|
|
410
|
+
* applicant's post settlement address being captured as part of funnels 5 (post product
|
|
411
|
+
* select)
|
|
412
|
+
*/
|
|
413
|
+
postSettlementAddress?: Address;
|
|
414
|
+
previousAddresses?: PreviousAddress[];
|
|
415
|
+
}
|
|
416
|
+
export interface CommonAddressProperties {
|
|
417
|
+
externalId?: string;
|
|
418
|
+
housingStatus?: HousingStatusList;
|
|
419
|
+
residentialAddress?: Address;
|
|
420
|
+
startDate?: string;
|
|
421
|
+
}
|
|
422
|
+
export declare enum HousingStatusList {
|
|
423
|
+
Boarding = "Boarding",
|
|
424
|
+
Caravan = "Caravan",
|
|
425
|
+
Other = "Other",
|
|
426
|
+
OwnHome = "Own Home",
|
|
427
|
+
OwnHomeMortgage = "Own Home Mortgage",
|
|
428
|
+
Renting = "Renting",
|
|
429
|
+
SuppliedByEmployer = "Supplied by Employer",
|
|
430
|
+
WithParents = "With Parents"
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* applicant's mailing address being captured as part of funnels 5 (post product select)
|
|
434
|
+
*
|
|
435
|
+
* applicant's post settlement address being captured as part of funnels 5 (post product
|
|
436
|
+
* select)
|
|
437
|
+
*/
|
|
438
|
+
export interface Address {
|
|
439
|
+
city?: string;
|
|
440
|
+
country?: Countries;
|
|
441
|
+
formatted?: string;
|
|
442
|
+
postcode?: string;
|
|
443
|
+
standard?: AddressStandard;
|
|
444
|
+
state?: string;
|
|
445
|
+
}
|
|
446
|
+
export interface AddressStandard {
|
|
447
|
+
/**
|
|
448
|
+
* The building name
|
|
449
|
+
*/
|
|
450
|
+
buildingName?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Postal address, usually a PO Box or Locked Bag
|
|
453
|
+
*/
|
|
454
|
+
deliveryAddress?: string;
|
|
455
|
+
level?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The lot number
|
|
458
|
+
*/
|
|
459
|
+
lotSection?: string;
|
|
460
|
+
streetName?: string;
|
|
461
|
+
streetNumber?: string;
|
|
462
|
+
/**
|
|
463
|
+
* The street suffix
|
|
464
|
+
*/
|
|
465
|
+
streetSuffix?: string;
|
|
466
|
+
streetType?: string;
|
|
467
|
+
unit?: string;
|
|
468
|
+
}
|
|
469
|
+
export interface PreviousAddress {
|
|
470
|
+
endDate?: string;
|
|
471
|
+
externalId?: string;
|
|
472
|
+
housingStatus?: HousingStatusList;
|
|
473
|
+
residentialAddress?: Address;
|
|
474
|
+
startDate?: string;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* current credit status of the applicant (Customer declared value)
|
|
478
|
+
*/
|
|
479
|
+
export declare enum CreditStatus {
|
|
480
|
+
Average = "AVERAGE",
|
|
481
|
+
Excellent = "EXCELLENT",
|
|
482
|
+
Fair = "FAIR",
|
|
483
|
+
Unknown = "UNKNOWN"
|
|
484
|
+
}
|
|
485
|
+
export interface Dependant {
|
|
486
|
+
age?: number;
|
|
487
|
+
/**
|
|
488
|
+
* Id for entity.
|
|
489
|
+
*/
|
|
490
|
+
id?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Whether dependant was added for this applicant.
|
|
493
|
+
*/
|
|
494
|
+
isAddedOnThisApplicant?: boolean;
|
|
495
|
+
sharedWith?: ApplicantKeyObject;
|
|
496
|
+
}
|
|
497
|
+
export interface ApplicantKeyObject {
|
|
498
|
+
applicantId?: string;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* applicant's employment type
|
|
502
|
+
*/
|
|
503
|
+
export declare enum EmploymentType {
|
|
504
|
+
Employee = "EMPLOYEE",
|
|
505
|
+
SelfEmployed = "SELF_EMPLOYED",
|
|
506
|
+
Unknown = "UNKNOWN"
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* applicant's entity. For a person applicant this is 'PERSON'
|
|
510
|
+
*/
|
|
511
|
+
export declare enum Entity {
|
|
512
|
+
Company = "COMPANY",
|
|
513
|
+
Person = "PERSON",
|
|
514
|
+
Trust = "TRUST"
|
|
515
|
+
}
|
|
516
|
+
export declare enum Gender {
|
|
517
|
+
Female = "FEMALE",
|
|
518
|
+
Male = "MALE",
|
|
519
|
+
Undisclosed = "UNDISCLOSED",
|
|
520
|
+
Unknown = "UNKNOWN"
|
|
521
|
+
}
|
|
522
|
+
export interface GuarantorRelationshipToBorrowerDefinition {
|
|
523
|
+
applicantId: string;
|
|
524
|
+
type: GuarantorRelationshipToBorrowerType;
|
|
525
|
+
typeOther?: string;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* The relationship between borrower and guarantor.
|
|
529
|
+
*/
|
|
530
|
+
export declare enum GuarantorRelationshipToBorrowerType {
|
|
531
|
+
Brother = "Brother",
|
|
532
|
+
Daughter = "Daughter",
|
|
533
|
+
Father = "Father",
|
|
534
|
+
Mother = "Mother",
|
|
535
|
+
Other = "Other",
|
|
536
|
+
OtherRelative = "Other Relative",
|
|
537
|
+
Sister = "Sister",
|
|
538
|
+
Son = "Son",
|
|
539
|
+
Spouse = "Spouse"
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* different invitation statuses an applicant can have
|
|
543
|
+
*/
|
|
544
|
+
export declare enum InvitationStatus {
|
|
545
|
+
Accepted = "ACCEPTED",
|
|
546
|
+
Cancelled = "CANCELLED",
|
|
547
|
+
Expired = "EXPIRED",
|
|
548
|
+
Pending = "PENDING"
|
|
549
|
+
}
|
|
550
|
+
export declare enum YesNoIntend {
|
|
551
|
+
Intend = "Intend",
|
|
552
|
+
No = "No",
|
|
553
|
+
Yes = "Yes"
|
|
554
|
+
}
|
|
555
|
+
export declare enum MaritalStatus {
|
|
556
|
+
DeFacto = "DE_FACTO",
|
|
557
|
+
Divorced = "DIVORCED",
|
|
558
|
+
Married = "MARRIED",
|
|
559
|
+
Single = "SINGLE",
|
|
560
|
+
Unknown = "UNKNOWN"
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* The metadata of the applicant
|
|
564
|
+
*/
|
|
565
|
+
export interface ApplicantMeta {
|
|
566
|
+
/**
|
|
567
|
+
* uuid of user who made the action (create/update)
|
|
568
|
+
*/
|
|
569
|
+
actionedBy: string;
|
|
570
|
+
/**
|
|
571
|
+
* role of the user that made the action
|
|
572
|
+
*/
|
|
573
|
+
actionedByRole: ActionedByRole;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* role of the user that made the action
|
|
577
|
+
*/
|
|
578
|
+
export declare enum ActionedByRole {
|
|
579
|
+
Customer = "customer",
|
|
580
|
+
Team = "team"
|
|
581
|
+
}
|
|
582
|
+
export declare enum AustralianStates {
|
|
583
|
+
Act = "ACT",
|
|
584
|
+
NT = "NT",
|
|
585
|
+
Nsw = "NSW",
|
|
586
|
+
Qld = "QLD",
|
|
587
|
+
Sa = "SA",
|
|
588
|
+
Tas = "TAS",
|
|
589
|
+
Vic = "VIC",
|
|
590
|
+
Wa = "WA"
|
|
591
|
+
}
|
|
592
|
+
export declare enum ResidencyStatus {
|
|
593
|
+
AustralianCitizen = "AUSTRALIAN_CITIZEN",
|
|
594
|
+
PermanentResident = "PERMANENT_RESIDENT",
|
|
595
|
+
TemporaryResident = "TEMPORARY_RESIDENT",
|
|
596
|
+
Unknown = "UNKNOWN"
|
|
597
|
+
}
|
|
598
|
+
export declare enum Title {
|
|
599
|
+
DR = "DR",
|
|
600
|
+
MS = "MS",
|
|
601
|
+
Miss = "MISS",
|
|
602
|
+
Mr = "MR",
|
|
603
|
+
Mrs = "MRS",
|
|
604
|
+
Unknown = "UNKNOWN"
|
|
605
|
+
}
|
|
606
|
+
export declare enum TrustType {
|
|
607
|
+
CashManagementTrust = "CASH_MANAGEMENT_TRUST",
|
|
608
|
+
DiscretionaryTrust = "DISCRETIONARY_TRUST",
|
|
609
|
+
Fixed = "FIXED",
|
|
610
|
+
Hybrid = "HYBRID",
|
|
611
|
+
Other = "OTHER",
|
|
612
|
+
SimpleOrBare = "SIMPLE_OR_BARE",
|
|
613
|
+
SuperannuationTrusts = "SUPERANNUATION_TRUSTS",
|
|
614
|
+
Unit = "UNIT"
|
|
615
|
+
}
|
|
616
|
+
export declare enum YearsOfTrading {
|
|
617
|
+
The1 = "1",
|
|
618
|
+
The10 = ">10",
|
|
619
|
+
The2 = "2",
|
|
620
|
+
The3 = "3",
|
|
621
|
+
The4 = "4",
|
|
622
|
+
The5 = "5",
|
|
623
|
+
The510 = "5-10"
|
|
624
|
+
}
|
|
625
|
+
export declare enum Type {
|
|
626
|
+
CreateApplicant = "CreateApplicant",
|
|
627
|
+
UpdateApplicant = "UpdateApplicant"
|
|
628
|
+
}
|