@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,995 @@
|
|
|
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
|
+
import { ObservableBankAccountsApi } from './ObservableAPI';
|
|
107
|
+
|
|
108
|
+
import { BankAccountsApiRequestFactory, BankAccountsApiResponseProcessor} from "../apis/BankAccountsApi";
|
|
109
|
+
export class PromiseBankAccountsApi {
|
|
110
|
+
private api: ObservableBankAccountsApi
|
|
111
|
+
|
|
112
|
+
public constructor(
|
|
113
|
+
configuration: Configuration,
|
|
114
|
+
requestFactory?: BankAccountsApiRequestFactory,
|
|
115
|
+
responseProcessor?: BankAccountsApiResponseProcessor
|
|
116
|
+
) {
|
|
117
|
+
this.api = new ObservableBankAccountsApi(configuration, requestFactory, responseProcessor);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 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.
|
|
122
|
+
* Create a business bank account
|
|
123
|
+
* @param createBusinessBankAccountRequestBody
|
|
124
|
+
*/
|
|
125
|
+
public createBusinessBankAccountWithHttpInfo(createBusinessBankAccountRequestBody: CreateBusinessBankAccountRequestBody, _options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
126
|
+
const result = this.api.createBusinessBankAccountWithHttpInfo(createBusinessBankAccountRequestBody, _options);
|
|
127
|
+
return result.toPromise();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 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.
|
|
132
|
+
* Create a business bank account
|
|
133
|
+
* @param createBusinessBankAccountRequestBody
|
|
134
|
+
*/
|
|
135
|
+
public createBusinessBankAccount(createBusinessBankAccountRequestBody: CreateBusinessBankAccountRequestBody, _options?: Configuration): Promise<BusinessBankAccount> {
|
|
136
|
+
const result = this.api.createBusinessBankAccount(createBusinessBankAccountRequestBody, _options);
|
|
137
|
+
return result.toPromise();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
142
|
+
* Fetch a business bank account
|
|
143
|
+
* @param id Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
144
|
+
* @param idType Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
145
|
+
*/
|
|
146
|
+
public getBusinessBankAccountWithHttpInfo(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
147
|
+
const result = this.api.getBusinessBankAccountWithHttpInfo(id, idType, _options);
|
|
148
|
+
return result.toPromise();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
153
|
+
* Fetch a business bank account
|
|
154
|
+
* @param id Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
155
|
+
* @param idType Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
156
|
+
*/
|
|
157
|
+
public getBusinessBankAccount(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<BusinessBankAccount> {
|
|
158
|
+
const result = this.api.getBusinessBankAccount(id, idType, _options);
|
|
159
|
+
return result.toPromise();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
164
|
+
* Fetch business bank accounts
|
|
165
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for bank accounts.
|
|
166
|
+
* @param platformBankAccountIds A comma delimited list of your platform’s unique IDs for bank accounts.
|
|
167
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique business IDs for bannk accounts.
|
|
168
|
+
* @param businessIds A comma delimited list of your Kanmon’s unique business IDs for bannk accounts.
|
|
169
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
170
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
171
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
172
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
173
|
+
*/
|
|
174
|
+
public getBusinessBankAccountsWithHttpInfo(ids?: string, platformBankAccountIds?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetBusinessBankAccountsResponse>> {
|
|
175
|
+
const result = this.api.getBusinessBankAccountsWithHttpInfo(ids, platformBankAccountIds, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
176
|
+
return result.toPromise();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Please contact Kanmon to enable access to bank account APIs.
|
|
181
|
+
* Fetch business bank accounts
|
|
182
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for bank accounts.
|
|
183
|
+
* @param platformBankAccountIds A comma delimited list of your platform’s unique IDs for bank accounts.
|
|
184
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique business IDs for bannk accounts.
|
|
185
|
+
* @param businessIds A comma delimited list of your Kanmon’s unique business IDs for bannk accounts.
|
|
186
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
187
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
188
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
189
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
190
|
+
*/
|
|
191
|
+
public getBusinessBankAccounts(ids?: string, platformBankAccountIds?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetBusinessBankAccountsResponse> {
|
|
192
|
+
const result = this.api.getBusinessBankAccounts(ids, platformBankAccountIds, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
193
|
+
return result.toPromise();
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* 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.
|
|
198
|
+
* Update a business bank account
|
|
199
|
+
* @param id Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
200
|
+
* @param updateBusinessAccountRequestBody
|
|
201
|
+
* @param idType Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
202
|
+
*/
|
|
203
|
+
public updateBusinessBankAccountWithHttpInfo(id: string, updateBusinessAccountRequestBody: UpdateBusinessAccountRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<BusinessBankAccount>> {
|
|
204
|
+
const result = this.api.updateBusinessBankAccountWithHttpInfo(id, updateBusinessAccountRequestBody, idType, _options);
|
|
205
|
+
return result.toPromise();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* 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.
|
|
210
|
+
* Update a business bank account
|
|
211
|
+
* @param id Either the Kanmon bank account UUID or your platform’s bank account ID, depending on `idType`.
|
|
212
|
+
* @param updateBusinessAccountRequestBody
|
|
213
|
+
* @param idType Which ID type to query the bank account by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
214
|
+
*/
|
|
215
|
+
public updateBusinessBankAccount(id: string, updateBusinessAccountRequestBody: UpdateBusinessAccountRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<BusinessBankAccount> {
|
|
216
|
+
const result = this.api.updateBusinessBankAccount(id, updateBusinessAccountRequestBody, idType, _options);
|
|
217
|
+
return result.toPromise();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
import { ObservableBusinessesApi } from './ObservableAPI';
|
|
226
|
+
|
|
227
|
+
import { BusinessesApiRequestFactory, BusinessesApiResponseProcessor} from "../apis/BusinessesApi";
|
|
228
|
+
export class PromiseBusinessesApi {
|
|
229
|
+
private api: ObservableBusinessesApi
|
|
230
|
+
|
|
231
|
+
public constructor(
|
|
232
|
+
configuration: Configuration,
|
|
233
|
+
requestFactory?: BusinessesApiRequestFactory,
|
|
234
|
+
responseProcessor?: BusinessesApiResponseProcessor
|
|
235
|
+
) {
|
|
236
|
+
this.api = new ObservableBusinessesApi(configuration, requestFactory, responseProcessor);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Create a business
|
|
241
|
+
* @param createBusinessRequestBody
|
|
242
|
+
*/
|
|
243
|
+
public createBusinessWithHttpInfo(createBusinessRequestBody: CreateBusinessRequestBody, _options?: Configuration): Promise<HttpInfo<Business>> {
|
|
244
|
+
const result = this.api.createBusinessWithHttpInfo(createBusinessRequestBody, _options);
|
|
245
|
+
return result.toPromise();
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Create a business
|
|
250
|
+
* @param createBusinessRequestBody
|
|
251
|
+
*/
|
|
252
|
+
public createBusiness(createBusinessRequestBody: CreateBusinessRequestBody, _options?: Configuration): Promise<Business> {
|
|
253
|
+
const result = this.api.createBusiness(createBusinessRequestBody, _options);
|
|
254
|
+
return result.toPromise();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Fetch a business
|
|
259
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
260
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
261
|
+
*/
|
|
262
|
+
public getBusinessWithHttpInfo(id: any, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<Business>> {
|
|
263
|
+
const result = this.api.getBusinessWithHttpInfo(id, idType, _options);
|
|
264
|
+
return result.toPromise();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Fetch a business
|
|
269
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
270
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
271
|
+
*/
|
|
272
|
+
public getBusiness(id: any, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<Business> {
|
|
273
|
+
const result = this.api.getBusiness(id, idType, _options);
|
|
274
|
+
return result.toPromise();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Fetch activity logs for a business
|
|
279
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
280
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
281
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
282
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
283
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
284
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
285
|
+
*/
|
|
286
|
+
public getBusinessActivityLogWithHttpInfo(id: any, idType?: 'KANMON' | 'PLATFORM', offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetActivityLogsResponse>> {
|
|
287
|
+
const result = this.api.getBusinessActivityLogWithHttpInfo(id, idType, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
288
|
+
return result.toPromise();
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Fetch activity logs for a business
|
|
293
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
294
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
295
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
296
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
297
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
298
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
299
|
+
*/
|
|
300
|
+
public getBusinessActivityLog(id: any, idType?: 'KANMON' | 'PLATFORM', offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetActivityLogsResponse> {
|
|
301
|
+
const result = this.api.getBusinessActivityLog(id, idType, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
302
|
+
return result.toPromise();
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Fetch businesses
|
|
307
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
308
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
309
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
310
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
311
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
312
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
313
|
+
*/
|
|
314
|
+
public getBusinessesWithHttpInfo(ids?: string, platformBusinessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetBusinessesResponse>> {
|
|
315
|
+
const result = this.api.getBusinessesWithHttpInfo(ids, platformBusinessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
316
|
+
return result.toPromise();
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Fetch businesses
|
|
321
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
322
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
323
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
324
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
325
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
326
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
327
|
+
*/
|
|
328
|
+
public getBusinesses(ids?: string, platformBusinessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetBusinessesResponse> {
|
|
329
|
+
const result = this.api.getBusinesses(ids, platformBusinessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
330
|
+
return result.toPromise();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Update a business
|
|
335
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
336
|
+
* @param updateBusinessRequestBody
|
|
337
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
338
|
+
*/
|
|
339
|
+
public updateBusinessWithHttpInfo(id: any, updateBusinessRequestBody: UpdateBusinessRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<Business>> {
|
|
340
|
+
const result = this.api.updateBusinessWithHttpInfo(id, updateBusinessRequestBody, idType, _options);
|
|
341
|
+
return result.toPromise();
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Update a business
|
|
346
|
+
* @param id Either the Kanmon business UUID or your platform’s business ID, depending on `idType`.
|
|
347
|
+
* @param updateBusinessRequestBody
|
|
348
|
+
* @param idType Which ID type to query the business by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
349
|
+
*/
|
|
350
|
+
public updateBusiness(id: any, updateBusinessRequestBody: UpdateBusinessRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<Business> {
|
|
351
|
+
const result = this.api.updateBusiness(id, updateBusinessRequestBody, idType, _options);
|
|
352
|
+
return result.toPromise();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
import { ObservableConnectTokensApi } from './ObservableAPI';
|
|
361
|
+
|
|
362
|
+
import { ConnectTokensApiRequestFactory, ConnectTokensApiResponseProcessor} from "../apis/ConnectTokensApi";
|
|
363
|
+
export class PromiseConnectTokensApi {
|
|
364
|
+
private api: ObservableConnectTokensApi
|
|
365
|
+
|
|
366
|
+
public constructor(
|
|
367
|
+
configuration: Configuration,
|
|
368
|
+
requestFactory?: ConnectTokensApiRequestFactory,
|
|
369
|
+
responseProcessor?: ConnectTokensApiResponseProcessor
|
|
370
|
+
) {
|
|
371
|
+
this.api = new ObservableConnectTokensApi(configuration, requestFactory, responseProcessor);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Create a connect token
|
|
376
|
+
* @param createConnectTokenRequestBody
|
|
377
|
+
*/
|
|
378
|
+
public connectTokenWithHttpInfo(createConnectTokenRequestBody: CreateConnectTokenRequestBody, _options?: Configuration): Promise<HttpInfo<ConnectToken>> {
|
|
379
|
+
const result = this.api.connectTokenWithHttpInfo(createConnectTokenRequestBody, _options);
|
|
380
|
+
return result.toPromise();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Create a connect token
|
|
385
|
+
* @param createConnectTokenRequestBody
|
|
386
|
+
*/
|
|
387
|
+
public connectToken(createConnectTokenRequestBody: CreateConnectTokenRequestBody, _options?: Configuration): Promise<ConnectToken> {
|
|
388
|
+
const result = this.api.connectToken(createConnectTokenRequestBody, _options);
|
|
389
|
+
return result.toPromise();
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
import { ObservableDocumentsApi } from './ObservableAPI';
|
|
398
|
+
|
|
399
|
+
import { DocumentsApiRequestFactory, DocumentsApiResponseProcessor} from "../apis/DocumentsApi";
|
|
400
|
+
export class PromiseDocumentsApi {
|
|
401
|
+
private api: ObservableDocumentsApi
|
|
402
|
+
|
|
403
|
+
public constructor(
|
|
404
|
+
configuration: Configuration,
|
|
405
|
+
requestFactory?: DocumentsApiRequestFactory,
|
|
406
|
+
responseProcessor?: DocumentsApiResponseProcessor
|
|
407
|
+
) {
|
|
408
|
+
this.api = new ObservableDocumentsApi(configuration, requestFactory, responseProcessor);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Upload documents for a business
|
|
413
|
+
* @param invoices Invoices to be uploaded. The file format must be PDF. The limit is 10 files, 10 MB per file.
|
|
414
|
+
* @param businessId The unique identifier for business in our system. Either of `businessId` or `platformBusinessId` is required.
|
|
415
|
+
* @param platformBusinessId The unique identifier for business in your platform. Either of `businessId` or `platformBusinessId` is required.
|
|
416
|
+
*/
|
|
417
|
+
public createBusinessDocumentWithHttpInfo(invoices: Array<HttpFile>, businessId?: string, platformBusinessId?: string, _options?: Configuration): Promise<HttpInfo<CreateBusinessDocumentsResponse>> {
|
|
418
|
+
const result = this.api.createBusinessDocumentWithHttpInfo(invoices, businessId, platformBusinessId, _options);
|
|
419
|
+
return result.toPromise();
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Upload documents for a business
|
|
424
|
+
* @param invoices Invoices to be uploaded. The file format must be PDF. The limit is 10 files, 10 MB per file.
|
|
425
|
+
* @param businessId The unique identifier for business in our system. Either of `businessId` or `platformBusinessId` is required.
|
|
426
|
+
* @param platformBusinessId The unique identifier for business in your platform. Either of `businessId` or `platformBusinessId` is required.
|
|
427
|
+
*/
|
|
428
|
+
public createBusinessDocument(invoices: Array<HttpFile>, businessId?: string, platformBusinessId?: string, _options?: Configuration): Promise<CreateBusinessDocumentsResponse> {
|
|
429
|
+
const result = this.api.createBusinessDocument(invoices, businessId, platformBusinessId, _options);
|
|
430
|
+
return result.toPromise();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
import { ObservableDrawRequestsApi } from './ObservableAPI';
|
|
439
|
+
|
|
440
|
+
import { DrawRequestsApiRequestFactory, DrawRequestsApiResponseProcessor} from "../apis/DrawRequestsApi";
|
|
441
|
+
export class PromiseDrawRequestsApi {
|
|
442
|
+
private api: ObservableDrawRequestsApi
|
|
443
|
+
|
|
444
|
+
public constructor(
|
|
445
|
+
configuration: Configuration,
|
|
446
|
+
requestFactory?: DrawRequestsApiRequestFactory,
|
|
447
|
+
responseProcessor?: DrawRequestsApiResponseProcessor
|
|
448
|
+
) {
|
|
449
|
+
this.api = new ObservableDrawRequestsApi(configuration, requestFactory, responseProcessor);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Fetch a draw request
|
|
454
|
+
* @param id The Kanmon draw request UUID.
|
|
455
|
+
*/
|
|
456
|
+
public getDrawRequestWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<DrawRequest>> {
|
|
457
|
+
const result = this.api.getDrawRequestWithHttpInfo(id, _options);
|
|
458
|
+
return result.toPromise();
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Fetch a draw request
|
|
463
|
+
* @param id The Kanmon draw request UUID.
|
|
464
|
+
*/
|
|
465
|
+
public getDrawRequest(id: string, _options?: Configuration): Promise<DrawRequest> {
|
|
466
|
+
const result = this.api.getDrawRequest(id, _options);
|
|
467
|
+
return result.toPromise();
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Fetch draw requests
|
|
472
|
+
* @param statuses A comma delimited list of draw request statuses.
|
|
473
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
474
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
475
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
476
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
477
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
478
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
479
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
480
|
+
*/
|
|
481
|
+
public getDrawRequestsWithHttpInfo(statuses?: string, ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetDrawRequestsResponse>> {
|
|
482
|
+
const result = this.api.getDrawRequestsWithHttpInfo(statuses, ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
483
|
+
return result.toPromise();
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Fetch draw requests
|
|
488
|
+
* @param statuses A comma delimited list of draw request statuses.
|
|
489
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
490
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
491
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
492
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
493
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
494
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
495
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
496
|
+
*/
|
|
497
|
+
public getDrawRequests(statuses?: string, ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetDrawRequestsResponse> {
|
|
498
|
+
const result = this.api.getDrawRequests(statuses, ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
499
|
+
return result.toPromise();
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
import { ObservableEmbeddedSessionsApi } from './ObservableAPI';
|
|
508
|
+
|
|
509
|
+
import { EmbeddedSessionsApiRequestFactory, EmbeddedSessionsApiResponseProcessor} from "../apis/EmbeddedSessionsApi";
|
|
510
|
+
export class PromiseEmbeddedSessionsApi {
|
|
511
|
+
private api: ObservableEmbeddedSessionsApi
|
|
512
|
+
|
|
513
|
+
public constructor(
|
|
514
|
+
configuration: Configuration,
|
|
515
|
+
requestFactory?: EmbeddedSessionsApiRequestFactory,
|
|
516
|
+
responseProcessor?: EmbeddedSessionsApiResponseProcessor
|
|
517
|
+
) {
|
|
518
|
+
this.api = new ObservableEmbeddedSessionsApi(configuration, requestFactory, responseProcessor);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Create an embedded session
|
|
523
|
+
* @param createSessionTokenRequestBody
|
|
524
|
+
*/
|
|
525
|
+
public createEmbeddedSessionWithHttpInfo(createSessionTokenRequestBody: CreateSessionTokenRequestBody, _options?: Configuration): Promise<HttpInfo<EmbeddedSession>> {
|
|
526
|
+
const result = this.api.createEmbeddedSessionWithHttpInfo(createSessionTokenRequestBody, _options);
|
|
527
|
+
return result.toPromise();
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Create an embedded session
|
|
532
|
+
* @param createSessionTokenRequestBody
|
|
533
|
+
*/
|
|
534
|
+
public createEmbeddedSession(createSessionTokenRequestBody: CreateSessionTokenRequestBody, _options?: Configuration): Promise<EmbeddedSession> {
|
|
535
|
+
const result = this.api.createEmbeddedSession(createSessionTokenRequestBody, _options);
|
|
536
|
+
return result.toPromise();
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
import { ObservableInvoicesApi } from './ObservableAPI';
|
|
545
|
+
|
|
546
|
+
import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor} from "../apis/InvoicesApi";
|
|
547
|
+
export class PromiseInvoicesApi {
|
|
548
|
+
private api: ObservableInvoicesApi
|
|
549
|
+
|
|
550
|
+
public constructor(
|
|
551
|
+
configuration: Configuration,
|
|
552
|
+
requestFactory?: InvoicesApiRequestFactory,
|
|
553
|
+
responseProcessor?: InvoicesApiResponseProcessor
|
|
554
|
+
) {
|
|
555
|
+
this.api = new ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Fetch an invoice
|
|
560
|
+
* @param id Either the Kanmon invoice UUID or your platform’s invoice ID, depending on `idType`.
|
|
561
|
+
* @param idType Which ID type to query the invoice by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
562
|
+
*/
|
|
563
|
+
public getInvoiceWithHttpInfo(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<Invoice>> {
|
|
564
|
+
const result = this.api.getInvoiceWithHttpInfo(id, idType, _options);
|
|
565
|
+
return result.toPromise();
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Fetch an invoice
|
|
570
|
+
* @param id Either the Kanmon invoice UUID or your platform’s invoice ID, depending on `idType`.
|
|
571
|
+
* @param idType Which ID type to query the invoice by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
572
|
+
*/
|
|
573
|
+
public getInvoice(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<Invoice> {
|
|
574
|
+
const result = this.api.getInvoice(id, idType, _options);
|
|
575
|
+
return result.toPromise();
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Fetch invoices
|
|
580
|
+
* @param statuses A comma delimited list of invoice statuses.
|
|
581
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
582
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
583
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
584
|
+
* @param platformInvoiceIds A comma delimited list of your platforms’s unique IDs for invoices.
|
|
585
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
586
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
587
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
588
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
589
|
+
*/
|
|
590
|
+
public getInvoicesWithHttpInfo(statuses?: string, ids?: string, platformBusinessIds?: string, businessIds?: string, platformInvoiceIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetInvoicesResponse>> {
|
|
591
|
+
const result = this.api.getInvoicesWithHttpInfo(statuses, ids, platformBusinessIds, businessIds, platformInvoiceIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
592
|
+
return result.toPromise();
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Fetch invoices
|
|
597
|
+
* @param statuses A comma delimited list of invoice statuses.
|
|
598
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
599
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
600
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
601
|
+
* @param platformInvoiceIds A comma delimited list of your platforms’s unique IDs for invoices.
|
|
602
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
603
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
604
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
605
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
606
|
+
*/
|
|
607
|
+
public getInvoices(statuses?: string, ids?: string, platformBusinessIds?: string, businessIds?: string, platformInvoiceIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetInvoicesResponse> {
|
|
608
|
+
const result = this.api.getInvoices(statuses, ids, platformBusinessIds, businessIds, platformInvoiceIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
609
|
+
return result.toPromise();
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
import { ObservableIssuedProductsApi } from './ObservableAPI';
|
|
618
|
+
|
|
619
|
+
import { IssuedProductsApiRequestFactory, IssuedProductsApiResponseProcessor} from "../apis/IssuedProductsApi";
|
|
620
|
+
export class PromiseIssuedProductsApi {
|
|
621
|
+
private api: ObservableIssuedProductsApi
|
|
622
|
+
|
|
623
|
+
public constructor(
|
|
624
|
+
configuration: Configuration,
|
|
625
|
+
requestFactory?: IssuedProductsApiRequestFactory,
|
|
626
|
+
responseProcessor?: IssuedProductsApiResponseProcessor
|
|
627
|
+
) {
|
|
628
|
+
this.api = new ObservableIssuedProductsApi(configuration, requestFactory, responseProcessor);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Fetch issued products
|
|
633
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for offers.
|
|
634
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
635
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
636
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
637
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
638
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
639
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
640
|
+
*/
|
|
641
|
+
public getAllIssuedProductsWithHttpInfo(ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetIssuedProductsResponse>> {
|
|
642
|
+
const result = this.api.getAllIssuedProductsWithHttpInfo(ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
643
|
+
return result.toPromise();
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Fetch issued products
|
|
648
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for offers.
|
|
649
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
650
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
651
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
652
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
653
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
654
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
655
|
+
*/
|
|
656
|
+
public getAllIssuedProducts(ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetIssuedProductsResponse> {
|
|
657
|
+
const result = this.api.getAllIssuedProducts(ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
658
|
+
return result.toPromise();
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Fetch an issued product
|
|
663
|
+
* @param id The Kanmon issued product UUID.
|
|
664
|
+
*/
|
|
665
|
+
public getIssuedProductByIdWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<IssuedProduct>> {
|
|
666
|
+
const result = this.api.getIssuedProductByIdWithHttpInfo(id, _options);
|
|
667
|
+
return result.toPromise();
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Fetch an issued product
|
|
672
|
+
* @param id The Kanmon issued product UUID.
|
|
673
|
+
*/
|
|
674
|
+
public getIssuedProductById(id: string, _options?: Configuration): Promise<IssuedProduct> {
|
|
675
|
+
const result = this.api.getIssuedProductById(id, _options);
|
|
676
|
+
return result.toPromise();
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
import { ObservableOffersApi } from './ObservableAPI';
|
|
685
|
+
|
|
686
|
+
import { OffersApiRequestFactory, OffersApiResponseProcessor} from "../apis/OffersApi";
|
|
687
|
+
export class PromiseOffersApi {
|
|
688
|
+
private api: ObservableOffersApi
|
|
689
|
+
|
|
690
|
+
public constructor(
|
|
691
|
+
configuration: Configuration,
|
|
692
|
+
requestFactory?: OffersApiRequestFactory,
|
|
693
|
+
responseProcessor?: OffersApiResponseProcessor
|
|
694
|
+
) {
|
|
695
|
+
this.api = new ObservableOffersApi(configuration, requestFactory, responseProcessor);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Fetch offers
|
|
700
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for offers.
|
|
701
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
702
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
703
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
704
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
705
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
706
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
707
|
+
*/
|
|
708
|
+
public getAllOffersWithHttpInfo(ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetOffersResponse>> {
|
|
709
|
+
const result = this.api.getAllOffersWithHttpInfo(ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
710
|
+
return result.toPromise();
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Fetch offers
|
|
715
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for offers.
|
|
716
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
717
|
+
* @param businessIds A comma delimited list of Kanmon’s unique IDs for businesses.
|
|
718
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
719
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
720
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
721
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
722
|
+
*/
|
|
723
|
+
public getAllOffers(ids?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetOffersResponse> {
|
|
724
|
+
const result = this.api.getAllOffers(ids, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
725
|
+
return result.toPromise();
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Fetch an offer
|
|
730
|
+
* @param id The Kanmon offer UUID.
|
|
731
|
+
*/
|
|
732
|
+
public getOfferByIdWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<Offer>> {
|
|
733
|
+
const result = this.api.getOfferByIdWithHttpInfo(id, _options);
|
|
734
|
+
return result.toPromise();
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Fetch an offer
|
|
739
|
+
* @param id The Kanmon offer UUID.
|
|
740
|
+
*/
|
|
741
|
+
public getOfferById(id: string, _options?: Configuration): Promise<Offer> {
|
|
742
|
+
const result = this.api.getOfferById(id, _options);
|
|
743
|
+
return result.toPromise();
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
import { ObservablePaymentsApi } from './ObservableAPI';
|
|
752
|
+
|
|
753
|
+
import { PaymentsApiRequestFactory, PaymentsApiResponseProcessor} from "../apis/PaymentsApi";
|
|
754
|
+
export class PromisePaymentsApi {
|
|
755
|
+
private api: ObservablePaymentsApi
|
|
756
|
+
|
|
757
|
+
public constructor(
|
|
758
|
+
configuration: Configuration,
|
|
759
|
+
requestFactory?: PaymentsApiRequestFactory,
|
|
760
|
+
responseProcessor?: PaymentsApiResponseProcessor
|
|
761
|
+
) {
|
|
762
|
+
this.api = new ObservablePaymentsApi(configuration, requestFactory, responseProcessor);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Fetch a payment
|
|
767
|
+
* @param id The Kanmon payment order UUID.
|
|
768
|
+
*/
|
|
769
|
+
public getPaymentByIdWithHttpInfo(id: string, _options?: Configuration): Promise<HttpInfo<PaymentOrder>> {
|
|
770
|
+
const result = this.api.getPaymentByIdWithHttpInfo(id, _options);
|
|
771
|
+
return result.toPromise();
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Fetch a payment
|
|
776
|
+
* @param id The Kanmon payment order UUID.
|
|
777
|
+
*/
|
|
778
|
+
public getPaymentById(id: string, _options?: Configuration): Promise<PaymentOrder> {
|
|
779
|
+
const result = this.api.getPaymentById(id, _options);
|
|
780
|
+
return result.toPromise();
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Fetch payment schedule for an issued product
|
|
785
|
+
* @param id The Kanmon issued product UUID.
|
|
786
|
+
* @param drawRequestIds A comma delimited list of Kanmon’s unique draw request IDs.
|
|
787
|
+
* @param invoiceIds A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
788
|
+
* @param platformInvoiceIds A comma delimited list of your platform’s unique IDs for invoices.
|
|
789
|
+
* @param direction The direction of the payment.
|
|
790
|
+
* @param status The status of the payment.
|
|
791
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
792
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
793
|
+
*/
|
|
794
|
+
public getPaymentScheduleForAIssuedProductWithHttpInfo(id: string, drawRequestIds?: string, invoiceIds?: string, platformInvoiceIds?: string, direction?: 'DISBURSEMENT' | 'REPAYMENT', status?: PaymentOrderStatus, offset?: number, limit?: number, _options?: Configuration): Promise<HttpInfo<GetPaymentScheduleResponse>> {
|
|
795
|
+
const result = this.api.getPaymentScheduleForAIssuedProductWithHttpInfo(id, drawRequestIds, invoiceIds, platformInvoiceIds, direction, status, offset, limit, _options);
|
|
796
|
+
return result.toPromise();
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Fetch payment schedule for an issued product
|
|
801
|
+
* @param id The Kanmon issued product UUID.
|
|
802
|
+
* @param drawRequestIds A comma delimited list of Kanmon’s unique draw request IDs.
|
|
803
|
+
* @param invoiceIds A comma delimited list of Kanmon’s unique IDs for invoices.
|
|
804
|
+
* @param platformInvoiceIds A comma delimited list of your platform’s unique IDs for invoices.
|
|
805
|
+
* @param direction The direction of the payment.
|
|
806
|
+
* @param status The status of the payment.
|
|
807
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
808
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
809
|
+
*/
|
|
810
|
+
public getPaymentScheduleForAIssuedProduct(id: string, drawRequestIds?: string, invoiceIds?: string, platformInvoiceIds?: string, direction?: 'DISBURSEMENT' | 'REPAYMENT', status?: PaymentOrderStatus, offset?: number, limit?: number, _options?: Configuration): Promise<GetPaymentScheduleResponse> {
|
|
811
|
+
const result = this.api.getPaymentScheduleForAIssuedProduct(id, drawRequestIds, invoiceIds, platformInvoiceIds, direction, status, offset, limit, _options);
|
|
812
|
+
return result.toPromise();
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
import { ObservablePrequalificationsApi } from './ObservableAPI';
|
|
821
|
+
|
|
822
|
+
import { PrequalificationsApiRequestFactory, PrequalificationsApiResponseProcessor} from "../apis/PrequalificationsApi";
|
|
823
|
+
export class PromisePrequalificationsApi {
|
|
824
|
+
private api: ObservablePrequalificationsApi
|
|
825
|
+
|
|
826
|
+
public constructor(
|
|
827
|
+
configuration: Configuration,
|
|
828
|
+
requestFactory?: PrequalificationsApiRequestFactory,
|
|
829
|
+
responseProcessor?: PrequalificationsApiResponseProcessor
|
|
830
|
+
) {
|
|
831
|
+
this.api = new ObservablePrequalificationsApi(configuration, requestFactory, responseProcessor);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Fetch business prequalifications
|
|
836
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
837
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
838
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
839
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
840
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
841
|
+
*/
|
|
842
|
+
public getPrequalifiedBusinessesWithHttpInfo(platformBusinessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<Array<GetPrequalificationsResponse>>> {
|
|
843
|
+
const result = this.api.getPrequalifiedBusinessesWithHttpInfo(platformBusinessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
844
|
+
return result.toPromise();
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Fetch business prequalifications
|
|
849
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique IDs for businesses.
|
|
850
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
851
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
852
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
853
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
854
|
+
*/
|
|
855
|
+
public getPrequalifiedBusinesses(platformBusinessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<Array<GetPrequalificationsResponse>> {
|
|
856
|
+
const result = this.api.getPrequalifiedBusinesses(platformBusinessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
857
|
+
return result.toPromise();
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
import { ObservableUsersApi } from './ObservableAPI';
|
|
866
|
+
|
|
867
|
+
import { UsersApiRequestFactory, UsersApiResponseProcessor} from "../apis/UsersApi";
|
|
868
|
+
export class PromiseUsersApi {
|
|
869
|
+
private api: ObservableUsersApi
|
|
870
|
+
|
|
871
|
+
public constructor(
|
|
872
|
+
configuration: Configuration,
|
|
873
|
+
requestFactory?: UsersApiRequestFactory,
|
|
874
|
+
responseProcessor?: UsersApiResponseProcessor
|
|
875
|
+
) {
|
|
876
|
+
this.api = new ObservableUsersApi(configuration, requestFactory, responseProcessor);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Create a user
|
|
881
|
+
* @param createUserRequestBody
|
|
882
|
+
*/
|
|
883
|
+
public createUserWithHttpInfo(createUserRequestBody: CreateUserRequestBody, _options?: Configuration): Promise<HttpInfo<User>> {
|
|
884
|
+
const result = this.api.createUserWithHttpInfo(createUserRequestBody, _options);
|
|
885
|
+
return result.toPromise();
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Create a user
|
|
890
|
+
* @param createUserRequestBody
|
|
891
|
+
*/
|
|
892
|
+
public createUser(createUserRequestBody: CreateUserRequestBody, _options?: Configuration): Promise<User> {
|
|
893
|
+
const result = this.api.createUser(createUserRequestBody, _options);
|
|
894
|
+
return result.toPromise();
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Fetch a user
|
|
899
|
+
* @param id Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
900
|
+
* @param idType Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
901
|
+
*/
|
|
902
|
+
public getUserWithHttpInfo(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<User>> {
|
|
903
|
+
const result = this.api.getUserWithHttpInfo(id, idType, _options);
|
|
904
|
+
return result.toPromise();
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Fetch a user
|
|
909
|
+
* @param id Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
910
|
+
* @param idType Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
911
|
+
*/
|
|
912
|
+
public getUser(id: string, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<User> {
|
|
913
|
+
const result = this.api.getUser(id, idType, _options);
|
|
914
|
+
return result.toPromise();
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Fetch users
|
|
919
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for users.
|
|
920
|
+
* @param platformUserIds A comma delimited list of your platform’s unique IDs for users.
|
|
921
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique business IDs for users.
|
|
922
|
+
* @param businessIds A comma delimited list of your Kanmon’s unique business IDs for users.
|
|
923
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
924
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
925
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
926
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
927
|
+
*/
|
|
928
|
+
public getUsersWithHttpInfo(ids?: string, platformUserIds?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<HttpInfo<GetUsersResponse>> {
|
|
929
|
+
const result = this.api.getUsersWithHttpInfo(ids, platformUserIds, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
930
|
+
return result.toPromise();
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Fetch users
|
|
935
|
+
* @param ids A comma delimited list of Kanmon’s unique IDs for users.
|
|
936
|
+
* @param platformUserIds A comma delimited list of your platform’s unique IDs for users.
|
|
937
|
+
* @param platformBusinessIds A comma delimited list of your platform’s unique business IDs for users.
|
|
938
|
+
* @param businessIds A comma delimited list of your Kanmon’s unique business IDs for users.
|
|
939
|
+
* @param offset The number of records to skip when performing pagination. Defaults to `0`.
|
|
940
|
+
* @param limit The number of records to limit when performing pagination. Defaults to `100`, which is the max.
|
|
941
|
+
* @param createdAtStart Filter for records where `createdAt` is greater than or equal to this value. ISO 8601 format.
|
|
942
|
+
* @param createdAtEnd Filter for records where `createdAt` is less than or equal to this value. ISO 8601 format.
|
|
943
|
+
*/
|
|
944
|
+
public getUsers(ids?: string, platformUserIds?: string, platformBusinessIds?: string, businessIds?: string, offset?: number, limit?: number, createdAtStart?: string, createdAtEnd?: string, _options?: Configuration): Promise<GetUsersResponse> {
|
|
945
|
+
const result = this.api.getUsers(ids, platformUserIds, platformBusinessIds, businessIds, offset, limit, createdAtStart, createdAtEnd, _options);
|
|
946
|
+
return result.toPromise();
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* 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.
|
|
951
|
+
* Merge users from a source business into a target business
|
|
952
|
+
* @param mergeUsersRequestBody
|
|
953
|
+
*/
|
|
954
|
+
public mergeUserIntoBusinesWithHttpInfo(mergeUsersRequestBody: MergeUsersRequestBody, _options?: Configuration): Promise<HttpInfo<MergeUsersResponseBody>> {
|
|
955
|
+
const result = this.api.mergeUserIntoBusinesWithHttpInfo(mergeUsersRequestBody, _options);
|
|
956
|
+
return result.toPromise();
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* 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.
|
|
961
|
+
* Merge users from a source business into a target business
|
|
962
|
+
* @param mergeUsersRequestBody
|
|
963
|
+
*/
|
|
964
|
+
public mergeUserIntoBusines(mergeUsersRequestBody: MergeUsersRequestBody, _options?: Configuration): Promise<MergeUsersResponseBody> {
|
|
965
|
+
const result = this.api.mergeUserIntoBusines(mergeUsersRequestBody, _options);
|
|
966
|
+
return result.toPromise();
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Update a user
|
|
971
|
+
* @param id Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
972
|
+
* @param updateUserRequestBody
|
|
973
|
+
* @param idType Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
974
|
+
*/
|
|
975
|
+
public updateUserWithHttpInfo(id: string, updateUserRequestBody: UpdateUserRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<HttpInfo<User>> {
|
|
976
|
+
const result = this.api.updateUserWithHttpInfo(id, updateUserRequestBody, idType, _options);
|
|
977
|
+
return result.toPromise();
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Update a user
|
|
982
|
+
* @param id Either the Kanmon user UUID or your platform’s user ID, depending on `idType`.
|
|
983
|
+
* @param updateUserRequestBody
|
|
984
|
+
* @param idType Which ID type to query the user by. Defaults to `KANMON`. Use `PLATFORM` if you want to query by your platform’s ID.
|
|
985
|
+
*/
|
|
986
|
+
public updateUser(id: string, updateUserRequestBody: UpdateUserRequestBody, idType?: 'KANMON' | 'PLATFORM', _options?: Configuration): Promise<User> {
|
|
987
|
+
const result = this.api.updateUser(id, updateUserRequestBody, idType, _options);
|
|
988
|
+
return result.toPromise();
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|