@kanmon/sdk 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 +2 -0
- package/package.json +45 -0
- package/src/index.ts +65 -0
- package/src/openapi/.openapi-generator/FILES +130 -0
- package/src/openapi/.openapi-generator/VERSION +1 -0
- package/src/openapi/.openapi-generator-ignore +30 -0
- package/src/openapi/apis/BankAccountsApi.ts +503 -0
- package/src/openapi/apis/BusinessesApi.ts +614 -0
- package/src/openapi/apis/ConnectTokensApi.ts +133 -0
- package/src/openapi/apis/DocumentsApi.ts +150 -0
- package/src/openapi/apis/DrawRequestsApi.ts +258 -0
- package/src/openapi/apis/EmbeddedSessionsApi.ts +141 -0
- package/src/openapi/apis/InvoicesApi.ts +272 -0
- package/src/openapi/apis/IssuedProductsApi.ts +251 -0
- package/src/openapi/apis/OffersApi.ts +251 -0
- package/src/openapi/apis/PaymentsApi.ts +268 -0
- package/src/openapi/apis/PrequalificationsApi.ts +141 -0
- package/src/openapi/apis/UsersApi.ts +622 -0
- package/src/openapi/apis/baseapi.ts +37 -0
- package/src/openapi/apis/exception.ts +15 -0
- package/src/openapi/auth/auth.ts +79 -0
- package/src/openapi/configuration.ts +82 -0
- package/src/openapi/http/http.ts +247 -0
- package/src/openapi/http/isomorphic-fetch.ts +32 -0
- package/src/openapi/index.ts +12 -0
- package/src/openapi/middleware.ts +66 -0
- package/src/openapi/models/ActivityLog.ts +98 -0
- package/src/openapi/models/Address.ts +140 -0
- package/src/openapi/models/BadRequestException.ts +63 -0
- package/src/openapi/models/BankAccountAlreadyExistException.ts +63 -0
- package/src/openapi/models/BankAccountNotFoundException.ts +63 -0
- package/src/openapi/models/BankStatementsInvalidException.ts +63 -0
- package/src/openapi/models/Business.ts +126 -0
- package/src/openapi/models/BusinessAddress.ts +143 -0
- package/src/openapi/models/BusinessAlreadyExistsException.ts +63 -0
- package/src/openapi/models/BusinessBankAccount.ts +126 -0
- package/src/openapi/models/BusinessDocument.ts +98 -0
- package/src/openapi/models/BusinessDocumentType.ts +17 -0
- package/src/openapi/models/BusinessHasNoInvoiceFinancingProductException.ts +63 -0
- package/src/openapi/models/BusinessHasNoPrimaryOwnerException.ts +63 -0
- package/src/openapi/models/BusinessNotFoundException.ts +63 -0
- package/src/openapi/models/BusinessPlaidBankAccountNotFoundException.ts +63 -0
- package/src/openapi/models/BusinessPrequalification.ts +116 -0
- package/src/openapi/models/CheckingAccountRequiredException.ts +63 -0
- package/src/openapi/models/ConnectToken.ts +38 -0
- package/src/openapi/models/CreateBusinessBankAccountRequestBody.ts +116 -0
- package/src/openapi/models/CreateBusinessDocumentsResponse.ts +39 -0
- package/src/openapi/models/CreateBusinessRequestBody.ts +99 -0
- package/src/openapi/models/CreateConnectTokenRequestBody.ts +48 -0
- package/src/openapi/models/CreateEmbeddedSession409Response.ts +65 -0
- package/src/openapi/models/CreateSessionTokenRequestBody.ts +56 -0
- package/src/openapi/models/CreateSessionTokenRequestBodyData.ts +56 -0
- package/src/openapi/models/CreateUser409Response.ts +66 -0
- package/src/openapi/models/CreateUserRequestBody.ts +125 -0
- package/src/openapi/models/DrawRequest.ts +138 -0
- package/src/openapi/models/DrawRequestNotFoundException.ts +63 -0
- package/src/openapi/models/DrawRequestState.ts +21 -0
- package/src/openapi/models/EmbeddedSession.ts +38 -0
- package/src/openapi/models/FixedDateInvoiceRepaymentWindow.ts +50 -0
- package/src/openapi/models/FixedDurationInvoiceRepaymentWindow.ts +50 -0
- package/src/openapi/models/ForbiddenException.ts +63 -0
- package/src/openapi/models/GetActivityLogsResponse.ts +50 -0
- package/src/openapi/models/GetBusinessBankAccountsResponse.ts +50 -0
- package/src/openapi/models/GetBusinessesResponse.ts +50 -0
- package/src/openapi/models/GetDrawRequestsResponse.ts +50 -0
- package/src/openapi/models/GetInvoice404Response.ts +65 -0
- package/src/openapi/models/GetInvoicesResponse.ts +50 -0
- package/src/openapi/models/GetIssuedProductsResponse.ts +50 -0
- package/src/openapi/models/GetOffersResponse.ts +50 -0
- package/src/openapi/models/GetPaymentScheduleResponse.ts +50 -0
- package/src/openapi/models/GetPrequalificationsResponse.ts +50 -0
- package/src/openapi/models/GetUsersResponse.ts +50 -0
- package/src/openapi/models/InternalServerErrorException.ts +63 -0
- package/src/openapi/models/InvalidInvoiceDueDateException.ts +63 -0
- package/src/openapi/models/Invoice.ts +281 -0
- package/src/openapi/models/InvoiceFinancingOfferTerms.ts +61 -0
- package/src/openapi/models/InvoiceFinancingServicingData.ts +71 -0
- package/src/openapi/models/InvoiceFlowSessionTokenData.ts +51 -0
- package/src/openapi/models/InvoiceFlowWithInvoiceFileSessionTokenData.ts +51 -0
- package/src/openapi/models/InvoiceNotFoundException.ts +63 -0
- package/src/openapi/models/InvoicePaymentPlan.ts +58 -0
- package/src/openapi/models/InvoicePayorAddress.ts +143 -0
- package/src/openapi/models/InvoiceRepaymentSchedule.ts +39 -0
- package/src/openapi/models/InvoiceRepaymentScheduleItem.ts +68 -0
- package/src/openapi/models/InvoiceStatus.ts +22 -0
- package/src/openapi/models/IssuedProduct.ts +115 -0
- package/src/openapi/models/IssuedProductNotFoundException.ts +63 -0
- package/src/openapi/models/IssuedProductServicingData.ts +234 -0
- package/src/openapi/models/LineOfCreditOfferTerms.ts +80 -0
- package/src/openapi/models/LineOfCreditServicingData.ts +90 -0
- package/src/openapi/models/McaOfferTerms.ts +96 -0
- package/src/openapi/models/McaServicingData.ts +116 -0
- package/src/openapi/models/MergeUsersRequestBody.ts +68 -0
- package/src/openapi/models/MergeUsersResponseBody.ts +39 -0
- package/src/openapi/models/MultipleDurationInvoiceRepaymentWindow.ts +48 -0
- package/src/openapi/models/ObjectSerializer.ts +643 -0
- package/src/openapi/models/Offer.ts +106 -0
- package/src/openapi/models/OfferAlreadySelectedException.ts +63 -0
- package/src/openapi/models/OfferNotFoundException.ts +63 -0
- package/src/openapi/models/OfferNotLockedException.ts +63 -0
- package/src/openapi/models/OfferTerms.ts +184 -0
- package/src/openapi/models/PaginationResult.ts +58 -0
- package/src/openapi/models/PaymentOrder.ts +198 -0
- package/src/openapi/models/PaymentOrderNotFoundException.ts +63 -0
- package/src/openapi/models/PaymentOrderStatus.ts +19 -0
- package/src/openapi/models/PaymentPlanRepaymentSchedule.ts +39 -0
- package/src/openapi/models/PaymentPlanRepaymentScheduleItem.ts +48 -0
- package/src/openapi/models/PaymentScheduleItem.ts +56 -0
- package/src/openapi/models/PaymentScheduleItemPaymentOrder.ts +201 -0
- package/src/openapi/models/PlaidAssetReportsInvalidException.ts +63 -0
- package/src/openapi/models/PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsForBusinessException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsWithEmailException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerNotFoundException.ts +63 -0
- package/src/openapi/models/SessionInvoice.ts +165 -0
- package/src/openapi/models/SessionInvoiceWithInvoiceFile.ts +175 -0
- package/src/openapi/models/SomeOffersHaveExpiredException.ts +63 -0
- package/src/openapi/models/TermLoanOfferTerms.ts +90 -0
- package/src/openapi/models/TermLoanServicingData.ts +100 -0
- package/src/openapi/models/UnmergeableBusinessException.ts +63 -0
- package/src/openapi/models/UpdateBusinessAccountRequestBody.ts +68 -0
- package/src/openapi/models/UpdateBusinessRequestBody.ts +99 -0
- package/src/openapi/models/UpdateUser409Response.ts +65 -0
- package/src/openapi/models/UpdateUserRequestBody.ts +95 -0
- package/src/openapi/models/User.ts +152 -0
- package/src/openapi/models/UserAddress.ts +143 -0
- package/src/openapi/models/UserAlreadyExistsWithEmailException.ts +63 -0
- package/src/openapi/models/UserAlreadyExistsWithPlatformUserIdException.ts +63 -0
- package/src/openapi/models/UserNotFoundException.ts +63 -0
- package/src/openapi/models/all.ts +102 -0
- package/src/openapi/rxjsStub.ts +27 -0
- package/src/openapi/servers.ts +58 -0
- package/src/openapi/types/ObjectParamAPI.ts +1403 -0
- package/src/openapi/types/ObservableAPI.ts +1348 -0
- package/src/openapi/types/PromiseAPI.ts +995 -0
- package/src/openapi/util.ts +37 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class Address {
|
|
16
|
+
'addressLineOne': string;
|
|
17
|
+
'addressLineTwo'?: string | null;
|
|
18
|
+
'city': string;
|
|
19
|
+
/**
|
|
20
|
+
* The 2 character abbreviated state
|
|
21
|
+
*/
|
|
22
|
+
'state': AddressStateEnum;
|
|
23
|
+
/**
|
|
24
|
+
* Zip code can be 5 digits, 9 digits, or 5+4 including a hyphen or plus sign, e.g. 90210, 902101234, 90210-1234 or 90210+1234
|
|
25
|
+
*/
|
|
26
|
+
'zipcode': string;
|
|
27
|
+
/**
|
|
28
|
+
* USA
|
|
29
|
+
*/
|
|
30
|
+
'country': string;
|
|
31
|
+
|
|
32
|
+
static readonly discriminator: string | undefined = undefined;
|
|
33
|
+
|
|
34
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
35
|
+
{
|
|
36
|
+
"name": "addressLineOne",
|
|
37
|
+
"baseName": "addressLineOne",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": ""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "addressLineTwo",
|
|
43
|
+
"baseName": "addressLineTwo",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "city",
|
|
49
|
+
"baseName": "city",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": ""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "state",
|
|
55
|
+
"baseName": "state",
|
|
56
|
+
"type": "AddressStateEnum",
|
|
57
|
+
"format": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "zipcode",
|
|
61
|
+
"baseName": "zipcode",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "country",
|
|
67
|
+
"baseName": "country",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": ""
|
|
70
|
+
} ];
|
|
71
|
+
|
|
72
|
+
static getAttributeTypeMap() {
|
|
73
|
+
return Address.attributeTypeMap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public constructor() {
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
export enum AddressStateEnum {
|
|
82
|
+
Al = 'AL',
|
|
83
|
+
Ky = 'KY',
|
|
84
|
+
Oh = 'OH',
|
|
85
|
+
Ak = 'AK',
|
|
86
|
+
La = 'LA',
|
|
87
|
+
Ok = 'OK',
|
|
88
|
+
Az = 'AZ',
|
|
89
|
+
Me = 'ME',
|
|
90
|
+
Or = 'OR',
|
|
91
|
+
Ar = 'AR',
|
|
92
|
+
Md = 'MD',
|
|
93
|
+
Pa = 'PA',
|
|
94
|
+
As = 'AS',
|
|
95
|
+
Ma = 'MA',
|
|
96
|
+
Pr = 'PR',
|
|
97
|
+
Ca = 'CA',
|
|
98
|
+
Mi = 'MI',
|
|
99
|
+
Ri = 'RI',
|
|
100
|
+
Co = 'CO',
|
|
101
|
+
Mn = 'MN',
|
|
102
|
+
Sc = 'SC',
|
|
103
|
+
Ct = 'CT',
|
|
104
|
+
Ms = 'MS',
|
|
105
|
+
Sd = 'SD',
|
|
106
|
+
De = 'DE',
|
|
107
|
+
Mo = 'MO',
|
|
108
|
+
Tn = 'TN',
|
|
109
|
+
Dc = 'DC',
|
|
110
|
+
Mt = 'MT',
|
|
111
|
+
Tx = 'TX',
|
|
112
|
+
Fl = 'FL',
|
|
113
|
+
Ne = 'NE',
|
|
114
|
+
Tt = 'TT',
|
|
115
|
+
Ga = 'GA',
|
|
116
|
+
Nv = 'NV',
|
|
117
|
+
Ut = 'UT',
|
|
118
|
+
Gu = 'GU',
|
|
119
|
+
Nh = 'NH',
|
|
120
|
+
Vt = 'VT',
|
|
121
|
+
Hi = 'HI',
|
|
122
|
+
Nj = 'NJ',
|
|
123
|
+
Va = 'VA',
|
|
124
|
+
Id = 'ID',
|
|
125
|
+
Nm = 'NM',
|
|
126
|
+
Vi = 'VI',
|
|
127
|
+
Il = 'IL',
|
|
128
|
+
Ny = 'NY',
|
|
129
|
+
Wa = 'WA',
|
|
130
|
+
In = 'IN',
|
|
131
|
+
Nc = 'NC',
|
|
132
|
+
Wv = 'WV',
|
|
133
|
+
Ia = 'IA',
|
|
134
|
+
Nd = 'ND',
|
|
135
|
+
Wi = 'WI',
|
|
136
|
+
Ks = 'KS',
|
|
137
|
+
Mp = 'MP',
|
|
138
|
+
Wy = 'WY'
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class BadRequestException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BadRequestExceptionErrorCodeEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The human readable description of the error.
|
|
22
|
+
*/
|
|
23
|
+
'message': string;
|
|
24
|
+
/**
|
|
25
|
+
* When the error occurred - ISO 8601 format.
|
|
26
|
+
*/
|
|
27
|
+
'timestamp': string;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "errorCode",
|
|
34
|
+
"baseName": "errorCode",
|
|
35
|
+
"type": "BadRequestExceptionErrorCodeEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "message",
|
|
40
|
+
"baseName": "message",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "timestamp",
|
|
46
|
+
"baseName": "timestamp",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return BadRequestException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BadRequestExceptionErrorCodeEnum {
|
|
61
|
+
BadRequestException = 'BadRequestException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class BankAccountAlreadyExistException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BankAccountAlreadyExistExceptionErrorCodeEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The human readable description of the error.
|
|
22
|
+
*/
|
|
23
|
+
'message': string;
|
|
24
|
+
/**
|
|
25
|
+
* When the error occurred - ISO 8601 format.
|
|
26
|
+
*/
|
|
27
|
+
'timestamp': string;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "errorCode",
|
|
34
|
+
"baseName": "errorCode",
|
|
35
|
+
"type": "BankAccountAlreadyExistExceptionErrorCodeEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "message",
|
|
40
|
+
"baseName": "message",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "timestamp",
|
|
46
|
+
"baseName": "timestamp",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return BankAccountAlreadyExistException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BankAccountAlreadyExistExceptionErrorCodeEnum {
|
|
61
|
+
BankAccountAlreadyExistException = 'BankAccountAlreadyExistException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class BankAccountNotFoundException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BankAccountNotFoundExceptionErrorCodeEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The human readable description of the error.
|
|
22
|
+
*/
|
|
23
|
+
'message': string;
|
|
24
|
+
/**
|
|
25
|
+
* When the error occurred - ISO 8601 format.
|
|
26
|
+
*/
|
|
27
|
+
'timestamp': string;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "errorCode",
|
|
34
|
+
"baseName": "errorCode",
|
|
35
|
+
"type": "BankAccountNotFoundExceptionErrorCodeEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "message",
|
|
40
|
+
"baseName": "message",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "timestamp",
|
|
46
|
+
"baseName": "timestamp",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return BankAccountNotFoundException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BankAccountNotFoundExceptionErrorCodeEnum {
|
|
61
|
+
BankAccountNotFoundException = 'BankAccountNotFoundException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class BankStatementsInvalidException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BankStatementsInvalidExceptionErrorCodeEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The human readable description of the error.
|
|
22
|
+
*/
|
|
23
|
+
'message': string;
|
|
24
|
+
/**
|
|
25
|
+
* When the error occurred - ISO 8601 format.
|
|
26
|
+
*/
|
|
27
|
+
'timestamp': string;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "errorCode",
|
|
34
|
+
"baseName": "errorCode",
|
|
35
|
+
"type": "BankStatementsInvalidExceptionErrorCodeEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "message",
|
|
40
|
+
"baseName": "message",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "timestamp",
|
|
46
|
+
"baseName": "timestamp",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return BankStatementsInvalidException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BankStatementsInvalidExceptionErrorCodeEnum {
|
|
61
|
+
BankStatementsInvalidException = 'BankStatementsInvalidException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { BusinessAddress } from '../models/BusinessAddress';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class Business {
|
|
17
|
+
/**
|
|
18
|
+
* The UUID representing the business in Kanmon.
|
|
19
|
+
*/
|
|
20
|
+
'id': string;
|
|
21
|
+
/**
|
|
22
|
+
* Your platform’s unique ID for the business.
|
|
23
|
+
*/
|
|
24
|
+
'platformBusinessId'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The business’s name.
|
|
27
|
+
*/
|
|
28
|
+
'name': any | null;
|
|
29
|
+
'address': BusinessAddress | null;
|
|
30
|
+
/**
|
|
31
|
+
* The business’s EIN. Only digits, no formatting.
|
|
32
|
+
*/
|
|
33
|
+
'ein': any | null;
|
|
34
|
+
/**
|
|
35
|
+
* The business’s phone number. No formatting characters, country code is optional.
|
|
36
|
+
*/
|
|
37
|
+
'phoneNumber': any | null;
|
|
38
|
+
/**
|
|
39
|
+
* The business’s website.
|
|
40
|
+
*/
|
|
41
|
+
'website': any | null;
|
|
42
|
+
/**
|
|
43
|
+
* Metadata from your system that you want to associate the business with.
|
|
44
|
+
*/
|
|
45
|
+
'metadata': any;
|
|
46
|
+
/**
|
|
47
|
+
* Creation UTC ISO 8601 timestamp of the business.
|
|
48
|
+
*/
|
|
49
|
+
'createdAt': string;
|
|
50
|
+
/**
|
|
51
|
+
* Last updated UTC ISO 8601 timestamp of the business.
|
|
52
|
+
*/
|
|
53
|
+
'updatedAt': string;
|
|
54
|
+
|
|
55
|
+
static readonly discriminator: string | undefined = undefined;
|
|
56
|
+
|
|
57
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
58
|
+
{
|
|
59
|
+
"name": "id",
|
|
60
|
+
"baseName": "id",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"format": ""
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "platformBusinessId",
|
|
66
|
+
"baseName": "platformBusinessId",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"format": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "name",
|
|
72
|
+
"baseName": "name",
|
|
73
|
+
"type": "any",
|
|
74
|
+
"format": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "address",
|
|
78
|
+
"baseName": "address",
|
|
79
|
+
"type": "BusinessAddress",
|
|
80
|
+
"format": ""
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "ein",
|
|
84
|
+
"baseName": "ein",
|
|
85
|
+
"type": "any",
|
|
86
|
+
"format": ""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "phoneNumber",
|
|
90
|
+
"baseName": "phoneNumber",
|
|
91
|
+
"type": "any",
|
|
92
|
+
"format": ""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "website",
|
|
96
|
+
"baseName": "website",
|
|
97
|
+
"type": "any",
|
|
98
|
+
"format": ""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "metadata",
|
|
102
|
+
"baseName": "metadata",
|
|
103
|
+
"type": "any",
|
|
104
|
+
"format": ""
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "createdAt",
|
|
108
|
+
"baseName": "createdAt",
|
|
109
|
+
"type": "string",
|
|
110
|
+
"format": ""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "updatedAt",
|
|
114
|
+
"baseName": "updatedAt",
|
|
115
|
+
"type": "string",
|
|
116
|
+
"format": ""
|
|
117
|
+
} ];
|
|
118
|
+
|
|
119
|
+
static getAttributeTypeMap() {
|
|
120
|
+
return Business.attributeTypeMap;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
public constructor() {
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanmon Public V2 API
|
|
3
|
+
* Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The business’s address.
|
|
17
|
+
*/
|
|
18
|
+
export class BusinessAddress {
|
|
19
|
+
'addressLineOne': string;
|
|
20
|
+
'addressLineTwo'?: string | null;
|
|
21
|
+
'city': string;
|
|
22
|
+
/**
|
|
23
|
+
* The 2 character abbreviated state
|
|
24
|
+
*/
|
|
25
|
+
'state': BusinessAddressStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Zip code can be 5 digits, 9 digits, or 5+4 including a hyphen or plus sign, e.g. 90210, 902101234, 90210-1234 or 90210+1234
|
|
28
|
+
*/
|
|
29
|
+
'zipcode': string;
|
|
30
|
+
/**
|
|
31
|
+
* USA
|
|
32
|
+
*/
|
|
33
|
+
'country': string;
|
|
34
|
+
|
|
35
|
+
static readonly discriminator: string | undefined = undefined;
|
|
36
|
+
|
|
37
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
38
|
+
{
|
|
39
|
+
"name": "addressLineOne",
|
|
40
|
+
"baseName": "addressLineOne",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "addressLineTwo",
|
|
46
|
+
"baseName": "addressLineTwo",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "city",
|
|
52
|
+
"baseName": "city",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "state",
|
|
58
|
+
"baseName": "state",
|
|
59
|
+
"type": "BusinessAddressStateEnum",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "zipcode",
|
|
64
|
+
"baseName": "zipcode",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "country",
|
|
70
|
+
"baseName": "country",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": ""
|
|
73
|
+
} ];
|
|
74
|
+
|
|
75
|
+
static getAttributeTypeMap() {
|
|
76
|
+
return BusinessAddress.attributeTypeMap;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public constructor() {
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export enum BusinessAddressStateEnum {
|
|
85
|
+
Al = 'AL',
|
|
86
|
+
Ky = 'KY',
|
|
87
|
+
Oh = 'OH',
|
|
88
|
+
Ak = 'AK',
|
|
89
|
+
La = 'LA',
|
|
90
|
+
Ok = 'OK',
|
|
91
|
+
Az = 'AZ',
|
|
92
|
+
Me = 'ME',
|
|
93
|
+
Or = 'OR',
|
|
94
|
+
Ar = 'AR',
|
|
95
|
+
Md = 'MD',
|
|
96
|
+
Pa = 'PA',
|
|
97
|
+
As = 'AS',
|
|
98
|
+
Ma = 'MA',
|
|
99
|
+
Pr = 'PR',
|
|
100
|
+
Ca = 'CA',
|
|
101
|
+
Mi = 'MI',
|
|
102
|
+
Ri = 'RI',
|
|
103
|
+
Co = 'CO',
|
|
104
|
+
Mn = 'MN',
|
|
105
|
+
Sc = 'SC',
|
|
106
|
+
Ct = 'CT',
|
|
107
|
+
Ms = 'MS',
|
|
108
|
+
Sd = 'SD',
|
|
109
|
+
De = 'DE',
|
|
110
|
+
Mo = 'MO',
|
|
111
|
+
Tn = 'TN',
|
|
112
|
+
Dc = 'DC',
|
|
113
|
+
Mt = 'MT',
|
|
114
|
+
Tx = 'TX',
|
|
115
|
+
Fl = 'FL',
|
|
116
|
+
Ne = 'NE',
|
|
117
|
+
Tt = 'TT',
|
|
118
|
+
Ga = 'GA',
|
|
119
|
+
Nv = 'NV',
|
|
120
|
+
Ut = 'UT',
|
|
121
|
+
Gu = 'GU',
|
|
122
|
+
Nh = 'NH',
|
|
123
|
+
Vt = 'VT',
|
|
124
|
+
Hi = 'HI',
|
|
125
|
+
Nj = 'NJ',
|
|
126
|
+
Va = 'VA',
|
|
127
|
+
Id = 'ID',
|
|
128
|
+
Nm = 'NM',
|
|
129
|
+
Vi = 'VI',
|
|
130
|
+
Il = 'IL',
|
|
131
|
+
Ny = 'NY',
|
|
132
|
+
Wa = 'WA',
|
|
133
|
+
In = 'IN',
|
|
134
|
+
Nc = 'NC',
|
|
135
|
+
Wv = 'WV',
|
|
136
|
+
Ia = 'IA',
|
|
137
|
+
Nd = 'ND',
|
|
138
|
+
Wi = 'WI',
|
|
139
|
+
Ks = 'KS',
|
|
140
|
+
Mp = 'MP',
|
|
141
|
+
Wy = 'WY'
|
|
142
|
+
}
|
|
143
|
+
|