syntax = "proto3";

package com.wix.ecommerce.platform_common.api;

import "wix/api/annotations.proto";
import "wix/api/validations.proto";

message Duration {
  // Amount of units. For example, 30 MINUTES, 1 HOURS, 7 DAYS, etc
  int32 count = 1 [(.wix.api.min) = 1];
  // Duration unit: MINUTES, HOURS and DAYS
  DurationUnit unit = 2;

  enum DurationUnit {
    UNKNOWN_DURATION_UNIT = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
    MINUTES = 1;
    HOURS = 2;
    DAYS = 3;
  }
}