@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,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 PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductExceptionErrorCodeEnum;
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": "PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductExceptionErrorCodeEnum",
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 PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductExceptionErrorCodeEnum {
61
+ PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException = 'PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException'
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 PrimaryBusinessOwnerAlreadyExistsForBusinessException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': PrimaryBusinessOwnerAlreadyExistsForBusinessExceptionErrorCodeEnum;
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": "PrimaryBusinessOwnerAlreadyExistsForBusinessExceptionErrorCodeEnum",
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 PrimaryBusinessOwnerAlreadyExistsForBusinessException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum PrimaryBusinessOwnerAlreadyExistsForBusinessExceptionErrorCodeEnum {
61
+ PrimaryBusinessOwnerAlreadyExistsForBusinessException = 'PrimaryBusinessOwnerAlreadyExistsForBusinessException'
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 PrimaryBusinessOwnerAlreadyExistsWithEmailException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': PrimaryBusinessOwnerAlreadyExistsWithEmailExceptionErrorCodeEnum;
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": "PrimaryBusinessOwnerAlreadyExistsWithEmailExceptionErrorCodeEnum",
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 PrimaryBusinessOwnerAlreadyExistsWithEmailException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum PrimaryBusinessOwnerAlreadyExistsWithEmailExceptionErrorCodeEnum {
61
+ PrimaryBusinessOwnerAlreadyExistsWithEmailException = 'PrimaryBusinessOwnerAlreadyExistsWithEmailException'
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 PrimaryBusinessOwnerNotFoundException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': PrimaryBusinessOwnerNotFoundExceptionErrorCodeEnum;
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": "PrimaryBusinessOwnerNotFoundExceptionErrorCodeEnum",
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 PrimaryBusinessOwnerNotFoundException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum PrimaryBusinessOwnerNotFoundExceptionErrorCodeEnum {
61
+ PrimaryBusinessOwnerNotFoundException = 'PrimaryBusinessOwnerNotFoundException'
62
+ }
63
+
@@ -0,0 +1,165 @@
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 SessionInvoice {
17
+ /**
18
+ * Your platform’s unique ID for the invoice.
19
+ */
20
+ 'platformInvoiceId': string;
21
+ /**
22
+ * Your user-facing identifier for the invoice. This does not need to be unique. This may or may not be the same as your `platformInvoiceId`.
23
+ */
24
+ 'platformInvoiceNumber': string;
25
+ /**
26
+ * The invoice amount - in cents. This needs to be greater than or equal to 100.
27
+ */
28
+ 'invoiceAmountCents': number;
29
+ /**
30
+ * The date when the invoice will be paid by the payor. ISO 8601 date format. This date must be at least 7 days in the future and must be after the `invoiceIssuedDate`.
31
+ */
32
+ 'invoiceDueDate': string;
33
+ /**
34
+ * The date when the payee issued the invoice. ISO 8601 date format.
35
+ */
36
+ 'invoiceIssuedDate': string;
37
+ /**
38
+ * The email of the payor.
39
+ */
40
+ 'payorEmail'?: string;
41
+ /**
42
+ * The address of the payor.
43
+ */
44
+ 'payorAddress'?: Address;
45
+ /**
46
+ * `INDIVIDUAL` if the payor is a person and `BUSINESS` if the payor is a company.
47
+ */
48
+ 'payorType': SessionInvoicePayorTypeEnum;
49
+ /**
50
+ * The registered name of the payor business when the payor is a business and not an individual. Required and should only be defined if `payorType` is `BUSINESS`.
51
+ */
52
+ 'payorBusinessName'?: string;
53
+ /**
54
+ * The first name of the payor when the payor is an individual and not a business. Required and should only be defined if `payorType` is `INDIVIDUAL`.
55
+ */
56
+ 'payorFirstName'?: string;
57
+ /**
58
+ * The middle name of the payor when the payor is an individual and not a business. Optional and should only be defined if `payorType` is `INDIVIDUAL`.
59
+ */
60
+ 'payorMiddleName'?: string;
61
+ /**
62
+ * The last name of the payor when the payor is an individual and not a business. Required and should only be defined if `payorType` is `INDIVIDUAL`.
63
+ */
64
+ 'payorLastName'?: string;
65
+ /**
66
+ * The description of the invoice.
67
+ */
68
+ 'description': string;
69
+
70
+ static readonly discriminator: string | undefined = undefined;
71
+
72
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
73
+ {
74
+ "name": "platformInvoiceId",
75
+ "baseName": "platformInvoiceId",
76
+ "type": "string",
77
+ "format": ""
78
+ },
79
+ {
80
+ "name": "platformInvoiceNumber",
81
+ "baseName": "platformInvoiceNumber",
82
+ "type": "string",
83
+ "format": ""
84
+ },
85
+ {
86
+ "name": "invoiceAmountCents",
87
+ "baseName": "invoiceAmountCents",
88
+ "type": "number",
89
+ "format": ""
90
+ },
91
+ {
92
+ "name": "invoiceDueDate",
93
+ "baseName": "invoiceDueDate",
94
+ "type": "string",
95
+ "format": ""
96
+ },
97
+ {
98
+ "name": "invoiceIssuedDate",
99
+ "baseName": "invoiceIssuedDate",
100
+ "type": "string",
101
+ "format": ""
102
+ },
103
+ {
104
+ "name": "payorEmail",
105
+ "baseName": "payorEmail",
106
+ "type": "string",
107
+ "format": ""
108
+ },
109
+ {
110
+ "name": "payorAddress",
111
+ "baseName": "payorAddress",
112
+ "type": "Address",
113
+ "format": ""
114
+ },
115
+ {
116
+ "name": "payorType",
117
+ "baseName": "payorType",
118
+ "type": "SessionInvoicePayorTypeEnum",
119
+ "format": ""
120
+ },
121
+ {
122
+ "name": "payorBusinessName",
123
+ "baseName": "payorBusinessName",
124
+ "type": "string",
125
+ "format": ""
126
+ },
127
+ {
128
+ "name": "payorFirstName",
129
+ "baseName": "payorFirstName",
130
+ "type": "string",
131
+ "format": ""
132
+ },
133
+ {
134
+ "name": "payorMiddleName",
135
+ "baseName": "payorMiddleName",
136
+ "type": "string",
137
+ "format": ""
138
+ },
139
+ {
140
+ "name": "payorLastName",
141
+ "baseName": "payorLastName",
142
+ "type": "string",
143
+ "format": ""
144
+ },
145
+ {
146
+ "name": "description",
147
+ "baseName": "description",
148
+ "type": "string",
149
+ "format": ""
150
+ } ];
151
+
152
+ static getAttributeTypeMap() {
153
+ return SessionInvoice.attributeTypeMap;
154
+ }
155
+
156
+ public constructor() {
157
+ }
158
+ }
159
+
160
+
161
+ export enum SessionInvoicePayorTypeEnum {
162
+ Business = 'BUSINESS',
163
+ Individual = 'INDIVIDUAL'
164
+ }
165
+
@@ -0,0 +1,175 @@
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 SessionInvoiceWithInvoiceFile {
17
+ /**
18
+ * Your platform’s unique ID for the invoice.
19
+ */
20
+ 'platformInvoiceId': string;
21
+ /**
22
+ * The UUID of the invoice document created in Kanmon.
23
+ */
24
+ 'documentId': string;
25
+ /**
26
+ * Your user-facing identifier for the invoice. This does not need to be unique. This may or may not be the same as your `platformInvoiceId`.
27
+ */
28
+ 'platformInvoiceNumber'?: string;
29
+ /**
30
+ * The invoice amount - in cents. This needs to be greater than or equal to 100.
31
+ */
32
+ 'invoiceAmountCents'?: number;
33
+ /**
34
+ * The date when the invoice will be paid by the payor. ISO 8601 date format. This date must be at least 7 days in the future and must be after the `invoiceIssuedDate`.
35
+ */
36
+ 'invoiceDueDate'?: string;
37
+ /**
38
+ * The date when the payee issued the invoice. ISO 8601 date format.
39
+ */
40
+ 'invoiceIssuedDate'?: string;
41
+ /**
42
+ * The email of the payor.
43
+ */
44
+ 'payorEmail'?: string;
45
+ /**
46
+ * The address of the payor.
47
+ */
48
+ 'payorAddress'?: Address;
49
+ /**
50
+ * `INDIVIDUAL` if the payor is a person and `BUSINESS` if the payor is a company.
51
+ */
52
+ 'payorType'?: SessionInvoiceWithInvoiceFilePayorTypeEnum;
53
+ /**
54
+ * The registered name of the payor business when the payor is a business and not an individual.
55
+ */
56
+ 'payorBusinessName'?: string;
57
+ /**
58
+ * The first name of the payor when the payor is an individual and not a business.
59
+ */
60
+ 'payorFirstName'?: string;
61
+ /**
62
+ * The middle name of the payor when the payor is an individual and not a business.
63
+ */
64
+ 'payorMiddleName'?: string;
65
+ /**
66
+ * The last name of the payor when the payor is an individual and not a business.
67
+ */
68
+ 'payorLastName'?: string;
69
+ /**
70
+ * The description of the invoice.
71
+ */
72
+ 'description'?: string;
73
+
74
+ static readonly discriminator: string | undefined = undefined;
75
+
76
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
77
+ {
78
+ "name": "platformInvoiceId",
79
+ "baseName": "platformInvoiceId",
80
+ "type": "string",
81
+ "format": ""
82
+ },
83
+ {
84
+ "name": "documentId",
85
+ "baseName": "documentId",
86
+ "type": "string",
87
+ "format": ""
88
+ },
89
+ {
90
+ "name": "platformInvoiceNumber",
91
+ "baseName": "platformInvoiceNumber",
92
+ "type": "string",
93
+ "format": ""
94
+ },
95
+ {
96
+ "name": "invoiceAmountCents",
97
+ "baseName": "invoiceAmountCents",
98
+ "type": "number",
99
+ "format": ""
100
+ },
101
+ {
102
+ "name": "invoiceDueDate",
103
+ "baseName": "invoiceDueDate",
104
+ "type": "string",
105
+ "format": ""
106
+ },
107
+ {
108
+ "name": "invoiceIssuedDate",
109
+ "baseName": "invoiceIssuedDate",
110
+ "type": "string",
111
+ "format": ""
112
+ },
113
+ {
114
+ "name": "payorEmail",
115
+ "baseName": "payorEmail",
116
+ "type": "string",
117
+ "format": ""
118
+ },
119
+ {
120
+ "name": "payorAddress",
121
+ "baseName": "payorAddress",
122
+ "type": "Address",
123
+ "format": ""
124
+ },
125
+ {
126
+ "name": "payorType",
127
+ "baseName": "payorType",
128
+ "type": "SessionInvoiceWithInvoiceFilePayorTypeEnum",
129
+ "format": ""
130
+ },
131
+ {
132
+ "name": "payorBusinessName",
133
+ "baseName": "payorBusinessName",
134
+ "type": "string",
135
+ "format": ""
136
+ },
137
+ {
138
+ "name": "payorFirstName",
139
+ "baseName": "payorFirstName",
140
+ "type": "string",
141
+ "format": ""
142
+ },
143
+ {
144
+ "name": "payorMiddleName",
145
+ "baseName": "payorMiddleName",
146
+ "type": "string",
147
+ "format": ""
148
+ },
149
+ {
150
+ "name": "payorLastName",
151
+ "baseName": "payorLastName",
152
+ "type": "string",
153
+ "format": ""
154
+ },
155
+ {
156
+ "name": "description",
157
+ "baseName": "description",
158
+ "type": "string",
159
+ "format": ""
160
+ } ];
161
+
162
+ static getAttributeTypeMap() {
163
+ return SessionInvoiceWithInvoiceFile.attributeTypeMap;
164
+ }
165
+
166
+ public constructor() {
167
+ }
168
+ }
169
+
170
+
171
+ export enum SessionInvoiceWithInvoiceFilePayorTypeEnum {
172
+ Business = 'BUSINESS',
173
+ Individual = 'INDIVIDUAL'
174
+ }
175
+
@@ -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 SomeOffersHaveExpiredException {
16
+ /**
17
+ * Safe for programmatic use.
18
+ */
19
+ 'errorCode': SomeOffersHaveExpiredExceptionErrorCodeEnum;
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": "SomeOffersHaveExpiredExceptionErrorCodeEnum",
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 SomeOffersHaveExpiredException.attributeTypeMap;
53
+ }
54
+
55
+ public constructor() {
56
+ }
57
+ }
58
+
59
+
60
+ export enum SomeOffersHaveExpiredExceptionErrorCodeEnum {
61
+ SomeOffersHaveExpiredException = 'SomeOffersHaveExpiredException'
62
+ }
63
+