Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/dev' into feat/VCST-1659
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljutyj committed Nov 19, 2024
2 parents 6a56a67 + b1027ec commit b55c1d1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<!-- These properties will be shared for all projects -->
<PropertyGroup>
<VersionPrefix>3.813.0</VersionPrefix>
<VersionPrefix>3.815.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/VirtoCommerce.XCart.Core/CartAggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ public virtual async Task<CartAggregate> RecalculateAsync()

await UpdateOrganizationName();

_cartTotalsCalculator.CalculateTotals(Cart);

var promotionEvalResult = await EvaluatePromotionsAsync();
await this.ApplyRewardsAsync(promotionEvalResult.Rewards);

Expand Down
1 change: 1 addition & 0 deletions src/VirtoCommerce.XCart.Core/Schemas/CartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public CartType(
Field(x => x.Cart.IsRecuring, nullable: true).Description("Displays whether the shopping cart is recurring");
Field(x => x.Cart.Comment, nullable: true).Description("Shopping cart text comment");
Field(x => x.Cart.PurchaseOrderNumber, nullable: true).Description("Purchase order number");
Field(x => x.Cart.CheckoutId, nullable: false).Description("Cart checkout ID");

// Characteristics
Field(x => x.Cart.VolumetricWeight, nullable: true).Description("Shopping cart volumetric weight value");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.809.0" />
<PackageReference Include="VirtoCommerce.XCatalog.Core" Version="3.813.0" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.816.0-alpha.705-vcst-1659" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.818.0" />
<PackageReference Include="VirtoCommerce.PaymentModule.Core" Version="3.804.0" />
<PackageReference Include="VirtoCommerce.ShippingModule.Core" Version="3.802.0" />
<PackageReference Include="VirtoCommerce.InventoryModule.Core" Version="3.805.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/VirtoCommerce.XCart.Web/module.manifest
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<id>VirtoCommerce.XCart</id>
<version>3.813.0</version>
<version>3.815.0</version>
<version-tag></version-tag>

<platformVersion>3.861.0</platformVersion>
<dependencies>
<dependency id="VirtoCommerce.Cart" version="3.816.0" />
<dependency id="VirtoCommerce.Cart" version="3.818.0" />
<dependency id="VirtoCommerce.Inventory" version="3.805.0" />
<dependency id="VirtoCommerce.Marketing" version="3.812.0" />
<dependency id="VirtoCommerce.Payment" version="3.804.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ public async Task RecalculateAsync_HasPromoRewards_CalculateTotalsCalled()
var result = await cartAggregate.RecalculateAsync();

// Assert
_shoppingCartTotalsCalculatorMock.Verify(x => x.CalculateTotals(It.Is<ShoppingCart>(x => x == cartAggregate.Cart)), Times.Once);
_shoppingCartTotalsCalculatorMock.Verify(x => x.CalculateTotals(It.Is<ShoppingCart>(x => x == cartAggregate.Cart)), Times.Exactly(2));
}

#endregion RecalculateAsync
Expand Down

0 comments on commit b55c1d1

Please sign in to comment.