syntax = "proto3";

package com.wixpress.appservice.api.upstream.wix.billing.tax_calculation_spi.v1;
option java_package = "com.wixpress.appservice.api.upstream.wix.billing.tax_calculation_spi.v1";

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

message TaxCalculationConfig {
    option (.wix.api.decomposite_of) = "wix.billing.tax_calculation_spi.v1.TaxCalculationConfig";
  /*
   Base URI where the endpoints are called. Wix appends the endpoint path to the base URI.
   
   For example, to call the Calculate Tax endpoint at https://my-tax-calc.com/v1/calculate-tax, the base URI you provide here is `"https://my-tax-calc.com/"`.
   */
  .wix.common.spi.SpiBaseUri deployment_uri = 1;
  // Display name of the tax calculator.
  string calculator_display_name = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 200];
  // List of countries, in [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format, that the calculator does not support.
  repeated string unsupported_countries = 3 [(.wix.api.format) = COUNTRY, (.wix.api.maxSize) = 195];
}