@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.
Files changed (137) hide show
  1. package/README.md +2 -0
  2. package/package.json +45 -0
  3. package/src/index.ts +65 -0
  4. package/src/openapi/.openapi-generator/FILES +130 -0
  5. package/src/openapi/.openapi-generator/VERSION +1 -0
  6. package/src/openapi/.openapi-generator-ignore +30 -0
  7. package/src/openapi/apis/BankAccountsApi.ts +503 -0
  8. package/src/openapi/apis/BusinessesApi.ts +614 -0
  9. package/src/openapi/apis/ConnectTokensApi.ts +133 -0
  10. package/src/openapi/apis/DocumentsApi.ts +150 -0
  11. package/src/openapi/apis/DrawRequestsApi.ts +258 -0
  12. package/src/openapi/apis/EmbeddedSessionsApi.ts +141 -0
  13. package/src/openapi/apis/InvoicesApi.ts +272 -0
  14. package/src/openapi/apis/IssuedProductsApi.ts +251 -0
  15. package/src/openapi/apis/OffersApi.ts +251 -0
  16. package/src/openapi/apis/PaymentsApi.ts +268 -0
  17. package/src/openapi/apis/PrequalificationsApi.ts +141 -0
  18. package/src/openapi/apis/UsersApi.ts +622 -0
  19. package/src/openapi/apis/baseapi.ts +37 -0
  20. package/src/openapi/apis/exception.ts +15 -0
  21. package/src/openapi/auth/auth.ts +79 -0
  22. package/src/openapi/configuration.ts +82 -0
  23. package/src/openapi/http/http.ts +247 -0
  24. package/src/openapi/http/isomorphic-fetch.ts +32 -0
  25. package/src/openapi/index.ts +12 -0
  26. package/src/openapi/middleware.ts +66 -0
  27. package/src/openapi/models/ActivityLog.ts +98 -0
  28. package/src/openapi/models/Address.ts +140 -0
  29. package/src/openapi/models/BadRequestException.ts +63 -0
  30. package/src/openapi/models/BankAccountAlreadyExistException.ts +63 -0
  31. package/src/openapi/models/BankAccountNotFoundException.ts +63 -0
  32. package/src/openapi/models/BankStatementsInvalidException.ts +63 -0
  33. package/src/openapi/models/Business.ts +126 -0
  34. package/src/openapi/models/BusinessAddress.ts +143 -0
  35. package/src/openapi/models/BusinessAlreadyExistsException.ts +63 -0
  36. package/src/openapi/models/BusinessBankAccount.ts +126 -0
  37. package/src/openapi/models/BusinessDocument.ts +98 -0
  38. package/src/openapi/models/BusinessDocumentType.ts +17 -0
  39. package/src/openapi/models/BusinessHasNoInvoiceFinancingProductException.ts +63 -0
  40. package/src/openapi/models/BusinessHasNoPrimaryOwnerException.ts +63 -0
  41. package/src/openapi/models/BusinessNotFoundException.ts +63 -0
  42. package/src/openapi/models/BusinessPlaidBankAccountNotFoundException.ts +63 -0
  43. package/src/openapi/models/BusinessPrequalification.ts +116 -0
  44. package/src/openapi/models/CheckingAccountRequiredException.ts +63 -0
  45. package/src/openapi/models/ConnectToken.ts +38 -0
  46. package/src/openapi/models/CreateBusinessBankAccountRequestBody.ts +116 -0
  47. package/src/openapi/models/CreateBusinessDocumentsResponse.ts +39 -0
  48. package/src/openapi/models/CreateBusinessRequestBody.ts +99 -0
  49. package/src/openapi/models/CreateConnectTokenRequestBody.ts +48 -0
  50. package/src/openapi/models/CreateEmbeddedSession409Response.ts +65 -0
  51. package/src/openapi/models/CreateSessionTokenRequestBody.ts +56 -0
  52. package/src/openapi/models/CreateSessionTokenRequestBodyData.ts +56 -0
  53. package/src/openapi/models/CreateUser409Response.ts +66 -0
  54. package/src/openapi/models/CreateUserRequestBody.ts +125 -0
  55. package/src/openapi/models/DrawRequest.ts +138 -0
  56. package/src/openapi/models/DrawRequestNotFoundException.ts +63 -0
  57. package/src/openapi/models/DrawRequestState.ts +21 -0
  58. package/src/openapi/models/EmbeddedSession.ts +38 -0
  59. package/src/openapi/models/FixedDateInvoiceRepaymentWindow.ts +50 -0
  60. package/src/openapi/models/FixedDurationInvoiceRepaymentWindow.ts +50 -0
  61. package/src/openapi/models/ForbiddenException.ts +63 -0
  62. package/src/openapi/models/GetActivityLogsResponse.ts +50 -0
  63. package/src/openapi/models/GetBusinessBankAccountsResponse.ts +50 -0
  64. package/src/openapi/models/GetBusinessesResponse.ts +50 -0
  65. package/src/openapi/models/GetDrawRequestsResponse.ts +50 -0
  66. package/src/openapi/models/GetInvoice404Response.ts +65 -0
  67. package/src/openapi/models/GetInvoicesResponse.ts +50 -0
  68. package/src/openapi/models/GetIssuedProductsResponse.ts +50 -0
  69. package/src/openapi/models/GetOffersResponse.ts +50 -0
  70. package/src/openapi/models/GetPaymentScheduleResponse.ts +50 -0
  71. package/src/openapi/models/GetPrequalificationsResponse.ts +50 -0
  72. package/src/openapi/models/GetUsersResponse.ts +50 -0
  73. package/src/openapi/models/InternalServerErrorException.ts +63 -0
  74. package/src/openapi/models/InvalidInvoiceDueDateException.ts +63 -0
  75. package/src/openapi/models/Invoice.ts +281 -0
  76. package/src/openapi/models/InvoiceFinancingOfferTerms.ts +61 -0
  77. package/src/openapi/models/InvoiceFinancingServicingData.ts +71 -0
  78. package/src/openapi/models/InvoiceFlowSessionTokenData.ts +51 -0
  79. package/src/openapi/models/InvoiceFlowWithInvoiceFileSessionTokenData.ts +51 -0
  80. package/src/openapi/models/InvoiceNotFoundException.ts +63 -0
  81. package/src/openapi/models/InvoicePaymentPlan.ts +58 -0
  82. package/src/openapi/models/InvoicePayorAddress.ts +143 -0
  83. package/src/openapi/models/InvoiceRepaymentSchedule.ts +39 -0
  84. package/src/openapi/models/InvoiceRepaymentScheduleItem.ts +68 -0
  85. package/src/openapi/models/InvoiceStatus.ts +22 -0
  86. package/src/openapi/models/IssuedProduct.ts +115 -0
  87. package/src/openapi/models/IssuedProductNotFoundException.ts +63 -0
  88. package/src/openapi/models/IssuedProductServicingData.ts +234 -0
  89. package/src/openapi/models/LineOfCreditOfferTerms.ts +80 -0
  90. package/src/openapi/models/LineOfCreditServicingData.ts +90 -0
  91. package/src/openapi/models/McaOfferTerms.ts +96 -0
  92. package/src/openapi/models/McaServicingData.ts +116 -0
  93. package/src/openapi/models/MergeUsersRequestBody.ts +68 -0
  94. package/src/openapi/models/MergeUsersResponseBody.ts +39 -0
  95. package/src/openapi/models/MultipleDurationInvoiceRepaymentWindow.ts +48 -0
  96. package/src/openapi/models/ObjectSerializer.ts +643 -0
  97. package/src/openapi/models/Offer.ts +106 -0
  98. package/src/openapi/models/OfferAlreadySelectedException.ts +63 -0
  99. package/src/openapi/models/OfferNotFoundException.ts +63 -0
  100. package/src/openapi/models/OfferNotLockedException.ts +63 -0
  101. package/src/openapi/models/OfferTerms.ts +184 -0
  102. package/src/openapi/models/PaginationResult.ts +58 -0
  103. package/src/openapi/models/PaymentOrder.ts +198 -0
  104. package/src/openapi/models/PaymentOrderNotFoundException.ts +63 -0
  105. package/src/openapi/models/PaymentOrderStatus.ts +19 -0
  106. package/src/openapi/models/PaymentPlanRepaymentSchedule.ts +39 -0
  107. package/src/openapi/models/PaymentPlanRepaymentScheduleItem.ts +48 -0
  108. package/src/openapi/models/PaymentScheduleItem.ts +56 -0
  109. package/src/openapi/models/PaymentScheduleItemPaymentOrder.ts +201 -0
  110. package/src/openapi/models/PlaidAssetReportsInvalidException.ts +63 -0
  111. package/src/openapi/models/PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException.ts +63 -0
  112. package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsForBusinessException.ts +63 -0
  113. package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsWithEmailException.ts +63 -0
  114. package/src/openapi/models/PrimaryBusinessOwnerNotFoundException.ts +63 -0
  115. package/src/openapi/models/SessionInvoice.ts +165 -0
  116. package/src/openapi/models/SessionInvoiceWithInvoiceFile.ts +175 -0
  117. package/src/openapi/models/SomeOffersHaveExpiredException.ts +63 -0
  118. package/src/openapi/models/TermLoanOfferTerms.ts +90 -0
  119. package/src/openapi/models/TermLoanServicingData.ts +100 -0
  120. package/src/openapi/models/UnmergeableBusinessException.ts +63 -0
  121. package/src/openapi/models/UpdateBusinessAccountRequestBody.ts +68 -0
  122. package/src/openapi/models/UpdateBusinessRequestBody.ts +99 -0
  123. package/src/openapi/models/UpdateUser409Response.ts +65 -0
  124. package/src/openapi/models/UpdateUserRequestBody.ts +95 -0
  125. package/src/openapi/models/User.ts +152 -0
  126. package/src/openapi/models/UserAddress.ts +143 -0
  127. package/src/openapi/models/UserAlreadyExistsWithEmailException.ts +63 -0
  128. package/src/openapi/models/UserAlreadyExistsWithPlatformUserIdException.ts +63 -0
  129. package/src/openapi/models/UserNotFoundException.ts +63 -0
  130. package/src/openapi/models/all.ts +102 -0
  131. package/src/openapi/rxjsStub.ts +27 -0
  132. package/src/openapi/servers.ts +58 -0
  133. package/src/openapi/types/ObjectParamAPI.ts +1403 -0
  134. package/src/openapi/types/ObservableAPI.ts +1348 -0
  135. package/src/openapi/types/PromiseAPI.ts +995 -0
  136. package/src/openapi/util.ts +37 -0
  137. package/tsconfig.json +32 -0
@@ -0,0 +1,143 @@
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
+ /**
16
+ * The address of the payor.
17
+ */
18
+ export class InvoicePayorAddress {
19
+ 'addressLineOne': string;
20
+ 'addressLineTwo'?: string | null;
21
+ 'city': string;
22
+ /**
23
+ * The 2 character abbreviated state
24
+ */
25
+ 'state': InvoicePayorAddressStateEnum;
26
+ /**
27
+ * Zip code can be 5 digits, 9 digits, or 5+4 including a hyphen or plus sign, e.g. 90210, 902101234, 90210-1234 or 90210+1234
28
+ */
29
+ 'zipcode': string;
30
+ /**
31
+ * USA
32
+ */
33
+ 'country': string;
34
+
35
+ static readonly discriminator: string | undefined = undefined;
36
+
37
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
38
+ {
39
+ "name": "addressLineOne",
40
+ "baseName": "addressLineOne",
41
+ "type": "string",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "addressLineTwo",
46
+ "baseName": "addressLineTwo",
47
+ "type": "string",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "city",
52
+ "baseName": "city",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "state",
58
+ "baseName": "state",
59
+ "type": "InvoicePayorAddressStateEnum",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "zipcode",
64
+ "baseName": "zipcode",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "country",
70
+ "baseName": "country",
71
+ "type": "string",
72
+ "format": ""
73
+ } ];
74
+
75
+ static getAttributeTypeMap() {
76
+ return InvoicePayorAddress.attributeTypeMap;
77
+ }
78
+
79
+ public constructor() {
80
+ }
81
+ }
82
+
83
+
84
+ export enum InvoicePayorAddressStateEnum {
85
+ Al = 'AL',
86
+ Ky = 'KY',
87
+ Oh = 'OH',
88
+ Ak = 'AK',
89
+ La = 'LA',
90
+ Ok = 'OK',
91
+ Az = 'AZ',
92
+ Me = 'ME',
93
+ Or = 'OR',
94
+ Ar = 'AR',
95
+ Md = 'MD',
96
+ Pa = 'PA',
97
+ As = 'AS',
98
+ Ma = 'MA',
99
+ Pr = 'PR',
100
+ Ca = 'CA',
101
+ Mi = 'MI',
102
+ Ri = 'RI',
103
+ Co = 'CO',
104
+ Mn = 'MN',
105
+ Sc = 'SC',
106
+ Ct = 'CT',
107
+ Ms = 'MS',
108
+ Sd = 'SD',
109
+ De = 'DE',
110
+ Mo = 'MO',
111
+ Tn = 'TN',
112
+ Dc = 'DC',
113
+ Mt = 'MT',
114
+ Tx = 'TX',
115
+ Fl = 'FL',
116
+ Ne = 'NE',
117
+ Tt = 'TT',
118
+ Ga = 'GA',
119
+ Nv = 'NV',
120
+ Ut = 'UT',
121
+ Gu = 'GU',
122
+ Nh = 'NH',
123
+ Vt = 'VT',
124
+ Hi = 'HI',
125
+ Nj = 'NJ',
126
+ Va = 'VA',
127
+ Id = 'ID',
128
+ Nm = 'NM',
129
+ Vi = 'VI',
130
+ Il = 'IL',
131
+ Ny = 'NY',
132
+ Wa = 'WA',
133
+ In = 'IN',
134
+ Nc = 'NC',
135
+ Wv = 'WV',
136
+ Ia = 'IA',
137
+ Nd = 'ND',
138
+ Wi = 'WI',
139
+ Ks = 'KS',
140
+ Mp = 'MP',
141
+ Wy = 'WY'
142
+ }
143
+
@@ -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 { InvoiceRepaymentScheduleItem } from '../models/InvoiceRepaymentScheduleItem';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class InvoiceRepaymentSchedule {
17
+ /**
18
+ * The invoice repayment schedule items.
19
+ */
20
+ 'schedule': Array<InvoiceRepaymentScheduleItem>;
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<InvoiceRepaymentScheduleItem>",
29
+ "format": ""
30
+ } ];
31
+
32
+ static getAttributeTypeMap() {
33
+ return InvoiceRepaymentSchedule.attributeTypeMap;
34
+ }
35
+
36
+ public constructor() {
37
+ }
38
+ }
39
+
@@ -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 InvoiceRepaymentScheduleItem {
16
+ /**
17
+ * The date on which an installment of the invoice is to be repaid - ISO 8601 format.
18
+ */
19
+ 'repaymentDate': string;
20
+ /**
21
+ * The amount to be paid as installment - in cents.
22
+ */
23
+ 'repaymentAmountCents': number;
24
+ /**
25
+ * The fee amount to be paid as installment - in cents.
26
+ */
27
+ 'repaymentFeeAmountCents': number;
28
+ /**
29
+ * The principal amount to be paid as installment - in cents.
30
+ */
31
+ 'repaymentPrincipalAmountCents': number;
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": "repaymentDate",
38
+ "baseName": "repaymentDate",
39
+ "type": "string",
40
+ "format": ""
41
+ },
42
+ {
43
+ "name": "repaymentAmountCents",
44
+ "baseName": "repaymentAmountCents",
45
+ "type": "number",
46
+ "format": ""
47
+ },
48
+ {
49
+ "name": "repaymentFeeAmountCents",
50
+ "baseName": "repaymentFeeAmountCents",
51
+ "type": "number",
52
+ "format": ""
53
+ },
54
+ {
55
+ "name": "repaymentPrincipalAmountCents",
56
+ "baseName": "repaymentPrincipalAmountCents",
57
+ "type": "number",
58
+ "format": ""
59
+ } ];
60
+
61
+ static getAttributeTypeMap() {
62
+ return InvoiceRepaymentScheduleItem.attributeTypeMap;
63
+ }
64
+
65
+ public constructor() {
66
+ }
67
+ }
68
+
@@ -0,0 +1,22 @@
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 InvoiceStatus {
16
+ InvoiceCreated = 'INVOICE_CREATED',
17
+ InvoiceFunded = 'INVOICE_FUNDED',
18
+ InvoicePaidInFull = 'INVOICE_PAID_IN_FULL',
19
+ Rejected = 'REJECTED',
20
+ Defaulted = 'DEFAULTED',
21
+ Late = 'LATE'
22
+ }
@@ -0,0 +1,115 @@
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 { IssuedProductServicingData } from '../models/IssuedProductServicingData';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class IssuedProduct {
17
+ /**
18
+ * The UUID representing the issued product in Kanmon.
19
+ */
20
+ 'id': string;
21
+ /**
22
+ * The UUID representing the offer tied to this issued product in Kanmon.
23
+ */
24
+ 'offerId': string;
25
+ /**
26
+ * The UUID representing the business in Kanmon.
27
+ */
28
+ 'businessId': string;
29
+ /**
30
+ * Your platform’s unique ID for the business.
31
+ */
32
+ 'platformBusinessId': string | null;
33
+ /**
34
+ * The current status of the loan.
35
+ */
36
+ 'loanStatus': IssuedProductLoanStatusEnum;
37
+ 'servicingData': IssuedProductServicingData;
38
+ /**
39
+ * Creation UTC ISO 8601 timestamp of the prequalification.
40
+ */
41
+ 'createdAt': Date;
42
+ /**
43
+ * Last updated UTC ISO 8601 timestamp of the prequalification.
44
+ */
45
+ 'updatedAt': Date;
46
+
47
+ static readonly discriminator: string | undefined = undefined;
48
+
49
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
50
+ {
51
+ "name": "id",
52
+ "baseName": "id",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "offerId",
58
+ "baseName": "offerId",
59
+ "type": "string",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "businessId",
64
+ "baseName": "businessId",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "platformBusinessId",
70
+ "baseName": "platformBusinessId",
71
+ "type": "string",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "loanStatus",
76
+ "baseName": "loanStatus",
77
+ "type": "IssuedProductLoanStatusEnum",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "servicingData",
82
+ "baseName": "servicingData",
83
+ "type": "IssuedProductServicingData",
84
+ "format": ""
85
+ },
86
+ {
87
+ "name": "createdAt",
88
+ "baseName": "createdAt",
89
+ "type": "Date",
90
+ "format": "date-time"
91
+ },
92
+ {
93
+ "name": "updatedAt",
94
+ "baseName": "updatedAt",
95
+ "type": "Date",
96
+ "format": "date-time"
97
+ } ];
98
+
99
+ static getAttributeTypeMap() {
100
+ return IssuedProduct.attributeTypeMap;
101
+ }
102
+
103
+ public constructor() {
104
+ }
105
+ }
106
+
107
+
108
+ export enum IssuedProductLoanStatusEnum {
109
+ Current = 'CURRENT',
110
+ Late = 'LATE',
111
+ FullyPaid = 'FULLY_PAID',
112
+ Refinanced = 'REFINANCED',
113
+ Defaulted = 'DEFAULTED'
114
+ }
115
+
@@ -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 IssuedProductNotFoundException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': IssuedProductNotFoundExceptionErrorCodeEnum;
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": "IssuedProductNotFoundExceptionErrorCodeEnum",
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 IssuedProductNotFoundException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum IssuedProductNotFoundExceptionErrorCodeEnum {
61
+ IssuedProductNotFoundException = 'IssuedProductNotFoundException'
62
+ }
63
+
@@ -0,0 +1,234 @@
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 { InvoiceFinancingServicingData } from '../models/InvoiceFinancingServicingData';
14
+ import { InvoicePaymentPlan } from '../models/InvoicePaymentPlan';
15
+ import { LineOfCreditServicingData } from '../models/LineOfCreditServicingData';
16
+ import { McaServicingData } from '../models/McaServicingData';
17
+ import { TermLoanServicingData } from '../models/TermLoanServicingData';
18
+ import { HttpFile } from '../http/http';
19
+
20
+ /**
21
+ * The data needed to service this specific type of issued product
22
+ */
23
+ export class IssuedProductServicingData {
24
+ 'productType': IssuedProductServicingDataProductTypeEnum;
25
+ /**
26
+ * The total loan amount - in cents.
27
+ */
28
+ 'loanAmountCents': number;
29
+ /**
30
+ * The total origination fee amount - in cents.
31
+ */
32
+ 'originationFeeCents': number;
33
+ /**
34
+ * The principal remaining on the loan - in cents.
35
+ */
36
+ 'principalBalanceCents': number;
37
+ /**
38
+ * The monthly payment amount - in cents.
39
+ */
40
+ 'monthlyPaymentCents': number;
41
+ /**
42
+ * The interest rate of the loan. E.g. a value of `10` means 10%.
43
+ */
44
+ 'interestRate': number;
45
+ /**
46
+ * The next scheduled payment date - ISO 8601 date format.
47
+ */
48
+ 'nextPaymentDate': string | null;
49
+ /**
50
+ * The total credit limit - in cents.
51
+ */
52
+ 'totalLimitCents': number;
53
+ /**
54
+ * The pricing plans available for this issued product.
55
+ */
56
+ 'pricingPlans': Array<InvoicePaymentPlan>;
57
+ /**
58
+ * The total limit less the amount of balance outstanding - in cents.
59
+ */
60
+ 'availableLimitCents': number;
61
+ /**
62
+ * The loan amount - in cents.
63
+ */
64
+ 'advanceAmountCents': number;
65
+ /**
66
+ * 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.
67
+ */
68
+ 'repaymentPercentage': number;
69
+ /**
70
+ * The fee percentage charged as the borrowing cost of the loan. E.g. a value of `1.3` means a 30% fee.
71
+ */
72
+ 'feeFactor': number;
73
+ /**
74
+ * 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.
75
+ */
76
+ 'totalRepaymentCents': number;
77
+ /**
78
+ * The repayment frequency of the loan. E.g. biweekly repayment occurs every 14 days, weekly repayment occurs every 7 days, etc.
79
+ */
80
+ 'repaymentFrequency': IssuedProductServicingDataRepaymentFrequencyEnum;
81
+ /**
82
+ * The total repayment amount less the amount repaid - in cents.
83
+ */
84
+ 'advanceBalanceCents': number;
85
+ /**
86
+ * The rate of interest on the loan. E.g. a value of `10` means 10%.
87
+ */
88
+ 'interestRatePercentage': number;
89
+ /**
90
+ * The fee percentage charged as the borrowing cost of the loan. E.g. a value of `2` means a 2% fee.
91
+ */
92
+ 'feePercentage': number;
93
+ /**
94
+ * The duration of the repayment for each draw - in months.
95
+ */
96
+ 'repaymentDurationMonths': number;
97
+
98
+ static readonly discriminator: string | undefined = undefined;
99
+
100
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
101
+ {
102
+ "name": "productType",
103
+ "baseName": "productType",
104
+ "type": "IssuedProductServicingDataProductTypeEnum",
105
+ "format": ""
106
+ },
107
+ {
108
+ "name": "loanAmountCents",
109
+ "baseName": "loanAmountCents",
110
+ "type": "number",
111
+ "format": ""
112
+ },
113
+ {
114
+ "name": "originationFeeCents",
115
+ "baseName": "originationFeeCents",
116
+ "type": "number",
117
+ "format": ""
118
+ },
119
+ {
120
+ "name": "principalBalanceCents",
121
+ "baseName": "principalBalanceCents",
122
+ "type": "number",
123
+ "format": ""
124
+ },
125
+ {
126
+ "name": "monthlyPaymentCents",
127
+ "baseName": "monthlyPaymentCents",
128
+ "type": "number",
129
+ "format": ""
130
+ },
131
+ {
132
+ "name": "interestRate",
133
+ "baseName": "interestRate",
134
+ "type": "number",
135
+ "format": ""
136
+ },
137
+ {
138
+ "name": "nextPaymentDate",
139
+ "baseName": "nextPaymentDate",
140
+ "type": "string",
141
+ "format": ""
142
+ },
143
+ {
144
+ "name": "totalLimitCents",
145
+ "baseName": "totalLimitCents",
146
+ "type": "number",
147
+ "format": ""
148
+ },
149
+ {
150
+ "name": "pricingPlans",
151
+ "baseName": "pricingPlans",
152
+ "type": "Array<InvoicePaymentPlan>",
153
+ "format": ""
154
+ },
155
+ {
156
+ "name": "availableLimitCents",
157
+ "baseName": "availableLimitCents",
158
+ "type": "number",
159
+ "format": ""
160
+ },
161
+ {
162
+ "name": "advanceAmountCents",
163
+ "baseName": "advanceAmountCents",
164
+ "type": "number",
165
+ "format": ""
166
+ },
167
+ {
168
+ "name": "repaymentPercentage",
169
+ "baseName": "repaymentPercentage",
170
+ "type": "number",
171
+ "format": ""
172
+ },
173
+ {
174
+ "name": "feeFactor",
175
+ "baseName": "feeFactor",
176
+ "type": "number",
177
+ "format": ""
178
+ },
179
+ {
180
+ "name": "totalRepaymentCents",
181
+ "baseName": "totalRepaymentCents",
182
+ "type": "number",
183
+ "format": ""
184
+ },
185
+ {
186
+ "name": "repaymentFrequency",
187
+ "baseName": "repaymentFrequency",
188
+ "type": "IssuedProductServicingDataRepaymentFrequencyEnum",
189
+ "format": ""
190
+ },
191
+ {
192
+ "name": "advanceBalanceCents",
193
+ "baseName": "advanceBalanceCents",
194
+ "type": "number",
195
+ "format": ""
196
+ },
197
+ {
198
+ "name": "interestRatePercentage",
199
+ "baseName": "interestRatePercentage",
200
+ "type": "number",
201
+ "format": ""
202
+ },
203
+ {
204
+ "name": "feePercentage",
205
+ "baseName": "feePercentage",
206
+ "type": "number",
207
+ "format": ""
208
+ },
209
+ {
210
+ "name": "repaymentDurationMonths",
211
+ "baseName": "repaymentDurationMonths",
212
+ "type": "number",
213
+ "format": ""
214
+ } ];
215
+
216
+ static getAttributeTypeMap() {
217
+ return IssuedProductServicingData.attributeTypeMap;
218
+ }
219
+
220
+ public constructor() {
221
+ }
222
+ }
223
+
224
+
225
+ export enum IssuedProductServicingDataProductTypeEnum {
226
+ LineOfCredit = 'LINE_OF_CREDIT'
227
+ }
228
+ export enum IssuedProductServicingDataRepaymentFrequencyEnum {
229
+ Daily = 'DAILY',
230
+ Weekly = 'WEEKLY',
231
+ Biweekly = 'BIWEEKLY',
232
+ Monthly = 'MONTHLY'
233
+ }
234
+