foliolib.folio.api.ebsconet.Ebsconet

class foliolib.folio.api.ebsconet.Ebsconet(tenant: str)

Bases: foliolib.folio.FolioApi

Ebsconet integration API

Ebsconet integration API

Base class of the Folio API

Parameters

tenant (str) – Tenant id

Methods

getebsconetorderline(poLineNumber)

GET /ebsconet/orders/order-lines/{poLineNumber}

getvalidation()

GET /ebsconet/validate

putebsconetorderline(poLineNumber, ...)

PUT /ebsconet/orders/order-lines/{poLineNumber}

getebsconetorderline(poLineNumber)

GET /ebsconet/orders/order-lines/{poLineNumber}

Parameters

poLineNumber (str) – product order line number

Returns

See Schema below.

Return type

dict

Raises
  • OkapiRequestError – Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

  • OkapiRequestNotFound – Purchase order line with a given number not found

  • OkapiRequestFatalError – Internal server error, e.g. due to misconfiguration

Schema

{
    "id": "ebsconet_order_line",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Ebsconet order line integration schema",
    "type": "object",
    "properties": {
        "cancellationRestriction": {
            "type": "boolean",
            "description": "Whether or not there are cancellation restrictions for this purchase order line",
            "readOnly": false
        },
        "cancellationRestrictionNote": {
            "type": "string",
            "description": "Free-form notes related to cancellation restrictions",
            "readOnly": false
        },
        "currency": {
            "type": "string",
            "description": "An ISO currency code",
            "readOnly": false
        },
        "fundCode": {
            "type": "string",
            "description": "Fund distribution code",
            "readOnly": false
        },
        "poLineNumber": {
            "id": "po_line_number",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "A human readable number, assigned to this product order line",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
        },
        "publisherName": {
            "type": "string",
            "description": "Publisher of the material",
            "readOnly": false
        },
        "internalNote": {
            "type": "string",
            "description": "Renewal note for this purchase order line"
        },
        "quantity": {
            "type": "integer",
            "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
            "readOnly": false
        },
        "subscriptionFromDate": {
            "type": "string",
            "description": "the start date of the subscription",
            "format": "date-time",
            "nullable": true,
            "readOnly": false
        },
        "subscriptionToDate": {
            "type": "string",
            "description": "the end date of the subscription",
            "format": "date-time",
            "nullable": true,
            "readOnly": false
        },
        "unitPrice": {
            "type": "number",
            "description": "The per-item list price for physical or resources of 'Other' order format",
            "readOnly": false
        },
        "vendor": {
            "type": "string",
            "description": "Vendor code",
            "maxLength": 55,
            "pattern": "[\\S ]+",
            "readOnly": true
        },
        "vendorAccountNumber": {
            "type": "string",
            "description": "Account number on the vendor's end associated with this purchase order line",
            "readOnly": false
        },
        "vendorReferenceNumbers": {
            "type": "array",
            "description": "Reference number items array",
            "items": {
                "id": "reference_number_item",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "description": "Reference number item",
                "type": "object",
                "properties": {
                    "refNumber": {
                        "description": "a reference number for this purchase order line",
                        "type": "string"
                    },
                    "refNumberType": {
                        "description": "the reference number type",
                        "type": "string",
                        "enum": [
                            "Vendor continuation reference number",
                            "Vendor order reference number",
                            "Vendor subscription reference number",
                            "Vendor internal number",
                            "Vendor title number"
                        ]
                    }
                },
                "additionalProperties": false
            }
        },
        "workflowStatus": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Composite workflow status",
            "type": "string",
            "enum": [
                "Pending",
                "Open",
                "Closed"
            ],
            "default": "Pending"
        },
        "type": {
            "type": "string",
            "description": "Set to non-renewal to cancel the purchase order line",
            "readOnly": true,
            "pattern": "^([Rr][Ee][Nn][Ee][Ww][Aa][Ll]|[Nn][Oo][Nn][-][Rr][Ee][Nn][Ee][Ww][Aa][Ll])$"
        },
        "customerNote": {
            "type": "string",
            "description": "customerNote on the ebsconet's end can be associated with this purchase order line",
            "readOnly": false
        }
    },
    "required": [
        "currency",
        "poLineNumber"
    ]
}
getvalidation()

GET /ebsconet/validate

Returns

See Schema below.

Return type

dict

Schema

{
    "id": "validation_response",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Validation response",
    "type": "object",
    "properties": {
        "status": {
            "type": "string",
            "description": "Validation status",
            "enum": [
                "Success",
                "Failed"
            ],
            "default": "Success"
        }
    }
}
putebsconetorderline(poLineNumber, ebsconetOrderLine)

PUT /ebsconet/orders/order-lines/{poLineNumber}

Parameters
  • poLineNumber (str) – product order line number

  • ebsconetOrderLine (dict) – See Schema below.

Raises
  • OkapiRequestError – Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

  • OkapiRequestFatalError – Internal server error, e.g. due to misconfiguration

Schema

{
    "id": "ebsconet_order_line",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Ebsconet order line integration schema",
    "type": "object",
    "properties": {
        "cancellationRestriction": {
            "type": "boolean",
            "description": "Whether or not there are cancellation restrictions for this purchase order line",
            "readOnly": false
        },
        "cancellationRestrictionNote": {
            "type": "string",
            "description": "Free-form notes related to cancellation restrictions",
            "readOnly": false
        },
        "currency": {
            "type": "string",
            "description": "An ISO currency code",
            "readOnly": false
        },
        "fundCode": {
            "type": "string",
            "description": "Fund distribution code",
            "readOnly": false
        },
        "poLineNumber": {
            "id": "po_line_number",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "A human readable number, assigned to this product order line",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
        },
        "publisherName": {
            "type": "string",
            "description": "Publisher of the material",
            "readOnly": false
        },
        "internalNote": {
            "type": "string",
            "description": "Renewal note for this purchase order line"
        },
        "quantity": {
            "type": "integer",
            "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
            "readOnly": false
        },
        "subscriptionFromDate": {
            "type": "string",
            "description": "the start date of the subscription",
            "format": "date-time",
            "nullable": true,
            "readOnly": false
        },
        "subscriptionToDate": {
            "type": "string",
            "description": "the end date of the subscription",
            "format": "date-time",
            "nullable": true,
            "readOnly": false
        },
        "unitPrice": {
            "type": "number",
            "description": "The per-item list price for physical or resources of 'Other' order format",
            "readOnly": false
        },
        "vendor": {
            "type": "string",
            "description": "Vendor code",
            "maxLength": 55,
            "pattern": "[\\S ]+",
            "readOnly": true
        },
        "vendorAccountNumber": {
            "type": "string",
            "description": "Account number on the vendor's end associated with this purchase order line",
            "readOnly": false
        },
        "vendorReferenceNumbers": {
            "type": "array",
            "description": "Reference number items array",
            "items": {
                "id": "reference_number_item",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "description": "Reference number item",
                "type": "object",
                "properties": {
                    "refNumber": {
                        "description": "a reference number for this purchase order line",
                        "type": "string"
                    },
                    "refNumberType": {
                        "description": "the reference number type",
                        "type": "string",
                        "enum": [
                            "Vendor continuation reference number",
                            "Vendor order reference number",
                            "Vendor subscription reference number",
                            "Vendor internal number",
                            "Vendor title number"
                        ]
                    }
                },
                "additionalProperties": false
            }
        },
        "workflowStatus": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Composite workflow status",
            "type": "string",
            "enum": [
                "Pending",
                "Open",
                "Closed"
            ],
            "default": "Pending"
        },
        "type": {
            "type": "string",
            "description": "Set to non-renewal to cancel the purchase order line",
            "readOnly": true,
            "pattern": "^([Rr][Ee][Nn][Ee][Ww][Aa][Ll]|[Nn][Oo][Nn][-][Rr][Ee][Nn][Ee][Ww][Aa][Ll])$"
        },
        "customerNote": {
            "type": "string",
            "description": "customerNote on the ebsconet's end can be associated with this purchase order line",
            "readOnly": false
        }
    },
    "required": [
        "currency",
        "poLineNumber"
    ]
}