/**
 * This file was auto-generated by openapi-typescript.
 * Do not make direct changes to the file.
 */
export interface paths {
    '/v2/transactions/{transactionId}': {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get transaction details
         * @description Given a transaction ID, it retrieves its details
         */
        get: operations['getTransaction'];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    '/v2/transactions/totals': {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get transaction totals
         * @description Given filters, provides total of incomings and expenses for all transactions matching the criteria
         */
        get: operations['getTransactionTotals'];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    '/v2/transactions': {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get transactions
         * @description Given filters, provides list of transactions for a balance account
         */
        get: operations['getTransactions'];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
}
export type webhooks = Record<string, never>;
export interface components {
    schemas: {
        Amount: {
            /** @description The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. */
            currency: string;
            /**
             * Format: int64
             * @description The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
             */
            value: number;
        };
        AmountAdjustment: {
            /** @description The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount. */
            currency: string;
            /** @description Amount adjustment type */
            type: string;
            /**
             * Format: int64
             * @description The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
             */
            value: number;
        };
        BankAccount: {
            /** @description Last four digits of the account number or IBAN. */
            accountNumberLastFourDigits: string;
        };
        /** @enum {string} */
        Category: 'ATM' | 'Capital' | 'Correction' | 'Payment' | 'Refund' | 'Chargeback' | 'Transfer' | 'Other';
        Event: {
            amount: components['schemas']['Amount'];
            /**
             * Format: date-time
             * @description Date created
             */
            createdAt: string;
            status: string;
            type: string;
        };
        ExistingRefund: {
            amount: components['schemas']['Amount'];
            status: components['schemas']['RefundStatus'];
        };
        PaymentMethod: {
            /** @description Payment method name, such as PayPal, Mastercard etc. */
            description?: string;
            /** @description Last four digits of the payment method used (e.g. a credit card, a debit card, an IBAN) */
            lastFourDigits?: string;
            /** @description Payment method type code of the transaction, e.g. 'klarna', 'visa', 'mc' */
            type: string;
        };
        RefundDetails: {
            refundLocked?: boolean;
            refundMode: components['schemas']['RefundMode'];
            refundStatuses?: components['schemas']['ExistingRefund'][];
            refundableAmount?: components['schemas']['Amount'];
        };
        /** @enum {string} */
        RefundMode: 'non_refundable' | 'partially_refundable_with_line_items_required' | 'partially_refundable_any_amount' | 'fully_refundable_only';
        /** @enum {string} */
        RefundReason: 'requested_by_customer' | 'issue_with_item_sold' | 'fraudulent' | 'duplicate' | 'other';
        /** @enum {string} */
        RefundStatus: 'in_progress' | 'completed' | 'failed';
        RefundTransactionDetails: {
            originalPaymentId?: string;
            refundPspReference: string;
            refundReason?: components['schemas']['RefundReason'];
            refundType: components['schemas']['RefundType'];
        };
        /** @enum {string} */
        RefundType: 'partial' | 'full';
        SingleTransaction: {
            /** @description Additions */
            additions?: components['schemas']['AmountAdjustment'][];
            /** @description Amount */
            amountBeforeDeductions: components['schemas']['Amount'];
            /** @description BalanceAccount ID */
            balanceAccountId: string;
            /** @description Information about the bank account */
            bankAccount?: components['schemas']['BankAccount'];
            /** @description Category */
            category: components['schemas']['Category'];
            /**
             * Format: date-time
             * @description Date created
             */
            createdAt: string;
            /** @description Deductions */
            deductions?: components['schemas']['AmountAdjustment'][];
            /** @description Events */
            events?: components['schemas']['Event'][];
            /** @description ID */
            id: string;
            /** @description The merchant reference of the payment */
            merchantReference?: string;
            /** @description Amount */
            netAmount: components['schemas']['Amount'];
            /** @description Amount in original PSP payment */
            originalAmount?: components['schemas']['Amount'];
            /** @description Payment method or payment instrument */
            paymentMethod?: components['schemas']['PaymentMethod'];
            /** @description When applicable, the PSP reference of the PSP payment */
            paymentPspReference?: string;
            /** @description Additional data related to refund operations */
            refundDetails?: components['schemas']['RefundDetails'];
            /** @description When Category is refund, additional information and references related to the refund */
            refundMetadata?: components['schemas']['RefundTransactionDetails'];
            /** @description Status */
            status: components['schemas']['Status'];
        };
        TransactionsListItem: {
            /** @description Amount before deductions  */
            amountBeforeDeductions: components['schemas']['Amount'];
            /** @description BalanceAccount ID */
            balanceAccountId: string;
            /** @description Information about the bank account */
            bankAccount?: components['schemas']['BankAccount'];
            /** @description Category */
            category: components['schemas']['Category'];
            /**
             * Format: date-time
             * @description Date created
             */
            createdAt: string;
            /** @description ID */
            id: string;
            /** @description Net amount */
            netAmount: components['schemas']['Amount'];
            /** @description Payment method or payment instrument */
            paymentMethod?: components['schemas']['PaymentMethod'];
            /** @description When applicable, the PSP reference of the PSP payment */
            paymentPspReference?: string;
            /** @description Status */
            status: components['schemas']['Status'];
        };
        /** @enum {string} */
        Status: 'Pending' | 'Booked' | 'Reversed';
        TransactionCategoryTotal: {
            value: number;
            category: components['schemas']['Category'];
        };
        TransactionTotal: {
            /** @description ISO currency code */
            currency: string;
            /**
             * Format: int64
             * @description Sum of expenses of transactions (negative transaction amount values)
             */
            expenses: number;
            /**
             * Format: int64
             * @description Sum of incomings of transactions (positive transaction amount values)
             */
            incomings: number;
            /**
             * Format: int64
             * @description Net of incomings and expenses of transactions
             */
            total: number;
            breakdown: {
                expenses: components['schemas']['TransactionCategoryTotal'][];
                incomings: components['schemas']['TransactionCategoryTotal'][];
            };
        };
        TransactionTotalsResponse: {
            /** @description Collection of transaction totals per currency */
            data: components['schemas']['TransactionTotal'][];
        };
        Link: {
            /** @description Cursor for a different page */
            cursor: string;
        };
        Links: {
            /** @description Link to a different page */
            next?: components['schemas']['Link'];
            /** @description Link to a different page */
            prev?: components['schemas']['Link'];
        };
        TransactionsResponse: {
            /** @description Links */
            _links: components['schemas']['Links'];
            /** @description Transactions made within the filters provided for given balanceAccountId */
            data: components['schemas']['TransactionsListItem'][];
        };
        /** @enum {string} */
        SortDirection: 'asc' | 'desc';
    };
    responses: never;
    parameters: never;
    requestBodies: never;
    headers: never;
    pathItems: never;
}
export type $defs = Record<string, never>;
export type external = Record<string, never>;
export interface operations {
    getTransaction: {
        parameters: {
            query?: never;
            header?: never;
            path: {
                transactionId: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK - the request has succeeded. */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    'application/json': components['schemas']['SingleTransaction'];
                };
            };
        };
    };
    /**
     * Get transaction totals
     * @description Given filters, provides total of incomings and expenses for all transactions matching the criteria
     */
    getTransactionTotals: {
        parameters: {
            query: {
                balanceAccountId: string;
                createdSince?: string;
                createdUntil?: string;
                categories?: components['schemas']['Category'][];
                statuses?: components['schemas']['Status'][];
                currencies?: string[];
                paymentPspReference?: string;
            };
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK - the request has succeeded. */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    'application/json': components['schemas']['TransactionTotalsResponse'];
                };
            };
        };
    };
    /**
     * Get transactions
     * @description Given filters, provides list of transactions for a balance account
     */
    getTransactions: {
        parameters: {
            query: {
                balanceAccountId: string;
                createdSince?: string;
                createdUntil?: string;
                categories?: components['schemas']['Category'][];
                statuses?: components['schemas']['Status'][];
                currencies?: string[];
                paymentPspReference?: string;
                cursor?: string;
                sortDirection?: components['schemas']['SortDirection'];
                limit?: number;
            };
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK - the request has succeeded. */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    'application/json': components['schemas']['TransactionsResponse'];
                };
            };
        };
    };
}
//# sourceMappingURL=TransactionsResourceV2.d.ts.map