{
  "files": [
    {
      "name": "keyapis/subscription/v1/keyapis_subscription_offer_v1.proto",
      "description": "Сервис реализует функционал управления коммерческими возможностями(КВ).\nКВ это описание доступных технологических планов(ТП) на ОРПОНе(на доме)",
      "package": "keyapis.subscription.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "DiscountRequirementType",
          "longName": "Offer.DiscountRequirementType",
          "fullName": "keyapis.subscription.v1.Offer.DiscountRequirementType",
          "description": "Справочник условий на скидки",
          "values": [
            {
              "name": "DISCOUNT_REQUIREMENT_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано.\nЕсли указана цена по скидке, а условие не проставлено, скидка не отображается и не применяется"
            },
            {
              "name": "NO_CONDITIONS",
              "number": "1",
              "description": "Безусловная скидка"
            },
            {
              "name": "INTERNET_IS_PAID",
              "number": "2",
              "description": "ШПД интернет оплачен"
            }
          ]
        },
        {
          "name": "StatusType",
          "longName": "Offer.StatusType",
          "fullName": "keyapis.subscription.v1.Offer.StatusType",
          "description": "Типы статусов коммерческих возможностей",
          "values": [
            {
              "name": "STATUS_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ACTIVE",
              "number": "1",
              "description": "Активно.\nДоступно"
            },
            {
              "name": "BLOCKED",
              "number": "2",
              "description": "Заблокировано.\nПриостановлено"
            }
          ]
        },
        {
          "name": "Type",
          "longName": "Offer.Type",
          "fullName": "keyapis.subscription.v1.Offer.Type",
          "description": "Типы коммерческих возможностей",
          "values": [
            {
              "name": "TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "COMPANY",
              "number": "1",
              "description": "УК.\nУслуги, которые назначаются на управляющие компанию"
            },
            {
              "name": "RTK",
              "number": "2",
              "description": "Ростелеком.\nУслуги, которые Ростелеком подключает напрямую физическим лицам"
            },
            {
              "name": "SHARED",
              "number": "3",
              "description": "Общая.\nУслуги, которые видят клиенты обоих типов"
            }
          ]
        },
        {
          "name": "DirectionType",
          "longName": "OfferPaging.DirectionType",
          "fullName": "keyapis.subscription.v1.OfferPaging.DirectionType",
          "description": "Справочник типов направлений сортировки",
          "values": [
            {
              "name": "DIRECTION_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "DESC",
              "number": "1",
              "description": "От большего к меньшему"
            },
            {
              "name": "ASC",
              "number": "2",
              "description": "От меньшего к большему"
            }
          ]
        },
        {
          "name": "OrderByType",
          "longName": "OfferPaging.OrderByType",
          "fullName": "keyapis.subscription.v1.OfferPaging.OrderByType",
          "description": "Справочник типов значений сортировки",
          "values": [
            {
              "name": "ORDER_BY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "ID",
              "number": "1",
              "description": "По идентификатору"
            },
            {
              "name": "PRICE",
              "number": "2",
              "description": "По цене"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "GetOfferCountRequest",
          "longName": "GetOfferCountRequest",
          "fullName": "keyapis.subscription.v1.GetOfferCountRequest",
          "description": "Запрос получения количества коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "OfferFilter",
              "longType": "OfferFilter",
              "fullType": "keyapis.subscription.v1.OfferFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetOfferCountResponse",
          "longName": "GetOfferCountResponse",
          "fullName": "keyapis.subscription.v1.GetOfferCountResponse",
          "description": "Ответ на запрос получения количества коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Всего коммерческих возможностей",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetOfferCountResponse.Error",
              "fullType": "keyapis.subscription.v1.GetOfferCountResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetOfferCountResponse.Error",
          "fullName": "keyapis.subscription.v1.GetOfferCountResponse.Error",
          "description": "Ошибка запроса получения количества коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "offer_filter_validation",
              "description": "Ошибка фильтрации",
              "label": "",
              "type": "ValidationError",
              "longType": "OfferFilter.ValidationError",
              "fullType": "keyapis.subscription.v1.OfferFilter.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetOfferListRequest",
          "longName": "GetOfferListRequest",
          "fullName": "keyapis.subscription.v1.GetOfferListRequest",
          "description": "Запрос получения коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "OfferFilter",
              "longType": "OfferFilter",
              "fullType": "keyapis.subscription.v1.OfferFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "paging",
              "description": "Пагинация",
              "label": "",
              "type": "OfferPaging",
              "longType": "OfferPaging",
              "fullType": "keyapis.subscription.v1.OfferPaging",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "pagination",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetOfferListResponse",
          "longName": "GetOfferListResponse",
          "fullName": "keyapis.subscription.v1.GetOfferListResponse",
          "description": "Ответ на запрос получения коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Коммерческая возможность",
              "label": "",
              "type": "Offer",
              "longType": "Offer",
              "fullType": "keyapis.subscription.v1.Offer",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetOfferListResponse.Error",
              "fullType": "keyapis.subscription.v1.GetOfferListResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetOfferListResponse.Error",
          "fullName": "keyapis.subscription.v1.GetOfferListResponse.Error",
          "description": "Ошибка запроса получения коммерческих возможностей",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "offer_filter_validation",
              "description": "Ошибка фильтрации",
              "label": "",
              "type": "ValidationError",
              "longType": "OfferFilter.ValidationError",
              "fullType": "keyapis.subscription.v1.OfferFilter.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "offer_paging_validation",
              "description": "Ошибка пагинации по страницам",
              "label": "",
              "type": "ValidationError",
              "longType": "OfferPaging.ValidationError",
              "fullType": "keyapis.subscription.v1.OfferPaging.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetOfferRequest",
          "longName": "GetOfferRequest",
          "fullName": "keyapis.subscription.v1.GetOfferRequest",
          "description": "Запрос получения коммерческой возможности",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор коммерческой возможности",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetOfferResponse",
          "longName": "GetOfferResponse",
          "fullName": "keyapis.subscription.v1.GetOfferResponse",
          "description": "Ответ на запрос получения коммерческой возможности",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Коммерческая возможность",
              "label": "",
              "type": "Offer",
              "longType": "Offer",
              "fullType": "keyapis.subscription.v1.Offer",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Offer",
          "longName": "Offer",
          "fullName": "keyapis.subscription.v1.Offer",
          "description": "Коммерческая возможность(КВ)",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "type",
              "description": "Тип коммерческой возможности",
              "label": "",
              "type": "Type",
              "longType": "Offer.Type",
              "fullType": "keyapis.subscription.v1.Offer.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "orpon",
              "description": "ОРПОН.\nИдентификатор дома",
              "label": "",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "company_id",
              "description": "Идентификатор компании",
              "label": "",
              "type": "Int32Value",
              "longType": "google.protobuf.Int32Value",
              "fullType": "google.protobuf.Int32Value",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "plan_id",
              "description": "Идентификатор технологического плана",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 5
            },
            {
              "name": "is_enable_auto_subscribe",
              "description": "Подключать ли автоматическую подписку",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 6
            },
            {
              "name": "status_type",
              "description": "Тип статуса заказа",
              "label": "",
              "type": "StatusType",
              "longType": "Offer.StatusType",
              "fullType": "keyapis.subscription.v1.Offer.StatusType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 7
            },
            {
              "name": "price",
              "description": "Цена",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 8
            },
            {
              "name": "is_digital_way",
              "description": "Признак принадлежности к цифровому пути",
              "label": "",
              "type": "bool",
              "longType": "bool",
              "fullType": "bool",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 9
            },
            {
              "name": "created_at",
              "description": "Дата создания записи.\nЗаполняется сервером",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 10
            },
            {
              "name": "changed_at",
              "description": "Дата последнего изменения.\nЗаполняется и обновляется сервером.\nЗаполняется при создании и изменении.\nЯвляется версией объекта",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 11
            },
            {
              "name": "offer_url",
              "description": "Адрес размещения офферты.\nПолный url до файла",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 12
            },
            {
              "name": "plan",
              "description": "Снапшот состояния технологического плана на момент создания предложения.\nВ данный момент это ссылка в базе на запись, в будущем это будет снапшот",
              "label": "",
              "type": "Plan",
              "longType": "Plan",
              "fullType": "keyapis.subscription.v1.Plan",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 13
            },
            {
              "name": "discount_price",
              "description": "Цена по скидке",
              "label": "",
              "type": "DoubleValue",
              "longType": "google.protobuf.DoubleValue",
              "fullType": "google.protobuf.DoubleValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 14
            },
            {
              "name": "discount_requirement_types",
              "description": "Условия на скидку.\nЕсли условий много то для срабатывания должны выполнять все условия",
              "label": "repeated",
              "type": "DiscountRequirementType",
              "longType": "Offer.DiscountRequirementType",
              "fullType": "keyapis.subscription.v1.Offer.DiscountRequirementType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 15
            }
          ]
        },
        {
          "name": "OfferFilter",
          "longName": "OfferFilter",
          "fullName": "keyapis.subscription.v1.OfferFilter",
          "description": "Фильтр по коммерческим возможностям",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "types",
              "description": "По типам",
              "label": "repeated",
              "type": "Type",
              "longType": "Offer.Type",
              "fullType": "keyapis.subscription.v1.Offer.Type",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "orpons",
              "description": "По ОРПОНам",
              "label": "repeated",
              "type": "int64",
              "longType": "int64",
              "fullType": "int64",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "company_ids",
              "description": "По идентификаторам компаний",
              "label": "repeated",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            }
          ]
        },
        {
          "name": "ValidationError",
          "longName": "OfferFilter.ValidationError",
          "fullName": "keyapis.subscription.v1.OfferFilter.ValidationError",
          "description": "Ошибки валидации фильтра по коммерческим возможностям.\nЭти проверки выполняются до обращения в базу данных",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "orpons",
              "description": "Формат ОРПОН некорректен",
              "label": "",
              "type": "OrponsInvalid",
              "longType": "OfferFilter.ValidationError.OrponsInvalid",
              "fullType": "keyapis.subscription.v1.OfferFilter.ValidationError.OrponsInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "company_ids",
              "description": "Формат идентификатора компании некорректен",
              "label": "",
              "type": "CompanyIdsInvalid",
              "longType": "OfferFilter.ValidationError.CompanyIdsInvalid",
              "fullType": "keyapis.subscription.v1.OfferFilter.ValidationError.CompanyIdsInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "CompanyIdsInvalid",
          "longName": "OfferFilter.ValidationError.CompanyIdsInvalid",
          "fullName": "keyapis.subscription.v1.OfferFilter.ValidationError.CompanyIdsInvalid",
          "description": "Причины:\n- Формат идентификатора компании некорректен;\n- Идентификатора компании передан некорректно, к примеру, значение \u003c= 1",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "OrponsInvalid",
          "longName": "OfferFilter.ValidationError.OrponsInvalid",
          "fullName": "keyapis.subscription.v1.OfferFilter.ValidationError.OrponsInvalid",
          "description": "- Формат ОРПОН некорректен;\n- ОРПОН передан некорректно, к примеру, значение \u003c= 1",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "OfferPaging",
          "longName": "OfferPaging",
          "fullName": "keyapis.subscription.v1.OfferPaging",
          "description": "Пагинация по коммерческим возможностям",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "order_by_type",
              "description": "Тип значения сортировки.\nПо умолчанию: ID",
              "label": "",
              "type": "OrderByType",
              "longType": "OfferPaging.OrderByType",
              "fullType": "keyapis.subscription.v1.OfferPaging.OrderByType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "direction_type",
              "description": "Тип направления сортировки.\nПо умолчанию: DESC",
              "label": "",
              "type": "DirectionType",
              "longType": "OfferPaging.DirectionType",
              "fullType": "keyapis.subscription.v1.OfferPaging.DirectionType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "limit",
              "description": "Количество записей на страницу.\nМинимальное значение: 1.\nМаксимальное значение: 100.\nПо умолчанию: 20.\nЕсли значение 0 (не передано), то выставляем значение по умолчанию",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "offset",
              "description": "Сдвиг.\nПо умолчанию: 0",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            }
          ]
        },
        {
          "name": "ValidationError",
          "longName": "OfferPaging.ValidationError",
          "fullName": "keyapis.subscription.v1.OfferPaging.ValidationError",
          "description": "Ошибка валидации постраничной пагинации по коммерческим возможностям.\nЭти проверки выполняются до обращения в базу данных",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "limit",
              "description": "Количество передано некорректно",
              "label": "",
              "type": "LimitInvalid",
              "longType": "OfferPaging.ValidationError.LimitInvalid",
              "fullType": "keyapis.subscription.v1.OfferPaging.ValidationError.LimitInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "offset",
              "description": "Сдвиг передан некорректно",
              "label": "",
              "type": "OffsetInvalid",
              "longType": "OfferPaging.ValidationError.OffsetInvalid",
              "fullType": "keyapis.subscription.v1.OfferPaging.ValidationError.OffsetInvalid",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "LimitInvalid",
          "longName": "OfferPaging.ValidationError.LimitInvalid",
          "fullName": "keyapis.subscription.v1.OfferPaging.ValidationError.LimitInvalid",
          "description": "Причины:\n- Значение количества \u003c 0 или \u003e 100",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "OffsetInvalid",
          "longName": "OfferPaging.ValidationError.OffsetInvalid",
          "fullName": "keyapis.subscription.v1.OfferPaging.ValidationError.OffsetInvalid",
          "description": "Причины:\n- Значение сдвига \u003c 0",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        }
      ],
      "services": [
        {
          "name": "OfferService",
          "longName": "OfferService",
          "fullName": "keyapis.subscription.v1.OfferService",
          "description": "Сервис коммерческих возможностей(КВ)",
          "methods": [
            {
              "name": "GetOffer",
              "description": "Метод получения коммерческой возможности.\nМетод доступен для: admin, mrf, master, ltp_first, service, application(subscription:read или subscription:edit)",
              "requestType": "GetOfferRequest",
              "requestLongType": "GetOfferRequest",
              "requestFullType": "keyapis.subscription.v1.GetOfferRequest",
              "requestStreaming": false,
              "responseType": "GetOfferResponse",
              "responseLongType": "GetOfferResponse",
              "responseFullType": "keyapis.subscription.v1.GetOfferResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/offer/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetOfferList",
              "description": "Метод получения списка коммерческих возможностей.\nМетод доступен для: admin, mrf, master, external_seller, ltp_first, owner, employee, service, application(subscription:read или subscription:edit)",
              "requestType": "GetOfferListRequest",
              "requestLongType": "GetOfferListRequest",
              "requestFullType": "keyapis.subscription.v1.GetOfferListRequest",
              "requestStreaming": false,
              "responseType": "GetOfferListResponse",
              "responseLongType": "GetOfferListResponse",
              "responseFullType": "keyapis.subscription.v1.GetOfferListResponse",
              "responseStreaming": true,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/offer/list"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetOfferCount",
              "description": "Метод получения количества коммерческих возможностей.\nМетод доступен для: admin, mrf, master, external_seller, ltp_first, owner, employee, service, application(subscription:read или subscription:edit)",
              "requestType": "GetOfferCountRequest",
              "requestLongType": "GetOfferCountRequest",
              "requestFullType": "keyapis.subscription.v1.GetOfferCountRequest",
              "requestStreaming": false,
              "responseType": "GetOfferCountResponse",
              "responseLongType": "GetOfferCountResponse",
              "responseFullType": "keyapis.subscription.v1.GetOfferCountResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/subscription/api/v1/offer/count"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "syntax": "proto3"
    }
  ],
  "scalarValueTypes": [
    {
      "protoType": "double",
      "notes": "",
      "cppType": "double",
      "csType": "double",
      "goType": "float64",
      "javaType": "double",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "float",
      "notes": "",
      "cppType": "float",
      "csType": "float",
      "goType": "float32",
      "javaType": "float",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "int32",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "int64",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "uint32",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "uint64",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint32",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint64",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "fixed32",
      "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "fixed64",
      "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "sfixed32",
      "notes": "Always four bytes.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sfixed64",
      "notes": "Always eight bytes.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "bool",
      "notes": "",
      "cppType": "bool",
      "csType": "bool",
      "goType": "bool",
      "javaType": "boolean",
      "phpType": "boolean",
      "pythonType": "boolean",
      "rubyType": "TrueClass/FalseClass"
    },
    {
      "protoType": "string",
      "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.",
      "cppType": "string",
      "csType": "string",
      "goType": "string",
      "javaType": "String",
      "phpType": "string",
      "pythonType": "str/unicode",
      "rubyType": "String (UTF-8)"
    },
    {
      "protoType": "bytes",
      "notes": "May contain any arbitrary sequence of bytes.",
      "cppType": "string",
      "csType": "ByteString",
      "goType": "[]byte",
      "javaType": "ByteString",
      "phpType": "string",
      "pythonType": "str",
      "rubyType": "String (ASCII-8BIT)"
    }
  ]
}