@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,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 BusinessAlreadyExistsException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BusinessAlreadyExistsExceptionErrorCodeEnum;
|
|
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": "BusinessAlreadyExistsExceptionErrorCodeEnum",
|
|
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 BusinessAlreadyExistsException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BusinessAlreadyExistsExceptionErrorCodeEnum {
|
|
61
|
+
BusinessAlreadyExistsException = 'BusinessAlreadyExistsException'
|
|
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 { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class BusinessBankAccount {
|
|
16
|
+
/**
|
|
17
|
+
* The UUID representing the business bank account in Kanmon.
|
|
18
|
+
*/
|
|
19
|
+
'id': string;
|
|
20
|
+
/**
|
|
21
|
+
* Your platform’s unique ID for the bank account.
|
|
22
|
+
*/
|
|
23
|
+
'platformBankAccountId': string;
|
|
24
|
+
/**
|
|
25
|
+
* The business bank account’s name.
|
|
26
|
+
*/
|
|
27
|
+
'accountName': any | null;
|
|
28
|
+
/**
|
|
29
|
+
* The business’s bank account number. Only digits, no formatting.
|
|
30
|
+
*/
|
|
31
|
+
'accountNumber': string;
|
|
32
|
+
/**
|
|
33
|
+
* The business’s bank routing number. Only digits, no formatting.
|
|
34
|
+
*/
|
|
35
|
+
'routingNumber': string;
|
|
36
|
+
/**
|
|
37
|
+
* The bank account’s type. Currently, we only support checking accounts. We may support others in the future.
|
|
38
|
+
*/
|
|
39
|
+
'accountType': BusinessBankAccountAccountTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* The bank account’s roles. Currently, we only support disbursement bank role.
|
|
42
|
+
*/
|
|
43
|
+
'roles': Array<BusinessBankAccountRolesEnum>;
|
|
44
|
+
/**
|
|
45
|
+
* Creation UTC ISO 8601 timestamp of the business.
|
|
46
|
+
*/
|
|
47
|
+
'createdAt': string;
|
|
48
|
+
/**
|
|
49
|
+
* Last updated UTC ISO 8601 timestamp of the business.
|
|
50
|
+
*/
|
|
51
|
+
'updatedAt': string;
|
|
52
|
+
|
|
53
|
+
static readonly discriminator: string | undefined = undefined;
|
|
54
|
+
|
|
55
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
56
|
+
{
|
|
57
|
+
"name": "id",
|
|
58
|
+
"baseName": "id",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "platformBankAccountId",
|
|
64
|
+
"baseName": "platformBankAccountId",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "accountName",
|
|
70
|
+
"baseName": "accountName",
|
|
71
|
+
"type": "any",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "accountNumber",
|
|
76
|
+
"baseName": "accountNumber",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "routingNumber",
|
|
82
|
+
"baseName": "routingNumber",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "accountType",
|
|
88
|
+
"baseName": "accountType",
|
|
89
|
+
"type": "BusinessBankAccountAccountTypeEnum",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "roles",
|
|
94
|
+
"baseName": "roles",
|
|
95
|
+
"type": "Array<BusinessBankAccountRolesEnum>",
|
|
96
|
+
"format": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "createdAt",
|
|
100
|
+
"baseName": "createdAt",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "updatedAt",
|
|
106
|
+
"baseName": "updatedAt",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": ""
|
|
109
|
+
} ];
|
|
110
|
+
|
|
111
|
+
static getAttributeTypeMap() {
|
|
112
|
+
return BusinessBankAccount.attributeTypeMap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public constructor() {
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
export enum BusinessBankAccountAccountTypeEnum {
|
|
121
|
+
Checking = 'CHECKING'
|
|
122
|
+
}
|
|
123
|
+
export enum BusinessBankAccountRolesEnum {
|
|
124
|
+
Disbursement = 'DISBURSEMENT'
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { BusinessDocumentType } from '../models/BusinessDocumentType';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class BusinessDocument {
|
|
17
|
+
/**
|
|
18
|
+
* The UUID representing the business document in Kanmon.
|
|
19
|
+
*/
|
|
20
|
+
'id': string;
|
|
21
|
+
/**
|
|
22
|
+
* Your platform’s unique ID for the business.
|
|
23
|
+
*/
|
|
24
|
+
'platformBusinessId': string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The UUID representing the business in Kanmon.
|
|
27
|
+
*/
|
|
28
|
+
'businessId': string;
|
|
29
|
+
'documentType': BusinessDocumentType;
|
|
30
|
+
/**
|
|
31
|
+
* The file’s original file name.
|
|
32
|
+
*/
|
|
33
|
+
'originalFileName': string;
|
|
34
|
+
/**
|
|
35
|
+
* Creation UTC ISO 8601 timestamp of the business document.
|
|
36
|
+
*/
|
|
37
|
+
'createdAt': Date;
|
|
38
|
+
/**
|
|
39
|
+
* Last updated UTC ISO 8601 timestamp of the business document.
|
|
40
|
+
*/
|
|
41
|
+
'updatedAt': Date;
|
|
42
|
+
|
|
43
|
+
static readonly discriminator: string | undefined = undefined;
|
|
44
|
+
|
|
45
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
46
|
+
{
|
|
47
|
+
"name": "id",
|
|
48
|
+
"baseName": "id",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "platformBusinessId",
|
|
54
|
+
"baseName": "platformBusinessId",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"format": ""
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "businessId",
|
|
60
|
+
"baseName": "businessId",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"format": ""
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "documentType",
|
|
66
|
+
"baseName": "documentType",
|
|
67
|
+
"type": "BusinessDocumentType",
|
|
68
|
+
"format": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "originalFileName",
|
|
72
|
+
"baseName": "originalFileName",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"format": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "createdAt",
|
|
78
|
+
"baseName": "createdAt",
|
|
79
|
+
"type": "Date",
|
|
80
|
+
"format": "date-time"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "updatedAt",
|
|
84
|
+
"baseName": "updatedAt",
|
|
85
|
+
"type": "Date",
|
|
86
|
+
"format": "date-time"
|
|
87
|
+
} ];
|
|
88
|
+
|
|
89
|
+
static getAttributeTypeMap() {
|
|
90
|
+
return BusinessDocument.attributeTypeMap;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public constructor() {
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
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 enum BusinessDocumentType {
|
|
16
|
+
Invoice = 'INVOICE'
|
|
17
|
+
}
|
|
@@ -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 BusinessHasNoInvoiceFinancingProductException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BusinessHasNoInvoiceFinancingProductExceptionErrorCodeEnum;
|
|
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": "BusinessHasNoInvoiceFinancingProductExceptionErrorCodeEnum",
|
|
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 BusinessHasNoInvoiceFinancingProductException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BusinessHasNoInvoiceFinancingProductExceptionErrorCodeEnum {
|
|
61
|
+
BusinessHasNoInvoiceFinancingProductException = 'BusinessHasNoInvoiceFinancingProductException'
|
|
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 BusinessHasNoPrimaryOwnerException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BusinessHasNoPrimaryOwnerExceptionErrorCodeEnum;
|
|
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": "BusinessHasNoPrimaryOwnerExceptionErrorCodeEnum",
|
|
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 BusinessHasNoPrimaryOwnerException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BusinessHasNoPrimaryOwnerExceptionErrorCodeEnum {
|
|
61
|
+
BusinessHasNoPrimaryOwnerException = 'BusinessHasNoPrimaryOwnerException'
|
|
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 BusinessNotFoundException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BusinessNotFoundExceptionErrorCodeEnum;
|
|
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": "BusinessNotFoundExceptionErrorCodeEnum",
|
|
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 BusinessNotFoundException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BusinessNotFoundExceptionErrorCodeEnum {
|
|
61
|
+
BusinessNotFoundException = 'BusinessNotFoundException'
|
|
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 BusinessPlaidBankAccountNotFoundException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': BusinessPlaidBankAccountNotFoundExceptionErrorCodeEnum;
|
|
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": "BusinessPlaidBankAccountNotFoundExceptionErrorCodeEnum",
|
|
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 BusinessPlaidBankAccountNotFoundException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum BusinessPlaidBankAccountNotFoundExceptionErrorCodeEnum {
|
|
61
|
+
BusinessPlaidBankAccountNotFoundException = 'BusinessPlaidBankAccountNotFoundException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 BusinessPrequalification {
|
|
16
|
+
/**
|
|
17
|
+
* The product that the business is prequalified for. This will be null if `isPrequalified` is false.
|
|
18
|
+
*/
|
|
19
|
+
'product': BusinessPrequalificationProductEnum | null;
|
|
20
|
+
/**
|
|
21
|
+
* The UUID representing your platform in Kanmon.
|
|
22
|
+
*/
|
|
23
|
+
'platformId': string;
|
|
24
|
+
/**
|
|
25
|
+
* The UUID representing the business in Kanmon.
|
|
26
|
+
*/
|
|
27
|
+
'businessId': string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Your platform’s unique ID for the business.
|
|
30
|
+
*/
|
|
31
|
+
'platformBusinessId': string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether or not the business has been prequalified.
|
|
34
|
+
*/
|
|
35
|
+
'isPrequalified': boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Number describing the prequalification amount of the business in cents.
|
|
38
|
+
*/
|
|
39
|
+
'prequalifiedAmountCents': number | null;
|
|
40
|
+
/**
|
|
41
|
+
* Creation UTC ISO 8601 timestamp of the prequalification.
|
|
42
|
+
*/
|
|
43
|
+
'createdAt': Date;
|
|
44
|
+
/**
|
|
45
|
+
* Last updated UTC ISO 8601 timestamp of the prequalification.
|
|
46
|
+
*/
|
|
47
|
+
'updatedAt': Date;
|
|
48
|
+
|
|
49
|
+
static readonly discriminator: string | undefined = undefined;
|
|
50
|
+
|
|
51
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
52
|
+
{
|
|
53
|
+
"name": "product",
|
|
54
|
+
"baseName": "product",
|
|
55
|
+
"type": "BusinessPrequalificationProductEnum",
|
|
56
|
+
"format": ""
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "platformId",
|
|
60
|
+
"baseName": "platformId",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"format": ""
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "businessId",
|
|
66
|
+
"baseName": "businessId",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"format": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "platformBusinessId",
|
|
72
|
+
"baseName": "platformBusinessId",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"format": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "isPrequalified",
|
|
78
|
+
"baseName": "isPrequalified",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"format": ""
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "prequalifiedAmountCents",
|
|
84
|
+
"baseName": "prequalifiedAmountCents",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"format": ""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "createdAt",
|
|
90
|
+
"baseName": "createdAt",
|
|
91
|
+
"type": "Date",
|
|
92
|
+
"format": "date-time"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "updatedAt",
|
|
96
|
+
"baseName": "updatedAt",
|
|
97
|
+
"type": "Date",
|
|
98
|
+
"format": "date-time"
|
|
99
|
+
} ];
|
|
100
|
+
|
|
101
|
+
static getAttributeTypeMap() {
|
|
102
|
+
return BusinessPrequalification.attributeTypeMap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public constructor() {
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
export enum BusinessPrequalificationProductEnum {
|
|
111
|
+
InvoiceFinancing = 'INVOICE_FINANCING',
|
|
112
|
+
TermLoan = 'TERM_LOAN',
|
|
113
|
+
Mca = 'MCA',
|
|
114
|
+
LineOfCredit = 'LINE_OF_CREDIT'
|
|
115
|
+
}
|
|
116
|
+
|