Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleRequest
{
  "actualCostRecordId": "89105c06-dbdb-4aa0-9695-d4d19c733270",
  "amount": "9.99",
  "additionalInfoForStaff": "Additional information for staff goes here",
  "additionalInfoForPatron": "Additional information for patron goes here"
}

In case of success mod-feesfines will:

...

Code Block
languagejs
titleResponse 201
{
  "id": "89105c06-dbdb-4aa0-9695-d4d19c733270",
  "status": "Billed",
  "accountId": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
  "additionalInfoForStaff": "Additional information for staff goes here",
  "additionalInfoForPatron": "Additional information for patron goes here",
  "lossType": "Declared lost",
  "lossDate": "2022-09-29T07:42:43.905+00:00",
  "expirationDate": "2022-09-29T07:42:43.905+00:00",
  "user": {
    "id": "f6df27bd-0db0-4fa1-afff-0ccd30cefb1b",
    "barcode": "test",
    "firstName": "Worm",
    "lastName": "Book",
    "middleName": "~"
  },
  "loan": {
    "id": "5cb70208-1147-4cfc-b481-31c575b8de44"
  },
  "item": {
    "id": "0149342a-e0fd-451e-8595-8fd0a0593a92",
    "barcode": "test2",
    "materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
    "materialType": "text",
    "permanentLocationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
    "permanentLocation": "Annex",
    "loanTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210a4",
    "loanType": "Reading room",
    "holdingsRecordId": "68872d8a-bf16-420b-829f-206da38f6c10",
    "effectiveCallNumberComponents": {
      "callNumber": "some-callnumber"
    }
  },
  "instance": {
    "id": "6506b79b-7702-48b2-9774-a1c538fdd34e",
    "title": "Nod",
    "identifiers": [{
        "value": "0956687695",
        "identifierType": "ISBN",
        "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422"
      }, {
        "value": "9780956687695",
        "identifierType": "ISBN",
        "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422"
      }
    ]
  },
  "feeFine": {
    "ownerId": "21b0d0f2-d258-4410-8a19-a37da35728a8",
    "owner": "owner",
    "typeId": "73785370-d3bd-4d92-942d-ae2268e02ded",
    "type": "Lost item fee (actual cost)"
  },
  "metadata": {
    "createdDate": "2022-09-29T07:42:43.980+00:00",
    "createdByUserId": "7ca9bcf4-ac58-519d-bc84-77d1da782742",
    "updatedDate": "2022-09-29T07:42:43.980+00:00",
    "updatedByUserId": "7ca9bcf4-ac58-519d-bc84-77d1da782742"
  }
}

...

Code Block
languagejs
titleRequest
{
  "actualCostRecordId": "89105c06-dbdb-4aa0-9695-d4d19c733270",
  "additionalInfoForStaff": "Additional information for staff goes here"
}

In case of success mod-feesfines will:

...

Code Block
languagejs
titleResponse 201
{
  "id": "89105c06-dbdb-4aa0-9695-d4d19c733270",
  "status": "Cancelled",
  "additionalInfoForStaff": "Additional information for staff goes here",
  "lossType": "Declared lost",
  "lossDate": "2022-09-29T07:42:43.905+00:00",
  "expirationDate": "2022-09-29T07:42:43.905+00:00",
  "user": {
    "id": "f6df27bd-0db0-4fa1-afff-0ccd30cefb1b",
    "barcode": "test",
    "firstName": "Worm",
    "lastName": "Book",
    "middleName": "~"
  },
  "loan": {
    "id": "5cb70208-1147-4cfc-b481-31c575b8de44"
  },
  "item": {
    "id": "0149342a-e0fd-451e-8595-8fd0a0593a92",
    "barcode": "test2",
    "materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
    "materialType": "text",
    "permanentLocationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
    "permanentLocation": "Annex",
    "loanTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210a4",
    "loanType": "Reading room",
    "holdingsRecordId": "68872d8a-bf16-420b-829f-206da38f6c10",
    "effectiveCallNumberComponents": {
      "callNumber": "some-callnumber"
    }
  },
  "instance": {
    "id": "6506b79b-7702-48b2-9774-a1c538fdd34e",
    "title": "Nod",
    "identifiers": [{
        "value": "0956687695",
        "identifierType": "ISBN",
        "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422"
      }, {
        "value": "9780956687695",
        "identifierType": "ISBN",
        "identifierTypeId": "8261054f-be78-422d-bd51-4ed9f33c3422"
      }
    ]
  },
  "feeFine": {
    "ownerId": "21b0d0f2-d258-4410-8a19-a37da35728a8",
    "owner": "owner",
    "typeId": "73785370-d3bd-4d92-942d-ae2268e02ded",
    "type": "Lost item fee (actual cost)"
  },
  "metadata": {
    "createdDate": "2022-09-29T07:42:43.980+00:00",
    "createdByUserId": "7ca9bcf4-ac58-519d-bc84-77d1da782742",
    "updatedDate": "2022-09-29T07:42:43.980+00:00",
    "updatedByUserId": "7ca9bcf4-ac58-519d-bc84-77d1da782742"
  }
}

...