// flynt-disable missing-string-validations
syntax = "proto3";

package wix.coupons.api.v2;

import "google/protobuf/wrappers.proto";

option java_package = "com.wix.coupons.api.v2";

message Scope {
    message Group {
        string name = 1; // Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).
        google.protobuf.StringValue entity_id = 2; // Item ID (when the coupon scope is limited to just one item).
    }

    string namespace = 1; // Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)
    Group group = 2; // Coupon scope's applied group (e.g., event or ticket in Wix Events)
}
