Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ProductPricing

Index

Constructors

constructor

  • Parameters

    • config: any

    Returns ProductPricing

Properties

config

config: any

Configuration for this SDK.

Methods

addContextRuleSetToPriceListEntry

  • Adds a context rule set on a price list entry.

    Parameters

    Returns Promise<Result>

    • Promise that returns a success or failure message.

createApplicablePriceListInput

  • Creates and returns an instance of input class for GetApplicablePriceListInput

    Parameters

    • params: object

    Returns GetApplicablePriceListInput

createAppliedPriceListEntriesInput

  • Create a default GetAppliedPriceListEntriesInput object.

    Returns GetAppliedPriceListEntriesInput

    • a GetAppliedPriceListEntriesInput instance.

createAppliedPromotionsInput

  • Create a default GetAppliedPromotionsInput object.

    Returns GetAppliedPromotionsInput

    • a GetAppliedPromotionsInput instance.

createContextRuleSetInput

  • Creates and returns an instance of input class for GetPriceListEntryInput

    Parameters

    Returns AddContextRuleSetInput

createDeleteContextRuleInput

  • Creates and returns an instance of input class for DeletePriceListEntryInput

    Parameters

    • contextRuleId: string

    Returns DeleteContextRuleInput

createDeletePriceListEntryInput

  • Creates and returns an instance of input class for DeletePriceListEntryInput

    Parameters

    • priceListEntryId: string

    Returns DeletePriceListEntryInput

createEditPriceListEntryInput

createEditPromotionOfferPriceListEntryInput

createExistingPromotionsInput

  • Creates and returns an instance of input class for GetExistingPromotionsInput

    Parameters

    • params: object

    Returns GetExistingPromotionsInput

createGetTimePlanPolicyInput

  • Creates and returns an instance of input class for GetTimePlanPolicyInput

    Parameters

    Returns GetTimePlanPolicyInput

createOffersInput

  • Creates and returns an instance of input class for GetOffersInput

    Parameters

    • params: object

    Returns GetOffersInput

createPriceListCurrencyValuesInput

createPriceListEntry

  • Creates a price list entry for price, cost, promotion, and offer tables. Aside from the standard price list entry, this method supports overrides and adjustments.

    Parameters

    Returns Promise<Result>

    • Promise that returns the id of the new price list entry.

createPriceListEntryInput

  • Creates and returns an instance of input class for GetPriceListEntryInput

    Parameters

    Returns GetPriceListEntryInput

createPriceListInput

  • Creates and returns an instance of input class for GetPriceListInput

    Parameters

    • activeOnly: boolean

    Returns GetPriceListInput

createPricingElementInput

  • Creates and returns an instance of input class for GetPricingElementInput

    Parameters

    • params: object

    Returns GetPricingElementInput

createPricingPickListInput

  • Creates and returns an instance of input class for GetPricingPickListInput

    Returns GetPricingPickListInput

createPricingVariableInput

  • Creates and returns an instance of input class for GetPricingVariableInput

    Parameters

    • params: object

    Returns GetPricingVariableInput

createPromotion

  • Creates a promotion.

    Parameters

    Returns Promise<Result>

    • Promise that returns a success or failure message.

createPromotionInput

  • Creates and returns an instance of input class for CreatePromotionInput

    Parameters

    Returns CreatePromotionInput

createPromotionItem

  • Creates a promotion item.

    Parameters

    Returns Promise<Result>

    • Promise that returns a success or failure message.

createPromotionItemInput

createPromotionOfferPriceListEntryInput

createQuickAddPricingPropertiesInput

  • Creates an input for getting the quick adds pricing properties.

    Returns GetQuickAddPricingPropertiesInput

    • input to define quick add pricing properties.

createTimePlanPolicyIdsInput

  • Creates and returns an instance of input class for GetTimePlanPolicyIdsInput

    Parameters

    • params: object

    Returns GetTimePlanPolicyIdsInput

deleteContextRule

  • Deletes a context rule.

    Parameters

    Returns Promise<Result>

    • Promise that returns a success or failure message.

deletePriceListEntry

  • Deletes a price list entry.

    Parameters

    Returns Promise<Result>

    • Promise that returns a success or failure message.

editPriceListEntry

  • Edits a price list entry for price, cost, promotion, and offer tables. Aside from the standard price list entry, this method supports overrides and adjustments.

    Parameters

    Returns Promise<Result>

    • Promise that returns the id of the new price list entry.

getApplicablePriceList

  • method

    GetApplicablePriceListInput - Uses a productId to get all the applicable pricelist for it.

    example
    
       // Instantiate the input object for getApplicablePriceList using createApplicablePriceListInput method
       const input = productconsole.createApplicablePriceListInput();
    
       // Invoke API via method getApplicablePriceList()
       productconsole.getApplicablePriceList(input)
      .then(result => {
        Logger.info("getApplicablePriceList() success " + result);
      })
      .catch(error => {
        Logger.info("getApplicablePriceList() failed " + error);
      });
    throws

    {Error} - "GetApplicablePriceListInput is required to get the applicable price list. The input must have a remoteClass, remoteMethod, all parameters and paramsArray()"

    Parameters

    Returns Promise<Result>

    • Promise that returns the list of applicable price list.

getAppliedCostPricelistEntries

  • This function will return a list of pricelists that are applicable for this product.

    Parameters

    Returns Promise<Result>

    • a promise with the pricelists associtated with the product id.

getAppliedPricelistEntries

  • This function will return a list of pricelists that are applicable for this product.

    Parameters

    Returns Promise<Result>

    • a promise with the pricelists associtated with the product id.

getAppliedPromotions

  • This function will return a list of promotions that are applicable for this product.

    Parameters

    Returns Promise<Result>

    • a promise with the promotions associtated with the product id.

getExistingPromotions

  • method

    getExistingPromotions - Gets a productId and all of the existing promotions for it.

    example
    
       // Instantiate the input object for getExistingPromotions using createExistingPromotionsInput method
       const input = productconsole.createExistingPromotionsInput();
    
       // Invoke API via method getExistingPromotions()
       productconsole.getExistingPromotions(input)
      .then(result => {
        Logger.info("getExistingPromotions() success " + result);
      })
      .catch(error => {
        Logger.info("getExistingPromotions() failed " + error);
      });
    throws

    {Error} - "GetExistingPromotionsInput is required to get the existing promotion list. The input must have a remoteClass, remoteMethod, all parameters and paramsArray()"

    Parameters

    • input: GetExistingPromotionsInput

      The existing promotions input with the remoteClass, remoteMethod, parameters and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the list of existing promotions.

getOffers

  • Gets a productId and all of the offers for it.

    Parameters

    • input: GetOffersInput

      The offers input with the remoteClass, remoteMethod, parameters and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the list of offers.

getPriceList

  • This function returns a list of price list.

    Parameters

    Returns Promise<Result>

    • Promise that returns the price list.

getPriceListCurrencyValues

  • Gets the list of currency values for the given price list.

    Parameters

    Returns Promise<Result>

    • Promise that returns the picklist item labels for the currency field.

getPricingElement

  • Gets a pricing element and returns it's id.

    Parameters

    • input: GetPricingElementInput

      The pricing element input with the remoteClass, remoteMethod, parameters and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the pricing element id.

getPricingPicklistItems

  • Gets the list of picklist items for the pricing tab.

    Parameters

    • input: GetPricingPickListInput

      The picklist item input with the remoteClass, remoteMethod, and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the picklist item labels for the pricing tab.

getPricingVariable

  • Gets the list of pricing variables.

    Parameters

    • input: GetPricingVariableInput

      The pricing variable input with the remoteClass, remoteMethod, parameters and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the pricing variable(s).

getQuickAddPricingExistingPromotions

  • This function returns a list of attributes, fields and attribute values that are available for assignment to a given product.

    Parameters

    Returns Promise<Result>

getQuickAddPricingRules

  • This function returns a list of attributes, fields and attribute values that are available for assignment to a given product.

    Parameters

    Returns Promise<Result>

Private getRemoteInput

  • Parameters

    • input: any
    • inputClass: any

    Returns ApexRemoteInput

getTimePlan

  • Gets Time Plan information.

    Parameters

    Returns Promise<Result>

    • Promise that returns an object with time plan information.

getTimePlanTimePolicyIds

  • Assigns the time plan and time policy to a price list entry.

    Parameters

    • input: GetTimePlanPolicyIdsInput

      The pricing variable input with the remoteClass, remoteMethod, parameters and paramsArray function.

    Returns Promise<Result>

    • Promise that returns the time plan and time policy ids.

getTimePolicy

  • Gets Time Policy information.

    Parameters

    Returns Promise<Result>

    • Promise that returns an object with time policy information.

Generated using TypeDoc