Class SellerListingServiceImpl
java.lang.Object
org.oxerr.viagogo.client.rescu.impl.inventory.SellerListingServiceImpl
- All Implemented Interfaces:
SellerListingService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateListing
(Long eventId, CreateSellerListingRequest createSellerListingRequest) Create a seller listing.createListingForRequestedEvent
(CreateSellerListingForRequestedEventRequest createSellerListingForRequestedEventRequest) Create a seller listing for a requested event.void
deleteListingByExternalListingId
(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, wait
Methods inherited from interface org.oxerr.viagogo.client.inventory.SellerListingService
getAllSellerListings, getAllSellerListings, getSellerListings
-
Constructor Details
-
SellerListingServiceImpl
-
-
Method Details
-
getSellerListing
Description copied from interface:SellerListingService
Get a seller listing- Specified by:
getSellerListing
in 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:SellerListingService
List 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:
getSellerListingsRecentUpdates
in 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:SellerListingService
List seller listings.- Specified by:
getSellerListings
in 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:SellerListingService
Create a seller listing for a requested event.- Specified by:
createListingForRequestedEvent
in 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:SellerListingService
Create a seller listing.- Specified by:
createListing
in 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:SellerListingService
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.
- Specified by:
getSellerListingByExternalId
in interfaceSellerListingService
- Parameters:
externalListingId
- the external ID.- Returns:
- the seller listing.
- Throws:
IOException
- indicates any I/O exception.
-
deleteListingByExternalListingId
Description copied from interface:SellerListingService
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.
- Specified by:
deleteListingByExternalListingId
in interfaceSellerListingService
- Parameters:
externalId
- the external ID.- Throws:
IOException
- indicates any I/O exception.
-