@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.
- package/README.md +2 -0
- package/package.json +45 -0
- package/src/index.ts +65 -0
- package/src/openapi/.openapi-generator/FILES +130 -0
- package/src/openapi/.openapi-generator/VERSION +1 -0
- package/src/openapi/.openapi-generator-ignore +30 -0
- package/src/openapi/apis/BankAccountsApi.ts +503 -0
- package/src/openapi/apis/BusinessesApi.ts +614 -0
- package/src/openapi/apis/ConnectTokensApi.ts +133 -0
- package/src/openapi/apis/DocumentsApi.ts +150 -0
- package/src/openapi/apis/DrawRequestsApi.ts +258 -0
- package/src/openapi/apis/EmbeddedSessionsApi.ts +141 -0
- package/src/openapi/apis/InvoicesApi.ts +272 -0
- package/src/openapi/apis/IssuedProductsApi.ts +251 -0
- package/src/openapi/apis/OffersApi.ts +251 -0
- package/src/openapi/apis/PaymentsApi.ts +268 -0
- package/src/openapi/apis/PrequalificationsApi.ts +141 -0
- package/src/openapi/apis/UsersApi.ts +622 -0
- package/src/openapi/apis/baseapi.ts +37 -0
- package/src/openapi/apis/exception.ts +15 -0
- package/src/openapi/auth/auth.ts +79 -0
- package/src/openapi/configuration.ts +82 -0
- package/src/openapi/http/http.ts +247 -0
- package/src/openapi/http/isomorphic-fetch.ts +32 -0
- package/src/openapi/index.ts +12 -0
- package/src/openapi/middleware.ts +66 -0
- package/src/openapi/models/ActivityLog.ts +98 -0
- package/src/openapi/models/Address.ts +140 -0
- package/src/openapi/models/BadRequestException.ts +63 -0
- package/src/openapi/models/BankAccountAlreadyExistException.ts +63 -0
- package/src/openapi/models/BankAccountNotFoundException.ts +63 -0
- package/src/openapi/models/BankStatementsInvalidException.ts +63 -0
- package/src/openapi/models/Business.ts +126 -0
- package/src/openapi/models/BusinessAddress.ts +143 -0
- package/src/openapi/models/BusinessAlreadyExistsException.ts +63 -0
- package/src/openapi/models/BusinessBankAccount.ts +126 -0
- package/src/openapi/models/BusinessDocument.ts +98 -0
- package/src/openapi/models/BusinessDocumentType.ts +17 -0
- package/src/openapi/models/BusinessHasNoInvoiceFinancingProductException.ts +63 -0
- package/src/openapi/models/BusinessHasNoPrimaryOwnerException.ts +63 -0
- package/src/openapi/models/BusinessNotFoundException.ts +63 -0
- package/src/openapi/models/BusinessPlaidBankAccountNotFoundException.ts +63 -0
- package/src/openapi/models/BusinessPrequalification.ts +116 -0
- package/src/openapi/models/CheckingAccountRequiredException.ts +63 -0
- package/src/openapi/models/ConnectToken.ts +38 -0
- package/src/openapi/models/CreateBusinessBankAccountRequestBody.ts +116 -0
- package/src/openapi/models/CreateBusinessDocumentsResponse.ts +39 -0
- package/src/openapi/models/CreateBusinessRequestBody.ts +99 -0
- package/src/openapi/models/CreateConnectTokenRequestBody.ts +48 -0
- package/src/openapi/models/CreateEmbeddedSession409Response.ts +65 -0
- package/src/openapi/models/CreateSessionTokenRequestBody.ts +56 -0
- package/src/openapi/models/CreateSessionTokenRequestBodyData.ts +56 -0
- package/src/openapi/models/CreateUser409Response.ts +66 -0
- package/src/openapi/models/CreateUserRequestBody.ts +125 -0
- package/src/openapi/models/DrawRequest.ts +138 -0
- package/src/openapi/models/DrawRequestNotFoundException.ts +63 -0
- package/src/openapi/models/DrawRequestState.ts +21 -0
- package/src/openapi/models/EmbeddedSession.ts +38 -0
- package/src/openapi/models/FixedDateInvoiceRepaymentWindow.ts +50 -0
- package/src/openapi/models/FixedDurationInvoiceRepaymentWindow.ts +50 -0
- package/src/openapi/models/ForbiddenException.ts +63 -0
- package/src/openapi/models/GetActivityLogsResponse.ts +50 -0
- package/src/openapi/models/GetBusinessBankAccountsResponse.ts +50 -0
- package/src/openapi/models/GetBusinessesResponse.ts +50 -0
- package/src/openapi/models/GetDrawRequestsResponse.ts +50 -0
- package/src/openapi/models/GetInvoice404Response.ts +65 -0
- package/src/openapi/models/GetInvoicesResponse.ts +50 -0
- package/src/openapi/models/GetIssuedProductsResponse.ts +50 -0
- package/src/openapi/models/GetOffersResponse.ts +50 -0
- package/src/openapi/models/GetPaymentScheduleResponse.ts +50 -0
- package/src/openapi/models/GetPrequalificationsResponse.ts +50 -0
- package/src/openapi/models/GetUsersResponse.ts +50 -0
- package/src/openapi/models/InternalServerErrorException.ts +63 -0
- package/src/openapi/models/InvalidInvoiceDueDateException.ts +63 -0
- package/src/openapi/models/Invoice.ts +281 -0
- package/src/openapi/models/InvoiceFinancingOfferTerms.ts +61 -0
- package/src/openapi/models/InvoiceFinancingServicingData.ts +71 -0
- package/src/openapi/models/InvoiceFlowSessionTokenData.ts +51 -0
- package/src/openapi/models/InvoiceFlowWithInvoiceFileSessionTokenData.ts +51 -0
- package/src/openapi/models/InvoiceNotFoundException.ts +63 -0
- package/src/openapi/models/InvoicePaymentPlan.ts +58 -0
- package/src/openapi/models/InvoicePayorAddress.ts +143 -0
- package/src/openapi/models/InvoiceRepaymentSchedule.ts +39 -0
- package/src/openapi/models/InvoiceRepaymentScheduleItem.ts +68 -0
- package/src/openapi/models/InvoiceStatus.ts +22 -0
- package/src/openapi/models/IssuedProduct.ts +115 -0
- package/src/openapi/models/IssuedProductNotFoundException.ts +63 -0
- package/src/openapi/models/IssuedProductServicingData.ts +234 -0
- package/src/openapi/models/LineOfCreditOfferTerms.ts +80 -0
- package/src/openapi/models/LineOfCreditServicingData.ts +90 -0
- package/src/openapi/models/McaOfferTerms.ts +96 -0
- package/src/openapi/models/McaServicingData.ts +116 -0
- package/src/openapi/models/MergeUsersRequestBody.ts +68 -0
- package/src/openapi/models/MergeUsersResponseBody.ts +39 -0
- package/src/openapi/models/MultipleDurationInvoiceRepaymentWindow.ts +48 -0
- package/src/openapi/models/ObjectSerializer.ts +643 -0
- package/src/openapi/models/Offer.ts +106 -0
- package/src/openapi/models/OfferAlreadySelectedException.ts +63 -0
- package/src/openapi/models/OfferNotFoundException.ts +63 -0
- package/src/openapi/models/OfferNotLockedException.ts +63 -0
- package/src/openapi/models/OfferTerms.ts +184 -0
- package/src/openapi/models/PaginationResult.ts +58 -0
- package/src/openapi/models/PaymentOrder.ts +198 -0
- package/src/openapi/models/PaymentOrderNotFoundException.ts +63 -0
- package/src/openapi/models/PaymentOrderStatus.ts +19 -0
- package/src/openapi/models/PaymentPlanRepaymentSchedule.ts +39 -0
- package/src/openapi/models/PaymentPlanRepaymentScheduleItem.ts +48 -0
- package/src/openapi/models/PaymentScheduleItem.ts +56 -0
- package/src/openapi/models/PaymentScheduleItemPaymentOrder.ts +201 -0
- package/src/openapi/models/PlaidAssetReportsInvalidException.ts +63 -0
- package/src/openapi/models/PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsForBusinessException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerAlreadyExistsWithEmailException.ts +63 -0
- package/src/openapi/models/PrimaryBusinessOwnerNotFoundException.ts +63 -0
- package/src/openapi/models/SessionInvoice.ts +165 -0
- package/src/openapi/models/SessionInvoiceWithInvoiceFile.ts +175 -0
- package/src/openapi/models/SomeOffersHaveExpiredException.ts +63 -0
- package/src/openapi/models/TermLoanOfferTerms.ts +90 -0
- package/src/openapi/models/TermLoanServicingData.ts +100 -0
- package/src/openapi/models/UnmergeableBusinessException.ts +63 -0
- package/src/openapi/models/UpdateBusinessAccountRequestBody.ts +68 -0
- package/src/openapi/models/UpdateBusinessRequestBody.ts +99 -0
- package/src/openapi/models/UpdateUser409Response.ts +65 -0
- package/src/openapi/models/UpdateUserRequestBody.ts +95 -0
- package/src/openapi/models/User.ts +152 -0
- package/src/openapi/models/UserAddress.ts +143 -0
- package/src/openapi/models/UserAlreadyExistsWithEmailException.ts +63 -0
- package/src/openapi/models/UserAlreadyExistsWithPlatformUserIdException.ts +63 -0
- package/src/openapi/models/UserNotFoundException.ts +63 -0
- package/src/openapi/models/all.ts +102 -0
- package/src/openapi/rxjsStub.ts +27 -0
- package/src/openapi/servers.ts +58 -0
- package/src/openapi/types/ObjectParamAPI.ts +1403 -0
- package/src/openapi/types/ObservableAPI.ts +1348 -0
- package/src/openapi/types/PromiseAPI.ts +995 -0
- package/src/openapi/util.ts +37 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,1403 @@
|
|
|
1
|
+
import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http';
|
|
2
|
+
import { Configuration} from '../configuration'
|
|
3
|
+
|
|
4
|
+
import { ActivityLog } from '../models/ActivityLog';
|
|
5
|
+
import { Address } from '../models/Address';
|
|
6
|
+
import { BadRequestException } from '../models/BadRequestException';
|
|
7
|
+
import { BankAccountAlreadyExistException } from '../models/BankAccountAlreadyExistException';
|
|
8
|
+
import { BankAccountNotFoundException } from '../models/BankAccountNotFoundException';
|
|
9
|
+
import { BankStatementsInvalidException } from '../models/BankStatementsInvalidException';
|
|
10
|
+
import { Business } from '../models/Business';
|
|
11
|
+
import { BusinessAddress } from '../models/BusinessAddress';
|
|
12
|
+
import { BusinessAlreadyExistsException } from '../models/BusinessAlreadyExistsException';
|
|
13
|
+
import { BusinessBankAccount } from '../models/BusinessBankAccount';
|
|
14
|
+
import { BusinessDocument } from '../models/BusinessDocument';
|
|
15
|
+
import { BusinessDocumentType } from '../models/BusinessDocumentType';
|
|
16
|
+
import { BusinessHasNoInvoiceFinancingProductException } from '../models/BusinessHasNoInvoiceFinancingProductException';
|
|
17
|
+
import { BusinessHasNoPrimaryOwnerException } from '../models/BusinessHasNoPrimaryOwnerException';
|
|
18
|
+
import { BusinessNotFoundException } from '../models/BusinessNotFoundException';
|
|
19
|
+
import { BusinessPlaidBankAccountNotFoundException } from '../models/BusinessPlaidBankAccountNotFoundException';
|
|
20
|
+
import { BusinessPrequalification } from '../models/BusinessPrequalification';
|
|
21
|
+
import { CheckingAccountRequiredException } from '../models/CheckingAccountRequiredException';
|
|
22
|
+
import { ConnectToken } from '../models/ConnectToken';
|
|
23
|
+
import { CreateBusinessBankAccountRequestBody } from '../models/CreateBusinessBankAccountRequestBody';
|
|
24
|
+
import { CreateBusinessDocumentsResponse } from '../models/CreateBusinessDocumentsResponse';
|
|
25
|
+
import { CreateBusinessRequestBody } from '../models/CreateBusinessRequestBody';
|
|
26
|
+
import { CreateConnectTokenRequestBody } from '../models/CreateConnectTokenRequestBody';
|
|
27
|
+
import { CreateEmbeddedSession409Response } from '../models/CreateEmbeddedSession409Response';
|
|
28
|
+
import { CreateSessionTokenRequestBody } from '../models/CreateSessionTokenRequestBody';
|
|
29
|
+
import { CreateSessionTokenRequestBodyData } from '../models/CreateSessionTokenRequestBodyData';
|
|
30
|
+
import { CreateUser409Response } from '../models/CreateUser409Response';
|
|
31
|
+
import { CreateUserRequestBody } from '../models/CreateUserRequestBody';
|
|
32
|
+
import { DrawRequest } from '../models/DrawRequest';
|
|
33
|
+
import { DrawRequestNotFoundException } from '../models/DrawRequestNotFoundException';
|
|
34
|
+
import { DrawRequestState } from '../models/DrawRequestState';
|
|
35
|
+
import { EmbeddedSession } from '../models/EmbeddedSession';
|
|
36
|
+
import { FixedDateInvoiceRepaymentWindow } from '../models/FixedDateInvoiceRepaymentWindow';
|
|
37
|
+
import { FixedDurationInvoiceRepaymentWindow } from '../models/FixedDurationInvoiceRepaymentWindow';
|
|
38
|
+
import { ForbiddenException } from '../models/ForbiddenException';
|
|
39
|
+
import { GetActivityLogsResponse } from '../models/GetActivityLogsResponse';
|
|
40
|
+
import { GetBusinessBankAccountsResponse } from '../models/GetBusinessBankAccountsResponse';
|
|
41
|
+
import { GetBusinessesResponse } from '../models/GetBusinessesResponse';
|
|
42
|
+
import { GetDrawRequestsResponse } from '../models/GetDrawRequestsResponse';
|
|
43
|
+
import { GetInvoice404Response } from '../models/GetInvoice404Response';
|
|
44
|
+
import { GetInvoicesResponse } from '../models/GetInvoicesResponse';
|
|
45
|
+
import { GetIssuedProductsResponse } from '../models/GetIssuedProductsResponse';
|
|
46
|
+
import { GetOffersResponse } from '../models/GetOffersResponse';
|
|
47
|
+
import { GetPaymentScheduleResponse } from '../models/GetPaymentScheduleResponse';
|
|
48
|
+
import { GetPrequalificationsResponse } from '../models/GetPrequalificationsResponse';
|
|
49
|
+
import { GetUsersResponse } from '../models/GetUsersResponse';
|
|
50
|
+
import { InternalServerErrorException } from '../models/InternalServerErrorException';
|
|
51
|
+
import { InvalidInvoiceDueDateException } from '../models/InvalidInvoiceDueDateException';
|
|
52
|
+
import { Invoice } from '../models/Invoice';
|
|
53
|
+
import { InvoiceFinancingOfferTerms } from '../models/InvoiceFinancingOfferTerms';
|
|
54
|
+
import { InvoiceFinancingServicingData } from '../models/InvoiceFinancingServicingData';
|
|
55
|
+
import { InvoiceFlowSessionTokenData } from '../models/InvoiceFlowSessionTokenData';
|
|
56
|
+
import { InvoiceFlowWithInvoiceFileSessionTokenData } from '../models/InvoiceFlowWithInvoiceFileSessionTokenData';
|
|
57
|
+
import { InvoiceNotFoundException } from '../models/InvoiceNotFoundException';
|
|
58
|
+
import { InvoicePaymentPlan } from '../models/InvoicePaymentPlan';
|
|
59
|
+
import { InvoicePayorAddress } from '../models/InvoicePayorAddress';
|
|
60
|
+
import { InvoiceRepaymentSchedule } from '../models/InvoiceRepaymentSchedule';
|
|
61
|
+
import { InvoiceRepaymentScheduleItem } from '../models/InvoiceRepaymentScheduleItem';
|
|
62
|
+
import { InvoiceStatus } from '../models/InvoiceStatus';
|
|
63
|
+
import { IssuedProduct } from '../models/IssuedProduct';
|
|
64
|
+
import { IssuedProductNotFoundException } from '../models/IssuedProductNotFoundException';
|
|
65
|
+
import { IssuedProductServicingData } from '../models/IssuedProductServicingData';
|
|
66
|
+
import { LineOfCreditOfferTerms } from '../models/LineOfCreditOfferTerms';
|
|
67
|
+
import { LineOfCreditServicingData } from '../models/LineOfCreditServicingData';
|
|
68
|
+
import { McaOfferTerms } from '../models/McaOfferTerms';
|
|
69
|
+
import { McaServicingData } from '../models/McaServicingData';
|
|
70
|
+
import { MergeUsersRequestBody } from '../models/MergeUsersRequestBody';
|
|
71
|
+
import { MergeUsersResponseBody } from '../models/MergeUsersResponseBody';
|
|
72
|
+
import { MultipleDurationInvoiceRepaymentWindow } from '../models/MultipleDurationInvoiceRepaymentWindow';
|
|
73
|
+
import { Offer } from '../models/Offer';
|
|
74
|
+
import { OfferAlreadySelectedException } from '../models/OfferAlreadySelectedException';
|
|
75
|
+
import { OfferNotFoundException } from '../models/OfferNotFoundException';
|
|
76
|
+
import { OfferNotLockedException } from '../models/OfferNotLockedException';
|
|
77
|
+
import { OfferTerms } from '../models/OfferTerms';
|
|
78
|
+
import { PaginationResult } from '../models/PaginationResult';
|
|
79
|
+
import { PaymentOrder } from '../models/PaymentOrder';
|
|
80
|
+
import { PaymentOrderNotFoundException } from '../models/PaymentOrderNotFoundException';
|
|
81
|
+
import { PaymentOrderStatus } from '../models/PaymentOrderStatus';
|
|
82
|
+
import { PaymentPlanRepaymentSchedule } from '../models/PaymentPlanRepaymentSchedule';
|
|
83
|
+
import { PaymentPlanRepaymentScheduleItem } from '../models/PaymentPlanRepaymentScheduleItem';
|
|
84
|
+
import { PaymentScheduleItem } from '../models/PaymentScheduleItem';
|
|
85
|
+
import { PaymentScheduleItemPaymentOrder } from '../models/PaymentScheduleItemPaymentOrder';
|
|
86
|
+
import { PlaidAssetReportsInvalidException } from '../models/PlaidAssetReportsInvalidException';
|
|
87
|
+
import { PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException } from '../models/PlatformInvoiceIdAlreadyExistsForAnotherIssuedProductException';
|
|
88
|
+
import { PrimaryBusinessOwnerAlreadyExistsForBusinessException } from '../models/PrimaryBusinessOwnerAlreadyExistsForBusinessException';
|
|
89
|
+
import { PrimaryBusinessOwnerAlreadyExistsWithEmailException } from '../models/PrimaryBusinessOwnerAlreadyExistsWithEmailException';
|
|
90
|
+
import { PrimaryBusinessOwnerNotFoundException } from '../models/PrimaryBusinessOwnerNotFoundException';
|
|
91
|
+
import { SessionInvoice } from '../models/SessionInvoice';
|
|
92
|
+
import { SessionInvoiceWithInvoiceFile } from '../models/SessionInvoiceWithInvoiceFile';
|
|
93
|
+
import { SomeOffersHaveExpiredException } from '../models/SomeOffersHaveExpiredException';
|
|
94
|
+
import { TermLoanOfferTerms } from '../models/TermLoanOfferTerms';
|
|
95
|
+
import { TermLoanServicingData } from '../models/TermLoanServicingData';
|
|
96
|
+
import { UnmergeableBusinessException } from '../models/UnmergeableBusinessException';
|
|
97
|
+
import { UpdateBusinessAccountRequestBody } from '../models/UpdateBusinessAccountRequestBody';
|
|
98
|
+
import { UpdateBusinessRequestBody } from '../models/UpdateBusinessRequestBody';
|
|
99
|
+
import { UpdateUser409Response } from '../models/UpdateUser409Response';
|
|
100
|
+
import { UpdateUserRequestBody } from '../models/UpdateUserRequestBody';
|
|
101
|
+
import { User } from '../models/User';
|
|
102
|
+
import { UserAddress } from '../models/UserAddress';
|
|
103
|
+
import { UserAlreadyExistsWithEmailException } from '../models/UserAlreadyExistsWithEmailException';
|
|
104
|
+
import { UserAlreadyExistsWithPlatformUserIdException } from '../models/UserAlreadyExistsWithPlatformUserIdException';
|
|
105
|
+
import { UserNotFoundException } from '../models/UserNotFoundException';
|
|
106
|
+
|
|
107
|
+
import { ObservableBankAccountsApi } from "./ObservableAPI";
|
|
108
|
+
import { BankAccountsApiRequestFactory, BankAccountsApiResponseProcessor} from "../apis/BankAccountsApi";
|
|
109
|
+
|
|
110
|
+
export interface BankAccountsApiCreateBusinessBankAccountRequest {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type CreateBusinessBankAccountRequestBody
|
|
114
|
+
* @memberof BankAccountsApicreateBusinessBankAccount
|
|
115
|
+
*/
|
|
116
|
+
createBusinessBankAccountRequestBody: CreateBusinessBankAccountRequestBody
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface BankAccountsApiGetBusinessBankAccountRequest {
|
|
120
|
+
/**
|
|
121
|
+
* Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
122
|
+
* @type string
|
|
123
|
+
* @memberof BankAccountsApigetBusinessBankAccount
|
|
124
|
+
*/
|
|
125
|
+
id: string
|
|
126
|
+
/**
|
|
127
|
+
* Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
128
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
129
|
+
* @memberof BankAccountsApigetBusinessBankAccount
|
|
130
|
+
*/
|
|
131
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface BankAccountsApiGetBusinessBankAccountsRequest {
|
|
135
|
+
/**
|
|
136
|
+
* A comma delimited list of Kanmon’s unique IDs for bank accounts.
|
|
137
|
+
* @type string
|
|
138
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
139
|
+
*/
|
|
140
|
+
ids?: string
|
|
141
|
+
/**
|
|
142
|
+
* A comma delimited list of your platform’s unique IDs for bank accounts.
|
|
143
|
+
* @type string
|
|
144
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
145
|
+
*/
|
|
146
|
+
platformBankAccountIds?: string
|
|
147
|
+
/**
|
|
148
|
+
* A comma delimited list of your platform’s unique business IDs for bannk accounts.
|
|
149
|
+
* @type string
|
|
150
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
151
|
+
*/
|
|
152
|
+
platformBusinessIds?: string
|
|
153
|
+
/**
|
|
154
|
+
* A comma delimited list of your Kanmon’s unique business IDs for bannk accounts.
|
|
155
|
+
* @type string
|
|
156
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
157
|
+
*/
|
|
158
|
+
businessIds?: string
|
|
159
|
+
/**
|
|
160
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
161
|
+
* @type number
|
|
162
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
163
|
+
*/
|
|
164
|
+
offset?: number
|
|
165
|
+
/**
|
|
166
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
167
|
+
* @type number
|
|
168
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
169
|
+
*/
|
|
170
|
+
limit?: number
|
|
171
|
+
/**
|
|
172
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
173
|
+
* @type string
|
|
174
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
175
|
+
*/
|
|
176
|
+
createdAtStart?: string
|
|
177
|
+
/**
|
|
178
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
179
|
+
* @type string
|
|
180
|
+
* @memberof BankAccountsApigetBusinessBankAccounts
|
|
181
|
+
*/
|
|
182
|
+
createdAtEnd?: string
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface BankAccountsApiUpdateBusinessBankAccountRequest {
|
|
186
|
+
/**
|
|
187
|
+
* Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
188
|
+
* @type string
|
|
189
|
+
* @memberof BankAccountsApiupdateBusinessBankAccount
|
|
190
|
+
*/
|
|
191
|
+
id: string
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type UpdateBusinessAccountRequestBody
|
|
195
|
+
* @memberof BankAccountsApiupdateBusinessBankAccount
|
|
196
|
+
*/
|
|
197
|
+
updateBusinessAccountRequestBody: UpdateBusinessAccountRequestBody
|
|
198
|
+
/**
|
|
199
|
+
* Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
200
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
201
|
+
* @memberof BankAccountsApiupdateBusinessBankAccount
|
|
202
|
+
*/
|
|
203
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export class ObjectBankAccountsApi {
|
|
207
|
+
private api: ObservableBankAccountsApi
|
|
208
|
+
|
|
209
|
+
public constructor(configuration: Configuration, requestFactory?: BankAccountsApiRequestFactory, responseProcessor?: BankAccountsApiResponseProcessor) {
|
|
210
|
+
this.api = new ObservableBankAccountsApi(configuration, requestFactory, responseProcessor);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* We only support creating disbursement checking accounts at the moment. Each business can only have one disbursement checking account. Please contact Kanmon to enable access to bank account APIs.
|
|
215
|
+
* Create a business bank account
|
|
216
|
+
* @param param the request object
|
|
217
|
+
*/
|
|
218
|
+
public createBusinessBankAccountWithHttpInfo(param: BankAccountsApiCreateBusinessBankAccountRequest, options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
219
|
+
return this.api.createBusinessBankAccountWithHttpInfo(param.createBusinessBankAccountRequestBody, options).toPromise();
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* We only support creating disbursement checking accounts at the moment. Each business can only have one disbursement checking account. Please contact Kanmon to enable access to bank account APIs.
|
|
224
|
+
* Create a business bank account
|
|
225
|
+
* @param param the request object
|
|
226
|
+
*/
|
|
227
|
+
public createBusinessBankAccount(param: BankAccountsApiCreateBusinessBankAccountRequest, options?: Configuration): Promise<BusinessBankAccount> {
|
|
228
|
+
return this.api.createBusinessBankAccount(param.createBusinessBankAccountRequestBody, options).toPromise();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
233
|
+
* Fetch a business bank account
|
|
234
|
+
* @param param the request object
|
|
235
|
+
*/
|
|
236
|
+
public getBusinessBankAccountWithHttpInfo(param: BankAccountsApiGetBusinessBankAccountRequest, options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
237
|
+
return this.api.getBusinessBankAccountWithHttpInfo(param.id, param.idType, options).toPromise();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
242
|
+
* Fetch a business bank account
|
|
243
|
+
* @param param the request object
|
|
244
|
+
*/
|
|
245
|
+
public getBusinessBankAccount(param: BankAccountsApiGetBusinessBankAccountRequest, options?: Configuration): Promise<BusinessBankAccount> {
|
|
246
|
+
return this.api.getBusinessBankAccount(param.id, param.idType, options).toPromise();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
251
|
+
* Fetch business bank accounts
|
|
252
|
+
* @param param the request object
|
|
253
|
+
*/
|
|
254
|
+
public getBusinessBankAccountsWithHttpInfo(param: BankAccountsApiGetBusinessBankAccountsRequest = {}, options?: Configuration): Promise<HttpInfo<GetBusinessBankAccountsResponse>> {
|
|
255
|
+
return this.api.getBusinessBankAccountsWithHttpInfo(param.ids, param.platformBankAccountIds, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
260
|
+
* Fetch business bank accounts
|
|
261
|
+
* @param param the request object
|
|
262
|
+
*/
|
|
263
|
+
public getBusinessBankAccounts(param: BankAccountsApiGetBusinessBankAccountsRequest = {}, options?: Configuration): Promise<GetBusinessBankAccountsResponse> {
|
|
264
|
+
return this.api.getBusinessBankAccounts(param.ids, param.platformBankAccountIds, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* We only support creating disbursement checking accounts at the moment. Each business can only have one disbursement checking account. Please contact Kanmon to enable access to bank account APIs.
|
|
269
|
+
* Update a business bank account
|
|
270
|
+
* @param param the request object
|
|
271
|
+
*/
|
|
272
|
+
public updateBusinessBankAccountWithHttpInfo(param: BankAccountsApiUpdateBusinessBankAccountRequest, options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
273
|
+
return this.api.updateBusinessBankAccountWithHttpInfo(param.id, param.updateBusinessAccountRequestBody, param.idType, options).toPromise();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* We only support creating disbursement checking accounts at the moment. Each business can only have one disbursement checking account. Please contact Kanmon to enable access to bank account APIs.
|
|
278
|
+
* Update a business bank account
|
|
279
|
+
* @param param the request object
|
|
280
|
+
*/
|
|
281
|
+
public updateBusinessBankAccount(param: BankAccountsApiUpdateBusinessBankAccountRequest, options?: Configuration): Promise<BusinessBankAccount> {
|
|
282
|
+
return this.api.updateBusinessBankAccount(param.id, param.updateBusinessAccountRequestBody, param.idType, options).toPromise();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
import { ObservableBusinessesApi } from "./ObservableAPI";
|
|
288
|
+
import { BusinessesApiRequestFactory, BusinessesApiResponseProcessor} from "../apis/BusinessesApi";
|
|
289
|
+
|
|
290
|
+
export interface BusinessesApiCreateBusinessRequest {
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type CreateBusinessRequestBody
|
|
294
|
+
* @memberof BusinessesApicreateBusiness
|
|
295
|
+
*/
|
|
296
|
+
createBusinessRequestBody: CreateBusinessRequestBody
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface BusinessesApiGetBusinessRequest {
|
|
300
|
+
/**
|
|
301
|
+
* Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
302
|
+
* @type any
|
|
303
|
+
* @memberof BusinessesApigetBusiness
|
|
304
|
+
*/
|
|
305
|
+
id: any
|
|
306
|
+
/**
|
|
307
|
+
* Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
308
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
309
|
+
* @memberof BusinessesApigetBusiness
|
|
310
|
+
*/
|
|
311
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface BusinessesApiGetBusinessActivityLogRequest {
|
|
315
|
+
/**
|
|
316
|
+
* Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
317
|
+
* @type any
|
|
318
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
319
|
+
*/
|
|
320
|
+
id: any
|
|
321
|
+
/**
|
|
322
|
+
* Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
323
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
324
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
325
|
+
*/
|
|
326
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
327
|
+
/**
|
|
328
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
329
|
+
* @type number
|
|
330
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
331
|
+
*/
|
|
332
|
+
offset?: number
|
|
333
|
+
/**
|
|
334
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
335
|
+
* @type number
|
|
336
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
337
|
+
*/
|
|
338
|
+
limit?: number
|
|
339
|
+
/**
|
|
340
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
341
|
+
* @type string
|
|
342
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
343
|
+
*/
|
|
344
|
+
createdAtStart?: string
|
|
345
|
+
/**
|
|
346
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
347
|
+
* @type string
|
|
348
|
+
* @memberof BusinessesApigetBusinessActivityLog
|
|
349
|
+
*/
|
|
350
|
+
createdAtEnd?: string
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface BusinessesApiGetBusinessesRequest {
|
|
354
|
+
/**
|
|
355
|
+
* A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
356
|
+
* @type string
|
|
357
|
+
* @memberof BusinessesApigetBusinesses
|
|
358
|
+
*/
|
|
359
|
+
ids?: string
|
|
360
|
+
/**
|
|
361
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
362
|
+
* @type string
|
|
363
|
+
* @memberof BusinessesApigetBusinesses
|
|
364
|
+
*/
|
|
365
|
+
platformBusinessIds?: string
|
|
366
|
+
/**
|
|
367
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
368
|
+
* @type number
|
|
369
|
+
* @memberof BusinessesApigetBusinesses
|
|
370
|
+
*/
|
|
371
|
+
offset?: number
|
|
372
|
+
/**
|
|
373
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
374
|
+
* @type number
|
|
375
|
+
* @memberof BusinessesApigetBusinesses
|
|
376
|
+
*/
|
|
377
|
+
limit?: number
|
|
378
|
+
/**
|
|
379
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
380
|
+
* @type string
|
|
381
|
+
* @memberof BusinessesApigetBusinesses
|
|
382
|
+
*/
|
|
383
|
+
createdAtStart?: string
|
|
384
|
+
/**
|
|
385
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
386
|
+
* @type string
|
|
387
|
+
* @memberof BusinessesApigetBusinesses
|
|
388
|
+
*/
|
|
389
|
+
createdAtEnd?: string
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface BusinessesApiUpdateBusinessRequest {
|
|
393
|
+
/**
|
|
394
|
+
* Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
395
|
+
* @type any
|
|
396
|
+
* @memberof BusinessesApiupdateBusiness
|
|
397
|
+
*/
|
|
398
|
+
id: any
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @type UpdateBusinessRequestBody
|
|
402
|
+
* @memberof BusinessesApiupdateBusiness
|
|
403
|
+
*/
|
|
404
|
+
updateBusinessRequestBody: UpdateBusinessRequestBody
|
|
405
|
+
/**
|
|
406
|
+
* Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
407
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
408
|
+
* @memberof BusinessesApiupdateBusiness
|
|
409
|
+
*/
|
|
410
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export class ObjectBusinessesApi {
|
|
414
|
+
private api: ObservableBusinessesApi
|
|
415
|
+
|
|
416
|
+
public constructor(configuration: Configuration, requestFactory?: BusinessesApiRequestFactory, responseProcessor?: BusinessesApiResponseProcessor) {
|
|
417
|
+
this.api = new ObservableBusinessesApi(configuration, requestFactory, responseProcessor);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Create a business
|
|
422
|
+
* @param param the request object
|
|
423
|
+
*/
|
|
424
|
+
public createBusinessWithHttpInfo(param: BusinessesApiCreateBusinessRequest, options?: Configuration): Promise<HttpInfo<Business>> {
|
|
425
|
+
return this.api.createBusinessWithHttpInfo(param.createBusinessRequestBody, options).toPromise();
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Create a business
|
|
430
|
+
* @param param the request object
|
|
431
|
+
*/
|
|
432
|
+
public createBusiness(param: BusinessesApiCreateBusinessRequest, options?: Configuration): Promise<Business> {
|
|
433
|
+
return this.api.createBusiness(param.createBusinessRequestBody, options).toPromise();
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Fetch a business
|
|
438
|
+
* @param param the request object
|
|
439
|
+
*/
|
|
440
|
+
public getBusinessWithHttpInfo(param: BusinessesApiGetBusinessRequest, options?: Configuration): Promise<HttpInfo<Business>> {
|
|
441
|
+
return this.api.getBusinessWithHttpInfo(param.id, param.idType, options).toPromise();
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Fetch a business
|
|
446
|
+
* @param param the request object
|
|
447
|
+
*/
|
|
448
|
+
public getBusiness(param: BusinessesApiGetBusinessRequest, options?: Configuration): Promise<Business> {
|
|
449
|
+
return this.api.getBusiness(param.id, param.idType, options).toPromise();
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Fetch activity logs for a business
|
|
454
|
+
* @param param the request object
|
|
455
|
+
*/
|
|
456
|
+
public getBusinessActivityLogWithHttpInfo(param: BusinessesApiGetBusinessActivityLogRequest, options?: Configuration): Promise<HttpInfo<GetActivityLogsResponse>> {
|
|
457
|
+
return this.api.getBusinessActivityLogWithHttpInfo(param.id, param.idType, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Fetch activity logs for a business
|
|
462
|
+
* @param param the request object
|
|
463
|
+
*/
|
|
464
|
+
public getBusinessActivityLog(param: BusinessesApiGetBusinessActivityLogRequest, options?: Configuration): Promise<GetActivityLogsResponse> {
|
|
465
|
+
return this.api.getBusinessActivityLog(param.id, param.idType, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Fetch businesses
|
|
470
|
+
* @param param the request object
|
|
471
|
+
*/
|
|
472
|
+
public getBusinessesWithHttpInfo(param: BusinessesApiGetBusinessesRequest = {}, options?: Configuration): Promise<HttpInfo<GetBusinessesResponse>> {
|
|
473
|
+
return this.api.getBusinessesWithHttpInfo(param.ids, param.platformBusinessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Fetch businesses
|
|
478
|
+
* @param param the request object
|
|
479
|
+
*/
|
|
480
|
+
public getBusinesses(param: BusinessesApiGetBusinessesRequest = {}, options?: Configuration): Promise<GetBusinessesResponse> {
|
|
481
|
+
return this.api.getBusinesses(param.ids, param.platformBusinessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Update a business
|
|
486
|
+
* @param param the request object
|
|
487
|
+
*/
|
|
488
|
+
public updateBusinessWithHttpInfo(param: BusinessesApiUpdateBusinessRequest, options?: Configuration): Promise<HttpInfo<Business>> {
|
|
489
|
+
return this.api.updateBusinessWithHttpInfo(param.id, param.updateBusinessRequestBody, param.idType, options).toPromise();
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Update a business
|
|
494
|
+
* @param param the request object
|
|
495
|
+
*/
|
|
496
|
+
public updateBusiness(param: BusinessesApiUpdateBusinessRequest, options?: Configuration): Promise<Business> {
|
|
497
|
+
return this.api.updateBusiness(param.id, param.updateBusinessRequestBody, param.idType, options).toPromise();
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
import { ObservableConnectTokensApi } from "./ObservableAPI";
|
|
503
|
+
import { ConnectTokensApiRequestFactory, ConnectTokensApiResponseProcessor} from "../apis/ConnectTokensApi";
|
|
504
|
+
|
|
505
|
+
export interface ConnectTokensApiConnectTokenRequest {
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @type CreateConnectTokenRequestBody
|
|
509
|
+
* @memberof ConnectTokensApiconnectToken
|
|
510
|
+
*/
|
|
511
|
+
createConnectTokenRequestBody: CreateConnectTokenRequestBody
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export class ObjectConnectTokensApi {
|
|
515
|
+
private api: ObservableConnectTokensApi
|
|
516
|
+
|
|
517
|
+
public constructor(configuration: Configuration, requestFactory?: ConnectTokensApiRequestFactory, responseProcessor?: ConnectTokensApiResponseProcessor) {
|
|
518
|
+
this.api = new ObservableConnectTokensApi(configuration, requestFactory, responseProcessor);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Create a connect token
|
|
523
|
+
* @param param the request object
|
|
524
|
+
*/
|
|
525
|
+
public connectTokenWithHttpInfo(param: ConnectTokensApiConnectTokenRequest, options?: Configuration): Promise<HttpInfo<ConnectToken>> {
|
|
526
|
+
return this.api.connectTokenWithHttpInfo(param.createConnectTokenRequestBody, options).toPromise();
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Create a connect token
|
|
531
|
+
* @param param the request object
|
|
532
|
+
*/
|
|
533
|
+
public connectToken(param: ConnectTokensApiConnectTokenRequest, options?: Configuration): Promise<ConnectToken> {
|
|
534
|
+
return this.api.connectToken(param.createConnectTokenRequestBody, options).toPromise();
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
import { ObservableDocumentsApi } from "./ObservableAPI";
|
|
540
|
+
import { DocumentsApiRequestFactory, DocumentsApiResponseProcessor} from "../apis/DocumentsApi";
|
|
541
|
+
|
|
542
|
+
export interface DocumentsApiCreateBusinessDocumentRequest {
|
|
543
|
+
/**
|
|
544
|
+
* Invoices to be uploaded. The file format must be PDF. The limit is 10 files, 10 MB per file.
|
|
545
|
+
* @type Array<HttpFile>
|
|
546
|
+
* @memberof DocumentsApicreateBusinessDocument
|
|
547
|
+
*/
|
|
548
|
+
invoices: Array<HttpFile>
|
|
549
|
+
/**
|
|
550
|
+
* The unique identifier for business in our system. Either of `businessId` or `platformBusinessId` is required.
|
|
551
|
+
* @type string
|
|
552
|
+
* @memberof DocumentsApicreateBusinessDocument
|
|
553
|
+
*/
|
|
554
|
+
businessId?: string
|
|
555
|
+
/**
|
|
556
|
+
* The unique identifier for business in your platform. Either of `businessId` or `platformBusinessId` is required.
|
|
557
|
+
* @type string
|
|
558
|
+
* @memberof DocumentsApicreateBusinessDocument
|
|
559
|
+
*/
|
|
560
|
+
platformBusinessId?: string
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export class ObjectDocumentsApi {
|
|
564
|
+
private api: ObservableDocumentsApi
|
|
565
|
+
|
|
566
|
+
public constructor(configuration: Configuration, requestFactory?: DocumentsApiRequestFactory, responseProcessor?: DocumentsApiResponseProcessor) {
|
|
567
|
+
this.api = new ObservableDocumentsApi(configuration, requestFactory, responseProcessor);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Upload documents for a business
|
|
572
|
+
* @param param the request object
|
|
573
|
+
*/
|
|
574
|
+
public createBusinessDocumentWithHttpInfo(param: DocumentsApiCreateBusinessDocumentRequest, options?: Configuration): Promise<HttpInfo<CreateBusinessDocumentsResponse>> {
|
|
575
|
+
return this.api.createBusinessDocumentWithHttpInfo(param.invoices, param.businessId, param.platformBusinessId, options).toPromise();
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Upload documents for a business
|
|
580
|
+
* @param param the request object
|
|
581
|
+
*/
|
|
582
|
+
public createBusinessDocument(param: DocumentsApiCreateBusinessDocumentRequest, options?: Configuration): Promise<CreateBusinessDocumentsResponse> {
|
|
583
|
+
return this.api.createBusinessDocument(param.invoices, param.businessId, param.platformBusinessId, options).toPromise();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
import { ObservableDrawRequestsApi } from "./ObservableAPI";
|
|
589
|
+
import { DrawRequestsApiRequestFactory, DrawRequestsApiResponseProcessor} from "../apis/DrawRequestsApi";
|
|
590
|
+
|
|
591
|
+
export interface DrawRequestsApiGetDrawRequestRequest {
|
|
592
|
+
/**
|
|
593
|
+
* The Kanmon draw request UUID.
|
|
594
|
+
* @type string
|
|
595
|
+
* @memberof DrawRequestsApigetDrawRequest
|
|
596
|
+
*/
|
|
597
|
+
id: string
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface DrawRequestsApiGetDrawRequestsRequest {
|
|
601
|
+
/**
|
|
602
|
+
* A comma delimited list of draw request statuses.
|
|
603
|
+
* @type string
|
|
604
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
605
|
+
*/
|
|
606
|
+
statuses?: string
|
|
607
|
+
/**
|
|
608
|
+
* A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
609
|
+
* @type string
|
|
610
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
611
|
+
*/
|
|
612
|
+
ids?: string
|
|
613
|
+
/**
|
|
614
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
615
|
+
* @type string
|
|
616
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
617
|
+
*/
|
|
618
|
+
platformBusinessIds?: string
|
|
619
|
+
/**
|
|
620
|
+
* A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
621
|
+
* @type string
|
|
622
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
623
|
+
*/
|
|
624
|
+
businessIds?: string
|
|
625
|
+
/**
|
|
626
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
627
|
+
* @type number
|
|
628
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
629
|
+
*/
|
|
630
|
+
offset?: number
|
|
631
|
+
/**
|
|
632
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
633
|
+
* @type number
|
|
634
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
635
|
+
*/
|
|
636
|
+
limit?: number
|
|
637
|
+
/**
|
|
638
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
639
|
+
* @type string
|
|
640
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
641
|
+
*/
|
|
642
|
+
createdAtStart?: string
|
|
643
|
+
/**
|
|
644
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
645
|
+
* @type string
|
|
646
|
+
* @memberof DrawRequestsApigetDrawRequests
|
|
647
|
+
*/
|
|
648
|
+
createdAtEnd?: string
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export class ObjectDrawRequestsApi {
|
|
652
|
+
private api: ObservableDrawRequestsApi
|
|
653
|
+
|
|
654
|
+
public constructor(configuration: Configuration, requestFactory?: DrawRequestsApiRequestFactory, responseProcessor?: DrawRequestsApiResponseProcessor) {
|
|
655
|
+
this.api = new ObservableDrawRequestsApi(configuration, requestFactory, responseProcessor);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Fetch a draw request
|
|
660
|
+
* @param param the request object
|
|
661
|
+
*/
|
|
662
|
+
public getDrawRequestWithHttpInfo(param: DrawRequestsApiGetDrawRequestRequest, options?: Configuration): Promise<HttpInfo<DrawRequest>> {
|
|
663
|
+
return this.api.getDrawRequestWithHttpInfo(param.id, options).toPromise();
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Fetch a draw request
|
|
668
|
+
* @param param the request object
|
|
669
|
+
*/
|
|
670
|
+
public getDrawRequest(param: DrawRequestsApiGetDrawRequestRequest, options?: Configuration): Promise<DrawRequest> {
|
|
671
|
+
return this.api.getDrawRequest(param.id, options).toPromise();
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Fetch draw requests
|
|
676
|
+
* @param param the request object
|
|
677
|
+
*/
|
|
678
|
+
public getDrawRequestsWithHttpInfo(param: DrawRequestsApiGetDrawRequestsRequest = {}, options?: Configuration): Promise<HttpInfo<GetDrawRequestsResponse>> {
|
|
679
|
+
return this.api.getDrawRequestsWithHttpInfo(param.statuses, param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Fetch draw requests
|
|
684
|
+
* @param param the request object
|
|
685
|
+
*/
|
|
686
|
+
public getDrawRequests(param: DrawRequestsApiGetDrawRequestsRequest = {}, options?: Configuration): Promise<GetDrawRequestsResponse> {
|
|
687
|
+
return this.api.getDrawRequests(param.statuses, param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
import { ObservableEmbeddedSessionsApi } from "./ObservableAPI";
|
|
693
|
+
import { EmbeddedSessionsApiRequestFactory, EmbeddedSessionsApiResponseProcessor} from "../apis/EmbeddedSessionsApi";
|
|
694
|
+
|
|
695
|
+
export interface EmbeddedSessionsApiCreateEmbeddedSessionRequest {
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @type CreateSessionTokenRequestBody
|
|
699
|
+
* @memberof EmbeddedSessionsApicreateEmbeddedSession
|
|
700
|
+
*/
|
|
701
|
+
createSessionTokenRequestBody: CreateSessionTokenRequestBody
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export class ObjectEmbeddedSessionsApi {
|
|
705
|
+
private api: ObservableEmbeddedSessionsApi
|
|
706
|
+
|
|
707
|
+
public constructor(configuration: Configuration, requestFactory?: EmbeddedSessionsApiRequestFactory, responseProcessor?: EmbeddedSessionsApiResponseProcessor) {
|
|
708
|
+
this.api = new ObservableEmbeddedSessionsApi(configuration, requestFactory, responseProcessor);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Create an embedded session
|
|
713
|
+
* @param param the request object
|
|
714
|
+
*/
|
|
715
|
+
public createEmbeddedSessionWithHttpInfo(param: EmbeddedSessionsApiCreateEmbeddedSessionRequest, options?: Configuration): Promise<HttpInfo<EmbeddedSession>> {
|
|
716
|
+
return this.api.createEmbeddedSessionWithHttpInfo(param.createSessionTokenRequestBody, options).toPromise();
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Create an embedded session
|
|
721
|
+
* @param param the request object
|
|
722
|
+
*/
|
|
723
|
+
public createEmbeddedSession(param: EmbeddedSessionsApiCreateEmbeddedSessionRequest, options?: Configuration): Promise<EmbeddedSession> {
|
|
724
|
+
return this.api.createEmbeddedSession(param.createSessionTokenRequestBody, options).toPromise();
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
import { ObservableInvoicesApi } from "./ObservableAPI";
|
|
730
|
+
import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor} from "../apis/InvoicesApi";
|
|
731
|
+
|
|
732
|
+
export interface InvoicesApiGetInvoiceRequest {
|
|
733
|
+
/**
|
|
734
|
+
* Either the Kanmon invoice UUID or your platform’s invoice ID, depending on `idType`.
|
|
735
|
+
* @type string
|
|
736
|
+
* @memberof InvoicesApigetInvoice
|
|
737
|
+
*/
|
|
738
|
+
id: string
|
|
739
|
+
/**
|
|
740
|
+
* Which ID type to query the invoice by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
741
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
742
|
+
* @memberof InvoicesApigetInvoice
|
|
743
|
+
*/
|
|
744
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface InvoicesApiGetInvoicesRequest {
|
|
748
|
+
/**
|
|
749
|
+
* A comma delimited list of invoice statuses.
|
|
750
|
+
* @type string
|
|
751
|
+
* @memberof InvoicesApigetInvoices
|
|
752
|
+
*/
|
|
753
|
+
statuses?: string
|
|
754
|
+
/**
|
|
755
|
+
* A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
756
|
+
* @type string
|
|
757
|
+
* @memberof InvoicesApigetInvoices
|
|
758
|
+
*/
|
|
759
|
+
ids?: string
|
|
760
|
+
/**
|
|
761
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
762
|
+
* @type string
|
|
763
|
+
* @memberof InvoicesApigetInvoices
|
|
764
|
+
*/
|
|
765
|
+
platformBusinessIds?: string
|
|
766
|
+
/**
|
|
767
|
+
* A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
768
|
+
* @type string
|
|
769
|
+
* @memberof InvoicesApigetInvoices
|
|
770
|
+
*/
|
|
771
|
+
businessIds?: string
|
|
772
|
+
/**
|
|
773
|
+
* A comma delimited list of your platforms’s unique IDs for invoices.
|
|
774
|
+
* @type string
|
|
775
|
+
* @memberof InvoicesApigetInvoices
|
|
776
|
+
*/
|
|
777
|
+
platformInvoiceIds?: string
|
|
778
|
+
/**
|
|
779
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
780
|
+
* @type number
|
|
781
|
+
* @memberof InvoicesApigetInvoices
|
|
782
|
+
*/
|
|
783
|
+
offset?: number
|
|
784
|
+
/**
|
|
785
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
786
|
+
* @type number
|
|
787
|
+
* @memberof InvoicesApigetInvoices
|
|
788
|
+
*/
|
|
789
|
+
limit?: number
|
|
790
|
+
/**
|
|
791
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
792
|
+
* @type string
|
|
793
|
+
* @memberof InvoicesApigetInvoices
|
|
794
|
+
*/
|
|
795
|
+
createdAtStart?: string
|
|
796
|
+
/**
|
|
797
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
798
|
+
* @type string
|
|
799
|
+
* @memberof InvoicesApigetInvoices
|
|
800
|
+
*/
|
|
801
|
+
createdAtEnd?: string
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
export class ObjectInvoicesApi {
|
|
805
|
+
private api: ObservableInvoicesApi
|
|
806
|
+
|
|
807
|
+
public constructor(configuration: Configuration, requestFactory?: InvoicesApiRequestFactory, responseProcessor?: InvoicesApiResponseProcessor) {
|
|
808
|
+
this.api = new ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Fetch an invoice
|
|
813
|
+
* @param param the request object
|
|
814
|
+
*/
|
|
815
|
+
public getInvoiceWithHttpInfo(param: InvoicesApiGetInvoiceRequest, options?: Configuration): Promise<HttpInfo<Invoice>> {
|
|
816
|
+
return this.api.getInvoiceWithHttpInfo(param.id, param.idType, options).toPromise();
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Fetch an invoice
|
|
821
|
+
* @param param the request object
|
|
822
|
+
*/
|
|
823
|
+
public getInvoice(param: InvoicesApiGetInvoiceRequest, options?: Configuration): Promise<Invoice> {
|
|
824
|
+
return this.api.getInvoice(param.id, param.idType, options).toPromise();
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Fetch invoices
|
|
829
|
+
* @param param the request object
|
|
830
|
+
*/
|
|
831
|
+
public getInvoicesWithHttpInfo(param: InvoicesApiGetInvoicesRequest = {}, options?: Configuration): Promise<HttpInfo<GetInvoicesResponse>> {
|
|
832
|
+
return this.api.getInvoicesWithHttpInfo(param.statuses, param.ids, param.platformBusinessIds, param.businessIds, param.platformInvoiceIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Fetch invoices
|
|
837
|
+
* @param param the request object
|
|
838
|
+
*/
|
|
839
|
+
public getInvoices(param: InvoicesApiGetInvoicesRequest = {}, options?: Configuration): Promise<GetInvoicesResponse> {
|
|
840
|
+
return this.api.getInvoices(param.statuses, param.ids, param.platformBusinessIds, param.businessIds, param.platformInvoiceIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
import { ObservableIssuedProductsApi } from "./ObservableAPI";
|
|
846
|
+
import { IssuedProductsApiRequestFactory, IssuedProductsApiResponseProcessor} from "../apis/IssuedProductsApi";
|
|
847
|
+
|
|
848
|
+
export interface IssuedProductsApiGetAllIssuedProductsRequest {
|
|
849
|
+
/**
|
|
850
|
+
* A comma delimited list of Kanmon’s unique IDs for offers.
|
|
851
|
+
* @type string
|
|
852
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
853
|
+
*/
|
|
854
|
+
ids?: string
|
|
855
|
+
/**
|
|
856
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
857
|
+
* @type string
|
|
858
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
859
|
+
*/
|
|
860
|
+
platformBusinessIds?: string
|
|
861
|
+
/**
|
|
862
|
+
* A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
863
|
+
* @type string
|
|
864
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
865
|
+
*/
|
|
866
|
+
businessIds?: string
|
|
867
|
+
/**
|
|
868
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
869
|
+
* @type number
|
|
870
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
871
|
+
*/
|
|
872
|
+
offset?: number
|
|
873
|
+
/**
|
|
874
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
875
|
+
* @type number
|
|
876
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
877
|
+
*/
|
|
878
|
+
limit?: number
|
|
879
|
+
/**
|
|
880
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
881
|
+
* @type string
|
|
882
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
883
|
+
*/
|
|
884
|
+
createdAtStart?: string
|
|
885
|
+
/**
|
|
886
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
887
|
+
* @type string
|
|
888
|
+
* @memberof IssuedProductsApigetAllIssuedProducts
|
|
889
|
+
*/
|
|
890
|
+
createdAtEnd?: string
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export interface IssuedProductsApiGetIssuedProductByIdRequest {
|
|
894
|
+
/**
|
|
895
|
+
* The Kanmon issued product UUID.
|
|
896
|
+
* @type string
|
|
897
|
+
* @memberof IssuedProductsApigetIssuedProductById
|
|
898
|
+
*/
|
|
899
|
+
id: string
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export class ObjectIssuedProductsApi {
|
|
903
|
+
private api: ObservableIssuedProductsApi
|
|
904
|
+
|
|
905
|
+
public constructor(configuration: Configuration, requestFactory?: IssuedProductsApiRequestFactory, responseProcessor?: IssuedProductsApiResponseProcessor) {
|
|
906
|
+
this.api = new ObservableIssuedProductsApi(configuration, requestFactory, responseProcessor);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Fetch issued products
|
|
911
|
+
* @param param the request object
|
|
912
|
+
*/
|
|
913
|
+
public getAllIssuedProductsWithHttpInfo(param: IssuedProductsApiGetAllIssuedProductsRequest = {}, options?: Configuration): Promise<HttpInfo<GetIssuedProductsResponse>> {
|
|
914
|
+
return this.api.getAllIssuedProductsWithHttpInfo(param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Fetch issued products
|
|
919
|
+
* @param param the request object
|
|
920
|
+
*/
|
|
921
|
+
public getAllIssuedProducts(param: IssuedProductsApiGetAllIssuedProductsRequest = {}, options?: Configuration): Promise<GetIssuedProductsResponse> {
|
|
922
|
+
return this.api.getAllIssuedProducts(param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Fetch an issued product
|
|
927
|
+
* @param param the request object
|
|
928
|
+
*/
|
|
929
|
+
public getIssuedProductByIdWithHttpInfo(param: IssuedProductsApiGetIssuedProductByIdRequest, options?: Configuration): Promise<HttpInfo<IssuedProduct>> {
|
|
930
|
+
return this.api.getIssuedProductByIdWithHttpInfo(param.id, options).toPromise();
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Fetch an issued product
|
|
935
|
+
* @param param the request object
|
|
936
|
+
*/
|
|
937
|
+
public getIssuedProductById(param: IssuedProductsApiGetIssuedProductByIdRequest, options?: Configuration): Promise<IssuedProduct> {
|
|
938
|
+
return this.api.getIssuedProductById(param.id, options).toPromise();
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
import { ObservableOffersApi } from "./ObservableAPI";
|
|
944
|
+
import { OffersApiRequestFactory, OffersApiResponseProcessor} from "../apis/OffersApi";
|
|
945
|
+
|
|
946
|
+
export interface OffersApiGetAllOffersRequest {
|
|
947
|
+
/**
|
|
948
|
+
* A comma delimited list of Kanmon’s unique IDs for offers.
|
|
949
|
+
* @type string
|
|
950
|
+
* @memberof OffersApigetAllOffers
|
|
951
|
+
*/
|
|
952
|
+
ids?: string
|
|
953
|
+
/**
|
|
954
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
955
|
+
* @type string
|
|
956
|
+
* @memberof OffersApigetAllOffers
|
|
957
|
+
*/
|
|
958
|
+
platformBusinessIds?: string
|
|
959
|
+
/**
|
|
960
|
+
* A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
961
|
+
* @type string
|
|
962
|
+
* @memberof OffersApigetAllOffers
|
|
963
|
+
*/
|
|
964
|
+
businessIds?: string
|
|
965
|
+
/**
|
|
966
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
967
|
+
* @type number
|
|
968
|
+
* @memberof OffersApigetAllOffers
|
|
969
|
+
*/
|
|
970
|
+
offset?: number
|
|
971
|
+
/**
|
|
972
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
973
|
+
* @type number
|
|
974
|
+
* @memberof OffersApigetAllOffers
|
|
975
|
+
*/
|
|
976
|
+
limit?: number
|
|
977
|
+
/**
|
|
978
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
979
|
+
* @type string
|
|
980
|
+
* @memberof OffersApigetAllOffers
|
|
981
|
+
*/
|
|
982
|
+
createdAtStart?: string
|
|
983
|
+
/**
|
|
984
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
985
|
+
* @type string
|
|
986
|
+
* @memberof OffersApigetAllOffers
|
|
987
|
+
*/
|
|
988
|
+
createdAtEnd?: string
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export interface OffersApiGetOfferByIdRequest {
|
|
992
|
+
/**
|
|
993
|
+
* The Kanmon offer UUID.
|
|
994
|
+
* @type string
|
|
995
|
+
* @memberof OffersApigetOfferById
|
|
996
|
+
*/
|
|
997
|
+
id: string
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export class ObjectOffersApi {
|
|
1001
|
+
private api: ObservableOffersApi
|
|
1002
|
+
|
|
1003
|
+
public constructor(configuration: Configuration, requestFactory?: OffersApiRequestFactory, responseProcessor?: OffersApiResponseProcessor) {
|
|
1004
|
+
this.api = new ObservableOffersApi(configuration, requestFactory, responseProcessor);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Fetch offers
|
|
1009
|
+
* @param param the request object
|
|
1010
|
+
*/
|
|
1011
|
+
public getAllOffersWithHttpInfo(param: OffersApiGetAllOffersRequest = {}, options?: Configuration): Promise<HttpInfo<GetOffersResponse>> {
|
|
1012
|
+
return this.api.getAllOffersWithHttpInfo(param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Fetch offers
|
|
1017
|
+
* @param param the request object
|
|
1018
|
+
*/
|
|
1019
|
+
public getAllOffers(param: OffersApiGetAllOffersRequest = {}, options?: Configuration): Promise<GetOffersResponse> {
|
|
1020
|
+
return this.api.getAllOffers(param.ids, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Fetch an offer
|
|
1025
|
+
* @param param the request object
|
|
1026
|
+
*/
|
|
1027
|
+
public getOfferByIdWithHttpInfo(param: OffersApiGetOfferByIdRequest, options?: Configuration): Promise<HttpInfo<Offer>> {
|
|
1028
|
+
return this.api.getOfferByIdWithHttpInfo(param.id, options).toPromise();
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Fetch an offer
|
|
1033
|
+
* @param param the request object
|
|
1034
|
+
*/
|
|
1035
|
+
public getOfferById(param: OffersApiGetOfferByIdRequest, options?: Configuration): Promise<Offer> {
|
|
1036
|
+
return this.api.getOfferById(param.id, options).toPromise();
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
import { ObservablePaymentsApi } from "./ObservableAPI";
|
|
1042
|
+
import { PaymentsApiRequestFactory, PaymentsApiResponseProcessor} from "../apis/PaymentsApi";
|
|
1043
|
+
|
|
1044
|
+
export interface PaymentsApiGetPaymentByIdRequest {
|
|
1045
|
+
/**
|
|
1046
|
+
* The Kanmon payment order UUID.
|
|
1047
|
+
* @type string
|
|
1048
|
+
* @memberof PaymentsApigetPaymentById
|
|
1049
|
+
*/
|
|
1050
|
+
id: string
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export interface PaymentsApiGetPaymentScheduleForAIssuedProductRequest {
|
|
1054
|
+
/**
|
|
1055
|
+
* The Kanmon issued product UUID.
|
|
1056
|
+
* @type string
|
|
1057
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1058
|
+
*/
|
|
1059
|
+
id: string
|
|
1060
|
+
/**
|
|
1061
|
+
* A comma delimited list of Kanmon’s unique draw request IDs.
|
|
1062
|
+
* @type string
|
|
1063
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1064
|
+
*/
|
|
1065
|
+
drawRequestIds?: string
|
|
1066
|
+
/**
|
|
1067
|
+
* A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
1068
|
+
* @type string
|
|
1069
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1070
|
+
*/
|
|
1071
|
+
invoiceIds?: string
|
|
1072
|
+
/**
|
|
1073
|
+
* A comma delimited list of your platform’s unique IDs for invoices.
|
|
1074
|
+
* @type string
|
|
1075
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1076
|
+
*/
|
|
1077
|
+
platformInvoiceIds?: string
|
|
1078
|
+
/**
|
|
1079
|
+
* The direction of the payment.
|
|
1080
|
+
* @type 'DISBURSEMENT' | 'REPAYMENT'
|
|
1081
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1082
|
+
*/
|
|
1083
|
+
direction?: 'DISBURSEMENT' | 'REPAYMENT'
|
|
1084
|
+
/**
|
|
1085
|
+
* The status of the payment.
|
|
1086
|
+
* @type PaymentOrderStatus
|
|
1087
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1088
|
+
*/
|
|
1089
|
+
status?: PaymentOrderStatus
|
|
1090
|
+
/**
|
|
1091
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
1092
|
+
* @type number
|
|
1093
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1094
|
+
*/
|
|
1095
|
+
offset?: number
|
|
1096
|
+
/**
|
|
1097
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
1098
|
+
* @type number
|
|
1099
|
+
* @memberof PaymentsApigetPaymentScheduleForAIssuedProduct
|
|
1100
|
+
*/
|
|
1101
|
+
limit?: number
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
export class ObjectPaymentsApi {
|
|
1105
|
+
private api: ObservablePaymentsApi
|
|
1106
|
+
|
|
1107
|
+
public constructor(configuration: Configuration, requestFactory?: PaymentsApiRequestFactory, responseProcessor?: PaymentsApiResponseProcessor) {
|
|
1108
|
+
this.api = new ObservablePaymentsApi(configuration, requestFactory, responseProcessor);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Fetch a payment
|
|
1113
|
+
* @param param the request object
|
|
1114
|
+
*/
|
|
1115
|
+
public getPaymentByIdWithHttpInfo(param: PaymentsApiGetPaymentByIdRequest, options?: Configuration): Promise<HttpInfo<PaymentOrder>> {
|
|
1116
|
+
return this.api.getPaymentByIdWithHttpInfo(param.id, options).toPromise();
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Fetch a payment
|
|
1121
|
+
* @param param the request object
|
|
1122
|
+
*/
|
|
1123
|
+
public getPaymentById(param: PaymentsApiGetPaymentByIdRequest, options?: Configuration): Promise<PaymentOrder> {
|
|
1124
|
+
return this.api.getPaymentById(param.id, options).toPromise();
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Fetch payment schedule for an issued product
|
|
1129
|
+
* @param param the request object
|
|
1130
|
+
*/
|
|
1131
|
+
public getPaymentScheduleForAIssuedProductWithHttpInfo(param: PaymentsApiGetPaymentScheduleForAIssuedProductRequest, options?: Configuration): Promise<HttpInfo<GetPaymentScheduleResponse>> {
|
|
1132
|
+
return this.api.getPaymentScheduleForAIssuedProductWithHttpInfo(param.id, param.drawRequestIds, param.invoiceIds, param.platformInvoiceIds, param.direction, param.status, param.offset, param.limit, options).toPromise();
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Fetch payment schedule for an issued product
|
|
1137
|
+
* @param param the request object
|
|
1138
|
+
*/
|
|
1139
|
+
public getPaymentScheduleForAIssuedProduct(param: PaymentsApiGetPaymentScheduleForAIssuedProductRequest, options?: Configuration): Promise<GetPaymentScheduleResponse> {
|
|
1140
|
+
return this.api.getPaymentScheduleForAIssuedProduct(param.id, param.drawRequestIds, param.invoiceIds, param.platformInvoiceIds, param.direction, param.status, param.offset, param.limit, options).toPromise();
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
import { ObservablePrequalificationsApi } from "./ObservableAPI";
|
|
1146
|
+
import { PrequalificationsApiRequestFactory, PrequalificationsApiResponseProcessor} from "../apis/PrequalificationsApi";
|
|
1147
|
+
|
|
1148
|
+
export interface PrequalificationsApiGetPrequalifiedBusinessesRequest {
|
|
1149
|
+
/**
|
|
1150
|
+
* A comma delimited list of your platform’s unique IDs for businesses.
|
|
1151
|
+
* @type string
|
|
1152
|
+
* @memberof PrequalificationsApigetPrequalifiedBusinesses
|
|
1153
|
+
*/
|
|
1154
|
+
platformBusinessIds?: string
|
|
1155
|
+
/**
|
|
1156
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
1157
|
+
* @type number
|
|
1158
|
+
* @memberof PrequalificationsApigetPrequalifiedBusinesses
|
|
1159
|
+
*/
|
|
1160
|
+
offset?: number
|
|
1161
|
+
/**
|
|
1162
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
1163
|
+
* @type number
|
|
1164
|
+
* @memberof PrequalificationsApigetPrequalifiedBusinesses
|
|
1165
|
+
*/
|
|
1166
|
+
limit?: number
|
|
1167
|
+
/**
|
|
1168
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
1169
|
+
* @type string
|
|
1170
|
+
* @memberof PrequalificationsApigetPrequalifiedBusinesses
|
|
1171
|
+
*/
|
|
1172
|
+
createdAtStart?: string
|
|
1173
|
+
/**
|
|
1174
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
1175
|
+
* @type string
|
|
1176
|
+
* @memberof PrequalificationsApigetPrequalifiedBusinesses
|
|
1177
|
+
*/
|
|
1178
|
+
createdAtEnd?: string
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
export class ObjectPrequalificationsApi {
|
|
1182
|
+
private api: ObservablePrequalificationsApi
|
|
1183
|
+
|
|
1184
|
+
public constructor(configuration: Configuration, requestFactory?: PrequalificationsApiRequestFactory, responseProcessor?: PrequalificationsApiResponseProcessor) {
|
|
1185
|
+
this.api = new ObservablePrequalificationsApi(configuration, requestFactory, responseProcessor);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Fetch business prequalifications
|
|
1190
|
+
* @param param the request object
|
|
1191
|
+
*/
|
|
1192
|
+
public getPrequalifiedBusinessesWithHttpInfo(param: PrequalificationsApiGetPrequalifiedBusinessesRequest = {}, options?: Configuration): Promise<HttpInfo<Array<GetPrequalificationsResponse>>> {
|
|
1193
|
+
return this.api.getPrequalifiedBusinessesWithHttpInfo(param.platformBusinessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Fetch business prequalifications
|
|
1198
|
+
* @param param the request object
|
|
1199
|
+
*/
|
|
1200
|
+
public getPrequalifiedBusinesses(param: PrequalificationsApiGetPrequalifiedBusinessesRequest = {}, options?: Configuration): Promise<Array<GetPrequalificationsResponse>> {
|
|
1201
|
+
return this.api.getPrequalifiedBusinesses(param.platformBusinessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
import { ObservableUsersApi } from "./ObservableAPI";
|
|
1207
|
+
import { UsersApiRequestFactory, UsersApiResponseProcessor} from "../apis/UsersApi";
|
|
1208
|
+
|
|
1209
|
+
export interface UsersApiCreateUserRequest {
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @type CreateUserRequestBody
|
|
1213
|
+
* @memberof UsersApicreateUser
|
|
1214
|
+
*/
|
|
1215
|
+
createUserRequestBody: CreateUserRequestBody
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export interface UsersApiGetUserRequest {
|
|
1219
|
+
/**
|
|
1220
|
+
* Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
1221
|
+
* @type string
|
|
1222
|
+
* @memberof UsersApigetUser
|
|
1223
|
+
*/
|
|
1224
|
+
id: string
|
|
1225
|
+
/**
|
|
1226
|
+
* Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
1227
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
1228
|
+
* @memberof UsersApigetUser
|
|
1229
|
+
*/
|
|
1230
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
export interface UsersApiGetUsersRequest {
|
|
1234
|
+
/**
|
|
1235
|
+
* A comma delimited list of Kanmon’s unique IDs for users.
|
|
1236
|
+
* @type string
|
|
1237
|
+
* @memberof UsersApigetUsers
|
|
1238
|
+
*/
|
|
1239
|
+
ids?: string
|
|
1240
|
+
/**
|
|
1241
|
+
* A comma delimited list of your platform’s unique IDs for users.
|
|
1242
|
+
* @type string
|
|
1243
|
+
* @memberof UsersApigetUsers
|
|
1244
|
+
*/
|
|
1245
|
+
platformUserIds?: string
|
|
1246
|
+
/**
|
|
1247
|
+
* A comma delimited list of your platform’s unique business IDs for users.
|
|
1248
|
+
* @type string
|
|
1249
|
+
* @memberof UsersApigetUsers
|
|
1250
|
+
*/
|
|
1251
|
+
platformBusinessIds?: string
|
|
1252
|
+
/**
|
|
1253
|
+
* A comma delimited list of your Kanmon’s unique business IDs for users.
|
|
1254
|
+
* @type string
|
|
1255
|
+
* @memberof UsersApigetUsers
|
|
1256
|
+
*/
|
|
1257
|
+
businessIds?: string
|
|
1258
|
+
/**
|
|
1259
|
+
* The number of records to skip when performing pagination. Defaults to `0`.
|
|
1260
|
+
* @type number
|
|
1261
|
+
* @memberof UsersApigetUsers
|
|
1262
|
+
*/
|
|
1263
|
+
offset?: number
|
|
1264
|
+
/**
|
|
1265
|
+
* The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
1266
|
+
* @type number
|
|
1267
|
+
* @memberof UsersApigetUsers
|
|
1268
|
+
*/
|
|
1269
|
+
limit?: number
|
|
1270
|
+
/**
|
|
1271
|
+
* Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
1272
|
+
* @type string
|
|
1273
|
+
* @memberof UsersApigetUsers
|
|
1274
|
+
*/
|
|
1275
|
+
createdAtStart?: string
|
|
1276
|
+
/**
|
|
1277
|
+
* Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
1278
|
+
* @type string
|
|
1279
|
+
* @memberof UsersApigetUsers
|
|
1280
|
+
*/
|
|
1281
|
+
createdAtEnd?: string
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export interface UsersApiMergeUserIntoBusinesRequest {
|
|
1285
|
+
/**
|
|
1286
|
+
*
|
|
1287
|
+
* @type MergeUsersRequestBody
|
|
1288
|
+
* @memberof UsersApimergeUserIntoBusines
|
|
1289
|
+
*/
|
|
1290
|
+
mergeUsersRequestBody: MergeUsersRequestBody
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
export interface UsersApiUpdateUserRequest {
|
|
1294
|
+
/**
|
|
1295
|
+
* Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
1296
|
+
* @type string
|
|
1297
|
+
* @memberof UsersApiupdateUser
|
|
1298
|
+
*/
|
|
1299
|
+
id: string
|
|
1300
|
+
/**
|
|
1301
|
+
*
|
|
1302
|
+
* @type UpdateUserRequestBody
|
|
1303
|
+
* @memberof UsersApiupdateUser
|
|
1304
|
+
*/
|
|
1305
|
+
updateUserRequestBody: UpdateUserRequestBody
|
|
1306
|
+
/**
|
|
1307
|
+
* Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
1308
|
+
* @type 'KANMON' | 'PLATFORM'
|
|
1309
|
+
* @memberof UsersApiupdateUser
|
|
1310
|
+
*/
|
|
1311
|
+
idType?: 'KANMON' | 'PLATFORM'
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export class ObjectUsersApi {
|
|
1315
|
+
private api: ObservableUsersApi
|
|
1316
|
+
|
|
1317
|
+
public constructor(configuration: Configuration, requestFactory?: UsersApiRequestFactory, responseProcessor?: UsersApiResponseProcessor) {
|
|
1318
|
+
this.api = new ObservableUsersApi(configuration, requestFactory, responseProcessor);
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Create a user
|
|
1323
|
+
* @param param the request object
|
|
1324
|
+
*/
|
|
1325
|
+
public createUserWithHttpInfo(param: UsersApiCreateUserRequest, options?: Configuration): Promise<HttpInfo<User>> {
|
|
1326
|
+
return this.api.createUserWithHttpInfo(param.createUserRequestBody, options).toPromise();
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Create a user
|
|
1331
|
+
* @param param the request object
|
|
1332
|
+
*/
|
|
1333
|
+
public createUser(param: UsersApiCreateUserRequest, options?: Configuration): Promise<User> {
|
|
1334
|
+
return this.api.createUser(param.createUserRequestBody, options).toPromise();
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Fetch a user
|
|
1339
|
+
* @param param the request object
|
|
1340
|
+
*/
|
|
1341
|
+
public getUserWithHttpInfo(param: UsersApiGetUserRequest, options?: Configuration): Promise<HttpInfo<User>> {
|
|
1342
|
+
return this.api.getUserWithHttpInfo(param.id, param.idType, options).toPromise();
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Fetch a user
|
|
1347
|
+
* @param param the request object
|
|
1348
|
+
*/
|
|
1349
|
+
public getUser(param: UsersApiGetUserRequest, options?: Configuration): Promise<User> {
|
|
1350
|
+
return this.api.getUser(param.id, param.idType, options).toPromise();
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Fetch users
|
|
1355
|
+
* @param param the request object
|
|
1356
|
+
*/
|
|
1357
|
+
public getUsersWithHttpInfo(param: UsersApiGetUsersRequest = {}, options?: Configuration): Promise<HttpInfo<GetUsersResponse>> {
|
|
1358
|
+
return this.api.getUsersWithHttpInfo(param.ids, param.platformUserIds, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Fetch users
|
|
1363
|
+
* @param param the request object
|
|
1364
|
+
*/
|
|
1365
|
+
public getUsers(param: UsersApiGetUsersRequest = {}, options?: Configuration): Promise<GetUsersResponse> {
|
|
1366
|
+
return this.api.getUsers(param.ids, param.platformUserIds, param.platformBusinessIds, param.businessIds, param.offset, param.limit, param.createdAtStart, param.createdAtEnd, options).toPromise();
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Users from the source business will be moved into the target business. This will only work if the source business has not started onboarding yet. After the merge, the source business will be deleted.
|
|
1371
|
+
* Merge users from a source business into a target business
|
|
1372
|
+
* @param param the request object
|
|
1373
|
+
*/
|
|
1374
|
+
public mergeUserIntoBusinesWithHttpInfo(param: UsersApiMergeUserIntoBusinesRequest, options?: Configuration): Promise<HttpInfo<MergeUsersResponseBody>> {
|
|
1375
|
+
return this.api.mergeUserIntoBusinesWithHttpInfo(param.mergeUsersRequestBody, options).toPromise();
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Users from the source business will be moved into the target business. This will only work if the source business has not started onboarding yet. After the merge, the source business will be deleted.
|
|
1380
|
+
* Merge users from a source business into a target business
|
|
1381
|
+
* @param param the request object
|
|
1382
|
+
*/
|
|
1383
|
+
public mergeUserIntoBusines(param: UsersApiMergeUserIntoBusinesRequest, options?: Configuration): Promise<MergeUsersResponseBody> {
|
|
1384
|
+
return this.api.mergeUserIntoBusines(param.mergeUsersRequestBody, options).toPromise();
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Update a user
|
|
1389
|
+
* @param param the request object
|
|
1390
|
+
*/
|
|
1391
|
+
public updateUserWithHttpInfo(param: UsersApiUpdateUserRequest, options?: Configuration): Promise<HttpInfo<User>> {
|
|
1392
|
+
return this.api.updateUserWithHttpInfo(param.id, param.updateUserRequestBody, param.idType, options).toPromise();
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Update a user
|
|
1397
|
+
* @param param the request object
|
|
1398
|
+
*/
|
|
1399
|
+
public updateUser(param: UsersApiUpdateUserRequest, options?: Configuration): Promise<User> {
|
|
1400
|
+
return this.api.updateUser(param.id, param.updateUserRequestBody, param.idType, options).toPromise();
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
}
|