public GetOrCreateSellableItemBlock(IGetSellableItemPipeline getSellableItemPipeline, ICreateSellableItemPipeline createSellableItemPipeline, IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline) { this._getSellableItemPipeline = getSellableItemPipeline; this._createSellableItemPipeline = createSellableItemPipeline; _persistEntityPipeline = persistEntityPipeline; _doesEntityExistPipeline = doesEntityExistPipeline; }
public CreateStoreInventorySetBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IPersistEntityPipeline persistEntityPipeline, IAddListEntitiesPipeline addListEntitiesPipeline) : base((string)null) { this._doesEntityExistPipeline = doesEntityExistPipeline; this._persistEntityPipeline = persistEntityPipeline; this._addListEntitiesPipeline = addListEntitiesPipeline; }
public SynchronizeSellableItemPropertiesBlock(IFindEntityPipeline findEntityPipeline, IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline, ICreateComposerTemplatePipeline createComposerTemplatePipeline, ComposerCommander composerCommander) { _findEntityPipeline = findEntityPipeline; _persistEntityPipeline = persistEntityPipeline; _doesEntityExistPipeline = doesEntityExistPipeline; _createComposerTemplatePipeline = createComposerTemplatePipeline; _composerCommander = composerCommander; }
public AssociateCatalogToInventorySetBlock( IDoesEntityExistPipeline doesEntityExistPipeline, CreateInventorySetCommand createInventorySetCommand, AssociateCatalogToInventorySetCommand associateCatalogToInventorySetCommand) { _doesEntityExistPipeline = doesEntityExistPipeline; _createInventorySetCommand = createInventorySetCommand; _associateCatalogToInventorySetCommand = associateCatalogToInventorySetCommand; }
public AssociateCatalogToPriceBookBlock( IDoesEntityExistPipeline doesEntityExistPipeline, AddPriceBookCommand addPriceBookCommand, AssociateCatalogToBookCommand associateCatalogToBookCommand) { _doesEntityExistPipeline = doesEntityExistPipeline; _addPriceBookCommand = addPriceBookCommand; _associateCatalogToBookCommand = associateCatalogToBookCommand; }
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; }
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; }
public GetOrCreateCategoryBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IGetCategoryPipeline getCategoryPipeline, ICreateCategoryPipeline createCategoryPipeline) { _doesEntityExistPipeline = doesEntityExistPipeline; _getCategoryPipeline = getCategoryPipeline; _createCategoryPipeline = createCategoryPipeline; }
public GetSourceEntityBlock( IDoesEntityExistPipeline doesEntityExistPipeline) { _doesEntityExistPipeline = doesEntityExistPipeline; }
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; }
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; }
public CreateComposerTemplateBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IPersistEntityPipeline persistEntityPipeline) { _doesEntityExistPipeline = doesEntityExistPipeline; _persistEntityPipeline = persistEntityPipeline; }
public AddJobConnectionBlock(IDoesEntityExistPipeline findEntityPipeline) : base((string)null) { this._findEntityPipeline = findEntityPipeline; }