Skip to content

NotificationPreferences ​

Type: schema

Description ​

Set channel preferences for each type of

TypeScript Definition ​

typescript
NotificationPreferences: {{
            /** @description These notifications are typically critical for user engagement, providing updates, confirmations, or alerts related to their account activities. */
            transactional?: components["schemas"]["NotificationChannelPreferences"];
            /** @description These notifications aim to engage users with promotional content and enhance their overall experience with the platform. */
            promotional?: {
                /**
                 * @description Indicates whether the user has opted to receive notifications via email.
                 * @default true
                 */
                email?: boolean;
                /**
                 * @description Indicates whether the user has opted to receive notifications via SMS.
                 * @default false
                 */
                sms?: boolean;
                /**
                 * @description Indicates whether the user has opted to receive notifications via WhatsApp.
                 * @default false
                 */
                whatsapp?: boolean;
            };
            /** @description These notifications are often sent periodically as part of a subscription service. */
            newsletter?: {
                /**
                 * @description Indicates whether the user has opted to receive notifications via email.
                 * @default true
                 */
                email?: boolean;
                /**
                 * @description Indicates whether the user has opted to receive notifications via SMS.
                 * @default false
                 */
                sms?: boolean;
                /**
                 * @description Indicates whether the user has opted to receive notifications via WhatsApp.
                 * @default false
                 */
                whatsapp?: boolean;
            };
        };
        /**
         * NumberAttribute
         * @description Attribute for numeric values
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["NotificationChannelPreferences"]NotificationChannelPreferences

OpenAPI Schema ​

json
{
  "description": "Set channel preferences for each type of ",
  "type": "object",
  "properties": {
    "transactional": {
      "description": "These notifications are typically critical for user engagement, providing updates, confirmations, or alerts related to their account activities.",
      "$ref": "#/components/schemas/NotificationChannelPreferences"
    },
    "promotional": {
      "description": "These notifications aim to engage users with promotional content and enhance their overall experience with the platform.",
      "type": "object",
      "properties": {
        "email": {
          "description": "Indicates whether the user has opted to receive notifications via email.",
          "type": "boolean",
          "default": true
        },
        "sms": {
          "description": "Indicates whether the user has opted to receive notifications via SMS.",
          "type": "boolean",
          "default": false
        },
        "whatsapp": {
          "description": "Indicates whether the user has opted to receive notifications via WhatsApp.",
          "type": "boolean",
          "default": false
        }
      }
    },
    "newsletter": {
      "description": "These notifications are often sent periodically as part of a subscription service.\n",
      "type": "object",
      "properties": {
        "email": {
          "description": "Indicates whether the user has opted to receive notifications via email.",
          "type": "boolean",
          "default": true
        },
        "sms": {
          "description": "Indicates whether the user has opted to receive notifications via SMS.",
          "type": "boolean",
          "default": false
        },
        "whatsapp": {
          "description": "Indicates whether the user has opted to receive notifications via WhatsApp.",
          "type": "boolean",
          "default": false
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/NotificationPreferences"
  },
  "title": "NotificationPreferences"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: