Skip to main content

SellerService

SellerService

Contains methods relating to Seller entities.

Signature
class SellerService {
constructor(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, customFieldRelationService: CustomFieldRelationService)
initSellers() => ;
findAll(ctx: RequestContext, options?: ListQueryOptions<Seller>) => Promise<PaginatedList<Seller>>;
findOne(ctx: RequestContext, sellerId: ID) => Promise<Seller | undefined>;
create(ctx: RequestContext, input: CreateSellerInput) => ;
update(ctx: RequestContext, input: UpdateSellerInput) => ;
delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
}

constructor

method
(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, customFieldRelationService: CustomFieldRelationService) => SellerService

initSellers

method
() =>

findAll

method
(ctx: RequestContext, options?: ListQueryOptions<Seller>) => Promise<PaginatedList<Seller>>

findOne

method
(ctx: RequestContext, sellerId: ID) => Promise<Seller | undefined>

create

method
(ctx: RequestContext, input: CreateSellerInput) =>

update

method
(ctx: RequestContext, input: UpdateSellerInput) =>

delete

method
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>