Class SellerListingServiceImpl
java.lang.Object
org.oxerr.viagogo.client.rescu.impl.inventory.SellerListingServiceImpl
- All Implemented Interfaces:
SellerListingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateListing(Long eventId, CreateSellerListingRequest createSellerListingRequest) Create a seller listing.createListingForRequestedEvent(CreateSellerListingForRequestedEventRequest createSellerListingForRequestedEventRequest) Create a seller listing for a requested event.voiddeleteListingByExternalListingId(String externalId) Delete a seller listing by external ID.getSellerListing(Long listingId) Get a seller listinggetSellerListingByExternalId(String externalListingId) Get a seller listing by external ID.getSellerListings(SellerListingRequest sellerListingRequest) List seller listings.getSellerListingsRecentUpdates(Instant updatedSince) List seller listings (recent updates)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.oxerr.viagogo.client.inventory.SellerListingService
getAllSellerListings, getAllSellerListings, getSellerListings
-
Constructor Details
-
SellerListingServiceImpl
-
-
Method Details
-
getSellerListing
Description copied from interface:SellerListingServiceGet a seller listing- Specified by:
getSellerListingin interfaceSellerListingService- Parameters:
listingId- the listing ID.- Returns:
- the seller listing of the specified listing ID.
- Throws:
IOException- indicates any I/O exception.
-
getSellerListingsRecentUpdates
public PagedResource<SellerListing> getSellerListingsRecentUpdates(Instant updatedSince) throws IOException Description copied from interface:SellerListingServiceList seller listings (recent updates)List seller listings for the authenticated user that have been created or updated over a certain period of time.
- Specified by:
getSellerListingsRecentUpdatesin interfaceSellerListingService- 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
public PagedResource<SellerListing> getSellerListings(SellerListingRequest sellerListingRequest) throws IOException Description copied from interface:SellerListingServiceList seller listings.- Specified by:
getSellerListingsin interfaceSellerListingService- Parameters:
sellerListingRequest- the request.- Returns:
- the seller listings.
- Throws:
IOException- indicates any I/O exception.
-
createListingForRequestedEvent
public SellerListing createListingForRequestedEvent(CreateSellerListingForRequestedEventRequest createSellerListingForRequestedEventRequest) throws IOException Description copied from interface:SellerListingServiceCreate a seller listing for a requested event.- Specified by:
createListingForRequestedEventin interfaceSellerListingService- Parameters:
createSellerListingForRequestedEventRequest- the request.- Returns:
- the created seller listing.
- Throws:
IOException- indicates any I/O exception.
-
createListing
public SellerListing createListing(Long eventId, CreateSellerListingRequest createSellerListingRequest) throws IOException Description copied from interface:SellerListingServiceCreate a seller listing.- Specified by:
createListingin interfaceSellerListingService- Parameters:
eventId- the event ID.createSellerListingRequest- the request.- Returns:
- the created seller listing.
- Throws:
IOException- indicates any I/O exception.
-
getSellerListingByExternalId
public Optional<SellerListing> getSellerListingByExternalId(String externalListingId) throws IOException Description copied from interface:SellerListingServiceGet 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.
- Specified by:
getSellerListingByExternalIdin interfaceSellerListingService- Parameters:
externalListingId- the external ID.- Returns:
- the seller listing.
- Throws:
IOException- indicates any I/O exception.
-
deleteListingByExternalListingId
Description copied from interface:SellerListingServiceDelete 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.
- Specified by:
deleteListingByExternalListingIdin interfaceSellerListingService- Parameters:
externalId- the external ID.- Throws:
IOException- indicates any I/O exception.
-