Application Load

ICustomerTicket

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICustomerTicket

A customer support conversation with state, counters and purchase references.

interfaces/orionplace/tickets/ICustomerTicketApi.ts
TypeScript
export interface ICustomerTicket {
  // Ticket ID.
  id: number;
  // Kind of the conversation, as `ECustomerTicketType`, with the backend label.
  type: {
    // Value of int.
    int: ECustomerTicketType;
    // Value of text.
    text: string;
  };
  // Related purchased product for an order ticket.
  product?: IProduct | null;
  // Related order ID for an order ticket.
  order_id?: number;
  // Purchased shipment-line ID, or null.
  related_dlf_item_id: number | null;
  // Purchased additional-product ID, or null.
  related_option_item_id: number | null;
  // Paid-subscription record ID, or null.
  related_paid_subscription_id: number | null;
  // Open/closed state.
  status: {
    // Value of int.
    int: ECustomerTicketStatus;
    // Value of text.
    text: string;
  };
  // Creation time.
  time_created: IApiDateTime | null;
  // Last update time.
  time_updated: IApiDateTime | null;
  // Unread support replies.
  c_unread_to_user: number;
  // Customer messages not yet read by support.
  c_unread_to_managment: number;
  // Image and total message counts.
  counts: {
    // Value of c_attached_files.
    c_attached_files: number;
    // Value of c_total_messages.
    c_total_messages: number;
  };
  // Ticket resolution.
  solution: {
    // Value of int.
    int: ECustomerTicketSolution;
    // Value of text.
    text: string;
  };
  // A return request marked by the customer as a defect.
  // `true` when the customer marked this return request as a defect.
  is_defect?: boolean;
  // Customer rating from 0 to 5; initially 0.
  rating: number;
  // Last customer message time.
  time_last_msg_customer: IApiDateTime | null;
  // Last support message time, or null.
  time_last_msg_manager: IApiDateTime | null;
  // null when a message is accepted now.
  // `null` when the customer can send a message now; otherwise why a new
  // message would be rejected.
  reply_wait?: ICustomerTicketReplyWait | null;
  // All replies when the ticket list is filtered by ID.
  replies?: ICustomerTicketReply[];
  // Existing refund shipment and optional associated order.
  refund?: ICustomerTicketRefund;
}