@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,90 @@
|
|
|
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 TermLoanOfferTerms {
|
|
16
|
+
'productType': TermLoanOfferTermsProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The maximum loan amount - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'maxLoanAmountCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The loan amount - in cents. This defaults to `maxLoanAmountCents`. However, the business can select a smaller amount.
|
|
23
|
+
*/
|
|
24
|
+
'loanAmountCents': number;
|
|
25
|
+
/**
|
|
26
|
+
* The rate of interest on the loan. E.g. a value of `10` means 10%.
|
|
27
|
+
*/
|
|
28
|
+
'interestRatePercentage': number;
|
|
29
|
+
/**
|
|
30
|
+
* The duration of the loan - in months.
|
|
31
|
+
*/
|
|
32
|
+
'durationMonths': number;
|
|
33
|
+
/**
|
|
34
|
+
* The fee percentage on the loan. E.g. a value of `3` means 3%.
|
|
35
|
+
*/
|
|
36
|
+
'feePercentage': number;
|
|
37
|
+
|
|
38
|
+
static readonly discriminator: string | undefined = undefined;
|
|
39
|
+
|
|
40
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
41
|
+
{
|
|
42
|
+
"name": "productType",
|
|
43
|
+
"baseName": "productType",
|
|
44
|
+
"type": "TermLoanOfferTermsProductTypeEnum",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "maxLoanAmountCents",
|
|
49
|
+
"baseName": "maxLoanAmountCents",
|
|
50
|
+
"type": "number",
|
|
51
|
+
"format": ""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "loanAmountCents",
|
|
55
|
+
"baseName": "loanAmountCents",
|
|
56
|
+
"type": "number",
|
|
57
|
+
"format": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "interestRatePercentage",
|
|
61
|
+
"baseName": "interestRatePercentage",
|
|
62
|
+
"type": "number",
|
|
63
|
+
"format": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "durationMonths",
|
|
67
|
+
"baseName": "durationMonths",
|
|
68
|
+
"type": "number",
|
|
69
|
+
"format": ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "feePercentage",
|
|
73
|
+
"baseName": "feePercentage",
|
|
74
|
+
"type": "number",
|
|
75
|
+
"format": ""
|
|
76
|
+
} ];
|
|
77
|
+
|
|
78
|
+
static getAttributeTypeMap() {
|
|
79
|
+
return TermLoanOfferTerms.attributeTypeMap;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public constructor() {
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
export enum TermLoanOfferTermsProductTypeEnum {
|
|
88
|
+
TermLoan = 'TERM_LOAN'
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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 TermLoanServicingData {
|
|
16
|
+
'productType': TermLoanServicingDataProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The total loan amount - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'loanAmountCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The total origination fee amount - in cents.
|
|
23
|
+
*/
|
|
24
|
+
'originationFeeCents': number;
|
|
25
|
+
/**
|
|
26
|
+
* The principal remaining on the loan - in cents.
|
|
27
|
+
*/
|
|
28
|
+
'principalBalanceCents': number;
|
|
29
|
+
/**
|
|
30
|
+
* The monthly payment amount - in cents.
|
|
31
|
+
*/
|
|
32
|
+
'monthlyPaymentCents': number;
|
|
33
|
+
/**
|
|
34
|
+
* The interest rate of the loan. E.g. a value of `10` means 10%.
|
|
35
|
+
*/
|
|
36
|
+
'interestRate': number;
|
|
37
|
+
/**
|
|
38
|
+
* The next scheduled payment date - ISO 8601 date format.
|
|
39
|
+
*/
|
|
40
|
+
'nextPaymentDate': string | null;
|
|
41
|
+
|
|
42
|
+
static readonly discriminator: string | undefined = undefined;
|
|
43
|
+
|
|
44
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
45
|
+
{
|
|
46
|
+
"name": "productType",
|
|
47
|
+
"baseName": "productType",
|
|
48
|
+
"type": "TermLoanServicingDataProductTypeEnum",
|
|
49
|
+
"format": ""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "loanAmountCents",
|
|
53
|
+
"baseName": "loanAmountCents",
|
|
54
|
+
"type": "number",
|
|
55
|
+
"format": ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "originationFeeCents",
|
|
59
|
+
"baseName": "originationFeeCents",
|
|
60
|
+
"type": "number",
|
|
61
|
+
"format": ""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "principalBalanceCents",
|
|
65
|
+
"baseName": "principalBalanceCents",
|
|
66
|
+
"type": "number",
|
|
67
|
+
"format": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "monthlyPaymentCents",
|
|
71
|
+
"baseName": "monthlyPaymentCents",
|
|
72
|
+
"type": "number",
|
|
73
|
+
"format": ""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "interestRate",
|
|
77
|
+
"baseName": "interestRate",
|
|
78
|
+
"type": "number",
|
|
79
|
+
"format": ""
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "nextPaymentDate",
|
|
83
|
+
"baseName": "nextPaymentDate",
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": ""
|
|
86
|
+
} ];
|
|
87
|
+
|
|
88
|
+
static getAttributeTypeMap() {
|
|
89
|
+
return TermLoanServicingData.attributeTypeMap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public constructor() {
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
export enum TermLoanServicingDataProductTypeEnum {
|
|
98
|
+
TermLoan = 'TERM_LOAN'
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -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 UnmergeableBusinessException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': UnmergeableBusinessExceptionErrorCodeEnum;
|
|
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": "UnmergeableBusinessExceptionErrorCodeEnum",
|
|
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 UnmergeableBusinessException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum UnmergeableBusinessExceptionErrorCodeEnum {
|
|
61
|
+
UnmergeableBusinessException = 'UnmergeableBusinessException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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 UpdateBusinessAccountRequestBody {
|
|
16
|
+
/**
|
|
17
|
+
* Your platform’s unique ID for the bank account.
|
|
18
|
+
*/
|
|
19
|
+
'platformBankAccountId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The business defined bank account name.
|
|
22
|
+
*/
|
|
23
|
+
'accountName'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The business’s bank account number. Only digits, no formatting.
|
|
26
|
+
*/
|
|
27
|
+
'accountNumber'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The business’s bank routing number. Should be a 9 digits number, no formatting.
|
|
30
|
+
*/
|
|
31
|
+
'routingNumber'?: string;
|
|
32
|
+
|
|
33
|
+
static readonly discriminator: string | undefined = undefined;
|
|
34
|
+
|
|
35
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
36
|
+
{
|
|
37
|
+
"name": "platformBankAccountId",
|
|
38
|
+
"baseName": "platformBankAccountId",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "accountName",
|
|
44
|
+
"baseName": "accountName",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "accountNumber",
|
|
50
|
+
"baseName": "accountNumber",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "routingNumber",
|
|
56
|
+
"baseName": "routingNumber",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": ""
|
|
59
|
+
} ];
|
|
60
|
+
|
|
61
|
+
static getAttributeTypeMap() {
|
|
62
|
+
return UpdateBusinessAccountRequestBody.attributeTypeMap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public constructor() {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -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 UpdateBusinessRequestBody {
|
|
17
|
+
/**
|
|
18
|
+
* The business’s name.
|
|
19
|
+
*/
|
|
20
|
+
'name'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Your platform’s unique ID for the business.
|
|
23
|
+
*/
|
|
24
|
+
'platformBusinessId'?: 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": "name",
|
|
51
|
+
"baseName": "name",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "platformBusinessId",
|
|
57
|
+
"baseName": "platformBusinessId",
|
|
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 UpdateBusinessRequestBody.attributeTypeMap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public constructor() {
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -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 { PrimaryBusinessOwnerAlreadyExistsForBusinessException } from '../models/PrimaryBusinessOwnerAlreadyExistsForBusinessException';
|
|
14
|
+
import { UserAlreadyExistsWithEmailException } from '../models/UserAlreadyExistsWithEmailException';
|
|
15
|
+
import { HttpFile } from '../http/http';
|
|
16
|
+
|
|
17
|
+
export class UpdateUser409Response {
|
|
18
|
+
/**
|
|
19
|
+
* Safe for programmatic use.
|
|
20
|
+
*/
|
|
21
|
+
'errorCode': UpdateUser409ResponseErrorCodeEnum;
|
|
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": "UpdateUser409ResponseErrorCodeEnum",
|
|
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 UpdateUser409Response.attributeTypeMap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public constructor() {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export enum UpdateUser409ResponseErrorCodeEnum {
|
|
63
|
+
PrimaryBusinessOwnerAlreadyExistsForBusinessException = 'PrimaryBusinessOwnerAlreadyExistsForBusinessException'
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 UpdateUserRequestBody {
|
|
17
|
+
/**
|
|
18
|
+
* The user’s first name.
|
|
19
|
+
*/
|
|
20
|
+
'firstName'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The user’s last name.
|
|
23
|
+
*/
|
|
24
|
+
'lastName'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The user’s address.
|
|
27
|
+
*/
|
|
28
|
+
'address'?: Address;
|
|
29
|
+
/**
|
|
30
|
+
* The user’s email.
|
|
31
|
+
*/
|
|
32
|
+
'email'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The user’s roles. If no roles are defined, the user will be prompted to select a role within Kanmon. <br/><br/>A primary owner is a user with the authority to issue debt on behalf of the business. <br/>This means the user can complete onboarding, receive offers, choose to accept offers, <br/>sign financing agreements, and service an active issued product. <br/><br/>An operator is a user with permission to service an active issued product. Examples are uploading invoices on <br/>behalf of the business, checking the status of payments, etc. <br /><br/>Please note Kanmon supports an additional user role called secondary owners. <br/>Secondary owners are beneficial owners of a business, like primary owners, and Kanmon <br/>must perform KYC checks for these users. Kanmon will handle creating and managing <br/>these users for KYC purposes through a separate process. <br/>
|
|
35
|
+
*/
|
|
36
|
+
'roles'?: Array<UpdateUserRequestBodyRolesEnum>;
|
|
37
|
+
/**
|
|
38
|
+
* Metadata from your system that you want to associate the user with.
|
|
39
|
+
*/
|
|
40
|
+
'metadata'?: any;
|
|
41
|
+
|
|
42
|
+
static readonly discriminator: string | undefined = undefined;
|
|
43
|
+
|
|
44
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
45
|
+
{
|
|
46
|
+
"name": "firstName",
|
|
47
|
+
"baseName": "firstName",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"format": ""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "lastName",
|
|
53
|
+
"baseName": "lastName",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"format": ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "address",
|
|
59
|
+
"baseName": "address",
|
|
60
|
+
"type": "Address",
|
|
61
|
+
"format": ""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "email",
|
|
65
|
+
"baseName": "email",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"format": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "roles",
|
|
71
|
+
"baseName": "roles",
|
|
72
|
+
"type": "Array<UpdateUserRequestBodyRolesEnum>",
|
|
73
|
+
"format": ""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "metadata",
|
|
77
|
+
"baseName": "metadata",
|
|
78
|
+
"type": "any",
|
|
79
|
+
"format": ""
|
|
80
|
+
} ];
|
|
81
|
+
|
|
82
|
+
static getAttributeTypeMap() {
|
|
83
|
+
return UpdateUserRequestBody.attributeTypeMap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
public constructor() {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
export enum UpdateUserRequestBodyRolesEnum {
|
|
92
|
+
Operator = 'OPERATOR',
|
|
93
|
+
PrimaryOwner = 'PRIMARY_OWNER'
|
|
94
|
+
}
|
|
95
|
+
|