import { MarketplaceSupplier } from '../models/MarketplaceSupplier'; import { RequiredDeep } from '../models/RequiredDeep'; export default class Suppliers { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param marketplaceSupplier Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Create(marketplaceSupplier: MarketplaceSupplier, accessToken?: string): Promise>; /** * @param locationID ID of the location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ CanDeleteLocation(locationID: string, accessToken?: string): Promise; /** * @param supplierID ID of the supplier. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ GetMySupplier(supplierID: string, accessToken?: string): Promise>; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * Suppliers.As().List() // lists Suppliers using the impersonated users' token */ As(): this; }