diff --git a/ShopifySharp.Tests/GenerateGraphQLSchema_Test.cs b/ShopifySharp.Tests/GenerateGraphQLSchema_Test.cs index 562af4e2b..bd1ce7a85 100644 --- a/ShopifySharp.Tests/GenerateGraphQLSchema_Test.cs +++ b/ShopifySharp.Tests/GenerateGraphQLSchema_Test.cs @@ -20,6 +20,7 @@ public async Task GenerateGraphQLTypes() { "UnsignedInt64", "ulong" }, { "Money", "decimal" }, { "Decimal", "decimal" }, + { "Float", "decimal" }, { "DateTime", "DateTime" },//GraphQL datetimes are always UTC { "Date", "DateOnly" }, { "UtcOffset", "TimeSpan" }, diff --git a/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs b/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs index 4ba3a2ad4..5e627268b 100644 --- a/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs +++ b/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs @@ -433,7 +433,7 @@ public class Abandonment : GraphQLObject, INode /// ///The number of hours since the customer has last abandoned a checkout. /// - public float? hoursSinceLastAbandonedCheckout { get; set; } + public decimal? hoursSinceLastAbandonedCheckout { get; set; } /// ///A globally-unique ID. /// @@ -2020,7 +2020,7 @@ public class AppSubscriptionDiscountPercentage : GraphQLObject ///The percentage value of a discount. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -4780,7 +4780,7 @@ public class CalculatedRestockingFee : GraphQLObject, I /// ///The value of the fee as a percentage. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -6994,11 +6994,11 @@ public class CheckoutBrandingFontSize : GraphQLObject /// ///The base font size. /// - public float? @base { get; set; } + public decimal? @base { get; set; } /// ///The scale ratio used to derive all font sizes such as small and large. /// - public float? ratio { get; set; } + public decimal? ratio { get; set; } } /// @@ -16830,7 +16830,7 @@ public class DeliveryParticipant : GraphQLObject, INode, ID /// ///The merchant-defined percentage-of-rate fee for this participant. /// - public float? percentageOfRateFee { get; set; } + public decimal? percentageOfRateFee { get; set; } } /// @@ -17294,7 +17294,7 @@ public interface IDepositConfiguration : IGraphQLObject /// ///The percentage value of the deposit. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -17305,7 +17305,7 @@ public class DepositPercentage : GraphQLObject, IDepositConfi /// ///The percentage value of the deposit. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -19526,7 +19526,7 @@ public class DiscountPercentage : GraphQLObject, IDiscountCu /// ///The percentage value of the discount. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -20716,7 +20716,7 @@ public class DraftOrderAppliedDiscount : GraphQLObject - public float? value { get; set; } + public decimal? value { get; set; } /// ///Type of the order-level discount. /// @@ -23360,11 +23360,11 @@ public class FulfillmentEvent : GraphQLObject, INode /// ///The latitude where this fulfillment event occurred. /// - public float? latitude { get; set; } + public decimal? latitude { get; set; } /// ///The longitude where this fulfillment event occurred. /// - public float? longitude { get; set; } + public decimal? longitude { get; set; } /// ///A message associated with this fulfillment event. /// @@ -29654,11 +29654,11 @@ public class LocationAddress : GraphQLObject /// ///The approximate latitude coordinates of the location. /// - public float? latitude { get; set; } + public decimal? latitude { get; set; } /// ///The approximate longitude coordinates of the location. /// - public float? longitude { get; set; } + public decimal? longitude { get; set; } /// ///The phone number of the location. /// @@ -30151,11 +30151,11 @@ public class MailingAddress : GraphQLObject, INode /// ///The latitude coordinate of the customer address. /// - public float? latitude { get; set; } + public decimal? latitude { get; set; } /// ///The longitude coordinate of the customer address. /// - public float? longitude { get; set; } + public decimal? longitude { get; set; } /// ///The full name of the customer, based on firstName and lastName. /// @@ -42970,7 +42970,7 @@ public class PriceListAdjustment : GraphQLObject ///The value of price adjustment, where positive numbers reduce the prices and negative numbers ///increase them. /// - public float? value { get; set; } + public decimal? value { get; set; } } /// @@ -43917,7 +43917,7 @@ public class PriceRulePercentValue : GraphQLObject, IPric /// ///The percent value of the price rule. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -44116,7 +44116,7 @@ public class PricingPercentageValue : GraphQLObject, IPr /// ///The percentage value of the object. This is a number between -100 (free) and 0 (no discount). /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -50696,7 +50696,7 @@ public class RestockingFee : GraphQLObject, IFee /// ///The value of the fee as a percentage. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -52780,11 +52780,11 @@ public class SegmentAttributeStatistics : GraphQLObject ///The average of a given attribute. /// - public float? average { get; set; } + public decimal? average { get; set; } /// ///The sum of a given attribute. /// - public float? sum { get; set; } + public decimal? sum { get; set; } } /// @@ -53513,7 +53513,7 @@ public class SellingPlanCheckoutChargePercentageValue : GraphQLObject ///The percentage value of the price used for checkout charge. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -54383,7 +54383,7 @@ public class SellingPlanPricingPolicyPercentageValue : GraphQLObject ///The percentage value. /// - public float? percentage { get; set; } + public decimal? percentage { get; set; } } /// @@ -55429,11 +55429,11 @@ public class ShopAddress : GraphQLObject, INode /// ///The latitude coordinate of the address. /// - public float? latitude { get; set; } + public decimal? latitude { get; set; } /// ///The longitude coordinate of the address. /// - public float? longitude { get; set; } + public decimal? longitude { get; set; } /// ///The full name, based on firstName and lastName. @@ -62187,11 +62187,11 @@ public class TaxLine : GraphQLObject /// ///The proportion of the line item price that the tax represents as a decimal. /// - public float? rate { get; set; } + public decimal? rate { get; set; } /// ///The proportion of the line item price that the tax represents as a percentage. /// - public float? ratePercentage { get; set; } + public decimal? ratePercentage { get; set; } /// ///The source of the tax. /// @@ -63450,7 +63450,7 @@ public class UnitPriceMeasurement : GraphQLObject /// ///The quantity value for the unit price measurement. /// - public float? quantityValue { get; set; } + public decimal? quantityValue { get; set; } /// ///The reference unit for the unit price measurement. /// @@ -64418,15 +64418,15 @@ public class Vector3 : GraphQLObject /// ///The x coordinate of Vector3. /// - public float? x { get; set; } + public decimal? x { get; set; } /// ///The y coordinate of Vector3. /// - public float? y { get; set; } + public decimal? y { get; set; } /// ///The z coordinate of Vector3. /// - public float? z { get; set; } + public decimal? z { get; set; } } /// @@ -65638,7 +65638,7 @@ public class Weight : GraphQLObject, IDeliveryConditionCriteria /// ///The weight value using the unit system specified with `unit`. /// - public float? value { get; set; } + public decimal? value { get; set; } } /// diff --git a/ShopifySharp/ShopifySharp.csproj b/ShopifySharp/ShopifySharp.csproj index 026e77122..b5bc88609 100644 --- a/ShopifySharp/ShopifySharp.csproj +++ b/ShopifySharp/ShopifySharp.csproj @@ -3,7 +3,7 @@ net6.0;netstandard2.0;net8.0 ShopifySharp ShopifySharp - 6.20.0 + 6.21.0 true snupkg Latest