syntax = "proto3";

package com.wixpress.appservice.api.upstream.wix.billing.tax.validation.spi.v1;
option java_package = "com.wixpress.appservice.api.upstream.wix.billing.tax.validation.spi.v1";

import "wix/api/annotations.proto";
import "wix/common/spi.proto";
import "wix/spi/definitions.proto";

message TaxIdValidatorConfig {
  option (.wix.api.decomposite_of) = "wix.billing.tax.validation.spi.v1.TaxIdValidatorConfig";

  .wix.common.spi.SpiBaseUri deployment_uri = 1; // URI where the SPI Implementer is deployed
  string validation_provider = 2; // User-friendly name of the tax id validator
  TaxTypesConfig tax_types_config = 3; // Configuration of supported tax types
}

message TaxTypesConfig {
  repeated string supported_tax_types = 1; // List of supported tax types, as provided in ValidateTaxIdRequest and persisted in TaxIdValidationService
}