Upc

list settings

request
GET /api/v2/settings/upc?deleted=false HTTP/1.1
Table 846. request description
Parameter Description

deleted

true = вывод удаленных

response
HTTP/1.1 200 OK

[ {
  "id" : 5,
  "integrated" : "Latitude South Holdings",
  "deleted" : false,
  "lengths" : [ 5, 8, 10, 7, 6 ],
  "suppliers" : [ "ООО \"Оптима\"", "ООО \"Линзы Хойя Рус\"", "пууманн" ]
}, {
  "id" : 4,
  "integrated" : "Latitude South Holdings",
  "deleted" : false,
  "lengths" : [ 6, 10, 11 ],
  "suppliers" : [ "ООО \"Линзы Хойя Рус\"", "пууманн", "Цех" ]
}, {
  "id" : 2,
  "integrated" : "Moz Optica",
  "deleted" : false,
  "lengths" : [ 6 ],
  "suppliers" : [ "Со склада", "пууманн" ]
}, {
  "id" : 6,
  "integrated" : "ООО \"Маркиза проект\"",
  "deleted" : false,
  "lengths" : [ 7, 11, 5 ],
  "suppliers" : [ "ООО \"Оптима\"", "ООО \"Линзы Хойя Рус\"", "ООО \"Оптик-Клуб\"", "Подарочные сертификаты" ]
} ]
Table 847. response description
Path Type Description

id

Number

id

integrated

String

integrated

deleted

Boolean

deleted

suppliers

Array

suppliers

lengths

Array

lengths

get setting

request
GET /api/v2/settings/upc/1 HTTP/1.1
Table 848. /api/v2/settings/upc/{upcSettingId}
Parameter Description

upcSettingId

id настройки

response
HTTP/1.1 200 OK

{
  "id" : 1,
  "integrated" : "OSME Kenya",
  "deleted" : true,
  "lengths" : [ 7, 9 ],
  "suppliers" : [ "пууманн" ]
}
Table 849. response description
Path Type Description

id

Number

id

integrated

String

integrated

deleted

Boolean

deleted

suppliers

Array

suppliers

lengths

Array

lengths

create setting

request
POST /api/v2/settings/upc HTTP/1.1

{
  "integrated" : "ООО Оптима",
  "suppliers" : [ "supplier-1", "supplier-2" ],
  "lengths" : [ 7, 9 ]
}
response
HTTP/1.1 200 OK

update setting

request
PUT /api/v2/settings/upc HTTP/1.1

{
  "upcSettingId" : 4,
  "suppliers" : [ "supplier-1", "supplier-2" ],
  "lengths" : [ 7, 9 ]
}
response
HTTP/1.1 200 OK

delete setting

request
DELETE /api/v2/settings/upc/8 HTTP/1.1
Table 850. /api/v2/settings/upc/{upcSettingId}
Parameter Description

upcSettingId

id настройки

response
HTTP/1.1 200 OK

Expected contact lenses

request
GET /api/v2/contact-lenses?requestType=FROM_SUPPLIER&searchType=RIGHT_EYE&manufacturerName=REAL_MANUFACTURER HTTP/1.1
request description

Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/order-expected-contact-lenses-search/request-parameters.adoc[] .response

HTTP/1.1 200 OK

{
  "content" : [ {
    "departmentId" : null,
    "departmentName" : null,
    "manufacturerName" : "REAL_MANUFACTURER",
    "brandName" : "Acuvue Oasys",
    "color" : null,
    "packageQuantity" : 12,
    "currentQuantity" : null,
    "wearingPeriod" : "2 недели",
    "retailPrice" : 1.0,
    "purchasingPrice" : null,
    "rightEye" : {
      "dioptre" : null,
      "cylinder" : null,
      "axis" : null,
      "add" : null,
      "curvatureRadius" : 8.4,
      "diameter" : 14.0,
      "packageCount" : null,
      "expirationOn" : null,
      "criticalExpirationDate" : false
    },
    "leftEye" : null
  }, {
    "departmentId" : null,
    "departmentName" : null,
    "manufacturerName" : "REAL_MANUFACTURER",
    "brandName" : "Acuvue Oasys",
    "color" : null,
    "packageQuantity" : 24,
    "currentQuantity" : null,
    "wearingPeriod" : "2 недели",
    "retailPrice" : 1.0,
    "purchasingPrice" : null,
    "rightEye" : {
      "dioptre" : null,
      "cylinder" : null,
      "axis" : null,
      "add" : null,
      "curvatureRadius" : 8.4,
      "diameter" : 14.0,
      "packageCount" : null,
      "expirationOn" : null,
      "criticalExpirationDate" : false
    },
    "leftEye" : null
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : true,
      "sorted" : false,
      "unsorted" : true
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 2,
  "totalPages" : 1,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : true,
    "sorted" : false,
    "unsorted" : true
  },
  "numberOfElements" : 2,
  "empty" : false
}
Table 851. response description
Path Type Description

content[].

Array

an array of contact lenses

content[].departmentId

String

Id департамента в котором находится линза (актуально только при типе заявки FROM_ANOTHER_DEPARTMENT)

content[].departmentName

String

Название департамента в котором находится линза (актуально только при типе заявки FROM_ANOTHER_DEPARTMENT)

content[].manufacturerName

String

Производитель

content[].brandName

String

Наименование (бренда)

content[].color

String

Цвет

content[].packageQuantity

Number

Количество контактных линз в упаковке

content[].currentQuantity

Number

Количество оставшихся контактных линз в упаковке

content[].wearingPeriod

String

Период ношения

content[].retailPrice

Number

Цена

content[].leftEye

Object

Параметры левого глаза

content[].leftEye.dioptre

Number

Сфера левого глаза

content[].leftEye.cylinder

Number

Цилиндр левого глаза

content[].leftEye.axis

Number

Ось левого глаза

content[].leftEye.add

String

Аддидация левого глаза

content[].leftEye.curvatureRadius

Number

Радиус левого глаза

content[].leftEye.diameter

Number

Диаметр левого глаза

content[].leftEye.packageCount

Number

Количество упаковок для левого глаза (актуально для FROM_ANOTHER_DEPARTMENT)

content[].leftEye.criticalExpirationDate

Boolean

Наступила ли критическая дата для левого глаза

content[].rightEye

Object

Параметры правого глаза

content[].rightEye.dioptre

Number

Сфера правого глаза

content[].rightEye.cylinder

Number

Цилиндр правого глаза

content[].rightEye.axis

Number

Ось правого глаза

content[].rightEye.add

String

Аддидация правого глаза

content[].rightEye.curvatureRadius

Number

Радиус правого глаза

content[].rightEye.diameter

Number

Диаметр правого глаза

content[].rightEye.packageCount

Number

Количество упаковок для правого глаза (актуально для FROM_ANOTHER_DEPARTMENT)

content[].rightEye.criticalExpirationDate

Boolean

Наступила ли критическая дата для правого глаза