@oatfi/oatfi-sdk-ts 0.11.63 → 0.11.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/commonjs/funcs/businessesSubmitSupplementalData.d.ts +18 -0
- package/dist/commonjs/funcs/businessesSubmitSupplementalData.d.ts.map +1 -0
- package/dist/commonjs/funcs/businessesSubmitSupplementalData.js +135 -0
- package/dist/commonjs/funcs/businessesSubmitSupplementalData.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/accountstatementlistresponse.d.ts +2 -5
- package/dist/commonjs/models/accountstatementlistresponse.d.ts.map +1 -1
- package/dist/commonjs/models/accountstatementlistresponse.js +3 -8
- package/dist/commonjs/models/accountstatementlistresponse.js.map +1 -1
- package/dist/commonjs/models/businessbalancedto.d.ts +2 -2
- package/dist/commonjs/models/businessbalancedto.d.ts.map +1 -1
- package/dist/commonjs/models/businessbalancedto.js +4 -2
- package/dist/commonjs/models/businessbalancedto.js.map +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.d.ts +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.d.ts.map +1 -1
- package/dist/commonjs/models/businessbalancesummarydto.js +2 -1
- package/dist/commonjs/models/businessbalancesummarydto.js.map +1 -1
- package/dist/commonjs/models/businesslistresponsedto.d.ts +2 -5
- package/dist/commonjs/models/businesslistresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/businesslistresponsedto.js +3 -8
- package/dist/commonjs/models/businesslistresponsedto.js.map +1 -1
- package/dist/commonjs/models/createoriginationofferdto.d.ts +8 -8
- package/dist/commonjs/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/commonjs/models/createoriginationofferdto.js +8 -5
- package/dist/commonjs/models/createoriginationofferdto.js.map +1 -1
- package/dist/commonjs/models/createsupplementaldatadto.d.ts +64 -0
- package/dist/commonjs/models/createsupplementaldatadto.d.ts.map +1 -0
- package/dist/commonjs/models/createsupplementaldatadto.js +86 -0
- package/dist/commonjs/models/createsupplementaldatadto.js.map +1 -0
- package/dist/commonjs/models/financialaccountdatadto.d.ts +2 -2
- package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/commonjs/models/financialaccountdatadto.js +4 -2
- package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
- package/dist/commonjs/models/increaseaccountstatement.d.ts +49 -0
- package/dist/commonjs/models/increaseaccountstatement.d.ts.map +1 -0
- package/dist/commonjs/models/increaseaccountstatement.js +71 -0
- package/dist/commonjs/models/increaseaccountstatement.js.map +1 -0
- package/dist/commonjs/models/increasetransactiondto.d.ts +1 -1
- package/dist/commonjs/models/increasetransactiondto.d.ts.map +1 -1
- package/dist/commonjs/models/increasetransactiondto.js +2 -1
- package/dist/commonjs/models/increasetransactiondto.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.d.ts +23 -0
- package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.d.ts.map +1 -0
- package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.js +58 -0
- package/dist/commonjs/models/operations/businessescontrollercreatesupplementaldata.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/originationbalancedto.d.ts +1 -1
- package/dist/commonjs/models/originationbalancedto.d.ts.map +1 -1
- package/dist/commonjs/models/originationbalancedto.js +2 -2
- package/dist/commonjs/models/originationbalancedto.js.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.d.ts +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentintentresponsedto.js +2 -1
- package/dist/commonjs/models/paymentintentresponsedto.js.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.d.ts +2 -2
- package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/commonjs/models/paymentraildatadto.js +4 -2
- package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
- package/dist/commonjs/models/platformcomponentsdto.d.ts +1 -1
- package/dist/commonjs/models/platformcomponentsdto.d.ts.map +1 -1
- package/dist/commonjs/models/platformcomponentsdto.js +6 -1
- package/dist/commonjs/models/platformcomponentsdto.js.map +1 -1
- package/dist/commonjs/models/startunderwritingdto.d.ts +2 -2
- package/dist/commonjs/models/startunderwritingdto.d.ts.map +1 -1
- package/dist/commonjs/models/startunderwritingdto.js +6 -1
- package/dist/commonjs/models/startunderwritingdto.js.map +1 -1
- package/dist/commonjs/models/supplementaldataresponsedto.d.ts +87 -0
- package/dist/commonjs/models/supplementaldataresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/supplementaldataresponsedto.js +104 -0
- package/dist/commonjs/models/supplementaldataresponsedto.js.map +1 -0
- package/dist/commonjs/models/underwritingresponsedto.d.ts +2 -2
- package/dist/commonjs/models/underwritingresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/underwritingresponsedto.js +4 -2
- package/dist/commonjs/models/underwritingresponsedto.js.map +1 -1
- package/dist/commonjs/models/underwritingstatusdto.d.ts +2 -2
- package/dist/commonjs/models/underwritingstatusdto.d.ts.map +1 -1
- package/dist/commonjs/models/underwritingstatusdto.js +4 -2
- package/dist/commonjs/models/underwritingstatusdto.js.map +1 -1
- package/dist/commonjs/sdk/businesses.d.ts +7 -0
- package/dist/commonjs/sdk/businesses.d.ts.map +1 -1
- package/dist/commonjs/sdk/businesses.js +10 -0
- package/dist/commonjs/sdk/businesses.js.map +1 -1
- package/dist/esm/funcs/businessesSubmitSupplementalData.d.ts +18 -0
- package/dist/esm/funcs/businessesSubmitSupplementalData.d.ts.map +1 -0
- package/dist/esm/funcs/businessesSubmitSupplementalData.js +99 -0
- package/dist/esm/funcs/businessesSubmitSupplementalData.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/accountstatementlistresponse.d.ts +2 -5
- package/dist/esm/models/accountstatementlistresponse.d.ts.map +1 -1
- package/dist/esm/models/accountstatementlistresponse.js +2 -6
- package/dist/esm/models/accountstatementlistresponse.js.map +1 -1
- package/dist/esm/models/businessbalancedto.d.ts +2 -2
- package/dist/esm/models/businessbalancedto.d.ts.map +1 -1
- package/dist/esm/models/businessbalancedto.js +4 -2
- package/dist/esm/models/businessbalancedto.js.map +1 -1
- package/dist/esm/models/businessbalancesummarydto.d.ts +1 -1
- package/dist/esm/models/businessbalancesummarydto.d.ts.map +1 -1
- package/dist/esm/models/businessbalancesummarydto.js +2 -1
- package/dist/esm/models/businessbalancesummarydto.js.map +1 -1
- package/dist/esm/models/businesslistresponsedto.d.ts +2 -5
- package/dist/esm/models/businesslistresponsedto.d.ts.map +1 -1
- package/dist/esm/models/businesslistresponsedto.js +2 -6
- package/dist/esm/models/businesslistresponsedto.js.map +1 -1
- package/dist/esm/models/createoriginationofferdto.d.ts +8 -8
- package/dist/esm/models/createoriginationofferdto.d.ts.map +1 -1
- package/dist/esm/models/createoriginationofferdto.js +8 -5
- package/dist/esm/models/createoriginationofferdto.js.map +1 -1
- package/dist/esm/models/createsupplementaldatadto.d.ts +64 -0
- package/dist/esm/models/createsupplementaldatadto.d.ts.map +1 -0
- package/dist/esm/models/createsupplementaldatadto.js +48 -0
- package/dist/esm/models/createsupplementaldatadto.js.map +1 -0
- package/dist/esm/models/financialaccountdatadto.d.ts +2 -2
- package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
- package/dist/esm/models/financialaccountdatadto.js +4 -2
- package/dist/esm/models/financialaccountdatadto.js.map +1 -1
- package/dist/esm/models/increaseaccountstatement.d.ts +49 -0
- package/dist/esm/models/increaseaccountstatement.d.ts.map +1 -0
- package/dist/esm/models/increaseaccountstatement.js +34 -0
- package/dist/esm/models/increaseaccountstatement.js.map +1 -0
- package/dist/esm/models/increasetransactiondto.d.ts +1 -1
- package/dist/esm/models/increasetransactiondto.d.ts.map +1 -1
- package/dist/esm/models/increasetransactiondto.js +2 -1
- package/dist/esm/models/increasetransactiondto.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.d.ts +23 -0
- package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.d.ts.map +1 -0
- package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.js +21 -0
- package/dist/esm/models/operations/businessescontrollercreatesupplementaldata.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/originationbalancedto.d.ts +1 -1
- package/dist/esm/models/originationbalancedto.d.ts.map +1 -1
- package/dist/esm/models/originationbalancedto.js +2 -2
- package/dist/esm/models/originationbalancedto.js.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.d.ts +1 -1
- package/dist/esm/models/paymentintentresponsedto.d.ts.map +1 -1
- package/dist/esm/models/paymentintentresponsedto.js +2 -1
- package/dist/esm/models/paymentintentresponsedto.js.map +1 -1
- package/dist/esm/models/paymentraildatadto.d.ts +2 -2
- package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
- package/dist/esm/models/paymentraildatadto.js +4 -2
- package/dist/esm/models/paymentraildatadto.js.map +1 -1
- package/dist/esm/models/platformcomponentsdto.d.ts +1 -1
- package/dist/esm/models/platformcomponentsdto.d.ts.map +1 -1
- package/dist/esm/models/platformcomponentsdto.js +6 -1
- package/dist/esm/models/platformcomponentsdto.js.map +1 -1
- package/dist/esm/models/startunderwritingdto.d.ts +2 -2
- package/dist/esm/models/startunderwritingdto.d.ts.map +1 -1
- package/dist/esm/models/startunderwritingdto.js +6 -1
- package/dist/esm/models/startunderwritingdto.js.map +1 -1
- package/dist/esm/models/supplementaldataresponsedto.d.ts +87 -0
- package/dist/esm/models/supplementaldataresponsedto.d.ts.map +1 -0
- package/dist/esm/models/supplementaldataresponsedto.js +67 -0
- package/dist/esm/models/supplementaldataresponsedto.js.map +1 -0
- package/dist/esm/models/underwritingresponsedto.d.ts +2 -2
- package/dist/esm/models/underwritingresponsedto.d.ts.map +1 -1
- package/dist/esm/models/underwritingresponsedto.js +4 -2
- package/dist/esm/models/underwritingresponsedto.js.map +1 -1
- package/dist/esm/models/underwritingstatusdto.d.ts +2 -2
- package/dist/esm/models/underwritingstatusdto.d.ts.map +1 -1
- package/dist/esm/models/underwritingstatusdto.js +4 -2
- package/dist/esm/models/underwritingstatusdto.js.map +1 -1
- package/dist/esm/sdk/businesses.d.ts +7 -0
- package/dist/esm/sdk/businesses.d.ts.map +1 -1
- package/dist/esm/sdk/businesses.js +10 -0
- package/dist/esm/sdk/businesses.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/businessesSubmitSupplementalData.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/accountstatementlistresponse.ts +6 -21
- package/src/models/businessbalancedto.ts +6 -4
- package/src/models/businessbalancesummarydto.ts +3 -2
- package/src/models/businesslistresponsedto.ts +6 -21
- package/src/models/createoriginationofferdto.ts +16 -13
- package/src/models/createsupplementaldatadto.ts +107 -0
- package/src/models/financialaccountdatadto.ts +6 -4
- package/src/models/increaseaccountstatement.ts +91 -0
- package/src/models/increasetransactiondto.ts +3 -2
- package/src/models/index.ts +3 -0
- package/src/models/operations/businessescontrollercreatesupplementaldata.ts +54 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/originationbalancedto.ts +3 -3
- package/src/models/paymentintentresponsedto.ts +3 -2
- package/src/models/paymentraildatadto.ts +6 -4
- package/src/models/platformcomponentsdto.ts +7 -2
- package/src/models/startunderwritingdto.ts +8 -3
- package/src/models/supplementaldataresponsedto.ts +134 -0
- package/src/models/underwritingresponsedto.ts +6 -4
- package/src/models/underwritingstatusdto.ts +6 -4
- package/src/sdk/businesses.ts +18 -0
|
@@ -15,6 +15,7 @@ import { businessesGetVirtualAccountInformation } from "../funcs/businessesGetVi
|
|
|
15
15
|
import { businessesList } from "../funcs/businessesList.js";
|
|
16
16
|
import { businessesSearch } from "../funcs/businessesSearch.js";
|
|
17
17
|
import { businessesStartUnderwriting } from "../funcs/businessesStartUnderwriting.js";
|
|
18
|
+
import { businessesSubmitSupplementalData } from "../funcs/businessesSubmitSupplementalData.js";
|
|
18
19
|
import { businessesUpdate } from "../funcs/businessesUpdate.js";
|
|
19
20
|
import { ClientSDK } from "../lib/sdks.js";
|
|
20
21
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -125,5 +126,14 @@ export class Businesses extends ClientSDK {
|
|
|
125
126
|
async getAccountHolderInformation(request, options) {
|
|
126
127
|
return unwrapAsync(businessesGetAccountHolderInformation(this, request, options));
|
|
127
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Submit supplemental data for a business
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* Provides supplemental data used for underwriting a business. Data is processed by source-specific handlers.
|
|
134
|
+
*/
|
|
135
|
+
async submitSupplementalData(request, options) {
|
|
136
|
+
return unwrapAsync(businessesSubmitSupplementalData(this, request, options));
|
|
137
|
+
}
|
|
128
138
|
}
|
|
129
139
|
//# sourceMappingURL=businesses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../../src/sdk/businesses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAA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AAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sCAAsC,CAC1C,OAAiE,EACjE,OAAwB;QAOxB,OAAO,oBAAoB,CACzB,gDAAgD,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAkE,EAClE,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAA2E,EAC3E,OAAwB;QAExB,OAAO,WAAW,CAAC,sCAAsC,CACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAA0E,EAC1E,OAAwB;QAExB,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../../src/sdk/businesses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qCAAqC,EA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OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAkE,EAClE,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAA2E,EAC3E,OAAwB;QAExB,OAAO,WAAW,CAAC,sCAAsC,CACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAA0E,EAC1E,OAAwB;QAExB,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAqE,EACrE,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OatFiSDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, 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
|
+
* Submit supplemental data for a business
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Provides supplemental data used for underwriting a business. Data is processed by source-specific handlers.
|
|
33
|
+
*/
|
|
34
|
+
export function businessesSubmitSupplementalData(
|
|
35
|
+
client: OatFiSDKCore,
|
|
36
|
+
request: operations.BusinessesControllerCreateSupplementalDataRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
models.SupplementalDataResponseDto,
|
|
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.BusinessesControllerCreateSupplementalDataRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
models.SupplementalDataResponseDto,
|
|
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
|
+
.BusinessesControllerCreateSupplementalDataRequest$outboundSchema.parse(
|
|
83
|
+
value,
|
|
84
|
+
),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = encodeJSON("body", payload.CreateSupplementalDataDto, {
|
|
92
|
+
explode: true,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const pathParams = {
|
|
96
|
+
id: encodeSimple("id", payload.id, {
|
|
97
|
+
explode: false,
|
|
98
|
+
charEncoding: "percent",
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
const path = pathToFunc("/v3/businesses/{id}/supplemental-data")(pathParams);
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
"Idempotency-Key": encodeSimple(
|
|
107
|
+
"Idempotency-Key",
|
|
108
|
+
payload["Idempotency-Key"],
|
|
109
|
+
{ explode: false, charEncoding: "none" },
|
|
110
|
+
),
|
|
111
|
+
}));
|
|
112
|
+
|
|
113
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
114
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
115
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
+
|
|
117
|
+
const context = {
|
|
118
|
+
options: client._options,
|
|
119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
+
operationID: "BusinessesController_createSupplementalData",
|
|
121
|
+
oAuth2Scopes: null,
|
|
122
|
+
|
|
123
|
+
resolvedSecurity: requestSecurity,
|
|
124
|
+
|
|
125
|
+
securitySource: client._options.bearer,
|
|
126
|
+
retryConfig: options?.retries
|
|
127
|
+
|| client._options.retryConfig
|
|
128
|
+
|| {
|
|
129
|
+
strategy: "backoff",
|
|
130
|
+
backoff: {
|
|
131
|
+
initialInterval: 500,
|
|
132
|
+
maxInterval: 60000,
|
|
133
|
+
exponent: 1.5,
|
|
134
|
+
maxElapsedTime: 120000,
|
|
135
|
+
},
|
|
136
|
+
retryConnectionErrors: true,
|
|
137
|
+
}
|
|
138
|
+
|| { strategy: "none" },
|
|
139
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const requestRes = client._createRequest(context, {
|
|
143
|
+
security: requestSecurity,
|
|
144
|
+
method: "POST",
|
|
145
|
+
baseURL: options?.serverURL,
|
|
146
|
+
path: path,
|
|
147
|
+
headers: headers,
|
|
148
|
+
body: body,
|
|
149
|
+
userAgent: client._options.userAgent,
|
|
150
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
151
|
+
}, options);
|
|
152
|
+
if (!requestRes.ok) {
|
|
153
|
+
return [requestRes, { status: "invalid" }];
|
|
154
|
+
}
|
|
155
|
+
const req = requestRes.value;
|
|
156
|
+
|
|
157
|
+
const doResult = await client._do(req, {
|
|
158
|
+
context,
|
|
159
|
+
errorCodes: ["400", "404", "4XX", "5XX"],
|
|
160
|
+
retryConfig: context.retryConfig,
|
|
161
|
+
retryCodes: context.retryCodes,
|
|
162
|
+
});
|
|
163
|
+
if (!doResult.ok) {
|
|
164
|
+
return [doResult, { status: "request-error", request: req }];
|
|
165
|
+
}
|
|
166
|
+
const response = doResult.value;
|
|
167
|
+
|
|
168
|
+
const [result] = await M.match<
|
|
169
|
+
models.SupplementalDataResponseDto,
|
|
170
|
+
| OatFiSDKError
|
|
171
|
+
| ResponseValidationError
|
|
172
|
+
| ConnectionError
|
|
173
|
+
| RequestAbortedError
|
|
174
|
+
| RequestTimeoutError
|
|
175
|
+
| InvalidRequestError
|
|
176
|
+
| UnexpectedClientError
|
|
177
|
+
| SDKValidationError
|
|
178
|
+
>(
|
|
179
|
+
M.json(201, models.SupplementalDataResponseDto$inboundSchema),
|
|
180
|
+
M.fail([400, 404, "4XX"]),
|
|
181
|
+
M.fail("5XX"),
|
|
182
|
+
)(response, req);
|
|
183
|
+
if (!result.ok) {
|
|
184
|
+
return [result, { status: "complete", request: req, response }];
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return [result, { status: "complete", request: req, response }];
|
|
188
|
+
}
|
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.
|
|
72
|
+
sdkVersion: "0.11.65",
|
|
73
73
|
genVersion: "2.869.25",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/typescript 0.11.
|
|
75
|
+
"speakeasy-sdk/typescript 0.11.65 2.869.25 3.0.0 @oatfi/oatfi-sdk-ts",
|
|
76
76
|
} as const;
|
|
@@ -8,8 +8,10 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import * as types from "../types/primitives.js";
|
|
10
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
import {
|
|
12
|
+
IncreaseAccountStatement,
|
|
13
|
+
IncreaseAccountStatement$inboundSchema,
|
|
14
|
+
} from "./increaseaccountstatement.js";
|
|
13
15
|
|
|
14
16
|
export type AccountStatementListResponse = {
|
|
15
17
|
/**
|
|
@@ -19,7 +21,7 @@ export type AccountStatementListResponse = {
|
|
|
19
21
|
/**
|
|
20
22
|
* Array of account statements
|
|
21
23
|
*/
|
|
22
|
-
data: Array<
|
|
24
|
+
data: Array<IncreaseAccountStatement>;
|
|
23
25
|
/**
|
|
24
26
|
* Whether there are more items to fetch
|
|
25
27
|
*/
|
|
@@ -30,23 +32,6 @@ export type AccountStatementListResponse = {
|
|
|
30
32
|
total: number;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const AccountStatementListResponseData$inboundSchema: z.ZodType<
|
|
35
|
-
AccountStatementListResponseData,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({});
|
|
39
|
-
|
|
40
|
-
export function accountStatementListResponseDataFromJSON(
|
|
41
|
-
jsonString: string,
|
|
42
|
-
): SafeParseResult<AccountStatementListResponseData, SDKValidationError> {
|
|
43
|
-
return safeParse(
|
|
44
|
-
jsonString,
|
|
45
|
-
(x) => AccountStatementListResponseData$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
-
`Failed to parse 'AccountStatementListResponseData' from JSON`,
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
35
|
/** @internal */
|
|
51
36
|
export const AccountStatementListResponse$inboundSchema: z.ZodType<
|
|
52
37
|
AccountStatementListResponse,
|
|
@@ -54,7 +39,7 @@ export const AccountStatementListResponse$inboundSchema: z.ZodType<
|
|
|
54
39
|
unknown
|
|
55
40
|
> = z.object({
|
|
56
41
|
object: types.string().default("list"),
|
|
57
|
-
data: z.array(
|
|
42
|
+
data: z.array(IncreaseAccountStatement$inboundSchema),
|
|
58
43
|
has_more: types.boolean(),
|
|
59
44
|
total: types.number(),
|
|
60
45
|
}).transform((v) => {
|
|
@@ -25,11 +25,11 @@ export type BusinessBalanceDto = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Business identifier
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
businessId: string;
|
|
29
29
|
/**
|
|
30
30
|
* Program identifier
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
programId: string;
|
|
33
33
|
/**
|
|
34
34
|
* Total available credit limit in cents
|
|
35
35
|
*/
|
|
@@ -64,8 +64,8 @@ export const BusinessBalanceDto$inboundSchema: z.ZodType<
|
|
|
64
64
|
> = z.object({
|
|
65
65
|
object: types.string().default("business_balance"),
|
|
66
66
|
id: types.string(),
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
business_id: types.string(),
|
|
68
|
+
program_id: types.string(),
|
|
69
69
|
total_available_credit_limit: types.number(),
|
|
70
70
|
total_loans: types.number(),
|
|
71
71
|
originations: z.array(OriginationBalanceDto$inboundSchema),
|
|
@@ -74,6 +74,8 @@ export const BusinessBalanceDto$inboundSchema: z.ZodType<
|
|
|
74
74
|
metadata: types.optional(z.record(z.any())),
|
|
75
75
|
}).transform((v) => {
|
|
76
76
|
return remap$(v, {
|
|
77
|
+
"business_id": "businessId",
|
|
78
|
+
"program_id": "programId",
|
|
77
79
|
"total_available_credit_limit": "totalAvailableCreditLimit",
|
|
78
80
|
"total_loans": "totalLoans",
|
|
79
81
|
"created_at": "createdAt",
|
|
@@ -25,7 +25,7 @@ export type BusinessBalanceSummaryDto = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Business identifier
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
businessId: string;
|
|
29
29
|
/**
|
|
30
30
|
* Balance breakdown by product type
|
|
31
31
|
*/
|
|
@@ -48,12 +48,13 @@ export const BusinessBalanceSummaryDto$inboundSchema: z.ZodType<
|
|
|
48
48
|
> = z.object({
|
|
49
49
|
object: types.string(),
|
|
50
50
|
id: types.string(),
|
|
51
|
-
|
|
51
|
+
business_id: types.string(),
|
|
52
52
|
balance_by_product: BalanceByProductDto$inboundSchema,
|
|
53
53
|
created_at: types.string(),
|
|
54
54
|
updated_at: types.string(),
|
|
55
55
|
}).transform((v) => {
|
|
56
56
|
return remap$(v, {
|
|
57
|
+
"business_id": "businessId",
|
|
57
58
|
"balance_by_product": "balanceByProduct",
|
|
58
59
|
"created_at": "createdAt",
|
|
59
60
|
"updated_at": "updatedAt",
|
|
@@ -7,10 +7,12 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import * as types from "../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
BusinessResponseDto,
|
|
12
|
+
BusinessResponseDto$inboundSchema,
|
|
13
|
+
} from "./businessresponsedto.js";
|
|
10
14
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
15
|
|
|
12
|
-
export type BusinessListResponseDtoData = {};
|
|
13
|
-
|
|
14
16
|
export type BusinessListResponseDto = {
|
|
15
17
|
/**
|
|
16
18
|
* Type of the response
|
|
@@ -19,7 +21,7 @@ export type BusinessListResponseDto = {
|
|
|
19
21
|
/**
|
|
20
22
|
* Array of business objects
|
|
21
23
|
*/
|
|
22
|
-
data: Array<
|
|
24
|
+
data: Array<BusinessResponseDto>;
|
|
23
25
|
/**
|
|
24
26
|
* Whether there are more items to fetch
|
|
25
27
|
*/
|
|
@@ -30,23 +32,6 @@ export type BusinessListResponseDto = {
|
|
|
30
32
|
total: number;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const BusinessListResponseDtoData$inboundSchema: z.ZodType<
|
|
35
|
-
BusinessListResponseDtoData,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({});
|
|
39
|
-
|
|
40
|
-
export function businessListResponseDtoDataFromJSON(
|
|
41
|
-
jsonString: string,
|
|
42
|
-
): SafeParseResult<BusinessListResponseDtoData, SDKValidationError> {
|
|
43
|
-
return safeParse(
|
|
44
|
-
jsonString,
|
|
45
|
-
(x) => BusinessListResponseDtoData$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
-
`Failed to parse 'BusinessListResponseDtoData' from JSON`,
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
35
|
/** @internal */
|
|
51
36
|
export const BusinessListResponseDto$inboundSchema: z.ZodType<
|
|
52
37
|
BusinessListResponseDto,
|
|
@@ -54,7 +39,7 @@ export const BusinessListResponseDto$inboundSchema: z.ZodType<
|
|
|
54
39
|
unknown
|
|
55
40
|
> = z.object({
|
|
56
41
|
object: types.string().default("list"),
|
|
57
|
-
data: z.array(
|
|
42
|
+
data: z.array(BusinessResponseDto$inboundSchema),
|
|
58
43
|
has_more: types.boolean(),
|
|
59
44
|
total: types.number(),
|
|
60
45
|
}).transform((v) => {
|
|
@@ -14,15 +14,15 @@ export type CreateOriginationOfferDto = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The program identifier
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
programId: string;
|
|
18
18
|
/**
|
|
19
19
|
* The business identifier
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
businessId: string;
|
|
22
22
|
/**
|
|
23
23
|
* The platform identifier
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
platformId?: string | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Down payment due date
|
|
28
28
|
*/
|
|
@@ -54,7 +54,7 @@ export type CreateOriginationOfferDto = {
|
|
|
54
54
|
/**
|
|
55
55
|
* ID of the payment intent related to this offer
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
paymentIntentId?: string | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* The due date timestamp
|
|
60
60
|
*/
|
|
@@ -91,9 +91,9 @@ export function createOriginationOfferDtoMetadataToJSON(
|
|
|
91
91
|
|
|
92
92
|
/** @internal */
|
|
93
93
|
export type CreateOriginationOfferDto$Outbound = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
program_id: string;
|
|
95
|
+
business_id: string;
|
|
96
|
+
platform_id?: string | undefined;
|
|
97
97
|
down_payment_due_date?: string | undefined;
|
|
98
98
|
installments_start_date?: string | undefined;
|
|
99
99
|
payment_day_of_week?: string | undefined;
|
|
@@ -101,7 +101,7 @@ export type CreateOriginationOfferDto$Outbound = {
|
|
|
101
101
|
number_of_installments?: number | undefined;
|
|
102
102
|
hold_id?: string | undefined;
|
|
103
103
|
amount?: number | undefined;
|
|
104
|
-
|
|
104
|
+
payment_intent_id?: string | undefined;
|
|
105
105
|
due_date?: number | undefined;
|
|
106
106
|
repayment_date?: number | undefined;
|
|
107
107
|
metadata?: CreateOriginationOfferDtoMetadata$Outbound | undefined;
|
|
@@ -113,9 +113,9 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
|
|
|
113
113
|
z.ZodTypeDef,
|
|
114
114
|
CreateOriginationOfferDto
|
|
115
115
|
> = z.object({
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
programId: z.string(),
|
|
117
|
+
businessId: z.string(),
|
|
118
|
+
platformId: z.string().optional(),
|
|
119
119
|
downPaymentDueDate: z.string().optional(),
|
|
120
120
|
installmentsStartDate: z.string().optional(),
|
|
121
121
|
paymentDayOfWeek: z.string().optional(),
|
|
@@ -123,19 +123,22 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
|
|
|
123
123
|
numberOfInstallments: z.number().optional(),
|
|
124
124
|
holdId: z.string().optional(),
|
|
125
125
|
amount: z.number().optional(),
|
|
126
|
-
|
|
126
|
+
paymentIntentId: z.string().optional(),
|
|
127
127
|
dueDate: z.number().optional(),
|
|
128
128
|
repaymentDate: z.number().optional(),
|
|
129
129
|
metadata: z.lazy(() => CreateOriginationOfferDtoMetadata$outboundSchema)
|
|
130
130
|
.optional(),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
133
|
+
programId: "program_id",
|
|
134
|
+
businessId: "business_id",
|
|
135
|
+
platformId: "platform_id",
|
|
133
136
|
downPaymentDueDate: "down_payment_due_date",
|
|
134
137
|
installmentsStartDate: "installments_start_date",
|
|
135
138
|
paymentDayOfWeek: "payment_day_of_week",
|
|
136
139
|
numberOfInstallments: "number_of_installments",
|
|
137
140
|
holdId: "hold_id",
|
|
138
|
-
|
|
141
|
+
paymentIntentId: "payment_intent_id",
|
|
139
142
|
dueDate: "due_date",
|
|
140
143
|
repaymentDate: "repayment_date",
|
|
141
144
|
});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Source of the supplemental data
|
|
10
|
+
*/
|
|
11
|
+
export const CreateSupplementalDataDtoSource = {
|
|
12
|
+
Plaid: "PLAID",
|
|
13
|
+
Codat: "CODAT",
|
|
14
|
+
TaktileResponse: "TAKTILE_RESPONSE",
|
|
15
|
+
TaktileRequest: "TAKTILE_REQUEST",
|
|
16
|
+
Transcredit: "TRANSCREDIT",
|
|
17
|
+
TranscreditScores: "TRANSCREDIT_SCORES",
|
|
18
|
+
Heron: "HERON",
|
|
19
|
+
HeronPdf: "HERON_PDF",
|
|
20
|
+
OpenBanking: "OPEN_BANKING",
|
|
21
|
+
Alloy: "ALLOY",
|
|
22
|
+
CodatBalanceSheet: "CODAT_BALANCE_SHEET",
|
|
23
|
+
CodatAccountBalance: "CODAT_ACCOUNT_BALANCE",
|
|
24
|
+
CodatBankingTransactions: "CODAT_BANKING_TRANSACTIONS",
|
|
25
|
+
CodatPl: "CODAT_PL",
|
|
26
|
+
CodatAgedCreditor: "CODAT_AGED_CREDITOR",
|
|
27
|
+
CodatAgedDebtor: "CODAT_AGED_DEBTOR",
|
|
28
|
+
QuickbooksBalanceSheet: "QUICKBOOKS_BALANCE_SHEET",
|
|
29
|
+
QuickbooksPl: "QUICKBOOKS_PL",
|
|
30
|
+
FinancialStatementMetrics: "FINANCIAL_STATEMENT_METRICS",
|
|
31
|
+
PdfBalanceSheet: "PDF_BALANCE_SHEET",
|
|
32
|
+
PdfProfitLoss: "PDF_PROFIT_LOSS",
|
|
33
|
+
StripeFinancialConnectionsBalance: "STRIPE_FINANCIAL_CONNECTIONS_BALANCE",
|
|
34
|
+
StripeFinancialConnectionsTransactions:
|
|
35
|
+
"STRIPE_FINANCIAL_CONNECTIONS_TRANSACTIONS",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* Source of the supplemental data
|
|
39
|
+
*/
|
|
40
|
+
export type CreateSupplementalDataDtoSource = ClosedEnum<
|
|
41
|
+
typeof CreateSupplementalDataDtoSource
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Data payload from the source. Structure varies by source.
|
|
46
|
+
*/
|
|
47
|
+
export type CreateSupplementalDataDtoData = {};
|
|
48
|
+
|
|
49
|
+
export type CreateSupplementalDataDto = {
|
|
50
|
+
/**
|
|
51
|
+
* Source of the supplemental data
|
|
52
|
+
*/
|
|
53
|
+
source: CreateSupplementalDataDtoSource;
|
|
54
|
+
/**
|
|
55
|
+
* Data payload from the source. Structure varies by source.
|
|
56
|
+
*/
|
|
57
|
+
data: CreateSupplementalDataDtoData;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const CreateSupplementalDataDtoSource$outboundSchema: z.ZodNativeEnum<
|
|
62
|
+
typeof CreateSupplementalDataDtoSource
|
|
63
|
+
> = z.nativeEnum(CreateSupplementalDataDtoSource);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type CreateSupplementalDataDtoData$Outbound = {};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const CreateSupplementalDataDtoData$outboundSchema: z.ZodType<
|
|
70
|
+
CreateSupplementalDataDtoData$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
CreateSupplementalDataDtoData
|
|
73
|
+
> = z.object({});
|
|
74
|
+
|
|
75
|
+
export function createSupplementalDataDtoDataToJSON(
|
|
76
|
+
createSupplementalDataDtoData: CreateSupplementalDataDtoData,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
CreateSupplementalDataDtoData$outboundSchema.parse(
|
|
80
|
+
createSupplementalDataDtoData,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type CreateSupplementalDataDto$Outbound = {
|
|
87
|
+
source: string;
|
|
88
|
+
data: CreateSupplementalDataDtoData$Outbound;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const CreateSupplementalDataDto$outboundSchema: z.ZodType<
|
|
93
|
+
CreateSupplementalDataDto$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
CreateSupplementalDataDto
|
|
96
|
+
> = z.object({
|
|
97
|
+
source: CreateSupplementalDataDtoSource$outboundSchema,
|
|
98
|
+
data: z.lazy(() => CreateSupplementalDataDtoData$outboundSchema),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function createSupplementalDataDtoToJSON(
|
|
102
|
+
createSupplementalDataDto: CreateSupplementalDataDto,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(
|
|
105
|
+
CreateSupplementalDataDto$outboundSchema.parse(createSupplementalDataDto),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -121,7 +121,7 @@ export type FinancialAccountDataDto = {
|
|
|
121
121
|
/**
|
|
122
122
|
* Business ID
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
businessId?: string | undefined;
|
|
125
125
|
/**
|
|
126
126
|
* Lockbox Address
|
|
127
127
|
*/
|
|
@@ -288,7 +288,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
288
288
|
unit_account_id: types.optional(types.string()),
|
|
289
289
|
swift_code: types.optional(types.string()),
|
|
290
290
|
remittance_information: types.optional(types.string()),
|
|
291
|
-
|
|
291
|
+
business_id: types.optional(types.string()),
|
|
292
292
|
lockbox_address: types.optional(z.lazy(() => LockboxAddress$inboundSchema)),
|
|
293
293
|
account_number_id: types.optional(types.string()),
|
|
294
294
|
oatfi_account_number: types.optional(types.string()),
|
|
@@ -307,6 +307,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
|
|
|
307
307
|
"unit_account_id": "unitAccountId",
|
|
308
308
|
"swift_code": "swiftCode",
|
|
309
309
|
"remittance_information": "remittanceInformation",
|
|
310
|
+
"business_id": "businessId",
|
|
310
311
|
"lockbox_address": "lockboxAddress",
|
|
311
312
|
"account_number_id": "accountNumberId",
|
|
312
313
|
"oatfi_account_number": "oatfiAccountNumber",
|
|
@@ -327,7 +328,7 @@ export type FinancialAccountDataDto$Outbound = {
|
|
|
327
328
|
unit_account_id?: string | undefined;
|
|
328
329
|
swift_code?: string | undefined;
|
|
329
330
|
remittance_information?: string | undefined;
|
|
330
|
-
|
|
331
|
+
business_id?: string | undefined;
|
|
331
332
|
lockbox_address?: LockboxAddress$Outbound | undefined;
|
|
332
333
|
account_number_id?: string | undefined;
|
|
333
334
|
oatfi_account_number?: string | undefined;
|
|
@@ -354,7 +355,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
354
355
|
unitAccountId: z.string().optional(),
|
|
355
356
|
swiftCode: z.string().optional(),
|
|
356
357
|
remittanceInformation: z.string().optional(),
|
|
357
|
-
|
|
358
|
+
businessId: z.string().optional(),
|
|
358
359
|
lockboxAddress: z.lazy(() => LockboxAddress$outboundSchema).optional(),
|
|
359
360
|
accountNumberId: z.string().optional(),
|
|
360
361
|
oatfiAccountNumber: z.string().optional(),
|
|
@@ -373,6 +374,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
|
|
|
373
374
|
unitAccountId: "unit_account_id",
|
|
374
375
|
swiftCode: "swift_code",
|
|
375
376
|
remittanceInformation: "remittance_information",
|
|
377
|
+
businessId: "business_id",
|
|
376
378
|
lockboxAddress: "lockbox_address",
|
|
377
379
|
accountNumberId: "account_number_id",
|
|
378
380
|
oatfiAccountNumber: "oatfi_account_number",
|