Function: crossupsellService()
crossupsellService(
client):object
Defined in: service/CrossupsellService.ts:34
Service class for Crossupsell-related GraphQL operations
Parameters
client
Returns
createCrossupsell()
createCrossupsell(
variables):Promise<Crossupsell>
Creates a new crossupsell *
Parameters
variables
Crossupsell creation input data *
Returns
Promise<Crossupsell>
Promise<Crossupsell> The created crossupsell
getCrossupsell()
getCrossupsell(
variables):Promise<Crossupsell>
Fetches a single crossupsell by ID *
Parameters
variables
Crossupsell ID to fetch *
Returns
Promise<Crossupsell>
Promise<Crossupsell> The crossupsell data
getCrossupsells()
getCrossupsells(
variables?):Promise<CrossupsellsResponse>
Fetches a list of crossupsells with search criteria *
Parameters
variables?
Crossupsell search input parameters *
Returns
Promise<CrossupsellsResponse>
Promise<CrossupsellsResponse> The crossupsells response data
updateCrossupsell()
updateCrossupsell(
variables):Promise<Crossupsell>
Updates an existing crossupsell *
Parameters
variables
Crossupsell update input data *
Returns
Promise<Crossupsell>
Promise<Crossupsell> The updated crossupsell