commercetools-8.x-1.2-alpha1/config/schema/commercetools.schema.yml

config/schema/commercetools.schema.yml
commercetools.api:
  type: config_object
  label: commercetools API configuration
  mapping:
    client_id:
      type: string
      label: commercetools Client ID
    client_secret:
      type: string
      label: commercetools Client secret
    project_key:
      type: string
      label: commercetools Project Key
    scope:
      type: string
      label: commercetools API Scope
    hosted_region:
      type: string
      label: commercetools hosted region for API
    cache_responses_ttl:
      type: integer
      label: commercetools responses caching TTL

commercetools.settings:
  type: config_object
  label: commercetools Settings
  mapping:
    unavailable_data_text:
      type: label
      label: Not available text
    items_per_page:
      type: integer
      label: Items per page
    card_image_style:
      type: string
      label: Card image style
    price_customer_group:
      type: string
      label: Price Customer Group
    display_connection_errors:
      type: boolean
      label: Display commercetools connection errors as Drupal Messages.
    log_commercetools_requests:
      type: boolean
      label: Enable logging of each request to commercetools.
    checkout_mode:
      type: string
      label: Order checkout mode
    checkout_commercetools_app_key:
      type: string
      label: Checkout Application key
    checkout_commercetools_inline:
      type: boolean
      label: Display commercetools checkout inline.
    customize_page_attributes_enabled:
      label: Customize displayed product attributes on the product page
      type: boolean
    customize_page_attributes:
      label: Attributes to show on the product page
      type: sequence
      sequence:
        type: string
        label: Attribute Key

commercetools.locale:
  type: config_object
  mapping:
    language_fallback:
      type: string
      label: Default Locale
    store:
      type: text
      label: Store
    language:
      type: text
      label: Locale
    country:
      type: text
      label: Country
    currency:
      type: text
      label: Currency
    channel:
      type: text
      label: Channel

commercetools.catalog_block_base:
  type: block_settings
  label: 'commercetools Catalog - base block settings'
  mapping:
    product_list_index:
      type: string
      label: Product List Index

commercetools.catalog_action_block_base:
  type: commercetools.catalog_block_base
  label: 'commercetools Catalog Action - base block settings'
  mapping:
    target_page:
      type: string
      label: Target page

commercetools.catalog_filters_block_base:
  type: commercetools.catalog_action_block_base
  label: 'commercetools Catalog Filters - base block settings'
  mapping:
    customize_filters_enabled:
      label: Customize displayed attributes in the product filter form
      type: boolean
    customize_filters:
      label: Attributes to show in filters
      type: sequence
      nullable: true
      sequence:
        type: mapping
        mapping:
          type:
            type: string
            label: 'Filter type'
          label:
            type: string
            label: 'Label'
          widget_type:
            type: string
            label: 'Widget type'
          path:
            type: string
            label: 'Path'
          enabled:
            type: bool
            label: 'Enabled'

commercetools.categories_list_block_base:
  type: commercetools.catalog_action_block_base
  label: 'Categories List - base block settings'
  mapping:
    max_level:
      type: integer
      label: Maximum categories tree depth
    display_from_current:
      type: boolean
      label: Display from current category
    parent_category:
      type: string
      label: Parent category
    initial_level:
      type: integer
      label: Initial visibility level
    display_style:
      type: string
      label: Display style
      constraints:
        Choice:
          choices:
            - cards
            - list
    cards_columns:
      type: integer
      label: Number of columns (cards only)

commercetools.product_list_block_base:
  type: commercetools.catalog_block_base
  label: 'commercetools Product List - base block settings'
  mapping:
    style:
      type: string
      title: Style
      description: Style of product list.
    columns_number:
      type: integer
      label: Number of columns
    categories:
      type: sequence
      sequence:
        type: string
        label: Category Key
    total_limit:
      type: integer
      label: Total number of items
    items_per_page:
      type: integer
      label: Items per page
    sort_by:
      type: string
      label: Sort by
    sort_order:
      type: string
      label: Sort order
    custom_filters_raw:
      type: text
      label: Custom filters JSON
    display_by_sku:
      type: sequence
      sequence:
        type: string
        label: Product SKU
    custom_filters:
      type: sequence
      sequence:
        type: string
        label: Custom filter parameter

commercetools.subscriptions_settings:
  type: config_object
  label: 'commercetools Subscriptions settings'
  mapping:
    destination:
      type: string
      label: Cloud messaging service type
    subscription_key:
      type: string
      label: Subscription key
    changes:
      type: string
      label: Resource types to subscribe
    webhook_token:
      type: string
      label: Access token
    logging:
      type: boolean
      label: Log webhook calls.

commercetools.subscriptions_destination_sqs:
  type: config_object
  label: commercetools subscription SQS
  mapping:
    queue_url:
      type: string
      label: Queue URL
    access_key:
      type: string
      label: Access Key
    access_secret:
      type: string
      label: Access Secret
    region:
      type: string
      label: Region

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc