@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,125 @@
1
+ /**
2
+ * Kanmon Public V2 API
3
+ * Kanmon\'s public api. Contains all of the endpoints for both capital providers and platforms
4
+ *
5
+ * OpenAPI spec version: 2.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { Address } from '../models/Address';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class CreateUserRequestBody {
17
+ /**
18
+ * Your platform’s unique ID for the user.
19
+ */
20
+ 'platformUserId': string;
21
+ /**
22
+ * Your platform’s unique business ID for the business. Either `platformBusinessId` or `businessId` is required.
23
+ */
24
+ 'platformBusinessId'?: string;
25
+ /**
26
+ * The UUID representing the user’s business in Kanmon. Either `platformBusinessId` or `businessId` is required.
27
+ */
28
+ 'businessId'?: string;
29
+ /**
30
+ * The user’s email.
31
+ */
32
+ 'email'?: string;
33
+ /**
34
+ * The user’s first name.
35
+ */
36
+ 'firstName'?: string;
37
+ /**
38
+ * The user’s last name.
39
+ */
40
+ 'lastName'?: string;
41
+ /**
42
+ * The user’s address.
43
+ */
44
+ 'address'?: Address;
45
+ /**
46
+ * The user’s roles. If no roles are defined, the user will be prompted to select a role within Kanmon. <br/><br/>A primary owner is a user with the authority to issue debt on behalf of the business. <br/>This means the user can complete onboarding, receive offers, choose to accept offers, <br/>sign financing agreements, and service an active issued product. <br/><br/>An operator is a user with permission to service an active issued product. Examples are uploading invoices on <br/>behalf of the business, checking the status of payments, etc. <br /><br/>Please note Kanmon supports an additional user role called secondary owners. <br/>Secondary owners are beneficial owners of a business, like primary owners, and Kanmon <br/>must perform KYC checks for these users. Kanmon will handle creating and managing <br/>these users for KYC purposes through a separate process. <br/>
47
+ */
48
+ 'roles'?: Array<CreateUserRequestBodyRolesEnum>;
49
+ /**
50
+ * Metadata from your system that you want to associate the user with.
51
+ */
52
+ 'metadata'?: any;
53
+
54
+ static readonly discriminator: string | undefined = undefined;
55
+
56
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
57
+ {
58
+ "name": "platformUserId",
59
+ "baseName": "platformUserId",
60
+ "type": "string",
61
+ "format": ""
62
+ },
63
+ {
64
+ "name": "platformBusinessId",
65
+ "baseName": "platformBusinessId",
66
+ "type": "string",
67
+ "format": ""
68
+ },
69
+ {
70
+ "name": "businessId",
71
+ "baseName": "businessId",
72
+ "type": "string",
73
+ "format": ""
74
+ },
75
+ {
76
+ "name": "email",
77
+ "baseName": "email",
78
+ "type": "string",
79
+ "format": ""
80
+ },
81
+ {
82
+ "name": "firstName",
83
+ "baseName": "firstName",
84
+ "type": "string",
85
+ "format": ""
86
+ },
87
+ {
88
+ "name": "lastName",
89
+ "baseName": "lastName",
90
+ "type": "string",
91
+ "format": ""
92
+ },
93
+ {
94
+ "name": "address",
95
+ "baseName": "address",
96
+ "type": "Address",
97
+ "format": ""
98
+ },
99
+ {
100
+ "name": "roles",
101
+ "baseName": "roles",
102
+ "type": "Array<CreateUserRequestBodyRolesEnum>",
103
+ "format": ""
104
+ },
105
+ {
106
+ "name": "metadata",
107
+ "baseName": "metadata",
108
+ "type": "any",
109
+ "format": ""
110
+ } ];
111
+
112
+ static getAttributeTypeMap() {
113
+ return CreateUserRequestBody.attributeTypeMap;
114
+ }
115
+
116
+ public constructor() {
117
+ }
118
+ }
119
+
120
+
121
+ export enum CreateUserRequestBodyRolesEnum {
122
+ PrimaryOwner = 'PRIMARY_OWNER',
123
+ Operator = 'OPERATOR'
124
+ }
125
+
@@ -0,0 +1,138 @@
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 { DrawRequestState } from '../models/DrawRequestState';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class DrawRequest {
17
+ /**
18
+ * Kanmon’s unique ID for the draw request.
19
+ */
20
+ 'id': string;
21
+ /**
22
+ * The UUID representing the issued product in Kanmon.
23
+ */
24
+ 'issuedProductId': string;
25
+ /**
26
+ * The total draw request amount - in cents.
27
+ */
28
+ 'amountCents': number;
29
+ /**
30
+ * The total draw request amount, less the fees - in cents. This is the amount disbursed to the business if the draw request is approved.
31
+ */
32
+ 'disbursementAmountCents': number;
33
+ /**
34
+ * The fee amount - in cents.
35
+ */
36
+ 'feeAmountCents': number;
37
+ 'status': DrawRequestState;
38
+ /**
39
+ * The interest rate for the draw request. E.g. a value of `10` means 10%.
40
+ */
41
+ 'interestRatePercentage': number;
42
+ /**
43
+ * The fee percentage charged as the borrowing cost of the draw request. E.g. a value of `2` means a 2% fee.
44
+ */
45
+ 'feePercentage': number;
46
+ /**
47
+ * The duration of the repayment for the draw request - in months.
48
+ */
49
+ 'repaymentDurationMonths': number;
50
+ /**
51
+ * Creation UTC ISO 8601 timestamp of the draw request.
52
+ */
53
+ 'createdAt': string;
54
+ /**
55
+ * Last updated UTC ISO 8601 timestamp of the draw request.
56
+ */
57
+ 'updatedAt': string;
58
+
59
+ static readonly discriminator: string | undefined = undefined;
60
+
61
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
62
+ {
63
+ "name": "id",
64
+ "baseName": "id",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "issuedProductId",
70
+ "baseName": "issuedProductId",
71
+ "type": "string",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "amountCents",
76
+ "baseName": "amountCents",
77
+ "type": "number",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "disbursementAmountCents",
82
+ "baseName": "disbursementAmountCents",
83
+ "type": "number",
84
+ "format": ""
85
+ },
86
+ {
87
+ "name": "feeAmountCents",
88
+ "baseName": "feeAmountCents",
89
+ "type": "number",
90
+ "format": ""
91
+ },
92
+ {
93
+ "name": "status",
94
+ "baseName": "status",
95
+ "type": "DrawRequestState",
96
+ "format": ""
97
+ },
98
+ {
99
+ "name": "interestRatePercentage",
100
+ "baseName": "interestRatePercentage",
101
+ "type": "number",
102
+ "format": ""
103
+ },
104
+ {
105
+ "name": "feePercentage",
106
+ "baseName": "feePercentage",
107
+ "type": "number",
108
+ "format": ""
109
+ },
110
+ {
111
+ "name": "repaymentDurationMonths",
112
+ "baseName": "repaymentDurationMonths",
113
+ "type": "number",
114
+ "format": ""
115
+ },
116
+ {
117
+ "name": "createdAt",
118
+ "baseName": "createdAt",
119
+ "type": "string",
120
+ "format": ""
121
+ },
122
+ {
123
+ "name": "updatedAt",
124
+ "baseName": "updatedAt",
125
+ "type": "string",
126
+ "format": ""
127
+ } ];
128
+
129
+ static getAttributeTypeMap() {
130
+ return DrawRequest.attributeTypeMap;
131
+ }
132
+
133
+ public constructor() {
134
+ }
135
+ }
136
+
137
+
138
+
@@ -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 DrawRequestNotFoundException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': DrawRequestNotFoundExceptionErrorCodeEnum;
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": "DrawRequestNotFoundExceptionErrorCodeEnum",
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 DrawRequestNotFoundException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum DrawRequestNotFoundExceptionErrorCodeEnum {
61
+ DrawRequestNotFoundException = 'DrawRequestNotFoundException'
62
+ }
63
+
@@ -0,0 +1,21 @@
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 DrawRequestState {
16
+ DrawRequestCreated = 'DRAW_REQUEST_CREATED',
17
+ DrawRequestFunded = 'DRAW_REQUEST_FUNDED',
18
+ DrawRequestPaidInFull = 'DRAW_REQUEST_PAID_IN_FULL',
19
+ Rejected = 'REJECTED',
20
+ Defaulted = 'DEFAULTED'
21
+ }
@@ -0,0 +1,38 @@
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 EmbeddedSession {
16
+ /**
17
+ * The session token used to launch an embedded session.
18
+ */
19
+ 'sessionToken': string;
20
+
21
+ static readonly discriminator: string | undefined = undefined;
22
+
23
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24
+ {
25
+ "name": "sessionToken",
26
+ "baseName": "sessionToken",
27
+ "type": "string",
28
+ "format": ""
29
+ } ];
30
+
31
+ static getAttributeTypeMap() {
32
+ return EmbeddedSession.attributeTypeMap;
33
+ }
34
+
35
+ public constructor() {
36
+ }
37
+ }
38
+
@@ -0,0 +1,50 @@
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 FixedDateInvoiceRepaymentWindow {
16
+ 'repaymentType': FixedDateInvoiceRepaymentWindowRepaymentTypeEnum;
17
+ /**
18
+ * The day on which the repayment is due. E.g. a value of `15` means the repayment is due on the 15th.
19
+ */
20
+ 'monthlyRepaymentDay': number;
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": "repaymentType",
27
+ "baseName": "repaymentType",
28
+ "type": "FixedDateInvoiceRepaymentWindowRepaymentTypeEnum",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "monthlyRepaymentDay",
33
+ "baseName": "monthlyRepaymentDay",
34
+ "type": "number",
35
+ "format": ""
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return FixedDateInvoiceRepaymentWindow.attributeTypeMap;
40
+ }
41
+
42
+ public constructor() {
43
+ }
44
+ }
45
+
46
+
47
+ export enum FixedDateInvoiceRepaymentWindowRepaymentTypeEnum {
48
+ FixedDate = 'FIXED_DATE'
49
+ }
50
+
@@ -0,0 +1,50 @@
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 FixedDurationInvoiceRepaymentWindow {
16
+ 'repaymentType': FixedDurationInvoiceRepaymentWindowRepaymentTypeEnum;
17
+ /**
18
+ * This amount of days after which the repayment duration is due.
19
+ */
20
+ 'repaymentDurationDays': number;
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": "repaymentType",
27
+ "baseName": "repaymentType",
28
+ "type": "FixedDurationInvoiceRepaymentWindowRepaymentTypeEnum",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "repaymentDurationDays",
33
+ "baseName": "repaymentDurationDays",
34
+ "type": "number",
35
+ "format": ""
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return FixedDurationInvoiceRepaymentWindow.attributeTypeMap;
40
+ }
41
+
42
+ public constructor() {
43
+ }
44
+ }
45
+
46
+
47
+ export enum FixedDurationInvoiceRepaymentWindowRepaymentTypeEnum {
48
+ FixedDuration = 'FIXED_DURATION'
49
+ }
50
+
@@ -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 ForbiddenException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': ForbiddenExceptionErrorCodeEnum;
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": "ForbiddenExceptionErrorCodeEnum",
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 ForbiddenException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum ForbiddenExceptionErrorCodeEnum {
61
+ ForbiddenException = 'ForbiddenException'
62
+ }
63
+
@@ -0,0 +1,50 @@
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 { ActivityLog } from '../models/ActivityLog';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetActivityLogsResponse {
18
+ /**
19
+ * An array of activity logs.
20
+ */
21
+ 'activityLogs': Array<ActivityLog>;
22
+ /**
23
+ * Pagination metadata.
24
+ */
25
+ 'pagination': PaginationResult;
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": "activityLogs",
32
+ "baseName": "activityLogs",
33
+ "type": "Array<ActivityLog>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetActivityLogsResponse.attributeTypeMap;
45
+ }
46
+
47
+ public constructor() {
48
+ }
49
+ }
50
+
@@ -0,0 +1,50 @@
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 { BusinessBankAccount } from '../models/BusinessBankAccount';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetBusinessBankAccountsResponse {
18
+ /**
19
+ * Array of business bank accounts.
20
+ */
21
+ 'bankAccounts': Array<BusinessBankAccount>;
22
+ /**
23
+ * Pagination metadata.
24
+ */
25
+ 'pagination': PaginationResult;
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": "bankAccounts",
32
+ "baseName": "bankAccounts",
33
+ "type": "Array<BusinessBankAccount>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetBusinessBankAccountsResponse.attributeTypeMap;
45
+ }
46
+
47
+ public constructor() {
48
+ }
49
+ }
50
+