@oatfi/oatfi-sdk-ts 0.12.4 → 0.12.6
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 +12 -4
- package/dist/commonjs/funcs/filesUpload.js +3 -0
- package/dist/commonjs/funcs/filesUpload.js.map +1 -1
- 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/{esm/funcs/networkLedgerUpdateHold.d.ts → commonjs/funcs/transactionsCreateBatch.d.ts} +8 -3
- package/dist/commonjs/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/commonjs/funcs/{networkLedgerUpdateHold.js → transactionsCreateBatch.js} +21 -31
- package/dist/commonjs/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/commonjs/funcs/{networkLedgerRecordAdjustment.d.ts → transactionsGetById.d.ts} +8 -3
- 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/funcs/transactionsTransactionsControllerUpdate.d.ts +20 -0
- package/dist/commonjs/funcs/transactionsTransactionsControllerUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{networkLedgerRecordAdjustment.js → transactionsTransactionsControllerUpdate.js} +25 -27
- package/dist/commonjs/funcs/transactionsTransactionsControllerUpdate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/adjustmentresponsedto.d.ts +0 -6
- package/dist/commonjs/models/adjustmentresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/adjustmentresponsedto.js +0 -3
- package/dist/commonjs/models/adjustmentresponsedto.js.map +1 -1
- 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/businessrefdto.d.ts +5 -0
- package/dist/commonjs/models/businessrefdto.d.ts.map +1 -1
- package/dist/commonjs/models/businessrefdto.js +2 -0
- package/dist/commonjs/models/businessrefdto.js.map +1 -1
- 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/createadjustmentdto.d.ts +0 -6
- package/dist/commonjs/models/createadjustmentdto.d.ts.map +1 -1
- package/dist/commonjs/models/createadjustmentdto.js +0 -3
- package/dist/commonjs/models/createadjustmentdto.js.map +1 -1
- package/dist/commonjs/models/createfinancialaccountdto.d.ts +0 -1
- package/dist/commonjs/models/createfinancialaccountdto.d.ts.map +1 -1
- package/dist/commonjs/models/createfinancialaccountdto.js +0 -1
- package/dist/commonjs/models/createfinancialaccountdto.js.map +1 -1
- package/dist/commonjs/models/createplatformfinancialaccountdto.d.ts +0 -1
- package/dist/commonjs/models/createplatformfinancialaccountdto.d.ts.map +1 -1
- package/dist/commonjs/models/createplatformfinancialaccountdto.js +0 -1
- package/dist/commonjs/models/createplatformfinancialaccountdto.js.map +1 -1
- package/dist/commonjs/models/createplatformsettingsdto.d.ts +0 -20
- package/dist/commonjs/models/createplatformsettingsdto.d.ts.map +1 -1
- package/dist/commonjs/models/createplatformsettingsdto.js +0 -8
- package/dist/commonjs/models/createplatformsettingsdto.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/fileresponsedto.d.ts +7 -0
- package/dist/commonjs/models/fileresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/fileresponsedto.js +5 -0
- package/dist/commonjs/models/fileresponsedto.js.map +1 -1
- package/dist/commonjs/models/filetype.d.ts +3 -0
- package/dist/commonjs/models/filetype.d.ts.map +1 -1
- package/dist/commonjs/models/filetype.js +3 -0
- package/dist/commonjs/models/filetype.js.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.d.ts +0 -5
- package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.js +0 -4
- package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
- package/dist/commonjs/models/financialaccountresponsedto.d.ts +0 -1
- package/dist/commonjs/models/financialaccountresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountresponsedto.js +0 -1
- package/dist/commonjs/models/financialaccountresponsedto.js.map +1 -1
- 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 +13 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +13 -2
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/ledgerentrysnapshotdto.d.ts +0 -5
- package/dist/commonjs/models/ledgerentrysnapshotdto.d.ts.map +1 -1
- package/dist/commonjs/models/ledgerentrysnapshotdto.js +0 -2
- package/dist/commonjs/models/ledgerentrysnapshotdto.js.map +1 -1
- package/dist/commonjs/models/lmsloantransactiontype.d.ts +34 -0
- package/dist/commonjs/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/commonjs/models/lmsloantransactiontype.js +68 -0
- package/dist/commonjs/models/lmsloantransactiontype.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/networkcontrollerexecutepurchase.d.ts +1 -1
- package/dist/commonjs/models/operations/networkcontrollerexecutepurchase.d.ts.map +1 -1
- package/dist/commonjs/models/operations/networkcontrollerexecutepurchase.js +1 -0
- package/dist/commonjs/models/operations/networkcontrollerexecutepurchase.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/{networkcontrollerpatchhold.js → transactionscontrollercreate.js} +8 -25
- 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/{networkcontrollerrecordadjustment.js → transactionscontrollerfindall.js} +23 -24
- 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/operations/transactionscontrollerupdate.d.ts +18 -0
- package/dist/commonjs/models/operations/transactionscontrollerupdate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerupdate.js +56 -0
- package/dist/commonjs/models/operations/transactionscontrollerupdate.js.map +1 -0
- package/dist/commonjs/models/paymentraildatadto.d.ts +0 -5
- package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.js +0 -4
- package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
- 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/platformsettingsdto.d.ts +0 -16
- package/dist/commonjs/models/platformsettingsdto.d.ts.map +1 -1
- package/dist/commonjs/models/platformsettingsdto.js +0 -8
- package/dist/commonjs/models/platformsettingsdto.js.map +1 -1
- package/dist/commonjs/models/purchasenotconfirmeddto.d.ts +13 -0
- package/dist/commonjs/models/purchasenotconfirmeddto.d.ts.map +1 -0
- package/dist/commonjs/models/purchasenotconfirmeddto.js +51 -0
- package/dist/commonjs/models/purchasenotconfirmeddto.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/{recordadjustmentrequestdto.js → storedtransactionlistresponsedto.js} +14 -33
- 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/{patchholdrequestdto.js → transactionloandto.js} +13 -12
- 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/models/transfermethodenum.d.ts +0 -1
- package/dist/commonjs/models/transfermethodenum.d.ts.map +1 -1
- package/dist/commonjs/models/transfermethodenum.js +0 -1
- package/dist/commonjs/models/transfermethodenum.js.map +1 -1
- package/dist/commonjs/models/updatefiledto.d.ts +8 -0
- package/dist/commonjs/models/updatefiledto.d.ts.map +1 -1
- package/dist/commonjs/models/updatefiledto.js +5 -0
- package/dist/commonjs/models/updatefiledto.js.map +1 -1
- package/dist/commonjs/models/updatetransactiondto.d.ts +36 -0
- package/dist/commonjs/models/updatetransactiondto.d.ts.map +1 -0
- package/dist/commonjs/models/updatetransactiondto.js +54 -0
- package/dist/commonjs/models/updatetransactiondto.js.map +1 -0
- package/dist/commonjs/models/uploadfilesdto.d.ts +8 -0
- package/dist/commonjs/models/uploadfilesdto.d.ts.map +1 -1
- package/dist/commonjs/models/uploadfilesdto.js +5 -0
- package/dist/commonjs/models/uploadfilesdto.js.map +1 -1
- package/dist/commonjs/models/uploadfilesmultipartdto.d.ts +3 -0
- package/dist/commonjs/models/uploadfilesmultipartdto.d.ts.map +1 -1
- package/dist/commonjs/models/uploadfilesmultipartdto.js +3 -0
- package/dist/commonjs/models/uploadfilesmultipartdto.js.map +1 -1
- package/dist/commonjs/sdk/networkledger.d.ts +1 -9
- package/dist/commonjs/sdk/networkledger.d.ts.map +1 -1
- package/dist/commonjs/sdk/networkledger.js +0 -14
- package/dist/commonjs/sdk/networkledger.js.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 +37 -0
- package/dist/commonjs/sdk/transactions.d.ts.map +1 -0
- package/dist/commonjs/sdk/transactions.js +53 -0
- package/dist/commonjs/sdk/transactions.js.map +1 -0
- package/dist/esm/funcs/filesUpload.js +3 -0
- package/dist/esm/funcs/filesUpload.js.map +1 -1
- 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/{networkLedgerRecordAdjustment.d.ts → transactionsCreateBatch.d.ts} +8 -3
- package/dist/esm/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/esm/funcs/{networkLedgerRecordAdjustment.js → transactionsCreateBatch.js} +20 -27
- package/dist/esm/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/{commonjs/funcs/networkLedgerUpdateHold.d.ts → esm/funcs/transactionsGetById.d.ts} +8 -3
- 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/funcs/transactionsTransactionsControllerUpdate.d.ts +20 -0
- package/dist/esm/funcs/transactionsTransactionsControllerUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/{networkLedgerUpdateHold.js → transactionsTransactionsControllerUpdate.js} +21 -26
- package/dist/esm/funcs/transactionsTransactionsControllerUpdate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/adjustmentresponsedto.d.ts +0 -6
- package/dist/esm/models/adjustmentresponsedto.d.ts.map +1 -1
- package/dist/esm/models/adjustmentresponsedto.js +0 -3
- package/dist/esm/models/adjustmentresponsedto.js.map +1 -1
- 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/businessrefdto.d.ts +5 -0
- package/dist/esm/models/businessrefdto.d.ts.map +1 -1
- package/dist/esm/models/businessrefdto.js +2 -0
- package/dist/esm/models/businessrefdto.js.map +1 -1
- 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/createadjustmentdto.d.ts +0 -6
- package/dist/esm/models/createadjustmentdto.d.ts.map +1 -1
- package/dist/esm/models/createadjustmentdto.js +0 -3
- package/dist/esm/models/createadjustmentdto.js.map +1 -1
- package/dist/esm/models/createfinancialaccountdto.d.ts +0 -1
- package/dist/esm/models/createfinancialaccountdto.d.ts.map +1 -1
- package/dist/esm/models/createfinancialaccountdto.js +0 -1
- package/dist/esm/models/createfinancialaccountdto.js.map +1 -1
- package/dist/esm/models/createplatformfinancialaccountdto.d.ts +0 -1
- package/dist/esm/models/createplatformfinancialaccountdto.d.ts.map +1 -1
- package/dist/esm/models/createplatformfinancialaccountdto.js +0 -1
- package/dist/esm/models/createplatformfinancialaccountdto.js.map +1 -1
- package/dist/esm/models/createplatformsettingsdto.d.ts +0 -20
- package/dist/esm/models/createplatformsettingsdto.d.ts.map +1 -1
- package/dist/esm/models/createplatformsettingsdto.js +0 -8
- package/dist/esm/models/createplatformsettingsdto.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/fileresponsedto.d.ts +7 -0
- package/dist/esm/models/fileresponsedto.d.ts.map +1 -1
- package/dist/esm/models/fileresponsedto.js +5 -0
- package/dist/esm/models/fileresponsedto.js.map +1 -1
- package/dist/esm/models/filetype.d.ts +3 -0
- package/dist/esm/models/filetype.d.ts.map +1 -1
- package/dist/esm/models/filetype.js +3 -0
- package/dist/esm/models/filetype.js.map +1 -1
- package/dist/esm/models/financialaccountdatadto.d.ts +0 -5
- package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountdatadto.js +0 -4
- package/dist/esm/models/financialaccountdatadto.js.map +1 -1
- package/dist/esm/models/financialaccountresponsedto.d.ts +0 -1
- package/dist/esm/models/financialaccountresponsedto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountresponsedto.js +0 -1
- package/dist/esm/models/financialaccountresponsedto.js.map +1 -1
- 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 +13 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +13 -2
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/ledgerentrysnapshotdto.d.ts +0 -5
- package/dist/esm/models/ledgerentrysnapshotdto.d.ts.map +1 -1
- package/dist/esm/models/ledgerentrysnapshotdto.js +0 -2
- package/dist/esm/models/ledgerentrysnapshotdto.js.map +1 -1
- package/dist/esm/models/lmsloantransactiontype.d.ts +34 -0
- package/dist/esm/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/esm/models/lmsloantransactiontype.js +32 -0
- package/dist/esm/models/lmsloantransactiontype.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/networkcontrollerexecutepurchase.d.ts +1 -1
- package/dist/esm/models/operations/networkcontrollerexecutepurchase.d.ts.map +1 -1
- package/dist/esm/models/operations/networkcontrollerexecutepurchase.js +1 -0
- package/dist/esm/models/operations/networkcontrollerexecutepurchase.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/operations/transactionscontrollerupdate.d.ts +18 -0
- package/dist/esm/models/operations/transactionscontrollerupdate.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerupdate.js +19 -0
- package/dist/esm/models/operations/transactionscontrollerupdate.js.map +1 -0
- package/dist/esm/models/paymentraildatadto.d.ts +0 -5
- package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/esm/models/paymentraildatadto.js +0 -4
- package/dist/esm/models/paymentraildatadto.js.map +1 -1
- 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/platformsettingsdto.d.ts +0 -16
- package/dist/esm/models/platformsettingsdto.d.ts.map +1 -1
- package/dist/esm/models/platformsettingsdto.js +0 -8
- package/dist/esm/models/platformsettingsdto.js.map +1 -1
- package/dist/esm/models/purchasenotconfirmeddto.d.ts +13 -0
- package/dist/esm/models/purchasenotconfirmeddto.d.ts.map +1 -0
- package/dist/esm/models/purchasenotconfirmeddto.js +14 -0
- package/dist/esm/models/purchasenotconfirmeddto.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/models/transfermethodenum.d.ts +0 -1
- package/dist/esm/models/transfermethodenum.d.ts.map +1 -1
- package/dist/esm/models/transfermethodenum.js +0 -1
- package/dist/esm/models/transfermethodenum.js.map +1 -1
- package/dist/esm/models/updatefiledto.d.ts +8 -0
- package/dist/esm/models/updatefiledto.d.ts.map +1 -1
- package/dist/esm/models/updatefiledto.js +5 -0
- package/dist/esm/models/updatefiledto.js.map +1 -1
- package/dist/esm/models/updatetransactiondto.d.ts +36 -0
- package/dist/esm/models/updatetransactiondto.d.ts.map +1 -0
- package/dist/esm/models/updatetransactiondto.js +17 -0
- package/dist/esm/models/updatetransactiondto.js.map +1 -0
- package/dist/esm/models/uploadfilesdto.d.ts +8 -0
- package/dist/esm/models/uploadfilesdto.d.ts.map +1 -1
- package/dist/esm/models/uploadfilesdto.js +5 -0
- package/dist/esm/models/uploadfilesdto.js.map +1 -1
- package/dist/esm/models/uploadfilesmultipartdto.d.ts +3 -0
- package/dist/esm/models/uploadfilesmultipartdto.d.ts.map +1 -1
- package/dist/esm/models/uploadfilesmultipartdto.js +3 -0
- package/dist/esm/models/uploadfilesmultipartdto.js.map +1 -1
- package/dist/esm/sdk/networkledger.d.ts +1 -9
- package/dist/esm/sdk/networkledger.d.ts.map +1 -1
- package/dist/esm/sdk/networkledger.js +0 -14
- package/dist/esm/sdk/networkledger.js.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 +37 -0
- package/dist/esm/sdk/transactions.d.ts.map +1 -0
- package/dist/esm/sdk/transactions.js +49 -0
- package/dist/esm/sdk/transactions.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/filesUpload.ts +3 -0
- package/src/funcs/networkLedgerGetBusiness.ts +4 -4
- package/src/funcs/{networkLedgerUpdateHold.ts → transactionsCreateBatch.ts} +26 -47
- package/src/funcs/transactionsGetById.ts +184 -0
- package/src/funcs/transactionsList.ts +255 -0
- package/src/funcs/{networkLedgerRecordAdjustment.ts → transactionsTransactionsControllerUpdate.ts} +28 -53
- package/src/lib/config.ts +3 -3
- package/src/models/adjustmentresponsedto.ts +0 -6
- package/src/models/businessdataresponsedto.ts +94 -0
- package/src/models/businessrefdto.ts +7 -0
- package/src/models/businessresponsedto.ts +198 -31
- package/src/models/createadjustmentdto.ts +0 -6
- package/src/models/createfinancialaccountdto.ts +0 -1
- package/src/models/createplatformfinancialaccountdto.ts +0 -1
- package/src/models/createplatformsettingsdto.ts +0 -28
- package/src/models/createtransactionsdto.ts +51 -0
- package/src/models/fileresponsedto.ts +9 -0
- package/src/models/filetype.ts +3 -0
- package/src/models/financialaccountdatadto.ts +0 -9
- package/src/models/financialaccountresponsedto.ts +0 -1
- package/src/models/increasedatadto.ts +52 -0
- package/src/models/index.ts +13 -2
- package/src/models/ledgerentrysnapshotdto.ts +0 -7
- package/src/models/lmsloantransactiontype.ts +41 -0
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/networkcontrollerexecutepurchase.ts +3 -1
- 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/operations/transactionscontrollerupdate.ts +45 -0
- package/src/models/paymentraildatadto.ts +0 -9
- package/src/models/paymentstatus.ts +29 -0
- package/src/models/platformsettingsdto.ts +0 -24
- package/src/models/purchasenotconfirmeddto.ts +35 -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/models/transfermethodenum.ts +0 -1
- package/src/models/updatefiledto.ts +10 -0
- package/src/models/updatetransactiondto.ts +62 -0
- package/src/models/uploadfilesdto.ts +10 -0
- package/src/models/uploadfilesmultipartdto.ts +3 -0
- package/src/sdk/networkledger.ts +1 -35
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transactions.ts +88 -0
- package/dist/commonjs/funcs/networkLedgerRecordAdjustment.d.ts.map +0 -1
- package/dist/commonjs/funcs/networkLedgerRecordAdjustment.js.map +0 -1
- package/dist/commonjs/funcs/networkLedgerUpdateHold.d.ts.map +0 -1
- package/dist/commonjs/funcs/networkLedgerUpdateHold.js.map +0 -1
- package/dist/commonjs/models/operations/networkcontrollerpatchhold.d.ts +0 -50
- package/dist/commonjs/models/operations/networkcontrollerpatchhold.d.ts.map +0 -1
- package/dist/commonjs/models/operations/networkcontrollerpatchhold.js.map +0 -1
- package/dist/commonjs/models/operations/networkcontrollerrecordadjustment.d.ts +0 -50
- package/dist/commonjs/models/operations/networkcontrollerrecordadjustment.d.ts.map +0 -1
- package/dist/commonjs/models/operations/networkcontrollerrecordadjustment.js.map +0 -1
- package/dist/commonjs/models/patchholdrequestdto.d.ts +0 -25
- package/dist/commonjs/models/patchholdrequestdto.d.ts.map +0 -1
- package/dist/commonjs/models/patchholdrequestdto.js.map +0 -1
- package/dist/commonjs/models/recordadjustmentrequestdto.d.ts +0 -71
- package/dist/commonjs/models/recordadjustmentrequestdto.d.ts.map +0 -1
- package/dist/commonjs/models/recordadjustmentrequestdto.js.map +0 -1
- package/dist/esm/funcs/networkLedgerRecordAdjustment.d.ts.map +0 -1
- package/dist/esm/funcs/networkLedgerRecordAdjustment.js.map +0 -1
- package/dist/esm/funcs/networkLedgerUpdateHold.d.ts.map +0 -1
- package/dist/esm/funcs/networkLedgerUpdateHold.js.map +0 -1
- package/dist/esm/models/operations/networkcontrollerpatchhold.d.ts +0 -50
- package/dist/esm/models/operations/networkcontrollerpatchhold.d.ts.map +0 -1
- package/dist/esm/models/operations/networkcontrollerpatchhold.js +0 -36
- package/dist/esm/models/operations/networkcontrollerpatchhold.js.map +0 -1
- package/dist/esm/models/operations/networkcontrollerrecordadjustment.d.ts +0 -50
- package/dist/esm/models/operations/networkcontrollerrecordadjustment.d.ts.map +0 -1
- package/dist/esm/models/operations/networkcontrollerrecordadjustment.js +0 -36
- package/dist/esm/models/operations/networkcontrollerrecordadjustment.js.map +0 -1
- package/dist/esm/models/patchholdrequestdto.d.ts +0 -25
- package/dist/esm/models/patchholdrequestdto.d.ts.map +0 -1
- package/dist/esm/models/patchholdrequestdto.js +0 -21
- package/dist/esm/models/patchholdrequestdto.js.map +0 -1
- package/dist/esm/models/recordadjustmentrequestdto.d.ts +0 -71
- package/dist/esm/models/recordadjustmentrequestdto.d.ts.map +0 -1
- package/dist/esm/models/recordadjustmentrequestdto.js +0 -42
- package/dist/esm/models/recordadjustmentrequestdto.js.map +0 -1
- package/src/models/operations/networkcontrollerpatchhold.ts +0 -105
- package/src/models/operations/networkcontrollerrecordadjustment.ts +0 -108
- package/src/models/patchholdrequestdto.ts +0 -53
- package/src/models/recordadjustmentrequestdto.ts +0 -105
package/src/funcs/{networkLedgerRecordAdjustment.ts → transactionsTransactionsControllerUpdate.ts}
RENAMED
|
@@ -9,7 +9,7 @@ import * as M from "../lib/matchers.js";
|
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
10
10
|
import { safeParse } from "../lib/schemas.js";
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import {
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
14
|
import {
|
|
15
15
|
ConnectionError,
|
|
@@ -27,16 +27,20 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Update a stored transaction
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Corrects one or more fields of a previously uploaded transaction owned by the partner.
|
|
34
|
+
*
|
|
35
|
+
* If set, this operation will use {@link Security.bearer} from the global security.
|
|
31
36
|
*/
|
|
32
|
-
export function
|
|
37
|
+
export function transactionsTransactionsControllerUpdate(
|
|
33
38
|
client: OatFiSDKCore,
|
|
34
|
-
|
|
35
|
-
request: operations.NetworkControllerRecordAdjustmentRequest,
|
|
39
|
+
request: operations.TransactionsControllerUpdateRequest,
|
|
36
40
|
options?: RequestOptions,
|
|
37
41
|
): APIPromise<
|
|
38
42
|
Result<
|
|
39
|
-
models.
|
|
43
|
+
models.StoredTransactionResponseDto,
|
|
40
44
|
| OatFiSDKError
|
|
41
45
|
| ResponseValidationError
|
|
42
46
|
| ConnectionError
|
|
@@ -49,7 +53,6 @@ export function networkLedgerRecordAdjustment(
|
|
|
49
53
|
> {
|
|
50
54
|
return new APIPromise($do(
|
|
51
55
|
client,
|
|
52
|
-
security,
|
|
53
56
|
request,
|
|
54
57
|
options,
|
|
55
58
|
));
|
|
@@ -57,13 +60,12 @@ export function networkLedgerRecordAdjustment(
|
|
|
57
60
|
|
|
58
61
|
async function $do(
|
|
59
62
|
client: OatFiSDKCore,
|
|
60
|
-
|
|
61
|
-
request: operations.NetworkControllerRecordAdjustmentRequest,
|
|
63
|
+
request: operations.TransactionsControllerUpdateRequest,
|
|
62
64
|
options?: RequestOptions,
|
|
63
65
|
): Promise<
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
|
-
models.
|
|
68
|
+
models.StoredTransactionResponseDto,
|
|
67
69
|
| OatFiSDKError
|
|
68
70
|
| ResponseValidationError
|
|
69
71
|
| ConnectionError
|
|
@@ -79,7 +81,7 @@ async function $do(
|
|
|
79
81
|
const parsed = safeParse(
|
|
80
82
|
request,
|
|
81
83
|
(value) =>
|
|
82
|
-
operations.
|
|
84
|
+
operations.TransactionsControllerUpdateRequest$outboundSchema.parse(
|
|
83
85
|
value,
|
|
84
86
|
),
|
|
85
87
|
"Input validation failed",
|
|
@@ -88,63 +90,36 @@ async function $do(
|
|
|
88
90
|
return [parsed, { status: "invalid" }];
|
|
89
91
|
}
|
|
90
92
|
const payload = parsed.value;
|
|
91
|
-
const body = encodeJSON("body", payload.
|
|
93
|
+
const body = encodeJSON("body", payload.UpdateTransactionDto, {
|
|
92
94
|
explode: true,
|
|
93
95
|
});
|
|
94
96
|
|
|
95
97
|
const pathParams = {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
),
|
|
98
|
+
transactionId: encodeSimple("transactionId", payload.transactionId, {
|
|
99
|
+
explode: false,
|
|
100
|
+
charEncoding: "percent",
|
|
101
|
+
}),
|
|
101
102
|
};
|
|
102
|
-
const path = pathToFunc(
|
|
103
|
-
"/v3/network/ledger-entries/{ledger_entry_external_id}/adjustments",
|
|
104
|
-
)(pathParams);
|
|
103
|
+
const path = pathToFunc("/v3/transactions/{transactionId}")(pathParams);
|
|
105
104
|
|
|
106
105
|
const headers = new Headers(compactMap({
|
|
107
106
|
"Content-Type": "application/json",
|
|
108
107
|
Accept: "application/json",
|
|
109
|
-
"Idempotency-Key": encodeSimple(
|
|
110
|
-
"Idempotency-Key",
|
|
111
|
-
payload["Idempotency-Key"],
|
|
112
|
-
{ explode: false, charEncoding: "none" },
|
|
113
|
-
),
|
|
114
|
-
"User-Agent": encodeSimple("User-Agent", payload["User-Agent"], {
|
|
115
|
-
explode: false,
|
|
116
|
-
charEncoding: "none",
|
|
117
|
-
}),
|
|
118
|
-
"X-Network-Request-Id": encodeSimple(
|
|
119
|
-
"X-Network-Request-Id",
|
|
120
|
-
payload["X-Network-Request-Id"],
|
|
121
|
-
{ explode: false, charEncoding: "none" },
|
|
122
|
-
),
|
|
123
|
-
"X-Network-Role": encodeSimple(
|
|
124
|
-
"X-Network-Role",
|
|
125
|
-
payload["X-Network-Role"],
|
|
126
|
-
{ explode: false, charEncoding: "none" },
|
|
127
|
-
),
|
|
128
108
|
}));
|
|
129
109
|
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
type: "http:basic",
|
|
134
|
-
value: { username: security?.username, password: security?.password },
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
);
|
|
110
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
111
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
112
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
138
113
|
|
|
139
114
|
const context = {
|
|
140
115
|
options: client._options,
|
|
141
116
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
142
|
-
operationID: "
|
|
117
|
+
operationID: "TransactionsController_update",
|
|
143
118
|
oAuth2Scopes: null,
|
|
144
119
|
|
|
145
120
|
resolvedSecurity: requestSecurity,
|
|
146
121
|
|
|
147
|
-
securitySource:
|
|
122
|
+
securitySource: client._options.bearer,
|
|
148
123
|
retryConfig: options?.retries
|
|
149
124
|
|| client._options.retryConfig
|
|
150
125
|
|| {
|
|
@@ -163,7 +138,7 @@ async function $do(
|
|
|
163
138
|
|
|
164
139
|
const requestRes = client._createRequest(context, {
|
|
165
140
|
security: requestSecurity,
|
|
166
|
-
method: "
|
|
141
|
+
method: "PATCH",
|
|
167
142
|
baseURL: options?.serverURL,
|
|
168
143
|
path: path,
|
|
169
144
|
headers: headers,
|
|
@@ -190,7 +165,7 @@ async function $do(
|
|
|
190
165
|
const response = doResult.value;
|
|
191
166
|
|
|
192
167
|
const [result] = await M.match<
|
|
193
|
-
models.
|
|
168
|
+
models.StoredTransactionResponseDto,
|
|
194
169
|
| OatFiSDKError
|
|
195
170
|
| ResponseValidationError
|
|
196
171
|
| ConnectionError
|
|
@@ -200,8 +175,8 @@ async function $do(
|
|
|
200
175
|
| UnexpectedClientError
|
|
201
176
|
| SDKValidationError
|
|
202
177
|
>(
|
|
203
|
-
M.json(200, models.
|
|
204
|
-
M.fail([400,
|
|
178
|
+
M.json(200, models.StoredTransactionResponseDto$inboundSchema),
|
|
179
|
+
M.fail([400, 403, 404, 429, "4XX"]),
|
|
205
180
|
M.fail("5XX"),
|
|
206
181
|
)(response, req);
|
|
207
182
|
if (!result.ok) {
|
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.12.
|
|
73
|
-
genVersion: "2.
|
|
72
|
+
sdkVersion: "0.12.6",
|
|
73
|
+
genVersion: "2.915.0",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/typescript 0.12.
|
|
75
|
+
"speakeasy-sdk/typescript 0.12.6 2.915.0 3.0.0 @oatfi/oatfi-sdk-ts",
|
|
76
76
|
} as const;
|
|
@@ -10,9 +10,6 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
10
10
|
import * as types from "../types/primitives.js";
|
|
11
11
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Adjustment classification. Mirrors the partner-side CreateAdjustmentDto.type enum.
|
|
15
|
-
*/
|
|
16
13
|
export const AdjustmentResponseDtoType = {
|
|
17
14
|
Reward: "REWARD",
|
|
18
15
|
Return: "RETURN",
|
|
@@ -25,9 +22,6 @@ export const AdjustmentResponseDtoType = {
|
|
|
25
22
|
FeeOther: "FEE_OTHER",
|
|
26
23
|
Other: "OTHER",
|
|
27
24
|
} as const;
|
|
28
|
-
/**
|
|
29
|
-
* Adjustment classification. Mirrors the partner-side CreateAdjustmentDto.type enum.
|
|
30
|
-
*/
|
|
31
25
|
export type AdjustmentResponseDtoType = ClosedEnum<
|
|
32
26
|
typeof AdjustmentResponseDtoType
|
|
33
27
|
>;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import * as types from "../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
15
|
+
*/
|
|
16
|
+
export const BusinessDataResponseDtoStatus = {
|
|
17
|
+
Active: "active",
|
|
18
|
+
Inactive: "inactive",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
22
|
+
*/
|
|
23
|
+
export type BusinessDataResponseDtoStatus = ClosedEnum<
|
|
24
|
+
typeof BusinessDataResponseDtoStatus
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
export type BusinessDataResponseDto = {
|
|
28
|
+
/**
|
|
29
|
+
* Partner-assigned external id (the path key).
|
|
30
|
+
*/
|
|
31
|
+
externalId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Lender-side account state. inactive covers suspended/frozen/closed/blocked.
|
|
34
|
+
*/
|
|
35
|
+
status: BusinessDataResponseDtoStatus;
|
|
36
|
+
/**
|
|
37
|
+
* Legal business name.
|
|
38
|
+
*/
|
|
39
|
+
name?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Tax id (e.g. EIN).
|
|
42
|
+
*/
|
|
43
|
+
taxId?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Legal entity type.
|
|
46
|
+
*/
|
|
47
|
+
businessEntityType?: string | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Unix ms when the lender created its record.
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unix ms of the last update.
|
|
54
|
+
*/
|
|
55
|
+
updatedAt?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const BusinessDataResponseDtoStatus$inboundSchema: z.ZodNativeEnum<
|
|
60
|
+
typeof BusinessDataResponseDtoStatus
|
|
61
|
+
> = z.nativeEnum(BusinessDataResponseDtoStatus);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const BusinessDataResponseDto$inboundSchema: z.ZodType<
|
|
65
|
+
BusinessDataResponseDto,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
external_id: types.string(),
|
|
70
|
+
status: BusinessDataResponseDtoStatus$inboundSchema,
|
|
71
|
+
name: z.nullable(types.string()).optional(),
|
|
72
|
+
tax_id: z.nullable(types.string()).optional(),
|
|
73
|
+
business_entity_type: z.nullable(types.string()).optional(),
|
|
74
|
+
created_at: types.optional(types.number()),
|
|
75
|
+
updated_at: types.optional(types.number()),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return remap$(v, {
|
|
78
|
+
"external_id": "externalId",
|
|
79
|
+
"tax_id": "taxId",
|
|
80
|
+
"business_entity_type": "businessEntityType",
|
|
81
|
+
"created_at": "createdAt",
|
|
82
|
+
"updated_at": "updatedAt",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function businessDataResponseDtoFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<BusinessDataResponseDto, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => BusinessDataResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'BusinessDataResponseDto' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -10,11 +10,16 @@ export type BusinessRefDto = {
|
|
|
10
10
|
* Partner-assigned external id — the lender's natural key for the business.
|
|
11
11
|
*/
|
|
12
12
|
externalId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The program's external_program_id (string, not the Network's internal UUID). Role-scoped: the LMS program external id in a buyer block, the IPP program external id in a vendor block.
|
|
15
|
+
*/
|
|
16
|
+
programId: string;
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
/** @internal */
|
|
16
20
|
export type BusinessRefDto$Outbound = {
|
|
17
21
|
external_id: string;
|
|
22
|
+
program_id: string;
|
|
18
23
|
};
|
|
19
24
|
|
|
20
25
|
/** @internal */
|
|
@@ -24,9 +29,11 @@ export const BusinessRefDto$outboundSchema: z.ZodType<
|
|
|
24
29
|
BusinessRefDto
|
|
25
30
|
> = z.object({
|
|
26
31
|
externalId: z.string(),
|
|
32
|
+
programId: z.string(),
|
|
27
33
|
}).transform((v) => {
|
|
28
34
|
return remap$(v, {
|
|
29
35
|
externalId: "external_id",
|
|
36
|
+
programId: "program_id",
|
|
30
37
|
});
|
|
31
38
|
});
|
|
32
39
|
|
|
@@ -8,57 +8,187 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
10
|
import * as types from "../types/primitives.js";
|
|
11
|
+
import { AddressDto, AddressDto$inboundSchema } from "./addressdto.js";
|
|
11
12
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
IncreaseDataDto,
|
|
15
|
+
IncreaseDataDto$inboundSchema,
|
|
16
|
+
} from "./increasedatadto.js";
|
|
12
17
|
|
|
13
18
|
/**
|
|
14
|
-
*
|
|
19
|
+
* Current status of the business account
|
|
15
20
|
*/
|
|
16
|
-
export const
|
|
17
|
-
Active: "
|
|
18
|
-
|
|
21
|
+
export const AccountStatus = {
|
|
22
|
+
Active: "ACTIVE",
|
|
23
|
+
Frozen: "FROZEN",
|
|
24
|
+
Inactive: "INACTIVE",
|
|
25
|
+
Closed: "CLOSED",
|
|
26
|
+
BlockList: "BLOCK_LIST",
|
|
19
27
|
} as const;
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
29
|
+
* Current status of the business account
|
|
22
30
|
*/
|
|
23
|
-
export type
|
|
24
|
-
|
|
31
|
+
export type AccountStatus = ClosedEnum<typeof AccountStatus>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Current sub-status of the business account
|
|
35
|
+
*/
|
|
36
|
+
export const AccountSubStatus = {
|
|
37
|
+
Standard: "STANDARD",
|
|
38
|
+
Manual: "MANUAL",
|
|
39
|
+
ManualLock: "MANUAL_LOCK",
|
|
40
|
+
Dq: "DQ",
|
|
41
|
+
WaiveDrawRules: "WAIVE_DRAW_RULES",
|
|
42
|
+
Unit: "UNIT",
|
|
43
|
+
} as const;
|
|
44
|
+
/**
|
|
45
|
+
* Current sub-status of the business account
|
|
46
|
+
*/
|
|
47
|
+
export type AccountSubStatus = ClosedEnum<typeof AccountSubStatus>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Source of the requested credit limit.
|
|
51
|
+
*/
|
|
52
|
+
export const BusinessResponseDtoRequestedLimitSource = {
|
|
53
|
+
Partner: "Partner",
|
|
54
|
+
Customer: "Customer",
|
|
55
|
+
} as const;
|
|
56
|
+
/**
|
|
57
|
+
* Source of the requested credit limit.
|
|
58
|
+
*/
|
|
59
|
+
export type BusinessResponseDtoRequestedLimitSource = ClosedEnum<
|
|
60
|
+
typeof BusinessResponseDtoRequestedLimitSource
|
|
25
61
|
>;
|
|
26
62
|
|
|
27
63
|
export type BusinessResponseDto = {
|
|
28
64
|
/**
|
|
29
|
-
*
|
|
65
|
+
* Unique identifier for the business.
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* String representing the object's type. Always 'business'.
|
|
70
|
+
*/
|
|
71
|
+
object: string;
|
|
72
|
+
/**
|
|
73
|
+
* External identifier for the business.
|
|
74
|
+
*/
|
|
75
|
+
externalId?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Identifier of the platform this business is associated with.
|
|
78
|
+
*/
|
|
79
|
+
platform?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* List of financial account IDs associated with this business.
|
|
82
|
+
*/
|
|
83
|
+
financialAccounts?: Array<string> | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* List of Plaid token IDs associated with this business.
|
|
86
|
+
*/
|
|
87
|
+
plaidTokens?: Array<string> | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* List of person IDs associated with this business.
|
|
90
|
+
*/
|
|
91
|
+
persons?: Array<string> | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Legal name of the business.
|
|
94
|
+
*/
|
|
95
|
+
name?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Doing Business As (DBA) name.
|
|
98
|
+
*/
|
|
99
|
+
dbaName?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Tax ID (e.g., EIN for US businesses).
|
|
102
|
+
*/
|
|
103
|
+
taxId?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Business address.
|
|
106
|
+
*/
|
|
107
|
+
address?: AddressDto | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Contact person's first name. Populated from the primary user's first name.
|
|
110
|
+
*/
|
|
111
|
+
contactFirstName?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Contact person's last name. Populated from the primary user's last name.
|
|
114
|
+
*/
|
|
115
|
+
contactLastName?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Contact person's email address. Populated from the primary user's email.
|
|
118
|
+
*/
|
|
119
|
+
contactEmail?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Contact person's phone number.
|
|
122
|
+
*/
|
|
123
|
+
contactPhone?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Month the business started (MM).
|
|
126
|
+
*/
|
|
127
|
+
businessStartDateMonth?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Year the business started (YYYY).
|
|
30
130
|
*/
|
|
31
|
-
|
|
131
|
+
businessStartDateYear?: string | undefined;
|
|
32
132
|
/**
|
|
33
|
-
*
|
|
133
|
+
* Type of business entity (e.g., corporation, llc).
|
|
34
134
|
*/
|
|
35
|
-
|
|
135
|
+
businessEntityType?: string | undefined;
|
|
36
136
|
/**
|
|
37
|
-
*
|
|
137
|
+
* Current status of the business account
|
|
38
138
|
*/
|
|
39
|
-
|
|
139
|
+
accountStatus?: AccountStatus | undefined;
|
|
40
140
|
/**
|
|
41
|
-
*
|
|
141
|
+
* Current sub-status of the business account
|
|
42
142
|
*/
|
|
43
|
-
|
|
143
|
+
accountSubStatus?: AccountSubStatus | undefined;
|
|
44
144
|
/**
|
|
45
|
-
*
|
|
145
|
+
* Timestamp of when the business was created.
|
|
46
146
|
*/
|
|
47
|
-
|
|
147
|
+
createdAt?: Date | undefined;
|
|
48
148
|
/**
|
|
49
|
-
*
|
|
149
|
+
* Timestamp of when the business was last updated.
|
|
50
150
|
*/
|
|
51
|
-
|
|
151
|
+
updatedAt?: Date | undefined;
|
|
52
152
|
/**
|
|
53
|
-
*
|
|
153
|
+
* List of user IDs associated with this business.
|
|
54
154
|
*/
|
|
55
|
-
|
|
155
|
+
users?: Array<string> | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* ID of the primary user associated with this business.
|
|
158
|
+
*/
|
|
159
|
+
primaryUser?: string | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Source of the requested credit limit.
|
|
162
|
+
*/
|
|
163
|
+
requestedLimitSource?: BusinessResponseDtoRequestedLimitSource | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Requested credit limit amount.
|
|
166
|
+
*/
|
|
167
|
+
requestedCreditLimit?: number | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* A set of key-value pairs that can be used to store additional information about the object.
|
|
170
|
+
*/
|
|
171
|
+
metadata?: { [k: string]: any } | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Increase account data associated with this business.
|
|
174
|
+
*/
|
|
175
|
+
increase?: IncreaseDataDto | undefined;
|
|
56
176
|
};
|
|
57
177
|
|
|
58
178
|
/** @internal */
|
|
59
|
-
export const
|
|
60
|
-
typeof
|
|
61
|
-
> = z.nativeEnum(
|
|
179
|
+
export const AccountStatus$inboundSchema: z.ZodNativeEnum<
|
|
180
|
+
typeof AccountStatus
|
|
181
|
+
> = z.nativeEnum(AccountStatus);
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const AccountSubStatus$inboundSchema: z.ZodNativeEnum<
|
|
185
|
+
typeof AccountSubStatus
|
|
186
|
+
> = z.nativeEnum(AccountSubStatus);
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export const BusinessResponseDtoRequestedLimitSource$inboundSchema:
|
|
190
|
+
z.ZodNativeEnum<typeof BusinessResponseDtoRequestedLimitSource> = z
|
|
191
|
+
.nativeEnum(BusinessResponseDtoRequestedLimitSource);
|
|
62
192
|
|
|
63
193
|
/** @internal */
|
|
64
194
|
export const BusinessResponseDto$inboundSchema: z.ZodType<
|
|
@@ -66,20 +196,57 @@ export const BusinessResponseDto$inboundSchema: z.ZodType<
|
|
|
66
196
|
z.ZodTypeDef,
|
|
67
197
|
unknown
|
|
68
198
|
> = z.object({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
199
|
+
id: types.string(),
|
|
200
|
+
object: types.string().default("business"),
|
|
201
|
+
external_id: types.optional(types.string()),
|
|
202
|
+
platform: types.optional(types.string()),
|
|
203
|
+
financial_accounts: types.optional(z.array(types.string())),
|
|
204
|
+
plaid_tokens: types.optional(z.array(types.string())),
|
|
205
|
+
persons: types.optional(z.array(types.string())),
|
|
206
|
+
name: types.optional(types.string()),
|
|
207
|
+
dba_name: types.optional(types.string()),
|
|
208
|
+
tax_id: types.optional(types.string()),
|
|
209
|
+
address: types.optional(AddressDto$inboundSchema),
|
|
210
|
+
contact_first_name: types.optional(types.string()),
|
|
211
|
+
contact_last_name: types.optional(types.string()),
|
|
212
|
+
contact_email: types.optional(types.string()),
|
|
213
|
+
contact_phone: types.optional(types.string()),
|
|
214
|
+
business_start_date_month: types.optional(types.string()),
|
|
215
|
+
business_start_date_year: types.optional(types.string()),
|
|
216
|
+
business_entity_type: types.optional(types.string()),
|
|
217
|
+
account_status: types.optional(AccountStatus$inboundSchema),
|
|
218
|
+
account_sub_status: types.optional(AccountSubStatus$inboundSchema),
|
|
219
|
+
created_at: types.optional(types.date()),
|
|
220
|
+
updated_at: types.optional(types.date()),
|
|
221
|
+
users: types.optional(z.array(types.string())),
|
|
222
|
+
primary_user: types.optional(types.string()),
|
|
223
|
+
requested_limit_source: types.optional(
|
|
224
|
+
BusinessResponseDtoRequestedLimitSource$inboundSchema,
|
|
225
|
+
),
|
|
226
|
+
requested_credit_limit: types.optional(types.number()),
|
|
227
|
+
metadata: types.optional(z.record(z.any())),
|
|
228
|
+
increase: types.optional(IncreaseDataDto$inboundSchema),
|
|
76
229
|
}).transform((v) => {
|
|
77
230
|
return remap$(v, {
|
|
78
231
|
"external_id": "externalId",
|
|
232
|
+
"financial_accounts": "financialAccounts",
|
|
233
|
+
"plaid_tokens": "plaidTokens",
|
|
234
|
+
"dba_name": "dbaName",
|
|
79
235
|
"tax_id": "taxId",
|
|
236
|
+
"contact_first_name": "contactFirstName",
|
|
237
|
+
"contact_last_name": "contactLastName",
|
|
238
|
+
"contact_email": "contactEmail",
|
|
239
|
+
"contact_phone": "contactPhone",
|
|
240
|
+
"business_start_date_month": "businessStartDateMonth",
|
|
241
|
+
"business_start_date_year": "businessStartDateYear",
|
|
80
242
|
"business_entity_type": "businessEntityType",
|
|
243
|
+
"account_status": "accountStatus",
|
|
244
|
+
"account_sub_status": "accountSubStatus",
|
|
81
245
|
"created_at": "createdAt",
|
|
82
246
|
"updated_at": "updatedAt",
|
|
247
|
+
"primary_user": "primaryUser",
|
|
248
|
+
"requested_limit_source": "requestedLimitSource",
|
|
249
|
+
"requested_credit_limit": "requestedCreditLimit",
|
|
83
250
|
});
|
|
84
251
|
});
|
|
85
252
|
|
|
@@ -6,9 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Adjustment classification. Mirrors the partner-side CreateAdjustmentDto.type enum.
|
|
11
|
-
*/
|
|
12
9
|
export const CreateAdjustmentDtoType = {
|
|
13
10
|
Reward: "REWARD",
|
|
14
11
|
Return: "RETURN",
|
|
@@ -21,9 +18,6 @@ export const CreateAdjustmentDtoType = {
|
|
|
21
18
|
FeeOther: "FEE_OTHER",
|
|
22
19
|
Other: "OTHER",
|
|
23
20
|
} as const;
|
|
24
|
-
/**
|
|
25
|
-
* Adjustment classification. Mirrors the partner-side CreateAdjustmentDto.type enum.
|
|
26
|
-
*/
|
|
27
21
|
export type CreateAdjustmentDtoType = ClosedEnum<
|
|
28
22
|
typeof CreateAdjustmentDtoType
|
|
29
23
|
>;
|