@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,80 @@
|
|
|
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 LineOfCreditOfferTerms {
|
|
16
|
+
'productType': LineOfCreditOfferTermsProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The total limit allowed for this offer - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'totalLimitCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The rate of interest on the loan. E.g. a value of `10` means 10%.
|
|
23
|
+
*/
|
|
24
|
+
'interestRatePercentage': number;
|
|
25
|
+
/**
|
|
26
|
+
* The fee percentage charged as the borrowing cost of the loan. E.g. a value of `2` means a 2% fee.
|
|
27
|
+
*/
|
|
28
|
+
'feePercentage': number;
|
|
29
|
+
/**
|
|
30
|
+
* The duration of the repayment for each draw - in months.
|
|
31
|
+
*/
|
|
32
|
+
'repaymentDurationMonths': number;
|
|
33
|
+
|
|
34
|
+
static readonly discriminator: string | undefined = undefined;
|
|
35
|
+
|
|
36
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
37
|
+
{
|
|
38
|
+
"name": "productType",
|
|
39
|
+
"baseName": "productType",
|
|
40
|
+
"type": "LineOfCreditOfferTermsProductTypeEnum",
|
|
41
|
+
"format": ""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "totalLimitCents",
|
|
45
|
+
"baseName": "totalLimitCents",
|
|
46
|
+
"type": "number",
|
|
47
|
+
"format": ""
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "interestRatePercentage",
|
|
51
|
+
"baseName": "interestRatePercentage",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "feePercentage",
|
|
57
|
+
"baseName": "feePercentage",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"format": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "repaymentDurationMonths",
|
|
63
|
+
"baseName": "repaymentDurationMonths",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"format": ""
|
|
66
|
+
} ];
|
|
67
|
+
|
|
68
|
+
static getAttributeTypeMap() {
|
|
69
|
+
return LineOfCreditOfferTerms.attributeTypeMap;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public constructor() {
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export enum LineOfCreditOfferTermsProductTypeEnum {
|
|
78
|
+
LineOfCredit = 'LINE_OF_CREDIT'
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -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 LineOfCreditServicingData {
|
|
16
|
+
'productType': LineOfCreditServicingDataProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The total credit limit - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'totalLimitCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The total limit less the amount of balance outstanding - in cents.
|
|
23
|
+
*/
|
|
24
|
+
'availableLimitCents': 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 fee percentage charged as the borrowing cost of the loan. E.g. a value of `2` means a 2% fee.
|
|
31
|
+
*/
|
|
32
|
+
'feePercentage': number;
|
|
33
|
+
/**
|
|
34
|
+
* The duration of the repayment for each draw - in months.
|
|
35
|
+
*/
|
|
36
|
+
'repaymentDurationMonths': 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": "LineOfCreditServicingDataProductTypeEnum",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "totalLimitCents",
|
|
49
|
+
"baseName": "totalLimitCents",
|
|
50
|
+
"type": "number",
|
|
51
|
+
"format": ""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "availableLimitCents",
|
|
55
|
+
"baseName": "availableLimitCents",
|
|
56
|
+
"type": "number",
|
|
57
|
+
"format": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "interestRatePercentage",
|
|
61
|
+
"baseName": "interestRatePercentage",
|
|
62
|
+
"type": "number",
|
|
63
|
+
"format": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "feePercentage",
|
|
67
|
+
"baseName": "feePercentage",
|
|
68
|
+
"type": "number",
|
|
69
|
+
"format": ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "repaymentDurationMonths",
|
|
73
|
+
"baseName": "repaymentDurationMonths",
|
|
74
|
+
"type": "number",
|
|
75
|
+
"format": ""
|
|
76
|
+
} ];
|
|
77
|
+
|
|
78
|
+
static getAttributeTypeMap() {
|
|
79
|
+
return LineOfCreditServicingData.attributeTypeMap;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public constructor() {
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
export enum LineOfCreditServicingDataProductTypeEnum {
|
|
88
|
+
LineOfCredit = 'LINE_OF_CREDIT'
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
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 McaOfferTerms {
|
|
16
|
+
'productType': McaOfferTermsProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The loan amount - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'advanceAmountCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The repayment percentage for calculating repayment amounts. E.g. a value of a `20` means 20%. If a business has $100 of income over a repayment period, the repayment amount would be $20.
|
|
23
|
+
*/
|
|
24
|
+
'repaymentPercentage': number;
|
|
25
|
+
/**
|
|
26
|
+
* The fee percentage charged as the borrowing cost of the loan. E.g. a value of `1.3` means a 30% fee.
|
|
27
|
+
*/
|
|
28
|
+
'feeFactor': number;
|
|
29
|
+
/**
|
|
30
|
+
* The repayment frequency of the loan. E.g. biweekly repayment occurs every 14 days, weekly repayment occurs every 7 days, etc.
|
|
31
|
+
*/
|
|
32
|
+
'repaymentFrequency': McaOfferTermsRepaymentFrequencyEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The total repayment amount in cents required to settle and close the debt. E.g. for a $10,000 loan with a fee factor of 1.3, the repayment amount equates to $13,000.
|
|
35
|
+
*/
|
|
36
|
+
'totalRepaymentCents': 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": "McaOfferTermsProductTypeEnum",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "advanceAmountCents",
|
|
49
|
+
"baseName": "advanceAmountCents",
|
|
50
|
+
"type": "number",
|
|
51
|
+
"format": ""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "repaymentPercentage",
|
|
55
|
+
"baseName": "repaymentPercentage",
|
|
56
|
+
"type": "number",
|
|
57
|
+
"format": ""
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "feeFactor",
|
|
61
|
+
"baseName": "feeFactor",
|
|
62
|
+
"type": "number",
|
|
63
|
+
"format": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "repaymentFrequency",
|
|
67
|
+
"baseName": "repaymentFrequency",
|
|
68
|
+
"type": "McaOfferTermsRepaymentFrequencyEnum",
|
|
69
|
+
"format": ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "totalRepaymentCents",
|
|
73
|
+
"baseName": "totalRepaymentCents",
|
|
74
|
+
"type": "number",
|
|
75
|
+
"format": ""
|
|
76
|
+
} ];
|
|
77
|
+
|
|
78
|
+
static getAttributeTypeMap() {
|
|
79
|
+
return McaOfferTerms.attributeTypeMap;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public constructor() {
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
export enum McaOfferTermsProductTypeEnum {
|
|
88
|
+
Mca = 'MCA'
|
|
89
|
+
}
|
|
90
|
+
export enum McaOfferTermsRepaymentFrequencyEnum {
|
|
91
|
+
Daily = 'DAILY',
|
|
92
|
+
Weekly = 'WEEKLY',
|
|
93
|
+
Biweekly = 'BIWEEKLY',
|
|
94
|
+
Monthly = 'MONTHLY'
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -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 McaServicingData {
|
|
16
|
+
'productType': McaServicingDataProductTypeEnum;
|
|
17
|
+
/**
|
|
18
|
+
* The loan amount - in cents.
|
|
19
|
+
*/
|
|
20
|
+
'advanceAmountCents': number;
|
|
21
|
+
/**
|
|
22
|
+
* The repayment percentage for calculating repayment amounts. E.g. a value of a `20` means 20%. If a business has $100 of income over a repayment period, the repayment amount would be $20.
|
|
23
|
+
*/
|
|
24
|
+
'repaymentPercentage': number;
|
|
25
|
+
/**
|
|
26
|
+
* The fee percentage charged as the borrowing cost of the loan. E.g. a value of `1.3` means a 30% fee.
|
|
27
|
+
*/
|
|
28
|
+
'feeFactor': number;
|
|
29
|
+
/**
|
|
30
|
+
* The total repayment amount in cents required to settle and close the debt. E.g. for a $10,000 loan with a fee factor of 1.3, the repayment amount equates to $13,000.
|
|
31
|
+
*/
|
|
32
|
+
'totalRepaymentCents': number;
|
|
33
|
+
/**
|
|
34
|
+
* The repayment frequency of the loan. E.g. biweekly repayment occurs every 14 days, weekly repayment occurs every 7 days, etc.
|
|
35
|
+
*/
|
|
36
|
+
'repaymentFrequency': McaServicingDataRepaymentFrequencyEnum;
|
|
37
|
+
/**
|
|
38
|
+
* The next scheduled payment date - ISO 8601 date format.
|
|
39
|
+
*/
|
|
40
|
+
'nextPaymentDate': string | null;
|
|
41
|
+
/**
|
|
42
|
+
* The total repayment amount less the amount repaid - in cents.
|
|
43
|
+
*/
|
|
44
|
+
'advanceBalanceCents': number;
|
|
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": "productType",
|
|
51
|
+
"baseName": "productType",
|
|
52
|
+
"type": "McaServicingDataProductTypeEnum",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "advanceAmountCents",
|
|
57
|
+
"baseName": "advanceAmountCents",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"format": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "repaymentPercentage",
|
|
63
|
+
"baseName": "repaymentPercentage",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"format": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "feeFactor",
|
|
69
|
+
"baseName": "feeFactor",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"format": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "totalRepaymentCents",
|
|
75
|
+
"baseName": "totalRepaymentCents",
|
|
76
|
+
"type": "number",
|
|
77
|
+
"format": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "repaymentFrequency",
|
|
81
|
+
"baseName": "repaymentFrequency",
|
|
82
|
+
"type": "McaServicingDataRepaymentFrequencyEnum",
|
|
83
|
+
"format": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "nextPaymentDate",
|
|
87
|
+
"baseName": "nextPaymentDate",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"format": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "advanceBalanceCents",
|
|
93
|
+
"baseName": "advanceBalanceCents",
|
|
94
|
+
"type": "number",
|
|
95
|
+
"format": ""
|
|
96
|
+
} ];
|
|
97
|
+
|
|
98
|
+
static getAttributeTypeMap() {
|
|
99
|
+
return McaServicingData.attributeTypeMap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public constructor() {
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
export enum McaServicingDataProductTypeEnum {
|
|
108
|
+
Mca = 'MCA'
|
|
109
|
+
}
|
|
110
|
+
export enum McaServicingDataRepaymentFrequencyEnum {
|
|
111
|
+
Daily = 'DAILY',
|
|
112
|
+
Weekly = 'WEEKLY',
|
|
113
|
+
Biweekly = 'BIWEEKLY',
|
|
114
|
+
Monthly = 'MONTHLY'
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -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 MergeUsersRequestBody {
|
|
16
|
+
/**
|
|
17
|
+
* Your platform’s unique business ID for the business to merge users from. Either `sourcePlatformBusinessId` or `sourceBusinessId` is required.
|
|
18
|
+
*/
|
|
19
|
+
'sourcePlatformBusinessId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The UUID representing the business in Kanmon to merge users from. Either `sourcePlatformBusinessId` or `sourceBusinessId` is required.
|
|
22
|
+
*/
|
|
23
|
+
'sourceBusinessId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Your platform’s unique business ID for the business to merge users to. Either `targetPlatformBusinessId` or `targetBusinessId` is required.
|
|
26
|
+
*/
|
|
27
|
+
'targetPlatformBusinessId'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The UUID representing the business in Kanmon to merge users to. Either `targetPlatformBusinessId` or `targetBusinessId` is required.
|
|
30
|
+
*/
|
|
31
|
+
'targetBusinessId'?: 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": "sourcePlatformBusinessId",
|
|
38
|
+
"baseName": "sourcePlatformBusinessId",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "sourceBusinessId",
|
|
44
|
+
"baseName": "sourceBusinessId",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "targetPlatformBusinessId",
|
|
50
|
+
"baseName": "targetPlatformBusinessId",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "targetBusinessId",
|
|
56
|
+
"baseName": "targetBusinessId",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": ""
|
|
59
|
+
} ];
|
|
60
|
+
|
|
61
|
+
static getAttributeTypeMap() {
|
|
62
|
+
return MergeUsersRequestBody.attributeTypeMap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public constructor() {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -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 { User } from '../models/User';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class MergeUsersResponseBody {
|
|
17
|
+
/**
|
|
18
|
+
* An array of users that were merged into the target business.
|
|
19
|
+
*/
|
|
20
|
+
'mergedUsers': Array<User>;
|
|
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": "mergedUsers",
|
|
27
|
+
"baseName": "mergedUsers",
|
|
28
|
+
"type": "Array<User>",
|
|
29
|
+
"format": ""
|
|
30
|
+
} ];
|
|
31
|
+
|
|
32
|
+
static getAttributeTypeMap() {
|
|
33
|
+
return MergeUsersResponseBody.attributeTypeMap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public constructor() {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -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 { PaymentPlanRepaymentSchedule } from '../models/PaymentPlanRepaymentSchedule';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class MultipleDurationInvoiceRepaymentWindow {
|
|
17
|
+
'repaymentType': MultipleDurationInvoiceRepaymentWindowRepaymentTypeEnum;
|
|
18
|
+
'repaymentSchedule': PaymentPlanRepaymentSchedule;
|
|
19
|
+
|
|
20
|
+
static readonly discriminator: string | undefined = undefined;
|
|
21
|
+
|
|
22
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
23
|
+
{
|
|
24
|
+
"name": "repaymentType",
|
|
25
|
+
"baseName": "repaymentType",
|
|
26
|
+
"type": "MultipleDurationInvoiceRepaymentWindowRepaymentTypeEnum",
|
|
27
|
+
"format": ""
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "repaymentSchedule",
|
|
31
|
+
"baseName": "repaymentSchedule",
|
|
32
|
+
"type": "PaymentPlanRepaymentSchedule",
|
|
33
|
+
"format": ""
|
|
34
|
+
} ];
|
|
35
|
+
|
|
36
|
+
static getAttributeTypeMap() {
|
|
37
|
+
return MultipleDurationInvoiceRepaymentWindow.attributeTypeMap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public constructor() {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export enum MultipleDurationInvoiceRepaymentWindowRepaymentTypeEnum {
|
|
46
|
+
MultipleDuration = 'MULTIPLE_DURATION'
|
|
47
|
+
}
|
|
48
|
+
|