syntax = "proto3";

package com.wix.ecommerce.platform_common.api;

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "wix/api/annotations.proto";

message LocationAndQuantity {
  // Location id in the associated owner app.
  string id = 1 [(.wix.api.format) = GUID];
  // Location owner app, if not provided then the site business info locations will be used.
  google.protobuf.StringValue app_id = 2 [(.wix.api.format) = GUID, deprecated = true, (.wix.api.field_deprecated) = {
    target_removal_date: "2025-03-01"
  }];
  // Quantity for specific location.
  int32 quantity = 3 [(.wix.api.min) = 1, (.wix.api.max) = 100000];
  // Location name.
  google.protobuf.StringValue name = 4 [(.wix.api.maxLength) = 500, (.wix.api.readOnly) = true, (.wix.api.field_maturity) = BETA];
}
