UNPKG

@adyen/api-library

Version:

The Adyen API Library for NodeJS enables you to work with Adyen APIs.

67 lines (66 loc) 2.38 kB
import { Amount } from "./amount"; import { PaymentInstrument } from "./paymentInstrument"; import { ResourceReference } from "./resourceReference"; import { TransferView } from "./transferView"; export declare class Transaction { "accountHolder": ResourceReference; "amount": Amount; "balanceAccount": ResourceReference; /** * The unique identifier of the balance platform. */ "balancePlatform": string; /** * The date the transaction was booked into the balance account. */ "bookingDate": Date; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. */ "creationDate"?: Date; /** * The `description` from the `/transfers` request. */ "description"?: string; /** * The unique identifier of the transaction. */ "id": string; "paymentInstrument"?: PaymentInstrument | null; /** * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ "referenceForBeneficiary"?: string; /** * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ "status": Transaction.StatusEnum; "transfer"?: TransferView | null; /** * The date the transfer amount becomes available in the balance account. */ "valueDate": Date; static readonly discriminator: string | undefined; static readonly mapping: { [index: string]: string; } | undefined; static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string; }>; static getAttributeTypeMap(): { name: string; baseName: string; type: string; format: string; }[]; constructor(); } export declare namespace Transaction { enum StatusEnum { Booked = "booked", Pending = "pending" } }