UNPKG

@adyen/api-library

Version:

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

63 lines (62 loc) 2.88 kB
import { PaymentToken } from "./paymentToken"; import { SensitiveCardData } from "./sensitiveCardData"; /** * Information related to the payment card used for the transaction. Allows acquisition of the card data by the Sale System before the Payment, CardAcquisition, or BalanceInquiry request to the POI. It can also be sent in the CardAcquisition response, to be processed by the Sale System. */ export declare class CardData { /** * Type of payment card. If card PAN is readable. Indicates the card used to pay in the PaymentResponse. Sent in the CardAcquisitionResponse, to leave the Cashier to choose between several applications in a smartcard, or several brand in a co-branded card. In this case, the CardAcquisitionRequest.ForceCustomerSelectionFlag must contain the value False. Brands are part of the POI and Sale Systems configurations. */ "PaymentBrand"?: string; /** * Masked Primary Account Number Part of the PAN is replaced by a string of * characters, to identify a customer account or relationship. Presence of this data element, which replace the PAN when SensitiveCardData is protected and replaced by ProtectedCardData. Alternatively the MaskedPAN can be used as a token to identify a customer. */ "MaskedPan"?: string; /** * Reference of the PAN, which identifies the PAN or the card uniquely, named also PAR (Payment Account Reference). This reference may be defined by the card issuer or by a token service provider under the control of the card issuer, and cannot be used for a payment transaction. */ "PaymentAccountRef"?: string; "EntryMode"?: Array<CardData.EntryModeEnum>; /** * Country Code attached to the card (3 numerics). If available in the card. */ "CardCountryCode"?: number; /** * Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData. */ "ProtectedCardData"?: string; "SensitiveCardData"?: SensitiveCardData | null; "PaymentToken"?: PaymentToken | null; 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 CardData { enum EntryModeEnum { Rfid = "RFID", Keyed = "Keyed", Manual = "Manual", File = "File", Scanned = "Scanned", MagStripe = "MagStripe", Icc = "ICC", SynchronousIcc = "SynchronousICC", Tapped = "Tapped", Contactless = "Contactless", Mobile = "Mobile" } }