Interface SellerListingService
public interface SellerListingService
-
Method Summary
Modifier and TypeMethodDescriptionorg.oxerr.viagogo.model.response.inventory.SellerListingcreateListing(Long eventId, org.oxerr.viagogo.model.request.inventory.CreateSellerListingRequest createSellerListingRequest) Create a seller listing.org.oxerr.viagogo.model.response.inventory.SellerListingcreateListingForRequestedEvent(org.oxerr.viagogo.model.request.inventory.CreateSellerListingForRequestedEventRequest createSellerListingForRequestedEventRequest) Create a seller listing for a requested event.voiddeleteListingByExternalListingId(String externalId) Delete a seller listing by external ID.default List<org.oxerr.viagogo.model.response.inventory.SellerListing>getAllSellerListings(Long eventId) List all seller listings of the specified event ID.default List<org.oxerr.viagogo.model.response.inventory.SellerListing>getAllSellerListings(org.oxerr.viagogo.model.request.inventory.SellerListingRequest sellerListingRequest) List all seller listings.Optional<org.oxerr.viagogo.model.response.inventory.SellerListing>getSellerListing(Long listingId) Get a seller listingOptional<org.oxerr.viagogo.model.response.inventory.SellerListing>getSellerListingByExternalId(String externalListingId) Get a seller listing by external ID.default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing>getSellerListings(io.openapitools.jackson.dataformat.hal.HALLink link) org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing>getSellerListings(org.oxerr.viagogo.model.request.inventory.SellerListingRequest sellerListingRequest) List seller listings.org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing>getSellerListingsRecentUpdates(Instant updatedSince) List seller listings (recent updates)
-
Method Details
-
getSellerListing
Optional<org.oxerr.viagogo.model.response.inventory.SellerListing> getSellerListing(Long listingId) throws IOException Get a seller listing- Parameters:
listingId- the listing ID.- Returns:
- the seller listing of the specified listing ID.
- Throws:
IOException- indicates any I/O exception.
-
getSellerListingsRecentUpdates
org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing> getSellerListingsRecentUpdates(Instant updatedSince) throws IOException List seller listings (recent updates)List seller listings for the authenticated user that have been created or updated over a certain period of time.
- Parameters:
updatedSince- Filters the response to only return items that have been updated since the given timestamp- Returns:
- recent updates
- Throws:
IOException- indicates any I/O exception.
-
getSellerListings
org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing> getSellerListings(org.oxerr.viagogo.model.request.inventory.SellerListingRequest sellerListingRequest) throws IOException List seller listings.- Parameters:
sellerListingRequest- the request.- Returns:
- the seller listings.
- Throws:
IOException- indicates any I/O exception.
-
getSellerListings
default org.oxerr.viagogo.model.response.PagedResource<org.oxerr.viagogo.model.response.inventory.SellerListing> getSellerListings(io.openapitools.jackson.dataformat.hal.HALLink link) throws IOException - Throws:
IOException
-
getAllSellerListings
default List<org.oxerr.viagogo.model.response.inventory.SellerListing> getAllSellerListings(org.oxerr.viagogo.model.request.inventory.SellerListingRequest sellerListingRequest) throws IOException List all seller listings.- Parameters:
sellerListingRequest- the request.- Returns:
- the seller listings.
- Throws:
IOException- indicates any I/O exception.
-
getAllSellerListings
default List<org.oxerr.viagogo.model.response.inventory.SellerListing> getAllSellerListings(Long eventId) throws IOException List all seller listings of the specified event ID.- Parameters:
eventId- the event ID.- Returns:
- the seller listings.
- Throws:
IOException- indicates any I/O exception.
-
createListingForRequestedEvent
org.oxerr.viagogo.model.response.inventory.SellerListing createListingForRequestedEvent(org.oxerr.viagogo.model.request.inventory.CreateSellerListingForRequestedEventRequest createSellerListingForRequestedEventRequest) throws IOException Create a seller listing for a requested event.- Parameters:
createSellerListingForRequestedEventRequest- the request.- Returns:
- the created seller listing.
- Throws:
IOException- indicates any I/O exception.
-
createListing
org.oxerr.viagogo.model.response.inventory.SellerListing createListing(Long eventId, org.oxerr.viagogo.model.request.inventory.CreateSellerListingRequest createSellerListingRequest) throws IOException Create a seller listing.- Parameters:
eventId- the event ID.createSellerListingRequest- the request.- Returns:
- the created seller listing.
- Throws:
IOException- indicates any I/O exception.
-
getSellerListingByExternalId
Optional<org.oxerr.viagogo.model.response.inventory.SellerListing> getSellerListingByExternalId(String externalListingId) throws IOException Get a seller listing by external ID.Get a seller listing by identifier that has been assigned to the listing in an external inventory management system.
- Parameters:
externalListingId- the external ID.- Returns:
- the seller listing.
- Throws:
IOException- indicates any I/O exception.
-
deleteListingByExternalListingId
Delete a seller listing by external ID.Delete a seller listing by identifier that has been assigned to the listing in an external inventory management system.
- Parameters:
externalId- the external ID.- Throws:
IOException- indicates any I/O exception.
-