import { MarketplaceAddressBuyer } from '../models/MarketplaceAddressBuyer'; import { MarketplaceAddressAssignment } from '../models/MarketplaceAddressAssignment'; import { MarketplaceCostCenter } from '../models/MarketplaceCostCenter'; import { MarketplaceUser } from '../models/MarketplaceUser'; import { MarketplaceUserGroup } from '../models/MarketplaceUserGroup'; import { MarketplaceUserGroupAssignment } from '../models/MarketplaceUserGroupAssignment'; import { MarketplaceBuyer } from '../models/MarketplaceBuyer'; import { RequiredDeep } from '../models/RequiredDeep'; export default class OrchestrationUsers { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param buyerId Buyer id of the marketplace address buyer. * @param clientId Client id of the marketplace address buyer. * @param marketplaceAddressBuyer Required fields: Street1, City, State, Zip, Country * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostAddress(buyerId: string, clientId: string, marketplaceAddressBuyer: MarketplaceAddressBuyer, accessToken?: string): Promise>; /** * @param buyerId Buyer id of the marketplace address assignment. * @param clientId Client id of the marketplace address assignment. * @param marketplaceAddressAssignment Required fields: AddressID * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostAddressAssignment(buyerId: string, clientId: string, marketplaceAddressAssignment: MarketplaceAddressAssignment, accessToken?: string): Promise>; /** * @param buyerId Buyer id of the marketplace cost center. * @param clientId Client id of the marketplace cost center. * @param marketplaceCostCenter Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostCostCenter(buyerId: string, clientId: string, marketplaceCostCenter: MarketplaceCostCenter, accessToken?: string): Promise>; /** * @param buyerId Buyer id of the marketplace user. * @param clientId Client id of the marketplace user. * @param marketplaceUser Required fields: Username, FirstName, LastName, Email, Active * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostUser(buyerId: string, clientId: string, marketplaceUser: MarketplaceUser, accessToken?: string): Promise>; /** * @param buyerId Buyer id of the marketplace user group. * @param clientId Client id of the marketplace user group. * @param marketplaceUserGroup Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostUserGroup(buyerId: string, clientId: string, marketplaceUserGroup: MarketplaceUserGroup, accessToken?: string): Promise>; /** * @param buyerId Buyer id of the marketplace user group assignment. * @param clientId Client id of the marketplace user group assignment. * @param marketplaceUserGroupAssignment * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostUserGroupAssignment(buyerId: string, clientId: string, marketplaceUserGroupAssignment: MarketplaceUserGroupAssignment, accessToken?: string): Promise>; /** * @param clientId Client id of the marketplace buyer. * @param marketplaceBuyer Required fields: Name * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ PostBuyer(clientId: string, marketplaceBuyer: MarketplaceBuyer, accessToken?: string): Promise>; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * OrchestrationUsers.As().List() // lists OrchestrationUsers using the impersonated users' token */ As(): this; }