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

package wix.coupons.api.v2;

import "wix/coupons/api/v2/coupon.proto";
import "wix/api/validations.proto";
import "wix/api/action_payload.proto";

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

message CouponApplied {
    option (wix.api.action_payload).custom_slug = "applied";

    // Applied coupon information.
    Coupon coupon = 1;

    // ID of Wix app that applied the coupon. Supported values:
    // + Wix Stores - `1380b703-ce81-ff05-f115-39571d94dfcd`
    // + Wix Bookings - `13d21c63-b5ec-5912-8397-c3a5ddb27a97`
    // + Wix Events - `140603ad-af8d-84a5-2c80-a0f60cb47351`
    string wix_app_id = 2 [(wix.api.format) = GUID];

    // ID of the entity that the coupon was applied to (orderId, bookingId, etc.).
    string wix_app_order_id = 3;
}
