wallee
Version:
TypeScript/JavaScript client for wallee
104 lines (103 loc) • 3.62 kB
TypeScript
import type { PaymentTerminalType } from './PaymentTerminalType';
import type { PaymentTerminalLocationVersion } from './PaymentTerminalLocationVersion';
import type { PaymentTerminalConfigurationVersion } from './PaymentTerminalConfigurationVersion';
import type { PaymentTerminalState } from './PaymentTerminalState';
/**
*
* @export
* @interface PaymentTerminal
*/
export interface PaymentTerminal {
/**
* The unique identifier of the terminal, that is displayed on the device.
* @type {string}
* @memberof PaymentTerminal
*/
readonly identifier?: 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 PaymentTerminal
*/
readonly plannedPurgeDate?: Date;
/**
* A client-generated nonce which uniquely identifies some action to be executed. Subsequent requests with the same external ID do not execute the action again, but return the original result.
* @type {string}
* @memberof PaymentTerminal
*/
readonly externalId?: string;
/**
*
* @type {PaymentTerminalType}
* @memberof PaymentTerminal
*/
type?: PaymentTerminalType;
/**
* The name of the device that is currently linked to the payment terminal.
* @type {string}
* @memberof PaymentTerminal
*/
readonly deviceName?: string;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @type {number}
* @memberof PaymentTerminal
*/
readonly version?: number;
/**
* The serial number of the device that is currently linked to the payment terminal.
* @type {string}
* @memberof PaymentTerminal
*/
readonly deviceSerialNumber?: string;
/**
* The ID of the space this object belongs to.
* @type {number}
* @memberof PaymentTerminal
*/
readonly linkedSpaceId?: number;
/**
*
* @type {PaymentTerminalConfigurationVersion}
* @memberof PaymentTerminal
*/
configurationVersion?: PaymentTerminalConfigurationVersion;
/**
*
* @type {PaymentTerminalLocationVersion}
* @memberof PaymentTerminal
*/
locationVersion?: PaymentTerminalLocationVersion;
/**
* The default currency of the terminal.
* @type {string}
* @memberof PaymentTerminal
*/
readonly defaultCurrency?: string;
/**
* The name used to identify the payment terminal.
* @type {string}
* @memberof PaymentTerminal
*/
readonly name?: string;
/**
* A unique identifier for the object.
* @type {number}
* @memberof PaymentTerminal
*/
readonly id?: number;
/**
*
* @type {PaymentTerminalState}
* @memberof PaymentTerminal
*/
state?: PaymentTerminalState;
}
/**
* Check if a given object implements the PaymentTerminal interface.
*/
export declare function instanceOfPaymentTerminal(value: object): value is PaymentTerminal;
export declare function PaymentTerminalFromJSON(json: any): PaymentTerminal;
export declare function PaymentTerminalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentTerminal;
export declare function PaymentTerminalToJSON(json: any): PaymentTerminal;
export declare function PaymentTerminalToJSONTyped(value?: Omit<PaymentTerminal, 'identifier' | 'plannedPurgeDate' | 'externalId' | 'deviceName' | 'version' | 'deviceSerialNumber' | 'linkedSpaceId' | 'defaultCurrency' | 'name' | 'id'> | null, ignoreDiscriminator?: boolean): any;