- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
updatePricePreferences - Pricing Module Reference
This documentation provides a reference to the updatePricePreferences
method. This belongs to the Pricing Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
updatePricePreferences(id, data, sharedContext?): Promise<PricePreferenceDTO>#
This method is used to update a price preference.
Example#
Parameters#
id
stringThe ID of the price preference to be updated.
The attributes of the price preference to be updated
Returns#
Promise
Promise<PricePreferenceDTO>The updated price preference.
Promise
Promise<PricePreferenceDTO>updatePricePreferences(selector, data, sharedContext?): Promise<PricePreferenceDTO[]>#
This method is used to update a list of price preferences determined by the selector filters.
Example#
Parameters#
selector
FilterablePricePreferencePropsThe filters that will determine which price preferences will be updated.
selector
FilterablePricePreferencePropsThe attributes to be updated on the selected price preferences
Returns#
Promise
Promise<PricePreferenceDTO[]>The updated price preferences.
Promise
Promise<PricePreferenceDTO[]>Was this page helpful?