/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { BatchCreateTransaction } from '../models/BatchCreateTransaction'; import type { BatchTransactionResult } from '../models/BatchTransactionResult'; import type { CreateTransaction } from '../models/CreateTransaction'; import type { Transaction } from '../models/Transaction'; import type { TransactionFilter } from '../models/TransactionFilter'; import type { TransactionFilterCustomer } from '../models/TransactionFilterCustomer'; import type { TransactionFilterLedger } from '../models/TransactionFilterLedger'; import type { TransactionResult } from '../models/TransactionResult'; import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class TransactionService { /** * Send payment *
Sends a payment within Tatum Private Ledger. All assets are settled instantly.
* When a transaction is settled, 2 transaction records are created, 1 for each of the participants. These 2 records are connected via a transaction reference, which is the same for both of them.
* This method is only used for transferring assets between accounts within Tatum and will not send any funds to blockchain addresses.
* If there is an insufficient balance in the sender account, no transaction is recorded.
* It is possible to perform an anonymous transaction where the sender account is not visible for the recipient.
* The FIAT currency value of every transaction is calculated automatically. The FIAT value is based on the accountingCurrency of the account connected to the transaction and is available in the marketValue parameter of the transaction.
Sends the N payments within Tatum Private Ledger. All assets are settled instantly.
* When a transaction is settled, 2 transaction records are created, 1 for each of the participants. These 2 records are connected via a transaction reference, which is the same for both of them.
* This method is only used for transferring assets between accounts within Tatum and will not send any funds to blockchain addresses.
* If there is an insufficient balance in the sender account, no transaction is recorded.
* It is possible to perform an anonymous transaction where the sender account is not visible for the recipient.
* The FIAT currency value of every transaction is calculated automatically. The FIAT value is based on the accountingCurrency of the account connected to the transaction and is available in the marketValue parameter of the transaction.
Finds transactions for the account identified by the given account ID.
* @param requestBody * @param pageSize Max number of items per page is 50. Either count or pageSize is accepted. * @param offset Offset to obtain the next page of data. * @param count Get the total transaction count based on the filter. Either count or pageSize is accepted. * @returns any OK * @throws ApiError */ public static getTransactionsByAccountId( requestBody: TransactionFilter, pageSize?: number, offset?: number, count?: boolean, ): CancelablePromise<(ArrayFinds transactions for all accounts of the customer identified by the given internal customer ID.
* @param requestBody * @param pageSize Max number of items per page is 50. Either count or pageSize is accepted. * @param offset Offset to obtain the next page of data. * @param count Get total transaction count based on the filter. Either count or pageSize is accepted. * @returns any OK * @throws ApiError */ public static getTransactionsByCustomerId( requestBody: TransactionFilterCustomer, pageSize?: number, offset?: number, count?: boolean, ): CancelablePromise<(ArrayFind transactions across whole ledger.
* @param requestBody * @param pageSize Max number of items per page is 50. Either count or pageSize is accepted. * @param offset Offset to obtain the next page of data. * @param count Get the total transaction count based on the filter. Either count or pageSize is accepted. * @returns any OK * @throws ApiError */ public static getTransactions( requestBody: TransactionFilterLedger, pageSize?: number, offset?: number, count?: boolean, ): CancelablePromise<(ArrayFinds transactions for all accounts with the given reference.
* @param reference * @returns Transaction OK * @throws ApiError */ public static getTransactionsByReference( reference: string, ): CancelablePromise