syntax = "proto3";

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

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

message DefaultTaxGroupProviderConfig {
  option (.wix.api.decomposite_of) = "wix.billing.spi.v1.DefaultTaxGroupProviderConfig";
  // URI where the SPI Implementer is deployed
  string deployment_uri = 1 [(.wix.spi.base_uri) = true];

  // User-friendly name of the tax category
  string taxation_category = 2 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "Taxation category name"
    grouping: "Taxation category name"
  }];
  map <string,TaxationCategoryProvider> additional_categories = 3;
}

message TaxationCategoryProvider {
  string taxation_category = 1 [(.wix.api.translatable) = {
    type: SHORT_TEXT
    name: "Additional taxation category name"
    grouping: "additional taxation category name"
  }]; // the name of the additional taxation category
  string taxation_category_uuid = 2[(.wix.api.format) = GUID]; //must be a unique GUID for the category
}
