syntax = "proto2";

package maps_adv.geosmb.landlord.proto.common;

message Decimal {
  required string value = 1; // like 4.5 or 123.45
}

message ImageTemplate {
  required string template_url = 1;
}

message Error {
    enum ERROR_CODE {
        VALIDATION_ERROR = 1;
        NO_ORGS_FOR_BIZ_ID = 2;
        NO_ORGINFO = 3;
        SLUG_IN_USE = 4;
        BIZ_ID_UNKNOWN = 5;
        BIZ_ID_ALREADY_HAS_DATA = 6;
        NO_STABLE_VERSION_FOR_PUBLISHING = 7;
        VERSION_DOES_NOT_EXIST = 8;
        UNKNOWN_COLOR_PRESET = 9;
        NO_BIZ_ID_FOR_ORG = 10;
        TOO_MUCH_SLUGS = 11;
    }

    required ERROR_CODE code = 1;
    optional string description = 2;
}

enum Currency {
    RUB = 1;
    KZT = 2;
    UAH = 3;
    BYN = 4;
}

message Money {
    required uint64 amount = 1;
    required Currency currency = 2 [default = RUB];
}
