syntax = "proto3";

package com.wix.ecommerce.platform_common.api;

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

message ExternalReference {
  // ID of the app associated with the purchase flow.
  // For example, the Wix Pay Links app ID.
  string app_id = 1 [(.wix.api.format) = GUID, (.wix.api.immutable) = true];

  // Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
  // For example, a Wix Pay Link ID.
  google.protobuf.StringValue resource_id = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 100, (.wix.api.immutable) = true];
}