@oatfi/oatfi-sdk-ts 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/commonjs/funcs/networkLedgerGetBusiness.d.ts +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.d.ts.map +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.js +1 -1
- package/dist/commonjs/funcs/networkLedgerGetBusiness.js.map +1 -1
- package/dist/commonjs/funcs/transactionsCreateBatch.d.ts +20 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.js +132 -0
- package/dist/commonjs/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/commonjs/funcs/transactionsGetById.d.ts +20 -0
- package/dist/commonjs/funcs/transactionsGetById.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsGetById.js +134 -0
- package/dist/commonjs/funcs/transactionsGetById.js.map +1 -0
- package/dist/commonjs/funcs/transactionsList.d.ts +22 -0
- package/dist/commonjs/funcs/transactionsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionsList.js +163 -0
- package/dist/commonjs/funcs/transactionsList.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/businessdataresponsedto.d.ts +51 -0
- package/dist/commonjs/models/businessdataresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/businessdataresponsedto.js +75 -0
- package/dist/commonjs/models/businessdataresponsedto.js.map +1 -0
- package/dist/commonjs/models/businessresponsedto.d.ts +142 -21
- package/dist/commonjs/models/businessresponsedto.d.ts.map +1 -1
- package/dist/commonjs/models/businessresponsedto.js +76 -13
- package/dist/commonjs/models/businessresponsedto.js.map +1 -1
- package/dist/commonjs/models/createtransactionsdto.d.ts +26 -0
- package/dist/commonjs/models/createtransactionsdto.d.ts.map +1 -0
- package/dist/commonjs/models/createtransactionsdto.js +52 -0
- package/dist/commonjs/models/createtransactionsdto.js.map +1 -0
- package/dist/commonjs/models/increasedatadto.d.ts +21 -0
- package/dist/commonjs/models/increasedatadto.d.ts.map +1 -0
- package/dist/commonjs/models/increasedatadto.js +60 -0
- package/dist/commonjs/models/increasedatadto.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +11 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +11 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/lmsloantransactiontype.d.ts +33 -0
- package/dist/commonjs/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/commonjs/models/lmsloantransactiontype.js +67 -0
- package/dist/commonjs/models/lmsloantransactiontype.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/transactionscontrollercreate.d.ts +18 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.js +57 -0
- package/dist/commonjs/models/operations/transactionscontrollercreate.js.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.d.ts +44 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.js +73 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindall.js.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.d.ts +15 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.d.ts.map +1 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.js +49 -0
- package/dist/commonjs/models/operations/transactionscontrollerfindone.js.map +1 -0
- package/dist/commonjs/models/paymentstatus.d.ts +22 -0
- package/dist/commonjs/models/paymentstatus.d.ts.map +1 -0
- package/dist/commonjs/models/paymentstatus.js +56 -0
- package/dist/commonjs/models/paymentstatus.js.map +1 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.d.ts +26 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.js +60 -0
- package/dist/commonjs/models/storedtransactionlistresponsedto.js.map +1 -0
- package/dist/commonjs/models/storedtransactionresponsedto.d.ts +48 -0
- package/dist/commonjs/models/storedtransactionresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/storedtransactionresponsedto.js +68 -0
- package/dist/commonjs/models/storedtransactionresponsedto.js.map +1 -0
- package/dist/commonjs/models/transactiondirection.d.ts +12 -0
- package/dist/commonjs/models/transactiondirection.d.ts.map +1 -0
- package/dist/commonjs/models/transactiondirection.js +49 -0
- package/dist/commonjs/models/transactiondirection.js.map +1 -0
- package/dist/commonjs/models/transactionitemdto.d.ts +36 -0
- package/dist/commonjs/models/transactionitemdto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionitemdto.js +54 -0
- package/dist/commonjs/models/transactionitemdto.js.map +1 -0
- package/dist/commonjs/models/transactionloandto.d.ts +25 -0
- package/dist/commonjs/models/transactionloandto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionloandto.js +59 -0
- package/dist/commonjs/models/transactionloandto.js.map +1 -0
- package/dist/commonjs/models/transactionresponsedto.d.ts +56 -0
- package/dist/commonjs/models/transactionresponsedto.d.ts.map +1 -0
- package/dist/commonjs/models/transactionresponsedto.js +74 -0
- package/dist/commonjs/models/transactionresponsedto.js.map +1 -0
- package/dist/commonjs/sdk/networkledger.d.ts +1 -1
- package/dist/commonjs/sdk/networkledger.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/transactions.d.ts +30 -0
- package/dist/commonjs/sdk/transactions.d.ts.map +1 -0
- package/dist/commonjs/sdk/transactions.js +43 -0
- package/dist/commonjs/sdk/transactions.js.map +1 -0
- package/dist/esm/funcs/networkLedgerGetBusiness.d.ts +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.d.ts.map +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.js +1 -1
- package/dist/esm/funcs/networkLedgerGetBusiness.js.map +1 -1
- package/dist/esm/funcs/transactionsCreateBatch.d.ts +20 -0
- package/dist/esm/funcs/transactionsCreateBatch.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsCreateBatch.js +96 -0
- package/dist/esm/funcs/transactionsCreateBatch.js.map +1 -0
- package/dist/esm/funcs/transactionsGetById.d.ts +20 -0
- package/dist/esm/funcs/transactionsGetById.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsGetById.js +98 -0
- package/dist/esm/funcs/transactionsGetById.js.map +1 -0
- package/dist/esm/funcs/transactionsList.d.ts +22 -0
- package/dist/esm/funcs/transactionsList.d.ts.map +1 -0
- package/dist/esm/funcs/transactionsList.js +127 -0
- package/dist/esm/funcs/transactionsList.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/businessdataresponsedto.d.ts +51 -0
- package/dist/esm/models/businessdataresponsedto.d.ts.map +1 -0
- package/dist/esm/models/businessdataresponsedto.js +38 -0
- package/dist/esm/models/businessdataresponsedto.js.map +1 -0
- package/dist/esm/models/businessresponsedto.d.ts +142 -21
- package/dist/esm/models/businessresponsedto.d.ts.map +1 -1
- package/dist/esm/models/businessresponsedto.js +75 -12
- package/dist/esm/models/businessresponsedto.js.map +1 -1
- package/dist/esm/models/createtransactionsdto.d.ts +26 -0
- package/dist/esm/models/createtransactionsdto.d.ts.map +1 -0
- package/dist/esm/models/createtransactionsdto.js +15 -0
- package/dist/esm/models/createtransactionsdto.js.map +1 -0
- package/dist/esm/models/increasedatadto.d.ts +21 -0
- package/dist/esm/models/increasedatadto.d.ts.map +1 -0
- package/dist/esm/models/increasedatadto.js +23 -0
- package/dist/esm/models/increasedatadto.js.map +1 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/lmsloantransactiontype.d.ts +33 -0
- package/dist/esm/models/lmsloantransactiontype.d.ts.map +1 -0
- package/dist/esm/models/lmsloantransactiontype.js +31 -0
- package/dist/esm/models/lmsloantransactiontype.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/transactionscontrollercreate.d.ts +18 -0
- package/dist/esm/models/operations/transactionscontrollercreate.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollercreate.js +20 -0
- package/dist/esm/models/operations/transactionscontrollercreate.js.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.d.ts +44 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.js +35 -0
- package/dist/esm/models/operations/transactionscontrollerfindall.js.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.d.ts +15 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.d.ts.map +1 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.js +12 -0
- package/dist/esm/models/operations/transactionscontrollerfindone.js.map +1 -0
- package/dist/esm/models/paymentstatus.d.ts +22 -0
- package/dist/esm/models/paymentstatus.d.ts.map +1 -0
- package/dist/esm/models/paymentstatus.js +20 -0
- package/dist/esm/models/paymentstatus.js.map +1 -0
- package/dist/esm/models/storedtransactionlistresponsedto.d.ts +26 -0
- package/dist/esm/models/storedtransactionlistresponsedto.d.ts.map +1 -0
- package/dist/esm/models/storedtransactionlistresponsedto.js +23 -0
- package/dist/esm/models/storedtransactionlistresponsedto.js.map +1 -0
- package/dist/esm/models/storedtransactionresponsedto.d.ts +48 -0
- package/dist/esm/models/storedtransactionresponsedto.d.ts.map +1 -0
- package/dist/esm/models/storedtransactionresponsedto.js +31 -0
- package/dist/esm/models/storedtransactionresponsedto.js.map +1 -0
- package/dist/esm/models/transactiondirection.d.ts +12 -0
- package/dist/esm/models/transactiondirection.d.ts.map +1 -0
- package/dist/esm/models/transactiondirection.js +13 -0
- package/dist/esm/models/transactiondirection.js.map +1 -0
- package/dist/esm/models/transactionitemdto.d.ts +36 -0
- package/dist/esm/models/transactionitemdto.d.ts.map +1 -0
- package/dist/esm/models/transactionitemdto.js +17 -0
- package/dist/esm/models/transactionitemdto.js.map +1 -0
- package/dist/esm/models/transactionloandto.d.ts +25 -0
- package/dist/esm/models/transactionloandto.d.ts.map +1 -0
- package/dist/esm/models/transactionloandto.js +22 -0
- package/dist/esm/models/transactionloandto.js.map +1 -0
- package/dist/esm/models/transactionresponsedto.d.ts +56 -0
- package/dist/esm/models/transactionresponsedto.d.ts.map +1 -0
- package/dist/esm/models/transactionresponsedto.js +37 -0
- package/dist/esm/models/transactionresponsedto.js.map +1 -0
- package/dist/esm/sdk/networkledger.d.ts +1 -1
- package/dist/esm/sdk/networkledger.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/transactions.d.ts +30 -0
- package/dist/esm/sdk/transactions.d.ts.map +1 -0
- package/dist/esm/sdk/transactions.js +39 -0
- package/dist/esm/sdk/transactions.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/networkLedgerGetBusiness.ts +4 -4
- package/src/funcs/transactionsCreateBatch.ts +186 -0
- package/src/funcs/transactionsGetById.ts +184 -0
- package/src/funcs/transactionsList.ts +255 -0
- package/src/lib/config.ts +2 -2
- package/src/models/businessdataresponsedto.ts +94 -0
- package/src/models/businessresponsedto.ts +198 -31
- package/src/models/createtransactionsdto.ts +51 -0
- package/src/models/increasedatadto.ts +52 -0
- package/src/models/index.ts +11 -0
- package/src/models/lmsloantransactiontype.ts +40 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/transactionscontrollercreate.ts +46 -0
- package/src/models/operations/transactionscontrollerfindall.ts +98 -0
- package/src/models/operations/transactionscontrollerfindone.ts +36 -0
- package/src/models/paymentstatus.ts +29 -0
- package/src/models/storedtransactionlistresponsedto.ts +59 -0
- package/src/models/storedtransactionresponsedto.ts +89 -0
- package/src/models/transactiondirection.ts +21 -0
- package/src/models/transactionitemdto.ts +62 -0
- package/src/models/transactionloandto.ts +55 -0
- package/src/models/transactionresponsedto.ts +104 -0
- package/src/sdk/networkledger.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transactions.ts +70 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as models from "../index.js";
|
|
5
|
+
export type TransactionsControllerFindAllRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Business id
|
|
8
|
+
*/
|
|
9
|
+
business: string;
|
|
10
|
+
/**
|
|
11
|
+
* Loan program id
|
|
12
|
+
*/
|
|
13
|
+
program: string;
|
|
14
|
+
/**
|
|
15
|
+
* Page size (default 10)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Cursor: return results after this id
|
|
20
|
+
*/
|
|
21
|
+
startingAfter?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Cursor: return results before this id
|
|
24
|
+
*/
|
|
25
|
+
endingBefore?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
export type TransactionsControllerFindAllResponse = {
|
|
28
|
+
result: models.StoredTransactionListResponseDto;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type TransactionsControllerFindAllRequest$Outbound = {
|
|
32
|
+
business: string;
|
|
33
|
+
program: string;
|
|
34
|
+
limit?: number | undefined;
|
|
35
|
+
starting_after?: string | undefined;
|
|
36
|
+
ending_before?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const TransactionsControllerFindAllRequest$outboundSchema: z.ZodType<TransactionsControllerFindAllRequest$Outbound, z.ZodTypeDef, TransactionsControllerFindAllRequest>;
|
|
40
|
+
export declare function transactionsControllerFindAllRequestToJSON(transactionsControllerFindAllRequest: TransactionsControllerFindAllRequest): string;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const TransactionsControllerFindAllResponse$inboundSchema: z.ZodType<TransactionsControllerFindAllResponse, z.ZodTypeDef, unknown>;
|
|
43
|
+
export declare function transactionsControllerFindAllResponseFromJSON(jsonString: string): SafeParseResult<TransactionsControllerFindAllResponse, SDKValidationError>;
|
|
44
|
+
//# sourceMappingURL=transactionscontrollerfindall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionscontrollerfindall.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/transactionscontrollerfindall.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,MAAM,EAAE,MAAM,CAAC,gCAAgC,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAYpC,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const TransactionsControllerFindAllRequest$outboundSchema = z.object({
|
|
10
|
+
business: z.string(),
|
|
11
|
+
program: z.string(),
|
|
12
|
+
limit: z.number().optional(),
|
|
13
|
+
startingAfter: z.string().optional(),
|
|
14
|
+
endingBefore: z.string().optional(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
startingAfter: "starting_after",
|
|
18
|
+
endingBefore: "ending_before",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function transactionsControllerFindAllRequestToJSON(transactionsControllerFindAllRequest) {
|
|
22
|
+
return JSON.stringify(TransactionsControllerFindAllRequest$outboundSchema.parse(transactionsControllerFindAllRequest));
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const TransactionsControllerFindAllResponse$inboundSchema = z.object({
|
|
26
|
+
Result: models.StoredTransactionListResponseDto$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"Result": "result",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function transactionsControllerFindAllResponseFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => TransactionsControllerFindAllResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransactionsControllerFindAllResponse' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=transactionscontrollerfindall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionscontrollerfindall.js","sourceRoot":"","sources":["../../../../src/models/operations/transactionscontrollerfindall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAsCtC,gBAAgB;AAChB,MAAM,CAAC,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
|
|
4
|
+
* The transaction (transfer) id
|
|
5
|
+
*/
|
|
6
|
+
transactionId: string;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type TransactionsControllerFindOneRequest$Outbound = {
|
|
10
|
+
transactionId: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const TransactionsControllerFindOneRequest$outboundSchema: z.ZodType<TransactionsControllerFindOneRequest$Outbound, z.ZodTypeDef, TransactionsControllerFindOneRequest>;
|
|
14
|
+
export declare function transactionsControllerFindOneRequestToJSON(transactionsControllerFindOneRequest: TransactionsControllerFindOneRequest): string;
|
|
15
|
+
//# sourceMappingURL=transactionscontrollerfindone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionscontrollerfindone.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/transactionscontrollerfindone.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAGpC,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export const TransactionsControllerFindOneRequest$outboundSchema = z.object({
|
|
7
|
+
transactionId: z.string(),
|
|
8
|
+
});
|
|
9
|
+
export function transactionsControllerFindOneRequestToJSON(transactionsControllerFindOneRequest) {
|
|
10
|
+
return JSON.stringify(TransactionsControllerFindOneRequest$outboundSchema.parse(transactionsControllerFindOneRequest));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=transactionscontrollerfindone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionscontrollerfindone.js","sourceRoot":"","sources":["../../../../src/models/operations/transactionscontrollerfindone.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAc5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,UAAU,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,mDAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The status of the transaction (derived from the payment rail status).
|
|
5
|
+
*/
|
|
6
|
+
export declare const PaymentStatus: {
|
|
7
|
+
readonly Pending: "PENDING";
|
|
8
|
+
readonly Processing: "PROCESSING";
|
|
9
|
+
readonly Processed: "PROCESSED";
|
|
10
|
+
readonly Succeeded: "SUCCEEDED";
|
|
11
|
+
readonly Failed: "FAILED";
|
|
12
|
+
readonly Corrected: "CORRECTED";
|
|
13
|
+
readonly Canceled: "CANCELED";
|
|
14
|
+
readonly Error: "ERROR";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The status of the transaction (derived from the payment rail status).
|
|
18
|
+
*/
|
|
19
|
+
export type PaymentStatus = ClosedEnum<typeof PaymentStatus>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PaymentStatus$inboundSchema: z.ZodNativeEnum<typeof PaymentStatus>;
|
|
22
|
+
//# sourceMappingURL=paymentstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentstatus.d.ts","sourceRoot":"","sources":["../../../src/models/paymentstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
/**
|
|
6
|
+
* The status of the transaction (derived from the payment rail status).
|
|
7
|
+
*/
|
|
8
|
+
export const PaymentStatus = {
|
|
9
|
+
Pending: "PENDING",
|
|
10
|
+
Processing: "PROCESSING",
|
|
11
|
+
Processed: "PROCESSED",
|
|
12
|
+
Succeeded: "SUCCEEDED",
|
|
13
|
+
Failed: "FAILED",
|
|
14
|
+
Corrected: "CORRECTED",
|
|
15
|
+
Canceled: "CANCELED",
|
|
16
|
+
Error: "ERROR",
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PaymentStatus$inboundSchema = z.nativeEnum(PaymentStatus);
|
|
20
|
+
//# sourceMappingURL=paymentstatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentstatus.js","sourceRoot":"","sources":["../../../src/models/paymentstatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { StoredTransactionResponseDto } from "./storedtransactionresponsedto.js";
|
|
5
|
+
export type StoredTransactionListResponseDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Type of the response
|
|
8
|
+
*/
|
|
9
|
+
object: string;
|
|
10
|
+
/**
|
|
11
|
+
* Array of stored transaction objects
|
|
12
|
+
*/
|
|
13
|
+
data: Array<StoredTransactionResponseDto>;
|
|
14
|
+
/**
|
|
15
|
+
* Whether there are more items to fetch
|
|
16
|
+
*/
|
|
17
|
+
hasMore: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Total number of items
|
|
20
|
+
*/
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const StoredTransactionListResponseDto$inboundSchema: z.ZodType<StoredTransactionListResponseDto, z.ZodTypeDef, unknown>;
|
|
25
|
+
export declare function storedTransactionListResponseDtoFromJSON(jsonString: string): SafeParseResult<StoredTransactionListResponseDto, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=storedtransactionlistresponsedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storedtransactionlistresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/storedtransactionlistresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,4BAA4B,EAE7B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { StoredTransactionResponseDto$inboundSchema, } from "./storedtransactionresponsedto.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const StoredTransactionListResponseDto$inboundSchema = z.object({
|
|
11
|
+
object: types.string().default("list"),
|
|
12
|
+
data: z.array(StoredTransactionResponseDto$inboundSchema),
|
|
13
|
+
has_more: types.boolean(),
|
|
14
|
+
total: types.number(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"has_more": "hasMore",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function storedTransactionListResponseDtoFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => StoredTransactionListResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoredTransactionListResponseDto' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=storedtransactionlistresponsedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storedtransactionlistresponsedto.js","sourceRoot":"","sources":["../../../src/models/storedtransactionlistresponsedto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,0CAA0C,GAC3C,MAAM,mCAAmC,CAAC;AAqB3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,0CAA0C,CAAC;IACzD,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE;IACzB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wCAAwC,CACtD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { TransactionDirection } from "./transactiondirection.js";
|
|
5
|
+
export type StoredTransactionResponseDto = {
|
|
6
|
+
object: string;
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the transaction
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Transaction amount in cents
|
|
13
|
+
*/
|
|
14
|
+
amount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable description of the transaction
|
|
17
|
+
*/
|
|
18
|
+
description: string;
|
|
19
|
+
/**
|
|
20
|
+
* Partner-defined transaction type
|
|
21
|
+
*/
|
|
22
|
+
type: string;
|
|
23
|
+
direction: TransactionDirection;
|
|
24
|
+
/**
|
|
25
|
+
* Business the transaction belongs to
|
|
26
|
+
*/
|
|
27
|
+
business: string;
|
|
28
|
+
/**
|
|
29
|
+
* Loan program the transaction belongs to
|
|
30
|
+
*/
|
|
31
|
+
program: string;
|
|
32
|
+
/**
|
|
33
|
+
* Transaction date (ISO 8601)
|
|
34
|
+
*/
|
|
35
|
+
date: string;
|
|
36
|
+
/**
|
|
37
|
+
* Creation timestamp (ISO 8601)
|
|
38
|
+
*/
|
|
39
|
+
createdAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* Last update timestamp (ISO 8601)
|
|
42
|
+
*/
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const StoredTransactionResponseDto$inboundSchema: z.ZodType<StoredTransactionResponseDto, z.ZodTypeDef, unknown>;
|
|
47
|
+
export declare function storedTransactionResponseDtoFromJSON(jsonString: string): SafeParseResult<StoredTransactionResponseDto, SDKValidationError>;
|
|
48
|
+
//# sourceMappingURL=storedtransactionresponsedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storedtransactionresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/storedtransactionresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,oBAAoB,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { TransactionDirection$inboundSchema, } from "./transactiondirection.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const StoredTransactionResponseDto$inboundSchema = z.object({
|
|
11
|
+
object: types.string().default("transaction"),
|
|
12
|
+
id: types.string(),
|
|
13
|
+
amount: types.number(),
|
|
14
|
+
description: types.string(),
|
|
15
|
+
type: types.string(),
|
|
16
|
+
direction: TransactionDirection$inboundSchema,
|
|
17
|
+
business: types.string(),
|
|
18
|
+
program: types.string(),
|
|
19
|
+
date: types.string(),
|
|
20
|
+
created_at: types.string(),
|
|
21
|
+
updated_at: types.string(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"created_at": "createdAt",
|
|
25
|
+
"updated_at": "updatedAt",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function storedTransactionResponseDtoFromJSON(jsonString) {
|
|
29
|
+
return safeParse(jsonString, (x) => StoredTransactionResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StoredTransactionResponseDto' from JSON`);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=storedtransactionresponsedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storedtransactionresponsedto.js","sourceRoot":"","sources":["../../../src/models/storedtransactionresponsedto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,s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ionDirection: {
|
|
4
|
+
readonly Credit: "credit";
|
|
5
|
+
readonly Debit: "debit";
|
|
6
|
+
};
|
|
7
|
+
export type TransactionDirection = ClosedEnum<typeof TransactionDirection>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const TransactionDirection$inboundSchema: z.ZodNativeEnum<typeof TransactionDirection>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const TransactionDirection$outboundSchema: z.ZodNativeEnum<typeof TransactionDirection>;
|
|
12
|
+
//# sourceMappingURL=transactiondirection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactiondirection.d.ts","sourceRoot":"","sources":["../../../src/models/transactiondirection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,oBAAoB,CACS,CAAC;AACvC,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
export const TransactionDirection = {
|
|
6
|
+
Credit: "credit",
|
|
7
|
+
Debit: "debit",
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const TransactionDirection$inboundSchema = z.nativeEnum(TransactionDirection);
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const TransactionDirection$outboundSchema = TransactionDirection$inboundSchema;
|
|
13
|
+
//# sourceMappingURL=transactiondirection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactiondirection.js","sourceRoot":"","sources":["../../../src/models/transactiondirection.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AACvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAE5C,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { TransactionDirection } from "./transactiondirection.js";
|
|
3
|
+
export type TransactionItemDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Transaction amount in cents
|
|
6
|
+
*/
|
|
7
|
+
amount: number;
|
|
8
|
+
/**
|
|
9
|
+
* Human-readable description of the transaction
|
|
10
|
+
*/
|
|
11
|
+
description: string;
|
|
12
|
+
/**
|
|
13
|
+
* Partner-defined transaction type (free-form)
|
|
14
|
+
*/
|
|
15
|
+
type: string;
|
|
16
|
+
/**
|
|
17
|
+
* credit (refund/return) or debit (purchase/spend)
|
|
18
|
+
*/
|
|
19
|
+
direction: TransactionDirection;
|
|
20
|
+
/**
|
|
21
|
+
* Transaction date (ISO 8601)
|
|
22
|
+
*/
|
|
23
|
+
date: string;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type TransactionItemDto$Outbound = {
|
|
27
|
+
amount: number;
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
direction: string;
|
|
31
|
+
date: string;
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const TransactionItemDto$outboundSchema: z.ZodType<TransactionItemDto$Outbound, z.ZodTypeDef, TransactionItemDto>;
|
|
35
|
+
export declare function transactionItemDtoToJSON(transactionItemDto: TransactionItemDto): string;
|
|
36
|
+
//# sourceMappingURL=transactionitemdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionitemdto.d.ts","sourceRoot":"","sources":["../../../src/models/transactionitemdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,oBAAoB,CAAC;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAOlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { TransactionDirection$outboundSchema, } from "./transactiondirection.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const TransactionItemDto$outboundSchema = z.object({
|
|
8
|
+
amount: z.number(),
|
|
9
|
+
description: z.string(),
|
|
10
|
+
type: z.string(),
|
|
11
|
+
direction: TransactionDirection$outboundSchema,
|
|
12
|
+
date: z.string(),
|
|
13
|
+
});
|
|
14
|
+
export function transactionItemDtoToJSON(transactionItemDto) {
|
|
15
|
+
return JSON.stringify(TransactionItemDto$outboundSchema.parse(transactionItemDto));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=transactionitemdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionitemdto.js","sourceRoot":"","sources":["../../../src/models/transactionitemdto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAEL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AAkCnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,mCAAmC;IAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type TransactionLoanDto = {
|
|
5
|
+
/**
|
|
6
|
+
* The origination (loan) id the transaction line belongs to.
|
|
7
|
+
*/
|
|
8
|
+
origination?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The original amount of the loan in cents.
|
|
11
|
+
*/
|
|
12
|
+
amount?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The payment intent (invoice) id linked to the loan.
|
|
15
|
+
*/
|
|
16
|
+
paymentIntent?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The business id the loan belongs to.
|
|
19
|
+
*/
|
|
20
|
+
business?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const TransactionLoanDto$inboundSchema: z.ZodType<TransactionLoanDto, z.ZodTypeDef, unknown>;
|
|
24
|
+
export declare function transactionLoanDtoFromJSON(jsonString: string): SafeParseResult<TransactionLoanDto, SDKValidationError>;
|
|
25
|
+
//# sourceMappingURL=transactionloandto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionloandto.d.ts","sourceRoot":"","sources":["../../../src/models/transactionloandto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const TransactionLoanDto$inboundSchema = z.object({
|
|
10
|
+
origination: types.optional(types.string()),
|
|
11
|
+
amount: types.optional(types.number()),
|
|
12
|
+
payment_intent: types.optional(types.string()),
|
|
13
|
+
business: types.optional(types.string()),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"payment_intent": "paymentIntent",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function transactionLoanDtoFromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => TransactionLoanDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransactionLoanDto' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=transactionloandto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionloandto.js","sourceRoot":"","sources":["../../../src/models/transactionloandto.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAsBhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC3C,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { LmsLoanTransactionType } from "./lmsloantransactiontype.js";
|
|
5
|
+
import { PaymentStatus } from "./paymentstatus.js";
|
|
6
|
+
import { TransactionLoanDto } from "./transactionloandto.js";
|
|
7
|
+
export type TransactionResponseDto = {
|
|
8
|
+
/**
|
|
9
|
+
* The transaction id (the transfer id that comes from the payment rail).
|
|
10
|
+
*/
|
|
11
|
+
transaction: string;
|
|
12
|
+
/**
|
|
13
|
+
* String identifier of the object.
|
|
14
|
+
*/
|
|
15
|
+
object: string;
|
|
16
|
+
/**
|
|
17
|
+
* The total amount of the transaction in cents.
|
|
18
|
+
*/
|
|
19
|
+
amount?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The fed trace number of the transfer.
|
|
22
|
+
*/
|
|
23
|
+
fedTraceNumber?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Unique payment reference number to track the transfer from the initiating bank to the receiving bank.
|
|
26
|
+
*/
|
|
27
|
+
clearingReference?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The status of the transaction (derived from the payment rail status).
|
|
30
|
+
*/
|
|
31
|
+
status?: PaymentStatus | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The date of the transaction as an epoch timestamp in milliseconds.
|
|
34
|
+
*/
|
|
35
|
+
transactionDate?: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The financial account (payment method) id used for the transfer.
|
|
38
|
+
*/
|
|
39
|
+
financialAccount?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The type of the transaction.
|
|
42
|
+
*/
|
|
43
|
+
transactionType?: LmsLoanTransactionType | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The total number of originations in the transaction (full count, not the size of the returned page).
|
|
46
|
+
*/
|
|
47
|
+
totalOriginations: number;
|
|
48
|
+
/**
|
|
49
|
+
* The originations included in the transaction. This is a paginated subset controlled by pageNumber/pageSize; it may contain fewer items than total_originations.
|
|
50
|
+
*/
|
|
51
|
+
originations: Array<TransactionLoanDto>;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const TransactionResponseDto$inboundSchema: z.ZodType<TransactionResponseDto, z.ZodTypeDef, unknown>;
|
|
55
|
+
export declare function transactionResponseDtoFromJSON(jsonString: string): SafeParseResult<TransactionResponseDto, SDKValidationError>;
|
|
56
|
+
//# sourceMappingURL=transactionresponsedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionresponsedto.d.ts","sourceRoot":"","sources":["../../../src/models/transactionresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IA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O NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { LmsLoanTransactionType$inboundSchema, } from "./lmsloantransactiontype.js";
|
|
9
|
+
import { PaymentStatus$inboundSchema } from "./paymentstatus.js";
|
|
10
|
+
import { TransactionLoanDto$inboundSchema, } from "./transactionloandto.js";
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const TransactionResponseDto$inboundSchema = z.object({
|
|
13
|
+
transaction: types.string(),
|
|
14
|
+
object: types.string(),
|
|
15
|
+
amount: types.optional(types.number()),
|
|
16
|
+
fed_trace_number: types.optional(types.string()),
|
|
17
|
+
clearing_reference: types.optional(types.string()),
|
|
18
|
+
status: types.optional(PaymentStatus$inboundSchema),
|
|
19
|
+
transaction_date: types.optional(types.number()),
|
|
20
|
+
financial_account: types.optional(types.string()),
|
|
21
|
+
transaction_type: types.optional(LmsLoanTransactionType$inboundSchema),
|
|
22
|
+
total_originations: types.number(),
|
|
23
|
+
originations: z.array(TransactionLoanDto$inboundSchema),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"fed_trace_number": "fedTraceNumber",
|
|
27
|
+
"clearing_reference": "clearingReference",
|
|
28
|
+
"transaction_date": "transactionDate",
|
|
29
|
+
"financial_account": "financialAccount",
|
|
30
|
+
"transaction_type": "transactionType",
|
|
31
|
+
"total_originations": "totalOriginations",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
export function transactionResponseDtoFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => TransactionResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransactionResponseDto' from JSON`);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=transactionresponsedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,gBAAgB;QACpC,oBAAoB,EAAE,mBAAmB;QACzC,kBAAkB,EAAE,iBAAiB;QACrC,mBAAmB,EAAE,kBAAkB;QACvC,kBAAkB,EAAE,iBAAiB;QACrC,oBAAoB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare class NetworkLedger extends ClientSDK {
|
|
|
5
5
|
/**
|
|
6
6
|
* Look up a business by external id (getBusiness).
|
|
7
7
|
*/
|
|
8
|
-
getBusiness(security: operations.NetworkControllerGetBusinessSecurity, request: operations.NetworkControllerGetBusinessRequest, options?: RequestOptions): Promise<models.
|
|
8
|
+
getBusiness(security: operations.NetworkControllerGetBusinessSecurity, request: operations.NetworkControllerGetBusinessRequest, options?: RequestOptions): Promise<models.BusinessDataResponseDto>;
|
|
9
9
|
/**
|
|
10
10
|
* Create invoice on the lender (createInvoice).
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkledger.d.ts","sourceRoot":"","sources":["../../../src/sdk/networkledger.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACG,WAAW,CACf,QAAQ,EAAE,U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