@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,198 @@
|
|
|
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 { PaymentOrderStatus } from '../models/PaymentOrderStatus';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class PaymentOrder {
|
|
17
|
+
/**
|
|
18
|
+
* The UUID representing the payment order in Kanmon.
|
|
19
|
+
*/
|
|
20
|
+
'id': string;
|
|
21
|
+
/**
|
|
22
|
+
* The UUID representing the issued product in Kanmon.
|
|
23
|
+
*/
|
|
24
|
+
'issuedProductId': string;
|
|
25
|
+
/**
|
|
26
|
+
* The UUID representing the draw request in Kanmon. (only present for Line of Credit).
|
|
27
|
+
*/
|
|
28
|
+
'drawRequestId': string | null;
|
|
29
|
+
/**
|
|
30
|
+
* The UUID representing the invoice in Kanmon. (only present for Invoice Financing).
|
|
31
|
+
*/
|
|
32
|
+
'invoiceId': string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Your platform’s unique ID for the invoice. (only present for Invoice Financing).
|
|
35
|
+
*/
|
|
36
|
+
'platformInvoiceId': string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The effective UTC ISO 8601 date that the payment will process.
|
|
39
|
+
*/
|
|
40
|
+
'effectiveDate': string;
|
|
41
|
+
/**
|
|
42
|
+
* The UTC ISO 8601 date that the payment was settled.
|
|
43
|
+
*/
|
|
44
|
+
'settledDate': string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The total payment amount - in cents.
|
|
47
|
+
*/
|
|
48
|
+
'totalPaymentAmountCents': number;
|
|
49
|
+
/**
|
|
50
|
+
* The principal payment amount - in cents. (null for disbursements).
|
|
51
|
+
*/
|
|
52
|
+
'principalPaymentAmountCents': number | null;
|
|
53
|
+
/**
|
|
54
|
+
* The interest payment amount - in cents. (null for disbursements).
|
|
55
|
+
*/
|
|
56
|
+
'interestPaymentAmountCents': number | null;
|
|
57
|
+
/**
|
|
58
|
+
* The fee payment amount - in cents. (null for disbursements).
|
|
59
|
+
*/
|
|
60
|
+
'feePaymentAmountCents': number | null;
|
|
61
|
+
/**
|
|
62
|
+
* The type of the fee that was charged. (only present when `feePaymentAmountCents` is not 0 or null).
|
|
63
|
+
*/
|
|
64
|
+
'feeType': PaymentOrderFeeTypeEnum | null;
|
|
65
|
+
/**
|
|
66
|
+
* The direction of the payment.
|
|
67
|
+
*/
|
|
68
|
+
'direction': PaymentOrderDirectionEnum;
|
|
69
|
+
'status': PaymentOrderStatus;
|
|
70
|
+
/**
|
|
71
|
+
* Creation UTC ISO 8601 timestamp of the payment order.
|
|
72
|
+
*/
|
|
73
|
+
'createdAt': Date;
|
|
74
|
+
/**
|
|
75
|
+
* Last updated UTC ISO 8601 timestamp of the payment order.
|
|
76
|
+
*/
|
|
77
|
+
'updatedAt': Date;
|
|
78
|
+
|
|
79
|
+
static readonly discriminator: string | undefined = undefined;
|
|
80
|
+
|
|
81
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
82
|
+
{
|
|
83
|
+
"name": "id",
|
|
84
|
+
"baseName": "id",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": ""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "issuedProductId",
|
|
90
|
+
"baseName": "issuedProductId",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"format": ""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "drawRequestId",
|
|
96
|
+
"baseName": "drawRequestId",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"format": ""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "invoiceId",
|
|
102
|
+
"baseName": "invoiceId",
|
|
103
|
+
"type": "string",
|
|
104
|
+
"format": ""
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "platformInvoiceId",
|
|
108
|
+
"baseName": "platformInvoiceId",
|
|
109
|
+
"type": "string",
|
|
110
|
+
"format": ""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "effectiveDate",
|
|
114
|
+
"baseName": "effectiveDate",
|
|
115
|
+
"type": "string",
|
|
116
|
+
"format": ""
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "settledDate",
|
|
120
|
+
"baseName": "settledDate",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"format": ""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "totalPaymentAmountCents",
|
|
126
|
+
"baseName": "totalPaymentAmountCents",
|
|
127
|
+
"type": "number",
|
|
128
|
+
"format": ""
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "principalPaymentAmountCents",
|
|
132
|
+
"baseName": "principalPaymentAmountCents",
|
|
133
|
+
"type": "number",
|
|
134
|
+
"format": ""
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "interestPaymentAmountCents",
|
|
138
|
+
"baseName": "interestPaymentAmountCents",
|
|
139
|
+
"type": "number",
|
|
140
|
+
"format": ""
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "feePaymentAmountCents",
|
|
144
|
+
"baseName": "feePaymentAmountCents",
|
|
145
|
+
"type": "number",
|
|
146
|
+
"format": ""
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "feeType",
|
|
150
|
+
"baseName": "feeType",
|
|
151
|
+
"type": "PaymentOrderFeeTypeEnum",
|
|
152
|
+
"format": ""
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "direction",
|
|
156
|
+
"baseName": "direction",
|
|
157
|
+
"type": "PaymentOrderDirectionEnum",
|
|
158
|
+
"format": ""
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "status",
|
|
162
|
+
"baseName": "status",
|
|
163
|
+
"type": "PaymentOrderStatus",
|
|
164
|
+
"format": ""
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "createdAt",
|
|
168
|
+
"baseName": "createdAt",
|
|
169
|
+
"type": "Date",
|
|
170
|
+
"format": "date-time"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "updatedAt",
|
|
174
|
+
"baseName": "updatedAt",
|
|
175
|
+
"type": "Date",
|
|
176
|
+
"format": "date-time"
|
|
177
|
+
} ];
|
|
178
|
+
|
|
179
|
+
static getAttributeTypeMap() {
|
|
180
|
+
return PaymentOrder.attributeTypeMap;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
public constructor() {
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
export enum PaymentOrderFeeTypeEnum {
|
|
189
|
+
LatePayment = 'LATE_PAYMENT',
|
|
190
|
+
InsufficientFunds = 'INSUFFICIENT_FUNDS',
|
|
191
|
+
TransactionFee = 'TRANSACTION_FEE',
|
|
192
|
+
Maintenance = 'MAINTENANCE'
|
|
193
|
+
}
|
|
194
|
+
export enum PaymentOrderDirectionEnum {
|
|
195
|
+
Disbursement = 'DISBURSEMENT',
|
|
196
|
+
Repayment = 'REPAYMENT'
|
|
197
|
+
}
|
|
198
|
+
|
|
@@ -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 PaymentOrderNotFoundException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': PaymentOrderNotFoundExceptionErrorCodeEnum;
|
|
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": "PaymentOrderNotFoundExceptionErrorCodeEnum",
|
|
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 PaymentOrderNotFoundException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum PaymentOrderNotFoundExceptionErrorCodeEnum {
|
|
61
|
+
PaymentOrderNotFoundException = 'PaymentOrderNotFoundException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
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 PaymentOrderStatus {
|
|
16
|
+
Failed = 'FAILED',
|
|
17
|
+
Paid = 'PAID',
|
|
18
|
+
Pending = 'PENDING'
|
|
19
|
+
}
|
|
@@ -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 { PaymentPlanRepaymentScheduleItem } from '../models/PaymentPlanRepaymentScheduleItem';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class PaymentPlanRepaymentSchedule {
|
|
17
|
+
/**
|
|
18
|
+
* An array of repayment schedule items that represents how the invoice will be paid back over multiple repayments.
|
|
19
|
+
*/
|
|
20
|
+
'schedule': Array<PaymentPlanRepaymentScheduleItem>;
|
|
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": "schedule",
|
|
27
|
+
"baseName": "schedule",
|
|
28
|
+
"type": "Array<PaymentPlanRepaymentScheduleItem>",
|
|
29
|
+
"format": ""
|
|
30
|
+
} ];
|
|
31
|
+
|
|
32
|
+
static getAttributeTypeMap() {
|
|
33
|
+
return PaymentPlanRepaymentSchedule.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 { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class PaymentPlanRepaymentScheduleItem {
|
|
16
|
+
/**
|
|
17
|
+
* This amount of days after which the repayment duration is due.
|
|
18
|
+
*/
|
|
19
|
+
'repaymentDurationDays': number;
|
|
20
|
+
/**
|
|
21
|
+
* The percentage of the payment that is due for this repayment. E.g. a value of `50` means 50%.
|
|
22
|
+
*/
|
|
23
|
+
'repaymentPercentage': number;
|
|
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": "repaymentDurationDays",
|
|
30
|
+
"baseName": "repaymentDurationDays",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"format": ""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "repaymentPercentage",
|
|
36
|
+
"baseName": "repaymentPercentage",
|
|
37
|
+
"type": "number",
|
|
38
|
+
"format": ""
|
|
39
|
+
} ];
|
|
40
|
+
|
|
41
|
+
static getAttributeTypeMap() {
|
|
42
|
+
return PaymentPlanRepaymentScheduleItem.attributeTypeMap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public constructor() {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -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 { PaymentScheduleItemPaymentOrder } from '../models/PaymentScheduleItemPaymentOrder';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class PaymentScheduleItem {
|
|
17
|
+
/**
|
|
18
|
+
* The effective UTC ISO 8601 date that the payment will process.
|
|
19
|
+
*/
|
|
20
|
+
'effectiveDate': string;
|
|
21
|
+
/**
|
|
22
|
+
* The total payment amount - in cents.
|
|
23
|
+
*/
|
|
24
|
+
'totalPaymentAmountCents': number;
|
|
25
|
+
'paymentOrder': PaymentScheduleItemPaymentOrder | null;
|
|
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": "effectiveDate",
|
|
32
|
+
"baseName": "effectiveDate",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "totalPaymentAmountCents",
|
|
38
|
+
"baseName": "totalPaymentAmountCents",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "paymentOrder",
|
|
44
|
+
"baseName": "paymentOrder",
|
|
45
|
+
"type": "PaymentScheduleItemPaymentOrder",
|
|
46
|
+
"format": ""
|
|
47
|
+
} ];
|
|
48
|
+
|
|
49
|
+
static getAttributeTypeMap() {
|
|
50
|
+
return PaymentScheduleItem.attributeTypeMap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public constructor() {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,201 @@
|
|
|
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 { PaymentOrderStatus } from '../models/PaymentOrderStatus';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The payment order for this schedule item
|
|
18
|
+
*/
|
|
19
|
+
export class PaymentScheduleItemPaymentOrder {
|
|
20
|
+
/**
|
|
21
|
+
* The UUID representing the payment order in Kanmon.
|
|
22
|
+
*/
|
|
23
|
+
'id': string;
|
|
24
|
+
/**
|
|
25
|
+
* The UUID representing the issued product in Kanmon.
|
|
26
|
+
*/
|
|
27
|
+
'issuedProductId': string;
|
|
28
|
+
/**
|
|
29
|
+
* The UUID representing the draw request in Kanmon. (only present for Line of Credit).
|
|
30
|
+
*/
|
|
31
|
+
'drawRequestId': string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The UUID representing the invoice in Kanmon. (only present for Invoice Financing).
|
|
34
|
+
*/
|
|
35
|
+
'invoiceId': string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Your platform’s unique ID for the invoice. (only present for Invoice Financing).
|
|
38
|
+
*/
|
|
39
|
+
'platformInvoiceId': string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The effective UTC ISO 8601 date that the payment will process.
|
|
42
|
+
*/
|
|
43
|
+
'effectiveDate': string;
|
|
44
|
+
/**
|
|
45
|
+
* The UTC ISO 8601 date that the payment was settled.
|
|
46
|
+
*/
|
|
47
|
+
'settledDate': string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The total payment amount - in cents.
|
|
50
|
+
*/
|
|
51
|
+
'totalPaymentAmountCents': number;
|
|
52
|
+
/**
|
|
53
|
+
* The principal payment amount - in cents. (null for disbursements).
|
|
54
|
+
*/
|
|
55
|
+
'principalPaymentAmountCents': number | null;
|
|
56
|
+
/**
|
|
57
|
+
* The interest payment amount - in cents. (null for disbursements).
|
|
58
|
+
*/
|
|
59
|
+
'interestPaymentAmountCents': number | null;
|
|
60
|
+
/**
|
|
61
|
+
* The fee payment amount - in cents. (null for disbursements).
|
|
62
|
+
*/
|
|
63
|
+
'feePaymentAmountCents': number | null;
|
|
64
|
+
/**
|
|
65
|
+
* The type of the fee that was charged. (only present when `feePaymentAmountCents` is not 0 or null).
|
|
66
|
+
*/
|
|
67
|
+
'feeType': PaymentScheduleItemPaymentOrderFeeTypeEnum | null;
|
|
68
|
+
/**
|
|
69
|
+
* The direction of the payment.
|
|
70
|
+
*/
|
|
71
|
+
'direction': PaymentScheduleItemPaymentOrderDirectionEnum;
|
|
72
|
+
'status': PaymentOrderStatus;
|
|
73
|
+
/**
|
|
74
|
+
* Creation UTC ISO 8601 timestamp of the payment order.
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': Date;
|
|
77
|
+
/**
|
|
78
|
+
* Last updated UTC ISO 8601 timestamp of the payment order.
|
|
79
|
+
*/
|
|
80
|
+
'updatedAt': Date;
|
|
81
|
+
|
|
82
|
+
static readonly discriminator: string | undefined = undefined;
|
|
83
|
+
|
|
84
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
85
|
+
{
|
|
86
|
+
"name": "id",
|
|
87
|
+
"baseName": "id",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"format": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "issuedProductId",
|
|
93
|
+
"baseName": "issuedProductId",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"format": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "drawRequestId",
|
|
99
|
+
"baseName": "drawRequestId",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"format": ""
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "invoiceId",
|
|
105
|
+
"baseName": "invoiceId",
|
|
106
|
+
"type": "string",
|
|
107
|
+
"format": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "platformInvoiceId",
|
|
111
|
+
"baseName": "platformInvoiceId",
|
|
112
|
+
"type": "string",
|
|
113
|
+
"format": ""
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "effectiveDate",
|
|
117
|
+
"baseName": "effectiveDate",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"format": ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "settledDate",
|
|
123
|
+
"baseName": "settledDate",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"format": ""
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "totalPaymentAmountCents",
|
|
129
|
+
"baseName": "totalPaymentAmountCents",
|
|
130
|
+
"type": "number",
|
|
131
|
+
"format": ""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "principalPaymentAmountCents",
|
|
135
|
+
"baseName": "principalPaymentAmountCents",
|
|
136
|
+
"type": "number",
|
|
137
|
+
"format": ""
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "interestPaymentAmountCents",
|
|
141
|
+
"baseName": "interestPaymentAmountCents",
|
|
142
|
+
"type": "number",
|
|
143
|
+
"format": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "feePaymentAmountCents",
|
|
147
|
+
"baseName": "feePaymentAmountCents",
|
|
148
|
+
"type": "number",
|
|
149
|
+
"format": ""
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "feeType",
|
|
153
|
+
"baseName": "feeType",
|
|
154
|
+
"type": "PaymentScheduleItemPaymentOrderFeeTypeEnum",
|
|
155
|
+
"format": ""
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "direction",
|
|
159
|
+
"baseName": "direction",
|
|
160
|
+
"type": "PaymentScheduleItemPaymentOrderDirectionEnum",
|
|
161
|
+
"format": ""
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "status",
|
|
165
|
+
"baseName": "status",
|
|
166
|
+
"type": "PaymentOrderStatus",
|
|
167
|
+
"format": ""
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "createdAt",
|
|
171
|
+
"baseName": "createdAt",
|
|
172
|
+
"type": "Date",
|
|
173
|
+
"format": "date-time"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "updatedAt",
|
|
177
|
+
"baseName": "updatedAt",
|
|
178
|
+
"type": "Date",
|
|
179
|
+
"format": "date-time"
|
|
180
|
+
} ];
|
|
181
|
+
|
|
182
|
+
static getAttributeTypeMap() {
|
|
183
|
+
return PaymentScheduleItemPaymentOrder.attributeTypeMap;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
public constructor() {
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
export enum PaymentScheduleItemPaymentOrderFeeTypeEnum {
|
|
192
|
+
LatePayment = 'LATE_PAYMENT',
|
|
193
|
+
InsufficientFunds = 'INSUFFICIENT_FUNDS',
|
|
194
|
+
TransactionFee = 'TRANSACTION_FEE',
|
|
195
|
+
Maintenance = 'MAINTENANCE'
|
|
196
|
+
}
|
|
197
|
+
export enum PaymentScheduleItemPaymentOrderDirectionEnum {
|
|
198
|
+
Disbursement = 'DISBURSEMENT',
|
|
199
|
+
Repayment = 'REPAYMENT'
|
|
200
|
+
}
|
|
201
|
+
|
|
@@ -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 PlaidAssetReportsInvalidException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': PlaidAssetReportsInvalidExceptionErrorCodeEnum;
|
|
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": "PlaidAssetReportsInvalidExceptionErrorCodeEnum",
|
|
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 PlaidAssetReportsInvalidException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum PlaidAssetReportsInvalidExceptionErrorCodeEnum {
|
|
61
|
+
PlaidAssetReportsInvalidException = 'PlaidAssetReportsInvalidException'
|
|
62
|
+
}
|
|
63
|
+
|