syntax = "proto3";

package wix.inventory.api.v1;

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

option java_package = "com.wix.ecommerce.inventory.api.v1";
message PreorderInfo {
  // Whether the item is available for preorder.
  bool enabled = 1;
  // A message the buyer will see when the item is out of stock and preorder is enabled.
  google.protobuf.StringValue message = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 250];
  // Number of products that can be preordered after stock reaches zero.
  google.protobuf.Int32Value limit = 3 [(.wix.api.min) = 0, (.wix.api.max) = 100000];
}