syntax = "proto3";

package com.wix.ecommerce.platform_common.api;

import "google/protobuf/struct.proto";
import "google/api/annotations.proto";
import "wix/api/annotations.proto";
import "wix/api/validations.proto";
import "com/wix/ecommerce/platform_common/api/address.proto";

message TaxableAddress  {
  oneof TaxableAddressData {
    //  taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
    TaxableAddressType address_type = 1;
  }

  enum TaxableAddressType {
    UNKNOWN_TAXABLE_ADDRESS = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
    BUSINESS = 1;
    BILLING = 2;
    SHIPPING = 3;
  }
};