-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VCST-2376: update GraphQL.NET to v8 (#130)
- Loading branch information
1 parent
ca928db
commit 2c53d91
Showing
17 changed files
with
69 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
src/VirtoCommerce.QuoteModule.ExperienceApi/Commands/QuoteCommand.cs
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
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
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
8 changes: 4 additions & 4 deletions
8
src/VirtoCommerce.QuoteModule.ExperienceApi/Schemas/QuoteAddressType.cs
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
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
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
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
6 changes: 3 additions & 3 deletions
6
src/VirtoCommerce.QuoteModule.ExperienceApi/Schemas/QuoteTaxDetailType.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.CoreModule.Core.Currency; | ||
using VirtoCommerce.CoreModule.Core.Tax; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
using VirtoCommerce.QuoteModule.ExperienceApi.Aggregates; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
|
||
namespace VirtoCommerce.QuoteModule.ExperienceApi.Schemas; | ||
|
||
public class QuoteTaxDetailType : ExtendableGraphType<QuoteTaxDetailAggregate> | ||
{ | ||
public QuoteTaxDetailType() | ||
{ | ||
Field<NonNullGraphType<MoneyType>>(nameof(TaxDetail.Rate), resolve: context => new Money(context.Source.Model.Rate, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(TaxDetail.Amount), resolve: context => new Money(context.Source.Model.Amount, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(TaxDetail.Rate)).Resolve(context => new Money(context.Source.Model.Rate, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(TaxDetail.Amount)).Resolve(context => new Money(context.Source.Model.Amount, context.Source.Quote.Currency)); | ||
Field(x => x.Model.Name, nullable: true); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
src/VirtoCommerce.QuoteModule.ExperienceApi/Schemas/QuoteTierPriceType.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.Xapi.Core.Extensions; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
using VirtoCommerce.QuoteModule.Core.Models; | ||
using VirtoCommerce.QuoteModule.ExperienceApi.Aggregates; | ||
using VirtoCommerce.Xapi.Core.Extensions; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
|
||
namespace VirtoCommerce.QuoteModule.ExperienceApi.Schemas; | ||
|
||
public class QuoteTierPriceType : ObjectGraphType<QuoteTierPriceAggregate> | ||
public class QuoteTierPriceType : ExtendableGraphType<QuoteTierPriceAggregate> | ||
{ | ||
public QuoteTierPriceType() | ||
{ | ||
Field(x => x.Model.Quantity, nullable: false); | ||
Field<NonNullGraphType<MoneyType>>(nameof(TierPrice.Price), resolve: context => context.Source.Model.Price.ToMoney(context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(TierPrice.Price)).Resolve(context => context.Source.Model.Price.ToMoney(context.Source.Quote.Currency)); | ||
} | ||
} |
20 changes: 10 additions & 10 deletions
20
src/VirtoCommerce.QuoteModule.ExperienceApi/Schemas/QuoteTotalsType.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.CoreModule.Core.Currency; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
using VirtoCommerce.QuoteModule.Core.Models; | ||
using VirtoCommerce.QuoteModule.ExperienceApi.Aggregates; | ||
using VirtoCommerce.Xapi.Core.Schemas; | ||
|
||
namespace VirtoCommerce.QuoteModule.ExperienceApi.Schemas; | ||
|
||
public class QuoteTotalsType : ObjectGraphType<QuoteTotalsAggregate> | ||
public class QuoteTotalsType : ExtendableGraphType<QuoteTotalsAggregate> | ||
{ | ||
public QuoteTotalsType() | ||
{ | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.OriginalSubTotalExlTax), resolve: context => new Money(context.Source.Model.OriginalSubTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.SubTotalExlTax), resolve: context => new Money(context.Source.Model.SubTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.ShippingTotal), resolve: context => new Money(context.Source.Model.ShippingTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.DiscountTotal), resolve: context => new Money(context.Source.Model.DiscountTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.TaxTotal), resolve: context => new Money(context.Source.Model.TaxTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.AdjustmentQuoteExlTax), resolve: context => new Money(context.Source.Model.AdjustmentQuoteExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.GrandTotalExlTax), resolve: context => new Money(context.Source.Model.GrandTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.GrandTotalInclTax), resolve: context => new Money(context.Source.Model.GrandTotalInclTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.OriginalSubTotalExlTax)).Resolve(context => new Money(context.Source.Model.OriginalSubTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.SubTotalExlTax)).Resolve(context => new Money(context.Source.Model.SubTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.ShippingTotal)).Resolve(context => new Money(context.Source.Model.ShippingTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.DiscountTotal)).Resolve(context => new Money(context.Source.Model.DiscountTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.TaxTotal)).Resolve(context => new Money(context.Source.Model.TaxTotal, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.AdjustmentQuoteExlTax)).Resolve(context => new Money(context.Source.Model.AdjustmentQuoteExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.GrandTotalExlTax)).Resolve(context => new Money(context.Source.Model.GrandTotalExlTax, context.Source.Quote.Currency)); | ||
Field<NonNullGraphType<MoneyType>>(nameof(QuoteRequestTotals.GrandTotalInclTax)).Resolve(context => new Money(context.Source.Model.GrandTotalInclTax, context.Source.Quote.Currency)); | ||
} | ||
} |
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
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
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
Oops, something went wrong.