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 Settings {
  // id of the settings record
  string id = 1 [(.wix.api.format) = GUID, (.wix.api.readOnly) = true];
  // The app id that the settings belongs to
  string app_id = 2 [(.wix.api.format) = GUID];
  // Revision number, which increments by 1 each time the settings is updated.
  google.protobuf.Int64Value revision = 3 [(wix.api.readOnly) = true];
  // Date and time the Plan settings was created.
  google.protobuf.Timestamp created_date = 4 [(wix.api.readOnly) = true];
  // Date and time the Plan settings was last updated.
  google.protobuf.Timestamp updated_date = 5 [(wix.api.readOnly) = true];
  // the billing options that are allowed for the app
  repeated Billing billing = 6 [(wix.api.maxSize) = 5];
}

enum Billing {
  UNKNOWN_BILLING_SETTINGS = 0;
  EXTERNAL_BILLING = 1;
}