@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,106 @@
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 { OfferTerms } from '../models/OfferTerms';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class Offer {
17
+ /**
18
+ * A unique id representing the offer object.
19
+ */
20
+ 'id': string;
21
+ /**
22
+ * The UUID representing the business in Kanmon.
23
+ */
24
+ 'businessId': string;
25
+ /**
26
+ * Your platform’s unique ID for the business.
27
+ */
28
+ 'platformBusinessId': string | null;
29
+ 'terms': OfferTerms;
30
+ /**
31
+ * The ISO 8601 timestamp for when the offer expires.
32
+ */
33
+ 'expiredAt': string | null;
34
+ /**
35
+ * If the offer has been selected by the business, the ISO 8601 timestamp for when it was selected.
36
+ */
37
+ 'selectedAt': string | null;
38
+ /**
39
+ * Creation ISO 8601 timestamp of the offer.
40
+ */
41
+ 'createdAt': string;
42
+ /**
43
+ * Last updated ISO 8601 timestamp of the offer.
44
+ */
45
+ 'updatedAt': string;
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": "businessId",
58
+ "baseName": "businessId",
59
+ "type": "string",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "platformBusinessId",
64
+ "baseName": "platformBusinessId",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "terms",
70
+ "baseName": "terms",
71
+ "type": "OfferTerms",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "expiredAt",
76
+ "baseName": "expiredAt",
77
+ "type": "string",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "selectedAt",
82
+ "baseName": "selectedAt",
83
+ "type": "string",
84
+ "format": ""
85
+ },
86
+ {
87
+ "name": "createdAt",
88
+ "baseName": "createdAt",
89
+ "type": "string",
90
+ "format": ""
91
+ },
92
+ {
93
+ "name": "updatedAt",
94
+ "baseName": "updatedAt",
95
+ "type": "string",
96
+ "format": ""
97
+ } ];
98
+
99
+ static getAttributeTypeMap() {
100
+ return Offer.attributeTypeMap;
101
+ }
102
+
103
+ public constructor() {
104
+ }
105
+ }
106
+
@@ -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 OfferAlreadySelectedException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': OfferAlreadySelectedExceptionErrorCodeEnum;
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": "OfferAlreadySelectedExceptionErrorCodeEnum",
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 OfferAlreadySelectedException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum OfferAlreadySelectedExceptionErrorCodeEnum {
61
+ OfferAlreadySelectedException = 'OfferAlreadySelectedException'
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 OfferNotFoundException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': OfferNotFoundExceptionErrorCodeEnum;
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": "OfferNotFoundExceptionErrorCodeEnum",
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 OfferNotFoundException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum OfferNotFoundExceptionErrorCodeEnum {
61
+ OfferNotFoundException = 'OfferNotFoundException'
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 OfferNotLockedException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': OfferNotLockedExceptionErrorCodeEnum;
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": "OfferNotLockedExceptionErrorCodeEnum",
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 OfferNotLockedException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum OfferNotLockedExceptionErrorCodeEnum {
61
+ OfferNotLockedException = 'OfferNotLockedException'
62
+ }
63
+
@@ -0,0 +1,184 @@
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 { InvoiceFinancingOfferTerms } from '../models/InvoiceFinancingOfferTerms';
14
+ import { InvoicePaymentPlan } from '../models/InvoicePaymentPlan';
15
+ import { LineOfCreditOfferTerms } from '../models/LineOfCreditOfferTerms';
16
+ import { McaOfferTerms } from '../models/McaOfferTerms';
17
+ import { TermLoanOfferTerms } from '../models/TermLoanOfferTerms';
18
+ import { HttpFile } from '../http/http';
19
+
20
+ /**
21
+ * Terms of the offer.
22
+ */
23
+ export class OfferTerms {
24
+ 'productType': OfferTermsProductTypeEnum;
25
+ /**
26
+ * The maximum loan amount - in cents.
27
+ */
28
+ 'maxLoanAmountCents': number;
29
+ /**
30
+ * The loan amount - in cents. This defaults to `maxLoanAmountCents`. However, the business can select a smaller amount.
31
+ */
32
+ 'loanAmountCents': number;
33
+ /**
34
+ * The rate of interest on the loan. E.g. a value of `10` means 10%.
35
+ */
36
+ 'interestRatePercentage': number;
37
+ /**
38
+ * The duration of the loan - in months.
39
+ */
40
+ 'durationMonths': number;
41
+ /**
42
+ * The fee percentage charged as the borrowing cost of the loan. E.g. a value of `2` means a 2% fee.
43
+ */
44
+ 'feePercentage': number;
45
+ /**
46
+ * The total limit allowed for this offer - in cents.
47
+ */
48
+ 'totalLimitCents': number;
49
+ /**
50
+ * The pricing plans available for this offer.
51
+ */
52
+ 'pricingPlans': Array<InvoicePaymentPlan>;
53
+ /**
54
+ * The loan amount - in cents.
55
+ */
56
+ 'advanceAmountCents': number;
57
+ /**
58
+ * 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.
59
+ */
60
+ 'repaymentPercentage': number;
61
+ /**
62
+ * The fee percentage charged as the borrowing cost of the loan. E.g. a value of `1.3` means a 30% fee.
63
+ */
64
+ 'feeFactor': number;
65
+ /**
66
+ * The repayment frequency of the loan. E.g. biweekly repayment occurs every 14 days, weekly repayment occurs every 7 days, etc.
67
+ */
68
+ 'repaymentFrequency': OfferTermsRepaymentFrequencyEnum;
69
+ /**
70
+ * 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.
71
+ */
72
+ 'totalRepaymentCents': number;
73
+ /**
74
+ * The duration of the repayment for each draw - in months.
75
+ */
76
+ 'repaymentDurationMonths': number;
77
+
78
+ static readonly discriminator: string | undefined = undefined;
79
+
80
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
81
+ {
82
+ "name": "productType",
83
+ "baseName": "productType",
84
+ "type": "OfferTermsProductTypeEnum",
85
+ "format": ""
86
+ },
87
+ {
88
+ "name": "maxLoanAmountCents",
89
+ "baseName": "maxLoanAmountCents",
90
+ "type": "number",
91
+ "format": ""
92
+ },
93
+ {
94
+ "name": "loanAmountCents",
95
+ "baseName": "loanAmountCents",
96
+ "type": "number",
97
+ "format": ""
98
+ },
99
+ {
100
+ "name": "interestRatePercentage",
101
+ "baseName": "interestRatePercentage",
102
+ "type": "number",
103
+ "format": ""
104
+ },
105
+ {
106
+ "name": "durationMonths",
107
+ "baseName": "durationMonths",
108
+ "type": "number",
109
+ "format": ""
110
+ },
111
+ {
112
+ "name": "feePercentage",
113
+ "baseName": "feePercentage",
114
+ "type": "number",
115
+ "format": ""
116
+ },
117
+ {
118
+ "name": "totalLimitCents",
119
+ "baseName": "totalLimitCents",
120
+ "type": "number",
121
+ "format": ""
122
+ },
123
+ {
124
+ "name": "pricingPlans",
125
+ "baseName": "pricingPlans",
126
+ "type": "Array<InvoicePaymentPlan>",
127
+ "format": ""
128
+ },
129
+ {
130
+ "name": "advanceAmountCents",
131
+ "baseName": "advanceAmountCents",
132
+ "type": "number",
133
+ "format": ""
134
+ },
135
+ {
136
+ "name": "repaymentPercentage",
137
+ "baseName": "repaymentPercentage",
138
+ "type": "number",
139
+ "format": ""
140
+ },
141
+ {
142
+ "name": "feeFactor",
143
+ "baseName": "feeFactor",
144
+ "type": "number",
145
+ "format": ""
146
+ },
147
+ {
148
+ "name": "repaymentFrequency",
149
+ "baseName": "repaymentFrequency",
150
+ "type": "OfferTermsRepaymentFrequencyEnum",
151
+ "format": ""
152
+ },
153
+ {
154
+ "name": "totalRepaymentCents",
155
+ "baseName": "totalRepaymentCents",
156
+ "type": "number",
157
+ "format": ""
158
+ },
159
+ {
160
+ "name": "repaymentDurationMonths",
161
+ "baseName": "repaymentDurationMonths",
162
+ "type": "number",
163
+ "format": ""
164
+ } ];
165
+
166
+ static getAttributeTypeMap() {
167
+ return OfferTerms.attributeTypeMap;
168
+ }
169
+
170
+ public constructor() {
171
+ }
172
+ }
173
+
174
+
175
+ export enum OfferTermsProductTypeEnum {
176
+ LineOfCredit = 'LINE_OF_CREDIT'
177
+ }
178
+ export enum OfferTermsRepaymentFrequencyEnum {
179
+ Daily = 'DAILY',
180
+ Weekly = 'WEEKLY',
181
+ Biweekly = 'BIWEEKLY',
182
+ Monthly = 'MONTHLY'
183
+ }
184
+
@@ -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 PaginationResult {
16
+ /**
17
+ * The number of records to limit when performing pagination.
18
+ */
19
+ 'limit': number;
20
+ /**
21
+ * The number of records to skip when performing pagination.
22
+ */
23
+ 'offset': number;
24
+ /**
25
+ * The total number of records that matched the query.
26
+ */
27
+ 'totalCount': number;
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": "limit",
34
+ "baseName": "limit",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "offset",
40
+ "baseName": "offset",
41
+ "type": "number",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "totalCount",
46
+ "baseName": "totalCount",
47
+ "type": "number",
48
+ "format": ""
49
+ } ];
50
+
51
+ static getAttributeTypeMap() {
52
+ return PaginationResult.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+