public GetOrCreateSellableItemBlock(IGetSellableItemPipeline getSellableItemPipeline, ICreateSellableItemPipeline createSellableItemPipeline, IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline)
 {
     this._getSellableItemPipeline    = getSellableItemPipeline;
     this._createSellableItemPipeline = createSellableItemPipeline;
     _persistEntityPipeline           = persistEntityPipeline;
     _doesEntityExistPipeline         = doesEntityExistPipeline;
 }
Example #2
0
 public CreateStoreInventorySetBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IPersistEntityPipeline persistEntityPipeline, IAddListEntitiesPipeline addListEntitiesPipeline)
     : base((string)null)
 {
     this._doesEntityExistPipeline = doesEntityExistPipeline;
     this._persistEntityPipeline   = persistEntityPipeline;
     this._addListEntitiesPipeline = addListEntitiesPipeline;
 }
Example #3
0
 public SynchronizeSellableItemPropertiesBlock(IFindEntityPipeline findEntityPipeline, IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline, ICreateComposerTemplatePipeline createComposerTemplatePipeline, ComposerCommander composerCommander)
 {
     _findEntityPipeline             = findEntityPipeline;
     _persistEntityPipeline          = persistEntityPipeline;
     _doesEntityExistPipeline        = doesEntityExistPipeline;
     _createComposerTemplatePipeline = createComposerTemplatePipeline;
     _composerCommander = composerCommander;
 }
Example #4
0
 public AssociateCatalogToInventorySetBlock(
     IDoesEntityExistPipeline doesEntityExistPipeline,
     CreateInventorySetCommand createInventorySetCommand,
     AssociateCatalogToInventorySetCommand associateCatalogToInventorySetCommand)
 {
     _doesEntityExistPipeline               = doesEntityExistPipeline;
     _createInventorySetCommand             = createInventorySetCommand;
     _associateCatalogToInventorySetCommand = associateCatalogToInventorySetCommand;
 }
Example #5
0
 public AssociateCatalogToPriceBookBlock(
     IDoesEntityExistPipeline doesEntityExistPipeline,
     AddPriceBookCommand addPriceBookCommand,
     AssociateCatalogToBookCommand associateCatalogToBookCommand)
 {
     _doesEntityExistPipeline       = doesEntityExistPipeline;
     _addPriceBookCommand           = addPriceBookCommand;
     _associateCatalogToBookCommand = associateCatalogToBookCommand;
 }
Example #6
0
 public CreateAndUpdateCategoriesBlock(IGetCategoryPipeline getCategoryPipeline,
                                       ICreateCategoryPipeline createCategoryPipeline, IFindEntityPipeline findEntityPipeline,
                                       IAssociateCategoryToParentPipeline associateCategoryToParentPipeline,
                                       IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline)
 {
     _getCategoryPipeline               = getCategoryPipeline;
     _createCategoryPipeline            = createCategoryPipeline;
     _findEntityPipeline                = findEntityPipeline;
     _associateCategoryToParentPipeline = associateCategoryToParentPipeline;
     _persistEntityPipeline             = persistEntityPipeline;
     _doesEntityExistPipeline           = doesEntityExistPipeline;
 }
Example #7
0
 public SellableItemManager(CommerceCommander commander, IFindEntityPipeline findEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline, CreateCategoryCommand createCategoryCommand, ICreateSellableItemPipeline createSellableItemPipeline, EditSellableItemPipeline editSellableItemPipeline, AssociateSellableItemToParentCommand associateSellableItemToParentCommand, FindEntityCommand findEntityCommand, CreateSellableItemCommand createSellableItemCommand)
     : base(null)
 {
     this.commander                             = commander;
     this._findEntityPipeline                   = findEntityPipeline;
     this._createCategoryCommand                = createCategoryCommand;
     this._doesEntityExistPipeline              = doesEntityExistPipeline;
     this._createSellableItemPipeline           = createSellableItemPipeline;
     this._editSellableItemPipeline             = editSellableItemPipeline;
     this._associateSellableItemToParentCommand = associateSellableItemToParentCommand;
     this._findEntityCommand                    = findEntityCommand;
     this._createSellableItemCommand            = createSellableItemCommand;
 }
 public GetOrCreateProductBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IGetSellableItemPipeline getSellableItemPipeline, ICreateSellableItemPipeline createSellableItemPipeline)
 {
     _doesEntityExistPipeline    = doesEntityExistPipeline;
     _getSellableItemPipeline    = getSellableItemPipeline;
     _createSellableItemPipeline = createSellableItemPipeline;
 }
Example #9
0
 public GetOrCreateCategoryBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IGetCategoryPipeline getCategoryPipeline, ICreateCategoryPipeline createCategoryPipeline)
 {
     _doesEntityExistPipeline = doesEntityExistPipeline;
     _getCategoryPipeline     = getCategoryPipeline;
     _createCategoryPipeline  = createCategoryPipeline;
 }
 public GetSourceEntityBlock(
     IDoesEntityExistPipeline doesEntityExistPipeline)
 {
     _doesEntityExistPipeline = doesEntityExistPipeline;
 }
Example #11
0
        public static async Task <string> ValidateEntityId(this CommercePipelineExecutionContext context, IDoesEntityExistPipeline doesEntityExistPipeline, Type entityType, string entityId)
        {
            var result       = string.Empty;
            var entityExists = await doesEntityExistPipeline.Run(new FindEntityArgument(entityType,
                                                                                        entityId,
                                                                                        null), context)
                               .ConfigureAwait(false);

            if (entityExists)
            {
                result = entityId;
            }

            return(await Task.FromResult(result));
        }
 public AddJobInstanceBlock(IDoesEntityExistPipeline findEntityPipeline)
     : base((string)null)
 {
     this._findEntityPipeline = findEntityPipeline;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveFulfillmentFeeBook"/> class.
 /// </summary>
 /// <param name="findEntityPipeline">The find entity pipeline.</param>
 /// <param name="getCurrencySetPipeline">The get currency set pipeline.</param>
 public SaveFulfillmentFeeBook(IDoesEntityExistPipeline findEntityPipeline, IGetCurrencySetPipeline getCurrencySetPipeline)
     : base((string)null)
 {
     this._findEntityPipeline     = findEntityPipeline;
     this._getCurrencySetPipeline = getCurrencySetPipeline;
 }
Example #14
0
 public GetOrCreateCatalogBlock(IGetCatalogPipeline getCatalogPipeline, ICreateCatalogPipeline createCatalogPipeline, IDoesEntityExistPipeline doesEntityExistPipeline)
 {
     _getCatalogPipeline      = getCatalogPipeline;
     _createCatalogPipeline   = createCatalogPipeline;
     _doesEntityExistPipeline = doesEntityExistPipeline;
 }
 public AssociateWithCategoriesBlock(IAssociateSellableItemToParentPipeline associateSellableItemToParentPipeline, IDoesEntityExistPipeline doesEntityExistPipeline, IFindEntityPipeline findEntityPipeline)
 {
     _associateSellableItemToParentPipeline = associateSellableItemToParentPipeline;
     _doesEntityExistPipeline = doesEntityExistPipeline;
     _findEntityPipeline      = findEntityPipeline;
 }
Example #16
0
 public CreateComposerTemplateBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IPersistEntityPipeline persistEntityPipeline)
 {
     _doesEntityExistPipeline = doesEntityExistPipeline;
     _persistEntityPipeline   = persistEntityPipeline;
 }
Example #17
0
 public AddJobConnectionBlock(IDoesEntityExistPipeline findEntityPipeline)
     : base((string)null)
 {
     this._findEntityPipeline = findEntityPipeline;
 }