@oatfi/oatfi-sdk-ts 0.11.55 → 0.11.56
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 +4 -0
- package/dist/commonjs/funcs/applicationFilesList.js +1 -0
- package/dist/commonjs/funcs/applicationFilesList.js.map +1 -1
- package/dist/commonjs/funcs/applicationFilesUpload.js +7 -0
- package/dist/commonjs/funcs/applicationFilesUpload.js.map +1 -1
- package/dist/commonjs/funcs/businessFilesList.js +1 -0
- package/dist/commonjs/funcs/businessFilesList.js.map +1 -1
- package/dist/commonjs/funcs/businessFilesUpload.js +7 -0
- package/dist/commonjs/funcs/businessFilesUpload.js.map +1 -1
- package/dist/commonjs/funcs/businessesGetAccountHolderInformation.d.ts +18 -0
- package/dist/commonjs/funcs/businessesGetAccountHolderInformation.d.ts.map +1 -0
- package/dist/commonjs/funcs/businessesGetAccountHolderInformation.js +138 -0
- package/dist/commonjs/funcs/businessesGetAccountHolderInformation.js.map +1 -0
- package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.d.ts +18 -0
- package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.d.ts.map +1 -0
- package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.js +138 -0
- package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.js.map +1 -0
- package/dist/commonjs/funcs/filesList.js +1 -0
- package/dist/commonjs/funcs/filesList.js.map +1 -1
- package/dist/commonjs/funcs/filesUpload.js +7 -0
- package/dist/commonjs/funcs/filesUpload.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/accountholdervirtualaccountitemdto.d.ts +30 -0
- package/dist/commonjs/models/accountholdervirtualaccountitemdto.d.ts.map +1 -0
- package/dist/commonjs/models/accountholdervirtualaccountitemdto.js +64 -0
- package/dist/commonjs/models/accountholdervirtualaccountitemdto.js.map +1 -0
- package/dist/commonjs/models/createoriginationofferdto.d.ts +0 -6
- package/dist/commonjs/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/commonjs/models/createoriginationofferdto.js +0 -3
- package/dist/commonjs/models/createoriginationofferdto.js.map +1 -1
- package/dist/commonjs/models/createpaymentintentdto.d.ts +5 -0
- package/dist/commonjs/models/createpaymentintentdto.d.ts.map +1 -1
- package/dist/commonjs/models/createpaymentintentdto.js +2 -0
- package/dist/commonjs/models/createpaymentintentdto.js.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.d.ts +5 -0
- package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.js +4 -0
- package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
- package/dist/commonjs/models/financialaccountverificationdto.d.ts +1 -0
- package/dist/commonjs/models/financialaccountverificationdto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountverificationdto.js +1 -0
- package/dist/commonjs/models/financialaccountverificationdto.js.map +1 -1
- package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts +1 -1
- package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountverificationresponsedto.js +1 -1
- package/dist/commonjs/models/financialaccountverificationresponsedto.js.map +1 -1
- package/dist/commonjs/models/getaccountholderinformationresponsedto.d.ts +26 -0
- package/dist/commonjs/models/getaccountholderinformationresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/getaccountholderinformationresponsedto.js +62 -0
- package/dist/commonjs/models/getaccountholderinformationresponsedto.js.map +1 -0
- package/dist/commonjs/models/getvirtualaccountinformationresponsedto.d.ts +22 -0
- package/dist/commonjs/models/getvirtualaccountinformationresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/getvirtualaccountinformationresponsedto.js +60 -0
- package/dist/commonjs/models/getvirtualaccountinformationresponsedto.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +5 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/lockboxaddressdto.d.ts +33 -0
- package/dist/commonjs/models/lockboxaddressdto.d.ts.map +1 -0
- package/dist/commonjs/models/{paymentintentdto.js → lockboxaddressdto.js} +18 -7
- package/dist/commonjs/models/lockboxaddressdto.js.map +1 -0
- package/dist/commonjs/models/operations/applicationfilescontrollerfindall.d.ts +5 -0
- package/dist/commonjs/models/operations/applicationfilescontrollerfindall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/applicationfilescontrollerfindall.js +1 -0
- package/dist/commonjs/models/operations/applicationfilescontrollerfindall.js.map +1 -1
- package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.d.ts +30 -0
- package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.d.ts.map +1 -0
- package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.js +59 -0
- package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.js.map +1 -0
- package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.d.ts +30 -0
- package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.d.ts.map +1 -0
- package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.js +60 -0
- package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.js.map +1 -0
- package/dist/commonjs/models/operations/businessfilescontrollerfindall.d.ts +5 -0
- package/dist/commonjs/models/operations/businessfilescontrollerfindall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/businessfilescontrollerfindall.js +1 -0
- package/dist/commonjs/models/operations/businessfilescontrollerfindall.js.map +1 -1
- package/dist/commonjs/models/operations/filescontrollerfindall.d.ts +5 -0
- package/dist/commonjs/models/operations/filescontrollerfindall.d.ts.map +1 -1
- package/dist/commonjs/models/operations/filescontrollerfindall.js +1 -0
- package/dist/commonjs/models/operations/filescontrollerfindall.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.d.ts +4 -0
- package/dist/commonjs/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.js +2 -0
- package/dist/commonjs/models/paymentintentresponsedto.js.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.d.ts +5 -0
- package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.js +4 -0
- package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
- package/dist/commonjs/models/updatefinancialaccountdto.d.ts +0 -6
- package/dist/commonjs/models/updatefinancialaccountdto.d.ts.map +1 -1
- package/dist/commonjs/models/updatefinancialaccountdto.js +0 -2
- package/dist/commonjs/models/updatefinancialaccountdto.js.map +1 -1
- package/dist/commonjs/models/updatepaymentintentdto.d.ts +5 -0
- package/dist/commonjs/models/updatepaymentintentdto.d.ts.map +1 -1
- package/dist/commonjs/models/updatepaymentintentdto.js +2 -0
- package/dist/commonjs/models/updatepaymentintentdto.js.map +1 -1
- package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts +0 -6
- package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
- package/dist/commonjs/models/updateplatformfinancialaccountdto.js +0 -2
- package/dist/commonjs/models/updateplatformfinancialaccountdto.js.map +1 -1
- package/dist/commonjs/models/virtualaccountinfoitemdto.d.ts +34 -0
- package/dist/commonjs/models/virtualaccountinfoitemdto.d.ts.map +1 -0
- package/dist/commonjs/models/virtualaccountinfoitemdto.js +66 -0
- package/dist/commonjs/models/virtualaccountinfoitemdto.js.map +1 -0
- package/dist/commonjs/sdk/businesses.d.ts +14 -0
- package/dist/commonjs/sdk/businesses.d.ts.map +1 -1
- package/dist/commonjs/sdk/businesses.js +20 -0
- package/dist/commonjs/sdk/businesses.js.map +1 -1
- package/dist/esm/funcs/applicationFilesList.js +1 -0
- package/dist/esm/funcs/applicationFilesList.js.map +1 -1
- package/dist/esm/funcs/applicationFilesUpload.js +7 -0
- package/dist/esm/funcs/applicationFilesUpload.js.map +1 -1
- package/dist/esm/funcs/businessFilesList.js +1 -0
- package/dist/esm/funcs/businessFilesList.js.map +1 -1
- package/dist/esm/funcs/businessFilesUpload.js +7 -0
- package/dist/esm/funcs/businessFilesUpload.js.map +1 -1
- package/dist/esm/funcs/businessesGetAccountHolderInformation.d.ts +18 -0
- package/dist/esm/funcs/businessesGetAccountHolderInformation.d.ts.map +1 -0
- package/dist/esm/funcs/businessesGetAccountHolderInformation.js +102 -0
- package/dist/esm/funcs/businessesGetAccountHolderInformation.js.map +1 -0
- package/dist/esm/funcs/businessesGetVirtualAccountInformation.d.ts +18 -0
- package/dist/esm/funcs/businessesGetVirtualAccountInformation.d.ts.map +1 -0
- package/dist/esm/funcs/businessesGetVirtualAccountInformation.js +102 -0
- package/dist/esm/funcs/businessesGetVirtualAccountInformation.js.map +1 -0
- package/dist/esm/funcs/filesList.js +1 -0
- package/dist/esm/funcs/filesList.js.map +1 -1
- package/dist/esm/funcs/filesUpload.js +7 -0
- package/dist/esm/funcs/filesUpload.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/accountholdervirtualaccountitemdto.d.ts +30 -0
- package/dist/esm/models/accountholdervirtualaccountitemdto.d.ts.map +1 -0
- package/dist/esm/models/accountholdervirtualaccountitemdto.js +27 -0
- package/dist/esm/models/accountholdervirtualaccountitemdto.js.map +1 -0
- package/dist/esm/models/createoriginationofferdto.d.ts +0 -6
- package/dist/esm/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/esm/models/createoriginationofferdto.js +0 -3
- package/dist/esm/models/createoriginationofferdto.js.map +1 -1
- package/dist/esm/models/createpaymentintentdto.d.ts +5 -0
- package/dist/esm/models/createpaymentintentdto.d.ts.map +1 -1
- package/dist/esm/models/createpaymentintentdto.js +2 -0
- package/dist/esm/models/createpaymentintentdto.js.map +1 -1
- package/dist/esm/models/financialaccountdatadto.d.ts +5 -0
- package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountdatadto.js +4 -0
- package/dist/esm/models/financialaccountdatadto.js.map +1 -1
- package/dist/esm/models/financialaccountverificationdto.d.ts +1 -0
- package/dist/esm/models/financialaccountverificationdto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountverificationdto.js +1 -0
- package/dist/esm/models/financialaccountverificationdto.js.map +1 -1
- package/dist/esm/models/financialaccountverificationresponsedto.d.ts +1 -1
- package/dist/esm/models/financialaccountverificationresponsedto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountverificationresponsedto.js +1 -1
- package/dist/esm/models/financialaccountverificationresponsedto.js.map +1 -1
- package/dist/esm/models/getaccountholderinformationresponsedto.d.ts +26 -0
- package/dist/esm/models/getaccountholderinformationresponsedto.d.ts.map +1 -0
- package/dist/esm/models/getaccountholderinformationresponsedto.js +25 -0
- package/dist/esm/models/getaccountholderinformationresponsedto.js.map +1 -0
- package/dist/esm/models/getvirtualaccountinformationresponsedto.d.ts +22 -0
- package/dist/esm/models/getvirtualaccountinformationresponsedto.d.ts.map +1 -0
- package/dist/esm/models/getvirtualaccountinformationresponsedto.js +23 -0
- package/dist/esm/models/getvirtualaccountinformationresponsedto.js.map +1 -0
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/lockboxaddressdto.d.ts +33 -0
- package/dist/esm/models/lockboxaddressdto.d.ts.map +1 -0
- package/dist/esm/models/lockboxaddressdto.js +23 -0
- package/dist/esm/models/lockboxaddressdto.js.map +1 -0
- package/dist/esm/models/operations/applicationfilescontrollerfindall.d.ts +5 -0
- package/dist/esm/models/operations/applicationfilescontrollerfindall.d.ts.map +1 -1
- package/dist/esm/models/operations/applicationfilescontrollerfindall.js +1 -0
- package/dist/esm/models/operations/applicationfilescontrollerfindall.js.map +1 -1
- package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.d.ts +30 -0
- package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.d.ts.map +1 -0
- package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.js +22 -0
- package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.js.map +1 -0
- package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.d.ts +30 -0
- package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.d.ts.map +1 -0
- package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.js +23 -0
- package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.js.map +1 -0
- package/dist/esm/models/operations/businessfilescontrollerfindall.d.ts +5 -0
- package/dist/esm/models/operations/businessfilescontrollerfindall.d.ts.map +1 -1
- package/dist/esm/models/operations/businessfilescontrollerfindall.js +1 -0
- package/dist/esm/models/operations/businessfilescontrollerfindall.js.map +1 -1
- package/dist/esm/models/operations/filescontrollerfindall.d.ts +5 -0
- package/dist/esm/models/operations/filescontrollerfindall.d.ts.map +1 -1
- package/dist/esm/models/operations/filescontrollerfindall.js +1 -0
- package/dist/esm/models/operations/filescontrollerfindall.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.d.ts +4 -0
- package/dist/esm/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.js +2 -0
- package/dist/esm/models/paymentintentresponsedto.js.map +1 -1
- package/dist/esm/models/paymentraildatadto.d.ts +5 -0
- package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/esm/models/paymentraildatadto.js +4 -0
- package/dist/esm/models/paymentraildatadto.js.map +1 -1
- package/dist/esm/models/updatefinancialaccountdto.d.ts +0 -6
- package/dist/esm/models/updatefinancialaccountdto.d.ts.map +1 -1
- package/dist/esm/models/updatefinancialaccountdto.js +0 -2
- package/dist/esm/models/updatefinancialaccountdto.js.map +1 -1
- package/dist/esm/models/updatepaymentintentdto.d.ts +5 -0
- package/dist/esm/models/updatepaymentintentdto.d.ts.map +1 -1
- package/dist/esm/models/updatepaymentintentdto.js +2 -0
- package/dist/esm/models/updatepaymentintentdto.js.map +1 -1
- package/dist/esm/models/updateplatformfinancialaccountdto.d.ts +0 -6
- package/dist/esm/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
- package/dist/esm/models/updateplatformfinancialaccountdto.js +0 -2
- package/dist/esm/models/updateplatformfinancialaccountdto.js.map +1 -1
- package/dist/esm/models/virtualaccountinfoitemdto.d.ts +34 -0
- package/dist/esm/models/virtualaccountinfoitemdto.d.ts.map +1 -0
- package/dist/esm/models/virtualaccountinfoitemdto.js +29 -0
- package/dist/esm/models/virtualaccountinfoitemdto.js.map +1 -0
- package/dist/esm/sdk/businesses.d.ts +14 -0
- package/dist/esm/sdk/businesses.d.ts.map +1 -1
- package/dist/esm/sdk/businesses.js +20 -0
- package/dist/esm/sdk/businesses.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/applicationFilesList.ts +1 -0
- package/src/funcs/applicationFilesUpload.ts +11 -0
- package/src/funcs/businessFilesList.ts +1 -0
- package/src/funcs/businessFilesUpload.ts +11 -0
- package/src/funcs/businessesGetAccountHolderInformation.ts +190 -0
- package/src/funcs/businessesGetVirtualAccountInformation.ts +190 -0
- package/src/funcs/filesList.ts +1 -0
- package/src/funcs/filesUpload.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/accountholdervirtualaccountitemdto.ts +69 -0
- package/src/models/createoriginationofferdto.ts +0 -12
- package/src/models/createpaymentintentdto.ts +7 -0
- package/src/models/financialaccountdatadto.ts +9 -0
- package/src/models/financialaccountverificationdto.ts +1 -0
- package/src/models/financialaccountverificationresponsedto.ts +2 -2
- package/src/models/getaccountholderinformationresponsedto.ts +62 -0
- package/src/models/getvirtualaccountinformationresponsedto.ts +61 -0
- package/src/models/index.ts +5 -1
- package/src/models/lockboxaddressdto.ts +64 -0
- package/src/models/operations/applicationfilescontrollerfindall.ts +6 -0
- package/src/models/operations/businessescontrollergetaccountholderinformation.ts +63 -0
- package/src/models/operations/businessescontrollergetvirtualaccountinformation.ts +62 -0
- package/src/models/operations/businessfilescontrollerfindall.ts +6 -0
- package/src/models/operations/filescontrollerfindall.ts +6 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/paymentintentresponsedto.ts +6 -0
- package/src/models/paymentraildatadto.ts +9 -0
- package/src/models/updatefinancialaccountdto.ts +0 -10
- package/src/models/updatepaymentintentdto.ts +7 -0
- package/src/models/updateplatformfinancialaccountdto.ts +0 -10
- package/src/models/virtualaccountinfoitemdto.ts +73 -0
- package/src/sdk/businesses.ts +36 -0
- package/dist/commonjs/models/paymentintentdto.d.ts +0 -15
- package/dist/commonjs/models/paymentintentdto.d.ts.map +0 -1
- package/dist/commonjs/models/paymentintentdto.js.map +0 -1
- package/dist/esm/models/paymentintentdto.d.ts +0 -15
- package/dist/esm/models/paymentintentdto.d.ts.map +0 -1
- package/dist/esm/models/paymentintentdto.js +0 -12
- package/dist/esm/models/paymentintentdto.js.map +0 -1
- package/src/models/paymentintentdto.ts +0 -34
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OatFiSDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.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 { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { OatFiSDKError } from "../models/errors/oatfisdkerror.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve account holder information
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Retrieve account holder information and virtual accounts related to the business
|
|
33
|
+
*/
|
|
34
|
+
export function businessesGetAccountHolderInformation(
|
|
35
|
+
client: OatFiSDKCore,
|
|
36
|
+
request: operations.BusinessesControllerGetAccountHolderInformationRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
models.GetAccountHolderInformationResponseDto,
|
|
41
|
+
| OatFiSDKError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: OatFiSDKCore,
|
|
60
|
+
request: operations.BusinessesControllerGetAccountHolderInformationRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
models.GetAccountHolderInformationResponseDto,
|
|
66
|
+
| OatFiSDKError
|
|
67
|
+
| ResponseValidationError
|
|
68
|
+
| ConnectionError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value) =>
|
|
81
|
+
operations
|
|
82
|
+
.BusinessesControllerGetAccountHolderInformationRequest$outboundSchema
|
|
83
|
+
.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
id: encodeSimple("id", payload.id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const path = pathToFunc("/v3/businesses/{id}/account-holder-information")(
|
|
100
|
+
pathParams,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const query = encodeFormQuery({
|
|
104
|
+
"counter_party_business_external_id":
|
|
105
|
+
payload.counter_party_business_external_id,
|
|
106
|
+
"page_number": payload.page_number,
|
|
107
|
+
"page_size": payload.page_size,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const headers = new Headers(compactMap({
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
115
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
|
+
|
|
118
|
+
const context = {
|
|
119
|
+
options: client._options,
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
121
|
+
operationID: "BusinessesController_getAccountHolderInformation",
|
|
122
|
+
oAuth2Scopes: null,
|
|
123
|
+
|
|
124
|
+
resolvedSecurity: requestSecurity,
|
|
125
|
+
|
|
126
|
+
securitySource: client._options.bearer,
|
|
127
|
+
retryConfig: options?.retries
|
|
128
|
+
|| client._options.retryConfig
|
|
129
|
+
|| {
|
|
130
|
+
strategy: "backoff",
|
|
131
|
+
backoff: {
|
|
132
|
+
initialInterval: 500,
|
|
133
|
+
maxInterval: 60000,
|
|
134
|
+
exponent: 1.5,
|
|
135
|
+
maxElapsedTime: 120000,
|
|
136
|
+
},
|
|
137
|
+
retryConnectionErrors: true,
|
|
138
|
+
}
|
|
139
|
+
|| { strategy: "none" },
|
|
140
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const requestRes = client._createRequest(context, {
|
|
144
|
+
security: requestSecurity,
|
|
145
|
+
method: "GET",
|
|
146
|
+
baseURL: options?.serverURL,
|
|
147
|
+
path: path,
|
|
148
|
+
headers: headers,
|
|
149
|
+
query: query,
|
|
150
|
+
body: body,
|
|
151
|
+
userAgent: client._options.userAgent,
|
|
152
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
153
|
+
}, options);
|
|
154
|
+
if (!requestRes.ok) {
|
|
155
|
+
return [requestRes, { status: "invalid" }];
|
|
156
|
+
}
|
|
157
|
+
const req = requestRes.value;
|
|
158
|
+
|
|
159
|
+
const doResult = await client._do(req, {
|
|
160
|
+
context,
|
|
161
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
162
|
+
retryConfig: context.retryConfig,
|
|
163
|
+
retryCodes: context.retryCodes,
|
|
164
|
+
});
|
|
165
|
+
if (!doResult.ok) {
|
|
166
|
+
return [doResult, { status: "request-error", request: req }];
|
|
167
|
+
}
|
|
168
|
+
const response = doResult.value;
|
|
169
|
+
|
|
170
|
+
const [result] = await M.match<
|
|
171
|
+
models.GetAccountHolderInformationResponseDto,
|
|
172
|
+
| OatFiSDKError
|
|
173
|
+
| ResponseValidationError
|
|
174
|
+
| ConnectionError
|
|
175
|
+
| RequestAbortedError
|
|
176
|
+
| RequestTimeoutError
|
|
177
|
+
| InvalidRequestError
|
|
178
|
+
| UnexpectedClientError
|
|
179
|
+
| SDKValidationError
|
|
180
|
+
>(
|
|
181
|
+
M.json(200, models.GetAccountHolderInformationResponseDto$inboundSchema),
|
|
182
|
+
M.fail([400, 401, 403, 404, "4XX"]),
|
|
183
|
+
M.fail("5XX"),
|
|
184
|
+
)(response, req);
|
|
185
|
+
if (!result.ok) {
|
|
186
|
+
return [result, { status: "complete", request: req, response }];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return [result, { status: "complete", request: req, response }];
|
|
190
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OatFiSDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.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 { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { OatFiSDKError } from "../models/errors/oatfisdkerror.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve virtual account information
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Retrieve virtual accounts related to a business (Oatfi Payments only)
|
|
33
|
+
*/
|
|
34
|
+
export function businessesGetVirtualAccountInformation(
|
|
35
|
+
client: OatFiSDKCore,
|
|
36
|
+
request: operations.BusinessesControllerGetVirtualAccountInformationRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
models.GetVirtualAccountInformationResponseDto,
|
|
41
|
+
| OatFiSDKError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: OatFiSDKCore,
|
|
60
|
+
request: operations.BusinessesControllerGetVirtualAccountInformationRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
models.GetVirtualAccountInformationResponseDto,
|
|
66
|
+
| OatFiSDKError
|
|
67
|
+
| ResponseValidationError
|
|
68
|
+
| ConnectionError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value) =>
|
|
81
|
+
operations
|
|
82
|
+
.BusinessesControllerGetVirtualAccountInformationRequest$outboundSchema
|
|
83
|
+
.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
id: encodeSimple("id", payload.id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const path = pathToFunc("/v3/businesses/{id}/virtual-account-information")(
|
|
100
|
+
pathParams,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const query = encodeFormQuery({
|
|
104
|
+
"account_holder_business_external_id":
|
|
105
|
+
payload.account_holder_business_external_id,
|
|
106
|
+
"page_number": payload.page_number,
|
|
107
|
+
"page_size": payload.page_size,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const headers = new Headers(compactMap({
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
115
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
|
+
|
|
118
|
+
const context = {
|
|
119
|
+
options: client._options,
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
121
|
+
operationID: "BusinessesController_getVirtualAccountInformation",
|
|
122
|
+
oAuth2Scopes: null,
|
|
123
|
+
|
|
124
|
+
resolvedSecurity: requestSecurity,
|
|
125
|
+
|
|
126
|
+
securitySource: client._options.bearer,
|
|
127
|
+
retryConfig: options?.retries
|
|
128
|
+
|| client._options.retryConfig
|
|
129
|
+
|| {
|
|
130
|
+
strategy: "backoff",
|
|
131
|
+
backoff: {
|
|
132
|
+
initialInterval: 500,
|
|
133
|
+
maxInterval: 60000,
|
|
134
|
+
exponent: 1.5,
|
|
135
|
+
maxElapsedTime: 120000,
|
|
136
|
+
},
|
|
137
|
+
retryConnectionErrors: true,
|
|
138
|
+
}
|
|
139
|
+
|| { strategy: "none" },
|
|
140
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const requestRes = client._createRequest(context, {
|
|
144
|
+
security: requestSecurity,
|
|
145
|
+
method: "GET",
|
|
146
|
+
baseURL: options?.serverURL,
|
|
147
|
+
path: path,
|
|
148
|
+
headers: headers,
|
|
149
|
+
query: query,
|
|
150
|
+
body: body,
|
|
151
|
+
userAgent: client._options.userAgent,
|
|
152
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
153
|
+
}, options);
|
|
154
|
+
if (!requestRes.ok) {
|
|
155
|
+
return [requestRes, { status: "invalid" }];
|
|
156
|
+
}
|
|
157
|
+
const req = requestRes.value;
|
|
158
|
+
|
|
159
|
+
const doResult = await client._do(req, {
|
|
160
|
+
context,
|
|
161
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
162
|
+
retryConfig: context.retryConfig,
|
|
163
|
+
retryCodes: context.retryCodes,
|
|
164
|
+
});
|
|
165
|
+
if (!doResult.ok) {
|
|
166
|
+
return [doResult, { status: "request-error", request: req }];
|
|
167
|
+
}
|
|
168
|
+
const response = doResult.value;
|
|
169
|
+
|
|
170
|
+
const [result] = await M.match<
|
|
171
|
+
models.GetVirtualAccountInformationResponseDto,
|
|
172
|
+
| OatFiSDKError
|
|
173
|
+
| ResponseValidationError
|
|
174
|
+
| ConnectionError
|
|
175
|
+
| RequestAbortedError
|
|
176
|
+
| RequestTimeoutError
|
|
177
|
+
| InvalidRequestError
|
|
178
|
+
| UnexpectedClientError
|
|
179
|
+
| SDKValidationError
|
|
180
|
+
>(
|
|
181
|
+
M.json(200, models.GetVirtualAccountInformationResponseDto$inboundSchema),
|
|
182
|
+
M.fail([400, 401, 403, 404, "4XX"]),
|
|
183
|
+
M.fail("5XX"),
|
|
184
|
+
)(response, req);
|
|
185
|
+
if (!result.ok) {
|
|
186
|
+
return [result, { status: "complete", request: req, response }];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return [result, { status: "complete", request: req, response }];
|
|
190
|
+
}
|
package/src/funcs/filesList.ts
CHANGED
|
@@ -104,6 +104,7 @@ async function $do(
|
|
|
104
104
|
"ending_before": payload?.ending_before,
|
|
105
105
|
"file_type": payload?.file_type,
|
|
106
106
|
"limit": payload?.limit,
|
|
107
|
+
"q": payload?.q,
|
|
107
108
|
"resource_id": payload?.resource_id,
|
|
108
109
|
"resource_type": payload?.resource_type,
|
|
109
110
|
"starting_after": payload?.starting_after,
|
package/src/funcs/filesUpload.ts
CHANGED
|
@@ -103,6 +103,17 @@ async function $do(
|
|
|
103
103
|
|| "application/octet-stream";
|
|
104
104
|
const blob = new Blob([buffer], { type: contentType });
|
|
105
105
|
appendForm(body, "files[]", blob, fileItem.fileName);
|
|
106
|
+
} else if (fileItem.content instanceof Uint8Array) {
|
|
107
|
+
const contentType = getContentTypeFromFileName(fileItem.fileName)
|
|
108
|
+
|| "application/octet-stream";
|
|
109
|
+
appendForm(
|
|
110
|
+
body,
|
|
111
|
+
"files[]",
|
|
112
|
+
new Blob([new Uint8Array(fileItem.content).buffer], {
|
|
113
|
+
type: contentType,
|
|
114
|
+
}),
|
|
115
|
+
fileItem.fileName,
|
|
116
|
+
);
|
|
106
117
|
} else {
|
|
107
118
|
const contentType = getContentTypeFromFileName(fileItem.fileName)
|
|
108
119
|
|| "application/octet-stream";
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "3.0.0",
|
|
72
|
-
sdkVersion: "0.11.
|
|
73
|
-
genVersion: "2.
|
|
72
|
+
sdkVersion: "0.11.56",
|
|
73
|
+
genVersion: "2.849.8",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/typescript 0.11.
|
|
75
|
+
"speakeasy-sdk/typescript 0.11.56 2.849.8 3.0.0 @oatfi/oatfi-sdk-ts",
|
|
76
76
|
} as const;
|
package/src/lib/matchers.ts
CHANGED
|
@@ -251,8 +251,9 @@ export function match<T, E>(
|
|
|
251
251
|
raw = body;
|
|
252
252
|
break;
|
|
253
253
|
default:
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
throw new Error(
|
|
255
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
256
|
+
);
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
if (matcher.enc === "fail") {
|
package/src/lib/security.ts
CHANGED
|
@@ -198,8 +198,7 @@ export function resolveSecurity(
|
|
|
198
198
|
applyBearer(state, spec);
|
|
199
199
|
break;
|
|
200
200
|
default:
|
|
201
|
-
spec satisfies never;
|
|
202
|
-
throw SecurityError.unrecognizedType(type);
|
|
201
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
203
202
|
}
|
|
204
203
|
});
|
|
205
204
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
LockboxAddressDto,
|
|
12
|
+
LockboxAddressDto$inboundSchema,
|
|
13
|
+
} from "./lockboxaddressdto.js";
|
|
14
|
+
|
|
15
|
+
export type AccountHolderVirtualAccountItemDto = {
|
|
16
|
+
/**
|
|
17
|
+
* Payment method ID
|
|
18
|
+
*/
|
|
19
|
+
paymentMethodId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Counter party holder business external ID
|
|
22
|
+
*/
|
|
23
|
+
counterPartyHolderBusinessExternalId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account number
|
|
26
|
+
*/
|
|
27
|
+
accountNumber: string;
|
|
28
|
+
/**
|
|
29
|
+
* Routing number
|
|
30
|
+
*/
|
|
31
|
+
routingNumber: string;
|
|
32
|
+
/**
|
|
33
|
+
* Lockbox address
|
|
34
|
+
*/
|
|
35
|
+
lockboxAddress?: LockboxAddressDto | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const AccountHolderVirtualAccountItemDto$inboundSchema: z.ZodType<
|
|
40
|
+
AccountHolderVirtualAccountItemDto,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
payment_method_id: z.string(),
|
|
45
|
+
counter_party_holder_business_external_id: z.string(),
|
|
46
|
+
account_number: z.string(),
|
|
47
|
+
routing_number: z.string(),
|
|
48
|
+
lockbox_address: LockboxAddressDto$inboundSchema.optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"payment_method_id": "paymentMethodId",
|
|
52
|
+
"counter_party_holder_business_external_id":
|
|
53
|
+
"counterPartyHolderBusinessExternalId",
|
|
54
|
+
"account_number": "accountNumber",
|
|
55
|
+
"routing_number": "routingNumber",
|
|
56
|
+
"lockbox_address": "lockboxAddress",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function accountHolderVirtualAccountItemDtoFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<AccountHolderVirtualAccountItemDto, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) =>
|
|
66
|
+
AccountHolderVirtualAccountItemDto$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'AccountHolderVirtualAccountItemDto' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
PaymentIntentDto,
|
|
9
|
-
PaymentIntentDto$Outbound,
|
|
10
|
-
PaymentIntentDto$outboundSchema,
|
|
11
|
-
} from "./paymentintentdto.js";
|
|
12
7
|
|
|
13
8
|
/**
|
|
14
9
|
* Metadata to associate with the offer request
|
|
@@ -68,10 +63,6 @@ export type CreateOriginationOfferDto = {
|
|
|
68
63
|
* The repayment date timestamp
|
|
69
64
|
*/
|
|
70
65
|
repaymentDate?: number | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Array of payment intents
|
|
73
|
-
*/
|
|
74
|
-
paymentIntents?: Array<PaymentIntentDto> | undefined;
|
|
75
66
|
/**
|
|
76
67
|
* Metadata to associate with the offer request
|
|
77
68
|
*/
|
|
@@ -113,7 +104,6 @@ export type CreateOriginationOfferDto$Outbound = {
|
|
|
113
104
|
payment_intent_id?: string | undefined;
|
|
114
105
|
due_date?: number | undefined;
|
|
115
106
|
repayment_date?: number | undefined;
|
|
116
|
-
payment_intents?: Array<PaymentIntentDto$Outbound> | undefined;
|
|
117
107
|
metadata?: CreateOriginationOfferDtoMetadata$Outbound | undefined;
|
|
118
108
|
};
|
|
119
109
|
|
|
@@ -136,7 +126,6 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
|
|
|
136
126
|
paymentIntentId: z.string().optional(),
|
|
137
127
|
dueDate: z.number().optional(),
|
|
138
128
|
repaymentDate: z.number().optional(),
|
|
139
|
-
paymentIntents: z.array(PaymentIntentDto$outboundSchema).optional(),
|
|
140
129
|
metadata: z.lazy(() => CreateOriginationOfferDtoMetadata$outboundSchema)
|
|
141
130
|
.optional(),
|
|
142
131
|
}).transform((v) => {
|
|
@@ -152,7 +141,6 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
|
|
|
152
141
|
paymentIntentId: "payment_intent_id",
|
|
153
142
|
dueDate: "due_date",
|
|
154
143
|
repaymentDate: "repayment_date",
|
|
155
|
-
paymentIntents: "payment_intents",
|
|
156
144
|
});
|
|
157
145
|
});
|
|
158
146
|
|
|
@@ -65,6 +65,10 @@ export type CreatePaymentIntentDto = {
|
|
|
65
65
|
* External identifier of the payee entity.
|
|
66
66
|
*/
|
|
67
67
|
payee?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Array of loan IDs to associate with this payment intent.
|
|
70
|
+
*/
|
|
71
|
+
loanIds?: Array<string> | undefined;
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
/** @internal */
|
|
@@ -85,6 +89,7 @@ export type CreatePaymentIntentDto$Outbound = {
|
|
|
85
89
|
approved_by_payor?: boolean | undefined;
|
|
86
90
|
payor?: string | undefined;
|
|
87
91
|
payee?: string | undefined;
|
|
92
|
+
loan_ids?: Array<string> | undefined;
|
|
88
93
|
};
|
|
89
94
|
|
|
90
95
|
/** @internal */
|
|
@@ -104,6 +109,7 @@ export const CreatePaymentIntentDto$outboundSchema: z.ZodType<
|
|
|
104
109
|
approvedByPayor: z.boolean().optional(),
|
|
105
110
|
payor: z.string().optional(),
|
|
106
111
|
payee: z.string().optional(),
|
|
112
|
+
loanIds: z.array(z.string()).optional(),
|
|
107
113
|
}).transform((v) => {
|
|
108
114
|
return remap$(v, {
|
|
109
115
|
externalId: "external_id",
|
|
@@ -112,6 +118,7 @@ export const CreatePaymentIntentDto$outboundSchema: z.ZodType<
|
|
|
112
118
|
dueDate: "due_date",
|
|
113
119
|
paymentDate: "payment_date",
|
|
114
120
|
approvedByPayor: "approved_by_payor",
|
|
121
|
+
loanIds: "loan_ids",
|
|
115
122
|
});
|
|
116
123
|
});
|
|
117
124
|
|
|
@@ -137,6 +137,10 @@ export type FinancialAccountDataDto = {
|
|
|
137
137
|
* Routing Number
|
|
138
138
|
*/
|
|
139
139
|
oatfiRoutingNumber?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Plaid processor token for transaction data extraction. Used by partners who already collect Plaid access from their borrowers.
|
|
142
|
+
*/
|
|
143
|
+
processorPlaidToken?: string | undefined;
|
|
140
144
|
};
|
|
141
145
|
|
|
142
146
|
/** @internal */
|
|
@@ -288,6 +292,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
288
292
|
account_number_id: z.string().optional(),
|
|
289
293
|
oatfi_account_number: z.string().optional(),
|
|
290
294
|
oatfi_routing_number: z.string().optional(),
|
|
295
|
+
processor_plaid_token: z.string().optional(),
|
|
291
296
|
}).transform((v) => {
|
|
292
297
|
return remap$(v, {
|
|
293
298
|
"account_id": "accountId",
|
|
@@ -306,6 +311,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
306
311
|
"account_number_id": "accountNumberId",
|
|
307
312
|
"oatfi_account_number": "oatfiAccountNumber",
|
|
308
313
|
"oatfi_routing_number": "oatfiRoutingNumber",
|
|
314
|
+
"processor_plaid_token": "processorPlaidToken",
|
|
309
315
|
});
|
|
310
316
|
});
|
|
311
317
|
/** @internal */
|
|
@@ -326,6 +332,7 @@ export type FinancialAccountDataDto$Outbound = {
|
|
|
326
332
|
account_number_id?: string | undefined;
|
|
327
333
|
oatfi_account_number?: string | undefined;
|
|
328
334
|
oatfi_routing_number?: string | undefined;
|
|
335
|
+
processor_plaid_token?: string | undefined;
|
|
329
336
|
};
|
|
330
337
|
|
|
331
338
|
/** @internal */
|
|
@@ -352,6 +359,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
352
359
|
accountNumberId: z.string().optional(),
|
|
353
360
|
oatfiAccountNumber: z.string().optional(),
|
|
354
361
|
oatfiRoutingNumber: z.string().optional(),
|
|
362
|
+
processorPlaidToken: z.string().optional(),
|
|
355
363
|
}).transform((v) => {
|
|
356
364
|
return remap$(v, {
|
|
357
365
|
accountId: "account_id",
|
|
@@ -370,6 +378,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
370
378
|
accountNumberId: "account_number_id",
|
|
371
379
|
oatfiAccountNumber: "oatfi_account_number",
|
|
372
380
|
oatfiRoutingNumber: "oatfi_routing_number",
|
|
381
|
+
processorPlaidToken: "processor_plaid_token",
|
|
373
382
|
});
|
|
374
383
|
});
|
|
375
384
|
|
|
@@ -16,7 +16,7 @@ export type FinancialAccountVerificationResponseDto = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Source of consent
|
|
18
18
|
*/
|
|
19
|
-
consentSource
|
|
19
|
+
consentSource?: string | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Timestamp when consent was given
|
|
22
22
|
*/
|
|
@@ -46,7 +46,7 @@ export const FinancialAccountVerificationResponseDto$inboundSchema: z.ZodType<
|
|
|
46
46
|
unknown
|
|
47
47
|
> = z.object({
|
|
48
48
|
consent_given: z.boolean(),
|
|
49
|
-
consent_source: z.string(),
|
|
49
|
+
consent_source: z.string().optional(),
|
|
50
50
|
consent_timestamp: z.string().datetime({ offset: true }).transform(v =>
|
|
51
51
|
new Date(v)
|
|
52
52
|
).optional(),
|