Interface AttributeResponse<CustomFields>

An attribute on the product service

interface AttributeResponse {
    categoryIds?: string[];
    customFields: CustomFields;
    groupName?: string;
    id: string;
    itemGroups?: {
        categoryIds?: string[];
        key: string;
        value: string;
    }[];
    items?: {
        groupName?: string;
        key: string;
        value: string;
    }[];
    name: string;
    order?: number;
    type: "Boolean" | "Text" | "Number" | "Select" | "MultiSelect";
}

Type Parameters

  • CustomFields = unknown

Properties

categoryIds?: string[]

The category IDs this attribute is associated with

customFields: CustomFields

The custom fields for this attribute

groupName?: string

The named group of this attribute

id: string

The unique identifier for this attribute

itemGroups?: {
    categoryIds?: string[];
    key: string;
    value: string;
}[]

The list of attribute item groups that items can be in (for type = Select | MultiSelect)

Type declaration

  • Optional categoryIds?: string[]
  • key: string
  • value: string
items?: {
    groupName?: string;
    key: string;
    value: string;
}[]

The list of attribute items (for type = Select | MultiSelect)

Type declaration

  • Optional groupName?: string
  • key: string
  • value: string
name: string

The name of this attribute

order?: number

The sort order of this attribute

type: "Boolean" | "Text" | "Number" | "Select" | "MultiSelect"

The type of this attribute

Generated using TypeDoc