upsert - Pricing Module Reference
This documentation provides a reference to the upsert
method. This belongs to the Pricing Module.
upsert(data, sharedContext?): Promise<PriceSetDTO[]>
This method updates existing price sets, or creates new ones if they don't exist.
Example
Parameters
The attributes to update or create for each price set.
Returns
The updated and created price sets.
upsert(data, sharedContext?): Promise<PriceSetDTO>
This method updates the price set if it exists, or creates a new ones if it doesn't.
Example
Parameters
The attributes to update or create for the new price set.
Returns
The updated or created price set.
Was this section helpful?