UNPKG

ebay-api

Version:

eBay API for Node and Browser

38 lines (37 loc) 1.72 kB
import Restful from '../../index.js'; import { SuppressViolationRequest } from '../../../../types/index.js'; /** * Service for providing the compliance violations of seller account/listings */ export default class Compliance extends Restful { static id: string; get basePath(): string; /** * This call returns listing violation counts for a seller. * * @param complianceType A user passes in one or more compliance type values through this query parameter. */ getListingViolationsSummary(complianceType?: string): Promise<any>; /** * This call returns specific listing violations for five different compliance types. * * @param complianceType A user passes in one or more compliance type values through this query parameter. * @param offset The first policy violation to return based on its position in the collection of listing * violations. * @param listingId * @param limit This query parameter is used if the user wants to set a limit on the number of listing violations * that are returned in the current result set. */ getListingViolations({ complianceType, offset, listingId, limit }?: { complianceType?: string; offset?: number; listingId?: string; limit?: number; }): Promise<any>; /** * This call suppresses a listing violation for a specific listing. Only listing violations in the AT_RISK state (returned in the violations.complianceState field of the getListingViolations call) can be suppressed. * * @param body SuppressViolationRequest */ suppressViolation(body: SuppressViolationRequest): Promise<any>; }