@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,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 { Business } from '../models/Business';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetBusinessesResponse {
18
+ /**
19
+ * Array of businesses.
20
+ */
21
+ 'businesses': Array<Business>;
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": "businesses",
32
+ "baseName": "businesses",
33
+ "type": "Array<Business>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetBusinessesResponse.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 { DrawRequest } from '../models/DrawRequest';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetDrawRequestsResponse {
18
+ /**
19
+ * Array of draw requests.
20
+ */
21
+ 'drawRequests': Array<DrawRequest>;
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": "drawRequests",
32
+ "baseName": "drawRequests",
33
+ "type": "Array<DrawRequest>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetDrawRequestsResponse.attributeTypeMap;
45
+ }
46
+
47
+ public constructor() {
48
+ }
49
+ }
50
+
@@ -0,0 +1,65 @@
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 { BusinessNotFoundException } from '../models/BusinessNotFoundException';
14
+ import { InvoiceNotFoundException } from '../models/InvoiceNotFoundException';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetInvoice404Response {
18
+ /**
19
+ * Safe for programmatic use.
20
+ */
21
+ 'errorCode': GetInvoice404ResponseErrorCodeEnum;
22
+ /**
23
+ * The human readable description of the error.
24
+ */
25
+ 'message': string;
26
+ /**
27
+ * When the error occurred - ISO 8601 format.
28
+ */
29
+ 'timestamp': string;
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": "errorCode",
36
+ "baseName": "errorCode",
37
+ "type": "GetInvoice404ResponseErrorCodeEnum",
38
+ "format": ""
39
+ },
40
+ {
41
+ "name": "message",
42
+ "baseName": "message",
43
+ "type": "string",
44
+ "format": ""
45
+ },
46
+ {
47
+ "name": "timestamp",
48
+ "baseName": "timestamp",
49
+ "type": "string",
50
+ "format": ""
51
+ } ];
52
+
53
+ static getAttributeTypeMap() {
54
+ return GetInvoice404Response.attributeTypeMap;
55
+ }
56
+
57
+ public constructor() {
58
+ }
59
+ }
60
+
61
+
62
+ export enum GetInvoice404ResponseErrorCodeEnum {
63
+ BusinessNotFoundException = 'BusinessNotFoundException'
64
+ }
65
+
@@ -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 { Invoice } from '../models/Invoice';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetInvoicesResponse {
18
+ /**
19
+ * Array of invoices.
20
+ */
21
+ 'invoices': Array<Invoice>;
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": "invoices",
32
+ "baseName": "invoices",
33
+ "type": "Array<Invoice>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetInvoicesResponse.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 { IssuedProduct } from '../models/IssuedProduct';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetIssuedProductsResponse {
18
+ /**
19
+ * Array of issued products.
20
+ */
21
+ 'issuedProducts': Array<IssuedProduct>;
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": "issuedProducts",
32
+ "baseName": "issuedProducts",
33
+ "type": "Array<IssuedProduct>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetIssuedProductsResponse.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 { Offer } from '../models/Offer';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetOffersResponse {
18
+ /**
19
+ * Array of offers.
20
+ */
21
+ 'offers': Array<Offer>;
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": "offers",
32
+ "baseName": "offers",
33
+ "type": "Array<Offer>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetOffersResponse.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 { PaginationResult } from '../models/PaginationResult';
14
+ import { PaymentScheduleItem } from '../models/PaymentScheduleItem';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetPaymentScheduleResponse {
18
+ /**
19
+ * Array of payment schedule items for an issued product.
20
+ */
21
+ 'paymentSchedule': Array<PaymentScheduleItem>;
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": "paymentSchedule",
32
+ "baseName": "paymentSchedule",
33
+ "type": "Array<PaymentScheduleItem>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetPaymentScheduleResponse.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 { BusinessPrequalification } from '../models/BusinessPrequalification';
14
+ import { PaginationResult } from '../models/PaginationResult';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetPrequalificationsResponse {
18
+ /**
19
+ * Array of prequalifications.
20
+ */
21
+ 'prequalifications': Array<BusinessPrequalification>;
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": "prequalifications",
32
+ "baseName": "prequalifications",
33
+ "type": "Array<BusinessPrequalification>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetPrequalificationsResponse.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 { PaginationResult } from '../models/PaginationResult';
14
+ import { User } from '../models/User';
15
+ import { HttpFile } from '../http/http';
16
+
17
+ export class GetUsersResponse {
18
+ /**
19
+ * Array of users.
20
+ */
21
+ 'users': Array<User>;
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": "users",
32
+ "baseName": "users",
33
+ "type": "Array<User>",
34
+ "format": ""
35
+ },
36
+ {
37
+ "name": "pagination",
38
+ "baseName": "pagination",
39
+ "type": "PaginationResult",
40
+ "format": ""
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return GetUsersResponse.attributeTypeMap;
45
+ }
46
+
47
+ public constructor() {
48
+ }
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 InternalServerErrorException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': InternalServerErrorExceptionErrorCodeEnum;
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": "InternalServerErrorExceptionErrorCodeEnum",
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 InternalServerErrorException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum InternalServerErrorExceptionErrorCodeEnum {
61
+ InternalServerErrorException = 'InternalServerErrorException'
62
+ }
63
+
@@ -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 InvalidInvoiceDueDateException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': InvalidInvoiceDueDateExceptionErrorCodeEnum;
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": "InvalidInvoiceDueDateExceptionErrorCodeEnum",
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 InvalidInvoiceDueDateException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum InvalidInvoiceDueDateExceptionErrorCodeEnum {
61
+ InvalidInvoiceDueDateException = 'InvalidInvoiceDueDateException'
62
+ }
63
+