@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 CheckingAccountRequiredException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': CheckingAccountRequiredExceptionErrorCodeEnum;
|
|
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": "CheckingAccountRequiredExceptionErrorCodeEnum",
|
|
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 CheckingAccountRequiredException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum CheckingAccountRequiredExceptionErrorCodeEnum {
|
|
61
|
+
CheckingAccountMustPresentException = 'CheckingAccountMustPresentException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ConnectToken {
|
|
16
|
+
/**
|
|
17
|
+
* The connect token. Pass this to the Kanmon Connect widget.
|
|
18
|
+
*/
|
|
19
|
+
'connectToken': string;
|
|
20
|
+
|
|
21
|
+
static readonly discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "connectToken",
|
|
26
|
+
"baseName": "connectToken",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
} ];
|
|
30
|
+
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return ConnectToken.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public constructor() {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -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 CreateBusinessBankAccountRequestBody {
|
|
16
|
+
/**
|
|
17
|
+
* Your platform’s unique business ID for the business. Either `platformBusinessId` or `businessId` is required.
|
|
18
|
+
*/
|
|
19
|
+
'platformBusinessId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The UUID representing the user’s business in Kanmon. Either `platformBusinessId` or `businessId` is required.
|
|
22
|
+
*/
|
|
23
|
+
'businessId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Your platform’s unique ID for the bank account.
|
|
26
|
+
*/
|
|
27
|
+
'platformBankAccountId': string;
|
|
28
|
+
/**
|
|
29
|
+
* The business defined bank account name.
|
|
30
|
+
*/
|
|
31
|
+
'accountName': string;
|
|
32
|
+
/**
|
|
33
|
+
* The business’s bank account number. Only digits, no formatting.
|
|
34
|
+
*/
|
|
35
|
+
'accountNumber': string;
|
|
36
|
+
/**
|
|
37
|
+
* The business’s bank routing number. Should be a 9 digits number, no formatting.
|
|
38
|
+
*/
|
|
39
|
+
'routingNumber': string;
|
|
40
|
+
/**
|
|
41
|
+
* The bank account’s type. Currently, we only support checking accounts. We may support others in the future.
|
|
42
|
+
*/
|
|
43
|
+
'accountType': CreateBusinessBankAccountRequestBodyAccountTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* The bank account’s roles. Currently, we only support creating disbursement bank account. We may support others in the future.
|
|
46
|
+
*/
|
|
47
|
+
'roles': Array<CreateBusinessBankAccountRequestBodyRolesEnum>;
|
|
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": "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": "platformBankAccountId",
|
|
66
|
+
"baseName": "platformBankAccountId",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"format": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "accountName",
|
|
72
|
+
"baseName": "accountName",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"format": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "accountNumber",
|
|
78
|
+
"baseName": "accountNumber",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": ""
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "routingNumber",
|
|
84
|
+
"baseName": "routingNumber",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": ""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "accountType",
|
|
90
|
+
"baseName": "accountType",
|
|
91
|
+
"type": "CreateBusinessBankAccountRequestBodyAccountTypeEnum",
|
|
92
|
+
"format": ""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "roles",
|
|
96
|
+
"baseName": "roles",
|
|
97
|
+
"type": "Array<CreateBusinessBankAccountRequestBodyRolesEnum>",
|
|
98
|
+
"format": ""
|
|
99
|
+
} ];
|
|
100
|
+
|
|
101
|
+
static getAttributeTypeMap() {
|
|
102
|
+
return CreateBusinessBankAccountRequestBody.attributeTypeMap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public constructor() {
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
export enum CreateBusinessBankAccountRequestBodyAccountTypeEnum {
|
|
111
|
+
Checking = 'CHECKING'
|
|
112
|
+
}
|
|
113
|
+
export enum CreateBusinessBankAccountRequestBodyRolesEnum {
|
|
114
|
+
Disbursement = 'DISBURSEMENT'
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { BusinessDocument } from '../models/BusinessDocument';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class CreateBusinessDocumentsResponse {
|
|
17
|
+
/**
|
|
18
|
+
* The documents that were uploaded.
|
|
19
|
+
*/
|
|
20
|
+
'documents': Array<BusinessDocument>;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
25
|
+
{
|
|
26
|
+
"name": "documents",
|
|
27
|
+
"baseName": "documents",
|
|
28
|
+
"type": "Array<BusinessDocument>",
|
|
29
|
+
"format": ""
|
|
30
|
+
} ];
|
|
31
|
+
|
|
32
|
+
static getAttributeTypeMap() {
|
|
33
|
+
return CreateBusinessDocumentsResponse.attributeTypeMap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public constructor() {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { Address } from '../models/Address';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class CreateBusinessRequestBody {
|
|
17
|
+
/**
|
|
18
|
+
* Your platform’s unique ID for the business.
|
|
19
|
+
*/
|
|
20
|
+
'platformBusinessId': string;
|
|
21
|
+
/**
|
|
22
|
+
* The business’s name.
|
|
23
|
+
*/
|
|
24
|
+
'name'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The business’s address.
|
|
27
|
+
*/
|
|
28
|
+
'address'?: Address;
|
|
29
|
+
/**
|
|
30
|
+
* The business’s EIN. Only digits, no formatting.
|
|
31
|
+
*/
|
|
32
|
+
'ein'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The business’s phone number. No formatting characters, country code is optional.
|
|
35
|
+
*/
|
|
36
|
+
'phoneNumber'?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The business’s website.
|
|
39
|
+
*/
|
|
40
|
+
'website'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Metadata from your system that you want to associate the business with.
|
|
43
|
+
*/
|
|
44
|
+
'metadata'?: any;
|
|
45
|
+
|
|
46
|
+
static readonly discriminator: string | undefined = undefined;
|
|
47
|
+
|
|
48
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
49
|
+
{
|
|
50
|
+
"name": "platformBusinessId",
|
|
51
|
+
"baseName": "platformBusinessId",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "name",
|
|
57
|
+
"baseName": "name",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "address",
|
|
63
|
+
"baseName": "address",
|
|
64
|
+
"type": "Address",
|
|
65
|
+
"format": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "ein",
|
|
69
|
+
"baseName": "ein",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "phoneNumber",
|
|
75
|
+
"baseName": "phoneNumber",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"format": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "website",
|
|
81
|
+
"baseName": "website",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"format": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "metadata",
|
|
87
|
+
"baseName": "metadata",
|
|
88
|
+
"type": "any",
|
|
89
|
+
"format": ""
|
|
90
|
+
} ];
|
|
91
|
+
|
|
92
|
+
static getAttributeTypeMap() {
|
|
93
|
+
return CreateBusinessRequestBody.attributeTypeMap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public constructor() {
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CreateConnectTokenRequestBody {
|
|
16
|
+
/**
|
|
17
|
+
* UUID representing the user in Kanmon. Either `userId` or `platformUserId` is required.
|
|
18
|
+
*/
|
|
19
|
+
'userId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Your platform’s unique ID for the user. Either `userId` or `platformUserId` is required.
|
|
22
|
+
*/
|
|
23
|
+
'platformUserId'?: string;
|
|
24
|
+
|
|
25
|
+
static readonly discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "userId",
|
|
30
|
+
"baseName": "userId",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": ""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "platformUserId",
|
|
36
|
+
"baseName": "platformUserId",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": ""
|
|
39
|
+
} ];
|
|
40
|
+
|
|
41
|
+
static getAttributeTypeMap() {
|
|
42
|
+
return CreateConnectTokenRequestBody.attributeTypeMap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public constructor() {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { BusinessHasNoInvoiceFinancingProductException } from '../models/BusinessHasNoInvoiceFinancingProductException';
|
|
14
|
+
import { PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException } from '../models/PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException';
|
|
15
|
+
import { HttpFile } from '../http/http';
|
|
16
|
+
|
|
17
|
+
export class CreateEmbeddedSession409Response {
|
|
18
|
+
/**
|
|
19
|
+
* Safe for programmatic use.
|
|
20
|
+
*/
|
|
21
|
+
'errorCode': CreateEmbeddedSession409ResponseErrorCodeEnum;
|
|
22
|
+
/**
|
|
23
|
+
* The human readable description of the error.
|
|
24
|
+
*/
|
|
25
|
+
'message': string;
|
|
26
|
+
/**
|
|
27
|
+
* When the error occurred - ISO 8601 format.
|
|
28
|
+
*/
|
|
29
|
+
'timestamp': string;
|
|
30
|
+
|
|
31
|
+
static readonly discriminator: string | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
34
|
+
{
|
|
35
|
+
"name": "errorCode",
|
|
36
|
+
"baseName": "errorCode",
|
|
37
|
+
"type": "CreateEmbeddedSession409ResponseErrorCodeEnum",
|
|
38
|
+
"format": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "message",
|
|
42
|
+
"baseName": "message",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": ""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "timestamp",
|
|
48
|
+
"baseName": "timestamp",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": ""
|
|
51
|
+
} ];
|
|
52
|
+
|
|
53
|
+
static getAttributeTypeMap() {
|
|
54
|
+
return CreateEmbeddedSession409Response.attributeTypeMap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public constructor() {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export enum CreateEmbeddedSession409ResponseErrorCodeEnum {
|
|
63
|
+
BusinessHasNoInvoiceFinancingProductException = 'BusinessHasNoInvoiceFinancingProductException'
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { CreateSessionTokenRequestBodyData } from '../models/CreateSessionTokenRequestBodyData';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class CreateSessionTokenRequestBody {
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier for business in our system. Either of `businessId` or `platformBusinessId` is required.
|
|
19
|
+
*/
|
|
20
|
+
'businessId'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier for business in your platform. Either of `businessId` or `platformBusinessId` is required.
|
|
23
|
+
*/
|
|
24
|
+
'platformBusinessId'?: string;
|
|
25
|
+
'data': CreateSessionTokenRequestBodyData;
|
|
26
|
+
|
|
27
|
+
static readonly discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "businessId",
|
|
32
|
+
"baseName": "businessId",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "platformBusinessId",
|
|
38
|
+
"baseName": "platformBusinessId",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "data",
|
|
44
|
+
"baseName": "data",
|
|
45
|
+
"type": "CreateSessionTokenRequestBodyData",
|
|
46
|
+
"format": ""
|
|
47
|
+
} ];
|
|
48
|
+
|
|
49
|
+
static getAttributeTypeMap() {
|
|
50
|
+
return CreateSessionTokenRequestBody.attributeTypeMap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public constructor() {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { InvoiceFlowSessionTokenData } from '../models/InvoiceFlowSessionTokenData';
|
|
14
|
+
import { InvoiceFlowWithInvoiceFileSessionTokenData } from '../models/InvoiceFlowWithInvoiceFileSessionTokenData';
|
|
15
|
+
import { SessionInvoiceWithInvoiceFile } from '../models/SessionInvoiceWithInvoiceFile';
|
|
16
|
+
import { HttpFile } from '../http/http';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This will differ depending on which `component` is used.
|
|
20
|
+
*/
|
|
21
|
+
export class CreateSessionTokenRequestBodyData {
|
|
22
|
+
'component': CreateSessionTokenRequestBodyDataComponentEnum;
|
|
23
|
+
/**
|
|
24
|
+
* Details about the list of invoices which are to be created.
|
|
25
|
+
*/
|
|
26
|
+
'invoices': Array<SessionInvoiceWithInvoiceFile>;
|
|
27
|
+
|
|
28
|
+
static readonly discriminator: string | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "component",
|
|
33
|
+
"baseName": "component",
|
|
34
|
+
"type": "CreateSessionTokenRequestBodyDataComponentEnum",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "invoices",
|
|
39
|
+
"baseName": "invoices",
|
|
40
|
+
"type": "Array<SessionInvoiceWithInvoiceFile>",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return CreateSessionTokenRequestBodyData.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export enum CreateSessionTokenRequestBodyDataComponentEnum {
|
|
54
|
+
SessionInvoiceFlowWithInvoiceFile = 'SESSION_INVOICE_FLOW_WITH_INVOICE_FILE'
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { PrimaryBusinessOwnerAlreadyExistsForBusinessException } from '../models/PrimaryBusinessOwnerAlreadyExistsForBusinessException';
|
|
14
|
+
import { UserAlreadyExistsWithEmailException } from '../models/UserAlreadyExistsWithEmailException';
|
|
15
|
+
import { UserAlreadyExistsWithPlatformUserIdException } from '../models/UserAlreadyExistsWithPlatformUserIdException';
|
|
16
|
+
import { HttpFile } from '../http/http';
|
|
17
|
+
|
|
18
|
+
export class CreateUser409Response {
|
|
19
|
+
/**
|
|
20
|
+
* Safe for programmatic use.
|
|
21
|
+
*/
|
|
22
|
+
'errorCode': CreateUser409ResponseErrorCodeEnum;
|
|
23
|
+
/**
|
|
24
|
+
* The human readable description of the error.
|
|
25
|
+
*/
|
|
26
|
+
'message': string;
|
|
27
|
+
/**
|
|
28
|
+
* When the error occurred - ISO 8601 format.
|
|
29
|
+
*/
|
|
30
|
+
'timestamp': 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": "errorCode",
|
|
37
|
+
"baseName": "errorCode",
|
|
38
|
+
"type": "CreateUser409ResponseErrorCodeEnum",
|
|
39
|
+
"format": ""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "message",
|
|
43
|
+
"baseName": "message",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "timestamp",
|
|
49
|
+
"baseName": "timestamp",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": ""
|
|
52
|
+
} ];
|
|
53
|
+
|
|
54
|
+
static getAttributeTypeMap() {
|
|
55
|
+
return CreateUser409Response.attributeTypeMap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public constructor() {
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
export enum CreateUser409ResponseErrorCodeEnum {
|
|
64
|
+
UserAlreadyExistsWithEmailException = 'UserAlreadyExistsWithEmailException'
|
|
65
|
+
}
|
|
66
|
+
|