@oatfi/oatfi-sdk-ts 0.12.4 → 0.12.5
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 +9 -0
- package/dist/commonjs/funcs/networkLedgerGetBusiness.d.ts +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.d.ts.map +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.js +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.js.map +1 -1
- package/dist/commonjs/funcs/transactionsCreateBatch.d.ts +20 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.js +132 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/commonjs/funcs/transactionsGetById.d.ts +20 -0
- package/dist/commonjs/funcs/transactionsGetById.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsGetById.js +134 -0
- package/dist/commonjs/funcs/transactionsGetById.js.map +1 -0
- package/dist/commonjs/funcs/transactionsList.d.ts +22 -0
- package/dist/commonjs/funcs/transactionsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsList.js +163 -0
- package/dist/commonjs/funcs/transactionsList.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/businessdataresponsedto.d.ts +51 -0
- package/dist/commonjs/models/businessdataresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/businessdataresponsedto.js +75 -0
- package/dist/commonjs/models/businessdataresponsedto.js.map +1 -0
- package/dist/commonjs/models/businessresponsedto.d.ts +142 -21
- package/dist/commonjs/models/businessresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/businessresponsedto.js +76 -13
- package/dist/commonjs/models/businessresponsedto.js.map +1 -1
- package/dist/commonjs/models/createtransactionsdto.d.ts +26 -0
- package/dist/commonjs/models/createtransactionsdto.d.ts.map +1 -0
- package/dist/commonjs/models/createtransactionsdto.js +52 -0
- package/dist/commonjs/models/createtransactionsdto.js.map +1 -0
- package/dist/commonjs/models/increasedatadto.d.ts +21 -0
- package/dist/commonjs/models/increasedatadto.d.ts.map +1 -0
- package/dist/commonjs/models/increasedatadto.js +60 -0
- package/dist/commonjs/models/increasedatadto.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +11 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +11 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/lmsloantransactiontype.d.ts +33 -0
- package/dist/commonjs/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/commonjs/models/lmsloantransactiontype.js +67 -0
- package/dist/commonjs/models/lmsloantransactiontype.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/transactionscontrollercreate.d.ts +18 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.js +57 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.js.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.d.ts +44 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.js +73 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.js.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.d.ts +15 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.js +49 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.js.map +1 -0
- package/dist/commonjs/models/paymentstatus.d.ts +22 -0
- package/dist/commonjs/models/paymentstatus.d.ts.map +1 -0
- package/dist/commonjs/models/paymentstatus.js +56 -0
- package/dist/commonjs/models/paymentstatus.js.map +1 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.d.ts +26 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.js +60 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.js.map +1 -0
- package/dist/commonjs/models/storedtransactionresponsedto.d.ts +48 -0
- package/dist/commonjs/models/storedtransactionresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/storedtransactionresponsedto.js +68 -0
- package/dist/commonjs/models/storedtransactionresponsedto.js.map +1 -0
- package/dist/commonjs/models/transactiondirection.d.ts +12 -0
- package/dist/commonjs/models/transactiondirection.d.ts.map +1 -0
- package/dist/commonjs/models/transactiondirection.js +49 -0
- package/dist/commonjs/models/transactiondirection.js.map +1 -0
- package/dist/commonjs/models/transactionitemdto.d.ts +36 -0
- package/dist/commonjs/models/transactionitemdto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionitemdto.js +54 -0
- package/dist/commonjs/models/transactionitemdto.js.map +1 -0
- package/dist/commonjs/models/transactionloandto.d.ts +25 -0
- package/dist/commonjs/models/transactionloandto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionloandto.js +59 -0
- package/dist/commonjs/models/transactionloandto.js.map +1 -0
- package/dist/commonjs/models/transactionresponsedto.d.ts +56 -0
- package/dist/commonjs/models/transactionresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionresponsedto.js +74 -0
- package/dist/commonjs/models/transactionresponsedto.js.map +1 -0
- package/dist/commonjs/sdk/networkledger.d.ts +1 -1
- package/dist/commonjs/sdk/networkledger.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/transactions.d.ts +30 -0
- package/dist/commonjs/sdk/transactions.d.ts.map +1 -0
- package/dist/commonjs/sdk/transactions.js +43 -0
- package/dist/commonjs/sdk/transactions.js.map +1 -0
- package/dist/esm/funcs/networkLedgerGetBusiness.d.ts +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.d.ts.map +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.js +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.js.map +1 -1
- package/dist/esm/funcs/transactionsCreateBatch.d.ts +20 -0
- package/dist/esm/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsCreateBatch.js +96 -0
- package/dist/esm/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/esm/funcs/transactionsGetById.d.ts +20 -0
- package/dist/esm/funcs/transactionsGetById.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsGetById.js +98 -0
- package/dist/esm/funcs/transactionsGetById.js.map +1 -0
- package/dist/esm/funcs/transactionsList.d.ts +22 -0
- package/dist/esm/funcs/transactionsList.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsList.js +127 -0
- package/dist/esm/funcs/transactionsList.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/businessdataresponsedto.d.ts +51 -0
- package/dist/esm/models/businessdataresponsedto.d.ts.map +1 -0
- package/dist/esm/models/businessdataresponsedto.js +38 -0
- package/dist/esm/models/businessdataresponsedto.js.map +1 -0
- package/dist/esm/models/businessresponsedto.d.ts +142 -21
- package/dist/esm/models/businessresponsedto.d.ts.map +1 -1
- package/dist/esm/models/businessresponsedto.js +75 -12
- package/dist/esm/models/businessresponsedto.js.map +1 -1
- package/dist/esm/models/createtransactionsdto.d.ts +26 -0
- package/dist/esm/models/createtransactionsdto.d.ts.map +1 -0
- package/dist/esm/models/createtransactionsdto.js +15 -0
- package/dist/esm/models/createtransactionsdto.js.map +1 -0
- package/dist/esm/models/increasedatadto.d.ts +21 -0
- package/dist/esm/models/increasedatadto.d.ts.map +1 -0
- package/dist/esm/models/increasedatadto.js +23 -0
- package/dist/esm/models/increasedatadto.js.map +1 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/lmsloantransactiontype.d.ts +33 -0
- package/dist/esm/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/esm/models/lmsloantransactiontype.js +31 -0
- package/dist/esm/models/lmsloantransactiontype.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/transactionscontrollercreate.d.ts +18 -0
- package/dist/esm/models/operations/transactionscontrollercreate.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollercreate.js +20 -0
- package/dist/esm/models/operations/transactionscontrollercreate.js.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.d.ts +44 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.js +35 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.js.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.d.ts +15 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.js +12 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.js.map +1 -0
- package/dist/esm/models/paymentstatus.d.ts +22 -0
- package/dist/esm/models/paymentstatus.d.ts.map +1 -0
- package/dist/esm/models/paymentstatus.js +20 -0
- package/dist/esm/models/paymentstatus.js.map +1 -0
- package/dist/esm/models/storedtransactionlistresponsedto.d.ts +26 -0
- package/dist/esm/models/storedtransactionlistresponsedto.d.ts.map +1 -0
- package/dist/esm/models/storedtransactionlistresponsedto.js +23 -0
- package/dist/esm/models/storedtransactionlistresponsedto.js.map +1 -0
- package/dist/esm/models/storedtransactionresponsedto.d.ts +48 -0
- package/dist/esm/models/storedtransactionresponsedto.d.ts.map +1 -0
- package/dist/esm/models/storedtransactionresponsedto.js +31 -0
- package/dist/esm/models/storedtransactionresponsedto.js.map +1 -0
- package/dist/esm/models/transactiondirection.d.ts +12 -0
- package/dist/esm/models/transactiondirection.d.ts.map +1 -0
- package/dist/esm/models/transactiondirection.js +13 -0
- package/dist/esm/models/transactiondirection.js.map +1 -0
- package/dist/esm/models/transactionitemdto.d.ts +36 -0
- package/dist/esm/models/transactionitemdto.d.ts.map +1 -0
- package/dist/esm/models/transactionitemdto.js +17 -0
- package/dist/esm/models/transactionitemdto.js.map +1 -0
- package/dist/esm/models/transactionloandto.d.ts +25 -0
- package/dist/esm/models/transactionloandto.d.ts.map +1 -0
- package/dist/esm/models/transactionloandto.js +22 -0
- package/dist/esm/models/transactionloandto.js.map +1 -0
- package/dist/esm/models/transactionresponsedto.d.ts +56 -0
- package/dist/esm/models/transactionresponsedto.d.ts.map +1 -0
- package/dist/esm/models/transactionresponsedto.js +37 -0
- package/dist/esm/models/transactionresponsedto.js.map +1 -0
- package/dist/esm/sdk/networkledger.d.ts +1 -1
- package/dist/esm/sdk/networkledger.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/transactions.d.ts +30 -0
- package/dist/esm/sdk/transactions.d.ts.map +1 -0
- package/dist/esm/sdk/transactions.js +39 -0
- package/dist/esm/sdk/transactions.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/networkLedgerGetBusiness.ts +4 -4
- package/src/funcs/transactionsCreateBatch.ts +186 -0
- package/src/funcs/transactionsGetById.ts +184 -0
- package/src/funcs/transactionsList.ts +255 -0
- package/src/lib/config.ts +2 -2
- package/src/models/businessdataresponsedto.ts +94 -0
- package/src/models/businessresponsedto.ts +198 -31
- package/src/models/createtransactionsdto.ts +51 -0
- package/src/models/increasedatadto.ts +52 -0
- package/src/models/index.ts +11 -0
- package/src/models/lmsloantransactiontype.ts +40 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/transactionscontrollercreate.ts +46 -0
- package/src/models/operations/transactionscontrollerfindall.ts +98 -0
- package/src/models/operations/transactionscontrollerfindone.ts +36 -0
- package/src/models/paymentstatus.ts +29 -0
- package/src/models/storedtransactionlistresponsedto.ts +59 -0
- package/src/models/storedtransactionresponsedto.ts +89 -0
- package/src/models/transactiondirection.ts +21 -0
- package/src/models/transactionitemdto.ts +62 -0
- package/src/models/transactionloandto.ts +55 -0
- package/src/models/transactionresponsedto.ts +104 -0
- package/src/sdk/networkledger.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transactions.ts +70 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
5
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as models from "../models/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Get a transaction by ID
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Retrieves a transaction and its associated loans by the payment rail transfer id.
|
|
19
|
+
*
|
|
20
|
+
* If set, this operation will use {@link Security.bearer} from the global security.
|
|
21
|
+
*/
|
|
22
|
+
export function transactionsGetById(client, request, options) {
|
|
23
|
+
return new APIPromise($do(client, request, options));
|
|
24
|
+
}
|
|
25
|
+
async function $do(client, request, options) {
|
|
26
|
+
const parsed = safeParse(request, (value) => operations.TransactionsControllerFindOneRequest$outboundSchema.parse(value), "Input validation failed");
|
|
27
|
+
if (!parsed.ok) {
|
|
28
|
+
return [parsed, { status: "invalid" }];
|
|
29
|
+
}
|
|
30
|
+
const payload = parsed.value;
|
|
31
|
+
const body = null;
|
|
32
|
+
const pathParams = {
|
|
33
|
+
transactionId: encodeSimple("transactionId", payload.transactionId, {
|
|
34
|
+
explode: false,
|
|
35
|
+
charEncoding: "percent",
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
const path = pathToFunc("/v3/transactions/{transactionId}")(pathParams);
|
|
39
|
+
const headers = new Headers(compactMap({
|
|
40
|
+
Accept: "application/json",
|
|
41
|
+
}));
|
|
42
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
43
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
44
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
45
|
+
const context = {
|
|
46
|
+
options: client._options,
|
|
47
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48
|
+
operationID: "TransactionsController_findOne",
|
|
49
|
+
oAuth2Scopes: null,
|
|
50
|
+
resolvedSecurity: requestSecurity,
|
|
51
|
+
securitySource: client._options.bearer,
|
|
52
|
+
retryConfig: options?.retries
|
|
53
|
+
|| client._options.retryConfig
|
|
54
|
+
|| {
|
|
55
|
+
strategy: "backoff",
|
|
56
|
+
backoff: {
|
|
57
|
+
initialInterval: 500,
|
|
58
|
+
maxInterval: 60000,
|
|
59
|
+
exponent: 1.5,
|
|
60
|
+
maxElapsedTime: 120000,
|
|
61
|
+
},
|
|
62
|
+
retryConnectionErrors: true,
|
|
63
|
+
}
|
|
64
|
+
|| { strategy: "none" },
|
|
65
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
66
|
+
};
|
|
67
|
+
const requestRes = client._createRequest(context, {
|
|
68
|
+
security: requestSecurity,
|
|
69
|
+
method: "GET",
|
|
70
|
+
baseURL: options?.serverURL,
|
|
71
|
+
path: path,
|
|
72
|
+
headers: headers,
|
|
73
|
+
body: body,
|
|
74
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
75
|
+
userAgent: client._options.userAgent,
|
|
76
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
77
|
+
}, options);
|
|
78
|
+
if (!requestRes.ok) {
|
|
79
|
+
return [requestRes, { status: "invalid" }];
|
|
80
|
+
}
|
|
81
|
+
const req = requestRes.value;
|
|
82
|
+
const doResult = await client._do(req, {
|
|
83
|
+
context,
|
|
84
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
85
|
+
retryConfig: context.retryConfig,
|
|
86
|
+
retryCodes: context.retryCodes,
|
|
87
|
+
});
|
|
88
|
+
if (!doResult.ok) {
|
|
89
|
+
return [doResult, { status: "request-error", request: req }];
|
|
90
|
+
}
|
|
91
|
+
const response = doResult.value;
|
|
92
|
+
const [result] = await M.match(M.json(200, models.TransactionResponseDto$inboundSchema), M.fail([400, 403, 404, 429, "4XX"]), M.fail("5XX"))(response, req);
|
|
93
|
+
if (!result.ok) {
|
|
94
|
+
return [result, { status: "complete", request: req, response }];
|
|
95
|
+
}
|
|
96
|
+
return [result, { status: "complete", request: req, response }];
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=transactionsGetById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionsGetById.js","sourceRoot":"","sources":["../../../src/funcs/transactionsGetById.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAA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CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OatFiSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import { OatFiSDKError } from "../models/errors/oatfisdkerror.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
import { PageIterator } from "../types/operations.js";
|
|
11
|
+
/**
|
|
12
|
+
* List stored transactions
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Finance-only. Lists partner-uploaded transactions for a business and loan program.
|
|
16
|
+
*
|
|
17
|
+
* If set, this operation will use {@link Security.bearer} from the global security.
|
|
18
|
+
*/
|
|
19
|
+
export declare function transactionsList(client: OatFiSDKCore, request: operations.TransactionsControllerFindAllRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.TransactionsControllerFindAllResponse, OatFiSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
20
|
+
cursor: string;
|
|
21
|
+
}>>;
|
|
22
|
+
//# sourceMappingURL=transactionsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionsList.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionsList.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,qCAAqC,EAC9C,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,EACD;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CACnB,CACF,CAMA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { query as jpQuery } from "jsonpath-rfc9535";
|
|
5
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
15
|
+
/**
|
|
16
|
+
* List stored transactions
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Finance-only. Lists partner-uploaded transactions for a business and loan program.
|
|
20
|
+
*
|
|
21
|
+
* If set, this operation will use {@link Security.bearer} from the global security.
|
|
22
|
+
*/
|
|
23
|
+
export function transactionsList(client, request, options) {
|
|
24
|
+
return new APIPromise($do(client, request, options));
|
|
25
|
+
}
|
|
26
|
+
async function $do(client, request, options) {
|
|
27
|
+
const parsed = safeParse(request, (value) => operations.TransactionsControllerFindAllRequest$outboundSchema.parse(value), "Input validation failed");
|
|
28
|
+
if (!parsed.ok) {
|
|
29
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
30
|
+
}
|
|
31
|
+
const payload = parsed.value;
|
|
32
|
+
const body = null;
|
|
33
|
+
const path = pathToFunc("/v3/transactions")();
|
|
34
|
+
const query = encodeFormQuery({
|
|
35
|
+
"business": payload.business,
|
|
36
|
+
"ending_before": payload.ending_before,
|
|
37
|
+
"limit": payload.limit,
|
|
38
|
+
"program": payload.program,
|
|
39
|
+
"starting_after": payload.starting_after,
|
|
40
|
+
});
|
|
41
|
+
const headers = new Headers(compactMap({
|
|
42
|
+
Accept: "application/json",
|
|
43
|
+
}));
|
|
44
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
45
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
46
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
47
|
+
const context = {
|
|
48
|
+
options: client._options,
|
|
49
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
50
|
+
operationID: "TransactionsController_findAll",
|
|
51
|
+
oAuth2Scopes: null,
|
|
52
|
+
resolvedSecurity: requestSecurity,
|
|
53
|
+
securitySource: client._options.bearer,
|
|
54
|
+
retryConfig: options?.retries
|
|
55
|
+
|| client._options.retryConfig
|
|
56
|
+
|| {
|
|
57
|
+
strategy: "backoff",
|
|
58
|
+
backoff: {
|
|
59
|
+
initialInterval: 500,
|
|
60
|
+
maxInterval: 60000,
|
|
61
|
+
exponent: 1.5,
|
|
62
|
+
maxElapsedTime: 120000,
|
|
63
|
+
},
|
|
64
|
+
retryConnectionErrors: true,
|
|
65
|
+
}
|
|
66
|
+
|| { strategy: "none" },
|
|
67
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
68
|
+
};
|
|
69
|
+
const requestRes = client._createRequest(context, {
|
|
70
|
+
security: requestSecurity,
|
|
71
|
+
method: "GET",
|
|
72
|
+
baseURL: options?.serverURL,
|
|
73
|
+
path: path,
|
|
74
|
+
headers: headers,
|
|
75
|
+
query: query,
|
|
76
|
+
body: body,
|
|
77
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
78
|
+
userAgent: client._options.userAgent,
|
|
79
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
80
|
+
}, options);
|
|
81
|
+
if (!requestRes.ok) {
|
|
82
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const req = requestRes.value;
|
|
85
|
+
const doResult = await client._do(req, {
|
|
86
|
+
context,
|
|
87
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
88
|
+
retryConfig: context.retryConfig,
|
|
89
|
+
retryCodes: context.retryCodes,
|
|
90
|
+
});
|
|
91
|
+
if (!doResult.ok) {
|
|
92
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
93
|
+
}
|
|
94
|
+
const response = doResult.value;
|
|
95
|
+
const responseFields = {
|
|
96
|
+
HttpMeta: { Response: response, Request: req },
|
|
97
|
+
};
|
|
98
|
+
const [result, raw] = await M.match(M.json(200, operations.TransactionsControllerFindAllResponse$inboundSchema, { key: "Result" }), M.fail([400, 403, 429, "4XX"]), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99
|
+
if (!result.ok) {
|
|
100
|
+
return [haltIterator(result), {
|
|
101
|
+
status: "complete",
|
|
102
|
+
request: req,
|
|
103
|
+
response,
|
|
104
|
+
}];
|
|
105
|
+
}
|
|
106
|
+
const nextFunc = (responseData) => {
|
|
107
|
+
const nextCursor = jpQuery(responseData, "$.data[-1].id")[0];
|
|
108
|
+
if (typeof nextCursor !== "string") {
|
|
109
|
+
return { next: () => null };
|
|
110
|
+
}
|
|
111
|
+
if (nextCursor.trim() === "") {
|
|
112
|
+
return { next: () => null };
|
|
113
|
+
}
|
|
114
|
+
const nextVal = () => transactionsList(client, {
|
|
115
|
+
...request,
|
|
116
|
+
startingAfter: nextCursor,
|
|
117
|
+
}, options);
|
|
118
|
+
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
119
|
+
};
|
|
120
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
121
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
122
|
+
status: "complete",
|
|
123
|
+
request: req,
|
|
124
|
+
response,
|
|
125
|
+
}];
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=transactionsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionsList.js","sourceRoot":"","sources":["../../../src/funcs/transactionsList.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAa,KAAK,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;A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AAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5D,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC9D,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,GAAG;YACZ,QAAQ;SACT,CAAC,CAAC;AACL,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "3.0.0";
|
|
34
|
-
readonly sdkVersion: "0.12.
|
|
34
|
+
readonly sdkVersion: "0.12.5";
|
|
35
35
|
readonly genVersion: "2.912.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.5 2.912.1 3.0.0 @oatfi/oatfi-sdk-ts";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -35,8 +35,8 @@ export function serverURLFromOptions(options) {
|
|
|
35
35
|
export const SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "3.0.0",
|
|
38
|
-
sdkVersion: "0.12.
|
|
38
|
+
sdkVersion: "0.12.5",
|
|
39
39
|
genVersion: "2.912.1",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.12.5 2.912.1 3.0.0 @oatfi/oatfi-sdk-ts",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BusinessDataResponseDtoStatus: {
|
|
9
|
+
readonly Active: "active";
|
|
10
|
+
readonly Inactive: "inactive";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
14
|
+
*/
|
|
15
|
+
export type BusinessDataResponseDtoStatus = ClosedEnum<typeof BusinessDataResponseDtoStatus>;
|
|
16
|
+
export type BusinessDataResponseDto = {
|
|
17
|
+
/**
|
|
18
|
+
* Partner-assigned external id (the path key).
|
|
19
|
+
*/
|
|
20
|
+
externalId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
23
|
+
*/
|
|
24
|
+
status: BusinessDataResponseDtoStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Legal business name.
|
|
27
|
+
*/
|
|
28
|
+
name?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Tax id (e.g. EIN).
|
|
31
|
+
*/
|
|
32
|
+
taxId?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Legal entity type.
|
|
35
|
+
*/
|
|
36
|
+
businessEntityType?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Unix ms when the lender created its record.
|
|
39
|
+
*/
|
|
40
|
+
createdAt?: number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Unix ms of the last update.
|
|
43
|
+
*/
|
|
44
|
+
updatedAt?: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const BusinessDataResponseDtoStatus$inboundSchema: z.ZodNativeEnum<typeof BusinessDataResponseDtoStatus>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const BusinessDataResponseDto$inboundSchema: z.ZodType<BusinessDataResponseDto, z.ZodTypeDef, unknown>;
|
|
50
|
+
export declare function businessDataResponseDtoFromJSON(jsonString: string): SafeParseResult<BusinessDataResponseDto, SDKValidationError>;
|
|
51
|
+
//# sourceMappingURL=businessdataresponsedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessdataresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/businessdataresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,6BAA6B,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,aAAa,CACvE,OAAO,6BAA6B,CACS,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/**
|
|
9
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
10
|
+
*/
|
|
11
|
+
export const BusinessDataResponseDtoStatus = {
|
|
12
|
+
Active: "active",
|
|
13
|
+
Inactive: "inactive",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const BusinessDataResponseDtoStatus$inboundSchema = z.nativeEnum(BusinessDataResponseDtoStatus);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const BusinessDataResponseDto$inboundSchema = z.object({
|
|
19
|
+
external_id: types.string(),
|
|
20
|
+
status: BusinessDataResponseDtoStatus$inboundSchema,
|
|
21
|
+
name: z.nullable(types.string()).optional(),
|
|
22
|
+
tax_id: z.nullable(types.string()).optional(),
|
|
23
|
+
business_entity_type: z.nullable(types.string()).optional(),
|
|
24
|
+
created_at: types.optional(types.number()),
|
|
25
|
+
updated_at: types.optional(types.number()),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"external_id": "externalId",
|
|
29
|
+
"tax_id": "taxId",
|
|
30
|
+
"business_entity_type": "businessEntityType",
|
|
31
|
+
"created_at": "createdAt",
|
|
32
|
+
"updated_at": "updatedAt",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function businessDataResponseDtoFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => BusinessDataResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessDataResponseDto' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=businessdataresponsedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessdataresponsedto.js","sourceRoot":"","sources":["../../../src/models/businessdataresponsedto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAuCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAEhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE;IAC3B,MAAM,EAAE,2CAA2C;IACnD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,QAAQ,EAAE,OAAO;QACjB,sBAAsB,EAAE,oBAAoB;QAC5C,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,50 +1,171 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { AddressDto } from "./addressdto.js";
|
|
4
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
import { IncreaseDataDto } from "./increasedatadto.js";
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
8
|
+
* Current status of the business account
|
|
7
9
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
readonly Active: "
|
|
10
|
-
readonly
|
|
10
|
+
export declare const AccountStatus: {
|
|
11
|
+
readonly Active: "ACTIVE";
|
|
12
|
+
readonly Frozen: "FROZEN";
|
|
13
|
+
readonly Inactive: "INACTIVE";
|
|
14
|
+
readonly Closed: "CLOSED";
|
|
15
|
+
readonly BlockList: "BLOCK_LIST";
|
|
11
16
|
};
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
18
|
+
* Current status of the business account
|
|
14
19
|
*/
|
|
15
|
-
export type
|
|
20
|
+
export type AccountStatus = ClosedEnum<typeof AccountStatus>;
|
|
21
|
+
/**
|
|
22
|
+
* Current sub-status of the business account
|
|
23
|
+
*/
|
|
24
|
+
export declare const AccountSubStatus: {
|
|
25
|
+
readonly Standard: "STANDARD";
|
|
26
|
+
readonly Manual: "MANUAL";
|
|
27
|
+
readonly ManualLock: "MANUAL_LOCK";
|
|
28
|
+
readonly Dq: "DQ";
|
|
29
|
+
readonly WaiveDrawRules: "WAIVE_DRAW_RULES";
|
|
30
|
+
readonly Unit: "UNIT";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Current sub-status of the business account
|
|
34
|
+
*/
|
|
35
|
+
export type AccountSubStatus = ClosedEnum<typeof AccountSubStatus>;
|
|
36
|
+
/**
|
|
37
|
+
* Source of the requested credit limit.
|
|
38
|
+
*/
|
|
39
|
+
export declare const BusinessResponseDtoRequestedLimitSource: {
|
|
40
|
+
readonly Partner: "Partner";
|
|
41
|
+
readonly Customer: "Customer";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Source of the requested credit limit.
|
|
45
|
+
*/
|
|
46
|
+
export type BusinessResponseDtoRequestedLimitSource = ClosedEnum<typeof BusinessResponseDtoRequestedLimitSource>;
|
|
16
47
|
export type BusinessResponseDto = {
|
|
17
48
|
/**
|
|
18
|
-
*
|
|
49
|
+
* Unique identifier for the business.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* String representing the object's type. Always 'business'.
|
|
54
|
+
*/
|
|
55
|
+
object: string;
|
|
56
|
+
/**
|
|
57
|
+
* External identifier for the business.
|
|
58
|
+
*/
|
|
59
|
+
externalId?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Identifier of the platform this business is associated with.
|
|
62
|
+
*/
|
|
63
|
+
platform?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* List of financial account IDs associated with this business.
|
|
66
|
+
*/
|
|
67
|
+
financialAccounts?: Array<string> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* List of Plaid token IDs associated with this business.
|
|
70
|
+
*/
|
|
71
|
+
plaidTokens?: Array<string> | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* List of person IDs associated with this business.
|
|
74
|
+
*/
|
|
75
|
+
persons?: Array<string> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Legal name of the business.
|
|
78
|
+
*/
|
|
79
|
+
name?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Doing Business As (DBA) name.
|
|
82
|
+
*/
|
|
83
|
+
dbaName?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Tax ID (e.g., EIN for US businesses).
|
|
86
|
+
*/
|
|
87
|
+
taxId?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Business address.
|
|
90
|
+
*/
|
|
91
|
+
address?: AddressDto | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Contact person's first name. Populated from the primary user's first name.
|
|
94
|
+
*/
|
|
95
|
+
contactFirstName?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Contact person's last name. Populated from the primary user's last name.
|
|
19
98
|
*/
|
|
20
|
-
|
|
99
|
+
contactLastName?: string | undefined;
|
|
21
100
|
/**
|
|
22
|
-
*
|
|
101
|
+
* Contact person's email address. Populated from the primary user's email.
|
|
23
102
|
*/
|
|
24
|
-
|
|
103
|
+
contactEmail?: string | undefined;
|
|
25
104
|
/**
|
|
26
|
-
*
|
|
105
|
+
* Contact person's phone number.
|
|
27
106
|
*/
|
|
28
|
-
|
|
107
|
+
contactPhone?: string | undefined;
|
|
29
108
|
/**
|
|
30
|
-
*
|
|
109
|
+
* Month the business started (MM).
|
|
31
110
|
*/
|
|
32
|
-
|
|
111
|
+
businessStartDateMonth?: string | undefined;
|
|
33
112
|
/**
|
|
34
|
-
*
|
|
113
|
+
* Year the business started (YYYY).
|
|
35
114
|
*/
|
|
36
|
-
|
|
115
|
+
businessStartDateYear?: string | undefined;
|
|
37
116
|
/**
|
|
38
|
-
*
|
|
117
|
+
* Type of business entity (e.g., corporation, llc).
|
|
39
118
|
*/
|
|
40
|
-
|
|
119
|
+
businessEntityType?: string | undefined;
|
|
41
120
|
/**
|
|
42
|
-
*
|
|
121
|
+
* Current status of the business account
|
|
43
122
|
*/
|
|
44
|
-
|
|
123
|
+
accountStatus?: AccountStatus | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Current sub-status of the business account
|
|
126
|
+
*/
|
|
127
|
+
accountSubStatus?: AccountSubStatus | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Timestamp of when the business was created.
|
|
130
|
+
*/
|
|
131
|
+
createdAt?: Date | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Timestamp of when the business was last updated.
|
|
134
|
+
*/
|
|
135
|
+
updatedAt?: Date | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* List of user IDs associated with this business.
|
|
138
|
+
*/
|
|
139
|
+
users?: Array<string> | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* ID of the primary user associated with this business.
|
|
142
|
+
*/
|
|
143
|
+
primaryUser?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Source of the requested credit limit.
|
|
146
|
+
*/
|
|
147
|
+
requestedLimitSource?: BusinessResponseDtoRequestedLimitSource | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Requested credit limit amount.
|
|
150
|
+
*/
|
|
151
|
+
requestedCreditLimit?: number | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* A set of key-value pairs that can be used to store additional information about the object.
|
|
154
|
+
*/
|
|
155
|
+
metadata?: {
|
|
156
|
+
[k: string]: any;
|
|
157
|
+
} | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Increase account data associated with this business.
|
|
160
|
+
*/
|
|
161
|
+
increase?: IncreaseDataDto | undefined;
|
|
45
162
|
};
|
|
46
163
|
/** @internal */
|
|
47
|
-
export declare const
|
|
164
|
+
export declare const AccountStatus$inboundSchema: z.ZodNativeEnum<typeof AccountStatus>;
|
|
165
|
+
/** @internal */
|
|
166
|
+
export declare const AccountSubStatus$inboundSchema: z.ZodNativeEnum<typeof AccountSubStatus>;
|
|
167
|
+
/** @internal */
|
|
168
|
+
export declare const BusinessResponseDtoRequestedLimitSource$inboundSchema: z.ZodNativeEnum<typeof BusinessResponseDtoRequestedLimitSource>;
|
|
48
169
|
/** @internal */
|
|
49
170
|
export declare const BusinessResponseDto$inboundSchema: z.ZodType<BusinessResponseDto, z.ZodTypeDef, unknown>;
|
|
50
171
|
export declare function businessResponseDtoFromJSON(jsonString: string): SafeParseResult<BusinessResponseDto, SDKValidationError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/businessresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"businessresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/businessresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,kBAAkB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