Giter Club home page Giter Club logo

Comments (3)

pzhuk avatar pzhuk commented on July 23, 2024

Also, tried to perform request with array of 2 different kved's
Receiving response which has only one single kved

Test data: test_le_2_kved.tar.gz
Full response:


{
  "urgent": {
    "security": {
      "redirect_uri": "https://dummy.com/",
      "client_secret": "VXhoT21CdHpEU2o1b0ZEcGhNMloxZz09",
      "client_id": "14b002cb-724b-4836-9ebf-d80deeb59356"
    },
    "employee_request_id": "efafc928-e2bb-408b-aaef-0af63d62bb99"
  },
  "meta": {
    "url": "http://api-svc.il/api/legal_entities",
    "type": "object",
    "request_id": "m0hnaosj6p7qh4t1c5u11ctg7nsu3qhj",
    "code": 200
  },
  "data": {
    "updated_by": "ca5a94eb-ff85-46d4-abd7-1ca95a911f40",
    "type": "MSP",
    "status": "NOT_VERIFIED",
    "short_name": "КНП 'Перший Черкаський міський ЦПМСД'",
    "public_name": "КНП 'Перший Черкаський міський ЦПМСД'",
    "phones": [
      {
        "type": "MOBILE",
        "number": "+380674023650"
      }
    ],
    "owner_property_type": "STATE",
    "name": "КНП 'Перший Черкаський міський ЦПМСД'",
    "medical_service_provider": {
      "licenses": [
        {
          "what_licensed": "реалізація наркотичних засобів",
          "license_number": "fd123443",
          "issued_date": "1991-08-19",
          "issued_by": "Кваліфікацйна комісія",
          "expiry_date": "1991-08-19",
          "active_from_date": "1991-08-19"
        }
      ],
      "accreditation": {
        "order_no": "fd123443",
        "order_date": "1991-08-19",
        "issued_date": "1991-08-19",
        "expiry_date": "1991-08-19",
        "category": "FIRST"
      }
    },
    "legal_form": "120",
    "kveds": [
      "86.10"
    ],
    "is_active": true,
    "inserted_by": "ca5a94eb-ff85-46d4-abd7-1ca95a911f40",
    "id": "14b002cb-724b-4836-9ebf-d80deeb59356",
    "email": "[email protected]",
    "edrpou": "38782323",
    "addresses": [
      {
        "zip": "02090",
        "type": "REGISTRATION",
        "street_type": "STREET",
        "street": "вул. Ніжинська",
        "settlement_type": "CITY",
        "settlement_id": "43432432",
        "settlement": "Київ",
        "region": "Бердичівський",
        "country": "UA",
        "building": "15",
        "area": "Житомирська",
        "apartment": "23"
      }
    ]
  }
}

from api-spec.

AlekzandrV avatar AlekzandrV commented on July 23, 2024

We've investigated the problem. It's a bug
As we decided earlier on the start of the project - kveds can't be changed via PUT legal entity API.

That's why, if we receive different set of kveds - we will respond with 422 error

from api-spec.

warehousman avatar warehousman commented on July 23, 2024

Fixed

from api-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.