import { MarketplaceBuyerLocation } from '../models/MarketplaceBuyerLocation'; import { LocationApprovalThresholdUpdate } from '../models/LocationApprovalThresholdUpdate'; import { LocationPermissionUpdate } from '../models/LocationPermissionUpdate'; import { ListPage } from '../models/ListPage'; import { MarketplaceUser } from '../models/MarketplaceUser'; import { RequiredDeep } from '../models/RequiredDeep'; import { ListArgs } from '../models/ListArgs'; export default class BuyerLocations { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param buyerID ID of the buyer. * @param marketplaceBuyerLocation * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Create(buyerID: string, marketplaceBuyerLocation: MarketplaceBuyerLocation, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Get(buyerID: string, buyerLocationID: string, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param marketplaceBuyerLocation * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Update(buyerID: string, buyerLocationID: string, marketplaceBuyerLocation: MarketplaceBuyerLocation, accessToken?: string): Promise>; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ Delete(buyerID: string, buyerLocationID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListLocationApprovalPermissionAsssignments(buyerID: string, buyerLocationID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ GetApprovalThreshold(buyerID: string, buyerLocationID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param locationApprovalThresholdUpdate * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ SetLocationApprovalThreshold(buyerID: string, buyerLocationID: string, locationApprovalThresholdUpdate: LocationApprovalThresholdUpdate, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListLocationPermissionUserGroups(buyerID: string, buyerLocationID: string, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param locationPermissionUpdate * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ UpdateLocationPermissions(buyerID: string, buyerLocationID: string, locationPermissionUpdate: LocationPermissionUpdate, accessToken?: string): Promise; /** * @param buyerID ID of the buyer. * @param buyerLocationID ID of the buyer location. * @param options.search Word or phrase to search for. * @param options.searchOn Comma-delimited list of fields to search on. * @param options.sortBy Comma-delimited list of fields to sort by. * @param options.page Page of results to return. Default: 1 * @param options.pageSize Number of results to return per page. Default: 20, max: 100. * @param options.filters An object whose keys match the model, and the values are the values to filter by * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListLocationUsers(buyerID: string, buyerLocationID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * BuyerLocations.As().List() // lists BuyerLocations using the impersonated users' token */ As(): this; }