diff --git a/GraphQLSharp.Tests/shopify.cs b/GraphQLSharp.Tests/shopify.cs index b1e04d3..052b7a7 100644 --- a/GraphQLSharp.Tests/shopify.cs +++ b/GraphQLSharp.Tests/shopify.cs @@ -576,6 +576,7 @@ public class Abandonment : GraphQLObject, INode ///The email state (e.g., sent or not sent). /// [Description("The email state (e.g., sent or not sent).")] + [EnumType(typeof(AbandonmentEmailState))] public string? emailState { get; set; } /// @@ -802,6 +803,7 @@ public class AbandonmentEmailStateUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(AbandonmentEmailStateUpdateUserErrorCode))] public string? code { get; set; } /// @@ -866,6 +868,7 @@ public class AbandonmentUpdateActivitiesDeliveryStatusesUserError : GraphQLObjec ///The error code. /// [Description("The error code.")] + [EnumType(typeof(AbandonmentUpdateActivitiesDeliveryStatusesUserErrorCode))] public string? code { get; set; } /// @@ -2730,6 +2733,7 @@ public class AppRevokeAccessScopesAppRevokeScopeError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(AppRevokeAccessScopesAppRevokeScopeErrorCode))] public string? code { get; set; } /// @@ -3257,6 +3261,7 @@ public class AppSubscriptionTrialExtendUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(AppSubscriptionTrialExtendUserErrorCode))] public string? code { get; set; } /// @@ -3838,6 +3843,7 @@ public class ArticleCreateUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ArticleCreateUserErrorCode))] public string? code { get; set; } /// @@ -3980,6 +3986,7 @@ public class ArticleDeleteUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ArticleDeleteUserErrorCode))] public string? code { get; set; } /// @@ -4137,6 +4144,7 @@ public class ArticleUpdateUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ArticleUpdateUserErrorCode))] public string? code { get; set; } /// @@ -4731,6 +4739,7 @@ public class BillingAttemptUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BillingAttemptUserErrorCode))] public string? code { get; set; } /// @@ -5016,6 +5025,7 @@ public class BlogCreateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BlogCreateUserErrorCode))] public string? code { get; set; } /// @@ -5104,6 +5114,7 @@ public class BlogDeleteUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BlogDeleteUserErrorCode))] public string? code { get; set; } /// @@ -5240,6 +5251,7 @@ public class BlogUpdateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BlogUpdateUserErrorCode))] public string? code { get; set; } /// @@ -5350,6 +5362,7 @@ public class BulkMutationUserError : GraphQLObject, IDisp ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BulkMutationErrorCode))] public string? code { get; set; } /// @@ -5395,6 +5408,7 @@ public class BulkOperation : GraphQLObject, INode ///Error code for failed operations. /// [Description("Error code for failed operations.")] + [EnumType(typeof(BulkOperationErrorCode))] public string? errorCode { get; set; } /// @@ -5648,6 +5662,7 @@ public class BulkOperationUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(BulkOperationUserErrorCode))] public string? code { get; set; } /// @@ -5718,6 +5733,7 @@ public class BulkProductResourceFeedbackCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(BulkProductResourceFeedbackCreateUserErrorCode))] public string? code { get; set; } /// @@ -5909,6 +5925,7 @@ public class BusinessCustomerUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(BusinessCustomerErrorCode))] public string? code { get; set; } /// @@ -7584,6 +7601,7 @@ public class CardPaymentDetails : GraphQLObject, IBasePaymen ///Digital wallet used for the payment. /// [Description("Digital wallet used for the payment.")] + [EnumType(typeof(DigitalWallet))] public string? wallet { get; set; } } @@ -7617,6 +7635,7 @@ public class CarrierServiceCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CarrierServiceCreateUserErrorCode))] public string? code { get; set; } /// @@ -7681,6 +7700,7 @@ public class CarrierServiceDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CarrierServiceDeleteUserErrorCode))] public string? code { get; set; } /// @@ -7775,6 +7795,7 @@ public class CarrierServiceUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CarrierServiceUpdateUserErrorCode))] public string? code { get; set; } /// @@ -7911,6 +7932,7 @@ public class CartTransformCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CartTransformCreateUserErrorCode))] public string? code { get; set; } /// @@ -7999,6 +8021,7 @@ public class CartTransformDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CartTransformDeleteUserErrorCode))] public string? code { get; set; } /// @@ -8810,6 +8833,7 @@ public class CatalogUserError : GraphQLObject, IDisplayableErr ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CatalogUserErrorCode))] public string? code { get; set; } /// @@ -9503,30 +9527,35 @@ public class CheckoutBrandingButton : GraphQLObject ///The background style used for buttons. /// [Description("The background style used for buttons.")] + [EnumType(typeof(CheckoutBrandingBackgroundStyle))] public string? background { get; set; } /// ///The block padding used for buttons. /// [Description("The block padding used for buttons.")] + [EnumType(typeof(CheckoutBrandingSpacing))] public string? blockPadding { get; set; } /// ///The border used for buttons. /// [Description("The border used for buttons.")] + [EnumType(typeof(CheckoutBrandingSimpleBorder))] public string? border { get; set; } /// ///The corner radius used for buttons. /// [Description("The corner radius used for buttons.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } /// ///The inline padding used for buttons. /// [Description("The inline padding used for buttons.")] + [EnumType(typeof(CheckoutBrandingSpacing))] public string? inlinePadding { get; set; } /// @@ -9595,6 +9624,7 @@ public class CheckoutBrandingBuyerJourney : GraphQLObject [Description("An option to display or hide the breadcrumbs that represent the buyer's journey on 3-page checkout.")] + [EnumType(typeof(CheckoutBrandingVisibility))] public string? visibility { get; set; } } @@ -9608,6 +9638,7 @@ public class CheckoutBrandingCartLink : GraphQLObject ///Whether the cart link is visible at checkout. /// [Description("Whether the cart link is visible at checkout.")] + [EnumType(typeof(CheckoutBrandingVisibility))] public string? visibility { get; set; } } @@ -9651,6 +9682,7 @@ public class CheckoutBrandingCheckbox : GraphQLObject ///The corner radius used for checkboxes. /// [Description("The corner radius used for checkboxes.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } } @@ -9677,6 +9709,7 @@ public class CheckoutBrandingChoiceListGroup : GraphQLObject [Description("The spacing between UI elements in the list.")] + [EnumType(typeof(CheckoutBrandingSpacingKeyword))] public string? spacing { get; set; } } @@ -9925,18 +9958,21 @@ public class CheckoutBrandingContainerDivider : GraphQLObject [Description("The divider style.")] + [EnumType(typeof(CheckoutBrandingBorderStyle))] public string? borderStyle { get; set; } /// ///The divider width. /// [Description("The divider width.")] + [EnumType(typeof(CheckoutBrandingBorderWidth))] public string? borderWidth { get; set; } /// ///The divider visibility. /// [Description("The divider visibility.")] + [EnumType(typeof(CheckoutBrandingVisibility))] public string? visibility { get; set; } } @@ -9963,24 +9999,28 @@ public class CheckoutBrandingControl : GraphQLObject ///The border used for form controls. /// [Description("The border used for form controls.")] + [EnumType(typeof(CheckoutBrandingSimpleBorder))] public string? border { get; set; } /// ///Set to TRANSPARENT to define transparent form controls. If null, form controls inherit colors from their scheme settings (for example, the main section inherits from `design_system.colors.schemes.scheme1.control` by default). Note that usage of the `customizations.control.color` setting to customize the form control color is deprecated. /// [Description("Set to TRANSPARENT to define transparent form controls. If null, form controls inherit colors from their scheme settings (for example, the main section inherits from `design_system.colors.schemes.scheme1.control` by default). Note that usage of the `customizations.control.color` setting to customize the form control color is deprecated.")] + [EnumType(typeof(CheckoutBrandingColorSelection))] public string? color { get; set; } /// ///The corner radius used for form controls. /// [Description("The corner radius used for form controls.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } /// ///The label position used for form controls. /// [Description("The label position used for form controls.")] + [EnumType(typeof(CheckoutBrandingLabelPosition))] public string? labelPosition { get; set; } } @@ -10302,12 +10342,14 @@ public class CheckoutBrandingDividerStyle : GraphQLObject [Description("The border style for the divider.")] + [EnumType(typeof(CheckoutBrandingBorderStyle))] public string? borderStyle { get; set; } /// ///The border width for the divider. /// [Description("The border width for the divider.")] + [EnumType(typeof(CheckoutBrandingBorderWidth))] public string? borderWidth { get; set; } } @@ -10334,6 +10376,7 @@ public class CheckoutBrandingExpressCheckoutButton : GraphQLObject [Description("The corner radius used for the Express Checkout buttons.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } } @@ -10385,6 +10428,7 @@ public class CheckoutBrandingFontGroup : GraphQLObject [Description("The font loading strategy.")] + [EnumType(typeof(CheckoutBrandingFontLoadingStrategy))] public string? loadingStrategy { get; set; } /// @@ -10466,12 +10510,14 @@ public class CheckoutBrandingFooter : GraphQLObject ///The footer alignment. /// [Description("The footer alignment.")] + [EnumType(typeof(CheckoutBrandingFooterAlignment))] public string? alignment { get; set; } /// ///The selected color scheme of the footer container. /// [Description("The selected color scheme of the footer container.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// @@ -10490,12 +10536,14 @@ public class CheckoutBrandingFooter : GraphQLObject ///The padding of the footer container. /// [Description("The padding of the footer container.")] + [EnumType(typeof(CheckoutBrandingSpacingKeyword))] public string? padding { get; set; } /// ///The footer position. /// [Description("The footer position.")] + [EnumType(typeof(CheckoutBrandingFooterPosition))] public string? position { get; set; } } @@ -10539,6 +10587,7 @@ public class CheckoutBrandingFooterContent : GraphQLObject [Description("The visibility settings for footer content.")] + [EnumType(typeof(CheckoutBrandingVisibility))] public string? visibility { get; set; } } @@ -10577,6 +10626,7 @@ public class CheckoutBrandingGlobal : GraphQLObject ///customizations. /// [Description("The global corner radius setting that overrides all other [corner radius](https://shopify.dev/docs/api/admin-graphql/latest/enums/CheckoutBrandingCornerRadius)\ncustomizations.")] + [EnumType(typeof(CheckoutBrandingGlobalCornerRadius))] public string? cornerRadius { get; set; } /// @@ -10618,6 +10668,7 @@ public class CheckoutBrandingHeader : GraphQLObject ///The header alignment. /// [Description("The header alignment.")] + [EnumType(typeof(CheckoutBrandingHeaderAlignment))] public string? alignment { get; set; } /// @@ -10636,6 +10687,7 @@ public class CheckoutBrandingHeader : GraphQLObject ///The selected color scheme of the header container. /// [Description("The selected color scheme of the header container.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// @@ -10654,12 +10706,14 @@ public class CheckoutBrandingHeader : GraphQLObject ///The padding of the header container. /// [Description("The padding of the header container.")] + [EnumType(typeof(CheckoutBrandingSpacingKeyword))] public string? padding { get; set; } /// ///The header position. /// [Description("The header position.")] + [EnumType(typeof(CheckoutBrandingHeaderPosition))] public string? position { get; set; } } @@ -10703,6 +10757,7 @@ public class CheckoutBrandingHeaderCartLink : GraphQLObject [Description("The content type for the header back to cart link in 1-page checkout. Setting this to image will render the custom image provided using the image field on the header cart_link object. If no image is provided, the default cart icon will be used.")] + [EnumType(typeof(CheckoutBrandingCartLinkContentType))] public string? contentType { get; set; } /// @@ -10814,6 +10869,7 @@ public class CheckoutBrandingLogo : GraphQLObject ///The visibility of the logo. /// [Description("The visibility of the logo.")] + [EnumType(typeof(CheckoutBrandingVisibility))] public string? visibility { get; set; } } @@ -10833,6 +10889,7 @@ public class CheckoutBrandingMain : GraphQLObject ///The selected color scheme of the main container. /// [Description("The selected color scheme of the main container.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// @@ -10858,48 +10915,56 @@ public class CheckoutBrandingMainSection : GraphQLObject [Description("The background style of the main sections.")] + [EnumType(typeof(CheckoutBrandingBackground))] public string? background { get; set; } /// ///The border for the main sections. /// [Description("The border for the main sections.")] + [EnumType(typeof(CheckoutBrandingSimpleBorder))] public string? border { get; set; } /// ///The border style of the main sections. /// [Description("The border style of the main sections.")] + [EnumType(typeof(CheckoutBrandingBorderStyle))] public string? borderStyle { get; set; } /// ///The border width of the main sections. /// [Description("The border width of the main sections.")] + [EnumType(typeof(CheckoutBrandingBorderWidth))] public string? borderWidth { get; set; } /// ///The selected color scheme of the main sections. /// [Description("The selected color scheme of the main sections.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// ///The corner radius of the main sections. /// [Description("The corner radius of the main sections.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } /// ///The padding of the main sections. /// [Description("The padding of the main sections.")] + [EnumType(typeof(CheckoutBrandingSpacingKeyword))] public string? padding { get; set; } /// ///The shadow of the main sections. /// [Description("The shadow of the main sections.")] + [EnumType(typeof(CheckoutBrandingShadow))] public string? shadow { get; set; } } @@ -10919,18 +10984,21 @@ public class CheckoutBrandingMerchandiseThumbnail : GraphQLObject [Description("The border used for merchandise thumbnails.")] + [EnumType(typeof(CheckoutBrandingSimpleBorder))] public string? border { get; set; } /// ///The corner radius used for merchandise thumbnails. /// [Description("The corner radius used for merchandise thumbnails.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } /// ///The property used to customize how the product image fits within merchandise thumbnails. /// [Description("The property used to customize how the product image fits within merchandise thumbnails.")] + [EnumType(typeof(CheckoutBrandingObjectFit))] public string? fit { get; set; } } @@ -10944,6 +11012,7 @@ public class CheckoutBrandingMerchandiseThumbnailBadge : GraphQLObject [Description("The background used for merchandise thumbnail badges.")] + [EnumType(typeof(CheckoutBrandingMerchandiseThumbnailBadgeBackground))] public string? background { get; set; } } @@ -11011,6 +11080,7 @@ public class CheckoutBrandingOrderSummary : GraphQLObject [Description("The selected color scheme of the order summary container.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// @@ -11036,48 +11106,56 @@ public class CheckoutBrandingOrderSummarySection : GraphQLObject [Description("The background style of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingBackground))] public string? background { get; set; } /// ///The border for the order summary sections. /// [Description("The border for the order summary sections.")] + [EnumType(typeof(CheckoutBrandingSimpleBorder))] public string? border { get; set; } /// ///The border style of the order summary sections. /// [Description("The border style of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingBorderStyle))] public string? borderStyle { get; set; } /// ///The border width of the order summary sections. /// [Description("The border width of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingBorderWidth))] public string? borderWidth { get; set; } /// ///The selected color scheme of the order summary sections. /// [Description("The selected color scheme of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingColorSchemeSelection))] public string? colorScheme { get; set; } /// ///The corner radius of the order summary sections. /// [Description("The corner radius of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingCornerRadius))] public string? cornerRadius { get; set; } /// ///The padding of the order summary sections. /// [Description("The padding of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingSpacingKeyword))] public string? padding { get; set; } /// ///The shadow of the order summary sections. /// [Description("The shadow of the order summary sections.")] + [EnumType(typeof(CheckoutBrandingShadow))] public string? shadow { get; set; } } @@ -11091,6 +11169,7 @@ public class CheckoutBrandingSelect : GraphQLObject ///The border used for selects. /// [Description("The border used for selects.")] + [EnumType(typeof(CheckoutBrandingBorder))] public string? border { get; set; } /// @@ -11339,6 +11418,7 @@ public class CheckoutBrandingTextField : GraphQLObject [Description("The border used for text fields.")] + [EnumType(typeof(CheckoutBrandingBorder))] public string? border { get; set; } /// @@ -11536,30 +11616,35 @@ public class CheckoutBrandingTypographyStyle : GraphQLObject [Description("The font.")] + [EnumType(typeof(CheckoutBrandingTypographyFont))] public string? font { get; set; } /// ///The kerning. /// [Description("The kerning.")] + [EnumType(typeof(CheckoutBrandingTypographyKerning))] public string? kerning { get; set; } /// ///The letter case. /// [Description("The letter case.")] + [EnumType(typeof(CheckoutBrandingTypographyLetterCase))] public string? letterCase { get; set; } /// ///The font size. /// [Description("The font size.")] + [EnumType(typeof(CheckoutBrandingTypographySize))] public string? size { get; set; } /// ///The font weight. /// [Description("The font weight.")] + [EnumType(typeof(CheckoutBrandingTypographyWeight))] public string? weight { get; set; } } @@ -11573,12 +11658,14 @@ public class CheckoutBrandingTypographyStyleGlobal : GraphQLObject [Description("The kerning.")] + [EnumType(typeof(CheckoutBrandingTypographyKerning))] public string? kerning { get; set; } /// ///The letter case. /// [Description("The letter case.")] + [EnumType(typeof(CheckoutBrandingTypographyLetterCase))] public string? letterCase { get; set; } } @@ -11636,6 +11723,7 @@ public class CheckoutBrandingUpsertUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CheckoutBrandingUpsertUserErrorCode))] public string? code { get; set; } /// @@ -12245,6 +12333,7 @@ public class CollectionAddProductsV2UserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CollectionAddProductsV2UserErrorCode))] public string? code { get; set; } /// @@ -13177,6 +13266,7 @@ public class CombinedListingUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CombinedListingUpdateUserErrorCode))] public string? code { get; set; } /// @@ -13544,6 +13634,7 @@ public class CommentApproveUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CommentApproveUserErrorCode))] public string? code { get; set; } /// @@ -13657,6 +13748,7 @@ public class CommentDeleteUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CommentDeleteUserErrorCode))] public string? code { get; set; } /// @@ -14009,6 +14101,7 @@ public class CommentNotSpamUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CommentNotSpamUserErrorCode))] public string? code { get; set; } /// @@ -14127,6 +14220,7 @@ public class CommentSpamUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CommentSpamUserErrorCode))] public string? code { get; set; } /// @@ -16163,6 +16257,7 @@ public class CompanyLocationsCondition : GraphQLObject [Description("The application level for the condition.")] + [EnumType(typeof(MarketConditionApplicationType))] public string? applicationLevel { get; set; } /// @@ -16304,6 +16399,7 @@ public class ConsentPolicy : GraphQLObject, INode ///The `ISO 3166` country code for which the policy applies. /// [Description("The `ISO 3166` country code for which the policy applies.")] + [EnumType(typeof(PrivacyCountryCode))] public string? countryCode { get; set; } /// @@ -16343,6 +16439,7 @@ public class ConsentPolicyError : GraphQLObject, IDisplayabl ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ConsentPolicyErrorCode))] public string? code { get; set; } /// @@ -16411,6 +16508,7 @@ public class ConsentPolicyRegion : GraphQLObject ///The `ISO 3166` country code for which the policy applies. /// [Description("The `ISO 3166` country code for which the policy applies.")] + [EnumType(typeof(PrivacyCountryCode))] public string? countryCode { get; set; } /// @@ -19990,6 +20088,7 @@ public class CustomerCancelDataErasureUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerCancelDataErasureErrorCode))] public string? code { get; set; } /// @@ -20194,6 +20293,7 @@ public class CustomerCreditCardBillingAddress : GraphQLObject [Description("The two-letter code for the country of the address.\nFor example, US.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -20294,6 +20394,7 @@ public class CustomerEmailAddress : GraphQLObject ///received when the marketing consent was updated. /// [Description("The marketing subscription opt-in level, as described by the M3AAWG best practices guidelines,\nreceived when the marketing consent was updated.")] + [EnumType(typeof(CustomerMarketingOptInLevel))] public string? marketingOptInLevel { get; set; } /// @@ -20440,6 +20541,7 @@ public class CustomerEmailMarketingConsentState : GraphQLObject [Description("The marketing subscription opt-in level, as described by the M3AAWG best practices guidelines,\nthat the customer gave when they consented to receive marketing material by email.")] + [EnumType(typeof(CustomerMarketingOptInLevel))] public string? marketingOptInLevel { get; set; } /// @@ -20486,6 +20588,7 @@ public class CustomerEmailMarketingConsentUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerEmailMarketingConsentUpdateUserErrorCode))] public string? code { get; set; } /// @@ -21206,6 +21309,7 @@ public class CustomerMergeUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CustomerMergeErrorCode))] public string? code { get; set; } /// @@ -21371,6 +21475,7 @@ public class CustomerPaymentInstrumentBillingAddress : GraphQLObject [Description("The two-letter code for the country of the address.\nFor example, US.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -21434,6 +21539,7 @@ public class CustomerPaymentMethod : GraphQLObject, INode ///The revocation reason for this payment method. /// [Description("The revocation reason for this payment method.")] + [EnumType(typeof(CustomerPaymentMethodRevocationReason))] public string? revokedReason { get; set; } /// @@ -21502,6 +21608,7 @@ public class CustomerPaymentMethodCreateFromDuplicationDataUserError : GraphQLOb ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CustomerPaymentMethodCreateFromDuplicationDataUserErrorCode))] public string? code { get; set; } /// @@ -21651,6 +21758,7 @@ public class CustomerPaymentMethodGetDuplicationDataUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerPaymentMethodGetDuplicationDataUserErrorCode))] public string? code { get; set; } /// @@ -21745,6 +21853,7 @@ public class CustomerPaymentMethodGetUpdateUrlUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerPaymentMethodGetUpdateUrlUserErrorCode))] public string? code { get; set; } /// @@ -21867,6 +21976,7 @@ public class CustomerPaymentMethodRemoteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerPaymentMethodRemoteUserErrorCode))] public string? code { get; set; } /// @@ -22113,6 +22223,7 @@ public class CustomerPaymentMethodUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerPaymentMethodUserErrorCode))] public string? code { get; set; } /// @@ -22202,6 +22313,7 @@ public class CustomerPhoneNumber : GraphQLObject ///The source from which the SMS marketing information for the customer was collected. /// [Description("The source from which the SMS marketing information for the customer was collected.")] + [EnumType(typeof(CustomerConsentCollectedFrom))] public string? marketingCollectedFrom { get; set; } /// @@ -22209,6 +22321,7 @@ public class CustomerPhoneNumber : GraphQLObject ///received when the marketing consent was updated. /// [Description("The marketing subscription opt-in level, as described by the M3AAWG best practices guidelines,\nreceived when the marketing consent was updated.")] + [EnumType(typeof(CustomerMarketingOptInLevel))] public string? marketingOptInLevel { get; set; } /// @@ -22416,6 +22529,7 @@ public class CustomerRequestDataErasureUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerRequestDataErasureErrorCode))] public string? code { get; set; } /// @@ -22746,6 +22860,7 @@ public class CustomerSegmentMembersQueryUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerSegmentMembersQueryUserErrorCode))] public string? code { get; set; } /// @@ -22810,6 +22925,7 @@ public class CustomerSendAccountInviteEmailUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerSendAccountInviteEmailUserErrorCode))] public string? code { get; set; } /// @@ -22874,6 +22990,7 @@ public class CustomerSetUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(CustomerSetUserErrorCode))] public string? code { get; set; } /// @@ -23053,6 +23170,7 @@ public class CustomerSmsMarketingConsentError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(CustomerSmsMarketingConsentErrorCode))] public string? code { get; set; } /// @@ -23117,6 +23235,7 @@ public class CustomerSmsMarketingConsentState : GraphQLObject [Description("The source from which the SMS marketing information for the customer was collected.")] + [EnumType(typeof(CustomerConsentCollectedFrom))] public string? consentCollectedFrom { get; set; } /// @@ -23304,12 +23423,14 @@ public class CustomerStatistics : GraphQLObject ///The predicted spend tier of a customer with a shop. /// [Description("The predicted spend tier of a customer with a shop.")] + [EnumType(typeof(CustomerPredictedSpendTier))] public string? predictedSpendTier { get; set; } /// ///The RFM (Recency, Frequency, Monetary) group of the customer. /// [Description("The RFM (Recency, Frequency, Monetary) group of the customer.")] + [EnumType(typeof(CustomerRfmGroup))] public string? rfmGroup { get; set; } } @@ -23432,6 +23553,7 @@ public class CustomerVisit : GraphQLObject, ICustomerMoment, INod ///Type of marketing tactic. /// [Description("Type of marketing tactic.")] + [EnumType(typeof(MarketingTactic))] public string? sourceType { get; set; } /// @@ -23560,6 +23682,7 @@ public class DataSaleOptOutUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(DataSaleOptOutUserErrorCode))] public string? code { get; set; } /// @@ -23716,6 +23839,7 @@ public class DelegateAccessTokenCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DelegateAccessTokenCreateUserErrorCode))] public string? code { get; set; } /// @@ -23823,6 +23947,7 @@ public class DelegateAccessTokenDestroyUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DelegateAccessTokenDestroyUserErrorCode))] public string? code { get; set; } /// @@ -24498,6 +24623,7 @@ public class DeliveryCountryCodeOrRestOfWorld : GraphQLObject [Description("The country code in the ISO 3166-1 alpha-2 format.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -24721,6 +24847,7 @@ public class DeliveryCustomizationError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DeliveryCustomizationErrorCode))] public string? code { get; set; } /// @@ -25079,6 +25206,7 @@ public class DeliveryLocationLocalPickupSettingsError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DeliveryLocationLocalPickupSettingsErrorCode))] public string? code { get; set; } /// @@ -26280,6 +26408,7 @@ public class DeliveryPromiseProviderUpsertUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DeliveryPromiseProviderUpsertUserErrorCode))] public string? code { get; set; } /// @@ -30855,6 +30984,7 @@ public class DiscountUserError : GraphQLObject, IDisplayableE ///The error code. /// [Description("The error code.")] + [EnumType(typeof(DiscountErrorCode))] public string? code { get; set; } /// @@ -31264,6 +31394,7 @@ public class DisputeEvidenceUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(DisputeEvidenceUpdateUserErrorCode))] public string? code { get; set; } /// @@ -33036,6 +33167,7 @@ public class Duty : GraphQLObject, INode ///The ISO 3166-1 alpha-2 country code of the country of origin used in calculating the duty. /// [Description("The ISO 3166-1 alpha-2 country code of the country of origin used in calculating the duty.")] + [EnumType(typeof(CountryCode))] public string? countryCodeOfOrigin { get; set; } /// @@ -33186,6 +33318,7 @@ public class ErrorsServerPixelUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ErrorsServerPixelUserErrorCode))] public string? code { get; set; } /// @@ -33248,6 +33381,7 @@ public class ErrorsWebPixelUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ErrorsWebPixelUserErrorCode))] public string? code { get; set; } /// @@ -35118,6 +35252,7 @@ public class FilesUserError : GraphQLObject, IDisplayableError ///The error code. /// [Description("The error code.")] + [EnumType(typeof(FilesErrorCode))] public string? code { get; set; } /// @@ -35185,6 +35320,7 @@ public class FinanceKycInformation : GraphQLObject ///The legal entity business type. /// [Description("The legal entity business type.")] + [EnumType(typeof(ShopifyPaymentsBusinessType))] public string? businessType { get; set; } /// @@ -35369,6 +35505,7 @@ public class Fulfillment : GraphQLObject, ILegacyInteroperability, ///Human readable display status for this fulfillment. /// [Description("Human readable display status for this fulfillment.")] + [EnumType(typeof(FulfillmentDisplayStatus))] public string? displayStatus { get; set; } /// @@ -35609,6 +35746,7 @@ public class FulfillmentConstraintRuleCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentConstraintRuleCreateUserErrorCode))] public string? code { get; set; } /// @@ -35709,6 +35847,7 @@ public class FulfillmentConstraintRuleDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentConstraintRuleDeleteUserErrorCode))] public string? code { get; set; } /// @@ -35779,6 +35918,7 @@ public class FulfillmentConstraintRuleUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentConstraintRuleUpdateUserErrorCode))] public string? code { get; set; } /// @@ -37169,6 +37309,7 @@ public class FulfillmentOrderDestination : GraphQLObject [Description("The two-letter country code of the destination.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -37285,6 +37426,7 @@ public class FulfillmentOrderHoldUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderHoldUserErrorCode))] public string? code { get; set; } /// @@ -37615,6 +37757,7 @@ public class FulfillmentOrderLineItemsPreparedForPickupUserError : GraphQLObject ///The error code. /// [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderLineItemsPreparedForPickupUserErrorCode))] public string? code { get; set; } /// @@ -37940,6 +38083,7 @@ public class FulfillmentOrderMergeUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderMergeUserErrorCode))] public string? code { get; set; } /// @@ -38210,6 +38354,7 @@ public class FulfillmentOrderReleaseHoldUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderReleaseHoldUserErrorCode))] public string? code { get; set; } /// @@ -38346,6 +38491,7 @@ public class FulfillmentOrderRescheduleUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderRescheduleUserErrorCode))] public string? code { get; set; } /// @@ -38461,6 +38607,7 @@ public class FulfillmentOrderSplitUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrderSplitUserErrorCode))] public string? code { get; set; } /// @@ -38673,6 +38820,7 @@ public class FulfillmentOrdersSetFulfillmentDeadlineUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(FulfillmentOrdersSetFulfillmentDeadlineUserErrorCode))] public string? code { get; set; } /// @@ -39727,6 +39875,7 @@ public class GiftCardDeactivateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(GiftCardDeactivateUserErrorCode))] public string? code { get; set; } /// @@ -40069,6 +40218,7 @@ public class GiftCardSendNotificationToCustomerUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(GiftCardSendNotificationToCustomerUserErrorCode))] public string? code { get; set; } /// @@ -40145,6 +40295,7 @@ public class GiftCardSendNotificationToRecipientUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(GiftCardSendNotificationToRecipientUserErrorCode))] public string? code { get; set; } /// @@ -40366,6 +40517,7 @@ public class GiftCardTransactionUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(GiftCardTransactionUserErrorCode))] public string? code { get; set; } /// @@ -40466,6 +40618,7 @@ public class GiftCardUserError : GraphQLObject, IDisplayableE ///The error code. /// [Description("The error code.")] + [EnumType(typeof(GiftCardErrorCode))] public string? code { get; set; } /// @@ -41090,6 +41243,7 @@ public class InventoryAdjustQuantitiesUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventoryAdjustQuantitiesUserErrorCode))] public string? code { get; set; } /// @@ -41300,6 +41454,7 @@ public class InventoryBulkToggleActivationUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventoryBulkToggleActivationUserErrorCode))] public string? code { get; set; } /// @@ -41480,6 +41635,7 @@ public class InventoryItem : GraphQLObject, ILegacyInteroperabili ///The ISO 3166-1 alpha-2 country code of where the item originated from. /// [Description("The ISO 3166-1 alpha-2 country code of where the item originated from.")] + [EnumType(typeof(CountryCode))] public string? countryCodeOfOrigin { get; set; } /// @@ -41847,6 +42003,7 @@ public class InventoryMoveQuantitiesUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventoryMoveQuantitiesUserErrorCode))] public string? code { get; set; } /// @@ -42201,6 +42358,7 @@ public class InventorySetOnHandQuantitiesUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventorySetOnHandQuantitiesUserErrorCode))] public string? code { get; set; } /// @@ -42313,6 +42471,7 @@ public class InventorySetQuantitiesUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventorySetQuantitiesUserErrorCode))] public string? code { get; set; } /// @@ -42449,6 +42608,7 @@ public class InventorySetScheduledChangesUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(InventorySetScheduledChangesUserErrorCode))] public string? code { get; set; } /// @@ -45193,6 +45353,7 @@ public class LocationActivateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(LocationActivateUserErrorCode))] public string? code { get; set; } /// @@ -45281,6 +45442,7 @@ public class LocationAddUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(LocationAddUserErrorCode))] public string? code { get; set; } /// @@ -45543,6 +45705,7 @@ public class LocationDeactivateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(LocationDeactivateUserErrorCode))] public string? code { get; set; } /// @@ -45691,6 +45854,7 @@ public class LocationDeleteUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(LocationDeleteUserErrorCode))] public string? code { get; set; } /// @@ -45806,6 +45970,7 @@ public class LocationEditUserError : GraphQLObject, IDisp ///The error code. /// [Description("The error code.")] + [EnumType(typeof(LocationEditUserErrorCode))] public string? code { get; set; } /// @@ -46053,6 +46218,7 @@ public class LocationSuggestedAddress : GraphQLObject ///The country code of the suggested address. /// [Description("The country code of the suggested address.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -46091,6 +46257,7 @@ public class LocationsCondition : GraphQLObject ///The application level for the condition. /// [Description("The application level for the condition.")] + [EnumType(typeof(MarketConditionApplicationType))] public string? applicationLevel { get; set; } /// @@ -46161,6 +46328,7 @@ public class MailingAddress : GraphQLObject, INode ///For example, US. /// [Description("The two-letter code for the country of the address.\n\nFor example, US.")] + [EnumType(typeof(CountryCode))] public string? countryCodeV2 { get; set; } /// @@ -46244,6 +46412,7 @@ public class MailingAddress : GraphQLObject, INode ///See ["Validating addresses in your Shopify admin"](https://help.shopify.com/manual/fulfillment/managing-orders/validating-order-address) for more details. /// [Description("The validation status that is leveraged by the address validation feature in the Shopify Admin.\nSee [\"Validating addresses in your Shopify admin\"](https://help.shopify.com/manual/fulfillment/managing-orders/validating-order-address) for more details.")] + [EnumType(typeof(MailingAddressValidationResult))] public string? validationResultSummary { get; set; } /// @@ -46856,6 +47025,7 @@ public class MarketCurrencySettingsUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MarketCurrencySettingsUserErrorCode))] public string? code { get; set; } /// @@ -47459,6 +47629,7 @@ public class MarketUserError : GraphQLObject, IDisplayableError ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MarketUserErrorCode))] public string? code { get; set; } /// @@ -48214,6 +48385,7 @@ public class MarketingActivity : GraphQLObject, INode ///The hierarchy level of the marketing activity. /// [Description("The hierarchy level of the marketing activity.")] + [EnumType(typeof(MarketingActivityHierarchyLevel))] public string? hierarchyLevel { get; set; } /// @@ -48289,12 +48461,14 @@ public class MarketingActivity : GraphQLObject, INode /// [Description("The severity of the marketing activity's status.")] [Obsolete("Use `statusBadgeTypeV2` instead.")] + [EnumType(typeof(MarketingActivityStatusBadgeType))] public string? statusBadgeType { get; set; } /// ///The severity of the marketing activity's status. /// [Description("The severity of the marketing activity's status.")] + [EnumType(typeof(BadgeType))] public string? statusBadgeTypeV2 { get; set; } /// @@ -48323,6 +48497,7 @@ public class MarketingActivity : GraphQLObject, INode ///The status to which the marketing activity is currently transitioning. /// [Description("The status to which the marketing activity is currently transitioning.")] + [EnumType(typeof(MarketingActivityStatus))] public string? targetStatus { get; set; } /// @@ -48844,6 +49019,7 @@ public class MarketingActivityUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MarketingActivityUserErrorCode))] public string? code { get; set; } /// @@ -49333,6 +49509,7 @@ public class MarketingEvent : GraphQLObject, ILegacyInteroperabi /// [Description("The medium through which the marketing activity and event reached consumers. This is used for reporting aggregation.")] [Obsolete("Use `marketingChannelType` instead.")] + [EnumType(typeof(MarketingChannel))] public string? channel { get; set; } /// @@ -49377,6 +49554,7 @@ public class MarketingEvent : GraphQLObject, ILegacyInteroperabi ///The medium through which the marketing activity and event reached consumers. This is used for reporting aggregation. /// [Description("The medium through which the marketing activity and event reached consumers. This is used for reporting aggregation.")] + [EnumType(typeof(MarketingChannel))] public string? marketingChannelType { get; set; } /// @@ -50458,6 +50636,7 @@ public class MediaUserError : GraphQLObject, IDisplayableError ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MediaUserErrorCode))] public string? code { get; set; } /// @@ -50776,6 +50955,7 @@ public class MenuCreateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MenuCreateUserErrorCode))] public string? code { get; set; } /// @@ -50846,6 +51026,7 @@ public class MenuDeleteUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MenuDeleteUserErrorCode))] public string? code { get; set; } /// @@ -51111,6 +51292,7 @@ public class MenuUpdateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MenuUpdateUserErrorCode))] public string? code { get; set; } /// @@ -51338,6 +51520,7 @@ public class MetafieldAccess : GraphQLObject ///The access permitted on the Admin API. /// [Description("The access permitted on the Admin API.")] + [EnumType(typeof(MetafieldAdminAccess))] public string? admin { get; set; } /// @@ -51360,6 +51543,7 @@ public class MetafieldAccess : GraphQLObject ///The access permitted on the Storefront API. /// [Description("The access permitted on the Storefront API.")] + [EnumType(typeof(MetafieldStorefrontAccess))] public string? storefront { get; set; } } @@ -51974,6 +52158,7 @@ public class MetafieldDefinitionCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MetafieldDefinitionCreateUserErrorCode))] public string? code { get; set; } /// @@ -52188,6 +52373,7 @@ public class MetafieldDefinitionDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MetafieldDefinitionDeleteUserErrorCode))] public string? code { get; set; } /// @@ -52349,6 +52535,7 @@ public class MetafieldDefinitionPinUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MetafieldDefinitionPinUserErrorCode))] public string? code { get; set; } /// @@ -52578,6 +52765,7 @@ public class MetafieldDefinitionUnpinUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MetafieldDefinitionUnpinUserErrorCode))] public string? code { get; set; } /// @@ -52672,6 +52860,7 @@ public class MetafieldDefinitionUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MetafieldDefinitionUpdateUserErrorCode))] public string? code { get; set; } /// @@ -53550,6 +53739,7 @@ public class MetafieldsSetUserError : GraphQLObject, IDi ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MetafieldsSetUserErrorCode))] public string? code { get; set; } /// @@ -54639,6 +54829,7 @@ public class MetaobjectUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(MetaobjectUserErrorCode))] public string? code { get; set; } /// @@ -55054,6 +55245,7 @@ public class MobilePlatformApplicationUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(MobilePlatformApplicationUserErrorCode))] public string? code { get; set; } /// @@ -60390,6 +60582,7 @@ public class OnlineStoreThemeFilesUserErrors : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OnlineStoreThemeFilesUserErrorsCode))] public string? code { get; set; } /// @@ -60566,6 +60759,7 @@ public class Order : GraphQLObject, ICommentEventSubject, IHasEvents, IHa ///The reason provided for an order cancellation. For example, a merchant might cancel an order if there's insufficient inventory. Returns `null` if the order hasn't been canceled. /// [Description("The reason provided for an order cancellation. For example, a merchant might cancel an order if there's insufficient inventory. Returns `null` if the order hasn't been canceled.")] + [EnumType(typeof(OrderCancelReason))] public string? cancelReason { get; set; } /// @@ -60820,6 +61014,7 @@ public class Order : GraphQLObject, ICommentEventSubject, IHasEvents, IHa ///An order's financial status for display in the Shopify admin. /// [Description("An order's financial status for display in the Shopify admin.")] + [EnumType(typeof(OrderDisplayFinancialStatus))] public string? displayFinancialStatus { get; set; } /// @@ -61668,6 +61863,7 @@ public class OrderAdjustment : GraphQLObject, INode ///An optional reason that explains a discrepancy between calculated and actual refund amounts. /// [Description("An optional reason that explains a discrepancy between calculated and actual refund amounts.")] + [EnumType(typeof(OrderAdjustmentDiscrepancyReason))] public string? reason { get; set; } /// @@ -61979,6 +62175,7 @@ public class OrderCancelUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(OrderCancelUserErrorCode))] public string? code { get; set; } /// @@ -62268,6 +62465,7 @@ public class OrderCreateMandatePaymentUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderCreateMandatePaymentUserErrorCode))] public string? code { get; set; } /// @@ -62312,6 +62510,7 @@ public class OrderCreateManualPaymentOrderCreateManualPaymentError : GraphQLObje ///The error code. /// [Description("The error code.")] + [EnumType(typeof(OrderCreateManualPaymentOrderCreateManualPaymentErrorCode))] public string? code { get; set; } /// @@ -62420,6 +62619,7 @@ public class OrderCreateUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(OrderCreateUserErrorCode))] public string? code { get; set; } /// @@ -62520,6 +62720,7 @@ public class OrderDeleteUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(OrderDeleteUserErrorCode))] public string? code { get; set; } /// @@ -62838,6 +63039,7 @@ public class OrderEditAddShippingLineUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderEditAddShippingLineUserErrorCode))] public string? code { get; set; } /// @@ -63017,6 +63219,7 @@ public class OrderEditRemoveDiscountUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderEditRemoveDiscountUserErrorCode))] public string? code { get; set; } /// @@ -63108,6 +63311,7 @@ public class OrderEditRemoveShippingLineUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderEditRemoveShippingLineUserErrorCode))] public string? code { get; set; } /// @@ -63198,6 +63402,7 @@ public class OrderEditUpdateDiscountUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderEditUpdateDiscountUserErrorCode))] public string? code { get; set; } /// @@ -63262,6 +63467,7 @@ public class OrderEditUpdateShippingLineUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderEditUpdateShippingLineUserErrorCode))] public string? code { get; set; } /// @@ -63326,6 +63532,7 @@ public class OrderInvoiceSendUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderInvoiceSendUserErrorCode))] public string? code { get; set; } /// @@ -63618,6 +63825,7 @@ public class OrderRisk : GraphQLObject /// [Description("The likelihood that an order is fraudulent, based on this order risk. The level can be set by Shopify risk analysis or by an app.")] [Obsolete("This field is deprecated in favor of OrderRiskAssessment.riskLevel which allows for more granular risk levels, including PENDING and NONE.")] + [EnumType(typeof(OrderRiskLevel))] public string? level { get; set; } /// @@ -63688,6 +63896,7 @@ public class OrderRiskAssessmentCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(OrderRiskAssessmentCreateUserErrorCode))] public string? code { get; set; } /// @@ -64255,6 +64464,7 @@ public class OrderTransaction : GraphQLObject, INode, IStoreCr ///A standardized error code, independent of the payment provider. /// [Description("A standardized error code, independent of the payment provider.")] + [EnumType(typeof(OrderTransactionErrorCode))] public string? errorCode { get; set; } /// @@ -64361,6 +64571,7 @@ public class OrderTransaction : GraphQLObject, INode, IStoreCr /// [Description("The payment method used for the transaction. This value is `null` if the payment method is unknown.")] [Obsolete("Use `paymentIcon` instead.")] + [EnumType(typeof(PaymentMethods))] public string? paymentMethod { get; set; } /// @@ -64380,6 +64591,7 @@ public class OrderTransaction : GraphQLObject, INode, IStoreCr ///The settlement currency. /// [Description("The settlement currency.")] + [EnumType(typeof(CurrencyCode))] public string? settlementCurrency { get; set; } /// @@ -64971,6 +65183,7 @@ public class PageCreateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PageCreateUserErrorCode))] public string? code { get; set; } /// @@ -65077,6 +65290,7 @@ public class PageDeleteUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PageDeleteUserErrorCode))] public string? code { get; set; } /// @@ -65198,6 +65412,7 @@ public class PageUpdateUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PageUpdateUserErrorCode))] public string? code { get; set; } /// @@ -65471,6 +65686,7 @@ public class PaymentCustomizationError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PaymentCustomizationErrorCode))] public string? code { get; set; } /// @@ -65752,6 +65968,7 @@ public class PaymentReminderSendUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PaymentReminderSendUserErrorCode))] public string? code { get; set; } /// @@ -65993,6 +66210,7 @@ public class PaymentTermsCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PaymentTermsCreateUserErrorCode))] public string? code { get; set; } /// @@ -66057,6 +66275,7 @@ public class PaymentTermsDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PaymentTermsDeleteUserErrorCode))] public string? code { get; set; } /// @@ -66211,6 +66430,7 @@ public class PaymentTermsUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PaymentTermsUpdateUserErrorCode))] public string? code { get; set; } /// @@ -66656,6 +66876,7 @@ public class PriceListFixedPricesByProductBulkUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PriceListFixedPricesByProductBulkUpdateUserErrorCode))] public string? code { get; set; } /// @@ -66961,6 +67182,7 @@ public class PriceListPriceUserError : GraphQLObject, I ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PriceListPriceUserErrorCode))] public string? code { get; set; } /// @@ -67073,6 +67295,7 @@ public class PriceListUserError : GraphQLObject, IDisplayabl ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PriceListUserErrorCode))] public string? code { get; set; } /// @@ -69686,6 +69909,7 @@ public class PrivacyFeaturesDisableUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PrivacyFeaturesDisableUserErrorCode))] public string? code { get; set; } /// @@ -69866,6 +70090,7 @@ public class Product : GraphQLObject, IHasEvents, IHasMetafieldDefiniti ///If `null`, then the product isn't part of any combined listing. /// [Description("The [role of the product](https://shopify.dev/docs/apps/build/product-merchandising/combined-listings/build-for-combined-listings)\nin a combined listing.\n\nIf `null`, then the product isn't part of any combined listing.")] + [EnumType(typeof(CombinedListingsRole))] public string? combinedListingRole { get; set; } /// @@ -70679,6 +70904,7 @@ public class ProductBundleMutationUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductBundleMutationUserErrorCode))] public string? code { get; set; } /// @@ -70840,6 +71066,7 @@ public class ProductChangeStatusUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductChangeStatusUserErrorCode))] public string? code { get; set; } /// @@ -71358,6 +71585,7 @@ public class ProductFeed : GraphQLObject, INode ///The country of the product feed. /// [Description("The country of the product feed.")] + [EnumType(typeof(CountryCode))] public string? country { get; set; } /// @@ -71371,6 +71599,7 @@ public class ProductFeed : GraphQLObject, INode ///The language of the product feed. /// [Description("The language of the product feed.")] + [EnumType(typeof(LanguageCode))] public string? language { get; set; } /// @@ -71439,6 +71668,7 @@ public class ProductFeedCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductFeedCreateUserErrorCode))] public string? code { get; set; } /// @@ -71509,6 +71739,7 @@ public class ProductFeedDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductFeedDeleteUserErrorCode))] public string? code { get; set; } /// @@ -71618,6 +71849,7 @@ public class ProductFullSyncUserError : GraphQLObject, ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ProductFullSyncUserErrorCode))] public string? code { get; set; } /// @@ -71948,6 +72180,7 @@ public class ProductOptionUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductOptionUpdateUserErrorCode))] public string? code { get; set; } /// @@ -72284,6 +72517,7 @@ public class ProductOptionsCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductOptionsCreateUserErrorCode))] public string? code { get; set; } /// @@ -72504,6 +72738,7 @@ public class ProductOptionsDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductOptionsDeleteUserErrorCode))] public string? code { get; set; } /// @@ -72616,6 +72851,7 @@ public class ProductOptionsReorderUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductOptionsReorderUserErrorCode))] public string? code { get; set; } /// @@ -73113,6 +73349,7 @@ public class ProductSetUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ProductSetUserErrorCode))] public string? code { get; set; } /// @@ -74253,6 +74490,7 @@ public class ProductVariantRelationshipBulkUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductVariantRelationshipBulkUpdateUserErrorCode))] public string? code { get; set; } /// @@ -74559,6 +74797,7 @@ public class ProductVariantsBulkCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductVariantsBulkCreateUserErrorCode))] public string? code { get; set; } /// @@ -74725,6 +74964,7 @@ public class ProductVariantsBulkDeleteUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductVariantsBulkDeleteUserErrorCode))] public string? code { get; set; } /// @@ -74813,6 +75053,7 @@ public class ProductVariantsBulkReorderUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductVariantsBulkReorderUserErrorCode))] public string? code { get; set; } /// @@ -74907,6 +75148,7 @@ public class ProductVariantsBulkUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ProductVariantsBulkUpdateUserErrorCode))] public string? code { get; set; } /// @@ -75208,6 +75450,7 @@ public class PubSubWebhookSubscriptionCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PubSubWebhookSubscriptionCreateUserErrorCode))] public string? code { get; set; } /// @@ -75278,6 +75521,7 @@ public class PubSubWebhookSubscriptionUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(PubSubWebhookSubscriptionUpdateUserErrorCode))] public string? code { get; set; } /// @@ -75632,6 +75876,7 @@ public class PublicationUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(PublicationUserErrorCode))] public string? code { get; set; } /// @@ -76171,6 +76416,7 @@ public class QuantityPricingByVariantUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(QuantityPricingByVariantUserErrorCode))] public string? code { get; set; } /// @@ -76552,6 +76798,7 @@ public class QuantityRuleUserError : GraphQLObject, IDisp ///The error code. /// [Description("The error code.")] + [EnumType(typeof(QuantityRuleUserErrorCode))] public string? code { get; set; } /// @@ -79273,6 +79520,7 @@ public class RegionsCondition : GraphQLObject ///The application level for the condition. /// [Description("The application level for the condition.")] + [EnumType(typeof(MarketConditionApplicationType))] public string? applicationLevel { get; set; } /// @@ -79316,6 +79564,7 @@ public class ResourceAlert : GraphQLObject ///An icon that's optionally displayed with the alert. /// [Description("An icon that's optionally displayed with the alert.")] + [EnumType(typeof(ResourceAlertIcon))] public string? icon { get; set; } /// @@ -80721,6 +80970,7 @@ public class ReturnUserError : GraphQLObject, IDisplayableError ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ReturnErrorCode))] public string? code { get; set; } /// @@ -83587,6 +83837,7 @@ public class SellingPlan : GraphQLObject, IHasMetafieldDefinitions, ///The category used to classify the selling plan for reporting purposes. /// [Description("The category used to classify the selling plan for reporting purposes.")] + [EnumType(typeof(SellingPlanCategory))] public string? category { get; set; } /// @@ -84555,6 +84806,7 @@ public class SellingPlanGroupUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SellingPlanGroupUserErrorCode))] public string? code { get; set; } /// @@ -85385,6 +85637,7 @@ public class ServerPixel : GraphQLObject, INode ///The current state of this server pixel. /// [Description("The current state of this server pixel.")] + [EnumType(typeof(ServerPixelStatus))] public string? status { get; set; } /// @@ -86579,6 +86832,7 @@ public class ShopAddress : GraphQLObject, INode ///For example, US. /// [Description("The two-letter code for the country of the address.\n\nFor example, US.")] + [EnumType(typeof(CountryCode))] public string? countryCodeV2 { get; set; } /// @@ -87289,6 +87543,7 @@ public class ShopPolicyUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ShopPolicyErrorCode))] public string? code { get; set; } /// @@ -87335,6 +87590,7 @@ public class ShopResourceFeedbackCreateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(ShopResourceFeedbackCreateUserErrorCode))] public string? code { get; set; } /// @@ -87887,6 +88143,7 @@ public class ShopifyPaymentsBalanceTransaction : GraphQLObject [Description("The source type of the balance transaction.")] + [EnumType(typeof(ShopifyPaymentsSourceType))] public string? sourceType { get; set; } /// @@ -87927,6 +88184,7 @@ public class ShopifyPaymentsBalanceTransactionAssociatedPayout : GraphQLObject [Description("The status of the payout associated with the balance transaction.")] + [EnumType(typeof(ShopifyPaymentsBalanceTransactionPayoutStatus))] public string? status { get; set; } } @@ -88733,6 +88991,7 @@ public class ShopifyPaymentsDisputeFileUpload : GraphQLObject [Description("The type of the file for the dispute evidence.")] + [EnumType(typeof(ShopifyPaymentsDisputeEvidenceFileType))] public string? disputeEvidenceType { get; set; } /// @@ -89129,6 +89388,7 @@ public class ShopifyPaymentsPayoutAlternateCurrencyCreateUserError : GraphQLObje ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ShopifyPaymentsPayoutAlternateCurrencyCreateUserErrorCode))] public string? code { get; set; } /// @@ -89296,6 +89556,7 @@ public class ShopifyPaymentsPayoutSchedule : GraphQLObject [Description("The day of the week funds will be paid out.\n\nThe value can be any weekday from Monday to Friday.\nIf the payment interval is set to weekly, this value will be used.")] + [EnumType(typeof(DayOfTheWeek))] public string? weeklyAnchor { get; set; } } @@ -90332,6 +90593,7 @@ public class StaffMember : GraphQLObject, INode ///The type of account the staff member has. /// [Description("The type of account the staff member has.")] + [EnumType(typeof(AccountType))] public string? accountType { get; set; } /// @@ -91107,6 +91369,7 @@ public class StandardMetafieldDefinitionEnableUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(StandardMetafieldDefinitionEnableUserErrorCode))] public string? code { get; set; } /// @@ -91638,6 +91901,7 @@ public class StoreCreditAccountCreditUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(StoreCreditAccountCreditUserErrorCode))] public string? code { get; set; } /// @@ -91859,6 +92123,7 @@ public class StoreCreditAccountDebitUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(StoreCreditAccountDebitUserErrorCode))] public string? code { get; set; } /// @@ -92163,6 +92428,7 @@ public interface IStoreCreditAccountTransactionOrigin : IGraphQLObject ///A standardized error code, independent of the payment provider. /// [Description("A standardized error code, independent of the payment provider.")] + [EnumType(typeof(OrderTransactionErrorCode))] public string? errorCode { get; set; } /// @@ -92269,6 +92535,7 @@ public interface IStoreCreditAccountTransactionOrigin : IGraphQLObject /// [Description("The payment method used for the transaction. This value is `null` if the payment method is unknown.")] [Obsolete("Use `paymentIcon` instead.")] + [EnumType(typeof(PaymentMethods))] public string? paymentMethod { get; set; } /// @@ -92288,6 +92555,7 @@ public interface IStoreCreditAccountTransactionOrigin : IGraphQLObject ///The settlement currency. /// [Description("The settlement currency.")] + [EnumType(typeof(CurrencyCode))] public string? settlementCurrency { get; set; } /// @@ -92624,6 +92892,7 @@ public class SubscriptionAppliedCodeDiscount : GraphQLObject [Description("The reason that the discount on the subscription draft is rejected.")] + [EnumType(typeof(SubscriptionDiscountRejectionReason))] public string? rejectionReason { get; set; } } @@ -92653,6 +92922,7 @@ public class SubscriptionBillingAttempt : GraphQLObject [Description("A code corresponding to a payment error during processing.")] [Obsolete("Use `processingError.code` instead to get the errorCode")] + [EnumType(typeof(SubscriptionBillingAttemptErrorCode))] public string? errorCode { get; set; } /// @@ -93317,6 +93587,7 @@ public class SubscriptionBillingCycleBulkUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionBillingCycleBulkUserErrorCode))] public string? code { get; set; } /// @@ -93828,6 +94099,7 @@ public class SubscriptionBillingCycleSkipUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionBillingCycleSkipUserErrorCode))] public string? code { get; set; } /// @@ -93892,6 +94164,7 @@ public class SubscriptionBillingCycleUnskipUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionBillingCycleUnskipUserErrorCode))] public string? code { get; set; } /// @@ -93936,6 +94209,7 @@ public class SubscriptionBillingCycleUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionBillingCycleErrorCode))] public string? code { get; set; } /// @@ -94137,12 +94411,14 @@ public class SubscriptionContract : GraphQLObject, INode, ///The last billing error type of the contract. /// [Description("The last billing error type of the contract.")] + [EnumType(typeof(SubscriptionContractLastBillingErrorType))] public string? lastBillingAttemptErrorType { get; set; } /// ///The current status of the last payment. /// [Description("The current status of the last payment.")] + [EnumType(typeof(SubscriptionContractLastPaymentStatus))] public string? lastPaymentStatus { get; set; } /// @@ -94674,6 +94950,7 @@ public class SubscriptionContractStatusUpdateUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionContractStatusUpdateErrorCode))] public string? code { get; set; } /// @@ -94762,6 +95039,7 @@ public class SubscriptionContractUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionContractErrorCode))] public string? code { get; set; } /// @@ -95186,6 +95464,7 @@ public interface ISubscriptionDiscount : IGraphQLObject ///The reason that the discount on the subscription draft is rejected. /// [Description("The reason that the discount on the subscription draft is rejected.")] + [EnumType(typeof(SubscriptionDiscountRejectionReason))] public string? rejectionReason { get; set; } } @@ -95596,6 +95875,7 @@ public class SubscriptionDraft : GraphQLObject, INode ///The current status of the subscription contract. /// [Description("The current status of the subscription contract.")] + [EnumType(typeof(SubscriptionContractSubscriptionStatus))] public string? status { get; set; } } @@ -96159,6 +96439,7 @@ public class SubscriptionDraftUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(SubscriptionDraftErrorCode))] public string? code { get; set; } /// @@ -96450,6 +96731,7 @@ public class SubscriptionMailingAddress : GraphQLObject [Description("The two-letter code for the country of the address.\n\nFor example, US.")] + [EnumType(typeof(CountryCode))] public string? countryCode { get; set; } /// @@ -96527,6 +96809,7 @@ public class SubscriptionManualDiscount : GraphQLObject [Description("The reason that the discount on the subscription draft is rejected.")] + [EnumType(typeof(SubscriptionDiscountRejectionReason))] public string? rejectionReason { get; set; } /// @@ -97155,6 +97438,7 @@ public class TaxAppConfigureUserError : GraphQLObject, ///The error code. /// [Description("The error code.")] + [EnumType(typeof(TaxAppConfigureUserErrorCode))] public string? code { get; set; } /// @@ -98275,6 +98559,7 @@ public class ThemeCreateUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ThemeCreateUserErrorCode))] public string? code { get; set; } /// @@ -98364,6 +98649,7 @@ public class ThemeDeleteUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ThemeDeleteUserErrorCode))] public string? code { get; set; } /// @@ -98494,6 +98780,7 @@ public class ThemePublishUserError : GraphQLObject, IDisp ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ThemePublishUserErrorCode))] public string? code { get; set; } /// @@ -98626,6 +98913,7 @@ public class ThemeUpdateUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ThemeUpdateUserErrorCode))] public string? code { get; set; } /// @@ -98863,6 +99151,7 @@ public class TransactionVoidUserError : GraphQLObject, ///The error code. /// [Description("The error code.")] + [EnumType(typeof(TransactionVoidUserErrorCode))] public string? code { get; set; } /// @@ -99392,6 +99681,7 @@ public class TranslationUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(TranslationErrorCode))] public string? code { get; set; } /// @@ -99516,12 +99806,14 @@ public class UnitPriceMeasurement : GraphQLObject ///The type of unit of measurement for the unit price measurement. /// [Description("The type of unit of measurement for the unit price measurement.")] + [EnumType(typeof(UnitPriceMeasurementMeasuredType))] public string? measuredType { get; set; } /// ///The quantity unit for the unit price measurement. /// [Description("The quantity unit for the unit price measurement.")] + [EnumType(typeof(UnitPriceMeasurementMeasuredUnit))] public string? quantityUnit { get; set; } /// @@ -99535,6 +99827,7 @@ public class UnitPriceMeasurement : GraphQLObject ///The reference unit for the unit price measurement. /// [Description("The reference unit for the unit price measurement.")] + [EnumType(typeof(UnitPriceMeasurementMeasuredUnit))] public string? referenceUnit { get; set; } /// @@ -99892,6 +100185,7 @@ public class UrlRedirectBulkDeleteByIdsUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(UrlRedirectBulkDeleteByIdsUserErrorCode))] public string? code { get; set; } /// @@ -99958,6 +100252,7 @@ public class UrlRedirectBulkDeleteBySavedSearchUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(UrlRedirectBulkDeleteBySavedSearchUserErrorCode))] public string? code { get; set; } /// @@ -100028,6 +100323,7 @@ public class UrlRedirectBulkDeleteBySearchUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(UrlRedirectBulkDeleteBySearchUserErrorCode))] public string? code { get; set; } /// @@ -100357,6 +100653,7 @@ public class UrlRedirectImportUserError : GraphQLObject [Description("The error code.")] + [EnumType(typeof(UrlRedirectImportErrorCode))] public string? code { get; set; } /// @@ -100434,6 +100731,7 @@ public class UrlRedirectUserError : GraphQLObject, IDispla ///The error code. /// [Description("The error code.")] + [EnumType(typeof(UrlRedirectErrorCode))] public string? code { get; set; } /// @@ -100679,6 +100977,7 @@ public class ValidationUserError : GraphQLObject, IDisplaya ///The error code. /// [Description("The error code.")] + [EnumType(typeof(ValidationUserErrorCode))] public string? code { get; set; } /// diff --git a/GraphQLSharp/Abstractions/EnumTypeAttribute.cs b/GraphQLSharp/Abstractions/EnumTypeAttribute.cs new file mode 100644 index 0000000..cfeef77 --- /dev/null +++ b/GraphQLSharp/Abstractions/EnumTypeAttribute.cs @@ -0,0 +1,11 @@ +namespace GraphQLSharp; + +public class EnumTypeAttribute : Attribute +{ + public Type EnumType { get; } + + public EnumTypeAttribute(Type enumType) + { + EnumType = enumType; + } +} \ No newline at end of file diff --git a/GraphQLSharp/GraphQLSharp.csproj b/GraphQLSharp/GraphQLSharp.csproj index 4b9c174..23f652e 100644 --- a/GraphQLSharp/GraphQLSharp.csproj +++ b/GraphQLSharp/GraphQLSharp.csproj @@ -4,7 +4,7 @@ https://github.com/Wish-Org/GraphQLSharp https://github.com/Wish-Org/GraphQLSharp .NET Client for GraphQL - Modern and fast - 2.15.0 + 2.16.0 graphql;client;graphql-client;graphql-generator Wish-Org README.md diff --git a/GraphQLSharp/TypeGenerator/GraphQLTypeGenerator.cs b/GraphQLSharp/TypeGenerator/GraphQLTypeGenerator.cs index 3fcc10a..00a9ce3 100644 --- a/GraphQLSharp/TypeGenerator/GraphQLTypeGenerator.cs +++ b/GraphQLSharp/TypeGenerator/GraphQLTypeGenerator.cs @@ -404,6 +404,8 @@ private void GenerateField(Context ctx, Context.DotNetTypeWithMembers containing str.AppendLine($"[Obsolete({SymbolDisplay.FormatLiteral(f.deprecationReason.TrimEnd(), true)})]"); if (f.type.kind == GraphQLTypeKind.NON_NULL) str.AppendLine($"[NonNull]"); + if (f.type.kind == GraphQLTypeKind.ENUM && options.EnumMembersAsString) + str.AppendLine($"[EnumType(typeof({f.type.name}))]"); string typeName = GenerateTypeName(f.type, options, f.name, containingType); str.AppendLine($"public {typeName}? {EscapeCSharpKeyword(f.name)} {{ {(containingType.kind == GraphQLTypeKind.INTERFACE ? "get;" : "get;set;")} }}")