Service class to execute CRUD operations on the Price Rule object.
Method Summary
Modifier and Type | Method and Description |
---|---|
PriceRuleService | getInstance() |
PriceRuleService | getInstance(String version) |
void | PriceRuleService() |
void | getApiResponse() |
List<PriceRule> | createPriceRules() |
List<PriceRule> | updatePriceRules() |
void | deletePriceRules() |
List<PriceRule> | get(SearchRequest sr) |
List<PriceRule> | create(List |
void | destroy(List |
Method Detail
This class supports the following methods:
global static PriceRuleService getInstance()
Get Instance of PriceRuleService.
global static PriceRuleService getInstance(String version)
Get Instance of PriceRuleVersionedService.
Parameters
Name | Type | Description |
---|---|---|
version | String | undefined |
global PriceRuleService()
PriceRuleService Constructor that should not be called directly.
global static void getApiResponse()
global static void createPriceRules()
Create PriceRules
global static void updatePriceRules()
Update PriceRules
global static void deletePriceRules()
Delete PriceRules
global virtual List<PriceRule> get(SearchRequest sr)
Get list of PriceRule objects using the SearchRequest object as criteria
Parameters
Name | Type | Description |
---|---|---|
sr | SearchRequest | SearchRequest |
global virtual List<PriceRule> create(List<PriceRule> priceRules)
Create PriceRules
Parameters
Name | Type | Description |
---|---|---|
priceRules | List<PriceRule> | undefined |
global virtual void destroy(List<PriceRule> rules)
Delete priceRules
Parameters
Name | Type | Description |
---|---|---|
rules | List<PriceRule> | undefined |