syntax = "proto3";

package wix.devcenter.plans.v1;
option java_package = "com.wixpress.devcenter.plans.v1";

import "wix/api/validations.proto";
import "wix/api/entity.proto";
import "wix/api/annotations.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";
import "wix/devcenter/plans/v1/plan.proto";

message PlanTranslation {
  // id of the plan record (id of published / draft)
  google.protobuf.StringValue id = 1 [(.wix.api.format) = GUID, (.wix.api.readOnly) = true];
  // The plan id
  string plan_id = 2 [(.wix.api.format) = GUID, (.wix.api.readOnly) = true];
  // The app id that the feature belongs to
  string app_id = 3 [(.wix.api.format) = GUID];
  // The language code of the translation entity
  string language_code = 4 [(.wix.api.format) = LANGUAGE];
  // Plan name
  google.protobuf.StringValue name = 5;
  // Can be shown as bullets / text (list of size 1)
  repeated string description = 6;
  // Can be shown instead of plan price
  google.protobuf.StringValue custom_payment_title = 7;
  // Plan translation status - Draft or Published.
  Status status = 8 [(wix.api.readOnly) = true];
  // Revision number, which increments by 1 each time the Plan is updated.
  google.protobuf.Int64Value revision = 9 [(wix.api.readOnly) = true];
  // Date and time the Plan was created.
  google.protobuf.Timestamp created_date = 10 [(wix.api.readOnly) = true];
  // Date and time the Plan was last updated.
  google.protobuf.Timestamp updated_date = 11 [(wix.api.readOnly) = true];
  // Plan's supported features, which are the features that are available for the plan and presented in the package picker
  repeated SupportedFeature supported_features = 12 [(wix.api.maxSize) = 30];
}
