syntax = "proto3";

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

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

message ValidationsSPIConfig {
    option (.wix.api.decomposite_of) = "com.wix.ecommerce.validations_spi.v1.ValidationsSPIConfig";
      reserved 1;
      // Whether to validate the cart page in addition to the checkout page. Default: `false`
      bool validate_in_cart = 2;
      /*
      Required. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI.
      For example, to call the Get Validation Violations endpoint at `https://my-validations.com/v1/get-violations`, the base URI you provide here is `https://my-validations.com`.
      */
      string deployment_uri = 3 [(.wix.api.minLength) = 1, (.wix.spi.base_uri) = true];

      /*
      Optional WQL filter to apply to the validation info.
      When provided, only validation info requests that match the filter will be sent to the implementer.
      */
      google.protobuf.Struct filter = 4 [
            (.wix.api.field_exposure) = INTERNAL,
            (.wix.api.field_maturity) = ALPHA
      ];
}