import type { Address } from './Address'; import type { PaymentConnectorConfiguration } from './PaymentConnectorConfiguration'; import type { PaymentInformationHash } from './PaymentInformationHash'; import type { TokenVersionState } from './TokenVersionState'; import type { Label } from './Label'; import type { PaymentMethod } from './PaymentMethod'; import type { Token } from './Token'; import type { PaymentMethodBrand } from './PaymentMethodBrand'; import type { ChargeAttemptEnvironment } from './ChargeAttemptEnvironment'; import type { TokenVersionRetryStrategy } from './TokenVersionRetryStrategy'; import type { TokenVersionType } from './TokenVersionType'; /** * * @export * @interface TokenVersion */ export interface TokenVersion { /** * The hashed payment information that the token version represents. * @type {Set} * @memberof TokenVersion */ readonly paymentInformationHashes?: Set; /** * The language that is linked to the object. * @type {string} * @memberof TokenVersion */ readonly language?: string; /** * * @type {TokenVersionType} * @memberof TokenVersion */ type?: TokenVersionType; /** * The date and time when the object was created. * @type {Date} * @memberof TokenVersion */ readonly createdOn?: Date; /** * Retry interval when the strategy advises retrying later. * @type {string} * @memberof TokenVersion */ readonly retryIn?: string; /** * * @type {PaymentConnectorConfiguration} * @memberof TokenVersion */ paymentConnectorConfiguration?: PaymentConnectorConfiguration; /** * The date and time when the token version was marked obsolete. * @type {Date} * @memberof TokenVersion */ readonly obsoletedOn?: Date; /** * The date and time when the token version is set to expire, after which it will be marked as obsolete. * @type {Date} * @memberof TokenVersion */ readonly expiresOn?: Date; /** * The URL to the token's icon displayed to the customer. * @type {string} * @memberof TokenVersion */ readonly iconUrl?: string; /** * A unique identifier for the object. * @type {number} * @memberof TokenVersion */ readonly id?: number; /** * * @type {TokenVersionState} * @memberof TokenVersion */ state?: TokenVersionState; /** * The token name as specified by the processor. * @type {string} * @memberof TokenVersion */ readonly processorToken?: string; /** * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed. * @type {Date} * @memberof TokenVersion */ readonly plannedPurgeDate?: Date; /** * * @type {PaymentMethodBrand} * @memberof TokenVersion */ paymentMethodBrand?: PaymentMethodBrand; /** * The version is used for optimistic locking and incremented whenever the object is updated. * @type {number} * @memberof TokenVersion */ readonly version?: number; /** * The date and time when the system last attempted a retry for this token version. * @type {Date} * @memberof TokenVersion */ readonly lastRetriedOn?: Date; /** * The labels providing additional information about the object. * @type {Set