Skip to content

Create reservation provider function should receive entire object instead of just provider id #6

@mian3010

Description

@mian3010

I am implementing a provider for another API in which reservations are created using the ISBN-number of the book, and not the provider id. When ding_reservation calls the create function, it passes the provider id along. I cannot seem to load the TingEntity object when i only have the provider id.

The provider id the function receives looks like this; XXXXXXXX, but the id i need for calling ding_entity_load looks like this; XXXXXX-basis:XXXXXXXX where basis could be something else for different types of data.

I suggest that the create reservation function is passed the DingReservationReservable or TingEntity object as well as the provider id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions