This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sitecore.Commerce.Plugin.AdventureWorks | |
{ | |
using System.Reflection; | |
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore.Commerce.Core; | |
using Sitecore.Framework.Configuration; | |
using Sitecore.Framework.Pipelines.Definitions.Extensions; | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sitecore.Commerce.Plugin.AdventureWorks | |
{ | |
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore.Commerce.Plugin.AdventureWorks.Pipelines.Blocks; | |
using Sitecore.Commerce.Plugin.Carts; | |
using Sitecore.Commerce.Plugin.Catalog; | |
using Sitecore.Commerce.Plugin.Catalog.Cs; | |
using Sitecore.Commerce.Plugin.Coupons; | |
using Sitecore.Commerce.Plugin.Fulfillment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sitecore.Commerce.Examples.Pipelines.Cart | |
{ | |
using System; | |
using Sitecore.Commerce.Engine; | |
using Sitecore.Commerce.Engine.Connect; | |
using Sitecore.Commerce.Engine.Connect.Pipelines; | |
using Sitecore.Commerce.Pipelines; | |
using Sitecore.Commerce.Plugin.AdventureWorks.Commands; | |
using Sitecore.Commerce.ServiceProxy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<commerce.carts.addCartLines> | |
<processor patch:before="processor[@type='Sitecore.Commerce.Engine.Connect.Pipelines.Carts.AddCartLines, Sitecore.Commerce.Engine.Connect']" | |
type="Sitecore.Commerce.Examples.Pipelines.Cart.SetCustomFieldsByCommand, Sitecore.Commerce.Examples"> | |
</processor> | |
</commerce.carts.addCartLines> | |
</pipelines> | |
</sitecore> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Adds the line item to cart. | |
/// </summary> | |
/// <param name="storefront">The storefront.</param> | |
/// <param name="visitorContext">The visitor context.</param> | |
/// <param name="inputModelList">The input model.</param> | |
/// <returns> | |
/// The manager response where the result is retuned indicating the success or failure of the operation. | |
/// </returns> | |
public virtual ManagerResponse<CartResult, bool> AddLineItemsToCart([NotNull] CommerceStorefront storefront, [NotNull] VisitorContext visitorContext, IEnumerable<AddCartLineInputModel> inputModelList) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Plugin.Pricing.Action | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using Sitecore.Commerce.Core; | |
using Sitecore.Commerce.Plugin.Carts; | |
using Sitecore.Commerce.Plugin.Pricing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Commerce.Plugin.Coupons; | |
namespace Sitecore.Commerce.Plugin.Reporting.Model | |
{ | |
public class OrderCoupon : CartCouponsComponent | |
{ | |
public string OrderId { get; set; } | |
public OrderCoupon() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Commerce.Core; | |
using Sitecore.Commerce.Plugin.Pricing; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Sitecore.Commerce.Plugin.Reporting.Model | |
{ | |
public class OrderDiscountAdjustment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Commerce.Plugin.Carts; | |
namespace Sitecore.Commerce.Plugin.Reporting.Model | |
{ | |
public class OrderLine : CartLineComponent | |
{ | |
public string OrderId { get; set; } | |
public OrderLine() | |
{ |