syntax = "proto3";

package com.wixpress.appservice.api.upstream.com.wix.ecommerce.catalog_spi.api.v1;

import "wix/api/annotations.proto";
import "wix/api/validations.proto";
import "wix/spi/definitions.proto";
import "google/protobuf/wrappers.proto";

message CatalogSPIConfig {
  // Base URI which Wix eCommerce will call to access Catalog service plugin endpoints. For example, to call the Get Catalog Items endpoint at `https://my-external-catalog.com/get-catalog-items`, the base URI you provide here is `https://my-external-catalog.com`.
  string deployment_uri = 1 [(.wix.spi.base_uri) = true];
  // Configuration details for discounts applied to all items in the catalog.
  DiscountConfig all_items_discount = 2;
  // Configuration details for discounts applied to specific items in the catalog.
  DiscountConfig specific_items_discount = 3;
}

  message DiscountConfig {
    // Whether the discount is enabled.
    //
    // Default: `false`.
    bool enabled = 1;
    // Translation key for text to display to the site owner.
    string translation_key = 2 [(.wix.api.minLength) = 5, (.wix.api.maxLength) = 100];
  }