import type * as Square from "../index"; export interface DeviceCode { /** The unique id for this device code. */ id?: string; /** An optional user-defined name for the device code. */ name?: string | null; /** The unique code that can be used to login. */ code?: string; /** The unique id of the device that used this code. Populated when the device is paired up. */ deviceId?: string; /** The targeting product type of the device code. */ productType: Square.ProductType; /** The location assigned to this code. */ locationId?: string | null; /** * The pairing status of the device code. * See [DeviceCodeStatus](#type-devicecodestatus) for possible values */ status?: Square.DeviceCodeStatus; /** When this DeviceCode will expire and no longer login. Timestamp in RFC 3339 format. */ pairBy?: string; /** When this DeviceCode was created. Timestamp in RFC 3339 format. */ createdAt?: string; /** When this DeviceCode's status was last changed. Timestamp in RFC 3339 format. */ statusChangedAt?: string; /** When this DeviceCode was paired. Timestamp in RFC 3339 format. */ pairedAt?: string; }