@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,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
LmsLoanTransactionType,
|
|
13
|
+
LmsLoanTransactionType$inboundSchema,
|
|
14
|
+
} from "./lmsloantransactiontype.js";
|
|
15
|
+
import { PaymentStatus, PaymentStatus$inboundSchema } from "./paymentstatus.js";
|
|
16
|
+
import {
|
|
17
|
+
TransactionLoanDto,
|
|
18
|
+
TransactionLoanDto$inboundSchema,
|
|
19
|
+
} from "./transactionloandto.js";
|
|
20
|
+
|
|
21
|
+
export type TransactionResponseDto = {
|
|
22
|
+
/**
|
|
23
|
+
* The transaction id (the transfer id that comes from the payment rail).
|
|
24
|
+
*/
|
|
25
|
+
transaction: string;
|
|
26
|
+
/**
|
|
27
|
+
* String identifier of the object.
|
|
28
|
+
*/
|
|
29
|
+
object: string;
|
|
30
|
+
/**
|
|
31
|
+
* The total amount of the transaction in cents.
|
|
32
|
+
*/
|
|
33
|
+
amount?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The fed trace number of the transfer.
|
|
36
|
+
*/
|
|
37
|
+
fedTraceNumber?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Unique payment reference number to track the transfer from the initiating bank to the receiving bank.
|
|
40
|
+
*/
|
|
41
|
+
clearingReference?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The status of the transaction (derived from the payment rail status).
|
|
44
|
+
*/
|
|
45
|
+
status?: PaymentStatus | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The date of the transaction as an epoch timestamp in milliseconds.
|
|
48
|
+
*/
|
|
49
|
+
transactionDate?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The financial account (payment method) id used for the transfer.
|
|
52
|
+
*/
|
|
53
|
+
financialAccount?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The type of the transaction.
|
|
56
|
+
*/
|
|
57
|
+
transactionType?: LmsLoanTransactionType | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The total number of originations in the transaction (full count, not the size of the returned page).
|
|
60
|
+
*/
|
|
61
|
+
totalOriginations: number;
|
|
62
|
+
/**
|
|
63
|
+
* The originations included in the transaction. This is a paginated subset controlled by pageNumber/pageSize; it may contain fewer items than total_originations.
|
|
64
|
+
*/
|
|
65
|
+
originations: Array<TransactionLoanDto>;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const TransactionResponseDto$inboundSchema: z.ZodType<
|
|
70
|
+
TransactionResponseDto,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
unknown
|
|
73
|
+
> = z.object({
|
|
74
|
+
transaction: types.string(),
|
|
75
|
+
object: types.string(),
|
|
76
|
+
amount: types.optional(types.number()),
|
|
77
|
+
fed_trace_number: types.optional(types.string()),
|
|
78
|
+
clearing_reference: types.optional(types.string()),
|
|
79
|
+
status: types.optional(PaymentStatus$inboundSchema),
|
|
80
|
+
transaction_date: types.optional(types.number()),
|
|
81
|
+
financial_account: types.optional(types.string()),
|
|
82
|
+
transaction_type: types.optional(LmsLoanTransactionType$inboundSchema),
|
|
83
|
+
total_originations: types.number(),
|
|
84
|
+
originations: z.array(TransactionLoanDto$inboundSchema),
|
|
85
|
+
}).transform((v) => {
|
|
86
|
+
return remap$(v, {
|
|
87
|
+
"fed_trace_number": "fedTraceNumber",
|
|
88
|
+
"clearing_reference": "clearingReference",
|
|
89
|
+
"transaction_date": "transactionDate",
|
|
90
|
+
"financial_account": "financialAccount",
|
|
91
|
+
"transaction_type": "transactionType",
|
|
92
|
+
"total_originations": "totalOriginations",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function transactionResponseDtoFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<TransactionResponseDto, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => TransactionResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'TransactionResponseDto' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
package/src/sdk/networkledger.ts
CHANGED
|
@@ -25,7 +25,7 @@ export class NetworkLedger extends ClientSDK {
|
|
|
25
25
|
security: operations.NetworkControllerGetBusinessSecurity,
|
|
26
26
|
request: operations.NetworkControllerGetBusinessRequest,
|
|
27
27
|
options?: RequestOptions,
|
|
28
|
-
): Promise<models.
|
|
28
|
+
): Promise<models.BusinessDataResponseDto> {
|
|
29
29
|
return unwrapAsync(networkLedgerGetBusiness(
|
|
30
30
|
this,
|
|
31
31
|
security,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -41,6 +41,7 @@ import { Programs } from "./programs.js";
|
|
|
41
41
|
import { ProgramSettings } from "./programsettings.js";
|
|
42
42
|
import { StateDisclosures } from "./statedisclosures.js";
|
|
43
43
|
import { TradingRelationships } from "./tradingrelationships.js";
|
|
44
|
+
import { Transactions } from "./transactions.js";
|
|
44
45
|
import { UnderwritingTerms } from "./underwritingterms.js";
|
|
45
46
|
import { Users } from "./users.js";
|
|
46
47
|
// #region imports
|
|
@@ -268,6 +269,11 @@ export class OatFiSDK extends ClientSDK {
|
|
|
268
269
|
));
|
|
269
270
|
}
|
|
270
271
|
|
|
272
|
+
private _transactions?: Transactions;
|
|
273
|
+
get transactions(): Transactions {
|
|
274
|
+
return (this._transactions ??= new Transactions(this._options));
|
|
275
|
+
}
|
|
276
|
+
|
|
271
277
|
private _ledgerEntries?: LedgerEntries;
|
|
272
278
|
get ledgerEntries(): LedgerEntries {
|
|
273
279
|
return (this._ledgerEntries ??= new LedgerEntries(this._options));
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { transactionsCreateBatch } from "../funcs/transactionsCreateBatch.js";
|
|
6
|
+
import { transactionsGetById } from "../funcs/transactionsGetById.js";
|
|
7
|
+
import { transactionsList } from "../funcs/transactionsList.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as models from "../models/index.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
13
|
+
|
|
14
|
+
export class Transactions extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Upload a batch of transactions
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Stores up to 100 transactions for a single business and loan program.
|
|
20
|
+
*/
|
|
21
|
+
async createBatch(
|
|
22
|
+
request: operations.TransactionsControllerCreateRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<models.StoredTransactionListResponseDto> {
|
|
25
|
+
return unwrapAsync(transactionsCreateBatch(
|
|
26
|
+
this,
|
|
27
|
+
request,
|
|
28
|
+
options,
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* List stored transactions
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Finance-only. Lists partner-uploaded transactions for a business and loan program.
|
|
37
|
+
*/
|
|
38
|
+
async list(
|
|
39
|
+
request: operations.TransactionsControllerFindAllRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<
|
|
42
|
+
PageIterator<
|
|
43
|
+
operations.TransactionsControllerFindAllResponse,
|
|
44
|
+
{ cursor: string }
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return unwrapResultIterator(transactionsList(
|
|
48
|
+
this,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Get a transaction by ID
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Retrieves a transaction and its associated loans by the payment rail transfer id.
|
|
59
|
+
*/
|
|
60
|
+
async getById(
|
|
61
|
+
request: operations.TransactionsControllerFindOneRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<models.TransactionResponseDto> {
|
|
64
|
+
return unwrapAsync(transactionsGetById(
|
|
65
|
+
this,
|
|
66
|
+
request,
|
|
67
|
+
options,
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
}
|