@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,281 @@
|
|
|
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 { InvoicePayorAddress } from '../models/InvoicePayorAddress';
|
|
14
|
+
import { InvoiceRepaymentSchedule } from '../models/InvoiceRepaymentSchedule';
|
|
15
|
+
import { InvoiceStatus } from '../models/InvoiceStatus';
|
|
16
|
+
import { HttpFile } from '../http/http';
|
|
17
|
+
|
|
18
|
+
export class Invoice {
|
|
19
|
+
/**
|
|
20
|
+
* Kanmon’s unique ID for the invoice.
|
|
21
|
+
*/
|
|
22
|
+
'id': string;
|
|
23
|
+
/**
|
|
24
|
+
* Your platform’s unique ID for the invoice.
|
|
25
|
+
*/
|
|
26
|
+
'platformInvoiceId': string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Your user-facing identifier for the invoice. This does not need to be unique. This may or may not be the same as your `platformInvoiceId`.
|
|
29
|
+
*/
|
|
30
|
+
'platformInvoiceNumber': string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The invoice amount - in cents.
|
|
33
|
+
*/
|
|
34
|
+
'invoiceAmountCents': number;
|
|
35
|
+
/**
|
|
36
|
+
* The date when the invoice will be paid by the payor. ISO 8601 date format.
|
|
37
|
+
*/
|
|
38
|
+
'invoiceDueDate': string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The date when the payee issued the invoice. ISO 8601 date format.
|
|
41
|
+
*/
|
|
42
|
+
'invoiceIssuedDate': string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The email of the payor.
|
|
45
|
+
*/
|
|
46
|
+
'payorEmail': string | null;
|
|
47
|
+
'payorAddress': InvoicePayorAddress | null;
|
|
48
|
+
/**
|
|
49
|
+
* `INDIVIDUAL` if the payor is a person and `BUSINESS` if the payor is a company.
|
|
50
|
+
*/
|
|
51
|
+
'payorType': InvoicePayorTypeEnum | null;
|
|
52
|
+
/**
|
|
53
|
+
* The registered name of the payor business when the payor is a business and not an individual.
|
|
54
|
+
*/
|
|
55
|
+
'payorBusinessName': string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The first name of the payor when the payor is an individual and not a business.
|
|
58
|
+
*/
|
|
59
|
+
'payorFirstName': string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The middle name of the payor when the payor is an individual and not a business.
|
|
62
|
+
*/
|
|
63
|
+
'payorMiddleName': string | null;
|
|
64
|
+
/**
|
|
65
|
+
* The last name of the payor when the payor is an individual and not a business.
|
|
66
|
+
*/
|
|
67
|
+
'payorLastName': string | null;
|
|
68
|
+
'status': InvoiceStatus;
|
|
69
|
+
/**
|
|
70
|
+
* The unique identifier for the issued product in Kanmon′s system.
|
|
71
|
+
*/
|
|
72
|
+
'issuedProductId': string;
|
|
73
|
+
/**
|
|
74
|
+
* The total fee amount - in cents.
|
|
75
|
+
*/
|
|
76
|
+
'feeAmountCents': number;
|
|
77
|
+
/**
|
|
78
|
+
* The total principal amount - in cents.
|
|
79
|
+
*/
|
|
80
|
+
'principalAmountCents': number;
|
|
81
|
+
/**
|
|
82
|
+
* The amount after fees the business will receive - in cents.
|
|
83
|
+
*/
|
|
84
|
+
'invoiceAdvanceAmountCents': number;
|
|
85
|
+
/**
|
|
86
|
+
* The total amount that the business will repay - in cents.
|
|
87
|
+
*/
|
|
88
|
+
'repaymentAmountCents': number;
|
|
89
|
+
/**
|
|
90
|
+
* The invoice repayment schedule.
|
|
91
|
+
*/
|
|
92
|
+
'repaymentSchedule': InvoiceRepaymentSchedule;
|
|
93
|
+
/**
|
|
94
|
+
* The percentage of the invoice that is allowed for advances. E.g. a value of `80` would mean that $800 would be advanced on a $1,000 invoice.
|
|
95
|
+
*/
|
|
96
|
+
'advanceRatePercentage': number;
|
|
97
|
+
/**
|
|
98
|
+
* The percentage of the transaction that is charged as a fee. E.g. a value of `5` means 5%.
|
|
99
|
+
*/
|
|
100
|
+
'transactionFeePercentage': number;
|
|
101
|
+
/**
|
|
102
|
+
* The portion of the invoice amount that the business requests to be financed - in cents.
|
|
103
|
+
*/
|
|
104
|
+
'amountRequestedForFinancingCents': number;
|
|
105
|
+
/**
|
|
106
|
+
* Creation UTC ISO 8601 timestamp of the invoice.
|
|
107
|
+
*/
|
|
108
|
+
'createdAt': string;
|
|
109
|
+
/**
|
|
110
|
+
* Last updated UTC ISO 8601 timestamp of the invoice.
|
|
111
|
+
*/
|
|
112
|
+
'updatedAt': string;
|
|
113
|
+
|
|
114
|
+
static readonly discriminator: string | undefined = undefined;
|
|
115
|
+
|
|
116
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
117
|
+
{
|
|
118
|
+
"name": "id",
|
|
119
|
+
"baseName": "id",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"format": ""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "platformInvoiceId",
|
|
125
|
+
"baseName": "platformInvoiceId",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"format": ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "platformInvoiceNumber",
|
|
131
|
+
"baseName": "platformInvoiceNumber",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"format": ""
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "invoiceAmountCents",
|
|
137
|
+
"baseName": "invoiceAmountCents",
|
|
138
|
+
"type": "number",
|
|
139
|
+
"format": ""
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "invoiceDueDate",
|
|
143
|
+
"baseName": "invoiceDueDate",
|
|
144
|
+
"type": "string",
|
|
145
|
+
"format": ""
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "invoiceIssuedDate",
|
|
149
|
+
"baseName": "invoiceIssuedDate",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"format": ""
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "payorEmail",
|
|
155
|
+
"baseName": "payorEmail",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"format": ""
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "payorAddress",
|
|
161
|
+
"baseName": "payorAddress",
|
|
162
|
+
"type": "InvoicePayorAddress",
|
|
163
|
+
"format": ""
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "payorType",
|
|
167
|
+
"baseName": "payorType",
|
|
168
|
+
"type": "InvoicePayorTypeEnum",
|
|
169
|
+
"format": ""
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "payorBusinessName",
|
|
173
|
+
"baseName": "payorBusinessName",
|
|
174
|
+
"type": "string",
|
|
175
|
+
"format": ""
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "payorFirstName",
|
|
179
|
+
"baseName": "payorFirstName",
|
|
180
|
+
"type": "string",
|
|
181
|
+
"format": ""
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "payorMiddleName",
|
|
185
|
+
"baseName": "payorMiddleName",
|
|
186
|
+
"type": "string",
|
|
187
|
+
"format": ""
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "payorLastName",
|
|
191
|
+
"baseName": "payorLastName",
|
|
192
|
+
"type": "string",
|
|
193
|
+
"format": ""
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "status",
|
|
197
|
+
"baseName": "status",
|
|
198
|
+
"type": "InvoiceStatus",
|
|
199
|
+
"format": ""
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "issuedProductId",
|
|
203
|
+
"baseName": "issuedProductId",
|
|
204
|
+
"type": "string",
|
|
205
|
+
"format": ""
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "feeAmountCents",
|
|
209
|
+
"baseName": "feeAmountCents",
|
|
210
|
+
"type": "number",
|
|
211
|
+
"format": ""
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "principalAmountCents",
|
|
215
|
+
"baseName": "principalAmountCents",
|
|
216
|
+
"type": "number",
|
|
217
|
+
"format": ""
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "invoiceAdvanceAmountCents",
|
|
221
|
+
"baseName": "invoiceAdvanceAmountCents",
|
|
222
|
+
"type": "number",
|
|
223
|
+
"format": ""
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "repaymentAmountCents",
|
|
227
|
+
"baseName": "repaymentAmountCents",
|
|
228
|
+
"type": "number",
|
|
229
|
+
"format": ""
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "repaymentSchedule",
|
|
233
|
+
"baseName": "repaymentSchedule",
|
|
234
|
+
"type": "InvoiceRepaymentSchedule",
|
|
235
|
+
"format": ""
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "advanceRatePercentage",
|
|
239
|
+
"baseName": "advanceRatePercentage",
|
|
240
|
+
"type": "number",
|
|
241
|
+
"format": ""
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "transactionFeePercentage",
|
|
245
|
+
"baseName": "transactionFeePercentage",
|
|
246
|
+
"type": "number",
|
|
247
|
+
"format": ""
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "amountRequestedForFinancingCents",
|
|
251
|
+
"baseName": "amountRequestedForFinancingCents",
|
|
252
|
+
"type": "number",
|
|
253
|
+
"format": ""
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "createdAt",
|
|
257
|
+
"baseName": "createdAt",
|
|
258
|
+
"type": "string",
|
|
259
|
+
"format": ""
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "updatedAt",
|
|
263
|
+
"baseName": "updatedAt",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"format": ""
|
|
266
|
+
} ];
|
|
267
|
+
|
|
268
|
+
static getAttributeTypeMap() {
|
|
269
|
+
return Invoice.attributeTypeMap;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
public constructor() {
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
export enum InvoicePayorTypeEnum {
|
|
278
|
+
Business = 'BUSINESS',
|
|
279
|
+
Individual = 'INDIVIDUAL'
|
|
280
|
+
}
|
|
281
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { InvoicePaymentPlan } from '../models/InvoicePaymentPlan';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class InvoiceFinancingOfferTerms {
|
|
17
|
+
'productType': InvoiceFinancingOfferTermsProductTypeEnum;
|
|
18
|
+
/**
|
|
19
|
+
* The total limit allowed for this offer - in cents.
|
|
20
|
+
*/
|
|
21
|
+
'totalLimitCents': number;
|
|
22
|
+
/**
|
|
23
|
+
* The pricing plans available for this offer.
|
|
24
|
+
*/
|
|
25
|
+
'pricingPlans': Array<InvoicePaymentPlan>;
|
|
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": "productType",
|
|
32
|
+
"baseName": "productType",
|
|
33
|
+
"type": "InvoiceFinancingOfferTermsProductTypeEnum",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "totalLimitCents",
|
|
38
|
+
"baseName": "totalLimitCents",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "pricingPlans",
|
|
44
|
+
"baseName": "pricingPlans",
|
|
45
|
+
"type": "Array<InvoicePaymentPlan>",
|
|
46
|
+
"format": ""
|
|
47
|
+
} ];
|
|
48
|
+
|
|
49
|
+
static getAttributeTypeMap() {
|
|
50
|
+
return InvoiceFinancingOfferTerms.attributeTypeMap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public constructor() {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export enum InvoiceFinancingOfferTermsProductTypeEnum {
|
|
59
|
+
InvoiceFinancing = 'INVOICE_FINANCING'
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { InvoicePaymentPlan } from '../models/InvoicePaymentPlan';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class InvoiceFinancingServicingData {
|
|
17
|
+
'productType': InvoiceFinancingServicingDataProductTypeEnum;
|
|
18
|
+
/**
|
|
19
|
+
* The total limit allowed - in cents.
|
|
20
|
+
*/
|
|
21
|
+
'totalLimitCents': number;
|
|
22
|
+
/**
|
|
23
|
+
* The pricing plans available for this issued product.
|
|
24
|
+
*/
|
|
25
|
+
'pricingPlans': Array<InvoicePaymentPlan>;
|
|
26
|
+
/**
|
|
27
|
+
* The total limit less the amount of balance outstanding - in cents.
|
|
28
|
+
*/
|
|
29
|
+
'availableLimitCents': number;
|
|
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": "productType",
|
|
36
|
+
"baseName": "productType",
|
|
37
|
+
"type": "InvoiceFinancingServicingDataProductTypeEnum",
|
|
38
|
+
"format": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "totalLimitCents",
|
|
42
|
+
"baseName": "totalLimitCents",
|
|
43
|
+
"type": "number",
|
|
44
|
+
"format": ""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "pricingPlans",
|
|
48
|
+
"baseName": "pricingPlans",
|
|
49
|
+
"type": "Array<InvoicePaymentPlan>",
|
|
50
|
+
"format": ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "availableLimitCents",
|
|
54
|
+
"baseName": "availableLimitCents",
|
|
55
|
+
"type": "number",
|
|
56
|
+
"format": ""
|
|
57
|
+
} ];
|
|
58
|
+
|
|
59
|
+
static getAttributeTypeMap() {
|
|
60
|
+
return InvoiceFinancingServicingData.attributeTypeMap;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public constructor() {
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export enum InvoiceFinancingServicingDataProductTypeEnum {
|
|
69
|
+
InvoiceFinancing = 'INVOICE_FINANCING'
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SessionInvoice } from '../models/SessionInvoice';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class InvoiceFlowSessionTokenData {
|
|
17
|
+
'component': InvoiceFlowSessionTokenDataComponentEnum;
|
|
18
|
+
/**
|
|
19
|
+
* Details about the list of invoices which are to be created.
|
|
20
|
+
*/
|
|
21
|
+
'invoices': Array<SessionInvoice>;
|
|
22
|
+
|
|
23
|
+
static readonly discriminator: string | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "component",
|
|
28
|
+
"baseName": "component",
|
|
29
|
+
"type": "InvoiceFlowSessionTokenDataComponentEnum",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "invoices",
|
|
34
|
+
"baseName": "invoices",
|
|
35
|
+
"type": "Array<SessionInvoice>",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return InvoiceFlowSessionTokenData.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export enum InvoiceFlowSessionTokenDataComponentEnum {
|
|
49
|
+
SessionInvoiceFlow = 'SESSION_INVOICE_FLOW'
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SessionInvoiceWithInvoiceFile } from '../models/SessionInvoiceWithInvoiceFile';
|
|
14
|
+
import { HttpFile } from '../http/http';
|
|
15
|
+
|
|
16
|
+
export class InvoiceFlowWithInvoiceFileSessionTokenData {
|
|
17
|
+
'component': InvoiceFlowWithInvoiceFileSessionTokenDataComponentEnum;
|
|
18
|
+
/**
|
|
19
|
+
* Details about the list of invoices which are to be created.
|
|
20
|
+
*/
|
|
21
|
+
'invoices': Array<SessionInvoiceWithInvoiceFile>;
|
|
22
|
+
|
|
23
|
+
static readonly discriminator: string | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "component",
|
|
28
|
+
"baseName": "component",
|
|
29
|
+
"type": "InvoiceFlowWithInvoiceFileSessionTokenDataComponentEnum",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "invoices",
|
|
34
|
+
"baseName": "invoices",
|
|
35
|
+
"type": "Array<SessionInvoiceWithInvoiceFile>",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return InvoiceFlowWithInvoiceFileSessionTokenData.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export enum InvoiceFlowWithInvoiceFileSessionTokenDataComponentEnum {
|
|
49
|
+
SessionInvoiceFlowWithInvoiceFile = 'SESSION_INVOICE_FLOW_WITH_INVOICE_FILE'
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -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 InvoiceNotFoundException {
|
|
16
|
+
/**
|
|
17
|
+
* Safe for programmatic use.
|
|
18
|
+
*/
|
|
19
|
+
'errorCode': InvoiceNotFoundExceptionErrorCodeEnum;
|
|
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": "InvoiceNotFoundExceptionErrorCodeEnum",
|
|
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 InvoiceNotFoundException.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export enum InvoiceNotFoundExceptionErrorCodeEnum {
|
|
61
|
+
InvoiceNotFoundException = 'InvoiceNotFoundException'
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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 InvoicePaymentPlan {
|
|
16
|
+
/**
|
|
17
|
+
* The percentage of the invoice that is allowed for advances. E.g. a value of `80` would mean that $800 would be advanced on a $1,000 invoice.
|
|
18
|
+
*/
|
|
19
|
+
'advanceRatePercentage': number;
|
|
20
|
+
/**
|
|
21
|
+
* The percentage of the transaction that is charged as a fee. E.g. a value of `5` means 5%.
|
|
22
|
+
*/
|
|
23
|
+
'transactionFeePercentage': number;
|
|
24
|
+
/**
|
|
25
|
+
* The repayment window
|
|
26
|
+
*/
|
|
27
|
+
'repaymentWindow': Array<any>;
|
|
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": "advanceRatePercentage",
|
|
34
|
+
"baseName": "advanceRatePercentage",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "transactionFeePercentage",
|
|
40
|
+
"baseName": "transactionFeePercentage",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "repaymentWindow",
|
|
46
|
+
"baseName": "repaymentWindow",
|
|
47
|
+
"type": "Array<any>",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return InvoicePaymentPlan.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|