import { HttpStatus } from '@nestjs/common/enums/http-status.enum'; import { AxiosRequestConfig } from 'axios'; import { VendorProviderEnum } from './index'; export enum VendorAuditTypeEnum { TOAST = 'toast', } export enum VendorAuditActionEnum { CREATE_ORDER = 'create-order', REFUND_ORDER = 'refund-order', } export interface IVendorAudit { readonly _id?: string | any; merchantId: string; storeId: string; vendorId?: string; userId: string; /** * If true, the order has been sent to the pos system. * Otherwise it was not sent. */ isLiveMode: boolean; action: VendorAuditActionEnum; type: VendorAuditTypeEnum | VendorProviderEnum; httpStatus?: HttpStatus; orderNumber: string; orderId: string; recipient_name: string; request?: AxiosRequestConfig; response?: object; retries: number; trace?: any[]; readonly created_at?: Date | string; readonly updated_at?: Date | string; }