Cart prescriptions

add contact lens prescription

Добавление нового рецепта на КЛ в корзину

request
POST /api/v2/carts/343c58ae-04dd-4a27-9edd-7dcd23d9083e/prescription/contact-lens HTTP/1.1

{
  "doctorPrescription" : false,
  "sphOd" : -2.0,
  "sphOs" : -2.0,
  "cylOd" : null,
  "cylOs" : null,
  "axOd" : null,
  "axOs" : null,
  "addidationOd" : null,
  "addidationOs" : null,
  "radiusOd" : null,
  "radiusOs" : null,
  "diameterOd" : null,
  "diameterOs" : null,
  "model" : null,
  "comment" : null,
  "basis" : "CLIENT_NO_CHECK_PRESCRIPTION",
  "createdOn" : null,
  "doctorId" : null
}
Table 65. /api/v2/carts/{cartUuid}/prescription/contact-lens
Parameter Description

cartUuid

UUID корзины

response
HTTP/1.1 200 OK

get contact lens prescription

Получение рецепта на КЛ из корзины

request

Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-get-contact-lens-prescription/http-request.adoc[] .request description Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-get-contact-lens-prescription/path-parameters.adoc[] .response Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-get-contact-lens-prescription/http-response.adoc[] .response description Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-get-contact-lens-prescription/response-fields.adoc[]

Cart expected

add expected contact lenses

request
POST /api/v2/carts/b0f04a0c-10ab-4771-ac7b-82234d890185/expected/contact-lenses HTTP/1.1

{
  "requestType" : "FROM_SUPPLIER",
  "departmentId" : null,
  "manufacturerName" : "Alcon",
  "brandName" : "Air Optix Colors",
  "color" : "Blue",
  "packageQuantity" : 6,
  "wearingPeriod" : "2 недели",
  "retailPrice" : 150.0,
  "purchasingPrice" : null,
  "quantity" : 2,
  "leftEye" : {
    "dioptre" : -2.0,
    "cylinder" : -0.5,
    "axis" : 180,
    "add" : "low",
    "curvatureRadius" : 8.5,
    "diameter" : 14.0,
    "expirationOn" : "2026-08-27"
  },
  "rightEye" : {
    "dioptre" : -1.75,
    "cylinder" : -0.7,
    "axis" : 20,
    "add" : "low",
    "curvatureRadius" : 8.5,
    "diameter" : 14.0,
    "expirationOn" : "2026-08-27"
  },
  "totalQuantity" : 4
}
Table 66. /api/v2/carts/{cartUuid}/expected/contact-lenses
Parameter Description

cartUuid

UUID корзины

Path Type Description Constraints

requestType

String

Тип заявки (FROM_ANOTHER_DEPARTMENT or FROM_SUPPLIER)

departmentId

String

Название департамента (если заказ из другого департамента)

manufacturerName

String

Производитель контактных линз

brandName

String

Бренд контактных линз

color

String

Цвет контактных линз

packageQuantity

Number

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

wearingPeriod

String

Период ношения контактных линз

retailPrice

Number

Цена контактных линз

quantity

Number

Количество оформляемых упаковок

leftEye

Object

Рецептурные данные по левому глазу

leftEye.dioptre

Number

Диоптрия

leftEye.cylinder

Number

Цилиндр

leftEye.axis

Number

Ось

leftEye.add

String

Аддидация

leftEye.curvatureRadius

Number

Радиус кривизны

leftEye.diameter

Number

Диаметр

rightEye

Object

Рецептурные данные по левому глазу

rightEye.dioptre

Number

Диоптрия

rightEye.cylinder

Number

Цилиндр

rightEye.axis

Number

Ось

rightEye.add

String

Аддидация

rightEye.curvatureRadius

Number

Радиус кривизны

rightEye.diameter

Number

Диаметр

response
HTTP/1.1 200 OK

edit expected contact lenses

request
PUT /api/v2/carts/7a177bd7-7b8a-45f8-86f3-349a9265aba5/expected/contact-lenses HTTP/1.1

{
  "cartItemIds" : [ "d26719c2-c8cb-4561-82cb-d87f4486a3d0", "90ddcaa7-be0a-45fa-9723-4ff2a203c5b8", "83c99bd6-8ada-4b20-b07f-8066e5711d8c" ],
  "requestType" : "FROM_SUPPLIER",
  "departmentId" : null,
  "eyeType" : "OD",
  "manufacturerName" : "Cooper Vision",
  "brandName" : "Biofinity",
  "color" : "Red",
  "packageQuantity" : 6,
  "wearingPeriod" : "1 month",
  "retailPrice" : 200.0,
  "eye" : {
    "dioptre" : -2.2,
    "cylinder" : -0.8,
    "axis" : 170,
    "add" : "medium",
    "curvatureRadius" : 8.6,
    "diameter" : 14.5,
    "expirationOn" : "2026-08-27"
  }
}
Table 67. /api/v2/carts/{cartUuid}/expected/contact-lenses
Parameter Description

cartUuid

UUID корзины

Path Type Description Constraints

cartItemIds

Array

id редактируемых позиций

requestType

String

Тип заявки (FROM_ANOTHER_DEPARTMENT or FROM_SUPPLIER)

departmentId

String

Id департамента (если заказ из другого департамента)

eyeType

String

Для какого глаза линза (OD or OS)

manufacturerName

String

Производитель контактных линз

brandName

String

Бренд контактных линз

color

String

Цвет контактных линз

packageQuantity

Number

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

wearingPeriod

String

Период ношения контактных линз

retailPrice

Number

Цена контактных линз

eye

Object

Рецептурные параметры

eye.dioptre

Number

Диоптрия

eye.cylinder

Number

Цилиндр

eye.axis

Number

Ось

eye.add

String

Аддидация

eye.curvatureRadius

Number

Радиус кривизны

eye.diameter

Number

Диаметр

response
HTTP/1.1 200 OK

copy expected contact lenses from existed order

request

Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-expected-lenses-copy/http-request.adoc[] .request description Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-expected-lenses-copy/path-parameters.adoc[] .response Unresolved directive in index.adoc - include::/builds/itigris/optima-core/optima/optima-2-backend/target/generated-snippets/cart-expected-lenses-copy/http-response.adoc[]