flamingo.me/flamingo-commerce/v3@v3.11.0/test/integrationtest/projecttest/graphql/generated.go (about) 1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package graphql 4 5 import ( 6 "bytes" 7 "context" 8 "embed" 9 "errors" 10 "fmt" 11 "math/big" 12 "strconv" 13 "sync" 14 "sync/atomic" 15 "time" 16 17 "flamingo.me/flamingo-commerce/v3/cart/domain/cart" 18 "flamingo.me/flamingo-commerce/v3/cart/domain/placeorder" 19 "flamingo.me/flamingo-commerce/v3/cart/domain/validation" 20 "flamingo.me/flamingo-commerce/v3/cart/interfaces/controller/forms" 21 "flamingo.me/flamingo-commerce/v3/cart/interfaces/graphql/dto" 22 domain3 "flamingo.me/flamingo-commerce/v3/category/domain" 23 "flamingo.me/flamingo-commerce/v3/category/interfaces/graphql/categorydto" 24 "flamingo.me/flamingo-commerce/v3/checkout/application" 25 "flamingo.me/flamingo-commerce/v3/checkout/domain/placeorder/process" 26 dto1 "flamingo.me/flamingo-commerce/v3/checkout/interfaces/graphql/dto" 27 domain5 "flamingo.me/flamingo-commerce/v3/customer/domain" 28 "flamingo.me/flamingo-commerce/v3/customer/interfaces/graphql/dtocustomer" 29 "flamingo.me/flamingo-commerce/v3/price/domain" 30 domain1 "flamingo.me/flamingo-commerce/v3/product/domain" 31 graphql1 "flamingo.me/flamingo-commerce/v3/product/interfaces/graphql" 32 graphqlproductdto "flamingo.me/flamingo-commerce/v3/product/interfaces/graphql/product/dto" 33 domain2 "flamingo.me/flamingo-commerce/v3/search/domain" 34 "flamingo.me/flamingo-commerce/v3/search/interfaces/graphql/searchdto" 35 domain4 "flamingo.me/form/domain" 36 graphql2 "flamingo.me/graphql" 37 "github.com/99designs/gqlgen/graphql" 38 "github.com/99designs/gqlgen/graphql/introspection" 39 gqlparser "github.com/vektah/gqlparser/v2" 40 "github.com/vektah/gqlparser/v2/ast" 41 ) 42 43 // region ************************** generated!.gotpl ************************** 44 45 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. 46 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { 47 return &executableSchema{ 48 schema: cfg.Schema, 49 resolvers: cfg.Resolvers, 50 directives: cfg.Directives, 51 complexity: cfg.Complexity, 52 } 53 } 54 55 type Config struct { 56 Schema *ast.Schema 57 Resolvers ResolverRoot 58 Directives DirectiveRoot 59 Complexity ComplexityRoot 60 } 61 62 type ResolverRoot interface { 63 Commerce_Cart_AdditionalData() Commerce_Cart_AdditionalDataResolver 64 Commerce_Cart_Cart() Commerce_Cart_CartResolver 65 Commerce_Cart_DefaultPaymentSelection() Commerce_Cart_DefaultPaymentSelectionResolver 66 Commerce_Cart_DeliveryInfo() Commerce_Cart_DeliveryInfoResolver 67 Commerce_Cart_Item() Commerce_Cart_ItemResolver 68 Commerce_Cart_ShippingItem() Commerce_Cart_ShippingItemResolver 69 Commerce_Product_PriceInfo() Commerce_Product_PriceInfoResolver 70 Commerce_Search_Meta() Commerce_Search_MetaResolver 71 Mutation() MutationResolver 72 Query() QueryResolver 73 } 74 75 type DirectiveRoot struct { 76 } 77 78 type ComplexityRoot struct { 79 Commerce_Cart_AdditionalData struct { 80 CustomAttributes func(childComplexity int) int 81 ReservedOrderID func(childComplexity int) int 82 } 83 84 Commerce_Cart_Address struct { 85 AdditionalAddressLines func(childComplexity int) int 86 City func(childComplexity int) int 87 Company func(childComplexity int) int 88 Country func(childComplexity int) int 89 CountryCode func(childComplexity int) int 90 Email func(childComplexity int) int 91 Firstname func(childComplexity int) int 92 Lastname func(childComplexity int) int 93 MiddleName func(childComplexity int) int 94 PostCode func(childComplexity int) int 95 RegionCode func(childComplexity int) int 96 Salutation func(childComplexity int) int 97 State func(childComplexity int) int 98 Street func(childComplexity int) int 99 StreetNr func(childComplexity int) int 100 Telephone func(childComplexity int) int 101 Title func(childComplexity int) int 102 Vat func(childComplexity int) int 103 } 104 105 Commerce_Cart_AddressForm struct { 106 AddressLine1 func(childComplexity int) int 107 AddressLine2 func(childComplexity int) int 108 City func(childComplexity int) int 109 Company func(childComplexity int) int 110 Country func(childComplexity int) int 111 CountryCode func(childComplexity int) int 112 Email func(childComplexity int) int 113 Firstname func(childComplexity int) int 114 Lastname func(childComplexity int) int 115 MiddleName func(childComplexity int) int 116 PhoneNumber func(childComplexity int) int 117 PostCode func(childComplexity int) int 118 RegionCode func(childComplexity int) int 119 Salutation func(childComplexity int) int 120 State func(childComplexity int) int 121 Street func(childComplexity int) int 122 StreetNr func(childComplexity int) int 123 Title func(childComplexity int) int 124 Vat func(childComplexity int) int 125 } 126 127 Commerce_Cart_AppliedDiscount struct { 128 Applied func(childComplexity int) int 129 CampaignCode func(childComplexity int) int 130 CouponCode func(childComplexity int) int 131 IsItemRelated func(childComplexity int) int 132 Label func(childComplexity int) int 133 SortOrder func(childComplexity int) int 134 Type func(childComplexity int) int 135 } 136 137 Commerce_Cart_AppliedDiscounts struct { 138 ByCampaignCode func(childComplexity int, campaignCode string) int 139 ByType func(childComplexity int, filterType string) int 140 Items func(childComplexity int) int 141 } 142 143 Commerce_Cart_AppliedGiftCard struct { 144 Applied func(childComplexity int) int 145 Code func(childComplexity int) int 146 HasRemaining func(childComplexity int) int 147 Remaining func(childComplexity int) int 148 } 149 150 Commerce_Cart_BillingAddressForm struct { 151 FormData func(childComplexity int) int 152 Processed func(childComplexity int) int 153 ValidationInfo func(childComplexity int) int 154 } 155 156 Commerce_Cart_Cart struct { 157 AdditionalData func(childComplexity int) int 158 AllShippingTitles func(childComplexity int) int 159 AppliedCouponCodes func(childComplexity int) int 160 AppliedGiftCards func(childComplexity int) int 161 AuthenticatedUserID func(childComplexity int) int 162 BelongsToAuthenticatedUser func(childComplexity int) int 163 BillingAddress func(childComplexity int) int 164 DefaultCurrency func(childComplexity int) int 165 Deliveries func(childComplexity int) int 166 EntityID func(childComplexity int) int 167 GetByExternalReference func(childComplexity int, ref string) int 168 GetByItemID func(childComplexity int, itemID string) int 169 GetCartTeaser func(childComplexity int) int 170 GetDeliveryByCode func(childComplexity int, deliveryCode string) int 171 GetDeliveryByItemID func(childComplexity int, itemID string) int 172 GetDeliveryCodes func(childComplexity int) int 173 GetMainShippingEMail func(childComplexity int) int 174 GetPaymentReference func(childComplexity int) int 175 GetTotalItemsByType func(childComplexity int, typeCode string) int 176 GetTotalQty func(childComplexity int, marketPlaceCode string, variantCode string) int 177 GetVoucherSavings func(childComplexity int) int 178 GrandTotal func(childComplexity int) int 179 GrandTotalCharges func(childComplexity int) int 180 HasAppliedCouponCode func(childComplexity int) int 181 HasAppliedGiftCards func(childComplexity int) int 182 HasDeliveryForCode func(childComplexity int, deliveryCode string) int 183 HasRemainingGiftCards func(childComplexity int) int 184 HasShippingCosts func(childComplexity int) int 185 ID func(childComplexity int) int 186 IsEmpty func(childComplexity int) int 187 IsPaymentSelected func(childComplexity int) int 188 ItemCount func(childComplexity int) int 189 ItemRelatedDiscountAmount func(childComplexity int) int 190 NonItemRelatedDiscountAmount func(childComplexity int) int 191 PaymentSelection func(childComplexity int) int 192 ProductCount func(childComplexity int) int 193 Purchaser func(childComplexity int) int 194 ShippingGross func(childComplexity int) int 195 ShippingGrossWithDiscounts func(childComplexity int) int 196 ShippingNet func(childComplexity int) int 197 ShippingNetWithDiscounts func(childComplexity int) int 198 SubTotalGross func(childComplexity int) int 199 SubTotalGrossWithDiscounts func(childComplexity int) int 200 SubTotalNet func(childComplexity int) int 201 SubTotalNetWithDiscounts func(childComplexity int) int 202 SumTotalTaxAmount func(childComplexity int) int 203 TotalDiscountAmount func(childComplexity int) int 204 Totalitems func(childComplexity int) int 205 } 206 207 Commerce_Cart_CouponCode struct { 208 Code func(childComplexity int) int 209 } 210 211 Commerce_Cart_CustomAttributes struct { 212 Get func(childComplexity int, key string) int 213 } 214 215 Commerce_Cart_DecoratedCart struct { 216 Cart func(childComplexity int) int 217 CartSummary func(childComplexity int) int 218 DecoratedDeliveries func(childComplexity int) int 219 GetAllPaymentRequiredItems func(childComplexity int) int 220 GetDecoratedDeliveryByCode func(childComplexity int, deliveryCode string) int 221 } 222 223 Commerce_Cart_DecoratedDelivery struct { 224 DecoratedItems func(childComplexity int) int 225 Delivery func(childComplexity int) int 226 } 227 228 Commerce_Cart_DecoratedItem struct { 229 Item func(childComplexity int) int 230 Product func(childComplexity int) int 231 } 232 233 Commerce_Cart_DefaultPaymentSelection struct { 234 CartSplit func(childComplexity int) int 235 Gateway func(childComplexity int) int 236 TotalValue func(childComplexity int) int 237 } 238 239 Commerce_Cart_Delivery struct { 240 Cartitems func(childComplexity int) int 241 DeliveryInfo func(childComplexity int) int 242 GrandTotal func(childComplexity int) int 243 HasItems func(childComplexity int) int 244 ItemRelatedDiscountAmount func(childComplexity int) int 245 NonItemRelatedDiscountAmount func(childComplexity int) int 246 ShippingItem func(childComplexity int) int 247 SubTotalGross func(childComplexity int) int 248 SubTotalGrossWithDiscounts func(childComplexity int) int 249 SubTotalNet func(childComplexity int) int 250 SubTotalNetWithDiscounts func(childComplexity int) int 251 SumTotalTaxAmount func(childComplexity int) int 252 TotalDiscountAmount func(childComplexity int) int 253 } 254 255 Commerce_Cart_DeliveryAddressForm struct { 256 Carrier func(childComplexity int) int 257 DeliveryCode func(childComplexity int) int 258 DesiredTime func(childComplexity int) int 259 FormData func(childComplexity int) int 260 Method func(childComplexity int) int 261 Processed func(childComplexity int) int 262 UseBillingAddress func(childComplexity int) int 263 ValidationInfo func(childComplexity int) int 264 } 265 266 Commerce_Cart_DeliveryInfo struct { 267 AdditionalData func(childComplexity int) int 268 Carrier func(childComplexity int) int 269 Code func(childComplexity int) int 270 DeliveryLocation func(childComplexity int) int 271 DesiredTime func(childComplexity int) int 272 Method func(childComplexity int) int 273 Workflow func(childComplexity int) int 274 } 275 276 Commerce_Cart_DeliveryLocation struct { 277 Address func(childComplexity int) int 278 Code func(childComplexity int) int 279 Type func(childComplexity int) int 280 UseBillingAddress func(childComplexity int) int 281 } 282 283 Commerce_Cart_ExistingCustomerData struct { 284 ID func(childComplexity int) int 285 } 286 287 Commerce_Cart_Form_Error struct { 288 DefaultLabel func(childComplexity int) int 289 MessageKey func(childComplexity int) int 290 } 291 292 Commerce_Cart_Form_FieldError struct { 293 DefaultLabel func(childComplexity int) int 294 FieldName func(childComplexity int) int 295 MessageKey func(childComplexity int) int 296 } 297 298 Commerce_Cart_Form_ValidationInfo struct { 299 FieldErrors func(childComplexity int) int 300 GeneralErrors func(childComplexity int) int 301 } 302 303 Commerce_Cart_Item struct { 304 AdditionalDataKeys func(childComplexity int) int 305 AdditionalDataValues func(childComplexity int) int 306 AppliedDiscounts func(childComplexity int) int 307 ExternalReference func(childComplexity int) int 308 GetAdditionalData func(childComplexity int, key string) int 309 HasAdditionalDataKey func(childComplexity int, key string) int 310 ID func(childComplexity int) int 311 MarketplaceCode func(childComplexity int) int 312 ProductName func(childComplexity int) int 313 Qty func(childComplexity int) int 314 RowPriceGross func(childComplexity int) int 315 RowPriceNet func(childComplexity int) int 316 SinglePriceGross func(childComplexity int) int 317 SinglePriceNet func(childComplexity int) int 318 SourceID func(childComplexity int) int 319 VariantMarketPlaceCode func(childComplexity int) int 320 } 321 322 Commerce_Cart_ItemValidationError struct { 323 ErrorMessageKey func(childComplexity int) int 324 ItemID func(childComplexity int) int 325 } 326 327 Commerce_Cart_KeyValue struct { 328 Key func(childComplexity int) int 329 Value func(childComplexity int) int 330 } 331 332 Commerce_Cart_PaymentSelection_Split struct { 333 Charge func(childComplexity int) int 334 Qualifier func(childComplexity int) int 335 } 336 337 Commerce_Cart_PaymentSelection_SplitQualifier struct { 338 ChargeReference func(childComplexity int) int 339 ChargeType func(childComplexity int) int 340 Method func(childComplexity int) int 341 } 342 343 Commerce_Cart_Person struct { 344 Address func(childComplexity int) int 345 ExistingCustomerData func(childComplexity int) int 346 PersonalDetails func(childComplexity int) int 347 } 348 349 Commerce_Cart_PersonalDetails struct { 350 DateOfBirth func(childComplexity int) int 351 Nationality func(childComplexity int) int 352 PassportCountry func(childComplexity int) int 353 PassportNumber func(childComplexity int) int 354 } 355 356 Commerce_Cart_PlacedOrderInfo struct { 357 DeliveryCode func(childComplexity int) int 358 OrderNumber func(childComplexity int) int 359 } 360 361 Commerce_Cart_PricedCartItem struct { 362 Amount func(childComplexity int) int 363 ItemID func(childComplexity int) int 364 } 365 366 Commerce_Cart_PricedItems struct { 367 CartItems func(childComplexity int) int 368 ShippingItems func(childComplexity int) int 369 TotalItems func(childComplexity int) int 370 } 371 372 Commerce_Cart_PricedShippingItem struct { 373 Amount func(childComplexity int) int 374 DeliveryInfoCode func(childComplexity int) int 375 } 376 377 Commerce_Cart_PricedTotalItem struct { 378 Amount func(childComplexity int) int 379 Code func(childComplexity int) int 380 } 381 382 Commerce_Cart_QtyRestrictionResult struct { 383 IsRestricted func(childComplexity int) int 384 MaxAllowed func(childComplexity int) int 385 RemainingDifference func(childComplexity int) int 386 RestrictorName func(childComplexity int) int 387 } 388 389 Commerce_Cart_SelectedPaymentResult struct { 390 Processed func(childComplexity int) int 391 ValidationInfo func(childComplexity int) int 392 } 393 394 Commerce_Cart_ShippingItem struct { 395 AppliedDiscounts func(childComplexity int) int 396 PriceGross func(childComplexity int) int 397 PriceNet func(childComplexity int) int 398 Tax func(childComplexity int) int 399 TaxAmount func(childComplexity int) int 400 Title func(childComplexity int) int 401 TotalWithDiscountInclTax func(childComplexity int) int 402 } 403 404 Commerce_Cart_Summary struct { 405 Discounts func(childComplexity int) int 406 GrandTotalWithGiftCards func(childComplexity int) int 407 HasAppliedDiscounts func(childComplexity int) int 408 SumPaymentSelectionCartSplitPriceAmountByMethods func(childComplexity int, methods []string) int 409 SumPaymentSelectionCartSplitValueAmountByMethods func(childComplexity int, methods []string) int 410 SumTaxes func(childComplexity int) int 411 SumTotalDiscountWithGiftCardsAmount func(childComplexity int) int 412 TotalDiscountAmount func(childComplexity int) int 413 TotalGiftCardAmount func(childComplexity int) int 414 } 415 416 Commerce_Cart_Tax struct { 417 Amount func(childComplexity int) int 418 Rate func(childComplexity int) int 419 Type func(childComplexity int) int 420 } 421 422 Commerce_Cart_Taxes struct { 423 GetByType func(childComplexity int, taxType string) int 424 Items func(childComplexity int) int 425 } 426 427 Commerce_Cart_Teaser struct { 428 DeliveryCodes func(childComplexity int) int 429 ItemCount func(childComplexity int) int 430 ProductCount func(childComplexity int) int 431 } 432 433 Commerce_Cart_Totalitem struct { 434 Code func(childComplexity int) int 435 Price func(childComplexity int) int 436 Title func(childComplexity int) int 437 Type func(childComplexity int) int 438 } 439 440 Commerce_Cart_UpdateDeliveryShippingOptions_Result struct { 441 Processed func(childComplexity int) int 442 } 443 444 Commerce_Cart_ValidationResult struct { 445 CommonErrorMessageKey func(childComplexity int) int 446 HasCommonError func(childComplexity int) int 447 ItemResults func(childComplexity int) int 448 } 449 450 Commerce_CategoryData struct { 451 Active func(childComplexity int) int 452 Attributes func(childComplexity int) int 453 Code func(childComplexity int) int 454 Name func(childComplexity int) int 455 Path func(childComplexity int) int 456 Promoted func(childComplexity int) int 457 } 458 459 Commerce_CategoryTree struct { 460 Active func(childComplexity int) int 461 Code func(childComplexity int) int 462 DocumentCount func(childComplexity int) int 463 HasChilds func(childComplexity int) int 464 Name func(childComplexity int) int 465 Path func(childComplexity int) int 466 SubTrees func(childComplexity int) int 467 } 468 469 Commerce_Category_Attribute struct { 470 Code func(childComplexity int) int 471 Label func(childComplexity int) int 472 Values func(childComplexity int) int 473 } 474 475 Commerce_Category_AttributeValue struct { 476 Label func(childComplexity int) int 477 Value func(childComplexity int) int 478 } 479 480 Commerce_Category_Attributes struct { 481 All func(childComplexity int) int 482 Get func(childComplexity int, code string) int 483 Has func(childComplexity int, code string) int 484 } 485 486 Commerce_Category_SearchResult struct { 487 Category func(childComplexity int) int 488 ProductSearchResult func(childComplexity int) int 489 } 490 491 Commerce_Checkout_PlaceOrderContext struct { 492 Cart func(childComplexity int) int 493 OrderInfos func(childComplexity int) int 494 State func(childComplexity int) int 495 UUID func(childComplexity int) int 496 } 497 498 Commerce_Checkout_PlaceOrderPaymentInfo struct { 499 Amount func(childComplexity int) int 500 Gateway func(childComplexity int) int 501 Method func(childComplexity int) int 502 PaymentProvider func(childComplexity int) int 503 Title func(childComplexity int) int 504 } 505 506 Commerce_Checkout_PlaceOrderState_Form_Parameter struct { 507 Key func(childComplexity int) int 508 Value func(childComplexity int) int 509 } 510 511 Commerce_Checkout_PlaceOrderState_PaymentRequestAPI struct { 512 CompleteURL func(childComplexity int) int 513 Details func(childComplexity int) int 514 MerchantValidationURL func(childComplexity int) int 515 MethodData func(childComplexity int) int 516 Options func(childComplexity int) int 517 } 518 519 Commerce_Checkout_PlaceOrderState_State_Failed struct { 520 Name func(childComplexity int) int 521 Reason func(childComplexity int) int 522 } 523 524 Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer struct { 525 Reason func(childComplexity int) int 526 } 527 528 Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError struct { 529 Reason func(childComplexity int) int 530 ValidationResult func(childComplexity int) int 531 } 532 533 Commerce_Checkout_PlaceOrderState_State_FailedReason_Error struct { 534 Reason func(childComplexity int) int 535 } 536 537 Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer struct { 538 Reason func(childComplexity int) int 539 } 540 541 Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError struct { 542 Reason func(childComplexity int) int 543 } 544 545 Commerce_Checkout_PlaceOrderState_State_PostRedirect struct { 546 Name func(childComplexity int) int 547 Parameters func(childComplexity int) int 548 URL func(childComplexity int) int 549 } 550 551 Commerce_Checkout_PlaceOrderState_State_Redirect struct { 552 Name func(childComplexity int) int 553 URL func(childComplexity int) int 554 } 555 556 Commerce_Checkout_PlaceOrderState_State_ShowHTML struct { 557 HTML func(childComplexity int) int 558 Name func(childComplexity int) int 559 } 560 561 Commerce_Checkout_PlaceOrderState_State_ShowIframe struct { 562 Name func(childComplexity int) int 563 URL func(childComplexity int) int 564 } 565 566 Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment struct { 567 Name func(childComplexity int) int 568 PaymentMethod func(childComplexity int) int 569 PaymentRequestAPI func(childComplexity int) int 570 } 571 572 Commerce_Checkout_PlaceOrderState_State_Success struct { 573 Name func(childComplexity int) int 574 } 575 576 Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK struct { 577 Data func(childComplexity int) int 578 Name func(childComplexity int) int 579 URL func(childComplexity int) int 580 } 581 582 Commerce_Checkout_PlaceOrderState_State_Wait struct { 583 Name func(childComplexity int) int 584 } 585 586 Commerce_Checkout_PlaceOrderState_State_WaitForCustomer struct { 587 Name func(childComplexity int) int 588 } 589 590 Commerce_Checkout_PlacedOrderInfos struct { 591 Email func(childComplexity int) int 592 PaymentInfos func(childComplexity int) int 593 PlacedOrderInfos func(childComplexity int) int 594 } 595 596 Commerce_Checkout_StartPlaceOrder_Result struct { 597 UUID func(childComplexity int) int 598 } 599 600 Commerce_Customer_Address struct { 601 AdditionalAddressLines func(childComplexity int) int 602 City func(childComplexity int) int 603 Company func(childComplexity int) int 604 CountryCode func(childComplexity int) int 605 DefaultBilling func(childComplexity int) int 606 DefaultShipping func(childComplexity int) int 607 Email func(childComplexity int) int 608 Firstname func(childComplexity int) int 609 ID func(childComplexity int) int 610 Lastname func(childComplexity int) int 611 PostCode func(childComplexity int) int 612 Prefix func(childComplexity int) int 613 RegionCode func(childComplexity int) int 614 State func(childComplexity int) int 615 Street func(childComplexity int) int 616 StreetNr func(childComplexity int) int 617 Telephone func(childComplexity int) int 618 } 619 620 Commerce_Customer_PersonData struct { 621 Birthday func(childComplexity int) int 622 FirstName func(childComplexity int) int 623 Gender func(childComplexity int) int 624 LastName func(childComplexity int) int 625 MainEmail func(childComplexity int) int 626 MiddleName func(childComplexity int) int 627 Nationality func(childComplexity int) int 628 Prefix func(childComplexity int) int 629 } 630 631 Commerce_Customer_Result struct { 632 Addresses func(childComplexity int) int 633 DefaultBillingAddress func(childComplexity int) int 634 DefaultShippingAddress func(childComplexity int) int 635 GetAddress func(childComplexity int, id string) int 636 ID func(childComplexity int) int 637 PersonalData func(childComplexity int) int 638 } 639 640 Commerce_Customer_Status_Result struct { 641 IsLoggedIn func(childComplexity int) int 642 UserID func(childComplexity int) int 643 } 644 645 Commerce_Price struct { 646 Currency func(childComplexity int) int 647 FloatAmount func(childComplexity int) int 648 } 649 650 Commerce_Price_Charge struct { 651 Price func(childComplexity int) int 652 Reference func(childComplexity int) int 653 Type func(childComplexity int) int 654 Value func(childComplexity int) int 655 } 656 657 Commerce_Price_ChargeQualifier struct { 658 Reference func(childComplexity int) int 659 Type func(childComplexity int) int 660 } 661 662 Commerce_Price_Charges struct { 663 GetByChargeQualifierForced func(childComplexity int, qualifier domain.ChargeQualifier) int 664 GetByTypeForced func(childComplexity int, ctype string) int 665 HasChargeQualifier func(childComplexity int, qualifier domain.ChargeQualifier) int 666 HasType func(childComplexity int, ctype string) int 667 Items func(childComplexity int) int 668 } 669 670 Commerce_Product_ActiveVariantProduct struct { 671 ActiveVariationSelections func(childComplexity int) int 672 Attributes func(childComplexity int) int 673 AvailablePrices func(childComplexity int) int 674 Badges func(childComplexity int) int 675 Categories func(childComplexity int) int 676 Description func(childComplexity int) int 677 Identifier func(childComplexity int) int 678 Loyalty func(childComplexity int) int 679 MarketPlaceCode func(childComplexity int) int 680 Media func(childComplexity int) int 681 Meta func(childComplexity int) int 682 Price func(childComplexity int) int 683 ShortDescription func(childComplexity int) int 684 Title func(childComplexity int) int 685 Type func(childComplexity int) int 686 VariantMarketPlaceCode func(childComplexity int) int 687 VariationSelections func(childComplexity int) int 688 } 689 690 Commerce_Product_ActiveVariationSelection struct { 691 Code func(childComplexity int) int 692 Label func(childComplexity int) int 693 UnitCode func(childComplexity int) int 694 Value func(childComplexity int) int 695 } 696 697 Commerce_Product_Attribute struct { 698 Code func(childComplexity int) int 699 CodeLabel func(childComplexity int) int 700 Label func(childComplexity int) int 701 Labels func(childComplexity int) int 702 UnitCode func(childComplexity int) int 703 Value func(childComplexity int) int 704 Values func(childComplexity int) int 705 } 706 707 Commerce_Product_Attributes struct { 708 Attribute func(childComplexity int, key string) int 709 AttributeKeys func(childComplexity int) int 710 Attributes func(childComplexity int) int 711 AttributesByKey func(childComplexity int, keys []string) int 712 HasAttribute func(childComplexity int, key string) int 713 } 714 715 Commerce_Product_Badge struct { 716 Code func(childComplexity int) int 717 Label func(childComplexity int) int 718 } 719 720 Commerce_Product_Badges struct { 721 All func(childComplexity int) int 722 First func(childComplexity int) int 723 } 724 725 Commerce_Product_BundleProduct struct { 726 Attributes func(childComplexity int) int 727 AvailablePrices func(childComplexity int) int 728 Badges func(childComplexity int) int 729 Categories func(childComplexity int) int 730 Choices func(childComplexity int) int 731 Description func(childComplexity int) int 732 Identifier func(childComplexity int) int 733 Loyalty func(childComplexity int) int 734 MarketPlaceCode func(childComplexity int) int 735 Media func(childComplexity int) int 736 Meta func(childComplexity int) int 737 Price func(childComplexity int) int 738 ShortDescription func(childComplexity int) int 739 Title func(childComplexity int) int 740 Type func(childComplexity int) int 741 } 742 743 Commerce_Product_Categories struct { 744 All func(childComplexity int) int 745 Main func(childComplexity int) int 746 } 747 748 Commerce_Product_CategoryTeaser struct { 749 Code func(childComplexity int) int 750 Name func(childComplexity int) int 751 Parent func(childComplexity int) int 752 Path func(childComplexity int) int 753 } 754 755 Commerce_Product_Choice struct { 756 Active func(childComplexity int) int 757 ActiveOption func(childComplexity int) int 758 Identifier func(childComplexity int) int 759 Label func(childComplexity int) int 760 Options func(childComplexity int) int 761 Required func(childComplexity int) int 762 } 763 764 Commerce_Product_ConfigurableProduct struct { 765 Attributes func(childComplexity int) int 766 AvailablePrices func(childComplexity int) int 767 Badges func(childComplexity int) int 768 Categories func(childComplexity int) int 769 Description func(childComplexity int) int 770 Identifier func(childComplexity int) int 771 Loyalty func(childComplexity int) int 772 MarketPlaceCode func(childComplexity int) int 773 Media func(childComplexity int) int 774 Meta func(childComplexity int) int 775 Price func(childComplexity int) int 776 ShortDescription func(childComplexity int) int 777 Title func(childComplexity int) int 778 Type func(childComplexity int) int 779 VariantSelection func(childComplexity int) int 780 } 781 782 Commerce_Product_Loyalty struct { 783 AvailablePrices func(childComplexity int) int 784 Earning func(childComplexity int) int 785 Price func(childComplexity int) int 786 } 787 788 Commerce_Product_Loyalty_EarningInfo struct { 789 Default func(childComplexity int) int 790 Type func(childComplexity int) int 791 } 792 793 Commerce_Product_Loyalty_PriceInfo struct { 794 Context func(childComplexity int) int 795 Default func(childComplexity int) int 796 DiscountText func(childComplexity int) int 797 Discounted func(childComplexity int) int 798 IsDiscounted func(childComplexity int) int 799 MaxPointsToSpent func(childComplexity int) int 800 MinPointsToSpent func(childComplexity int) int 801 Type func(childComplexity int) int 802 } 803 804 Commerce_Product_Media struct { 805 All func(childComplexity int) int 806 GetMedia func(childComplexity int, usage string) int 807 } 808 809 Commerce_Product_MediaItem struct { 810 MimeType func(childComplexity int) int 811 Reference func(childComplexity int) int 812 Title func(childComplexity int) int 813 Type func(childComplexity int) int 814 Usage func(childComplexity int) int 815 } 816 817 Commerce_Product_Meta struct { 818 Keywords func(childComplexity int) int 819 } 820 821 Commerce_Product_Option struct { 822 Product func(childComplexity int) int 823 Qty func(childComplexity int) int 824 } 825 826 Commerce_Product_PriceContext struct { 827 ChannelCode func(childComplexity int) int 828 CustomerGroup func(childComplexity int) int 829 DeliveryCode func(childComplexity int) int 830 Locale func(childComplexity int) int 831 } 832 833 Commerce_Product_PriceInfo struct { 834 ActiveBase func(childComplexity int) int 835 ActiveBaseAmount func(childComplexity int) int 836 ActiveBaseUnit func(childComplexity int) int 837 CampaignRules func(childComplexity int) int 838 Context func(childComplexity int) int 839 Default func(childComplexity int) int 840 DenyMoreDiscounts func(childComplexity int) int 841 DiscountText func(childComplexity int) int 842 Discounted func(childComplexity int) int 843 IsDiscounted func(childComplexity int) int 844 TaxClass func(childComplexity int) int 845 } 846 847 Commerce_Product_SearchResult struct { 848 Actions func(childComplexity int) int 849 Facets func(childComplexity int) int 850 HasSelectedFacet func(childComplexity int) int 851 Products func(childComplexity int) int 852 Promotion func(childComplexity int) int 853 SearchMeta func(childComplexity int) int 854 Suggestions func(childComplexity int) int 855 } 856 857 Commerce_Product_SimpleProduct struct { 858 Attributes func(childComplexity int) int 859 AvailablePrices func(childComplexity int) int 860 Badges func(childComplexity int) int 861 Categories func(childComplexity int) int 862 Description func(childComplexity int) int 863 Identifier func(childComplexity int) int 864 Loyalty func(childComplexity int) int 865 MarketPlaceCode func(childComplexity int) int 866 Media func(childComplexity int) int 867 Meta func(childComplexity int) int 868 Price func(childComplexity int) int 869 ShortDescription func(childComplexity int) int 870 Title func(childComplexity int) int 871 Type func(childComplexity int) int 872 } 873 874 Commerce_Product_VariantSelection struct { 875 Attributes func(childComplexity int) int 876 Variants func(childComplexity int) int 877 } 878 879 Commerce_Product_VariantSelection_Attribute struct { 880 Code func(childComplexity int) int 881 Label func(childComplexity int) int 882 Options func(childComplexity int) int 883 } 884 885 Commerce_Product_VariantSelection_Attribute_Option struct { 886 Label func(childComplexity int) int 887 OtherAttributesRestrictions func(childComplexity int) int 888 UnitCode func(childComplexity int) int 889 } 890 891 Commerce_Product_VariantSelection_Match struct { 892 Attributes func(childComplexity int) int 893 Variant func(childComplexity int) int 894 } 895 896 Commerce_Product_VariantSelection_Match_Attributes struct { 897 Key func(childComplexity int) int 898 Value func(childComplexity int) int 899 } 900 901 Commerce_Product_VariantSelection_Match_Variant struct { 902 MarketplaceCode func(childComplexity int) int 903 } 904 905 Commerce_Product_VariantSelection_Option_OtherAttributesRestriction struct { 906 AvailableOptions func(childComplexity int) int 907 Code func(childComplexity int) int 908 } 909 910 Commerce_Product_VariationSelection struct { 911 Code func(childComplexity int) int 912 Label func(childComplexity int) int 913 Options func(childComplexity int) int 914 } 915 916 Commerce_Product_VariationSelection_Option struct { 917 Label func(childComplexity int) int 918 State func(childComplexity int) int 919 UnitCode func(childComplexity int) int 920 Variant func(childComplexity int) int 921 } 922 923 Commerce_Product_VariationSelection_OptionVariant struct { 924 MarketPlaceCode func(childComplexity int) int 925 } 926 927 Commerce_Search_Action struct { 928 Content func(childComplexity int) int 929 Type func(childComplexity int) int 930 } 931 932 Commerce_Search_ListFacet struct { 933 HasSelectedItem func(childComplexity int) int 934 Items func(childComplexity int) int 935 Label func(childComplexity int) int 936 Name func(childComplexity int) int 937 Position func(childComplexity int) int 938 } 939 940 Commerce_Search_ListFacetItem struct { 941 Count func(childComplexity int) int 942 Label func(childComplexity int) int 943 Selected func(childComplexity int) int 944 Value func(childComplexity int) int 945 } 946 947 Commerce_Search_Meta struct { 948 NumPages func(childComplexity int) int 949 NumResults func(childComplexity int) int 950 OriginalQuery func(childComplexity int) int 951 Page func(childComplexity int) int 952 Query func(childComplexity int) int 953 SortOptions func(childComplexity int) int 954 } 955 956 Commerce_Search_Promotion struct { 957 Content func(childComplexity int) int 958 Media func(childComplexity int) int 959 Title func(childComplexity int) int 960 URL func(childComplexity int) int 961 } 962 963 Commerce_Search_PromotionMedia struct { 964 MimeType func(childComplexity int) int 965 Reference func(childComplexity int) int 966 Title func(childComplexity int) int 967 Type func(childComplexity int) int 968 Usage func(childComplexity int) int 969 } 970 971 Commerce_Search_RangeFacet struct { 972 HasSelectedItem func(childComplexity int) int 973 Items func(childComplexity int) int 974 Label func(childComplexity int) int 975 Name func(childComplexity int) int 976 Position func(childComplexity int) int 977 } 978 979 Commerce_Search_RangeFacetItem struct { 980 Count func(childComplexity int) int 981 Label func(childComplexity int) int 982 Max func(childComplexity int) int 983 Min func(childComplexity int) int 984 Selected func(childComplexity int) int 985 SelectedMax func(childComplexity int) int 986 SelectedMin func(childComplexity int) int 987 Value func(childComplexity int) int 988 } 989 990 Commerce_Search_SortOption struct { 991 Field func(childComplexity int) int 992 Label func(childComplexity int) int 993 Selected func(childComplexity int) int 994 } 995 996 Commerce_Search_Suggestion struct { 997 Highlight func(childComplexity int) int 998 Text func(childComplexity int) int 999 } 1000 1001 Commerce_Search_TreeFacet struct { 1002 HasSelectedItem func(childComplexity int) int 1003 Items func(childComplexity int) int 1004 Label func(childComplexity int) int 1005 Name func(childComplexity int) int 1006 Position func(childComplexity int) int 1007 } 1008 1009 Commerce_Search_TreeFacetItem struct { 1010 Active func(childComplexity int) int 1011 Count func(childComplexity int) int 1012 Items func(childComplexity int) int 1013 Label func(childComplexity int) int 1014 Selected func(childComplexity int) int 1015 Value func(childComplexity int) int 1016 } 1017 1018 Mutation struct { 1019 CommerceCartAddToCart func(childComplexity int, addToCartInput dto.AddToCart) int 1020 CommerceCartApplyCouponCodeOrGiftCard func(childComplexity int, code string) int 1021 CommerceCartClean func(childComplexity int) int 1022 CommerceCartDeleteCartDelivery func(childComplexity int, deliveryCode string) int 1023 CommerceCartDeleteItem func(childComplexity int, itemID string, deliveryCode string) int 1024 CommerceCartRemoveCouponCode func(childComplexity int, couponCode string) int 1025 CommerceCartRemoveGiftCard func(childComplexity int, giftCardCode string) int 1026 CommerceCartUpdateAdditionalData func(childComplexity int, additionalData []*dto.KeyValue) int 1027 CommerceCartUpdateBillingAddress func(childComplexity int, addressForm *forms.AddressForm) int 1028 CommerceCartUpdateDeliveriesAdditionalData func(childComplexity int, data []*dto.DeliveryAdditionalData) int 1029 CommerceCartUpdateDeliveryAddresses func(childComplexity int, deliveryAdresses []*forms.DeliveryForm) int 1030 CommerceCartUpdateDeliveryShippingOptions func(childComplexity int, shippingOptions []*dto.DeliveryShippingOption) int 1031 CommerceCartUpdateItemBundleConfig func(childComplexity int, itemID string, bundleConfig []*dto.ChoiceConfiguration) int 1032 CommerceCartUpdateItemQty func(childComplexity int, itemID string, deliveryCode string, qty int) int 1033 CommerceCartUpdateSelectedPayment func(childComplexity int, gateway string, method string) int 1034 CommerceCheckoutCancelPlaceOrder func(childComplexity int) int 1035 CommerceCheckoutClearPlaceOrder func(childComplexity int) int 1036 CommerceCheckoutRefreshPlaceOrder func(childComplexity int) int 1037 CommerceCheckoutRefreshPlaceOrderBlocking func(childComplexity int) int 1038 CommerceCheckoutStartPlaceOrder func(childComplexity int, returnURL string) int 1039 Flamingo func(childComplexity int) int 1040 } 1041 1042 Query struct { 1043 CommerceCartDecoratedCart func(childComplexity int) int 1044 CommerceCartQtyRestriction func(childComplexity int, marketplaceCode string, variantCode *string, deliveryCode string) int 1045 CommerceCartValidator func(childComplexity int) int 1046 CommerceCategory func(childComplexity int, categoryCode string, categorySearchRequest *searchdto.CommerceSearchRequest) int 1047 CommerceCategoryTree func(childComplexity int, activeCategoryCode string) int 1048 CommerceCheckoutActivePlaceOrder func(childComplexity int) int 1049 CommerceCheckoutCurrentContext func(childComplexity int) int 1050 CommerceCustomer func(childComplexity int) int 1051 CommerceCustomerStatus func(childComplexity int) int 1052 CommerceProduct func(childComplexity int, marketPlaceCode string, variantMarketPlaceCode *string, bundleConfiguration []*graphqlproductdto.ChoiceConfiguration) int 1053 CommerceProductSearch func(childComplexity int, searchRequest searchdto.CommerceSearchRequest) int 1054 Flamingo func(childComplexity int) int 1055 } 1056 } 1057 1058 type Commerce_Cart_AdditionalDataResolver interface { 1059 CustomAttributes(ctx context.Context, obj *cart.AdditionalData) (*dto.CustomAttributes, error) 1060 } 1061 type Commerce_Cart_CartResolver interface { 1062 GetDeliveryByCode(ctx context.Context, obj *cart.Cart, deliveryCode string) (*cart.Delivery, error) 1063 } 1064 type Commerce_Cart_DefaultPaymentSelectionResolver interface { 1065 CartSplit(ctx context.Context, obj *cart.DefaultPaymentSelection) ([]*dto.PaymentSelectionSplit, error) 1066 } 1067 type Commerce_Cart_DeliveryInfoResolver interface { 1068 AdditionalData(ctx context.Context, obj *cart.DeliveryInfo) (*dto.CustomAttributes, error) 1069 } 1070 type Commerce_Cart_ItemResolver interface { 1071 AppliedDiscounts(ctx context.Context, obj *cart.Item) (*dto.CartAppliedDiscounts, error) 1072 } 1073 type Commerce_Cart_ShippingItemResolver interface { 1074 AppliedDiscounts(ctx context.Context, obj *cart.ShippingItem) (*dto.CartAppliedDiscounts, error) 1075 } 1076 type Commerce_Product_PriceInfoResolver interface { 1077 ActiveBase(ctx context.Context, obj *domain1.PriceInfo) (*domain.Price, error) 1078 } 1079 type Commerce_Search_MetaResolver interface { 1080 SortOptions(ctx context.Context, obj *domain2.SearchMeta) ([]*searchdto.CommerceSearchSortOption, error) 1081 } 1082 type MutationResolver interface { 1083 Flamingo(ctx context.Context) (*string, error) 1084 CommerceCartAddToCart(ctx context.Context, addToCartInput dto.AddToCart) (*dto.DecoratedCart, error) 1085 CommerceCartDeleteCartDelivery(ctx context.Context, deliveryCode string) (*dto.DecoratedCart, error) 1086 CommerceCartDeleteItem(ctx context.Context, itemID string, deliveryCode string) (*dto.DecoratedCart, error) 1087 CommerceCartUpdateItemQty(ctx context.Context, itemID string, deliveryCode string, qty int) (*dto.DecoratedCart, error) 1088 CommerceCartUpdateItemBundleConfig(ctx context.Context, itemID string, bundleConfig []*dto.ChoiceConfiguration) (*dto.DecoratedCart, error) 1089 CommerceCartUpdateBillingAddress(ctx context.Context, addressForm *forms.AddressForm) (*dto.BillingAddressForm, error) 1090 CommerceCartUpdateSelectedPayment(ctx context.Context, gateway string, method string) (*dto.SelectedPaymentResult, error) 1091 CommerceCartApplyCouponCodeOrGiftCard(ctx context.Context, code string) (*dto.DecoratedCart, error) 1092 CommerceCartRemoveGiftCard(ctx context.Context, giftCardCode string) (*dto.DecoratedCart, error) 1093 CommerceCartRemoveCouponCode(ctx context.Context, couponCode string) (*dto.DecoratedCart, error) 1094 CommerceCartUpdateDeliveryAddresses(ctx context.Context, deliveryAdresses []*forms.DeliveryForm) ([]*dto.DeliveryAddressForm, error) 1095 CommerceCartUpdateDeliveryShippingOptions(ctx context.Context, shippingOptions []*dto.DeliveryShippingOption) (*dto.UpdateShippingOptionsResult, error) 1096 CommerceCartClean(ctx context.Context) (bool, error) 1097 CommerceCartUpdateAdditionalData(ctx context.Context, additionalData []*dto.KeyValue) (*dto.DecoratedCart, error) 1098 CommerceCartUpdateDeliveriesAdditionalData(ctx context.Context, data []*dto.DeliveryAdditionalData) (*dto.DecoratedCart, error) 1099 CommerceCheckoutStartPlaceOrder(ctx context.Context, returnURL string) (*dto1.StartPlaceOrderResult, error) 1100 CommerceCheckoutCancelPlaceOrder(ctx context.Context) (bool, error) 1101 CommerceCheckoutClearPlaceOrder(ctx context.Context) (bool, error) 1102 CommerceCheckoutRefreshPlaceOrder(ctx context.Context) (*dto1.PlaceOrderContext, error) 1103 CommerceCheckoutRefreshPlaceOrderBlocking(ctx context.Context) (*dto1.PlaceOrderContext, error) 1104 } 1105 type QueryResolver interface { 1106 Flamingo(ctx context.Context) (*string, error) 1107 CommerceProduct(ctx context.Context, marketPlaceCode string, variantMarketPlaceCode *string, bundleConfiguration []*graphqlproductdto.ChoiceConfiguration) (graphqlproductdto.Product, error) 1108 CommerceProductSearch(ctx context.Context, searchRequest searchdto.CommerceSearchRequest) (*graphql1.SearchResultDTO, error) 1109 CommerceCustomerStatus(ctx context.Context) (*dtocustomer.CustomerStatusResult, error) 1110 CommerceCustomer(ctx context.Context) (*dtocustomer.CustomerResult, error) 1111 CommerceCartDecoratedCart(ctx context.Context) (*dto.DecoratedCart, error) 1112 CommerceCartValidator(ctx context.Context) (*validation.Result, error) 1113 CommerceCartQtyRestriction(ctx context.Context, marketplaceCode string, variantCode *string, deliveryCode string) (*validation.RestrictionResult, error) 1114 CommerceCheckoutActivePlaceOrder(ctx context.Context) (bool, error) 1115 CommerceCheckoutCurrentContext(ctx context.Context) (*dto1.PlaceOrderContext, error) 1116 CommerceCategoryTree(ctx context.Context, activeCategoryCode string) (domain3.Tree, error) 1117 CommerceCategory(ctx context.Context, categoryCode string, categorySearchRequest *searchdto.CommerceSearchRequest) (*categorydto.CategorySearchResult, error) 1118 } 1119 1120 type executableSchema struct { 1121 schema *ast.Schema 1122 resolvers ResolverRoot 1123 directives DirectiveRoot 1124 complexity ComplexityRoot 1125 } 1126 1127 func (e *executableSchema) Schema() *ast.Schema { 1128 if e.schema != nil { 1129 return e.schema 1130 } 1131 return parsedSchema 1132 } 1133 1134 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 1135 ec := executionContext{nil, e, 0, 0, nil} 1136 _ = ec 1137 switch typeName + "." + field { 1138 1139 case "Commerce_Cart_AdditionalData.customAttributes": 1140 if e.complexity.Commerce_Cart_AdditionalData.CustomAttributes == nil { 1141 break 1142 } 1143 1144 return e.complexity.Commerce_Cart_AdditionalData.CustomAttributes(childComplexity), true 1145 1146 case "Commerce_Cart_AdditionalData.reservedOrderID": 1147 if e.complexity.Commerce_Cart_AdditionalData.ReservedOrderID == nil { 1148 break 1149 } 1150 1151 return e.complexity.Commerce_Cart_AdditionalData.ReservedOrderID(childComplexity), true 1152 1153 case "Commerce_Cart_Address.additionalAddressLines": 1154 if e.complexity.Commerce_Cart_Address.AdditionalAddressLines == nil { 1155 break 1156 } 1157 1158 return e.complexity.Commerce_Cart_Address.AdditionalAddressLines(childComplexity), true 1159 1160 case "Commerce_Cart_Address.city": 1161 if e.complexity.Commerce_Cart_Address.City == nil { 1162 break 1163 } 1164 1165 return e.complexity.Commerce_Cart_Address.City(childComplexity), true 1166 1167 case "Commerce_Cart_Address.company": 1168 if e.complexity.Commerce_Cart_Address.Company == nil { 1169 break 1170 } 1171 1172 return e.complexity.Commerce_Cart_Address.Company(childComplexity), true 1173 1174 case "Commerce_Cart_Address.country": 1175 if e.complexity.Commerce_Cart_Address.Country == nil { 1176 break 1177 } 1178 1179 return e.complexity.Commerce_Cart_Address.Country(childComplexity), true 1180 1181 case "Commerce_Cart_Address.countryCode": 1182 if e.complexity.Commerce_Cart_Address.CountryCode == nil { 1183 break 1184 } 1185 1186 return e.complexity.Commerce_Cart_Address.CountryCode(childComplexity), true 1187 1188 case "Commerce_Cart_Address.email": 1189 if e.complexity.Commerce_Cart_Address.Email == nil { 1190 break 1191 } 1192 1193 return e.complexity.Commerce_Cart_Address.Email(childComplexity), true 1194 1195 case "Commerce_Cart_Address.firstname": 1196 if e.complexity.Commerce_Cart_Address.Firstname == nil { 1197 break 1198 } 1199 1200 return e.complexity.Commerce_Cart_Address.Firstname(childComplexity), true 1201 1202 case "Commerce_Cart_Address.lastname": 1203 if e.complexity.Commerce_Cart_Address.Lastname == nil { 1204 break 1205 } 1206 1207 return e.complexity.Commerce_Cart_Address.Lastname(childComplexity), true 1208 1209 case "Commerce_Cart_Address.middleName": 1210 if e.complexity.Commerce_Cart_Address.MiddleName == nil { 1211 break 1212 } 1213 1214 return e.complexity.Commerce_Cart_Address.MiddleName(childComplexity), true 1215 1216 case "Commerce_Cart_Address.postCode": 1217 if e.complexity.Commerce_Cart_Address.PostCode == nil { 1218 break 1219 } 1220 1221 return e.complexity.Commerce_Cart_Address.PostCode(childComplexity), true 1222 1223 case "Commerce_Cart_Address.regionCode": 1224 if e.complexity.Commerce_Cart_Address.RegionCode == nil { 1225 break 1226 } 1227 1228 return e.complexity.Commerce_Cart_Address.RegionCode(childComplexity), true 1229 1230 case "Commerce_Cart_Address.salutation": 1231 if e.complexity.Commerce_Cart_Address.Salutation == nil { 1232 break 1233 } 1234 1235 return e.complexity.Commerce_Cart_Address.Salutation(childComplexity), true 1236 1237 case "Commerce_Cart_Address.state": 1238 if e.complexity.Commerce_Cart_Address.State == nil { 1239 break 1240 } 1241 1242 return e.complexity.Commerce_Cart_Address.State(childComplexity), true 1243 1244 case "Commerce_Cart_Address.street": 1245 if e.complexity.Commerce_Cart_Address.Street == nil { 1246 break 1247 } 1248 1249 return e.complexity.Commerce_Cart_Address.Street(childComplexity), true 1250 1251 case "Commerce_Cart_Address.streetNr": 1252 if e.complexity.Commerce_Cart_Address.StreetNr == nil { 1253 break 1254 } 1255 1256 return e.complexity.Commerce_Cart_Address.StreetNr(childComplexity), true 1257 1258 case "Commerce_Cart_Address.telephone": 1259 if e.complexity.Commerce_Cart_Address.Telephone == nil { 1260 break 1261 } 1262 1263 return e.complexity.Commerce_Cart_Address.Telephone(childComplexity), true 1264 1265 case "Commerce_Cart_Address.title": 1266 if e.complexity.Commerce_Cart_Address.Title == nil { 1267 break 1268 } 1269 1270 return e.complexity.Commerce_Cart_Address.Title(childComplexity), true 1271 1272 case "Commerce_Cart_Address.vat": 1273 if e.complexity.Commerce_Cart_Address.Vat == nil { 1274 break 1275 } 1276 1277 return e.complexity.Commerce_Cart_Address.Vat(childComplexity), true 1278 1279 case "Commerce_Cart_AddressForm.addressLine1": 1280 if e.complexity.Commerce_Cart_AddressForm.AddressLine1 == nil { 1281 break 1282 } 1283 1284 return e.complexity.Commerce_Cart_AddressForm.AddressLine1(childComplexity), true 1285 1286 case "Commerce_Cart_AddressForm.addressLine2": 1287 if e.complexity.Commerce_Cart_AddressForm.AddressLine2 == nil { 1288 break 1289 } 1290 1291 return e.complexity.Commerce_Cart_AddressForm.AddressLine2(childComplexity), true 1292 1293 case "Commerce_Cart_AddressForm.city": 1294 if e.complexity.Commerce_Cart_AddressForm.City == nil { 1295 break 1296 } 1297 1298 return e.complexity.Commerce_Cart_AddressForm.City(childComplexity), true 1299 1300 case "Commerce_Cart_AddressForm.company": 1301 if e.complexity.Commerce_Cart_AddressForm.Company == nil { 1302 break 1303 } 1304 1305 return e.complexity.Commerce_Cart_AddressForm.Company(childComplexity), true 1306 1307 case "Commerce_Cart_AddressForm.country": 1308 if e.complexity.Commerce_Cart_AddressForm.Country == nil { 1309 break 1310 } 1311 1312 return e.complexity.Commerce_Cart_AddressForm.Country(childComplexity), true 1313 1314 case "Commerce_Cart_AddressForm.countryCode": 1315 if e.complexity.Commerce_Cart_AddressForm.CountryCode == nil { 1316 break 1317 } 1318 1319 return e.complexity.Commerce_Cart_AddressForm.CountryCode(childComplexity), true 1320 1321 case "Commerce_Cart_AddressForm.email": 1322 if e.complexity.Commerce_Cart_AddressForm.Email == nil { 1323 break 1324 } 1325 1326 return e.complexity.Commerce_Cart_AddressForm.Email(childComplexity), true 1327 1328 case "Commerce_Cart_AddressForm.firstname": 1329 if e.complexity.Commerce_Cart_AddressForm.Firstname == nil { 1330 break 1331 } 1332 1333 return e.complexity.Commerce_Cart_AddressForm.Firstname(childComplexity), true 1334 1335 case "Commerce_Cart_AddressForm.lastname": 1336 if e.complexity.Commerce_Cart_AddressForm.Lastname == nil { 1337 break 1338 } 1339 1340 return e.complexity.Commerce_Cart_AddressForm.Lastname(childComplexity), true 1341 1342 case "Commerce_Cart_AddressForm.middleName": 1343 if e.complexity.Commerce_Cart_AddressForm.MiddleName == nil { 1344 break 1345 } 1346 1347 return e.complexity.Commerce_Cart_AddressForm.MiddleName(childComplexity), true 1348 1349 case "Commerce_Cart_AddressForm.phoneNumber": 1350 if e.complexity.Commerce_Cart_AddressForm.PhoneNumber == nil { 1351 break 1352 } 1353 1354 return e.complexity.Commerce_Cart_AddressForm.PhoneNumber(childComplexity), true 1355 1356 case "Commerce_Cart_AddressForm.postCode": 1357 if e.complexity.Commerce_Cart_AddressForm.PostCode == nil { 1358 break 1359 } 1360 1361 return e.complexity.Commerce_Cart_AddressForm.PostCode(childComplexity), true 1362 1363 case "Commerce_Cart_AddressForm.regionCode": 1364 if e.complexity.Commerce_Cart_AddressForm.RegionCode == nil { 1365 break 1366 } 1367 1368 return e.complexity.Commerce_Cart_AddressForm.RegionCode(childComplexity), true 1369 1370 case "Commerce_Cart_AddressForm.salutation": 1371 if e.complexity.Commerce_Cart_AddressForm.Salutation == nil { 1372 break 1373 } 1374 1375 return e.complexity.Commerce_Cart_AddressForm.Salutation(childComplexity), true 1376 1377 case "Commerce_Cart_AddressForm.state": 1378 if e.complexity.Commerce_Cart_AddressForm.State == nil { 1379 break 1380 } 1381 1382 return e.complexity.Commerce_Cart_AddressForm.State(childComplexity), true 1383 1384 case "Commerce_Cart_AddressForm.street": 1385 if e.complexity.Commerce_Cart_AddressForm.Street == nil { 1386 break 1387 } 1388 1389 return e.complexity.Commerce_Cart_AddressForm.Street(childComplexity), true 1390 1391 case "Commerce_Cart_AddressForm.streetNr": 1392 if e.complexity.Commerce_Cart_AddressForm.StreetNr == nil { 1393 break 1394 } 1395 1396 return e.complexity.Commerce_Cart_AddressForm.StreetNr(childComplexity), true 1397 1398 case "Commerce_Cart_AddressForm.title": 1399 if e.complexity.Commerce_Cart_AddressForm.Title == nil { 1400 break 1401 } 1402 1403 return e.complexity.Commerce_Cart_AddressForm.Title(childComplexity), true 1404 1405 case "Commerce_Cart_AddressForm.vat": 1406 if e.complexity.Commerce_Cart_AddressForm.Vat == nil { 1407 break 1408 } 1409 1410 return e.complexity.Commerce_Cart_AddressForm.Vat(childComplexity), true 1411 1412 case "Commerce_Cart_AppliedDiscount.applied": 1413 if e.complexity.Commerce_Cart_AppliedDiscount.Applied == nil { 1414 break 1415 } 1416 1417 return e.complexity.Commerce_Cart_AppliedDiscount.Applied(childComplexity), true 1418 1419 case "Commerce_Cart_AppliedDiscount.campaignCode": 1420 if e.complexity.Commerce_Cart_AppliedDiscount.CampaignCode == nil { 1421 break 1422 } 1423 1424 return e.complexity.Commerce_Cart_AppliedDiscount.CampaignCode(childComplexity), true 1425 1426 case "Commerce_Cart_AppliedDiscount.couponCode": 1427 if e.complexity.Commerce_Cart_AppliedDiscount.CouponCode == nil { 1428 break 1429 } 1430 1431 return e.complexity.Commerce_Cart_AppliedDiscount.CouponCode(childComplexity), true 1432 1433 case "Commerce_Cart_AppliedDiscount.isItemRelated": 1434 if e.complexity.Commerce_Cart_AppliedDiscount.IsItemRelated == nil { 1435 break 1436 } 1437 1438 return e.complexity.Commerce_Cart_AppliedDiscount.IsItemRelated(childComplexity), true 1439 1440 case "Commerce_Cart_AppliedDiscount.label": 1441 if e.complexity.Commerce_Cart_AppliedDiscount.Label == nil { 1442 break 1443 } 1444 1445 return e.complexity.Commerce_Cart_AppliedDiscount.Label(childComplexity), true 1446 1447 case "Commerce_Cart_AppliedDiscount.sortOrder": 1448 if e.complexity.Commerce_Cart_AppliedDiscount.SortOrder == nil { 1449 break 1450 } 1451 1452 return e.complexity.Commerce_Cart_AppliedDiscount.SortOrder(childComplexity), true 1453 1454 case "Commerce_Cart_AppliedDiscount.type": 1455 if e.complexity.Commerce_Cart_AppliedDiscount.Type == nil { 1456 break 1457 } 1458 1459 return e.complexity.Commerce_Cart_AppliedDiscount.Type(childComplexity), true 1460 1461 case "Commerce_Cart_AppliedDiscounts.byCampaignCode": 1462 if e.complexity.Commerce_Cart_AppliedDiscounts.ByCampaignCode == nil { 1463 break 1464 } 1465 1466 args, err := ec.field_Commerce_Cart_AppliedDiscounts_byCampaignCode_args(context.TODO(), rawArgs) 1467 if err != nil { 1468 return 0, false 1469 } 1470 1471 return e.complexity.Commerce_Cart_AppliedDiscounts.ByCampaignCode(childComplexity, args["campaignCode"].(string)), true 1472 1473 case "Commerce_Cart_AppliedDiscounts.byType": 1474 if e.complexity.Commerce_Cart_AppliedDiscounts.ByType == nil { 1475 break 1476 } 1477 1478 args, err := ec.field_Commerce_Cart_AppliedDiscounts_byType_args(context.TODO(), rawArgs) 1479 if err != nil { 1480 return 0, false 1481 } 1482 1483 return e.complexity.Commerce_Cart_AppliedDiscounts.ByType(childComplexity, args["filterType"].(string)), true 1484 1485 case "Commerce_Cart_AppliedDiscounts.items": 1486 if e.complexity.Commerce_Cart_AppliedDiscounts.Items == nil { 1487 break 1488 } 1489 1490 return e.complexity.Commerce_Cart_AppliedDiscounts.Items(childComplexity), true 1491 1492 case "Commerce_Cart_AppliedGiftCard.applied": 1493 if e.complexity.Commerce_Cart_AppliedGiftCard.Applied == nil { 1494 break 1495 } 1496 1497 return e.complexity.Commerce_Cart_AppliedGiftCard.Applied(childComplexity), true 1498 1499 case "Commerce_Cart_AppliedGiftCard.code": 1500 if e.complexity.Commerce_Cart_AppliedGiftCard.Code == nil { 1501 break 1502 } 1503 1504 return e.complexity.Commerce_Cart_AppliedGiftCard.Code(childComplexity), true 1505 1506 case "Commerce_Cart_AppliedGiftCard.hasRemaining": 1507 if e.complexity.Commerce_Cart_AppliedGiftCard.HasRemaining == nil { 1508 break 1509 } 1510 1511 return e.complexity.Commerce_Cart_AppliedGiftCard.HasRemaining(childComplexity), true 1512 1513 case "Commerce_Cart_AppliedGiftCard.remaining": 1514 if e.complexity.Commerce_Cart_AppliedGiftCard.Remaining == nil { 1515 break 1516 } 1517 1518 return e.complexity.Commerce_Cart_AppliedGiftCard.Remaining(childComplexity), true 1519 1520 case "Commerce_Cart_BillingAddressForm.formData": 1521 if e.complexity.Commerce_Cart_BillingAddressForm.FormData == nil { 1522 break 1523 } 1524 1525 return e.complexity.Commerce_Cart_BillingAddressForm.FormData(childComplexity), true 1526 1527 case "Commerce_Cart_BillingAddressForm.processed": 1528 if e.complexity.Commerce_Cart_BillingAddressForm.Processed == nil { 1529 break 1530 } 1531 1532 return e.complexity.Commerce_Cart_BillingAddressForm.Processed(childComplexity), true 1533 1534 case "Commerce_Cart_BillingAddressForm.validationInfo": 1535 if e.complexity.Commerce_Cart_BillingAddressForm.ValidationInfo == nil { 1536 break 1537 } 1538 1539 return e.complexity.Commerce_Cart_BillingAddressForm.ValidationInfo(childComplexity), true 1540 1541 case "Commerce_Cart_Cart.additionalData": 1542 if e.complexity.Commerce_Cart_Cart.AdditionalData == nil { 1543 break 1544 } 1545 1546 return e.complexity.Commerce_Cart_Cart.AdditionalData(childComplexity), true 1547 1548 case "Commerce_Cart_Cart.allShippingTitles": 1549 if e.complexity.Commerce_Cart_Cart.AllShippingTitles == nil { 1550 break 1551 } 1552 1553 return e.complexity.Commerce_Cart_Cart.AllShippingTitles(childComplexity), true 1554 1555 case "Commerce_Cart_Cart.appliedCouponCodes": 1556 if e.complexity.Commerce_Cart_Cart.AppliedCouponCodes == nil { 1557 break 1558 } 1559 1560 return e.complexity.Commerce_Cart_Cart.AppliedCouponCodes(childComplexity), true 1561 1562 case "Commerce_Cart_Cart.appliedGiftCards": 1563 if e.complexity.Commerce_Cart_Cart.AppliedGiftCards == nil { 1564 break 1565 } 1566 1567 return e.complexity.Commerce_Cart_Cart.AppliedGiftCards(childComplexity), true 1568 1569 case "Commerce_Cart_Cart.authenticatedUserID": 1570 if e.complexity.Commerce_Cart_Cart.AuthenticatedUserID == nil { 1571 break 1572 } 1573 1574 return e.complexity.Commerce_Cart_Cart.AuthenticatedUserID(childComplexity), true 1575 1576 case "Commerce_Cart_Cart.belongsToAuthenticatedUser": 1577 if e.complexity.Commerce_Cart_Cart.BelongsToAuthenticatedUser == nil { 1578 break 1579 } 1580 1581 return e.complexity.Commerce_Cart_Cart.BelongsToAuthenticatedUser(childComplexity), true 1582 1583 case "Commerce_Cart_Cart.billingAddress": 1584 if e.complexity.Commerce_Cart_Cart.BillingAddress == nil { 1585 break 1586 } 1587 1588 return e.complexity.Commerce_Cart_Cart.BillingAddress(childComplexity), true 1589 1590 case "Commerce_Cart_Cart.defaultCurrency": 1591 if e.complexity.Commerce_Cart_Cart.DefaultCurrency == nil { 1592 break 1593 } 1594 1595 return e.complexity.Commerce_Cart_Cart.DefaultCurrency(childComplexity), true 1596 1597 case "Commerce_Cart_Cart.deliveries": 1598 if e.complexity.Commerce_Cart_Cart.Deliveries == nil { 1599 break 1600 } 1601 1602 return e.complexity.Commerce_Cart_Cart.Deliveries(childComplexity), true 1603 1604 case "Commerce_Cart_Cart.entityID": 1605 if e.complexity.Commerce_Cart_Cart.EntityID == nil { 1606 break 1607 } 1608 1609 return e.complexity.Commerce_Cart_Cart.EntityID(childComplexity), true 1610 1611 case "Commerce_Cart_Cart.getByExternalReference": 1612 if e.complexity.Commerce_Cart_Cart.GetByExternalReference == nil { 1613 break 1614 } 1615 1616 args, err := ec.field_Commerce_Cart_Cart_getByExternalReference_args(context.TODO(), rawArgs) 1617 if err != nil { 1618 return 0, false 1619 } 1620 1621 return e.complexity.Commerce_Cart_Cart.GetByExternalReference(childComplexity, args["ref"].(string)), true 1622 1623 case "Commerce_Cart_Cart.getByItemID": 1624 if e.complexity.Commerce_Cart_Cart.GetByItemID == nil { 1625 break 1626 } 1627 1628 args, err := ec.field_Commerce_Cart_Cart_getByItemID_args(context.TODO(), rawArgs) 1629 if err != nil { 1630 return 0, false 1631 } 1632 1633 return e.complexity.Commerce_Cart_Cart.GetByItemID(childComplexity, args["itemID"].(string)), true 1634 1635 case "Commerce_Cart_Cart.getCartTeaser": 1636 if e.complexity.Commerce_Cart_Cart.GetCartTeaser == nil { 1637 break 1638 } 1639 1640 return e.complexity.Commerce_Cart_Cart.GetCartTeaser(childComplexity), true 1641 1642 case "Commerce_Cart_Cart.getDeliveryByCode": 1643 if e.complexity.Commerce_Cart_Cart.GetDeliveryByCode == nil { 1644 break 1645 } 1646 1647 args, err := ec.field_Commerce_Cart_Cart_getDeliveryByCode_args(context.TODO(), rawArgs) 1648 if err != nil { 1649 return 0, false 1650 } 1651 1652 return e.complexity.Commerce_Cart_Cart.GetDeliveryByCode(childComplexity, args["deliveryCode"].(string)), true 1653 1654 case "Commerce_Cart_Cart.getDeliveryByItemID": 1655 if e.complexity.Commerce_Cart_Cart.GetDeliveryByItemID == nil { 1656 break 1657 } 1658 1659 args, err := ec.field_Commerce_Cart_Cart_getDeliveryByItemID_args(context.TODO(), rawArgs) 1660 if err != nil { 1661 return 0, false 1662 } 1663 1664 return e.complexity.Commerce_Cart_Cart.GetDeliveryByItemID(childComplexity, args["itemID"].(string)), true 1665 1666 case "Commerce_Cart_Cart.getDeliveryCodes": 1667 if e.complexity.Commerce_Cart_Cart.GetDeliveryCodes == nil { 1668 break 1669 } 1670 1671 return e.complexity.Commerce_Cart_Cart.GetDeliveryCodes(childComplexity), true 1672 1673 case "Commerce_Cart_Cart.getMainShippingEMail": 1674 if e.complexity.Commerce_Cart_Cart.GetMainShippingEMail == nil { 1675 break 1676 } 1677 1678 return e.complexity.Commerce_Cart_Cart.GetMainShippingEMail(childComplexity), true 1679 1680 case "Commerce_Cart_Cart.getPaymentReference": 1681 if e.complexity.Commerce_Cart_Cart.GetPaymentReference == nil { 1682 break 1683 } 1684 1685 return e.complexity.Commerce_Cart_Cart.GetPaymentReference(childComplexity), true 1686 1687 case "Commerce_Cart_Cart.getTotalItemsByType": 1688 if e.complexity.Commerce_Cart_Cart.GetTotalItemsByType == nil { 1689 break 1690 } 1691 1692 args, err := ec.field_Commerce_Cart_Cart_getTotalItemsByType_args(context.TODO(), rawArgs) 1693 if err != nil { 1694 return 0, false 1695 } 1696 1697 return e.complexity.Commerce_Cart_Cart.GetTotalItemsByType(childComplexity, args["typeCode"].(string)), true 1698 1699 case "Commerce_Cart_Cart.getTotalQty": 1700 if e.complexity.Commerce_Cart_Cart.GetTotalQty == nil { 1701 break 1702 } 1703 1704 args, err := ec.field_Commerce_Cart_Cart_getTotalQty_args(context.TODO(), rawArgs) 1705 if err != nil { 1706 return 0, false 1707 } 1708 1709 return e.complexity.Commerce_Cart_Cart.GetTotalQty(childComplexity, args["marketPlaceCode"].(string), args["variantCode"].(string)), true 1710 1711 case "Commerce_Cart_Cart.getVoucherSavings": 1712 if e.complexity.Commerce_Cart_Cart.GetVoucherSavings == nil { 1713 break 1714 } 1715 1716 return e.complexity.Commerce_Cart_Cart.GetVoucherSavings(childComplexity), true 1717 1718 case "Commerce_Cart_Cart.grandTotal": 1719 if e.complexity.Commerce_Cart_Cart.GrandTotal == nil { 1720 break 1721 } 1722 1723 return e.complexity.Commerce_Cart_Cart.GrandTotal(childComplexity), true 1724 1725 case "Commerce_Cart_Cart.grandTotalCharges": 1726 if e.complexity.Commerce_Cart_Cart.GrandTotalCharges == nil { 1727 break 1728 } 1729 1730 return e.complexity.Commerce_Cart_Cart.GrandTotalCharges(childComplexity), true 1731 1732 case "Commerce_Cart_Cart.hasAppliedCouponCode": 1733 if e.complexity.Commerce_Cart_Cart.HasAppliedCouponCode == nil { 1734 break 1735 } 1736 1737 return e.complexity.Commerce_Cart_Cart.HasAppliedCouponCode(childComplexity), true 1738 1739 case "Commerce_Cart_Cart.hasAppliedGiftCards": 1740 if e.complexity.Commerce_Cart_Cart.HasAppliedGiftCards == nil { 1741 break 1742 } 1743 1744 return e.complexity.Commerce_Cart_Cart.HasAppliedGiftCards(childComplexity), true 1745 1746 case "Commerce_Cart_Cart.hasDeliveryForCode": 1747 if e.complexity.Commerce_Cart_Cart.HasDeliveryForCode == nil { 1748 break 1749 } 1750 1751 args, err := ec.field_Commerce_Cart_Cart_hasDeliveryForCode_args(context.TODO(), rawArgs) 1752 if err != nil { 1753 return 0, false 1754 } 1755 1756 return e.complexity.Commerce_Cart_Cart.HasDeliveryForCode(childComplexity, args["deliveryCode"].(string)), true 1757 1758 case "Commerce_Cart_Cart.hasRemainingGiftCards": 1759 if e.complexity.Commerce_Cart_Cart.HasRemainingGiftCards == nil { 1760 break 1761 } 1762 1763 return e.complexity.Commerce_Cart_Cart.HasRemainingGiftCards(childComplexity), true 1764 1765 case "Commerce_Cart_Cart.hasShippingCosts": 1766 if e.complexity.Commerce_Cart_Cart.HasShippingCosts == nil { 1767 break 1768 } 1769 1770 return e.complexity.Commerce_Cart_Cart.HasShippingCosts(childComplexity), true 1771 1772 case "Commerce_Cart_Cart.id": 1773 if e.complexity.Commerce_Cart_Cart.ID == nil { 1774 break 1775 } 1776 1777 return e.complexity.Commerce_Cart_Cart.ID(childComplexity), true 1778 1779 case "Commerce_Cart_Cart.isEmpty": 1780 if e.complexity.Commerce_Cart_Cart.IsEmpty == nil { 1781 break 1782 } 1783 1784 return e.complexity.Commerce_Cart_Cart.IsEmpty(childComplexity), true 1785 1786 case "Commerce_Cart_Cart.isPaymentSelected": 1787 if e.complexity.Commerce_Cart_Cart.IsPaymentSelected == nil { 1788 break 1789 } 1790 1791 return e.complexity.Commerce_Cart_Cart.IsPaymentSelected(childComplexity), true 1792 1793 case "Commerce_Cart_Cart.itemCount": 1794 if e.complexity.Commerce_Cart_Cart.ItemCount == nil { 1795 break 1796 } 1797 1798 return e.complexity.Commerce_Cart_Cart.ItemCount(childComplexity), true 1799 1800 case "Commerce_Cart_Cart.itemRelatedDiscountAmount": 1801 if e.complexity.Commerce_Cart_Cart.ItemRelatedDiscountAmount == nil { 1802 break 1803 } 1804 1805 return e.complexity.Commerce_Cart_Cart.ItemRelatedDiscountAmount(childComplexity), true 1806 1807 case "Commerce_Cart_Cart.nonItemRelatedDiscountAmount": 1808 if e.complexity.Commerce_Cart_Cart.NonItemRelatedDiscountAmount == nil { 1809 break 1810 } 1811 1812 return e.complexity.Commerce_Cart_Cart.NonItemRelatedDiscountAmount(childComplexity), true 1813 1814 case "Commerce_Cart_Cart.paymentSelection": 1815 if e.complexity.Commerce_Cart_Cart.PaymentSelection == nil { 1816 break 1817 } 1818 1819 return e.complexity.Commerce_Cart_Cart.PaymentSelection(childComplexity), true 1820 1821 case "Commerce_Cart_Cart.productCount": 1822 if e.complexity.Commerce_Cart_Cart.ProductCount == nil { 1823 break 1824 } 1825 1826 return e.complexity.Commerce_Cart_Cart.ProductCount(childComplexity), true 1827 1828 case "Commerce_Cart_Cart.purchaser": 1829 if e.complexity.Commerce_Cart_Cart.Purchaser == nil { 1830 break 1831 } 1832 1833 return e.complexity.Commerce_Cart_Cart.Purchaser(childComplexity), true 1834 1835 case "Commerce_Cart_Cart.shippingGross": 1836 if e.complexity.Commerce_Cart_Cart.ShippingGross == nil { 1837 break 1838 } 1839 1840 return e.complexity.Commerce_Cart_Cart.ShippingGross(childComplexity), true 1841 1842 case "Commerce_Cart_Cart.shippingGrossWithDiscounts": 1843 if e.complexity.Commerce_Cart_Cart.ShippingGrossWithDiscounts == nil { 1844 break 1845 } 1846 1847 return e.complexity.Commerce_Cart_Cart.ShippingGrossWithDiscounts(childComplexity), true 1848 1849 case "Commerce_Cart_Cart.shippingNet": 1850 if e.complexity.Commerce_Cart_Cart.ShippingNet == nil { 1851 break 1852 } 1853 1854 return e.complexity.Commerce_Cart_Cart.ShippingNet(childComplexity), true 1855 1856 case "Commerce_Cart_Cart.shippingNetWithDiscounts": 1857 if e.complexity.Commerce_Cart_Cart.ShippingNetWithDiscounts == nil { 1858 break 1859 } 1860 1861 return e.complexity.Commerce_Cart_Cart.ShippingNetWithDiscounts(childComplexity), true 1862 1863 case "Commerce_Cart_Cart.subTotalGross": 1864 if e.complexity.Commerce_Cart_Cart.SubTotalGross == nil { 1865 break 1866 } 1867 1868 return e.complexity.Commerce_Cart_Cart.SubTotalGross(childComplexity), true 1869 1870 case "Commerce_Cart_Cart.subTotalGrossWithDiscounts": 1871 if e.complexity.Commerce_Cart_Cart.SubTotalGrossWithDiscounts == nil { 1872 break 1873 } 1874 1875 return e.complexity.Commerce_Cart_Cart.SubTotalGrossWithDiscounts(childComplexity), true 1876 1877 case "Commerce_Cart_Cart.subTotalNet": 1878 if e.complexity.Commerce_Cart_Cart.SubTotalNet == nil { 1879 break 1880 } 1881 1882 return e.complexity.Commerce_Cart_Cart.SubTotalNet(childComplexity), true 1883 1884 case "Commerce_Cart_Cart.subTotalNetWithDiscounts": 1885 if e.complexity.Commerce_Cart_Cart.SubTotalNetWithDiscounts == nil { 1886 break 1887 } 1888 1889 return e.complexity.Commerce_Cart_Cart.SubTotalNetWithDiscounts(childComplexity), true 1890 1891 case "Commerce_Cart_Cart.sumTotalTaxAmount": 1892 if e.complexity.Commerce_Cart_Cart.SumTotalTaxAmount == nil { 1893 break 1894 } 1895 1896 return e.complexity.Commerce_Cart_Cart.SumTotalTaxAmount(childComplexity), true 1897 1898 case "Commerce_Cart_Cart.totalDiscountAmount": 1899 if e.complexity.Commerce_Cart_Cart.TotalDiscountAmount == nil { 1900 break 1901 } 1902 1903 return e.complexity.Commerce_Cart_Cart.TotalDiscountAmount(childComplexity), true 1904 1905 case "Commerce_Cart_Cart.totalitems": 1906 if e.complexity.Commerce_Cart_Cart.Totalitems == nil { 1907 break 1908 } 1909 1910 return e.complexity.Commerce_Cart_Cart.Totalitems(childComplexity), true 1911 1912 case "Commerce_Cart_CouponCode.code": 1913 if e.complexity.Commerce_Cart_CouponCode.Code == nil { 1914 break 1915 } 1916 1917 return e.complexity.Commerce_Cart_CouponCode.Code(childComplexity), true 1918 1919 case "Commerce_Cart_CustomAttributes.get": 1920 if e.complexity.Commerce_Cart_CustomAttributes.Get == nil { 1921 break 1922 } 1923 1924 args, err := ec.field_Commerce_Cart_CustomAttributes_get_args(context.TODO(), rawArgs) 1925 if err != nil { 1926 return 0, false 1927 } 1928 1929 return e.complexity.Commerce_Cart_CustomAttributes.Get(childComplexity, args["key"].(string)), true 1930 1931 case "Commerce_Cart_DecoratedCart.cart": 1932 if e.complexity.Commerce_Cart_DecoratedCart.Cart == nil { 1933 break 1934 } 1935 1936 return e.complexity.Commerce_Cart_DecoratedCart.Cart(childComplexity), true 1937 1938 case "Commerce_Cart_DecoratedCart.cartSummary": 1939 if e.complexity.Commerce_Cart_DecoratedCart.CartSummary == nil { 1940 break 1941 } 1942 1943 return e.complexity.Commerce_Cart_DecoratedCart.CartSummary(childComplexity), true 1944 1945 case "Commerce_Cart_DecoratedCart.decoratedDeliveries": 1946 if e.complexity.Commerce_Cart_DecoratedCart.DecoratedDeliveries == nil { 1947 break 1948 } 1949 1950 return e.complexity.Commerce_Cart_DecoratedCart.DecoratedDeliveries(childComplexity), true 1951 1952 case "Commerce_Cart_DecoratedCart.getAllPaymentRequiredItems": 1953 if e.complexity.Commerce_Cart_DecoratedCart.GetAllPaymentRequiredItems == nil { 1954 break 1955 } 1956 1957 return e.complexity.Commerce_Cart_DecoratedCart.GetAllPaymentRequiredItems(childComplexity), true 1958 1959 case "Commerce_Cart_DecoratedCart.getDecoratedDeliveryByCode": 1960 if e.complexity.Commerce_Cart_DecoratedCart.GetDecoratedDeliveryByCode == nil { 1961 break 1962 } 1963 1964 args, err := ec.field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_args(context.TODO(), rawArgs) 1965 if err != nil { 1966 return 0, false 1967 } 1968 1969 return e.complexity.Commerce_Cart_DecoratedCart.GetDecoratedDeliveryByCode(childComplexity, args["deliveryCode"].(string)), true 1970 1971 case "Commerce_Cart_DecoratedDelivery.decoratedItems": 1972 if e.complexity.Commerce_Cart_DecoratedDelivery.DecoratedItems == nil { 1973 break 1974 } 1975 1976 return e.complexity.Commerce_Cart_DecoratedDelivery.DecoratedItems(childComplexity), true 1977 1978 case "Commerce_Cart_DecoratedDelivery.delivery": 1979 if e.complexity.Commerce_Cart_DecoratedDelivery.Delivery == nil { 1980 break 1981 } 1982 1983 return e.complexity.Commerce_Cart_DecoratedDelivery.Delivery(childComplexity), true 1984 1985 case "Commerce_Cart_DecoratedItem.item": 1986 if e.complexity.Commerce_Cart_DecoratedItem.Item == nil { 1987 break 1988 } 1989 1990 return e.complexity.Commerce_Cart_DecoratedItem.Item(childComplexity), true 1991 1992 case "Commerce_Cart_DecoratedItem.product": 1993 if e.complexity.Commerce_Cart_DecoratedItem.Product == nil { 1994 break 1995 } 1996 1997 return e.complexity.Commerce_Cart_DecoratedItem.Product(childComplexity), true 1998 1999 case "Commerce_Cart_DefaultPaymentSelection.cartSplit": 2000 if e.complexity.Commerce_Cart_DefaultPaymentSelection.CartSplit == nil { 2001 break 2002 } 2003 2004 return e.complexity.Commerce_Cart_DefaultPaymentSelection.CartSplit(childComplexity), true 2005 2006 case "Commerce_Cart_DefaultPaymentSelection.gateway": 2007 if e.complexity.Commerce_Cart_DefaultPaymentSelection.Gateway == nil { 2008 break 2009 } 2010 2011 return e.complexity.Commerce_Cart_DefaultPaymentSelection.Gateway(childComplexity), true 2012 2013 case "Commerce_Cart_DefaultPaymentSelection.totalValue": 2014 if e.complexity.Commerce_Cart_DefaultPaymentSelection.TotalValue == nil { 2015 break 2016 } 2017 2018 return e.complexity.Commerce_Cart_DefaultPaymentSelection.TotalValue(childComplexity), true 2019 2020 case "Commerce_Cart_Delivery.cartitems": 2021 if e.complexity.Commerce_Cart_Delivery.Cartitems == nil { 2022 break 2023 } 2024 2025 return e.complexity.Commerce_Cart_Delivery.Cartitems(childComplexity), true 2026 2027 case "Commerce_Cart_Delivery.deliveryInfo": 2028 if e.complexity.Commerce_Cart_Delivery.DeliveryInfo == nil { 2029 break 2030 } 2031 2032 return e.complexity.Commerce_Cart_Delivery.DeliveryInfo(childComplexity), true 2033 2034 case "Commerce_Cart_Delivery.grandTotal": 2035 if e.complexity.Commerce_Cart_Delivery.GrandTotal == nil { 2036 break 2037 } 2038 2039 return e.complexity.Commerce_Cart_Delivery.GrandTotal(childComplexity), true 2040 2041 case "Commerce_Cart_Delivery.hasItems": 2042 if e.complexity.Commerce_Cart_Delivery.HasItems == nil { 2043 break 2044 } 2045 2046 return e.complexity.Commerce_Cart_Delivery.HasItems(childComplexity), true 2047 2048 case "Commerce_Cart_Delivery.itemRelatedDiscountAmount": 2049 if e.complexity.Commerce_Cart_Delivery.ItemRelatedDiscountAmount == nil { 2050 break 2051 } 2052 2053 return e.complexity.Commerce_Cart_Delivery.ItemRelatedDiscountAmount(childComplexity), true 2054 2055 case "Commerce_Cart_Delivery.nonItemRelatedDiscountAmount": 2056 if e.complexity.Commerce_Cart_Delivery.NonItemRelatedDiscountAmount == nil { 2057 break 2058 } 2059 2060 return e.complexity.Commerce_Cart_Delivery.NonItemRelatedDiscountAmount(childComplexity), true 2061 2062 case "Commerce_Cart_Delivery.shippingItem": 2063 if e.complexity.Commerce_Cart_Delivery.ShippingItem == nil { 2064 break 2065 } 2066 2067 return e.complexity.Commerce_Cart_Delivery.ShippingItem(childComplexity), true 2068 2069 case "Commerce_Cart_Delivery.subTotalGross": 2070 if e.complexity.Commerce_Cart_Delivery.SubTotalGross == nil { 2071 break 2072 } 2073 2074 return e.complexity.Commerce_Cart_Delivery.SubTotalGross(childComplexity), true 2075 2076 case "Commerce_Cart_Delivery.subTotalGrossWithDiscounts": 2077 if e.complexity.Commerce_Cart_Delivery.SubTotalGrossWithDiscounts == nil { 2078 break 2079 } 2080 2081 return e.complexity.Commerce_Cart_Delivery.SubTotalGrossWithDiscounts(childComplexity), true 2082 2083 case "Commerce_Cart_Delivery.subTotalNet": 2084 if e.complexity.Commerce_Cart_Delivery.SubTotalNet == nil { 2085 break 2086 } 2087 2088 return e.complexity.Commerce_Cart_Delivery.SubTotalNet(childComplexity), true 2089 2090 case "Commerce_Cart_Delivery.subTotalNetWithDiscounts": 2091 if e.complexity.Commerce_Cart_Delivery.SubTotalNetWithDiscounts == nil { 2092 break 2093 } 2094 2095 return e.complexity.Commerce_Cart_Delivery.SubTotalNetWithDiscounts(childComplexity), true 2096 2097 case "Commerce_Cart_Delivery.sumTotalTaxAmount": 2098 if e.complexity.Commerce_Cart_Delivery.SumTotalTaxAmount == nil { 2099 break 2100 } 2101 2102 return e.complexity.Commerce_Cart_Delivery.SumTotalTaxAmount(childComplexity), true 2103 2104 case "Commerce_Cart_Delivery.totalDiscountAmount": 2105 if e.complexity.Commerce_Cart_Delivery.TotalDiscountAmount == nil { 2106 break 2107 } 2108 2109 return e.complexity.Commerce_Cart_Delivery.TotalDiscountAmount(childComplexity), true 2110 2111 case "Commerce_Cart_DeliveryAddressForm.carrier": 2112 if e.complexity.Commerce_Cart_DeliveryAddressForm.Carrier == nil { 2113 break 2114 } 2115 2116 return e.complexity.Commerce_Cart_DeliveryAddressForm.Carrier(childComplexity), true 2117 2118 case "Commerce_Cart_DeliveryAddressForm.deliveryCode": 2119 if e.complexity.Commerce_Cart_DeliveryAddressForm.DeliveryCode == nil { 2120 break 2121 } 2122 2123 return e.complexity.Commerce_Cart_DeliveryAddressForm.DeliveryCode(childComplexity), true 2124 2125 case "Commerce_Cart_DeliveryAddressForm.desiredTime": 2126 if e.complexity.Commerce_Cart_DeliveryAddressForm.DesiredTime == nil { 2127 break 2128 } 2129 2130 return e.complexity.Commerce_Cart_DeliveryAddressForm.DesiredTime(childComplexity), true 2131 2132 case "Commerce_Cart_DeliveryAddressForm.formData": 2133 if e.complexity.Commerce_Cart_DeliveryAddressForm.FormData == nil { 2134 break 2135 } 2136 2137 return e.complexity.Commerce_Cart_DeliveryAddressForm.FormData(childComplexity), true 2138 2139 case "Commerce_Cart_DeliveryAddressForm.method": 2140 if e.complexity.Commerce_Cart_DeliveryAddressForm.Method == nil { 2141 break 2142 } 2143 2144 return e.complexity.Commerce_Cart_DeliveryAddressForm.Method(childComplexity), true 2145 2146 case "Commerce_Cart_DeliveryAddressForm.processed": 2147 if e.complexity.Commerce_Cart_DeliveryAddressForm.Processed == nil { 2148 break 2149 } 2150 2151 return e.complexity.Commerce_Cart_DeliveryAddressForm.Processed(childComplexity), true 2152 2153 case "Commerce_Cart_DeliveryAddressForm.useBillingAddress": 2154 if e.complexity.Commerce_Cart_DeliveryAddressForm.UseBillingAddress == nil { 2155 break 2156 } 2157 2158 return e.complexity.Commerce_Cart_DeliveryAddressForm.UseBillingAddress(childComplexity), true 2159 2160 case "Commerce_Cart_DeliveryAddressForm.validationInfo": 2161 if e.complexity.Commerce_Cart_DeliveryAddressForm.ValidationInfo == nil { 2162 break 2163 } 2164 2165 return e.complexity.Commerce_Cart_DeliveryAddressForm.ValidationInfo(childComplexity), true 2166 2167 case "Commerce_Cart_DeliveryInfo.additionalData": 2168 if e.complexity.Commerce_Cart_DeliveryInfo.AdditionalData == nil { 2169 break 2170 } 2171 2172 return e.complexity.Commerce_Cart_DeliveryInfo.AdditionalData(childComplexity), true 2173 2174 case "Commerce_Cart_DeliveryInfo.carrier": 2175 if e.complexity.Commerce_Cart_DeliveryInfo.Carrier == nil { 2176 break 2177 } 2178 2179 return e.complexity.Commerce_Cart_DeliveryInfo.Carrier(childComplexity), true 2180 2181 case "Commerce_Cart_DeliveryInfo.code": 2182 if e.complexity.Commerce_Cart_DeliveryInfo.Code == nil { 2183 break 2184 } 2185 2186 return e.complexity.Commerce_Cart_DeliveryInfo.Code(childComplexity), true 2187 2188 case "Commerce_Cart_DeliveryInfo.deliveryLocation": 2189 if e.complexity.Commerce_Cart_DeliveryInfo.DeliveryLocation == nil { 2190 break 2191 } 2192 2193 return e.complexity.Commerce_Cart_DeliveryInfo.DeliveryLocation(childComplexity), true 2194 2195 case "Commerce_Cart_DeliveryInfo.desiredTime": 2196 if e.complexity.Commerce_Cart_DeliveryInfo.DesiredTime == nil { 2197 break 2198 } 2199 2200 return e.complexity.Commerce_Cart_DeliveryInfo.DesiredTime(childComplexity), true 2201 2202 case "Commerce_Cart_DeliveryInfo.method": 2203 if e.complexity.Commerce_Cart_DeliveryInfo.Method == nil { 2204 break 2205 } 2206 2207 return e.complexity.Commerce_Cart_DeliveryInfo.Method(childComplexity), true 2208 2209 case "Commerce_Cart_DeliveryInfo.workflow": 2210 if e.complexity.Commerce_Cart_DeliveryInfo.Workflow == nil { 2211 break 2212 } 2213 2214 return e.complexity.Commerce_Cart_DeliveryInfo.Workflow(childComplexity), true 2215 2216 case "Commerce_Cart_DeliveryLocation.address": 2217 if e.complexity.Commerce_Cart_DeliveryLocation.Address == nil { 2218 break 2219 } 2220 2221 return e.complexity.Commerce_Cart_DeliveryLocation.Address(childComplexity), true 2222 2223 case "Commerce_Cart_DeliveryLocation.code": 2224 if e.complexity.Commerce_Cart_DeliveryLocation.Code == nil { 2225 break 2226 } 2227 2228 return e.complexity.Commerce_Cart_DeliveryLocation.Code(childComplexity), true 2229 2230 case "Commerce_Cart_DeliveryLocation.type": 2231 if e.complexity.Commerce_Cart_DeliveryLocation.Type == nil { 2232 break 2233 } 2234 2235 return e.complexity.Commerce_Cart_DeliveryLocation.Type(childComplexity), true 2236 2237 case "Commerce_Cart_DeliveryLocation.useBillingAddress": 2238 if e.complexity.Commerce_Cart_DeliveryLocation.UseBillingAddress == nil { 2239 break 2240 } 2241 2242 return e.complexity.Commerce_Cart_DeliveryLocation.UseBillingAddress(childComplexity), true 2243 2244 case "Commerce_Cart_ExistingCustomerData.id": 2245 if e.complexity.Commerce_Cart_ExistingCustomerData.ID == nil { 2246 break 2247 } 2248 2249 return e.complexity.Commerce_Cart_ExistingCustomerData.ID(childComplexity), true 2250 2251 case "Commerce_Cart_Form_Error.defaultLabel": 2252 if e.complexity.Commerce_Cart_Form_Error.DefaultLabel == nil { 2253 break 2254 } 2255 2256 return e.complexity.Commerce_Cart_Form_Error.DefaultLabel(childComplexity), true 2257 2258 case "Commerce_Cart_Form_Error.messageKey": 2259 if e.complexity.Commerce_Cart_Form_Error.MessageKey == nil { 2260 break 2261 } 2262 2263 return e.complexity.Commerce_Cart_Form_Error.MessageKey(childComplexity), true 2264 2265 case "Commerce_Cart_Form_FieldError.defaultLabel": 2266 if e.complexity.Commerce_Cart_Form_FieldError.DefaultLabel == nil { 2267 break 2268 } 2269 2270 return e.complexity.Commerce_Cart_Form_FieldError.DefaultLabel(childComplexity), true 2271 2272 case "Commerce_Cart_Form_FieldError.fieldName": 2273 if e.complexity.Commerce_Cart_Form_FieldError.FieldName == nil { 2274 break 2275 } 2276 2277 return e.complexity.Commerce_Cart_Form_FieldError.FieldName(childComplexity), true 2278 2279 case "Commerce_Cart_Form_FieldError.messageKey": 2280 if e.complexity.Commerce_Cart_Form_FieldError.MessageKey == nil { 2281 break 2282 } 2283 2284 return e.complexity.Commerce_Cart_Form_FieldError.MessageKey(childComplexity), true 2285 2286 case "Commerce_Cart_Form_ValidationInfo.fieldErrors": 2287 if e.complexity.Commerce_Cart_Form_ValidationInfo.FieldErrors == nil { 2288 break 2289 } 2290 2291 return e.complexity.Commerce_Cart_Form_ValidationInfo.FieldErrors(childComplexity), true 2292 2293 case "Commerce_Cart_Form_ValidationInfo.generalErrors": 2294 if e.complexity.Commerce_Cart_Form_ValidationInfo.GeneralErrors == nil { 2295 break 2296 } 2297 2298 return e.complexity.Commerce_Cart_Form_ValidationInfo.GeneralErrors(childComplexity), true 2299 2300 case "Commerce_Cart_Item.additionalDataKeys": 2301 if e.complexity.Commerce_Cart_Item.AdditionalDataKeys == nil { 2302 break 2303 } 2304 2305 return e.complexity.Commerce_Cart_Item.AdditionalDataKeys(childComplexity), true 2306 2307 case "Commerce_Cart_Item.additionalDataValues": 2308 if e.complexity.Commerce_Cart_Item.AdditionalDataValues == nil { 2309 break 2310 } 2311 2312 return e.complexity.Commerce_Cart_Item.AdditionalDataValues(childComplexity), true 2313 2314 case "Commerce_Cart_Item.appliedDiscounts": 2315 if e.complexity.Commerce_Cart_Item.AppliedDiscounts == nil { 2316 break 2317 } 2318 2319 return e.complexity.Commerce_Cart_Item.AppliedDiscounts(childComplexity), true 2320 2321 case "Commerce_Cart_Item.externalReference": 2322 if e.complexity.Commerce_Cart_Item.ExternalReference == nil { 2323 break 2324 } 2325 2326 return e.complexity.Commerce_Cart_Item.ExternalReference(childComplexity), true 2327 2328 case "Commerce_Cart_Item.getAdditionalData": 2329 if e.complexity.Commerce_Cart_Item.GetAdditionalData == nil { 2330 break 2331 } 2332 2333 args, err := ec.field_Commerce_Cart_Item_getAdditionalData_args(context.TODO(), rawArgs) 2334 if err != nil { 2335 return 0, false 2336 } 2337 2338 return e.complexity.Commerce_Cart_Item.GetAdditionalData(childComplexity, args["key"].(string)), true 2339 2340 case "Commerce_Cart_Item.hasAdditionalDataKey": 2341 if e.complexity.Commerce_Cart_Item.HasAdditionalDataKey == nil { 2342 break 2343 } 2344 2345 args, err := ec.field_Commerce_Cart_Item_hasAdditionalDataKey_args(context.TODO(), rawArgs) 2346 if err != nil { 2347 return 0, false 2348 } 2349 2350 return e.complexity.Commerce_Cart_Item.HasAdditionalDataKey(childComplexity, args["key"].(string)), true 2351 2352 case "Commerce_Cart_Item.id": 2353 if e.complexity.Commerce_Cart_Item.ID == nil { 2354 break 2355 } 2356 2357 return e.complexity.Commerce_Cart_Item.ID(childComplexity), true 2358 2359 case "Commerce_Cart_Item.marketplaceCode": 2360 if e.complexity.Commerce_Cart_Item.MarketplaceCode == nil { 2361 break 2362 } 2363 2364 return e.complexity.Commerce_Cart_Item.MarketplaceCode(childComplexity), true 2365 2366 case "Commerce_Cart_Item.productName": 2367 if e.complexity.Commerce_Cart_Item.ProductName == nil { 2368 break 2369 } 2370 2371 return e.complexity.Commerce_Cart_Item.ProductName(childComplexity), true 2372 2373 case "Commerce_Cart_Item.qty": 2374 if e.complexity.Commerce_Cart_Item.Qty == nil { 2375 break 2376 } 2377 2378 return e.complexity.Commerce_Cart_Item.Qty(childComplexity), true 2379 2380 case "Commerce_Cart_Item.rowPriceGross": 2381 if e.complexity.Commerce_Cart_Item.RowPriceGross == nil { 2382 break 2383 } 2384 2385 return e.complexity.Commerce_Cart_Item.RowPriceGross(childComplexity), true 2386 2387 case "Commerce_Cart_Item.rowPriceNet": 2388 if e.complexity.Commerce_Cart_Item.RowPriceNet == nil { 2389 break 2390 } 2391 2392 return e.complexity.Commerce_Cart_Item.RowPriceNet(childComplexity), true 2393 2394 case "Commerce_Cart_Item.singlePriceGross": 2395 if e.complexity.Commerce_Cart_Item.SinglePriceGross == nil { 2396 break 2397 } 2398 2399 return e.complexity.Commerce_Cart_Item.SinglePriceGross(childComplexity), true 2400 2401 case "Commerce_Cart_Item.singlePriceNet": 2402 if e.complexity.Commerce_Cart_Item.SinglePriceNet == nil { 2403 break 2404 } 2405 2406 return e.complexity.Commerce_Cart_Item.SinglePriceNet(childComplexity), true 2407 2408 case "Commerce_Cart_Item.sourceID": 2409 if e.complexity.Commerce_Cart_Item.SourceID == nil { 2410 break 2411 } 2412 2413 return e.complexity.Commerce_Cart_Item.SourceID(childComplexity), true 2414 2415 case "Commerce_Cart_Item.variantMarketPlaceCode": 2416 if e.complexity.Commerce_Cart_Item.VariantMarketPlaceCode == nil { 2417 break 2418 } 2419 2420 return e.complexity.Commerce_Cart_Item.VariantMarketPlaceCode(childComplexity), true 2421 2422 case "Commerce_Cart_ItemValidationError.errorMessageKey": 2423 if e.complexity.Commerce_Cart_ItemValidationError.ErrorMessageKey == nil { 2424 break 2425 } 2426 2427 return e.complexity.Commerce_Cart_ItemValidationError.ErrorMessageKey(childComplexity), true 2428 2429 case "Commerce_Cart_ItemValidationError.itemID": 2430 if e.complexity.Commerce_Cart_ItemValidationError.ItemID == nil { 2431 break 2432 } 2433 2434 return e.complexity.Commerce_Cart_ItemValidationError.ItemID(childComplexity), true 2435 2436 case "Commerce_Cart_KeyValue.key": 2437 if e.complexity.Commerce_Cart_KeyValue.Key == nil { 2438 break 2439 } 2440 2441 return e.complexity.Commerce_Cart_KeyValue.Key(childComplexity), true 2442 2443 case "Commerce_Cart_KeyValue.value": 2444 if e.complexity.Commerce_Cart_KeyValue.Value == nil { 2445 break 2446 } 2447 2448 return e.complexity.Commerce_Cart_KeyValue.Value(childComplexity), true 2449 2450 case "Commerce_Cart_PaymentSelection_Split.charge": 2451 if e.complexity.Commerce_Cart_PaymentSelection_Split.Charge == nil { 2452 break 2453 } 2454 2455 return e.complexity.Commerce_Cart_PaymentSelection_Split.Charge(childComplexity), true 2456 2457 case "Commerce_Cart_PaymentSelection_Split.qualifier": 2458 if e.complexity.Commerce_Cart_PaymentSelection_Split.Qualifier == nil { 2459 break 2460 } 2461 2462 return e.complexity.Commerce_Cart_PaymentSelection_Split.Qualifier(childComplexity), true 2463 2464 case "Commerce_Cart_PaymentSelection_SplitQualifier.reference": 2465 if e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.ChargeReference == nil { 2466 break 2467 } 2468 2469 return e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.ChargeReference(childComplexity), true 2470 2471 case "Commerce_Cart_PaymentSelection_SplitQualifier.type": 2472 if e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.ChargeType == nil { 2473 break 2474 } 2475 2476 return e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.ChargeType(childComplexity), true 2477 2478 case "Commerce_Cart_PaymentSelection_SplitQualifier.method": 2479 if e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.Method == nil { 2480 break 2481 } 2482 2483 return e.complexity.Commerce_Cart_PaymentSelection_SplitQualifier.Method(childComplexity), true 2484 2485 case "Commerce_Cart_Person.address": 2486 if e.complexity.Commerce_Cart_Person.Address == nil { 2487 break 2488 } 2489 2490 return e.complexity.Commerce_Cart_Person.Address(childComplexity), true 2491 2492 case "Commerce_Cart_Person.existingCustomerData": 2493 if e.complexity.Commerce_Cart_Person.ExistingCustomerData == nil { 2494 break 2495 } 2496 2497 return e.complexity.Commerce_Cart_Person.ExistingCustomerData(childComplexity), true 2498 2499 case "Commerce_Cart_Person.personalDetails": 2500 if e.complexity.Commerce_Cart_Person.PersonalDetails == nil { 2501 break 2502 } 2503 2504 return e.complexity.Commerce_Cart_Person.PersonalDetails(childComplexity), true 2505 2506 case "Commerce_Cart_PersonalDetails.dateOfBirth": 2507 if e.complexity.Commerce_Cart_PersonalDetails.DateOfBirth == nil { 2508 break 2509 } 2510 2511 return e.complexity.Commerce_Cart_PersonalDetails.DateOfBirth(childComplexity), true 2512 2513 case "Commerce_Cart_PersonalDetails.nationality": 2514 if e.complexity.Commerce_Cart_PersonalDetails.Nationality == nil { 2515 break 2516 } 2517 2518 return e.complexity.Commerce_Cart_PersonalDetails.Nationality(childComplexity), true 2519 2520 case "Commerce_Cart_PersonalDetails.passportCountry": 2521 if e.complexity.Commerce_Cart_PersonalDetails.PassportCountry == nil { 2522 break 2523 } 2524 2525 return e.complexity.Commerce_Cart_PersonalDetails.PassportCountry(childComplexity), true 2526 2527 case "Commerce_Cart_PersonalDetails.passportNumber": 2528 if e.complexity.Commerce_Cart_PersonalDetails.PassportNumber == nil { 2529 break 2530 } 2531 2532 return e.complexity.Commerce_Cart_PersonalDetails.PassportNumber(childComplexity), true 2533 2534 case "Commerce_Cart_PlacedOrderInfo.deliveryCode": 2535 if e.complexity.Commerce_Cart_PlacedOrderInfo.DeliveryCode == nil { 2536 break 2537 } 2538 2539 return e.complexity.Commerce_Cart_PlacedOrderInfo.DeliveryCode(childComplexity), true 2540 2541 case "Commerce_Cart_PlacedOrderInfo.orderNumber": 2542 if e.complexity.Commerce_Cart_PlacedOrderInfo.OrderNumber == nil { 2543 break 2544 } 2545 2546 return e.complexity.Commerce_Cart_PlacedOrderInfo.OrderNumber(childComplexity), true 2547 2548 case "Commerce_Cart_PricedCartItem.amount": 2549 if e.complexity.Commerce_Cart_PricedCartItem.Amount == nil { 2550 break 2551 } 2552 2553 return e.complexity.Commerce_Cart_PricedCartItem.Amount(childComplexity), true 2554 2555 case "Commerce_Cart_PricedCartItem.itemID": 2556 if e.complexity.Commerce_Cart_PricedCartItem.ItemID == nil { 2557 break 2558 } 2559 2560 return e.complexity.Commerce_Cart_PricedCartItem.ItemID(childComplexity), true 2561 2562 case "Commerce_Cart_PricedItems.cartItems": 2563 if e.complexity.Commerce_Cart_PricedItems.CartItems == nil { 2564 break 2565 } 2566 2567 return e.complexity.Commerce_Cart_PricedItems.CartItems(childComplexity), true 2568 2569 case "Commerce_Cart_PricedItems.shippingItems": 2570 if e.complexity.Commerce_Cart_PricedItems.ShippingItems == nil { 2571 break 2572 } 2573 2574 return e.complexity.Commerce_Cart_PricedItems.ShippingItems(childComplexity), true 2575 2576 case "Commerce_Cart_PricedItems.totalItems": 2577 if e.complexity.Commerce_Cart_PricedItems.TotalItems == nil { 2578 break 2579 } 2580 2581 return e.complexity.Commerce_Cart_PricedItems.TotalItems(childComplexity), true 2582 2583 case "Commerce_Cart_PricedShippingItem.amount": 2584 if e.complexity.Commerce_Cart_PricedShippingItem.Amount == nil { 2585 break 2586 } 2587 2588 return e.complexity.Commerce_Cart_PricedShippingItem.Amount(childComplexity), true 2589 2590 case "Commerce_Cart_PricedShippingItem.deliveryInfoCode": 2591 if e.complexity.Commerce_Cart_PricedShippingItem.DeliveryInfoCode == nil { 2592 break 2593 } 2594 2595 return e.complexity.Commerce_Cart_PricedShippingItem.DeliveryInfoCode(childComplexity), true 2596 2597 case "Commerce_Cart_PricedTotalItem.amount": 2598 if e.complexity.Commerce_Cart_PricedTotalItem.Amount == nil { 2599 break 2600 } 2601 2602 return e.complexity.Commerce_Cart_PricedTotalItem.Amount(childComplexity), true 2603 2604 case "Commerce_Cart_PricedTotalItem.code": 2605 if e.complexity.Commerce_Cart_PricedTotalItem.Code == nil { 2606 break 2607 } 2608 2609 return e.complexity.Commerce_Cart_PricedTotalItem.Code(childComplexity), true 2610 2611 case "Commerce_Cart_QtyRestrictionResult.isRestricted": 2612 if e.complexity.Commerce_Cart_QtyRestrictionResult.IsRestricted == nil { 2613 break 2614 } 2615 2616 return e.complexity.Commerce_Cart_QtyRestrictionResult.IsRestricted(childComplexity), true 2617 2618 case "Commerce_Cart_QtyRestrictionResult.maxAllowed": 2619 if e.complexity.Commerce_Cart_QtyRestrictionResult.MaxAllowed == nil { 2620 break 2621 } 2622 2623 return e.complexity.Commerce_Cart_QtyRestrictionResult.MaxAllowed(childComplexity), true 2624 2625 case "Commerce_Cart_QtyRestrictionResult.remainingDifference": 2626 if e.complexity.Commerce_Cart_QtyRestrictionResult.RemainingDifference == nil { 2627 break 2628 } 2629 2630 return e.complexity.Commerce_Cart_QtyRestrictionResult.RemainingDifference(childComplexity), true 2631 2632 case "Commerce_Cart_QtyRestrictionResult.restrictorName": 2633 if e.complexity.Commerce_Cart_QtyRestrictionResult.RestrictorName == nil { 2634 break 2635 } 2636 2637 return e.complexity.Commerce_Cart_QtyRestrictionResult.RestrictorName(childComplexity), true 2638 2639 case "Commerce_Cart_SelectedPaymentResult.processed": 2640 if e.complexity.Commerce_Cart_SelectedPaymentResult.Processed == nil { 2641 break 2642 } 2643 2644 return e.complexity.Commerce_Cart_SelectedPaymentResult.Processed(childComplexity), true 2645 2646 case "Commerce_Cart_SelectedPaymentResult.validationInfo": 2647 if e.complexity.Commerce_Cart_SelectedPaymentResult.ValidationInfo == nil { 2648 break 2649 } 2650 2651 return e.complexity.Commerce_Cart_SelectedPaymentResult.ValidationInfo(childComplexity), true 2652 2653 case "Commerce_Cart_ShippingItem.appliedDiscounts": 2654 if e.complexity.Commerce_Cart_ShippingItem.AppliedDiscounts == nil { 2655 break 2656 } 2657 2658 return e.complexity.Commerce_Cart_ShippingItem.AppliedDiscounts(childComplexity), true 2659 2660 case "Commerce_Cart_ShippingItem.priceGross": 2661 if e.complexity.Commerce_Cart_ShippingItem.PriceGross == nil { 2662 break 2663 } 2664 2665 return e.complexity.Commerce_Cart_ShippingItem.PriceGross(childComplexity), true 2666 2667 case "Commerce_Cart_ShippingItem.priceNet": 2668 if e.complexity.Commerce_Cart_ShippingItem.PriceNet == nil { 2669 break 2670 } 2671 2672 return e.complexity.Commerce_Cart_ShippingItem.PriceNet(childComplexity), true 2673 2674 case "Commerce_Cart_ShippingItem.tax": 2675 if e.complexity.Commerce_Cart_ShippingItem.Tax == nil { 2676 break 2677 } 2678 2679 return e.complexity.Commerce_Cart_ShippingItem.Tax(childComplexity), true 2680 2681 case "Commerce_Cart_ShippingItem.taxAmount": 2682 if e.complexity.Commerce_Cart_ShippingItem.TaxAmount == nil { 2683 break 2684 } 2685 2686 return e.complexity.Commerce_Cart_ShippingItem.TaxAmount(childComplexity), true 2687 2688 case "Commerce_Cart_ShippingItem.title": 2689 if e.complexity.Commerce_Cart_ShippingItem.Title == nil { 2690 break 2691 } 2692 2693 return e.complexity.Commerce_Cart_ShippingItem.Title(childComplexity), true 2694 2695 case "Commerce_Cart_ShippingItem.totalWithDiscountInclTax": 2696 if e.complexity.Commerce_Cart_ShippingItem.TotalWithDiscountInclTax == nil { 2697 break 2698 } 2699 2700 return e.complexity.Commerce_Cart_ShippingItem.TotalWithDiscountInclTax(childComplexity), true 2701 2702 case "Commerce_Cart_Summary.discounts": 2703 if e.complexity.Commerce_Cart_Summary.Discounts == nil { 2704 break 2705 } 2706 2707 return e.complexity.Commerce_Cart_Summary.Discounts(childComplexity), true 2708 2709 case "Commerce_Cart_Summary.grandTotalWithGiftCards": 2710 if e.complexity.Commerce_Cart_Summary.GrandTotalWithGiftCards == nil { 2711 break 2712 } 2713 2714 return e.complexity.Commerce_Cart_Summary.GrandTotalWithGiftCards(childComplexity), true 2715 2716 case "Commerce_Cart_Summary.hasAppliedDiscounts": 2717 if e.complexity.Commerce_Cart_Summary.HasAppliedDiscounts == nil { 2718 break 2719 } 2720 2721 return e.complexity.Commerce_Cart_Summary.HasAppliedDiscounts(childComplexity), true 2722 2723 case "Commerce_Cart_Summary.sumPaymentSelectionCartSplitPriceAmountByMethods": 2724 if e.complexity.Commerce_Cart_Summary.SumPaymentSelectionCartSplitPriceAmountByMethods == nil { 2725 break 2726 } 2727 2728 args, err := ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_args(context.TODO(), rawArgs) 2729 if err != nil { 2730 return 0, false 2731 } 2732 2733 return e.complexity.Commerce_Cart_Summary.SumPaymentSelectionCartSplitPriceAmountByMethods(childComplexity, args["methods"].([]string)), true 2734 2735 case "Commerce_Cart_Summary.sumPaymentSelectionCartSplitValueAmountByMethods": 2736 if e.complexity.Commerce_Cart_Summary.SumPaymentSelectionCartSplitValueAmountByMethods == nil { 2737 break 2738 } 2739 2740 args, err := ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_args(context.TODO(), rawArgs) 2741 if err != nil { 2742 return 0, false 2743 } 2744 2745 return e.complexity.Commerce_Cart_Summary.SumPaymentSelectionCartSplitValueAmountByMethods(childComplexity, args["methods"].([]string)), true 2746 2747 case "Commerce_Cart_Summary.sumTaxes": 2748 if e.complexity.Commerce_Cart_Summary.SumTaxes == nil { 2749 break 2750 } 2751 2752 return e.complexity.Commerce_Cart_Summary.SumTaxes(childComplexity), true 2753 2754 case "Commerce_Cart_Summary.sumTotalDiscountWithGiftCardsAmount": 2755 if e.complexity.Commerce_Cart_Summary.SumTotalDiscountWithGiftCardsAmount == nil { 2756 break 2757 } 2758 2759 return e.complexity.Commerce_Cart_Summary.SumTotalDiscountWithGiftCardsAmount(childComplexity), true 2760 2761 case "Commerce_Cart_Summary.totalDiscountAmount": 2762 if e.complexity.Commerce_Cart_Summary.TotalDiscountAmount == nil { 2763 break 2764 } 2765 2766 return e.complexity.Commerce_Cart_Summary.TotalDiscountAmount(childComplexity), true 2767 2768 case "Commerce_Cart_Summary.totalGiftCardAmount": 2769 if e.complexity.Commerce_Cart_Summary.TotalGiftCardAmount == nil { 2770 break 2771 } 2772 2773 return e.complexity.Commerce_Cart_Summary.TotalGiftCardAmount(childComplexity), true 2774 2775 case "Commerce_Cart_Tax.amount": 2776 if e.complexity.Commerce_Cart_Tax.Amount == nil { 2777 break 2778 } 2779 2780 return e.complexity.Commerce_Cart_Tax.Amount(childComplexity), true 2781 2782 case "Commerce_Cart_Tax.rate": 2783 if e.complexity.Commerce_Cart_Tax.Rate == nil { 2784 break 2785 } 2786 2787 return e.complexity.Commerce_Cart_Tax.Rate(childComplexity), true 2788 2789 case "Commerce_Cart_Tax.type": 2790 if e.complexity.Commerce_Cart_Tax.Type == nil { 2791 break 2792 } 2793 2794 return e.complexity.Commerce_Cart_Tax.Type(childComplexity), true 2795 2796 case "Commerce_Cart_Taxes.getByType": 2797 if e.complexity.Commerce_Cart_Taxes.GetByType == nil { 2798 break 2799 } 2800 2801 args, err := ec.field_Commerce_Cart_Taxes_getByType_args(context.TODO(), rawArgs) 2802 if err != nil { 2803 return 0, false 2804 } 2805 2806 return e.complexity.Commerce_Cart_Taxes.GetByType(childComplexity, args["taxType"].(string)), true 2807 2808 case "Commerce_Cart_Taxes.items": 2809 if e.complexity.Commerce_Cart_Taxes.Items == nil { 2810 break 2811 } 2812 2813 return e.complexity.Commerce_Cart_Taxes.Items(childComplexity), true 2814 2815 case "Commerce_Cart_Teaser.DeliveryCodes": 2816 if e.complexity.Commerce_Cart_Teaser.DeliveryCodes == nil { 2817 break 2818 } 2819 2820 return e.complexity.Commerce_Cart_Teaser.DeliveryCodes(childComplexity), true 2821 2822 case "Commerce_Cart_Teaser.ItemCount": 2823 if e.complexity.Commerce_Cart_Teaser.ItemCount == nil { 2824 break 2825 } 2826 2827 return e.complexity.Commerce_Cart_Teaser.ItemCount(childComplexity), true 2828 2829 case "Commerce_Cart_Teaser.productCount": 2830 if e.complexity.Commerce_Cart_Teaser.ProductCount == nil { 2831 break 2832 } 2833 2834 return e.complexity.Commerce_Cart_Teaser.ProductCount(childComplexity), true 2835 2836 case "Commerce_Cart_Totalitem.code": 2837 if e.complexity.Commerce_Cart_Totalitem.Code == nil { 2838 break 2839 } 2840 2841 return e.complexity.Commerce_Cart_Totalitem.Code(childComplexity), true 2842 2843 case "Commerce_Cart_Totalitem.price": 2844 if e.complexity.Commerce_Cart_Totalitem.Price == nil { 2845 break 2846 } 2847 2848 return e.complexity.Commerce_Cart_Totalitem.Price(childComplexity), true 2849 2850 case "Commerce_Cart_Totalitem.title": 2851 if e.complexity.Commerce_Cart_Totalitem.Title == nil { 2852 break 2853 } 2854 2855 return e.complexity.Commerce_Cart_Totalitem.Title(childComplexity), true 2856 2857 case "Commerce_Cart_Totalitem.type": 2858 if e.complexity.Commerce_Cart_Totalitem.Type == nil { 2859 break 2860 } 2861 2862 return e.complexity.Commerce_Cart_Totalitem.Type(childComplexity), true 2863 2864 case "Commerce_Cart_UpdateDeliveryShippingOptions_Result.processed": 2865 if e.complexity.Commerce_Cart_UpdateDeliveryShippingOptions_Result.Processed == nil { 2866 break 2867 } 2868 2869 return e.complexity.Commerce_Cart_UpdateDeliveryShippingOptions_Result.Processed(childComplexity), true 2870 2871 case "Commerce_Cart_ValidationResult.commonErrorMessageKey": 2872 if e.complexity.Commerce_Cart_ValidationResult.CommonErrorMessageKey == nil { 2873 break 2874 } 2875 2876 return e.complexity.Commerce_Cart_ValidationResult.CommonErrorMessageKey(childComplexity), true 2877 2878 case "Commerce_Cart_ValidationResult.hasCommonError": 2879 if e.complexity.Commerce_Cart_ValidationResult.HasCommonError == nil { 2880 break 2881 } 2882 2883 return e.complexity.Commerce_Cart_ValidationResult.HasCommonError(childComplexity), true 2884 2885 case "Commerce_Cart_ValidationResult.itemResults": 2886 if e.complexity.Commerce_Cart_ValidationResult.ItemResults == nil { 2887 break 2888 } 2889 2890 return e.complexity.Commerce_Cart_ValidationResult.ItemResults(childComplexity), true 2891 2892 case "Commerce_CategoryData.active": 2893 if e.complexity.Commerce_CategoryData.Active == nil { 2894 break 2895 } 2896 2897 return e.complexity.Commerce_CategoryData.Active(childComplexity), true 2898 2899 case "Commerce_CategoryData.attributes": 2900 if e.complexity.Commerce_CategoryData.Attributes == nil { 2901 break 2902 } 2903 2904 return e.complexity.Commerce_CategoryData.Attributes(childComplexity), true 2905 2906 case "Commerce_CategoryData.code": 2907 if e.complexity.Commerce_CategoryData.Code == nil { 2908 break 2909 } 2910 2911 return e.complexity.Commerce_CategoryData.Code(childComplexity), true 2912 2913 case "Commerce_CategoryData.name": 2914 if e.complexity.Commerce_CategoryData.Name == nil { 2915 break 2916 } 2917 2918 return e.complexity.Commerce_CategoryData.Name(childComplexity), true 2919 2920 case "Commerce_CategoryData.path": 2921 if e.complexity.Commerce_CategoryData.Path == nil { 2922 break 2923 } 2924 2925 return e.complexity.Commerce_CategoryData.Path(childComplexity), true 2926 2927 case "Commerce_CategoryData.promoted": 2928 if e.complexity.Commerce_CategoryData.Promoted == nil { 2929 break 2930 } 2931 2932 return e.complexity.Commerce_CategoryData.Promoted(childComplexity), true 2933 2934 case "Commerce_CategoryTree.active": 2935 if e.complexity.Commerce_CategoryTree.Active == nil { 2936 break 2937 } 2938 2939 return e.complexity.Commerce_CategoryTree.Active(childComplexity), true 2940 2941 case "Commerce_CategoryTree.code": 2942 if e.complexity.Commerce_CategoryTree.Code == nil { 2943 break 2944 } 2945 2946 return e.complexity.Commerce_CategoryTree.Code(childComplexity), true 2947 2948 case "Commerce_CategoryTree.documentCount": 2949 if e.complexity.Commerce_CategoryTree.DocumentCount == nil { 2950 break 2951 } 2952 2953 return e.complexity.Commerce_CategoryTree.DocumentCount(childComplexity), true 2954 2955 case "Commerce_CategoryTree.hasChilds": 2956 if e.complexity.Commerce_CategoryTree.HasChilds == nil { 2957 break 2958 } 2959 2960 return e.complexity.Commerce_CategoryTree.HasChilds(childComplexity), true 2961 2962 case "Commerce_CategoryTree.name": 2963 if e.complexity.Commerce_CategoryTree.Name == nil { 2964 break 2965 } 2966 2967 return e.complexity.Commerce_CategoryTree.Name(childComplexity), true 2968 2969 case "Commerce_CategoryTree.path": 2970 if e.complexity.Commerce_CategoryTree.Path == nil { 2971 break 2972 } 2973 2974 return e.complexity.Commerce_CategoryTree.Path(childComplexity), true 2975 2976 case "Commerce_CategoryTree.subTrees": 2977 if e.complexity.Commerce_CategoryTree.SubTrees == nil { 2978 break 2979 } 2980 2981 return e.complexity.Commerce_CategoryTree.SubTrees(childComplexity), true 2982 2983 case "Commerce_Category_Attribute.code": 2984 if e.complexity.Commerce_Category_Attribute.Code == nil { 2985 break 2986 } 2987 2988 return e.complexity.Commerce_Category_Attribute.Code(childComplexity), true 2989 2990 case "Commerce_Category_Attribute.label": 2991 if e.complexity.Commerce_Category_Attribute.Label == nil { 2992 break 2993 } 2994 2995 return e.complexity.Commerce_Category_Attribute.Label(childComplexity), true 2996 2997 case "Commerce_Category_Attribute.values": 2998 if e.complexity.Commerce_Category_Attribute.Values == nil { 2999 break 3000 } 3001 3002 return e.complexity.Commerce_Category_Attribute.Values(childComplexity), true 3003 3004 case "Commerce_Category_AttributeValue.label": 3005 if e.complexity.Commerce_Category_AttributeValue.Label == nil { 3006 break 3007 } 3008 3009 return e.complexity.Commerce_Category_AttributeValue.Label(childComplexity), true 3010 3011 case "Commerce_Category_AttributeValue.value": 3012 if e.complexity.Commerce_Category_AttributeValue.Value == nil { 3013 break 3014 } 3015 3016 return e.complexity.Commerce_Category_AttributeValue.Value(childComplexity), true 3017 3018 case "Commerce_Category_Attributes.all": 3019 if e.complexity.Commerce_Category_Attributes.All == nil { 3020 break 3021 } 3022 3023 return e.complexity.Commerce_Category_Attributes.All(childComplexity), true 3024 3025 case "Commerce_Category_Attributes.get": 3026 if e.complexity.Commerce_Category_Attributes.Get == nil { 3027 break 3028 } 3029 3030 args, err := ec.field_Commerce_Category_Attributes_get_args(context.TODO(), rawArgs) 3031 if err != nil { 3032 return 0, false 3033 } 3034 3035 return e.complexity.Commerce_Category_Attributes.Get(childComplexity, args["code"].(string)), true 3036 3037 case "Commerce_Category_Attributes.has": 3038 if e.complexity.Commerce_Category_Attributes.Has == nil { 3039 break 3040 } 3041 3042 args, err := ec.field_Commerce_Category_Attributes_has_args(context.TODO(), rawArgs) 3043 if err != nil { 3044 return 0, false 3045 } 3046 3047 return e.complexity.Commerce_Category_Attributes.Has(childComplexity, args["code"].(string)), true 3048 3049 case "Commerce_Category_SearchResult.category": 3050 if e.complexity.Commerce_Category_SearchResult.Category == nil { 3051 break 3052 } 3053 3054 return e.complexity.Commerce_Category_SearchResult.Category(childComplexity), true 3055 3056 case "Commerce_Category_SearchResult.productSearchResult": 3057 if e.complexity.Commerce_Category_SearchResult.ProductSearchResult == nil { 3058 break 3059 } 3060 3061 return e.complexity.Commerce_Category_SearchResult.ProductSearchResult(childComplexity), true 3062 3063 case "Commerce_Checkout_PlaceOrderContext.cart": 3064 if e.complexity.Commerce_Checkout_PlaceOrderContext.Cart == nil { 3065 break 3066 } 3067 3068 return e.complexity.Commerce_Checkout_PlaceOrderContext.Cart(childComplexity), true 3069 3070 case "Commerce_Checkout_PlaceOrderContext.orderInfos": 3071 if e.complexity.Commerce_Checkout_PlaceOrderContext.OrderInfos == nil { 3072 break 3073 } 3074 3075 return e.complexity.Commerce_Checkout_PlaceOrderContext.OrderInfos(childComplexity), true 3076 3077 case "Commerce_Checkout_PlaceOrderContext.state": 3078 if e.complexity.Commerce_Checkout_PlaceOrderContext.State == nil { 3079 break 3080 } 3081 3082 return e.complexity.Commerce_Checkout_PlaceOrderContext.State(childComplexity), true 3083 3084 case "Commerce_Checkout_PlaceOrderContext.uuid": 3085 if e.complexity.Commerce_Checkout_PlaceOrderContext.UUID == nil { 3086 break 3087 } 3088 3089 return e.complexity.Commerce_Checkout_PlaceOrderContext.UUID(childComplexity), true 3090 3091 case "Commerce_Checkout_PlaceOrderPaymentInfo.amount": 3092 if e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Amount == nil { 3093 break 3094 } 3095 3096 return e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Amount(childComplexity), true 3097 3098 case "Commerce_Checkout_PlaceOrderPaymentInfo.gateway": 3099 if e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Gateway == nil { 3100 break 3101 } 3102 3103 return e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Gateway(childComplexity), true 3104 3105 case "Commerce_Checkout_PlaceOrderPaymentInfo.method": 3106 if e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Method == nil { 3107 break 3108 } 3109 3110 return e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Method(childComplexity), true 3111 3112 case "Commerce_Checkout_PlaceOrderPaymentInfo.paymentProvider": 3113 if e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.PaymentProvider == nil { 3114 break 3115 } 3116 3117 return e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.PaymentProvider(childComplexity), true 3118 3119 case "Commerce_Checkout_PlaceOrderPaymentInfo.title": 3120 if e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Title == nil { 3121 break 3122 } 3123 3124 return e.complexity.Commerce_Checkout_PlaceOrderPaymentInfo.Title(childComplexity), true 3125 3126 case "Commerce_Checkout_PlaceOrderState_Form_Parameter.key": 3127 if e.complexity.Commerce_Checkout_PlaceOrderState_Form_Parameter.Key == nil { 3128 break 3129 } 3130 3131 return e.complexity.Commerce_Checkout_PlaceOrderState_Form_Parameter.Key(childComplexity), true 3132 3133 case "Commerce_Checkout_PlaceOrderState_Form_Parameter.value": 3134 if e.complexity.Commerce_Checkout_PlaceOrderState_Form_Parameter.Value == nil { 3135 break 3136 } 3137 3138 return e.complexity.Commerce_Checkout_PlaceOrderState_Form_Parameter.Value(childComplexity), true 3139 3140 case "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.completeURL": 3141 if e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.CompleteURL == nil { 3142 break 3143 } 3144 3145 return e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.CompleteURL(childComplexity), true 3146 3147 case "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.details": 3148 if e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.Details == nil { 3149 break 3150 } 3151 3152 return e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.Details(childComplexity), true 3153 3154 case "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.merchantValidationURL": 3155 if e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.MerchantValidationURL == nil { 3156 break 3157 } 3158 3159 return e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.MerchantValidationURL(childComplexity), true 3160 3161 case "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.methodData": 3162 if e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.MethodData == nil { 3163 break 3164 } 3165 3166 return e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.MethodData(childComplexity), true 3167 3168 case "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.options": 3169 if e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.Options == nil { 3170 break 3171 } 3172 3173 return e.complexity.Commerce_Checkout_PlaceOrderState_PaymentRequestAPI.Options(childComplexity), true 3174 3175 case "Commerce_Checkout_PlaceOrderState_State_Failed.name": 3176 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Failed.Name == nil { 3177 break 3178 } 3179 3180 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Failed.Name(childComplexity), true 3181 3182 case "Commerce_Checkout_PlaceOrderState_State_Failed.reason": 3183 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Failed.Reason == nil { 3184 break 3185 } 3186 3187 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Failed.Reason(childComplexity), true 3188 3189 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer.reason": 3190 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer.Reason == nil { 3191 break 3192 } 3193 3194 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer.Reason(childComplexity), true 3195 3196 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.reason": 3197 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.Reason == nil { 3198 break 3199 } 3200 3201 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.Reason(childComplexity), true 3202 3203 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.validationResult": 3204 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.ValidationResult == nil { 3205 break 3206 } 3207 3208 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError.ValidationResult(childComplexity), true 3209 3210 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_Error.reason": 3211 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_Error.Reason == nil { 3212 break 3213 } 3214 3215 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_Error.Reason(childComplexity), true 3216 3217 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer.reason": 3218 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer.Reason == nil { 3219 break 3220 } 3221 3222 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer.Reason(childComplexity), true 3223 3224 case "Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError.reason": 3225 if e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError.Reason == nil { 3226 break 3227 } 3228 3229 return e.complexity.Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError.Reason(childComplexity), true 3230 3231 case "Commerce_Checkout_PlaceOrderState_State_PostRedirect.name": 3232 if e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.Name == nil { 3233 break 3234 } 3235 3236 return e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.Name(childComplexity), true 3237 3238 case "Commerce_Checkout_PlaceOrderState_State_PostRedirect.Parameters": 3239 if e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.Parameters == nil { 3240 break 3241 } 3242 3243 return e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.Parameters(childComplexity), true 3244 3245 case "Commerce_Checkout_PlaceOrderState_State_PostRedirect.URL": 3246 if e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.URL == nil { 3247 break 3248 } 3249 3250 return e.complexity.Commerce_Checkout_PlaceOrderState_State_PostRedirect.URL(childComplexity), true 3251 3252 case "Commerce_Checkout_PlaceOrderState_State_Redirect.name": 3253 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Redirect.Name == nil { 3254 break 3255 } 3256 3257 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Redirect.Name(childComplexity), true 3258 3259 case "Commerce_Checkout_PlaceOrderState_State_Redirect.URL": 3260 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Redirect.URL == nil { 3261 break 3262 } 3263 3264 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Redirect.URL(childComplexity), true 3265 3266 case "Commerce_Checkout_PlaceOrderState_State_ShowHTML.HTML": 3267 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowHTML.HTML == nil { 3268 break 3269 } 3270 3271 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowHTML.HTML(childComplexity), true 3272 3273 case "Commerce_Checkout_PlaceOrderState_State_ShowHTML.name": 3274 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowHTML.Name == nil { 3275 break 3276 } 3277 3278 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowHTML.Name(childComplexity), true 3279 3280 case "Commerce_Checkout_PlaceOrderState_State_ShowIframe.name": 3281 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowIframe.Name == nil { 3282 break 3283 } 3284 3285 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowIframe.Name(childComplexity), true 3286 3287 case "Commerce_Checkout_PlaceOrderState_State_ShowIframe.URL": 3288 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowIframe.URL == nil { 3289 break 3290 } 3291 3292 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowIframe.URL(childComplexity), true 3293 3294 case "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.name": 3295 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.Name == nil { 3296 break 3297 } 3298 3299 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.Name(childComplexity), true 3300 3301 case "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.paymentMethod": 3302 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.PaymentMethod == nil { 3303 break 3304 } 3305 3306 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.PaymentMethod(childComplexity), true 3307 3308 case "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.paymentRequestAPI": 3309 if e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.PaymentRequestAPI == nil { 3310 break 3311 } 3312 3313 return e.complexity.Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment.PaymentRequestAPI(childComplexity), true 3314 3315 case "Commerce_Checkout_PlaceOrderState_State_Success.name": 3316 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Success.Name == nil { 3317 break 3318 } 3319 3320 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Success.Name(childComplexity), true 3321 3322 case "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.data": 3323 if e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.Data == nil { 3324 break 3325 } 3326 3327 return e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.Data(childComplexity), true 3328 3329 case "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.name": 3330 if e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.Name == nil { 3331 break 3332 } 3333 3334 return e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.Name(childComplexity), true 3335 3336 case "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.URL": 3337 if e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.URL == nil { 3338 break 3339 } 3340 3341 return e.complexity.Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK.URL(childComplexity), true 3342 3343 case "Commerce_Checkout_PlaceOrderState_State_Wait.name": 3344 if e.complexity.Commerce_Checkout_PlaceOrderState_State_Wait.Name == nil { 3345 break 3346 } 3347 3348 return e.complexity.Commerce_Checkout_PlaceOrderState_State_Wait.Name(childComplexity), true 3349 3350 case "Commerce_Checkout_PlaceOrderState_State_WaitForCustomer.name": 3351 if e.complexity.Commerce_Checkout_PlaceOrderState_State_WaitForCustomer.Name == nil { 3352 break 3353 } 3354 3355 return e.complexity.Commerce_Checkout_PlaceOrderState_State_WaitForCustomer.Name(childComplexity), true 3356 3357 case "Commerce_Checkout_PlacedOrderInfos.email": 3358 if e.complexity.Commerce_Checkout_PlacedOrderInfos.Email == nil { 3359 break 3360 } 3361 3362 return e.complexity.Commerce_Checkout_PlacedOrderInfos.Email(childComplexity), true 3363 3364 case "Commerce_Checkout_PlacedOrderInfos.paymentInfos": 3365 if e.complexity.Commerce_Checkout_PlacedOrderInfos.PaymentInfos == nil { 3366 break 3367 } 3368 3369 return e.complexity.Commerce_Checkout_PlacedOrderInfos.PaymentInfos(childComplexity), true 3370 3371 case "Commerce_Checkout_PlacedOrderInfos.placedOrderInfos": 3372 if e.complexity.Commerce_Checkout_PlacedOrderInfos.PlacedOrderInfos == nil { 3373 break 3374 } 3375 3376 return e.complexity.Commerce_Checkout_PlacedOrderInfos.PlacedOrderInfos(childComplexity), true 3377 3378 case "Commerce_Checkout_StartPlaceOrder_Result.uuid": 3379 if e.complexity.Commerce_Checkout_StartPlaceOrder_Result.UUID == nil { 3380 break 3381 } 3382 3383 return e.complexity.Commerce_Checkout_StartPlaceOrder_Result.UUID(childComplexity), true 3384 3385 case "Commerce_Customer_Address.additionalAddressLines": 3386 if e.complexity.Commerce_Customer_Address.AdditionalAddressLines == nil { 3387 break 3388 } 3389 3390 return e.complexity.Commerce_Customer_Address.AdditionalAddressLines(childComplexity), true 3391 3392 case "Commerce_Customer_Address.city": 3393 if e.complexity.Commerce_Customer_Address.City == nil { 3394 break 3395 } 3396 3397 return e.complexity.Commerce_Customer_Address.City(childComplexity), true 3398 3399 case "Commerce_Customer_Address.company": 3400 if e.complexity.Commerce_Customer_Address.Company == nil { 3401 break 3402 } 3403 3404 return e.complexity.Commerce_Customer_Address.Company(childComplexity), true 3405 3406 case "Commerce_Customer_Address.countryCode": 3407 if e.complexity.Commerce_Customer_Address.CountryCode == nil { 3408 break 3409 } 3410 3411 return e.complexity.Commerce_Customer_Address.CountryCode(childComplexity), true 3412 3413 case "Commerce_Customer_Address.defaultBilling": 3414 if e.complexity.Commerce_Customer_Address.DefaultBilling == nil { 3415 break 3416 } 3417 3418 return e.complexity.Commerce_Customer_Address.DefaultBilling(childComplexity), true 3419 3420 case "Commerce_Customer_Address.defaultShipping": 3421 if e.complexity.Commerce_Customer_Address.DefaultShipping == nil { 3422 break 3423 } 3424 3425 return e.complexity.Commerce_Customer_Address.DefaultShipping(childComplexity), true 3426 3427 case "Commerce_Customer_Address.email": 3428 if e.complexity.Commerce_Customer_Address.Email == nil { 3429 break 3430 } 3431 3432 return e.complexity.Commerce_Customer_Address.Email(childComplexity), true 3433 3434 case "Commerce_Customer_Address.firstName": 3435 if e.complexity.Commerce_Customer_Address.Firstname == nil { 3436 break 3437 } 3438 3439 return e.complexity.Commerce_Customer_Address.Firstname(childComplexity), true 3440 3441 case "Commerce_Customer_Address.id": 3442 if e.complexity.Commerce_Customer_Address.ID == nil { 3443 break 3444 } 3445 3446 return e.complexity.Commerce_Customer_Address.ID(childComplexity), true 3447 3448 case "Commerce_Customer_Address.lastName": 3449 if e.complexity.Commerce_Customer_Address.Lastname == nil { 3450 break 3451 } 3452 3453 return e.complexity.Commerce_Customer_Address.Lastname(childComplexity), true 3454 3455 case "Commerce_Customer_Address.postCode": 3456 if e.complexity.Commerce_Customer_Address.PostCode == nil { 3457 break 3458 } 3459 3460 return e.complexity.Commerce_Customer_Address.PostCode(childComplexity), true 3461 3462 case "Commerce_Customer_Address.prefix": 3463 if e.complexity.Commerce_Customer_Address.Prefix == nil { 3464 break 3465 } 3466 3467 return e.complexity.Commerce_Customer_Address.Prefix(childComplexity), true 3468 3469 case "Commerce_Customer_Address.regionCode": 3470 if e.complexity.Commerce_Customer_Address.RegionCode == nil { 3471 break 3472 } 3473 3474 return e.complexity.Commerce_Customer_Address.RegionCode(childComplexity), true 3475 3476 case "Commerce_Customer_Address.state": 3477 if e.complexity.Commerce_Customer_Address.State == nil { 3478 break 3479 } 3480 3481 return e.complexity.Commerce_Customer_Address.State(childComplexity), true 3482 3483 case "Commerce_Customer_Address.street": 3484 if e.complexity.Commerce_Customer_Address.Street == nil { 3485 break 3486 } 3487 3488 return e.complexity.Commerce_Customer_Address.Street(childComplexity), true 3489 3490 case "Commerce_Customer_Address.streetNumber": 3491 if e.complexity.Commerce_Customer_Address.StreetNr == nil { 3492 break 3493 } 3494 3495 return e.complexity.Commerce_Customer_Address.StreetNr(childComplexity), true 3496 3497 case "Commerce_Customer_Address.telephone": 3498 if e.complexity.Commerce_Customer_Address.Telephone == nil { 3499 break 3500 } 3501 3502 return e.complexity.Commerce_Customer_Address.Telephone(childComplexity), true 3503 3504 case "Commerce_Customer_PersonData.birthday": 3505 if e.complexity.Commerce_Customer_PersonData.Birthday == nil { 3506 break 3507 } 3508 3509 return e.complexity.Commerce_Customer_PersonData.Birthday(childComplexity), true 3510 3511 case "Commerce_Customer_PersonData.firstName": 3512 if e.complexity.Commerce_Customer_PersonData.FirstName == nil { 3513 break 3514 } 3515 3516 return e.complexity.Commerce_Customer_PersonData.FirstName(childComplexity), true 3517 3518 case "Commerce_Customer_PersonData.gender": 3519 if e.complexity.Commerce_Customer_PersonData.Gender == nil { 3520 break 3521 } 3522 3523 return e.complexity.Commerce_Customer_PersonData.Gender(childComplexity), true 3524 3525 case "Commerce_Customer_PersonData.lastName": 3526 if e.complexity.Commerce_Customer_PersonData.LastName == nil { 3527 break 3528 } 3529 3530 return e.complexity.Commerce_Customer_PersonData.LastName(childComplexity), true 3531 3532 case "Commerce_Customer_PersonData.mainEmail": 3533 if e.complexity.Commerce_Customer_PersonData.MainEmail == nil { 3534 break 3535 } 3536 3537 return e.complexity.Commerce_Customer_PersonData.MainEmail(childComplexity), true 3538 3539 case "Commerce_Customer_PersonData.middleName": 3540 if e.complexity.Commerce_Customer_PersonData.MiddleName == nil { 3541 break 3542 } 3543 3544 return e.complexity.Commerce_Customer_PersonData.MiddleName(childComplexity), true 3545 3546 case "Commerce_Customer_PersonData.nationality": 3547 if e.complexity.Commerce_Customer_PersonData.Nationality == nil { 3548 break 3549 } 3550 3551 return e.complexity.Commerce_Customer_PersonData.Nationality(childComplexity), true 3552 3553 case "Commerce_Customer_PersonData.prefix": 3554 if e.complexity.Commerce_Customer_PersonData.Prefix == nil { 3555 break 3556 } 3557 3558 return e.complexity.Commerce_Customer_PersonData.Prefix(childComplexity), true 3559 3560 case "Commerce_Customer_Result.addresses": 3561 if e.complexity.Commerce_Customer_Result.Addresses == nil { 3562 break 3563 } 3564 3565 return e.complexity.Commerce_Customer_Result.Addresses(childComplexity), true 3566 3567 case "Commerce_Customer_Result.defaultBillingAddress": 3568 if e.complexity.Commerce_Customer_Result.DefaultBillingAddress == nil { 3569 break 3570 } 3571 3572 return e.complexity.Commerce_Customer_Result.DefaultBillingAddress(childComplexity), true 3573 3574 case "Commerce_Customer_Result.defaultShippingAddress": 3575 if e.complexity.Commerce_Customer_Result.DefaultShippingAddress == nil { 3576 break 3577 } 3578 3579 return e.complexity.Commerce_Customer_Result.DefaultShippingAddress(childComplexity), true 3580 3581 case "Commerce_Customer_Result.getAddress": 3582 if e.complexity.Commerce_Customer_Result.GetAddress == nil { 3583 break 3584 } 3585 3586 args, err := ec.field_Commerce_Customer_Result_getAddress_args(context.TODO(), rawArgs) 3587 if err != nil { 3588 return 0, false 3589 } 3590 3591 return e.complexity.Commerce_Customer_Result.GetAddress(childComplexity, args["id"].(string)), true 3592 3593 case "Commerce_Customer_Result.id": 3594 if e.complexity.Commerce_Customer_Result.ID == nil { 3595 break 3596 } 3597 3598 return e.complexity.Commerce_Customer_Result.ID(childComplexity), true 3599 3600 case "Commerce_Customer_Result.personalData": 3601 if e.complexity.Commerce_Customer_Result.PersonalData == nil { 3602 break 3603 } 3604 3605 return e.complexity.Commerce_Customer_Result.PersonalData(childComplexity), true 3606 3607 case "Commerce_Customer_Status_Result.isLoggedIn": 3608 if e.complexity.Commerce_Customer_Status_Result.IsLoggedIn == nil { 3609 break 3610 } 3611 3612 return e.complexity.Commerce_Customer_Status_Result.IsLoggedIn(childComplexity), true 3613 3614 case "Commerce_Customer_Status_Result.userID": 3615 if e.complexity.Commerce_Customer_Status_Result.UserID == nil { 3616 break 3617 } 3618 3619 return e.complexity.Commerce_Customer_Status_Result.UserID(childComplexity), true 3620 3621 case "Commerce_Price.currency": 3622 if e.complexity.Commerce_Price.Currency == nil { 3623 break 3624 } 3625 3626 return e.complexity.Commerce_Price.Currency(childComplexity), true 3627 3628 case "Commerce_Price.amount": 3629 if e.complexity.Commerce_Price.FloatAmount == nil { 3630 break 3631 } 3632 3633 return e.complexity.Commerce_Price.FloatAmount(childComplexity), true 3634 3635 case "Commerce_Price_Charge.price": 3636 if e.complexity.Commerce_Price_Charge.Price == nil { 3637 break 3638 } 3639 3640 return e.complexity.Commerce_Price_Charge.Price(childComplexity), true 3641 3642 case "Commerce_Price_Charge.reference": 3643 if e.complexity.Commerce_Price_Charge.Reference == nil { 3644 break 3645 } 3646 3647 return e.complexity.Commerce_Price_Charge.Reference(childComplexity), true 3648 3649 case "Commerce_Price_Charge.type": 3650 if e.complexity.Commerce_Price_Charge.Type == nil { 3651 break 3652 } 3653 3654 return e.complexity.Commerce_Price_Charge.Type(childComplexity), true 3655 3656 case "Commerce_Price_Charge.value": 3657 if e.complexity.Commerce_Price_Charge.Value == nil { 3658 break 3659 } 3660 3661 return e.complexity.Commerce_Price_Charge.Value(childComplexity), true 3662 3663 case "Commerce_Price_ChargeQualifier.reference": 3664 if e.complexity.Commerce_Price_ChargeQualifier.Reference == nil { 3665 break 3666 } 3667 3668 return e.complexity.Commerce_Price_ChargeQualifier.Reference(childComplexity), true 3669 3670 case "Commerce_Price_ChargeQualifier.type": 3671 if e.complexity.Commerce_Price_ChargeQualifier.Type == nil { 3672 break 3673 } 3674 3675 return e.complexity.Commerce_Price_ChargeQualifier.Type(childComplexity), true 3676 3677 case "Commerce_Price_Charges.getByChargeQualifierForced": 3678 if e.complexity.Commerce_Price_Charges.GetByChargeQualifierForced == nil { 3679 break 3680 } 3681 3682 args, err := ec.field_Commerce_Price_Charges_getByChargeQualifierForced_args(context.TODO(), rawArgs) 3683 if err != nil { 3684 return 0, false 3685 } 3686 3687 return e.complexity.Commerce_Price_Charges.GetByChargeQualifierForced(childComplexity, args["qualifier"].(domain.ChargeQualifier)), true 3688 3689 case "Commerce_Price_Charges.getByTypeForced": 3690 if e.complexity.Commerce_Price_Charges.GetByTypeForced == nil { 3691 break 3692 } 3693 3694 args, err := ec.field_Commerce_Price_Charges_getByTypeForced_args(context.TODO(), rawArgs) 3695 if err != nil { 3696 return 0, false 3697 } 3698 3699 return e.complexity.Commerce_Price_Charges.GetByTypeForced(childComplexity, args["ctype"].(string)), true 3700 3701 case "Commerce_Price_Charges.hasChargeQualifier": 3702 if e.complexity.Commerce_Price_Charges.HasChargeQualifier == nil { 3703 break 3704 } 3705 3706 args, err := ec.field_Commerce_Price_Charges_hasChargeQualifier_args(context.TODO(), rawArgs) 3707 if err != nil { 3708 return 0, false 3709 } 3710 3711 return e.complexity.Commerce_Price_Charges.HasChargeQualifier(childComplexity, args["qualifier"].(domain.ChargeQualifier)), true 3712 3713 case "Commerce_Price_Charges.hasType": 3714 if e.complexity.Commerce_Price_Charges.HasType == nil { 3715 break 3716 } 3717 3718 args, err := ec.field_Commerce_Price_Charges_hasType_args(context.TODO(), rawArgs) 3719 if err != nil { 3720 return 0, false 3721 } 3722 3723 return e.complexity.Commerce_Price_Charges.HasType(childComplexity, args["ctype"].(string)), true 3724 3725 case "Commerce_Price_Charges.items": 3726 if e.complexity.Commerce_Price_Charges.Items == nil { 3727 break 3728 } 3729 3730 return e.complexity.Commerce_Price_Charges.Items(childComplexity), true 3731 3732 case "Commerce_Product_ActiveVariantProduct.activeVariationSelections": 3733 if e.complexity.Commerce_Product_ActiveVariantProduct.ActiveVariationSelections == nil { 3734 break 3735 } 3736 3737 return e.complexity.Commerce_Product_ActiveVariantProduct.ActiveVariationSelections(childComplexity), true 3738 3739 case "Commerce_Product_ActiveVariantProduct.attributes": 3740 if e.complexity.Commerce_Product_ActiveVariantProduct.Attributes == nil { 3741 break 3742 } 3743 3744 return e.complexity.Commerce_Product_ActiveVariantProduct.Attributes(childComplexity), true 3745 3746 case "Commerce_Product_ActiveVariantProduct.availablePrices": 3747 if e.complexity.Commerce_Product_ActiveVariantProduct.AvailablePrices == nil { 3748 break 3749 } 3750 3751 return e.complexity.Commerce_Product_ActiveVariantProduct.AvailablePrices(childComplexity), true 3752 3753 case "Commerce_Product_ActiveVariantProduct.badges": 3754 if e.complexity.Commerce_Product_ActiveVariantProduct.Badges == nil { 3755 break 3756 } 3757 3758 return e.complexity.Commerce_Product_ActiveVariantProduct.Badges(childComplexity), true 3759 3760 case "Commerce_Product_ActiveVariantProduct.categories": 3761 if e.complexity.Commerce_Product_ActiveVariantProduct.Categories == nil { 3762 break 3763 } 3764 3765 return e.complexity.Commerce_Product_ActiveVariantProduct.Categories(childComplexity), true 3766 3767 case "Commerce_Product_ActiveVariantProduct.description": 3768 if e.complexity.Commerce_Product_ActiveVariantProduct.Description == nil { 3769 break 3770 } 3771 3772 return e.complexity.Commerce_Product_ActiveVariantProduct.Description(childComplexity), true 3773 3774 case "Commerce_Product_ActiveVariantProduct.identifier": 3775 if e.complexity.Commerce_Product_ActiveVariantProduct.Identifier == nil { 3776 break 3777 } 3778 3779 return e.complexity.Commerce_Product_ActiveVariantProduct.Identifier(childComplexity), true 3780 3781 case "Commerce_Product_ActiveVariantProduct.loyalty": 3782 if e.complexity.Commerce_Product_ActiveVariantProduct.Loyalty == nil { 3783 break 3784 } 3785 3786 return e.complexity.Commerce_Product_ActiveVariantProduct.Loyalty(childComplexity), true 3787 3788 case "Commerce_Product_ActiveVariantProduct.marketPlaceCode": 3789 if e.complexity.Commerce_Product_ActiveVariantProduct.MarketPlaceCode == nil { 3790 break 3791 } 3792 3793 return e.complexity.Commerce_Product_ActiveVariantProduct.MarketPlaceCode(childComplexity), true 3794 3795 case "Commerce_Product_ActiveVariantProduct.media": 3796 if e.complexity.Commerce_Product_ActiveVariantProduct.Media == nil { 3797 break 3798 } 3799 3800 return e.complexity.Commerce_Product_ActiveVariantProduct.Media(childComplexity), true 3801 3802 case "Commerce_Product_ActiveVariantProduct.meta": 3803 if e.complexity.Commerce_Product_ActiveVariantProduct.Meta == nil { 3804 break 3805 } 3806 3807 return e.complexity.Commerce_Product_ActiveVariantProduct.Meta(childComplexity), true 3808 3809 case "Commerce_Product_ActiveVariantProduct.price": 3810 if e.complexity.Commerce_Product_ActiveVariantProduct.Price == nil { 3811 break 3812 } 3813 3814 return e.complexity.Commerce_Product_ActiveVariantProduct.Price(childComplexity), true 3815 3816 case "Commerce_Product_ActiveVariantProduct.shortDescription": 3817 if e.complexity.Commerce_Product_ActiveVariantProduct.ShortDescription == nil { 3818 break 3819 } 3820 3821 return e.complexity.Commerce_Product_ActiveVariantProduct.ShortDescription(childComplexity), true 3822 3823 case "Commerce_Product_ActiveVariantProduct.title": 3824 if e.complexity.Commerce_Product_ActiveVariantProduct.Title == nil { 3825 break 3826 } 3827 3828 return e.complexity.Commerce_Product_ActiveVariantProduct.Title(childComplexity), true 3829 3830 case "Commerce_Product_ActiveVariantProduct.type": 3831 if e.complexity.Commerce_Product_ActiveVariantProduct.Type == nil { 3832 break 3833 } 3834 3835 return e.complexity.Commerce_Product_ActiveVariantProduct.Type(childComplexity), true 3836 3837 case "Commerce_Product_ActiveVariantProduct.variantMarketPlaceCode": 3838 if e.complexity.Commerce_Product_ActiveVariantProduct.VariantMarketPlaceCode == nil { 3839 break 3840 } 3841 3842 return e.complexity.Commerce_Product_ActiveVariantProduct.VariantMarketPlaceCode(childComplexity), true 3843 3844 case "Commerce_Product_ActiveVariantProduct.variationSelections": 3845 if e.complexity.Commerce_Product_ActiveVariantProduct.VariationSelections == nil { 3846 break 3847 } 3848 3849 return e.complexity.Commerce_Product_ActiveVariantProduct.VariationSelections(childComplexity), true 3850 3851 case "Commerce_Product_ActiveVariationSelection.code": 3852 if e.complexity.Commerce_Product_ActiveVariationSelection.Code == nil { 3853 break 3854 } 3855 3856 return e.complexity.Commerce_Product_ActiveVariationSelection.Code(childComplexity), true 3857 3858 case "Commerce_Product_ActiveVariationSelection.label": 3859 if e.complexity.Commerce_Product_ActiveVariationSelection.Label == nil { 3860 break 3861 } 3862 3863 return e.complexity.Commerce_Product_ActiveVariationSelection.Label(childComplexity), true 3864 3865 case "Commerce_Product_ActiveVariationSelection.unitCode": 3866 if e.complexity.Commerce_Product_ActiveVariationSelection.UnitCode == nil { 3867 break 3868 } 3869 3870 return e.complexity.Commerce_Product_ActiveVariationSelection.UnitCode(childComplexity), true 3871 3872 case "Commerce_Product_ActiveVariationSelection.value": 3873 if e.complexity.Commerce_Product_ActiveVariationSelection.Value == nil { 3874 break 3875 } 3876 3877 return e.complexity.Commerce_Product_ActiveVariationSelection.Value(childComplexity), true 3878 3879 case "Commerce_Product_Attribute.code": 3880 if e.complexity.Commerce_Product_Attribute.Code == nil { 3881 break 3882 } 3883 3884 return e.complexity.Commerce_Product_Attribute.Code(childComplexity), true 3885 3886 case "Commerce_Product_Attribute.codeLabel": 3887 if e.complexity.Commerce_Product_Attribute.CodeLabel == nil { 3888 break 3889 } 3890 3891 return e.complexity.Commerce_Product_Attribute.CodeLabel(childComplexity), true 3892 3893 case "Commerce_Product_Attribute.label": 3894 if e.complexity.Commerce_Product_Attribute.Label == nil { 3895 break 3896 } 3897 3898 return e.complexity.Commerce_Product_Attribute.Label(childComplexity), true 3899 3900 case "Commerce_Product_Attribute.labels": 3901 if e.complexity.Commerce_Product_Attribute.Labels == nil { 3902 break 3903 } 3904 3905 return e.complexity.Commerce_Product_Attribute.Labels(childComplexity), true 3906 3907 case "Commerce_Product_Attribute.unitCode": 3908 if e.complexity.Commerce_Product_Attribute.UnitCode == nil { 3909 break 3910 } 3911 3912 return e.complexity.Commerce_Product_Attribute.UnitCode(childComplexity), true 3913 3914 case "Commerce_Product_Attribute.value": 3915 if e.complexity.Commerce_Product_Attribute.Value == nil { 3916 break 3917 } 3918 3919 return e.complexity.Commerce_Product_Attribute.Value(childComplexity), true 3920 3921 case "Commerce_Product_Attribute.values": 3922 if e.complexity.Commerce_Product_Attribute.Values == nil { 3923 break 3924 } 3925 3926 return e.complexity.Commerce_Product_Attribute.Values(childComplexity), true 3927 3928 case "Commerce_Product_Attributes.getAttribute": 3929 if e.complexity.Commerce_Product_Attributes.Attribute == nil { 3930 break 3931 } 3932 3933 args, err := ec.field_Commerce_Product_Attributes_getAttribute_args(context.TODO(), rawArgs) 3934 if err != nil { 3935 return 0, false 3936 } 3937 3938 return e.complexity.Commerce_Product_Attributes.Attribute(childComplexity, args["key"].(string)), true 3939 3940 case "Commerce_Product_Attributes.attributeKeys": 3941 if e.complexity.Commerce_Product_Attributes.AttributeKeys == nil { 3942 break 3943 } 3944 3945 return e.complexity.Commerce_Product_Attributes.AttributeKeys(childComplexity), true 3946 3947 case "Commerce_Product_Attributes.attributes": 3948 if e.complexity.Commerce_Product_Attributes.Attributes == nil { 3949 break 3950 } 3951 3952 return e.complexity.Commerce_Product_Attributes.Attributes(childComplexity), true 3953 3954 case "Commerce_Product_Attributes.getAttributesByKey": 3955 if e.complexity.Commerce_Product_Attributes.AttributesByKey == nil { 3956 break 3957 } 3958 3959 args, err := ec.field_Commerce_Product_Attributes_getAttributesByKey_args(context.TODO(), rawArgs) 3960 if err != nil { 3961 return 0, false 3962 } 3963 3964 return e.complexity.Commerce_Product_Attributes.AttributesByKey(childComplexity, args["keys"].([]string)), true 3965 3966 case "Commerce_Product_Attributes.hasAttribute": 3967 if e.complexity.Commerce_Product_Attributes.HasAttribute == nil { 3968 break 3969 } 3970 3971 args, err := ec.field_Commerce_Product_Attributes_hasAttribute_args(context.TODO(), rawArgs) 3972 if err != nil { 3973 return 0, false 3974 } 3975 3976 return e.complexity.Commerce_Product_Attributes.HasAttribute(childComplexity, args["key"].(string)), true 3977 3978 case "Commerce_Product_Badge.code": 3979 if e.complexity.Commerce_Product_Badge.Code == nil { 3980 break 3981 } 3982 3983 return e.complexity.Commerce_Product_Badge.Code(childComplexity), true 3984 3985 case "Commerce_Product_Badge.label": 3986 if e.complexity.Commerce_Product_Badge.Label == nil { 3987 break 3988 } 3989 3990 return e.complexity.Commerce_Product_Badge.Label(childComplexity), true 3991 3992 case "Commerce_Product_Badges.all": 3993 if e.complexity.Commerce_Product_Badges.All == nil { 3994 break 3995 } 3996 3997 return e.complexity.Commerce_Product_Badges.All(childComplexity), true 3998 3999 case "Commerce_Product_Badges.first": 4000 if e.complexity.Commerce_Product_Badges.First == nil { 4001 break 4002 } 4003 4004 return e.complexity.Commerce_Product_Badges.First(childComplexity), true 4005 4006 case "Commerce_Product_BundleProduct.attributes": 4007 if e.complexity.Commerce_Product_BundleProduct.Attributes == nil { 4008 break 4009 } 4010 4011 return e.complexity.Commerce_Product_BundleProduct.Attributes(childComplexity), true 4012 4013 case "Commerce_Product_BundleProduct.availablePrices": 4014 if e.complexity.Commerce_Product_BundleProduct.AvailablePrices == nil { 4015 break 4016 } 4017 4018 return e.complexity.Commerce_Product_BundleProduct.AvailablePrices(childComplexity), true 4019 4020 case "Commerce_Product_BundleProduct.badges": 4021 if e.complexity.Commerce_Product_BundleProduct.Badges == nil { 4022 break 4023 } 4024 4025 return e.complexity.Commerce_Product_BundleProduct.Badges(childComplexity), true 4026 4027 case "Commerce_Product_BundleProduct.categories": 4028 if e.complexity.Commerce_Product_BundleProduct.Categories == nil { 4029 break 4030 } 4031 4032 return e.complexity.Commerce_Product_BundleProduct.Categories(childComplexity), true 4033 4034 case "Commerce_Product_BundleProduct.choices": 4035 if e.complexity.Commerce_Product_BundleProduct.Choices == nil { 4036 break 4037 } 4038 4039 return e.complexity.Commerce_Product_BundleProduct.Choices(childComplexity), true 4040 4041 case "Commerce_Product_BundleProduct.description": 4042 if e.complexity.Commerce_Product_BundleProduct.Description == nil { 4043 break 4044 } 4045 4046 return e.complexity.Commerce_Product_BundleProduct.Description(childComplexity), true 4047 4048 case "Commerce_Product_BundleProduct.identifier": 4049 if e.complexity.Commerce_Product_BundleProduct.Identifier == nil { 4050 break 4051 } 4052 4053 return e.complexity.Commerce_Product_BundleProduct.Identifier(childComplexity), true 4054 4055 case "Commerce_Product_BundleProduct.loyalty": 4056 if e.complexity.Commerce_Product_BundleProduct.Loyalty == nil { 4057 break 4058 } 4059 4060 return e.complexity.Commerce_Product_BundleProduct.Loyalty(childComplexity), true 4061 4062 case "Commerce_Product_BundleProduct.marketPlaceCode": 4063 if e.complexity.Commerce_Product_BundleProduct.MarketPlaceCode == nil { 4064 break 4065 } 4066 4067 return e.complexity.Commerce_Product_BundleProduct.MarketPlaceCode(childComplexity), true 4068 4069 case "Commerce_Product_BundleProduct.media": 4070 if e.complexity.Commerce_Product_BundleProduct.Media == nil { 4071 break 4072 } 4073 4074 return e.complexity.Commerce_Product_BundleProduct.Media(childComplexity), true 4075 4076 case "Commerce_Product_BundleProduct.meta": 4077 if e.complexity.Commerce_Product_BundleProduct.Meta == nil { 4078 break 4079 } 4080 4081 return e.complexity.Commerce_Product_BundleProduct.Meta(childComplexity), true 4082 4083 case "Commerce_Product_BundleProduct.price": 4084 if e.complexity.Commerce_Product_BundleProduct.Price == nil { 4085 break 4086 } 4087 4088 return e.complexity.Commerce_Product_BundleProduct.Price(childComplexity), true 4089 4090 case "Commerce_Product_BundleProduct.shortDescription": 4091 if e.complexity.Commerce_Product_BundleProduct.ShortDescription == nil { 4092 break 4093 } 4094 4095 return e.complexity.Commerce_Product_BundleProduct.ShortDescription(childComplexity), true 4096 4097 case "Commerce_Product_BundleProduct.title": 4098 if e.complexity.Commerce_Product_BundleProduct.Title == nil { 4099 break 4100 } 4101 4102 return e.complexity.Commerce_Product_BundleProduct.Title(childComplexity), true 4103 4104 case "Commerce_Product_BundleProduct.type": 4105 if e.complexity.Commerce_Product_BundleProduct.Type == nil { 4106 break 4107 } 4108 4109 return e.complexity.Commerce_Product_BundleProduct.Type(childComplexity), true 4110 4111 case "Commerce_Product_Categories.all": 4112 if e.complexity.Commerce_Product_Categories.All == nil { 4113 break 4114 } 4115 4116 return e.complexity.Commerce_Product_Categories.All(childComplexity), true 4117 4118 case "Commerce_Product_Categories.main": 4119 if e.complexity.Commerce_Product_Categories.Main == nil { 4120 break 4121 } 4122 4123 return e.complexity.Commerce_Product_Categories.Main(childComplexity), true 4124 4125 case "Commerce_Product_CategoryTeaser.code": 4126 if e.complexity.Commerce_Product_CategoryTeaser.Code == nil { 4127 break 4128 } 4129 4130 return e.complexity.Commerce_Product_CategoryTeaser.Code(childComplexity), true 4131 4132 case "Commerce_Product_CategoryTeaser.name": 4133 if e.complexity.Commerce_Product_CategoryTeaser.Name == nil { 4134 break 4135 } 4136 4137 return e.complexity.Commerce_Product_CategoryTeaser.Name(childComplexity), true 4138 4139 case "Commerce_Product_CategoryTeaser.parent": 4140 if e.complexity.Commerce_Product_CategoryTeaser.Parent == nil { 4141 break 4142 } 4143 4144 return e.complexity.Commerce_Product_CategoryTeaser.Parent(childComplexity), true 4145 4146 case "Commerce_Product_CategoryTeaser.path": 4147 if e.complexity.Commerce_Product_CategoryTeaser.Path == nil { 4148 break 4149 } 4150 4151 return e.complexity.Commerce_Product_CategoryTeaser.Path(childComplexity), true 4152 4153 case "Commerce_Product_Choice.active": 4154 if e.complexity.Commerce_Product_Choice.Active == nil { 4155 break 4156 } 4157 4158 return e.complexity.Commerce_Product_Choice.Active(childComplexity), true 4159 4160 case "Commerce_Product_Choice.activeOption": 4161 if e.complexity.Commerce_Product_Choice.ActiveOption == nil { 4162 break 4163 } 4164 4165 return e.complexity.Commerce_Product_Choice.ActiveOption(childComplexity), true 4166 4167 case "Commerce_Product_Choice.identifier": 4168 if e.complexity.Commerce_Product_Choice.Identifier == nil { 4169 break 4170 } 4171 4172 return e.complexity.Commerce_Product_Choice.Identifier(childComplexity), true 4173 4174 case "Commerce_Product_Choice.label": 4175 if e.complexity.Commerce_Product_Choice.Label == nil { 4176 break 4177 } 4178 4179 return e.complexity.Commerce_Product_Choice.Label(childComplexity), true 4180 4181 case "Commerce_Product_Choice.options": 4182 if e.complexity.Commerce_Product_Choice.Options == nil { 4183 break 4184 } 4185 4186 return e.complexity.Commerce_Product_Choice.Options(childComplexity), true 4187 4188 case "Commerce_Product_Choice.required": 4189 if e.complexity.Commerce_Product_Choice.Required == nil { 4190 break 4191 } 4192 4193 return e.complexity.Commerce_Product_Choice.Required(childComplexity), true 4194 4195 case "Commerce_Product_ConfigurableProduct.attributes": 4196 if e.complexity.Commerce_Product_ConfigurableProduct.Attributes == nil { 4197 break 4198 } 4199 4200 return e.complexity.Commerce_Product_ConfigurableProduct.Attributes(childComplexity), true 4201 4202 case "Commerce_Product_ConfigurableProduct.availablePrices": 4203 if e.complexity.Commerce_Product_ConfigurableProduct.AvailablePrices == nil { 4204 break 4205 } 4206 4207 return e.complexity.Commerce_Product_ConfigurableProduct.AvailablePrices(childComplexity), true 4208 4209 case "Commerce_Product_ConfigurableProduct.badges": 4210 if e.complexity.Commerce_Product_ConfigurableProduct.Badges == nil { 4211 break 4212 } 4213 4214 return e.complexity.Commerce_Product_ConfigurableProduct.Badges(childComplexity), true 4215 4216 case "Commerce_Product_ConfigurableProduct.categories": 4217 if e.complexity.Commerce_Product_ConfigurableProduct.Categories == nil { 4218 break 4219 } 4220 4221 return e.complexity.Commerce_Product_ConfigurableProduct.Categories(childComplexity), true 4222 4223 case "Commerce_Product_ConfigurableProduct.description": 4224 if e.complexity.Commerce_Product_ConfigurableProduct.Description == nil { 4225 break 4226 } 4227 4228 return e.complexity.Commerce_Product_ConfigurableProduct.Description(childComplexity), true 4229 4230 case "Commerce_Product_ConfigurableProduct.identifier": 4231 if e.complexity.Commerce_Product_ConfigurableProduct.Identifier == nil { 4232 break 4233 } 4234 4235 return e.complexity.Commerce_Product_ConfigurableProduct.Identifier(childComplexity), true 4236 4237 case "Commerce_Product_ConfigurableProduct.loyalty": 4238 if e.complexity.Commerce_Product_ConfigurableProduct.Loyalty == nil { 4239 break 4240 } 4241 4242 return e.complexity.Commerce_Product_ConfigurableProduct.Loyalty(childComplexity), true 4243 4244 case "Commerce_Product_ConfigurableProduct.marketPlaceCode": 4245 if e.complexity.Commerce_Product_ConfigurableProduct.MarketPlaceCode == nil { 4246 break 4247 } 4248 4249 return e.complexity.Commerce_Product_ConfigurableProduct.MarketPlaceCode(childComplexity), true 4250 4251 case "Commerce_Product_ConfigurableProduct.media": 4252 if e.complexity.Commerce_Product_ConfigurableProduct.Media == nil { 4253 break 4254 } 4255 4256 return e.complexity.Commerce_Product_ConfigurableProduct.Media(childComplexity), true 4257 4258 case "Commerce_Product_ConfigurableProduct.meta": 4259 if e.complexity.Commerce_Product_ConfigurableProduct.Meta == nil { 4260 break 4261 } 4262 4263 return e.complexity.Commerce_Product_ConfigurableProduct.Meta(childComplexity), true 4264 4265 case "Commerce_Product_ConfigurableProduct.price": 4266 if e.complexity.Commerce_Product_ConfigurableProduct.Price == nil { 4267 break 4268 } 4269 4270 return e.complexity.Commerce_Product_ConfigurableProduct.Price(childComplexity), true 4271 4272 case "Commerce_Product_ConfigurableProduct.shortDescription": 4273 if e.complexity.Commerce_Product_ConfigurableProduct.ShortDescription == nil { 4274 break 4275 } 4276 4277 return e.complexity.Commerce_Product_ConfigurableProduct.ShortDescription(childComplexity), true 4278 4279 case "Commerce_Product_ConfigurableProduct.title": 4280 if e.complexity.Commerce_Product_ConfigurableProduct.Title == nil { 4281 break 4282 } 4283 4284 return e.complexity.Commerce_Product_ConfigurableProduct.Title(childComplexity), true 4285 4286 case "Commerce_Product_ConfigurableProduct.type": 4287 if e.complexity.Commerce_Product_ConfigurableProduct.Type == nil { 4288 break 4289 } 4290 4291 return e.complexity.Commerce_Product_ConfigurableProduct.Type(childComplexity), true 4292 4293 case "Commerce_Product_ConfigurableProduct.variantSelection": 4294 if e.complexity.Commerce_Product_ConfigurableProduct.VariantSelection == nil { 4295 break 4296 } 4297 4298 return e.complexity.Commerce_Product_ConfigurableProduct.VariantSelection(childComplexity), true 4299 4300 case "Commerce_Product_Loyalty.availablePrices": 4301 if e.complexity.Commerce_Product_Loyalty.AvailablePrices == nil { 4302 break 4303 } 4304 4305 return e.complexity.Commerce_Product_Loyalty.AvailablePrices(childComplexity), true 4306 4307 case "Commerce_Product_Loyalty.earning": 4308 if e.complexity.Commerce_Product_Loyalty.Earning == nil { 4309 break 4310 } 4311 4312 return e.complexity.Commerce_Product_Loyalty.Earning(childComplexity), true 4313 4314 case "Commerce_Product_Loyalty.price": 4315 if e.complexity.Commerce_Product_Loyalty.Price == nil { 4316 break 4317 } 4318 4319 return e.complexity.Commerce_Product_Loyalty.Price(childComplexity), true 4320 4321 case "Commerce_Product_Loyalty_EarningInfo.default": 4322 if e.complexity.Commerce_Product_Loyalty_EarningInfo.Default == nil { 4323 break 4324 } 4325 4326 return e.complexity.Commerce_Product_Loyalty_EarningInfo.Default(childComplexity), true 4327 4328 case "Commerce_Product_Loyalty_EarningInfo.type": 4329 if e.complexity.Commerce_Product_Loyalty_EarningInfo.Type == nil { 4330 break 4331 } 4332 4333 return e.complexity.Commerce_Product_Loyalty_EarningInfo.Type(childComplexity), true 4334 4335 case "Commerce_Product_Loyalty_PriceInfo.context": 4336 if e.complexity.Commerce_Product_Loyalty_PriceInfo.Context == nil { 4337 break 4338 } 4339 4340 return e.complexity.Commerce_Product_Loyalty_PriceInfo.Context(childComplexity), true 4341 4342 case "Commerce_Product_Loyalty_PriceInfo.default": 4343 if e.complexity.Commerce_Product_Loyalty_PriceInfo.Default == nil { 4344 break 4345 } 4346 4347 return e.complexity.Commerce_Product_Loyalty_PriceInfo.Default(childComplexity), true 4348 4349 case "Commerce_Product_Loyalty_PriceInfo.discountText": 4350 if e.complexity.Commerce_Product_Loyalty_PriceInfo.DiscountText == nil { 4351 break 4352 } 4353 4354 return e.complexity.Commerce_Product_Loyalty_PriceInfo.DiscountText(childComplexity), true 4355 4356 case "Commerce_Product_Loyalty_PriceInfo.discounted": 4357 if e.complexity.Commerce_Product_Loyalty_PriceInfo.Discounted == nil { 4358 break 4359 } 4360 4361 return e.complexity.Commerce_Product_Loyalty_PriceInfo.Discounted(childComplexity), true 4362 4363 case "Commerce_Product_Loyalty_PriceInfo.isDiscounted": 4364 if e.complexity.Commerce_Product_Loyalty_PriceInfo.IsDiscounted == nil { 4365 break 4366 } 4367 4368 return e.complexity.Commerce_Product_Loyalty_PriceInfo.IsDiscounted(childComplexity), true 4369 4370 case "Commerce_Product_Loyalty_PriceInfo.maxPointsToSpent": 4371 if e.complexity.Commerce_Product_Loyalty_PriceInfo.MaxPointsToSpent == nil { 4372 break 4373 } 4374 4375 return e.complexity.Commerce_Product_Loyalty_PriceInfo.MaxPointsToSpent(childComplexity), true 4376 4377 case "Commerce_Product_Loyalty_PriceInfo.minPointsToSpent": 4378 if e.complexity.Commerce_Product_Loyalty_PriceInfo.MinPointsToSpent == nil { 4379 break 4380 } 4381 4382 return e.complexity.Commerce_Product_Loyalty_PriceInfo.MinPointsToSpent(childComplexity), true 4383 4384 case "Commerce_Product_Loyalty_PriceInfo.type": 4385 if e.complexity.Commerce_Product_Loyalty_PriceInfo.Type == nil { 4386 break 4387 } 4388 4389 return e.complexity.Commerce_Product_Loyalty_PriceInfo.Type(childComplexity), true 4390 4391 case "Commerce_Product_Media.all": 4392 if e.complexity.Commerce_Product_Media.All == nil { 4393 break 4394 } 4395 4396 return e.complexity.Commerce_Product_Media.All(childComplexity), true 4397 4398 case "Commerce_Product_Media.getMedia": 4399 if e.complexity.Commerce_Product_Media.GetMedia == nil { 4400 break 4401 } 4402 4403 args, err := ec.field_Commerce_Product_Media_getMedia_args(context.TODO(), rawArgs) 4404 if err != nil { 4405 return 0, false 4406 } 4407 4408 return e.complexity.Commerce_Product_Media.GetMedia(childComplexity, args["usage"].(string)), true 4409 4410 case "Commerce_Product_MediaItem.mimeType": 4411 if e.complexity.Commerce_Product_MediaItem.MimeType == nil { 4412 break 4413 } 4414 4415 return e.complexity.Commerce_Product_MediaItem.MimeType(childComplexity), true 4416 4417 case "Commerce_Product_MediaItem.reference": 4418 if e.complexity.Commerce_Product_MediaItem.Reference == nil { 4419 break 4420 } 4421 4422 return e.complexity.Commerce_Product_MediaItem.Reference(childComplexity), true 4423 4424 case "Commerce_Product_MediaItem.title": 4425 if e.complexity.Commerce_Product_MediaItem.Title == nil { 4426 break 4427 } 4428 4429 return e.complexity.Commerce_Product_MediaItem.Title(childComplexity), true 4430 4431 case "Commerce_Product_MediaItem.type": 4432 if e.complexity.Commerce_Product_MediaItem.Type == nil { 4433 break 4434 } 4435 4436 return e.complexity.Commerce_Product_MediaItem.Type(childComplexity), true 4437 4438 case "Commerce_Product_MediaItem.usage": 4439 if e.complexity.Commerce_Product_MediaItem.Usage == nil { 4440 break 4441 } 4442 4443 return e.complexity.Commerce_Product_MediaItem.Usage(childComplexity), true 4444 4445 case "Commerce_Product_Meta.keywords": 4446 if e.complexity.Commerce_Product_Meta.Keywords == nil { 4447 break 4448 } 4449 4450 return e.complexity.Commerce_Product_Meta.Keywords(childComplexity), true 4451 4452 case "Commerce_Product_Option.product": 4453 if e.complexity.Commerce_Product_Option.Product == nil { 4454 break 4455 } 4456 4457 return e.complexity.Commerce_Product_Option.Product(childComplexity), true 4458 4459 case "Commerce_Product_Option.qty": 4460 if e.complexity.Commerce_Product_Option.Qty == nil { 4461 break 4462 } 4463 4464 return e.complexity.Commerce_Product_Option.Qty(childComplexity), true 4465 4466 case "Commerce_Product_PriceContext.channelCode": 4467 if e.complexity.Commerce_Product_PriceContext.ChannelCode == nil { 4468 break 4469 } 4470 4471 return e.complexity.Commerce_Product_PriceContext.ChannelCode(childComplexity), true 4472 4473 case "Commerce_Product_PriceContext.customerGroup": 4474 if e.complexity.Commerce_Product_PriceContext.CustomerGroup == nil { 4475 break 4476 } 4477 4478 return e.complexity.Commerce_Product_PriceContext.CustomerGroup(childComplexity), true 4479 4480 case "Commerce_Product_PriceContext.deliveryCode": 4481 if e.complexity.Commerce_Product_PriceContext.DeliveryCode == nil { 4482 break 4483 } 4484 4485 return e.complexity.Commerce_Product_PriceContext.DeliveryCode(childComplexity), true 4486 4487 case "Commerce_Product_PriceContext.locale": 4488 if e.complexity.Commerce_Product_PriceContext.Locale == nil { 4489 break 4490 } 4491 4492 return e.complexity.Commerce_Product_PriceContext.Locale(childComplexity), true 4493 4494 case "Commerce_Product_PriceInfo.activeBase": 4495 if e.complexity.Commerce_Product_PriceInfo.ActiveBase == nil { 4496 break 4497 } 4498 4499 return e.complexity.Commerce_Product_PriceInfo.ActiveBase(childComplexity), true 4500 4501 case "Commerce_Product_PriceInfo.activeBaseAmount": 4502 if e.complexity.Commerce_Product_PriceInfo.ActiveBaseAmount == nil { 4503 break 4504 } 4505 4506 return e.complexity.Commerce_Product_PriceInfo.ActiveBaseAmount(childComplexity), true 4507 4508 case "Commerce_Product_PriceInfo.activeBaseUnit": 4509 if e.complexity.Commerce_Product_PriceInfo.ActiveBaseUnit == nil { 4510 break 4511 } 4512 4513 return e.complexity.Commerce_Product_PriceInfo.ActiveBaseUnit(childComplexity), true 4514 4515 case "Commerce_Product_PriceInfo.campaignRules": 4516 if e.complexity.Commerce_Product_PriceInfo.CampaignRules == nil { 4517 break 4518 } 4519 4520 return e.complexity.Commerce_Product_PriceInfo.CampaignRules(childComplexity), true 4521 4522 case "Commerce_Product_PriceInfo.context": 4523 if e.complexity.Commerce_Product_PriceInfo.Context == nil { 4524 break 4525 } 4526 4527 return e.complexity.Commerce_Product_PriceInfo.Context(childComplexity), true 4528 4529 case "Commerce_Product_PriceInfo.default": 4530 if e.complexity.Commerce_Product_PriceInfo.Default == nil { 4531 break 4532 } 4533 4534 return e.complexity.Commerce_Product_PriceInfo.Default(childComplexity), true 4535 4536 case "Commerce_Product_PriceInfo.denyMoreDiscounts": 4537 if e.complexity.Commerce_Product_PriceInfo.DenyMoreDiscounts == nil { 4538 break 4539 } 4540 4541 return e.complexity.Commerce_Product_PriceInfo.DenyMoreDiscounts(childComplexity), true 4542 4543 case "Commerce_Product_PriceInfo.discountText": 4544 if e.complexity.Commerce_Product_PriceInfo.DiscountText == nil { 4545 break 4546 } 4547 4548 return e.complexity.Commerce_Product_PriceInfo.DiscountText(childComplexity), true 4549 4550 case "Commerce_Product_PriceInfo.discounted": 4551 if e.complexity.Commerce_Product_PriceInfo.Discounted == nil { 4552 break 4553 } 4554 4555 return e.complexity.Commerce_Product_PriceInfo.Discounted(childComplexity), true 4556 4557 case "Commerce_Product_PriceInfo.isDiscounted": 4558 if e.complexity.Commerce_Product_PriceInfo.IsDiscounted == nil { 4559 break 4560 } 4561 4562 return e.complexity.Commerce_Product_PriceInfo.IsDiscounted(childComplexity), true 4563 4564 case "Commerce_Product_PriceInfo.taxClass": 4565 if e.complexity.Commerce_Product_PriceInfo.TaxClass == nil { 4566 break 4567 } 4568 4569 return e.complexity.Commerce_Product_PriceInfo.TaxClass(childComplexity), true 4570 4571 case "Commerce_Product_SearchResult.actions": 4572 if e.complexity.Commerce_Product_SearchResult.Actions == nil { 4573 break 4574 } 4575 4576 return e.complexity.Commerce_Product_SearchResult.Actions(childComplexity), true 4577 4578 case "Commerce_Product_SearchResult.facets": 4579 if e.complexity.Commerce_Product_SearchResult.Facets == nil { 4580 break 4581 } 4582 4583 return e.complexity.Commerce_Product_SearchResult.Facets(childComplexity), true 4584 4585 case "Commerce_Product_SearchResult.hasSelectedFacet": 4586 if e.complexity.Commerce_Product_SearchResult.HasSelectedFacet == nil { 4587 break 4588 } 4589 4590 return e.complexity.Commerce_Product_SearchResult.HasSelectedFacet(childComplexity), true 4591 4592 case "Commerce_Product_SearchResult.products": 4593 if e.complexity.Commerce_Product_SearchResult.Products == nil { 4594 break 4595 } 4596 4597 return e.complexity.Commerce_Product_SearchResult.Products(childComplexity), true 4598 4599 case "Commerce_Product_SearchResult.promotion": 4600 if e.complexity.Commerce_Product_SearchResult.Promotion == nil { 4601 break 4602 } 4603 4604 return e.complexity.Commerce_Product_SearchResult.Promotion(childComplexity), true 4605 4606 case "Commerce_Product_SearchResult.searchMeta": 4607 if e.complexity.Commerce_Product_SearchResult.SearchMeta == nil { 4608 break 4609 } 4610 4611 return e.complexity.Commerce_Product_SearchResult.SearchMeta(childComplexity), true 4612 4613 case "Commerce_Product_SearchResult.suggestions": 4614 if e.complexity.Commerce_Product_SearchResult.Suggestions == nil { 4615 break 4616 } 4617 4618 return e.complexity.Commerce_Product_SearchResult.Suggestions(childComplexity), true 4619 4620 case "Commerce_Product_SimpleProduct.attributes": 4621 if e.complexity.Commerce_Product_SimpleProduct.Attributes == nil { 4622 break 4623 } 4624 4625 return e.complexity.Commerce_Product_SimpleProduct.Attributes(childComplexity), true 4626 4627 case "Commerce_Product_SimpleProduct.availablePrices": 4628 if e.complexity.Commerce_Product_SimpleProduct.AvailablePrices == nil { 4629 break 4630 } 4631 4632 return e.complexity.Commerce_Product_SimpleProduct.AvailablePrices(childComplexity), true 4633 4634 case "Commerce_Product_SimpleProduct.badges": 4635 if e.complexity.Commerce_Product_SimpleProduct.Badges == nil { 4636 break 4637 } 4638 4639 return e.complexity.Commerce_Product_SimpleProduct.Badges(childComplexity), true 4640 4641 case "Commerce_Product_SimpleProduct.categories": 4642 if e.complexity.Commerce_Product_SimpleProduct.Categories == nil { 4643 break 4644 } 4645 4646 return e.complexity.Commerce_Product_SimpleProduct.Categories(childComplexity), true 4647 4648 case "Commerce_Product_SimpleProduct.description": 4649 if e.complexity.Commerce_Product_SimpleProduct.Description == nil { 4650 break 4651 } 4652 4653 return e.complexity.Commerce_Product_SimpleProduct.Description(childComplexity), true 4654 4655 case "Commerce_Product_SimpleProduct.identifier": 4656 if e.complexity.Commerce_Product_SimpleProduct.Identifier == nil { 4657 break 4658 } 4659 4660 return e.complexity.Commerce_Product_SimpleProduct.Identifier(childComplexity), true 4661 4662 case "Commerce_Product_SimpleProduct.loyalty": 4663 if e.complexity.Commerce_Product_SimpleProduct.Loyalty == nil { 4664 break 4665 } 4666 4667 return e.complexity.Commerce_Product_SimpleProduct.Loyalty(childComplexity), true 4668 4669 case "Commerce_Product_SimpleProduct.marketPlaceCode": 4670 if e.complexity.Commerce_Product_SimpleProduct.MarketPlaceCode == nil { 4671 break 4672 } 4673 4674 return e.complexity.Commerce_Product_SimpleProduct.MarketPlaceCode(childComplexity), true 4675 4676 case "Commerce_Product_SimpleProduct.media": 4677 if e.complexity.Commerce_Product_SimpleProduct.Media == nil { 4678 break 4679 } 4680 4681 return e.complexity.Commerce_Product_SimpleProduct.Media(childComplexity), true 4682 4683 case "Commerce_Product_SimpleProduct.meta": 4684 if e.complexity.Commerce_Product_SimpleProduct.Meta == nil { 4685 break 4686 } 4687 4688 return e.complexity.Commerce_Product_SimpleProduct.Meta(childComplexity), true 4689 4690 case "Commerce_Product_SimpleProduct.price": 4691 if e.complexity.Commerce_Product_SimpleProduct.Price == nil { 4692 break 4693 } 4694 4695 return e.complexity.Commerce_Product_SimpleProduct.Price(childComplexity), true 4696 4697 case "Commerce_Product_SimpleProduct.shortDescription": 4698 if e.complexity.Commerce_Product_SimpleProduct.ShortDescription == nil { 4699 break 4700 } 4701 4702 return e.complexity.Commerce_Product_SimpleProduct.ShortDescription(childComplexity), true 4703 4704 case "Commerce_Product_SimpleProduct.title": 4705 if e.complexity.Commerce_Product_SimpleProduct.Title == nil { 4706 break 4707 } 4708 4709 return e.complexity.Commerce_Product_SimpleProduct.Title(childComplexity), true 4710 4711 case "Commerce_Product_SimpleProduct.type": 4712 if e.complexity.Commerce_Product_SimpleProduct.Type == nil { 4713 break 4714 } 4715 4716 return e.complexity.Commerce_Product_SimpleProduct.Type(childComplexity), true 4717 4718 case "Commerce_Product_VariantSelection.attributes": 4719 if e.complexity.Commerce_Product_VariantSelection.Attributes == nil { 4720 break 4721 } 4722 4723 return e.complexity.Commerce_Product_VariantSelection.Attributes(childComplexity), true 4724 4725 case "Commerce_Product_VariantSelection.variants": 4726 if e.complexity.Commerce_Product_VariantSelection.Variants == nil { 4727 break 4728 } 4729 4730 return e.complexity.Commerce_Product_VariantSelection.Variants(childComplexity), true 4731 4732 case "Commerce_Product_VariantSelection_Attribute.code": 4733 if e.complexity.Commerce_Product_VariantSelection_Attribute.Code == nil { 4734 break 4735 } 4736 4737 return e.complexity.Commerce_Product_VariantSelection_Attribute.Code(childComplexity), true 4738 4739 case "Commerce_Product_VariantSelection_Attribute.label": 4740 if e.complexity.Commerce_Product_VariantSelection_Attribute.Label == nil { 4741 break 4742 } 4743 4744 return e.complexity.Commerce_Product_VariantSelection_Attribute.Label(childComplexity), true 4745 4746 case "Commerce_Product_VariantSelection_Attribute.options": 4747 if e.complexity.Commerce_Product_VariantSelection_Attribute.Options == nil { 4748 break 4749 } 4750 4751 return e.complexity.Commerce_Product_VariantSelection_Attribute.Options(childComplexity), true 4752 4753 case "Commerce_Product_VariantSelection_Attribute_Option.label": 4754 if e.complexity.Commerce_Product_VariantSelection_Attribute_Option.Label == nil { 4755 break 4756 } 4757 4758 return e.complexity.Commerce_Product_VariantSelection_Attribute_Option.Label(childComplexity), true 4759 4760 case "Commerce_Product_VariantSelection_Attribute_Option.otherAttributesRestrictions": 4761 if e.complexity.Commerce_Product_VariantSelection_Attribute_Option.OtherAttributesRestrictions == nil { 4762 break 4763 } 4764 4765 return e.complexity.Commerce_Product_VariantSelection_Attribute_Option.OtherAttributesRestrictions(childComplexity), true 4766 4767 case "Commerce_Product_VariantSelection_Attribute_Option.unitCode": 4768 if e.complexity.Commerce_Product_VariantSelection_Attribute_Option.UnitCode == nil { 4769 break 4770 } 4771 4772 return e.complexity.Commerce_Product_VariantSelection_Attribute_Option.UnitCode(childComplexity), true 4773 4774 case "Commerce_Product_VariantSelection_Match.attributes": 4775 if e.complexity.Commerce_Product_VariantSelection_Match.Attributes == nil { 4776 break 4777 } 4778 4779 return e.complexity.Commerce_Product_VariantSelection_Match.Attributes(childComplexity), true 4780 4781 case "Commerce_Product_VariantSelection_Match.variant": 4782 if e.complexity.Commerce_Product_VariantSelection_Match.Variant == nil { 4783 break 4784 } 4785 4786 return e.complexity.Commerce_Product_VariantSelection_Match.Variant(childComplexity), true 4787 4788 case "Commerce_Product_VariantSelection_Match_Attributes.key": 4789 if e.complexity.Commerce_Product_VariantSelection_Match_Attributes.Key == nil { 4790 break 4791 } 4792 4793 return e.complexity.Commerce_Product_VariantSelection_Match_Attributes.Key(childComplexity), true 4794 4795 case "Commerce_Product_VariantSelection_Match_Attributes.value": 4796 if e.complexity.Commerce_Product_VariantSelection_Match_Attributes.Value == nil { 4797 break 4798 } 4799 4800 return e.complexity.Commerce_Product_VariantSelection_Match_Attributes.Value(childComplexity), true 4801 4802 case "Commerce_Product_VariantSelection_Match_Variant.marketplaceCode": 4803 if e.complexity.Commerce_Product_VariantSelection_Match_Variant.MarketplaceCode == nil { 4804 break 4805 } 4806 4807 return e.complexity.Commerce_Product_VariantSelection_Match_Variant.MarketplaceCode(childComplexity), true 4808 4809 case "Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.availableOptions": 4810 if e.complexity.Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.AvailableOptions == nil { 4811 break 4812 } 4813 4814 return e.complexity.Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.AvailableOptions(childComplexity), true 4815 4816 case "Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.code": 4817 if e.complexity.Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.Code == nil { 4818 break 4819 } 4820 4821 return e.complexity.Commerce_Product_VariantSelection_Option_OtherAttributesRestriction.Code(childComplexity), true 4822 4823 case "Commerce_Product_VariationSelection.code": 4824 if e.complexity.Commerce_Product_VariationSelection.Code == nil { 4825 break 4826 } 4827 4828 return e.complexity.Commerce_Product_VariationSelection.Code(childComplexity), true 4829 4830 case "Commerce_Product_VariationSelection.label": 4831 if e.complexity.Commerce_Product_VariationSelection.Label == nil { 4832 break 4833 } 4834 4835 return e.complexity.Commerce_Product_VariationSelection.Label(childComplexity), true 4836 4837 case "Commerce_Product_VariationSelection.options": 4838 if e.complexity.Commerce_Product_VariationSelection.Options == nil { 4839 break 4840 } 4841 4842 return e.complexity.Commerce_Product_VariationSelection.Options(childComplexity), true 4843 4844 case "Commerce_Product_VariationSelection_Option.label": 4845 if e.complexity.Commerce_Product_VariationSelection_Option.Label == nil { 4846 break 4847 } 4848 4849 return e.complexity.Commerce_Product_VariationSelection_Option.Label(childComplexity), true 4850 4851 case "Commerce_Product_VariationSelection_Option.state": 4852 if e.complexity.Commerce_Product_VariationSelection_Option.State == nil { 4853 break 4854 } 4855 4856 return e.complexity.Commerce_Product_VariationSelection_Option.State(childComplexity), true 4857 4858 case "Commerce_Product_VariationSelection_Option.unitCode": 4859 if e.complexity.Commerce_Product_VariationSelection_Option.UnitCode == nil { 4860 break 4861 } 4862 4863 return e.complexity.Commerce_Product_VariationSelection_Option.UnitCode(childComplexity), true 4864 4865 case "Commerce_Product_VariationSelection_Option.variant": 4866 if e.complexity.Commerce_Product_VariationSelection_Option.Variant == nil { 4867 break 4868 } 4869 4870 return e.complexity.Commerce_Product_VariationSelection_Option.Variant(childComplexity), true 4871 4872 case "Commerce_Product_VariationSelection_OptionVariant.marketPlaceCode": 4873 if e.complexity.Commerce_Product_VariationSelection_OptionVariant.MarketPlaceCode == nil { 4874 break 4875 } 4876 4877 return e.complexity.Commerce_Product_VariationSelection_OptionVariant.MarketPlaceCode(childComplexity), true 4878 4879 case "Commerce_Search_Action.content": 4880 if e.complexity.Commerce_Search_Action.Content == nil { 4881 break 4882 } 4883 4884 return e.complexity.Commerce_Search_Action.Content(childComplexity), true 4885 4886 case "Commerce_Search_Action.type": 4887 if e.complexity.Commerce_Search_Action.Type == nil { 4888 break 4889 } 4890 4891 return e.complexity.Commerce_Search_Action.Type(childComplexity), true 4892 4893 case "Commerce_Search_ListFacet.hasSelectedItem": 4894 if e.complexity.Commerce_Search_ListFacet.HasSelectedItem == nil { 4895 break 4896 } 4897 4898 return e.complexity.Commerce_Search_ListFacet.HasSelectedItem(childComplexity), true 4899 4900 case "Commerce_Search_ListFacet.items": 4901 if e.complexity.Commerce_Search_ListFacet.Items == nil { 4902 break 4903 } 4904 4905 return e.complexity.Commerce_Search_ListFacet.Items(childComplexity), true 4906 4907 case "Commerce_Search_ListFacet.label": 4908 if e.complexity.Commerce_Search_ListFacet.Label == nil { 4909 break 4910 } 4911 4912 return e.complexity.Commerce_Search_ListFacet.Label(childComplexity), true 4913 4914 case "Commerce_Search_ListFacet.name": 4915 if e.complexity.Commerce_Search_ListFacet.Name == nil { 4916 break 4917 } 4918 4919 return e.complexity.Commerce_Search_ListFacet.Name(childComplexity), true 4920 4921 case "Commerce_Search_ListFacet.position": 4922 if e.complexity.Commerce_Search_ListFacet.Position == nil { 4923 break 4924 } 4925 4926 return e.complexity.Commerce_Search_ListFacet.Position(childComplexity), true 4927 4928 case "Commerce_Search_ListFacetItem.count": 4929 if e.complexity.Commerce_Search_ListFacetItem.Count == nil { 4930 break 4931 } 4932 4933 return e.complexity.Commerce_Search_ListFacetItem.Count(childComplexity), true 4934 4935 case "Commerce_Search_ListFacetItem.label": 4936 if e.complexity.Commerce_Search_ListFacetItem.Label == nil { 4937 break 4938 } 4939 4940 return e.complexity.Commerce_Search_ListFacetItem.Label(childComplexity), true 4941 4942 case "Commerce_Search_ListFacetItem.selected": 4943 if e.complexity.Commerce_Search_ListFacetItem.Selected == nil { 4944 break 4945 } 4946 4947 return e.complexity.Commerce_Search_ListFacetItem.Selected(childComplexity), true 4948 4949 case "Commerce_Search_ListFacetItem.value": 4950 if e.complexity.Commerce_Search_ListFacetItem.Value == nil { 4951 break 4952 } 4953 4954 return e.complexity.Commerce_Search_ListFacetItem.Value(childComplexity), true 4955 4956 case "Commerce_Search_Meta.numPages": 4957 if e.complexity.Commerce_Search_Meta.NumPages == nil { 4958 break 4959 } 4960 4961 return e.complexity.Commerce_Search_Meta.NumPages(childComplexity), true 4962 4963 case "Commerce_Search_Meta.numResults": 4964 if e.complexity.Commerce_Search_Meta.NumResults == nil { 4965 break 4966 } 4967 4968 return e.complexity.Commerce_Search_Meta.NumResults(childComplexity), true 4969 4970 case "Commerce_Search_Meta.originalQuery": 4971 if e.complexity.Commerce_Search_Meta.OriginalQuery == nil { 4972 break 4973 } 4974 4975 return e.complexity.Commerce_Search_Meta.OriginalQuery(childComplexity), true 4976 4977 case "Commerce_Search_Meta.page": 4978 if e.complexity.Commerce_Search_Meta.Page == nil { 4979 break 4980 } 4981 4982 return e.complexity.Commerce_Search_Meta.Page(childComplexity), true 4983 4984 case "Commerce_Search_Meta.query": 4985 if e.complexity.Commerce_Search_Meta.Query == nil { 4986 break 4987 } 4988 4989 return e.complexity.Commerce_Search_Meta.Query(childComplexity), true 4990 4991 case "Commerce_Search_Meta.sortOptions": 4992 if e.complexity.Commerce_Search_Meta.SortOptions == nil { 4993 break 4994 } 4995 4996 return e.complexity.Commerce_Search_Meta.SortOptions(childComplexity), true 4997 4998 case "Commerce_Search_Promotion.content": 4999 if e.complexity.Commerce_Search_Promotion.Content == nil { 5000 break 5001 } 5002 5003 return e.complexity.Commerce_Search_Promotion.Content(childComplexity), true 5004 5005 case "Commerce_Search_Promotion.media": 5006 if e.complexity.Commerce_Search_Promotion.Media == nil { 5007 break 5008 } 5009 5010 return e.complexity.Commerce_Search_Promotion.Media(childComplexity), true 5011 5012 case "Commerce_Search_Promotion.title": 5013 if e.complexity.Commerce_Search_Promotion.Title == nil { 5014 break 5015 } 5016 5017 return e.complexity.Commerce_Search_Promotion.Title(childComplexity), true 5018 5019 case "Commerce_Search_Promotion.url": 5020 if e.complexity.Commerce_Search_Promotion.URL == nil { 5021 break 5022 } 5023 5024 return e.complexity.Commerce_Search_Promotion.URL(childComplexity), true 5025 5026 case "Commerce_Search_PromotionMedia.mimeType": 5027 if e.complexity.Commerce_Search_PromotionMedia.MimeType == nil { 5028 break 5029 } 5030 5031 return e.complexity.Commerce_Search_PromotionMedia.MimeType(childComplexity), true 5032 5033 case "Commerce_Search_PromotionMedia.reference": 5034 if e.complexity.Commerce_Search_PromotionMedia.Reference == nil { 5035 break 5036 } 5037 5038 return e.complexity.Commerce_Search_PromotionMedia.Reference(childComplexity), true 5039 5040 case "Commerce_Search_PromotionMedia.title": 5041 if e.complexity.Commerce_Search_PromotionMedia.Title == nil { 5042 break 5043 } 5044 5045 return e.complexity.Commerce_Search_PromotionMedia.Title(childComplexity), true 5046 5047 case "Commerce_Search_PromotionMedia.type": 5048 if e.complexity.Commerce_Search_PromotionMedia.Type == nil { 5049 break 5050 } 5051 5052 return e.complexity.Commerce_Search_PromotionMedia.Type(childComplexity), true 5053 5054 case "Commerce_Search_PromotionMedia.usage": 5055 if e.complexity.Commerce_Search_PromotionMedia.Usage == nil { 5056 break 5057 } 5058 5059 return e.complexity.Commerce_Search_PromotionMedia.Usage(childComplexity), true 5060 5061 case "Commerce_Search_RangeFacet.hasSelectedItem": 5062 if e.complexity.Commerce_Search_RangeFacet.HasSelectedItem == nil { 5063 break 5064 } 5065 5066 return e.complexity.Commerce_Search_RangeFacet.HasSelectedItem(childComplexity), true 5067 5068 case "Commerce_Search_RangeFacet.items": 5069 if e.complexity.Commerce_Search_RangeFacet.Items == nil { 5070 break 5071 } 5072 5073 return e.complexity.Commerce_Search_RangeFacet.Items(childComplexity), true 5074 5075 case "Commerce_Search_RangeFacet.label": 5076 if e.complexity.Commerce_Search_RangeFacet.Label == nil { 5077 break 5078 } 5079 5080 return e.complexity.Commerce_Search_RangeFacet.Label(childComplexity), true 5081 5082 case "Commerce_Search_RangeFacet.name": 5083 if e.complexity.Commerce_Search_RangeFacet.Name == nil { 5084 break 5085 } 5086 5087 return e.complexity.Commerce_Search_RangeFacet.Name(childComplexity), true 5088 5089 case "Commerce_Search_RangeFacet.position": 5090 if e.complexity.Commerce_Search_RangeFacet.Position == nil { 5091 break 5092 } 5093 5094 return e.complexity.Commerce_Search_RangeFacet.Position(childComplexity), true 5095 5096 case "Commerce_Search_RangeFacetItem.count": 5097 if e.complexity.Commerce_Search_RangeFacetItem.Count == nil { 5098 break 5099 } 5100 5101 return e.complexity.Commerce_Search_RangeFacetItem.Count(childComplexity), true 5102 5103 case "Commerce_Search_RangeFacetItem.label": 5104 if e.complexity.Commerce_Search_RangeFacetItem.Label == nil { 5105 break 5106 } 5107 5108 return e.complexity.Commerce_Search_RangeFacetItem.Label(childComplexity), true 5109 5110 case "Commerce_Search_RangeFacetItem.max": 5111 if e.complexity.Commerce_Search_RangeFacetItem.Max == nil { 5112 break 5113 } 5114 5115 return e.complexity.Commerce_Search_RangeFacetItem.Max(childComplexity), true 5116 5117 case "Commerce_Search_RangeFacetItem.min": 5118 if e.complexity.Commerce_Search_RangeFacetItem.Min == nil { 5119 break 5120 } 5121 5122 return e.complexity.Commerce_Search_RangeFacetItem.Min(childComplexity), true 5123 5124 case "Commerce_Search_RangeFacetItem.selected": 5125 if e.complexity.Commerce_Search_RangeFacetItem.Selected == nil { 5126 break 5127 } 5128 5129 return e.complexity.Commerce_Search_RangeFacetItem.Selected(childComplexity), true 5130 5131 case "Commerce_Search_RangeFacetItem.selectedMax": 5132 if e.complexity.Commerce_Search_RangeFacetItem.SelectedMax == nil { 5133 break 5134 } 5135 5136 return e.complexity.Commerce_Search_RangeFacetItem.SelectedMax(childComplexity), true 5137 5138 case "Commerce_Search_RangeFacetItem.selectedMin": 5139 if e.complexity.Commerce_Search_RangeFacetItem.SelectedMin == nil { 5140 break 5141 } 5142 5143 return e.complexity.Commerce_Search_RangeFacetItem.SelectedMin(childComplexity), true 5144 5145 case "Commerce_Search_RangeFacetItem.value": 5146 if e.complexity.Commerce_Search_RangeFacetItem.Value == nil { 5147 break 5148 } 5149 5150 return e.complexity.Commerce_Search_RangeFacetItem.Value(childComplexity), true 5151 5152 case "Commerce_Search_SortOption.field": 5153 if e.complexity.Commerce_Search_SortOption.Field == nil { 5154 break 5155 } 5156 5157 return e.complexity.Commerce_Search_SortOption.Field(childComplexity), true 5158 5159 case "Commerce_Search_SortOption.label": 5160 if e.complexity.Commerce_Search_SortOption.Label == nil { 5161 break 5162 } 5163 5164 return e.complexity.Commerce_Search_SortOption.Label(childComplexity), true 5165 5166 case "Commerce_Search_SortOption.selected": 5167 if e.complexity.Commerce_Search_SortOption.Selected == nil { 5168 break 5169 } 5170 5171 return e.complexity.Commerce_Search_SortOption.Selected(childComplexity), true 5172 5173 case "Commerce_Search_Suggestion.highlight": 5174 if e.complexity.Commerce_Search_Suggestion.Highlight == nil { 5175 break 5176 } 5177 5178 return e.complexity.Commerce_Search_Suggestion.Highlight(childComplexity), true 5179 5180 case "Commerce_Search_Suggestion.text": 5181 if e.complexity.Commerce_Search_Suggestion.Text == nil { 5182 break 5183 } 5184 5185 return e.complexity.Commerce_Search_Suggestion.Text(childComplexity), true 5186 5187 case "Commerce_Search_TreeFacet.hasSelectedItem": 5188 if e.complexity.Commerce_Search_TreeFacet.HasSelectedItem == nil { 5189 break 5190 } 5191 5192 return e.complexity.Commerce_Search_TreeFacet.HasSelectedItem(childComplexity), true 5193 5194 case "Commerce_Search_TreeFacet.items": 5195 if e.complexity.Commerce_Search_TreeFacet.Items == nil { 5196 break 5197 } 5198 5199 return e.complexity.Commerce_Search_TreeFacet.Items(childComplexity), true 5200 5201 case "Commerce_Search_TreeFacet.label": 5202 if e.complexity.Commerce_Search_TreeFacet.Label == nil { 5203 break 5204 } 5205 5206 return e.complexity.Commerce_Search_TreeFacet.Label(childComplexity), true 5207 5208 case "Commerce_Search_TreeFacet.name": 5209 if e.complexity.Commerce_Search_TreeFacet.Name == nil { 5210 break 5211 } 5212 5213 return e.complexity.Commerce_Search_TreeFacet.Name(childComplexity), true 5214 5215 case "Commerce_Search_TreeFacet.position": 5216 if e.complexity.Commerce_Search_TreeFacet.Position == nil { 5217 break 5218 } 5219 5220 return e.complexity.Commerce_Search_TreeFacet.Position(childComplexity), true 5221 5222 case "Commerce_Search_TreeFacetItem.active": 5223 if e.complexity.Commerce_Search_TreeFacetItem.Active == nil { 5224 break 5225 } 5226 5227 return e.complexity.Commerce_Search_TreeFacetItem.Active(childComplexity), true 5228 5229 case "Commerce_Search_TreeFacetItem.count": 5230 if e.complexity.Commerce_Search_TreeFacetItem.Count == nil { 5231 break 5232 } 5233 5234 return e.complexity.Commerce_Search_TreeFacetItem.Count(childComplexity), true 5235 5236 case "Commerce_Search_TreeFacetItem.items": 5237 if e.complexity.Commerce_Search_TreeFacetItem.Items == nil { 5238 break 5239 } 5240 5241 return e.complexity.Commerce_Search_TreeFacetItem.Items(childComplexity), true 5242 5243 case "Commerce_Search_TreeFacetItem.label": 5244 if e.complexity.Commerce_Search_TreeFacetItem.Label == nil { 5245 break 5246 } 5247 5248 return e.complexity.Commerce_Search_TreeFacetItem.Label(childComplexity), true 5249 5250 case "Commerce_Search_TreeFacetItem.selected": 5251 if e.complexity.Commerce_Search_TreeFacetItem.Selected == nil { 5252 break 5253 } 5254 5255 return e.complexity.Commerce_Search_TreeFacetItem.Selected(childComplexity), true 5256 5257 case "Commerce_Search_TreeFacetItem.value": 5258 if e.complexity.Commerce_Search_TreeFacetItem.Value == nil { 5259 break 5260 } 5261 5262 return e.complexity.Commerce_Search_TreeFacetItem.Value(childComplexity), true 5263 5264 case "Mutation.Commerce_Cart_AddToCart": 5265 if e.complexity.Mutation.CommerceCartAddToCart == nil { 5266 break 5267 } 5268 5269 args, err := ec.field_Mutation_Commerce_Cart_AddToCart_args(context.TODO(), rawArgs) 5270 if err != nil { 5271 return 0, false 5272 } 5273 5274 return e.complexity.Mutation.CommerceCartAddToCart(childComplexity, args["addToCartInput"].(dto.AddToCart)), true 5275 5276 case "Mutation.Commerce_Cart_ApplyCouponCodeOrGiftCard": 5277 if e.complexity.Mutation.CommerceCartApplyCouponCodeOrGiftCard == nil { 5278 break 5279 } 5280 5281 args, err := ec.field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_args(context.TODO(), rawArgs) 5282 if err != nil { 5283 return 0, false 5284 } 5285 5286 return e.complexity.Mutation.CommerceCartApplyCouponCodeOrGiftCard(childComplexity, args["code"].(string)), true 5287 5288 case "Mutation.Commerce_Cart_Clean": 5289 if e.complexity.Mutation.CommerceCartClean == nil { 5290 break 5291 } 5292 5293 return e.complexity.Mutation.CommerceCartClean(childComplexity), true 5294 5295 case "Mutation.Commerce_Cart_DeleteCartDelivery": 5296 if e.complexity.Mutation.CommerceCartDeleteCartDelivery == nil { 5297 break 5298 } 5299 5300 args, err := ec.field_Mutation_Commerce_Cart_DeleteCartDelivery_args(context.TODO(), rawArgs) 5301 if err != nil { 5302 return 0, false 5303 } 5304 5305 return e.complexity.Mutation.CommerceCartDeleteCartDelivery(childComplexity, args["deliveryCode"].(string)), true 5306 5307 case "Mutation.Commerce_Cart_DeleteItem": 5308 if e.complexity.Mutation.CommerceCartDeleteItem == nil { 5309 break 5310 } 5311 5312 args, err := ec.field_Mutation_Commerce_Cart_DeleteItem_args(context.TODO(), rawArgs) 5313 if err != nil { 5314 return 0, false 5315 } 5316 5317 return e.complexity.Mutation.CommerceCartDeleteItem(childComplexity, args["itemID"].(string), args["deliveryCode"].(string)), true 5318 5319 case "Mutation.Commerce_Cart_RemoveCouponCode": 5320 if e.complexity.Mutation.CommerceCartRemoveCouponCode == nil { 5321 break 5322 } 5323 5324 args, err := ec.field_Mutation_Commerce_Cart_RemoveCouponCode_args(context.TODO(), rawArgs) 5325 if err != nil { 5326 return 0, false 5327 } 5328 5329 return e.complexity.Mutation.CommerceCartRemoveCouponCode(childComplexity, args["couponCode"].(string)), true 5330 5331 case "Mutation.Commerce_Cart_RemoveGiftCard": 5332 if e.complexity.Mutation.CommerceCartRemoveGiftCard == nil { 5333 break 5334 } 5335 5336 args, err := ec.field_Mutation_Commerce_Cart_RemoveGiftCard_args(context.TODO(), rawArgs) 5337 if err != nil { 5338 return 0, false 5339 } 5340 5341 return e.complexity.Mutation.CommerceCartRemoveGiftCard(childComplexity, args["giftCardCode"].(string)), true 5342 5343 case "Mutation.Commerce_Cart_UpdateAdditionalData": 5344 if e.complexity.Mutation.CommerceCartUpdateAdditionalData == nil { 5345 break 5346 } 5347 5348 args, err := ec.field_Mutation_Commerce_Cart_UpdateAdditionalData_args(context.TODO(), rawArgs) 5349 if err != nil { 5350 return 0, false 5351 } 5352 5353 return e.complexity.Mutation.CommerceCartUpdateAdditionalData(childComplexity, args["additionalData"].([]*dto.KeyValue)), true 5354 5355 case "Mutation.Commerce_Cart_UpdateBillingAddress": 5356 if e.complexity.Mutation.CommerceCartUpdateBillingAddress == nil { 5357 break 5358 } 5359 5360 args, err := ec.field_Mutation_Commerce_Cart_UpdateBillingAddress_args(context.TODO(), rawArgs) 5361 if err != nil { 5362 return 0, false 5363 } 5364 5365 return e.complexity.Mutation.CommerceCartUpdateBillingAddress(childComplexity, args["addressForm"].(*forms.AddressForm)), true 5366 5367 case "Mutation.Commerce_Cart_UpdateDeliveriesAdditionalData": 5368 if e.complexity.Mutation.CommerceCartUpdateDeliveriesAdditionalData == nil { 5369 break 5370 } 5371 5372 args, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_args(context.TODO(), rawArgs) 5373 if err != nil { 5374 return 0, false 5375 } 5376 5377 return e.complexity.Mutation.CommerceCartUpdateDeliveriesAdditionalData(childComplexity, args["data"].([]*dto.DeliveryAdditionalData)), true 5378 5379 case "Mutation.Commerce_Cart_UpdateDeliveryAddresses": 5380 if e.complexity.Mutation.CommerceCartUpdateDeliveryAddresses == nil { 5381 break 5382 } 5383 5384 args, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_args(context.TODO(), rawArgs) 5385 if err != nil { 5386 return 0, false 5387 } 5388 5389 return e.complexity.Mutation.CommerceCartUpdateDeliveryAddresses(childComplexity, args["deliveryAdresses"].([]*forms.DeliveryForm)), true 5390 5391 case "Mutation.Commerce_Cart_UpdateDeliveryShippingOptions": 5392 if e.complexity.Mutation.CommerceCartUpdateDeliveryShippingOptions == nil { 5393 break 5394 } 5395 5396 args, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_args(context.TODO(), rawArgs) 5397 if err != nil { 5398 return 0, false 5399 } 5400 5401 return e.complexity.Mutation.CommerceCartUpdateDeliveryShippingOptions(childComplexity, args["shippingOptions"].([]*dto.DeliveryShippingOption)), true 5402 5403 case "Mutation.Commerce_Cart_UpdateItemBundleConfig": 5404 if e.complexity.Mutation.CommerceCartUpdateItemBundleConfig == nil { 5405 break 5406 } 5407 5408 args, err := ec.field_Mutation_Commerce_Cart_UpdateItemBundleConfig_args(context.TODO(), rawArgs) 5409 if err != nil { 5410 return 0, false 5411 } 5412 5413 return e.complexity.Mutation.CommerceCartUpdateItemBundleConfig(childComplexity, args["itemID"].(string), args["bundleConfig"].([]*dto.ChoiceConfiguration)), true 5414 5415 case "Mutation.Commerce_Cart_UpdateItemQty": 5416 if e.complexity.Mutation.CommerceCartUpdateItemQty == nil { 5417 break 5418 } 5419 5420 args, err := ec.field_Mutation_Commerce_Cart_UpdateItemQty_args(context.TODO(), rawArgs) 5421 if err != nil { 5422 return 0, false 5423 } 5424 5425 return e.complexity.Mutation.CommerceCartUpdateItemQty(childComplexity, args["itemID"].(string), args["deliveryCode"].(string), args["qty"].(int)), true 5426 5427 case "Mutation.Commerce_Cart_UpdateSelectedPayment": 5428 if e.complexity.Mutation.CommerceCartUpdateSelectedPayment == nil { 5429 break 5430 } 5431 5432 args, err := ec.field_Mutation_Commerce_Cart_UpdateSelectedPayment_args(context.TODO(), rawArgs) 5433 if err != nil { 5434 return 0, false 5435 } 5436 5437 return e.complexity.Mutation.CommerceCartUpdateSelectedPayment(childComplexity, args["gateway"].(string), args["method"].(string)), true 5438 5439 case "Mutation.Commerce_Checkout_CancelPlaceOrder": 5440 if e.complexity.Mutation.CommerceCheckoutCancelPlaceOrder == nil { 5441 break 5442 } 5443 5444 return e.complexity.Mutation.CommerceCheckoutCancelPlaceOrder(childComplexity), true 5445 5446 case "Mutation.Commerce_Checkout_ClearPlaceOrder": 5447 if e.complexity.Mutation.CommerceCheckoutClearPlaceOrder == nil { 5448 break 5449 } 5450 5451 return e.complexity.Mutation.CommerceCheckoutClearPlaceOrder(childComplexity), true 5452 5453 case "Mutation.Commerce_Checkout_RefreshPlaceOrder": 5454 if e.complexity.Mutation.CommerceCheckoutRefreshPlaceOrder == nil { 5455 break 5456 } 5457 5458 return e.complexity.Mutation.CommerceCheckoutRefreshPlaceOrder(childComplexity), true 5459 5460 case "Mutation.Commerce_Checkout_RefreshPlaceOrderBlocking": 5461 if e.complexity.Mutation.CommerceCheckoutRefreshPlaceOrderBlocking == nil { 5462 break 5463 } 5464 5465 return e.complexity.Mutation.CommerceCheckoutRefreshPlaceOrderBlocking(childComplexity), true 5466 5467 case "Mutation.Commerce_Checkout_StartPlaceOrder": 5468 if e.complexity.Mutation.CommerceCheckoutStartPlaceOrder == nil { 5469 break 5470 } 5471 5472 args, err := ec.field_Mutation_Commerce_Checkout_StartPlaceOrder_args(context.TODO(), rawArgs) 5473 if err != nil { 5474 return 0, false 5475 } 5476 5477 return e.complexity.Mutation.CommerceCheckoutStartPlaceOrder(childComplexity, args["returnUrl"].(string)), true 5478 5479 case "Mutation.flamingo": 5480 if e.complexity.Mutation.Flamingo == nil { 5481 break 5482 } 5483 5484 return e.complexity.Mutation.Flamingo(childComplexity), true 5485 5486 case "Query.Commerce_Cart_DecoratedCart": 5487 if e.complexity.Query.CommerceCartDecoratedCart == nil { 5488 break 5489 } 5490 5491 return e.complexity.Query.CommerceCartDecoratedCart(childComplexity), true 5492 5493 case "Query.Commerce_Cart_QtyRestriction": 5494 if e.complexity.Query.CommerceCartQtyRestriction == nil { 5495 break 5496 } 5497 5498 args, err := ec.field_Query_Commerce_Cart_QtyRestriction_args(context.TODO(), rawArgs) 5499 if err != nil { 5500 return 0, false 5501 } 5502 5503 return e.complexity.Query.CommerceCartQtyRestriction(childComplexity, args["marketplaceCode"].(string), args["variantCode"].(*string), args["deliveryCode"].(string)), true 5504 5505 case "Query.Commerce_Cart_Validator": 5506 if e.complexity.Query.CommerceCartValidator == nil { 5507 break 5508 } 5509 5510 return e.complexity.Query.CommerceCartValidator(childComplexity), true 5511 5512 case "Query.Commerce_Category": 5513 if e.complexity.Query.CommerceCategory == nil { 5514 break 5515 } 5516 5517 args, err := ec.field_Query_Commerce_Category_args(context.TODO(), rawArgs) 5518 if err != nil { 5519 return 0, false 5520 } 5521 5522 return e.complexity.Query.CommerceCategory(childComplexity, args["categoryCode"].(string), args["categorySearchRequest"].(*searchdto.CommerceSearchRequest)), true 5523 5524 case "Query.Commerce_CategoryTree": 5525 if e.complexity.Query.CommerceCategoryTree == nil { 5526 break 5527 } 5528 5529 args, err := ec.field_Query_Commerce_CategoryTree_args(context.TODO(), rawArgs) 5530 if err != nil { 5531 return 0, false 5532 } 5533 5534 return e.complexity.Query.CommerceCategoryTree(childComplexity, args["activeCategoryCode"].(string)), true 5535 5536 case "Query.Commerce_Checkout_ActivePlaceOrder": 5537 if e.complexity.Query.CommerceCheckoutActivePlaceOrder == nil { 5538 break 5539 } 5540 5541 return e.complexity.Query.CommerceCheckoutActivePlaceOrder(childComplexity), true 5542 5543 case "Query.Commerce_Checkout_CurrentContext": 5544 if e.complexity.Query.CommerceCheckoutCurrentContext == nil { 5545 break 5546 } 5547 5548 return e.complexity.Query.CommerceCheckoutCurrentContext(childComplexity), true 5549 5550 case "Query.Commerce_Customer": 5551 if e.complexity.Query.CommerceCustomer == nil { 5552 break 5553 } 5554 5555 return e.complexity.Query.CommerceCustomer(childComplexity), true 5556 5557 case "Query.Commerce_Customer_Status": 5558 if e.complexity.Query.CommerceCustomerStatus == nil { 5559 break 5560 } 5561 5562 return e.complexity.Query.CommerceCustomerStatus(childComplexity), true 5563 5564 case "Query.Commerce_Product": 5565 if e.complexity.Query.CommerceProduct == nil { 5566 break 5567 } 5568 5569 args, err := ec.field_Query_Commerce_Product_args(context.TODO(), rawArgs) 5570 if err != nil { 5571 return 0, false 5572 } 5573 5574 return e.complexity.Query.CommerceProduct(childComplexity, args["marketPlaceCode"].(string), args["variantMarketPlaceCode"].(*string), args["bundleConfiguration"].([]*graphqlproductdto.ChoiceConfiguration)), true 5575 5576 case "Query.Commerce_Product_Search": 5577 if e.complexity.Query.CommerceProductSearch == nil { 5578 break 5579 } 5580 5581 args, err := ec.field_Query_Commerce_Product_Search_args(context.TODO(), rawArgs) 5582 if err != nil { 5583 return 0, false 5584 } 5585 5586 return e.complexity.Query.CommerceProductSearch(childComplexity, args["searchRequest"].(searchdto.CommerceSearchRequest)), true 5587 5588 case "Query.flamingo": 5589 if e.complexity.Query.Flamingo == nil { 5590 break 5591 } 5592 5593 return e.complexity.Query.Flamingo(childComplexity), true 5594 5595 } 5596 return 0, false 5597 } 5598 5599 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 5600 rc := graphql.GetOperationContext(ctx) 5601 ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} 5602 inputUnmarshalMap := graphql.BuildUnmarshalerMap( 5603 ec.unmarshalInputCommerce_Cart_AddToCartInput, 5604 ec.unmarshalInputCommerce_Cart_AddressFormInput, 5605 ec.unmarshalInputCommerce_Cart_ChoiceConfigurationInput, 5606 ec.unmarshalInputCommerce_Cart_DeliveryAdditionalDataInput, 5607 ec.unmarshalInputCommerce_Cart_DeliveryAddressInput, 5608 ec.unmarshalInputCommerce_Cart_DeliveryShippingOptionInput, 5609 ec.unmarshalInputCommerce_Cart_KeyValueInput, 5610 ec.unmarshalInputCommerce_Price_ChargeQualifierInput, 5611 ec.unmarshalInputCommerce_Product_ChoiceConfigurationInput, 5612 ec.unmarshalInputCommerce_Search_KeyValueFilter, 5613 ec.unmarshalInputCommerce_Search_Request, 5614 ) 5615 first := true 5616 5617 switch rc.Operation.Operation { 5618 case ast.Query: 5619 return func(ctx context.Context) *graphql.Response { 5620 var response graphql.Response 5621 var data graphql.Marshaler 5622 if first { 5623 first = false 5624 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 5625 data = ec._Query(ctx, rc.Operation.SelectionSet) 5626 } else { 5627 if atomic.LoadInt32(&ec.pendingDeferred) > 0 { 5628 result := <-ec.deferredResults 5629 atomic.AddInt32(&ec.pendingDeferred, -1) 5630 data = result.Result 5631 response.Path = result.Path 5632 response.Label = result.Label 5633 response.Errors = result.Errors 5634 } else { 5635 return nil 5636 } 5637 } 5638 var buf bytes.Buffer 5639 data.MarshalGQL(&buf) 5640 response.Data = buf.Bytes() 5641 if atomic.LoadInt32(&ec.deferred) > 0 { 5642 hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0 5643 response.HasNext = &hasNext 5644 } 5645 5646 return &response 5647 } 5648 case ast.Mutation: 5649 return func(ctx context.Context) *graphql.Response { 5650 if !first { 5651 return nil 5652 } 5653 first = false 5654 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) 5655 data := ec._Mutation(ctx, rc.Operation.SelectionSet) 5656 var buf bytes.Buffer 5657 data.MarshalGQL(&buf) 5658 5659 return &graphql.Response{ 5660 Data: buf.Bytes(), 5661 } 5662 } 5663 5664 default: 5665 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 5666 } 5667 } 5668 5669 type executionContext struct { 5670 *graphql.OperationContext 5671 *executableSchema 5672 deferred int32 5673 pendingDeferred int32 5674 deferredResults chan graphql.DeferredResult 5675 } 5676 5677 func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { 5678 atomic.AddInt32(&ec.pendingDeferred, 1) 5679 go func() { 5680 ctx := graphql.WithFreshResponseContext(dg.Context) 5681 dg.FieldSet.Dispatch(ctx) 5682 ds := graphql.DeferredResult{ 5683 Path: dg.Path, 5684 Label: dg.Label, 5685 Result: dg.FieldSet, 5686 Errors: graphql.GetErrors(ctx), 5687 } 5688 // null fields should bubble up 5689 if dg.FieldSet.Invalids > 0 { 5690 ds.Result = graphql.Null 5691 } 5692 ec.deferredResults <- ds 5693 }() 5694 } 5695 5696 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 5697 if ec.DisableIntrospection { 5698 return nil, errors.New("introspection disabled") 5699 } 5700 return introspection.WrapSchema(ec.Schema()), nil 5701 } 5702 5703 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 5704 if ec.DisableIntrospection { 5705 return nil, errors.New("introspection disabled") 5706 } 5707 return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil 5708 } 5709 5710 //go:embed "schema/schema.graphql" "schema/flamingo.me_flamingo-commerce_v3_price_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_search_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_product_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_customer_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_cart_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_checkout_interfaces_graphql-Service.graphql" "schema/flamingo.me_flamingo-commerce_v3_category_interfaces_graphql-Service.graphql" 5711 var sourcesFS embed.FS 5712 5713 func sourceData(filename string) string { 5714 data, err := sourcesFS.ReadFile(filename) 5715 if err != nil { 5716 panic(fmt.Sprintf("codegen problem: %s not available", filename)) 5717 } 5718 return string(data) 5719 } 5720 5721 var sources = []*ast.Source{ 5722 {Name: "schema/schema.graphql", Input: sourceData("schema/schema.graphql"), BuiltIn: false}, 5723 {Name: "schema/flamingo.me_flamingo-commerce_v3_price_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_price_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5724 {Name: "schema/flamingo.me_flamingo-commerce_v3_search_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_search_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5725 {Name: "schema/flamingo.me_flamingo-commerce_v3_product_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_product_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5726 {Name: "schema/flamingo.me_flamingo-commerce_v3_customer_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_customer_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5727 {Name: "schema/flamingo.me_flamingo-commerce_v3_cart_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_cart_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5728 {Name: "schema/flamingo.me_flamingo-commerce_v3_checkout_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_checkout_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5729 {Name: "schema/flamingo.me_flamingo-commerce_v3_category_interfaces_graphql-Service.graphql", Input: sourceData("schema/flamingo.me_flamingo-commerce_v3_category_interfaces_graphql-Service.graphql"), BuiltIn: false}, 5730 } 5731 var parsedSchema = gqlparser.MustLoadSchema(sources...) 5732 5733 // endregion ************************** generated!.gotpl ************************** 5734 5735 // region ***************************** args.gotpl ***************************** 5736 5737 func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byCampaignCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5738 var err error 5739 args := map[string]interface{}{} 5740 var arg0 string 5741 if tmp, ok := rawArgs["campaignCode"]; ok { 5742 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignCode")) 5743 arg0, err = ec.unmarshalOString2string(ctx, tmp) 5744 if err != nil { 5745 return nil, err 5746 } 5747 } 5748 args["campaignCode"] = arg0 5749 return args, nil 5750 } 5751 5752 func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5753 var err error 5754 args := map[string]interface{}{} 5755 var arg0 string 5756 if tmp, ok := rawArgs["filterType"]; ok { 5757 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filterType")) 5758 arg0, err = ec.unmarshalOString2string(ctx, tmp) 5759 if err != nil { 5760 return nil, err 5761 } 5762 } 5763 args["filterType"] = arg0 5764 return args, nil 5765 } 5766 5767 func (ec *executionContext) field_Commerce_Cart_Cart_getByExternalReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5768 var err error 5769 args := map[string]interface{}{} 5770 var arg0 string 5771 if tmp, ok := rawArgs["ref"]; ok { 5772 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) 5773 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5774 if err != nil { 5775 return nil, err 5776 } 5777 } 5778 args["ref"] = arg0 5779 return args, nil 5780 } 5781 5782 func (ec *executionContext) field_Commerce_Cart_Cart_getByItemID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5783 var err error 5784 args := map[string]interface{}{} 5785 var arg0 string 5786 if tmp, ok := rawArgs["itemID"]; ok { 5787 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) 5788 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5789 if err != nil { 5790 return nil, err 5791 } 5792 } 5793 args["itemID"] = arg0 5794 return args, nil 5795 } 5796 5797 func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5798 var err error 5799 args := map[string]interface{}{} 5800 var arg0 string 5801 if tmp, ok := rawArgs["deliveryCode"]; ok { 5802 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 5803 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5804 if err != nil { 5805 return nil, err 5806 } 5807 } 5808 args["deliveryCode"] = arg0 5809 return args, nil 5810 } 5811 5812 func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByItemID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5813 var err error 5814 args := map[string]interface{}{} 5815 var arg0 string 5816 if tmp, ok := rawArgs["itemID"]; ok { 5817 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) 5818 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5819 if err != nil { 5820 return nil, err 5821 } 5822 } 5823 args["itemID"] = arg0 5824 return args, nil 5825 } 5826 5827 func (ec *executionContext) field_Commerce_Cart_Cart_getTotalItemsByType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5828 var err error 5829 args := map[string]interface{}{} 5830 var arg0 string 5831 if tmp, ok := rawArgs["typeCode"]; ok { 5832 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeCode")) 5833 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5834 if err != nil { 5835 return nil, err 5836 } 5837 } 5838 args["typeCode"] = arg0 5839 return args, nil 5840 } 5841 5842 func (ec *executionContext) field_Commerce_Cart_Cart_getTotalQty_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5843 var err error 5844 args := map[string]interface{}{} 5845 var arg0 string 5846 if tmp, ok := rawArgs["marketPlaceCode"]; ok { 5847 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) 5848 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5849 if err != nil { 5850 return nil, err 5851 } 5852 } 5853 args["marketPlaceCode"] = arg0 5854 var arg1 string 5855 if tmp, ok := rawArgs["variantCode"]; ok { 5856 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) 5857 arg1, err = ec.unmarshalNString2string(ctx, tmp) 5858 if err != nil { 5859 return nil, err 5860 } 5861 } 5862 args["variantCode"] = arg1 5863 return args, nil 5864 } 5865 5866 func (ec *executionContext) field_Commerce_Cart_Cart_hasDeliveryForCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5867 var err error 5868 args := map[string]interface{}{} 5869 var arg0 string 5870 if tmp, ok := rawArgs["deliveryCode"]; ok { 5871 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 5872 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5873 if err != nil { 5874 return nil, err 5875 } 5876 } 5877 args["deliveryCode"] = arg0 5878 return args, nil 5879 } 5880 5881 func (ec *executionContext) field_Commerce_Cart_CustomAttributes_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5882 var err error 5883 args := map[string]interface{}{} 5884 var arg0 string 5885 if tmp, ok := rawArgs["key"]; ok { 5886 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 5887 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5888 if err != nil { 5889 return nil, err 5890 } 5891 } 5892 args["key"] = arg0 5893 return args, nil 5894 } 5895 5896 func (ec *executionContext) field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5897 var err error 5898 args := map[string]interface{}{} 5899 var arg0 string 5900 if tmp, ok := rawArgs["deliveryCode"]; ok { 5901 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 5902 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5903 if err != nil { 5904 return nil, err 5905 } 5906 } 5907 args["deliveryCode"] = arg0 5908 return args, nil 5909 } 5910 5911 func (ec *executionContext) field_Commerce_Cart_Item_getAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5912 var err error 5913 args := map[string]interface{}{} 5914 var arg0 string 5915 if tmp, ok := rawArgs["key"]; ok { 5916 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 5917 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5918 if err != nil { 5919 return nil, err 5920 } 5921 } 5922 args["key"] = arg0 5923 return args, nil 5924 } 5925 5926 func (ec *executionContext) field_Commerce_Cart_Item_hasAdditionalDataKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5927 var err error 5928 args := map[string]interface{}{} 5929 var arg0 string 5930 if tmp, ok := rawArgs["key"]; ok { 5931 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 5932 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5933 if err != nil { 5934 return nil, err 5935 } 5936 } 5937 args["key"] = arg0 5938 return args, nil 5939 } 5940 5941 func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5942 var err error 5943 args := map[string]interface{}{} 5944 var arg0 []string 5945 if tmp, ok := rawArgs["methods"]; ok { 5946 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) 5947 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 5948 if err != nil { 5949 return nil, err 5950 } 5951 } 5952 args["methods"] = arg0 5953 return args, nil 5954 } 5955 5956 func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5957 var err error 5958 args := map[string]interface{}{} 5959 var arg0 []string 5960 if tmp, ok := rawArgs["methods"]; ok { 5961 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) 5962 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 5963 if err != nil { 5964 return nil, err 5965 } 5966 } 5967 args["methods"] = arg0 5968 return args, nil 5969 } 5970 5971 func (ec *executionContext) field_Commerce_Cart_Taxes_getByType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5972 var err error 5973 args := map[string]interface{}{} 5974 var arg0 string 5975 if tmp, ok := rawArgs["taxType"]; ok { 5976 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxType")) 5977 arg0, err = ec.unmarshalOString2string(ctx, tmp) 5978 if err != nil { 5979 return nil, err 5980 } 5981 } 5982 args["taxType"] = arg0 5983 return args, nil 5984 } 5985 5986 func (ec *executionContext) field_Commerce_Category_Attributes_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 5987 var err error 5988 args := map[string]interface{}{} 5989 var arg0 string 5990 if tmp, ok := rawArgs["code"]; ok { 5991 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) 5992 arg0, err = ec.unmarshalNString2string(ctx, tmp) 5993 if err != nil { 5994 return nil, err 5995 } 5996 } 5997 args["code"] = arg0 5998 return args, nil 5999 } 6000 6001 func (ec *executionContext) field_Commerce_Category_Attributes_has_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6002 var err error 6003 args := map[string]interface{}{} 6004 var arg0 string 6005 if tmp, ok := rawArgs["code"]; ok { 6006 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) 6007 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6008 if err != nil { 6009 return nil, err 6010 } 6011 } 6012 args["code"] = arg0 6013 return args, nil 6014 } 6015 6016 func (ec *executionContext) field_Commerce_Customer_Result_getAddress_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6017 var err error 6018 args := map[string]interface{}{} 6019 var arg0 string 6020 if tmp, ok := rawArgs["id"]; ok { 6021 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) 6022 arg0, err = ec.unmarshalNID2string(ctx, tmp) 6023 if err != nil { 6024 return nil, err 6025 } 6026 } 6027 args["id"] = arg0 6028 return args, nil 6029 } 6030 6031 func (ec *executionContext) field_Commerce_Price_Charges_getByChargeQualifierForced_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6032 var err error 6033 args := map[string]interface{}{} 6034 var arg0 domain.ChargeQualifier 6035 if tmp, ok := rawArgs["qualifier"]; ok { 6036 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) 6037 arg0, err = ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) 6038 if err != nil { 6039 return nil, err 6040 } 6041 } 6042 args["qualifier"] = arg0 6043 return args, nil 6044 } 6045 6046 func (ec *executionContext) field_Commerce_Price_Charges_getByTypeForced_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6047 var err error 6048 args := map[string]interface{}{} 6049 var arg0 string 6050 if tmp, ok := rawArgs["ctype"]; ok { 6051 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) 6052 arg0, err = ec.unmarshalOString2string(ctx, tmp) 6053 if err != nil { 6054 return nil, err 6055 } 6056 } 6057 args["ctype"] = arg0 6058 return args, nil 6059 } 6060 6061 func (ec *executionContext) field_Commerce_Price_Charges_hasChargeQualifier_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6062 var err error 6063 args := map[string]interface{}{} 6064 var arg0 domain.ChargeQualifier 6065 if tmp, ok := rawArgs["qualifier"]; ok { 6066 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) 6067 arg0, err = ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) 6068 if err != nil { 6069 return nil, err 6070 } 6071 } 6072 args["qualifier"] = arg0 6073 return args, nil 6074 } 6075 6076 func (ec *executionContext) field_Commerce_Price_Charges_hasType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6077 var err error 6078 args := map[string]interface{}{} 6079 var arg0 string 6080 if tmp, ok := rawArgs["ctype"]; ok { 6081 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) 6082 arg0, err = ec.unmarshalOString2string(ctx, tmp) 6083 if err != nil { 6084 return nil, err 6085 } 6086 } 6087 args["ctype"] = arg0 6088 return args, nil 6089 } 6090 6091 func (ec *executionContext) field_Commerce_Product_Attributes_getAttribute_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6092 var err error 6093 args := map[string]interface{}{} 6094 var arg0 string 6095 if tmp, ok := rawArgs["key"]; ok { 6096 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 6097 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6098 if err != nil { 6099 return nil, err 6100 } 6101 } 6102 args["key"] = arg0 6103 return args, nil 6104 } 6105 6106 func (ec *executionContext) field_Commerce_Product_Attributes_getAttributesByKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6107 var err error 6108 args := map[string]interface{}{} 6109 var arg0 []string 6110 if tmp, ok := rawArgs["keys"]; ok { 6111 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keys")) 6112 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 6113 if err != nil { 6114 return nil, err 6115 } 6116 } 6117 args["keys"] = arg0 6118 return args, nil 6119 } 6120 6121 func (ec *executionContext) field_Commerce_Product_Attributes_hasAttribute_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6122 var err error 6123 args := map[string]interface{}{} 6124 var arg0 string 6125 if tmp, ok := rawArgs["key"]; ok { 6126 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 6127 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6128 if err != nil { 6129 return nil, err 6130 } 6131 } 6132 args["key"] = arg0 6133 return args, nil 6134 } 6135 6136 func (ec *executionContext) field_Commerce_Product_Media_getMedia_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6137 var err error 6138 args := map[string]interface{}{} 6139 var arg0 string 6140 if tmp, ok := rawArgs["usage"]; ok { 6141 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usage")) 6142 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6143 if err != nil { 6144 return nil, err 6145 } 6146 } 6147 args["usage"] = arg0 6148 return args, nil 6149 } 6150 6151 func (ec *executionContext) field_Mutation_Commerce_Cart_AddToCart_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6152 var err error 6153 args := map[string]interface{}{} 6154 var arg0 dto.AddToCart 6155 if tmp, ok := rawArgs["addToCartInput"]; ok { 6156 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addToCartInput")) 6157 arg0, err = ec.unmarshalNCommerce_Cart_AddToCartInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐAddToCart(ctx, tmp) 6158 if err != nil { 6159 return nil, err 6160 } 6161 } 6162 args["addToCartInput"] = arg0 6163 return args, nil 6164 } 6165 6166 func (ec *executionContext) field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6167 var err error 6168 args := map[string]interface{}{} 6169 var arg0 string 6170 if tmp, ok := rawArgs["code"]; ok { 6171 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) 6172 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6173 if err != nil { 6174 return nil, err 6175 } 6176 } 6177 args["code"] = arg0 6178 return args, nil 6179 } 6180 6181 func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteCartDelivery_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6182 var err error 6183 args := map[string]interface{}{} 6184 var arg0 string 6185 if tmp, ok := rawArgs["deliveryCode"]; ok { 6186 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 6187 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6188 if err != nil { 6189 return nil, err 6190 } 6191 } 6192 args["deliveryCode"] = arg0 6193 return args, nil 6194 } 6195 6196 func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteItem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6197 var err error 6198 args := map[string]interface{}{} 6199 var arg0 string 6200 if tmp, ok := rawArgs["itemID"]; ok { 6201 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) 6202 arg0, err = ec.unmarshalNID2string(ctx, tmp) 6203 if err != nil { 6204 return nil, err 6205 } 6206 } 6207 args["itemID"] = arg0 6208 var arg1 string 6209 if tmp, ok := rawArgs["deliveryCode"]; ok { 6210 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 6211 arg1, err = ec.unmarshalNString2string(ctx, tmp) 6212 if err != nil { 6213 return nil, err 6214 } 6215 } 6216 args["deliveryCode"] = arg1 6217 return args, nil 6218 } 6219 6220 func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveCouponCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6221 var err error 6222 args := map[string]interface{}{} 6223 var arg0 string 6224 if tmp, ok := rawArgs["couponCode"]; ok { 6225 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("couponCode")) 6226 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6227 if err != nil { 6228 return nil, err 6229 } 6230 } 6231 args["couponCode"] = arg0 6232 return args, nil 6233 } 6234 6235 func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveGiftCard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6236 var err error 6237 args := map[string]interface{}{} 6238 var arg0 string 6239 if tmp, ok := rawArgs["giftCardCode"]; ok { 6240 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("giftCardCode")) 6241 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6242 if err != nil { 6243 return nil, err 6244 } 6245 } 6246 args["giftCardCode"] = arg0 6247 return args, nil 6248 } 6249 6250 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6251 var err error 6252 args := map[string]interface{}{} 6253 var arg0 []*dto.KeyValue 6254 if tmp, ok := rawArgs["additionalData"]; ok { 6255 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalData")) 6256 arg0, err = ec.unmarshalNCommerce_Cart_KeyValueInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx, tmp) 6257 if err != nil { 6258 return nil, err 6259 } 6260 } 6261 args["additionalData"] = arg0 6262 return args, nil 6263 } 6264 6265 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateBillingAddress_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6266 var err error 6267 args := map[string]interface{}{} 6268 var arg0 *forms.AddressForm 6269 if tmp, ok := rawArgs["addressForm"]; ok { 6270 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressForm")) 6271 arg0, err = ec.unmarshalOCommerce_Cart_AddressFormInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, tmp) 6272 if err != nil { 6273 return nil, err 6274 } 6275 } 6276 args["addressForm"] = arg0 6277 return args, nil 6278 } 6279 6280 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6281 var err error 6282 args := map[string]interface{}{} 6283 var arg0 []*dto.DeliveryAdditionalData 6284 if tmp, ok := rawArgs["data"]; ok { 6285 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) 6286 arg0, err = ec.unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalDataᚄ(ctx, tmp) 6287 if err != nil { 6288 return nil, err 6289 } 6290 } 6291 args["data"] = arg0 6292 return args, nil 6293 } 6294 6295 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6296 var err error 6297 args := map[string]interface{}{} 6298 var arg0 []*forms.DeliveryForm 6299 if tmp, ok := rawArgs["deliveryAdresses"]; ok { 6300 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryAdresses")) 6301 arg0, err = ec.unmarshalOCommerce_Cart_DeliveryAddressInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryFormᚄ(ctx, tmp) 6302 if err != nil { 6303 return nil, err 6304 } 6305 } 6306 args["deliveryAdresses"] = arg0 6307 return args, nil 6308 } 6309 6310 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6311 var err error 6312 args := map[string]interface{}{} 6313 var arg0 []*dto.DeliveryShippingOption 6314 if tmp, ok := rawArgs["shippingOptions"]; ok { 6315 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("shippingOptions")) 6316 arg0, err = ec.unmarshalOCommerce_Cart_DeliveryShippingOptionInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOptionᚄ(ctx, tmp) 6317 if err != nil { 6318 return nil, err 6319 } 6320 } 6321 args["shippingOptions"] = arg0 6322 return args, nil 6323 } 6324 6325 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemBundleConfig_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6326 var err error 6327 args := map[string]interface{}{} 6328 var arg0 string 6329 if tmp, ok := rawArgs["itemID"]; ok { 6330 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) 6331 arg0, err = ec.unmarshalNID2string(ctx, tmp) 6332 if err != nil { 6333 return nil, err 6334 } 6335 } 6336 args["itemID"] = arg0 6337 var arg1 []*dto.ChoiceConfiguration 6338 if tmp, ok := rawArgs["bundleConfig"]; ok { 6339 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfig")) 6340 arg1, err = ec.unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) 6341 if err != nil { 6342 return nil, err 6343 } 6344 } 6345 args["bundleConfig"] = arg1 6346 return args, nil 6347 } 6348 6349 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemQty_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6350 var err error 6351 args := map[string]interface{}{} 6352 var arg0 string 6353 if tmp, ok := rawArgs["itemID"]; ok { 6354 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) 6355 arg0, err = ec.unmarshalNID2string(ctx, tmp) 6356 if err != nil { 6357 return nil, err 6358 } 6359 } 6360 args["itemID"] = arg0 6361 var arg1 string 6362 if tmp, ok := rawArgs["deliveryCode"]; ok { 6363 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 6364 arg1, err = ec.unmarshalNString2string(ctx, tmp) 6365 if err != nil { 6366 return nil, err 6367 } 6368 } 6369 args["deliveryCode"] = arg1 6370 var arg2 int 6371 if tmp, ok := rawArgs["qty"]; ok { 6372 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) 6373 arg2, err = ec.unmarshalNInt2int(ctx, tmp) 6374 if err != nil { 6375 return nil, err 6376 } 6377 } 6378 args["qty"] = arg2 6379 return args, nil 6380 } 6381 6382 func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateSelectedPayment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6383 var err error 6384 args := map[string]interface{}{} 6385 var arg0 string 6386 if tmp, ok := rawArgs["gateway"]; ok { 6387 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gateway")) 6388 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6389 if err != nil { 6390 return nil, err 6391 } 6392 } 6393 args["gateway"] = arg0 6394 var arg1 string 6395 if tmp, ok := rawArgs["method"]; ok { 6396 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) 6397 arg1, err = ec.unmarshalNString2string(ctx, tmp) 6398 if err != nil { 6399 return nil, err 6400 } 6401 } 6402 args["method"] = arg1 6403 return args, nil 6404 } 6405 6406 func (ec *executionContext) field_Mutation_Commerce_Checkout_StartPlaceOrder_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6407 var err error 6408 args := map[string]interface{}{} 6409 var arg0 string 6410 if tmp, ok := rawArgs["returnUrl"]; ok { 6411 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("returnUrl")) 6412 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6413 if err != nil { 6414 return nil, err 6415 } 6416 } 6417 args["returnUrl"] = arg0 6418 return args, nil 6419 } 6420 6421 func (ec *executionContext) field_Query_Commerce_Cart_QtyRestriction_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6422 var err error 6423 args := map[string]interface{}{} 6424 var arg0 string 6425 if tmp, ok := rawArgs["marketplaceCode"]; ok { 6426 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) 6427 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6428 if err != nil { 6429 return nil, err 6430 } 6431 } 6432 args["marketplaceCode"] = arg0 6433 var arg1 *string 6434 if tmp, ok := rawArgs["variantCode"]; ok { 6435 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) 6436 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 6437 if err != nil { 6438 return nil, err 6439 } 6440 } 6441 args["variantCode"] = arg1 6442 var arg2 string 6443 if tmp, ok := rawArgs["deliveryCode"]; ok { 6444 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 6445 arg2, err = ec.unmarshalNString2string(ctx, tmp) 6446 if err != nil { 6447 return nil, err 6448 } 6449 } 6450 args["deliveryCode"] = arg2 6451 return args, nil 6452 } 6453 6454 func (ec *executionContext) field_Query_Commerce_CategoryTree_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6455 var err error 6456 args := map[string]interface{}{} 6457 var arg0 string 6458 if tmp, ok := rawArgs["activeCategoryCode"]; ok { 6459 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeCategoryCode")) 6460 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6461 if err != nil { 6462 return nil, err 6463 } 6464 } 6465 args["activeCategoryCode"] = arg0 6466 return args, nil 6467 } 6468 6469 func (ec *executionContext) field_Query_Commerce_Category_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6470 var err error 6471 args := map[string]interface{}{} 6472 var arg0 string 6473 if tmp, ok := rawArgs["categoryCode"]; ok { 6474 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryCode")) 6475 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6476 if err != nil { 6477 return nil, err 6478 } 6479 } 6480 args["categoryCode"] = arg0 6481 var arg1 *searchdto.CommerceSearchRequest 6482 if tmp, ok := rawArgs["categorySearchRequest"]; ok { 6483 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categorySearchRequest")) 6484 arg1, err = ec.unmarshalOCommerce_Search_Request2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) 6485 if err != nil { 6486 return nil, err 6487 } 6488 } 6489 args["categorySearchRequest"] = arg1 6490 return args, nil 6491 } 6492 6493 func (ec *executionContext) field_Query_Commerce_Product_Search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6494 var err error 6495 args := map[string]interface{}{} 6496 var arg0 searchdto.CommerceSearchRequest 6497 if tmp, ok := rawArgs["searchRequest"]; ok { 6498 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchRequest")) 6499 arg0, err = ec.unmarshalNCommerce_Search_Request2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) 6500 if err != nil { 6501 return nil, err 6502 } 6503 } 6504 args["searchRequest"] = arg0 6505 return args, nil 6506 } 6507 6508 func (ec *executionContext) field_Query_Commerce_Product_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6509 var err error 6510 args := map[string]interface{}{} 6511 var arg0 string 6512 if tmp, ok := rawArgs["marketPlaceCode"]; ok { 6513 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) 6514 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6515 if err != nil { 6516 return nil, err 6517 } 6518 } 6519 args["marketPlaceCode"] = arg0 6520 var arg1 *string 6521 if tmp, ok := rawArgs["variantMarketPlaceCode"]; ok { 6522 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketPlaceCode")) 6523 arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 6524 if err != nil { 6525 return nil, err 6526 } 6527 } 6528 args["variantMarketPlaceCode"] = arg1 6529 var arg2 []*graphqlproductdto.ChoiceConfiguration 6530 if tmp, ok := rawArgs["bundleConfiguration"]; ok { 6531 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfiguration")) 6532 arg2, err = ec.unmarshalOCommerce_Product_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) 6533 if err != nil { 6534 return nil, err 6535 } 6536 } 6537 args["bundleConfiguration"] = arg2 6538 return args, nil 6539 } 6540 6541 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6542 var err error 6543 args := map[string]interface{}{} 6544 var arg0 string 6545 if tmp, ok := rawArgs["name"]; ok { 6546 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 6547 arg0, err = ec.unmarshalNString2string(ctx, tmp) 6548 if err != nil { 6549 return nil, err 6550 } 6551 } 6552 args["name"] = arg0 6553 return args, nil 6554 } 6555 6556 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6557 var err error 6558 args := map[string]interface{}{} 6559 var arg0 bool 6560 if tmp, ok := rawArgs["includeDeprecated"]; ok { 6561 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 6562 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 6563 if err != nil { 6564 return nil, err 6565 } 6566 } 6567 args["includeDeprecated"] = arg0 6568 return args, nil 6569 } 6570 6571 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 6572 var err error 6573 args := map[string]interface{}{} 6574 var arg0 bool 6575 if tmp, ok := rawArgs["includeDeprecated"]; ok { 6576 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) 6577 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 6578 if err != nil { 6579 return nil, err 6580 } 6581 } 6582 args["includeDeprecated"] = arg0 6583 return args, nil 6584 } 6585 6586 // endregion ***************************** args.gotpl ***************************** 6587 6588 // region ************************** directives.gotpl ************************** 6589 6590 // endregion ************************** directives.gotpl ************************** 6591 6592 // region **************************** field.gotpl ***************************** 6593 6594 func (ec *executionContext) _Commerce_Cart_AdditionalData_customAttributes(ctx context.Context, field graphql.CollectedField, obj *cart.AdditionalData) (ret graphql.Marshaler) { 6595 fc, err := ec.fieldContext_Commerce_Cart_AdditionalData_customAttributes(ctx, field) 6596 if err != nil { 6597 return graphql.Null 6598 } 6599 ctx = graphql.WithFieldContext(ctx, fc) 6600 defer func() { 6601 if r := recover(); r != nil { 6602 ec.Error(ctx, ec.Recover(ctx, r)) 6603 ret = graphql.Null 6604 } 6605 }() 6606 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6607 ctx = rctx // use context from middleware stack in children 6608 return ec.resolvers.Commerce_Cart_AdditionalData().CustomAttributes(rctx, obj) 6609 }) 6610 if err != nil { 6611 ec.Error(ctx, err) 6612 return graphql.Null 6613 } 6614 if resTmp == nil { 6615 if !graphql.HasFieldError(ctx, fc) { 6616 ec.Errorf(ctx, "must not be null") 6617 } 6618 return graphql.Null 6619 } 6620 res := resTmp.(*dto.CustomAttributes) 6621 fc.Result = res 6622 return ec.marshalNCommerce_Cart_CustomAttributes2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCustomAttributes(ctx, field.Selections, res) 6623 } 6624 6625 func (ec *executionContext) fieldContext_Commerce_Cart_AdditionalData_customAttributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6626 fc = &graphql.FieldContext{ 6627 Object: "Commerce_Cart_AdditionalData", 6628 Field: field, 6629 IsMethod: true, 6630 IsResolver: true, 6631 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6632 switch field.Name { 6633 case "get": 6634 return ec.fieldContext_Commerce_Cart_CustomAttributes_get(ctx, field) 6635 } 6636 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_CustomAttributes", field.Name) 6637 }, 6638 } 6639 return fc, nil 6640 } 6641 6642 func (ec *executionContext) _Commerce_Cart_AdditionalData_reservedOrderID(ctx context.Context, field graphql.CollectedField, obj *cart.AdditionalData) (ret graphql.Marshaler) { 6643 fc, err := ec.fieldContext_Commerce_Cart_AdditionalData_reservedOrderID(ctx, field) 6644 if err != nil { 6645 return graphql.Null 6646 } 6647 ctx = graphql.WithFieldContext(ctx, fc) 6648 defer func() { 6649 if r := recover(); r != nil { 6650 ec.Error(ctx, ec.Recover(ctx, r)) 6651 ret = graphql.Null 6652 } 6653 }() 6654 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6655 ctx = rctx // use context from middleware stack in children 6656 return obj.ReservedOrderID, nil 6657 }) 6658 if err != nil { 6659 ec.Error(ctx, err) 6660 return graphql.Null 6661 } 6662 if resTmp == nil { 6663 if !graphql.HasFieldError(ctx, fc) { 6664 ec.Errorf(ctx, "must not be null") 6665 } 6666 return graphql.Null 6667 } 6668 res := resTmp.(string) 6669 fc.Result = res 6670 return ec.marshalNString2string(ctx, field.Selections, res) 6671 } 6672 6673 func (ec *executionContext) fieldContext_Commerce_Cart_AdditionalData_reservedOrderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6674 fc = &graphql.FieldContext{ 6675 Object: "Commerce_Cart_AdditionalData", 6676 Field: field, 6677 IsMethod: false, 6678 IsResolver: false, 6679 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6680 return nil, errors.New("field of type String does not have child fields") 6681 }, 6682 } 6683 return fc, nil 6684 } 6685 6686 func (ec *executionContext) _Commerce_Cart_Address_vat(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6687 fc, err := ec.fieldContext_Commerce_Cart_Address_vat(ctx, field) 6688 if err != nil { 6689 return graphql.Null 6690 } 6691 ctx = graphql.WithFieldContext(ctx, fc) 6692 defer func() { 6693 if r := recover(); r != nil { 6694 ec.Error(ctx, ec.Recover(ctx, r)) 6695 ret = graphql.Null 6696 } 6697 }() 6698 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6699 ctx = rctx // use context from middleware stack in children 6700 return obj.Vat, nil 6701 }) 6702 if err != nil { 6703 ec.Error(ctx, err) 6704 return graphql.Null 6705 } 6706 if resTmp == nil { 6707 if !graphql.HasFieldError(ctx, fc) { 6708 ec.Errorf(ctx, "must not be null") 6709 } 6710 return graphql.Null 6711 } 6712 res := resTmp.(string) 6713 fc.Result = res 6714 return ec.marshalNString2string(ctx, field.Selections, res) 6715 } 6716 6717 func (ec *executionContext) fieldContext_Commerce_Cart_Address_vat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6718 fc = &graphql.FieldContext{ 6719 Object: "Commerce_Cart_Address", 6720 Field: field, 6721 IsMethod: false, 6722 IsResolver: false, 6723 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6724 return nil, errors.New("field of type String does not have child fields") 6725 }, 6726 } 6727 return fc, nil 6728 } 6729 6730 func (ec *executionContext) _Commerce_Cart_Address_firstname(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6731 fc, err := ec.fieldContext_Commerce_Cart_Address_firstname(ctx, field) 6732 if err != nil { 6733 return graphql.Null 6734 } 6735 ctx = graphql.WithFieldContext(ctx, fc) 6736 defer func() { 6737 if r := recover(); r != nil { 6738 ec.Error(ctx, ec.Recover(ctx, r)) 6739 ret = graphql.Null 6740 } 6741 }() 6742 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6743 ctx = rctx // use context from middleware stack in children 6744 return obj.Firstname, nil 6745 }) 6746 if err != nil { 6747 ec.Error(ctx, err) 6748 return graphql.Null 6749 } 6750 if resTmp == nil { 6751 if !graphql.HasFieldError(ctx, fc) { 6752 ec.Errorf(ctx, "must not be null") 6753 } 6754 return graphql.Null 6755 } 6756 res := resTmp.(string) 6757 fc.Result = res 6758 return ec.marshalNString2string(ctx, field.Selections, res) 6759 } 6760 6761 func (ec *executionContext) fieldContext_Commerce_Cart_Address_firstname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6762 fc = &graphql.FieldContext{ 6763 Object: "Commerce_Cart_Address", 6764 Field: field, 6765 IsMethod: false, 6766 IsResolver: false, 6767 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6768 return nil, errors.New("field of type String does not have child fields") 6769 }, 6770 } 6771 return fc, nil 6772 } 6773 6774 func (ec *executionContext) _Commerce_Cart_Address_lastname(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6775 fc, err := ec.fieldContext_Commerce_Cart_Address_lastname(ctx, field) 6776 if err != nil { 6777 return graphql.Null 6778 } 6779 ctx = graphql.WithFieldContext(ctx, fc) 6780 defer func() { 6781 if r := recover(); r != nil { 6782 ec.Error(ctx, ec.Recover(ctx, r)) 6783 ret = graphql.Null 6784 } 6785 }() 6786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6787 ctx = rctx // use context from middleware stack in children 6788 return obj.Lastname, nil 6789 }) 6790 if err != nil { 6791 ec.Error(ctx, err) 6792 return graphql.Null 6793 } 6794 if resTmp == nil { 6795 if !graphql.HasFieldError(ctx, fc) { 6796 ec.Errorf(ctx, "must not be null") 6797 } 6798 return graphql.Null 6799 } 6800 res := resTmp.(string) 6801 fc.Result = res 6802 return ec.marshalNString2string(ctx, field.Selections, res) 6803 } 6804 6805 func (ec *executionContext) fieldContext_Commerce_Cart_Address_lastname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6806 fc = &graphql.FieldContext{ 6807 Object: "Commerce_Cart_Address", 6808 Field: field, 6809 IsMethod: false, 6810 IsResolver: false, 6811 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6812 return nil, errors.New("field of type String does not have child fields") 6813 }, 6814 } 6815 return fc, nil 6816 } 6817 6818 func (ec *executionContext) _Commerce_Cart_Address_middleName(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6819 fc, err := ec.fieldContext_Commerce_Cart_Address_middleName(ctx, field) 6820 if err != nil { 6821 return graphql.Null 6822 } 6823 ctx = graphql.WithFieldContext(ctx, fc) 6824 defer func() { 6825 if r := recover(); r != nil { 6826 ec.Error(ctx, ec.Recover(ctx, r)) 6827 ret = graphql.Null 6828 } 6829 }() 6830 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6831 ctx = rctx // use context from middleware stack in children 6832 return obj.MiddleName, nil 6833 }) 6834 if err != nil { 6835 ec.Error(ctx, err) 6836 return graphql.Null 6837 } 6838 if resTmp == nil { 6839 if !graphql.HasFieldError(ctx, fc) { 6840 ec.Errorf(ctx, "must not be null") 6841 } 6842 return graphql.Null 6843 } 6844 res := resTmp.(string) 6845 fc.Result = res 6846 return ec.marshalNString2string(ctx, field.Selections, res) 6847 } 6848 6849 func (ec *executionContext) fieldContext_Commerce_Cart_Address_middleName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6850 fc = &graphql.FieldContext{ 6851 Object: "Commerce_Cart_Address", 6852 Field: field, 6853 IsMethod: false, 6854 IsResolver: false, 6855 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6856 return nil, errors.New("field of type String does not have child fields") 6857 }, 6858 } 6859 return fc, nil 6860 } 6861 6862 func (ec *executionContext) _Commerce_Cart_Address_title(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6863 fc, err := ec.fieldContext_Commerce_Cart_Address_title(ctx, field) 6864 if err != nil { 6865 return graphql.Null 6866 } 6867 ctx = graphql.WithFieldContext(ctx, fc) 6868 defer func() { 6869 if r := recover(); r != nil { 6870 ec.Error(ctx, ec.Recover(ctx, r)) 6871 ret = graphql.Null 6872 } 6873 }() 6874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6875 ctx = rctx // use context from middleware stack in children 6876 return obj.Title, nil 6877 }) 6878 if err != nil { 6879 ec.Error(ctx, err) 6880 return graphql.Null 6881 } 6882 if resTmp == nil { 6883 if !graphql.HasFieldError(ctx, fc) { 6884 ec.Errorf(ctx, "must not be null") 6885 } 6886 return graphql.Null 6887 } 6888 res := resTmp.(string) 6889 fc.Result = res 6890 return ec.marshalNString2string(ctx, field.Selections, res) 6891 } 6892 6893 func (ec *executionContext) fieldContext_Commerce_Cart_Address_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6894 fc = &graphql.FieldContext{ 6895 Object: "Commerce_Cart_Address", 6896 Field: field, 6897 IsMethod: false, 6898 IsResolver: false, 6899 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6900 return nil, errors.New("field of type String does not have child fields") 6901 }, 6902 } 6903 return fc, nil 6904 } 6905 6906 func (ec *executionContext) _Commerce_Cart_Address_salutation(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6907 fc, err := ec.fieldContext_Commerce_Cart_Address_salutation(ctx, field) 6908 if err != nil { 6909 return graphql.Null 6910 } 6911 ctx = graphql.WithFieldContext(ctx, fc) 6912 defer func() { 6913 if r := recover(); r != nil { 6914 ec.Error(ctx, ec.Recover(ctx, r)) 6915 ret = graphql.Null 6916 } 6917 }() 6918 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6919 ctx = rctx // use context from middleware stack in children 6920 return obj.Salutation, nil 6921 }) 6922 if err != nil { 6923 ec.Error(ctx, err) 6924 return graphql.Null 6925 } 6926 if resTmp == nil { 6927 if !graphql.HasFieldError(ctx, fc) { 6928 ec.Errorf(ctx, "must not be null") 6929 } 6930 return graphql.Null 6931 } 6932 res := resTmp.(string) 6933 fc.Result = res 6934 return ec.marshalNString2string(ctx, field.Selections, res) 6935 } 6936 6937 func (ec *executionContext) fieldContext_Commerce_Cart_Address_salutation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6938 fc = &graphql.FieldContext{ 6939 Object: "Commerce_Cart_Address", 6940 Field: field, 6941 IsMethod: false, 6942 IsResolver: false, 6943 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6944 return nil, errors.New("field of type String does not have child fields") 6945 }, 6946 } 6947 return fc, nil 6948 } 6949 6950 func (ec *executionContext) _Commerce_Cart_Address_street(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6951 fc, err := ec.fieldContext_Commerce_Cart_Address_street(ctx, field) 6952 if err != nil { 6953 return graphql.Null 6954 } 6955 ctx = graphql.WithFieldContext(ctx, fc) 6956 defer func() { 6957 if r := recover(); r != nil { 6958 ec.Error(ctx, ec.Recover(ctx, r)) 6959 ret = graphql.Null 6960 } 6961 }() 6962 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 6963 ctx = rctx // use context from middleware stack in children 6964 return obj.Street, nil 6965 }) 6966 if err != nil { 6967 ec.Error(ctx, err) 6968 return graphql.Null 6969 } 6970 if resTmp == nil { 6971 if !graphql.HasFieldError(ctx, fc) { 6972 ec.Errorf(ctx, "must not be null") 6973 } 6974 return graphql.Null 6975 } 6976 res := resTmp.(string) 6977 fc.Result = res 6978 return ec.marshalNString2string(ctx, field.Selections, res) 6979 } 6980 6981 func (ec *executionContext) fieldContext_Commerce_Cart_Address_street(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 6982 fc = &graphql.FieldContext{ 6983 Object: "Commerce_Cart_Address", 6984 Field: field, 6985 IsMethod: false, 6986 IsResolver: false, 6987 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 6988 return nil, errors.New("field of type String does not have child fields") 6989 }, 6990 } 6991 return fc, nil 6992 } 6993 6994 func (ec *executionContext) _Commerce_Cart_Address_streetNr(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 6995 fc, err := ec.fieldContext_Commerce_Cart_Address_streetNr(ctx, field) 6996 if err != nil { 6997 return graphql.Null 6998 } 6999 ctx = graphql.WithFieldContext(ctx, fc) 7000 defer func() { 7001 if r := recover(); r != nil { 7002 ec.Error(ctx, ec.Recover(ctx, r)) 7003 ret = graphql.Null 7004 } 7005 }() 7006 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7007 ctx = rctx // use context from middleware stack in children 7008 return obj.StreetNr, nil 7009 }) 7010 if err != nil { 7011 ec.Error(ctx, err) 7012 return graphql.Null 7013 } 7014 if resTmp == nil { 7015 if !graphql.HasFieldError(ctx, fc) { 7016 ec.Errorf(ctx, "must not be null") 7017 } 7018 return graphql.Null 7019 } 7020 res := resTmp.(string) 7021 fc.Result = res 7022 return ec.marshalNString2string(ctx, field.Selections, res) 7023 } 7024 7025 func (ec *executionContext) fieldContext_Commerce_Cart_Address_streetNr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7026 fc = &graphql.FieldContext{ 7027 Object: "Commerce_Cart_Address", 7028 Field: field, 7029 IsMethod: false, 7030 IsResolver: false, 7031 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7032 return nil, errors.New("field of type String does not have child fields") 7033 }, 7034 } 7035 return fc, nil 7036 } 7037 7038 func (ec *executionContext) _Commerce_Cart_Address_additionalAddressLines(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7039 fc, err := ec.fieldContext_Commerce_Cart_Address_additionalAddressLines(ctx, field) 7040 if err != nil { 7041 return graphql.Null 7042 } 7043 ctx = graphql.WithFieldContext(ctx, fc) 7044 defer func() { 7045 if r := recover(); r != nil { 7046 ec.Error(ctx, ec.Recover(ctx, r)) 7047 ret = graphql.Null 7048 } 7049 }() 7050 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7051 ctx = rctx // use context from middleware stack in children 7052 return obj.AdditionalAddressLines, nil 7053 }) 7054 if err != nil { 7055 ec.Error(ctx, err) 7056 return graphql.Null 7057 } 7058 if resTmp == nil { 7059 return graphql.Null 7060 } 7061 res := resTmp.([]string) 7062 fc.Result = res 7063 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 7064 } 7065 7066 func (ec *executionContext) fieldContext_Commerce_Cart_Address_additionalAddressLines(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7067 fc = &graphql.FieldContext{ 7068 Object: "Commerce_Cart_Address", 7069 Field: field, 7070 IsMethod: false, 7071 IsResolver: false, 7072 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7073 return nil, errors.New("field of type String does not have child fields") 7074 }, 7075 } 7076 return fc, nil 7077 } 7078 7079 func (ec *executionContext) _Commerce_Cart_Address_company(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7080 fc, err := ec.fieldContext_Commerce_Cart_Address_company(ctx, field) 7081 if err != nil { 7082 return graphql.Null 7083 } 7084 ctx = graphql.WithFieldContext(ctx, fc) 7085 defer func() { 7086 if r := recover(); r != nil { 7087 ec.Error(ctx, ec.Recover(ctx, r)) 7088 ret = graphql.Null 7089 } 7090 }() 7091 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7092 ctx = rctx // use context from middleware stack in children 7093 return obj.Company, nil 7094 }) 7095 if err != nil { 7096 ec.Error(ctx, err) 7097 return graphql.Null 7098 } 7099 if resTmp == nil { 7100 if !graphql.HasFieldError(ctx, fc) { 7101 ec.Errorf(ctx, "must not be null") 7102 } 7103 return graphql.Null 7104 } 7105 res := resTmp.(string) 7106 fc.Result = res 7107 return ec.marshalNString2string(ctx, field.Selections, res) 7108 } 7109 7110 func (ec *executionContext) fieldContext_Commerce_Cart_Address_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7111 fc = &graphql.FieldContext{ 7112 Object: "Commerce_Cart_Address", 7113 Field: field, 7114 IsMethod: false, 7115 IsResolver: false, 7116 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7117 return nil, errors.New("field of type String does not have child fields") 7118 }, 7119 } 7120 return fc, nil 7121 } 7122 7123 func (ec *executionContext) _Commerce_Cart_Address_city(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7124 fc, err := ec.fieldContext_Commerce_Cart_Address_city(ctx, field) 7125 if err != nil { 7126 return graphql.Null 7127 } 7128 ctx = graphql.WithFieldContext(ctx, fc) 7129 defer func() { 7130 if r := recover(); r != nil { 7131 ec.Error(ctx, ec.Recover(ctx, r)) 7132 ret = graphql.Null 7133 } 7134 }() 7135 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7136 ctx = rctx // use context from middleware stack in children 7137 return obj.City, nil 7138 }) 7139 if err != nil { 7140 ec.Error(ctx, err) 7141 return graphql.Null 7142 } 7143 if resTmp == nil { 7144 if !graphql.HasFieldError(ctx, fc) { 7145 ec.Errorf(ctx, "must not be null") 7146 } 7147 return graphql.Null 7148 } 7149 res := resTmp.(string) 7150 fc.Result = res 7151 return ec.marshalNString2string(ctx, field.Selections, res) 7152 } 7153 7154 func (ec *executionContext) fieldContext_Commerce_Cart_Address_city(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7155 fc = &graphql.FieldContext{ 7156 Object: "Commerce_Cart_Address", 7157 Field: field, 7158 IsMethod: false, 7159 IsResolver: false, 7160 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7161 return nil, errors.New("field of type String does not have child fields") 7162 }, 7163 } 7164 return fc, nil 7165 } 7166 7167 func (ec *executionContext) _Commerce_Cart_Address_postCode(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7168 fc, err := ec.fieldContext_Commerce_Cart_Address_postCode(ctx, field) 7169 if err != nil { 7170 return graphql.Null 7171 } 7172 ctx = graphql.WithFieldContext(ctx, fc) 7173 defer func() { 7174 if r := recover(); r != nil { 7175 ec.Error(ctx, ec.Recover(ctx, r)) 7176 ret = graphql.Null 7177 } 7178 }() 7179 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7180 ctx = rctx // use context from middleware stack in children 7181 return obj.PostCode, nil 7182 }) 7183 if err != nil { 7184 ec.Error(ctx, err) 7185 return graphql.Null 7186 } 7187 if resTmp == nil { 7188 if !graphql.HasFieldError(ctx, fc) { 7189 ec.Errorf(ctx, "must not be null") 7190 } 7191 return graphql.Null 7192 } 7193 res := resTmp.(string) 7194 fc.Result = res 7195 return ec.marshalNString2string(ctx, field.Selections, res) 7196 } 7197 7198 func (ec *executionContext) fieldContext_Commerce_Cart_Address_postCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7199 fc = &graphql.FieldContext{ 7200 Object: "Commerce_Cart_Address", 7201 Field: field, 7202 IsMethod: false, 7203 IsResolver: false, 7204 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7205 return nil, errors.New("field of type String does not have child fields") 7206 }, 7207 } 7208 return fc, nil 7209 } 7210 7211 func (ec *executionContext) _Commerce_Cart_Address_state(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7212 fc, err := ec.fieldContext_Commerce_Cart_Address_state(ctx, field) 7213 if err != nil { 7214 return graphql.Null 7215 } 7216 ctx = graphql.WithFieldContext(ctx, fc) 7217 defer func() { 7218 if r := recover(); r != nil { 7219 ec.Error(ctx, ec.Recover(ctx, r)) 7220 ret = graphql.Null 7221 } 7222 }() 7223 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7224 ctx = rctx // use context from middleware stack in children 7225 return obj.State, nil 7226 }) 7227 if err != nil { 7228 ec.Error(ctx, err) 7229 return graphql.Null 7230 } 7231 if resTmp == nil { 7232 if !graphql.HasFieldError(ctx, fc) { 7233 ec.Errorf(ctx, "must not be null") 7234 } 7235 return graphql.Null 7236 } 7237 res := resTmp.(string) 7238 fc.Result = res 7239 return ec.marshalNString2string(ctx, field.Selections, res) 7240 } 7241 7242 func (ec *executionContext) fieldContext_Commerce_Cart_Address_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7243 fc = &graphql.FieldContext{ 7244 Object: "Commerce_Cart_Address", 7245 Field: field, 7246 IsMethod: false, 7247 IsResolver: false, 7248 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7249 return nil, errors.New("field of type String does not have child fields") 7250 }, 7251 } 7252 return fc, nil 7253 } 7254 7255 func (ec *executionContext) _Commerce_Cart_Address_regionCode(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7256 fc, err := ec.fieldContext_Commerce_Cart_Address_regionCode(ctx, field) 7257 if err != nil { 7258 return graphql.Null 7259 } 7260 ctx = graphql.WithFieldContext(ctx, fc) 7261 defer func() { 7262 if r := recover(); r != nil { 7263 ec.Error(ctx, ec.Recover(ctx, r)) 7264 ret = graphql.Null 7265 } 7266 }() 7267 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7268 ctx = rctx // use context from middleware stack in children 7269 return obj.RegionCode, nil 7270 }) 7271 if err != nil { 7272 ec.Error(ctx, err) 7273 return graphql.Null 7274 } 7275 if resTmp == nil { 7276 if !graphql.HasFieldError(ctx, fc) { 7277 ec.Errorf(ctx, "must not be null") 7278 } 7279 return graphql.Null 7280 } 7281 res := resTmp.(string) 7282 fc.Result = res 7283 return ec.marshalNString2string(ctx, field.Selections, res) 7284 } 7285 7286 func (ec *executionContext) fieldContext_Commerce_Cart_Address_regionCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7287 fc = &graphql.FieldContext{ 7288 Object: "Commerce_Cart_Address", 7289 Field: field, 7290 IsMethod: false, 7291 IsResolver: false, 7292 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7293 return nil, errors.New("field of type String does not have child fields") 7294 }, 7295 } 7296 return fc, nil 7297 } 7298 7299 func (ec *executionContext) _Commerce_Cart_Address_country(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7300 fc, err := ec.fieldContext_Commerce_Cart_Address_country(ctx, field) 7301 if err != nil { 7302 return graphql.Null 7303 } 7304 ctx = graphql.WithFieldContext(ctx, fc) 7305 defer func() { 7306 if r := recover(); r != nil { 7307 ec.Error(ctx, ec.Recover(ctx, r)) 7308 ret = graphql.Null 7309 } 7310 }() 7311 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7312 ctx = rctx // use context from middleware stack in children 7313 return obj.Country, nil 7314 }) 7315 if err != nil { 7316 ec.Error(ctx, err) 7317 return graphql.Null 7318 } 7319 if resTmp == nil { 7320 if !graphql.HasFieldError(ctx, fc) { 7321 ec.Errorf(ctx, "must not be null") 7322 } 7323 return graphql.Null 7324 } 7325 res := resTmp.(string) 7326 fc.Result = res 7327 return ec.marshalNString2string(ctx, field.Selections, res) 7328 } 7329 7330 func (ec *executionContext) fieldContext_Commerce_Cart_Address_country(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7331 fc = &graphql.FieldContext{ 7332 Object: "Commerce_Cart_Address", 7333 Field: field, 7334 IsMethod: false, 7335 IsResolver: false, 7336 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7337 return nil, errors.New("field of type String does not have child fields") 7338 }, 7339 } 7340 return fc, nil 7341 } 7342 7343 func (ec *executionContext) _Commerce_Cart_Address_countryCode(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7344 fc, err := ec.fieldContext_Commerce_Cart_Address_countryCode(ctx, field) 7345 if err != nil { 7346 return graphql.Null 7347 } 7348 ctx = graphql.WithFieldContext(ctx, fc) 7349 defer func() { 7350 if r := recover(); r != nil { 7351 ec.Error(ctx, ec.Recover(ctx, r)) 7352 ret = graphql.Null 7353 } 7354 }() 7355 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7356 ctx = rctx // use context from middleware stack in children 7357 return obj.CountryCode, nil 7358 }) 7359 if err != nil { 7360 ec.Error(ctx, err) 7361 return graphql.Null 7362 } 7363 if resTmp == nil { 7364 if !graphql.HasFieldError(ctx, fc) { 7365 ec.Errorf(ctx, "must not be null") 7366 } 7367 return graphql.Null 7368 } 7369 res := resTmp.(string) 7370 fc.Result = res 7371 return ec.marshalNString2string(ctx, field.Selections, res) 7372 } 7373 7374 func (ec *executionContext) fieldContext_Commerce_Cart_Address_countryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7375 fc = &graphql.FieldContext{ 7376 Object: "Commerce_Cart_Address", 7377 Field: field, 7378 IsMethod: false, 7379 IsResolver: false, 7380 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7381 return nil, errors.New("field of type String does not have child fields") 7382 }, 7383 } 7384 return fc, nil 7385 } 7386 7387 func (ec *executionContext) _Commerce_Cart_Address_telephone(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7388 fc, err := ec.fieldContext_Commerce_Cart_Address_telephone(ctx, field) 7389 if err != nil { 7390 return graphql.Null 7391 } 7392 ctx = graphql.WithFieldContext(ctx, fc) 7393 defer func() { 7394 if r := recover(); r != nil { 7395 ec.Error(ctx, ec.Recover(ctx, r)) 7396 ret = graphql.Null 7397 } 7398 }() 7399 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7400 ctx = rctx // use context from middleware stack in children 7401 return obj.Telephone, nil 7402 }) 7403 if err != nil { 7404 ec.Error(ctx, err) 7405 return graphql.Null 7406 } 7407 if resTmp == nil { 7408 if !graphql.HasFieldError(ctx, fc) { 7409 ec.Errorf(ctx, "must not be null") 7410 } 7411 return graphql.Null 7412 } 7413 res := resTmp.(string) 7414 fc.Result = res 7415 return ec.marshalNString2string(ctx, field.Selections, res) 7416 } 7417 7418 func (ec *executionContext) fieldContext_Commerce_Cart_Address_telephone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7419 fc = &graphql.FieldContext{ 7420 Object: "Commerce_Cart_Address", 7421 Field: field, 7422 IsMethod: false, 7423 IsResolver: false, 7424 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7425 return nil, errors.New("field of type String does not have child fields") 7426 }, 7427 } 7428 return fc, nil 7429 } 7430 7431 func (ec *executionContext) _Commerce_Cart_Address_email(ctx context.Context, field graphql.CollectedField, obj *cart.Address) (ret graphql.Marshaler) { 7432 fc, err := ec.fieldContext_Commerce_Cart_Address_email(ctx, field) 7433 if err != nil { 7434 return graphql.Null 7435 } 7436 ctx = graphql.WithFieldContext(ctx, fc) 7437 defer func() { 7438 if r := recover(); r != nil { 7439 ec.Error(ctx, ec.Recover(ctx, r)) 7440 ret = graphql.Null 7441 } 7442 }() 7443 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7444 ctx = rctx // use context from middleware stack in children 7445 return obj.Email, nil 7446 }) 7447 if err != nil { 7448 ec.Error(ctx, err) 7449 return graphql.Null 7450 } 7451 if resTmp == nil { 7452 if !graphql.HasFieldError(ctx, fc) { 7453 ec.Errorf(ctx, "must not be null") 7454 } 7455 return graphql.Null 7456 } 7457 res := resTmp.(string) 7458 fc.Result = res 7459 return ec.marshalNString2string(ctx, field.Selections, res) 7460 } 7461 7462 func (ec *executionContext) fieldContext_Commerce_Cart_Address_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7463 fc = &graphql.FieldContext{ 7464 Object: "Commerce_Cart_Address", 7465 Field: field, 7466 IsMethod: false, 7467 IsResolver: false, 7468 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7469 return nil, errors.New("field of type String does not have child fields") 7470 }, 7471 } 7472 return fc, nil 7473 } 7474 7475 func (ec *executionContext) _Commerce_Cart_AddressForm_vat(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7476 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_vat(ctx, field) 7477 if err != nil { 7478 return graphql.Null 7479 } 7480 ctx = graphql.WithFieldContext(ctx, fc) 7481 defer func() { 7482 if r := recover(); r != nil { 7483 ec.Error(ctx, ec.Recover(ctx, r)) 7484 ret = graphql.Null 7485 } 7486 }() 7487 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7488 ctx = rctx // use context from middleware stack in children 7489 return obj.Vat, nil 7490 }) 7491 if err != nil { 7492 ec.Error(ctx, err) 7493 return graphql.Null 7494 } 7495 if resTmp == nil { 7496 if !graphql.HasFieldError(ctx, fc) { 7497 ec.Errorf(ctx, "must not be null") 7498 } 7499 return graphql.Null 7500 } 7501 res := resTmp.(string) 7502 fc.Result = res 7503 return ec.marshalNString2string(ctx, field.Selections, res) 7504 } 7505 7506 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_vat(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7507 fc = &graphql.FieldContext{ 7508 Object: "Commerce_Cart_AddressForm", 7509 Field: field, 7510 IsMethod: false, 7511 IsResolver: false, 7512 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7513 return nil, errors.New("field of type String does not have child fields") 7514 }, 7515 } 7516 return fc, nil 7517 } 7518 7519 func (ec *executionContext) _Commerce_Cart_AddressForm_firstname(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7520 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_firstname(ctx, field) 7521 if err != nil { 7522 return graphql.Null 7523 } 7524 ctx = graphql.WithFieldContext(ctx, fc) 7525 defer func() { 7526 if r := recover(); r != nil { 7527 ec.Error(ctx, ec.Recover(ctx, r)) 7528 ret = graphql.Null 7529 } 7530 }() 7531 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7532 ctx = rctx // use context from middleware stack in children 7533 return obj.Firstname, nil 7534 }) 7535 if err != nil { 7536 ec.Error(ctx, err) 7537 return graphql.Null 7538 } 7539 if resTmp == nil { 7540 if !graphql.HasFieldError(ctx, fc) { 7541 ec.Errorf(ctx, "must not be null") 7542 } 7543 return graphql.Null 7544 } 7545 res := resTmp.(string) 7546 fc.Result = res 7547 return ec.marshalNString2string(ctx, field.Selections, res) 7548 } 7549 7550 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_firstname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7551 fc = &graphql.FieldContext{ 7552 Object: "Commerce_Cart_AddressForm", 7553 Field: field, 7554 IsMethod: false, 7555 IsResolver: false, 7556 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7557 return nil, errors.New("field of type String does not have child fields") 7558 }, 7559 } 7560 return fc, nil 7561 } 7562 7563 func (ec *executionContext) _Commerce_Cart_AddressForm_lastname(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7564 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_lastname(ctx, field) 7565 if err != nil { 7566 return graphql.Null 7567 } 7568 ctx = graphql.WithFieldContext(ctx, fc) 7569 defer func() { 7570 if r := recover(); r != nil { 7571 ec.Error(ctx, ec.Recover(ctx, r)) 7572 ret = graphql.Null 7573 } 7574 }() 7575 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7576 ctx = rctx // use context from middleware stack in children 7577 return obj.Lastname, nil 7578 }) 7579 if err != nil { 7580 ec.Error(ctx, err) 7581 return graphql.Null 7582 } 7583 if resTmp == nil { 7584 if !graphql.HasFieldError(ctx, fc) { 7585 ec.Errorf(ctx, "must not be null") 7586 } 7587 return graphql.Null 7588 } 7589 res := resTmp.(string) 7590 fc.Result = res 7591 return ec.marshalNString2string(ctx, field.Selections, res) 7592 } 7593 7594 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_lastname(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7595 fc = &graphql.FieldContext{ 7596 Object: "Commerce_Cart_AddressForm", 7597 Field: field, 7598 IsMethod: false, 7599 IsResolver: false, 7600 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7601 return nil, errors.New("field of type String does not have child fields") 7602 }, 7603 } 7604 return fc, nil 7605 } 7606 7607 func (ec *executionContext) _Commerce_Cart_AddressForm_middleName(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7608 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_middleName(ctx, field) 7609 if err != nil { 7610 return graphql.Null 7611 } 7612 ctx = graphql.WithFieldContext(ctx, fc) 7613 defer func() { 7614 if r := recover(); r != nil { 7615 ec.Error(ctx, ec.Recover(ctx, r)) 7616 ret = graphql.Null 7617 } 7618 }() 7619 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7620 ctx = rctx // use context from middleware stack in children 7621 return obj.MiddleName, nil 7622 }) 7623 if err != nil { 7624 ec.Error(ctx, err) 7625 return graphql.Null 7626 } 7627 if resTmp == nil { 7628 if !graphql.HasFieldError(ctx, fc) { 7629 ec.Errorf(ctx, "must not be null") 7630 } 7631 return graphql.Null 7632 } 7633 res := resTmp.(string) 7634 fc.Result = res 7635 return ec.marshalNString2string(ctx, field.Selections, res) 7636 } 7637 7638 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_middleName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7639 fc = &graphql.FieldContext{ 7640 Object: "Commerce_Cart_AddressForm", 7641 Field: field, 7642 IsMethod: false, 7643 IsResolver: false, 7644 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7645 return nil, errors.New("field of type String does not have child fields") 7646 }, 7647 } 7648 return fc, nil 7649 } 7650 7651 func (ec *executionContext) _Commerce_Cart_AddressForm_title(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7652 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_title(ctx, field) 7653 if err != nil { 7654 return graphql.Null 7655 } 7656 ctx = graphql.WithFieldContext(ctx, fc) 7657 defer func() { 7658 if r := recover(); r != nil { 7659 ec.Error(ctx, ec.Recover(ctx, r)) 7660 ret = graphql.Null 7661 } 7662 }() 7663 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7664 ctx = rctx // use context from middleware stack in children 7665 return obj.Title, nil 7666 }) 7667 if err != nil { 7668 ec.Error(ctx, err) 7669 return graphql.Null 7670 } 7671 if resTmp == nil { 7672 if !graphql.HasFieldError(ctx, fc) { 7673 ec.Errorf(ctx, "must not be null") 7674 } 7675 return graphql.Null 7676 } 7677 res := resTmp.(string) 7678 fc.Result = res 7679 return ec.marshalNString2string(ctx, field.Selections, res) 7680 } 7681 7682 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7683 fc = &graphql.FieldContext{ 7684 Object: "Commerce_Cart_AddressForm", 7685 Field: field, 7686 IsMethod: false, 7687 IsResolver: false, 7688 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7689 return nil, errors.New("field of type String does not have child fields") 7690 }, 7691 } 7692 return fc, nil 7693 } 7694 7695 func (ec *executionContext) _Commerce_Cart_AddressForm_salutation(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7696 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_salutation(ctx, field) 7697 if err != nil { 7698 return graphql.Null 7699 } 7700 ctx = graphql.WithFieldContext(ctx, fc) 7701 defer func() { 7702 if r := recover(); r != nil { 7703 ec.Error(ctx, ec.Recover(ctx, r)) 7704 ret = graphql.Null 7705 } 7706 }() 7707 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7708 ctx = rctx // use context from middleware stack in children 7709 return obj.Salutation, nil 7710 }) 7711 if err != nil { 7712 ec.Error(ctx, err) 7713 return graphql.Null 7714 } 7715 if resTmp == nil { 7716 if !graphql.HasFieldError(ctx, fc) { 7717 ec.Errorf(ctx, "must not be null") 7718 } 7719 return graphql.Null 7720 } 7721 res := resTmp.(string) 7722 fc.Result = res 7723 return ec.marshalNString2string(ctx, field.Selections, res) 7724 } 7725 7726 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_salutation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7727 fc = &graphql.FieldContext{ 7728 Object: "Commerce_Cart_AddressForm", 7729 Field: field, 7730 IsMethod: false, 7731 IsResolver: false, 7732 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7733 return nil, errors.New("field of type String does not have child fields") 7734 }, 7735 } 7736 return fc, nil 7737 } 7738 7739 func (ec *executionContext) _Commerce_Cart_AddressForm_street(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7740 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_street(ctx, field) 7741 if err != nil { 7742 return graphql.Null 7743 } 7744 ctx = graphql.WithFieldContext(ctx, fc) 7745 defer func() { 7746 if r := recover(); r != nil { 7747 ec.Error(ctx, ec.Recover(ctx, r)) 7748 ret = graphql.Null 7749 } 7750 }() 7751 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7752 ctx = rctx // use context from middleware stack in children 7753 return obj.Street, nil 7754 }) 7755 if err != nil { 7756 ec.Error(ctx, err) 7757 return graphql.Null 7758 } 7759 if resTmp == nil { 7760 if !graphql.HasFieldError(ctx, fc) { 7761 ec.Errorf(ctx, "must not be null") 7762 } 7763 return graphql.Null 7764 } 7765 res := resTmp.(string) 7766 fc.Result = res 7767 return ec.marshalNString2string(ctx, field.Selections, res) 7768 } 7769 7770 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_street(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7771 fc = &graphql.FieldContext{ 7772 Object: "Commerce_Cart_AddressForm", 7773 Field: field, 7774 IsMethod: false, 7775 IsResolver: false, 7776 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7777 return nil, errors.New("field of type String does not have child fields") 7778 }, 7779 } 7780 return fc, nil 7781 } 7782 7783 func (ec *executionContext) _Commerce_Cart_AddressForm_streetNr(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7784 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_streetNr(ctx, field) 7785 if err != nil { 7786 return graphql.Null 7787 } 7788 ctx = graphql.WithFieldContext(ctx, fc) 7789 defer func() { 7790 if r := recover(); r != nil { 7791 ec.Error(ctx, ec.Recover(ctx, r)) 7792 ret = graphql.Null 7793 } 7794 }() 7795 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7796 ctx = rctx // use context from middleware stack in children 7797 return obj.StreetNr, nil 7798 }) 7799 if err != nil { 7800 ec.Error(ctx, err) 7801 return graphql.Null 7802 } 7803 if resTmp == nil { 7804 if !graphql.HasFieldError(ctx, fc) { 7805 ec.Errorf(ctx, "must not be null") 7806 } 7807 return graphql.Null 7808 } 7809 res := resTmp.(string) 7810 fc.Result = res 7811 return ec.marshalNString2string(ctx, field.Selections, res) 7812 } 7813 7814 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_streetNr(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7815 fc = &graphql.FieldContext{ 7816 Object: "Commerce_Cart_AddressForm", 7817 Field: field, 7818 IsMethod: false, 7819 IsResolver: false, 7820 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7821 return nil, errors.New("field of type String does not have child fields") 7822 }, 7823 } 7824 return fc, nil 7825 } 7826 7827 func (ec *executionContext) _Commerce_Cart_AddressForm_addressLine1(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7828 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_addressLine1(ctx, field) 7829 if err != nil { 7830 return graphql.Null 7831 } 7832 ctx = graphql.WithFieldContext(ctx, fc) 7833 defer func() { 7834 if r := recover(); r != nil { 7835 ec.Error(ctx, ec.Recover(ctx, r)) 7836 ret = graphql.Null 7837 } 7838 }() 7839 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7840 ctx = rctx // use context from middleware stack in children 7841 return obj.AddressLine1, nil 7842 }) 7843 if err != nil { 7844 ec.Error(ctx, err) 7845 return graphql.Null 7846 } 7847 if resTmp == nil { 7848 if !graphql.HasFieldError(ctx, fc) { 7849 ec.Errorf(ctx, "must not be null") 7850 } 7851 return graphql.Null 7852 } 7853 res := resTmp.(string) 7854 fc.Result = res 7855 return ec.marshalNString2string(ctx, field.Selections, res) 7856 } 7857 7858 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_addressLine1(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7859 fc = &graphql.FieldContext{ 7860 Object: "Commerce_Cart_AddressForm", 7861 Field: field, 7862 IsMethod: false, 7863 IsResolver: false, 7864 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7865 return nil, errors.New("field of type String does not have child fields") 7866 }, 7867 } 7868 return fc, nil 7869 } 7870 7871 func (ec *executionContext) _Commerce_Cart_AddressForm_addressLine2(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7872 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_addressLine2(ctx, field) 7873 if err != nil { 7874 return graphql.Null 7875 } 7876 ctx = graphql.WithFieldContext(ctx, fc) 7877 defer func() { 7878 if r := recover(); r != nil { 7879 ec.Error(ctx, ec.Recover(ctx, r)) 7880 ret = graphql.Null 7881 } 7882 }() 7883 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7884 ctx = rctx // use context from middleware stack in children 7885 return obj.AddressLine2, nil 7886 }) 7887 if err != nil { 7888 ec.Error(ctx, err) 7889 return graphql.Null 7890 } 7891 if resTmp == nil { 7892 if !graphql.HasFieldError(ctx, fc) { 7893 ec.Errorf(ctx, "must not be null") 7894 } 7895 return graphql.Null 7896 } 7897 res := resTmp.(string) 7898 fc.Result = res 7899 return ec.marshalNString2string(ctx, field.Selections, res) 7900 } 7901 7902 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_addressLine2(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7903 fc = &graphql.FieldContext{ 7904 Object: "Commerce_Cart_AddressForm", 7905 Field: field, 7906 IsMethod: false, 7907 IsResolver: false, 7908 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7909 return nil, errors.New("field of type String does not have child fields") 7910 }, 7911 } 7912 return fc, nil 7913 } 7914 7915 func (ec *executionContext) _Commerce_Cart_AddressForm_company(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7916 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_company(ctx, field) 7917 if err != nil { 7918 return graphql.Null 7919 } 7920 ctx = graphql.WithFieldContext(ctx, fc) 7921 defer func() { 7922 if r := recover(); r != nil { 7923 ec.Error(ctx, ec.Recover(ctx, r)) 7924 ret = graphql.Null 7925 } 7926 }() 7927 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7928 ctx = rctx // use context from middleware stack in children 7929 return obj.Company, nil 7930 }) 7931 if err != nil { 7932 ec.Error(ctx, err) 7933 return graphql.Null 7934 } 7935 if resTmp == nil { 7936 if !graphql.HasFieldError(ctx, fc) { 7937 ec.Errorf(ctx, "must not be null") 7938 } 7939 return graphql.Null 7940 } 7941 res := resTmp.(string) 7942 fc.Result = res 7943 return ec.marshalNString2string(ctx, field.Selections, res) 7944 } 7945 7946 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7947 fc = &graphql.FieldContext{ 7948 Object: "Commerce_Cart_AddressForm", 7949 Field: field, 7950 IsMethod: false, 7951 IsResolver: false, 7952 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7953 return nil, errors.New("field of type String does not have child fields") 7954 }, 7955 } 7956 return fc, nil 7957 } 7958 7959 func (ec *executionContext) _Commerce_Cart_AddressForm_city(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 7960 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_city(ctx, field) 7961 if err != nil { 7962 return graphql.Null 7963 } 7964 ctx = graphql.WithFieldContext(ctx, fc) 7965 defer func() { 7966 if r := recover(); r != nil { 7967 ec.Error(ctx, ec.Recover(ctx, r)) 7968 ret = graphql.Null 7969 } 7970 }() 7971 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 7972 ctx = rctx // use context from middleware stack in children 7973 return obj.City, nil 7974 }) 7975 if err != nil { 7976 ec.Error(ctx, err) 7977 return graphql.Null 7978 } 7979 if resTmp == nil { 7980 if !graphql.HasFieldError(ctx, fc) { 7981 ec.Errorf(ctx, "must not be null") 7982 } 7983 return graphql.Null 7984 } 7985 res := resTmp.(string) 7986 fc.Result = res 7987 return ec.marshalNString2string(ctx, field.Selections, res) 7988 } 7989 7990 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_city(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 7991 fc = &graphql.FieldContext{ 7992 Object: "Commerce_Cart_AddressForm", 7993 Field: field, 7994 IsMethod: false, 7995 IsResolver: false, 7996 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 7997 return nil, errors.New("field of type String does not have child fields") 7998 }, 7999 } 8000 return fc, nil 8001 } 8002 8003 func (ec *executionContext) _Commerce_Cart_AddressForm_postCode(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8004 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_postCode(ctx, field) 8005 if err != nil { 8006 return graphql.Null 8007 } 8008 ctx = graphql.WithFieldContext(ctx, fc) 8009 defer func() { 8010 if r := recover(); r != nil { 8011 ec.Error(ctx, ec.Recover(ctx, r)) 8012 ret = graphql.Null 8013 } 8014 }() 8015 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8016 ctx = rctx // use context from middleware stack in children 8017 return obj.PostCode, nil 8018 }) 8019 if err != nil { 8020 ec.Error(ctx, err) 8021 return graphql.Null 8022 } 8023 if resTmp == nil { 8024 if !graphql.HasFieldError(ctx, fc) { 8025 ec.Errorf(ctx, "must not be null") 8026 } 8027 return graphql.Null 8028 } 8029 res := resTmp.(string) 8030 fc.Result = res 8031 return ec.marshalNString2string(ctx, field.Selections, res) 8032 } 8033 8034 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_postCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8035 fc = &graphql.FieldContext{ 8036 Object: "Commerce_Cart_AddressForm", 8037 Field: field, 8038 IsMethod: false, 8039 IsResolver: false, 8040 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8041 return nil, errors.New("field of type String does not have child fields") 8042 }, 8043 } 8044 return fc, nil 8045 } 8046 8047 func (ec *executionContext) _Commerce_Cart_AddressForm_state(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8048 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_state(ctx, field) 8049 if err != nil { 8050 return graphql.Null 8051 } 8052 ctx = graphql.WithFieldContext(ctx, fc) 8053 defer func() { 8054 if r := recover(); r != nil { 8055 ec.Error(ctx, ec.Recover(ctx, r)) 8056 ret = graphql.Null 8057 } 8058 }() 8059 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8060 ctx = rctx // use context from middleware stack in children 8061 return obj.State, nil 8062 }) 8063 if err != nil { 8064 ec.Error(ctx, err) 8065 return graphql.Null 8066 } 8067 if resTmp == nil { 8068 if !graphql.HasFieldError(ctx, fc) { 8069 ec.Errorf(ctx, "must not be null") 8070 } 8071 return graphql.Null 8072 } 8073 res := resTmp.(string) 8074 fc.Result = res 8075 return ec.marshalNString2string(ctx, field.Selections, res) 8076 } 8077 8078 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8079 fc = &graphql.FieldContext{ 8080 Object: "Commerce_Cart_AddressForm", 8081 Field: field, 8082 IsMethod: false, 8083 IsResolver: false, 8084 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8085 return nil, errors.New("field of type String does not have child fields") 8086 }, 8087 } 8088 return fc, nil 8089 } 8090 8091 func (ec *executionContext) _Commerce_Cart_AddressForm_regionCode(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8092 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_regionCode(ctx, field) 8093 if err != nil { 8094 return graphql.Null 8095 } 8096 ctx = graphql.WithFieldContext(ctx, fc) 8097 defer func() { 8098 if r := recover(); r != nil { 8099 ec.Error(ctx, ec.Recover(ctx, r)) 8100 ret = graphql.Null 8101 } 8102 }() 8103 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8104 ctx = rctx // use context from middleware stack in children 8105 return obj.RegionCode, nil 8106 }) 8107 if err != nil { 8108 ec.Error(ctx, err) 8109 return graphql.Null 8110 } 8111 if resTmp == nil { 8112 if !graphql.HasFieldError(ctx, fc) { 8113 ec.Errorf(ctx, "must not be null") 8114 } 8115 return graphql.Null 8116 } 8117 res := resTmp.(string) 8118 fc.Result = res 8119 return ec.marshalNString2string(ctx, field.Selections, res) 8120 } 8121 8122 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_regionCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8123 fc = &graphql.FieldContext{ 8124 Object: "Commerce_Cart_AddressForm", 8125 Field: field, 8126 IsMethod: false, 8127 IsResolver: false, 8128 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8129 return nil, errors.New("field of type String does not have child fields") 8130 }, 8131 } 8132 return fc, nil 8133 } 8134 8135 func (ec *executionContext) _Commerce_Cart_AddressForm_country(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8136 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_country(ctx, field) 8137 if err != nil { 8138 return graphql.Null 8139 } 8140 ctx = graphql.WithFieldContext(ctx, fc) 8141 defer func() { 8142 if r := recover(); r != nil { 8143 ec.Error(ctx, ec.Recover(ctx, r)) 8144 ret = graphql.Null 8145 } 8146 }() 8147 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8148 ctx = rctx // use context from middleware stack in children 8149 return obj.Country, nil 8150 }) 8151 if err != nil { 8152 ec.Error(ctx, err) 8153 return graphql.Null 8154 } 8155 if resTmp == nil { 8156 if !graphql.HasFieldError(ctx, fc) { 8157 ec.Errorf(ctx, "must not be null") 8158 } 8159 return graphql.Null 8160 } 8161 res := resTmp.(string) 8162 fc.Result = res 8163 return ec.marshalNString2string(ctx, field.Selections, res) 8164 } 8165 8166 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_country(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8167 fc = &graphql.FieldContext{ 8168 Object: "Commerce_Cart_AddressForm", 8169 Field: field, 8170 IsMethod: false, 8171 IsResolver: false, 8172 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8173 return nil, errors.New("field of type String does not have child fields") 8174 }, 8175 } 8176 return fc, nil 8177 } 8178 8179 func (ec *executionContext) _Commerce_Cart_AddressForm_countryCode(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8180 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_countryCode(ctx, field) 8181 if err != nil { 8182 return graphql.Null 8183 } 8184 ctx = graphql.WithFieldContext(ctx, fc) 8185 defer func() { 8186 if r := recover(); r != nil { 8187 ec.Error(ctx, ec.Recover(ctx, r)) 8188 ret = graphql.Null 8189 } 8190 }() 8191 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8192 ctx = rctx // use context from middleware stack in children 8193 return obj.CountryCode, nil 8194 }) 8195 if err != nil { 8196 ec.Error(ctx, err) 8197 return graphql.Null 8198 } 8199 if resTmp == nil { 8200 if !graphql.HasFieldError(ctx, fc) { 8201 ec.Errorf(ctx, "must not be null") 8202 } 8203 return graphql.Null 8204 } 8205 res := resTmp.(string) 8206 fc.Result = res 8207 return ec.marshalNString2string(ctx, field.Selections, res) 8208 } 8209 8210 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_countryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8211 fc = &graphql.FieldContext{ 8212 Object: "Commerce_Cart_AddressForm", 8213 Field: field, 8214 IsMethod: false, 8215 IsResolver: false, 8216 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8217 return nil, errors.New("field of type String does not have child fields") 8218 }, 8219 } 8220 return fc, nil 8221 } 8222 8223 func (ec *executionContext) _Commerce_Cart_AddressForm_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8224 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_phoneNumber(ctx, field) 8225 if err != nil { 8226 return graphql.Null 8227 } 8228 ctx = graphql.WithFieldContext(ctx, fc) 8229 defer func() { 8230 if r := recover(); r != nil { 8231 ec.Error(ctx, ec.Recover(ctx, r)) 8232 ret = graphql.Null 8233 } 8234 }() 8235 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8236 ctx = rctx // use context from middleware stack in children 8237 return obj.PhoneNumber, nil 8238 }) 8239 if err != nil { 8240 ec.Error(ctx, err) 8241 return graphql.Null 8242 } 8243 if resTmp == nil { 8244 if !graphql.HasFieldError(ctx, fc) { 8245 ec.Errorf(ctx, "must not be null") 8246 } 8247 return graphql.Null 8248 } 8249 res := resTmp.(string) 8250 fc.Result = res 8251 return ec.marshalNString2string(ctx, field.Selections, res) 8252 } 8253 8254 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8255 fc = &graphql.FieldContext{ 8256 Object: "Commerce_Cart_AddressForm", 8257 Field: field, 8258 IsMethod: false, 8259 IsResolver: false, 8260 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8261 return nil, errors.New("field of type String does not have child fields") 8262 }, 8263 } 8264 return fc, nil 8265 } 8266 8267 func (ec *executionContext) _Commerce_Cart_AddressForm_email(ctx context.Context, field graphql.CollectedField, obj *forms.AddressForm) (ret graphql.Marshaler) { 8268 fc, err := ec.fieldContext_Commerce_Cart_AddressForm_email(ctx, field) 8269 if err != nil { 8270 return graphql.Null 8271 } 8272 ctx = graphql.WithFieldContext(ctx, fc) 8273 defer func() { 8274 if r := recover(); r != nil { 8275 ec.Error(ctx, ec.Recover(ctx, r)) 8276 ret = graphql.Null 8277 } 8278 }() 8279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8280 ctx = rctx // use context from middleware stack in children 8281 return obj.Email, nil 8282 }) 8283 if err != nil { 8284 ec.Error(ctx, err) 8285 return graphql.Null 8286 } 8287 if resTmp == nil { 8288 if !graphql.HasFieldError(ctx, fc) { 8289 ec.Errorf(ctx, "must not be null") 8290 } 8291 return graphql.Null 8292 } 8293 res := resTmp.(string) 8294 fc.Result = res 8295 return ec.marshalNString2string(ctx, field.Selections, res) 8296 } 8297 8298 func (ec *executionContext) fieldContext_Commerce_Cart_AddressForm_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8299 fc = &graphql.FieldContext{ 8300 Object: "Commerce_Cart_AddressForm", 8301 Field: field, 8302 IsMethod: false, 8303 IsResolver: false, 8304 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8305 return nil, errors.New("field of type String does not have child fields") 8306 }, 8307 } 8308 return fc, nil 8309 } 8310 8311 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_campaignCode(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8312 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_campaignCode(ctx, field) 8313 if err != nil { 8314 return graphql.Null 8315 } 8316 ctx = graphql.WithFieldContext(ctx, fc) 8317 defer func() { 8318 if r := recover(); r != nil { 8319 ec.Error(ctx, ec.Recover(ctx, r)) 8320 ret = graphql.Null 8321 } 8322 }() 8323 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8324 ctx = rctx // use context from middleware stack in children 8325 return obj.CampaignCode, nil 8326 }) 8327 if err != nil { 8328 ec.Error(ctx, err) 8329 return graphql.Null 8330 } 8331 if resTmp == nil { 8332 if !graphql.HasFieldError(ctx, fc) { 8333 ec.Errorf(ctx, "must not be null") 8334 } 8335 return graphql.Null 8336 } 8337 res := resTmp.(string) 8338 fc.Result = res 8339 return ec.marshalNString2string(ctx, field.Selections, res) 8340 } 8341 8342 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_campaignCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8343 fc = &graphql.FieldContext{ 8344 Object: "Commerce_Cart_AppliedDiscount", 8345 Field: field, 8346 IsMethod: false, 8347 IsResolver: false, 8348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8349 return nil, errors.New("field of type String does not have child fields") 8350 }, 8351 } 8352 return fc, nil 8353 } 8354 8355 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_couponCode(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8356 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_couponCode(ctx, field) 8357 if err != nil { 8358 return graphql.Null 8359 } 8360 ctx = graphql.WithFieldContext(ctx, fc) 8361 defer func() { 8362 if r := recover(); r != nil { 8363 ec.Error(ctx, ec.Recover(ctx, r)) 8364 ret = graphql.Null 8365 } 8366 }() 8367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8368 ctx = rctx // use context from middleware stack in children 8369 return obj.CouponCode, nil 8370 }) 8371 if err != nil { 8372 ec.Error(ctx, err) 8373 return graphql.Null 8374 } 8375 if resTmp == nil { 8376 if !graphql.HasFieldError(ctx, fc) { 8377 ec.Errorf(ctx, "must not be null") 8378 } 8379 return graphql.Null 8380 } 8381 res := resTmp.(string) 8382 fc.Result = res 8383 return ec.marshalNString2string(ctx, field.Selections, res) 8384 } 8385 8386 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_couponCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8387 fc = &graphql.FieldContext{ 8388 Object: "Commerce_Cart_AppliedDiscount", 8389 Field: field, 8390 IsMethod: false, 8391 IsResolver: false, 8392 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8393 return nil, errors.New("field of type String does not have child fields") 8394 }, 8395 } 8396 return fc, nil 8397 } 8398 8399 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_label(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8400 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_label(ctx, field) 8401 if err != nil { 8402 return graphql.Null 8403 } 8404 ctx = graphql.WithFieldContext(ctx, fc) 8405 defer func() { 8406 if r := recover(); r != nil { 8407 ec.Error(ctx, ec.Recover(ctx, r)) 8408 ret = graphql.Null 8409 } 8410 }() 8411 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8412 ctx = rctx // use context from middleware stack in children 8413 return obj.Label, nil 8414 }) 8415 if err != nil { 8416 ec.Error(ctx, err) 8417 return graphql.Null 8418 } 8419 if resTmp == nil { 8420 if !graphql.HasFieldError(ctx, fc) { 8421 ec.Errorf(ctx, "must not be null") 8422 } 8423 return graphql.Null 8424 } 8425 res := resTmp.(string) 8426 fc.Result = res 8427 return ec.marshalNString2string(ctx, field.Selections, res) 8428 } 8429 8430 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8431 fc = &graphql.FieldContext{ 8432 Object: "Commerce_Cart_AppliedDiscount", 8433 Field: field, 8434 IsMethod: false, 8435 IsResolver: false, 8436 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8437 return nil, errors.New("field of type String does not have child fields") 8438 }, 8439 } 8440 return fc, nil 8441 } 8442 8443 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_applied(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8444 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_applied(ctx, field) 8445 if err != nil { 8446 return graphql.Null 8447 } 8448 ctx = graphql.WithFieldContext(ctx, fc) 8449 defer func() { 8450 if r := recover(); r != nil { 8451 ec.Error(ctx, ec.Recover(ctx, r)) 8452 ret = graphql.Null 8453 } 8454 }() 8455 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8456 ctx = rctx // use context from middleware stack in children 8457 return obj.Applied, nil 8458 }) 8459 if err != nil { 8460 ec.Error(ctx, err) 8461 return graphql.Null 8462 } 8463 if resTmp == nil { 8464 if !graphql.HasFieldError(ctx, fc) { 8465 ec.Errorf(ctx, "must not be null") 8466 } 8467 return graphql.Null 8468 } 8469 res := resTmp.(domain.Price) 8470 fc.Result = res 8471 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 8472 } 8473 8474 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_applied(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8475 fc = &graphql.FieldContext{ 8476 Object: "Commerce_Cart_AppliedDiscount", 8477 Field: field, 8478 IsMethod: false, 8479 IsResolver: false, 8480 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8481 switch field.Name { 8482 case "amount": 8483 return ec.fieldContext_Commerce_Price_amount(ctx, field) 8484 case "currency": 8485 return ec.fieldContext_Commerce_Price_currency(ctx, field) 8486 } 8487 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 8488 }, 8489 } 8490 return fc, nil 8491 } 8492 8493 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_type(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8494 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_type(ctx, field) 8495 if err != nil { 8496 return graphql.Null 8497 } 8498 ctx = graphql.WithFieldContext(ctx, fc) 8499 defer func() { 8500 if r := recover(); r != nil { 8501 ec.Error(ctx, ec.Recover(ctx, r)) 8502 ret = graphql.Null 8503 } 8504 }() 8505 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8506 ctx = rctx // use context from middleware stack in children 8507 return obj.Type, nil 8508 }) 8509 if err != nil { 8510 ec.Error(ctx, err) 8511 return graphql.Null 8512 } 8513 if resTmp == nil { 8514 if !graphql.HasFieldError(ctx, fc) { 8515 ec.Errorf(ctx, "must not be null") 8516 } 8517 return graphql.Null 8518 } 8519 res := resTmp.(string) 8520 fc.Result = res 8521 return ec.marshalNString2string(ctx, field.Selections, res) 8522 } 8523 8524 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8525 fc = &graphql.FieldContext{ 8526 Object: "Commerce_Cart_AppliedDiscount", 8527 Field: field, 8528 IsMethod: false, 8529 IsResolver: false, 8530 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8531 return nil, errors.New("field of type String does not have child fields") 8532 }, 8533 } 8534 return fc, nil 8535 } 8536 8537 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_isItemRelated(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8538 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_isItemRelated(ctx, field) 8539 if err != nil { 8540 return graphql.Null 8541 } 8542 ctx = graphql.WithFieldContext(ctx, fc) 8543 defer func() { 8544 if r := recover(); r != nil { 8545 ec.Error(ctx, ec.Recover(ctx, r)) 8546 ret = graphql.Null 8547 } 8548 }() 8549 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8550 ctx = rctx // use context from middleware stack in children 8551 return obj.IsItemRelated, nil 8552 }) 8553 if err != nil { 8554 ec.Error(ctx, err) 8555 return graphql.Null 8556 } 8557 if resTmp == nil { 8558 if !graphql.HasFieldError(ctx, fc) { 8559 ec.Errorf(ctx, "must not be null") 8560 } 8561 return graphql.Null 8562 } 8563 res := resTmp.(bool) 8564 fc.Result = res 8565 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8566 } 8567 8568 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_isItemRelated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8569 fc = &graphql.FieldContext{ 8570 Object: "Commerce_Cart_AppliedDiscount", 8571 Field: field, 8572 IsMethod: false, 8573 IsResolver: false, 8574 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8575 return nil, errors.New("field of type Boolean does not have child fields") 8576 }, 8577 } 8578 return fc, nil 8579 } 8580 8581 func (ec *executionContext) _Commerce_Cart_AppliedDiscount_sortOrder(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedDiscount) (ret graphql.Marshaler) { 8582 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscount_sortOrder(ctx, field) 8583 if err != nil { 8584 return graphql.Null 8585 } 8586 ctx = graphql.WithFieldContext(ctx, fc) 8587 defer func() { 8588 if r := recover(); r != nil { 8589 ec.Error(ctx, ec.Recover(ctx, r)) 8590 ret = graphql.Null 8591 } 8592 }() 8593 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8594 ctx = rctx // use context from middleware stack in children 8595 return obj.SortOrder, nil 8596 }) 8597 if err != nil { 8598 ec.Error(ctx, err) 8599 return graphql.Null 8600 } 8601 if resTmp == nil { 8602 if !graphql.HasFieldError(ctx, fc) { 8603 ec.Errorf(ctx, "must not be null") 8604 } 8605 return graphql.Null 8606 } 8607 res := resTmp.(int) 8608 fc.Result = res 8609 return ec.marshalNInt2int(ctx, field.Selections, res) 8610 } 8611 8612 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscount_sortOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8613 fc = &graphql.FieldContext{ 8614 Object: "Commerce_Cart_AppliedDiscount", 8615 Field: field, 8616 IsMethod: false, 8617 IsResolver: false, 8618 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8619 return nil, errors.New("field of type Int does not have child fields") 8620 }, 8621 } 8622 return fc, nil 8623 } 8624 8625 func (ec *executionContext) _Commerce_Cart_AppliedDiscounts_items(ctx context.Context, field graphql.CollectedField, obj *dto.CartAppliedDiscounts) (ret graphql.Marshaler) { 8626 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 8627 if err != nil { 8628 return graphql.Null 8629 } 8630 ctx = graphql.WithFieldContext(ctx, fc) 8631 defer func() { 8632 if r := recover(); r != nil { 8633 ec.Error(ctx, ec.Recover(ctx, r)) 8634 ret = graphql.Null 8635 } 8636 }() 8637 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8638 ctx = rctx // use context from middleware stack in children 8639 return obj.Items(), nil 8640 }) 8641 if err != nil { 8642 ec.Error(ctx, err) 8643 return graphql.Null 8644 } 8645 if resTmp == nil { 8646 return graphql.Null 8647 } 8648 res := resTmp.([]cart.AppliedDiscount) 8649 fc.Result = res 8650 return ec.marshalOCommerce_Cart_AppliedDiscount2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedDiscountᚄ(ctx, field.Selections, res) 8651 } 8652 8653 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscounts_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8654 fc = &graphql.FieldContext{ 8655 Object: "Commerce_Cart_AppliedDiscounts", 8656 Field: field, 8657 IsMethod: true, 8658 IsResolver: false, 8659 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8660 switch field.Name { 8661 case "campaignCode": 8662 return ec.fieldContext_Commerce_Cart_AppliedDiscount_campaignCode(ctx, field) 8663 case "couponCode": 8664 return ec.fieldContext_Commerce_Cart_AppliedDiscount_couponCode(ctx, field) 8665 case "label": 8666 return ec.fieldContext_Commerce_Cart_AppliedDiscount_label(ctx, field) 8667 case "applied": 8668 return ec.fieldContext_Commerce_Cart_AppliedDiscount_applied(ctx, field) 8669 case "type": 8670 return ec.fieldContext_Commerce_Cart_AppliedDiscount_type(ctx, field) 8671 case "isItemRelated": 8672 return ec.fieldContext_Commerce_Cart_AppliedDiscount_isItemRelated(ctx, field) 8673 case "sortOrder": 8674 return ec.fieldContext_Commerce_Cart_AppliedDiscount_sortOrder(ctx, field) 8675 } 8676 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscount", field.Name) 8677 }, 8678 } 8679 return fc, nil 8680 } 8681 8682 func (ec *executionContext) _Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx context.Context, field graphql.CollectedField, obj *dto.CartAppliedDiscounts) (ret graphql.Marshaler) { 8683 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 8684 if err != nil { 8685 return graphql.Null 8686 } 8687 ctx = graphql.WithFieldContext(ctx, fc) 8688 defer func() { 8689 if r := recover(); r != nil { 8690 ec.Error(ctx, ec.Recover(ctx, r)) 8691 ret = graphql.Null 8692 } 8693 }() 8694 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8695 ctx = rctx // use context from middleware stack in children 8696 return obj.ByCampaignCode(fc.Args["campaignCode"].(string)), nil 8697 }) 8698 if err != nil { 8699 ec.Error(ctx, err) 8700 return graphql.Null 8701 } 8702 if resTmp == nil { 8703 if !graphql.HasFieldError(ctx, fc) { 8704 ec.Errorf(ctx, "must not be null") 8705 } 8706 return graphql.Null 8707 } 8708 res := resTmp.(*dto.CartAppliedDiscounts) 8709 fc.Result = res 8710 return ec.marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx, field.Selections, res) 8711 } 8712 8713 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8714 fc = &graphql.FieldContext{ 8715 Object: "Commerce_Cart_AppliedDiscounts", 8716 Field: field, 8717 IsMethod: true, 8718 IsResolver: false, 8719 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8720 switch field.Name { 8721 case "items": 8722 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 8723 case "byCampaignCode": 8724 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 8725 case "byType": 8726 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 8727 } 8728 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscounts", field.Name) 8729 }, 8730 } 8731 defer func() { 8732 if r := recover(); r != nil { 8733 err = ec.Recover(ctx, r) 8734 ec.Error(ctx, err) 8735 } 8736 }() 8737 ctx = graphql.WithFieldContext(ctx, fc) 8738 if fc.Args, err = ec.field_Commerce_Cart_AppliedDiscounts_byCampaignCode_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8739 ec.Error(ctx, err) 8740 return fc, err 8741 } 8742 return fc, nil 8743 } 8744 8745 func (ec *executionContext) _Commerce_Cart_AppliedDiscounts_byType(ctx context.Context, field graphql.CollectedField, obj *dto.CartAppliedDiscounts) (ret graphql.Marshaler) { 8746 fc, err := ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 8747 if err != nil { 8748 return graphql.Null 8749 } 8750 ctx = graphql.WithFieldContext(ctx, fc) 8751 defer func() { 8752 if r := recover(); r != nil { 8753 ec.Error(ctx, ec.Recover(ctx, r)) 8754 ret = graphql.Null 8755 } 8756 }() 8757 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8758 ctx = rctx // use context from middleware stack in children 8759 return obj.ByType(fc.Args["filterType"].(string)), nil 8760 }) 8761 if err != nil { 8762 ec.Error(ctx, err) 8763 return graphql.Null 8764 } 8765 if resTmp == nil { 8766 if !graphql.HasFieldError(ctx, fc) { 8767 ec.Errorf(ctx, "must not be null") 8768 } 8769 return graphql.Null 8770 } 8771 res := resTmp.(*dto.CartAppliedDiscounts) 8772 fc.Result = res 8773 return ec.marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx, field.Selections, res) 8774 } 8775 8776 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8777 fc = &graphql.FieldContext{ 8778 Object: "Commerce_Cart_AppliedDiscounts", 8779 Field: field, 8780 IsMethod: true, 8781 IsResolver: false, 8782 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8783 switch field.Name { 8784 case "items": 8785 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 8786 case "byCampaignCode": 8787 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 8788 case "byType": 8789 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 8790 } 8791 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscounts", field.Name) 8792 }, 8793 } 8794 defer func() { 8795 if r := recover(); r != nil { 8796 err = ec.Recover(ctx, r) 8797 ec.Error(ctx, err) 8798 } 8799 }() 8800 ctx = graphql.WithFieldContext(ctx, fc) 8801 if fc.Args, err = ec.field_Commerce_Cart_AppliedDiscounts_byType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 8802 ec.Error(ctx, err) 8803 return fc, err 8804 } 8805 return fc, nil 8806 } 8807 8808 func (ec *executionContext) _Commerce_Cart_AppliedGiftCard_code(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedGiftCard) (ret graphql.Marshaler) { 8809 fc, err := ec.fieldContext_Commerce_Cart_AppliedGiftCard_code(ctx, field) 8810 if err != nil { 8811 return graphql.Null 8812 } 8813 ctx = graphql.WithFieldContext(ctx, fc) 8814 defer func() { 8815 if r := recover(); r != nil { 8816 ec.Error(ctx, ec.Recover(ctx, r)) 8817 ret = graphql.Null 8818 } 8819 }() 8820 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8821 ctx = rctx // use context from middleware stack in children 8822 return obj.Code, nil 8823 }) 8824 if err != nil { 8825 ec.Error(ctx, err) 8826 return graphql.Null 8827 } 8828 if resTmp == nil { 8829 if !graphql.HasFieldError(ctx, fc) { 8830 ec.Errorf(ctx, "must not be null") 8831 } 8832 return graphql.Null 8833 } 8834 res := resTmp.(string) 8835 fc.Result = res 8836 return ec.marshalNString2string(ctx, field.Selections, res) 8837 } 8838 8839 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedGiftCard_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8840 fc = &graphql.FieldContext{ 8841 Object: "Commerce_Cart_AppliedGiftCard", 8842 Field: field, 8843 IsMethod: false, 8844 IsResolver: false, 8845 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8846 return nil, errors.New("field of type String does not have child fields") 8847 }, 8848 } 8849 return fc, nil 8850 } 8851 8852 func (ec *executionContext) _Commerce_Cart_AppliedGiftCard_applied(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedGiftCard) (ret graphql.Marshaler) { 8853 fc, err := ec.fieldContext_Commerce_Cart_AppliedGiftCard_applied(ctx, field) 8854 if err != nil { 8855 return graphql.Null 8856 } 8857 ctx = graphql.WithFieldContext(ctx, fc) 8858 defer func() { 8859 if r := recover(); r != nil { 8860 ec.Error(ctx, ec.Recover(ctx, r)) 8861 ret = graphql.Null 8862 } 8863 }() 8864 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8865 ctx = rctx // use context from middleware stack in children 8866 return obj.Applied, nil 8867 }) 8868 if err != nil { 8869 ec.Error(ctx, err) 8870 return graphql.Null 8871 } 8872 if resTmp == nil { 8873 if !graphql.HasFieldError(ctx, fc) { 8874 ec.Errorf(ctx, "must not be null") 8875 } 8876 return graphql.Null 8877 } 8878 res := resTmp.(domain.Price) 8879 fc.Result = res 8880 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 8881 } 8882 8883 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedGiftCard_applied(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8884 fc = &graphql.FieldContext{ 8885 Object: "Commerce_Cart_AppliedGiftCard", 8886 Field: field, 8887 IsMethod: false, 8888 IsResolver: false, 8889 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8890 switch field.Name { 8891 case "amount": 8892 return ec.fieldContext_Commerce_Price_amount(ctx, field) 8893 case "currency": 8894 return ec.fieldContext_Commerce_Price_currency(ctx, field) 8895 } 8896 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 8897 }, 8898 } 8899 return fc, nil 8900 } 8901 8902 func (ec *executionContext) _Commerce_Cart_AppliedGiftCard_remaining(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedGiftCard) (ret graphql.Marshaler) { 8903 fc, err := ec.fieldContext_Commerce_Cart_AppliedGiftCard_remaining(ctx, field) 8904 if err != nil { 8905 return graphql.Null 8906 } 8907 ctx = graphql.WithFieldContext(ctx, fc) 8908 defer func() { 8909 if r := recover(); r != nil { 8910 ec.Error(ctx, ec.Recover(ctx, r)) 8911 ret = graphql.Null 8912 } 8913 }() 8914 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8915 ctx = rctx // use context from middleware stack in children 8916 return obj.Remaining, nil 8917 }) 8918 if err != nil { 8919 ec.Error(ctx, err) 8920 return graphql.Null 8921 } 8922 if resTmp == nil { 8923 if !graphql.HasFieldError(ctx, fc) { 8924 ec.Errorf(ctx, "must not be null") 8925 } 8926 return graphql.Null 8927 } 8928 res := resTmp.(domain.Price) 8929 fc.Result = res 8930 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 8931 } 8932 8933 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedGiftCard_remaining(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8934 fc = &graphql.FieldContext{ 8935 Object: "Commerce_Cart_AppliedGiftCard", 8936 Field: field, 8937 IsMethod: false, 8938 IsResolver: false, 8939 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8940 switch field.Name { 8941 case "amount": 8942 return ec.fieldContext_Commerce_Price_amount(ctx, field) 8943 case "currency": 8944 return ec.fieldContext_Commerce_Price_currency(ctx, field) 8945 } 8946 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 8947 }, 8948 } 8949 return fc, nil 8950 } 8951 8952 func (ec *executionContext) _Commerce_Cart_AppliedGiftCard_hasRemaining(ctx context.Context, field graphql.CollectedField, obj *cart.AppliedGiftCard) (ret graphql.Marshaler) { 8953 fc, err := ec.fieldContext_Commerce_Cart_AppliedGiftCard_hasRemaining(ctx, field) 8954 if err != nil { 8955 return graphql.Null 8956 } 8957 ctx = graphql.WithFieldContext(ctx, fc) 8958 defer func() { 8959 if r := recover(); r != nil { 8960 ec.Error(ctx, ec.Recover(ctx, r)) 8961 ret = graphql.Null 8962 } 8963 }() 8964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 8965 ctx = rctx // use context from middleware stack in children 8966 return obj.HasRemaining(), nil 8967 }) 8968 if err != nil { 8969 ec.Error(ctx, err) 8970 return graphql.Null 8971 } 8972 if resTmp == nil { 8973 if !graphql.HasFieldError(ctx, fc) { 8974 ec.Errorf(ctx, "must not be null") 8975 } 8976 return graphql.Null 8977 } 8978 res := resTmp.(bool) 8979 fc.Result = res 8980 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 8981 } 8982 8983 func (ec *executionContext) fieldContext_Commerce_Cart_AppliedGiftCard_hasRemaining(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 8984 fc = &graphql.FieldContext{ 8985 Object: "Commerce_Cart_AppliedGiftCard", 8986 Field: field, 8987 IsMethod: true, 8988 IsResolver: false, 8989 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 8990 return nil, errors.New("field of type Boolean does not have child fields") 8991 }, 8992 } 8993 return fc, nil 8994 } 8995 8996 func (ec *executionContext) _Commerce_Cart_BillingAddressForm_formData(ctx context.Context, field graphql.CollectedField, obj *dto.BillingAddressForm) (ret graphql.Marshaler) { 8997 fc, err := ec.fieldContext_Commerce_Cart_BillingAddressForm_formData(ctx, field) 8998 if err != nil { 8999 return graphql.Null 9000 } 9001 ctx = graphql.WithFieldContext(ctx, fc) 9002 defer func() { 9003 if r := recover(); r != nil { 9004 ec.Error(ctx, ec.Recover(ctx, r)) 9005 ret = graphql.Null 9006 } 9007 }() 9008 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9009 ctx = rctx // use context from middleware stack in children 9010 return obj.FormData, nil 9011 }) 9012 if err != nil { 9013 ec.Error(ctx, err) 9014 return graphql.Null 9015 } 9016 if resTmp == nil { 9017 return graphql.Null 9018 } 9019 res := resTmp.(forms.AddressForm) 9020 fc.Result = res 9021 return ec.marshalOCommerce_Cart_AddressForm2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, field.Selections, res) 9022 } 9023 9024 func (ec *executionContext) fieldContext_Commerce_Cart_BillingAddressForm_formData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9025 fc = &graphql.FieldContext{ 9026 Object: "Commerce_Cart_BillingAddressForm", 9027 Field: field, 9028 IsMethod: false, 9029 IsResolver: false, 9030 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9031 switch field.Name { 9032 case "vat": 9033 return ec.fieldContext_Commerce_Cart_AddressForm_vat(ctx, field) 9034 case "firstname": 9035 return ec.fieldContext_Commerce_Cart_AddressForm_firstname(ctx, field) 9036 case "lastname": 9037 return ec.fieldContext_Commerce_Cart_AddressForm_lastname(ctx, field) 9038 case "middleName": 9039 return ec.fieldContext_Commerce_Cart_AddressForm_middleName(ctx, field) 9040 case "title": 9041 return ec.fieldContext_Commerce_Cart_AddressForm_title(ctx, field) 9042 case "salutation": 9043 return ec.fieldContext_Commerce_Cart_AddressForm_salutation(ctx, field) 9044 case "street": 9045 return ec.fieldContext_Commerce_Cart_AddressForm_street(ctx, field) 9046 case "streetNr": 9047 return ec.fieldContext_Commerce_Cart_AddressForm_streetNr(ctx, field) 9048 case "addressLine1": 9049 return ec.fieldContext_Commerce_Cart_AddressForm_addressLine1(ctx, field) 9050 case "addressLine2": 9051 return ec.fieldContext_Commerce_Cart_AddressForm_addressLine2(ctx, field) 9052 case "company": 9053 return ec.fieldContext_Commerce_Cart_AddressForm_company(ctx, field) 9054 case "city": 9055 return ec.fieldContext_Commerce_Cart_AddressForm_city(ctx, field) 9056 case "postCode": 9057 return ec.fieldContext_Commerce_Cart_AddressForm_postCode(ctx, field) 9058 case "state": 9059 return ec.fieldContext_Commerce_Cart_AddressForm_state(ctx, field) 9060 case "regionCode": 9061 return ec.fieldContext_Commerce_Cart_AddressForm_regionCode(ctx, field) 9062 case "country": 9063 return ec.fieldContext_Commerce_Cart_AddressForm_country(ctx, field) 9064 case "countryCode": 9065 return ec.fieldContext_Commerce_Cart_AddressForm_countryCode(ctx, field) 9066 case "phoneNumber": 9067 return ec.fieldContext_Commerce_Cart_AddressForm_phoneNumber(ctx, field) 9068 case "email": 9069 return ec.fieldContext_Commerce_Cart_AddressForm_email(ctx, field) 9070 } 9071 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AddressForm", field.Name) 9072 }, 9073 } 9074 return fc, nil 9075 } 9076 9077 func (ec *executionContext) _Commerce_Cart_BillingAddressForm_validationInfo(ctx context.Context, field graphql.CollectedField, obj *dto.BillingAddressForm) (ret graphql.Marshaler) { 9078 fc, err := ec.fieldContext_Commerce_Cart_BillingAddressForm_validationInfo(ctx, field) 9079 if err != nil { 9080 return graphql.Null 9081 } 9082 ctx = graphql.WithFieldContext(ctx, fc) 9083 defer func() { 9084 if r := recover(); r != nil { 9085 ec.Error(ctx, ec.Recover(ctx, r)) 9086 ret = graphql.Null 9087 } 9088 }() 9089 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9090 ctx = rctx // use context from middleware stack in children 9091 return obj.ValidationInfo, nil 9092 }) 9093 if err != nil { 9094 ec.Error(ctx, err) 9095 return graphql.Null 9096 } 9097 if resTmp == nil { 9098 return graphql.Null 9099 } 9100 res := resTmp.(dto.ValidationInfo) 9101 fc.Result = res 9102 return ec.marshalOCommerce_Cart_Form_ValidationInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐValidationInfo(ctx, field.Selections, res) 9103 } 9104 9105 func (ec *executionContext) fieldContext_Commerce_Cart_BillingAddressForm_validationInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9106 fc = &graphql.FieldContext{ 9107 Object: "Commerce_Cart_BillingAddressForm", 9108 Field: field, 9109 IsMethod: false, 9110 IsResolver: false, 9111 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9112 switch field.Name { 9113 case "fieldErrors": 9114 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx, field) 9115 case "generalErrors": 9116 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_generalErrors(ctx, field) 9117 } 9118 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Form_ValidationInfo", field.Name) 9119 }, 9120 } 9121 return fc, nil 9122 } 9123 9124 func (ec *executionContext) _Commerce_Cart_BillingAddressForm_processed(ctx context.Context, field graphql.CollectedField, obj *dto.BillingAddressForm) (ret graphql.Marshaler) { 9125 fc, err := ec.fieldContext_Commerce_Cart_BillingAddressForm_processed(ctx, field) 9126 if err != nil { 9127 return graphql.Null 9128 } 9129 ctx = graphql.WithFieldContext(ctx, fc) 9130 defer func() { 9131 if r := recover(); r != nil { 9132 ec.Error(ctx, ec.Recover(ctx, r)) 9133 ret = graphql.Null 9134 } 9135 }() 9136 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9137 ctx = rctx // use context from middleware stack in children 9138 return obj.Processed, nil 9139 }) 9140 if err != nil { 9141 ec.Error(ctx, err) 9142 return graphql.Null 9143 } 9144 if resTmp == nil { 9145 return graphql.Null 9146 } 9147 res := resTmp.(bool) 9148 fc.Result = res 9149 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 9150 } 9151 9152 func (ec *executionContext) fieldContext_Commerce_Cart_BillingAddressForm_processed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9153 fc = &graphql.FieldContext{ 9154 Object: "Commerce_Cart_BillingAddressForm", 9155 Field: field, 9156 IsMethod: false, 9157 IsResolver: false, 9158 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9159 return nil, errors.New("field of type Boolean does not have child fields") 9160 }, 9161 } 9162 return fc, nil 9163 } 9164 9165 func (ec *executionContext) _Commerce_Cart_Cart_id(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9166 fc, err := ec.fieldContext_Commerce_Cart_Cart_id(ctx, field) 9167 if err != nil { 9168 return graphql.Null 9169 } 9170 ctx = graphql.WithFieldContext(ctx, fc) 9171 defer func() { 9172 if r := recover(); r != nil { 9173 ec.Error(ctx, ec.Recover(ctx, r)) 9174 ret = graphql.Null 9175 } 9176 }() 9177 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9178 ctx = rctx // use context from middleware stack in children 9179 return obj.ID, nil 9180 }) 9181 if err != nil { 9182 ec.Error(ctx, err) 9183 return graphql.Null 9184 } 9185 if resTmp == nil { 9186 if !graphql.HasFieldError(ctx, fc) { 9187 ec.Errorf(ctx, "must not be null") 9188 } 9189 return graphql.Null 9190 } 9191 res := resTmp.(string) 9192 fc.Result = res 9193 return ec.marshalNID2string(ctx, field.Selections, res) 9194 } 9195 9196 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9197 fc = &graphql.FieldContext{ 9198 Object: "Commerce_Cart_Cart", 9199 Field: field, 9200 IsMethod: false, 9201 IsResolver: false, 9202 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9203 return nil, errors.New("field of type ID does not have child fields") 9204 }, 9205 } 9206 return fc, nil 9207 } 9208 9209 func (ec *executionContext) _Commerce_Cart_Cart_entityID(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9210 fc, err := ec.fieldContext_Commerce_Cart_Cart_entityID(ctx, field) 9211 if err != nil { 9212 return graphql.Null 9213 } 9214 ctx = graphql.WithFieldContext(ctx, fc) 9215 defer func() { 9216 if r := recover(); r != nil { 9217 ec.Error(ctx, ec.Recover(ctx, r)) 9218 ret = graphql.Null 9219 } 9220 }() 9221 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9222 ctx = rctx // use context from middleware stack in children 9223 return obj.EntityID, nil 9224 }) 9225 if err != nil { 9226 ec.Error(ctx, err) 9227 return graphql.Null 9228 } 9229 if resTmp == nil { 9230 if !graphql.HasFieldError(ctx, fc) { 9231 ec.Errorf(ctx, "must not be null") 9232 } 9233 return graphql.Null 9234 } 9235 res := resTmp.(string) 9236 fc.Result = res 9237 return ec.marshalNString2string(ctx, field.Selections, res) 9238 } 9239 9240 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9241 fc = &graphql.FieldContext{ 9242 Object: "Commerce_Cart_Cart", 9243 Field: field, 9244 IsMethod: false, 9245 IsResolver: false, 9246 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9247 return nil, errors.New("field of type String does not have child fields") 9248 }, 9249 } 9250 return fc, nil 9251 } 9252 9253 func (ec *executionContext) _Commerce_Cart_Cart_billingAddress(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9254 fc, err := ec.fieldContext_Commerce_Cart_Cart_billingAddress(ctx, field) 9255 if err != nil { 9256 return graphql.Null 9257 } 9258 ctx = graphql.WithFieldContext(ctx, fc) 9259 defer func() { 9260 if r := recover(); r != nil { 9261 ec.Error(ctx, ec.Recover(ctx, r)) 9262 ret = graphql.Null 9263 } 9264 }() 9265 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9266 ctx = rctx // use context from middleware stack in children 9267 return obj.BillingAddress, nil 9268 }) 9269 if err != nil { 9270 ec.Error(ctx, err) 9271 return graphql.Null 9272 } 9273 if resTmp == nil { 9274 return graphql.Null 9275 } 9276 res := resTmp.(*cart.Address) 9277 fc.Result = res 9278 return ec.marshalOCommerce_Cart_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAddress(ctx, field.Selections, res) 9279 } 9280 9281 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9282 fc = &graphql.FieldContext{ 9283 Object: "Commerce_Cart_Cart", 9284 Field: field, 9285 IsMethod: false, 9286 IsResolver: false, 9287 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9288 switch field.Name { 9289 case "vat": 9290 return ec.fieldContext_Commerce_Cart_Address_vat(ctx, field) 9291 case "firstname": 9292 return ec.fieldContext_Commerce_Cart_Address_firstname(ctx, field) 9293 case "lastname": 9294 return ec.fieldContext_Commerce_Cart_Address_lastname(ctx, field) 9295 case "middleName": 9296 return ec.fieldContext_Commerce_Cart_Address_middleName(ctx, field) 9297 case "title": 9298 return ec.fieldContext_Commerce_Cart_Address_title(ctx, field) 9299 case "salutation": 9300 return ec.fieldContext_Commerce_Cart_Address_salutation(ctx, field) 9301 case "street": 9302 return ec.fieldContext_Commerce_Cart_Address_street(ctx, field) 9303 case "streetNr": 9304 return ec.fieldContext_Commerce_Cart_Address_streetNr(ctx, field) 9305 case "additionalAddressLines": 9306 return ec.fieldContext_Commerce_Cart_Address_additionalAddressLines(ctx, field) 9307 case "company": 9308 return ec.fieldContext_Commerce_Cart_Address_company(ctx, field) 9309 case "city": 9310 return ec.fieldContext_Commerce_Cart_Address_city(ctx, field) 9311 case "postCode": 9312 return ec.fieldContext_Commerce_Cart_Address_postCode(ctx, field) 9313 case "state": 9314 return ec.fieldContext_Commerce_Cart_Address_state(ctx, field) 9315 case "regionCode": 9316 return ec.fieldContext_Commerce_Cart_Address_regionCode(ctx, field) 9317 case "country": 9318 return ec.fieldContext_Commerce_Cart_Address_country(ctx, field) 9319 case "countryCode": 9320 return ec.fieldContext_Commerce_Cart_Address_countryCode(ctx, field) 9321 case "telephone": 9322 return ec.fieldContext_Commerce_Cart_Address_telephone(ctx, field) 9323 case "email": 9324 return ec.fieldContext_Commerce_Cart_Address_email(ctx, field) 9325 } 9326 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Address", field.Name) 9327 }, 9328 } 9329 return fc, nil 9330 } 9331 9332 func (ec *executionContext) _Commerce_Cart_Cart_purchaser(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9333 fc, err := ec.fieldContext_Commerce_Cart_Cart_purchaser(ctx, field) 9334 if err != nil { 9335 return graphql.Null 9336 } 9337 ctx = graphql.WithFieldContext(ctx, fc) 9338 defer func() { 9339 if r := recover(); r != nil { 9340 ec.Error(ctx, ec.Recover(ctx, r)) 9341 ret = graphql.Null 9342 } 9343 }() 9344 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9345 ctx = rctx // use context from middleware stack in children 9346 return obj.Purchaser, nil 9347 }) 9348 if err != nil { 9349 ec.Error(ctx, err) 9350 return graphql.Null 9351 } 9352 if resTmp == nil { 9353 return graphql.Null 9354 } 9355 res := resTmp.(*cart.Person) 9356 fc.Result = res 9357 return ec.marshalOCommerce_Cart_Person2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPerson(ctx, field.Selections, res) 9358 } 9359 9360 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_purchaser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9361 fc = &graphql.FieldContext{ 9362 Object: "Commerce_Cart_Cart", 9363 Field: field, 9364 IsMethod: false, 9365 IsResolver: false, 9366 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9367 switch field.Name { 9368 case "address": 9369 return ec.fieldContext_Commerce_Cart_Person_address(ctx, field) 9370 case "personalDetails": 9371 return ec.fieldContext_Commerce_Cart_Person_personalDetails(ctx, field) 9372 case "existingCustomerData": 9373 return ec.fieldContext_Commerce_Cart_Person_existingCustomerData(ctx, field) 9374 } 9375 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Person", field.Name) 9376 }, 9377 } 9378 return fc, nil 9379 } 9380 9381 func (ec *executionContext) _Commerce_Cart_Cart_deliveries(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9382 fc, err := ec.fieldContext_Commerce_Cart_Cart_deliveries(ctx, field) 9383 if err != nil { 9384 return graphql.Null 9385 } 9386 ctx = graphql.WithFieldContext(ctx, fc) 9387 defer func() { 9388 if r := recover(); r != nil { 9389 ec.Error(ctx, ec.Recover(ctx, r)) 9390 ret = graphql.Null 9391 } 9392 }() 9393 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9394 ctx = rctx // use context from middleware stack in children 9395 return obj.Deliveries, nil 9396 }) 9397 if err != nil { 9398 ec.Error(ctx, err) 9399 return graphql.Null 9400 } 9401 if resTmp == nil { 9402 return graphql.Null 9403 } 9404 res := resTmp.([]cart.Delivery) 9405 fc.Result = res 9406 return ec.marshalOCommerce_Cart_Delivery2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryᚄ(ctx, field.Selections, res) 9407 } 9408 9409 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_deliveries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9410 fc = &graphql.FieldContext{ 9411 Object: "Commerce_Cart_Cart", 9412 Field: field, 9413 IsMethod: false, 9414 IsResolver: false, 9415 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9416 switch field.Name { 9417 case "deliveryInfo": 9418 return ec.fieldContext_Commerce_Cart_Delivery_deliveryInfo(ctx, field) 9419 case "cartitems": 9420 return ec.fieldContext_Commerce_Cart_Delivery_cartitems(ctx, field) 9421 case "shippingItem": 9422 return ec.fieldContext_Commerce_Cart_Delivery_shippingItem(ctx, field) 9423 case "subTotalGross": 9424 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGross(ctx, field) 9425 case "grandTotal": 9426 return ec.fieldContext_Commerce_Cart_Delivery_grandTotal(ctx, field) 9427 case "sumTotalTaxAmount": 9428 return ec.fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field) 9429 case "subTotalNet": 9430 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNet(ctx, field) 9431 case "totalDiscountAmount": 9432 return ec.fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(ctx, field) 9433 case "nonItemRelatedDiscountAmount": 9434 return ec.fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field) 9435 case "itemRelatedDiscountAmount": 9436 return ec.fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field) 9437 case "subTotalGrossWithDiscounts": 9438 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field) 9439 case "subTotalNetWithDiscounts": 9440 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field) 9441 case "hasItems": 9442 return ec.fieldContext_Commerce_Cart_Delivery_hasItems(ctx, field) 9443 } 9444 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Delivery", field.Name) 9445 }, 9446 } 9447 return fc, nil 9448 } 9449 9450 func (ec *executionContext) _Commerce_Cart_Cart_additionalData(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9451 fc, err := ec.fieldContext_Commerce_Cart_Cart_additionalData(ctx, field) 9452 if err != nil { 9453 return graphql.Null 9454 } 9455 ctx = graphql.WithFieldContext(ctx, fc) 9456 defer func() { 9457 if r := recover(); r != nil { 9458 ec.Error(ctx, ec.Recover(ctx, r)) 9459 ret = graphql.Null 9460 } 9461 }() 9462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9463 ctx = rctx // use context from middleware stack in children 9464 return obj.AdditionalData, nil 9465 }) 9466 if err != nil { 9467 ec.Error(ctx, err) 9468 return graphql.Null 9469 } 9470 if resTmp == nil { 9471 if !graphql.HasFieldError(ctx, fc) { 9472 ec.Errorf(ctx, "must not be null") 9473 } 9474 return graphql.Null 9475 } 9476 res := resTmp.(cart.AdditionalData) 9477 fc.Result = res 9478 return ec.marshalNCommerce_Cart_AdditionalData2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAdditionalData(ctx, field.Selections, res) 9479 } 9480 9481 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_additionalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9482 fc = &graphql.FieldContext{ 9483 Object: "Commerce_Cart_Cart", 9484 Field: field, 9485 IsMethod: false, 9486 IsResolver: false, 9487 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9488 switch field.Name { 9489 case "customAttributes": 9490 return ec.fieldContext_Commerce_Cart_AdditionalData_customAttributes(ctx, field) 9491 case "reservedOrderID": 9492 return ec.fieldContext_Commerce_Cart_AdditionalData_reservedOrderID(ctx, field) 9493 } 9494 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AdditionalData", field.Name) 9495 }, 9496 } 9497 return fc, nil 9498 } 9499 9500 func (ec *executionContext) _Commerce_Cart_Cart_paymentSelection(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9501 fc, err := ec.fieldContext_Commerce_Cart_Cart_paymentSelection(ctx, field) 9502 if err != nil { 9503 return graphql.Null 9504 } 9505 ctx = graphql.WithFieldContext(ctx, fc) 9506 defer func() { 9507 if r := recover(); r != nil { 9508 ec.Error(ctx, ec.Recover(ctx, r)) 9509 ret = graphql.Null 9510 } 9511 }() 9512 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9513 ctx = rctx // use context from middleware stack in children 9514 return obj.PaymentSelection, nil 9515 }) 9516 if err != nil { 9517 ec.Error(ctx, err) 9518 return graphql.Null 9519 } 9520 if resTmp == nil { 9521 return graphql.Null 9522 } 9523 res := resTmp.(cart.PaymentSelection) 9524 fc.Result = res 9525 return ec.marshalOCommerce_Cart_PaymentSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPaymentSelection(ctx, field.Selections, res) 9526 } 9527 9528 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_paymentSelection(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9529 fc = &graphql.FieldContext{ 9530 Object: "Commerce_Cart_Cart", 9531 Field: field, 9532 IsMethod: false, 9533 IsResolver: false, 9534 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9535 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 9536 }, 9537 } 9538 return fc, nil 9539 } 9540 9541 func (ec *executionContext) _Commerce_Cart_Cart_belongsToAuthenticatedUser(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9542 fc, err := ec.fieldContext_Commerce_Cart_Cart_belongsToAuthenticatedUser(ctx, field) 9543 if err != nil { 9544 return graphql.Null 9545 } 9546 ctx = graphql.WithFieldContext(ctx, fc) 9547 defer func() { 9548 if r := recover(); r != nil { 9549 ec.Error(ctx, ec.Recover(ctx, r)) 9550 ret = graphql.Null 9551 } 9552 }() 9553 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9554 ctx = rctx // use context from middleware stack in children 9555 return obj.BelongsToAuthenticatedUser, nil 9556 }) 9557 if err != nil { 9558 ec.Error(ctx, err) 9559 return graphql.Null 9560 } 9561 if resTmp == nil { 9562 if !graphql.HasFieldError(ctx, fc) { 9563 ec.Errorf(ctx, "must not be null") 9564 } 9565 return graphql.Null 9566 } 9567 res := resTmp.(bool) 9568 fc.Result = res 9569 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 9570 } 9571 9572 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_belongsToAuthenticatedUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9573 fc = &graphql.FieldContext{ 9574 Object: "Commerce_Cart_Cart", 9575 Field: field, 9576 IsMethod: false, 9577 IsResolver: false, 9578 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9579 return nil, errors.New("field of type Boolean does not have child fields") 9580 }, 9581 } 9582 return fc, nil 9583 } 9584 9585 func (ec *executionContext) _Commerce_Cart_Cart_authenticatedUserID(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9586 fc, err := ec.fieldContext_Commerce_Cart_Cart_authenticatedUserID(ctx, field) 9587 if err != nil { 9588 return graphql.Null 9589 } 9590 ctx = graphql.WithFieldContext(ctx, fc) 9591 defer func() { 9592 if r := recover(); r != nil { 9593 ec.Error(ctx, ec.Recover(ctx, r)) 9594 ret = graphql.Null 9595 } 9596 }() 9597 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9598 ctx = rctx // use context from middleware stack in children 9599 return obj.AuthenticatedUserID, nil 9600 }) 9601 if err != nil { 9602 ec.Error(ctx, err) 9603 return graphql.Null 9604 } 9605 if resTmp == nil { 9606 if !graphql.HasFieldError(ctx, fc) { 9607 ec.Errorf(ctx, "must not be null") 9608 } 9609 return graphql.Null 9610 } 9611 res := resTmp.(string) 9612 fc.Result = res 9613 return ec.marshalNString2string(ctx, field.Selections, res) 9614 } 9615 9616 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_authenticatedUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9617 fc = &graphql.FieldContext{ 9618 Object: "Commerce_Cart_Cart", 9619 Field: field, 9620 IsMethod: false, 9621 IsResolver: false, 9622 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9623 return nil, errors.New("field of type String does not have child fields") 9624 }, 9625 } 9626 return fc, nil 9627 } 9628 9629 func (ec *executionContext) _Commerce_Cart_Cart_appliedCouponCodes(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9630 fc, err := ec.fieldContext_Commerce_Cart_Cart_appliedCouponCodes(ctx, field) 9631 if err != nil { 9632 return graphql.Null 9633 } 9634 ctx = graphql.WithFieldContext(ctx, fc) 9635 defer func() { 9636 if r := recover(); r != nil { 9637 ec.Error(ctx, ec.Recover(ctx, r)) 9638 ret = graphql.Null 9639 } 9640 }() 9641 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9642 ctx = rctx // use context from middleware stack in children 9643 return obj.AppliedCouponCodes, nil 9644 }) 9645 if err != nil { 9646 ec.Error(ctx, err) 9647 return graphql.Null 9648 } 9649 if resTmp == nil { 9650 return graphql.Null 9651 } 9652 res := resTmp.([]cart.CouponCode) 9653 fc.Result = res 9654 return ec.marshalOCommerce_Cart_CouponCode2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCouponCodeᚄ(ctx, field.Selections, res) 9655 } 9656 9657 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_appliedCouponCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9658 fc = &graphql.FieldContext{ 9659 Object: "Commerce_Cart_Cart", 9660 Field: field, 9661 IsMethod: false, 9662 IsResolver: false, 9663 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9664 switch field.Name { 9665 case "code": 9666 return ec.fieldContext_Commerce_Cart_CouponCode_code(ctx, field) 9667 } 9668 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_CouponCode", field.Name) 9669 }, 9670 } 9671 return fc, nil 9672 } 9673 9674 func (ec *executionContext) _Commerce_Cart_Cart_defaultCurrency(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9675 fc, err := ec.fieldContext_Commerce_Cart_Cart_defaultCurrency(ctx, field) 9676 if err != nil { 9677 return graphql.Null 9678 } 9679 ctx = graphql.WithFieldContext(ctx, fc) 9680 defer func() { 9681 if r := recover(); r != nil { 9682 ec.Error(ctx, ec.Recover(ctx, r)) 9683 ret = graphql.Null 9684 } 9685 }() 9686 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9687 ctx = rctx // use context from middleware stack in children 9688 return obj.DefaultCurrency, nil 9689 }) 9690 if err != nil { 9691 ec.Error(ctx, err) 9692 return graphql.Null 9693 } 9694 if resTmp == nil { 9695 if !graphql.HasFieldError(ctx, fc) { 9696 ec.Errorf(ctx, "must not be null") 9697 } 9698 return graphql.Null 9699 } 9700 res := resTmp.(string) 9701 fc.Result = res 9702 return ec.marshalNString2string(ctx, field.Selections, res) 9703 } 9704 9705 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_defaultCurrency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9706 fc = &graphql.FieldContext{ 9707 Object: "Commerce_Cart_Cart", 9708 Field: field, 9709 IsMethod: false, 9710 IsResolver: false, 9711 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9712 return nil, errors.New("field of type String does not have child fields") 9713 }, 9714 } 9715 return fc, nil 9716 } 9717 9718 func (ec *executionContext) _Commerce_Cart_Cart_totalitems(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9719 fc, err := ec.fieldContext_Commerce_Cart_Cart_totalitems(ctx, field) 9720 if err != nil { 9721 return graphql.Null 9722 } 9723 ctx = graphql.WithFieldContext(ctx, fc) 9724 defer func() { 9725 if r := recover(); r != nil { 9726 ec.Error(ctx, ec.Recover(ctx, r)) 9727 ret = graphql.Null 9728 } 9729 }() 9730 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9731 ctx = rctx // use context from middleware stack in children 9732 return obj.Totalitems, nil 9733 }) 9734 if err != nil { 9735 ec.Error(ctx, err) 9736 return graphql.Null 9737 } 9738 if resTmp == nil { 9739 return graphql.Null 9740 } 9741 res := resTmp.([]cart.Totalitem) 9742 fc.Result = res 9743 return ec.marshalOCommerce_Cart_Totalitem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTotalitemᚄ(ctx, field.Selections, res) 9744 } 9745 9746 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_totalitems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9747 fc = &graphql.FieldContext{ 9748 Object: "Commerce_Cart_Cart", 9749 Field: field, 9750 IsMethod: false, 9751 IsResolver: false, 9752 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9753 switch field.Name { 9754 case "code": 9755 return ec.fieldContext_Commerce_Cart_Totalitem_code(ctx, field) 9756 case "title": 9757 return ec.fieldContext_Commerce_Cart_Totalitem_title(ctx, field) 9758 case "price": 9759 return ec.fieldContext_Commerce_Cart_Totalitem_price(ctx, field) 9760 case "type": 9761 return ec.fieldContext_Commerce_Cart_Totalitem_type(ctx, field) 9762 } 9763 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Totalitem", field.Name) 9764 }, 9765 } 9766 return fc, nil 9767 } 9768 9769 func (ec *executionContext) _Commerce_Cart_Cart_itemCount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9770 fc, err := ec.fieldContext_Commerce_Cart_Cart_itemCount(ctx, field) 9771 if err != nil { 9772 return graphql.Null 9773 } 9774 ctx = graphql.WithFieldContext(ctx, fc) 9775 defer func() { 9776 if r := recover(); r != nil { 9777 ec.Error(ctx, ec.Recover(ctx, r)) 9778 ret = graphql.Null 9779 } 9780 }() 9781 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9782 ctx = rctx // use context from middleware stack in children 9783 return obj.ItemCount(), nil 9784 }) 9785 if err != nil { 9786 ec.Error(ctx, err) 9787 return graphql.Null 9788 } 9789 if resTmp == nil { 9790 if !graphql.HasFieldError(ctx, fc) { 9791 ec.Errorf(ctx, "must not be null") 9792 } 9793 return graphql.Null 9794 } 9795 res := resTmp.(int) 9796 fc.Result = res 9797 return ec.marshalNInt2int(ctx, field.Selections, res) 9798 } 9799 9800 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_itemCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9801 fc = &graphql.FieldContext{ 9802 Object: "Commerce_Cart_Cart", 9803 Field: field, 9804 IsMethod: true, 9805 IsResolver: false, 9806 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9807 return nil, errors.New("field of type Int does not have child fields") 9808 }, 9809 } 9810 return fc, nil 9811 } 9812 9813 func (ec *executionContext) _Commerce_Cart_Cart_productCount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9814 fc, err := ec.fieldContext_Commerce_Cart_Cart_productCount(ctx, field) 9815 if err != nil { 9816 return graphql.Null 9817 } 9818 ctx = graphql.WithFieldContext(ctx, fc) 9819 defer func() { 9820 if r := recover(); r != nil { 9821 ec.Error(ctx, ec.Recover(ctx, r)) 9822 ret = graphql.Null 9823 } 9824 }() 9825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9826 ctx = rctx // use context from middleware stack in children 9827 return obj.ProductCount(), nil 9828 }) 9829 if err != nil { 9830 ec.Error(ctx, err) 9831 return graphql.Null 9832 } 9833 if resTmp == nil { 9834 if !graphql.HasFieldError(ctx, fc) { 9835 ec.Errorf(ctx, "must not be null") 9836 } 9837 return graphql.Null 9838 } 9839 res := resTmp.(int) 9840 fc.Result = res 9841 return ec.marshalNInt2int(ctx, field.Selections, res) 9842 } 9843 9844 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_productCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9845 fc = &graphql.FieldContext{ 9846 Object: "Commerce_Cart_Cart", 9847 Field: field, 9848 IsMethod: true, 9849 IsResolver: false, 9850 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9851 return nil, errors.New("field of type Int does not have child fields") 9852 }, 9853 } 9854 return fc, nil 9855 } 9856 9857 func (ec *executionContext) _Commerce_Cart_Cart_isPaymentSelected(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9858 fc, err := ec.fieldContext_Commerce_Cart_Cart_isPaymentSelected(ctx, field) 9859 if err != nil { 9860 return graphql.Null 9861 } 9862 ctx = graphql.WithFieldContext(ctx, fc) 9863 defer func() { 9864 if r := recover(); r != nil { 9865 ec.Error(ctx, ec.Recover(ctx, r)) 9866 ret = graphql.Null 9867 } 9868 }() 9869 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9870 ctx = rctx // use context from middleware stack in children 9871 return obj.IsPaymentSelected(), nil 9872 }) 9873 if err != nil { 9874 ec.Error(ctx, err) 9875 return graphql.Null 9876 } 9877 if resTmp == nil { 9878 if !graphql.HasFieldError(ctx, fc) { 9879 ec.Errorf(ctx, "must not be null") 9880 } 9881 return graphql.Null 9882 } 9883 res := resTmp.(bool) 9884 fc.Result = res 9885 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 9886 } 9887 9888 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_isPaymentSelected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9889 fc = &graphql.FieldContext{ 9890 Object: "Commerce_Cart_Cart", 9891 Field: field, 9892 IsMethod: true, 9893 IsResolver: false, 9894 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9895 return nil, errors.New("field of type Boolean does not have child fields") 9896 }, 9897 } 9898 return fc, nil 9899 } 9900 9901 func (ec *executionContext) _Commerce_Cart_Cart_grandTotal(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9902 fc, err := ec.fieldContext_Commerce_Cart_Cart_grandTotal(ctx, field) 9903 if err != nil { 9904 return graphql.Null 9905 } 9906 ctx = graphql.WithFieldContext(ctx, fc) 9907 defer func() { 9908 if r := recover(); r != nil { 9909 ec.Error(ctx, ec.Recover(ctx, r)) 9910 ret = graphql.Null 9911 } 9912 }() 9913 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9914 ctx = rctx // use context from middleware stack in children 9915 return obj.GrandTotal, nil 9916 }) 9917 if err != nil { 9918 ec.Error(ctx, err) 9919 return graphql.Null 9920 } 9921 if resTmp == nil { 9922 if !graphql.HasFieldError(ctx, fc) { 9923 ec.Errorf(ctx, "must not be null") 9924 } 9925 return graphql.Null 9926 } 9927 res := resTmp.(domain.Price) 9928 fc.Result = res 9929 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 9930 } 9931 9932 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_grandTotal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9933 fc = &graphql.FieldContext{ 9934 Object: "Commerce_Cart_Cart", 9935 Field: field, 9936 IsMethod: false, 9937 IsResolver: false, 9938 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9939 switch field.Name { 9940 case "amount": 9941 return ec.fieldContext_Commerce_Price_amount(ctx, field) 9942 case "currency": 9943 return ec.fieldContext_Commerce_Price_currency(ctx, field) 9944 } 9945 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 9946 }, 9947 } 9948 return fc, nil 9949 } 9950 9951 func (ec *executionContext) _Commerce_Cart_Cart_sumTotalTaxAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 9952 fc, err := ec.fieldContext_Commerce_Cart_Cart_sumTotalTaxAmount(ctx, field) 9953 if err != nil { 9954 return graphql.Null 9955 } 9956 ctx = graphql.WithFieldContext(ctx, fc) 9957 defer func() { 9958 if r := recover(); r != nil { 9959 ec.Error(ctx, ec.Recover(ctx, r)) 9960 ret = graphql.Null 9961 } 9962 }() 9963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 9964 ctx = rctx // use context from middleware stack in children 9965 return obj.SumTotalTaxAmount(), nil 9966 }) 9967 if err != nil { 9968 ec.Error(ctx, err) 9969 return graphql.Null 9970 } 9971 if resTmp == nil { 9972 if !graphql.HasFieldError(ctx, fc) { 9973 ec.Errorf(ctx, "must not be null") 9974 } 9975 return graphql.Null 9976 } 9977 res := resTmp.(domain.Price) 9978 fc.Result = res 9979 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 9980 } 9981 9982 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_sumTotalTaxAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 9983 fc = &graphql.FieldContext{ 9984 Object: "Commerce_Cart_Cart", 9985 Field: field, 9986 IsMethod: true, 9987 IsResolver: false, 9988 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 9989 switch field.Name { 9990 case "amount": 9991 return ec.fieldContext_Commerce_Price_amount(ctx, field) 9992 case "currency": 9993 return ec.fieldContext_Commerce_Price_currency(ctx, field) 9994 } 9995 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 9996 }, 9997 } 9998 return fc, nil 9999 } 10000 10001 func (ec *executionContext) _Commerce_Cart_Cart_subTotalNet(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10002 fc, err := ec.fieldContext_Commerce_Cart_Cart_subTotalNet(ctx, field) 10003 if err != nil { 10004 return graphql.Null 10005 } 10006 ctx = graphql.WithFieldContext(ctx, fc) 10007 defer func() { 10008 if r := recover(); r != nil { 10009 ec.Error(ctx, ec.Recover(ctx, r)) 10010 ret = graphql.Null 10011 } 10012 }() 10013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10014 ctx = rctx // use context from middleware stack in children 10015 return obj.SubTotalNet, nil 10016 }) 10017 if err != nil { 10018 ec.Error(ctx, err) 10019 return graphql.Null 10020 } 10021 if resTmp == nil { 10022 if !graphql.HasFieldError(ctx, fc) { 10023 ec.Errorf(ctx, "must not be null") 10024 } 10025 return graphql.Null 10026 } 10027 res := resTmp.(domain.Price) 10028 fc.Result = res 10029 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10030 } 10031 10032 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_subTotalNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10033 fc = &graphql.FieldContext{ 10034 Object: "Commerce_Cart_Cart", 10035 Field: field, 10036 IsMethod: false, 10037 IsResolver: false, 10038 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10039 switch field.Name { 10040 case "amount": 10041 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10042 case "currency": 10043 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10044 } 10045 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10046 }, 10047 } 10048 return fc, nil 10049 } 10050 10051 func (ec *executionContext) _Commerce_Cart_Cart_appliedGiftCards(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10052 fc, err := ec.fieldContext_Commerce_Cart_Cart_appliedGiftCards(ctx, field) 10053 if err != nil { 10054 return graphql.Null 10055 } 10056 ctx = graphql.WithFieldContext(ctx, fc) 10057 defer func() { 10058 if r := recover(); r != nil { 10059 ec.Error(ctx, ec.Recover(ctx, r)) 10060 ret = graphql.Null 10061 } 10062 }() 10063 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10064 ctx = rctx // use context from middleware stack in children 10065 return obj.AppliedGiftCards, nil 10066 }) 10067 if err != nil { 10068 ec.Error(ctx, err) 10069 return graphql.Null 10070 } 10071 if resTmp == nil { 10072 return graphql.Null 10073 } 10074 res := resTmp.([]cart.AppliedGiftCard) 10075 fc.Result = res 10076 return ec.marshalOCommerce_Cart_AppliedGiftCard2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedGiftCardᚄ(ctx, field.Selections, res) 10077 } 10078 10079 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_appliedGiftCards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10080 fc = &graphql.FieldContext{ 10081 Object: "Commerce_Cart_Cart", 10082 Field: field, 10083 IsMethod: false, 10084 IsResolver: false, 10085 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10086 switch field.Name { 10087 case "code": 10088 return ec.fieldContext_Commerce_Cart_AppliedGiftCard_code(ctx, field) 10089 case "applied": 10090 return ec.fieldContext_Commerce_Cart_AppliedGiftCard_applied(ctx, field) 10091 case "remaining": 10092 return ec.fieldContext_Commerce_Cart_AppliedGiftCard_remaining(ctx, field) 10093 case "hasRemaining": 10094 return ec.fieldContext_Commerce_Cart_AppliedGiftCard_hasRemaining(ctx, field) 10095 } 10096 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedGiftCard", field.Name) 10097 }, 10098 } 10099 return fc, nil 10100 } 10101 10102 func (ec *executionContext) _Commerce_Cart_Cart_getDeliveryByCode(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10103 fc, err := ec.fieldContext_Commerce_Cart_Cart_getDeliveryByCode(ctx, field) 10104 if err != nil { 10105 return graphql.Null 10106 } 10107 ctx = graphql.WithFieldContext(ctx, fc) 10108 defer func() { 10109 if r := recover(); r != nil { 10110 ec.Error(ctx, ec.Recover(ctx, r)) 10111 ret = graphql.Null 10112 } 10113 }() 10114 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10115 ctx = rctx // use context from middleware stack in children 10116 return ec.resolvers.Commerce_Cart_Cart().GetDeliveryByCode(rctx, obj, fc.Args["deliveryCode"].(string)) 10117 }) 10118 if err != nil { 10119 ec.Error(ctx, err) 10120 return graphql.Null 10121 } 10122 if resTmp == nil { 10123 return graphql.Null 10124 } 10125 res := resTmp.(*cart.Delivery) 10126 fc.Result = res 10127 return ec.marshalOCommerce_Cart_Delivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx, field.Selections, res) 10128 } 10129 10130 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getDeliveryByCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10131 fc = &graphql.FieldContext{ 10132 Object: "Commerce_Cart_Cart", 10133 Field: field, 10134 IsMethod: true, 10135 IsResolver: true, 10136 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10137 switch field.Name { 10138 case "deliveryInfo": 10139 return ec.fieldContext_Commerce_Cart_Delivery_deliveryInfo(ctx, field) 10140 case "cartitems": 10141 return ec.fieldContext_Commerce_Cart_Delivery_cartitems(ctx, field) 10142 case "shippingItem": 10143 return ec.fieldContext_Commerce_Cart_Delivery_shippingItem(ctx, field) 10144 case "subTotalGross": 10145 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGross(ctx, field) 10146 case "grandTotal": 10147 return ec.fieldContext_Commerce_Cart_Delivery_grandTotal(ctx, field) 10148 case "sumTotalTaxAmount": 10149 return ec.fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field) 10150 case "subTotalNet": 10151 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNet(ctx, field) 10152 case "totalDiscountAmount": 10153 return ec.fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(ctx, field) 10154 case "nonItemRelatedDiscountAmount": 10155 return ec.fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field) 10156 case "itemRelatedDiscountAmount": 10157 return ec.fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field) 10158 case "subTotalGrossWithDiscounts": 10159 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field) 10160 case "subTotalNetWithDiscounts": 10161 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field) 10162 case "hasItems": 10163 return ec.fieldContext_Commerce_Cart_Delivery_hasItems(ctx, field) 10164 } 10165 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Delivery", field.Name) 10166 }, 10167 } 10168 defer func() { 10169 if r := recover(); r != nil { 10170 err = ec.Recover(ctx, r) 10171 ec.Error(ctx, err) 10172 } 10173 }() 10174 ctx = graphql.WithFieldContext(ctx, fc) 10175 if fc.Args, err = ec.field_Commerce_Cart_Cart_getDeliveryByCode_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10176 ec.Error(ctx, err) 10177 return fc, err 10178 } 10179 return fc, nil 10180 } 10181 10182 func (ec *executionContext) _Commerce_Cart_Cart_getDeliveryCodes(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10183 fc, err := ec.fieldContext_Commerce_Cart_Cart_getDeliveryCodes(ctx, field) 10184 if err != nil { 10185 return graphql.Null 10186 } 10187 ctx = graphql.WithFieldContext(ctx, fc) 10188 defer func() { 10189 if r := recover(); r != nil { 10190 ec.Error(ctx, ec.Recover(ctx, r)) 10191 ret = graphql.Null 10192 } 10193 }() 10194 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10195 ctx = rctx // use context from middleware stack in children 10196 return obj.GetDeliveryCodes(), nil 10197 }) 10198 if err != nil { 10199 ec.Error(ctx, err) 10200 return graphql.Null 10201 } 10202 if resTmp == nil { 10203 return graphql.Null 10204 } 10205 res := resTmp.([]string) 10206 fc.Result = res 10207 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 10208 } 10209 10210 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getDeliveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10211 fc = &graphql.FieldContext{ 10212 Object: "Commerce_Cart_Cart", 10213 Field: field, 10214 IsMethod: true, 10215 IsResolver: false, 10216 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10217 return nil, errors.New("field of type String does not have child fields") 10218 }, 10219 } 10220 return fc, nil 10221 } 10222 10223 func (ec *executionContext) _Commerce_Cart_Cart_getMainShippingEMail(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10224 fc, err := ec.fieldContext_Commerce_Cart_Cart_getMainShippingEMail(ctx, field) 10225 if err != nil { 10226 return graphql.Null 10227 } 10228 ctx = graphql.WithFieldContext(ctx, fc) 10229 defer func() { 10230 if r := recover(); r != nil { 10231 ec.Error(ctx, ec.Recover(ctx, r)) 10232 ret = graphql.Null 10233 } 10234 }() 10235 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10236 ctx = rctx // use context from middleware stack in children 10237 return obj.GetMainShippingEMail(), nil 10238 }) 10239 if err != nil { 10240 ec.Error(ctx, err) 10241 return graphql.Null 10242 } 10243 if resTmp == nil { 10244 if !graphql.HasFieldError(ctx, fc) { 10245 ec.Errorf(ctx, "must not be null") 10246 } 10247 return graphql.Null 10248 } 10249 res := resTmp.(string) 10250 fc.Result = res 10251 return ec.marshalNString2string(ctx, field.Selections, res) 10252 } 10253 10254 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getMainShippingEMail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10255 fc = &graphql.FieldContext{ 10256 Object: "Commerce_Cart_Cart", 10257 Field: field, 10258 IsMethod: true, 10259 IsResolver: false, 10260 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10261 return nil, errors.New("field of type String does not have child fields") 10262 }, 10263 } 10264 return fc, nil 10265 } 10266 10267 func (ec *executionContext) _Commerce_Cart_Cart_isEmpty(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10268 fc, err := ec.fieldContext_Commerce_Cart_Cart_isEmpty(ctx, field) 10269 if err != nil { 10270 return graphql.Null 10271 } 10272 ctx = graphql.WithFieldContext(ctx, fc) 10273 defer func() { 10274 if r := recover(); r != nil { 10275 ec.Error(ctx, ec.Recover(ctx, r)) 10276 ret = graphql.Null 10277 } 10278 }() 10279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10280 ctx = rctx // use context from middleware stack in children 10281 return obj.IsEmpty(), nil 10282 }) 10283 if err != nil { 10284 ec.Error(ctx, err) 10285 return graphql.Null 10286 } 10287 if resTmp == nil { 10288 if !graphql.HasFieldError(ctx, fc) { 10289 ec.Errorf(ctx, "must not be null") 10290 } 10291 return graphql.Null 10292 } 10293 res := resTmp.(bool) 10294 fc.Result = res 10295 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 10296 } 10297 10298 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_isEmpty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10299 fc = &graphql.FieldContext{ 10300 Object: "Commerce_Cart_Cart", 10301 Field: field, 10302 IsMethod: true, 10303 IsResolver: false, 10304 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10305 return nil, errors.New("field of type Boolean does not have child fields") 10306 }, 10307 } 10308 return fc, nil 10309 } 10310 10311 func (ec *executionContext) _Commerce_Cart_Cart_hasDeliveryForCode(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10312 fc, err := ec.fieldContext_Commerce_Cart_Cart_hasDeliveryForCode(ctx, field) 10313 if err != nil { 10314 return graphql.Null 10315 } 10316 ctx = graphql.WithFieldContext(ctx, fc) 10317 defer func() { 10318 if r := recover(); r != nil { 10319 ec.Error(ctx, ec.Recover(ctx, r)) 10320 ret = graphql.Null 10321 } 10322 }() 10323 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10324 ctx = rctx // use context from middleware stack in children 10325 return obj.HasDeliveryForCode(fc.Args["deliveryCode"].(string)), nil 10326 }) 10327 if err != nil { 10328 ec.Error(ctx, err) 10329 return graphql.Null 10330 } 10331 if resTmp == nil { 10332 if !graphql.HasFieldError(ctx, fc) { 10333 ec.Errorf(ctx, "must not be null") 10334 } 10335 return graphql.Null 10336 } 10337 res := resTmp.(bool) 10338 fc.Result = res 10339 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 10340 } 10341 10342 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_hasDeliveryForCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10343 fc = &graphql.FieldContext{ 10344 Object: "Commerce_Cart_Cart", 10345 Field: field, 10346 IsMethod: true, 10347 IsResolver: false, 10348 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10349 return nil, errors.New("field of type Boolean does not have child fields") 10350 }, 10351 } 10352 defer func() { 10353 if r := recover(); r != nil { 10354 err = ec.Recover(ctx, r) 10355 ec.Error(ctx, err) 10356 } 10357 }() 10358 ctx = graphql.WithFieldContext(ctx, fc) 10359 if fc.Args, err = ec.field_Commerce_Cart_Cart_hasDeliveryForCode_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10360 ec.Error(ctx, err) 10361 return fc, err 10362 } 10363 return fc, nil 10364 } 10365 10366 func (ec *executionContext) _Commerce_Cart_Cart_getDeliveryByItemID(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10367 fc, err := ec.fieldContext_Commerce_Cart_Cart_getDeliveryByItemID(ctx, field) 10368 if err != nil { 10369 return graphql.Null 10370 } 10371 ctx = graphql.WithFieldContext(ctx, fc) 10372 defer func() { 10373 if r := recover(); r != nil { 10374 ec.Error(ctx, ec.Recover(ctx, r)) 10375 ret = graphql.Null 10376 } 10377 }() 10378 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10379 ctx = rctx // use context from middleware stack in children 10380 return obj.GetDeliveryByItemID(fc.Args["itemID"].(string)) 10381 }) 10382 if err != nil { 10383 ec.Error(ctx, err) 10384 return graphql.Null 10385 } 10386 if resTmp == nil { 10387 if !graphql.HasFieldError(ctx, fc) { 10388 ec.Errorf(ctx, "must not be null") 10389 } 10390 return graphql.Null 10391 } 10392 res := resTmp.(*cart.Delivery) 10393 fc.Result = res 10394 return ec.marshalNCommerce_Cart_Delivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx, field.Selections, res) 10395 } 10396 10397 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getDeliveryByItemID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10398 fc = &graphql.FieldContext{ 10399 Object: "Commerce_Cart_Cart", 10400 Field: field, 10401 IsMethod: true, 10402 IsResolver: false, 10403 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10404 switch field.Name { 10405 case "deliveryInfo": 10406 return ec.fieldContext_Commerce_Cart_Delivery_deliveryInfo(ctx, field) 10407 case "cartitems": 10408 return ec.fieldContext_Commerce_Cart_Delivery_cartitems(ctx, field) 10409 case "shippingItem": 10410 return ec.fieldContext_Commerce_Cart_Delivery_shippingItem(ctx, field) 10411 case "subTotalGross": 10412 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGross(ctx, field) 10413 case "grandTotal": 10414 return ec.fieldContext_Commerce_Cart_Delivery_grandTotal(ctx, field) 10415 case "sumTotalTaxAmount": 10416 return ec.fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field) 10417 case "subTotalNet": 10418 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNet(ctx, field) 10419 case "totalDiscountAmount": 10420 return ec.fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(ctx, field) 10421 case "nonItemRelatedDiscountAmount": 10422 return ec.fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field) 10423 case "itemRelatedDiscountAmount": 10424 return ec.fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field) 10425 case "subTotalGrossWithDiscounts": 10426 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field) 10427 case "subTotalNetWithDiscounts": 10428 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field) 10429 case "hasItems": 10430 return ec.fieldContext_Commerce_Cart_Delivery_hasItems(ctx, field) 10431 } 10432 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Delivery", field.Name) 10433 }, 10434 } 10435 defer func() { 10436 if r := recover(); r != nil { 10437 err = ec.Recover(ctx, r) 10438 ec.Error(ctx, err) 10439 } 10440 }() 10441 ctx = graphql.WithFieldContext(ctx, fc) 10442 if fc.Args, err = ec.field_Commerce_Cart_Cart_getDeliveryByItemID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10443 ec.Error(ctx, err) 10444 return fc, err 10445 } 10446 return fc, nil 10447 } 10448 10449 func (ec *executionContext) _Commerce_Cart_Cart_getByItemID(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10450 fc, err := ec.fieldContext_Commerce_Cart_Cart_getByItemID(ctx, field) 10451 if err != nil { 10452 return graphql.Null 10453 } 10454 ctx = graphql.WithFieldContext(ctx, fc) 10455 defer func() { 10456 if r := recover(); r != nil { 10457 ec.Error(ctx, ec.Recover(ctx, r)) 10458 ret = graphql.Null 10459 } 10460 }() 10461 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10462 ctx = rctx // use context from middleware stack in children 10463 return obj.GetByItemID(fc.Args["itemID"].(string)) 10464 }) 10465 if err != nil { 10466 ec.Error(ctx, err) 10467 return graphql.Null 10468 } 10469 if resTmp == nil { 10470 if !graphql.HasFieldError(ctx, fc) { 10471 ec.Errorf(ctx, "must not be null") 10472 } 10473 return graphql.Null 10474 } 10475 res := resTmp.(*cart.Item) 10476 fc.Result = res 10477 return ec.marshalNCommerce_Cart_Item2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx, field.Selections, res) 10478 } 10479 10480 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getByItemID(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10481 fc = &graphql.FieldContext{ 10482 Object: "Commerce_Cart_Cart", 10483 Field: field, 10484 IsMethod: true, 10485 IsResolver: false, 10486 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10487 switch field.Name { 10488 case "id": 10489 return ec.fieldContext_Commerce_Cart_Item_id(ctx, field) 10490 case "externalReference": 10491 return ec.fieldContext_Commerce_Cart_Item_externalReference(ctx, field) 10492 case "marketplaceCode": 10493 return ec.fieldContext_Commerce_Cart_Item_marketplaceCode(ctx, field) 10494 case "variantMarketPlaceCode": 10495 return ec.fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(ctx, field) 10496 case "productName": 10497 return ec.fieldContext_Commerce_Cart_Item_productName(ctx, field) 10498 case "sourceID": 10499 return ec.fieldContext_Commerce_Cart_Item_sourceID(ctx, field) 10500 case "qty": 10501 return ec.fieldContext_Commerce_Cart_Item_qty(ctx, field) 10502 case "additionalDataKeys": 10503 return ec.fieldContext_Commerce_Cart_Item_additionalDataKeys(ctx, field) 10504 case "additionalDataValues": 10505 return ec.fieldContext_Commerce_Cart_Item_additionalDataValues(ctx, field) 10506 case "getAdditionalData": 10507 return ec.fieldContext_Commerce_Cart_Item_getAdditionalData(ctx, field) 10508 case "hasAdditionalDataKey": 10509 return ec.fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx, field) 10510 case "singlePriceGross": 10511 return ec.fieldContext_Commerce_Cart_Item_singlePriceGross(ctx, field) 10512 case "singlePriceNet": 10513 return ec.fieldContext_Commerce_Cart_Item_singlePriceNet(ctx, field) 10514 case "rowPriceGross": 10515 return ec.fieldContext_Commerce_Cart_Item_rowPriceGross(ctx, field) 10516 case "rowPriceNet": 10517 return ec.fieldContext_Commerce_Cart_Item_rowPriceNet(ctx, field) 10518 case "appliedDiscounts": 10519 return ec.fieldContext_Commerce_Cart_Item_appliedDiscounts(ctx, field) 10520 } 10521 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Item", field.Name) 10522 }, 10523 } 10524 defer func() { 10525 if r := recover(); r != nil { 10526 err = ec.Recover(ctx, r) 10527 ec.Error(ctx, err) 10528 } 10529 }() 10530 ctx = graphql.WithFieldContext(ctx, fc) 10531 if fc.Args, err = ec.field_Commerce_Cart_Cart_getByItemID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10532 ec.Error(ctx, err) 10533 return fc, err 10534 } 10535 return fc, nil 10536 } 10537 10538 func (ec *executionContext) _Commerce_Cart_Cart_getTotalQty(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10539 fc, err := ec.fieldContext_Commerce_Cart_Cart_getTotalQty(ctx, field) 10540 if err != nil { 10541 return graphql.Null 10542 } 10543 ctx = graphql.WithFieldContext(ctx, fc) 10544 defer func() { 10545 if r := recover(); r != nil { 10546 ec.Error(ctx, ec.Recover(ctx, r)) 10547 ret = graphql.Null 10548 } 10549 }() 10550 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10551 ctx = rctx // use context from middleware stack in children 10552 return obj.GetTotalQty(fc.Args["marketPlaceCode"].(string), fc.Args["variantCode"].(string)), nil 10553 }) 10554 if err != nil { 10555 ec.Error(ctx, err) 10556 return graphql.Null 10557 } 10558 if resTmp == nil { 10559 return graphql.Null 10560 } 10561 res := resTmp.(int) 10562 fc.Result = res 10563 return ec.marshalOInt2int(ctx, field.Selections, res) 10564 } 10565 10566 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getTotalQty(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10567 fc = &graphql.FieldContext{ 10568 Object: "Commerce_Cart_Cart", 10569 Field: field, 10570 IsMethod: true, 10571 IsResolver: false, 10572 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10573 return nil, errors.New("field of type Int does not have child fields") 10574 }, 10575 } 10576 defer func() { 10577 if r := recover(); r != nil { 10578 err = ec.Recover(ctx, r) 10579 ec.Error(ctx, err) 10580 } 10581 }() 10582 ctx = graphql.WithFieldContext(ctx, fc) 10583 if fc.Args, err = ec.field_Commerce_Cart_Cart_getTotalQty_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10584 ec.Error(ctx, err) 10585 return fc, err 10586 } 10587 return fc, nil 10588 } 10589 10590 func (ec *executionContext) _Commerce_Cart_Cart_getByExternalReference(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10591 fc, err := ec.fieldContext_Commerce_Cart_Cart_getByExternalReference(ctx, field) 10592 if err != nil { 10593 return graphql.Null 10594 } 10595 ctx = graphql.WithFieldContext(ctx, fc) 10596 defer func() { 10597 if r := recover(); r != nil { 10598 ec.Error(ctx, ec.Recover(ctx, r)) 10599 ret = graphql.Null 10600 } 10601 }() 10602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10603 ctx = rctx // use context from middleware stack in children 10604 return obj.GetByExternalReference(fc.Args["ref"].(string)) 10605 }) 10606 if err != nil { 10607 ec.Error(ctx, err) 10608 return graphql.Null 10609 } 10610 if resTmp == nil { 10611 if !graphql.HasFieldError(ctx, fc) { 10612 ec.Errorf(ctx, "must not be null") 10613 } 10614 return graphql.Null 10615 } 10616 res := resTmp.(*cart.Item) 10617 fc.Result = res 10618 return ec.marshalNCommerce_Cart_Item2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx, field.Selections, res) 10619 } 10620 10621 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getByExternalReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10622 fc = &graphql.FieldContext{ 10623 Object: "Commerce_Cart_Cart", 10624 Field: field, 10625 IsMethod: true, 10626 IsResolver: false, 10627 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10628 switch field.Name { 10629 case "id": 10630 return ec.fieldContext_Commerce_Cart_Item_id(ctx, field) 10631 case "externalReference": 10632 return ec.fieldContext_Commerce_Cart_Item_externalReference(ctx, field) 10633 case "marketplaceCode": 10634 return ec.fieldContext_Commerce_Cart_Item_marketplaceCode(ctx, field) 10635 case "variantMarketPlaceCode": 10636 return ec.fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(ctx, field) 10637 case "productName": 10638 return ec.fieldContext_Commerce_Cart_Item_productName(ctx, field) 10639 case "sourceID": 10640 return ec.fieldContext_Commerce_Cart_Item_sourceID(ctx, field) 10641 case "qty": 10642 return ec.fieldContext_Commerce_Cart_Item_qty(ctx, field) 10643 case "additionalDataKeys": 10644 return ec.fieldContext_Commerce_Cart_Item_additionalDataKeys(ctx, field) 10645 case "additionalDataValues": 10646 return ec.fieldContext_Commerce_Cart_Item_additionalDataValues(ctx, field) 10647 case "getAdditionalData": 10648 return ec.fieldContext_Commerce_Cart_Item_getAdditionalData(ctx, field) 10649 case "hasAdditionalDataKey": 10650 return ec.fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx, field) 10651 case "singlePriceGross": 10652 return ec.fieldContext_Commerce_Cart_Item_singlePriceGross(ctx, field) 10653 case "singlePriceNet": 10654 return ec.fieldContext_Commerce_Cart_Item_singlePriceNet(ctx, field) 10655 case "rowPriceGross": 10656 return ec.fieldContext_Commerce_Cart_Item_rowPriceGross(ctx, field) 10657 case "rowPriceNet": 10658 return ec.fieldContext_Commerce_Cart_Item_rowPriceNet(ctx, field) 10659 case "appliedDiscounts": 10660 return ec.fieldContext_Commerce_Cart_Item_appliedDiscounts(ctx, field) 10661 } 10662 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Item", field.Name) 10663 }, 10664 } 10665 defer func() { 10666 if r := recover(); r != nil { 10667 err = ec.Recover(ctx, r) 10668 ec.Error(ctx, err) 10669 } 10670 }() 10671 ctx = graphql.WithFieldContext(ctx, fc) 10672 if fc.Args, err = ec.field_Commerce_Cart_Cart_getByExternalReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 10673 ec.Error(ctx, err) 10674 return fc, err 10675 } 10676 return fc, nil 10677 } 10678 10679 func (ec *executionContext) _Commerce_Cart_Cart_getVoucherSavings(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10680 fc, err := ec.fieldContext_Commerce_Cart_Cart_getVoucherSavings(ctx, field) 10681 if err != nil { 10682 return graphql.Null 10683 } 10684 ctx = graphql.WithFieldContext(ctx, fc) 10685 defer func() { 10686 if r := recover(); r != nil { 10687 ec.Error(ctx, ec.Recover(ctx, r)) 10688 ret = graphql.Null 10689 } 10690 }() 10691 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10692 ctx = rctx // use context from middleware stack in children 10693 return obj.GetVoucherSavings(), nil 10694 }) 10695 if err != nil { 10696 ec.Error(ctx, err) 10697 return graphql.Null 10698 } 10699 if resTmp == nil { 10700 if !graphql.HasFieldError(ctx, fc) { 10701 ec.Errorf(ctx, "must not be null") 10702 } 10703 return graphql.Null 10704 } 10705 res := resTmp.(domain.Price) 10706 fc.Result = res 10707 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10708 } 10709 10710 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getVoucherSavings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10711 fc = &graphql.FieldContext{ 10712 Object: "Commerce_Cart_Cart", 10713 Field: field, 10714 IsMethod: true, 10715 IsResolver: false, 10716 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10717 switch field.Name { 10718 case "amount": 10719 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10720 case "currency": 10721 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10722 } 10723 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10724 }, 10725 } 10726 return fc, nil 10727 } 10728 10729 func (ec *executionContext) _Commerce_Cart_Cart_getCartTeaser(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10730 fc, err := ec.fieldContext_Commerce_Cart_Cart_getCartTeaser(ctx, field) 10731 if err != nil { 10732 return graphql.Null 10733 } 10734 ctx = graphql.WithFieldContext(ctx, fc) 10735 defer func() { 10736 if r := recover(); r != nil { 10737 ec.Error(ctx, ec.Recover(ctx, r)) 10738 ret = graphql.Null 10739 } 10740 }() 10741 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10742 ctx = rctx // use context from middleware stack in children 10743 return obj.GetCartTeaser(), nil 10744 }) 10745 if err != nil { 10746 ec.Error(ctx, err) 10747 return graphql.Null 10748 } 10749 if resTmp == nil { 10750 if !graphql.HasFieldError(ctx, fc) { 10751 ec.Errorf(ctx, "must not be null") 10752 } 10753 return graphql.Null 10754 } 10755 res := resTmp.(*cart.Teaser) 10756 fc.Result = res 10757 return ec.marshalNCommerce_Cart_Teaser2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTeaser(ctx, field.Selections, res) 10758 } 10759 10760 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getCartTeaser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10761 fc = &graphql.FieldContext{ 10762 Object: "Commerce_Cart_Cart", 10763 Field: field, 10764 IsMethod: true, 10765 IsResolver: false, 10766 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10767 switch field.Name { 10768 case "productCount": 10769 return ec.fieldContext_Commerce_Cart_Teaser_productCount(ctx, field) 10770 case "ItemCount": 10771 return ec.fieldContext_Commerce_Cart_Teaser_ItemCount(ctx, field) 10772 case "DeliveryCodes": 10773 return ec.fieldContext_Commerce_Cart_Teaser_DeliveryCodes(ctx, field) 10774 } 10775 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Teaser", field.Name) 10776 }, 10777 } 10778 return fc, nil 10779 } 10780 10781 func (ec *executionContext) _Commerce_Cart_Cart_shippingNet(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10782 fc, err := ec.fieldContext_Commerce_Cart_Cart_shippingNet(ctx, field) 10783 if err != nil { 10784 return graphql.Null 10785 } 10786 ctx = graphql.WithFieldContext(ctx, fc) 10787 defer func() { 10788 if r := recover(); r != nil { 10789 ec.Error(ctx, ec.Recover(ctx, r)) 10790 ret = graphql.Null 10791 } 10792 }() 10793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10794 ctx = rctx // use context from middleware stack in children 10795 return obj.ShippingNet, nil 10796 }) 10797 if err != nil { 10798 ec.Error(ctx, err) 10799 return graphql.Null 10800 } 10801 if resTmp == nil { 10802 if !graphql.HasFieldError(ctx, fc) { 10803 ec.Errorf(ctx, "must not be null") 10804 } 10805 return graphql.Null 10806 } 10807 res := resTmp.(domain.Price) 10808 fc.Result = res 10809 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10810 } 10811 10812 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_shippingNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10813 fc = &graphql.FieldContext{ 10814 Object: "Commerce_Cart_Cart", 10815 Field: field, 10816 IsMethod: false, 10817 IsResolver: false, 10818 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10819 switch field.Name { 10820 case "amount": 10821 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10822 case "currency": 10823 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10824 } 10825 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10826 }, 10827 } 10828 return fc, nil 10829 } 10830 10831 func (ec *executionContext) _Commerce_Cart_Cart_shippingNetWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10832 fc, err := ec.fieldContext_Commerce_Cart_Cart_shippingNetWithDiscounts(ctx, field) 10833 if err != nil { 10834 return graphql.Null 10835 } 10836 ctx = graphql.WithFieldContext(ctx, fc) 10837 defer func() { 10838 if r := recover(); r != nil { 10839 ec.Error(ctx, ec.Recover(ctx, r)) 10840 ret = graphql.Null 10841 } 10842 }() 10843 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10844 ctx = rctx // use context from middleware stack in children 10845 return obj.ShippingNetWithDiscounts, nil 10846 }) 10847 if err != nil { 10848 ec.Error(ctx, err) 10849 return graphql.Null 10850 } 10851 if resTmp == nil { 10852 if !graphql.HasFieldError(ctx, fc) { 10853 ec.Errorf(ctx, "must not be null") 10854 } 10855 return graphql.Null 10856 } 10857 res := resTmp.(domain.Price) 10858 fc.Result = res 10859 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10860 } 10861 10862 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_shippingNetWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10863 fc = &graphql.FieldContext{ 10864 Object: "Commerce_Cart_Cart", 10865 Field: field, 10866 IsMethod: false, 10867 IsResolver: false, 10868 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10869 switch field.Name { 10870 case "amount": 10871 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10872 case "currency": 10873 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10874 } 10875 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10876 }, 10877 } 10878 return fc, nil 10879 } 10880 10881 func (ec *executionContext) _Commerce_Cart_Cart_shippingGross(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10882 fc, err := ec.fieldContext_Commerce_Cart_Cart_shippingGross(ctx, field) 10883 if err != nil { 10884 return graphql.Null 10885 } 10886 ctx = graphql.WithFieldContext(ctx, fc) 10887 defer func() { 10888 if r := recover(); r != nil { 10889 ec.Error(ctx, ec.Recover(ctx, r)) 10890 ret = graphql.Null 10891 } 10892 }() 10893 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10894 ctx = rctx // use context from middleware stack in children 10895 return obj.ShippingGross, nil 10896 }) 10897 if err != nil { 10898 ec.Error(ctx, err) 10899 return graphql.Null 10900 } 10901 if resTmp == nil { 10902 if !graphql.HasFieldError(ctx, fc) { 10903 ec.Errorf(ctx, "must not be null") 10904 } 10905 return graphql.Null 10906 } 10907 res := resTmp.(domain.Price) 10908 fc.Result = res 10909 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10910 } 10911 10912 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_shippingGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10913 fc = &graphql.FieldContext{ 10914 Object: "Commerce_Cart_Cart", 10915 Field: field, 10916 IsMethod: false, 10917 IsResolver: false, 10918 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10919 switch field.Name { 10920 case "amount": 10921 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10922 case "currency": 10923 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10924 } 10925 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10926 }, 10927 } 10928 return fc, nil 10929 } 10930 10931 func (ec *executionContext) _Commerce_Cart_Cart_shippingGrossWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10932 fc, err := ec.fieldContext_Commerce_Cart_Cart_shippingGrossWithDiscounts(ctx, field) 10933 if err != nil { 10934 return graphql.Null 10935 } 10936 ctx = graphql.WithFieldContext(ctx, fc) 10937 defer func() { 10938 if r := recover(); r != nil { 10939 ec.Error(ctx, ec.Recover(ctx, r)) 10940 ret = graphql.Null 10941 } 10942 }() 10943 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10944 ctx = rctx // use context from middleware stack in children 10945 return obj.ShippingGrossWithDiscounts, nil 10946 }) 10947 if err != nil { 10948 ec.Error(ctx, err) 10949 return graphql.Null 10950 } 10951 if resTmp == nil { 10952 if !graphql.HasFieldError(ctx, fc) { 10953 ec.Errorf(ctx, "must not be null") 10954 } 10955 return graphql.Null 10956 } 10957 res := resTmp.(domain.Price) 10958 fc.Result = res 10959 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 10960 } 10961 10962 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_shippingGrossWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 10963 fc = &graphql.FieldContext{ 10964 Object: "Commerce_Cart_Cart", 10965 Field: field, 10966 IsMethod: false, 10967 IsResolver: false, 10968 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 10969 switch field.Name { 10970 case "amount": 10971 return ec.fieldContext_Commerce_Price_amount(ctx, field) 10972 case "currency": 10973 return ec.fieldContext_Commerce_Price_currency(ctx, field) 10974 } 10975 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 10976 }, 10977 } 10978 return fc, nil 10979 } 10980 10981 func (ec *executionContext) _Commerce_Cart_Cart_hasShippingCosts(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 10982 fc, err := ec.fieldContext_Commerce_Cart_Cart_hasShippingCosts(ctx, field) 10983 if err != nil { 10984 return graphql.Null 10985 } 10986 ctx = graphql.WithFieldContext(ctx, fc) 10987 defer func() { 10988 if r := recover(); r != nil { 10989 ec.Error(ctx, ec.Recover(ctx, r)) 10990 ret = graphql.Null 10991 } 10992 }() 10993 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10994 ctx = rctx // use context from middleware stack in children 10995 return obj.HasShippingCosts(), nil 10996 }) 10997 if err != nil { 10998 ec.Error(ctx, err) 10999 return graphql.Null 11000 } 11001 if resTmp == nil { 11002 if !graphql.HasFieldError(ctx, fc) { 11003 ec.Errorf(ctx, "must not be null") 11004 } 11005 return graphql.Null 11006 } 11007 res := resTmp.(bool) 11008 fc.Result = res 11009 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11010 } 11011 11012 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_hasShippingCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11013 fc = &graphql.FieldContext{ 11014 Object: "Commerce_Cart_Cart", 11015 Field: field, 11016 IsMethod: true, 11017 IsResolver: false, 11018 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11019 return nil, errors.New("field of type Boolean does not have child fields") 11020 }, 11021 } 11022 return fc, nil 11023 } 11024 11025 func (ec *executionContext) _Commerce_Cart_Cart_allShippingTitles(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11026 fc, err := ec.fieldContext_Commerce_Cart_Cart_allShippingTitles(ctx, field) 11027 if err != nil { 11028 return graphql.Null 11029 } 11030 ctx = graphql.WithFieldContext(ctx, fc) 11031 defer func() { 11032 if r := recover(); r != nil { 11033 ec.Error(ctx, ec.Recover(ctx, r)) 11034 ret = graphql.Null 11035 } 11036 }() 11037 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11038 ctx = rctx // use context from middleware stack in children 11039 return obj.AllShippingTitles(), nil 11040 }) 11041 if err != nil { 11042 ec.Error(ctx, err) 11043 return graphql.Null 11044 } 11045 if resTmp == nil { 11046 return graphql.Null 11047 } 11048 res := resTmp.([]string) 11049 fc.Result = res 11050 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 11051 } 11052 11053 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_allShippingTitles(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11054 fc = &graphql.FieldContext{ 11055 Object: "Commerce_Cart_Cart", 11056 Field: field, 11057 IsMethod: true, 11058 IsResolver: false, 11059 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11060 return nil, errors.New("field of type String does not have child fields") 11061 }, 11062 } 11063 return fc, nil 11064 } 11065 11066 func (ec *executionContext) _Commerce_Cart_Cart_subTotalGross(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11067 fc, err := ec.fieldContext_Commerce_Cart_Cart_subTotalGross(ctx, field) 11068 if err != nil { 11069 return graphql.Null 11070 } 11071 ctx = graphql.WithFieldContext(ctx, fc) 11072 defer func() { 11073 if r := recover(); r != nil { 11074 ec.Error(ctx, ec.Recover(ctx, r)) 11075 ret = graphql.Null 11076 } 11077 }() 11078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11079 ctx = rctx // use context from middleware stack in children 11080 return obj.SubTotalGross, nil 11081 }) 11082 if err != nil { 11083 ec.Error(ctx, err) 11084 return graphql.Null 11085 } 11086 if resTmp == nil { 11087 if !graphql.HasFieldError(ctx, fc) { 11088 ec.Errorf(ctx, "must not be null") 11089 } 11090 return graphql.Null 11091 } 11092 res := resTmp.(domain.Price) 11093 fc.Result = res 11094 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11095 } 11096 11097 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_subTotalGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11098 fc = &graphql.FieldContext{ 11099 Object: "Commerce_Cart_Cart", 11100 Field: field, 11101 IsMethod: false, 11102 IsResolver: false, 11103 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11104 switch field.Name { 11105 case "amount": 11106 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11107 case "currency": 11108 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11109 } 11110 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11111 }, 11112 } 11113 return fc, nil 11114 } 11115 11116 func (ec *executionContext) _Commerce_Cart_Cart_subTotalGrossWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11117 fc, err := ec.fieldContext_Commerce_Cart_Cart_subTotalGrossWithDiscounts(ctx, field) 11118 if err != nil { 11119 return graphql.Null 11120 } 11121 ctx = graphql.WithFieldContext(ctx, fc) 11122 defer func() { 11123 if r := recover(); r != nil { 11124 ec.Error(ctx, ec.Recover(ctx, r)) 11125 ret = graphql.Null 11126 } 11127 }() 11128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11129 ctx = rctx // use context from middleware stack in children 11130 return obj.SubTotalGrossWithDiscounts, nil 11131 }) 11132 if err != nil { 11133 ec.Error(ctx, err) 11134 return graphql.Null 11135 } 11136 if resTmp == nil { 11137 if !graphql.HasFieldError(ctx, fc) { 11138 ec.Errorf(ctx, "must not be null") 11139 } 11140 return graphql.Null 11141 } 11142 res := resTmp.(domain.Price) 11143 fc.Result = res 11144 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11145 } 11146 11147 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_subTotalGrossWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11148 fc = &graphql.FieldContext{ 11149 Object: "Commerce_Cart_Cart", 11150 Field: field, 11151 IsMethod: false, 11152 IsResolver: false, 11153 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11154 switch field.Name { 11155 case "amount": 11156 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11157 case "currency": 11158 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11159 } 11160 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11161 }, 11162 } 11163 return fc, nil 11164 } 11165 11166 func (ec *executionContext) _Commerce_Cart_Cart_subTotalNetWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11167 fc, err := ec.fieldContext_Commerce_Cart_Cart_subTotalNetWithDiscounts(ctx, field) 11168 if err != nil { 11169 return graphql.Null 11170 } 11171 ctx = graphql.WithFieldContext(ctx, fc) 11172 defer func() { 11173 if r := recover(); r != nil { 11174 ec.Error(ctx, ec.Recover(ctx, r)) 11175 ret = graphql.Null 11176 } 11177 }() 11178 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11179 ctx = rctx // use context from middleware stack in children 11180 return obj.SubTotalNetWithDiscounts, nil 11181 }) 11182 if err != nil { 11183 ec.Error(ctx, err) 11184 return graphql.Null 11185 } 11186 if resTmp == nil { 11187 if !graphql.HasFieldError(ctx, fc) { 11188 ec.Errorf(ctx, "must not be null") 11189 } 11190 return graphql.Null 11191 } 11192 res := resTmp.(domain.Price) 11193 fc.Result = res 11194 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11195 } 11196 11197 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_subTotalNetWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11198 fc = &graphql.FieldContext{ 11199 Object: "Commerce_Cart_Cart", 11200 Field: field, 11201 IsMethod: false, 11202 IsResolver: false, 11203 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11204 switch field.Name { 11205 case "amount": 11206 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11207 case "currency": 11208 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11209 } 11210 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11211 }, 11212 } 11213 return fc, nil 11214 } 11215 11216 func (ec *executionContext) _Commerce_Cart_Cart_totalDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11217 fc, err := ec.fieldContext_Commerce_Cart_Cart_totalDiscountAmount(ctx, field) 11218 if err != nil { 11219 return graphql.Null 11220 } 11221 ctx = graphql.WithFieldContext(ctx, fc) 11222 defer func() { 11223 if r := recover(); r != nil { 11224 ec.Error(ctx, ec.Recover(ctx, r)) 11225 ret = graphql.Null 11226 } 11227 }() 11228 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11229 ctx = rctx // use context from middleware stack in children 11230 return obj.TotalDiscountAmount, nil 11231 }) 11232 if err != nil { 11233 ec.Error(ctx, err) 11234 return graphql.Null 11235 } 11236 if resTmp == nil { 11237 if !graphql.HasFieldError(ctx, fc) { 11238 ec.Errorf(ctx, "must not be null") 11239 } 11240 return graphql.Null 11241 } 11242 res := resTmp.(domain.Price) 11243 fc.Result = res 11244 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11245 } 11246 11247 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_totalDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11248 fc = &graphql.FieldContext{ 11249 Object: "Commerce_Cart_Cart", 11250 Field: field, 11251 IsMethod: false, 11252 IsResolver: false, 11253 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11254 switch field.Name { 11255 case "amount": 11256 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11257 case "currency": 11258 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11259 } 11260 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11261 }, 11262 } 11263 return fc, nil 11264 } 11265 11266 func (ec *executionContext) _Commerce_Cart_Cart_nonItemRelatedDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11267 fc, err := ec.fieldContext_Commerce_Cart_Cart_nonItemRelatedDiscountAmount(ctx, field) 11268 if err != nil { 11269 return graphql.Null 11270 } 11271 ctx = graphql.WithFieldContext(ctx, fc) 11272 defer func() { 11273 if r := recover(); r != nil { 11274 ec.Error(ctx, ec.Recover(ctx, r)) 11275 ret = graphql.Null 11276 } 11277 }() 11278 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11279 ctx = rctx // use context from middleware stack in children 11280 return obj.NonItemRelatedDiscountAmount, nil 11281 }) 11282 if err != nil { 11283 ec.Error(ctx, err) 11284 return graphql.Null 11285 } 11286 if resTmp == nil { 11287 if !graphql.HasFieldError(ctx, fc) { 11288 ec.Errorf(ctx, "must not be null") 11289 } 11290 return graphql.Null 11291 } 11292 res := resTmp.(domain.Price) 11293 fc.Result = res 11294 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11295 } 11296 11297 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_nonItemRelatedDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11298 fc = &graphql.FieldContext{ 11299 Object: "Commerce_Cart_Cart", 11300 Field: field, 11301 IsMethod: false, 11302 IsResolver: false, 11303 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11304 switch field.Name { 11305 case "amount": 11306 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11307 case "currency": 11308 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11309 } 11310 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11311 }, 11312 } 11313 return fc, nil 11314 } 11315 11316 func (ec *executionContext) _Commerce_Cart_Cart_itemRelatedDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11317 fc, err := ec.fieldContext_Commerce_Cart_Cart_itemRelatedDiscountAmount(ctx, field) 11318 if err != nil { 11319 return graphql.Null 11320 } 11321 ctx = graphql.WithFieldContext(ctx, fc) 11322 defer func() { 11323 if r := recover(); r != nil { 11324 ec.Error(ctx, ec.Recover(ctx, r)) 11325 ret = graphql.Null 11326 } 11327 }() 11328 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11329 ctx = rctx // use context from middleware stack in children 11330 return obj.ItemRelatedDiscountAmount, nil 11331 }) 11332 if err != nil { 11333 ec.Error(ctx, err) 11334 return graphql.Null 11335 } 11336 if resTmp == nil { 11337 if !graphql.HasFieldError(ctx, fc) { 11338 ec.Errorf(ctx, "must not be null") 11339 } 11340 return graphql.Null 11341 } 11342 res := resTmp.(domain.Price) 11343 fc.Result = res 11344 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 11345 } 11346 11347 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_itemRelatedDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11348 fc = &graphql.FieldContext{ 11349 Object: "Commerce_Cart_Cart", 11350 Field: field, 11351 IsMethod: false, 11352 IsResolver: false, 11353 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11354 switch field.Name { 11355 case "amount": 11356 return ec.fieldContext_Commerce_Price_amount(ctx, field) 11357 case "currency": 11358 return ec.fieldContext_Commerce_Price_currency(ctx, field) 11359 } 11360 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 11361 }, 11362 } 11363 return fc, nil 11364 } 11365 11366 func (ec *executionContext) _Commerce_Cart_Cart_hasAppliedCouponCode(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11367 fc, err := ec.fieldContext_Commerce_Cart_Cart_hasAppliedCouponCode(ctx, field) 11368 if err != nil { 11369 return graphql.Null 11370 } 11371 ctx = graphql.WithFieldContext(ctx, fc) 11372 defer func() { 11373 if r := recover(); r != nil { 11374 ec.Error(ctx, ec.Recover(ctx, r)) 11375 ret = graphql.Null 11376 } 11377 }() 11378 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11379 ctx = rctx // use context from middleware stack in children 11380 return obj.HasAppliedCouponCode(), nil 11381 }) 11382 if err != nil { 11383 ec.Error(ctx, err) 11384 return graphql.Null 11385 } 11386 if resTmp == nil { 11387 if !graphql.HasFieldError(ctx, fc) { 11388 ec.Errorf(ctx, "must not be null") 11389 } 11390 return graphql.Null 11391 } 11392 res := resTmp.(bool) 11393 fc.Result = res 11394 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11395 } 11396 11397 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_hasAppliedCouponCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11398 fc = &graphql.FieldContext{ 11399 Object: "Commerce_Cart_Cart", 11400 Field: field, 11401 IsMethod: true, 11402 IsResolver: false, 11403 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11404 return nil, errors.New("field of type Boolean does not have child fields") 11405 }, 11406 } 11407 return fc, nil 11408 } 11409 11410 func (ec *executionContext) _Commerce_Cart_Cart_getPaymentReference(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11411 fc, err := ec.fieldContext_Commerce_Cart_Cart_getPaymentReference(ctx, field) 11412 if err != nil { 11413 return graphql.Null 11414 } 11415 ctx = graphql.WithFieldContext(ctx, fc) 11416 defer func() { 11417 if r := recover(); r != nil { 11418 ec.Error(ctx, ec.Recover(ctx, r)) 11419 ret = graphql.Null 11420 } 11421 }() 11422 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11423 ctx = rctx // use context from middleware stack in children 11424 return obj.GetPaymentReference(), nil 11425 }) 11426 if err != nil { 11427 ec.Error(ctx, err) 11428 return graphql.Null 11429 } 11430 if resTmp == nil { 11431 if !graphql.HasFieldError(ctx, fc) { 11432 ec.Errorf(ctx, "must not be null") 11433 } 11434 return graphql.Null 11435 } 11436 res := resTmp.(string) 11437 fc.Result = res 11438 return ec.marshalNString2string(ctx, field.Selections, res) 11439 } 11440 11441 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getPaymentReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11442 fc = &graphql.FieldContext{ 11443 Object: "Commerce_Cart_Cart", 11444 Field: field, 11445 IsMethod: true, 11446 IsResolver: false, 11447 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11448 return nil, errors.New("field of type String does not have child fields") 11449 }, 11450 } 11451 return fc, nil 11452 } 11453 11454 func (ec *executionContext) _Commerce_Cart_Cart_getTotalItemsByType(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11455 fc, err := ec.fieldContext_Commerce_Cart_Cart_getTotalItemsByType(ctx, field) 11456 if err != nil { 11457 return graphql.Null 11458 } 11459 ctx = graphql.WithFieldContext(ctx, fc) 11460 defer func() { 11461 if r := recover(); r != nil { 11462 ec.Error(ctx, ec.Recover(ctx, r)) 11463 ret = graphql.Null 11464 } 11465 }() 11466 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11467 ctx = rctx // use context from middleware stack in children 11468 return obj.GetTotalItemsByType(fc.Args["typeCode"].(string)), nil 11469 }) 11470 if err != nil { 11471 ec.Error(ctx, err) 11472 return graphql.Null 11473 } 11474 if resTmp == nil { 11475 return graphql.Null 11476 } 11477 res := resTmp.([]cart.Totalitem) 11478 fc.Result = res 11479 return ec.marshalOCommerce_Cart_Totalitem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTotalitemᚄ(ctx, field.Selections, res) 11480 } 11481 11482 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_getTotalItemsByType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11483 fc = &graphql.FieldContext{ 11484 Object: "Commerce_Cart_Cart", 11485 Field: field, 11486 IsMethod: true, 11487 IsResolver: false, 11488 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11489 switch field.Name { 11490 case "code": 11491 return ec.fieldContext_Commerce_Cart_Totalitem_code(ctx, field) 11492 case "title": 11493 return ec.fieldContext_Commerce_Cart_Totalitem_title(ctx, field) 11494 case "price": 11495 return ec.fieldContext_Commerce_Cart_Totalitem_price(ctx, field) 11496 case "type": 11497 return ec.fieldContext_Commerce_Cart_Totalitem_type(ctx, field) 11498 } 11499 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Totalitem", field.Name) 11500 }, 11501 } 11502 defer func() { 11503 if r := recover(); r != nil { 11504 err = ec.Recover(ctx, r) 11505 ec.Error(ctx, err) 11506 } 11507 }() 11508 ctx = graphql.WithFieldContext(ctx, fc) 11509 if fc.Args, err = ec.field_Commerce_Cart_Cart_getTotalItemsByType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11510 ec.Error(ctx, err) 11511 return fc, err 11512 } 11513 return fc, nil 11514 } 11515 11516 func (ec *executionContext) _Commerce_Cart_Cart_grandTotalCharges(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11517 fc, err := ec.fieldContext_Commerce_Cart_Cart_grandTotalCharges(ctx, field) 11518 if err != nil { 11519 return graphql.Null 11520 } 11521 ctx = graphql.WithFieldContext(ctx, fc) 11522 defer func() { 11523 if r := recover(); r != nil { 11524 ec.Error(ctx, ec.Recover(ctx, r)) 11525 ret = graphql.Null 11526 } 11527 }() 11528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11529 ctx = rctx // use context from middleware stack in children 11530 return obj.GrandTotalCharges(), nil 11531 }) 11532 if err != nil { 11533 ec.Error(ctx, err) 11534 return graphql.Null 11535 } 11536 if resTmp == nil { 11537 if !graphql.HasFieldError(ctx, fc) { 11538 ec.Errorf(ctx, "must not be null") 11539 } 11540 return graphql.Null 11541 } 11542 res := resTmp.(domain.Charges) 11543 fc.Result = res 11544 return ec.marshalNCommerce_Price_Charges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharges(ctx, field.Selections, res) 11545 } 11546 11547 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_grandTotalCharges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11548 fc = &graphql.FieldContext{ 11549 Object: "Commerce_Cart_Cart", 11550 Field: field, 11551 IsMethod: true, 11552 IsResolver: false, 11553 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11554 switch field.Name { 11555 case "items": 11556 return ec.fieldContext_Commerce_Price_Charges_items(ctx, field) 11557 case "hasType": 11558 return ec.fieldContext_Commerce_Price_Charges_hasType(ctx, field) 11559 case "hasChargeQualifier": 11560 return ec.fieldContext_Commerce_Price_Charges_hasChargeQualifier(ctx, field) 11561 case "getByChargeQualifierForced": 11562 return ec.fieldContext_Commerce_Price_Charges_getByChargeQualifierForced(ctx, field) 11563 case "getByTypeForced": 11564 return ec.fieldContext_Commerce_Price_Charges_getByTypeForced(ctx, field) 11565 } 11566 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price_Charges", field.Name) 11567 }, 11568 } 11569 return fc, nil 11570 } 11571 11572 func (ec *executionContext) _Commerce_Cart_Cart_hasAppliedGiftCards(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11573 fc, err := ec.fieldContext_Commerce_Cart_Cart_hasAppliedGiftCards(ctx, field) 11574 if err != nil { 11575 return graphql.Null 11576 } 11577 ctx = graphql.WithFieldContext(ctx, fc) 11578 defer func() { 11579 if r := recover(); r != nil { 11580 ec.Error(ctx, ec.Recover(ctx, r)) 11581 ret = graphql.Null 11582 } 11583 }() 11584 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11585 ctx = rctx // use context from middleware stack in children 11586 return obj.HasAppliedGiftCards(), nil 11587 }) 11588 if err != nil { 11589 ec.Error(ctx, err) 11590 return graphql.Null 11591 } 11592 if resTmp == nil { 11593 if !graphql.HasFieldError(ctx, fc) { 11594 ec.Errorf(ctx, "must not be null") 11595 } 11596 return graphql.Null 11597 } 11598 res := resTmp.(bool) 11599 fc.Result = res 11600 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11601 } 11602 11603 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_hasAppliedGiftCards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11604 fc = &graphql.FieldContext{ 11605 Object: "Commerce_Cart_Cart", 11606 Field: field, 11607 IsMethod: true, 11608 IsResolver: false, 11609 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11610 return nil, errors.New("field of type Boolean does not have child fields") 11611 }, 11612 } 11613 return fc, nil 11614 } 11615 11616 func (ec *executionContext) _Commerce_Cart_Cart_hasRemainingGiftCards(ctx context.Context, field graphql.CollectedField, obj *cart.Cart) (ret graphql.Marshaler) { 11617 fc, err := ec.fieldContext_Commerce_Cart_Cart_hasRemainingGiftCards(ctx, field) 11618 if err != nil { 11619 return graphql.Null 11620 } 11621 ctx = graphql.WithFieldContext(ctx, fc) 11622 defer func() { 11623 if r := recover(); r != nil { 11624 ec.Error(ctx, ec.Recover(ctx, r)) 11625 ret = graphql.Null 11626 } 11627 }() 11628 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11629 ctx = rctx // use context from middleware stack in children 11630 return obj.HasRemainingGiftCards(), nil 11631 }) 11632 if err != nil { 11633 ec.Error(ctx, err) 11634 return graphql.Null 11635 } 11636 if resTmp == nil { 11637 if !graphql.HasFieldError(ctx, fc) { 11638 ec.Errorf(ctx, "must not be null") 11639 } 11640 return graphql.Null 11641 } 11642 res := resTmp.(bool) 11643 fc.Result = res 11644 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 11645 } 11646 11647 func (ec *executionContext) fieldContext_Commerce_Cart_Cart_hasRemainingGiftCards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11648 fc = &graphql.FieldContext{ 11649 Object: "Commerce_Cart_Cart", 11650 Field: field, 11651 IsMethod: true, 11652 IsResolver: false, 11653 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11654 return nil, errors.New("field of type Boolean does not have child fields") 11655 }, 11656 } 11657 return fc, nil 11658 } 11659 11660 func (ec *executionContext) _Commerce_Cart_CouponCode_code(ctx context.Context, field graphql.CollectedField, obj *cart.CouponCode) (ret graphql.Marshaler) { 11661 fc, err := ec.fieldContext_Commerce_Cart_CouponCode_code(ctx, field) 11662 if err != nil { 11663 return graphql.Null 11664 } 11665 ctx = graphql.WithFieldContext(ctx, fc) 11666 defer func() { 11667 if r := recover(); r != nil { 11668 ec.Error(ctx, ec.Recover(ctx, r)) 11669 ret = graphql.Null 11670 } 11671 }() 11672 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11673 ctx = rctx // use context from middleware stack in children 11674 return obj.Code, nil 11675 }) 11676 if err != nil { 11677 ec.Error(ctx, err) 11678 return graphql.Null 11679 } 11680 if resTmp == nil { 11681 if !graphql.HasFieldError(ctx, fc) { 11682 ec.Errorf(ctx, "must not be null") 11683 } 11684 return graphql.Null 11685 } 11686 res := resTmp.(string) 11687 fc.Result = res 11688 return ec.marshalNString2string(ctx, field.Selections, res) 11689 } 11690 11691 func (ec *executionContext) fieldContext_Commerce_Cart_CouponCode_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11692 fc = &graphql.FieldContext{ 11693 Object: "Commerce_Cart_CouponCode", 11694 Field: field, 11695 IsMethod: false, 11696 IsResolver: false, 11697 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11698 return nil, errors.New("field of type String does not have child fields") 11699 }, 11700 } 11701 return fc, nil 11702 } 11703 11704 func (ec *executionContext) _Commerce_Cart_CustomAttributes_get(ctx context.Context, field graphql.CollectedField, obj *dto.CustomAttributes) (ret graphql.Marshaler) { 11705 fc, err := ec.fieldContext_Commerce_Cart_CustomAttributes_get(ctx, field) 11706 if err != nil { 11707 return graphql.Null 11708 } 11709 ctx = graphql.WithFieldContext(ctx, fc) 11710 defer func() { 11711 if r := recover(); r != nil { 11712 ec.Error(ctx, ec.Recover(ctx, r)) 11713 ret = graphql.Null 11714 } 11715 }() 11716 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11717 ctx = rctx // use context from middleware stack in children 11718 return obj.Get(fc.Args["key"].(string)), nil 11719 }) 11720 if err != nil { 11721 ec.Error(ctx, err) 11722 return graphql.Null 11723 } 11724 if resTmp == nil { 11725 return graphql.Null 11726 } 11727 res := resTmp.(*dto.KeyValue) 11728 fc.Result = res 11729 return ec.marshalOCommerce_Cart_KeyValue2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx, field.Selections, res) 11730 } 11731 11732 func (ec *executionContext) fieldContext_Commerce_Cart_CustomAttributes_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11733 fc = &graphql.FieldContext{ 11734 Object: "Commerce_Cart_CustomAttributes", 11735 Field: field, 11736 IsMethod: true, 11737 IsResolver: false, 11738 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11739 switch field.Name { 11740 case "key": 11741 return ec.fieldContext_Commerce_Cart_KeyValue_key(ctx, field) 11742 case "value": 11743 return ec.fieldContext_Commerce_Cart_KeyValue_value(ctx, field) 11744 } 11745 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_KeyValue", field.Name) 11746 }, 11747 } 11748 defer func() { 11749 if r := recover(); r != nil { 11750 err = ec.Recover(ctx, r) 11751 ec.Error(ctx, err) 11752 } 11753 }() 11754 ctx = graphql.WithFieldContext(ctx, fc) 11755 if fc.Args, err = ec.field_Commerce_Cart_CustomAttributes_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 11756 ec.Error(ctx, err) 11757 return fc, err 11758 } 11759 return fc, nil 11760 } 11761 11762 func (ec *executionContext) _Commerce_Cart_DecoratedCart_cart(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCart) (ret graphql.Marshaler) { 11763 fc, err := ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 11764 if err != nil { 11765 return graphql.Null 11766 } 11767 ctx = graphql.WithFieldContext(ctx, fc) 11768 defer func() { 11769 if r := recover(); r != nil { 11770 ec.Error(ctx, ec.Recover(ctx, r)) 11771 ret = graphql.Null 11772 } 11773 }() 11774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11775 ctx = rctx // use context from middleware stack in children 11776 return obj.Cart(), nil 11777 }) 11778 if err != nil { 11779 ec.Error(ctx, err) 11780 return graphql.Null 11781 } 11782 if resTmp == nil { 11783 if !graphql.HasFieldError(ctx, fc) { 11784 ec.Errorf(ctx, "must not be null") 11785 } 11786 return graphql.Null 11787 } 11788 res := resTmp.(cart.Cart) 11789 fc.Result = res 11790 return ec.marshalNCommerce_Cart_Cart2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCart(ctx, field.Selections, res) 11791 } 11792 11793 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedCart_cart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11794 fc = &graphql.FieldContext{ 11795 Object: "Commerce_Cart_DecoratedCart", 11796 Field: field, 11797 IsMethod: true, 11798 IsResolver: false, 11799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11800 switch field.Name { 11801 case "id": 11802 return ec.fieldContext_Commerce_Cart_Cart_id(ctx, field) 11803 case "entityID": 11804 return ec.fieldContext_Commerce_Cart_Cart_entityID(ctx, field) 11805 case "billingAddress": 11806 return ec.fieldContext_Commerce_Cart_Cart_billingAddress(ctx, field) 11807 case "purchaser": 11808 return ec.fieldContext_Commerce_Cart_Cart_purchaser(ctx, field) 11809 case "deliveries": 11810 return ec.fieldContext_Commerce_Cart_Cart_deliveries(ctx, field) 11811 case "additionalData": 11812 return ec.fieldContext_Commerce_Cart_Cart_additionalData(ctx, field) 11813 case "paymentSelection": 11814 return ec.fieldContext_Commerce_Cart_Cart_paymentSelection(ctx, field) 11815 case "belongsToAuthenticatedUser": 11816 return ec.fieldContext_Commerce_Cart_Cart_belongsToAuthenticatedUser(ctx, field) 11817 case "authenticatedUserID": 11818 return ec.fieldContext_Commerce_Cart_Cart_authenticatedUserID(ctx, field) 11819 case "appliedCouponCodes": 11820 return ec.fieldContext_Commerce_Cart_Cart_appliedCouponCodes(ctx, field) 11821 case "defaultCurrency": 11822 return ec.fieldContext_Commerce_Cart_Cart_defaultCurrency(ctx, field) 11823 case "totalitems": 11824 return ec.fieldContext_Commerce_Cart_Cart_totalitems(ctx, field) 11825 case "itemCount": 11826 return ec.fieldContext_Commerce_Cart_Cart_itemCount(ctx, field) 11827 case "productCount": 11828 return ec.fieldContext_Commerce_Cart_Cart_productCount(ctx, field) 11829 case "isPaymentSelected": 11830 return ec.fieldContext_Commerce_Cart_Cart_isPaymentSelected(ctx, field) 11831 case "grandTotal": 11832 return ec.fieldContext_Commerce_Cart_Cart_grandTotal(ctx, field) 11833 case "sumTotalTaxAmount": 11834 return ec.fieldContext_Commerce_Cart_Cart_sumTotalTaxAmount(ctx, field) 11835 case "subTotalNet": 11836 return ec.fieldContext_Commerce_Cart_Cart_subTotalNet(ctx, field) 11837 case "appliedGiftCards": 11838 return ec.fieldContext_Commerce_Cart_Cart_appliedGiftCards(ctx, field) 11839 case "getDeliveryByCode": 11840 return ec.fieldContext_Commerce_Cart_Cart_getDeliveryByCode(ctx, field) 11841 case "getDeliveryCodes": 11842 return ec.fieldContext_Commerce_Cart_Cart_getDeliveryCodes(ctx, field) 11843 case "getMainShippingEMail": 11844 return ec.fieldContext_Commerce_Cart_Cart_getMainShippingEMail(ctx, field) 11845 case "isEmpty": 11846 return ec.fieldContext_Commerce_Cart_Cart_isEmpty(ctx, field) 11847 case "hasDeliveryForCode": 11848 return ec.fieldContext_Commerce_Cart_Cart_hasDeliveryForCode(ctx, field) 11849 case "getDeliveryByItemID": 11850 return ec.fieldContext_Commerce_Cart_Cart_getDeliveryByItemID(ctx, field) 11851 case "getByItemID": 11852 return ec.fieldContext_Commerce_Cart_Cart_getByItemID(ctx, field) 11853 case "getTotalQty": 11854 return ec.fieldContext_Commerce_Cart_Cart_getTotalQty(ctx, field) 11855 case "getByExternalReference": 11856 return ec.fieldContext_Commerce_Cart_Cart_getByExternalReference(ctx, field) 11857 case "getVoucherSavings": 11858 return ec.fieldContext_Commerce_Cart_Cart_getVoucherSavings(ctx, field) 11859 case "getCartTeaser": 11860 return ec.fieldContext_Commerce_Cart_Cart_getCartTeaser(ctx, field) 11861 case "shippingNet": 11862 return ec.fieldContext_Commerce_Cart_Cart_shippingNet(ctx, field) 11863 case "shippingNetWithDiscounts": 11864 return ec.fieldContext_Commerce_Cart_Cart_shippingNetWithDiscounts(ctx, field) 11865 case "shippingGross": 11866 return ec.fieldContext_Commerce_Cart_Cart_shippingGross(ctx, field) 11867 case "shippingGrossWithDiscounts": 11868 return ec.fieldContext_Commerce_Cart_Cart_shippingGrossWithDiscounts(ctx, field) 11869 case "hasShippingCosts": 11870 return ec.fieldContext_Commerce_Cart_Cart_hasShippingCosts(ctx, field) 11871 case "allShippingTitles": 11872 return ec.fieldContext_Commerce_Cart_Cart_allShippingTitles(ctx, field) 11873 case "subTotalGross": 11874 return ec.fieldContext_Commerce_Cart_Cart_subTotalGross(ctx, field) 11875 case "subTotalGrossWithDiscounts": 11876 return ec.fieldContext_Commerce_Cart_Cart_subTotalGrossWithDiscounts(ctx, field) 11877 case "subTotalNetWithDiscounts": 11878 return ec.fieldContext_Commerce_Cart_Cart_subTotalNetWithDiscounts(ctx, field) 11879 case "totalDiscountAmount": 11880 return ec.fieldContext_Commerce_Cart_Cart_totalDiscountAmount(ctx, field) 11881 case "nonItemRelatedDiscountAmount": 11882 return ec.fieldContext_Commerce_Cart_Cart_nonItemRelatedDiscountAmount(ctx, field) 11883 case "itemRelatedDiscountAmount": 11884 return ec.fieldContext_Commerce_Cart_Cart_itemRelatedDiscountAmount(ctx, field) 11885 case "hasAppliedCouponCode": 11886 return ec.fieldContext_Commerce_Cart_Cart_hasAppliedCouponCode(ctx, field) 11887 case "getPaymentReference": 11888 return ec.fieldContext_Commerce_Cart_Cart_getPaymentReference(ctx, field) 11889 case "getTotalItemsByType": 11890 return ec.fieldContext_Commerce_Cart_Cart_getTotalItemsByType(ctx, field) 11891 case "grandTotalCharges": 11892 return ec.fieldContext_Commerce_Cart_Cart_grandTotalCharges(ctx, field) 11893 case "hasAppliedGiftCards": 11894 return ec.fieldContext_Commerce_Cart_Cart_hasAppliedGiftCards(ctx, field) 11895 case "hasRemainingGiftCards": 11896 return ec.fieldContext_Commerce_Cart_Cart_hasRemainingGiftCards(ctx, field) 11897 } 11898 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Cart", field.Name) 11899 }, 11900 } 11901 return fc, nil 11902 } 11903 11904 func (ec *executionContext) _Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCart) (ret graphql.Marshaler) { 11905 fc, err := ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 11906 if err != nil { 11907 return graphql.Null 11908 } 11909 ctx = graphql.WithFieldContext(ctx, fc) 11910 defer func() { 11911 if r := recover(); r != nil { 11912 ec.Error(ctx, ec.Recover(ctx, r)) 11913 ret = graphql.Null 11914 } 11915 }() 11916 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11917 ctx = rctx // use context from middleware stack in children 11918 return obj.DecoratedDeliveries(), nil 11919 }) 11920 if err != nil { 11921 ec.Error(ctx, err) 11922 return graphql.Null 11923 } 11924 if resTmp == nil { 11925 return graphql.Null 11926 } 11927 res := resTmp.([]dto.DecoratedDelivery) 11928 fc.Result = res 11929 return ec.marshalOCommerce_Cart_DecoratedDelivery2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDeliveryᚄ(ctx, field.Selections, res) 11930 } 11931 11932 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11933 fc = &graphql.FieldContext{ 11934 Object: "Commerce_Cart_DecoratedCart", 11935 Field: field, 11936 IsMethod: true, 11937 IsResolver: false, 11938 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11939 switch field.Name { 11940 case "delivery": 11941 return ec.fieldContext_Commerce_Cart_DecoratedDelivery_delivery(ctx, field) 11942 case "decoratedItems": 11943 return ec.fieldContext_Commerce_Cart_DecoratedDelivery_decoratedItems(ctx, field) 11944 } 11945 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedDelivery", field.Name) 11946 }, 11947 } 11948 return fc, nil 11949 } 11950 11951 func (ec *executionContext) _Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCart) (ret graphql.Marshaler) { 11952 fc, err := ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 11953 if err != nil { 11954 return graphql.Null 11955 } 11956 ctx = graphql.WithFieldContext(ctx, fc) 11957 defer func() { 11958 if r := recover(); r != nil { 11959 ec.Error(ctx, ec.Recover(ctx, r)) 11960 ret = graphql.Null 11961 } 11962 }() 11963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11964 ctx = rctx // use context from middleware stack in children 11965 return obj.GetDecoratedDeliveryByCode(fc.Args["deliveryCode"].(string)), nil 11966 }) 11967 if err != nil { 11968 ec.Error(ctx, err) 11969 return graphql.Null 11970 } 11971 if resTmp == nil { 11972 return graphql.Null 11973 } 11974 res := resTmp.(*dto.DecoratedDelivery) 11975 fc.Result = res 11976 return ec.marshalOCommerce_Cart_DecoratedDelivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDelivery(ctx, field.Selections, res) 11977 } 11978 11979 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 11980 fc = &graphql.FieldContext{ 11981 Object: "Commerce_Cart_DecoratedCart", 11982 Field: field, 11983 IsMethod: true, 11984 IsResolver: false, 11985 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 11986 switch field.Name { 11987 case "delivery": 11988 return ec.fieldContext_Commerce_Cart_DecoratedDelivery_delivery(ctx, field) 11989 case "decoratedItems": 11990 return ec.fieldContext_Commerce_Cart_DecoratedDelivery_decoratedItems(ctx, field) 11991 } 11992 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedDelivery", field.Name) 11993 }, 11994 } 11995 defer func() { 11996 if r := recover(); r != nil { 11997 err = ec.Recover(ctx, r) 11998 ec.Error(ctx, err) 11999 } 12000 }() 12001 ctx = graphql.WithFieldContext(ctx, fc) 12002 if fc.Args, err = ec.field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 12003 ec.Error(ctx, err) 12004 return fc, err 12005 } 12006 return fc, nil 12007 } 12008 12009 func (ec *executionContext) _Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCart) (ret graphql.Marshaler) { 12010 fc, err := ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 12011 if err != nil { 12012 return graphql.Null 12013 } 12014 ctx = graphql.WithFieldContext(ctx, fc) 12015 defer func() { 12016 if r := recover(); r != nil { 12017 ec.Error(ctx, ec.Recover(ctx, r)) 12018 ret = graphql.Null 12019 } 12020 }() 12021 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12022 ctx = rctx // use context from middleware stack in children 12023 return obj.GetAllPaymentRequiredItems(), nil 12024 }) 12025 if err != nil { 12026 ec.Error(ctx, err) 12027 return graphql.Null 12028 } 12029 if resTmp == nil { 12030 if !graphql.HasFieldError(ctx, fc) { 12031 ec.Errorf(ctx, "must not be null") 12032 } 12033 return graphql.Null 12034 } 12035 res := resTmp.(dto.PricedItems) 12036 fc.Result = res 12037 return ec.marshalNCommerce_Cart_PricedItems2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedItems(ctx, field.Selections, res) 12038 } 12039 12040 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12041 fc = &graphql.FieldContext{ 12042 Object: "Commerce_Cart_DecoratedCart", 12043 Field: field, 12044 IsMethod: true, 12045 IsResolver: false, 12046 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12047 switch field.Name { 12048 case "cartItems": 12049 return ec.fieldContext_Commerce_Cart_PricedItems_cartItems(ctx, field) 12050 case "shippingItems": 12051 return ec.fieldContext_Commerce_Cart_PricedItems_shippingItems(ctx, field) 12052 case "totalItems": 12053 return ec.fieldContext_Commerce_Cart_PricedItems_totalItems(ctx, field) 12054 } 12055 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PricedItems", field.Name) 12056 }, 12057 } 12058 return fc, nil 12059 } 12060 12061 func (ec *executionContext) _Commerce_Cart_DecoratedCart_cartSummary(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCart) (ret graphql.Marshaler) { 12062 fc, err := ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 12063 if err != nil { 12064 return graphql.Null 12065 } 12066 ctx = graphql.WithFieldContext(ctx, fc) 12067 defer func() { 12068 if r := recover(); r != nil { 12069 ec.Error(ctx, ec.Recover(ctx, r)) 12070 ret = graphql.Null 12071 } 12072 }() 12073 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12074 ctx = rctx // use context from middleware stack in children 12075 return obj.CartSummary(), nil 12076 }) 12077 if err != nil { 12078 ec.Error(ctx, err) 12079 return graphql.Null 12080 } 12081 if resTmp == nil { 12082 if !graphql.HasFieldError(ctx, fc) { 12083 ec.Errorf(ctx, "must not be null") 12084 } 12085 return graphql.Null 12086 } 12087 res := resTmp.(dto.CartSummary) 12088 fc.Result = res 12089 return ec.marshalNCommerce_Cart_Summary2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartSummary(ctx, field.Selections, res) 12090 } 12091 12092 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedCart_cartSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12093 fc = &graphql.FieldContext{ 12094 Object: "Commerce_Cart_DecoratedCart", 12095 Field: field, 12096 IsMethod: true, 12097 IsResolver: false, 12098 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12099 switch field.Name { 12100 case "discounts": 12101 return ec.fieldContext_Commerce_Cart_Summary_discounts(ctx, field) 12102 case "totalDiscountAmount": 12103 return ec.fieldContext_Commerce_Cart_Summary_totalDiscountAmount(ctx, field) 12104 case "totalGiftCardAmount": 12105 return ec.fieldContext_Commerce_Cart_Summary_totalGiftCardAmount(ctx, field) 12106 case "grandTotalWithGiftCards": 12107 return ec.fieldContext_Commerce_Cart_Summary_grandTotalWithGiftCards(ctx, field) 12108 case "sumTotalDiscountWithGiftCardsAmount": 12109 return ec.fieldContext_Commerce_Cart_Summary_sumTotalDiscountWithGiftCardsAmount(ctx, field) 12110 case "hasAppliedDiscounts": 12111 return ec.fieldContext_Commerce_Cart_Summary_hasAppliedDiscounts(ctx, field) 12112 case "sumTaxes": 12113 return ec.fieldContext_Commerce_Cart_Summary_sumTaxes(ctx, field) 12114 case "sumPaymentSelectionCartSplitValueAmountByMethods": 12115 return ec.fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods(ctx, field) 12116 case "sumPaymentSelectionCartSplitPriceAmountByMethods": 12117 return ec.fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods(ctx, field) 12118 } 12119 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Summary", field.Name) 12120 }, 12121 } 12122 return fc, nil 12123 } 12124 12125 func (ec *executionContext) _Commerce_Cart_DecoratedDelivery_delivery(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedDelivery) (ret graphql.Marshaler) { 12126 fc, err := ec.fieldContext_Commerce_Cart_DecoratedDelivery_delivery(ctx, field) 12127 if err != nil { 12128 return graphql.Null 12129 } 12130 ctx = graphql.WithFieldContext(ctx, fc) 12131 defer func() { 12132 if r := recover(); r != nil { 12133 ec.Error(ctx, ec.Recover(ctx, r)) 12134 ret = graphql.Null 12135 } 12136 }() 12137 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12138 ctx = rctx // use context from middleware stack in children 12139 return obj.Delivery, nil 12140 }) 12141 if err != nil { 12142 ec.Error(ctx, err) 12143 return graphql.Null 12144 } 12145 if resTmp == nil { 12146 if !graphql.HasFieldError(ctx, fc) { 12147 ec.Errorf(ctx, "must not be null") 12148 } 12149 return graphql.Null 12150 } 12151 res := resTmp.(cart.Delivery) 12152 fc.Result = res 12153 return ec.marshalNCommerce_Cart_Delivery2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx, field.Selections, res) 12154 } 12155 12156 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedDelivery_delivery(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12157 fc = &graphql.FieldContext{ 12158 Object: "Commerce_Cart_DecoratedDelivery", 12159 Field: field, 12160 IsMethod: false, 12161 IsResolver: false, 12162 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12163 switch field.Name { 12164 case "deliveryInfo": 12165 return ec.fieldContext_Commerce_Cart_Delivery_deliveryInfo(ctx, field) 12166 case "cartitems": 12167 return ec.fieldContext_Commerce_Cart_Delivery_cartitems(ctx, field) 12168 case "shippingItem": 12169 return ec.fieldContext_Commerce_Cart_Delivery_shippingItem(ctx, field) 12170 case "subTotalGross": 12171 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGross(ctx, field) 12172 case "grandTotal": 12173 return ec.fieldContext_Commerce_Cart_Delivery_grandTotal(ctx, field) 12174 case "sumTotalTaxAmount": 12175 return ec.fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field) 12176 case "subTotalNet": 12177 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNet(ctx, field) 12178 case "totalDiscountAmount": 12179 return ec.fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(ctx, field) 12180 case "nonItemRelatedDiscountAmount": 12181 return ec.fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field) 12182 case "itemRelatedDiscountAmount": 12183 return ec.fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field) 12184 case "subTotalGrossWithDiscounts": 12185 return ec.fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field) 12186 case "subTotalNetWithDiscounts": 12187 return ec.fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field) 12188 case "hasItems": 12189 return ec.fieldContext_Commerce_Cart_Delivery_hasItems(ctx, field) 12190 } 12191 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Delivery", field.Name) 12192 }, 12193 } 12194 return fc, nil 12195 } 12196 12197 func (ec *executionContext) _Commerce_Cart_DecoratedDelivery_decoratedItems(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedDelivery) (ret graphql.Marshaler) { 12198 fc, err := ec.fieldContext_Commerce_Cart_DecoratedDelivery_decoratedItems(ctx, field) 12199 if err != nil { 12200 return graphql.Null 12201 } 12202 ctx = graphql.WithFieldContext(ctx, fc) 12203 defer func() { 12204 if r := recover(); r != nil { 12205 ec.Error(ctx, ec.Recover(ctx, r)) 12206 ret = graphql.Null 12207 } 12208 }() 12209 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12210 ctx = rctx // use context from middleware stack in children 12211 return obj.DecoratedItems, nil 12212 }) 12213 if err != nil { 12214 ec.Error(ctx, err) 12215 return graphql.Null 12216 } 12217 if resTmp == nil { 12218 return graphql.Null 12219 } 12220 res := resTmp.([]dto.DecoratedCartItem) 12221 fc.Result = res 12222 return ec.marshalOCommerce_Cart_DecoratedItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCartItemᚄ(ctx, field.Selections, res) 12223 } 12224 12225 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedDelivery_decoratedItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12226 fc = &graphql.FieldContext{ 12227 Object: "Commerce_Cart_DecoratedDelivery", 12228 Field: field, 12229 IsMethod: false, 12230 IsResolver: false, 12231 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12232 switch field.Name { 12233 case "item": 12234 return ec.fieldContext_Commerce_Cart_DecoratedItem_item(ctx, field) 12235 case "product": 12236 return ec.fieldContext_Commerce_Cart_DecoratedItem_product(ctx, field) 12237 } 12238 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedItem", field.Name) 12239 }, 12240 } 12241 return fc, nil 12242 } 12243 12244 func (ec *executionContext) _Commerce_Cart_DecoratedItem_item(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCartItem) (ret graphql.Marshaler) { 12245 fc, err := ec.fieldContext_Commerce_Cart_DecoratedItem_item(ctx, field) 12246 if err != nil { 12247 return graphql.Null 12248 } 12249 ctx = graphql.WithFieldContext(ctx, fc) 12250 defer func() { 12251 if r := recover(); r != nil { 12252 ec.Error(ctx, ec.Recover(ctx, r)) 12253 ret = graphql.Null 12254 } 12255 }() 12256 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12257 ctx = rctx // use context from middleware stack in children 12258 return obj.Item, nil 12259 }) 12260 if err != nil { 12261 ec.Error(ctx, err) 12262 return graphql.Null 12263 } 12264 if resTmp == nil { 12265 return graphql.Null 12266 } 12267 res := resTmp.(cart.Item) 12268 fc.Result = res 12269 return ec.marshalOCommerce_Cart_Item2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx, field.Selections, res) 12270 } 12271 12272 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedItem_item(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12273 fc = &graphql.FieldContext{ 12274 Object: "Commerce_Cart_DecoratedItem", 12275 Field: field, 12276 IsMethod: false, 12277 IsResolver: false, 12278 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12279 switch field.Name { 12280 case "id": 12281 return ec.fieldContext_Commerce_Cart_Item_id(ctx, field) 12282 case "externalReference": 12283 return ec.fieldContext_Commerce_Cart_Item_externalReference(ctx, field) 12284 case "marketplaceCode": 12285 return ec.fieldContext_Commerce_Cart_Item_marketplaceCode(ctx, field) 12286 case "variantMarketPlaceCode": 12287 return ec.fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(ctx, field) 12288 case "productName": 12289 return ec.fieldContext_Commerce_Cart_Item_productName(ctx, field) 12290 case "sourceID": 12291 return ec.fieldContext_Commerce_Cart_Item_sourceID(ctx, field) 12292 case "qty": 12293 return ec.fieldContext_Commerce_Cart_Item_qty(ctx, field) 12294 case "additionalDataKeys": 12295 return ec.fieldContext_Commerce_Cart_Item_additionalDataKeys(ctx, field) 12296 case "additionalDataValues": 12297 return ec.fieldContext_Commerce_Cart_Item_additionalDataValues(ctx, field) 12298 case "getAdditionalData": 12299 return ec.fieldContext_Commerce_Cart_Item_getAdditionalData(ctx, field) 12300 case "hasAdditionalDataKey": 12301 return ec.fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx, field) 12302 case "singlePriceGross": 12303 return ec.fieldContext_Commerce_Cart_Item_singlePriceGross(ctx, field) 12304 case "singlePriceNet": 12305 return ec.fieldContext_Commerce_Cart_Item_singlePriceNet(ctx, field) 12306 case "rowPriceGross": 12307 return ec.fieldContext_Commerce_Cart_Item_rowPriceGross(ctx, field) 12308 case "rowPriceNet": 12309 return ec.fieldContext_Commerce_Cart_Item_rowPriceNet(ctx, field) 12310 case "appliedDiscounts": 12311 return ec.fieldContext_Commerce_Cart_Item_appliedDiscounts(ctx, field) 12312 } 12313 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Item", field.Name) 12314 }, 12315 } 12316 return fc, nil 12317 } 12318 12319 func (ec *executionContext) _Commerce_Cart_DecoratedItem_product(ctx context.Context, field graphql.CollectedField, obj *dto.DecoratedCartItem) (ret graphql.Marshaler) { 12320 fc, err := ec.fieldContext_Commerce_Cart_DecoratedItem_product(ctx, field) 12321 if err != nil { 12322 return graphql.Null 12323 } 12324 ctx = graphql.WithFieldContext(ctx, fc) 12325 defer func() { 12326 if r := recover(); r != nil { 12327 ec.Error(ctx, ec.Recover(ctx, r)) 12328 ret = graphql.Null 12329 } 12330 }() 12331 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12332 ctx = rctx // use context from middleware stack in children 12333 return obj.Product, nil 12334 }) 12335 if err != nil { 12336 ec.Error(ctx, err) 12337 return graphql.Null 12338 } 12339 if resTmp == nil { 12340 return graphql.Null 12341 } 12342 res := resTmp.(graphqlproductdto.Product) 12343 fc.Result = res 12344 return ec.marshalOCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx, field.Selections, res) 12345 } 12346 12347 func (ec *executionContext) fieldContext_Commerce_Cart_DecoratedItem_product(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12348 fc = &graphql.FieldContext{ 12349 Object: "Commerce_Cart_DecoratedItem", 12350 Field: field, 12351 IsMethod: false, 12352 IsResolver: false, 12353 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12354 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 12355 }, 12356 } 12357 return fc, nil 12358 } 12359 12360 func (ec *executionContext) _Commerce_Cart_DefaultPaymentSelection_gateway(ctx context.Context, field graphql.CollectedField, obj *cart.DefaultPaymentSelection) (ret graphql.Marshaler) { 12361 fc, err := ec.fieldContext_Commerce_Cart_DefaultPaymentSelection_gateway(ctx, field) 12362 if err != nil { 12363 return graphql.Null 12364 } 12365 ctx = graphql.WithFieldContext(ctx, fc) 12366 defer func() { 12367 if r := recover(); r != nil { 12368 ec.Error(ctx, ec.Recover(ctx, r)) 12369 ret = graphql.Null 12370 } 12371 }() 12372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12373 ctx = rctx // use context from middleware stack in children 12374 return obj.Gateway(), nil 12375 }) 12376 if err != nil { 12377 ec.Error(ctx, err) 12378 return graphql.Null 12379 } 12380 if resTmp == nil { 12381 if !graphql.HasFieldError(ctx, fc) { 12382 ec.Errorf(ctx, "must not be null") 12383 } 12384 return graphql.Null 12385 } 12386 res := resTmp.(string) 12387 fc.Result = res 12388 return ec.marshalNString2string(ctx, field.Selections, res) 12389 } 12390 12391 func (ec *executionContext) fieldContext_Commerce_Cart_DefaultPaymentSelection_gateway(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12392 fc = &graphql.FieldContext{ 12393 Object: "Commerce_Cart_DefaultPaymentSelection", 12394 Field: field, 12395 IsMethod: true, 12396 IsResolver: false, 12397 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12398 return nil, errors.New("field of type String does not have child fields") 12399 }, 12400 } 12401 return fc, nil 12402 } 12403 12404 func (ec *executionContext) _Commerce_Cart_DefaultPaymentSelection_totalValue(ctx context.Context, field graphql.CollectedField, obj *cart.DefaultPaymentSelection) (ret graphql.Marshaler) { 12405 fc, err := ec.fieldContext_Commerce_Cart_DefaultPaymentSelection_totalValue(ctx, field) 12406 if err != nil { 12407 return graphql.Null 12408 } 12409 ctx = graphql.WithFieldContext(ctx, fc) 12410 defer func() { 12411 if r := recover(); r != nil { 12412 ec.Error(ctx, ec.Recover(ctx, r)) 12413 ret = graphql.Null 12414 } 12415 }() 12416 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12417 ctx = rctx // use context from middleware stack in children 12418 return obj.TotalValue(), nil 12419 }) 12420 if err != nil { 12421 ec.Error(ctx, err) 12422 return graphql.Null 12423 } 12424 if resTmp == nil { 12425 if !graphql.HasFieldError(ctx, fc) { 12426 ec.Errorf(ctx, "must not be null") 12427 } 12428 return graphql.Null 12429 } 12430 res := resTmp.(domain.Price) 12431 fc.Result = res 12432 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12433 } 12434 12435 func (ec *executionContext) fieldContext_Commerce_Cart_DefaultPaymentSelection_totalValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12436 fc = &graphql.FieldContext{ 12437 Object: "Commerce_Cart_DefaultPaymentSelection", 12438 Field: field, 12439 IsMethod: true, 12440 IsResolver: false, 12441 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12442 switch field.Name { 12443 case "amount": 12444 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12445 case "currency": 12446 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12447 } 12448 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12449 }, 12450 } 12451 return fc, nil 12452 } 12453 12454 func (ec *executionContext) _Commerce_Cart_DefaultPaymentSelection_cartSplit(ctx context.Context, field graphql.CollectedField, obj *cart.DefaultPaymentSelection) (ret graphql.Marshaler) { 12455 fc, err := ec.fieldContext_Commerce_Cart_DefaultPaymentSelection_cartSplit(ctx, field) 12456 if err != nil { 12457 return graphql.Null 12458 } 12459 ctx = graphql.WithFieldContext(ctx, fc) 12460 defer func() { 12461 if r := recover(); r != nil { 12462 ec.Error(ctx, ec.Recover(ctx, r)) 12463 ret = graphql.Null 12464 } 12465 }() 12466 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12467 ctx = rctx // use context from middleware stack in children 12468 return ec.resolvers.Commerce_Cart_DefaultPaymentSelection().CartSplit(rctx, obj) 12469 }) 12470 if err != nil { 12471 ec.Error(ctx, err) 12472 return graphql.Null 12473 } 12474 if resTmp == nil { 12475 return graphql.Null 12476 } 12477 res := resTmp.([]*dto.PaymentSelectionSplit) 12478 fc.Result = res 12479 return ec.marshalOCommerce_Cart_PaymentSelection_Split2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPaymentSelectionSplitᚄ(ctx, field.Selections, res) 12480 } 12481 12482 func (ec *executionContext) fieldContext_Commerce_Cart_DefaultPaymentSelection_cartSplit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12483 fc = &graphql.FieldContext{ 12484 Object: "Commerce_Cart_DefaultPaymentSelection", 12485 Field: field, 12486 IsMethod: true, 12487 IsResolver: true, 12488 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12489 switch field.Name { 12490 case "qualifier": 12491 return ec.fieldContext_Commerce_Cart_PaymentSelection_Split_qualifier(ctx, field) 12492 case "charge": 12493 return ec.fieldContext_Commerce_Cart_PaymentSelection_Split_charge(ctx, field) 12494 } 12495 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PaymentSelection_Split", field.Name) 12496 }, 12497 } 12498 return fc, nil 12499 } 12500 12501 func (ec *executionContext) _Commerce_Cart_Delivery_deliveryInfo(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12502 fc, err := ec.fieldContext_Commerce_Cart_Delivery_deliveryInfo(ctx, field) 12503 if err != nil { 12504 return graphql.Null 12505 } 12506 ctx = graphql.WithFieldContext(ctx, fc) 12507 defer func() { 12508 if r := recover(); r != nil { 12509 ec.Error(ctx, ec.Recover(ctx, r)) 12510 ret = graphql.Null 12511 } 12512 }() 12513 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12514 ctx = rctx // use context from middleware stack in children 12515 return obj.DeliveryInfo, nil 12516 }) 12517 if err != nil { 12518 ec.Error(ctx, err) 12519 return graphql.Null 12520 } 12521 if resTmp == nil { 12522 return graphql.Null 12523 } 12524 res := resTmp.(cart.DeliveryInfo) 12525 fc.Result = res 12526 return ec.marshalOCommerce_Cart_DeliveryInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryInfo(ctx, field.Selections, res) 12527 } 12528 12529 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_deliveryInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12530 fc = &graphql.FieldContext{ 12531 Object: "Commerce_Cart_Delivery", 12532 Field: field, 12533 IsMethod: false, 12534 IsResolver: false, 12535 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12536 switch field.Name { 12537 case "code": 12538 return ec.fieldContext_Commerce_Cart_DeliveryInfo_code(ctx, field) 12539 case "workflow": 12540 return ec.fieldContext_Commerce_Cart_DeliveryInfo_workflow(ctx, field) 12541 case "method": 12542 return ec.fieldContext_Commerce_Cart_DeliveryInfo_method(ctx, field) 12543 case "carrier": 12544 return ec.fieldContext_Commerce_Cart_DeliveryInfo_carrier(ctx, field) 12545 case "deliveryLocation": 12546 return ec.fieldContext_Commerce_Cart_DeliveryInfo_deliveryLocation(ctx, field) 12547 case "desiredTime": 12548 return ec.fieldContext_Commerce_Cart_DeliveryInfo_desiredTime(ctx, field) 12549 case "additionalData": 12550 return ec.fieldContext_Commerce_Cart_DeliveryInfo_additionalData(ctx, field) 12551 } 12552 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DeliveryInfo", field.Name) 12553 }, 12554 } 12555 return fc, nil 12556 } 12557 12558 func (ec *executionContext) _Commerce_Cart_Delivery_cartitems(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12559 fc, err := ec.fieldContext_Commerce_Cart_Delivery_cartitems(ctx, field) 12560 if err != nil { 12561 return graphql.Null 12562 } 12563 ctx = graphql.WithFieldContext(ctx, fc) 12564 defer func() { 12565 if r := recover(); r != nil { 12566 ec.Error(ctx, ec.Recover(ctx, r)) 12567 ret = graphql.Null 12568 } 12569 }() 12570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12571 ctx = rctx // use context from middleware stack in children 12572 return obj.Cartitems, nil 12573 }) 12574 if err != nil { 12575 ec.Error(ctx, err) 12576 return graphql.Null 12577 } 12578 if resTmp == nil { 12579 return graphql.Null 12580 } 12581 res := resTmp.([]cart.Item) 12582 fc.Result = res 12583 return ec.marshalOCommerce_Cart_Item2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItemᚄ(ctx, field.Selections, res) 12584 } 12585 12586 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_cartitems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12587 fc = &graphql.FieldContext{ 12588 Object: "Commerce_Cart_Delivery", 12589 Field: field, 12590 IsMethod: false, 12591 IsResolver: false, 12592 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12593 switch field.Name { 12594 case "id": 12595 return ec.fieldContext_Commerce_Cart_Item_id(ctx, field) 12596 case "externalReference": 12597 return ec.fieldContext_Commerce_Cart_Item_externalReference(ctx, field) 12598 case "marketplaceCode": 12599 return ec.fieldContext_Commerce_Cart_Item_marketplaceCode(ctx, field) 12600 case "variantMarketPlaceCode": 12601 return ec.fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(ctx, field) 12602 case "productName": 12603 return ec.fieldContext_Commerce_Cart_Item_productName(ctx, field) 12604 case "sourceID": 12605 return ec.fieldContext_Commerce_Cart_Item_sourceID(ctx, field) 12606 case "qty": 12607 return ec.fieldContext_Commerce_Cart_Item_qty(ctx, field) 12608 case "additionalDataKeys": 12609 return ec.fieldContext_Commerce_Cart_Item_additionalDataKeys(ctx, field) 12610 case "additionalDataValues": 12611 return ec.fieldContext_Commerce_Cart_Item_additionalDataValues(ctx, field) 12612 case "getAdditionalData": 12613 return ec.fieldContext_Commerce_Cart_Item_getAdditionalData(ctx, field) 12614 case "hasAdditionalDataKey": 12615 return ec.fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx, field) 12616 case "singlePriceGross": 12617 return ec.fieldContext_Commerce_Cart_Item_singlePriceGross(ctx, field) 12618 case "singlePriceNet": 12619 return ec.fieldContext_Commerce_Cart_Item_singlePriceNet(ctx, field) 12620 case "rowPriceGross": 12621 return ec.fieldContext_Commerce_Cart_Item_rowPriceGross(ctx, field) 12622 case "rowPriceNet": 12623 return ec.fieldContext_Commerce_Cart_Item_rowPriceNet(ctx, field) 12624 case "appliedDiscounts": 12625 return ec.fieldContext_Commerce_Cart_Item_appliedDiscounts(ctx, field) 12626 } 12627 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Item", field.Name) 12628 }, 12629 } 12630 return fc, nil 12631 } 12632 12633 func (ec *executionContext) _Commerce_Cart_Delivery_shippingItem(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12634 fc, err := ec.fieldContext_Commerce_Cart_Delivery_shippingItem(ctx, field) 12635 if err != nil { 12636 return graphql.Null 12637 } 12638 ctx = graphql.WithFieldContext(ctx, fc) 12639 defer func() { 12640 if r := recover(); r != nil { 12641 ec.Error(ctx, ec.Recover(ctx, r)) 12642 ret = graphql.Null 12643 } 12644 }() 12645 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12646 ctx = rctx // use context from middleware stack in children 12647 return obj.ShippingItem, nil 12648 }) 12649 if err != nil { 12650 ec.Error(ctx, err) 12651 return graphql.Null 12652 } 12653 if resTmp == nil { 12654 return graphql.Null 12655 } 12656 res := resTmp.(cart.ShippingItem) 12657 fc.Result = res 12658 return ec.marshalOCommerce_Cart_ShippingItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐShippingItem(ctx, field.Selections, res) 12659 } 12660 12661 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_shippingItem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12662 fc = &graphql.FieldContext{ 12663 Object: "Commerce_Cart_Delivery", 12664 Field: field, 12665 IsMethod: false, 12666 IsResolver: false, 12667 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12668 switch field.Name { 12669 case "title": 12670 return ec.fieldContext_Commerce_Cart_ShippingItem_title(ctx, field) 12671 case "priceNet": 12672 return ec.fieldContext_Commerce_Cart_ShippingItem_priceNet(ctx, field) 12673 case "taxAmount": 12674 return ec.fieldContext_Commerce_Cart_ShippingItem_taxAmount(ctx, field) 12675 case "priceGross": 12676 return ec.fieldContext_Commerce_Cart_ShippingItem_priceGross(ctx, field) 12677 case "appliedDiscounts": 12678 return ec.fieldContext_Commerce_Cart_ShippingItem_appliedDiscounts(ctx, field) 12679 case "totalWithDiscountInclTax": 12680 return ec.fieldContext_Commerce_Cart_ShippingItem_totalWithDiscountInclTax(ctx, field) 12681 case "tax": 12682 return ec.fieldContext_Commerce_Cart_ShippingItem_tax(ctx, field) 12683 } 12684 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_ShippingItem", field.Name) 12685 }, 12686 } 12687 return fc, nil 12688 } 12689 12690 func (ec *executionContext) _Commerce_Cart_Delivery_subTotalGross(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12691 fc, err := ec.fieldContext_Commerce_Cart_Delivery_subTotalGross(ctx, field) 12692 if err != nil { 12693 return graphql.Null 12694 } 12695 ctx = graphql.WithFieldContext(ctx, fc) 12696 defer func() { 12697 if r := recover(); r != nil { 12698 ec.Error(ctx, ec.Recover(ctx, r)) 12699 ret = graphql.Null 12700 } 12701 }() 12702 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12703 ctx = rctx // use context from middleware stack in children 12704 return obj.SubTotalGross, nil 12705 }) 12706 if err != nil { 12707 ec.Error(ctx, err) 12708 return graphql.Null 12709 } 12710 if resTmp == nil { 12711 return graphql.Null 12712 } 12713 res := resTmp.(domain.Price) 12714 fc.Result = res 12715 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12716 } 12717 12718 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_subTotalGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12719 fc = &graphql.FieldContext{ 12720 Object: "Commerce_Cart_Delivery", 12721 Field: field, 12722 IsMethod: false, 12723 IsResolver: false, 12724 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12725 switch field.Name { 12726 case "amount": 12727 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12728 case "currency": 12729 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12730 } 12731 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12732 }, 12733 } 12734 return fc, nil 12735 } 12736 12737 func (ec *executionContext) _Commerce_Cart_Delivery_grandTotal(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12738 fc, err := ec.fieldContext_Commerce_Cart_Delivery_grandTotal(ctx, field) 12739 if err != nil { 12740 return graphql.Null 12741 } 12742 ctx = graphql.WithFieldContext(ctx, fc) 12743 defer func() { 12744 if r := recover(); r != nil { 12745 ec.Error(ctx, ec.Recover(ctx, r)) 12746 ret = graphql.Null 12747 } 12748 }() 12749 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12750 ctx = rctx // use context from middleware stack in children 12751 return obj.GrandTotal, nil 12752 }) 12753 if err != nil { 12754 ec.Error(ctx, err) 12755 return graphql.Null 12756 } 12757 if resTmp == nil { 12758 return graphql.Null 12759 } 12760 res := resTmp.(domain.Price) 12761 fc.Result = res 12762 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12763 } 12764 12765 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_grandTotal(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12766 fc = &graphql.FieldContext{ 12767 Object: "Commerce_Cart_Delivery", 12768 Field: field, 12769 IsMethod: false, 12770 IsResolver: false, 12771 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12772 switch field.Name { 12773 case "amount": 12774 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12775 case "currency": 12776 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12777 } 12778 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12779 }, 12780 } 12781 return fc, nil 12782 } 12783 12784 func (ec *executionContext) _Commerce_Cart_Delivery_sumTotalTaxAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12785 fc, err := ec.fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field) 12786 if err != nil { 12787 return graphql.Null 12788 } 12789 ctx = graphql.WithFieldContext(ctx, fc) 12790 defer func() { 12791 if r := recover(); r != nil { 12792 ec.Error(ctx, ec.Recover(ctx, r)) 12793 ret = graphql.Null 12794 } 12795 }() 12796 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12797 ctx = rctx // use context from middleware stack in children 12798 return obj.SumTotalTaxAmount(), nil 12799 }) 12800 if err != nil { 12801 ec.Error(ctx, err) 12802 return graphql.Null 12803 } 12804 if resTmp == nil { 12805 return graphql.Null 12806 } 12807 res := resTmp.(domain.Price) 12808 fc.Result = res 12809 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12810 } 12811 12812 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_sumTotalTaxAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12813 fc = &graphql.FieldContext{ 12814 Object: "Commerce_Cart_Delivery", 12815 Field: field, 12816 IsMethod: true, 12817 IsResolver: false, 12818 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12819 switch field.Name { 12820 case "amount": 12821 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12822 case "currency": 12823 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12824 } 12825 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12826 }, 12827 } 12828 return fc, nil 12829 } 12830 12831 func (ec *executionContext) _Commerce_Cart_Delivery_subTotalNet(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12832 fc, err := ec.fieldContext_Commerce_Cart_Delivery_subTotalNet(ctx, field) 12833 if err != nil { 12834 return graphql.Null 12835 } 12836 ctx = graphql.WithFieldContext(ctx, fc) 12837 defer func() { 12838 if r := recover(); r != nil { 12839 ec.Error(ctx, ec.Recover(ctx, r)) 12840 ret = graphql.Null 12841 } 12842 }() 12843 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12844 ctx = rctx // use context from middleware stack in children 12845 return obj.SubTotalNet, nil 12846 }) 12847 if err != nil { 12848 ec.Error(ctx, err) 12849 return graphql.Null 12850 } 12851 if resTmp == nil { 12852 return graphql.Null 12853 } 12854 res := resTmp.(domain.Price) 12855 fc.Result = res 12856 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12857 } 12858 12859 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_subTotalNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12860 fc = &graphql.FieldContext{ 12861 Object: "Commerce_Cart_Delivery", 12862 Field: field, 12863 IsMethod: false, 12864 IsResolver: false, 12865 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12866 switch field.Name { 12867 case "amount": 12868 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12869 case "currency": 12870 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12871 } 12872 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12873 }, 12874 } 12875 return fc, nil 12876 } 12877 12878 func (ec *executionContext) _Commerce_Cart_Delivery_totalDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12879 fc, err := ec.fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(ctx, field) 12880 if err != nil { 12881 return graphql.Null 12882 } 12883 ctx = graphql.WithFieldContext(ctx, fc) 12884 defer func() { 12885 if r := recover(); r != nil { 12886 ec.Error(ctx, ec.Recover(ctx, r)) 12887 ret = graphql.Null 12888 } 12889 }() 12890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12891 ctx = rctx // use context from middleware stack in children 12892 return obj.TotalDiscountAmount, nil 12893 }) 12894 if err != nil { 12895 ec.Error(ctx, err) 12896 return graphql.Null 12897 } 12898 if resTmp == nil { 12899 return graphql.Null 12900 } 12901 res := resTmp.(domain.Price) 12902 fc.Result = res 12903 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12904 } 12905 12906 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_totalDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12907 fc = &graphql.FieldContext{ 12908 Object: "Commerce_Cart_Delivery", 12909 Field: field, 12910 IsMethod: false, 12911 IsResolver: false, 12912 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12913 switch field.Name { 12914 case "amount": 12915 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12916 case "currency": 12917 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12918 } 12919 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12920 }, 12921 } 12922 return fc, nil 12923 } 12924 12925 func (ec *executionContext) _Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12926 fc, err := ec.fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field) 12927 if err != nil { 12928 return graphql.Null 12929 } 12930 ctx = graphql.WithFieldContext(ctx, fc) 12931 defer func() { 12932 if r := recover(); r != nil { 12933 ec.Error(ctx, ec.Recover(ctx, r)) 12934 ret = graphql.Null 12935 } 12936 }() 12937 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12938 ctx = rctx // use context from middleware stack in children 12939 return obj.NonItemRelatedDiscountAmount, nil 12940 }) 12941 if err != nil { 12942 ec.Error(ctx, err) 12943 return graphql.Null 12944 } 12945 if resTmp == nil { 12946 return graphql.Null 12947 } 12948 res := resTmp.(domain.Price) 12949 fc.Result = res 12950 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12951 } 12952 12953 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 12954 fc = &graphql.FieldContext{ 12955 Object: "Commerce_Cart_Delivery", 12956 Field: field, 12957 IsMethod: false, 12958 IsResolver: false, 12959 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 12960 switch field.Name { 12961 case "amount": 12962 return ec.fieldContext_Commerce_Price_amount(ctx, field) 12963 case "currency": 12964 return ec.fieldContext_Commerce_Price_currency(ctx, field) 12965 } 12966 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 12967 }, 12968 } 12969 return fc, nil 12970 } 12971 12972 func (ec *executionContext) _Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 12973 fc, err := ec.fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field) 12974 if err != nil { 12975 return graphql.Null 12976 } 12977 ctx = graphql.WithFieldContext(ctx, fc) 12978 defer func() { 12979 if r := recover(); r != nil { 12980 ec.Error(ctx, ec.Recover(ctx, r)) 12981 ret = graphql.Null 12982 } 12983 }() 12984 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12985 ctx = rctx // use context from middleware stack in children 12986 return obj.ItemRelatedDiscountAmount, nil 12987 }) 12988 if err != nil { 12989 ec.Error(ctx, err) 12990 return graphql.Null 12991 } 12992 if resTmp == nil { 12993 return graphql.Null 12994 } 12995 res := resTmp.(domain.Price) 12996 fc.Result = res 12997 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 12998 } 12999 13000 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_itemRelatedDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13001 fc = &graphql.FieldContext{ 13002 Object: "Commerce_Cart_Delivery", 13003 Field: field, 13004 IsMethod: false, 13005 IsResolver: false, 13006 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13007 switch field.Name { 13008 case "amount": 13009 return ec.fieldContext_Commerce_Price_amount(ctx, field) 13010 case "currency": 13011 return ec.fieldContext_Commerce_Price_currency(ctx, field) 13012 } 13013 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 13014 }, 13015 } 13016 return fc, nil 13017 } 13018 13019 func (ec *executionContext) _Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 13020 fc, err := ec.fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field) 13021 if err != nil { 13022 return graphql.Null 13023 } 13024 ctx = graphql.WithFieldContext(ctx, fc) 13025 defer func() { 13026 if r := recover(); r != nil { 13027 ec.Error(ctx, ec.Recover(ctx, r)) 13028 ret = graphql.Null 13029 } 13030 }() 13031 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13032 ctx = rctx // use context from middleware stack in children 13033 return obj.SubTotalGrossWithDiscounts, nil 13034 }) 13035 if err != nil { 13036 ec.Error(ctx, err) 13037 return graphql.Null 13038 } 13039 if resTmp == nil { 13040 return graphql.Null 13041 } 13042 res := resTmp.(domain.Price) 13043 fc.Result = res 13044 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 13045 } 13046 13047 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_subTotalGrossWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13048 fc = &graphql.FieldContext{ 13049 Object: "Commerce_Cart_Delivery", 13050 Field: field, 13051 IsMethod: false, 13052 IsResolver: false, 13053 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13054 switch field.Name { 13055 case "amount": 13056 return ec.fieldContext_Commerce_Price_amount(ctx, field) 13057 case "currency": 13058 return ec.fieldContext_Commerce_Price_currency(ctx, field) 13059 } 13060 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 13061 }, 13062 } 13063 return fc, nil 13064 } 13065 13066 func (ec *executionContext) _Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 13067 fc, err := ec.fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field) 13068 if err != nil { 13069 return graphql.Null 13070 } 13071 ctx = graphql.WithFieldContext(ctx, fc) 13072 defer func() { 13073 if r := recover(); r != nil { 13074 ec.Error(ctx, ec.Recover(ctx, r)) 13075 ret = graphql.Null 13076 } 13077 }() 13078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13079 ctx = rctx // use context from middleware stack in children 13080 return obj.SubTotalNetWithDiscounts, nil 13081 }) 13082 if err != nil { 13083 ec.Error(ctx, err) 13084 return graphql.Null 13085 } 13086 if resTmp == nil { 13087 if !graphql.HasFieldError(ctx, fc) { 13088 ec.Errorf(ctx, "must not be null") 13089 } 13090 return graphql.Null 13091 } 13092 res := resTmp.(domain.Price) 13093 fc.Result = res 13094 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 13095 } 13096 13097 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_subTotalNetWithDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13098 fc = &graphql.FieldContext{ 13099 Object: "Commerce_Cart_Delivery", 13100 Field: field, 13101 IsMethod: false, 13102 IsResolver: false, 13103 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13104 switch field.Name { 13105 case "amount": 13106 return ec.fieldContext_Commerce_Price_amount(ctx, field) 13107 case "currency": 13108 return ec.fieldContext_Commerce_Price_currency(ctx, field) 13109 } 13110 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 13111 }, 13112 } 13113 return fc, nil 13114 } 13115 13116 func (ec *executionContext) _Commerce_Cart_Delivery_hasItems(ctx context.Context, field graphql.CollectedField, obj *cart.Delivery) (ret graphql.Marshaler) { 13117 fc, err := ec.fieldContext_Commerce_Cart_Delivery_hasItems(ctx, field) 13118 if err != nil { 13119 return graphql.Null 13120 } 13121 ctx = graphql.WithFieldContext(ctx, fc) 13122 defer func() { 13123 if r := recover(); r != nil { 13124 ec.Error(ctx, ec.Recover(ctx, r)) 13125 ret = graphql.Null 13126 } 13127 }() 13128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13129 ctx = rctx // use context from middleware stack in children 13130 return obj.HasItems(), nil 13131 }) 13132 if err != nil { 13133 ec.Error(ctx, err) 13134 return graphql.Null 13135 } 13136 if resTmp == nil { 13137 if !graphql.HasFieldError(ctx, fc) { 13138 ec.Errorf(ctx, "must not be null") 13139 } 13140 return graphql.Null 13141 } 13142 res := resTmp.(bool) 13143 fc.Result = res 13144 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 13145 } 13146 13147 func (ec *executionContext) fieldContext_Commerce_Cart_Delivery_hasItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13148 fc = &graphql.FieldContext{ 13149 Object: "Commerce_Cart_Delivery", 13150 Field: field, 13151 IsMethod: true, 13152 IsResolver: false, 13153 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13154 return nil, errors.New("field of type Boolean does not have child fields") 13155 }, 13156 } 13157 return fc, nil 13158 } 13159 13160 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_deliveryCode(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13161 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_deliveryCode(ctx, field) 13162 if err != nil { 13163 return graphql.Null 13164 } 13165 ctx = graphql.WithFieldContext(ctx, fc) 13166 defer func() { 13167 if r := recover(); r != nil { 13168 ec.Error(ctx, ec.Recover(ctx, r)) 13169 ret = graphql.Null 13170 } 13171 }() 13172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13173 ctx = rctx // use context from middleware stack in children 13174 return obj.DeliveryCode, nil 13175 }) 13176 if err != nil { 13177 ec.Error(ctx, err) 13178 return graphql.Null 13179 } 13180 if resTmp == nil { 13181 if !graphql.HasFieldError(ctx, fc) { 13182 ec.Errorf(ctx, "must not be null") 13183 } 13184 return graphql.Null 13185 } 13186 res := resTmp.(string) 13187 fc.Result = res 13188 return ec.marshalNString2string(ctx, field.Selections, res) 13189 } 13190 13191 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_deliveryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13192 fc = &graphql.FieldContext{ 13193 Object: "Commerce_Cart_DeliveryAddressForm", 13194 Field: field, 13195 IsMethod: false, 13196 IsResolver: false, 13197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13198 return nil, errors.New("field of type String does not have child fields") 13199 }, 13200 } 13201 return fc, nil 13202 } 13203 13204 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_formData(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13205 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_formData(ctx, field) 13206 if err != nil { 13207 return graphql.Null 13208 } 13209 ctx = graphql.WithFieldContext(ctx, fc) 13210 defer func() { 13211 if r := recover(); r != nil { 13212 ec.Error(ctx, ec.Recover(ctx, r)) 13213 ret = graphql.Null 13214 } 13215 }() 13216 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13217 ctx = rctx // use context from middleware stack in children 13218 return obj.FormData, nil 13219 }) 13220 if err != nil { 13221 ec.Error(ctx, err) 13222 return graphql.Null 13223 } 13224 if resTmp == nil { 13225 return graphql.Null 13226 } 13227 res := resTmp.(forms.AddressForm) 13228 fc.Result = res 13229 return ec.marshalOCommerce_Cart_AddressForm2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, field.Selections, res) 13230 } 13231 13232 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_formData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13233 fc = &graphql.FieldContext{ 13234 Object: "Commerce_Cart_DeliveryAddressForm", 13235 Field: field, 13236 IsMethod: false, 13237 IsResolver: false, 13238 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13239 switch field.Name { 13240 case "vat": 13241 return ec.fieldContext_Commerce_Cart_AddressForm_vat(ctx, field) 13242 case "firstname": 13243 return ec.fieldContext_Commerce_Cart_AddressForm_firstname(ctx, field) 13244 case "lastname": 13245 return ec.fieldContext_Commerce_Cart_AddressForm_lastname(ctx, field) 13246 case "middleName": 13247 return ec.fieldContext_Commerce_Cart_AddressForm_middleName(ctx, field) 13248 case "title": 13249 return ec.fieldContext_Commerce_Cart_AddressForm_title(ctx, field) 13250 case "salutation": 13251 return ec.fieldContext_Commerce_Cart_AddressForm_salutation(ctx, field) 13252 case "street": 13253 return ec.fieldContext_Commerce_Cart_AddressForm_street(ctx, field) 13254 case "streetNr": 13255 return ec.fieldContext_Commerce_Cart_AddressForm_streetNr(ctx, field) 13256 case "addressLine1": 13257 return ec.fieldContext_Commerce_Cart_AddressForm_addressLine1(ctx, field) 13258 case "addressLine2": 13259 return ec.fieldContext_Commerce_Cart_AddressForm_addressLine2(ctx, field) 13260 case "company": 13261 return ec.fieldContext_Commerce_Cart_AddressForm_company(ctx, field) 13262 case "city": 13263 return ec.fieldContext_Commerce_Cart_AddressForm_city(ctx, field) 13264 case "postCode": 13265 return ec.fieldContext_Commerce_Cart_AddressForm_postCode(ctx, field) 13266 case "state": 13267 return ec.fieldContext_Commerce_Cart_AddressForm_state(ctx, field) 13268 case "regionCode": 13269 return ec.fieldContext_Commerce_Cart_AddressForm_regionCode(ctx, field) 13270 case "country": 13271 return ec.fieldContext_Commerce_Cart_AddressForm_country(ctx, field) 13272 case "countryCode": 13273 return ec.fieldContext_Commerce_Cart_AddressForm_countryCode(ctx, field) 13274 case "phoneNumber": 13275 return ec.fieldContext_Commerce_Cart_AddressForm_phoneNumber(ctx, field) 13276 case "email": 13277 return ec.fieldContext_Commerce_Cart_AddressForm_email(ctx, field) 13278 } 13279 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AddressForm", field.Name) 13280 }, 13281 } 13282 return fc, nil 13283 } 13284 13285 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_useBillingAddress(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13286 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_useBillingAddress(ctx, field) 13287 if err != nil { 13288 return graphql.Null 13289 } 13290 ctx = graphql.WithFieldContext(ctx, fc) 13291 defer func() { 13292 if r := recover(); r != nil { 13293 ec.Error(ctx, ec.Recover(ctx, r)) 13294 ret = graphql.Null 13295 } 13296 }() 13297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13298 ctx = rctx // use context from middleware stack in children 13299 return obj.UseBillingAddress, nil 13300 }) 13301 if err != nil { 13302 ec.Error(ctx, err) 13303 return graphql.Null 13304 } 13305 if resTmp == nil { 13306 if !graphql.HasFieldError(ctx, fc) { 13307 ec.Errorf(ctx, "must not be null") 13308 } 13309 return graphql.Null 13310 } 13311 res := resTmp.(bool) 13312 fc.Result = res 13313 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 13314 } 13315 13316 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_useBillingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13317 fc = &graphql.FieldContext{ 13318 Object: "Commerce_Cart_DeliveryAddressForm", 13319 Field: field, 13320 IsMethod: false, 13321 IsResolver: false, 13322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13323 return nil, errors.New("field of type Boolean does not have child fields") 13324 }, 13325 } 13326 return fc, nil 13327 } 13328 13329 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_method(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13330 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_method(ctx, field) 13331 if err != nil { 13332 return graphql.Null 13333 } 13334 ctx = graphql.WithFieldContext(ctx, fc) 13335 defer func() { 13336 if r := recover(); r != nil { 13337 ec.Error(ctx, ec.Recover(ctx, r)) 13338 ret = graphql.Null 13339 } 13340 }() 13341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13342 ctx = rctx // use context from middleware stack in children 13343 return obj.Method, nil 13344 }) 13345 if err != nil { 13346 ec.Error(ctx, err) 13347 return graphql.Null 13348 } 13349 if resTmp == nil { 13350 return graphql.Null 13351 } 13352 res := resTmp.(string) 13353 fc.Result = res 13354 return ec.marshalOString2string(ctx, field.Selections, res) 13355 } 13356 13357 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13358 fc = &graphql.FieldContext{ 13359 Object: "Commerce_Cart_DeliveryAddressForm", 13360 Field: field, 13361 IsMethod: false, 13362 IsResolver: false, 13363 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13364 return nil, errors.New("field of type String does not have child fields") 13365 }, 13366 } 13367 return fc, nil 13368 } 13369 13370 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_carrier(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13371 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_carrier(ctx, field) 13372 if err != nil { 13373 return graphql.Null 13374 } 13375 ctx = graphql.WithFieldContext(ctx, fc) 13376 defer func() { 13377 if r := recover(); r != nil { 13378 ec.Error(ctx, ec.Recover(ctx, r)) 13379 ret = graphql.Null 13380 } 13381 }() 13382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13383 ctx = rctx // use context from middleware stack in children 13384 return obj.Carrier, nil 13385 }) 13386 if err != nil { 13387 ec.Error(ctx, err) 13388 return graphql.Null 13389 } 13390 if resTmp == nil { 13391 return graphql.Null 13392 } 13393 res := resTmp.(string) 13394 fc.Result = res 13395 return ec.marshalOString2string(ctx, field.Selections, res) 13396 } 13397 13398 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_carrier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13399 fc = &graphql.FieldContext{ 13400 Object: "Commerce_Cart_DeliveryAddressForm", 13401 Field: field, 13402 IsMethod: false, 13403 IsResolver: false, 13404 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13405 return nil, errors.New("field of type String does not have child fields") 13406 }, 13407 } 13408 return fc, nil 13409 } 13410 13411 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_desiredTime(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13412 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_desiredTime(ctx, field) 13413 if err != nil { 13414 return graphql.Null 13415 } 13416 ctx = graphql.WithFieldContext(ctx, fc) 13417 defer func() { 13418 if r := recover(); r != nil { 13419 ec.Error(ctx, ec.Recover(ctx, r)) 13420 ret = graphql.Null 13421 } 13422 }() 13423 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13424 ctx = rctx // use context from middleware stack in children 13425 return obj.DesiredTime, nil 13426 }) 13427 if err != nil { 13428 ec.Error(ctx, err) 13429 return graphql.Null 13430 } 13431 if resTmp == nil { 13432 return graphql.Null 13433 } 13434 res := resTmp.(time.Time) 13435 fc.Result = res 13436 return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) 13437 } 13438 13439 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_desiredTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13440 fc = &graphql.FieldContext{ 13441 Object: "Commerce_Cart_DeliveryAddressForm", 13442 Field: field, 13443 IsMethod: false, 13444 IsResolver: false, 13445 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13446 return nil, errors.New("field of type Time does not have child fields") 13447 }, 13448 } 13449 return fc, nil 13450 } 13451 13452 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_validationInfo(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13453 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_validationInfo(ctx, field) 13454 if err != nil { 13455 return graphql.Null 13456 } 13457 ctx = graphql.WithFieldContext(ctx, fc) 13458 defer func() { 13459 if r := recover(); r != nil { 13460 ec.Error(ctx, ec.Recover(ctx, r)) 13461 ret = graphql.Null 13462 } 13463 }() 13464 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13465 ctx = rctx // use context from middleware stack in children 13466 return obj.ValidationInfo, nil 13467 }) 13468 if err != nil { 13469 ec.Error(ctx, err) 13470 return graphql.Null 13471 } 13472 if resTmp == nil { 13473 return graphql.Null 13474 } 13475 res := resTmp.(dto.ValidationInfo) 13476 fc.Result = res 13477 return ec.marshalOCommerce_Cart_Form_ValidationInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐValidationInfo(ctx, field.Selections, res) 13478 } 13479 13480 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_validationInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13481 fc = &graphql.FieldContext{ 13482 Object: "Commerce_Cart_DeliveryAddressForm", 13483 Field: field, 13484 IsMethod: false, 13485 IsResolver: false, 13486 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13487 switch field.Name { 13488 case "fieldErrors": 13489 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx, field) 13490 case "generalErrors": 13491 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_generalErrors(ctx, field) 13492 } 13493 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Form_ValidationInfo", field.Name) 13494 }, 13495 } 13496 return fc, nil 13497 } 13498 13499 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm_processed(ctx context.Context, field graphql.CollectedField, obj *dto.DeliveryAddressForm) (ret graphql.Marshaler) { 13500 fc, err := ec.fieldContext_Commerce_Cart_DeliveryAddressForm_processed(ctx, field) 13501 if err != nil { 13502 return graphql.Null 13503 } 13504 ctx = graphql.WithFieldContext(ctx, fc) 13505 defer func() { 13506 if r := recover(); r != nil { 13507 ec.Error(ctx, ec.Recover(ctx, r)) 13508 ret = graphql.Null 13509 } 13510 }() 13511 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13512 ctx = rctx // use context from middleware stack in children 13513 return obj.Processed, nil 13514 }) 13515 if err != nil { 13516 ec.Error(ctx, err) 13517 return graphql.Null 13518 } 13519 if resTmp == nil { 13520 return graphql.Null 13521 } 13522 res := resTmp.(bool) 13523 fc.Result = res 13524 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 13525 } 13526 13527 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryAddressForm_processed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13528 fc = &graphql.FieldContext{ 13529 Object: "Commerce_Cart_DeliveryAddressForm", 13530 Field: field, 13531 IsMethod: false, 13532 IsResolver: false, 13533 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13534 return nil, errors.New("field of type Boolean does not have child fields") 13535 }, 13536 } 13537 return fc, nil 13538 } 13539 13540 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_code(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13541 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_code(ctx, field) 13542 if err != nil { 13543 return graphql.Null 13544 } 13545 ctx = graphql.WithFieldContext(ctx, fc) 13546 defer func() { 13547 if r := recover(); r != nil { 13548 ec.Error(ctx, ec.Recover(ctx, r)) 13549 ret = graphql.Null 13550 } 13551 }() 13552 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13553 ctx = rctx // use context from middleware stack in children 13554 return obj.Code, nil 13555 }) 13556 if err != nil { 13557 ec.Error(ctx, err) 13558 return graphql.Null 13559 } 13560 if resTmp == nil { 13561 if !graphql.HasFieldError(ctx, fc) { 13562 ec.Errorf(ctx, "must not be null") 13563 } 13564 return graphql.Null 13565 } 13566 res := resTmp.(string) 13567 fc.Result = res 13568 return ec.marshalNString2string(ctx, field.Selections, res) 13569 } 13570 13571 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13572 fc = &graphql.FieldContext{ 13573 Object: "Commerce_Cart_DeliveryInfo", 13574 Field: field, 13575 IsMethod: false, 13576 IsResolver: false, 13577 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13578 return nil, errors.New("field of type String does not have child fields") 13579 }, 13580 } 13581 return fc, nil 13582 } 13583 13584 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_workflow(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13585 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_workflow(ctx, field) 13586 if err != nil { 13587 return graphql.Null 13588 } 13589 ctx = graphql.WithFieldContext(ctx, fc) 13590 defer func() { 13591 if r := recover(); r != nil { 13592 ec.Error(ctx, ec.Recover(ctx, r)) 13593 ret = graphql.Null 13594 } 13595 }() 13596 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13597 ctx = rctx // use context from middleware stack in children 13598 return obj.Workflow, nil 13599 }) 13600 if err != nil { 13601 ec.Error(ctx, err) 13602 return graphql.Null 13603 } 13604 if resTmp == nil { 13605 if !graphql.HasFieldError(ctx, fc) { 13606 ec.Errorf(ctx, "must not be null") 13607 } 13608 return graphql.Null 13609 } 13610 res := resTmp.(string) 13611 fc.Result = res 13612 return ec.marshalNString2string(ctx, field.Selections, res) 13613 } 13614 13615 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_workflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13616 fc = &graphql.FieldContext{ 13617 Object: "Commerce_Cart_DeliveryInfo", 13618 Field: field, 13619 IsMethod: false, 13620 IsResolver: false, 13621 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13622 return nil, errors.New("field of type String does not have child fields") 13623 }, 13624 } 13625 return fc, nil 13626 } 13627 13628 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_method(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13629 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_method(ctx, field) 13630 if err != nil { 13631 return graphql.Null 13632 } 13633 ctx = graphql.WithFieldContext(ctx, fc) 13634 defer func() { 13635 if r := recover(); r != nil { 13636 ec.Error(ctx, ec.Recover(ctx, r)) 13637 ret = graphql.Null 13638 } 13639 }() 13640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13641 ctx = rctx // use context from middleware stack in children 13642 return obj.Method, nil 13643 }) 13644 if err != nil { 13645 ec.Error(ctx, err) 13646 return graphql.Null 13647 } 13648 if resTmp == nil { 13649 if !graphql.HasFieldError(ctx, fc) { 13650 ec.Errorf(ctx, "must not be null") 13651 } 13652 return graphql.Null 13653 } 13654 res := resTmp.(string) 13655 fc.Result = res 13656 return ec.marshalNString2string(ctx, field.Selections, res) 13657 } 13658 13659 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13660 fc = &graphql.FieldContext{ 13661 Object: "Commerce_Cart_DeliveryInfo", 13662 Field: field, 13663 IsMethod: false, 13664 IsResolver: false, 13665 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13666 return nil, errors.New("field of type String does not have child fields") 13667 }, 13668 } 13669 return fc, nil 13670 } 13671 13672 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_carrier(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13673 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_carrier(ctx, field) 13674 if err != nil { 13675 return graphql.Null 13676 } 13677 ctx = graphql.WithFieldContext(ctx, fc) 13678 defer func() { 13679 if r := recover(); r != nil { 13680 ec.Error(ctx, ec.Recover(ctx, r)) 13681 ret = graphql.Null 13682 } 13683 }() 13684 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13685 ctx = rctx // use context from middleware stack in children 13686 return obj.Carrier, nil 13687 }) 13688 if err != nil { 13689 ec.Error(ctx, err) 13690 return graphql.Null 13691 } 13692 if resTmp == nil { 13693 if !graphql.HasFieldError(ctx, fc) { 13694 ec.Errorf(ctx, "must not be null") 13695 } 13696 return graphql.Null 13697 } 13698 res := resTmp.(string) 13699 fc.Result = res 13700 return ec.marshalNString2string(ctx, field.Selections, res) 13701 } 13702 13703 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_carrier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13704 fc = &graphql.FieldContext{ 13705 Object: "Commerce_Cart_DeliveryInfo", 13706 Field: field, 13707 IsMethod: false, 13708 IsResolver: false, 13709 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13710 return nil, errors.New("field of type String does not have child fields") 13711 }, 13712 } 13713 return fc, nil 13714 } 13715 13716 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_deliveryLocation(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13717 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_deliveryLocation(ctx, field) 13718 if err != nil { 13719 return graphql.Null 13720 } 13721 ctx = graphql.WithFieldContext(ctx, fc) 13722 defer func() { 13723 if r := recover(); r != nil { 13724 ec.Error(ctx, ec.Recover(ctx, r)) 13725 ret = graphql.Null 13726 } 13727 }() 13728 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13729 ctx = rctx // use context from middleware stack in children 13730 return obj.DeliveryLocation, nil 13731 }) 13732 if err != nil { 13733 ec.Error(ctx, err) 13734 return graphql.Null 13735 } 13736 if resTmp == nil { 13737 return graphql.Null 13738 } 13739 res := resTmp.(cart.DeliveryLocation) 13740 fc.Result = res 13741 return ec.marshalOCommerce_Cart_DeliveryLocation2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryLocation(ctx, field.Selections, res) 13742 } 13743 13744 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_deliveryLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13745 fc = &graphql.FieldContext{ 13746 Object: "Commerce_Cart_DeliveryInfo", 13747 Field: field, 13748 IsMethod: false, 13749 IsResolver: false, 13750 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13751 switch field.Name { 13752 case "type": 13753 return ec.fieldContext_Commerce_Cart_DeliveryLocation_type(ctx, field) 13754 case "address": 13755 return ec.fieldContext_Commerce_Cart_DeliveryLocation_address(ctx, field) 13756 case "useBillingAddress": 13757 return ec.fieldContext_Commerce_Cart_DeliveryLocation_useBillingAddress(ctx, field) 13758 case "code": 13759 return ec.fieldContext_Commerce_Cart_DeliveryLocation_code(ctx, field) 13760 } 13761 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DeliveryLocation", field.Name) 13762 }, 13763 } 13764 return fc, nil 13765 } 13766 13767 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_desiredTime(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13768 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_desiredTime(ctx, field) 13769 if err != nil { 13770 return graphql.Null 13771 } 13772 ctx = graphql.WithFieldContext(ctx, fc) 13773 defer func() { 13774 if r := recover(); r != nil { 13775 ec.Error(ctx, ec.Recover(ctx, r)) 13776 ret = graphql.Null 13777 } 13778 }() 13779 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13780 ctx = rctx // use context from middleware stack in children 13781 return obj.DesiredTime, nil 13782 }) 13783 if err != nil { 13784 ec.Error(ctx, err) 13785 return graphql.Null 13786 } 13787 if resTmp == nil { 13788 return graphql.Null 13789 } 13790 res := resTmp.(time.Time) 13791 fc.Result = res 13792 return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) 13793 } 13794 13795 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_desiredTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13796 fc = &graphql.FieldContext{ 13797 Object: "Commerce_Cart_DeliveryInfo", 13798 Field: field, 13799 IsMethod: false, 13800 IsResolver: false, 13801 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13802 return nil, errors.New("field of type Time does not have child fields") 13803 }, 13804 } 13805 return fc, nil 13806 } 13807 13808 func (ec *executionContext) _Commerce_Cart_DeliveryInfo_additionalData(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryInfo) (ret graphql.Marshaler) { 13809 fc, err := ec.fieldContext_Commerce_Cart_DeliveryInfo_additionalData(ctx, field) 13810 if err != nil { 13811 return graphql.Null 13812 } 13813 ctx = graphql.WithFieldContext(ctx, fc) 13814 defer func() { 13815 if r := recover(); r != nil { 13816 ec.Error(ctx, ec.Recover(ctx, r)) 13817 ret = graphql.Null 13818 } 13819 }() 13820 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13821 ctx = rctx // use context from middleware stack in children 13822 return ec.resolvers.Commerce_Cart_DeliveryInfo().AdditionalData(rctx, obj) 13823 }) 13824 if err != nil { 13825 ec.Error(ctx, err) 13826 return graphql.Null 13827 } 13828 if resTmp == nil { 13829 if !graphql.HasFieldError(ctx, fc) { 13830 ec.Errorf(ctx, "must not be null") 13831 } 13832 return graphql.Null 13833 } 13834 res := resTmp.(*dto.CustomAttributes) 13835 fc.Result = res 13836 return ec.marshalNCommerce_Cart_CustomAttributes2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCustomAttributes(ctx, field.Selections, res) 13837 } 13838 13839 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryInfo_additionalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13840 fc = &graphql.FieldContext{ 13841 Object: "Commerce_Cart_DeliveryInfo", 13842 Field: field, 13843 IsMethod: true, 13844 IsResolver: true, 13845 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13846 switch field.Name { 13847 case "get": 13848 return ec.fieldContext_Commerce_Cart_CustomAttributes_get(ctx, field) 13849 } 13850 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_CustomAttributes", field.Name) 13851 }, 13852 } 13853 return fc, nil 13854 } 13855 13856 func (ec *executionContext) _Commerce_Cart_DeliveryLocation_type(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryLocation) (ret graphql.Marshaler) { 13857 fc, err := ec.fieldContext_Commerce_Cart_DeliveryLocation_type(ctx, field) 13858 if err != nil { 13859 return graphql.Null 13860 } 13861 ctx = graphql.WithFieldContext(ctx, fc) 13862 defer func() { 13863 if r := recover(); r != nil { 13864 ec.Error(ctx, ec.Recover(ctx, r)) 13865 ret = graphql.Null 13866 } 13867 }() 13868 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13869 ctx = rctx // use context from middleware stack in children 13870 return obj.Type, nil 13871 }) 13872 if err != nil { 13873 ec.Error(ctx, err) 13874 return graphql.Null 13875 } 13876 if resTmp == nil { 13877 if !graphql.HasFieldError(ctx, fc) { 13878 ec.Errorf(ctx, "must not be null") 13879 } 13880 return graphql.Null 13881 } 13882 res := resTmp.(string) 13883 fc.Result = res 13884 return ec.marshalNString2string(ctx, field.Selections, res) 13885 } 13886 13887 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryLocation_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13888 fc = &graphql.FieldContext{ 13889 Object: "Commerce_Cart_DeliveryLocation", 13890 Field: field, 13891 IsMethod: false, 13892 IsResolver: false, 13893 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13894 return nil, errors.New("field of type String does not have child fields") 13895 }, 13896 } 13897 return fc, nil 13898 } 13899 13900 func (ec *executionContext) _Commerce_Cart_DeliveryLocation_address(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryLocation) (ret graphql.Marshaler) { 13901 fc, err := ec.fieldContext_Commerce_Cart_DeliveryLocation_address(ctx, field) 13902 if err != nil { 13903 return graphql.Null 13904 } 13905 ctx = graphql.WithFieldContext(ctx, fc) 13906 defer func() { 13907 if r := recover(); r != nil { 13908 ec.Error(ctx, ec.Recover(ctx, r)) 13909 ret = graphql.Null 13910 } 13911 }() 13912 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13913 ctx = rctx // use context from middleware stack in children 13914 return obj.Address, nil 13915 }) 13916 if err != nil { 13917 ec.Error(ctx, err) 13918 return graphql.Null 13919 } 13920 if resTmp == nil { 13921 return graphql.Null 13922 } 13923 res := resTmp.(*cart.Address) 13924 fc.Result = res 13925 return ec.marshalOCommerce_Cart_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAddress(ctx, field.Selections, res) 13926 } 13927 13928 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryLocation_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 13929 fc = &graphql.FieldContext{ 13930 Object: "Commerce_Cart_DeliveryLocation", 13931 Field: field, 13932 IsMethod: false, 13933 IsResolver: false, 13934 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 13935 switch field.Name { 13936 case "vat": 13937 return ec.fieldContext_Commerce_Cart_Address_vat(ctx, field) 13938 case "firstname": 13939 return ec.fieldContext_Commerce_Cart_Address_firstname(ctx, field) 13940 case "lastname": 13941 return ec.fieldContext_Commerce_Cart_Address_lastname(ctx, field) 13942 case "middleName": 13943 return ec.fieldContext_Commerce_Cart_Address_middleName(ctx, field) 13944 case "title": 13945 return ec.fieldContext_Commerce_Cart_Address_title(ctx, field) 13946 case "salutation": 13947 return ec.fieldContext_Commerce_Cart_Address_salutation(ctx, field) 13948 case "street": 13949 return ec.fieldContext_Commerce_Cart_Address_street(ctx, field) 13950 case "streetNr": 13951 return ec.fieldContext_Commerce_Cart_Address_streetNr(ctx, field) 13952 case "additionalAddressLines": 13953 return ec.fieldContext_Commerce_Cart_Address_additionalAddressLines(ctx, field) 13954 case "company": 13955 return ec.fieldContext_Commerce_Cart_Address_company(ctx, field) 13956 case "city": 13957 return ec.fieldContext_Commerce_Cart_Address_city(ctx, field) 13958 case "postCode": 13959 return ec.fieldContext_Commerce_Cart_Address_postCode(ctx, field) 13960 case "state": 13961 return ec.fieldContext_Commerce_Cart_Address_state(ctx, field) 13962 case "regionCode": 13963 return ec.fieldContext_Commerce_Cart_Address_regionCode(ctx, field) 13964 case "country": 13965 return ec.fieldContext_Commerce_Cart_Address_country(ctx, field) 13966 case "countryCode": 13967 return ec.fieldContext_Commerce_Cart_Address_countryCode(ctx, field) 13968 case "telephone": 13969 return ec.fieldContext_Commerce_Cart_Address_telephone(ctx, field) 13970 case "email": 13971 return ec.fieldContext_Commerce_Cart_Address_email(ctx, field) 13972 } 13973 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Address", field.Name) 13974 }, 13975 } 13976 return fc, nil 13977 } 13978 13979 func (ec *executionContext) _Commerce_Cart_DeliveryLocation_useBillingAddress(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryLocation) (ret graphql.Marshaler) { 13980 fc, err := ec.fieldContext_Commerce_Cart_DeliveryLocation_useBillingAddress(ctx, field) 13981 if err != nil { 13982 return graphql.Null 13983 } 13984 ctx = graphql.WithFieldContext(ctx, fc) 13985 defer func() { 13986 if r := recover(); r != nil { 13987 ec.Error(ctx, ec.Recover(ctx, r)) 13988 ret = graphql.Null 13989 } 13990 }() 13991 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13992 ctx = rctx // use context from middleware stack in children 13993 return obj.UseBillingAddress, nil 13994 }) 13995 if err != nil { 13996 ec.Error(ctx, err) 13997 return graphql.Null 13998 } 13999 if resTmp == nil { 14000 if !graphql.HasFieldError(ctx, fc) { 14001 ec.Errorf(ctx, "must not be null") 14002 } 14003 return graphql.Null 14004 } 14005 res := resTmp.(bool) 14006 fc.Result = res 14007 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 14008 } 14009 14010 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryLocation_useBillingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14011 fc = &graphql.FieldContext{ 14012 Object: "Commerce_Cart_DeliveryLocation", 14013 Field: field, 14014 IsMethod: false, 14015 IsResolver: false, 14016 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14017 return nil, errors.New("field of type Boolean does not have child fields") 14018 }, 14019 } 14020 return fc, nil 14021 } 14022 14023 func (ec *executionContext) _Commerce_Cart_DeliveryLocation_code(ctx context.Context, field graphql.CollectedField, obj *cart.DeliveryLocation) (ret graphql.Marshaler) { 14024 fc, err := ec.fieldContext_Commerce_Cart_DeliveryLocation_code(ctx, field) 14025 if err != nil { 14026 return graphql.Null 14027 } 14028 ctx = graphql.WithFieldContext(ctx, fc) 14029 defer func() { 14030 if r := recover(); r != nil { 14031 ec.Error(ctx, ec.Recover(ctx, r)) 14032 ret = graphql.Null 14033 } 14034 }() 14035 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14036 ctx = rctx // use context from middleware stack in children 14037 return obj.Code, nil 14038 }) 14039 if err != nil { 14040 ec.Error(ctx, err) 14041 return graphql.Null 14042 } 14043 if resTmp == nil { 14044 if !graphql.HasFieldError(ctx, fc) { 14045 ec.Errorf(ctx, "must not be null") 14046 } 14047 return graphql.Null 14048 } 14049 res := resTmp.(string) 14050 fc.Result = res 14051 return ec.marshalNString2string(ctx, field.Selections, res) 14052 } 14053 14054 func (ec *executionContext) fieldContext_Commerce_Cart_DeliveryLocation_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14055 fc = &graphql.FieldContext{ 14056 Object: "Commerce_Cart_DeliveryLocation", 14057 Field: field, 14058 IsMethod: false, 14059 IsResolver: false, 14060 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14061 return nil, errors.New("field of type String does not have child fields") 14062 }, 14063 } 14064 return fc, nil 14065 } 14066 14067 func (ec *executionContext) _Commerce_Cart_ExistingCustomerData_id(ctx context.Context, field graphql.CollectedField, obj *cart.ExistingCustomerData) (ret graphql.Marshaler) { 14068 fc, err := ec.fieldContext_Commerce_Cart_ExistingCustomerData_id(ctx, field) 14069 if err != nil { 14070 return graphql.Null 14071 } 14072 ctx = graphql.WithFieldContext(ctx, fc) 14073 defer func() { 14074 if r := recover(); r != nil { 14075 ec.Error(ctx, ec.Recover(ctx, r)) 14076 ret = graphql.Null 14077 } 14078 }() 14079 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14080 ctx = rctx // use context from middleware stack in children 14081 return obj.ID, nil 14082 }) 14083 if err != nil { 14084 ec.Error(ctx, err) 14085 return graphql.Null 14086 } 14087 if resTmp == nil { 14088 if !graphql.HasFieldError(ctx, fc) { 14089 ec.Errorf(ctx, "must not be null") 14090 } 14091 return graphql.Null 14092 } 14093 res := resTmp.(string) 14094 fc.Result = res 14095 return ec.marshalNID2string(ctx, field.Selections, res) 14096 } 14097 14098 func (ec *executionContext) fieldContext_Commerce_Cart_ExistingCustomerData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14099 fc = &graphql.FieldContext{ 14100 Object: "Commerce_Cart_ExistingCustomerData", 14101 Field: field, 14102 IsMethod: false, 14103 IsResolver: false, 14104 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14105 return nil, errors.New("field of type ID does not have child fields") 14106 }, 14107 } 14108 return fc, nil 14109 } 14110 14111 func (ec *executionContext) _Commerce_Cart_Form_Error_messageKey(ctx context.Context, field graphql.CollectedField, obj *domain4.Error) (ret graphql.Marshaler) { 14112 fc, err := ec.fieldContext_Commerce_Cart_Form_Error_messageKey(ctx, field) 14113 if err != nil { 14114 return graphql.Null 14115 } 14116 ctx = graphql.WithFieldContext(ctx, fc) 14117 defer func() { 14118 if r := recover(); r != nil { 14119 ec.Error(ctx, ec.Recover(ctx, r)) 14120 ret = graphql.Null 14121 } 14122 }() 14123 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14124 ctx = rctx // use context from middleware stack in children 14125 return obj.MessageKey, nil 14126 }) 14127 if err != nil { 14128 ec.Error(ctx, err) 14129 return graphql.Null 14130 } 14131 if resTmp == nil { 14132 if !graphql.HasFieldError(ctx, fc) { 14133 ec.Errorf(ctx, "must not be null") 14134 } 14135 return graphql.Null 14136 } 14137 res := resTmp.(string) 14138 fc.Result = res 14139 return ec.marshalNString2string(ctx, field.Selections, res) 14140 } 14141 14142 func (ec *executionContext) fieldContext_Commerce_Cart_Form_Error_messageKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14143 fc = &graphql.FieldContext{ 14144 Object: "Commerce_Cart_Form_Error", 14145 Field: field, 14146 IsMethod: false, 14147 IsResolver: false, 14148 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14149 return nil, errors.New("field of type String does not have child fields") 14150 }, 14151 } 14152 return fc, nil 14153 } 14154 14155 func (ec *executionContext) _Commerce_Cart_Form_Error_defaultLabel(ctx context.Context, field graphql.CollectedField, obj *domain4.Error) (ret graphql.Marshaler) { 14156 fc, err := ec.fieldContext_Commerce_Cart_Form_Error_defaultLabel(ctx, field) 14157 if err != nil { 14158 return graphql.Null 14159 } 14160 ctx = graphql.WithFieldContext(ctx, fc) 14161 defer func() { 14162 if r := recover(); r != nil { 14163 ec.Error(ctx, ec.Recover(ctx, r)) 14164 ret = graphql.Null 14165 } 14166 }() 14167 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14168 ctx = rctx // use context from middleware stack in children 14169 return obj.DefaultLabel, nil 14170 }) 14171 if err != nil { 14172 ec.Error(ctx, err) 14173 return graphql.Null 14174 } 14175 if resTmp == nil { 14176 if !graphql.HasFieldError(ctx, fc) { 14177 ec.Errorf(ctx, "must not be null") 14178 } 14179 return graphql.Null 14180 } 14181 res := resTmp.(string) 14182 fc.Result = res 14183 return ec.marshalNString2string(ctx, field.Selections, res) 14184 } 14185 14186 func (ec *executionContext) fieldContext_Commerce_Cart_Form_Error_defaultLabel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14187 fc = &graphql.FieldContext{ 14188 Object: "Commerce_Cart_Form_Error", 14189 Field: field, 14190 IsMethod: false, 14191 IsResolver: false, 14192 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14193 return nil, errors.New("field of type String does not have child fields") 14194 }, 14195 } 14196 return fc, nil 14197 } 14198 14199 func (ec *executionContext) _Commerce_Cart_Form_FieldError_messageKey(ctx context.Context, field graphql.CollectedField, obj *dto.FieldError) (ret graphql.Marshaler) { 14200 fc, err := ec.fieldContext_Commerce_Cart_Form_FieldError_messageKey(ctx, field) 14201 if err != nil { 14202 return graphql.Null 14203 } 14204 ctx = graphql.WithFieldContext(ctx, fc) 14205 defer func() { 14206 if r := recover(); r != nil { 14207 ec.Error(ctx, ec.Recover(ctx, r)) 14208 ret = graphql.Null 14209 } 14210 }() 14211 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14212 ctx = rctx // use context from middleware stack in children 14213 return obj.MessageKey, nil 14214 }) 14215 if err != nil { 14216 ec.Error(ctx, err) 14217 return graphql.Null 14218 } 14219 if resTmp == nil { 14220 if !graphql.HasFieldError(ctx, fc) { 14221 ec.Errorf(ctx, "must not be null") 14222 } 14223 return graphql.Null 14224 } 14225 res := resTmp.(string) 14226 fc.Result = res 14227 return ec.marshalNString2string(ctx, field.Selections, res) 14228 } 14229 14230 func (ec *executionContext) fieldContext_Commerce_Cart_Form_FieldError_messageKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14231 fc = &graphql.FieldContext{ 14232 Object: "Commerce_Cart_Form_FieldError", 14233 Field: field, 14234 IsMethod: false, 14235 IsResolver: false, 14236 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14237 return nil, errors.New("field of type String does not have child fields") 14238 }, 14239 } 14240 return fc, nil 14241 } 14242 14243 func (ec *executionContext) _Commerce_Cart_Form_FieldError_defaultLabel(ctx context.Context, field graphql.CollectedField, obj *dto.FieldError) (ret graphql.Marshaler) { 14244 fc, err := ec.fieldContext_Commerce_Cart_Form_FieldError_defaultLabel(ctx, field) 14245 if err != nil { 14246 return graphql.Null 14247 } 14248 ctx = graphql.WithFieldContext(ctx, fc) 14249 defer func() { 14250 if r := recover(); r != nil { 14251 ec.Error(ctx, ec.Recover(ctx, r)) 14252 ret = graphql.Null 14253 } 14254 }() 14255 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14256 ctx = rctx // use context from middleware stack in children 14257 return obj.DefaultLabel, nil 14258 }) 14259 if err != nil { 14260 ec.Error(ctx, err) 14261 return graphql.Null 14262 } 14263 if resTmp == nil { 14264 if !graphql.HasFieldError(ctx, fc) { 14265 ec.Errorf(ctx, "must not be null") 14266 } 14267 return graphql.Null 14268 } 14269 res := resTmp.(string) 14270 fc.Result = res 14271 return ec.marshalNString2string(ctx, field.Selections, res) 14272 } 14273 14274 func (ec *executionContext) fieldContext_Commerce_Cart_Form_FieldError_defaultLabel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14275 fc = &graphql.FieldContext{ 14276 Object: "Commerce_Cart_Form_FieldError", 14277 Field: field, 14278 IsMethod: false, 14279 IsResolver: false, 14280 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14281 return nil, errors.New("field of type String does not have child fields") 14282 }, 14283 } 14284 return fc, nil 14285 } 14286 14287 func (ec *executionContext) _Commerce_Cart_Form_FieldError_fieldName(ctx context.Context, field graphql.CollectedField, obj *dto.FieldError) (ret graphql.Marshaler) { 14288 fc, err := ec.fieldContext_Commerce_Cart_Form_FieldError_fieldName(ctx, field) 14289 if err != nil { 14290 return graphql.Null 14291 } 14292 ctx = graphql.WithFieldContext(ctx, fc) 14293 defer func() { 14294 if r := recover(); r != nil { 14295 ec.Error(ctx, ec.Recover(ctx, r)) 14296 ret = graphql.Null 14297 } 14298 }() 14299 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14300 ctx = rctx // use context from middleware stack in children 14301 return obj.FieldName, nil 14302 }) 14303 if err != nil { 14304 ec.Error(ctx, err) 14305 return graphql.Null 14306 } 14307 if resTmp == nil { 14308 if !graphql.HasFieldError(ctx, fc) { 14309 ec.Errorf(ctx, "must not be null") 14310 } 14311 return graphql.Null 14312 } 14313 res := resTmp.(string) 14314 fc.Result = res 14315 return ec.marshalNString2string(ctx, field.Selections, res) 14316 } 14317 14318 func (ec *executionContext) fieldContext_Commerce_Cart_Form_FieldError_fieldName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14319 fc = &graphql.FieldContext{ 14320 Object: "Commerce_Cart_Form_FieldError", 14321 Field: field, 14322 IsMethod: false, 14323 IsResolver: false, 14324 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14325 return nil, errors.New("field of type String does not have child fields") 14326 }, 14327 } 14328 return fc, nil 14329 } 14330 14331 func (ec *executionContext) _Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx context.Context, field graphql.CollectedField, obj *dto.ValidationInfo) (ret graphql.Marshaler) { 14332 fc, err := ec.fieldContext_Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx, field) 14333 if err != nil { 14334 return graphql.Null 14335 } 14336 ctx = graphql.WithFieldContext(ctx, fc) 14337 defer func() { 14338 if r := recover(); r != nil { 14339 ec.Error(ctx, ec.Recover(ctx, r)) 14340 ret = graphql.Null 14341 } 14342 }() 14343 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14344 ctx = rctx // use context from middleware stack in children 14345 return obj.FieldErrors, nil 14346 }) 14347 if err != nil { 14348 ec.Error(ctx, err) 14349 return graphql.Null 14350 } 14351 if resTmp == nil { 14352 return graphql.Null 14353 } 14354 res := resTmp.([]dto.FieldError) 14355 fc.Result = res 14356 return ec.marshalOCommerce_Cart_Form_FieldError2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐFieldErrorᚄ(ctx, field.Selections, res) 14357 } 14358 14359 func (ec *executionContext) fieldContext_Commerce_Cart_Form_ValidationInfo_fieldErrors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14360 fc = &graphql.FieldContext{ 14361 Object: "Commerce_Cart_Form_ValidationInfo", 14362 Field: field, 14363 IsMethod: false, 14364 IsResolver: false, 14365 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14366 switch field.Name { 14367 case "messageKey": 14368 return ec.fieldContext_Commerce_Cart_Form_FieldError_messageKey(ctx, field) 14369 case "defaultLabel": 14370 return ec.fieldContext_Commerce_Cart_Form_FieldError_defaultLabel(ctx, field) 14371 case "fieldName": 14372 return ec.fieldContext_Commerce_Cart_Form_FieldError_fieldName(ctx, field) 14373 } 14374 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Form_FieldError", field.Name) 14375 }, 14376 } 14377 return fc, nil 14378 } 14379 14380 func (ec *executionContext) _Commerce_Cart_Form_ValidationInfo_generalErrors(ctx context.Context, field graphql.CollectedField, obj *dto.ValidationInfo) (ret graphql.Marshaler) { 14381 fc, err := ec.fieldContext_Commerce_Cart_Form_ValidationInfo_generalErrors(ctx, field) 14382 if err != nil { 14383 return graphql.Null 14384 } 14385 ctx = graphql.WithFieldContext(ctx, fc) 14386 defer func() { 14387 if r := recover(); r != nil { 14388 ec.Error(ctx, ec.Recover(ctx, r)) 14389 ret = graphql.Null 14390 } 14391 }() 14392 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14393 ctx = rctx // use context from middleware stack in children 14394 return obj.GeneralErrors, nil 14395 }) 14396 if err != nil { 14397 ec.Error(ctx, err) 14398 return graphql.Null 14399 } 14400 if resTmp == nil { 14401 return graphql.Null 14402 } 14403 res := resTmp.([]domain4.Error) 14404 fc.Result = res 14405 return ec.marshalOCommerce_Cart_Form_Error2ᚕflamingoᚗmeᚋformᚋdomainᚐErrorᚄ(ctx, field.Selections, res) 14406 } 14407 14408 func (ec *executionContext) fieldContext_Commerce_Cart_Form_ValidationInfo_generalErrors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14409 fc = &graphql.FieldContext{ 14410 Object: "Commerce_Cart_Form_ValidationInfo", 14411 Field: field, 14412 IsMethod: false, 14413 IsResolver: false, 14414 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14415 switch field.Name { 14416 case "messageKey": 14417 return ec.fieldContext_Commerce_Cart_Form_Error_messageKey(ctx, field) 14418 case "defaultLabel": 14419 return ec.fieldContext_Commerce_Cart_Form_Error_defaultLabel(ctx, field) 14420 } 14421 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Form_Error", field.Name) 14422 }, 14423 } 14424 return fc, nil 14425 } 14426 14427 func (ec *executionContext) _Commerce_Cart_Item_id(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14428 fc, err := ec.fieldContext_Commerce_Cart_Item_id(ctx, field) 14429 if err != nil { 14430 return graphql.Null 14431 } 14432 ctx = graphql.WithFieldContext(ctx, fc) 14433 defer func() { 14434 if r := recover(); r != nil { 14435 ec.Error(ctx, ec.Recover(ctx, r)) 14436 ret = graphql.Null 14437 } 14438 }() 14439 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14440 ctx = rctx // use context from middleware stack in children 14441 return obj.ID, nil 14442 }) 14443 if err != nil { 14444 ec.Error(ctx, err) 14445 return graphql.Null 14446 } 14447 if resTmp == nil { 14448 if !graphql.HasFieldError(ctx, fc) { 14449 ec.Errorf(ctx, "must not be null") 14450 } 14451 return graphql.Null 14452 } 14453 res := resTmp.(string) 14454 fc.Result = res 14455 return ec.marshalNID2string(ctx, field.Selections, res) 14456 } 14457 14458 func (ec *executionContext) fieldContext_Commerce_Cart_Item_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14459 fc = &graphql.FieldContext{ 14460 Object: "Commerce_Cart_Item", 14461 Field: field, 14462 IsMethod: false, 14463 IsResolver: false, 14464 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14465 return nil, errors.New("field of type ID does not have child fields") 14466 }, 14467 } 14468 return fc, nil 14469 } 14470 14471 func (ec *executionContext) _Commerce_Cart_Item_externalReference(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14472 fc, err := ec.fieldContext_Commerce_Cart_Item_externalReference(ctx, field) 14473 if err != nil { 14474 return graphql.Null 14475 } 14476 ctx = graphql.WithFieldContext(ctx, fc) 14477 defer func() { 14478 if r := recover(); r != nil { 14479 ec.Error(ctx, ec.Recover(ctx, r)) 14480 ret = graphql.Null 14481 } 14482 }() 14483 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14484 ctx = rctx // use context from middleware stack in children 14485 return obj.ExternalReference, nil 14486 }) 14487 if err != nil { 14488 ec.Error(ctx, err) 14489 return graphql.Null 14490 } 14491 if resTmp == nil { 14492 if !graphql.HasFieldError(ctx, fc) { 14493 ec.Errorf(ctx, "must not be null") 14494 } 14495 return graphql.Null 14496 } 14497 res := resTmp.(string) 14498 fc.Result = res 14499 return ec.marshalNString2string(ctx, field.Selections, res) 14500 } 14501 14502 func (ec *executionContext) fieldContext_Commerce_Cart_Item_externalReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14503 fc = &graphql.FieldContext{ 14504 Object: "Commerce_Cart_Item", 14505 Field: field, 14506 IsMethod: false, 14507 IsResolver: false, 14508 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14509 return nil, errors.New("field of type String does not have child fields") 14510 }, 14511 } 14512 return fc, nil 14513 } 14514 14515 func (ec *executionContext) _Commerce_Cart_Item_marketplaceCode(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14516 fc, err := ec.fieldContext_Commerce_Cart_Item_marketplaceCode(ctx, field) 14517 if err != nil { 14518 return graphql.Null 14519 } 14520 ctx = graphql.WithFieldContext(ctx, fc) 14521 defer func() { 14522 if r := recover(); r != nil { 14523 ec.Error(ctx, ec.Recover(ctx, r)) 14524 ret = graphql.Null 14525 } 14526 }() 14527 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14528 ctx = rctx // use context from middleware stack in children 14529 return obj.MarketplaceCode, nil 14530 }) 14531 if err != nil { 14532 ec.Error(ctx, err) 14533 return graphql.Null 14534 } 14535 if resTmp == nil { 14536 if !graphql.HasFieldError(ctx, fc) { 14537 ec.Errorf(ctx, "must not be null") 14538 } 14539 return graphql.Null 14540 } 14541 res := resTmp.(string) 14542 fc.Result = res 14543 return ec.marshalNString2string(ctx, field.Selections, res) 14544 } 14545 14546 func (ec *executionContext) fieldContext_Commerce_Cart_Item_marketplaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14547 fc = &graphql.FieldContext{ 14548 Object: "Commerce_Cart_Item", 14549 Field: field, 14550 IsMethod: false, 14551 IsResolver: false, 14552 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14553 return nil, errors.New("field of type String does not have child fields") 14554 }, 14555 } 14556 return fc, nil 14557 } 14558 14559 func (ec *executionContext) _Commerce_Cart_Item_variantMarketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14560 fc, err := ec.fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(ctx, field) 14561 if err != nil { 14562 return graphql.Null 14563 } 14564 ctx = graphql.WithFieldContext(ctx, fc) 14565 defer func() { 14566 if r := recover(); r != nil { 14567 ec.Error(ctx, ec.Recover(ctx, r)) 14568 ret = graphql.Null 14569 } 14570 }() 14571 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14572 ctx = rctx // use context from middleware stack in children 14573 return obj.VariantMarketPlaceCode, nil 14574 }) 14575 if err != nil { 14576 ec.Error(ctx, err) 14577 return graphql.Null 14578 } 14579 if resTmp == nil { 14580 if !graphql.HasFieldError(ctx, fc) { 14581 ec.Errorf(ctx, "must not be null") 14582 } 14583 return graphql.Null 14584 } 14585 res := resTmp.(string) 14586 fc.Result = res 14587 return ec.marshalNString2string(ctx, field.Selections, res) 14588 } 14589 14590 func (ec *executionContext) fieldContext_Commerce_Cart_Item_variantMarketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14591 fc = &graphql.FieldContext{ 14592 Object: "Commerce_Cart_Item", 14593 Field: field, 14594 IsMethod: false, 14595 IsResolver: false, 14596 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14597 return nil, errors.New("field of type String does not have child fields") 14598 }, 14599 } 14600 return fc, nil 14601 } 14602 14603 func (ec *executionContext) _Commerce_Cart_Item_productName(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14604 fc, err := ec.fieldContext_Commerce_Cart_Item_productName(ctx, field) 14605 if err != nil { 14606 return graphql.Null 14607 } 14608 ctx = graphql.WithFieldContext(ctx, fc) 14609 defer func() { 14610 if r := recover(); r != nil { 14611 ec.Error(ctx, ec.Recover(ctx, r)) 14612 ret = graphql.Null 14613 } 14614 }() 14615 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14616 ctx = rctx // use context from middleware stack in children 14617 return obj.ProductName, nil 14618 }) 14619 if err != nil { 14620 ec.Error(ctx, err) 14621 return graphql.Null 14622 } 14623 if resTmp == nil { 14624 if !graphql.HasFieldError(ctx, fc) { 14625 ec.Errorf(ctx, "must not be null") 14626 } 14627 return graphql.Null 14628 } 14629 res := resTmp.(string) 14630 fc.Result = res 14631 return ec.marshalNString2string(ctx, field.Selections, res) 14632 } 14633 14634 func (ec *executionContext) fieldContext_Commerce_Cart_Item_productName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14635 fc = &graphql.FieldContext{ 14636 Object: "Commerce_Cart_Item", 14637 Field: field, 14638 IsMethod: false, 14639 IsResolver: false, 14640 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14641 return nil, errors.New("field of type String does not have child fields") 14642 }, 14643 } 14644 return fc, nil 14645 } 14646 14647 func (ec *executionContext) _Commerce_Cart_Item_sourceID(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14648 fc, err := ec.fieldContext_Commerce_Cart_Item_sourceID(ctx, field) 14649 if err != nil { 14650 return graphql.Null 14651 } 14652 ctx = graphql.WithFieldContext(ctx, fc) 14653 defer func() { 14654 if r := recover(); r != nil { 14655 ec.Error(ctx, ec.Recover(ctx, r)) 14656 ret = graphql.Null 14657 } 14658 }() 14659 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14660 ctx = rctx // use context from middleware stack in children 14661 return obj.SourceID, nil 14662 }) 14663 if err != nil { 14664 ec.Error(ctx, err) 14665 return graphql.Null 14666 } 14667 if resTmp == nil { 14668 if !graphql.HasFieldError(ctx, fc) { 14669 ec.Errorf(ctx, "must not be null") 14670 } 14671 return graphql.Null 14672 } 14673 res := resTmp.(string) 14674 fc.Result = res 14675 return ec.marshalNString2string(ctx, field.Selections, res) 14676 } 14677 14678 func (ec *executionContext) fieldContext_Commerce_Cart_Item_sourceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14679 fc = &graphql.FieldContext{ 14680 Object: "Commerce_Cart_Item", 14681 Field: field, 14682 IsMethod: false, 14683 IsResolver: false, 14684 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14685 return nil, errors.New("field of type String does not have child fields") 14686 }, 14687 } 14688 return fc, nil 14689 } 14690 14691 func (ec *executionContext) _Commerce_Cart_Item_qty(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14692 fc, err := ec.fieldContext_Commerce_Cart_Item_qty(ctx, field) 14693 if err != nil { 14694 return graphql.Null 14695 } 14696 ctx = graphql.WithFieldContext(ctx, fc) 14697 defer func() { 14698 if r := recover(); r != nil { 14699 ec.Error(ctx, ec.Recover(ctx, r)) 14700 ret = graphql.Null 14701 } 14702 }() 14703 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14704 ctx = rctx // use context from middleware stack in children 14705 return obj.Qty, nil 14706 }) 14707 if err != nil { 14708 ec.Error(ctx, err) 14709 return graphql.Null 14710 } 14711 if resTmp == nil { 14712 if !graphql.HasFieldError(ctx, fc) { 14713 ec.Errorf(ctx, "must not be null") 14714 } 14715 return graphql.Null 14716 } 14717 res := resTmp.(int) 14718 fc.Result = res 14719 return ec.marshalNInt2int(ctx, field.Selections, res) 14720 } 14721 14722 func (ec *executionContext) fieldContext_Commerce_Cart_Item_qty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14723 fc = &graphql.FieldContext{ 14724 Object: "Commerce_Cart_Item", 14725 Field: field, 14726 IsMethod: false, 14727 IsResolver: false, 14728 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14729 return nil, errors.New("field of type Int does not have child fields") 14730 }, 14731 } 14732 return fc, nil 14733 } 14734 14735 func (ec *executionContext) _Commerce_Cart_Item_additionalDataKeys(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14736 fc, err := ec.fieldContext_Commerce_Cart_Item_additionalDataKeys(ctx, field) 14737 if err != nil { 14738 return graphql.Null 14739 } 14740 ctx = graphql.WithFieldContext(ctx, fc) 14741 defer func() { 14742 if r := recover(); r != nil { 14743 ec.Error(ctx, ec.Recover(ctx, r)) 14744 ret = graphql.Null 14745 } 14746 }() 14747 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14748 ctx = rctx // use context from middleware stack in children 14749 return obj.AdditionalDataKeys(), nil 14750 }) 14751 if err != nil { 14752 ec.Error(ctx, err) 14753 return graphql.Null 14754 } 14755 if resTmp == nil { 14756 return graphql.Null 14757 } 14758 res := resTmp.([]string) 14759 fc.Result = res 14760 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 14761 } 14762 14763 func (ec *executionContext) fieldContext_Commerce_Cart_Item_additionalDataKeys(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14764 fc = &graphql.FieldContext{ 14765 Object: "Commerce_Cart_Item", 14766 Field: field, 14767 IsMethod: true, 14768 IsResolver: false, 14769 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14770 return nil, errors.New("field of type String does not have child fields") 14771 }, 14772 } 14773 return fc, nil 14774 } 14775 14776 func (ec *executionContext) _Commerce_Cart_Item_additionalDataValues(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14777 fc, err := ec.fieldContext_Commerce_Cart_Item_additionalDataValues(ctx, field) 14778 if err != nil { 14779 return graphql.Null 14780 } 14781 ctx = graphql.WithFieldContext(ctx, fc) 14782 defer func() { 14783 if r := recover(); r != nil { 14784 ec.Error(ctx, ec.Recover(ctx, r)) 14785 ret = graphql.Null 14786 } 14787 }() 14788 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14789 ctx = rctx // use context from middleware stack in children 14790 return obj.AdditionalDataValues(), nil 14791 }) 14792 if err != nil { 14793 ec.Error(ctx, err) 14794 return graphql.Null 14795 } 14796 if resTmp == nil { 14797 return graphql.Null 14798 } 14799 res := resTmp.([]string) 14800 fc.Result = res 14801 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 14802 } 14803 14804 func (ec *executionContext) fieldContext_Commerce_Cart_Item_additionalDataValues(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14805 fc = &graphql.FieldContext{ 14806 Object: "Commerce_Cart_Item", 14807 Field: field, 14808 IsMethod: true, 14809 IsResolver: false, 14810 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14811 return nil, errors.New("field of type String does not have child fields") 14812 }, 14813 } 14814 return fc, nil 14815 } 14816 14817 func (ec *executionContext) _Commerce_Cart_Item_getAdditionalData(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14818 fc, err := ec.fieldContext_Commerce_Cart_Item_getAdditionalData(ctx, field) 14819 if err != nil { 14820 return graphql.Null 14821 } 14822 ctx = graphql.WithFieldContext(ctx, fc) 14823 defer func() { 14824 if r := recover(); r != nil { 14825 ec.Error(ctx, ec.Recover(ctx, r)) 14826 ret = graphql.Null 14827 } 14828 }() 14829 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14830 ctx = rctx // use context from middleware stack in children 14831 return obj.GetAdditionalData(fc.Args["key"].(string)), nil 14832 }) 14833 if err != nil { 14834 ec.Error(ctx, err) 14835 return graphql.Null 14836 } 14837 if resTmp == nil { 14838 return graphql.Null 14839 } 14840 res := resTmp.(string) 14841 fc.Result = res 14842 return ec.marshalOString2string(ctx, field.Selections, res) 14843 } 14844 14845 func (ec *executionContext) fieldContext_Commerce_Cart_Item_getAdditionalData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14846 fc = &graphql.FieldContext{ 14847 Object: "Commerce_Cart_Item", 14848 Field: field, 14849 IsMethod: true, 14850 IsResolver: false, 14851 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14852 return nil, errors.New("field of type String does not have child fields") 14853 }, 14854 } 14855 defer func() { 14856 if r := recover(); r != nil { 14857 err = ec.Recover(ctx, r) 14858 ec.Error(ctx, err) 14859 } 14860 }() 14861 ctx = graphql.WithFieldContext(ctx, fc) 14862 if fc.Args, err = ec.field_Commerce_Cart_Item_getAdditionalData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 14863 ec.Error(ctx, err) 14864 return fc, err 14865 } 14866 return fc, nil 14867 } 14868 14869 func (ec *executionContext) _Commerce_Cart_Item_hasAdditionalDataKey(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14870 fc, err := ec.fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx, field) 14871 if err != nil { 14872 return graphql.Null 14873 } 14874 ctx = graphql.WithFieldContext(ctx, fc) 14875 defer func() { 14876 if r := recover(); r != nil { 14877 ec.Error(ctx, ec.Recover(ctx, r)) 14878 ret = graphql.Null 14879 } 14880 }() 14881 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14882 ctx = rctx // use context from middleware stack in children 14883 return obj.HasAdditionalDataKey(fc.Args["key"].(string)), nil 14884 }) 14885 if err != nil { 14886 ec.Error(ctx, err) 14887 return graphql.Null 14888 } 14889 if resTmp == nil { 14890 return graphql.Null 14891 } 14892 res := resTmp.(bool) 14893 fc.Result = res 14894 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 14895 } 14896 14897 func (ec *executionContext) fieldContext_Commerce_Cart_Item_hasAdditionalDataKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14898 fc = &graphql.FieldContext{ 14899 Object: "Commerce_Cart_Item", 14900 Field: field, 14901 IsMethod: true, 14902 IsResolver: false, 14903 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14904 return nil, errors.New("field of type Boolean does not have child fields") 14905 }, 14906 } 14907 defer func() { 14908 if r := recover(); r != nil { 14909 err = ec.Recover(ctx, r) 14910 ec.Error(ctx, err) 14911 } 14912 }() 14913 ctx = graphql.WithFieldContext(ctx, fc) 14914 if fc.Args, err = ec.field_Commerce_Cart_Item_hasAdditionalDataKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 14915 ec.Error(ctx, err) 14916 return fc, err 14917 } 14918 return fc, nil 14919 } 14920 14921 func (ec *executionContext) _Commerce_Cart_Item_singlePriceGross(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14922 fc, err := ec.fieldContext_Commerce_Cart_Item_singlePriceGross(ctx, field) 14923 if err != nil { 14924 return graphql.Null 14925 } 14926 ctx = graphql.WithFieldContext(ctx, fc) 14927 defer func() { 14928 if r := recover(); r != nil { 14929 ec.Error(ctx, ec.Recover(ctx, r)) 14930 ret = graphql.Null 14931 } 14932 }() 14933 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14934 ctx = rctx // use context from middleware stack in children 14935 return obj.SinglePriceGross, nil 14936 }) 14937 if err != nil { 14938 ec.Error(ctx, err) 14939 return graphql.Null 14940 } 14941 if resTmp == nil { 14942 if !graphql.HasFieldError(ctx, fc) { 14943 ec.Errorf(ctx, "must not be null") 14944 } 14945 return graphql.Null 14946 } 14947 res := resTmp.(domain.Price) 14948 fc.Result = res 14949 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 14950 } 14951 14952 func (ec *executionContext) fieldContext_Commerce_Cart_Item_singlePriceGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 14953 fc = &graphql.FieldContext{ 14954 Object: "Commerce_Cart_Item", 14955 Field: field, 14956 IsMethod: false, 14957 IsResolver: false, 14958 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 14959 switch field.Name { 14960 case "amount": 14961 return ec.fieldContext_Commerce_Price_amount(ctx, field) 14962 case "currency": 14963 return ec.fieldContext_Commerce_Price_currency(ctx, field) 14964 } 14965 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 14966 }, 14967 } 14968 return fc, nil 14969 } 14970 14971 func (ec *executionContext) _Commerce_Cart_Item_singlePriceNet(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 14972 fc, err := ec.fieldContext_Commerce_Cart_Item_singlePriceNet(ctx, field) 14973 if err != nil { 14974 return graphql.Null 14975 } 14976 ctx = graphql.WithFieldContext(ctx, fc) 14977 defer func() { 14978 if r := recover(); r != nil { 14979 ec.Error(ctx, ec.Recover(ctx, r)) 14980 ret = graphql.Null 14981 } 14982 }() 14983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14984 ctx = rctx // use context from middleware stack in children 14985 return obj.SinglePriceNet, nil 14986 }) 14987 if err != nil { 14988 ec.Error(ctx, err) 14989 return graphql.Null 14990 } 14991 if resTmp == nil { 14992 if !graphql.HasFieldError(ctx, fc) { 14993 ec.Errorf(ctx, "must not be null") 14994 } 14995 return graphql.Null 14996 } 14997 res := resTmp.(domain.Price) 14998 fc.Result = res 14999 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 15000 } 15001 15002 func (ec *executionContext) fieldContext_Commerce_Cart_Item_singlePriceNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15003 fc = &graphql.FieldContext{ 15004 Object: "Commerce_Cart_Item", 15005 Field: field, 15006 IsMethod: false, 15007 IsResolver: false, 15008 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15009 switch field.Name { 15010 case "amount": 15011 return ec.fieldContext_Commerce_Price_amount(ctx, field) 15012 case "currency": 15013 return ec.fieldContext_Commerce_Price_currency(ctx, field) 15014 } 15015 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 15016 }, 15017 } 15018 return fc, nil 15019 } 15020 15021 func (ec *executionContext) _Commerce_Cart_Item_rowPriceGross(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 15022 fc, err := ec.fieldContext_Commerce_Cart_Item_rowPriceGross(ctx, field) 15023 if err != nil { 15024 return graphql.Null 15025 } 15026 ctx = graphql.WithFieldContext(ctx, fc) 15027 defer func() { 15028 if r := recover(); r != nil { 15029 ec.Error(ctx, ec.Recover(ctx, r)) 15030 ret = graphql.Null 15031 } 15032 }() 15033 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15034 ctx = rctx // use context from middleware stack in children 15035 return obj.RowPriceGross, nil 15036 }) 15037 if err != nil { 15038 ec.Error(ctx, err) 15039 return graphql.Null 15040 } 15041 if resTmp == nil { 15042 if !graphql.HasFieldError(ctx, fc) { 15043 ec.Errorf(ctx, "must not be null") 15044 } 15045 return graphql.Null 15046 } 15047 res := resTmp.(domain.Price) 15048 fc.Result = res 15049 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 15050 } 15051 15052 func (ec *executionContext) fieldContext_Commerce_Cart_Item_rowPriceGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15053 fc = &graphql.FieldContext{ 15054 Object: "Commerce_Cart_Item", 15055 Field: field, 15056 IsMethod: false, 15057 IsResolver: false, 15058 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15059 switch field.Name { 15060 case "amount": 15061 return ec.fieldContext_Commerce_Price_amount(ctx, field) 15062 case "currency": 15063 return ec.fieldContext_Commerce_Price_currency(ctx, field) 15064 } 15065 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 15066 }, 15067 } 15068 return fc, nil 15069 } 15070 15071 func (ec *executionContext) _Commerce_Cart_Item_rowPriceNet(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 15072 fc, err := ec.fieldContext_Commerce_Cart_Item_rowPriceNet(ctx, field) 15073 if err != nil { 15074 return graphql.Null 15075 } 15076 ctx = graphql.WithFieldContext(ctx, fc) 15077 defer func() { 15078 if r := recover(); r != nil { 15079 ec.Error(ctx, ec.Recover(ctx, r)) 15080 ret = graphql.Null 15081 } 15082 }() 15083 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15084 ctx = rctx // use context from middleware stack in children 15085 return obj.RowPriceNet, nil 15086 }) 15087 if err != nil { 15088 ec.Error(ctx, err) 15089 return graphql.Null 15090 } 15091 if resTmp == nil { 15092 if !graphql.HasFieldError(ctx, fc) { 15093 ec.Errorf(ctx, "must not be null") 15094 } 15095 return graphql.Null 15096 } 15097 res := resTmp.(domain.Price) 15098 fc.Result = res 15099 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 15100 } 15101 15102 func (ec *executionContext) fieldContext_Commerce_Cart_Item_rowPriceNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15103 fc = &graphql.FieldContext{ 15104 Object: "Commerce_Cart_Item", 15105 Field: field, 15106 IsMethod: false, 15107 IsResolver: false, 15108 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15109 switch field.Name { 15110 case "amount": 15111 return ec.fieldContext_Commerce_Price_amount(ctx, field) 15112 case "currency": 15113 return ec.fieldContext_Commerce_Price_currency(ctx, field) 15114 } 15115 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 15116 }, 15117 } 15118 return fc, nil 15119 } 15120 15121 func (ec *executionContext) _Commerce_Cart_Item_appliedDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.Item) (ret graphql.Marshaler) { 15122 fc, err := ec.fieldContext_Commerce_Cart_Item_appliedDiscounts(ctx, field) 15123 if err != nil { 15124 return graphql.Null 15125 } 15126 ctx = graphql.WithFieldContext(ctx, fc) 15127 defer func() { 15128 if r := recover(); r != nil { 15129 ec.Error(ctx, ec.Recover(ctx, r)) 15130 ret = graphql.Null 15131 } 15132 }() 15133 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15134 ctx = rctx // use context from middleware stack in children 15135 return ec.resolvers.Commerce_Cart_Item().AppliedDiscounts(rctx, obj) 15136 }) 15137 if err != nil { 15138 ec.Error(ctx, err) 15139 return graphql.Null 15140 } 15141 if resTmp == nil { 15142 if !graphql.HasFieldError(ctx, fc) { 15143 ec.Errorf(ctx, "must not be null") 15144 } 15145 return graphql.Null 15146 } 15147 res := resTmp.(*dto.CartAppliedDiscounts) 15148 fc.Result = res 15149 return ec.marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx, field.Selections, res) 15150 } 15151 15152 func (ec *executionContext) fieldContext_Commerce_Cart_Item_appliedDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15153 fc = &graphql.FieldContext{ 15154 Object: "Commerce_Cart_Item", 15155 Field: field, 15156 IsMethod: true, 15157 IsResolver: true, 15158 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15159 switch field.Name { 15160 case "items": 15161 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 15162 case "byCampaignCode": 15163 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 15164 case "byType": 15165 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 15166 } 15167 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscounts", field.Name) 15168 }, 15169 } 15170 return fc, nil 15171 } 15172 15173 func (ec *executionContext) _Commerce_Cart_ItemValidationError_itemID(ctx context.Context, field graphql.CollectedField, obj *validation.ItemValidationError) (ret graphql.Marshaler) { 15174 fc, err := ec.fieldContext_Commerce_Cart_ItemValidationError_itemID(ctx, field) 15175 if err != nil { 15176 return graphql.Null 15177 } 15178 ctx = graphql.WithFieldContext(ctx, fc) 15179 defer func() { 15180 if r := recover(); r != nil { 15181 ec.Error(ctx, ec.Recover(ctx, r)) 15182 ret = graphql.Null 15183 } 15184 }() 15185 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15186 ctx = rctx // use context from middleware stack in children 15187 return obj.ItemID, nil 15188 }) 15189 if err != nil { 15190 ec.Error(ctx, err) 15191 return graphql.Null 15192 } 15193 if resTmp == nil { 15194 if !graphql.HasFieldError(ctx, fc) { 15195 ec.Errorf(ctx, "must not be null") 15196 } 15197 return graphql.Null 15198 } 15199 res := resTmp.(string) 15200 fc.Result = res 15201 return ec.marshalNString2string(ctx, field.Selections, res) 15202 } 15203 15204 func (ec *executionContext) fieldContext_Commerce_Cart_ItemValidationError_itemID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15205 fc = &graphql.FieldContext{ 15206 Object: "Commerce_Cart_ItemValidationError", 15207 Field: field, 15208 IsMethod: false, 15209 IsResolver: false, 15210 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15211 return nil, errors.New("field of type String does not have child fields") 15212 }, 15213 } 15214 return fc, nil 15215 } 15216 15217 func (ec *executionContext) _Commerce_Cart_ItemValidationError_errorMessageKey(ctx context.Context, field graphql.CollectedField, obj *validation.ItemValidationError) (ret graphql.Marshaler) { 15218 fc, err := ec.fieldContext_Commerce_Cart_ItemValidationError_errorMessageKey(ctx, field) 15219 if err != nil { 15220 return graphql.Null 15221 } 15222 ctx = graphql.WithFieldContext(ctx, fc) 15223 defer func() { 15224 if r := recover(); r != nil { 15225 ec.Error(ctx, ec.Recover(ctx, r)) 15226 ret = graphql.Null 15227 } 15228 }() 15229 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15230 ctx = rctx // use context from middleware stack in children 15231 return obj.ErrorMessageKey, nil 15232 }) 15233 if err != nil { 15234 ec.Error(ctx, err) 15235 return graphql.Null 15236 } 15237 if resTmp == nil { 15238 if !graphql.HasFieldError(ctx, fc) { 15239 ec.Errorf(ctx, "must not be null") 15240 } 15241 return graphql.Null 15242 } 15243 res := resTmp.(string) 15244 fc.Result = res 15245 return ec.marshalNString2string(ctx, field.Selections, res) 15246 } 15247 15248 func (ec *executionContext) fieldContext_Commerce_Cart_ItemValidationError_errorMessageKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15249 fc = &graphql.FieldContext{ 15250 Object: "Commerce_Cart_ItemValidationError", 15251 Field: field, 15252 IsMethod: false, 15253 IsResolver: false, 15254 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15255 return nil, errors.New("field of type String does not have child fields") 15256 }, 15257 } 15258 return fc, nil 15259 } 15260 15261 func (ec *executionContext) _Commerce_Cart_KeyValue_key(ctx context.Context, field graphql.CollectedField, obj *dto.KeyValue) (ret graphql.Marshaler) { 15262 fc, err := ec.fieldContext_Commerce_Cart_KeyValue_key(ctx, field) 15263 if err != nil { 15264 return graphql.Null 15265 } 15266 ctx = graphql.WithFieldContext(ctx, fc) 15267 defer func() { 15268 if r := recover(); r != nil { 15269 ec.Error(ctx, ec.Recover(ctx, r)) 15270 ret = graphql.Null 15271 } 15272 }() 15273 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15274 ctx = rctx // use context from middleware stack in children 15275 return obj.Key, nil 15276 }) 15277 if err != nil { 15278 ec.Error(ctx, err) 15279 return graphql.Null 15280 } 15281 if resTmp == nil { 15282 if !graphql.HasFieldError(ctx, fc) { 15283 ec.Errorf(ctx, "must not be null") 15284 } 15285 return graphql.Null 15286 } 15287 res := resTmp.(string) 15288 fc.Result = res 15289 return ec.marshalNString2string(ctx, field.Selections, res) 15290 } 15291 15292 func (ec *executionContext) fieldContext_Commerce_Cart_KeyValue_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15293 fc = &graphql.FieldContext{ 15294 Object: "Commerce_Cart_KeyValue", 15295 Field: field, 15296 IsMethod: false, 15297 IsResolver: false, 15298 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15299 return nil, errors.New("field of type String does not have child fields") 15300 }, 15301 } 15302 return fc, nil 15303 } 15304 15305 func (ec *executionContext) _Commerce_Cart_KeyValue_value(ctx context.Context, field graphql.CollectedField, obj *dto.KeyValue) (ret graphql.Marshaler) { 15306 fc, err := ec.fieldContext_Commerce_Cart_KeyValue_value(ctx, field) 15307 if err != nil { 15308 return graphql.Null 15309 } 15310 ctx = graphql.WithFieldContext(ctx, fc) 15311 defer func() { 15312 if r := recover(); r != nil { 15313 ec.Error(ctx, ec.Recover(ctx, r)) 15314 ret = graphql.Null 15315 } 15316 }() 15317 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15318 ctx = rctx // use context from middleware stack in children 15319 return obj.Value, nil 15320 }) 15321 if err != nil { 15322 ec.Error(ctx, err) 15323 return graphql.Null 15324 } 15325 if resTmp == nil { 15326 if !graphql.HasFieldError(ctx, fc) { 15327 ec.Errorf(ctx, "must not be null") 15328 } 15329 return graphql.Null 15330 } 15331 res := resTmp.(string) 15332 fc.Result = res 15333 return ec.marshalNString2string(ctx, field.Selections, res) 15334 } 15335 15336 func (ec *executionContext) fieldContext_Commerce_Cart_KeyValue_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15337 fc = &graphql.FieldContext{ 15338 Object: "Commerce_Cart_KeyValue", 15339 Field: field, 15340 IsMethod: false, 15341 IsResolver: false, 15342 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15343 return nil, errors.New("field of type String does not have child fields") 15344 }, 15345 } 15346 return fc, nil 15347 } 15348 15349 func (ec *executionContext) _Commerce_Cart_PaymentSelection_Split_qualifier(ctx context.Context, field graphql.CollectedField, obj *dto.PaymentSelectionSplit) (ret graphql.Marshaler) { 15350 fc, err := ec.fieldContext_Commerce_Cart_PaymentSelection_Split_qualifier(ctx, field) 15351 if err != nil { 15352 return graphql.Null 15353 } 15354 ctx = graphql.WithFieldContext(ctx, fc) 15355 defer func() { 15356 if r := recover(); r != nil { 15357 ec.Error(ctx, ec.Recover(ctx, r)) 15358 ret = graphql.Null 15359 } 15360 }() 15361 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15362 ctx = rctx // use context from middleware stack in children 15363 return obj.Qualifier, nil 15364 }) 15365 if err != nil { 15366 ec.Error(ctx, err) 15367 return graphql.Null 15368 } 15369 if resTmp == nil { 15370 if !graphql.HasFieldError(ctx, fc) { 15371 ec.Errorf(ctx, "must not be null") 15372 } 15373 return graphql.Null 15374 } 15375 res := resTmp.(cart.SplitQualifier) 15376 fc.Result = res 15377 return ec.marshalNCommerce_Cart_PaymentSelection_SplitQualifier2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐSplitQualifier(ctx, field.Selections, res) 15378 } 15379 15380 func (ec *executionContext) fieldContext_Commerce_Cart_PaymentSelection_Split_qualifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15381 fc = &graphql.FieldContext{ 15382 Object: "Commerce_Cart_PaymentSelection_Split", 15383 Field: field, 15384 IsMethod: false, 15385 IsResolver: false, 15386 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15387 switch field.Name { 15388 case "type": 15389 return ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_type(ctx, field) 15390 case "method": 15391 return ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_method(ctx, field) 15392 case "reference": 15393 return ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_reference(ctx, field) 15394 } 15395 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PaymentSelection_SplitQualifier", field.Name) 15396 }, 15397 } 15398 return fc, nil 15399 } 15400 15401 func (ec *executionContext) _Commerce_Cart_PaymentSelection_Split_charge(ctx context.Context, field graphql.CollectedField, obj *dto.PaymentSelectionSplit) (ret graphql.Marshaler) { 15402 fc, err := ec.fieldContext_Commerce_Cart_PaymentSelection_Split_charge(ctx, field) 15403 if err != nil { 15404 return graphql.Null 15405 } 15406 ctx = graphql.WithFieldContext(ctx, fc) 15407 defer func() { 15408 if r := recover(); r != nil { 15409 ec.Error(ctx, ec.Recover(ctx, r)) 15410 ret = graphql.Null 15411 } 15412 }() 15413 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15414 ctx = rctx // use context from middleware stack in children 15415 return obj.Charge, nil 15416 }) 15417 if err != nil { 15418 ec.Error(ctx, err) 15419 return graphql.Null 15420 } 15421 if resTmp == nil { 15422 if !graphql.HasFieldError(ctx, fc) { 15423 ec.Errorf(ctx, "must not be null") 15424 } 15425 return graphql.Null 15426 } 15427 res := resTmp.(domain.Charge) 15428 fc.Result = res 15429 return ec.marshalNCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx, field.Selections, res) 15430 } 15431 15432 func (ec *executionContext) fieldContext_Commerce_Cart_PaymentSelection_Split_charge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15433 fc = &graphql.FieldContext{ 15434 Object: "Commerce_Cart_PaymentSelection_Split", 15435 Field: field, 15436 IsMethod: false, 15437 IsResolver: false, 15438 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15439 switch field.Name { 15440 case "price": 15441 return ec.fieldContext_Commerce_Price_Charge_price(ctx, field) 15442 case "value": 15443 return ec.fieldContext_Commerce_Price_Charge_value(ctx, field) 15444 case "type": 15445 return ec.fieldContext_Commerce_Price_Charge_type(ctx, field) 15446 case "reference": 15447 return ec.fieldContext_Commerce_Price_Charge_reference(ctx, field) 15448 } 15449 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price_Charge", field.Name) 15450 }, 15451 } 15452 return fc, nil 15453 } 15454 15455 func (ec *executionContext) _Commerce_Cart_PaymentSelection_SplitQualifier_type(ctx context.Context, field graphql.CollectedField, obj *cart.SplitQualifier) (ret graphql.Marshaler) { 15456 fc, err := ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_type(ctx, field) 15457 if err != nil { 15458 return graphql.Null 15459 } 15460 ctx = graphql.WithFieldContext(ctx, fc) 15461 defer func() { 15462 if r := recover(); r != nil { 15463 ec.Error(ctx, ec.Recover(ctx, r)) 15464 ret = graphql.Null 15465 } 15466 }() 15467 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15468 ctx = rctx // use context from middleware stack in children 15469 return obj.ChargeType, nil 15470 }) 15471 if err != nil { 15472 ec.Error(ctx, err) 15473 return graphql.Null 15474 } 15475 if resTmp == nil { 15476 if !graphql.HasFieldError(ctx, fc) { 15477 ec.Errorf(ctx, "must not be null") 15478 } 15479 return graphql.Null 15480 } 15481 res := resTmp.(string) 15482 fc.Result = res 15483 return ec.marshalNString2string(ctx, field.Selections, res) 15484 } 15485 15486 func (ec *executionContext) fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15487 fc = &graphql.FieldContext{ 15488 Object: "Commerce_Cart_PaymentSelection_SplitQualifier", 15489 Field: field, 15490 IsMethod: false, 15491 IsResolver: false, 15492 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15493 return nil, errors.New("field of type String does not have child fields") 15494 }, 15495 } 15496 return fc, nil 15497 } 15498 15499 func (ec *executionContext) _Commerce_Cart_PaymentSelection_SplitQualifier_method(ctx context.Context, field graphql.CollectedField, obj *cart.SplitQualifier) (ret graphql.Marshaler) { 15500 fc, err := ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_method(ctx, field) 15501 if err != nil { 15502 return graphql.Null 15503 } 15504 ctx = graphql.WithFieldContext(ctx, fc) 15505 defer func() { 15506 if r := recover(); r != nil { 15507 ec.Error(ctx, ec.Recover(ctx, r)) 15508 ret = graphql.Null 15509 } 15510 }() 15511 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15512 ctx = rctx // use context from middleware stack in children 15513 return obj.Method, nil 15514 }) 15515 if err != nil { 15516 ec.Error(ctx, err) 15517 return graphql.Null 15518 } 15519 if resTmp == nil { 15520 if !graphql.HasFieldError(ctx, fc) { 15521 ec.Errorf(ctx, "must not be null") 15522 } 15523 return graphql.Null 15524 } 15525 res := resTmp.(string) 15526 fc.Result = res 15527 return ec.marshalNString2string(ctx, field.Selections, res) 15528 } 15529 15530 func (ec *executionContext) fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15531 fc = &graphql.FieldContext{ 15532 Object: "Commerce_Cart_PaymentSelection_SplitQualifier", 15533 Field: field, 15534 IsMethod: false, 15535 IsResolver: false, 15536 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15537 return nil, errors.New("field of type String does not have child fields") 15538 }, 15539 } 15540 return fc, nil 15541 } 15542 15543 func (ec *executionContext) _Commerce_Cart_PaymentSelection_SplitQualifier_reference(ctx context.Context, field graphql.CollectedField, obj *cart.SplitQualifier) (ret graphql.Marshaler) { 15544 fc, err := ec.fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_reference(ctx, field) 15545 if err != nil { 15546 return graphql.Null 15547 } 15548 ctx = graphql.WithFieldContext(ctx, fc) 15549 defer func() { 15550 if r := recover(); r != nil { 15551 ec.Error(ctx, ec.Recover(ctx, r)) 15552 ret = graphql.Null 15553 } 15554 }() 15555 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15556 ctx = rctx // use context from middleware stack in children 15557 return obj.ChargeReference, nil 15558 }) 15559 if err != nil { 15560 ec.Error(ctx, err) 15561 return graphql.Null 15562 } 15563 if resTmp == nil { 15564 if !graphql.HasFieldError(ctx, fc) { 15565 ec.Errorf(ctx, "must not be null") 15566 } 15567 return graphql.Null 15568 } 15569 res := resTmp.(string) 15570 fc.Result = res 15571 return ec.marshalNString2string(ctx, field.Selections, res) 15572 } 15573 15574 func (ec *executionContext) fieldContext_Commerce_Cart_PaymentSelection_SplitQualifier_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15575 fc = &graphql.FieldContext{ 15576 Object: "Commerce_Cart_PaymentSelection_SplitQualifier", 15577 Field: field, 15578 IsMethod: false, 15579 IsResolver: false, 15580 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15581 return nil, errors.New("field of type String does not have child fields") 15582 }, 15583 } 15584 return fc, nil 15585 } 15586 15587 func (ec *executionContext) _Commerce_Cart_Person_address(ctx context.Context, field graphql.CollectedField, obj *cart.Person) (ret graphql.Marshaler) { 15588 fc, err := ec.fieldContext_Commerce_Cart_Person_address(ctx, field) 15589 if err != nil { 15590 return graphql.Null 15591 } 15592 ctx = graphql.WithFieldContext(ctx, fc) 15593 defer func() { 15594 if r := recover(); r != nil { 15595 ec.Error(ctx, ec.Recover(ctx, r)) 15596 ret = graphql.Null 15597 } 15598 }() 15599 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15600 ctx = rctx // use context from middleware stack in children 15601 return obj.Address, nil 15602 }) 15603 if err != nil { 15604 ec.Error(ctx, err) 15605 return graphql.Null 15606 } 15607 if resTmp == nil { 15608 return graphql.Null 15609 } 15610 res := resTmp.(*cart.Address) 15611 fc.Result = res 15612 return ec.marshalOCommerce_Cart_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAddress(ctx, field.Selections, res) 15613 } 15614 15615 func (ec *executionContext) fieldContext_Commerce_Cart_Person_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15616 fc = &graphql.FieldContext{ 15617 Object: "Commerce_Cart_Person", 15618 Field: field, 15619 IsMethod: false, 15620 IsResolver: false, 15621 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15622 switch field.Name { 15623 case "vat": 15624 return ec.fieldContext_Commerce_Cart_Address_vat(ctx, field) 15625 case "firstname": 15626 return ec.fieldContext_Commerce_Cart_Address_firstname(ctx, field) 15627 case "lastname": 15628 return ec.fieldContext_Commerce_Cart_Address_lastname(ctx, field) 15629 case "middleName": 15630 return ec.fieldContext_Commerce_Cart_Address_middleName(ctx, field) 15631 case "title": 15632 return ec.fieldContext_Commerce_Cart_Address_title(ctx, field) 15633 case "salutation": 15634 return ec.fieldContext_Commerce_Cart_Address_salutation(ctx, field) 15635 case "street": 15636 return ec.fieldContext_Commerce_Cart_Address_street(ctx, field) 15637 case "streetNr": 15638 return ec.fieldContext_Commerce_Cart_Address_streetNr(ctx, field) 15639 case "additionalAddressLines": 15640 return ec.fieldContext_Commerce_Cart_Address_additionalAddressLines(ctx, field) 15641 case "company": 15642 return ec.fieldContext_Commerce_Cart_Address_company(ctx, field) 15643 case "city": 15644 return ec.fieldContext_Commerce_Cart_Address_city(ctx, field) 15645 case "postCode": 15646 return ec.fieldContext_Commerce_Cart_Address_postCode(ctx, field) 15647 case "state": 15648 return ec.fieldContext_Commerce_Cart_Address_state(ctx, field) 15649 case "regionCode": 15650 return ec.fieldContext_Commerce_Cart_Address_regionCode(ctx, field) 15651 case "country": 15652 return ec.fieldContext_Commerce_Cart_Address_country(ctx, field) 15653 case "countryCode": 15654 return ec.fieldContext_Commerce_Cart_Address_countryCode(ctx, field) 15655 case "telephone": 15656 return ec.fieldContext_Commerce_Cart_Address_telephone(ctx, field) 15657 case "email": 15658 return ec.fieldContext_Commerce_Cart_Address_email(ctx, field) 15659 } 15660 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Address", field.Name) 15661 }, 15662 } 15663 return fc, nil 15664 } 15665 15666 func (ec *executionContext) _Commerce_Cart_Person_personalDetails(ctx context.Context, field graphql.CollectedField, obj *cart.Person) (ret graphql.Marshaler) { 15667 fc, err := ec.fieldContext_Commerce_Cart_Person_personalDetails(ctx, field) 15668 if err != nil { 15669 return graphql.Null 15670 } 15671 ctx = graphql.WithFieldContext(ctx, fc) 15672 defer func() { 15673 if r := recover(); r != nil { 15674 ec.Error(ctx, ec.Recover(ctx, r)) 15675 ret = graphql.Null 15676 } 15677 }() 15678 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15679 ctx = rctx // use context from middleware stack in children 15680 return obj.PersonalDetails, nil 15681 }) 15682 if err != nil { 15683 ec.Error(ctx, err) 15684 return graphql.Null 15685 } 15686 if resTmp == nil { 15687 if !graphql.HasFieldError(ctx, fc) { 15688 ec.Errorf(ctx, "must not be null") 15689 } 15690 return graphql.Null 15691 } 15692 res := resTmp.(cart.PersonalDetails) 15693 fc.Result = res 15694 return ec.marshalNCommerce_Cart_PersonalDetails2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPersonalDetails(ctx, field.Selections, res) 15695 } 15696 15697 func (ec *executionContext) fieldContext_Commerce_Cart_Person_personalDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15698 fc = &graphql.FieldContext{ 15699 Object: "Commerce_Cart_Person", 15700 Field: field, 15701 IsMethod: false, 15702 IsResolver: false, 15703 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15704 switch field.Name { 15705 case "dateOfBirth": 15706 return ec.fieldContext_Commerce_Cart_PersonalDetails_dateOfBirth(ctx, field) 15707 case "passportCountry": 15708 return ec.fieldContext_Commerce_Cart_PersonalDetails_passportCountry(ctx, field) 15709 case "passportNumber": 15710 return ec.fieldContext_Commerce_Cart_PersonalDetails_passportNumber(ctx, field) 15711 case "nationality": 15712 return ec.fieldContext_Commerce_Cart_PersonalDetails_nationality(ctx, field) 15713 } 15714 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PersonalDetails", field.Name) 15715 }, 15716 } 15717 return fc, nil 15718 } 15719 15720 func (ec *executionContext) _Commerce_Cart_Person_existingCustomerData(ctx context.Context, field graphql.CollectedField, obj *cart.Person) (ret graphql.Marshaler) { 15721 fc, err := ec.fieldContext_Commerce_Cart_Person_existingCustomerData(ctx, field) 15722 if err != nil { 15723 return graphql.Null 15724 } 15725 ctx = graphql.WithFieldContext(ctx, fc) 15726 defer func() { 15727 if r := recover(); r != nil { 15728 ec.Error(ctx, ec.Recover(ctx, r)) 15729 ret = graphql.Null 15730 } 15731 }() 15732 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15733 ctx = rctx // use context from middleware stack in children 15734 return obj.ExistingCustomerData, nil 15735 }) 15736 if err != nil { 15737 ec.Error(ctx, err) 15738 return graphql.Null 15739 } 15740 if resTmp == nil { 15741 return graphql.Null 15742 } 15743 res := resTmp.(*cart.ExistingCustomerData) 15744 fc.Result = res 15745 return ec.marshalOCommerce_Cart_ExistingCustomerData2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐExistingCustomerData(ctx, field.Selections, res) 15746 } 15747 15748 func (ec *executionContext) fieldContext_Commerce_Cart_Person_existingCustomerData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15749 fc = &graphql.FieldContext{ 15750 Object: "Commerce_Cart_Person", 15751 Field: field, 15752 IsMethod: false, 15753 IsResolver: false, 15754 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15755 switch field.Name { 15756 case "id": 15757 return ec.fieldContext_Commerce_Cart_ExistingCustomerData_id(ctx, field) 15758 } 15759 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_ExistingCustomerData", field.Name) 15760 }, 15761 } 15762 return fc, nil 15763 } 15764 15765 func (ec *executionContext) _Commerce_Cart_PersonalDetails_dateOfBirth(ctx context.Context, field graphql.CollectedField, obj *cart.PersonalDetails) (ret graphql.Marshaler) { 15766 fc, err := ec.fieldContext_Commerce_Cart_PersonalDetails_dateOfBirth(ctx, field) 15767 if err != nil { 15768 return graphql.Null 15769 } 15770 ctx = graphql.WithFieldContext(ctx, fc) 15771 defer func() { 15772 if r := recover(); r != nil { 15773 ec.Error(ctx, ec.Recover(ctx, r)) 15774 ret = graphql.Null 15775 } 15776 }() 15777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15778 ctx = rctx // use context from middleware stack in children 15779 return obj.DateOfBirth, nil 15780 }) 15781 if err != nil { 15782 ec.Error(ctx, err) 15783 return graphql.Null 15784 } 15785 if resTmp == nil { 15786 if !graphql.HasFieldError(ctx, fc) { 15787 ec.Errorf(ctx, "must not be null") 15788 } 15789 return graphql.Null 15790 } 15791 res := resTmp.(string) 15792 fc.Result = res 15793 return ec.marshalNString2string(ctx, field.Selections, res) 15794 } 15795 15796 func (ec *executionContext) fieldContext_Commerce_Cart_PersonalDetails_dateOfBirth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15797 fc = &graphql.FieldContext{ 15798 Object: "Commerce_Cart_PersonalDetails", 15799 Field: field, 15800 IsMethod: false, 15801 IsResolver: false, 15802 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15803 return nil, errors.New("field of type String does not have child fields") 15804 }, 15805 } 15806 return fc, nil 15807 } 15808 15809 func (ec *executionContext) _Commerce_Cart_PersonalDetails_passportCountry(ctx context.Context, field graphql.CollectedField, obj *cart.PersonalDetails) (ret graphql.Marshaler) { 15810 fc, err := ec.fieldContext_Commerce_Cart_PersonalDetails_passportCountry(ctx, field) 15811 if err != nil { 15812 return graphql.Null 15813 } 15814 ctx = graphql.WithFieldContext(ctx, fc) 15815 defer func() { 15816 if r := recover(); r != nil { 15817 ec.Error(ctx, ec.Recover(ctx, r)) 15818 ret = graphql.Null 15819 } 15820 }() 15821 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15822 ctx = rctx // use context from middleware stack in children 15823 return obj.PassportCountry, nil 15824 }) 15825 if err != nil { 15826 ec.Error(ctx, err) 15827 return graphql.Null 15828 } 15829 if resTmp == nil { 15830 if !graphql.HasFieldError(ctx, fc) { 15831 ec.Errorf(ctx, "must not be null") 15832 } 15833 return graphql.Null 15834 } 15835 res := resTmp.(string) 15836 fc.Result = res 15837 return ec.marshalNString2string(ctx, field.Selections, res) 15838 } 15839 15840 func (ec *executionContext) fieldContext_Commerce_Cart_PersonalDetails_passportCountry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15841 fc = &graphql.FieldContext{ 15842 Object: "Commerce_Cart_PersonalDetails", 15843 Field: field, 15844 IsMethod: false, 15845 IsResolver: false, 15846 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15847 return nil, errors.New("field of type String does not have child fields") 15848 }, 15849 } 15850 return fc, nil 15851 } 15852 15853 func (ec *executionContext) _Commerce_Cart_PersonalDetails_passportNumber(ctx context.Context, field graphql.CollectedField, obj *cart.PersonalDetails) (ret graphql.Marshaler) { 15854 fc, err := ec.fieldContext_Commerce_Cart_PersonalDetails_passportNumber(ctx, field) 15855 if err != nil { 15856 return graphql.Null 15857 } 15858 ctx = graphql.WithFieldContext(ctx, fc) 15859 defer func() { 15860 if r := recover(); r != nil { 15861 ec.Error(ctx, ec.Recover(ctx, r)) 15862 ret = graphql.Null 15863 } 15864 }() 15865 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15866 ctx = rctx // use context from middleware stack in children 15867 return obj.PassportNumber, nil 15868 }) 15869 if err != nil { 15870 ec.Error(ctx, err) 15871 return graphql.Null 15872 } 15873 if resTmp == nil { 15874 if !graphql.HasFieldError(ctx, fc) { 15875 ec.Errorf(ctx, "must not be null") 15876 } 15877 return graphql.Null 15878 } 15879 res := resTmp.(string) 15880 fc.Result = res 15881 return ec.marshalNString2string(ctx, field.Selections, res) 15882 } 15883 15884 func (ec *executionContext) fieldContext_Commerce_Cart_PersonalDetails_passportNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15885 fc = &graphql.FieldContext{ 15886 Object: "Commerce_Cart_PersonalDetails", 15887 Field: field, 15888 IsMethod: false, 15889 IsResolver: false, 15890 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15891 return nil, errors.New("field of type String does not have child fields") 15892 }, 15893 } 15894 return fc, nil 15895 } 15896 15897 func (ec *executionContext) _Commerce_Cart_PersonalDetails_nationality(ctx context.Context, field graphql.CollectedField, obj *cart.PersonalDetails) (ret graphql.Marshaler) { 15898 fc, err := ec.fieldContext_Commerce_Cart_PersonalDetails_nationality(ctx, field) 15899 if err != nil { 15900 return graphql.Null 15901 } 15902 ctx = graphql.WithFieldContext(ctx, fc) 15903 defer func() { 15904 if r := recover(); r != nil { 15905 ec.Error(ctx, ec.Recover(ctx, r)) 15906 ret = graphql.Null 15907 } 15908 }() 15909 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15910 ctx = rctx // use context from middleware stack in children 15911 return obj.Nationality, nil 15912 }) 15913 if err != nil { 15914 ec.Error(ctx, err) 15915 return graphql.Null 15916 } 15917 if resTmp == nil { 15918 if !graphql.HasFieldError(ctx, fc) { 15919 ec.Errorf(ctx, "must not be null") 15920 } 15921 return graphql.Null 15922 } 15923 res := resTmp.(string) 15924 fc.Result = res 15925 return ec.marshalNString2string(ctx, field.Selections, res) 15926 } 15927 15928 func (ec *executionContext) fieldContext_Commerce_Cart_PersonalDetails_nationality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15929 fc = &graphql.FieldContext{ 15930 Object: "Commerce_Cart_PersonalDetails", 15931 Field: field, 15932 IsMethod: false, 15933 IsResolver: false, 15934 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15935 return nil, errors.New("field of type String does not have child fields") 15936 }, 15937 } 15938 return fc, nil 15939 } 15940 15941 func (ec *executionContext) _Commerce_Cart_PlacedOrderInfo_orderNumber(ctx context.Context, field graphql.CollectedField, obj *placeorder.PlacedOrderInfo) (ret graphql.Marshaler) { 15942 fc, err := ec.fieldContext_Commerce_Cart_PlacedOrderInfo_orderNumber(ctx, field) 15943 if err != nil { 15944 return graphql.Null 15945 } 15946 ctx = graphql.WithFieldContext(ctx, fc) 15947 defer func() { 15948 if r := recover(); r != nil { 15949 ec.Error(ctx, ec.Recover(ctx, r)) 15950 ret = graphql.Null 15951 } 15952 }() 15953 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15954 ctx = rctx // use context from middleware stack in children 15955 return obj.OrderNumber, nil 15956 }) 15957 if err != nil { 15958 ec.Error(ctx, err) 15959 return graphql.Null 15960 } 15961 if resTmp == nil { 15962 if !graphql.HasFieldError(ctx, fc) { 15963 ec.Errorf(ctx, "must not be null") 15964 } 15965 return graphql.Null 15966 } 15967 res := resTmp.(string) 15968 fc.Result = res 15969 return ec.marshalNString2string(ctx, field.Selections, res) 15970 } 15971 15972 func (ec *executionContext) fieldContext_Commerce_Cart_PlacedOrderInfo_orderNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 15973 fc = &graphql.FieldContext{ 15974 Object: "Commerce_Cart_PlacedOrderInfo", 15975 Field: field, 15976 IsMethod: false, 15977 IsResolver: false, 15978 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 15979 return nil, errors.New("field of type String does not have child fields") 15980 }, 15981 } 15982 return fc, nil 15983 } 15984 15985 func (ec *executionContext) _Commerce_Cart_PlacedOrderInfo_deliveryCode(ctx context.Context, field graphql.CollectedField, obj *placeorder.PlacedOrderInfo) (ret graphql.Marshaler) { 15986 fc, err := ec.fieldContext_Commerce_Cart_PlacedOrderInfo_deliveryCode(ctx, field) 15987 if err != nil { 15988 return graphql.Null 15989 } 15990 ctx = graphql.WithFieldContext(ctx, fc) 15991 defer func() { 15992 if r := recover(); r != nil { 15993 ec.Error(ctx, ec.Recover(ctx, r)) 15994 ret = graphql.Null 15995 } 15996 }() 15997 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15998 ctx = rctx // use context from middleware stack in children 15999 return obj.DeliveryCode, nil 16000 }) 16001 if err != nil { 16002 ec.Error(ctx, err) 16003 return graphql.Null 16004 } 16005 if resTmp == nil { 16006 if !graphql.HasFieldError(ctx, fc) { 16007 ec.Errorf(ctx, "must not be null") 16008 } 16009 return graphql.Null 16010 } 16011 res := resTmp.(string) 16012 fc.Result = res 16013 return ec.marshalNString2string(ctx, field.Selections, res) 16014 } 16015 16016 func (ec *executionContext) fieldContext_Commerce_Cart_PlacedOrderInfo_deliveryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16017 fc = &graphql.FieldContext{ 16018 Object: "Commerce_Cart_PlacedOrderInfo", 16019 Field: field, 16020 IsMethod: false, 16021 IsResolver: false, 16022 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16023 return nil, errors.New("field of type String does not have child fields") 16024 }, 16025 } 16026 return fc, nil 16027 } 16028 16029 func (ec *executionContext) _Commerce_Cart_PricedCartItem_amount(ctx context.Context, field graphql.CollectedField, obj *dto.PricedCartItem) (ret graphql.Marshaler) { 16030 fc, err := ec.fieldContext_Commerce_Cart_PricedCartItem_amount(ctx, field) 16031 if err != nil { 16032 return graphql.Null 16033 } 16034 ctx = graphql.WithFieldContext(ctx, fc) 16035 defer func() { 16036 if r := recover(); r != nil { 16037 ec.Error(ctx, ec.Recover(ctx, r)) 16038 ret = graphql.Null 16039 } 16040 }() 16041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16042 ctx = rctx // use context from middleware stack in children 16043 return obj.Amount, nil 16044 }) 16045 if err != nil { 16046 ec.Error(ctx, err) 16047 return graphql.Null 16048 } 16049 if resTmp == nil { 16050 if !graphql.HasFieldError(ctx, fc) { 16051 ec.Errorf(ctx, "must not be null") 16052 } 16053 return graphql.Null 16054 } 16055 res := resTmp.(domain.Price) 16056 fc.Result = res 16057 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16058 } 16059 16060 func (ec *executionContext) fieldContext_Commerce_Cart_PricedCartItem_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16061 fc = &graphql.FieldContext{ 16062 Object: "Commerce_Cart_PricedCartItem", 16063 Field: field, 16064 IsMethod: false, 16065 IsResolver: false, 16066 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16067 switch field.Name { 16068 case "amount": 16069 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16070 case "currency": 16071 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16072 } 16073 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16074 }, 16075 } 16076 return fc, nil 16077 } 16078 16079 func (ec *executionContext) _Commerce_Cart_PricedCartItem_itemID(ctx context.Context, field graphql.CollectedField, obj *dto.PricedCartItem) (ret graphql.Marshaler) { 16080 fc, err := ec.fieldContext_Commerce_Cart_PricedCartItem_itemID(ctx, field) 16081 if err != nil { 16082 return graphql.Null 16083 } 16084 ctx = graphql.WithFieldContext(ctx, fc) 16085 defer func() { 16086 if r := recover(); r != nil { 16087 ec.Error(ctx, ec.Recover(ctx, r)) 16088 ret = graphql.Null 16089 } 16090 }() 16091 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16092 ctx = rctx // use context from middleware stack in children 16093 return obj.ItemID, nil 16094 }) 16095 if err != nil { 16096 ec.Error(ctx, err) 16097 return graphql.Null 16098 } 16099 if resTmp == nil { 16100 if !graphql.HasFieldError(ctx, fc) { 16101 ec.Errorf(ctx, "must not be null") 16102 } 16103 return graphql.Null 16104 } 16105 res := resTmp.(string) 16106 fc.Result = res 16107 return ec.marshalNString2string(ctx, field.Selections, res) 16108 } 16109 16110 func (ec *executionContext) fieldContext_Commerce_Cart_PricedCartItem_itemID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16111 fc = &graphql.FieldContext{ 16112 Object: "Commerce_Cart_PricedCartItem", 16113 Field: field, 16114 IsMethod: false, 16115 IsResolver: false, 16116 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16117 return nil, errors.New("field of type String does not have child fields") 16118 }, 16119 } 16120 return fc, nil 16121 } 16122 16123 func (ec *executionContext) _Commerce_Cart_PricedItems_cartItems(ctx context.Context, field graphql.CollectedField, obj *dto.PricedItems) (ret graphql.Marshaler) { 16124 fc, err := ec.fieldContext_Commerce_Cart_PricedItems_cartItems(ctx, field) 16125 if err != nil { 16126 return graphql.Null 16127 } 16128 ctx = graphql.WithFieldContext(ctx, fc) 16129 defer func() { 16130 if r := recover(); r != nil { 16131 ec.Error(ctx, ec.Recover(ctx, r)) 16132 ret = graphql.Null 16133 } 16134 }() 16135 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16136 ctx = rctx // use context from middleware stack in children 16137 return obj.CartItems(), nil 16138 }) 16139 if err != nil { 16140 ec.Error(ctx, err) 16141 return graphql.Null 16142 } 16143 if resTmp == nil { 16144 return graphql.Null 16145 } 16146 res := resTmp.([]dto.PricedCartItem) 16147 fc.Result = res 16148 return ec.marshalOCommerce_Cart_PricedCartItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedCartItemᚄ(ctx, field.Selections, res) 16149 } 16150 16151 func (ec *executionContext) fieldContext_Commerce_Cart_PricedItems_cartItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16152 fc = &graphql.FieldContext{ 16153 Object: "Commerce_Cart_PricedItems", 16154 Field: field, 16155 IsMethod: true, 16156 IsResolver: false, 16157 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16158 switch field.Name { 16159 case "amount": 16160 return ec.fieldContext_Commerce_Cart_PricedCartItem_amount(ctx, field) 16161 case "itemID": 16162 return ec.fieldContext_Commerce_Cart_PricedCartItem_itemID(ctx, field) 16163 } 16164 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PricedCartItem", field.Name) 16165 }, 16166 } 16167 return fc, nil 16168 } 16169 16170 func (ec *executionContext) _Commerce_Cart_PricedItems_shippingItems(ctx context.Context, field graphql.CollectedField, obj *dto.PricedItems) (ret graphql.Marshaler) { 16171 fc, err := ec.fieldContext_Commerce_Cart_PricedItems_shippingItems(ctx, field) 16172 if err != nil { 16173 return graphql.Null 16174 } 16175 ctx = graphql.WithFieldContext(ctx, fc) 16176 defer func() { 16177 if r := recover(); r != nil { 16178 ec.Error(ctx, ec.Recover(ctx, r)) 16179 ret = graphql.Null 16180 } 16181 }() 16182 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16183 ctx = rctx // use context from middleware stack in children 16184 return obj.ShippingItems(), nil 16185 }) 16186 if err != nil { 16187 ec.Error(ctx, err) 16188 return graphql.Null 16189 } 16190 if resTmp == nil { 16191 return graphql.Null 16192 } 16193 res := resTmp.([]dto.PricedShippingItem) 16194 fc.Result = res 16195 return ec.marshalOCommerce_Cart_PricedShippingItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedShippingItemᚄ(ctx, field.Selections, res) 16196 } 16197 16198 func (ec *executionContext) fieldContext_Commerce_Cart_PricedItems_shippingItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16199 fc = &graphql.FieldContext{ 16200 Object: "Commerce_Cart_PricedItems", 16201 Field: field, 16202 IsMethod: true, 16203 IsResolver: false, 16204 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16205 switch field.Name { 16206 case "amount": 16207 return ec.fieldContext_Commerce_Cart_PricedShippingItem_amount(ctx, field) 16208 case "deliveryInfoCode": 16209 return ec.fieldContext_Commerce_Cart_PricedShippingItem_deliveryInfoCode(ctx, field) 16210 } 16211 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PricedShippingItem", field.Name) 16212 }, 16213 } 16214 return fc, nil 16215 } 16216 16217 func (ec *executionContext) _Commerce_Cart_PricedItems_totalItems(ctx context.Context, field graphql.CollectedField, obj *dto.PricedItems) (ret graphql.Marshaler) { 16218 fc, err := ec.fieldContext_Commerce_Cart_PricedItems_totalItems(ctx, field) 16219 if err != nil { 16220 return graphql.Null 16221 } 16222 ctx = graphql.WithFieldContext(ctx, fc) 16223 defer func() { 16224 if r := recover(); r != nil { 16225 ec.Error(ctx, ec.Recover(ctx, r)) 16226 ret = graphql.Null 16227 } 16228 }() 16229 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16230 ctx = rctx // use context from middleware stack in children 16231 return obj.TotalItems(), nil 16232 }) 16233 if err != nil { 16234 ec.Error(ctx, err) 16235 return graphql.Null 16236 } 16237 if resTmp == nil { 16238 return graphql.Null 16239 } 16240 res := resTmp.([]dto.PricedTotalItem) 16241 fc.Result = res 16242 return ec.marshalOCommerce_Cart_PricedTotalItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedTotalItemᚄ(ctx, field.Selections, res) 16243 } 16244 16245 func (ec *executionContext) fieldContext_Commerce_Cart_PricedItems_totalItems(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16246 fc = &graphql.FieldContext{ 16247 Object: "Commerce_Cart_PricedItems", 16248 Field: field, 16249 IsMethod: true, 16250 IsResolver: false, 16251 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16252 switch field.Name { 16253 case "amount": 16254 return ec.fieldContext_Commerce_Cart_PricedTotalItem_amount(ctx, field) 16255 case "code": 16256 return ec.fieldContext_Commerce_Cart_PricedTotalItem_code(ctx, field) 16257 } 16258 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PricedTotalItem", field.Name) 16259 }, 16260 } 16261 return fc, nil 16262 } 16263 16264 func (ec *executionContext) _Commerce_Cart_PricedShippingItem_amount(ctx context.Context, field graphql.CollectedField, obj *dto.PricedShippingItem) (ret graphql.Marshaler) { 16265 fc, err := ec.fieldContext_Commerce_Cart_PricedShippingItem_amount(ctx, field) 16266 if err != nil { 16267 return graphql.Null 16268 } 16269 ctx = graphql.WithFieldContext(ctx, fc) 16270 defer func() { 16271 if r := recover(); r != nil { 16272 ec.Error(ctx, ec.Recover(ctx, r)) 16273 ret = graphql.Null 16274 } 16275 }() 16276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16277 ctx = rctx // use context from middleware stack in children 16278 return obj.Amount, nil 16279 }) 16280 if err != nil { 16281 ec.Error(ctx, err) 16282 return graphql.Null 16283 } 16284 if resTmp == nil { 16285 if !graphql.HasFieldError(ctx, fc) { 16286 ec.Errorf(ctx, "must not be null") 16287 } 16288 return graphql.Null 16289 } 16290 res := resTmp.(domain.Price) 16291 fc.Result = res 16292 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16293 } 16294 16295 func (ec *executionContext) fieldContext_Commerce_Cart_PricedShippingItem_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16296 fc = &graphql.FieldContext{ 16297 Object: "Commerce_Cart_PricedShippingItem", 16298 Field: field, 16299 IsMethod: false, 16300 IsResolver: false, 16301 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16302 switch field.Name { 16303 case "amount": 16304 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16305 case "currency": 16306 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16307 } 16308 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16309 }, 16310 } 16311 return fc, nil 16312 } 16313 16314 func (ec *executionContext) _Commerce_Cart_PricedShippingItem_deliveryInfoCode(ctx context.Context, field graphql.CollectedField, obj *dto.PricedShippingItem) (ret graphql.Marshaler) { 16315 fc, err := ec.fieldContext_Commerce_Cart_PricedShippingItem_deliveryInfoCode(ctx, field) 16316 if err != nil { 16317 return graphql.Null 16318 } 16319 ctx = graphql.WithFieldContext(ctx, fc) 16320 defer func() { 16321 if r := recover(); r != nil { 16322 ec.Error(ctx, ec.Recover(ctx, r)) 16323 ret = graphql.Null 16324 } 16325 }() 16326 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16327 ctx = rctx // use context from middleware stack in children 16328 return obj.DeliveryInfoCode, nil 16329 }) 16330 if err != nil { 16331 ec.Error(ctx, err) 16332 return graphql.Null 16333 } 16334 if resTmp == nil { 16335 if !graphql.HasFieldError(ctx, fc) { 16336 ec.Errorf(ctx, "must not be null") 16337 } 16338 return graphql.Null 16339 } 16340 res := resTmp.(string) 16341 fc.Result = res 16342 return ec.marshalNString2string(ctx, field.Selections, res) 16343 } 16344 16345 func (ec *executionContext) fieldContext_Commerce_Cart_PricedShippingItem_deliveryInfoCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16346 fc = &graphql.FieldContext{ 16347 Object: "Commerce_Cart_PricedShippingItem", 16348 Field: field, 16349 IsMethod: false, 16350 IsResolver: false, 16351 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16352 return nil, errors.New("field of type String does not have child fields") 16353 }, 16354 } 16355 return fc, nil 16356 } 16357 16358 func (ec *executionContext) _Commerce_Cart_PricedTotalItem_amount(ctx context.Context, field graphql.CollectedField, obj *dto.PricedTotalItem) (ret graphql.Marshaler) { 16359 fc, err := ec.fieldContext_Commerce_Cart_PricedTotalItem_amount(ctx, field) 16360 if err != nil { 16361 return graphql.Null 16362 } 16363 ctx = graphql.WithFieldContext(ctx, fc) 16364 defer func() { 16365 if r := recover(); r != nil { 16366 ec.Error(ctx, ec.Recover(ctx, r)) 16367 ret = graphql.Null 16368 } 16369 }() 16370 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16371 ctx = rctx // use context from middleware stack in children 16372 return obj.Amount, nil 16373 }) 16374 if err != nil { 16375 ec.Error(ctx, err) 16376 return graphql.Null 16377 } 16378 if resTmp == nil { 16379 if !graphql.HasFieldError(ctx, fc) { 16380 ec.Errorf(ctx, "must not be null") 16381 } 16382 return graphql.Null 16383 } 16384 res := resTmp.(domain.Price) 16385 fc.Result = res 16386 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16387 } 16388 16389 func (ec *executionContext) fieldContext_Commerce_Cart_PricedTotalItem_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16390 fc = &graphql.FieldContext{ 16391 Object: "Commerce_Cart_PricedTotalItem", 16392 Field: field, 16393 IsMethod: false, 16394 IsResolver: false, 16395 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16396 switch field.Name { 16397 case "amount": 16398 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16399 case "currency": 16400 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16401 } 16402 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16403 }, 16404 } 16405 return fc, nil 16406 } 16407 16408 func (ec *executionContext) _Commerce_Cart_PricedTotalItem_code(ctx context.Context, field graphql.CollectedField, obj *dto.PricedTotalItem) (ret graphql.Marshaler) { 16409 fc, err := ec.fieldContext_Commerce_Cart_PricedTotalItem_code(ctx, field) 16410 if err != nil { 16411 return graphql.Null 16412 } 16413 ctx = graphql.WithFieldContext(ctx, fc) 16414 defer func() { 16415 if r := recover(); r != nil { 16416 ec.Error(ctx, ec.Recover(ctx, r)) 16417 ret = graphql.Null 16418 } 16419 }() 16420 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16421 ctx = rctx // use context from middleware stack in children 16422 return obj.Code, nil 16423 }) 16424 if err != nil { 16425 ec.Error(ctx, err) 16426 return graphql.Null 16427 } 16428 if resTmp == nil { 16429 if !graphql.HasFieldError(ctx, fc) { 16430 ec.Errorf(ctx, "must not be null") 16431 } 16432 return graphql.Null 16433 } 16434 res := resTmp.(string) 16435 fc.Result = res 16436 return ec.marshalNString2string(ctx, field.Selections, res) 16437 } 16438 16439 func (ec *executionContext) fieldContext_Commerce_Cart_PricedTotalItem_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16440 fc = &graphql.FieldContext{ 16441 Object: "Commerce_Cart_PricedTotalItem", 16442 Field: field, 16443 IsMethod: false, 16444 IsResolver: false, 16445 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16446 return nil, errors.New("field of type String does not have child fields") 16447 }, 16448 } 16449 return fc, nil 16450 } 16451 16452 func (ec *executionContext) _Commerce_Cart_QtyRestrictionResult_isRestricted(ctx context.Context, field graphql.CollectedField, obj *validation.RestrictionResult) (ret graphql.Marshaler) { 16453 fc, err := ec.fieldContext_Commerce_Cart_QtyRestrictionResult_isRestricted(ctx, field) 16454 if err != nil { 16455 return graphql.Null 16456 } 16457 ctx = graphql.WithFieldContext(ctx, fc) 16458 defer func() { 16459 if r := recover(); r != nil { 16460 ec.Error(ctx, ec.Recover(ctx, r)) 16461 ret = graphql.Null 16462 } 16463 }() 16464 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16465 ctx = rctx // use context from middleware stack in children 16466 return obj.IsRestricted, nil 16467 }) 16468 if err != nil { 16469 ec.Error(ctx, err) 16470 return graphql.Null 16471 } 16472 if resTmp == nil { 16473 if !graphql.HasFieldError(ctx, fc) { 16474 ec.Errorf(ctx, "must not be null") 16475 } 16476 return graphql.Null 16477 } 16478 res := resTmp.(bool) 16479 fc.Result = res 16480 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 16481 } 16482 16483 func (ec *executionContext) fieldContext_Commerce_Cart_QtyRestrictionResult_isRestricted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16484 fc = &graphql.FieldContext{ 16485 Object: "Commerce_Cart_QtyRestrictionResult", 16486 Field: field, 16487 IsMethod: false, 16488 IsResolver: false, 16489 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16490 return nil, errors.New("field of type Boolean does not have child fields") 16491 }, 16492 } 16493 return fc, nil 16494 } 16495 16496 func (ec *executionContext) _Commerce_Cart_QtyRestrictionResult_maxAllowed(ctx context.Context, field graphql.CollectedField, obj *validation.RestrictionResult) (ret graphql.Marshaler) { 16497 fc, err := ec.fieldContext_Commerce_Cart_QtyRestrictionResult_maxAllowed(ctx, field) 16498 if err != nil { 16499 return graphql.Null 16500 } 16501 ctx = graphql.WithFieldContext(ctx, fc) 16502 defer func() { 16503 if r := recover(); r != nil { 16504 ec.Error(ctx, ec.Recover(ctx, r)) 16505 ret = graphql.Null 16506 } 16507 }() 16508 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16509 ctx = rctx // use context from middleware stack in children 16510 return obj.MaxAllowed, nil 16511 }) 16512 if err != nil { 16513 ec.Error(ctx, err) 16514 return graphql.Null 16515 } 16516 if resTmp == nil { 16517 if !graphql.HasFieldError(ctx, fc) { 16518 ec.Errorf(ctx, "must not be null") 16519 } 16520 return graphql.Null 16521 } 16522 res := resTmp.(int) 16523 fc.Result = res 16524 return ec.marshalNInt2int(ctx, field.Selections, res) 16525 } 16526 16527 func (ec *executionContext) fieldContext_Commerce_Cart_QtyRestrictionResult_maxAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16528 fc = &graphql.FieldContext{ 16529 Object: "Commerce_Cart_QtyRestrictionResult", 16530 Field: field, 16531 IsMethod: false, 16532 IsResolver: false, 16533 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16534 return nil, errors.New("field of type Int does not have child fields") 16535 }, 16536 } 16537 return fc, nil 16538 } 16539 16540 func (ec *executionContext) _Commerce_Cart_QtyRestrictionResult_remainingDifference(ctx context.Context, field graphql.CollectedField, obj *validation.RestrictionResult) (ret graphql.Marshaler) { 16541 fc, err := ec.fieldContext_Commerce_Cart_QtyRestrictionResult_remainingDifference(ctx, field) 16542 if err != nil { 16543 return graphql.Null 16544 } 16545 ctx = graphql.WithFieldContext(ctx, fc) 16546 defer func() { 16547 if r := recover(); r != nil { 16548 ec.Error(ctx, ec.Recover(ctx, r)) 16549 ret = graphql.Null 16550 } 16551 }() 16552 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16553 ctx = rctx // use context from middleware stack in children 16554 return obj.RemainingDifference, nil 16555 }) 16556 if err != nil { 16557 ec.Error(ctx, err) 16558 return graphql.Null 16559 } 16560 if resTmp == nil { 16561 if !graphql.HasFieldError(ctx, fc) { 16562 ec.Errorf(ctx, "must not be null") 16563 } 16564 return graphql.Null 16565 } 16566 res := resTmp.(int) 16567 fc.Result = res 16568 return ec.marshalNInt2int(ctx, field.Selections, res) 16569 } 16570 16571 func (ec *executionContext) fieldContext_Commerce_Cart_QtyRestrictionResult_remainingDifference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16572 fc = &graphql.FieldContext{ 16573 Object: "Commerce_Cart_QtyRestrictionResult", 16574 Field: field, 16575 IsMethod: false, 16576 IsResolver: false, 16577 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16578 return nil, errors.New("field of type Int does not have child fields") 16579 }, 16580 } 16581 return fc, nil 16582 } 16583 16584 func (ec *executionContext) _Commerce_Cart_QtyRestrictionResult_restrictorName(ctx context.Context, field graphql.CollectedField, obj *validation.RestrictionResult) (ret graphql.Marshaler) { 16585 fc, err := ec.fieldContext_Commerce_Cart_QtyRestrictionResult_restrictorName(ctx, field) 16586 if err != nil { 16587 return graphql.Null 16588 } 16589 ctx = graphql.WithFieldContext(ctx, fc) 16590 defer func() { 16591 if r := recover(); r != nil { 16592 ec.Error(ctx, ec.Recover(ctx, r)) 16593 ret = graphql.Null 16594 } 16595 }() 16596 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16597 ctx = rctx // use context from middleware stack in children 16598 return obj.RestrictorName, nil 16599 }) 16600 if err != nil { 16601 ec.Error(ctx, err) 16602 return graphql.Null 16603 } 16604 if resTmp == nil { 16605 if !graphql.HasFieldError(ctx, fc) { 16606 ec.Errorf(ctx, "must not be null") 16607 } 16608 return graphql.Null 16609 } 16610 res := resTmp.(string) 16611 fc.Result = res 16612 return ec.marshalNString2string(ctx, field.Selections, res) 16613 } 16614 16615 func (ec *executionContext) fieldContext_Commerce_Cart_QtyRestrictionResult_restrictorName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16616 fc = &graphql.FieldContext{ 16617 Object: "Commerce_Cart_QtyRestrictionResult", 16618 Field: field, 16619 IsMethod: false, 16620 IsResolver: false, 16621 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16622 return nil, errors.New("field of type String does not have child fields") 16623 }, 16624 } 16625 return fc, nil 16626 } 16627 16628 func (ec *executionContext) _Commerce_Cart_SelectedPaymentResult_validationInfo(ctx context.Context, field graphql.CollectedField, obj *dto.SelectedPaymentResult) (ret graphql.Marshaler) { 16629 fc, err := ec.fieldContext_Commerce_Cart_SelectedPaymentResult_validationInfo(ctx, field) 16630 if err != nil { 16631 return graphql.Null 16632 } 16633 ctx = graphql.WithFieldContext(ctx, fc) 16634 defer func() { 16635 if r := recover(); r != nil { 16636 ec.Error(ctx, ec.Recover(ctx, r)) 16637 ret = graphql.Null 16638 } 16639 }() 16640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16641 ctx = rctx // use context from middleware stack in children 16642 return obj.ValidationInfo, nil 16643 }) 16644 if err != nil { 16645 ec.Error(ctx, err) 16646 return graphql.Null 16647 } 16648 if resTmp == nil { 16649 return graphql.Null 16650 } 16651 res := resTmp.(dto.ValidationInfo) 16652 fc.Result = res 16653 return ec.marshalOCommerce_Cart_Form_ValidationInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐValidationInfo(ctx, field.Selections, res) 16654 } 16655 16656 func (ec *executionContext) fieldContext_Commerce_Cart_SelectedPaymentResult_validationInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16657 fc = &graphql.FieldContext{ 16658 Object: "Commerce_Cart_SelectedPaymentResult", 16659 Field: field, 16660 IsMethod: false, 16661 IsResolver: false, 16662 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16663 switch field.Name { 16664 case "fieldErrors": 16665 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx, field) 16666 case "generalErrors": 16667 return ec.fieldContext_Commerce_Cart_Form_ValidationInfo_generalErrors(ctx, field) 16668 } 16669 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Form_ValidationInfo", field.Name) 16670 }, 16671 } 16672 return fc, nil 16673 } 16674 16675 func (ec *executionContext) _Commerce_Cart_SelectedPaymentResult_processed(ctx context.Context, field graphql.CollectedField, obj *dto.SelectedPaymentResult) (ret graphql.Marshaler) { 16676 fc, err := ec.fieldContext_Commerce_Cart_SelectedPaymentResult_processed(ctx, field) 16677 if err != nil { 16678 return graphql.Null 16679 } 16680 ctx = graphql.WithFieldContext(ctx, fc) 16681 defer func() { 16682 if r := recover(); r != nil { 16683 ec.Error(ctx, ec.Recover(ctx, r)) 16684 ret = graphql.Null 16685 } 16686 }() 16687 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16688 ctx = rctx // use context from middleware stack in children 16689 return obj.Processed, nil 16690 }) 16691 if err != nil { 16692 ec.Error(ctx, err) 16693 return graphql.Null 16694 } 16695 if resTmp == nil { 16696 return graphql.Null 16697 } 16698 res := resTmp.(bool) 16699 fc.Result = res 16700 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 16701 } 16702 16703 func (ec *executionContext) fieldContext_Commerce_Cart_SelectedPaymentResult_processed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16704 fc = &graphql.FieldContext{ 16705 Object: "Commerce_Cart_SelectedPaymentResult", 16706 Field: field, 16707 IsMethod: false, 16708 IsResolver: false, 16709 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16710 return nil, errors.New("field of type Boolean does not have child fields") 16711 }, 16712 } 16713 return fc, nil 16714 } 16715 16716 func (ec *executionContext) _Commerce_Cart_ShippingItem_title(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16717 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_title(ctx, field) 16718 if err != nil { 16719 return graphql.Null 16720 } 16721 ctx = graphql.WithFieldContext(ctx, fc) 16722 defer func() { 16723 if r := recover(); r != nil { 16724 ec.Error(ctx, ec.Recover(ctx, r)) 16725 ret = graphql.Null 16726 } 16727 }() 16728 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16729 ctx = rctx // use context from middleware stack in children 16730 return obj.Title, nil 16731 }) 16732 if err != nil { 16733 ec.Error(ctx, err) 16734 return graphql.Null 16735 } 16736 if resTmp == nil { 16737 if !graphql.HasFieldError(ctx, fc) { 16738 ec.Errorf(ctx, "must not be null") 16739 } 16740 return graphql.Null 16741 } 16742 res := resTmp.(string) 16743 fc.Result = res 16744 return ec.marshalNString2string(ctx, field.Selections, res) 16745 } 16746 16747 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16748 fc = &graphql.FieldContext{ 16749 Object: "Commerce_Cart_ShippingItem", 16750 Field: field, 16751 IsMethod: false, 16752 IsResolver: false, 16753 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16754 return nil, errors.New("field of type String does not have child fields") 16755 }, 16756 } 16757 return fc, nil 16758 } 16759 16760 func (ec *executionContext) _Commerce_Cart_ShippingItem_priceNet(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16761 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_priceNet(ctx, field) 16762 if err != nil { 16763 return graphql.Null 16764 } 16765 ctx = graphql.WithFieldContext(ctx, fc) 16766 defer func() { 16767 if r := recover(); r != nil { 16768 ec.Error(ctx, ec.Recover(ctx, r)) 16769 ret = graphql.Null 16770 } 16771 }() 16772 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16773 ctx = rctx // use context from middleware stack in children 16774 return obj.PriceNet, nil 16775 }) 16776 if err != nil { 16777 ec.Error(ctx, err) 16778 return graphql.Null 16779 } 16780 if resTmp == nil { 16781 if !graphql.HasFieldError(ctx, fc) { 16782 ec.Errorf(ctx, "must not be null") 16783 } 16784 return graphql.Null 16785 } 16786 res := resTmp.(domain.Price) 16787 fc.Result = res 16788 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16789 } 16790 16791 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_priceNet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16792 fc = &graphql.FieldContext{ 16793 Object: "Commerce_Cart_ShippingItem", 16794 Field: field, 16795 IsMethod: false, 16796 IsResolver: false, 16797 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16798 switch field.Name { 16799 case "amount": 16800 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16801 case "currency": 16802 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16803 } 16804 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16805 }, 16806 } 16807 return fc, nil 16808 } 16809 16810 func (ec *executionContext) _Commerce_Cart_ShippingItem_taxAmount(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16811 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_taxAmount(ctx, field) 16812 if err != nil { 16813 return graphql.Null 16814 } 16815 ctx = graphql.WithFieldContext(ctx, fc) 16816 defer func() { 16817 if r := recover(); r != nil { 16818 ec.Error(ctx, ec.Recover(ctx, r)) 16819 ret = graphql.Null 16820 } 16821 }() 16822 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16823 ctx = rctx // use context from middleware stack in children 16824 return obj.TaxAmount, nil 16825 }) 16826 if err != nil { 16827 ec.Error(ctx, err) 16828 return graphql.Null 16829 } 16830 if resTmp == nil { 16831 if !graphql.HasFieldError(ctx, fc) { 16832 ec.Errorf(ctx, "must not be null") 16833 } 16834 return graphql.Null 16835 } 16836 res := resTmp.(domain.Price) 16837 fc.Result = res 16838 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16839 } 16840 16841 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_taxAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16842 fc = &graphql.FieldContext{ 16843 Object: "Commerce_Cart_ShippingItem", 16844 Field: field, 16845 IsMethod: false, 16846 IsResolver: false, 16847 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16848 switch field.Name { 16849 case "amount": 16850 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16851 case "currency": 16852 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16853 } 16854 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16855 }, 16856 } 16857 return fc, nil 16858 } 16859 16860 func (ec *executionContext) _Commerce_Cart_ShippingItem_priceGross(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16861 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_priceGross(ctx, field) 16862 if err != nil { 16863 return graphql.Null 16864 } 16865 ctx = graphql.WithFieldContext(ctx, fc) 16866 defer func() { 16867 if r := recover(); r != nil { 16868 ec.Error(ctx, ec.Recover(ctx, r)) 16869 ret = graphql.Null 16870 } 16871 }() 16872 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16873 ctx = rctx // use context from middleware stack in children 16874 return obj.PriceGross, nil 16875 }) 16876 if err != nil { 16877 ec.Error(ctx, err) 16878 return graphql.Null 16879 } 16880 if resTmp == nil { 16881 if !graphql.HasFieldError(ctx, fc) { 16882 ec.Errorf(ctx, "must not be null") 16883 } 16884 return graphql.Null 16885 } 16886 res := resTmp.(domain.Price) 16887 fc.Result = res 16888 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16889 } 16890 16891 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_priceGross(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16892 fc = &graphql.FieldContext{ 16893 Object: "Commerce_Cart_ShippingItem", 16894 Field: field, 16895 IsMethod: false, 16896 IsResolver: false, 16897 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16898 switch field.Name { 16899 case "amount": 16900 return ec.fieldContext_Commerce_Price_amount(ctx, field) 16901 case "currency": 16902 return ec.fieldContext_Commerce_Price_currency(ctx, field) 16903 } 16904 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 16905 }, 16906 } 16907 return fc, nil 16908 } 16909 16910 func (ec *executionContext) _Commerce_Cart_ShippingItem_appliedDiscounts(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16911 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_appliedDiscounts(ctx, field) 16912 if err != nil { 16913 return graphql.Null 16914 } 16915 ctx = graphql.WithFieldContext(ctx, fc) 16916 defer func() { 16917 if r := recover(); r != nil { 16918 ec.Error(ctx, ec.Recover(ctx, r)) 16919 ret = graphql.Null 16920 } 16921 }() 16922 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16923 ctx = rctx // use context from middleware stack in children 16924 return ec.resolvers.Commerce_Cart_ShippingItem().AppliedDiscounts(rctx, obj) 16925 }) 16926 if err != nil { 16927 ec.Error(ctx, err) 16928 return graphql.Null 16929 } 16930 if resTmp == nil { 16931 if !graphql.HasFieldError(ctx, fc) { 16932 ec.Errorf(ctx, "must not be null") 16933 } 16934 return graphql.Null 16935 } 16936 res := resTmp.(*dto.CartAppliedDiscounts) 16937 fc.Result = res 16938 return ec.marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx, field.Selections, res) 16939 } 16940 16941 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_appliedDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16942 fc = &graphql.FieldContext{ 16943 Object: "Commerce_Cart_ShippingItem", 16944 Field: field, 16945 IsMethod: true, 16946 IsResolver: true, 16947 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 16948 switch field.Name { 16949 case "items": 16950 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 16951 case "byCampaignCode": 16952 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 16953 case "byType": 16954 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 16955 } 16956 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscounts", field.Name) 16957 }, 16958 } 16959 return fc, nil 16960 } 16961 16962 func (ec *executionContext) _Commerce_Cart_ShippingItem_totalWithDiscountInclTax(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 16963 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_totalWithDiscountInclTax(ctx, field) 16964 if err != nil { 16965 return graphql.Null 16966 } 16967 ctx = graphql.WithFieldContext(ctx, fc) 16968 defer func() { 16969 if r := recover(); r != nil { 16970 ec.Error(ctx, ec.Recover(ctx, r)) 16971 ret = graphql.Null 16972 } 16973 }() 16974 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16975 ctx = rctx // use context from middleware stack in children 16976 return obj.TotalWithDiscountInclTax(), nil 16977 }) 16978 if err != nil { 16979 ec.Error(ctx, err) 16980 return graphql.Null 16981 } 16982 if resTmp == nil { 16983 if !graphql.HasFieldError(ctx, fc) { 16984 ec.Errorf(ctx, "must not be null") 16985 } 16986 return graphql.Null 16987 } 16988 res := resTmp.(domain.Price) 16989 fc.Result = res 16990 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 16991 } 16992 16993 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_totalWithDiscountInclTax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 16994 fc = &graphql.FieldContext{ 16995 Object: "Commerce_Cart_ShippingItem", 16996 Field: field, 16997 IsMethod: true, 16998 IsResolver: false, 16999 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17000 switch field.Name { 17001 case "amount": 17002 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17003 case "currency": 17004 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17005 } 17006 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17007 }, 17008 } 17009 return fc, nil 17010 } 17011 17012 func (ec *executionContext) _Commerce_Cart_ShippingItem_tax(ctx context.Context, field graphql.CollectedField, obj *cart.ShippingItem) (ret graphql.Marshaler) { 17013 fc, err := ec.fieldContext_Commerce_Cart_ShippingItem_tax(ctx, field) 17014 if err != nil { 17015 return graphql.Null 17016 } 17017 ctx = graphql.WithFieldContext(ctx, fc) 17018 defer func() { 17019 if r := recover(); r != nil { 17020 ec.Error(ctx, ec.Recover(ctx, r)) 17021 ret = graphql.Null 17022 } 17023 }() 17024 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17025 ctx = rctx // use context from middleware stack in children 17026 return obj.Tax(), nil 17027 }) 17028 if err != nil { 17029 ec.Error(ctx, err) 17030 return graphql.Null 17031 } 17032 if resTmp == nil { 17033 if !graphql.HasFieldError(ctx, fc) { 17034 ec.Errorf(ctx, "must not be null") 17035 } 17036 return graphql.Null 17037 } 17038 res := resTmp.(cart.Tax) 17039 fc.Result = res 17040 return ec.marshalNCommerce_Cart_Tax2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx, field.Selections, res) 17041 } 17042 17043 func (ec *executionContext) fieldContext_Commerce_Cart_ShippingItem_tax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17044 fc = &graphql.FieldContext{ 17045 Object: "Commerce_Cart_ShippingItem", 17046 Field: field, 17047 IsMethod: true, 17048 IsResolver: false, 17049 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17050 switch field.Name { 17051 case "amount": 17052 return ec.fieldContext_Commerce_Cart_Tax_amount(ctx, field) 17053 case "type": 17054 return ec.fieldContext_Commerce_Cart_Tax_type(ctx, field) 17055 case "rate": 17056 return ec.fieldContext_Commerce_Cart_Tax_rate(ctx, field) 17057 } 17058 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Tax", field.Name) 17059 }, 17060 } 17061 return fc, nil 17062 } 17063 17064 func (ec *executionContext) _Commerce_Cart_Summary_discounts(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17065 fc, err := ec.fieldContext_Commerce_Cart_Summary_discounts(ctx, field) 17066 if err != nil { 17067 return graphql.Null 17068 } 17069 ctx = graphql.WithFieldContext(ctx, fc) 17070 defer func() { 17071 if r := recover(); r != nil { 17072 ec.Error(ctx, ec.Recover(ctx, r)) 17073 ret = graphql.Null 17074 } 17075 }() 17076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17077 ctx = rctx // use context from middleware stack in children 17078 return obj.Discounts(), nil 17079 }) 17080 if err != nil { 17081 ec.Error(ctx, err) 17082 return graphql.Null 17083 } 17084 if resTmp == nil { 17085 if !graphql.HasFieldError(ctx, fc) { 17086 ec.Errorf(ctx, "must not be null") 17087 } 17088 return graphql.Null 17089 } 17090 res := resTmp.(*dto.CartAppliedDiscounts) 17091 fc.Result = res 17092 return ec.marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx, field.Selections, res) 17093 } 17094 17095 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_discounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17096 fc = &graphql.FieldContext{ 17097 Object: "Commerce_Cart_Summary", 17098 Field: field, 17099 IsMethod: true, 17100 IsResolver: false, 17101 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17102 switch field.Name { 17103 case "items": 17104 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_items(ctx, field) 17105 case "byCampaignCode": 17106 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field) 17107 case "byType": 17108 return ec.fieldContext_Commerce_Cart_AppliedDiscounts_byType(ctx, field) 17109 } 17110 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_AppliedDiscounts", field.Name) 17111 }, 17112 } 17113 return fc, nil 17114 } 17115 17116 func (ec *executionContext) _Commerce_Cart_Summary_totalDiscountAmount(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17117 fc, err := ec.fieldContext_Commerce_Cart_Summary_totalDiscountAmount(ctx, field) 17118 if err != nil { 17119 return graphql.Null 17120 } 17121 ctx = graphql.WithFieldContext(ctx, fc) 17122 defer func() { 17123 if r := recover(); r != nil { 17124 ec.Error(ctx, ec.Recover(ctx, r)) 17125 ret = graphql.Null 17126 } 17127 }() 17128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17129 ctx = rctx // use context from middleware stack in children 17130 return obj.TotalDiscountAmount(), nil 17131 }) 17132 if err != nil { 17133 ec.Error(ctx, err) 17134 return graphql.Null 17135 } 17136 if resTmp == nil { 17137 return graphql.Null 17138 } 17139 res := resTmp.(*domain.Price) 17140 fc.Result = res 17141 return ec.marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17142 } 17143 17144 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_totalDiscountAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17145 fc = &graphql.FieldContext{ 17146 Object: "Commerce_Cart_Summary", 17147 Field: field, 17148 IsMethod: true, 17149 IsResolver: false, 17150 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17151 switch field.Name { 17152 case "amount": 17153 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17154 case "currency": 17155 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17156 } 17157 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17158 }, 17159 } 17160 return fc, nil 17161 } 17162 17163 func (ec *executionContext) _Commerce_Cart_Summary_totalGiftCardAmount(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17164 fc, err := ec.fieldContext_Commerce_Cart_Summary_totalGiftCardAmount(ctx, field) 17165 if err != nil { 17166 return graphql.Null 17167 } 17168 ctx = graphql.WithFieldContext(ctx, fc) 17169 defer func() { 17170 if r := recover(); r != nil { 17171 ec.Error(ctx, ec.Recover(ctx, r)) 17172 ret = graphql.Null 17173 } 17174 }() 17175 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17176 ctx = rctx // use context from middleware stack in children 17177 return obj.TotalGiftCardAmount(), nil 17178 }) 17179 if err != nil { 17180 ec.Error(ctx, err) 17181 return graphql.Null 17182 } 17183 if resTmp == nil { 17184 return graphql.Null 17185 } 17186 res := resTmp.(*domain.Price) 17187 fc.Result = res 17188 return ec.marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17189 } 17190 17191 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_totalGiftCardAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17192 fc = &graphql.FieldContext{ 17193 Object: "Commerce_Cart_Summary", 17194 Field: field, 17195 IsMethod: true, 17196 IsResolver: false, 17197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17198 switch field.Name { 17199 case "amount": 17200 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17201 case "currency": 17202 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17203 } 17204 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17205 }, 17206 } 17207 return fc, nil 17208 } 17209 17210 func (ec *executionContext) _Commerce_Cart_Summary_grandTotalWithGiftCards(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17211 fc, err := ec.fieldContext_Commerce_Cart_Summary_grandTotalWithGiftCards(ctx, field) 17212 if err != nil { 17213 return graphql.Null 17214 } 17215 ctx = graphql.WithFieldContext(ctx, fc) 17216 defer func() { 17217 if r := recover(); r != nil { 17218 ec.Error(ctx, ec.Recover(ctx, r)) 17219 ret = graphql.Null 17220 } 17221 }() 17222 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17223 ctx = rctx // use context from middleware stack in children 17224 return obj.GrandTotalWithGiftCards(), nil 17225 }) 17226 if err != nil { 17227 ec.Error(ctx, err) 17228 return graphql.Null 17229 } 17230 if resTmp == nil { 17231 return graphql.Null 17232 } 17233 res := resTmp.(*domain.Price) 17234 fc.Result = res 17235 return ec.marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17236 } 17237 17238 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_grandTotalWithGiftCards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17239 fc = &graphql.FieldContext{ 17240 Object: "Commerce_Cart_Summary", 17241 Field: field, 17242 IsMethod: true, 17243 IsResolver: false, 17244 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17245 switch field.Name { 17246 case "amount": 17247 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17248 case "currency": 17249 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17250 } 17251 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17252 }, 17253 } 17254 return fc, nil 17255 } 17256 17257 func (ec *executionContext) _Commerce_Cart_Summary_sumTotalDiscountWithGiftCardsAmount(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17258 fc, err := ec.fieldContext_Commerce_Cart_Summary_sumTotalDiscountWithGiftCardsAmount(ctx, field) 17259 if err != nil { 17260 return graphql.Null 17261 } 17262 ctx = graphql.WithFieldContext(ctx, fc) 17263 defer func() { 17264 if r := recover(); r != nil { 17265 ec.Error(ctx, ec.Recover(ctx, r)) 17266 ret = graphql.Null 17267 } 17268 }() 17269 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17270 ctx = rctx // use context from middleware stack in children 17271 return obj.SumTotalDiscountWithGiftCardsAmount(), nil 17272 }) 17273 if err != nil { 17274 ec.Error(ctx, err) 17275 return graphql.Null 17276 } 17277 if resTmp == nil { 17278 return graphql.Null 17279 } 17280 res := resTmp.(domain.Price) 17281 fc.Result = res 17282 return ec.marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17283 } 17284 17285 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_sumTotalDiscountWithGiftCardsAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17286 fc = &graphql.FieldContext{ 17287 Object: "Commerce_Cart_Summary", 17288 Field: field, 17289 IsMethod: true, 17290 IsResolver: false, 17291 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17292 switch field.Name { 17293 case "amount": 17294 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17295 case "currency": 17296 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17297 } 17298 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17299 }, 17300 } 17301 return fc, nil 17302 } 17303 17304 func (ec *executionContext) _Commerce_Cart_Summary_hasAppliedDiscounts(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17305 fc, err := ec.fieldContext_Commerce_Cart_Summary_hasAppliedDiscounts(ctx, field) 17306 if err != nil { 17307 return graphql.Null 17308 } 17309 ctx = graphql.WithFieldContext(ctx, fc) 17310 defer func() { 17311 if r := recover(); r != nil { 17312 ec.Error(ctx, ec.Recover(ctx, r)) 17313 ret = graphql.Null 17314 } 17315 }() 17316 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17317 ctx = rctx // use context from middleware stack in children 17318 return obj.HasAppliedDiscounts(), nil 17319 }) 17320 if err != nil { 17321 ec.Error(ctx, err) 17322 return graphql.Null 17323 } 17324 if resTmp == nil { 17325 if !graphql.HasFieldError(ctx, fc) { 17326 ec.Errorf(ctx, "must not be null") 17327 } 17328 return graphql.Null 17329 } 17330 res := resTmp.(bool) 17331 fc.Result = res 17332 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 17333 } 17334 17335 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_hasAppliedDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17336 fc = &graphql.FieldContext{ 17337 Object: "Commerce_Cart_Summary", 17338 Field: field, 17339 IsMethod: true, 17340 IsResolver: false, 17341 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17342 return nil, errors.New("field of type Boolean does not have child fields") 17343 }, 17344 } 17345 return fc, nil 17346 } 17347 17348 func (ec *executionContext) _Commerce_Cart_Summary_sumTaxes(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17349 fc, err := ec.fieldContext_Commerce_Cart_Summary_sumTaxes(ctx, field) 17350 if err != nil { 17351 return graphql.Null 17352 } 17353 ctx = graphql.WithFieldContext(ctx, fc) 17354 defer func() { 17355 if r := recover(); r != nil { 17356 ec.Error(ctx, ec.Recover(ctx, r)) 17357 ret = graphql.Null 17358 } 17359 }() 17360 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17361 ctx = rctx // use context from middleware stack in children 17362 return obj.SumTaxes(), nil 17363 }) 17364 if err != nil { 17365 ec.Error(ctx, err) 17366 return graphql.Null 17367 } 17368 if resTmp == nil { 17369 return graphql.Null 17370 } 17371 res := resTmp.(*dto.Taxes) 17372 fc.Result = res 17373 return ec.marshalOCommerce_Cart_Taxes2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐTaxes(ctx, field.Selections, res) 17374 } 17375 17376 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_sumTaxes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17377 fc = &graphql.FieldContext{ 17378 Object: "Commerce_Cart_Summary", 17379 Field: field, 17380 IsMethod: true, 17381 IsResolver: false, 17382 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17383 switch field.Name { 17384 case "items": 17385 return ec.fieldContext_Commerce_Cart_Taxes_items(ctx, field) 17386 case "getByType": 17387 return ec.fieldContext_Commerce_Cart_Taxes_getByType(ctx, field) 17388 } 17389 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Taxes", field.Name) 17390 }, 17391 } 17392 return fc, nil 17393 } 17394 17395 func (ec *executionContext) _Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17396 fc, err := ec.fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods(ctx, field) 17397 if err != nil { 17398 return graphql.Null 17399 } 17400 ctx = graphql.WithFieldContext(ctx, fc) 17401 defer func() { 17402 if r := recover(); r != nil { 17403 ec.Error(ctx, ec.Recover(ctx, r)) 17404 ret = graphql.Null 17405 } 17406 }() 17407 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17408 ctx = rctx // use context from middleware stack in children 17409 return obj.SumPaymentSelectionCartSplitValueAmountByMethods(fc.Args["methods"].([]string)), nil 17410 }) 17411 if err != nil { 17412 ec.Error(ctx, err) 17413 return graphql.Null 17414 } 17415 if resTmp == nil { 17416 return graphql.Null 17417 } 17418 res := resTmp.(*domain.Price) 17419 fc.Result = res 17420 return ec.marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17421 } 17422 17423 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17424 fc = &graphql.FieldContext{ 17425 Object: "Commerce_Cart_Summary", 17426 Field: field, 17427 IsMethod: true, 17428 IsResolver: false, 17429 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17430 switch field.Name { 17431 case "amount": 17432 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17433 case "currency": 17434 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17435 } 17436 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17437 }, 17438 } 17439 defer func() { 17440 if r := recover(); r != nil { 17441 err = ec.Recover(ctx, r) 17442 ec.Error(ctx, err) 17443 } 17444 }() 17445 ctx = graphql.WithFieldContext(ctx, fc) 17446 if fc.Args, err = ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 17447 ec.Error(ctx, err) 17448 return fc, err 17449 } 17450 return fc, nil 17451 } 17452 17453 func (ec *executionContext) _Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods(ctx context.Context, field graphql.CollectedField, obj *dto.CartSummary) (ret graphql.Marshaler) { 17454 fc, err := ec.fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods(ctx, field) 17455 if err != nil { 17456 return graphql.Null 17457 } 17458 ctx = graphql.WithFieldContext(ctx, fc) 17459 defer func() { 17460 if r := recover(); r != nil { 17461 ec.Error(ctx, ec.Recover(ctx, r)) 17462 ret = graphql.Null 17463 } 17464 }() 17465 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17466 ctx = rctx // use context from middleware stack in children 17467 return obj.SumPaymentSelectionCartSplitPriceAmountByMethods(fc.Args["methods"].([]string)), nil 17468 }) 17469 if err != nil { 17470 ec.Error(ctx, err) 17471 return graphql.Null 17472 } 17473 if resTmp == nil { 17474 return graphql.Null 17475 } 17476 res := resTmp.(*domain.Price) 17477 fc.Result = res 17478 return ec.marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17479 } 17480 17481 func (ec *executionContext) fieldContext_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17482 fc = &graphql.FieldContext{ 17483 Object: "Commerce_Cart_Summary", 17484 Field: field, 17485 IsMethod: true, 17486 IsResolver: false, 17487 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17488 switch field.Name { 17489 case "amount": 17490 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17491 case "currency": 17492 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17493 } 17494 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17495 }, 17496 } 17497 defer func() { 17498 if r := recover(); r != nil { 17499 err = ec.Recover(ctx, r) 17500 ec.Error(ctx, err) 17501 } 17502 }() 17503 ctx = graphql.WithFieldContext(ctx, fc) 17504 if fc.Args, err = ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 17505 ec.Error(ctx, err) 17506 return fc, err 17507 } 17508 return fc, nil 17509 } 17510 17511 func (ec *executionContext) _Commerce_Cart_Tax_amount(ctx context.Context, field graphql.CollectedField, obj *cart.Tax) (ret graphql.Marshaler) { 17512 fc, err := ec.fieldContext_Commerce_Cart_Tax_amount(ctx, field) 17513 if err != nil { 17514 return graphql.Null 17515 } 17516 ctx = graphql.WithFieldContext(ctx, fc) 17517 defer func() { 17518 if r := recover(); r != nil { 17519 ec.Error(ctx, ec.Recover(ctx, r)) 17520 ret = graphql.Null 17521 } 17522 }() 17523 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17524 ctx = rctx // use context from middleware stack in children 17525 return obj.Amount, nil 17526 }) 17527 if err != nil { 17528 ec.Error(ctx, err) 17529 return graphql.Null 17530 } 17531 if resTmp == nil { 17532 if !graphql.HasFieldError(ctx, fc) { 17533 ec.Errorf(ctx, "must not be null") 17534 } 17535 return graphql.Null 17536 } 17537 res := resTmp.(domain.Price) 17538 fc.Result = res 17539 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 17540 } 17541 17542 func (ec *executionContext) fieldContext_Commerce_Cart_Tax_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17543 fc = &graphql.FieldContext{ 17544 Object: "Commerce_Cart_Tax", 17545 Field: field, 17546 IsMethod: false, 17547 IsResolver: false, 17548 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17549 switch field.Name { 17550 case "amount": 17551 return ec.fieldContext_Commerce_Price_amount(ctx, field) 17552 case "currency": 17553 return ec.fieldContext_Commerce_Price_currency(ctx, field) 17554 } 17555 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 17556 }, 17557 } 17558 return fc, nil 17559 } 17560 17561 func (ec *executionContext) _Commerce_Cart_Tax_type(ctx context.Context, field graphql.CollectedField, obj *cart.Tax) (ret graphql.Marshaler) { 17562 fc, err := ec.fieldContext_Commerce_Cart_Tax_type(ctx, field) 17563 if err != nil { 17564 return graphql.Null 17565 } 17566 ctx = graphql.WithFieldContext(ctx, fc) 17567 defer func() { 17568 if r := recover(); r != nil { 17569 ec.Error(ctx, ec.Recover(ctx, r)) 17570 ret = graphql.Null 17571 } 17572 }() 17573 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17574 ctx = rctx // use context from middleware stack in children 17575 return obj.Type, nil 17576 }) 17577 if err != nil { 17578 ec.Error(ctx, err) 17579 return graphql.Null 17580 } 17581 if resTmp == nil { 17582 if !graphql.HasFieldError(ctx, fc) { 17583 ec.Errorf(ctx, "must not be null") 17584 } 17585 return graphql.Null 17586 } 17587 res := resTmp.(string) 17588 fc.Result = res 17589 return ec.marshalNString2string(ctx, field.Selections, res) 17590 } 17591 17592 func (ec *executionContext) fieldContext_Commerce_Cart_Tax_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17593 fc = &graphql.FieldContext{ 17594 Object: "Commerce_Cart_Tax", 17595 Field: field, 17596 IsMethod: false, 17597 IsResolver: false, 17598 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17599 return nil, errors.New("field of type String does not have child fields") 17600 }, 17601 } 17602 return fc, nil 17603 } 17604 17605 func (ec *executionContext) _Commerce_Cart_Tax_rate(ctx context.Context, field graphql.CollectedField, obj *cart.Tax) (ret graphql.Marshaler) { 17606 fc, err := ec.fieldContext_Commerce_Cart_Tax_rate(ctx, field) 17607 if err != nil { 17608 return graphql.Null 17609 } 17610 ctx = graphql.WithFieldContext(ctx, fc) 17611 defer func() { 17612 if r := recover(); r != nil { 17613 ec.Error(ctx, ec.Recover(ctx, r)) 17614 ret = graphql.Null 17615 } 17616 }() 17617 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17618 ctx = rctx // use context from middleware stack in children 17619 return obj.Rate, nil 17620 }) 17621 if err != nil { 17622 ec.Error(ctx, err) 17623 return graphql.Null 17624 } 17625 if resTmp == nil { 17626 return graphql.Null 17627 } 17628 res := resTmp.(*big.Float) 17629 fc.Result = res 17630 return ec.marshalOFloat2ᚖmathᚋbigᚐFloat(ctx, field.Selections, res) 17631 } 17632 17633 func (ec *executionContext) fieldContext_Commerce_Cart_Tax_rate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17634 fc = &graphql.FieldContext{ 17635 Object: "Commerce_Cart_Tax", 17636 Field: field, 17637 IsMethod: false, 17638 IsResolver: false, 17639 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17640 return nil, errors.New("field of type Float does not have child fields") 17641 }, 17642 } 17643 return fc, nil 17644 } 17645 17646 func (ec *executionContext) _Commerce_Cart_Taxes_items(ctx context.Context, field graphql.CollectedField, obj *dto.Taxes) (ret graphql.Marshaler) { 17647 fc, err := ec.fieldContext_Commerce_Cart_Taxes_items(ctx, field) 17648 if err != nil { 17649 return graphql.Null 17650 } 17651 ctx = graphql.WithFieldContext(ctx, fc) 17652 defer func() { 17653 if r := recover(); r != nil { 17654 ec.Error(ctx, ec.Recover(ctx, r)) 17655 ret = graphql.Null 17656 } 17657 }() 17658 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17659 ctx = rctx // use context from middleware stack in children 17660 return obj.Items, nil 17661 }) 17662 if err != nil { 17663 ec.Error(ctx, err) 17664 return graphql.Null 17665 } 17666 if resTmp == nil { 17667 if !graphql.HasFieldError(ctx, fc) { 17668 ec.Errorf(ctx, "must not be null") 17669 } 17670 return graphql.Null 17671 } 17672 res := resTmp.([]cart.Tax) 17673 fc.Result = res 17674 return ec.marshalNCommerce_Cart_Tax2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx, field.Selections, res) 17675 } 17676 17677 func (ec *executionContext) fieldContext_Commerce_Cart_Taxes_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17678 fc = &graphql.FieldContext{ 17679 Object: "Commerce_Cart_Taxes", 17680 Field: field, 17681 IsMethod: false, 17682 IsResolver: false, 17683 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17684 switch field.Name { 17685 case "amount": 17686 return ec.fieldContext_Commerce_Cart_Tax_amount(ctx, field) 17687 case "type": 17688 return ec.fieldContext_Commerce_Cart_Tax_type(ctx, field) 17689 case "rate": 17690 return ec.fieldContext_Commerce_Cart_Tax_rate(ctx, field) 17691 } 17692 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Tax", field.Name) 17693 }, 17694 } 17695 return fc, nil 17696 } 17697 17698 func (ec *executionContext) _Commerce_Cart_Taxes_getByType(ctx context.Context, field graphql.CollectedField, obj *dto.Taxes) (ret graphql.Marshaler) { 17699 fc, err := ec.fieldContext_Commerce_Cart_Taxes_getByType(ctx, field) 17700 if err != nil { 17701 return graphql.Null 17702 } 17703 ctx = graphql.WithFieldContext(ctx, fc) 17704 defer func() { 17705 if r := recover(); r != nil { 17706 ec.Error(ctx, ec.Recover(ctx, r)) 17707 ret = graphql.Null 17708 } 17709 }() 17710 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17711 ctx = rctx // use context from middleware stack in children 17712 return obj.GetByType(fc.Args["taxType"].(string)), nil 17713 }) 17714 if err != nil { 17715 ec.Error(ctx, err) 17716 return graphql.Null 17717 } 17718 if resTmp == nil { 17719 if !graphql.HasFieldError(ctx, fc) { 17720 ec.Errorf(ctx, "must not be null") 17721 } 17722 return graphql.Null 17723 } 17724 res := resTmp.(cart.Tax) 17725 fc.Result = res 17726 return ec.marshalNCommerce_Cart_Tax2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx, field.Selections, res) 17727 } 17728 17729 func (ec *executionContext) fieldContext_Commerce_Cart_Taxes_getByType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17730 fc = &graphql.FieldContext{ 17731 Object: "Commerce_Cart_Taxes", 17732 Field: field, 17733 IsMethod: true, 17734 IsResolver: false, 17735 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17736 switch field.Name { 17737 case "amount": 17738 return ec.fieldContext_Commerce_Cart_Tax_amount(ctx, field) 17739 case "type": 17740 return ec.fieldContext_Commerce_Cart_Tax_type(ctx, field) 17741 case "rate": 17742 return ec.fieldContext_Commerce_Cart_Tax_rate(ctx, field) 17743 } 17744 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_Tax", field.Name) 17745 }, 17746 } 17747 defer func() { 17748 if r := recover(); r != nil { 17749 err = ec.Recover(ctx, r) 17750 ec.Error(ctx, err) 17751 } 17752 }() 17753 ctx = graphql.WithFieldContext(ctx, fc) 17754 if fc.Args, err = ec.field_Commerce_Cart_Taxes_getByType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 17755 ec.Error(ctx, err) 17756 return fc, err 17757 } 17758 return fc, nil 17759 } 17760 17761 func (ec *executionContext) _Commerce_Cart_Teaser_productCount(ctx context.Context, field graphql.CollectedField, obj *cart.Teaser) (ret graphql.Marshaler) { 17762 fc, err := ec.fieldContext_Commerce_Cart_Teaser_productCount(ctx, field) 17763 if err != nil { 17764 return graphql.Null 17765 } 17766 ctx = graphql.WithFieldContext(ctx, fc) 17767 defer func() { 17768 if r := recover(); r != nil { 17769 ec.Error(ctx, ec.Recover(ctx, r)) 17770 ret = graphql.Null 17771 } 17772 }() 17773 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17774 ctx = rctx // use context from middleware stack in children 17775 return obj.ProductCount, nil 17776 }) 17777 if err != nil { 17778 ec.Error(ctx, err) 17779 return graphql.Null 17780 } 17781 if resTmp == nil { 17782 return graphql.Null 17783 } 17784 res := resTmp.(int) 17785 fc.Result = res 17786 return ec.marshalOInt2int(ctx, field.Selections, res) 17787 } 17788 17789 func (ec *executionContext) fieldContext_Commerce_Cart_Teaser_productCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17790 fc = &graphql.FieldContext{ 17791 Object: "Commerce_Cart_Teaser", 17792 Field: field, 17793 IsMethod: false, 17794 IsResolver: false, 17795 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17796 return nil, errors.New("field of type Int does not have child fields") 17797 }, 17798 } 17799 return fc, nil 17800 } 17801 17802 func (ec *executionContext) _Commerce_Cart_Teaser_ItemCount(ctx context.Context, field graphql.CollectedField, obj *cart.Teaser) (ret graphql.Marshaler) { 17803 fc, err := ec.fieldContext_Commerce_Cart_Teaser_ItemCount(ctx, field) 17804 if err != nil { 17805 return graphql.Null 17806 } 17807 ctx = graphql.WithFieldContext(ctx, fc) 17808 defer func() { 17809 if r := recover(); r != nil { 17810 ec.Error(ctx, ec.Recover(ctx, r)) 17811 ret = graphql.Null 17812 } 17813 }() 17814 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17815 ctx = rctx // use context from middleware stack in children 17816 return obj.ItemCount, nil 17817 }) 17818 if err != nil { 17819 ec.Error(ctx, err) 17820 return graphql.Null 17821 } 17822 if resTmp == nil { 17823 return graphql.Null 17824 } 17825 res := resTmp.(int) 17826 fc.Result = res 17827 return ec.marshalOInt2int(ctx, field.Selections, res) 17828 } 17829 17830 func (ec *executionContext) fieldContext_Commerce_Cart_Teaser_ItemCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17831 fc = &graphql.FieldContext{ 17832 Object: "Commerce_Cart_Teaser", 17833 Field: field, 17834 IsMethod: false, 17835 IsResolver: false, 17836 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17837 return nil, errors.New("field of type Int does not have child fields") 17838 }, 17839 } 17840 return fc, nil 17841 } 17842 17843 func (ec *executionContext) _Commerce_Cart_Teaser_DeliveryCodes(ctx context.Context, field graphql.CollectedField, obj *cart.Teaser) (ret graphql.Marshaler) { 17844 fc, err := ec.fieldContext_Commerce_Cart_Teaser_DeliveryCodes(ctx, field) 17845 if err != nil { 17846 return graphql.Null 17847 } 17848 ctx = graphql.WithFieldContext(ctx, fc) 17849 defer func() { 17850 if r := recover(); r != nil { 17851 ec.Error(ctx, ec.Recover(ctx, r)) 17852 ret = graphql.Null 17853 } 17854 }() 17855 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17856 ctx = rctx // use context from middleware stack in children 17857 return obj.DeliveryCodes, nil 17858 }) 17859 if err != nil { 17860 ec.Error(ctx, err) 17861 return graphql.Null 17862 } 17863 if resTmp == nil { 17864 return graphql.Null 17865 } 17866 res := resTmp.([]string) 17867 fc.Result = res 17868 return ec.marshalOString2ᚕstring(ctx, field.Selections, res) 17869 } 17870 17871 func (ec *executionContext) fieldContext_Commerce_Cart_Teaser_DeliveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17872 fc = &graphql.FieldContext{ 17873 Object: "Commerce_Cart_Teaser", 17874 Field: field, 17875 IsMethod: false, 17876 IsResolver: false, 17877 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17878 return nil, errors.New("field of type String does not have child fields") 17879 }, 17880 } 17881 return fc, nil 17882 } 17883 17884 func (ec *executionContext) _Commerce_Cart_Totalitem_code(ctx context.Context, field graphql.CollectedField, obj *cart.Totalitem) (ret graphql.Marshaler) { 17885 fc, err := ec.fieldContext_Commerce_Cart_Totalitem_code(ctx, field) 17886 if err != nil { 17887 return graphql.Null 17888 } 17889 ctx = graphql.WithFieldContext(ctx, fc) 17890 defer func() { 17891 if r := recover(); r != nil { 17892 ec.Error(ctx, ec.Recover(ctx, r)) 17893 ret = graphql.Null 17894 } 17895 }() 17896 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17897 ctx = rctx // use context from middleware stack in children 17898 return obj.Code, nil 17899 }) 17900 if err != nil { 17901 ec.Error(ctx, err) 17902 return graphql.Null 17903 } 17904 if resTmp == nil { 17905 if !graphql.HasFieldError(ctx, fc) { 17906 ec.Errorf(ctx, "must not be null") 17907 } 17908 return graphql.Null 17909 } 17910 res := resTmp.(string) 17911 fc.Result = res 17912 return ec.marshalNString2string(ctx, field.Selections, res) 17913 } 17914 17915 func (ec *executionContext) fieldContext_Commerce_Cart_Totalitem_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17916 fc = &graphql.FieldContext{ 17917 Object: "Commerce_Cart_Totalitem", 17918 Field: field, 17919 IsMethod: false, 17920 IsResolver: false, 17921 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17922 return nil, errors.New("field of type String does not have child fields") 17923 }, 17924 } 17925 return fc, nil 17926 } 17927 17928 func (ec *executionContext) _Commerce_Cart_Totalitem_title(ctx context.Context, field graphql.CollectedField, obj *cart.Totalitem) (ret graphql.Marshaler) { 17929 fc, err := ec.fieldContext_Commerce_Cart_Totalitem_title(ctx, field) 17930 if err != nil { 17931 return graphql.Null 17932 } 17933 ctx = graphql.WithFieldContext(ctx, fc) 17934 defer func() { 17935 if r := recover(); r != nil { 17936 ec.Error(ctx, ec.Recover(ctx, r)) 17937 ret = graphql.Null 17938 } 17939 }() 17940 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17941 ctx = rctx // use context from middleware stack in children 17942 return obj.Title, nil 17943 }) 17944 if err != nil { 17945 ec.Error(ctx, err) 17946 return graphql.Null 17947 } 17948 if resTmp == nil { 17949 if !graphql.HasFieldError(ctx, fc) { 17950 ec.Errorf(ctx, "must not be null") 17951 } 17952 return graphql.Null 17953 } 17954 res := resTmp.(string) 17955 fc.Result = res 17956 return ec.marshalNString2string(ctx, field.Selections, res) 17957 } 17958 17959 func (ec *executionContext) fieldContext_Commerce_Cart_Totalitem_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 17960 fc = &graphql.FieldContext{ 17961 Object: "Commerce_Cart_Totalitem", 17962 Field: field, 17963 IsMethod: false, 17964 IsResolver: false, 17965 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 17966 return nil, errors.New("field of type String does not have child fields") 17967 }, 17968 } 17969 return fc, nil 17970 } 17971 17972 func (ec *executionContext) _Commerce_Cart_Totalitem_price(ctx context.Context, field graphql.CollectedField, obj *cart.Totalitem) (ret graphql.Marshaler) { 17973 fc, err := ec.fieldContext_Commerce_Cart_Totalitem_price(ctx, field) 17974 if err != nil { 17975 return graphql.Null 17976 } 17977 ctx = graphql.WithFieldContext(ctx, fc) 17978 defer func() { 17979 if r := recover(); r != nil { 17980 ec.Error(ctx, ec.Recover(ctx, r)) 17981 ret = graphql.Null 17982 } 17983 }() 17984 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17985 ctx = rctx // use context from middleware stack in children 17986 return obj.Price, nil 17987 }) 17988 if err != nil { 17989 ec.Error(ctx, err) 17990 return graphql.Null 17991 } 17992 if resTmp == nil { 17993 if !graphql.HasFieldError(ctx, fc) { 17994 ec.Errorf(ctx, "must not be null") 17995 } 17996 return graphql.Null 17997 } 17998 res := resTmp.(domain.Price) 17999 fc.Result = res 18000 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 18001 } 18002 18003 func (ec *executionContext) fieldContext_Commerce_Cart_Totalitem_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18004 fc = &graphql.FieldContext{ 18005 Object: "Commerce_Cart_Totalitem", 18006 Field: field, 18007 IsMethod: false, 18008 IsResolver: false, 18009 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18010 switch field.Name { 18011 case "amount": 18012 return ec.fieldContext_Commerce_Price_amount(ctx, field) 18013 case "currency": 18014 return ec.fieldContext_Commerce_Price_currency(ctx, field) 18015 } 18016 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 18017 }, 18018 } 18019 return fc, nil 18020 } 18021 18022 func (ec *executionContext) _Commerce_Cart_Totalitem_type(ctx context.Context, field graphql.CollectedField, obj *cart.Totalitem) (ret graphql.Marshaler) { 18023 fc, err := ec.fieldContext_Commerce_Cart_Totalitem_type(ctx, field) 18024 if err != nil { 18025 return graphql.Null 18026 } 18027 ctx = graphql.WithFieldContext(ctx, fc) 18028 defer func() { 18029 if r := recover(); r != nil { 18030 ec.Error(ctx, ec.Recover(ctx, r)) 18031 ret = graphql.Null 18032 } 18033 }() 18034 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18035 ctx = rctx // use context from middleware stack in children 18036 return obj.Type, nil 18037 }) 18038 if err != nil { 18039 ec.Error(ctx, err) 18040 return graphql.Null 18041 } 18042 if resTmp == nil { 18043 if !graphql.HasFieldError(ctx, fc) { 18044 ec.Errorf(ctx, "must not be null") 18045 } 18046 return graphql.Null 18047 } 18048 res := resTmp.(string) 18049 fc.Result = res 18050 return ec.marshalNString2string(ctx, field.Selections, res) 18051 } 18052 18053 func (ec *executionContext) fieldContext_Commerce_Cart_Totalitem_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18054 fc = &graphql.FieldContext{ 18055 Object: "Commerce_Cart_Totalitem", 18056 Field: field, 18057 IsMethod: false, 18058 IsResolver: false, 18059 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18060 return nil, errors.New("field of type String does not have child fields") 18061 }, 18062 } 18063 return fc, nil 18064 } 18065 18066 func (ec *executionContext) _Commerce_Cart_UpdateDeliveryShippingOptions_Result_processed(ctx context.Context, field graphql.CollectedField, obj *dto.UpdateShippingOptionsResult) (ret graphql.Marshaler) { 18067 fc, err := ec.fieldContext_Commerce_Cart_UpdateDeliveryShippingOptions_Result_processed(ctx, field) 18068 if err != nil { 18069 return graphql.Null 18070 } 18071 ctx = graphql.WithFieldContext(ctx, fc) 18072 defer func() { 18073 if r := recover(); r != nil { 18074 ec.Error(ctx, ec.Recover(ctx, r)) 18075 ret = graphql.Null 18076 } 18077 }() 18078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18079 ctx = rctx // use context from middleware stack in children 18080 return obj.Processed, nil 18081 }) 18082 if err != nil { 18083 ec.Error(ctx, err) 18084 return graphql.Null 18085 } 18086 if resTmp == nil { 18087 return graphql.Null 18088 } 18089 res := resTmp.(bool) 18090 fc.Result = res 18091 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 18092 } 18093 18094 func (ec *executionContext) fieldContext_Commerce_Cart_UpdateDeliveryShippingOptions_Result_processed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18095 fc = &graphql.FieldContext{ 18096 Object: "Commerce_Cart_UpdateDeliveryShippingOptions_Result", 18097 Field: field, 18098 IsMethod: false, 18099 IsResolver: false, 18100 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18101 return nil, errors.New("field of type Boolean does not have child fields") 18102 }, 18103 } 18104 return fc, nil 18105 } 18106 18107 func (ec *executionContext) _Commerce_Cart_ValidationResult_hasCommonError(ctx context.Context, field graphql.CollectedField, obj *validation.Result) (ret graphql.Marshaler) { 18108 fc, err := ec.fieldContext_Commerce_Cart_ValidationResult_hasCommonError(ctx, field) 18109 if err != nil { 18110 return graphql.Null 18111 } 18112 ctx = graphql.WithFieldContext(ctx, fc) 18113 defer func() { 18114 if r := recover(); r != nil { 18115 ec.Error(ctx, ec.Recover(ctx, r)) 18116 ret = graphql.Null 18117 } 18118 }() 18119 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18120 ctx = rctx // use context from middleware stack in children 18121 return obj.HasCommonError, nil 18122 }) 18123 if err != nil { 18124 ec.Error(ctx, err) 18125 return graphql.Null 18126 } 18127 if resTmp == nil { 18128 if !graphql.HasFieldError(ctx, fc) { 18129 ec.Errorf(ctx, "must not be null") 18130 } 18131 return graphql.Null 18132 } 18133 res := resTmp.(bool) 18134 fc.Result = res 18135 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 18136 } 18137 18138 func (ec *executionContext) fieldContext_Commerce_Cart_ValidationResult_hasCommonError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18139 fc = &graphql.FieldContext{ 18140 Object: "Commerce_Cart_ValidationResult", 18141 Field: field, 18142 IsMethod: false, 18143 IsResolver: false, 18144 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18145 return nil, errors.New("field of type Boolean does not have child fields") 18146 }, 18147 } 18148 return fc, nil 18149 } 18150 18151 func (ec *executionContext) _Commerce_Cart_ValidationResult_commonErrorMessageKey(ctx context.Context, field graphql.CollectedField, obj *validation.Result) (ret graphql.Marshaler) { 18152 fc, err := ec.fieldContext_Commerce_Cart_ValidationResult_commonErrorMessageKey(ctx, field) 18153 if err != nil { 18154 return graphql.Null 18155 } 18156 ctx = graphql.WithFieldContext(ctx, fc) 18157 defer func() { 18158 if r := recover(); r != nil { 18159 ec.Error(ctx, ec.Recover(ctx, r)) 18160 ret = graphql.Null 18161 } 18162 }() 18163 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18164 ctx = rctx // use context from middleware stack in children 18165 return obj.CommonErrorMessageKey, nil 18166 }) 18167 if err != nil { 18168 ec.Error(ctx, err) 18169 return graphql.Null 18170 } 18171 if resTmp == nil { 18172 if !graphql.HasFieldError(ctx, fc) { 18173 ec.Errorf(ctx, "must not be null") 18174 } 18175 return graphql.Null 18176 } 18177 res := resTmp.(string) 18178 fc.Result = res 18179 return ec.marshalNString2string(ctx, field.Selections, res) 18180 } 18181 18182 func (ec *executionContext) fieldContext_Commerce_Cart_ValidationResult_commonErrorMessageKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18183 fc = &graphql.FieldContext{ 18184 Object: "Commerce_Cart_ValidationResult", 18185 Field: field, 18186 IsMethod: false, 18187 IsResolver: false, 18188 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18189 return nil, errors.New("field of type String does not have child fields") 18190 }, 18191 } 18192 return fc, nil 18193 } 18194 18195 func (ec *executionContext) _Commerce_Cart_ValidationResult_itemResults(ctx context.Context, field graphql.CollectedField, obj *validation.Result) (ret graphql.Marshaler) { 18196 fc, err := ec.fieldContext_Commerce_Cart_ValidationResult_itemResults(ctx, field) 18197 if err != nil { 18198 return graphql.Null 18199 } 18200 ctx = graphql.WithFieldContext(ctx, fc) 18201 defer func() { 18202 if r := recover(); r != nil { 18203 ec.Error(ctx, ec.Recover(ctx, r)) 18204 ret = graphql.Null 18205 } 18206 }() 18207 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18208 ctx = rctx // use context from middleware stack in children 18209 return obj.ItemResults, nil 18210 }) 18211 if err != nil { 18212 ec.Error(ctx, err) 18213 return graphql.Null 18214 } 18215 if resTmp == nil { 18216 return graphql.Null 18217 } 18218 res := resTmp.([]validation.ItemValidationError) 18219 fc.Result = res 18220 return ec.marshalOCommerce_Cart_ItemValidationError2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐItemValidationErrorᚄ(ctx, field.Selections, res) 18221 } 18222 18223 func (ec *executionContext) fieldContext_Commerce_Cart_ValidationResult_itemResults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18224 fc = &graphql.FieldContext{ 18225 Object: "Commerce_Cart_ValidationResult", 18226 Field: field, 18227 IsMethod: false, 18228 IsResolver: false, 18229 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18230 switch field.Name { 18231 case "itemID": 18232 return ec.fieldContext_Commerce_Cart_ItemValidationError_itemID(ctx, field) 18233 case "errorMessageKey": 18234 return ec.fieldContext_Commerce_Cart_ItemValidationError_errorMessageKey(ctx, field) 18235 } 18236 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_ItemValidationError", field.Name) 18237 }, 18238 } 18239 return fc, nil 18240 } 18241 18242 func (ec *executionContext) _Commerce_CategoryData_code(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18243 fc, err := ec.fieldContext_Commerce_CategoryData_code(ctx, field) 18244 if err != nil { 18245 return graphql.Null 18246 } 18247 ctx = graphql.WithFieldContext(ctx, fc) 18248 defer func() { 18249 if r := recover(); r != nil { 18250 ec.Error(ctx, ec.Recover(ctx, r)) 18251 ret = graphql.Null 18252 } 18253 }() 18254 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18255 ctx = rctx // use context from middleware stack in children 18256 return obj.Code(), nil 18257 }) 18258 if err != nil { 18259 ec.Error(ctx, err) 18260 return graphql.Null 18261 } 18262 if resTmp == nil { 18263 if !graphql.HasFieldError(ctx, fc) { 18264 ec.Errorf(ctx, "must not be null") 18265 } 18266 return graphql.Null 18267 } 18268 res := resTmp.(string) 18269 fc.Result = res 18270 return ec.marshalNString2string(ctx, field.Selections, res) 18271 } 18272 18273 func (ec *executionContext) fieldContext_Commerce_CategoryData_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18274 fc = &graphql.FieldContext{ 18275 Object: "Commerce_CategoryData", 18276 Field: field, 18277 IsMethod: true, 18278 IsResolver: false, 18279 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18280 return nil, errors.New("field of type String does not have child fields") 18281 }, 18282 } 18283 return fc, nil 18284 } 18285 18286 func (ec *executionContext) _Commerce_CategoryData_name(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18287 fc, err := ec.fieldContext_Commerce_CategoryData_name(ctx, field) 18288 if err != nil { 18289 return graphql.Null 18290 } 18291 ctx = graphql.WithFieldContext(ctx, fc) 18292 defer func() { 18293 if r := recover(); r != nil { 18294 ec.Error(ctx, ec.Recover(ctx, r)) 18295 ret = graphql.Null 18296 } 18297 }() 18298 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18299 ctx = rctx // use context from middleware stack in children 18300 return obj.Name(), nil 18301 }) 18302 if err != nil { 18303 ec.Error(ctx, err) 18304 return graphql.Null 18305 } 18306 if resTmp == nil { 18307 if !graphql.HasFieldError(ctx, fc) { 18308 ec.Errorf(ctx, "must not be null") 18309 } 18310 return graphql.Null 18311 } 18312 res := resTmp.(string) 18313 fc.Result = res 18314 return ec.marshalNString2string(ctx, field.Selections, res) 18315 } 18316 18317 func (ec *executionContext) fieldContext_Commerce_CategoryData_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18318 fc = &graphql.FieldContext{ 18319 Object: "Commerce_CategoryData", 18320 Field: field, 18321 IsMethod: true, 18322 IsResolver: false, 18323 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18324 return nil, errors.New("field of type String does not have child fields") 18325 }, 18326 } 18327 return fc, nil 18328 } 18329 18330 func (ec *executionContext) _Commerce_CategoryData_path(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18331 fc, err := ec.fieldContext_Commerce_CategoryData_path(ctx, field) 18332 if err != nil { 18333 return graphql.Null 18334 } 18335 ctx = graphql.WithFieldContext(ctx, fc) 18336 defer func() { 18337 if r := recover(); r != nil { 18338 ec.Error(ctx, ec.Recover(ctx, r)) 18339 ret = graphql.Null 18340 } 18341 }() 18342 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18343 ctx = rctx // use context from middleware stack in children 18344 return obj.Path(), nil 18345 }) 18346 if err != nil { 18347 ec.Error(ctx, err) 18348 return graphql.Null 18349 } 18350 if resTmp == nil { 18351 if !graphql.HasFieldError(ctx, fc) { 18352 ec.Errorf(ctx, "must not be null") 18353 } 18354 return graphql.Null 18355 } 18356 res := resTmp.(string) 18357 fc.Result = res 18358 return ec.marshalNString2string(ctx, field.Selections, res) 18359 } 18360 18361 func (ec *executionContext) fieldContext_Commerce_CategoryData_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18362 fc = &graphql.FieldContext{ 18363 Object: "Commerce_CategoryData", 18364 Field: field, 18365 IsMethod: true, 18366 IsResolver: false, 18367 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18368 return nil, errors.New("field of type String does not have child fields") 18369 }, 18370 } 18371 return fc, nil 18372 } 18373 18374 func (ec *executionContext) _Commerce_CategoryData_active(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18375 fc, err := ec.fieldContext_Commerce_CategoryData_active(ctx, field) 18376 if err != nil { 18377 return graphql.Null 18378 } 18379 ctx = graphql.WithFieldContext(ctx, fc) 18380 defer func() { 18381 if r := recover(); r != nil { 18382 ec.Error(ctx, ec.Recover(ctx, r)) 18383 ret = graphql.Null 18384 } 18385 }() 18386 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18387 ctx = rctx // use context from middleware stack in children 18388 return obj.Active(), nil 18389 }) 18390 if err != nil { 18391 ec.Error(ctx, err) 18392 return graphql.Null 18393 } 18394 if resTmp == nil { 18395 if !graphql.HasFieldError(ctx, fc) { 18396 ec.Errorf(ctx, "must not be null") 18397 } 18398 return graphql.Null 18399 } 18400 res := resTmp.(bool) 18401 fc.Result = res 18402 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 18403 } 18404 18405 func (ec *executionContext) fieldContext_Commerce_CategoryData_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18406 fc = &graphql.FieldContext{ 18407 Object: "Commerce_CategoryData", 18408 Field: field, 18409 IsMethod: true, 18410 IsResolver: false, 18411 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18412 return nil, errors.New("field of type Boolean does not have child fields") 18413 }, 18414 } 18415 return fc, nil 18416 } 18417 18418 func (ec *executionContext) _Commerce_CategoryData_promoted(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18419 fc, err := ec.fieldContext_Commerce_CategoryData_promoted(ctx, field) 18420 if err != nil { 18421 return graphql.Null 18422 } 18423 ctx = graphql.WithFieldContext(ctx, fc) 18424 defer func() { 18425 if r := recover(); r != nil { 18426 ec.Error(ctx, ec.Recover(ctx, r)) 18427 ret = graphql.Null 18428 } 18429 }() 18430 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18431 ctx = rctx // use context from middleware stack in children 18432 return obj.Promoted(), nil 18433 }) 18434 if err != nil { 18435 ec.Error(ctx, err) 18436 return graphql.Null 18437 } 18438 if resTmp == nil { 18439 if !graphql.HasFieldError(ctx, fc) { 18440 ec.Errorf(ctx, "must not be null") 18441 } 18442 return graphql.Null 18443 } 18444 res := resTmp.(bool) 18445 fc.Result = res 18446 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 18447 } 18448 18449 func (ec *executionContext) fieldContext_Commerce_CategoryData_promoted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18450 fc = &graphql.FieldContext{ 18451 Object: "Commerce_CategoryData", 18452 Field: field, 18453 IsMethod: true, 18454 IsResolver: false, 18455 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18456 return nil, errors.New("field of type Boolean does not have child fields") 18457 }, 18458 } 18459 return fc, nil 18460 } 18461 18462 func (ec *executionContext) _Commerce_CategoryData_attributes(ctx context.Context, field graphql.CollectedField, obj *domain3.CategoryData) (ret graphql.Marshaler) { 18463 fc, err := ec.fieldContext_Commerce_CategoryData_attributes(ctx, field) 18464 if err != nil { 18465 return graphql.Null 18466 } 18467 ctx = graphql.WithFieldContext(ctx, fc) 18468 defer func() { 18469 if r := recover(); r != nil { 18470 ec.Error(ctx, ec.Recover(ctx, r)) 18471 ret = graphql.Null 18472 } 18473 }() 18474 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18475 ctx = rctx // use context from middleware stack in children 18476 return obj.Attributes(), nil 18477 }) 18478 if err != nil { 18479 ec.Error(ctx, err) 18480 return graphql.Null 18481 } 18482 if resTmp == nil { 18483 if !graphql.HasFieldError(ctx, fc) { 18484 ec.Errorf(ctx, "must not be null") 18485 } 18486 return graphql.Null 18487 } 18488 res := resTmp.(domain3.Attributes) 18489 fc.Result = res 18490 return ec.marshalNCommerce_Category_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributes(ctx, field.Selections, res) 18491 } 18492 18493 func (ec *executionContext) fieldContext_Commerce_CategoryData_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18494 fc = &graphql.FieldContext{ 18495 Object: "Commerce_CategoryData", 18496 Field: field, 18497 IsMethod: true, 18498 IsResolver: false, 18499 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18500 switch field.Name { 18501 case "get": 18502 return ec.fieldContext_Commerce_Category_Attributes_get(ctx, field) 18503 case "has": 18504 return ec.fieldContext_Commerce_Category_Attributes_has(ctx, field) 18505 case "all": 18506 return ec.fieldContext_Commerce_Category_Attributes_all(ctx, field) 18507 } 18508 return nil, fmt.Errorf("no field named %q was found under type Commerce_Category_Attributes", field.Name) 18509 }, 18510 } 18511 return fc, nil 18512 } 18513 18514 func (ec *executionContext) _Commerce_CategoryTree_code(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18515 fc, err := ec.fieldContext_Commerce_CategoryTree_code(ctx, field) 18516 if err != nil { 18517 return graphql.Null 18518 } 18519 ctx = graphql.WithFieldContext(ctx, fc) 18520 defer func() { 18521 if r := recover(); r != nil { 18522 ec.Error(ctx, ec.Recover(ctx, r)) 18523 ret = graphql.Null 18524 } 18525 }() 18526 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18527 ctx = rctx // use context from middleware stack in children 18528 return obj.Code(), nil 18529 }) 18530 if err != nil { 18531 ec.Error(ctx, err) 18532 return graphql.Null 18533 } 18534 if resTmp == nil { 18535 if !graphql.HasFieldError(ctx, fc) { 18536 ec.Errorf(ctx, "must not be null") 18537 } 18538 return graphql.Null 18539 } 18540 res := resTmp.(string) 18541 fc.Result = res 18542 return ec.marshalNString2string(ctx, field.Selections, res) 18543 } 18544 18545 func (ec *executionContext) fieldContext_Commerce_CategoryTree_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18546 fc = &graphql.FieldContext{ 18547 Object: "Commerce_CategoryTree", 18548 Field: field, 18549 IsMethod: true, 18550 IsResolver: false, 18551 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18552 return nil, errors.New("field of type String does not have child fields") 18553 }, 18554 } 18555 return fc, nil 18556 } 18557 18558 func (ec *executionContext) _Commerce_CategoryTree_name(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18559 fc, err := ec.fieldContext_Commerce_CategoryTree_name(ctx, field) 18560 if err != nil { 18561 return graphql.Null 18562 } 18563 ctx = graphql.WithFieldContext(ctx, fc) 18564 defer func() { 18565 if r := recover(); r != nil { 18566 ec.Error(ctx, ec.Recover(ctx, r)) 18567 ret = graphql.Null 18568 } 18569 }() 18570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18571 ctx = rctx // use context from middleware stack in children 18572 return obj.Name(), nil 18573 }) 18574 if err != nil { 18575 ec.Error(ctx, err) 18576 return graphql.Null 18577 } 18578 if resTmp == nil { 18579 if !graphql.HasFieldError(ctx, fc) { 18580 ec.Errorf(ctx, "must not be null") 18581 } 18582 return graphql.Null 18583 } 18584 res := resTmp.(string) 18585 fc.Result = res 18586 return ec.marshalNString2string(ctx, field.Selections, res) 18587 } 18588 18589 func (ec *executionContext) fieldContext_Commerce_CategoryTree_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18590 fc = &graphql.FieldContext{ 18591 Object: "Commerce_CategoryTree", 18592 Field: field, 18593 IsMethod: true, 18594 IsResolver: false, 18595 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18596 return nil, errors.New("field of type String does not have child fields") 18597 }, 18598 } 18599 return fc, nil 18600 } 18601 18602 func (ec *executionContext) _Commerce_CategoryTree_path(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18603 fc, err := ec.fieldContext_Commerce_CategoryTree_path(ctx, field) 18604 if err != nil { 18605 return graphql.Null 18606 } 18607 ctx = graphql.WithFieldContext(ctx, fc) 18608 defer func() { 18609 if r := recover(); r != nil { 18610 ec.Error(ctx, ec.Recover(ctx, r)) 18611 ret = graphql.Null 18612 } 18613 }() 18614 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18615 ctx = rctx // use context from middleware stack in children 18616 return obj.Path(), nil 18617 }) 18618 if err != nil { 18619 ec.Error(ctx, err) 18620 return graphql.Null 18621 } 18622 if resTmp == nil { 18623 if !graphql.HasFieldError(ctx, fc) { 18624 ec.Errorf(ctx, "must not be null") 18625 } 18626 return graphql.Null 18627 } 18628 res := resTmp.(string) 18629 fc.Result = res 18630 return ec.marshalNString2string(ctx, field.Selections, res) 18631 } 18632 18633 func (ec *executionContext) fieldContext_Commerce_CategoryTree_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18634 fc = &graphql.FieldContext{ 18635 Object: "Commerce_CategoryTree", 18636 Field: field, 18637 IsMethod: true, 18638 IsResolver: false, 18639 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18640 return nil, errors.New("field of type String does not have child fields") 18641 }, 18642 } 18643 return fc, nil 18644 } 18645 18646 func (ec *executionContext) _Commerce_CategoryTree_active(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18647 fc, err := ec.fieldContext_Commerce_CategoryTree_active(ctx, field) 18648 if err != nil { 18649 return graphql.Null 18650 } 18651 ctx = graphql.WithFieldContext(ctx, fc) 18652 defer func() { 18653 if r := recover(); r != nil { 18654 ec.Error(ctx, ec.Recover(ctx, r)) 18655 ret = graphql.Null 18656 } 18657 }() 18658 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18659 ctx = rctx // use context from middleware stack in children 18660 return obj.Active(), nil 18661 }) 18662 if err != nil { 18663 ec.Error(ctx, err) 18664 return graphql.Null 18665 } 18666 if resTmp == nil { 18667 if !graphql.HasFieldError(ctx, fc) { 18668 ec.Errorf(ctx, "must not be null") 18669 } 18670 return graphql.Null 18671 } 18672 res := resTmp.(bool) 18673 fc.Result = res 18674 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 18675 } 18676 18677 func (ec *executionContext) fieldContext_Commerce_CategoryTree_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18678 fc = &graphql.FieldContext{ 18679 Object: "Commerce_CategoryTree", 18680 Field: field, 18681 IsMethod: true, 18682 IsResolver: false, 18683 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18684 return nil, errors.New("field of type Boolean does not have child fields") 18685 }, 18686 } 18687 return fc, nil 18688 } 18689 18690 func (ec *executionContext) _Commerce_CategoryTree_subTrees(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18691 fc, err := ec.fieldContext_Commerce_CategoryTree_subTrees(ctx, field) 18692 if err != nil { 18693 return graphql.Null 18694 } 18695 ctx = graphql.WithFieldContext(ctx, fc) 18696 defer func() { 18697 if r := recover(); r != nil { 18698 ec.Error(ctx, ec.Recover(ctx, r)) 18699 ret = graphql.Null 18700 } 18701 }() 18702 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18703 ctx = rctx // use context from middleware stack in children 18704 return obj.SubTrees(), nil 18705 }) 18706 if err != nil { 18707 ec.Error(ctx, err) 18708 return graphql.Null 18709 } 18710 if resTmp == nil { 18711 return graphql.Null 18712 } 18713 res := resTmp.([]domain3.Tree) 18714 fc.Result = res 18715 return ec.marshalOCommerce_Tree2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx, field.Selections, res) 18716 } 18717 18718 func (ec *executionContext) fieldContext_Commerce_CategoryTree_subTrees(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18719 fc = &graphql.FieldContext{ 18720 Object: "Commerce_CategoryTree", 18721 Field: field, 18722 IsMethod: true, 18723 IsResolver: false, 18724 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18725 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 18726 }, 18727 } 18728 return fc, nil 18729 } 18730 18731 func (ec *executionContext) _Commerce_CategoryTree_hasChilds(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18732 fc, err := ec.fieldContext_Commerce_CategoryTree_hasChilds(ctx, field) 18733 if err != nil { 18734 return graphql.Null 18735 } 18736 ctx = graphql.WithFieldContext(ctx, fc) 18737 defer func() { 18738 if r := recover(); r != nil { 18739 ec.Error(ctx, ec.Recover(ctx, r)) 18740 ret = graphql.Null 18741 } 18742 }() 18743 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18744 ctx = rctx // use context from middleware stack in children 18745 return obj.HasChilds(), nil 18746 }) 18747 if err != nil { 18748 ec.Error(ctx, err) 18749 return graphql.Null 18750 } 18751 if resTmp == nil { 18752 if !graphql.HasFieldError(ctx, fc) { 18753 ec.Errorf(ctx, "must not be null") 18754 } 18755 return graphql.Null 18756 } 18757 res := resTmp.(bool) 18758 fc.Result = res 18759 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 18760 } 18761 18762 func (ec *executionContext) fieldContext_Commerce_CategoryTree_hasChilds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18763 fc = &graphql.FieldContext{ 18764 Object: "Commerce_CategoryTree", 18765 Field: field, 18766 IsMethod: true, 18767 IsResolver: false, 18768 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18769 return nil, errors.New("field of type Boolean does not have child fields") 18770 }, 18771 } 18772 return fc, nil 18773 } 18774 18775 func (ec *executionContext) _Commerce_CategoryTree_documentCount(ctx context.Context, field graphql.CollectedField, obj *domain3.TreeData) (ret graphql.Marshaler) { 18776 fc, err := ec.fieldContext_Commerce_CategoryTree_documentCount(ctx, field) 18777 if err != nil { 18778 return graphql.Null 18779 } 18780 ctx = graphql.WithFieldContext(ctx, fc) 18781 defer func() { 18782 if r := recover(); r != nil { 18783 ec.Error(ctx, ec.Recover(ctx, r)) 18784 ret = graphql.Null 18785 } 18786 }() 18787 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18788 ctx = rctx // use context from middleware stack in children 18789 return obj.DocumentCount(), nil 18790 }) 18791 if err != nil { 18792 ec.Error(ctx, err) 18793 return graphql.Null 18794 } 18795 if resTmp == nil { 18796 if !graphql.HasFieldError(ctx, fc) { 18797 ec.Errorf(ctx, "must not be null") 18798 } 18799 return graphql.Null 18800 } 18801 res := resTmp.(int) 18802 fc.Result = res 18803 return ec.marshalNInt2int(ctx, field.Selections, res) 18804 } 18805 18806 func (ec *executionContext) fieldContext_Commerce_CategoryTree_documentCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18807 fc = &graphql.FieldContext{ 18808 Object: "Commerce_CategoryTree", 18809 Field: field, 18810 IsMethod: true, 18811 IsResolver: false, 18812 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18813 return nil, errors.New("field of type Int does not have child fields") 18814 }, 18815 } 18816 return fc, nil 18817 } 18818 18819 func (ec *executionContext) _Commerce_Category_Attribute_code(ctx context.Context, field graphql.CollectedField, obj *domain3.Attribute) (ret graphql.Marshaler) { 18820 fc, err := ec.fieldContext_Commerce_Category_Attribute_code(ctx, field) 18821 if err != nil { 18822 return graphql.Null 18823 } 18824 ctx = graphql.WithFieldContext(ctx, fc) 18825 defer func() { 18826 if r := recover(); r != nil { 18827 ec.Error(ctx, ec.Recover(ctx, r)) 18828 ret = graphql.Null 18829 } 18830 }() 18831 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18832 ctx = rctx // use context from middleware stack in children 18833 return obj.Code, nil 18834 }) 18835 if err != nil { 18836 ec.Error(ctx, err) 18837 return graphql.Null 18838 } 18839 if resTmp == nil { 18840 if !graphql.HasFieldError(ctx, fc) { 18841 ec.Errorf(ctx, "must not be null") 18842 } 18843 return graphql.Null 18844 } 18845 res := resTmp.(string) 18846 fc.Result = res 18847 return ec.marshalNString2string(ctx, field.Selections, res) 18848 } 18849 18850 func (ec *executionContext) fieldContext_Commerce_Category_Attribute_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18851 fc = &graphql.FieldContext{ 18852 Object: "Commerce_Category_Attribute", 18853 Field: field, 18854 IsMethod: false, 18855 IsResolver: false, 18856 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18857 return nil, errors.New("field of type String does not have child fields") 18858 }, 18859 } 18860 return fc, nil 18861 } 18862 18863 func (ec *executionContext) _Commerce_Category_Attribute_label(ctx context.Context, field graphql.CollectedField, obj *domain3.Attribute) (ret graphql.Marshaler) { 18864 fc, err := ec.fieldContext_Commerce_Category_Attribute_label(ctx, field) 18865 if err != nil { 18866 return graphql.Null 18867 } 18868 ctx = graphql.WithFieldContext(ctx, fc) 18869 defer func() { 18870 if r := recover(); r != nil { 18871 ec.Error(ctx, ec.Recover(ctx, r)) 18872 ret = graphql.Null 18873 } 18874 }() 18875 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18876 ctx = rctx // use context from middleware stack in children 18877 return obj.Label, nil 18878 }) 18879 if err != nil { 18880 ec.Error(ctx, err) 18881 return graphql.Null 18882 } 18883 if resTmp == nil { 18884 if !graphql.HasFieldError(ctx, fc) { 18885 ec.Errorf(ctx, "must not be null") 18886 } 18887 return graphql.Null 18888 } 18889 res := resTmp.(string) 18890 fc.Result = res 18891 return ec.marshalNString2string(ctx, field.Selections, res) 18892 } 18893 18894 func (ec *executionContext) fieldContext_Commerce_Category_Attribute_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18895 fc = &graphql.FieldContext{ 18896 Object: "Commerce_Category_Attribute", 18897 Field: field, 18898 IsMethod: false, 18899 IsResolver: false, 18900 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18901 return nil, errors.New("field of type String does not have child fields") 18902 }, 18903 } 18904 return fc, nil 18905 } 18906 18907 func (ec *executionContext) _Commerce_Category_Attribute_values(ctx context.Context, field graphql.CollectedField, obj *domain3.Attribute) (ret graphql.Marshaler) { 18908 fc, err := ec.fieldContext_Commerce_Category_Attribute_values(ctx, field) 18909 if err != nil { 18910 return graphql.Null 18911 } 18912 ctx = graphql.WithFieldContext(ctx, fc) 18913 defer func() { 18914 if r := recover(); r != nil { 18915 ec.Error(ctx, ec.Recover(ctx, r)) 18916 ret = graphql.Null 18917 } 18918 }() 18919 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18920 ctx = rctx // use context from middleware stack in children 18921 return obj.Values, nil 18922 }) 18923 if err != nil { 18924 ec.Error(ctx, err) 18925 return graphql.Null 18926 } 18927 if resTmp == nil { 18928 return graphql.Null 18929 } 18930 res := resTmp.([]domain3.AttributeValue) 18931 fc.Result = res 18932 return ec.marshalOCommerce_Category_AttributeValue2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeValueᚄ(ctx, field.Selections, res) 18933 } 18934 18935 func (ec *executionContext) fieldContext_Commerce_Category_Attribute_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18936 fc = &graphql.FieldContext{ 18937 Object: "Commerce_Category_Attribute", 18938 Field: field, 18939 IsMethod: false, 18940 IsResolver: false, 18941 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18942 switch field.Name { 18943 case "value": 18944 return ec.fieldContext_Commerce_Category_AttributeValue_value(ctx, field) 18945 case "label": 18946 return ec.fieldContext_Commerce_Category_AttributeValue_label(ctx, field) 18947 } 18948 return nil, fmt.Errorf("no field named %q was found under type Commerce_Category_AttributeValue", field.Name) 18949 }, 18950 } 18951 return fc, nil 18952 } 18953 18954 func (ec *executionContext) _Commerce_Category_AttributeValue_value(ctx context.Context, field graphql.CollectedField, obj *domain3.AttributeValue) (ret graphql.Marshaler) { 18955 fc, err := ec.fieldContext_Commerce_Category_AttributeValue_value(ctx, field) 18956 if err != nil { 18957 return graphql.Null 18958 } 18959 ctx = graphql.WithFieldContext(ctx, fc) 18960 defer func() { 18961 if r := recover(); r != nil { 18962 ec.Error(ctx, ec.Recover(ctx, r)) 18963 ret = graphql.Null 18964 } 18965 }() 18966 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18967 ctx = rctx // use context from middleware stack in children 18968 return obj.Value(), nil 18969 }) 18970 if err != nil { 18971 ec.Error(ctx, err) 18972 return graphql.Null 18973 } 18974 if resTmp == nil { 18975 if !graphql.HasFieldError(ctx, fc) { 18976 ec.Errorf(ctx, "must not be null") 18977 } 18978 return graphql.Null 18979 } 18980 res := resTmp.(string) 18981 fc.Result = res 18982 return ec.marshalNString2string(ctx, field.Selections, res) 18983 } 18984 18985 func (ec *executionContext) fieldContext_Commerce_Category_AttributeValue_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 18986 fc = &graphql.FieldContext{ 18987 Object: "Commerce_Category_AttributeValue", 18988 Field: field, 18989 IsMethod: true, 18990 IsResolver: false, 18991 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 18992 return nil, errors.New("field of type String does not have child fields") 18993 }, 18994 } 18995 return fc, nil 18996 } 18997 18998 func (ec *executionContext) _Commerce_Category_AttributeValue_label(ctx context.Context, field graphql.CollectedField, obj *domain3.AttributeValue) (ret graphql.Marshaler) { 18999 fc, err := ec.fieldContext_Commerce_Category_AttributeValue_label(ctx, field) 19000 if err != nil { 19001 return graphql.Null 19002 } 19003 ctx = graphql.WithFieldContext(ctx, fc) 19004 defer func() { 19005 if r := recover(); r != nil { 19006 ec.Error(ctx, ec.Recover(ctx, r)) 19007 ret = graphql.Null 19008 } 19009 }() 19010 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19011 ctx = rctx // use context from middleware stack in children 19012 return obj.Label, nil 19013 }) 19014 if err != nil { 19015 ec.Error(ctx, err) 19016 return graphql.Null 19017 } 19018 if resTmp == nil { 19019 if !graphql.HasFieldError(ctx, fc) { 19020 ec.Errorf(ctx, "must not be null") 19021 } 19022 return graphql.Null 19023 } 19024 res := resTmp.(string) 19025 fc.Result = res 19026 return ec.marshalNString2string(ctx, field.Selections, res) 19027 } 19028 19029 func (ec *executionContext) fieldContext_Commerce_Category_AttributeValue_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19030 fc = &graphql.FieldContext{ 19031 Object: "Commerce_Category_AttributeValue", 19032 Field: field, 19033 IsMethod: false, 19034 IsResolver: false, 19035 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19036 return nil, errors.New("field of type String does not have child fields") 19037 }, 19038 } 19039 return fc, nil 19040 } 19041 19042 func (ec *executionContext) _Commerce_Category_Attributes_get(ctx context.Context, field graphql.CollectedField, obj domain3.Attributes) (ret graphql.Marshaler) { 19043 fc, err := ec.fieldContext_Commerce_Category_Attributes_get(ctx, field) 19044 if err != nil { 19045 return graphql.Null 19046 } 19047 ctx = graphql.WithFieldContext(ctx, fc) 19048 defer func() { 19049 if r := recover(); r != nil { 19050 ec.Error(ctx, ec.Recover(ctx, r)) 19051 ret = graphql.Null 19052 } 19053 }() 19054 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19055 ctx = rctx // use context from middleware stack in children 19056 return obj.Get(fc.Args["code"].(string)), nil 19057 }) 19058 if err != nil { 19059 ec.Error(ctx, err) 19060 return graphql.Null 19061 } 19062 if resTmp == nil { 19063 return graphql.Null 19064 } 19065 res := resTmp.(*domain3.Attribute) 19066 fc.Result = res 19067 return ec.marshalOCommerce_Category_Attribute2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttribute(ctx, field.Selections, res) 19068 } 19069 19070 func (ec *executionContext) fieldContext_Commerce_Category_Attributes_get(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19071 fc = &graphql.FieldContext{ 19072 Object: "Commerce_Category_Attributes", 19073 Field: field, 19074 IsMethod: true, 19075 IsResolver: false, 19076 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19077 switch field.Name { 19078 case "code": 19079 return ec.fieldContext_Commerce_Category_Attribute_code(ctx, field) 19080 case "label": 19081 return ec.fieldContext_Commerce_Category_Attribute_label(ctx, field) 19082 case "values": 19083 return ec.fieldContext_Commerce_Category_Attribute_values(ctx, field) 19084 } 19085 return nil, fmt.Errorf("no field named %q was found under type Commerce_Category_Attribute", field.Name) 19086 }, 19087 } 19088 defer func() { 19089 if r := recover(); r != nil { 19090 err = ec.Recover(ctx, r) 19091 ec.Error(ctx, err) 19092 } 19093 }() 19094 ctx = graphql.WithFieldContext(ctx, fc) 19095 if fc.Args, err = ec.field_Commerce_Category_Attributes_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 19096 ec.Error(ctx, err) 19097 return fc, err 19098 } 19099 return fc, nil 19100 } 19101 19102 func (ec *executionContext) _Commerce_Category_Attributes_has(ctx context.Context, field graphql.CollectedField, obj domain3.Attributes) (ret graphql.Marshaler) { 19103 fc, err := ec.fieldContext_Commerce_Category_Attributes_has(ctx, field) 19104 if err != nil { 19105 return graphql.Null 19106 } 19107 ctx = graphql.WithFieldContext(ctx, fc) 19108 defer func() { 19109 if r := recover(); r != nil { 19110 ec.Error(ctx, ec.Recover(ctx, r)) 19111 ret = graphql.Null 19112 } 19113 }() 19114 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19115 ctx = rctx // use context from middleware stack in children 19116 return obj.Has(fc.Args["code"].(string)), nil 19117 }) 19118 if err != nil { 19119 ec.Error(ctx, err) 19120 return graphql.Null 19121 } 19122 if resTmp == nil { 19123 return graphql.Null 19124 } 19125 res := resTmp.(bool) 19126 fc.Result = res 19127 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 19128 } 19129 19130 func (ec *executionContext) fieldContext_Commerce_Category_Attributes_has(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19131 fc = &graphql.FieldContext{ 19132 Object: "Commerce_Category_Attributes", 19133 Field: field, 19134 IsMethod: true, 19135 IsResolver: false, 19136 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19137 return nil, errors.New("field of type Boolean does not have child fields") 19138 }, 19139 } 19140 defer func() { 19141 if r := recover(); r != nil { 19142 err = ec.Recover(ctx, r) 19143 ec.Error(ctx, err) 19144 } 19145 }() 19146 ctx = graphql.WithFieldContext(ctx, fc) 19147 if fc.Args, err = ec.field_Commerce_Category_Attributes_has_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 19148 ec.Error(ctx, err) 19149 return fc, err 19150 } 19151 return fc, nil 19152 } 19153 19154 func (ec *executionContext) _Commerce_Category_Attributes_all(ctx context.Context, field graphql.CollectedField, obj domain3.Attributes) (ret graphql.Marshaler) { 19155 fc, err := ec.fieldContext_Commerce_Category_Attributes_all(ctx, field) 19156 if err != nil { 19157 return graphql.Null 19158 } 19159 ctx = graphql.WithFieldContext(ctx, fc) 19160 defer func() { 19161 if r := recover(); r != nil { 19162 ec.Error(ctx, ec.Recover(ctx, r)) 19163 ret = graphql.Null 19164 } 19165 }() 19166 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19167 ctx = rctx // use context from middleware stack in children 19168 return obj.All(), nil 19169 }) 19170 if err != nil { 19171 ec.Error(ctx, err) 19172 return graphql.Null 19173 } 19174 if resTmp == nil { 19175 return graphql.Null 19176 } 19177 res := resTmp.([]domain3.Attribute) 19178 fc.Result = res 19179 return ec.marshalOCommerce_Category_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeᚄ(ctx, field.Selections, res) 19180 } 19181 19182 func (ec *executionContext) fieldContext_Commerce_Category_Attributes_all(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19183 fc = &graphql.FieldContext{ 19184 Object: "Commerce_Category_Attributes", 19185 Field: field, 19186 IsMethod: true, 19187 IsResolver: false, 19188 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19189 switch field.Name { 19190 case "code": 19191 return ec.fieldContext_Commerce_Category_Attribute_code(ctx, field) 19192 case "label": 19193 return ec.fieldContext_Commerce_Category_Attribute_label(ctx, field) 19194 case "values": 19195 return ec.fieldContext_Commerce_Category_Attribute_values(ctx, field) 19196 } 19197 return nil, fmt.Errorf("no field named %q was found under type Commerce_Category_Attribute", field.Name) 19198 }, 19199 } 19200 return fc, nil 19201 } 19202 19203 func (ec *executionContext) _Commerce_Category_SearchResult_category(ctx context.Context, field graphql.CollectedField, obj *categorydto.CategorySearchResult) (ret graphql.Marshaler) { 19204 fc, err := ec.fieldContext_Commerce_Category_SearchResult_category(ctx, field) 19205 if err != nil { 19206 return graphql.Null 19207 } 19208 ctx = graphql.WithFieldContext(ctx, fc) 19209 defer func() { 19210 if r := recover(); r != nil { 19211 ec.Error(ctx, ec.Recover(ctx, r)) 19212 ret = graphql.Null 19213 } 19214 }() 19215 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19216 ctx = rctx // use context from middleware stack in children 19217 return obj.Category, nil 19218 }) 19219 if err != nil { 19220 ec.Error(ctx, err) 19221 return graphql.Null 19222 } 19223 if resTmp == nil { 19224 if !graphql.HasFieldError(ctx, fc) { 19225 ec.Errorf(ctx, "must not be null") 19226 } 19227 return graphql.Null 19228 } 19229 res := resTmp.(domain3.Category) 19230 fc.Result = res 19231 return ec.marshalNCommerce_Category2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐCategory(ctx, field.Selections, res) 19232 } 19233 19234 func (ec *executionContext) fieldContext_Commerce_Category_SearchResult_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19235 fc = &graphql.FieldContext{ 19236 Object: "Commerce_Category_SearchResult", 19237 Field: field, 19238 IsMethod: false, 19239 IsResolver: false, 19240 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19241 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 19242 }, 19243 } 19244 return fc, nil 19245 } 19246 19247 func (ec *executionContext) _Commerce_Category_SearchResult_productSearchResult(ctx context.Context, field graphql.CollectedField, obj *categorydto.CategorySearchResult) (ret graphql.Marshaler) { 19248 fc, err := ec.fieldContext_Commerce_Category_SearchResult_productSearchResult(ctx, field) 19249 if err != nil { 19250 return graphql.Null 19251 } 19252 ctx = graphql.WithFieldContext(ctx, fc) 19253 defer func() { 19254 if r := recover(); r != nil { 19255 ec.Error(ctx, ec.Recover(ctx, r)) 19256 ret = graphql.Null 19257 } 19258 }() 19259 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19260 ctx = rctx // use context from middleware stack in children 19261 return obj.ProductSearchResult, nil 19262 }) 19263 if err != nil { 19264 ec.Error(ctx, err) 19265 return graphql.Null 19266 } 19267 if resTmp == nil { 19268 if !graphql.HasFieldError(ctx, fc) { 19269 ec.Errorf(ctx, "must not be null") 19270 } 19271 return graphql.Null 19272 } 19273 res := resTmp.(*graphql1.SearchResultDTO) 19274 fc.Result = res 19275 return ec.marshalNCommerce_Product_SearchResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚐSearchResultDTO(ctx, field.Selections, res) 19276 } 19277 19278 func (ec *executionContext) fieldContext_Commerce_Category_SearchResult_productSearchResult(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19279 fc = &graphql.FieldContext{ 19280 Object: "Commerce_Category_SearchResult", 19281 Field: field, 19282 IsMethod: false, 19283 IsResolver: false, 19284 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19285 switch field.Name { 19286 case "products": 19287 return ec.fieldContext_Commerce_Product_SearchResult_products(ctx, field) 19288 case "facets": 19289 return ec.fieldContext_Commerce_Product_SearchResult_facets(ctx, field) 19290 case "suggestions": 19291 return ec.fieldContext_Commerce_Product_SearchResult_suggestions(ctx, field) 19292 case "searchMeta": 19293 return ec.fieldContext_Commerce_Product_SearchResult_searchMeta(ctx, field) 19294 case "hasSelectedFacet": 19295 return ec.fieldContext_Commerce_Product_SearchResult_hasSelectedFacet(ctx, field) 19296 case "promotion": 19297 return ec.fieldContext_Commerce_Product_SearchResult_promotion(ctx, field) 19298 case "actions": 19299 return ec.fieldContext_Commerce_Product_SearchResult_actions(ctx, field) 19300 } 19301 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_SearchResult", field.Name) 19302 }, 19303 } 19304 return fc, nil 19305 } 19306 19307 func (ec *executionContext) _Commerce_Checkout_PlaceOrderContext_cart(ctx context.Context, field graphql.CollectedField, obj *dto1.PlaceOrderContext) (ret graphql.Marshaler) { 19308 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderContext_cart(ctx, field) 19309 if err != nil { 19310 return graphql.Null 19311 } 19312 ctx = graphql.WithFieldContext(ctx, fc) 19313 defer func() { 19314 if r := recover(); r != nil { 19315 ec.Error(ctx, ec.Recover(ctx, r)) 19316 ret = graphql.Null 19317 } 19318 }() 19319 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19320 ctx = rctx // use context from middleware stack in children 19321 return obj.Cart, nil 19322 }) 19323 if err != nil { 19324 ec.Error(ctx, err) 19325 return graphql.Null 19326 } 19327 if resTmp == nil { 19328 return graphql.Null 19329 } 19330 res := resTmp.(*dto.DecoratedCart) 19331 fc.Result = res 19332 return ec.marshalOCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 19333 } 19334 19335 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderContext_cart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19336 fc = &graphql.FieldContext{ 19337 Object: "Commerce_Checkout_PlaceOrderContext", 19338 Field: field, 19339 IsMethod: false, 19340 IsResolver: false, 19341 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19342 switch field.Name { 19343 case "cart": 19344 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 19345 case "decoratedDeliveries": 19346 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 19347 case "getDecoratedDeliveryByCode": 19348 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 19349 case "getAllPaymentRequiredItems": 19350 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 19351 case "cartSummary": 19352 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 19353 } 19354 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 19355 }, 19356 } 19357 return fc, nil 19358 } 19359 19360 func (ec *executionContext) _Commerce_Checkout_PlaceOrderContext_orderInfos(ctx context.Context, field graphql.CollectedField, obj *dto1.PlaceOrderContext) (ret graphql.Marshaler) { 19361 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderContext_orderInfos(ctx, field) 19362 if err != nil { 19363 return graphql.Null 19364 } 19365 ctx = graphql.WithFieldContext(ctx, fc) 19366 defer func() { 19367 if r := recover(); r != nil { 19368 ec.Error(ctx, ec.Recover(ctx, r)) 19369 ret = graphql.Null 19370 } 19371 }() 19372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19373 ctx = rctx // use context from middleware stack in children 19374 return obj.OrderInfos, nil 19375 }) 19376 if err != nil { 19377 ec.Error(ctx, err) 19378 return graphql.Null 19379 } 19380 if resTmp == nil { 19381 return graphql.Null 19382 } 19383 res := resTmp.(*dto1.PlacedOrderInfos) 19384 fc.Result = res 19385 return ec.marshalOCommerce_Checkout_PlacedOrderInfos2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlacedOrderInfos(ctx, field.Selections, res) 19386 } 19387 19388 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderContext_orderInfos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19389 fc = &graphql.FieldContext{ 19390 Object: "Commerce_Checkout_PlaceOrderContext", 19391 Field: field, 19392 IsMethod: false, 19393 IsResolver: false, 19394 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19395 switch field.Name { 19396 case "paymentInfos": 19397 return ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_paymentInfos(ctx, field) 19398 case "placedOrderInfos": 19399 return ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_placedOrderInfos(ctx, field) 19400 case "email": 19401 return ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_email(ctx, field) 19402 } 19403 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlacedOrderInfos", field.Name) 19404 }, 19405 } 19406 return fc, nil 19407 } 19408 19409 func (ec *executionContext) _Commerce_Checkout_PlaceOrderContext_state(ctx context.Context, field graphql.CollectedField, obj *dto1.PlaceOrderContext) (ret graphql.Marshaler) { 19410 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderContext_state(ctx, field) 19411 if err != nil { 19412 return graphql.Null 19413 } 19414 ctx = graphql.WithFieldContext(ctx, fc) 19415 defer func() { 19416 if r := recover(); r != nil { 19417 ec.Error(ctx, ec.Recover(ctx, r)) 19418 ret = graphql.Null 19419 } 19420 }() 19421 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19422 ctx = rctx // use context from middleware stack in children 19423 return obj.State, nil 19424 }) 19425 if err != nil { 19426 ec.Error(ctx, err) 19427 return graphql.Null 19428 } 19429 if resTmp == nil { 19430 if !graphql.HasFieldError(ctx, fc) { 19431 ec.Errorf(ctx, "must not be null") 19432 } 19433 return graphql.Null 19434 } 19435 res := resTmp.(dto1.State) 19436 fc.Result = res 19437 return ec.marshalNCommerce_Checkout_PlaceOrderState_State2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐState(ctx, field.Selections, res) 19438 } 19439 19440 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderContext_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19441 fc = &graphql.FieldContext{ 19442 Object: "Commerce_Checkout_PlaceOrderContext", 19443 Field: field, 19444 IsMethod: false, 19445 IsResolver: false, 19446 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19447 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 19448 }, 19449 } 19450 return fc, nil 19451 } 19452 19453 func (ec *executionContext) _Commerce_Checkout_PlaceOrderContext_uuid(ctx context.Context, field graphql.CollectedField, obj *dto1.PlaceOrderContext) (ret graphql.Marshaler) { 19454 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderContext_uuid(ctx, field) 19455 if err != nil { 19456 return graphql.Null 19457 } 19458 ctx = graphql.WithFieldContext(ctx, fc) 19459 defer func() { 19460 if r := recover(); r != nil { 19461 ec.Error(ctx, ec.Recover(ctx, r)) 19462 ret = graphql.Null 19463 } 19464 }() 19465 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19466 ctx = rctx // use context from middleware stack in children 19467 return obj.UUID, nil 19468 }) 19469 if err != nil { 19470 ec.Error(ctx, err) 19471 return graphql.Null 19472 } 19473 if resTmp == nil { 19474 if !graphql.HasFieldError(ctx, fc) { 19475 ec.Errorf(ctx, "must not be null") 19476 } 19477 return graphql.Null 19478 } 19479 res := resTmp.(string) 19480 fc.Result = res 19481 return ec.marshalNString2string(ctx, field.Selections, res) 19482 } 19483 19484 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderContext_uuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19485 fc = &graphql.FieldContext{ 19486 Object: "Commerce_Checkout_PlaceOrderContext", 19487 Field: field, 19488 IsMethod: false, 19489 IsResolver: false, 19490 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19491 return nil, errors.New("field of type String does not have child fields") 19492 }, 19493 } 19494 return fc, nil 19495 } 19496 19497 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo_gateway(ctx context.Context, field graphql.CollectedField, obj *application.PlaceOrderPaymentInfo) (ret graphql.Marshaler) { 19498 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_gateway(ctx, field) 19499 if err != nil { 19500 return graphql.Null 19501 } 19502 ctx = graphql.WithFieldContext(ctx, fc) 19503 defer func() { 19504 if r := recover(); r != nil { 19505 ec.Error(ctx, ec.Recover(ctx, r)) 19506 ret = graphql.Null 19507 } 19508 }() 19509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19510 ctx = rctx // use context from middleware stack in children 19511 return obj.Gateway, nil 19512 }) 19513 if err != nil { 19514 ec.Error(ctx, err) 19515 return graphql.Null 19516 } 19517 if resTmp == nil { 19518 if !graphql.HasFieldError(ctx, fc) { 19519 ec.Errorf(ctx, "must not be null") 19520 } 19521 return graphql.Null 19522 } 19523 res := resTmp.(string) 19524 fc.Result = res 19525 return ec.marshalNString2string(ctx, field.Selections, res) 19526 } 19527 19528 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_gateway(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19529 fc = &graphql.FieldContext{ 19530 Object: "Commerce_Checkout_PlaceOrderPaymentInfo", 19531 Field: field, 19532 IsMethod: false, 19533 IsResolver: false, 19534 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19535 return nil, errors.New("field of type String does not have child fields") 19536 }, 19537 } 19538 return fc, nil 19539 } 19540 19541 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo_paymentProvider(ctx context.Context, field graphql.CollectedField, obj *application.PlaceOrderPaymentInfo) (ret graphql.Marshaler) { 19542 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_paymentProvider(ctx, field) 19543 if err != nil { 19544 return graphql.Null 19545 } 19546 ctx = graphql.WithFieldContext(ctx, fc) 19547 defer func() { 19548 if r := recover(); r != nil { 19549 ec.Error(ctx, ec.Recover(ctx, r)) 19550 ret = graphql.Null 19551 } 19552 }() 19553 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19554 ctx = rctx // use context from middleware stack in children 19555 return obj.PaymentProvider, nil 19556 }) 19557 if err != nil { 19558 ec.Error(ctx, err) 19559 return graphql.Null 19560 } 19561 if resTmp == nil { 19562 if !graphql.HasFieldError(ctx, fc) { 19563 ec.Errorf(ctx, "must not be null") 19564 } 19565 return graphql.Null 19566 } 19567 res := resTmp.(string) 19568 fc.Result = res 19569 return ec.marshalNString2string(ctx, field.Selections, res) 19570 } 19571 19572 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_paymentProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19573 fc = &graphql.FieldContext{ 19574 Object: "Commerce_Checkout_PlaceOrderPaymentInfo", 19575 Field: field, 19576 IsMethod: false, 19577 IsResolver: false, 19578 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19579 return nil, errors.New("field of type String does not have child fields") 19580 }, 19581 } 19582 return fc, nil 19583 } 19584 19585 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo_method(ctx context.Context, field graphql.CollectedField, obj *application.PlaceOrderPaymentInfo) (ret graphql.Marshaler) { 19586 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_method(ctx, field) 19587 if err != nil { 19588 return graphql.Null 19589 } 19590 ctx = graphql.WithFieldContext(ctx, fc) 19591 defer func() { 19592 if r := recover(); r != nil { 19593 ec.Error(ctx, ec.Recover(ctx, r)) 19594 ret = graphql.Null 19595 } 19596 }() 19597 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19598 ctx = rctx // use context from middleware stack in children 19599 return obj.Method, nil 19600 }) 19601 if err != nil { 19602 ec.Error(ctx, err) 19603 return graphql.Null 19604 } 19605 if resTmp == nil { 19606 if !graphql.HasFieldError(ctx, fc) { 19607 ec.Errorf(ctx, "must not be null") 19608 } 19609 return graphql.Null 19610 } 19611 res := resTmp.(string) 19612 fc.Result = res 19613 return ec.marshalNString2string(ctx, field.Selections, res) 19614 } 19615 19616 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19617 fc = &graphql.FieldContext{ 19618 Object: "Commerce_Checkout_PlaceOrderPaymentInfo", 19619 Field: field, 19620 IsMethod: false, 19621 IsResolver: false, 19622 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19623 return nil, errors.New("field of type String does not have child fields") 19624 }, 19625 } 19626 return fc, nil 19627 } 19628 19629 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo_amount(ctx context.Context, field graphql.CollectedField, obj *application.PlaceOrderPaymentInfo) (ret graphql.Marshaler) { 19630 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_amount(ctx, field) 19631 if err != nil { 19632 return graphql.Null 19633 } 19634 ctx = graphql.WithFieldContext(ctx, fc) 19635 defer func() { 19636 if r := recover(); r != nil { 19637 ec.Error(ctx, ec.Recover(ctx, r)) 19638 ret = graphql.Null 19639 } 19640 }() 19641 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19642 ctx = rctx // use context from middleware stack in children 19643 return obj.Amount, nil 19644 }) 19645 if err != nil { 19646 ec.Error(ctx, err) 19647 return graphql.Null 19648 } 19649 if resTmp == nil { 19650 if !graphql.HasFieldError(ctx, fc) { 19651 ec.Errorf(ctx, "must not be null") 19652 } 19653 return graphql.Null 19654 } 19655 res := resTmp.(domain.Price) 19656 fc.Result = res 19657 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 19658 } 19659 19660 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19661 fc = &graphql.FieldContext{ 19662 Object: "Commerce_Checkout_PlaceOrderPaymentInfo", 19663 Field: field, 19664 IsMethod: false, 19665 IsResolver: false, 19666 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19667 switch field.Name { 19668 case "amount": 19669 return ec.fieldContext_Commerce_Price_amount(ctx, field) 19670 case "currency": 19671 return ec.fieldContext_Commerce_Price_currency(ctx, field) 19672 } 19673 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 19674 }, 19675 } 19676 return fc, nil 19677 } 19678 19679 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo_title(ctx context.Context, field graphql.CollectedField, obj *application.PlaceOrderPaymentInfo) (ret graphql.Marshaler) { 19680 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_title(ctx, field) 19681 if err != nil { 19682 return graphql.Null 19683 } 19684 ctx = graphql.WithFieldContext(ctx, fc) 19685 defer func() { 19686 if r := recover(); r != nil { 19687 ec.Error(ctx, ec.Recover(ctx, r)) 19688 ret = graphql.Null 19689 } 19690 }() 19691 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19692 ctx = rctx // use context from middleware stack in children 19693 return obj.Title, nil 19694 }) 19695 if err != nil { 19696 ec.Error(ctx, err) 19697 return graphql.Null 19698 } 19699 if resTmp == nil { 19700 if !graphql.HasFieldError(ctx, fc) { 19701 ec.Errorf(ctx, "must not be null") 19702 } 19703 return graphql.Null 19704 } 19705 res := resTmp.(string) 19706 fc.Result = res 19707 return ec.marshalNString2string(ctx, field.Selections, res) 19708 } 19709 19710 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19711 fc = &graphql.FieldContext{ 19712 Object: "Commerce_Checkout_PlaceOrderPaymentInfo", 19713 Field: field, 19714 IsMethod: false, 19715 IsResolver: false, 19716 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19717 return nil, errors.New("field of type String does not have child fields") 19718 }, 19719 } 19720 return fc, nil 19721 } 19722 19723 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_Form_Parameter_key(ctx context.Context, field graphql.CollectedField, obj *dto1.FormParameter) (ret graphql.Marshaler) { 19724 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_key(ctx, field) 19725 if err != nil { 19726 return graphql.Null 19727 } 19728 ctx = graphql.WithFieldContext(ctx, fc) 19729 defer func() { 19730 if r := recover(); r != nil { 19731 ec.Error(ctx, ec.Recover(ctx, r)) 19732 ret = graphql.Null 19733 } 19734 }() 19735 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19736 ctx = rctx // use context from middleware stack in children 19737 return obj.Key, nil 19738 }) 19739 if err != nil { 19740 ec.Error(ctx, err) 19741 return graphql.Null 19742 } 19743 if resTmp == nil { 19744 if !graphql.HasFieldError(ctx, fc) { 19745 ec.Errorf(ctx, "must not be null") 19746 } 19747 return graphql.Null 19748 } 19749 res := resTmp.(string) 19750 fc.Result = res 19751 return ec.marshalNString2string(ctx, field.Selections, res) 19752 } 19753 19754 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19755 fc = &graphql.FieldContext{ 19756 Object: "Commerce_Checkout_PlaceOrderState_Form_Parameter", 19757 Field: field, 19758 IsMethod: false, 19759 IsResolver: false, 19760 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19761 return nil, errors.New("field of type String does not have child fields") 19762 }, 19763 } 19764 return fc, nil 19765 } 19766 19767 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_Form_Parameter_value(ctx context.Context, field graphql.CollectedField, obj *dto1.FormParameter) (ret graphql.Marshaler) { 19768 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_value(ctx, field) 19769 if err != nil { 19770 return graphql.Null 19771 } 19772 ctx = graphql.WithFieldContext(ctx, fc) 19773 defer func() { 19774 if r := recover(); r != nil { 19775 ec.Error(ctx, ec.Recover(ctx, r)) 19776 ret = graphql.Null 19777 } 19778 }() 19779 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19780 ctx = rctx // use context from middleware stack in children 19781 return obj.Value, nil 19782 }) 19783 if err != nil { 19784 ec.Error(ctx, err) 19785 return graphql.Null 19786 } 19787 if resTmp == nil { 19788 return graphql.Null 19789 } 19790 res := resTmp.([]string) 19791 fc.Result = res 19792 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 19793 } 19794 19795 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19796 fc = &graphql.FieldContext{ 19797 Object: "Commerce_Checkout_PlaceOrderState_Form_Parameter", 19798 Field: field, 19799 IsMethod: false, 19800 IsResolver: false, 19801 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19802 return nil, errors.New("field of type String does not have child fields") 19803 }, 19804 } 19805 return fc, nil 19806 } 19807 19808 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_methodData(ctx context.Context, field graphql.CollectedField, obj *dto1.PaymentRequestAPI) (ret graphql.Marshaler) { 19809 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_methodData(ctx, field) 19810 if err != nil { 19811 return graphql.Null 19812 } 19813 ctx = graphql.WithFieldContext(ctx, fc) 19814 defer func() { 19815 if r := recover(); r != nil { 19816 ec.Error(ctx, ec.Recover(ctx, r)) 19817 ret = graphql.Null 19818 } 19819 }() 19820 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19821 ctx = rctx // use context from middleware stack in children 19822 return obj.MethodData, nil 19823 }) 19824 if err != nil { 19825 ec.Error(ctx, err) 19826 return graphql.Null 19827 } 19828 if resTmp == nil { 19829 if !graphql.HasFieldError(ctx, fc) { 19830 ec.Errorf(ctx, "must not be null") 19831 } 19832 return graphql.Null 19833 } 19834 res := resTmp.(string) 19835 fc.Result = res 19836 return ec.marshalNString2string(ctx, field.Selections, res) 19837 } 19838 19839 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_methodData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19840 fc = &graphql.FieldContext{ 19841 Object: "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", 19842 Field: field, 19843 IsMethod: false, 19844 IsResolver: false, 19845 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19846 return nil, errors.New("field of type String does not have child fields") 19847 }, 19848 } 19849 return fc, nil 19850 } 19851 19852 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_details(ctx context.Context, field graphql.CollectedField, obj *dto1.PaymentRequestAPI) (ret graphql.Marshaler) { 19853 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_details(ctx, field) 19854 if err != nil { 19855 return graphql.Null 19856 } 19857 ctx = graphql.WithFieldContext(ctx, fc) 19858 defer func() { 19859 if r := recover(); r != nil { 19860 ec.Error(ctx, ec.Recover(ctx, r)) 19861 ret = graphql.Null 19862 } 19863 }() 19864 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19865 ctx = rctx // use context from middleware stack in children 19866 return obj.Details, nil 19867 }) 19868 if err != nil { 19869 ec.Error(ctx, err) 19870 return graphql.Null 19871 } 19872 if resTmp == nil { 19873 if !graphql.HasFieldError(ctx, fc) { 19874 ec.Errorf(ctx, "must not be null") 19875 } 19876 return graphql.Null 19877 } 19878 res := resTmp.(string) 19879 fc.Result = res 19880 return ec.marshalNString2string(ctx, field.Selections, res) 19881 } 19882 19883 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19884 fc = &graphql.FieldContext{ 19885 Object: "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", 19886 Field: field, 19887 IsMethod: false, 19888 IsResolver: false, 19889 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19890 return nil, errors.New("field of type String does not have child fields") 19891 }, 19892 } 19893 return fc, nil 19894 } 19895 19896 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_options(ctx context.Context, field graphql.CollectedField, obj *dto1.PaymentRequestAPI) (ret graphql.Marshaler) { 19897 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_options(ctx, field) 19898 if err != nil { 19899 return graphql.Null 19900 } 19901 ctx = graphql.WithFieldContext(ctx, fc) 19902 defer func() { 19903 if r := recover(); r != nil { 19904 ec.Error(ctx, ec.Recover(ctx, r)) 19905 ret = graphql.Null 19906 } 19907 }() 19908 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19909 ctx = rctx // use context from middleware stack in children 19910 return obj.Options, nil 19911 }) 19912 if err != nil { 19913 ec.Error(ctx, err) 19914 return graphql.Null 19915 } 19916 if resTmp == nil { 19917 if !graphql.HasFieldError(ctx, fc) { 19918 ec.Errorf(ctx, "must not be null") 19919 } 19920 return graphql.Null 19921 } 19922 res := resTmp.(string) 19923 fc.Result = res 19924 return ec.marshalNString2string(ctx, field.Selections, res) 19925 } 19926 19927 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19928 fc = &graphql.FieldContext{ 19929 Object: "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", 19930 Field: field, 19931 IsMethod: false, 19932 IsResolver: false, 19933 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19934 return nil, errors.New("field of type String does not have child fields") 19935 }, 19936 } 19937 return fc, nil 19938 } 19939 19940 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_merchantValidationURL(ctx context.Context, field graphql.CollectedField, obj *dto1.PaymentRequestAPI) (ret graphql.Marshaler) { 19941 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_merchantValidationURL(ctx, field) 19942 if err != nil { 19943 return graphql.Null 19944 } 19945 ctx = graphql.WithFieldContext(ctx, fc) 19946 defer func() { 19947 if r := recover(); r != nil { 19948 ec.Error(ctx, ec.Recover(ctx, r)) 19949 ret = graphql.Null 19950 } 19951 }() 19952 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19953 ctx = rctx // use context from middleware stack in children 19954 return obj.MerchantValidationURL, nil 19955 }) 19956 if err != nil { 19957 ec.Error(ctx, err) 19958 return graphql.Null 19959 } 19960 if resTmp == nil { 19961 return graphql.Null 19962 } 19963 res := resTmp.(*string) 19964 fc.Result = res 19965 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 19966 } 19967 19968 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_merchantValidationURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 19969 fc = &graphql.FieldContext{ 19970 Object: "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", 19971 Field: field, 19972 IsMethod: false, 19973 IsResolver: false, 19974 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 19975 return nil, errors.New("field of type String does not have child fields") 19976 }, 19977 } 19978 return fc, nil 19979 } 19980 19981 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_completeURL(ctx context.Context, field graphql.CollectedField, obj *dto1.PaymentRequestAPI) (ret graphql.Marshaler) { 19982 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_completeURL(ctx, field) 19983 if err != nil { 19984 return graphql.Null 19985 } 19986 ctx = graphql.WithFieldContext(ctx, fc) 19987 defer func() { 19988 if r := recover(); r != nil { 19989 ec.Error(ctx, ec.Recover(ctx, r)) 19990 ret = graphql.Null 19991 } 19992 }() 19993 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19994 ctx = rctx // use context from middleware stack in children 19995 return obj.CompleteURL, nil 19996 }) 19997 if err != nil { 19998 ec.Error(ctx, err) 19999 return graphql.Null 20000 } 20001 if resTmp == nil { 20002 if !graphql.HasFieldError(ctx, fc) { 20003 ec.Errorf(ctx, "must not be null") 20004 } 20005 return graphql.Null 20006 } 20007 res := resTmp.(string) 20008 fc.Result = res 20009 return ec.marshalNString2string(ctx, field.Selections, res) 20010 } 20011 20012 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_completeURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20013 fc = &graphql.FieldContext{ 20014 Object: "Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", 20015 Field: field, 20016 IsMethod: false, 20017 IsResolver: false, 20018 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20019 return nil, errors.New("field of type String does not have child fields") 20020 }, 20021 } 20022 return fc, nil 20023 } 20024 20025 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Failed_name(ctx context.Context, field graphql.CollectedField, obj *dto1.Failed) (ret graphql.Marshaler) { 20026 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Failed_name(ctx, field) 20027 if err != nil { 20028 return graphql.Null 20029 } 20030 ctx = graphql.WithFieldContext(ctx, fc) 20031 defer func() { 20032 if r := recover(); r != nil { 20033 ec.Error(ctx, ec.Recover(ctx, r)) 20034 ret = graphql.Null 20035 } 20036 }() 20037 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20038 ctx = rctx // use context from middleware stack in children 20039 return obj.Name, nil 20040 }) 20041 if err != nil { 20042 ec.Error(ctx, err) 20043 return graphql.Null 20044 } 20045 if resTmp == nil { 20046 if !graphql.HasFieldError(ctx, fc) { 20047 ec.Errorf(ctx, "must not be null") 20048 } 20049 return graphql.Null 20050 } 20051 res := resTmp.(string) 20052 fc.Result = res 20053 return ec.marshalNString2string(ctx, field.Selections, res) 20054 } 20055 20056 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Failed_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20057 fc = &graphql.FieldContext{ 20058 Object: "Commerce_Checkout_PlaceOrderState_State_Failed", 20059 Field: field, 20060 IsMethod: false, 20061 IsResolver: false, 20062 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20063 return nil, errors.New("field of type String does not have child fields") 20064 }, 20065 } 20066 return fc, nil 20067 } 20068 20069 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Failed_reason(ctx context.Context, field graphql.CollectedField, obj *dto1.Failed) (ret graphql.Marshaler) { 20070 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Failed_reason(ctx, field) 20071 if err != nil { 20072 return graphql.Null 20073 } 20074 ctx = graphql.WithFieldContext(ctx, fc) 20075 defer func() { 20076 if r := recover(); r != nil { 20077 ec.Error(ctx, ec.Recover(ctx, r)) 20078 ret = graphql.Null 20079 } 20080 }() 20081 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20082 ctx = rctx // use context from middleware stack in children 20083 return obj.Reason, nil 20084 }) 20085 if err != nil { 20086 ec.Error(ctx, err) 20087 return graphql.Null 20088 } 20089 if resTmp == nil { 20090 if !graphql.HasFieldError(ctx, fc) { 20091 ec.Errorf(ctx, "must not be null") 20092 } 20093 return graphql.Null 20094 } 20095 res := resTmp.(process.FailedReason) 20096 fc.Result = res 20097 return ec.marshalNCommerce_Checkout_PlaceOrderState_State_FailedReason2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋdomainᚋplaceorderᚋprocessᚐFailedReason(ctx, field.Selections, res) 20098 } 20099 20100 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Failed_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20101 fc = &graphql.FieldContext{ 20102 Object: "Commerce_Checkout_PlaceOrderState_State_Failed", 20103 Field: field, 20104 IsMethod: false, 20105 IsResolver: false, 20106 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20107 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 20108 }, 20109 } 20110 return fc, nil 20111 } 20112 20113 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer_reason(ctx context.Context, field graphql.CollectedField, obj *process.CanceledByCustomerReason) (ret graphql.Marshaler) { 20114 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer_reason(ctx, field) 20115 if err != nil { 20116 return graphql.Null 20117 } 20118 ctx = graphql.WithFieldContext(ctx, fc) 20119 defer func() { 20120 if r := recover(); r != nil { 20121 ec.Error(ctx, ec.Recover(ctx, r)) 20122 ret = graphql.Null 20123 } 20124 }() 20125 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20126 ctx = rctx // use context from middleware stack in children 20127 return obj.Reason(), nil 20128 }) 20129 if err != nil { 20130 ec.Error(ctx, err) 20131 return graphql.Null 20132 } 20133 if resTmp == nil { 20134 return graphql.Null 20135 } 20136 res := resTmp.(string) 20137 fc.Result = res 20138 return ec.marshalOString2string(ctx, field.Selections, res) 20139 } 20140 20141 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20142 fc = &graphql.FieldContext{ 20143 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer", 20144 Field: field, 20145 IsMethod: true, 20146 IsResolver: false, 20147 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20148 return nil, errors.New("field of type String does not have child fields") 20149 }, 20150 } 20151 return fc, nil 20152 } 20153 20154 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_reason(ctx context.Context, field graphql.CollectedField, obj *process.CartValidationErrorReason) (ret graphql.Marshaler) { 20155 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_reason(ctx, field) 20156 if err != nil { 20157 return graphql.Null 20158 } 20159 ctx = graphql.WithFieldContext(ctx, fc) 20160 defer func() { 20161 if r := recover(); r != nil { 20162 ec.Error(ctx, ec.Recover(ctx, r)) 20163 ret = graphql.Null 20164 } 20165 }() 20166 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20167 ctx = rctx // use context from middleware stack in children 20168 return obj.Reason(), nil 20169 }) 20170 if err != nil { 20171 ec.Error(ctx, err) 20172 return graphql.Null 20173 } 20174 if resTmp == nil { 20175 return graphql.Null 20176 } 20177 res := resTmp.(string) 20178 fc.Result = res 20179 return ec.marshalOString2string(ctx, field.Selections, res) 20180 } 20181 20182 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20183 fc = &graphql.FieldContext{ 20184 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError", 20185 Field: field, 20186 IsMethod: true, 20187 IsResolver: false, 20188 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20189 return nil, errors.New("field of type String does not have child fields") 20190 }, 20191 } 20192 return fc, nil 20193 } 20194 20195 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_validationResult(ctx context.Context, field graphql.CollectedField, obj *process.CartValidationErrorReason) (ret graphql.Marshaler) { 20196 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_validationResult(ctx, field) 20197 if err != nil { 20198 return graphql.Null 20199 } 20200 ctx = graphql.WithFieldContext(ctx, fc) 20201 defer func() { 20202 if r := recover(); r != nil { 20203 ec.Error(ctx, ec.Recover(ctx, r)) 20204 ret = graphql.Null 20205 } 20206 }() 20207 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20208 ctx = rctx // use context from middleware stack in children 20209 return obj.ValidationResult, nil 20210 }) 20211 if err != nil { 20212 ec.Error(ctx, err) 20213 return graphql.Null 20214 } 20215 if resTmp == nil { 20216 if !graphql.HasFieldError(ctx, fc) { 20217 ec.Errorf(ctx, "must not be null") 20218 } 20219 return graphql.Null 20220 } 20221 res := resTmp.(validation.Result) 20222 fc.Result = res 20223 return ec.marshalNCommerce_Cart_ValidationResult2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐResult(ctx, field.Selections, res) 20224 } 20225 20226 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_validationResult(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20227 fc = &graphql.FieldContext{ 20228 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError", 20229 Field: field, 20230 IsMethod: false, 20231 IsResolver: false, 20232 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20233 switch field.Name { 20234 case "hasCommonError": 20235 return ec.fieldContext_Commerce_Cart_ValidationResult_hasCommonError(ctx, field) 20236 case "commonErrorMessageKey": 20237 return ec.fieldContext_Commerce_Cart_ValidationResult_commonErrorMessageKey(ctx, field) 20238 case "itemResults": 20239 return ec.fieldContext_Commerce_Cart_ValidationResult_itemResults(ctx, field) 20240 } 20241 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_ValidationResult", field.Name) 20242 }, 20243 } 20244 return fc, nil 20245 } 20246 20247 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_Error_reason(ctx context.Context, field graphql.CollectedField, obj *process.ErrorOccurredReason) (ret graphql.Marshaler) { 20248 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_Error_reason(ctx, field) 20249 if err != nil { 20250 return graphql.Null 20251 } 20252 ctx = graphql.WithFieldContext(ctx, fc) 20253 defer func() { 20254 if r := recover(); r != nil { 20255 ec.Error(ctx, ec.Recover(ctx, r)) 20256 ret = graphql.Null 20257 } 20258 }() 20259 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20260 ctx = rctx // use context from middleware stack in children 20261 return obj.Reason(), nil 20262 }) 20263 if err != nil { 20264 ec.Error(ctx, err) 20265 return graphql.Null 20266 } 20267 if resTmp == nil { 20268 return graphql.Null 20269 } 20270 res := resTmp.(string) 20271 fc.Result = res 20272 return ec.marshalOString2string(ctx, field.Selections, res) 20273 } 20274 20275 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_Error_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20276 fc = &graphql.FieldContext{ 20277 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_Error", 20278 Field: field, 20279 IsMethod: true, 20280 IsResolver: false, 20281 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20282 return nil, errors.New("field of type String does not have child fields") 20283 }, 20284 } 20285 return fc, nil 20286 } 20287 20288 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer_reason(ctx context.Context, field graphql.CollectedField, obj *process.PaymentCanceledByCustomerReason) (ret graphql.Marshaler) { 20289 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer_reason(ctx, field) 20290 if err != nil { 20291 return graphql.Null 20292 } 20293 ctx = graphql.WithFieldContext(ctx, fc) 20294 defer func() { 20295 if r := recover(); r != nil { 20296 ec.Error(ctx, ec.Recover(ctx, r)) 20297 ret = graphql.Null 20298 } 20299 }() 20300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20301 ctx = rctx // use context from middleware stack in children 20302 return obj.Reason(), nil 20303 }) 20304 if err != nil { 20305 ec.Error(ctx, err) 20306 return graphql.Null 20307 } 20308 if resTmp == nil { 20309 return graphql.Null 20310 } 20311 res := resTmp.(string) 20312 fc.Result = res 20313 return ec.marshalOString2string(ctx, field.Selections, res) 20314 } 20315 20316 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20317 fc = &graphql.FieldContext{ 20318 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer", 20319 Field: field, 20320 IsMethod: true, 20321 IsResolver: false, 20322 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20323 return nil, errors.New("field of type String does not have child fields") 20324 }, 20325 } 20326 return fc, nil 20327 } 20328 20329 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError_reason(ctx context.Context, field graphql.CollectedField, obj *process.PaymentErrorOccurredReason) (ret graphql.Marshaler) { 20330 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError_reason(ctx, field) 20331 if err != nil { 20332 return graphql.Null 20333 } 20334 ctx = graphql.WithFieldContext(ctx, fc) 20335 defer func() { 20336 if r := recover(); r != nil { 20337 ec.Error(ctx, ec.Recover(ctx, r)) 20338 ret = graphql.Null 20339 } 20340 }() 20341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20342 ctx = rctx // use context from middleware stack in children 20343 return obj.Reason(), nil 20344 }) 20345 if err != nil { 20346 ec.Error(ctx, err) 20347 return graphql.Null 20348 } 20349 if resTmp == nil { 20350 return graphql.Null 20351 } 20352 res := resTmp.(string) 20353 fc.Result = res 20354 return ec.marshalOString2string(ctx, field.Selections, res) 20355 } 20356 20357 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20358 fc = &graphql.FieldContext{ 20359 Object: "Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError", 20360 Field: field, 20361 IsMethod: true, 20362 IsResolver: false, 20363 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20364 return nil, errors.New("field of type String does not have child fields") 20365 }, 20366 } 20367 return fc, nil 20368 } 20369 20370 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_PostRedirect_name(ctx context.Context, field graphql.CollectedField, obj *dto1.PostRedirect) (ret graphql.Marshaler) { 20371 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_name(ctx, field) 20372 if err != nil { 20373 return graphql.Null 20374 } 20375 ctx = graphql.WithFieldContext(ctx, fc) 20376 defer func() { 20377 if r := recover(); r != nil { 20378 ec.Error(ctx, ec.Recover(ctx, r)) 20379 ret = graphql.Null 20380 } 20381 }() 20382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20383 ctx = rctx // use context from middleware stack in children 20384 return obj.Name, nil 20385 }) 20386 if err != nil { 20387 ec.Error(ctx, err) 20388 return graphql.Null 20389 } 20390 if resTmp == nil { 20391 if !graphql.HasFieldError(ctx, fc) { 20392 ec.Errorf(ctx, "must not be null") 20393 } 20394 return graphql.Null 20395 } 20396 res := resTmp.(string) 20397 fc.Result = res 20398 return ec.marshalNString2string(ctx, field.Selections, res) 20399 } 20400 20401 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20402 fc = &graphql.FieldContext{ 20403 Object: "Commerce_Checkout_PlaceOrderState_State_PostRedirect", 20404 Field: field, 20405 IsMethod: false, 20406 IsResolver: false, 20407 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20408 return nil, errors.New("field of type String does not have child fields") 20409 }, 20410 } 20411 return fc, nil 20412 } 20413 20414 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_PostRedirect_URL(ctx context.Context, field graphql.CollectedField, obj *dto1.PostRedirect) (ret graphql.Marshaler) { 20415 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_URL(ctx, field) 20416 if err != nil { 20417 return graphql.Null 20418 } 20419 ctx = graphql.WithFieldContext(ctx, fc) 20420 defer func() { 20421 if r := recover(); r != nil { 20422 ec.Error(ctx, ec.Recover(ctx, r)) 20423 ret = graphql.Null 20424 } 20425 }() 20426 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20427 ctx = rctx // use context from middleware stack in children 20428 return obj.URL, nil 20429 }) 20430 if err != nil { 20431 ec.Error(ctx, err) 20432 return graphql.Null 20433 } 20434 if resTmp == nil { 20435 if !graphql.HasFieldError(ctx, fc) { 20436 ec.Errorf(ctx, "must not be null") 20437 } 20438 return graphql.Null 20439 } 20440 res := resTmp.(string) 20441 fc.Result = res 20442 return ec.marshalNString2string(ctx, field.Selections, res) 20443 } 20444 20445 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_URL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20446 fc = &graphql.FieldContext{ 20447 Object: "Commerce_Checkout_PlaceOrderState_State_PostRedirect", 20448 Field: field, 20449 IsMethod: false, 20450 IsResolver: false, 20451 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20452 return nil, errors.New("field of type String does not have child fields") 20453 }, 20454 } 20455 return fc, nil 20456 } 20457 20458 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_PostRedirect_Parameters(ctx context.Context, field graphql.CollectedField, obj *dto1.PostRedirect) (ret graphql.Marshaler) { 20459 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_Parameters(ctx, field) 20460 if err != nil { 20461 return graphql.Null 20462 } 20463 ctx = graphql.WithFieldContext(ctx, fc) 20464 defer func() { 20465 if r := recover(); r != nil { 20466 ec.Error(ctx, ec.Recover(ctx, r)) 20467 ret = graphql.Null 20468 } 20469 }() 20470 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20471 ctx = rctx // use context from middleware stack in children 20472 return obj.Parameters, nil 20473 }) 20474 if err != nil { 20475 ec.Error(ctx, err) 20476 return graphql.Null 20477 } 20478 if resTmp == nil { 20479 return graphql.Null 20480 } 20481 res := resTmp.([]dto1.FormParameter) 20482 fc.Result = res 20483 return ec.marshalOCommerce_Checkout_PlaceOrderState_Form_Parameter2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐFormParameterᚄ(ctx, field.Selections, res) 20484 } 20485 20486 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_PostRedirect_Parameters(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20487 fc = &graphql.FieldContext{ 20488 Object: "Commerce_Checkout_PlaceOrderState_State_PostRedirect", 20489 Field: field, 20490 IsMethod: false, 20491 IsResolver: false, 20492 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20493 switch field.Name { 20494 case "key": 20495 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_key(ctx, field) 20496 case "value": 20497 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_Form_Parameter_value(ctx, field) 20498 } 20499 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderState_Form_Parameter", field.Name) 20500 }, 20501 } 20502 return fc, nil 20503 } 20504 20505 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Redirect_name(ctx context.Context, field graphql.CollectedField, obj *dto1.Redirect) (ret graphql.Marshaler) { 20506 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Redirect_name(ctx, field) 20507 if err != nil { 20508 return graphql.Null 20509 } 20510 ctx = graphql.WithFieldContext(ctx, fc) 20511 defer func() { 20512 if r := recover(); r != nil { 20513 ec.Error(ctx, ec.Recover(ctx, r)) 20514 ret = graphql.Null 20515 } 20516 }() 20517 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20518 ctx = rctx // use context from middleware stack in children 20519 return obj.Name, nil 20520 }) 20521 if err != nil { 20522 ec.Error(ctx, err) 20523 return graphql.Null 20524 } 20525 if resTmp == nil { 20526 if !graphql.HasFieldError(ctx, fc) { 20527 ec.Errorf(ctx, "must not be null") 20528 } 20529 return graphql.Null 20530 } 20531 res := resTmp.(string) 20532 fc.Result = res 20533 return ec.marshalNString2string(ctx, field.Selections, res) 20534 } 20535 20536 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Redirect_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20537 fc = &graphql.FieldContext{ 20538 Object: "Commerce_Checkout_PlaceOrderState_State_Redirect", 20539 Field: field, 20540 IsMethod: false, 20541 IsResolver: false, 20542 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20543 return nil, errors.New("field of type String does not have child fields") 20544 }, 20545 } 20546 return fc, nil 20547 } 20548 20549 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Redirect_URL(ctx context.Context, field graphql.CollectedField, obj *dto1.Redirect) (ret graphql.Marshaler) { 20550 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Redirect_URL(ctx, field) 20551 if err != nil { 20552 return graphql.Null 20553 } 20554 ctx = graphql.WithFieldContext(ctx, fc) 20555 defer func() { 20556 if r := recover(); r != nil { 20557 ec.Error(ctx, ec.Recover(ctx, r)) 20558 ret = graphql.Null 20559 } 20560 }() 20561 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20562 ctx = rctx // use context from middleware stack in children 20563 return obj.URL, nil 20564 }) 20565 if err != nil { 20566 ec.Error(ctx, err) 20567 return graphql.Null 20568 } 20569 if resTmp == nil { 20570 if !graphql.HasFieldError(ctx, fc) { 20571 ec.Errorf(ctx, "must not be null") 20572 } 20573 return graphql.Null 20574 } 20575 res := resTmp.(string) 20576 fc.Result = res 20577 return ec.marshalNString2string(ctx, field.Selections, res) 20578 } 20579 20580 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Redirect_URL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20581 fc = &graphql.FieldContext{ 20582 Object: "Commerce_Checkout_PlaceOrderState_State_Redirect", 20583 Field: field, 20584 IsMethod: false, 20585 IsResolver: false, 20586 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20587 return nil, errors.New("field of type String does not have child fields") 20588 }, 20589 } 20590 return fc, nil 20591 } 20592 20593 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowHTML_name(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowHTML) (ret graphql.Marshaler) { 20594 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowHTML_name(ctx, field) 20595 if err != nil { 20596 return graphql.Null 20597 } 20598 ctx = graphql.WithFieldContext(ctx, fc) 20599 defer func() { 20600 if r := recover(); r != nil { 20601 ec.Error(ctx, ec.Recover(ctx, r)) 20602 ret = graphql.Null 20603 } 20604 }() 20605 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20606 ctx = rctx // use context from middleware stack in children 20607 return obj.Name, nil 20608 }) 20609 if err != nil { 20610 ec.Error(ctx, err) 20611 return graphql.Null 20612 } 20613 if resTmp == nil { 20614 if !graphql.HasFieldError(ctx, fc) { 20615 ec.Errorf(ctx, "must not be null") 20616 } 20617 return graphql.Null 20618 } 20619 res := resTmp.(string) 20620 fc.Result = res 20621 return ec.marshalNString2string(ctx, field.Selections, res) 20622 } 20623 20624 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowHTML_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20625 fc = &graphql.FieldContext{ 20626 Object: "Commerce_Checkout_PlaceOrderState_State_ShowHTML", 20627 Field: field, 20628 IsMethod: false, 20629 IsResolver: false, 20630 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20631 return nil, errors.New("field of type String does not have child fields") 20632 }, 20633 } 20634 return fc, nil 20635 } 20636 20637 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowHTML_HTML(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowHTML) (ret graphql.Marshaler) { 20638 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowHTML_HTML(ctx, field) 20639 if err != nil { 20640 return graphql.Null 20641 } 20642 ctx = graphql.WithFieldContext(ctx, fc) 20643 defer func() { 20644 if r := recover(); r != nil { 20645 ec.Error(ctx, ec.Recover(ctx, r)) 20646 ret = graphql.Null 20647 } 20648 }() 20649 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20650 ctx = rctx // use context from middleware stack in children 20651 return obj.HTML, nil 20652 }) 20653 if err != nil { 20654 ec.Error(ctx, err) 20655 return graphql.Null 20656 } 20657 if resTmp == nil { 20658 if !graphql.HasFieldError(ctx, fc) { 20659 ec.Errorf(ctx, "must not be null") 20660 } 20661 return graphql.Null 20662 } 20663 res := resTmp.(string) 20664 fc.Result = res 20665 return ec.marshalNString2string(ctx, field.Selections, res) 20666 } 20667 20668 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowHTML_HTML(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20669 fc = &graphql.FieldContext{ 20670 Object: "Commerce_Checkout_PlaceOrderState_State_ShowHTML", 20671 Field: field, 20672 IsMethod: false, 20673 IsResolver: false, 20674 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20675 return nil, errors.New("field of type String does not have child fields") 20676 }, 20677 } 20678 return fc, nil 20679 } 20680 20681 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowIframe_name(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowIframe) (ret graphql.Marshaler) { 20682 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowIframe_name(ctx, field) 20683 if err != nil { 20684 return graphql.Null 20685 } 20686 ctx = graphql.WithFieldContext(ctx, fc) 20687 defer func() { 20688 if r := recover(); r != nil { 20689 ec.Error(ctx, ec.Recover(ctx, r)) 20690 ret = graphql.Null 20691 } 20692 }() 20693 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20694 ctx = rctx // use context from middleware stack in children 20695 return obj.Name, nil 20696 }) 20697 if err != nil { 20698 ec.Error(ctx, err) 20699 return graphql.Null 20700 } 20701 if resTmp == nil { 20702 if !graphql.HasFieldError(ctx, fc) { 20703 ec.Errorf(ctx, "must not be null") 20704 } 20705 return graphql.Null 20706 } 20707 res := resTmp.(string) 20708 fc.Result = res 20709 return ec.marshalNString2string(ctx, field.Selections, res) 20710 } 20711 20712 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowIframe_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20713 fc = &graphql.FieldContext{ 20714 Object: "Commerce_Checkout_PlaceOrderState_State_ShowIframe", 20715 Field: field, 20716 IsMethod: false, 20717 IsResolver: false, 20718 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20719 return nil, errors.New("field of type String does not have child fields") 20720 }, 20721 } 20722 return fc, nil 20723 } 20724 20725 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowIframe_URL(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowIframe) (ret graphql.Marshaler) { 20726 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowIframe_URL(ctx, field) 20727 if err != nil { 20728 return graphql.Null 20729 } 20730 ctx = graphql.WithFieldContext(ctx, fc) 20731 defer func() { 20732 if r := recover(); r != nil { 20733 ec.Error(ctx, ec.Recover(ctx, r)) 20734 ret = graphql.Null 20735 } 20736 }() 20737 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20738 ctx = rctx // use context from middleware stack in children 20739 return obj.URL, nil 20740 }) 20741 if err != nil { 20742 ec.Error(ctx, err) 20743 return graphql.Null 20744 } 20745 if resTmp == nil { 20746 if !graphql.HasFieldError(ctx, fc) { 20747 ec.Errorf(ctx, "must not be null") 20748 } 20749 return graphql.Null 20750 } 20751 res := resTmp.(string) 20752 fc.Result = res 20753 return ec.marshalNString2string(ctx, field.Selections, res) 20754 } 20755 20756 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowIframe_URL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20757 fc = &graphql.FieldContext{ 20758 Object: "Commerce_Checkout_PlaceOrderState_State_ShowIframe", 20759 Field: field, 20760 IsMethod: false, 20761 IsResolver: false, 20762 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20763 return nil, errors.New("field of type String does not have child fields") 20764 }, 20765 } 20766 return fc, nil 20767 } 20768 20769 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_name(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowWalletPayment) (ret graphql.Marshaler) { 20770 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_name(ctx, field) 20771 if err != nil { 20772 return graphql.Null 20773 } 20774 ctx = graphql.WithFieldContext(ctx, fc) 20775 defer func() { 20776 if r := recover(); r != nil { 20777 ec.Error(ctx, ec.Recover(ctx, r)) 20778 ret = graphql.Null 20779 } 20780 }() 20781 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20782 ctx = rctx // use context from middleware stack in children 20783 return obj.Name, nil 20784 }) 20785 if err != nil { 20786 ec.Error(ctx, err) 20787 return graphql.Null 20788 } 20789 if resTmp == nil { 20790 if !graphql.HasFieldError(ctx, fc) { 20791 ec.Errorf(ctx, "must not be null") 20792 } 20793 return graphql.Null 20794 } 20795 res := resTmp.(string) 20796 fc.Result = res 20797 return ec.marshalNString2string(ctx, field.Selections, res) 20798 } 20799 20800 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20801 fc = &graphql.FieldContext{ 20802 Object: "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment", 20803 Field: field, 20804 IsMethod: false, 20805 IsResolver: false, 20806 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20807 return nil, errors.New("field of type String does not have child fields") 20808 }, 20809 } 20810 return fc, nil 20811 } 20812 20813 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentMethod(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowWalletPayment) (ret graphql.Marshaler) { 20814 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentMethod(ctx, field) 20815 if err != nil { 20816 return graphql.Null 20817 } 20818 ctx = graphql.WithFieldContext(ctx, fc) 20819 defer func() { 20820 if r := recover(); r != nil { 20821 ec.Error(ctx, ec.Recover(ctx, r)) 20822 ret = graphql.Null 20823 } 20824 }() 20825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20826 ctx = rctx // use context from middleware stack in children 20827 return obj.PaymentMethod, nil 20828 }) 20829 if err != nil { 20830 ec.Error(ctx, err) 20831 return graphql.Null 20832 } 20833 if resTmp == nil { 20834 if !graphql.HasFieldError(ctx, fc) { 20835 ec.Errorf(ctx, "must not be null") 20836 } 20837 return graphql.Null 20838 } 20839 res := resTmp.(string) 20840 fc.Result = res 20841 return ec.marshalNString2string(ctx, field.Selections, res) 20842 } 20843 20844 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentMethod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20845 fc = &graphql.FieldContext{ 20846 Object: "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment", 20847 Field: field, 20848 IsMethod: false, 20849 IsResolver: false, 20850 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20851 return nil, errors.New("field of type String does not have child fields") 20852 }, 20853 } 20854 return fc, nil 20855 } 20856 20857 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentRequestAPI(ctx context.Context, field graphql.CollectedField, obj *dto1.ShowWalletPayment) (ret graphql.Marshaler) { 20858 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentRequestAPI(ctx, field) 20859 if err != nil { 20860 return graphql.Null 20861 } 20862 ctx = graphql.WithFieldContext(ctx, fc) 20863 defer func() { 20864 if r := recover(); r != nil { 20865 ec.Error(ctx, ec.Recover(ctx, r)) 20866 ret = graphql.Null 20867 } 20868 }() 20869 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20870 ctx = rctx // use context from middleware stack in children 20871 return obj.PaymentRequestAPI, nil 20872 }) 20873 if err != nil { 20874 ec.Error(ctx, err) 20875 return graphql.Null 20876 } 20877 if resTmp == nil { 20878 if !graphql.HasFieldError(ctx, fc) { 20879 ec.Errorf(ctx, "must not be null") 20880 } 20881 return graphql.Null 20882 } 20883 res := resTmp.(dto1.PaymentRequestAPI) 20884 fc.Result = res 20885 return ec.marshalNCommerce_Checkout_PlaceOrderState_PaymentRequestAPI2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPaymentRequestAPI(ctx, field.Selections, res) 20886 } 20887 20888 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentRequestAPI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20889 fc = &graphql.FieldContext{ 20890 Object: "Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment", 20891 Field: field, 20892 IsMethod: false, 20893 IsResolver: false, 20894 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20895 switch field.Name { 20896 case "methodData": 20897 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_methodData(ctx, field) 20898 case "details": 20899 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_details(ctx, field) 20900 case "options": 20901 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_options(ctx, field) 20902 case "merchantValidationURL": 20903 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_merchantValidationURL(ctx, field) 20904 case "completeURL": 20905 return ec.fieldContext_Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_completeURL(ctx, field) 20906 } 20907 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderState_PaymentRequestAPI", field.Name) 20908 }, 20909 } 20910 return fc, nil 20911 } 20912 20913 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Success_name(ctx context.Context, field graphql.CollectedField, obj *dto1.Success) (ret graphql.Marshaler) { 20914 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Success_name(ctx, field) 20915 if err != nil { 20916 return graphql.Null 20917 } 20918 ctx = graphql.WithFieldContext(ctx, fc) 20919 defer func() { 20920 if r := recover(); r != nil { 20921 ec.Error(ctx, ec.Recover(ctx, r)) 20922 ret = graphql.Null 20923 } 20924 }() 20925 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20926 ctx = rctx // use context from middleware stack in children 20927 return obj.Name, nil 20928 }) 20929 if err != nil { 20930 ec.Error(ctx, err) 20931 return graphql.Null 20932 } 20933 if resTmp == nil { 20934 if !graphql.HasFieldError(ctx, fc) { 20935 ec.Errorf(ctx, "must not be null") 20936 } 20937 return graphql.Null 20938 } 20939 res := resTmp.(string) 20940 fc.Result = res 20941 return ec.marshalNString2string(ctx, field.Selections, res) 20942 } 20943 20944 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Success_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20945 fc = &graphql.FieldContext{ 20946 Object: "Commerce_Checkout_PlaceOrderState_State_Success", 20947 Field: field, 20948 IsMethod: false, 20949 IsResolver: false, 20950 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20951 return nil, errors.New("field of type String does not have child fields") 20952 }, 20953 } 20954 return fc, nil 20955 } 20956 20957 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_name(ctx context.Context, field graphql.CollectedField, obj *dto1.TriggerClientSDK) (ret graphql.Marshaler) { 20958 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_name(ctx, field) 20959 if err != nil { 20960 return graphql.Null 20961 } 20962 ctx = graphql.WithFieldContext(ctx, fc) 20963 defer func() { 20964 if r := recover(); r != nil { 20965 ec.Error(ctx, ec.Recover(ctx, r)) 20966 ret = graphql.Null 20967 } 20968 }() 20969 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20970 ctx = rctx // use context from middleware stack in children 20971 return obj.Name, nil 20972 }) 20973 if err != nil { 20974 ec.Error(ctx, err) 20975 return graphql.Null 20976 } 20977 if resTmp == nil { 20978 if !graphql.HasFieldError(ctx, fc) { 20979 ec.Errorf(ctx, "must not be null") 20980 } 20981 return graphql.Null 20982 } 20983 res := resTmp.(string) 20984 fc.Result = res 20985 return ec.marshalNString2string(ctx, field.Selections, res) 20986 } 20987 20988 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 20989 fc = &graphql.FieldContext{ 20990 Object: "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK", 20991 Field: field, 20992 IsMethod: false, 20993 IsResolver: false, 20994 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 20995 return nil, errors.New("field of type String does not have child fields") 20996 }, 20997 } 20998 return fc, nil 20999 } 21000 21001 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_URL(ctx context.Context, field graphql.CollectedField, obj *dto1.TriggerClientSDK) (ret graphql.Marshaler) { 21002 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_URL(ctx, field) 21003 if err != nil { 21004 return graphql.Null 21005 } 21006 ctx = graphql.WithFieldContext(ctx, fc) 21007 defer func() { 21008 if r := recover(); r != nil { 21009 ec.Error(ctx, ec.Recover(ctx, r)) 21010 ret = graphql.Null 21011 } 21012 }() 21013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21014 ctx = rctx // use context from middleware stack in children 21015 return obj.URL, nil 21016 }) 21017 if err != nil { 21018 ec.Error(ctx, err) 21019 return graphql.Null 21020 } 21021 if resTmp == nil { 21022 if !graphql.HasFieldError(ctx, fc) { 21023 ec.Errorf(ctx, "must not be null") 21024 } 21025 return graphql.Null 21026 } 21027 res := resTmp.(string) 21028 fc.Result = res 21029 return ec.marshalNString2string(ctx, field.Selections, res) 21030 } 21031 21032 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_URL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21033 fc = &graphql.FieldContext{ 21034 Object: "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK", 21035 Field: field, 21036 IsMethod: false, 21037 IsResolver: false, 21038 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21039 return nil, errors.New("field of type String does not have child fields") 21040 }, 21041 } 21042 return fc, nil 21043 } 21044 21045 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_data(ctx context.Context, field graphql.CollectedField, obj *dto1.TriggerClientSDK) (ret graphql.Marshaler) { 21046 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_data(ctx, field) 21047 if err != nil { 21048 return graphql.Null 21049 } 21050 ctx = graphql.WithFieldContext(ctx, fc) 21051 defer func() { 21052 if r := recover(); r != nil { 21053 ec.Error(ctx, ec.Recover(ctx, r)) 21054 ret = graphql.Null 21055 } 21056 }() 21057 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21058 ctx = rctx // use context from middleware stack in children 21059 return obj.Data, nil 21060 }) 21061 if err != nil { 21062 ec.Error(ctx, err) 21063 return graphql.Null 21064 } 21065 if resTmp == nil { 21066 if !graphql.HasFieldError(ctx, fc) { 21067 ec.Errorf(ctx, "must not be null") 21068 } 21069 return graphql.Null 21070 } 21071 res := resTmp.(string) 21072 fc.Result = res 21073 return ec.marshalNString2string(ctx, field.Selections, res) 21074 } 21075 21076 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21077 fc = &graphql.FieldContext{ 21078 Object: "Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK", 21079 Field: field, 21080 IsMethod: false, 21081 IsResolver: false, 21082 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21083 return nil, errors.New("field of type String does not have child fields") 21084 }, 21085 } 21086 return fc, nil 21087 } 21088 21089 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Wait_name(ctx context.Context, field graphql.CollectedField, obj *dto1.Wait) (ret graphql.Marshaler) { 21090 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_Wait_name(ctx, field) 21091 if err != nil { 21092 return graphql.Null 21093 } 21094 ctx = graphql.WithFieldContext(ctx, fc) 21095 defer func() { 21096 if r := recover(); r != nil { 21097 ec.Error(ctx, ec.Recover(ctx, r)) 21098 ret = graphql.Null 21099 } 21100 }() 21101 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21102 ctx = rctx // use context from middleware stack in children 21103 return obj.Name, nil 21104 }) 21105 if err != nil { 21106 ec.Error(ctx, err) 21107 return graphql.Null 21108 } 21109 if resTmp == nil { 21110 if !graphql.HasFieldError(ctx, fc) { 21111 ec.Errorf(ctx, "must not be null") 21112 } 21113 return graphql.Null 21114 } 21115 res := resTmp.(string) 21116 fc.Result = res 21117 return ec.marshalNString2string(ctx, field.Selections, res) 21118 } 21119 21120 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_Wait_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21121 fc = &graphql.FieldContext{ 21122 Object: "Commerce_Checkout_PlaceOrderState_State_Wait", 21123 Field: field, 21124 IsMethod: false, 21125 IsResolver: false, 21126 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21127 return nil, errors.New("field of type String does not have child fields") 21128 }, 21129 } 21130 return fc, nil 21131 } 21132 21133 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_WaitForCustomer_name(ctx context.Context, field graphql.CollectedField, obj *dto1.WaitForCustomer) (ret graphql.Marshaler) { 21134 fc, err := ec.fieldContext_Commerce_Checkout_PlaceOrderState_State_WaitForCustomer_name(ctx, field) 21135 if err != nil { 21136 return graphql.Null 21137 } 21138 ctx = graphql.WithFieldContext(ctx, fc) 21139 defer func() { 21140 if r := recover(); r != nil { 21141 ec.Error(ctx, ec.Recover(ctx, r)) 21142 ret = graphql.Null 21143 } 21144 }() 21145 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21146 ctx = rctx // use context from middleware stack in children 21147 return obj.Name, nil 21148 }) 21149 if err != nil { 21150 ec.Error(ctx, err) 21151 return graphql.Null 21152 } 21153 if resTmp == nil { 21154 if !graphql.HasFieldError(ctx, fc) { 21155 ec.Errorf(ctx, "must not be null") 21156 } 21157 return graphql.Null 21158 } 21159 res := resTmp.(string) 21160 fc.Result = res 21161 return ec.marshalNString2string(ctx, field.Selections, res) 21162 } 21163 21164 func (ec *executionContext) fieldContext_Commerce_Checkout_PlaceOrderState_State_WaitForCustomer_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21165 fc = &graphql.FieldContext{ 21166 Object: "Commerce_Checkout_PlaceOrderState_State_WaitForCustomer", 21167 Field: field, 21168 IsMethod: false, 21169 IsResolver: false, 21170 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21171 return nil, errors.New("field of type String does not have child fields") 21172 }, 21173 } 21174 return fc, nil 21175 } 21176 21177 func (ec *executionContext) _Commerce_Checkout_PlacedOrderInfos_paymentInfos(ctx context.Context, field graphql.CollectedField, obj *dto1.PlacedOrderInfos) (ret graphql.Marshaler) { 21178 fc, err := ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_paymentInfos(ctx, field) 21179 if err != nil { 21180 return graphql.Null 21181 } 21182 ctx = graphql.WithFieldContext(ctx, fc) 21183 defer func() { 21184 if r := recover(); r != nil { 21185 ec.Error(ctx, ec.Recover(ctx, r)) 21186 ret = graphql.Null 21187 } 21188 }() 21189 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21190 ctx = rctx // use context from middleware stack in children 21191 return obj.PaymentInfos, nil 21192 }) 21193 if err != nil { 21194 ec.Error(ctx, err) 21195 return graphql.Null 21196 } 21197 if resTmp == nil { 21198 return graphql.Null 21199 } 21200 res := resTmp.([]application.PlaceOrderPaymentInfo) 21201 fc.Result = res 21202 return ec.marshalOCommerce_Checkout_PlaceOrderPaymentInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋapplicationᚐPlaceOrderPaymentInfoᚄ(ctx, field.Selections, res) 21203 } 21204 21205 func (ec *executionContext) fieldContext_Commerce_Checkout_PlacedOrderInfos_paymentInfos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21206 fc = &graphql.FieldContext{ 21207 Object: "Commerce_Checkout_PlacedOrderInfos", 21208 Field: field, 21209 IsMethod: false, 21210 IsResolver: false, 21211 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21212 switch field.Name { 21213 case "gateway": 21214 return ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_gateway(ctx, field) 21215 case "paymentProvider": 21216 return ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_paymentProvider(ctx, field) 21217 case "method": 21218 return ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_method(ctx, field) 21219 case "amount": 21220 return ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_amount(ctx, field) 21221 case "title": 21222 return ec.fieldContext_Commerce_Checkout_PlaceOrderPaymentInfo_title(ctx, field) 21223 } 21224 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderPaymentInfo", field.Name) 21225 }, 21226 } 21227 return fc, nil 21228 } 21229 21230 func (ec *executionContext) _Commerce_Checkout_PlacedOrderInfos_placedOrderInfos(ctx context.Context, field graphql.CollectedField, obj *dto1.PlacedOrderInfos) (ret graphql.Marshaler) { 21231 fc, err := ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_placedOrderInfos(ctx, field) 21232 if err != nil { 21233 return graphql.Null 21234 } 21235 ctx = graphql.WithFieldContext(ctx, fc) 21236 defer func() { 21237 if r := recover(); r != nil { 21238 ec.Error(ctx, ec.Recover(ctx, r)) 21239 ret = graphql.Null 21240 } 21241 }() 21242 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21243 ctx = rctx // use context from middleware stack in children 21244 return obj.PlacedOrderInfos, nil 21245 }) 21246 if err != nil { 21247 ec.Error(ctx, err) 21248 return graphql.Null 21249 } 21250 if resTmp == nil { 21251 return graphql.Null 21252 } 21253 res := resTmp.([]placeorder.PlacedOrderInfo) 21254 fc.Result = res 21255 return ec.marshalOCommerce_Cart_PlacedOrderInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋplaceorderᚐPlacedOrderInfoᚄ(ctx, field.Selections, res) 21256 } 21257 21258 func (ec *executionContext) fieldContext_Commerce_Checkout_PlacedOrderInfos_placedOrderInfos(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21259 fc = &graphql.FieldContext{ 21260 Object: "Commerce_Checkout_PlacedOrderInfos", 21261 Field: field, 21262 IsMethod: false, 21263 IsResolver: false, 21264 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21265 switch field.Name { 21266 case "orderNumber": 21267 return ec.fieldContext_Commerce_Cart_PlacedOrderInfo_orderNumber(ctx, field) 21268 case "deliveryCode": 21269 return ec.fieldContext_Commerce_Cart_PlacedOrderInfo_deliveryCode(ctx, field) 21270 } 21271 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_PlacedOrderInfo", field.Name) 21272 }, 21273 } 21274 return fc, nil 21275 } 21276 21277 func (ec *executionContext) _Commerce_Checkout_PlacedOrderInfos_email(ctx context.Context, field graphql.CollectedField, obj *dto1.PlacedOrderInfos) (ret graphql.Marshaler) { 21278 fc, err := ec.fieldContext_Commerce_Checkout_PlacedOrderInfos_email(ctx, field) 21279 if err != nil { 21280 return graphql.Null 21281 } 21282 ctx = graphql.WithFieldContext(ctx, fc) 21283 defer func() { 21284 if r := recover(); r != nil { 21285 ec.Error(ctx, ec.Recover(ctx, r)) 21286 ret = graphql.Null 21287 } 21288 }() 21289 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21290 ctx = rctx // use context from middleware stack in children 21291 return obj.Email, nil 21292 }) 21293 if err != nil { 21294 ec.Error(ctx, err) 21295 return graphql.Null 21296 } 21297 if resTmp == nil { 21298 if !graphql.HasFieldError(ctx, fc) { 21299 ec.Errorf(ctx, "must not be null") 21300 } 21301 return graphql.Null 21302 } 21303 res := resTmp.(string) 21304 fc.Result = res 21305 return ec.marshalNString2string(ctx, field.Selections, res) 21306 } 21307 21308 func (ec *executionContext) fieldContext_Commerce_Checkout_PlacedOrderInfos_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21309 fc = &graphql.FieldContext{ 21310 Object: "Commerce_Checkout_PlacedOrderInfos", 21311 Field: field, 21312 IsMethod: false, 21313 IsResolver: false, 21314 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21315 return nil, errors.New("field of type String does not have child fields") 21316 }, 21317 } 21318 return fc, nil 21319 } 21320 21321 func (ec *executionContext) _Commerce_Checkout_StartPlaceOrder_Result_uuid(ctx context.Context, field graphql.CollectedField, obj *dto1.StartPlaceOrderResult) (ret graphql.Marshaler) { 21322 fc, err := ec.fieldContext_Commerce_Checkout_StartPlaceOrder_Result_uuid(ctx, field) 21323 if err != nil { 21324 return graphql.Null 21325 } 21326 ctx = graphql.WithFieldContext(ctx, fc) 21327 defer func() { 21328 if r := recover(); r != nil { 21329 ec.Error(ctx, ec.Recover(ctx, r)) 21330 ret = graphql.Null 21331 } 21332 }() 21333 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21334 ctx = rctx // use context from middleware stack in children 21335 return obj.UUID, nil 21336 }) 21337 if err != nil { 21338 ec.Error(ctx, err) 21339 return graphql.Null 21340 } 21341 if resTmp == nil { 21342 if !graphql.HasFieldError(ctx, fc) { 21343 ec.Errorf(ctx, "must not be null") 21344 } 21345 return graphql.Null 21346 } 21347 res := resTmp.(string) 21348 fc.Result = res 21349 return ec.marshalNString2string(ctx, field.Selections, res) 21350 } 21351 21352 func (ec *executionContext) fieldContext_Commerce_Checkout_StartPlaceOrder_Result_uuid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21353 fc = &graphql.FieldContext{ 21354 Object: "Commerce_Checkout_StartPlaceOrder_Result", 21355 Field: field, 21356 IsMethod: false, 21357 IsResolver: false, 21358 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21359 return nil, errors.New("field of type String does not have child fields") 21360 }, 21361 } 21362 return fc, nil 21363 } 21364 21365 func (ec *executionContext) _Commerce_Customer_Address_id(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21366 fc, err := ec.fieldContext_Commerce_Customer_Address_id(ctx, field) 21367 if err != nil { 21368 return graphql.Null 21369 } 21370 ctx = graphql.WithFieldContext(ctx, fc) 21371 defer func() { 21372 if r := recover(); r != nil { 21373 ec.Error(ctx, ec.Recover(ctx, r)) 21374 ret = graphql.Null 21375 } 21376 }() 21377 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21378 ctx = rctx // use context from middleware stack in children 21379 return obj.ID, nil 21380 }) 21381 if err != nil { 21382 ec.Error(ctx, err) 21383 return graphql.Null 21384 } 21385 if resTmp == nil { 21386 if !graphql.HasFieldError(ctx, fc) { 21387 ec.Errorf(ctx, "must not be null") 21388 } 21389 return graphql.Null 21390 } 21391 res := resTmp.(string) 21392 fc.Result = res 21393 return ec.marshalNID2string(ctx, field.Selections, res) 21394 } 21395 21396 func (ec *executionContext) fieldContext_Commerce_Customer_Address_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21397 fc = &graphql.FieldContext{ 21398 Object: "Commerce_Customer_Address", 21399 Field: field, 21400 IsMethod: false, 21401 IsResolver: false, 21402 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21403 return nil, errors.New("field of type ID does not have child fields") 21404 }, 21405 } 21406 return fc, nil 21407 } 21408 21409 func (ec *executionContext) _Commerce_Customer_Address_additionalAddressLines(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21410 fc, err := ec.fieldContext_Commerce_Customer_Address_additionalAddressLines(ctx, field) 21411 if err != nil { 21412 return graphql.Null 21413 } 21414 ctx = graphql.WithFieldContext(ctx, fc) 21415 defer func() { 21416 if r := recover(); r != nil { 21417 ec.Error(ctx, ec.Recover(ctx, r)) 21418 ret = graphql.Null 21419 } 21420 }() 21421 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21422 ctx = rctx // use context from middleware stack in children 21423 return obj.AdditionalAddressLines, nil 21424 }) 21425 if err != nil { 21426 ec.Error(ctx, err) 21427 return graphql.Null 21428 } 21429 if resTmp == nil { 21430 return graphql.Null 21431 } 21432 res := resTmp.([]string) 21433 fc.Result = res 21434 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 21435 } 21436 21437 func (ec *executionContext) fieldContext_Commerce_Customer_Address_additionalAddressLines(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21438 fc = &graphql.FieldContext{ 21439 Object: "Commerce_Customer_Address", 21440 Field: field, 21441 IsMethod: false, 21442 IsResolver: false, 21443 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21444 return nil, errors.New("field of type String does not have child fields") 21445 }, 21446 } 21447 return fc, nil 21448 } 21449 21450 func (ec *executionContext) _Commerce_Customer_Address_city(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21451 fc, err := ec.fieldContext_Commerce_Customer_Address_city(ctx, field) 21452 if err != nil { 21453 return graphql.Null 21454 } 21455 ctx = graphql.WithFieldContext(ctx, fc) 21456 defer func() { 21457 if r := recover(); r != nil { 21458 ec.Error(ctx, ec.Recover(ctx, r)) 21459 ret = graphql.Null 21460 } 21461 }() 21462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21463 ctx = rctx // use context from middleware stack in children 21464 return obj.City, nil 21465 }) 21466 if err != nil { 21467 ec.Error(ctx, err) 21468 return graphql.Null 21469 } 21470 if resTmp == nil { 21471 if !graphql.HasFieldError(ctx, fc) { 21472 ec.Errorf(ctx, "must not be null") 21473 } 21474 return graphql.Null 21475 } 21476 res := resTmp.(string) 21477 fc.Result = res 21478 return ec.marshalNString2string(ctx, field.Selections, res) 21479 } 21480 21481 func (ec *executionContext) fieldContext_Commerce_Customer_Address_city(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21482 fc = &graphql.FieldContext{ 21483 Object: "Commerce_Customer_Address", 21484 Field: field, 21485 IsMethod: false, 21486 IsResolver: false, 21487 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21488 return nil, errors.New("field of type String does not have child fields") 21489 }, 21490 } 21491 return fc, nil 21492 } 21493 21494 func (ec *executionContext) _Commerce_Customer_Address_company(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21495 fc, err := ec.fieldContext_Commerce_Customer_Address_company(ctx, field) 21496 if err != nil { 21497 return graphql.Null 21498 } 21499 ctx = graphql.WithFieldContext(ctx, fc) 21500 defer func() { 21501 if r := recover(); r != nil { 21502 ec.Error(ctx, ec.Recover(ctx, r)) 21503 ret = graphql.Null 21504 } 21505 }() 21506 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21507 ctx = rctx // use context from middleware stack in children 21508 return obj.Company, nil 21509 }) 21510 if err != nil { 21511 ec.Error(ctx, err) 21512 return graphql.Null 21513 } 21514 if resTmp == nil { 21515 if !graphql.HasFieldError(ctx, fc) { 21516 ec.Errorf(ctx, "must not be null") 21517 } 21518 return graphql.Null 21519 } 21520 res := resTmp.(string) 21521 fc.Result = res 21522 return ec.marshalNString2string(ctx, field.Selections, res) 21523 } 21524 21525 func (ec *executionContext) fieldContext_Commerce_Customer_Address_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21526 fc = &graphql.FieldContext{ 21527 Object: "Commerce_Customer_Address", 21528 Field: field, 21529 IsMethod: false, 21530 IsResolver: false, 21531 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21532 return nil, errors.New("field of type String does not have child fields") 21533 }, 21534 } 21535 return fc, nil 21536 } 21537 21538 func (ec *executionContext) _Commerce_Customer_Address_countryCode(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21539 fc, err := ec.fieldContext_Commerce_Customer_Address_countryCode(ctx, field) 21540 if err != nil { 21541 return graphql.Null 21542 } 21543 ctx = graphql.WithFieldContext(ctx, fc) 21544 defer func() { 21545 if r := recover(); r != nil { 21546 ec.Error(ctx, ec.Recover(ctx, r)) 21547 ret = graphql.Null 21548 } 21549 }() 21550 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21551 ctx = rctx // use context from middleware stack in children 21552 return obj.CountryCode, nil 21553 }) 21554 if err != nil { 21555 ec.Error(ctx, err) 21556 return graphql.Null 21557 } 21558 if resTmp == nil { 21559 if !graphql.HasFieldError(ctx, fc) { 21560 ec.Errorf(ctx, "must not be null") 21561 } 21562 return graphql.Null 21563 } 21564 res := resTmp.(string) 21565 fc.Result = res 21566 return ec.marshalNString2string(ctx, field.Selections, res) 21567 } 21568 21569 func (ec *executionContext) fieldContext_Commerce_Customer_Address_countryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21570 fc = &graphql.FieldContext{ 21571 Object: "Commerce_Customer_Address", 21572 Field: field, 21573 IsMethod: false, 21574 IsResolver: false, 21575 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21576 return nil, errors.New("field of type String does not have child fields") 21577 }, 21578 } 21579 return fc, nil 21580 } 21581 21582 func (ec *executionContext) _Commerce_Customer_Address_defaultBilling(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21583 fc, err := ec.fieldContext_Commerce_Customer_Address_defaultBilling(ctx, field) 21584 if err != nil { 21585 return graphql.Null 21586 } 21587 ctx = graphql.WithFieldContext(ctx, fc) 21588 defer func() { 21589 if r := recover(); r != nil { 21590 ec.Error(ctx, ec.Recover(ctx, r)) 21591 ret = graphql.Null 21592 } 21593 }() 21594 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21595 ctx = rctx // use context from middleware stack in children 21596 return obj.DefaultBilling, nil 21597 }) 21598 if err != nil { 21599 ec.Error(ctx, err) 21600 return graphql.Null 21601 } 21602 if resTmp == nil { 21603 if !graphql.HasFieldError(ctx, fc) { 21604 ec.Errorf(ctx, "must not be null") 21605 } 21606 return graphql.Null 21607 } 21608 res := resTmp.(bool) 21609 fc.Result = res 21610 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 21611 } 21612 21613 func (ec *executionContext) fieldContext_Commerce_Customer_Address_defaultBilling(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21614 fc = &graphql.FieldContext{ 21615 Object: "Commerce_Customer_Address", 21616 Field: field, 21617 IsMethod: false, 21618 IsResolver: false, 21619 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21620 return nil, errors.New("field of type Boolean does not have child fields") 21621 }, 21622 } 21623 return fc, nil 21624 } 21625 21626 func (ec *executionContext) _Commerce_Customer_Address_defaultShipping(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21627 fc, err := ec.fieldContext_Commerce_Customer_Address_defaultShipping(ctx, field) 21628 if err != nil { 21629 return graphql.Null 21630 } 21631 ctx = graphql.WithFieldContext(ctx, fc) 21632 defer func() { 21633 if r := recover(); r != nil { 21634 ec.Error(ctx, ec.Recover(ctx, r)) 21635 ret = graphql.Null 21636 } 21637 }() 21638 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21639 ctx = rctx // use context from middleware stack in children 21640 return obj.DefaultShipping, nil 21641 }) 21642 if err != nil { 21643 ec.Error(ctx, err) 21644 return graphql.Null 21645 } 21646 if resTmp == nil { 21647 if !graphql.HasFieldError(ctx, fc) { 21648 ec.Errorf(ctx, "must not be null") 21649 } 21650 return graphql.Null 21651 } 21652 res := resTmp.(bool) 21653 fc.Result = res 21654 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 21655 } 21656 21657 func (ec *executionContext) fieldContext_Commerce_Customer_Address_defaultShipping(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21658 fc = &graphql.FieldContext{ 21659 Object: "Commerce_Customer_Address", 21660 Field: field, 21661 IsMethod: false, 21662 IsResolver: false, 21663 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21664 return nil, errors.New("field of type Boolean does not have child fields") 21665 }, 21666 } 21667 return fc, nil 21668 } 21669 21670 func (ec *executionContext) _Commerce_Customer_Address_firstName(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21671 fc, err := ec.fieldContext_Commerce_Customer_Address_firstName(ctx, field) 21672 if err != nil { 21673 return graphql.Null 21674 } 21675 ctx = graphql.WithFieldContext(ctx, fc) 21676 defer func() { 21677 if r := recover(); r != nil { 21678 ec.Error(ctx, ec.Recover(ctx, r)) 21679 ret = graphql.Null 21680 } 21681 }() 21682 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21683 ctx = rctx // use context from middleware stack in children 21684 return obj.Firstname, nil 21685 }) 21686 if err != nil { 21687 ec.Error(ctx, err) 21688 return graphql.Null 21689 } 21690 if resTmp == nil { 21691 if !graphql.HasFieldError(ctx, fc) { 21692 ec.Errorf(ctx, "must not be null") 21693 } 21694 return graphql.Null 21695 } 21696 res := resTmp.(string) 21697 fc.Result = res 21698 return ec.marshalNString2string(ctx, field.Selections, res) 21699 } 21700 21701 func (ec *executionContext) fieldContext_Commerce_Customer_Address_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21702 fc = &graphql.FieldContext{ 21703 Object: "Commerce_Customer_Address", 21704 Field: field, 21705 IsMethod: false, 21706 IsResolver: false, 21707 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21708 return nil, errors.New("field of type String does not have child fields") 21709 }, 21710 } 21711 return fc, nil 21712 } 21713 21714 func (ec *executionContext) _Commerce_Customer_Address_lastName(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21715 fc, err := ec.fieldContext_Commerce_Customer_Address_lastName(ctx, field) 21716 if err != nil { 21717 return graphql.Null 21718 } 21719 ctx = graphql.WithFieldContext(ctx, fc) 21720 defer func() { 21721 if r := recover(); r != nil { 21722 ec.Error(ctx, ec.Recover(ctx, r)) 21723 ret = graphql.Null 21724 } 21725 }() 21726 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21727 ctx = rctx // use context from middleware stack in children 21728 return obj.Lastname, nil 21729 }) 21730 if err != nil { 21731 ec.Error(ctx, err) 21732 return graphql.Null 21733 } 21734 if resTmp == nil { 21735 if !graphql.HasFieldError(ctx, fc) { 21736 ec.Errorf(ctx, "must not be null") 21737 } 21738 return graphql.Null 21739 } 21740 res := resTmp.(string) 21741 fc.Result = res 21742 return ec.marshalNString2string(ctx, field.Selections, res) 21743 } 21744 21745 func (ec *executionContext) fieldContext_Commerce_Customer_Address_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21746 fc = &graphql.FieldContext{ 21747 Object: "Commerce_Customer_Address", 21748 Field: field, 21749 IsMethod: false, 21750 IsResolver: false, 21751 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21752 return nil, errors.New("field of type String does not have child fields") 21753 }, 21754 } 21755 return fc, nil 21756 } 21757 21758 func (ec *executionContext) _Commerce_Customer_Address_postCode(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21759 fc, err := ec.fieldContext_Commerce_Customer_Address_postCode(ctx, field) 21760 if err != nil { 21761 return graphql.Null 21762 } 21763 ctx = graphql.WithFieldContext(ctx, fc) 21764 defer func() { 21765 if r := recover(); r != nil { 21766 ec.Error(ctx, ec.Recover(ctx, r)) 21767 ret = graphql.Null 21768 } 21769 }() 21770 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21771 ctx = rctx // use context from middleware stack in children 21772 return obj.PostCode, nil 21773 }) 21774 if err != nil { 21775 ec.Error(ctx, err) 21776 return graphql.Null 21777 } 21778 if resTmp == nil { 21779 if !graphql.HasFieldError(ctx, fc) { 21780 ec.Errorf(ctx, "must not be null") 21781 } 21782 return graphql.Null 21783 } 21784 res := resTmp.(string) 21785 fc.Result = res 21786 return ec.marshalNString2string(ctx, field.Selections, res) 21787 } 21788 21789 func (ec *executionContext) fieldContext_Commerce_Customer_Address_postCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21790 fc = &graphql.FieldContext{ 21791 Object: "Commerce_Customer_Address", 21792 Field: field, 21793 IsMethod: false, 21794 IsResolver: false, 21795 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21796 return nil, errors.New("field of type String does not have child fields") 21797 }, 21798 } 21799 return fc, nil 21800 } 21801 21802 func (ec *executionContext) _Commerce_Customer_Address_prefix(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21803 fc, err := ec.fieldContext_Commerce_Customer_Address_prefix(ctx, field) 21804 if err != nil { 21805 return graphql.Null 21806 } 21807 ctx = graphql.WithFieldContext(ctx, fc) 21808 defer func() { 21809 if r := recover(); r != nil { 21810 ec.Error(ctx, ec.Recover(ctx, r)) 21811 ret = graphql.Null 21812 } 21813 }() 21814 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21815 ctx = rctx // use context from middleware stack in children 21816 return obj.Prefix, nil 21817 }) 21818 if err != nil { 21819 ec.Error(ctx, err) 21820 return graphql.Null 21821 } 21822 if resTmp == nil { 21823 if !graphql.HasFieldError(ctx, fc) { 21824 ec.Errorf(ctx, "must not be null") 21825 } 21826 return graphql.Null 21827 } 21828 res := resTmp.(string) 21829 fc.Result = res 21830 return ec.marshalNString2string(ctx, field.Selections, res) 21831 } 21832 21833 func (ec *executionContext) fieldContext_Commerce_Customer_Address_prefix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21834 fc = &graphql.FieldContext{ 21835 Object: "Commerce_Customer_Address", 21836 Field: field, 21837 IsMethod: false, 21838 IsResolver: false, 21839 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21840 return nil, errors.New("field of type String does not have child fields") 21841 }, 21842 } 21843 return fc, nil 21844 } 21845 21846 func (ec *executionContext) _Commerce_Customer_Address_regionCode(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21847 fc, err := ec.fieldContext_Commerce_Customer_Address_regionCode(ctx, field) 21848 if err != nil { 21849 return graphql.Null 21850 } 21851 ctx = graphql.WithFieldContext(ctx, fc) 21852 defer func() { 21853 if r := recover(); r != nil { 21854 ec.Error(ctx, ec.Recover(ctx, r)) 21855 ret = graphql.Null 21856 } 21857 }() 21858 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21859 ctx = rctx // use context from middleware stack in children 21860 return obj.RegionCode, nil 21861 }) 21862 if err != nil { 21863 ec.Error(ctx, err) 21864 return graphql.Null 21865 } 21866 if resTmp == nil { 21867 if !graphql.HasFieldError(ctx, fc) { 21868 ec.Errorf(ctx, "must not be null") 21869 } 21870 return graphql.Null 21871 } 21872 res := resTmp.(string) 21873 fc.Result = res 21874 return ec.marshalNString2string(ctx, field.Selections, res) 21875 } 21876 21877 func (ec *executionContext) fieldContext_Commerce_Customer_Address_regionCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21878 fc = &graphql.FieldContext{ 21879 Object: "Commerce_Customer_Address", 21880 Field: field, 21881 IsMethod: false, 21882 IsResolver: false, 21883 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21884 return nil, errors.New("field of type String does not have child fields") 21885 }, 21886 } 21887 return fc, nil 21888 } 21889 21890 func (ec *executionContext) _Commerce_Customer_Address_street(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21891 fc, err := ec.fieldContext_Commerce_Customer_Address_street(ctx, field) 21892 if err != nil { 21893 return graphql.Null 21894 } 21895 ctx = graphql.WithFieldContext(ctx, fc) 21896 defer func() { 21897 if r := recover(); r != nil { 21898 ec.Error(ctx, ec.Recover(ctx, r)) 21899 ret = graphql.Null 21900 } 21901 }() 21902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21903 ctx = rctx // use context from middleware stack in children 21904 return obj.Street, nil 21905 }) 21906 if err != nil { 21907 ec.Error(ctx, err) 21908 return graphql.Null 21909 } 21910 if resTmp == nil { 21911 if !graphql.HasFieldError(ctx, fc) { 21912 ec.Errorf(ctx, "must not be null") 21913 } 21914 return graphql.Null 21915 } 21916 res := resTmp.(string) 21917 fc.Result = res 21918 return ec.marshalNString2string(ctx, field.Selections, res) 21919 } 21920 21921 func (ec *executionContext) fieldContext_Commerce_Customer_Address_street(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21922 fc = &graphql.FieldContext{ 21923 Object: "Commerce_Customer_Address", 21924 Field: field, 21925 IsMethod: false, 21926 IsResolver: false, 21927 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21928 return nil, errors.New("field of type String does not have child fields") 21929 }, 21930 } 21931 return fc, nil 21932 } 21933 21934 func (ec *executionContext) _Commerce_Customer_Address_streetNumber(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21935 fc, err := ec.fieldContext_Commerce_Customer_Address_streetNumber(ctx, field) 21936 if err != nil { 21937 return graphql.Null 21938 } 21939 ctx = graphql.WithFieldContext(ctx, fc) 21940 defer func() { 21941 if r := recover(); r != nil { 21942 ec.Error(ctx, ec.Recover(ctx, r)) 21943 ret = graphql.Null 21944 } 21945 }() 21946 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21947 ctx = rctx // use context from middleware stack in children 21948 return obj.StreetNr, nil 21949 }) 21950 if err != nil { 21951 ec.Error(ctx, err) 21952 return graphql.Null 21953 } 21954 if resTmp == nil { 21955 if !graphql.HasFieldError(ctx, fc) { 21956 ec.Errorf(ctx, "must not be null") 21957 } 21958 return graphql.Null 21959 } 21960 res := resTmp.(string) 21961 fc.Result = res 21962 return ec.marshalNString2string(ctx, field.Selections, res) 21963 } 21964 21965 func (ec *executionContext) fieldContext_Commerce_Customer_Address_streetNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 21966 fc = &graphql.FieldContext{ 21967 Object: "Commerce_Customer_Address", 21968 Field: field, 21969 IsMethod: false, 21970 IsResolver: false, 21971 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 21972 return nil, errors.New("field of type String does not have child fields") 21973 }, 21974 } 21975 return fc, nil 21976 } 21977 21978 func (ec *executionContext) _Commerce_Customer_Address_state(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 21979 fc, err := ec.fieldContext_Commerce_Customer_Address_state(ctx, field) 21980 if err != nil { 21981 return graphql.Null 21982 } 21983 ctx = graphql.WithFieldContext(ctx, fc) 21984 defer func() { 21985 if r := recover(); r != nil { 21986 ec.Error(ctx, ec.Recover(ctx, r)) 21987 ret = graphql.Null 21988 } 21989 }() 21990 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21991 ctx = rctx // use context from middleware stack in children 21992 return obj.State, nil 21993 }) 21994 if err != nil { 21995 ec.Error(ctx, err) 21996 return graphql.Null 21997 } 21998 if resTmp == nil { 21999 if !graphql.HasFieldError(ctx, fc) { 22000 ec.Errorf(ctx, "must not be null") 22001 } 22002 return graphql.Null 22003 } 22004 res := resTmp.(string) 22005 fc.Result = res 22006 return ec.marshalNString2string(ctx, field.Selections, res) 22007 } 22008 22009 func (ec *executionContext) fieldContext_Commerce_Customer_Address_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22010 fc = &graphql.FieldContext{ 22011 Object: "Commerce_Customer_Address", 22012 Field: field, 22013 IsMethod: false, 22014 IsResolver: false, 22015 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22016 return nil, errors.New("field of type String does not have child fields") 22017 }, 22018 } 22019 return fc, nil 22020 } 22021 22022 func (ec *executionContext) _Commerce_Customer_Address_telephone(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 22023 fc, err := ec.fieldContext_Commerce_Customer_Address_telephone(ctx, field) 22024 if err != nil { 22025 return graphql.Null 22026 } 22027 ctx = graphql.WithFieldContext(ctx, fc) 22028 defer func() { 22029 if r := recover(); r != nil { 22030 ec.Error(ctx, ec.Recover(ctx, r)) 22031 ret = graphql.Null 22032 } 22033 }() 22034 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22035 ctx = rctx // use context from middleware stack in children 22036 return obj.Telephone, nil 22037 }) 22038 if err != nil { 22039 ec.Error(ctx, err) 22040 return graphql.Null 22041 } 22042 if resTmp == nil { 22043 if !graphql.HasFieldError(ctx, fc) { 22044 ec.Errorf(ctx, "must not be null") 22045 } 22046 return graphql.Null 22047 } 22048 res := resTmp.(string) 22049 fc.Result = res 22050 return ec.marshalNString2string(ctx, field.Selections, res) 22051 } 22052 22053 func (ec *executionContext) fieldContext_Commerce_Customer_Address_telephone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22054 fc = &graphql.FieldContext{ 22055 Object: "Commerce_Customer_Address", 22056 Field: field, 22057 IsMethod: false, 22058 IsResolver: false, 22059 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22060 return nil, errors.New("field of type String does not have child fields") 22061 }, 22062 } 22063 return fc, nil 22064 } 22065 22066 func (ec *executionContext) _Commerce_Customer_Address_email(ctx context.Context, field graphql.CollectedField, obj *domain5.Address) (ret graphql.Marshaler) { 22067 fc, err := ec.fieldContext_Commerce_Customer_Address_email(ctx, field) 22068 if err != nil { 22069 return graphql.Null 22070 } 22071 ctx = graphql.WithFieldContext(ctx, fc) 22072 defer func() { 22073 if r := recover(); r != nil { 22074 ec.Error(ctx, ec.Recover(ctx, r)) 22075 ret = graphql.Null 22076 } 22077 }() 22078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22079 ctx = rctx // use context from middleware stack in children 22080 return obj.Email, nil 22081 }) 22082 if err != nil { 22083 ec.Error(ctx, err) 22084 return graphql.Null 22085 } 22086 if resTmp == nil { 22087 if !graphql.HasFieldError(ctx, fc) { 22088 ec.Errorf(ctx, "must not be null") 22089 } 22090 return graphql.Null 22091 } 22092 res := resTmp.(string) 22093 fc.Result = res 22094 return ec.marshalNString2string(ctx, field.Selections, res) 22095 } 22096 22097 func (ec *executionContext) fieldContext_Commerce_Customer_Address_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22098 fc = &graphql.FieldContext{ 22099 Object: "Commerce_Customer_Address", 22100 Field: field, 22101 IsMethod: false, 22102 IsResolver: false, 22103 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22104 return nil, errors.New("field of type String does not have child fields") 22105 }, 22106 } 22107 return fc, nil 22108 } 22109 22110 func (ec *executionContext) _Commerce_Customer_PersonData_gender(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22111 fc, err := ec.fieldContext_Commerce_Customer_PersonData_gender(ctx, field) 22112 if err != nil { 22113 return graphql.Null 22114 } 22115 ctx = graphql.WithFieldContext(ctx, fc) 22116 defer func() { 22117 if r := recover(); r != nil { 22118 ec.Error(ctx, ec.Recover(ctx, r)) 22119 ret = graphql.Null 22120 } 22121 }() 22122 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22123 ctx = rctx // use context from middleware stack in children 22124 return obj.Gender, nil 22125 }) 22126 if err != nil { 22127 ec.Error(ctx, err) 22128 return graphql.Null 22129 } 22130 if resTmp == nil { 22131 if !graphql.HasFieldError(ctx, fc) { 22132 ec.Errorf(ctx, "must not be null") 22133 } 22134 return graphql.Null 22135 } 22136 res := resTmp.(string) 22137 fc.Result = res 22138 return ec.marshalNString2string(ctx, field.Selections, res) 22139 } 22140 22141 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_gender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22142 fc = &graphql.FieldContext{ 22143 Object: "Commerce_Customer_PersonData", 22144 Field: field, 22145 IsMethod: false, 22146 IsResolver: false, 22147 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22148 return nil, errors.New("field of type String does not have child fields") 22149 }, 22150 } 22151 return fc, nil 22152 } 22153 22154 func (ec *executionContext) _Commerce_Customer_PersonData_firstName(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22155 fc, err := ec.fieldContext_Commerce_Customer_PersonData_firstName(ctx, field) 22156 if err != nil { 22157 return graphql.Null 22158 } 22159 ctx = graphql.WithFieldContext(ctx, fc) 22160 defer func() { 22161 if r := recover(); r != nil { 22162 ec.Error(ctx, ec.Recover(ctx, r)) 22163 ret = graphql.Null 22164 } 22165 }() 22166 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22167 ctx = rctx // use context from middleware stack in children 22168 return obj.FirstName, nil 22169 }) 22170 if err != nil { 22171 ec.Error(ctx, err) 22172 return graphql.Null 22173 } 22174 if resTmp == nil { 22175 if !graphql.HasFieldError(ctx, fc) { 22176 ec.Errorf(ctx, "must not be null") 22177 } 22178 return graphql.Null 22179 } 22180 res := resTmp.(string) 22181 fc.Result = res 22182 return ec.marshalNString2string(ctx, field.Selections, res) 22183 } 22184 22185 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22186 fc = &graphql.FieldContext{ 22187 Object: "Commerce_Customer_PersonData", 22188 Field: field, 22189 IsMethod: false, 22190 IsResolver: false, 22191 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22192 return nil, errors.New("field of type String does not have child fields") 22193 }, 22194 } 22195 return fc, nil 22196 } 22197 22198 func (ec *executionContext) _Commerce_Customer_PersonData_lastName(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22199 fc, err := ec.fieldContext_Commerce_Customer_PersonData_lastName(ctx, field) 22200 if err != nil { 22201 return graphql.Null 22202 } 22203 ctx = graphql.WithFieldContext(ctx, fc) 22204 defer func() { 22205 if r := recover(); r != nil { 22206 ec.Error(ctx, ec.Recover(ctx, r)) 22207 ret = graphql.Null 22208 } 22209 }() 22210 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22211 ctx = rctx // use context from middleware stack in children 22212 return obj.LastName, nil 22213 }) 22214 if err != nil { 22215 ec.Error(ctx, err) 22216 return graphql.Null 22217 } 22218 if resTmp == nil { 22219 if !graphql.HasFieldError(ctx, fc) { 22220 ec.Errorf(ctx, "must not be null") 22221 } 22222 return graphql.Null 22223 } 22224 res := resTmp.(string) 22225 fc.Result = res 22226 return ec.marshalNString2string(ctx, field.Selections, res) 22227 } 22228 22229 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22230 fc = &graphql.FieldContext{ 22231 Object: "Commerce_Customer_PersonData", 22232 Field: field, 22233 IsMethod: false, 22234 IsResolver: false, 22235 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22236 return nil, errors.New("field of type String does not have child fields") 22237 }, 22238 } 22239 return fc, nil 22240 } 22241 22242 func (ec *executionContext) _Commerce_Customer_PersonData_middleName(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22243 fc, err := ec.fieldContext_Commerce_Customer_PersonData_middleName(ctx, field) 22244 if err != nil { 22245 return graphql.Null 22246 } 22247 ctx = graphql.WithFieldContext(ctx, fc) 22248 defer func() { 22249 if r := recover(); r != nil { 22250 ec.Error(ctx, ec.Recover(ctx, r)) 22251 ret = graphql.Null 22252 } 22253 }() 22254 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22255 ctx = rctx // use context from middleware stack in children 22256 return obj.MiddleName, nil 22257 }) 22258 if err != nil { 22259 ec.Error(ctx, err) 22260 return graphql.Null 22261 } 22262 if resTmp == nil { 22263 if !graphql.HasFieldError(ctx, fc) { 22264 ec.Errorf(ctx, "must not be null") 22265 } 22266 return graphql.Null 22267 } 22268 res := resTmp.(string) 22269 fc.Result = res 22270 return ec.marshalNString2string(ctx, field.Selections, res) 22271 } 22272 22273 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_middleName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22274 fc = &graphql.FieldContext{ 22275 Object: "Commerce_Customer_PersonData", 22276 Field: field, 22277 IsMethod: false, 22278 IsResolver: false, 22279 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22280 return nil, errors.New("field of type String does not have child fields") 22281 }, 22282 } 22283 return fc, nil 22284 } 22285 22286 func (ec *executionContext) _Commerce_Customer_PersonData_mainEmail(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22287 fc, err := ec.fieldContext_Commerce_Customer_PersonData_mainEmail(ctx, field) 22288 if err != nil { 22289 return graphql.Null 22290 } 22291 ctx = graphql.WithFieldContext(ctx, fc) 22292 defer func() { 22293 if r := recover(); r != nil { 22294 ec.Error(ctx, ec.Recover(ctx, r)) 22295 ret = graphql.Null 22296 } 22297 }() 22298 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22299 ctx = rctx // use context from middleware stack in children 22300 return obj.MainEmail, nil 22301 }) 22302 if err != nil { 22303 ec.Error(ctx, err) 22304 return graphql.Null 22305 } 22306 if resTmp == nil { 22307 if !graphql.HasFieldError(ctx, fc) { 22308 ec.Errorf(ctx, "must not be null") 22309 } 22310 return graphql.Null 22311 } 22312 res := resTmp.(string) 22313 fc.Result = res 22314 return ec.marshalNString2string(ctx, field.Selections, res) 22315 } 22316 22317 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_mainEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22318 fc = &graphql.FieldContext{ 22319 Object: "Commerce_Customer_PersonData", 22320 Field: field, 22321 IsMethod: false, 22322 IsResolver: false, 22323 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22324 return nil, errors.New("field of type String does not have child fields") 22325 }, 22326 } 22327 return fc, nil 22328 } 22329 22330 func (ec *executionContext) _Commerce_Customer_PersonData_prefix(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22331 fc, err := ec.fieldContext_Commerce_Customer_PersonData_prefix(ctx, field) 22332 if err != nil { 22333 return graphql.Null 22334 } 22335 ctx = graphql.WithFieldContext(ctx, fc) 22336 defer func() { 22337 if r := recover(); r != nil { 22338 ec.Error(ctx, ec.Recover(ctx, r)) 22339 ret = graphql.Null 22340 } 22341 }() 22342 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22343 ctx = rctx // use context from middleware stack in children 22344 return obj.Prefix, nil 22345 }) 22346 if err != nil { 22347 ec.Error(ctx, err) 22348 return graphql.Null 22349 } 22350 if resTmp == nil { 22351 if !graphql.HasFieldError(ctx, fc) { 22352 ec.Errorf(ctx, "must not be null") 22353 } 22354 return graphql.Null 22355 } 22356 res := resTmp.(string) 22357 fc.Result = res 22358 return ec.marshalNString2string(ctx, field.Selections, res) 22359 } 22360 22361 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_prefix(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22362 fc = &graphql.FieldContext{ 22363 Object: "Commerce_Customer_PersonData", 22364 Field: field, 22365 IsMethod: false, 22366 IsResolver: false, 22367 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22368 return nil, errors.New("field of type String does not have child fields") 22369 }, 22370 } 22371 return fc, nil 22372 } 22373 22374 func (ec *executionContext) _Commerce_Customer_PersonData_birthday(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22375 fc, err := ec.fieldContext_Commerce_Customer_PersonData_birthday(ctx, field) 22376 if err != nil { 22377 return graphql.Null 22378 } 22379 ctx = graphql.WithFieldContext(ctx, fc) 22380 defer func() { 22381 if r := recover(); r != nil { 22382 ec.Error(ctx, ec.Recover(ctx, r)) 22383 ret = graphql.Null 22384 } 22385 }() 22386 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22387 ctx = rctx // use context from middleware stack in children 22388 return obj.Birthday, nil 22389 }) 22390 if err != nil { 22391 ec.Error(ctx, err) 22392 return graphql.Null 22393 } 22394 if resTmp == nil { 22395 return graphql.Null 22396 } 22397 res := resTmp.(time.Time) 22398 fc.Result = res 22399 return ec.marshalODate2timeᚐTime(ctx, field.Selections, res) 22400 } 22401 22402 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_birthday(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22403 fc = &graphql.FieldContext{ 22404 Object: "Commerce_Customer_PersonData", 22405 Field: field, 22406 IsMethod: false, 22407 IsResolver: false, 22408 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22409 return nil, errors.New("field of type Date does not have child fields") 22410 }, 22411 } 22412 return fc, nil 22413 } 22414 22415 func (ec *executionContext) _Commerce_Customer_PersonData_nationality(ctx context.Context, field graphql.CollectedField, obj *domain5.PersonData) (ret graphql.Marshaler) { 22416 fc, err := ec.fieldContext_Commerce_Customer_PersonData_nationality(ctx, field) 22417 if err != nil { 22418 return graphql.Null 22419 } 22420 ctx = graphql.WithFieldContext(ctx, fc) 22421 defer func() { 22422 if r := recover(); r != nil { 22423 ec.Error(ctx, ec.Recover(ctx, r)) 22424 ret = graphql.Null 22425 } 22426 }() 22427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22428 ctx = rctx // use context from middleware stack in children 22429 return obj.Nationality, nil 22430 }) 22431 if err != nil { 22432 ec.Error(ctx, err) 22433 return graphql.Null 22434 } 22435 if resTmp == nil { 22436 if !graphql.HasFieldError(ctx, fc) { 22437 ec.Errorf(ctx, "must not be null") 22438 } 22439 return graphql.Null 22440 } 22441 res := resTmp.(string) 22442 fc.Result = res 22443 return ec.marshalNString2string(ctx, field.Selections, res) 22444 } 22445 22446 func (ec *executionContext) fieldContext_Commerce_Customer_PersonData_nationality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22447 fc = &graphql.FieldContext{ 22448 Object: "Commerce_Customer_PersonData", 22449 Field: field, 22450 IsMethod: false, 22451 IsResolver: false, 22452 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22453 return nil, errors.New("field of type String does not have child fields") 22454 }, 22455 } 22456 return fc, nil 22457 } 22458 22459 func (ec *executionContext) _Commerce_Customer_Result_id(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22460 fc, err := ec.fieldContext_Commerce_Customer_Result_id(ctx, field) 22461 if err != nil { 22462 return graphql.Null 22463 } 22464 ctx = graphql.WithFieldContext(ctx, fc) 22465 defer func() { 22466 if r := recover(); r != nil { 22467 ec.Error(ctx, ec.Recover(ctx, r)) 22468 ret = graphql.Null 22469 } 22470 }() 22471 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22472 ctx = rctx // use context from middleware stack in children 22473 return obj.ID, nil 22474 }) 22475 if err != nil { 22476 ec.Error(ctx, err) 22477 return graphql.Null 22478 } 22479 if resTmp == nil { 22480 if !graphql.HasFieldError(ctx, fc) { 22481 ec.Errorf(ctx, "must not be null") 22482 } 22483 return graphql.Null 22484 } 22485 res := resTmp.(string) 22486 fc.Result = res 22487 return ec.marshalNString2string(ctx, field.Selections, res) 22488 } 22489 22490 func (ec *executionContext) fieldContext_Commerce_Customer_Result_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22491 fc = &graphql.FieldContext{ 22492 Object: "Commerce_Customer_Result", 22493 Field: field, 22494 IsMethod: false, 22495 IsResolver: false, 22496 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22497 return nil, errors.New("field of type String does not have child fields") 22498 }, 22499 } 22500 return fc, nil 22501 } 22502 22503 func (ec *executionContext) _Commerce_Customer_Result_personalData(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22504 fc, err := ec.fieldContext_Commerce_Customer_Result_personalData(ctx, field) 22505 if err != nil { 22506 return graphql.Null 22507 } 22508 ctx = graphql.WithFieldContext(ctx, fc) 22509 defer func() { 22510 if r := recover(); r != nil { 22511 ec.Error(ctx, ec.Recover(ctx, r)) 22512 ret = graphql.Null 22513 } 22514 }() 22515 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22516 ctx = rctx // use context from middleware stack in children 22517 return obj.PersonalData, nil 22518 }) 22519 if err != nil { 22520 ec.Error(ctx, err) 22521 return graphql.Null 22522 } 22523 if resTmp == nil { 22524 if !graphql.HasFieldError(ctx, fc) { 22525 ec.Errorf(ctx, "must not be null") 22526 } 22527 return graphql.Null 22528 } 22529 res := resTmp.(domain5.PersonData) 22530 fc.Result = res 22531 return ec.marshalNCommerce_Customer_PersonData2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐPersonData(ctx, field.Selections, res) 22532 } 22533 22534 func (ec *executionContext) fieldContext_Commerce_Customer_Result_personalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22535 fc = &graphql.FieldContext{ 22536 Object: "Commerce_Customer_Result", 22537 Field: field, 22538 IsMethod: false, 22539 IsResolver: false, 22540 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22541 switch field.Name { 22542 case "gender": 22543 return ec.fieldContext_Commerce_Customer_PersonData_gender(ctx, field) 22544 case "firstName": 22545 return ec.fieldContext_Commerce_Customer_PersonData_firstName(ctx, field) 22546 case "lastName": 22547 return ec.fieldContext_Commerce_Customer_PersonData_lastName(ctx, field) 22548 case "middleName": 22549 return ec.fieldContext_Commerce_Customer_PersonData_middleName(ctx, field) 22550 case "mainEmail": 22551 return ec.fieldContext_Commerce_Customer_PersonData_mainEmail(ctx, field) 22552 case "prefix": 22553 return ec.fieldContext_Commerce_Customer_PersonData_prefix(ctx, field) 22554 case "birthday": 22555 return ec.fieldContext_Commerce_Customer_PersonData_birthday(ctx, field) 22556 case "nationality": 22557 return ec.fieldContext_Commerce_Customer_PersonData_nationality(ctx, field) 22558 } 22559 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_PersonData", field.Name) 22560 }, 22561 } 22562 return fc, nil 22563 } 22564 22565 func (ec *executionContext) _Commerce_Customer_Result_getAddress(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22566 fc, err := ec.fieldContext_Commerce_Customer_Result_getAddress(ctx, field) 22567 if err != nil { 22568 return graphql.Null 22569 } 22570 ctx = graphql.WithFieldContext(ctx, fc) 22571 defer func() { 22572 if r := recover(); r != nil { 22573 ec.Error(ctx, ec.Recover(ctx, r)) 22574 ret = graphql.Null 22575 } 22576 }() 22577 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22578 ctx = rctx // use context from middleware stack in children 22579 return obj.GetAddress(fc.Args["id"].(string)) 22580 }) 22581 if err != nil { 22582 ec.Error(ctx, err) 22583 return graphql.Null 22584 } 22585 if resTmp == nil { 22586 return graphql.Null 22587 } 22588 res := resTmp.(*domain5.Address) 22589 fc.Result = res 22590 return ec.marshalOCommerce_Customer_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx, field.Selections, res) 22591 } 22592 22593 func (ec *executionContext) fieldContext_Commerce_Customer_Result_getAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22594 fc = &graphql.FieldContext{ 22595 Object: "Commerce_Customer_Result", 22596 Field: field, 22597 IsMethod: true, 22598 IsResolver: false, 22599 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22600 switch field.Name { 22601 case "id": 22602 return ec.fieldContext_Commerce_Customer_Address_id(ctx, field) 22603 case "additionalAddressLines": 22604 return ec.fieldContext_Commerce_Customer_Address_additionalAddressLines(ctx, field) 22605 case "city": 22606 return ec.fieldContext_Commerce_Customer_Address_city(ctx, field) 22607 case "company": 22608 return ec.fieldContext_Commerce_Customer_Address_company(ctx, field) 22609 case "countryCode": 22610 return ec.fieldContext_Commerce_Customer_Address_countryCode(ctx, field) 22611 case "defaultBilling": 22612 return ec.fieldContext_Commerce_Customer_Address_defaultBilling(ctx, field) 22613 case "defaultShipping": 22614 return ec.fieldContext_Commerce_Customer_Address_defaultShipping(ctx, field) 22615 case "firstName": 22616 return ec.fieldContext_Commerce_Customer_Address_firstName(ctx, field) 22617 case "lastName": 22618 return ec.fieldContext_Commerce_Customer_Address_lastName(ctx, field) 22619 case "postCode": 22620 return ec.fieldContext_Commerce_Customer_Address_postCode(ctx, field) 22621 case "prefix": 22622 return ec.fieldContext_Commerce_Customer_Address_prefix(ctx, field) 22623 case "regionCode": 22624 return ec.fieldContext_Commerce_Customer_Address_regionCode(ctx, field) 22625 case "street": 22626 return ec.fieldContext_Commerce_Customer_Address_street(ctx, field) 22627 case "streetNumber": 22628 return ec.fieldContext_Commerce_Customer_Address_streetNumber(ctx, field) 22629 case "state": 22630 return ec.fieldContext_Commerce_Customer_Address_state(ctx, field) 22631 case "telephone": 22632 return ec.fieldContext_Commerce_Customer_Address_telephone(ctx, field) 22633 case "email": 22634 return ec.fieldContext_Commerce_Customer_Address_email(ctx, field) 22635 } 22636 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Address", field.Name) 22637 }, 22638 } 22639 defer func() { 22640 if r := recover(); r != nil { 22641 err = ec.Recover(ctx, r) 22642 ec.Error(ctx, err) 22643 } 22644 }() 22645 ctx = graphql.WithFieldContext(ctx, fc) 22646 if fc.Args, err = ec.field_Commerce_Customer_Result_getAddress_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 22647 ec.Error(ctx, err) 22648 return fc, err 22649 } 22650 return fc, nil 22651 } 22652 22653 func (ec *executionContext) _Commerce_Customer_Result_addresses(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22654 fc, err := ec.fieldContext_Commerce_Customer_Result_addresses(ctx, field) 22655 if err != nil { 22656 return graphql.Null 22657 } 22658 ctx = graphql.WithFieldContext(ctx, fc) 22659 defer func() { 22660 if r := recover(); r != nil { 22661 ec.Error(ctx, ec.Recover(ctx, r)) 22662 ret = graphql.Null 22663 } 22664 }() 22665 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22666 ctx = rctx // use context from middleware stack in children 22667 return obj.Addresses, nil 22668 }) 22669 if err != nil { 22670 ec.Error(ctx, err) 22671 return graphql.Null 22672 } 22673 if resTmp == nil { 22674 return graphql.Null 22675 } 22676 res := resTmp.([]domain5.Address) 22677 fc.Result = res 22678 return ec.marshalOCommerce_Customer_Address2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddressᚄ(ctx, field.Selections, res) 22679 } 22680 22681 func (ec *executionContext) fieldContext_Commerce_Customer_Result_addresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22682 fc = &graphql.FieldContext{ 22683 Object: "Commerce_Customer_Result", 22684 Field: field, 22685 IsMethod: false, 22686 IsResolver: false, 22687 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22688 switch field.Name { 22689 case "id": 22690 return ec.fieldContext_Commerce_Customer_Address_id(ctx, field) 22691 case "additionalAddressLines": 22692 return ec.fieldContext_Commerce_Customer_Address_additionalAddressLines(ctx, field) 22693 case "city": 22694 return ec.fieldContext_Commerce_Customer_Address_city(ctx, field) 22695 case "company": 22696 return ec.fieldContext_Commerce_Customer_Address_company(ctx, field) 22697 case "countryCode": 22698 return ec.fieldContext_Commerce_Customer_Address_countryCode(ctx, field) 22699 case "defaultBilling": 22700 return ec.fieldContext_Commerce_Customer_Address_defaultBilling(ctx, field) 22701 case "defaultShipping": 22702 return ec.fieldContext_Commerce_Customer_Address_defaultShipping(ctx, field) 22703 case "firstName": 22704 return ec.fieldContext_Commerce_Customer_Address_firstName(ctx, field) 22705 case "lastName": 22706 return ec.fieldContext_Commerce_Customer_Address_lastName(ctx, field) 22707 case "postCode": 22708 return ec.fieldContext_Commerce_Customer_Address_postCode(ctx, field) 22709 case "prefix": 22710 return ec.fieldContext_Commerce_Customer_Address_prefix(ctx, field) 22711 case "regionCode": 22712 return ec.fieldContext_Commerce_Customer_Address_regionCode(ctx, field) 22713 case "street": 22714 return ec.fieldContext_Commerce_Customer_Address_street(ctx, field) 22715 case "streetNumber": 22716 return ec.fieldContext_Commerce_Customer_Address_streetNumber(ctx, field) 22717 case "state": 22718 return ec.fieldContext_Commerce_Customer_Address_state(ctx, field) 22719 case "telephone": 22720 return ec.fieldContext_Commerce_Customer_Address_telephone(ctx, field) 22721 case "email": 22722 return ec.fieldContext_Commerce_Customer_Address_email(ctx, field) 22723 } 22724 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Address", field.Name) 22725 }, 22726 } 22727 return fc, nil 22728 } 22729 22730 func (ec *executionContext) _Commerce_Customer_Result_defaultShippingAddress(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22731 fc, err := ec.fieldContext_Commerce_Customer_Result_defaultShippingAddress(ctx, field) 22732 if err != nil { 22733 return graphql.Null 22734 } 22735 ctx = graphql.WithFieldContext(ctx, fc) 22736 defer func() { 22737 if r := recover(); r != nil { 22738 ec.Error(ctx, ec.Recover(ctx, r)) 22739 ret = graphql.Null 22740 } 22741 }() 22742 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22743 ctx = rctx // use context from middleware stack in children 22744 return obj.DefaultShippingAddress, nil 22745 }) 22746 if err != nil { 22747 ec.Error(ctx, err) 22748 return graphql.Null 22749 } 22750 if resTmp == nil { 22751 return graphql.Null 22752 } 22753 res := resTmp.(domain5.Address) 22754 fc.Result = res 22755 return ec.marshalOCommerce_Customer_Address2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx, field.Selections, res) 22756 } 22757 22758 func (ec *executionContext) fieldContext_Commerce_Customer_Result_defaultShippingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22759 fc = &graphql.FieldContext{ 22760 Object: "Commerce_Customer_Result", 22761 Field: field, 22762 IsMethod: false, 22763 IsResolver: false, 22764 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22765 switch field.Name { 22766 case "id": 22767 return ec.fieldContext_Commerce_Customer_Address_id(ctx, field) 22768 case "additionalAddressLines": 22769 return ec.fieldContext_Commerce_Customer_Address_additionalAddressLines(ctx, field) 22770 case "city": 22771 return ec.fieldContext_Commerce_Customer_Address_city(ctx, field) 22772 case "company": 22773 return ec.fieldContext_Commerce_Customer_Address_company(ctx, field) 22774 case "countryCode": 22775 return ec.fieldContext_Commerce_Customer_Address_countryCode(ctx, field) 22776 case "defaultBilling": 22777 return ec.fieldContext_Commerce_Customer_Address_defaultBilling(ctx, field) 22778 case "defaultShipping": 22779 return ec.fieldContext_Commerce_Customer_Address_defaultShipping(ctx, field) 22780 case "firstName": 22781 return ec.fieldContext_Commerce_Customer_Address_firstName(ctx, field) 22782 case "lastName": 22783 return ec.fieldContext_Commerce_Customer_Address_lastName(ctx, field) 22784 case "postCode": 22785 return ec.fieldContext_Commerce_Customer_Address_postCode(ctx, field) 22786 case "prefix": 22787 return ec.fieldContext_Commerce_Customer_Address_prefix(ctx, field) 22788 case "regionCode": 22789 return ec.fieldContext_Commerce_Customer_Address_regionCode(ctx, field) 22790 case "street": 22791 return ec.fieldContext_Commerce_Customer_Address_street(ctx, field) 22792 case "streetNumber": 22793 return ec.fieldContext_Commerce_Customer_Address_streetNumber(ctx, field) 22794 case "state": 22795 return ec.fieldContext_Commerce_Customer_Address_state(ctx, field) 22796 case "telephone": 22797 return ec.fieldContext_Commerce_Customer_Address_telephone(ctx, field) 22798 case "email": 22799 return ec.fieldContext_Commerce_Customer_Address_email(ctx, field) 22800 } 22801 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Address", field.Name) 22802 }, 22803 } 22804 return fc, nil 22805 } 22806 22807 func (ec *executionContext) _Commerce_Customer_Result_defaultBillingAddress(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerResult) (ret graphql.Marshaler) { 22808 fc, err := ec.fieldContext_Commerce_Customer_Result_defaultBillingAddress(ctx, field) 22809 if err != nil { 22810 return graphql.Null 22811 } 22812 ctx = graphql.WithFieldContext(ctx, fc) 22813 defer func() { 22814 if r := recover(); r != nil { 22815 ec.Error(ctx, ec.Recover(ctx, r)) 22816 ret = graphql.Null 22817 } 22818 }() 22819 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22820 ctx = rctx // use context from middleware stack in children 22821 return obj.DefaultBillingAddress, nil 22822 }) 22823 if err != nil { 22824 ec.Error(ctx, err) 22825 return graphql.Null 22826 } 22827 if resTmp == nil { 22828 return graphql.Null 22829 } 22830 res := resTmp.(domain5.Address) 22831 fc.Result = res 22832 return ec.marshalOCommerce_Customer_Address2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx, field.Selections, res) 22833 } 22834 22835 func (ec *executionContext) fieldContext_Commerce_Customer_Result_defaultBillingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22836 fc = &graphql.FieldContext{ 22837 Object: "Commerce_Customer_Result", 22838 Field: field, 22839 IsMethod: false, 22840 IsResolver: false, 22841 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22842 switch field.Name { 22843 case "id": 22844 return ec.fieldContext_Commerce_Customer_Address_id(ctx, field) 22845 case "additionalAddressLines": 22846 return ec.fieldContext_Commerce_Customer_Address_additionalAddressLines(ctx, field) 22847 case "city": 22848 return ec.fieldContext_Commerce_Customer_Address_city(ctx, field) 22849 case "company": 22850 return ec.fieldContext_Commerce_Customer_Address_company(ctx, field) 22851 case "countryCode": 22852 return ec.fieldContext_Commerce_Customer_Address_countryCode(ctx, field) 22853 case "defaultBilling": 22854 return ec.fieldContext_Commerce_Customer_Address_defaultBilling(ctx, field) 22855 case "defaultShipping": 22856 return ec.fieldContext_Commerce_Customer_Address_defaultShipping(ctx, field) 22857 case "firstName": 22858 return ec.fieldContext_Commerce_Customer_Address_firstName(ctx, field) 22859 case "lastName": 22860 return ec.fieldContext_Commerce_Customer_Address_lastName(ctx, field) 22861 case "postCode": 22862 return ec.fieldContext_Commerce_Customer_Address_postCode(ctx, field) 22863 case "prefix": 22864 return ec.fieldContext_Commerce_Customer_Address_prefix(ctx, field) 22865 case "regionCode": 22866 return ec.fieldContext_Commerce_Customer_Address_regionCode(ctx, field) 22867 case "street": 22868 return ec.fieldContext_Commerce_Customer_Address_street(ctx, field) 22869 case "streetNumber": 22870 return ec.fieldContext_Commerce_Customer_Address_streetNumber(ctx, field) 22871 case "state": 22872 return ec.fieldContext_Commerce_Customer_Address_state(ctx, field) 22873 case "telephone": 22874 return ec.fieldContext_Commerce_Customer_Address_telephone(ctx, field) 22875 case "email": 22876 return ec.fieldContext_Commerce_Customer_Address_email(ctx, field) 22877 } 22878 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Address", field.Name) 22879 }, 22880 } 22881 return fc, nil 22882 } 22883 22884 func (ec *executionContext) _Commerce_Customer_Status_Result_isLoggedIn(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerStatusResult) (ret graphql.Marshaler) { 22885 fc, err := ec.fieldContext_Commerce_Customer_Status_Result_isLoggedIn(ctx, field) 22886 if err != nil { 22887 return graphql.Null 22888 } 22889 ctx = graphql.WithFieldContext(ctx, fc) 22890 defer func() { 22891 if r := recover(); r != nil { 22892 ec.Error(ctx, ec.Recover(ctx, r)) 22893 ret = graphql.Null 22894 } 22895 }() 22896 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22897 ctx = rctx // use context from middleware stack in children 22898 return obj.IsLoggedIn, nil 22899 }) 22900 if err != nil { 22901 ec.Error(ctx, err) 22902 return graphql.Null 22903 } 22904 if resTmp == nil { 22905 if !graphql.HasFieldError(ctx, fc) { 22906 ec.Errorf(ctx, "must not be null") 22907 } 22908 return graphql.Null 22909 } 22910 res := resTmp.(bool) 22911 fc.Result = res 22912 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 22913 } 22914 22915 func (ec *executionContext) fieldContext_Commerce_Customer_Status_Result_isLoggedIn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22916 fc = &graphql.FieldContext{ 22917 Object: "Commerce_Customer_Status_Result", 22918 Field: field, 22919 IsMethod: false, 22920 IsResolver: false, 22921 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22922 return nil, errors.New("field of type Boolean does not have child fields") 22923 }, 22924 } 22925 return fc, nil 22926 } 22927 22928 func (ec *executionContext) _Commerce_Customer_Status_Result_userID(ctx context.Context, field graphql.CollectedField, obj *dtocustomer.CustomerStatusResult) (ret graphql.Marshaler) { 22929 fc, err := ec.fieldContext_Commerce_Customer_Status_Result_userID(ctx, field) 22930 if err != nil { 22931 return graphql.Null 22932 } 22933 ctx = graphql.WithFieldContext(ctx, fc) 22934 defer func() { 22935 if r := recover(); r != nil { 22936 ec.Error(ctx, ec.Recover(ctx, r)) 22937 ret = graphql.Null 22938 } 22939 }() 22940 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22941 ctx = rctx // use context from middleware stack in children 22942 return obj.UserID, nil 22943 }) 22944 if err != nil { 22945 ec.Error(ctx, err) 22946 return graphql.Null 22947 } 22948 if resTmp == nil { 22949 if !graphql.HasFieldError(ctx, fc) { 22950 ec.Errorf(ctx, "must not be null") 22951 } 22952 return graphql.Null 22953 } 22954 res := resTmp.(string) 22955 fc.Result = res 22956 return ec.marshalNString2string(ctx, field.Selections, res) 22957 } 22958 22959 func (ec *executionContext) fieldContext_Commerce_Customer_Status_Result_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 22960 fc = &graphql.FieldContext{ 22961 Object: "Commerce_Customer_Status_Result", 22962 Field: field, 22963 IsMethod: false, 22964 IsResolver: false, 22965 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 22966 return nil, errors.New("field of type String does not have child fields") 22967 }, 22968 } 22969 return fc, nil 22970 } 22971 22972 func (ec *executionContext) _Commerce_Price_amount(ctx context.Context, field graphql.CollectedField, obj *domain.Price) (ret graphql.Marshaler) { 22973 fc, err := ec.fieldContext_Commerce_Price_amount(ctx, field) 22974 if err != nil { 22975 return graphql.Null 22976 } 22977 ctx = graphql.WithFieldContext(ctx, fc) 22978 defer func() { 22979 if r := recover(); r != nil { 22980 ec.Error(ctx, ec.Recover(ctx, r)) 22981 ret = graphql.Null 22982 } 22983 }() 22984 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22985 ctx = rctx // use context from middleware stack in children 22986 return obj.FloatAmount(), nil 22987 }) 22988 if err != nil { 22989 ec.Error(ctx, err) 22990 return graphql.Null 22991 } 22992 if resTmp == nil { 22993 return graphql.Null 22994 } 22995 res := resTmp.(float64) 22996 fc.Result = res 22997 return ec.marshalOFloat2float64(ctx, field.Selections, res) 22998 } 22999 23000 func (ec *executionContext) fieldContext_Commerce_Price_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23001 fc = &graphql.FieldContext{ 23002 Object: "Commerce_Price", 23003 Field: field, 23004 IsMethod: true, 23005 IsResolver: false, 23006 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23007 return nil, errors.New("field of type Float does not have child fields") 23008 }, 23009 } 23010 return fc, nil 23011 } 23012 23013 func (ec *executionContext) _Commerce_Price_currency(ctx context.Context, field graphql.CollectedField, obj *domain.Price) (ret graphql.Marshaler) { 23014 fc, err := ec.fieldContext_Commerce_Price_currency(ctx, field) 23015 if err != nil { 23016 return graphql.Null 23017 } 23018 ctx = graphql.WithFieldContext(ctx, fc) 23019 defer func() { 23020 if r := recover(); r != nil { 23021 ec.Error(ctx, ec.Recover(ctx, r)) 23022 ret = graphql.Null 23023 } 23024 }() 23025 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23026 ctx = rctx // use context from middleware stack in children 23027 return obj.Currency(), nil 23028 }) 23029 if err != nil { 23030 ec.Error(ctx, err) 23031 return graphql.Null 23032 } 23033 if resTmp == nil { 23034 if !graphql.HasFieldError(ctx, fc) { 23035 ec.Errorf(ctx, "must not be null") 23036 } 23037 return graphql.Null 23038 } 23039 res := resTmp.(string) 23040 fc.Result = res 23041 return ec.marshalNString2string(ctx, field.Selections, res) 23042 } 23043 23044 func (ec *executionContext) fieldContext_Commerce_Price_currency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23045 fc = &graphql.FieldContext{ 23046 Object: "Commerce_Price", 23047 Field: field, 23048 IsMethod: true, 23049 IsResolver: false, 23050 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23051 return nil, errors.New("field of type String does not have child fields") 23052 }, 23053 } 23054 return fc, nil 23055 } 23056 23057 func (ec *executionContext) _Commerce_Price_Charge_price(ctx context.Context, field graphql.CollectedField, obj *domain.Charge) (ret graphql.Marshaler) { 23058 fc, err := ec.fieldContext_Commerce_Price_Charge_price(ctx, field) 23059 if err != nil { 23060 return graphql.Null 23061 } 23062 ctx = graphql.WithFieldContext(ctx, fc) 23063 defer func() { 23064 if r := recover(); r != nil { 23065 ec.Error(ctx, ec.Recover(ctx, r)) 23066 ret = graphql.Null 23067 } 23068 }() 23069 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23070 ctx = rctx // use context from middleware stack in children 23071 return obj.Price, nil 23072 }) 23073 if err != nil { 23074 ec.Error(ctx, err) 23075 return graphql.Null 23076 } 23077 if resTmp == nil { 23078 if !graphql.HasFieldError(ctx, fc) { 23079 ec.Errorf(ctx, "must not be null") 23080 } 23081 return graphql.Null 23082 } 23083 res := resTmp.(domain.Price) 23084 fc.Result = res 23085 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 23086 } 23087 23088 func (ec *executionContext) fieldContext_Commerce_Price_Charge_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23089 fc = &graphql.FieldContext{ 23090 Object: "Commerce_Price_Charge", 23091 Field: field, 23092 IsMethod: false, 23093 IsResolver: false, 23094 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23095 switch field.Name { 23096 case "amount": 23097 return ec.fieldContext_Commerce_Price_amount(ctx, field) 23098 case "currency": 23099 return ec.fieldContext_Commerce_Price_currency(ctx, field) 23100 } 23101 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 23102 }, 23103 } 23104 return fc, nil 23105 } 23106 23107 func (ec *executionContext) _Commerce_Price_Charge_value(ctx context.Context, field graphql.CollectedField, obj *domain.Charge) (ret graphql.Marshaler) { 23108 fc, err := ec.fieldContext_Commerce_Price_Charge_value(ctx, field) 23109 if err != nil { 23110 return graphql.Null 23111 } 23112 ctx = graphql.WithFieldContext(ctx, fc) 23113 defer func() { 23114 if r := recover(); r != nil { 23115 ec.Error(ctx, ec.Recover(ctx, r)) 23116 ret = graphql.Null 23117 } 23118 }() 23119 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23120 ctx = rctx // use context from middleware stack in children 23121 return obj.Value, nil 23122 }) 23123 if err != nil { 23124 ec.Error(ctx, err) 23125 return graphql.Null 23126 } 23127 if resTmp == nil { 23128 if !graphql.HasFieldError(ctx, fc) { 23129 ec.Errorf(ctx, "must not be null") 23130 } 23131 return graphql.Null 23132 } 23133 res := resTmp.(domain.Price) 23134 fc.Result = res 23135 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 23136 } 23137 23138 func (ec *executionContext) fieldContext_Commerce_Price_Charge_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23139 fc = &graphql.FieldContext{ 23140 Object: "Commerce_Price_Charge", 23141 Field: field, 23142 IsMethod: false, 23143 IsResolver: false, 23144 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23145 switch field.Name { 23146 case "amount": 23147 return ec.fieldContext_Commerce_Price_amount(ctx, field) 23148 case "currency": 23149 return ec.fieldContext_Commerce_Price_currency(ctx, field) 23150 } 23151 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 23152 }, 23153 } 23154 return fc, nil 23155 } 23156 23157 func (ec *executionContext) _Commerce_Price_Charge_type(ctx context.Context, field graphql.CollectedField, obj *domain.Charge) (ret graphql.Marshaler) { 23158 fc, err := ec.fieldContext_Commerce_Price_Charge_type(ctx, field) 23159 if err != nil { 23160 return graphql.Null 23161 } 23162 ctx = graphql.WithFieldContext(ctx, fc) 23163 defer func() { 23164 if r := recover(); r != nil { 23165 ec.Error(ctx, ec.Recover(ctx, r)) 23166 ret = graphql.Null 23167 } 23168 }() 23169 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23170 ctx = rctx // use context from middleware stack in children 23171 return obj.Type, nil 23172 }) 23173 if err != nil { 23174 ec.Error(ctx, err) 23175 return graphql.Null 23176 } 23177 if resTmp == nil { 23178 if !graphql.HasFieldError(ctx, fc) { 23179 ec.Errorf(ctx, "must not be null") 23180 } 23181 return graphql.Null 23182 } 23183 res := resTmp.(string) 23184 fc.Result = res 23185 return ec.marshalNString2string(ctx, field.Selections, res) 23186 } 23187 23188 func (ec *executionContext) fieldContext_Commerce_Price_Charge_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23189 fc = &graphql.FieldContext{ 23190 Object: "Commerce_Price_Charge", 23191 Field: field, 23192 IsMethod: false, 23193 IsResolver: false, 23194 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23195 return nil, errors.New("field of type String does not have child fields") 23196 }, 23197 } 23198 return fc, nil 23199 } 23200 23201 func (ec *executionContext) _Commerce_Price_Charge_reference(ctx context.Context, field graphql.CollectedField, obj *domain.Charge) (ret graphql.Marshaler) { 23202 fc, err := ec.fieldContext_Commerce_Price_Charge_reference(ctx, field) 23203 if err != nil { 23204 return graphql.Null 23205 } 23206 ctx = graphql.WithFieldContext(ctx, fc) 23207 defer func() { 23208 if r := recover(); r != nil { 23209 ec.Error(ctx, ec.Recover(ctx, r)) 23210 ret = graphql.Null 23211 } 23212 }() 23213 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23214 ctx = rctx // use context from middleware stack in children 23215 return obj.Reference, nil 23216 }) 23217 if err != nil { 23218 ec.Error(ctx, err) 23219 return graphql.Null 23220 } 23221 if resTmp == nil { 23222 if !graphql.HasFieldError(ctx, fc) { 23223 ec.Errorf(ctx, "must not be null") 23224 } 23225 return graphql.Null 23226 } 23227 res := resTmp.(string) 23228 fc.Result = res 23229 return ec.marshalNString2string(ctx, field.Selections, res) 23230 } 23231 23232 func (ec *executionContext) fieldContext_Commerce_Price_Charge_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23233 fc = &graphql.FieldContext{ 23234 Object: "Commerce_Price_Charge", 23235 Field: field, 23236 IsMethod: false, 23237 IsResolver: false, 23238 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23239 return nil, errors.New("field of type String does not have child fields") 23240 }, 23241 } 23242 return fc, nil 23243 } 23244 23245 func (ec *executionContext) _Commerce_Price_ChargeQualifier_type(ctx context.Context, field graphql.CollectedField, obj *domain.ChargeQualifier) (ret graphql.Marshaler) { 23246 fc, err := ec.fieldContext_Commerce_Price_ChargeQualifier_type(ctx, field) 23247 if err != nil { 23248 return graphql.Null 23249 } 23250 ctx = graphql.WithFieldContext(ctx, fc) 23251 defer func() { 23252 if r := recover(); r != nil { 23253 ec.Error(ctx, ec.Recover(ctx, r)) 23254 ret = graphql.Null 23255 } 23256 }() 23257 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23258 ctx = rctx // use context from middleware stack in children 23259 return obj.Type, nil 23260 }) 23261 if err != nil { 23262 ec.Error(ctx, err) 23263 return graphql.Null 23264 } 23265 if resTmp == nil { 23266 if !graphql.HasFieldError(ctx, fc) { 23267 ec.Errorf(ctx, "must not be null") 23268 } 23269 return graphql.Null 23270 } 23271 res := resTmp.(string) 23272 fc.Result = res 23273 return ec.marshalNString2string(ctx, field.Selections, res) 23274 } 23275 23276 func (ec *executionContext) fieldContext_Commerce_Price_ChargeQualifier_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23277 fc = &graphql.FieldContext{ 23278 Object: "Commerce_Price_ChargeQualifier", 23279 Field: field, 23280 IsMethod: false, 23281 IsResolver: false, 23282 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23283 return nil, errors.New("field of type String does not have child fields") 23284 }, 23285 } 23286 return fc, nil 23287 } 23288 23289 func (ec *executionContext) _Commerce_Price_ChargeQualifier_reference(ctx context.Context, field graphql.CollectedField, obj *domain.ChargeQualifier) (ret graphql.Marshaler) { 23290 fc, err := ec.fieldContext_Commerce_Price_ChargeQualifier_reference(ctx, field) 23291 if err != nil { 23292 return graphql.Null 23293 } 23294 ctx = graphql.WithFieldContext(ctx, fc) 23295 defer func() { 23296 if r := recover(); r != nil { 23297 ec.Error(ctx, ec.Recover(ctx, r)) 23298 ret = graphql.Null 23299 } 23300 }() 23301 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23302 ctx = rctx // use context from middleware stack in children 23303 return obj.Reference, nil 23304 }) 23305 if err != nil { 23306 ec.Error(ctx, err) 23307 return graphql.Null 23308 } 23309 if resTmp == nil { 23310 if !graphql.HasFieldError(ctx, fc) { 23311 ec.Errorf(ctx, "must not be null") 23312 } 23313 return graphql.Null 23314 } 23315 res := resTmp.(string) 23316 fc.Result = res 23317 return ec.marshalNString2string(ctx, field.Selections, res) 23318 } 23319 23320 func (ec *executionContext) fieldContext_Commerce_Price_ChargeQualifier_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23321 fc = &graphql.FieldContext{ 23322 Object: "Commerce_Price_ChargeQualifier", 23323 Field: field, 23324 IsMethod: false, 23325 IsResolver: false, 23326 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23327 return nil, errors.New("field of type String does not have child fields") 23328 }, 23329 } 23330 return fc, nil 23331 } 23332 23333 func (ec *executionContext) _Commerce_Price_Charges_items(ctx context.Context, field graphql.CollectedField, obj *domain.Charges) (ret graphql.Marshaler) { 23334 fc, err := ec.fieldContext_Commerce_Price_Charges_items(ctx, field) 23335 if err != nil { 23336 return graphql.Null 23337 } 23338 ctx = graphql.WithFieldContext(ctx, fc) 23339 defer func() { 23340 if r := recover(); r != nil { 23341 ec.Error(ctx, ec.Recover(ctx, r)) 23342 ret = graphql.Null 23343 } 23344 }() 23345 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23346 ctx = rctx // use context from middleware stack in children 23347 return obj.Items(), nil 23348 }) 23349 if err != nil { 23350 ec.Error(ctx, err) 23351 return graphql.Null 23352 } 23353 if resTmp == nil { 23354 return graphql.Null 23355 } 23356 res := resTmp.([]domain.Charge) 23357 fc.Result = res 23358 return ec.marshalOCommerce_Price_Charge2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeᚄ(ctx, field.Selections, res) 23359 } 23360 23361 func (ec *executionContext) fieldContext_Commerce_Price_Charges_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23362 fc = &graphql.FieldContext{ 23363 Object: "Commerce_Price_Charges", 23364 Field: field, 23365 IsMethod: true, 23366 IsResolver: false, 23367 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23368 switch field.Name { 23369 case "price": 23370 return ec.fieldContext_Commerce_Price_Charge_price(ctx, field) 23371 case "value": 23372 return ec.fieldContext_Commerce_Price_Charge_value(ctx, field) 23373 case "type": 23374 return ec.fieldContext_Commerce_Price_Charge_type(ctx, field) 23375 case "reference": 23376 return ec.fieldContext_Commerce_Price_Charge_reference(ctx, field) 23377 } 23378 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price_Charge", field.Name) 23379 }, 23380 } 23381 return fc, nil 23382 } 23383 23384 func (ec *executionContext) _Commerce_Price_Charges_hasType(ctx context.Context, field graphql.CollectedField, obj *domain.Charges) (ret graphql.Marshaler) { 23385 fc, err := ec.fieldContext_Commerce_Price_Charges_hasType(ctx, field) 23386 if err != nil { 23387 return graphql.Null 23388 } 23389 ctx = graphql.WithFieldContext(ctx, fc) 23390 defer func() { 23391 if r := recover(); r != nil { 23392 ec.Error(ctx, ec.Recover(ctx, r)) 23393 ret = graphql.Null 23394 } 23395 }() 23396 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23397 ctx = rctx // use context from middleware stack in children 23398 return obj.HasType(fc.Args["ctype"].(string)), nil 23399 }) 23400 if err != nil { 23401 ec.Error(ctx, err) 23402 return graphql.Null 23403 } 23404 if resTmp == nil { 23405 return graphql.Null 23406 } 23407 res := resTmp.(bool) 23408 fc.Result = res 23409 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 23410 } 23411 23412 func (ec *executionContext) fieldContext_Commerce_Price_Charges_hasType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23413 fc = &graphql.FieldContext{ 23414 Object: "Commerce_Price_Charges", 23415 Field: field, 23416 IsMethod: true, 23417 IsResolver: false, 23418 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23419 return nil, errors.New("field of type Boolean does not have child fields") 23420 }, 23421 } 23422 defer func() { 23423 if r := recover(); r != nil { 23424 err = ec.Recover(ctx, r) 23425 ec.Error(ctx, err) 23426 } 23427 }() 23428 ctx = graphql.WithFieldContext(ctx, fc) 23429 if fc.Args, err = ec.field_Commerce_Price_Charges_hasType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 23430 ec.Error(ctx, err) 23431 return fc, err 23432 } 23433 return fc, nil 23434 } 23435 23436 func (ec *executionContext) _Commerce_Price_Charges_hasChargeQualifier(ctx context.Context, field graphql.CollectedField, obj *domain.Charges) (ret graphql.Marshaler) { 23437 fc, err := ec.fieldContext_Commerce_Price_Charges_hasChargeQualifier(ctx, field) 23438 if err != nil { 23439 return graphql.Null 23440 } 23441 ctx = graphql.WithFieldContext(ctx, fc) 23442 defer func() { 23443 if r := recover(); r != nil { 23444 ec.Error(ctx, ec.Recover(ctx, r)) 23445 ret = graphql.Null 23446 } 23447 }() 23448 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23449 ctx = rctx // use context from middleware stack in children 23450 return obj.HasChargeQualifier(fc.Args["qualifier"].(domain.ChargeQualifier)), nil 23451 }) 23452 if err != nil { 23453 ec.Error(ctx, err) 23454 return graphql.Null 23455 } 23456 if resTmp == nil { 23457 return graphql.Null 23458 } 23459 res := resTmp.(bool) 23460 fc.Result = res 23461 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 23462 } 23463 23464 func (ec *executionContext) fieldContext_Commerce_Price_Charges_hasChargeQualifier(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23465 fc = &graphql.FieldContext{ 23466 Object: "Commerce_Price_Charges", 23467 Field: field, 23468 IsMethod: true, 23469 IsResolver: false, 23470 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23471 return nil, errors.New("field of type Boolean does not have child fields") 23472 }, 23473 } 23474 defer func() { 23475 if r := recover(); r != nil { 23476 err = ec.Recover(ctx, r) 23477 ec.Error(ctx, err) 23478 } 23479 }() 23480 ctx = graphql.WithFieldContext(ctx, fc) 23481 if fc.Args, err = ec.field_Commerce_Price_Charges_hasChargeQualifier_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 23482 ec.Error(ctx, err) 23483 return fc, err 23484 } 23485 return fc, nil 23486 } 23487 23488 func (ec *executionContext) _Commerce_Price_Charges_getByChargeQualifierForced(ctx context.Context, field graphql.CollectedField, obj *domain.Charges) (ret graphql.Marshaler) { 23489 fc, err := ec.fieldContext_Commerce_Price_Charges_getByChargeQualifierForced(ctx, field) 23490 if err != nil { 23491 return graphql.Null 23492 } 23493 ctx = graphql.WithFieldContext(ctx, fc) 23494 defer func() { 23495 if r := recover(); r != nil { 23496 ec.Error(ctx, ec.Recover(ctx, r)) 23497 ret = graphql.Null 23498 } 23499 }() 23500 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23501 ctx = rctx // use context from middleware stack in children 23502 return obj.GetByChargeQualifierForced(fc.Args["qualifier"].(domain.ChargeQualifier)), nil 23503 }) 23504 if err != nil { 23505 ec.Error(ctx, err) 23506 return graphql.Null 23507 } 23508 if resTmp == nil { 23509 return graphql.Null 23510 } 23511 res := resTmp.(domain.Charge) 23512 fc.Result = res 23513 return ec.marshalOCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx, field.Selections, res) 23514 } 23515 23516 func (ec *executionContext) fieldContext_Commerce_Price_Charges_getByChargeQualifierForced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23517 fc = &graphql.FieldContext{ 23518 Object: "Commerce_Price_Charges", 23519 Field: field, 23520 IsMethod: true, 23521 IsResolver: false, 23522 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23523 switch field.Name { 23524 case "price": 23525 return ec.fieldContext_Commerce_Price_Charge_price(ctx, field) 23526 case "value": 23527 return ec.fieldContext_Commerce_Price_Charge_value(ctx, field) 23528 case "type": 23529 return ec.fieldContext_Commerce_Price_Charge_type(ctx, field) 23530 case "reference": 23531 return ec.fieldContext_Commerce_Price_Charge_reference(ctx, field) 23532 } 23533 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price_Charge", field.Name) 23534 }, 23535 } 23536 defer func() { 23537 if r := recover(); r != nil { 23538 err = ec.Recover(ctx, r) 23539 ec.Error(ctx, err) 23540 } 23541 }() 23542 ctx = graphql.WithFieldContext(ctx, fc) 23543 if fc.Args, err = ec.field_Commerce_Price_Charges_getByChargeQualifierForced_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 23544 ec.Error(ctx, err) 23545 return fc, err 23546 } 23547 return fc, nil 23548 } 23549 23550 func (ec *executionContext) _Commerce_Price_Charges_getByTypeForced(ctx context.Context, field graphql.CollectedField, obj *domain.Charges) (ret graphql.Marshaler) { 23551 fc, err := ec.fieldContext_Commerce_Price_Charges_getByTypeForced(ctx, field) 23552 if err != nil { 23553 return graphql.Null 23554 } 23555 ctx = graphql.WithFieldContext(ctx, fc) 23556 defer func() { 23557 if r := recover(); r != nil { 23558 ec.Error(ctx, ec.Recover(ctx, r)) 23559 ret = graphql.Null 23560 } 23561 }() 23562 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23563 ctx = rctx // use context from middleware stack in children 23564 return obj.GetByTypeForced(fc.Args["ctype"].(string)), nil 23565 }) 23566 if err != nil { 23567 ec.Error(ctx, err) 23568 return graphql.Null 23569 } 23570 if resTmp == nil { 23571 return graphql.Null 23572 } 23573 res := resTmp.(domain.Charge) 23574 fc.Result = res 23575 return ec.marshalOCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx, field.Selections, res) 23576 } 23577 23578 func (ec *executionContext) fieldContext_Commerce_Price_Charges_getByTypeForced(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23579 fc = &graphql.FieldContext{ 23580 Object: "Commerce_Price_Charges", 23581 Field: field, 23582 IsMethod: true, 23583 IsResolver: false, 23584 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23585 switch field.Name { 23586 case "price": 23587 return ec.fieldContext_Commerce_Price_Charge_price(ctx, field) 23588 case "value": 23589 return ec.fieldContext_Commerce_Price_Charge_value(ctx, field) 23590 case "type": 23591 return ec.fieldContext_Commerce_Price_Charge_type(ctx, field) 23592 case "reference": 23593 return ec.fieldContext_Commerce_Price_Charge_reference(ctx, field) 23594 } 23595 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price_Charge", field.Name) 23596 }, 23597 } 23598 defer func() { 23599 if r := recover(); r != nil { 23600 err = ec.Recover(ctx, r) 23601 ec.Error(ctx, err) 23602 } 23603 }() 23604 ctx = graphql.WithFieldContext(ctx, fc) 23605 if fc.Args, err = ec.field_Commerce_Price_Charges_getByTypeForced_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 23606 ec.Error(ctx, err) 23607 return fc, err 23608 } 23609 return fc, nil 23610 } 23611 23612 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_type(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23613 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_type(ctx, field) 23614 if err != nil { 23615 return graphql.Null 23616 } 23617 ctx = graphql.WithFieldContext(ctx, fc) 23618 defer func() { 23619 if r := recover(); r != nil { 23620 ec.Error(ctx, ec.Recover(ctx, r)) 23621 ret = graphql.Null 23622 } 23623 }() 23624 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23625 ctx = rctx // use context from middleware stack in children 23626 return obj.Type(), nil 23627 }) 23628 if err != nil { 23629 ec.Error(ctx, err) 23630 return graphql.Null 23631 } 23632 if resTmp == nil { 23633 if !graphql.HasFieldError(ctx, fc) { 23634 ec.Errorf(ctx, "must not be null") 23635 } 23636 return graphql.Null 23637 } 23638 res := resTmp.(string) 23639 fc.Result = res 23640 return ec.marshalNString2string(ctx, field.Selections, res) 23641 } 23642 23643 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23644 fc = &graphql.FieldContext{ 23645 Object: "Commerce_Product_ActiveVariantProduct", 23646 Field: field, 23647 IsMethod: true, 23648 IsResolver: false, 23649 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23650 return nil, errors.New("field of type String does not have child fields") 23651 }, 23652 } 23653 return fc, nil 23654 } 23655 23656 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_marketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23657 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_marketPlaceCode(ctx, field) 23658 if err != nil { 23659 return graphql.Null 23660 } 23661 ctx = graphql.WithFieldContext(ctx, fc) 23662 defer func() { 23663 if r := recover(); r != nil { 23664 ec.Error(ctx, ec.Recover(ctx, r)) 23665 ret = graphql.Null 23666 } 23667 }() 23668 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23669 ctx = rctx // use context from middleware stack in children 23670 return obj.MarketPlaceCode(), nil 23671 }) 23672 if err != nil { 23673 ec.Error(ctx, err) 23674 return graphql.Null 23675 } 23676 if resTmp == nil { 23677 if !graphql.HasFieldError(ctx, fc) { 23678 ec.Errorf(ctx, "must not be null") 23679 } 23680 return graphql.Null 23681 } 23682 res := resTmp.(string) 23683 fc.Result = res 23684 return ec.marshalNString2string(ctx, field.Selections, res) 23685 } 23686 23687 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_marketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23688 fc = &graphql.FieldContext{ 23689 Object: "Commerce_Product_ActiveVariantProduct", 23690 Field: field, 23691 IsMethod: true, 23692 IsResolver: false, 23693 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23694 return nil, errors.New("field of type String does not have child fields") 23695 }, 23696 } 23697 return fc, nil 23698 } 23699 23700 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_identifier(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23701 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_identifier(ctx, field) 23702 if err != nil { 23703 return graphql.Null 23704 } 23705 ctx = graphql.WithFieldContext(ctx, fc) 23706 defer func() { 23707 if r := recover(); r != nil { 23708 ec.Error(ctx, ec.Recover(ctx, r)) 23709 ret = graphql.Null 23710 } 23711 }() 23712 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23713 ctx = rctx // use context from middleware stack in children 23714 return obj.Identifier(), nil 23715 }) 23716 if err != nil { 23717 ec.Error(ctx, err) 23718 return graphql.Null 23719 } 23720 if resTmp == nil { 23721 if !graphql.HasFieldError(ctx, fc) { 23722 ec.Errorf(ctx, "must not be null") 23723 } 23724 return graphql.Null 23725 } 23726 res := resTmp.(string) 23727 fc.Result = res 23728 return ec.marshalNString2string(ctx, field.Selections, res) 23729 } 23730 23731 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23732 fc = &graphql.FieldContext{ 23733 Object: "Commerce_Product_ActiveVariantProduct", 23734 Field: field, 23735 IsMethod: true, 23736 IsResolver: false, 23737 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23738 return nil, errors.New("field of type String does not have child fields") 23739 }, 23740 } 23741 return fc, nil 23742 } 23743 23744 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_media(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23745 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_media(ctx, field) 23746 if err != nil { 23747 return graphql.Null 23748 } 23749 ctx = graphql.WithFieldContext(ctx, fc) 23750 defer func() { 23751 if r := recover(); r != nil { 23752 ec.Error(ctx, ec.Recover(ctx, r)) 23753 ret = graphql.Null 23754 } 23755 }() 23756 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23757 ctx = rctx // use context from middleware stack in children 23758 return obj.Media(), nil 23759 }) 23760 if err != nil { 23761 ec.Error(ctx, err) 23762 return graphql.Null 23763 } 23764 if resTmp == nil { 23765 if !graphql.HasFieldError(ctx, fc) { 23766 ec.Errorf(ctx, "must not be null") 23767 } 23768 return graphql.Null 23769 } 23770 res := resTmp.(graphqlproductdto.ProductMedia) 23771 fc.Result = res 23772 return ec.marshalNCommerce_Product_Media2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMedia(ctx, field.Selections, res) 23773 } 23774 23775 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23776 fc = &graphql.FieldContext{ 23777 Object: "Commerce_Product_ActiveVariantProduct", 23778 Field: field, 23779 IsMethod: true, 23780 IsResolver: false, 23781 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23782 switch field.Name { 23783 case "all": 23784 return ec.fieldContext_Commerce_Product_Media_all(ctx, field) 23785 case "getMedia": 23786 return ec.fieldContext_Commerce_Product_Media_getMedia(ctx, field) 23787 } 23788 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Media", field.Name) 23789 }, 23790 } 23791 return fc, nil 23792 } 23793 23794 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_price(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23795 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_price(ctx, field) 23796 if err != nil { 23797 return graphql.Null 23798 } 23799 ctx = graphql.WithFieldContext(ctx, fc) 23800 defer func() { 23801 if r := recover(); r != nil { 23802 ec.Error(ctx, ec.Recover(ctx, r)) 23803 ret = graphql.Null 23804 } 23805 }() 23806 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23807 ctx = rctx // use context from middleware stack in children 23808 return obj.Price(), nil 23809 }) 23810 if err != nil { 23811 ec.Error(ctx, err) 23812 return graphql.Null 23813 } 23814 if resTmp == nil { 23815 if !graphql.HasFieldError(ctx, fc) { 23816 ec.Errorf(ctx, "must not be null") 23817 } 23818 return graphql.Null 23819 } 23820 res := resTmp.(domain1.PriceInfo) 23821 fc.Result = res 23822 return ec.marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx, field.Selections, res) 23823 } 23824 23825 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23826 fc = &graphql.FieldContext{ 23827 Object: "Commerce_Product_ActiveVariantProduct", 23828 Field: field, 23829 IsMethod: true, 23830 IsResolver: false, 23831 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23832 switch field.Name { 23833 case "default": 23834 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 23835 case "discounted": 23836 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 23837 case "discountText": 23838 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 23839 case "activeBase": 23840 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 23841 case "activeBaseAmount": 23842 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 23843 case "activeBaseUnit": 23844 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 23845 case "isDiscounted": 23846 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 23847 case "campaignRules": 23848 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 23849 case "denyMoreDiscounts": 23850 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 23851 case "context": 23852 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 23853 case "taxClass": 23854 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 23855 } 23856 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 23857 }, 23858 } 23859 return fc, nil 23860 } 23861 23862 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_availablePrices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23863 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_availablePrices(ctx, field) 23864 if err != nil { 23865 return graphql.Null 23866 } 23867 ctx = graphql.WithFieldContext(ctx, fc) 23868 defer func() { 23869 if r := recover(); r != nil { 23870 ec.Error(ctx, ec.Recover(ctx, r)) 23871 ret = graphql.Null 23872 } 23873 }() 23874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23875 ctx = rctx // use context from middleware stack in children 23876 return obj.AvailablePrices(), nil 23877 }) 23878 if err != nil { 23879 ec.Error(ctx, err) 23880 return graphql.Null 23881 } 23882 if resTmp == nil { 23883 return graphql.Null 23884 } 23885 res := resTmp.([]domain1.PriceInfo) 23886 fc.Result = res 23887 return ec.marshalOCommerce_Product_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfoᚄ(ctx, field.Selections, res) 23888 } 23889 23890 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_availablePrices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23891 fc = &graphql.FieldContext{ 23892 Object: "Commerce_Product_ActiveVariantProduct", 23893 Field: field, 23894 IsMethod: true, 23895 IsResolver: false, 23896 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23897 switch field.Name { 23898 case "default": 23899 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 23900 case "discounted": 23901 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 23902 case "discountText": 23903 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 23904 case "activeBase": 23905 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 23906 case "activeBaseAmount": 23907 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 23908 case "activeBaseUnit": 23909 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 23910 case "isDiscounted": 23911 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 23912 case "campaignRules": 23913 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 23914 case "denyMoreDiscounts": 23915 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 23916 case "context": 23917 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 23918 case "taxClass": 23919 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 23920 } 23921 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 23922 }, 23923 } 23924 return fc, nil 23925 } 23926 23927 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_title(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23928 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_title(ctx, field) 23929 if err != nil { 23930 return graphql.Null 23931 } 23932 ctx = graphql.WithFieldContext(ctx, fc) 23933 defer func() { 23934 if r := recover(); r != nil { 23935 ec.Error(ctx, ec.Recover(ctx, r)) 23936 ret = graphql.Null 23937 } 23938 }() 23939 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23940 ctx = rctx // use context from middleware stack in children 23941 return obj.Title(), nil 23942 }) 23943 if err != nil { 23944 ec.Error(ctx, err) 23945 return graphql.Null 23946 } 23947 if resTmp == nil { 23948 if !graphql.HasFieldError(ctx, fc) { 23949 ec.Errorf(ctx, "must not be null") 23950 } 23951 return graphql.Null 23952 } 23953 res := resTmp.(string) 23954 fc.Result = res 23955 return ec.marshalNString2string(ctx, field.Selections, res) 23956 } 23957 23958 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 23959 fc = &graphql.FieldContext{ 23960 Object: "Commerce_Product_ActiveVariantProduct", 23961 Field: field, 23962 IsMethod: true, 23963 IsResolver: false, 23964 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 23965 return nil, errors.New("field of type String does not have child fields") 23966 }, 23967 } 23968 return fc, nil 23969 } 23970 23971 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_categories(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 23972 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_categories(ctx, field) 23973 if err != nil { 23974 return graphql.Null 23975 } 23976 ctx = graphql.WithFieldContext(ctx, fc) 23977 defer func() { 23978 if r := recover(); r != nil { 23979 ec.Error(ctx, ec.Recover(ctx, r)) 23980 ret = graphql.Null 23981 } 23982 }() 23983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23984 ctx = rctx // use context from middleware stack in children 23985 return obj.Categories(), nil 23986 }) 23987 if err != nil { 23988 ec.Error(ctx, err) 23989 return graphql.Null 23990 } 23991 if resTmp == nil { 23992 if !graphql.HasFieldError(ctx, fc) { 23993 ec.Errorf(ctx, "must not be null") 23994 } 23995 return graphql.Null 23996 } 23997 res := resTmp.(graphqlproductdto.ProductCategories) 23998 fc.Result = res 23999 return ec.marshalNCommerce_Product_Categories2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductCategories(ctx, field.Selections, res) 24000 } 24001 24002 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24003 fc = &graphql.FieldContext{ 24004 Object: "Commerce_Product_ActiveVariantProduct", 24005 Field: field, 24006 IsMethod: true, 24007 IsResolver: false, 24008 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24009 switch field.Name { 24010 case "main": 24011 return ec.fieldContext_Commerce_Product_Categories_main(ctx, field) 24012 case "all": 24013 return ec.fieldContext_Commerce_Product_Categories_all(ctx, field) 24014 } 24015 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Categories", field.Name) 24016 }, 24017 } 24018 return fc, nil 24019 } 24020 24021 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_description(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24022 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_description(ctx, field) 24023 if err != nil { 24024 return graphql.Null 24025 } 24026 ctx = graphql.WithFieldContext(ctx, fc) 24027 defer func() { 24028 if r := recover(); r != nil { 24029 ec.Error(ctx, ec.Recover(ctx, r)) 24030 ret = graphql.Null 24031 } 24032 }() 24033 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24034 ctx = rctx // use context from middleware stack in children 24035 return obj.Description(), nil 24036 }) 24037 if err != nil { 24038 ec.Error(ctx, err) 24039 return graphql.Null 24040 } 24041 if resTmp == nil { 24042 if !graphql.HasFieldError(ctx, fc) { 24043 ec.Errorf(ctx, "must not be null") 24044 } 24045 return graphql.Null 24046 } 24047 res := resTmp.(string) 24048 fc.Result = res 24049 return ec.marshalNString2string(ctx, field.Selections, res) 24050 } 24051 24052 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24053 fc = &graphql.FieldContext{ 24054 Object: "Commerce_Product_ActiveVariantProduct", 24055 Field: field, 24056 IsMethod: true, 24057 IsResolver: false, 24058 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24059 return nil, errors.New("field of type String does not have child fields") 24060 }, 24061 } 24062 return fc, nil 24063 } 24064 24065 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_shortDescription(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24066 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_shortDescription(ctx, field) 24067 if err != nil { 24068 return graphql.Null 24069 } 24070 ctx = graphql.WithFieldContext(ctx, fc) 24071 defer func() { 24072 if r := recover(); r != nil { 24073 ec.Error(ctx, ec.Recover(ctx, r)) 24074 ret = graphql.Null 24075 } 24076 }() 24077 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24078 ctx = rctx // use context from middleware stack in children 24079 return obj.ShortDescription(), nil 24080 }) 24081 if err != nil { 24082 ec.Error(ctx, err) 24083 return graphql.Null 24084 } 24085 if resTmp == nil { 24086 if !graphql.HasFieldError(ctx, fc) { 24087 ec.Errorf(ctx, "must not be null") 24088 } 24089 return graphql.Null 24090 } 24091 res := resTmp.(string) 24092 fc.Result = res 24093 return ec.marshalNString2string(ctx, field.Selections, res) 24094 } 24095 24096 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_shortDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24097 fc = &graphql.FieldContext{ 24098 Object: "Commerce_Product_ActiveVariantProduct", 24099 Field: field, 24100 IsMethod: true, 24101 IsResolver: false, 24102 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24103 return nil, errors.New("field of type String does not have child fields") 24104 }, 24105 } 24106 return fc, nil 24107 } 24108 24109 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_meta(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24110 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_meta(ctx, field) 24111 if err != nil { 24112 return graphql.Null 24113 } 24114 ctx = graphql.WithFieldContext(ctx, fc) 24115 defer func() { 24116 if r := recover(); r != nil { 24117 ec.Error(ctx, ec.Recover(ctx, r)) 24118 ret = graphql.Null 24119 } 24120 }() 24121 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24122 ctx = rctx // use context from middleware stack in children 24123 return obj.Meta(), nil 24124 }) 24125 if err != nil { 24126 ec.Error(ctx, err) 24127 return graphql.Null 24128 } 24129 if resTmp == nil { 24130 if !graphql.HasFieldError(ctx, fc) { 24131 ec.Errorf(ctx, "must not be null") 24132 } 24133 return graphql.Null 24134 } 24135 res := resTmp.(graphqlproductdto.ProductMeta) 24136 fc.Result = res 24137 return ec.marshalNCommerce_Product_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMeta(ctx, field.Selections, res) 24138 } 24139 24140 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24141 fc = &graphql.FieldContext{ 24142 Object: "Commerce_Product_ActiveVariantProduct", 24143 Field: field, 24144 IsMethod: true, 24145 IsResolver: false, 24146 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24147 switch field.Name { 24148 case "keywords": 24149 return ec.fieldContext_Commerce_Product_Meta_keywords(ctx, field) 24150 } 24151 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Meta", field.Name) 24152 }, 24153 } 24154 return fc, nil 24155 } 24156 24157 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_loyalty(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24158 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_loyalty(ctx, field) 24159 if err != nil { 24160 return graphql.Null 24161 } 24162 ctx = graphql.WithFieldContext(ctx, fc) 24163 defer func() { 24164 if r := recover(); r != nil { 24165 ec.Error(ctx, ec.Recover(ctx, r)) 24166 ret = graphql.Null 24167 } 24168 }() 24169 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24170 ctx = rctx // use context from middleware stack in children 24171 return obj.Loyalty(), nil 24172 }) 24173 if err != nil { 24174 ec.Error(ctx, err) 24175 return graphql.Null 24176 } 24177 if resTmp == nil { 24178 if !graphql.HasFieldError(ctx, fc) { 24179 ec.Errorf(ctx, "must not be null") 24180 } 24181 return graphql.Null 24182 } 24183 res := resTmp.(graphqlproductdto.ProductLoyalty) 24184 fc.Result = res 24185 return ec.marshalNCommerce_Product_Loyalty2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductLoyalty(ctx, field.Selections, res) 24186 } 24187 24188 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_loyalty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24189 fc = &graphql.FieldContext{ 24190 Object: "Commerce_Product_ActiveVariantProduct", 24191 Field: field, 24192 IsMethod: true, 24193 IsResolver: false, 24194 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24195 switch field.Name { 24196 case "price": 24197 return ec.fieldContext_Commerce_Product_Loyalty_price(ctx, field) 24198 case "availablePrices": 24199 return ec.fieldContext_Commerce_Product_Loyalty_availablePrices(ctx, field) 24200 case "earning": 24201 return ec.fieldContext_Commerce_Product_Loyalty_earning(ctx, field) 24202 } 24203 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty", field.Name) 24204 }, 24205 } 24206 return fc, nil 24207 } 24208 24209 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24210 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_attributes(ctx, field) 24211 if err != nil { 24212 return graphql.Null 24213 } 24214 ctx = graphql.WithFieldContext(ctx, fc) 24215 defer func() { 24216 if r := recover(); r != nil { 24217 ec.Error(ctx, ec.Recover(ctx, r)) 24218 ret = graphql.Null 24219 } 24220 }() 24221 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24222 ctx = rctx // use context from middleware stack in children 24223 return obj.Attributes(), nil 24224 }) 24225 if err != nil { 24226 ec.Error(ctx, err) 24227 return graphql.Null 24228 } 24229 if resTmp == nil { 24230 if !graphql.HasFieldError(ctx, fc) { 24231 ec.Errorf(ctx, "must not be null") 24232 } 24233 return graphql.Null 24234 } 24235 res := resTmp.(domain1.Attributes) 24236 fc.Result = res 24237 return ec.marshalNCommerce_Product_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributes(ctx, field.Selections, res) 24238 } 24239 24240 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24241 fc = &graphql.FieldContext{ 24242 Object: "Commerce_Product_ActiveVariantProduct", 24243 Field: field, 24244 IsMethod: true, 24245 IsResolver: false, 24246 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24247 switch field.Name { 24248 case "attributeKeys": 24249 return ec.fieldContext_Commerce_Product_Attributes_attributeKeys(ctx, field) 24250 case "attributes": 24251 return ec.fieldContext_Commerce_Product_Attributes_attributes(ctx, field) 24252 case "hasAttribute": 24253 return ec.fieldContext_Commerce_Product_Attributes_hasAttribute(ctx, field) 24254 case "getAttribute": 24255 return ec.fieldContext_Commerce_Product_Attributes_getAttribute(ctx, field) 24256 case "getAttributesByKey": 24257 return ec.fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx, field) 24258 } 24259 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attributes", field.Name) 24260 }, 24261 } 24262 return fc, nil 24263 } 24264 24265 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_variantMarketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24266 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_variantMarketPlaceCode(ctx, field) 24267 if err != nil { 24268 return graphql.Null 24269 } 24270 ctx = graphql.WithFieldContext(ctx, fc) 24271 defer func() { 24272 if r := recover(); r != nil { 24273 ec.Error(ctx, ec.Recover(ctx, r)) 24274 ret = graphql.Null 24275 } 24276 }() 24277 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24278 ctx = rctx // use context from middleware stack in children 24279 return obj.VariantMarketPlaceCode(), nil 24280 }) 24281 if err != nil { 24282 ec.Error(ctx, err) 24283 return graphql.Null 24284 } 24285 if resTmp == nil { 24286 if !graphql.HasFieldError(ctx, fc) { 24287 ec.Errorf(ctx, "must not be null") 24288 } 24289 return graphql.Null 24290 } 24291 res := resTmp.(string) 24292 fc.Result = res 24293 return ec.marshalNString2string(ctx, field.Selections, res) 24294 } 24295 24296 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_variantMarketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24297 fc = &graphql.FieldContext{ 24298 Object: "Commerce_Product_ActiveVariantProduct", 24299 Field: field, 24300 IsMethod: true, 24301 IsResolver: false, 24302 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24303 return nil, errors.New("field of type String does not have child fields") 24304 }, 24305 } 24306 return fc, nil 24307 } 24308 24309 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_variationSelections(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24310 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_variationSelections(ctx, field) 24311 if err != nil { 24312 return graphql.Null 24313 } 24314 ctx = graphql.WithFieldContext(ctx, fc) 24315 defer func() { 24316 if r := recover(); r != nil { 24317 ec.Error(ctx, ec.Recover(ctx, r)) 24318 ret = graphql.Null 24319 } 24320 }() 24321 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24322 ctx = rctx // use context from middleware stack in children 24323 return obj.VariationSelections(), nil 24324 }) 24325 if err != nil { 24326 ec.Error(ctx, err) 24327 return graphql.Null 24328 } 24329 if resTmp == nil { 24330 return graphql.Null 24331 } 24332 res := resTmp.([]graphqlproductdto.VariationSelection) 24333 fc.Result = res 24334 return ec.marshalOCommerce_Product_VariationSelection2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionᚄ(ctx, field.Selections, res) 24335 } 24336 24337 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_variationSelections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24338 fc = &graphql.FieldContext{ 24339 Object: "Commerce_Product_ActiveVariantProduct", 24340 Field: field, 24341 IsMethod: true, 24342 IsResolver: false, 24343 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24344 switch field.Name { 24345 case "code": 24346 return ec.fieldContext_Commerce_Product_VariationSelection_code(ctx, field) 24347 case "label": 24348 return ec.fieldContext_Commerce_Product_VariationSelection_label(ctx, field) 24349 case "options": 24350 return ec.fieldContext_Commerce_Product_VariationSelection_options(ctx, field) 24351 } 24352 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariationSelection", field.Name) 24353 }, 24354 } 24355 return fc, nil 24356 } 24357 24358 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_activeVariationSelections(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24359 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_activeVariationSelections(ctx, field) 24360 if err != nil { 24361 return graphql.Null 24362 } 24363 ctx = graphql.WithFieldContext(ctx, fc) 24364 defer func() { 24365 if r := recover(); r != nil { 24366 ec.Error(ctx, ec.Recover(ctx, r)) 24367 ret = graphql.Null 24368 } 24369 }() 24370 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24371 ctx = rctx // use context from middleware stack in children 24372 return obj.ActiveVariationSelections(), nil 24373 }) 24374 if err != nil { 24375 ec.Error(ctx, err) 24376 return graphql.Null 24377 } 24378 if resTmp == nil { 24379 return graphql.Null 24380 } 24381 res := resTmp.([]graphqlproductdto.ActiveVariationSelection) 24382 fc.Result = res 24383 return ec.marshalOCommerce_Product_ActiveVariationSelection2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐActiveVariationSelectionᚄ(ctx, field.Selections, res) 24384 } 24385 24386 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_activeVariationSelections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24387 fc = &graphql.FieldContext{ 24388 Object: "Commerce_Product_ActiveVariantProduct", 24389 Field: field, 24390 IsMethod: true, 24391 IsResolver: false, 24392 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24393 switch field.Name { 24394 case "code": 24395 return ec.fieldContext_Commerce_Product_ActiveVariationSelection_code(ctx, field) 24396 case "label": 24397 return ec.fieldContext_Commerce_Product_ActiveVariationSelection_label(ctx, field) 24398 case "value": 24399 return ec.fieldContext_Commerce_Product_ActiveVariationSelection_value(ctx, field) 24400 case "unitCode": 24401 return ec.fieldContext_Commerce_Product_ActiveVariationSelection_unitCode(ctx, field) 24402 } 24403 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_ActiveVariationSelection", field.Name) 24404 }, 24405 } 24406 return fc, nil 24407 } 24408 24409 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct_badges(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariantProduct) (ret graphql.Marshaler) { 24410 fc, err := ec.fieldContext_Commerce_Product_ActiveVariantProduct_badges(ctx, field) 24411 if err != nil { 24412 return graphql.Null 24413 } 24414 ctx = graphql.WithFieldContext(ctx, fc) 24415 defer func() { 24416 if r := recover(); r != nil { 24417 ec.Error(ctx, ec.Recover(ctx, r)) 24418 ret = graphql.Null 24419 } 24420 }() 24421 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24422 ctx = rctx // use context from middleware stack in children 24423 return obj.Badges(), nil 24424 }) 24425 if err != nil { 24426 ec.Error(ctx, err) 24427 return graphql.Null 24428 } 24429 if resTmp == nil { 24430 if !graphql.HasFieldError(ctx, fc) { 24431 ec.Errorf(ctx, "must not be null") 24432 } 24433 return graphql.Null 24434 } 24435 res := resTmp.(graphqlproductdto.ProductBadges) 24436 fc.Result = res 24437 return ec.marshalNCommerce_Product_Badges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductBadges(ctx, field.Selections, res) 24438 } 24439 24440 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariantProduct_badges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24441 fc = &graphql.FieldContext{ 24442 Object: "Commerce_Product_ActiveVariantProduct", 24443 Field: field, 24444 IsMethod: true, 24445 IsResolver: false, 24446 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24447 switch field.Name { 24448 case "all": 24449 return ec.fieldContext_Commerce_Product_Badges_all(ctx, field) 24450 case "first": 24451 return ec.fieldContext_Commerce_Product_Badges_first(ctx, field) 24452 } 24453 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badges", field.Name) 24454 }, 24455 } 24456 return fc, nil 24457 } 24458 24459 func (ec *executionContext) _Commerce_Product_ActiveVariationSelection_code(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariationSelection) (ret graphql.Marshaler) { 24460 fc, err := ec.fieldContext_Commerce_Product_ActiveVariationSelection_code(ctx, field) 24461 if err != nil { 24462 return graphql.Null 24463 } 24464 ctx = graphql.WithFieldContext(ctx, fc) 24465 defer func() { 24466 if r := recover(); r != nil { 24467 ec.Error(ctx, ec.Recover(ctx, r)) 24468 ret = graphql.Null 24469 } 24470 }() 24471 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24472 ctx = rctx // use context from middleware stack in children 24473 return obj.Code, nil 24474 }) 24475 if err != nil { 24476 ec.Error(ctx, err) 24477 return graphql.Null 24478 } 24479 if resTmp == nil { 24480 if !graphql.HasFieldError(ctx, fc) { 24481 ec.Errorf(ctx, "must not be null") 24482 } 24483 return graphql.Null 24484 } 24485 res := resTmp.(string) 24486 fc.Result = res 24487 return ec.marshalNString2string(ctx, field.Selections, res) 24488 } 24489 24490 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariationSelection_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24491 fc = &graphql.FieldContext{ 24492 Object: "Commerce_Product_ActiveVariationSelection", 24493 Field: field, 24494 IsMethod: false, 24495 IsResolver: false, 24496 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24497 return nil, errors.New("field of type String does not have child fields") 24498 }, 24499 } 24500 return fc, nil 24501 } 24502 24503 func (ec *executionContext) _Commerce_Product_ActiveVariationSelection_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariationSelection) (ret graphql.Marshaler) { 24504 fc, err := ec.fieldContext_Commerce_Product_ActiveVariationSelection_label(ctx, field) 24505 if err != nil { 24506 return graphql.Null 24507 } 24508 ctx = graphql.WithFieldContext(ctx, fc) 24509 defer func() { 24510 if r := recover(); r != nil { 24511 ec.Error(ctx, ec.Recover(ctx, r)) 24512 ret = graphql.Null 24513 } 24514 }() 24515 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24516 ctx = rctx // use context from middleware stack in children 24517 return obj.Label, nil 24518 }) 24519 if err != nil { 24520 ec.Error(ctx, err) 24521 return graphql.Null 24522 } 24523 if resTmp == nil { 24524 if !graphql.HasFieldError(ctx, fc) { 24525 ec.Errorf(ctx, "must not be null") 24526 } 24527 return graphql.Null 24528 } 24529 res := resTmp.(string) 24530 fc.Result = res 24531 return ec.marshalNString2string(ctx, field.Selections, res) 24532 } 24533 24534 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariationSelection_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24535 fc = &graphql.FieldContext{ 24536 Object: "Commerce_Product_ActiveVariationSelection", 24537 Field: field, 24538 IsMethod: false, 24539 IsResolver: false, 24540 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24541 return nil, errors.New("field of type String does not have child fields") 24542 }, 24543 } 24544 return fc, nil 24545 } 24546 24547 func (ec *executionContext) _Commerce_Product_ActiveVariationSelection_value(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariationSelection) (ret graphql.Marshaler) { 24548 fc, err := ec.fieldContext_Commerce_Product_ActiveVariationSelection_value(ctx, field) 24549 if err != nil { 24550 return graphql.Null 24551 } 24552 ctx = graphql.WithFieldContext(ctx, fc) 24553 defer func() { 24554 if r := recover(); r != nil { 24555 ec.Error(ctx, ec.Recover(ctx, r)) 24556 ret = graphql.Null 24557 } 24558 }() 24559 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24560 ctx = rctx // use context from middleware stack in children 24561 return obj.Value, nil 24562 }) 24563 if err != nil { 24564 ec.Error(ctx, err) 24565 return graphql.Null 24566 } 24567 if resTmp == nil { 24568 if !graphql.HasFieldError(ctx, fc) { 24569 ec.Errorf(ctx, "must not be null") 24570 } 24571 return graphql.Null 24572 } 24573 res := resTmp.(string) 24574 fc.Result = res 24575 return ec.marshalNString2string(ctx, field.Selections, res) 24576 } 24577 24578 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariationSelection_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24579 fc = &graphql.FieldContext{ 24580 Object: "Commerce_Product_ActiveVariationSelection", 24581 Field: field, 24582 IsMethod: false, 24583 IsResolver: false, 24584 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24585 return nil, errors.New("field of type String does not have child fields") 24586 }, 24587 } 24588 return fc, nil 24589 } 24590 24591 func (ec *executionContext) _Commerce_Product_ActiveVariationSelection_unitCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ActiveVariationSelection) (ret graphql.Marshaler) { 24592 fc, err := ec.fieldContext_Commerce_Product_ActiveVariationSelection_unitCode(ctx, field) 24593 if err != nil { 24594 return graphql.Null 24595 } 24596 ctx = graphql.WithFieldContext(ctx, fc) 24597 defer func() { 24598 if r := recover(); r != nil { 24599 ec.Error(ctx, ec.Recover(ctx, r)) 24600 ret = graphql.Null 24601 } 24602 }() 24603 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24604 ctx = rctx // use context from middleware stack in children 24605 return obj.UnitCode, nil 24606 }) 24607 if err != nil { 24608 ec.Error(ctx, err) 24609 return graphql.Null 24610 } 24611 if resTmp == nil { 24612 if !graphql.HasFieldError(ctx, fc) { 24613 ec.Errorf(ctx, "must not be null") 24614 } 24615 return graphql.Null 24616 } 24617 res := resTmp.(string) 24618 fc.Result = res 24619 return ec.marshalNString2string(ctx, field.Selections, res) 24620 } 24621 24622 func (ec *executionContext) fieldContext_Commerce_Product_ActiveVariationSelection_unitCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24623 fc = &graphql.FieldContext{ 24624 Object: "Commerce_Product_ActiveVariationSelection", 24625 Field: field, 24626 IsMethod: false, 24627 IsResolver: false, 24628 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24629 return nil, errors.New("field of type String does not have child fields") 24630 }, 24631 } 24632 return fc, nil 24633 } 24634 24635 func (ec *executionContext) _Commerce_Product_Attribute_code(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24636 fc, err := ec.fieldContext_Commerce_Product_Attribute_code(ctx, field) 24637 if err != nil { 24638 return graphql.Null 24639 } 24640 ctx = graphql.WithFieldContext(ctx, fc) 24641 defer func() { 24642 if r := recover(); r != nil { 24643 ec.Error(ctx, ec.Recover(ctx, r)) 24644 ret = graphql.Null 24645 } 24646 }() 24647 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24648 ctx = rctx // use context from middleware stack in children 24649 return obj.Code, nil 24650 }) 24651 if err != nil { 24652 ec.Error(ctx, err) 24653 return graphql.Null 24654 } 24655 if resTmp == nil { 24656 if !graphql.HasFieldError(ctx, fc) { 24657 ec.Errorf(ctx, "must not be null") 24658 } 24659 return graphql.Null 24660 } 24661 res := resTmp.(string) 24662 fc.Result = res 24663 return ec.marshalNString2string(ctx, field.Selections, res) 24664 } 24665 24666 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24667 fc = &graphql.FieldContext{ 24668 Object: "Commerce_Product_Attribute", 24669 Field: field, 24670 IsMethod: false, 24671 IsResolver: false, 24672 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24673 return nil, errors.New("field of type String does not have child fields") 24674 }, 24675 } 24676 return fc, nil 24677 } 24678 24679 func (ec *executionContext) _Commerce_Product_Attribute_codeLabel(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24680 fc, err := ec.fieldContext_Commerce_Product_Attribute_codeLabel(ctx, field) 24681 if err != nil { 24682 return graphql.Null 24683 } 24684 ctx = graphql.WithFieldContext(ctx, fc) 24685 defer func() { 24686 if r := recover(); r != nil { 24687 ec.Error(ctx, ec.Recover(ctx, r)) 24688 ret = graphql.Null 24689 } 24690 }() 24691 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24692 ctx = rctx // use context from middleware stack in children 24693 return obj.CodeLabel, nil 24694 }) 24695 if err != nil { 24696 ec.Error(ctx, err) 24697 return graphql.Null 24698 } 24699 if resTmp == nil { 24700 if !graphql.HasFieldError(ctx, fc) { 24701 ec.Errorf(ctx, "must not be null") 24702 } 24703 return graphql.Null 24704 } 24705 res := resTmp.(string) 24706 fc.Result = res 24707 return ec.marshalNString2string(ctx, field.Selections, res) 24708 } 24709 24710 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_codeLabel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24711 fc = &graphql.FieldContext{ 24712 Object: "Commerce_Product_Attribute", 24713 Field: field, 24714 IsMethod: false, 24715 IsResolver: false, 24716 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24717 return nil, errors.New("field of type String does not have child fields") 24718 }, 24719 } 24720 return fc, nil 24721 } 24722 24723 func (ec *executionContext) _Commerce_Product_Attribute_label(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24724 fc, err := ec.fieldContext_Commerce_Product_Attribute_label(ctx, field) 24725 if err != nil { 24726 return graphql.Null 24727 } 24728 ctx = graphql.WithFieldContext(ctx, fc) 24729 defer func() { 24730 if r := recover(); r != nil { 24731 ec.Error(ctx, ec.Recover(ctx, r)) 24732 ret = graphql.Null 24733 } 24734 }() 24735 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24736 ctx = rctx // use context from middleware stack in children 24737 return obj.Label, nil 24738 }) 24739 if err != nil { 24740 ec.Error(ctx, err) 24741 return graphql.Null 24742 } 24743 if resTmp == nil { 24744 if !graphql.HasFieldError(ctx, fc) { 24745 ec.Errorf(ctx, "must not be null") 24746 } 24747 return graphql.Null 24748 } 24749 res := resTmp.(string) 24750 fc.Result = res 24751 return ec.marshalNString2string(ctx, field.Selections, res) 24752 } 24753 24754 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24755 fc = &graphql.FieldContext{ 24756 Object: "Commerce_Product_Attribute", 24757 Field: field, 24758 IsMethod: false, 24759 IsResolver: false, 24760 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24761 return nil, errors.New("field of type String does not have child fields") 24762 }, 24763 } 24764 return fc, nil 24765 } 24766 24767 func (ec *executionContext) _Commerce_Product_Attribute_value(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24768 fc, err := ec.fieldContext_Commerce_Product_Attribute_value(ctx, field) 24769 if err != nil { 24770 return graphql.Null 24771 } 24772 ctx = graphql.WithFieldContext(ctx, fc) 24773 defer func() { 24774 if r := recover(); r != nil { 24775 ec.Error(ctx, ec.Recover(ctx, r)) 24776 ret = graphql.Null 24777 } 24778 }() 24779 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24780 ctx = rctx // use context from middleware stack in children 24781 return obj.Value(), nil 24782 }) 24783 if err != nil { 24784 ec.Error(ctx, err) 24785 return graphql.Null 24786 } 24787 if resTmp == nil { 24788 if !graphql.HasFieldError(ctx, fc) { 24789 ec.Errorf(ctx, "must not be null") 24790 } 24791 return graphql.Null 24792 } 24793 res := resTmp.(string) 24794 fc.Result = res 24795 return ec.marshalNString2string(ctx, field.Selections, res) 24796 } 24797 24798 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24799 fc = &graphql.FieldContext{ 24800 Object: "Commerce_Product_Attribute", 24801 Field: field, 24802 IsMethod: true, 24803 IsResolver: false, 24804 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24805 return nil, errors.New("field of type String does not have child fields") 24806 }, 24807 } 24808 return fc, nil 24809 } 24810 24811 func (ec *executionContext) _Commerce_Product_Attribute_unitCode(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24812 fc, err := ec.fieldContext_Commerce_Product_Attribute_unitCode(ctx, field) 24813 if err != nil { 24814 return graphql.Null 24815 } 24816 ctx = graphql.WithFieldContext(ctx, fc) 24817 defer func() { 24818 if r := recover(); r != nil { 24819 ec.Error(ctx, ec.Recover(ctx, r)) 24820 ret = graphql.Null 24821 } 24822 }() 24823 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24824 ctx = rctx // use context from middleware stack in children 24825 return obj.UnitCode, nil 24826 }) 24827 if err != nil { 24828 ec.Error(ctx, err) 24829 return graphql.Null 24830 } 24831 if resTmp == nil { 24832 if !graphql.HasFieldError(ctx, fc) { 24833 ec.Errorf(ctx, "must not be null") 24834 } 24835 return graphql.Null 24836 } 24837 res := resTmp.(string) 24838 fc.Result = res 24839 return ec.marshalNString2string(ctx, field.Selections, res) 24840 } 24841 24842 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_unitCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24843 fc = &graphql.FieldContext{ 24844 Object: "Commerce_Product_Attribute", 24845 Field: field, 24846 IsMethod: false, 24847 IsResolver: false, 24848 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24849 return nil, errors.New("field of type String does not have child fields") 24850 }, 24851 } 24852 return fc, nil 24853 } 24854 24855 func (ec *executionContext) _Commerce_Product_Attribute_values(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24856 fc, err := ec.fieldContext_Commerce_Product_Attribute_values(ctx, field) 24857 if err != nil { 24858 return graphql.Null 24859 } 24860 ctx = graphql.WithFieldContext(ctx, fc) 24861 defer func() { 24862 if r := recover(); r != nil { 24863 ec.Error(ctx, ec.Recover(ctx, r)) 24864 ret = graphql.Null 24865 } 24866 }() 24867 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24868 ctx = rctx // use context from middleware stack in children 24869 return obj.Values(), nil 24870 }) 24871 if err != nil { 24872 ec.Error(ctx, err) 24873 return graphql.Null 24874 } 24875 if resTmp == nil { 24876 return graphql.Null 24877 } 24878 res := resTmp.([]string) 24879 fc.Result = res 24880 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 24881 } 24882 24883 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_values(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24884 fc = &graphql.FieldContext{ 24885 Object: "Commerce_Product_Attribute", 24886 Field: field, 24887 IsMethod: true, 24888 IsResolver: false, 24889 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24890 return nil, errors.New("field of type String does not have child fields") 24891 }, 24892 } 24893 return fc, nil 24894 } 24895 24896 func (ec *executionContext) _Commerce_Product_Attribute_labels(ctx context.Context, field graphql.CollectedField, obj *domain1.Attribute) (ret graphql.Marshaler) { 24897 fc, err := ec.fieldContext_Commerce_Product_Attribute_labels(ctx, field) 24898 if err != nil { 24899 return graphql.Null 24900 } 24901 ctx = graphql.WithFieldContext(ctx, fc) 24902 defer func() { 24903 if r := recover(); r != nil { 24904 ec.Error(ctx, ec.Recover(ctx, r)) 24905 ret = graphql.Null 24906 } 24907 }() 24908 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24909 ctx = rctx // use context from middleware stack in children 24910 return obj.Labels(), nil 24911 }) 24912 if err != nil { 24913 ec.Error(ctx, err) 24914 return graphql.Null 24915 } 24916 if resTmp == nil { 24917 return graphql.Null 24918 } 24919 res := resTmp.([]string) 24920 fc.Result = res 24921 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 24922 } 24923 24924 func (ec *executionContext) fieldContext_Commerce_Product_Attribute_labels(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24925 fc = &graphql.FieldContext{ 24926 Object: "Commerce_Product_Attribute", 24927 Field: field, 24928 IsMethod: true, 24929 IsResolver: false, 24930 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24931 return nil, errors.New("field of type String does not have child fields") 24932 }, 24933 } 24934 return fc, nil 24935 } 24936 24937 func (ec *executionContext) _Commerce_Product_Attributes_attributeKeys(ctx context.Context, field graphql.CollectedField, obj domain1.Attributes) (ret graphql.Marshaler) { 24938 fc, err := ec.fieldContext_Commerce_Product_Attributes_attributeKeys(ctx, field) 24939 if err != nil { 24940 return graphql.Null 24941 } 24942 ctx = graphql.WithFieldContext(ctx, fc) 24943 defer func() { 24944 if r := recover(); r != nil { 24945 ec.Error(ctx, ec.Recover(ctx, r)) 24946 ret = graphql.Null 24947 } 24948 }() 24949 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24950 ctx = rctx // use context from middleware stack in children 24951 return obj.AttributeKeys(), nil 24952 }) 24953 if err != nil { 24954 ec.Error(ctx, err) 24955 return graphql.Null 24956 } 24957 if resTmp == nil { 24958 return graphql.Null 24959 } 24960 res := resTmp.([]string) 24961 fc.Result = res 24962 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 24963 } 24964 24965 func (ec *executionContext) fieldContext_Commerce_Product_Attributes_attributeKeys(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 24966 fc = &graphql.FieldContext{ 24967 Object: "Commerce_Product_Attributes", 24968 Field: field, 24969 IsMethod: true, 24970 IsResolver: false, 24971 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 24972 return nil, errors.New("field of type String does not have child fields") 24973 }, 24974 } 24975 return fc, nil 24976 } 24977 24978 func (ec *executionContext) _Commerce_Product_Attributes_attributes(ctx context.Context, field graphql.CollectedField, obj domain1.Attributes) (ret graphql.Marshaler) { 24979 fc, err := ec.fieldContext_Commerce_Product_Attributes_attributes(ctx, field) 24980 if err != nil { 24981 return graphql.Null 24982 } 24983 ctx = graphql.WithFieldContext(ctx, fc) 24984 defer func() { 24985 if r := recover(); r != nil { 24986 ec.Error(ctx, ec.Recover(ctx, r)) 24987 ret = graphql.Null 24988 } 24989 }() 24990 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24991 ctx = rctx // use context from middleware stack in children 24992 return obj.Attributes(), nil 24993 }) 24994 if err != nil { 24995 ec.Error(ctx, err) 24996 return graphql.Null 24997 } 24998 if resTmp == nil { 24999 return graphql.Null 25000 } 25001 res := resTmp.([]domain1.Attribute) 25002 fc.Result = res 25003 return ec.marshalOCommerce_Product_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributeᚄ(ctx, field.Selections, res) 25004 } 25005 25006 func (ec *executionContext) fieldContext_Commerce_Product_Attributes_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25007 fc = &graphql.FieldContext{ 25008 Object: "Commerce_Product_Attributes", 25009 Field: field, 25010 IsMethod: true, 25011 IsResolver: false, 25012 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25013 switch field.Name { 25014 case "code": 25015 return ec.fieldContext_Commerce_Product_Attribute_code(ctx, field) 25016 case "codeLabel": 25017 return ec.fieldContext_Commerce_Product_Attribute_codeLabel(ctx, field) 25018 case "label": 25019 return ec.fieldContext_Commerce_Product_Attribute_label(ctx, field) 25020 case "value": 25021 return ec.fieldContext_Commerce_Product_Attribute_value(ctx, field) 25022 case "unitCode": 25023 return ec.fieldContext_Commerce_Product_Attribute_unitCode(ctx, field) 25024 case "values": 25025 return ec.fieldContext_Commerce_Product_Attribute_values(ctx, field) 25026 case "labels": 25027 return ec.fieldContext_Commerce_Product_Attribute_labels(ctx, field) 25028 } 25029 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attribute", field.Name) 25030 }, 25031 } 25032 return fc, nil 25033 } 25034 25035 func (ec *executionContext) _Commerce_Product_Attributes_hasAttribute(ctx context.Context, field graphql.CollectedField, obj domain1.Attributes) (ret graphql.Marshaler) { 25036 fc, err := ec.fieldContext_Commerce_Product_Attributes_hasAttribute(ctx, field) 25037 if err != nil { 25038 return graphql.Null 25039 } 25040 ctx = graphql.WithFieldContext(ctx, fc) 25041 defer func() { 25042 if r := recover(); r != nil { 25043 ec.Error(ctx, ec.Recover(ctx, r)) 25044 ret = graphql.Null 25045 } 25046 }() 25047 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25048 ctx = rctx // use context from middleware stack in children 25049 return obj.HasAttribute(fc.Args["key"].(string)), nil 25050 }) 25051 if err != nil { 25052 ec.Error(ctx, err) 25053 return graphql.Null 25054 } 25055 if resTmp == nil { 25056 return graphql.Null 25057 } 25058 res := resTmp.(bool) 25059 fc.Result = res 25060 return ec.marshalOBoolean2bool(ctx, field.Selections, res) 25061 } 25062 25063 func (ec *executionContext) fieldContext_Commerce_Product_Attributes_hasAttribute(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25064 fc = &graphql.FieldContext{ 25065 Object: "Commerce_Product_Attributes", 25066 Field: field, 25067 IsMethod: true, 25068 IsResolver: false, 25069 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25070 return nil, errors.New("field of type Boolean does not have child fields") 25071 }, 25072 } 25073 defer func() { 25074 if r := recover(); r != nil { 25075 err = ec.Recover(ctx, r) 25076 ec.Error(ctx, err) 25077 } 25078 }() 25079 ctx = graphql.WithFieldContext(ctx, fc) 25080 if fc.Args, err = ec.field_Commerce_Product_Attributes_hasAttribute_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 25081 ec.Error(ctx, err) 25082 return fc, err 25083 } 25084 return fc, nil 25085 } 25086 25087 func (ec *executionContext) _Commerce_Product_Attributes_getAttribute(ctx context.Context, field graphql.CollectedField, obj domain1.Attributes) (ret graphql.Marshaler) { 25088 fc, err := ec.fieldContext_Commerce_Product_Attributes_getAttribute(ctx, field) 25089 if err != nil { 25090 return graphql.Null 25091 } 25092 ctx = graphql.WithFieldContext(ctx, fc) 25093 defer func() { 25094 if r := recover(); r != nil { 25095 ec.Error(ctx, ec.Recover(ctx, r)) 25096 ret = graphql.Null 25097 } 25098 }() 25099 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25100 ctx = rctx // use context from middleware stack in children 25101 return obj.Attribute(fc.Args["key"].(string)), nil 25102 }) 25103 if err != nil { 25104 ec.Error(ctx, err) 25105 return graphql.Null 25106 } 25107 if resTmp == nil { 25108 return graphql.Null 25109 } 25110 res := resTmp.(domain1.Attribute) 25111 fc.Result = res 25112 return ec.marshalOCommerce_Product_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttribute(ctx, field.Selections, res) 25113 } 25114 25115 func (ec *executionContext) fieldContext_Commerce_Product_Attributes_getAttribute(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25116 fc = &graphql.FieldContext{ 25117 Object: "Commerce_Product_Attributes", 25118 Field: field, 25119 IsMethod: true, 25120 IsResolver: false, 25121 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25122 switch field.Name { 25123 case "code": 25124 return ec.fieldContext_Commerce_Product_Attribute_code(ctx, field) 25125 case "codeLabel": 25126 return ec.fieldContext_Commerce_Product_Attribute_codeLabel(ctx, field) 25127 case "label": 25128 return ec.fieldContext_Commerce_Product_Attribute_label(ctx, field) 25129 case "value": 25130 return ec.fieldContext_Commerce_Product_Attribute_value(ctx, field) 25131 case "unitCode": 25132 return ec.fieldContext_Commerce_Product_Attribute_unitCode(ctx, field) 25133 case "values": 25134 return ec.fieldContext_Commerce_Product_Attribute_values(ctx, field) 25135 case "labels": 25136 return ec.fieldContext_Commerce_Product_Attribute_labels(ctx, field) 25137 } 25138 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attribute", field.Name) 25139 }, 25140 } 25141 defer func() { 25142 if r := recover(); r != nil { 25143 err = ec.Recover(ctx, r) 25144 ec.Error(ctx, err) 25145 } 25146 }() 25147 ctx = graphql.WithFieldContext(ctx, fc) 25148 if fc.Args, err = ec.field_Commerce_Product_Attributes_getAttribute_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 25149 ec.Error(ctx, err) 25150 return fc, err 25151 } 25152 return fc, nil 25153 } 25154 25155 func (ec *executionContext) _Commerce_Product_Attributes_getAttributesByKey(ctx context.Context, field graphql.CollectedField, obj domain1.Attributes) (ret graphql.Marshaler) { 25156 fc, err := ec.fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx, field) 25157 if err != nil { 25158 return graphql.Null 25159 } 25160 ctx = graphql.WithFieldContext(ctx, fc) 25161 defer func() { 25162 if r := recover(); r != nil { 25163 ec.Error(ctx, ec.Recover(ctx, r)) 25164 ret = graphql.Null 25165 } 25166 }() 25167 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25168 ctx = rctx // use context from middleware stack in children 25169 return obj.AttributesByKey(fc.Args["keys"].([]string)), nil 25170 }) 25171 if err != nil { 25172 ec.Error(ctx, err) 25173 return graphql.Null 25174 } 25175 if resTmp == nil { 25176 return graphql.Null 25177 } 25178 res := resTmp.([]domain1.Attribute) 25179 fc.Result = res 25180 return ec.marshalOCommerce_Product_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributeᚄ(ctx, field.Selections, res) 25181 } 25182 25183 func (ec *executionContext) fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25184 fc = &graphql.FieldContext{ 25185 Object: "Commerce_Product_Attributes", 25186 Field: field, 25187 IsMethod: true, 25188 IsResolver: false, 25189 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25190 switch field.Name { 25191 case "code": 25192 return ec.fieldContext_Commerce_Product_Attribute_code(ctx, field) 25193 case "codeLabel": 25194 return ec.fieldContext_Commerce_Product_Attribute_codeLabel(ctx, field) 25195 case "label": 25196 return ec.fieldContext_Commerce_Product_Attribute_label(ctx, field) 25197 case "value": 25198 return ec.fieldContext_Commerce_Product_Attribute_value(ctx, field) 25199 case "unitCode": 25200 return ec.fieldContext_Commerce_Product_Attribute_unitCode(ctx, field) 25201 case "values": 25202 return ec.fieldContext_Commerce_Product_Attribute_values(ctx, field) 25203 case "labels": 25204 return ec.fieldContext_Commerce_Product_Attribute_labels(ctx, field) 25205 } 25206 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attribute", field.Name) 25207 }, 25208 } 25209 defer func() { 25210 if r := recover(); r != nil { 25211 err = ec.Recover(ctx, r) 25212 ec.Error(ctx, err) 25213 } 25214 }() 25215 ctx = graphql.WithFieldContext(ctx, fc) 25216 if fc.Args, err = ec.field_Commerce_Product_Attributes_getAttributesByKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 25217 ec.Error(ctx, err) 25218 return fc, err 25219 } 25220 return fc, nil 25221 } 25222 25223 func (ec *executionContext) _Commerce_Product_Badge_code(ctx context.Context, field graphql.CollectedField, obj *domain1.Badge) (ret graphql.Marshaler) { 25224 fc, err := ec.fieldContext_Commerce_Product_Badge_code(ctx, field) 25225 if err != nil { 25226 return graphql.Null 25227 } 25228 ctx = graphql.WithFieldContext(ctx, fc) 25229 defer func() { 25230 if r := recover(); r != nil { 25231 ec.Error(ctx, ec.Recover(ctx, r)) 25232 ret = graphql.Null 25233 } 25234 }() 25235 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25236 ctx = rctx // use context from middleware stack in children 25237 return obj.Code, nil 25238 }) 25239 if err != nil { 25240 ec.Error(ctx, err) 25241 return graphql.Null 25242 } 25243 if resTmp == nil { 25244 if !graphql.HasFieldError(ctx, fc) { 25245 ec.Errorf(ctx, "must not be null") 25246 } 25247 return graphql.Null 25248 } 25249 res := resTmp.(string) 25250 fc.Result = res 25251 return ec.marshalNString2string(ctx, field.Selections, res) 25252 } 25253 25254 func (ec *executionContext) fieldContext_Commerce_Product_Badge_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25255 fc = &graphql.FieldContext{ 25256 Object: "Commerce_Product_Badge", 25257 Field: field, 25258 IsMethod: false, 25259 IsResolver: false, 25260 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25261 return nil, errors.New("field of type String does not have child fields") 25262 }, 25263 } 25264 return fc, nil 25265 } 25266 25267 func (ec *executionContext) _Commerce_Product_Badge_label(ctx context.Context, field graphql.CollectedField, obj *domain1.Badge) (ret graphql.Marshaler) { 25268 fc, err := ec.fieldContext_Commerce_Product_Badge_label(ctx, field) 25269 if err != nil { 25270 return graphql.Null 25271 } 25272 ctx = graphql.WithFieldContext(ctx, fc) 25273 defer func() { 25274 if r := recover(); r != nil { 25275 ec.Error(ctx, ec.Recover(ctx, r)) 25276 ret = graphql.Null 25277 } 25278 }() 25279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25280 ctx = rctx // use context from middleware stack in children 25281 return obj.Label, nil 25282 }) 25283 if err != nil { 25284 ec.Error(ctx, err) 25285 return graphql.Null 25286 } 25287 if resTmp == nil { 25288 if !graphql.HasFieldError(ctx, fc) { 25289 ec.Errorf(ctx, "must not be null") 25290 } 25291 return graphql.Null 25292 } 25293 res := resTmp.(string) 25294 fc.Result = res 25295 return ec.marshalNString2string(ctx, field.Selections, res) 25296 } 25297 25298 func (ec *executionContext) fieldContext_Commerce_Product_Badge_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25299 fc = &graphql.FieldContext{ 25300 Object: "Commerce_Product_Badge", 25301 Field: field, 25302 IsMethod: false, 25303 IsResolver: false, 25304 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25305 return nil, errors.New("field of type String does not have child fields") 25306 }, 25307 } 25308 return fc, nil 25309 } 25310 25311 func (ec *executionContext) _Commerce_Product_Badges_all(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductBadges) (ret graphql.Marshaler) { 25312 fc, err := ec.fieldContext_Commerce_Product_Badges_all(ctx, field) 25313 if err != nil { 25314 return graphql.Null 25315 } 25316 ctx = graphql.WithFieldContext(ctx, fc) 25317 defer func() { 25318 if r := recover(); r != nil { 25319 ec.Error(ctx, ec.Recover(ctx, r)) 25320 ret = graphql.Null 25321 } 25322 }() 25323 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25324 ctx = rctx // use context from middleware stack in children 25325 return obj.All, nil 25326 }) 25327 if err != nil { 25328 ec.Error(ctx, err) 25329 return graphql.Null 25330 } 25331 if resTmp == nil { 25332 return graphql.Null 25333 } 25334 res := resTmp.([]domain1.Badge) 25335 fc.Result = res 25336 return ec.marshalOCommerce_Product_Badge2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadgeᚄ(ctx, field.Selections, res) 25337 } 25338 25339 func (ec *executionContext) fieldContext_Commerce_Product_Badges_all(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25340 fc = &graphql.FieldContext{ 25341 Object: "Commerce_Product_Badges", 25342 Field: field, 25343 IsMethod: false, 25344 IsResolver: false, 25345 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25346 switch field.Name { 25347 case "code": 25348 return ec.fieldContext_Commerce_Product_Badge_code(ctx, field) 25349 case "label": 25350 return ec.fieldContext_Commerce_Product_Badge_label(ctx, field) 25351 } 25352 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badge", field.Name) 25353 }, 25354 } 25355 return fc, nil 25356 } 25357 25358 func (ec *executionContext) _Commerce_Product_Badges_first(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductBadges) (ret graphql.Marshaler) { 25359 fc, err := ec.fieldContext_Commerce_Product_Badges_first(ctx, field) 25360 if err != nil { 25361 return graphql.Null 25362 } 25363 ctx = graphql.WithFieldContext(ctx, fc) 25364 defer func() { 25365 if r := recover(); r != nil { 25366 ec.Error(ctx, ec.Recover(ctx, r)) 25367 ret = graphql.Null 25368 } 25369 }() 25370 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25371 ctx = rctx // use context from middleware stack in children 25372 return obj.First(), nil 25373 }) 25374 if err != nil { 25375 ec.Error(ctx, err) 25376 return graphql.Null 25377 } 25378 if resTmp == nil { 25379 return graphql.Null 25380 } 25381 res := resTmp.(*domain1.Badge) 25382 fc.Result = res 25383 return ec.marshalOCommerce_Product_Badge2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadge(ctx, field.Selections, res) 25384 } 25385 25386 func (ec *executionContext) fieldContext_Commerce_Product_Badges_first(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25387 fc = &graphql.FieldContext{ 25388 Object: "Commerce_Product_Badges", 25389 Field: field, 25390 IsMethod: true, 25391 IsResolver: false, 25392 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25393 switch field.Name { 25394 case "code": 25395 return ec.fieldContext_Commerce_Product_Badge_code(ctx, field) 25396 case "label": 25397 return ec.fieldContext_Commerce_Product_Badge_label(ctx, field) 25398 } 25399 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badge", field.Name) 25400 }, 25401 } 25402 return fc, nil 25403 } 25404 25405 func (ec *executionContext) _Commerce_Product_BundleProduct_type(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25406 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_type(ctx, field) 25407 if err != nil { 25408 return graphql.Null 25409 } 25410 ctx = graphql.WithFieldContext(ctx, fc) 25411 defer func() { 25412 if r := recover(); r != nil { 25413 ec.Error(ctx, ec.Recover(ctx, r)) 25414 ret = graphql.Null 25415 } 25416 }() 25417 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25418 ctx = rctx // use context from middleware stack in children 25419 return obj.Type(), nil 25420 }) 25421 if err != nil { 25422 ec.Error(ctx, err) 25423 return graphql.Null 25424 } 25425 if resTmp == nil { 25426 if !graphql.HasFieldError(ctx, fc) { 25427 ec.Errorf(ctx, "must not be null") 25428 } 25429 return graphql.Null 25430 } 25431 res := resTmp.(string) 25432 fc.Result = res 25433 return ec.marshalNString2string(ctx, field.Selections, res) 25434 } 25435 25436 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25437 fc = &graphql.FieldContext{ 25438 Object: "Commerce_Product_BundleProduct", 25439 Field: field, 25440 IsMethod: true, 25441 IsResolver: false, 25442 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25443 return nil, errors.New("field of type String does not have child fields") 25444 }, 25445 } 25446 return fc, nil 25447 } 25448 25449 func (ec *executionContext) _Commerce_Product_BundleProduct_marketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25450 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_marketPlaceCode(ctx, field) 25451 if err != nil { 25452 return graphql.Null 25453 } 25454 ctx = graphql.WithFieldContext(ctx, fc) 25455 defer func() { 25456 if r := recover(); r != nil { 25457 ec.Error(ctx, ec.Recover(ctx, r)) 25458 ret = graphql.Null 25459 } 25460 }() 25461 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25462 ctx = rctx // use context from middleware stack in children 25463 return obj.MarketPlaceCode(), nil 25464 }) 25465 if err != nil { 25466 ec.Error(ctx, err) 25467 return graphql.Null 25468 } 25469 if resTmp == nil { 25470 if !graphql.HasFieldError(ctx, fc) { 25471 ec.Errorf(ctx, "must not be null") 25472 } 25473 return graphql.Null 25474 } 25475 res := resTmp.(string) 25476 fc.Result = res 25477 return ec.marshalNString2string(ctx, field.Selections, res) 25478 } 25479 25480 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_marketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25481 fc = &graphql.FieldContext{ 25482 Object: "Commerce_Product_BundleProduct", 25483 Field: field, 25484 IsMethod: true, 25485 IsResolver: false, 25486 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25487 return nil, errors.New("field of type String does not have child fields") 25488 }, 25489 } 25490 return fc, nil 25491 } 25492 25493 func (ec *executionContext) _Commerce_Product_BundleProduct_identifier(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25494 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_identifier(ctx, field) 25495 if err != nil { 25496 return graphql.Null 25497 } 25498 ctx = graphql.WithFieldContext(ctx, fc) 25499 defer func() { 25500 if r := recover(); r != nil { 25501 ec.Error(ctx, ec.Recover(ctx, r)) 25502 ret = graphql.Null 25503 } 25504 }() 25505 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25506 ctx = rctx // use context from middleware stack in children 25507 return obj.Identifier(), nil 25508 }) 25509 if err != nil { 25510 ec.Error(ctx, err) 25511 return graphql.Null 25512 } 25513 if resTmp == nil { 25514 if !graphql.HasFieldError(ctx, fc) { 25515 ec.Errorf(ctx, "must not be null") 25516 } 25517 return graphql.Null 25518 } 25519 res := resTmp.(string) 25520 fc.Result = res 25521 return ec.marshalNString2string(ctx, field.Selections, res) 25522 } 25523 25524 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25525 fc = &graphql.FieldContext{ 25526 Object: "Commerce_Product_BundleProduct", 25527 Field: field, 25528 IsMethod: true, 25529 IsResolver: false, 25530 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25531 return nil, errors.New("field of type String does not have child fields") 25532 }, 25533 } 25534 return fc, nil 25535 } 25536 25537 func (ec *executionContext) _Commerce_Product_BundleProduct_media(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25538 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_media(ctx, field) 25539 if err != nil { 25540 return graphql.Null 25541 } 25542 ctx = graphql.WithFieldContext(ctx, fc) 25543 defer func() { 25544 if r := recover(); r != nil { 25545 ec.Error(ctx, ec.Recover(ctx, r)) 25546 ret = graphql.Null 25547 } 25548 }() 25549 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25550 ctx = rctx // use context from middleware stack in children 25551 return obj.Media(), nil 25552 }) 25553 if err != nil { 25554 ec.Error(ctx, err) 25555 return graphql.Null 25556 } 25557 if resTmp == nil { 25558 if !graphql.HasFieldError(ctx, fc) { 25559 ec.Errorf(ctx, "must not be null") 25560 } 25561 return graphql.Null 25562 } 25563 res := resTmp.(graphqlproductdto.ProductMedia) 25564 fc.Result = res 25565 return ec.marshalNCommerce_Product_Media2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMedia(ctx, field.Selections, res) 25566 } 25567 25568 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25569 fc = &graphql.FieldContext{ 25570 Object: "Commerce_Product_BundleProduct", 25571 Field: field, 25572 IsMethod: true, 25573 IsResolver: false, 25574 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25575 switch field.Name { 25576 case "all": 25577 return ec.fieldContext_Commerce_Product_Media_all(ctx, field) 25578 case "getMedia": 25579 return ec.fieldContext_Commerce_Product_Media_getMedia(ctx, field) 25580 } 25581 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Media", field.Name) 25582 }, 25583 } 25584 return fc, nil 25585 } 25586 25587 func (ec *executionContext) _Commerce_Product_BundleProduct_price(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25588 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_price(ctx, field) 25589 if err != nil { 25590 return graphql.Null 25591 } 25592 ctx = graphql.WithFieldContext(ctx, fc) 25593 defer func() { 25594 if r := recover(); r != nil { 25595 ec.Error(ctx, ec.Recover(ctx, r)) 25596 ret = graphql.Null 25597 } 25598 }() 25599 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25600 ctx = rctx // use context from middleware stack in children 25601 return obj.Price(), nil 25602 }) 25603 if err != nil { 25604 ec.Error(ctx, err) 25605 return graphql.Null 25606 } 25607 if resTmp == nil { 25608 if !graphql.HasFieldError(ctx, fc) { 25609 ec.Errorf(ctx, "must not be null") 25610 } 25611 return graphql.Null 25612 } 25613 res := resTmp.(domain1.PriceInfo) 25614 fc.Result = res 25615 return ec.marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx, field.Selections, res) 25616 } 25617 25618 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25619 fc = &graphql.FieldContext{ 25620 Object: "Commerce_Product_BundleProduct", 25621 Field: field, 25622 IsMethod: true, 25623 IsResolver: false, 25624 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25625 switch field.Name { 25626 case "default": 25627 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 25628 case "discounted": 25629 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 25630 case "discountText": 25631 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 25632 case "activeBase": 25633 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 25634 case "activeBaseAmount": 25635 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 25636 case "activeBaseUnit": 25637 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 25638 case "isDiscounted": 25639 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 25640 case "campaignRules": 25641 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 25642 case "denyMoreDiscounts": 25643 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 25644 case "context": 25645 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 25646 case "taxClass": 25647 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 25648 } 25649 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 25650 }, 25651 } 25652 return fc, nil 25653 } 25654 25655 func (ec *executionContext) _Commerce_Product_BundleProduct_availablePrices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25656 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_availablePrices(ctx, field) 25657 if err != nil { 25658 return graphql.Null 25659 } 25660 ctx = graphql.WithFieldContext(ctx, fc) 25661 defer func() { 25662 if r := recover(); r != nil { 25663 ec.Error(ctx, ec.Recover(ctx, r)) 25664 ret = graphql.Null 25665 } 25666 }() 25667 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25668 ctx = rctx // use context from middleware stack in children 25669 return obj.AvailablePrices(), nil 25670 }) 25671 if err != nil { 25672 ec.Error(ctx, err) 25673 return graphql.Null 25674 } 25675 if resTmp == nil { 25676 return graphql.Null 25677 } 25678 res := resTmp.([]domain1.PriceInfo) 25679 fc.Result = res 25680 return ec.marshalOCommerce_Product_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfoᚄ(ctx, field.Selections, res) 25681 } 25682 25683 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_availablePrices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25684 fc = &graphql.FieldContext{ 25685 Object: "Commerce_Product_BundleProduct", 25686 Field: field, 25687 IsMethod: true, 25688 IsResolver: false, 25689 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25690 switch field.Name { 25691 case "default": 25692 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 25693 case "discounted": 25694 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 25695 case "discountText": 25696 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 25697 case "activeBase": 25698 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 25699 case "activeBaseAmount": 25700 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 25701 case "activeBaseUnit": 25702 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 25703 case "isDiscounted": 25704 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 25705 case "campaignRules": 25706 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 25707 case "denyMoreDiscounts": 25708 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 25709 case "context": 25710 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 25711 case "taxClass": 25712 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 25713 } 25714 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 25715 }, 25716 } 25717 return fc, nil 25718 } 25719 25720 func (ec *executionContext) _Commerce_Product_BundleProduct_title(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25721 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_title(ctx, field) 25722 if err != nil { 25723 return graphql.Null 25724 } 25725 ctx = graphql.WithFieldContext(ctx, fc) 25726 defer func() { 25727 if r := recover(); r != nil { 25728 ec.Error(ctx, ec.Recover(ctx, r)) 25729 ret = graphql.Null 25730 } 25731 }() 25732 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25733 ctx = rctx // use context from middleware stack in children 25734 return obj.Title(), nil 25735 }) 25736 if err != nil { 25737 ec.Error(ctx, err) 25738 return graphql.Null 25739 } 25740 if resTmp == nil { 25741 if !graphql.HasFieldError(ctx, fc) { 25742 ec.Errorf(ctx, "must not be null") 25743 } 25744 return graphql.Null 25745 } 25746 res := resTmp.(string) 25747 fc.Result = res 25748 return ec.marshalNString2string(ctx, field.Selections, res) 25749 } 25750 25751 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25752 fc = &graphql.FieldContext{ 25753 Object: "Commerce_Product_BundleProduct", 25754 Field: field, 25755 IsMethod: true, 25756 IsResolver: false, 25757 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25758 return nil, errors.New("field of type String does not have child fields") 25759 }, 25760 } 25761 return fc, nil 25762 } 25763 25764 func (ec *executionContext) _Commerce_Product_BundleProduct_categories(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25765 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_categories(ctx, field) 25766 if err != nil { 25767 return graphql.Null 25768 } 25769 ctx = graphql.WithFieldContext(ctx, fc) 25770 defer func() { 25771 if r := recover(); r != nil { 25772 ec.Error(ctx, ec.Recover(ctx, r)) 25773 ret = graphql.Null 25774 } 25775 }() 25776 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25777 ctx = rctx // use context from middleware stack in children 25778 return obj.Categories(), nil 25779 }) 25780 if err != nil { 25781 ec.Error(ctx, err) 25782 return graphql.Null 25783 } 25784 if resTmp == nil { 25785 if !graphql.HasFieldError(ctx, fc) { 25786 ec.Errorf(ctx, "must not be null") 25787 } 25788 return graphql.Null 25789 } 25790 res := resTmp.(graphqlproductdto.ProductCategories) 25791 fc.Result = res 25792 return ec.marshalNCommerce_Product_Categories2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductCategories(ctx, field.Selections, res) 25793 } 25794 25795 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25796 fc = &graphql.FieldContext{ 25797 Object: "Commerce_Product_BundleProduct", 25798 Field: field, 25799 IsMethod: true, 25800 IsResolver: false, 25801 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25802 switch field.Name { 25803 case "main": 25804 return ec.fieldContext_Commerce_Product_Categories_main(ctx, field) 25805 case "all": 25806 return ec.fieldContext_Commerce_Product_Categories_all(ctx, field) 25807 } 25808 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Categories", field.Name) 25809 }, 25810 } 25811 return fc, nil 25812 } 25813 25814 func (ec *executionContext) _Commerce_Product_BundleProduct_description(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25815 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_description(ctx, field) 25816 if err != nil { 25817 return graphql.Null 25818 } 25819 ctx = graphql.WithFieldContext(ctx, fc) 25820 defer func() { 25821 if r := recover(); r != nil { 25822 ec.Error(ctx, ec.Recover(ctx, r)) 25823 ret = graphql.Null 25824 } 25825 }() 25826 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25827 ctx = rctx // use context from middleware stack in children 25828 return obj.Description(), nil 25829 }) 25830 if err != nil { 25831 ec.Error(ctx, err) 25832 return graphql.Null 25833 } 25834 if resTmp == nil { 25835 if !graphql.HasFieldError(ctx, fc) { 25836 ec.Errorf(ctx, "must not be null") 25837 } 25838 return graphql.Null 25839 } 25840 res := resTmp.(string) 25841 fc.Result = res 25842 return ec.marshalNString2string(ctx, field.Selections, res) 25843 } 25844 25845 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25846 fc = &graphql.FieldContext{ 25847 Object: "Commerce_Product_BundleProduct", 25848 Field: field, 25849 IsMethod: true, 25850 IsResolver: false, 25851 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25852 return nil, errors.New("field of type String does not have child fields") 25853 }, 25854 } 25855 return fc, nil 25856 } 25857 25858 func (ec *executionContext) _Commerce_Product_BundleProduct_shortDescription(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25859 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_shortDescription(ctx, field) 25860 if err != nil { 25861 return graphql.Null 25862 } 25863 ctx = graphql.WithFieldContext(ctx, fc) 25864 defer func() { 25865 if r := recover(); r != nil { 25866 ec.Error(ctx, ec.Recover(ctx, r)) 25867 ret = graphql.Null 25868 } 25869 }() 25870 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25871 ctx = rctx // use context from middleware stack in children 25872 return obj.ShortDescription(), nil 25873 }) 25874 if err != nil { 25875 ec.Error(ctx, err) 25876 return graphql.Null 25877 } 25878 if resTmp == nil { 25879 if !graphql.HasFieldError(ctx, fc) { 25880 ec.Errorf(ctx, "must not be null") 25881 } 25882 return graphql.Null 25883 } 25884 res := resTmp.(string) 25885 fc.Result = res 25886 return ec.marshalNString2string(ctx, field.Selections, res) 25887 } 25888 25889 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_shortDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25890 fc = &graphql.FieldContext{ 25891 Object: "Commerce_Product_BundleProduct", 25892 Field: field, 25893 IsMethod: true, 25894 IsResolver: false, 25895 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25896 return nil, errors.New("field of type String does not have child fields") 25897 }, 25898 } 25899 return fc, nil 25900 } 25901 25902 func (ec *executionContext) _Commerce_Product_BundleProduct_meta(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25903 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_meta(ctx, field) 25904 if err != nil { 25905 return graphql.Null 25906 } 25907 ctx = graphql.WithFieldContext(ctx, fc) 25908 defer func() { 25909 if r := recover(); r != nil { 25910 ec.Error(ctx, ec.Recover(ctx, r)) 25911 ret = graphql.Null 25912 } 25913 }() 25914 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25915 ctx = rctx // use context from middleware stack in children 25916 return obj.Meta(), nil 25917 }) 25918 if err != nil { 25919 ec.Error(ctx, err) 25920 return graphql.Null 25921 } 25922 if resTmp == nil { 25923 if !graphql.HasFieldError(ctx, fc) { 25924 ec.Errorf(ctx, "must not be null") 25925 } 25926 return graphql.Null 25927 } 25928 res := resTmp.(graphqlproductdto.ProductMeta) 25929 fc.Result = res 25930 return ec.marshalNCommerce_Product_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMeta(ctx, field.Selections, res) 25931 } 25932 25933 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25934 fc = &graphql.FieldContext{ 25935 Object: "Commerce_Product_BundleProduct", 25936 Field: field, 25937 IsMethod: true, 25938 IsResolver: false, 25939 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25940 switch field.Name { 25941 case "keywords": 25942 return ec.fieldContext_Commerce_Product_Meta_keywords(ctx, field) 25943 } 25944 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Meta", field.Name) 25945 }, 25946 } 25947 return fc, nil 25948 } 25949 25950 func (ec *executionContext) _Commerce_Product_BundleProduct_loyalty(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 25951 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_loyalty(ctx, field) 25952 if err != nil { 25953 return graphql.Null 25954 } 25955 ctx = graphql.WithFieldContext(ctx, fc) 25956 defer func() { 25957 if r := recover(); r != nil { 25958 ec.Error(ctx, ec.Recover(ctx, r)) 25959 ret = graphql.Null 25960 } 25961 }() 25962 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25963 ctx = rctx // use context from middleware stack in children 25964 return obj.Loyalty(), nil 25965 }) 25966 if err != nil { 25967 ec.Error(ctx, err) 25968 return graphql.Null 25969 } 25970 if resTmp == nil { 25971 if !graphql.HasFieldError(ctx, fc) { 25972 ec.Errorf(ctx, "must not be null") 25973 } 25974 return graphql.Null 25975 } 25976 res := resTmp.(graphqlproductdto.ProductLoyalty) 25977 fc.Result = res 25978 return ec.marshalNCommerce_Product_Loyalty2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductLoyalty(ctx, field.Selections, res) 25979 } 25980 25981 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_loyalty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 25982 fc = &graphql.FieldContext{ 25983 Object: "Commerce_Product_BundleProduct", 25984 Field: field, 25985 IsMethod: true, 25986 IsResolver: false, 25987 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 25988 switch field.Name { 25989 case "price": 25990 return ec.fieldContext_Commerce_Product_Loyalty_price(ctx, field) 25991 case "availablePrices": 25992 return ec.fieldContext_Commerce_Product_Loyalty_availablePrices(ctx, field) 25993 case "earning": 25994 return ec.fieldContext_Commerce_Product_Loyalty_earning(ctx, field) 25995 } 25996 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty", field.Name) 25997 }, 25998 } 25999 return fc, nil 26000 } 26001 26002 func (ec *executionContext) _Commerce_Product_BundleProduct_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 26003 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_attributes(ctx, field) 26004 if err != nil { 26005 return graphql.Null 26006 } 26007 ctx = graphql.WithFieldContext(ctx, fc) 26008 defer func() { 26009 if r := recover(); r != nil { 26010 ec.Error(ctx, ec.Recover(ctx, r)) 26011 ret = graphql.Null 26012 } 26013 }() 26014 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26015 ctx = rctx // use context from middleware stack in children 26016 return obj.Attributes(), nil 26017 }) 26018 if err != nil { 26019 ec.Error(ctx, err) 26020 return graphql.Null 26021 } 26022 if resTmp == nil { 26023 if !graphql.HasFieldError(ctx, fc) { 26024 ec.Errorf(ctx, "must not be null") 26025 } 26026 return graphql.Null 26027 } 26028 res := resTmp.(domain1.Attributes) 26029 fc.Result = res 26030 return ec.marshalNCommerce_Product_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributes(ctx, field.Selections, res) 26031 } 26032 26033 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26034 fc = &graphql.FieldContext{ 26035 Object: "Commerce_Product_BundleProduct", 26036 Field: field, 26037 IsMethod: true, 26038 IsResolver: false, 26039 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26040 switch field.Name { 26041 case "attributeKeys": 26042 return ec.fieldContext_Commerce_Product_Attributes_attributeKeys(ctx, field) 26043 case "attributes": 26044 return ec.fieldContext_Commerce_Product_Attributes_attributes(ctx, field) 26045 case "hasAttribute": 26046 return ec.fieldContext_Commerce_Product_Attributes_hasAttribute(ctx, field) 26047 case "getAttribute": 26048 return ec.fieldContext_Commerce_Product_Attributes_getAttribute(ctx, field) 26049 case "getAttributesByKey": 26050 return ec.fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx, field) 26051 } 26052 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attributes", field.Name) 26053 }, 26054 } 26055 return fc, nil 26056 } 26057 26058 func (ec *executionContext) _Commerce_Product_BundleProduct_badges(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 26059 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_badges(ctx, field) 26060 if err != nil { 26061 return graphql.Null 26062 } 26063 ctx = graphql.WithFieldContext(ctx, fc) 26064 defer func() { 26065 if r := recover(); r != nil { 26066 ec.Error(ctx, ec.Recover(ctx, r)) 26067 ret = graphql.Null 26068 } 26069 }() 26070 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26071 ctx = rctx // use context from middleware stack in children 26072 return obj.Badges(), nil 26073 }) 26074 if err != nil { 26075 ec.Error(ctx, err) 26076 return graphql.Null 26077 } 26078 if resTmp == nil { 26079 if !graphql.HasFieldError(ctx, fc) { 26080 ec.Errorf(ctx, "must not be null") 26081 } 26082 return graphql.Null 26083 } 26084 res := resTmp.(graphqlproductdto.ProductBadges) 26085 fc.Result = res 26086 return ec.marshalNCommerce_Product_Badges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductBadges(ctx, field.Selections, res) 26087 } 26088 26089 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_badges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26090 fc = &graphql.FieldContext{ 26091 Object: "Commerce_Product_BundleProduct", 26092 Field: field, 26093 IsMethod: true, 26094 IsResolver: false, 26095 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26096 switch field.Name { 26097 case "all": 26098 return ec.fieldContext_Commerce_Product_Badges_all(ctx, field) 26099 case "first": 26100 return ec.fieldContext_Commerce_Product_Badges_first(ctx, field) 26101 } 26102 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badges", field.Name) 26103 }, 26104 } 26105 return fc, nil 26106 } 26107 26108 func (ec *executionContext) _Commerce_Product_BundleProduct_choices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.BundleProduct) (ret graphql.Marshaler) { 26109 fc, err := ec.fieldContext_Commerce_Product_BundleProduct_choices(ctx, field) 26110 if err != nil { 26111 return graphql.Null 26112 } 26113 ctx = graphql.WithFieldContext(ctx, fc) 26114 defer func() { 26115 if r := recover(); r != nil { 26116 ec.Error(ctx, ec.Recover(ctx, r)) 26117 ret = graphql.Null 26118 } 26119 }() 26120 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26121 ctx = rctx // use context from middleware stack in children 26122 return obj.Choices, nil 26123 }) 26124 if err != nil { 26125 ec.Error(ctx, err) 26126 return graphql.Null 26127 } 26128 if resTmp == nil { 26129 return graphql.Null 26130 } 26131 res := resTmp.([]graphqlproductdto.Choice) 26132 fc.Result = res 26133 return ec.marshalOCommerce_Product_Choice2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceᚄ(ctx, field.Selections, res) 26134 } 26135 26136 func (ec *executionContext) fieldContext_Commerce_Product_BundleProduct_choices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26137 fc = &graphql.FieldContext{ 26138 Object: "Commerce_Product_BundleProduct", 26139 Field: field, 26140 IsMethod: false, 26141 IsResolver: false, 26142 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26143 switch field.Name { 26144 case "identifier": 26145 return ec.fieldContext_Commerce_Product_Choice_identifier(ctx, field) 26146 case "required": 26147 return ec.fieldContext_Commerce_Product_Choice_required(ctx, field) 26148 case "label": 26149 return ec.fieldContext_Commerce_Product_Choice_label(ctx, field) 26150 case "options": 26151 return ec.fieldContext_Commerce_Product_Choice_options(ctx, field) 26152 case "active": 26153 return ec.fieldContext_Commerce_Product_Choice_active(ctx, field) 26154 case "activeOption": 26155 return ec.fieldContext_Commerce_Product_Choice_activeOption(ctx, field) 26156 } 26157 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Choice", field.Name) 26158 }, 26159 } 26160 return fc, nil 26161 } 26162 26163 func (ec *executionContext) _Commerce_Product_Categories_main(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductCategories) (ret graphql.Marshaler) { 26164 fc, err := ec.fieldContext_Commerce_Product_Categories_main(ctx, field) 26165 if err != nil { 26166 return graphql.Null 26167 } 26168 ctx = graphql.WithFieldContext(ctx, fc) 26169 defer func() { 26170 if r := recover(); r != nil { 26171 ec.Error(ctx, ec.Recover(ctx, r)) 26172 ret = graphql.Null 26173 } 26174 }() 26175 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26176 ctx = rctx // use context from middleware stack in children 26177 return obj.Main, nil 26178 }) 26179 if err != nil { 26180 ec.Error(ctx, err) 26181 return graphql.Null 26182 } 26183 if resTmp == nil { 26184 if !graphql.HasFieldError(ctx, fc) { 26185 ec.Errorf(ctx, "must not be null") 26186 } 26187 return graphql.Null 26188 } 26189 res := resTmp.(domain1.CategoryTeaser) 26190 fc.Result = res 26191 return ec.marshalNCommerce_Product_CategoryTeaser2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaser(ctx, field.Selections, res) 26192 } 26193 26194 func (ec *executionContext) fieldContext_Commerce_Product_Categories_main(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26195 fc = &graphql.FieldContext{ 26196 Object: "Commerce_Product_Categories", 26197 Field: field, 26198 IsMethod: false, 26199 IsResolver: false, 26200 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26201 switch field.Name { 26202 case "code": 26203 return ec.fieldContext_Commerce_Product_CategoryTeaser_code(ctx, field) 26204 case "path": 26205 return ec.fieldContext_Commerce_Product_CategoryTeaser_path(ctx, field) 26206 case "name": 26207 return ec.fieldContext_Commerce_Product_CategoryTeaser_name(ctx, field) 26208 case "parent": 26209 return ec.fieldContext_Commerce_Product_CategoryTeaser_parent(ctx, field) 26210 } 26211 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_CategoryTeaser", field.Name) 26212 }, 26213 } 26214 return fc, nil 26215 } 26216 26217 func (ec *executionContext) _Commerce_Product_Categories_all(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductCategories) (ret graphql.Marshaler) { 26218 fc, err := ec.fieldContext_Commerce_Product_Categories_all(ctx, field) 26219 if err != nil { 26220 return graphql.Null 26221 } 26222 ctx = graphql.WithFieldContext(ctx, fc) 26223 defer func() { 26224 if r := recover(); r != nil { 26225 ec.Error(ctx, ec.Recover(ctx, r)) 26226 ret = graphql.Null 26227 } 26228 }() 26229 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26230 ctx = rctx // use context from middleware stack in children 26231 return obj.All, nil 26232 }) 26233 if err != nil { 26234 ec.Error(ctx, err) 26235 return graphql.Null 26236 } 26237 if resTmp == nil { 26238 return graphql.Null 26239 } 26240 res := resTmp.([]domain1.CategoryTeaser) 26241 fc.Result = res 26242 return ec.marshalOCommerce_Product_CategoryTeaser2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaserᚄ(ctx, field.Selections, res) 26243 } 26244 26245 func (ec *executionContext) fieldContext_Commerce_Product_Categories_all(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26246 fc = &graphql.FieldContext{ 26247 Object: "Commerce_Product_Categories", 26248 Field: field, 26249 IsMethod: false, 26250 IsResolver: false, 26251 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26252 switch field.Name { 26253 case "code": 26254 return ec.fieldContext_Commerce_Product_CategoryTeaser_code(ctx, field) 26255 case "path": 26256 return ec.fieldContext_Commerce_Product_CategoryTeaser_path(ctx, field) 26257 case "name": 26258 return ec.fieldContext_Commerce_Product_CategoryTeaser_name(ctx, field) 26259 case "parent": 26260 return ec.fieldContext_Commerce_Product_CategoryTeaser_parent(ctx, field) 26261 } 26262 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_CategoryTeaser", field.Name) 26263 }, 26264 } 26265 return fc, nil 26266 } 26267 26268 func (ec *executionContext) _Commerce_Product_CategoryTeaser_code(ctx context.Context, field graphql.CollectedField, obj *domain1.CategoryTeaser) (ret graphql.Marshaler) { 26269 fc, err := ec.fieldContext_Commerce_Product_CategoryTeaser_code(ctx, field) 26270 if err != nil { 26271 return graphql.Null 26272 } 26273 ctx = graphql.WithFieldContext(ctx, fc) 26274 defer func() { 26275 if r := recover(); r != nil { 26276 ec.Error(ctx, ec.Recover(ctx, r)) 26277 ret = graphql.Null 26278 } 26279 }() 26280 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26281 ctx = rctx // use context from middleware stack in children 26282 return obj.Code, nil 26283 }) 26284 if err != nil { 26285 ec.Error(ctx, err) 26286 return graphql.Null 26287 } 26288 if resTmp == nil { 26289 if !graphql.HasFieldError(ctx, fc) { 26290 ec.Errorf(ctx, "must not be null") 26291 } 26292 return graphql.Null 26293 } 26294 res := resTmp.(string) 26295 fc.Result = res 26296 return ec.marshalNString2string(ctx, field.Selections, res) 26297 } 26298 26299 func (ec *executionContext) fieldContext_Commerce_Product_CategoryTeaser_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26300 fc = &graphql.FieldContext{ 26301 Object: "Commerce_Product_CategoryTeaser", 26302 Field: field, 26303 IsMethod: false, 26304 IsResolver: false, 26305 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26306 return nil, errors.New("field of type String does not have child fields") 26307 }, 26308 } 26309 return fc, nil 26310 } 26311 26312 func (ec *executionContext) _Commerce_Product_CategoryTeaser_path(ctx context.Context, field graphql.CollectedField, obj *domain1.CategoryTeaser) (ret graphql.Marshaler) { 26313 fc, err := ec.fieldContext_Commerce_Product_CategoryTeaser_path(ctx, field) 26314 if err != nil { 26315 return graphql.Null 26316 } 26317 ctx = graphql.WithFieldContext(ctx, fc) 26318 defer func() { 26319 if r := recover(); r != nil { 26320 ec.Error(ctx, ec.Recover(ctx, r)) 26321 ret = graphql.Null 26322 } 26323 }() 26324 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26325 ctx = rctx // use context from middleware stack in children 26326 return obj.Path, nil 26327 }) 26328 if err != nil { 26329 ec.Error(ctx, err) 26330 return graphql.Null 26331 } 26332 if resTmp == nil { 26333 if !graphql.HasFieldError(ctx, fc) { 26334 ec.Errorf(ctx, "must not be null") 26335 } 26336 return graphql.Null 26337 } 26338 res := resTmp.(string) 26339 fc.Result = res 26340 return ec.marshalNString2string(ctx, field.Selections, res) 26341 } 26342 26343 func (ec *executionContext) fieldContext_Commerce_Product_CategoryTeaser_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26344 fc = &graphql.FieldContext{ 26345 Object: "Commerce_Product_CategoryTeaser", 26346 Field: field, 26347 IsMethod: false, 26348 IsResolver: false, 26349 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26350 return nil, errors.New("field of type String does not have child fields") 26351 }, 26352 } 26353 return fc, nil 26354 } 26355 26356 func (ec *executionContext) _Commerce_Product_CategoryTeaser_name(ctx context.Context, field graphql.CollectedField, obj *domain1.CategoryTeaser) (ret graphql.Marshaler) { 26357 fc, err := ec.fieldContext_Commerce_Product_CategoryTeaser_name(ctx, field) 26358 if err != nil { 26359 return graphql.Null 26360 } 26361 ctx = graphql.WithFieldContext(ctx, fc) 26362 defer func() { 26363 if r := recover(); r != nil { 26364 ec.Error(ctx, ec.Recover(ctx, r)) 26365 ret = graphql.Null 26366 } 26367 }() 26368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26369 ctx = rctx // use context from middleware stack in children 26370 return obj.Name, nil 26371 }) 26372 if err != nil { 26373 ec.Error(ctx, err) 26374 return graphql.Null 26375 } 26376 if resTmp == nil { 26377 if !graphql.HasFieldError(ctx, fc) { 26378 ec.Errorf(ctx, "must not be null") 26379 } 26380 return graphql.Null 26381 } 26382 res := resTmp.(string) 26383 fc.Result = res 26384 return ec.marshalNString2string(ctx, field.Selections, res) 26385 } 26386 26387 func (ec *executionContext) fieldContext_Commerce_Product_CategoryTeaser_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26388 fc = &graphql.FieldContext{ 26389 Object: "Commerce_Product_CategoryTeaser", 26390 Field: field, 26391 IsMethod: false, 26392 IsResolver: false, 26393 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26394 return nil, errors.New("field of type String does not have child fields") 26395 }, 26396 } 26397 return fc, nil 26398 } 26399 26400 func (ec *executionContext) _Commerce_Product_CategoryTeaser_parent(ctx context.Context, field graphql.CollectedField, obj *domain1.CategoryTeaser) (ret graphql.Marshaler) { 26401 fc, err := ec.fieldContext_Commerce_Product_CategoryTeaser_parent(ctx, field) 26402 if err != nil { 26403 return graphql.Null 26404 } 26405 ctx = graphql.WithFieldContext(ctx, fc) 26406 defer func() { 26407 if r := recover(); r != nil { 26408 ec.Error(ctx, ec.Recover(ctx, r)) 26409 ret = graphql.Null 26410 } 26411 }() 26412 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26413 ctx = rctx // use context from middleware stack in children 26414 return obj.Parent, nil 26415 }) 26416 if err != nil { 26417 ec.Error(ctx, err) 26418 return graphql.Null 26419 } 26420 if resTmp == nil { 26421 return graphql.Null 26422 } 26423 res := resTmp.(*domain1.CategoryTeaser) 26424 fc.Result = res 26425 return ec.marshalOCommerce_Product_CategoryTeaser2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaser(ctx, field.Selections, res) 26426 } 26427 26428 func (ec *executionContext) fieldContext_Commerce_Product_CategoryTeaser_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26429 fc = &graphql.FieldContext{ 26430 Object: "Commerce_Product_CategoryTeaser", 26431 Field: field, 26432 IsMethod: false, 26433 IsResolver: false, 26434 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26435 switch field.Name { 26436 case "code": 26437 return ec.fieldContext_Commerce_Product_CategoryTeaser_code(ctx, field) 26438 case "path": 26439 return ec.fieldContext_Commerce_Product_CategoryTeaser_path(ctx, field) 26440 case "name": 26441 return ec.fieldContext_Commerce_Product_CategoryTeaser_name(ctx, field) 26442 case "parent": 26443 return ec.fieldContext_Commerce_Product_CategoryTeaser_parent(ctx, field) 26444 } 26445 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_CategoryTeaser", field.Name) 26446 }, 26447 } 26448 return fc, nil 26449 } 26450 26451 func (ec *executionContext) _Commerce_Product_Choice_identifier(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26452 fc, err := ec.fieldContext_Commerce_Product_Choice_identifier(ctx, field) 26453 if err != nil { 26454 return graphql.Null 26455 } 26456 ctx = graphql.WithFieldContext(ctx, fc) 26457 defer func() { 26458 if r := recover(); r != nil { 26459 ec.Error(ctx, ec.Recover(ctx, r)) 26460 ret = graphql.Null 26461 } 26462 }() 26463 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26464 ctx = rctx // use context from middleware stack in children 26465 return obj.Identifier, nil 26466 }) 26467 if err != nil { 26468 ec.Error(ctx, err) 26469 return graphql.Null 26470 } 26471 if resTmp == nil { 26472 if !graphql.HasFieldError(ctx, fc) { 26473 ec.Errorf(ctx, "must not be null") 26474 } 26475 return graphql.Null 26476 } 26477 res := resTmp.(string) 26478 fc.Result = res 26479 return ec.marshalNString2string(ctx, field.Selections, res) 26480 } 26481 26482 func (ec *executionContext) fieldContext_Commerce_Product_Choice_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26483 fc = &graphql.FieldContext{ 26484 Object: "Commerce_Product_Choice", 26485 Field: field, 26486 IsMethod: false, 26487 IsResolver: false, 26488 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26489 return nil, errors.New("field of type String does not have child fields") 26490 }, 26491 } 26492 return fc, nil 26493 } 26494 26495 func (ec *executionContext) _Commerce_Product_Choice_required(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26496 fc, err := ec.fieldContext_Commerce_Product_Choice_required(ctx, field) 26497 if err != nil { 26498 return graphql.Null 26499 } 26500 ctx = graphql.WithFieldContext(ctx, fc) 26501 defer func() { 26502 if r := recover(); r != nil { 26503 ec.Error(ctx, ec.Recover(ctx, r)) 26504 ret = graphql.Null 26505 } 26506 }() 26507 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26508 ctx = rctx // use context from middleware stack in children 26509 return obj.Required, nil 26510 }) 26511 if err != nil { 26512 ec.Error(ctx, err) 26513 return graphql.Null 26514 } 26515 if resTmp == nil { 26516 if !graphql.HasFieldError(ctx, fc) { 26517 ec.Errorf(ctx, "must not be null") 26518 } 26519 return graphql.Null 26520 } 26521 res := resTmp.(bool) 26522 fc.Result = res 26523 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 26524 } 26525 26526 func (ec *executionContext) fieldContext_Commerce_Product_Choice_required(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26527 fc = &graphql.FieldContext{ 26528 Object: "Commerce_Product_Choice", 26529 Field: field, 26530 IsMethod: false, 26531 IsResolver: false, 26532 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26533 return nil, errors.New("field of type Boolean does not have child fields") 26534 }, 26535 } 26536 return fc, nil 26537 } 26538 26539 func (ec *executionContext) _Commerce_Product_Choice_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26540 fc, err := ec.fieldContext_Commerce_Product_Choice_label(ctx, field) 26541 if err != nil { 26542 return graphql.Null 26543 } 26544 ctx = graphql.WithFieldContext(ctx, fc) 26545 defer func() { 26546 if r := recover(); r != nil { 26547 ec.Error(ctx, ec.Recover(ctx, r)) 26548 ret = graphql.Null 26549 } 26550 }() 26551 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26552 ctx = rctx // use context from middleware stack in children 26553 return obj.Label, nil 26554 }) 26555 if err != nil { 26556 ec.Error(ctx, err) 26557 return graphql.Null 26558 } 26559 if resTmp == nil { 26560 if !graphql.HasFieldError(ctx, fc) { 26561 ec.Errorf(ctx, "must not be null") 26562 } 26563 return graphql.Null 26564 } 26565 res := resTmp.(string) 26566 fc.Result = res 26567 return ec.marshalNString2string(ctx, field.Selections, res) 26568 } 26569 26570 func (ec *executionContext) fieldContext_Commerce_Product_Choice_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26571 fc = &graphql.FieldContext{ 26572 Object: "Commerce_Product_Choice", 26573 Field: field, 26574 IsMethod: false, 26575 IsResolver: false, 26576 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26577 return nil, errors.New("field of type String does not have child fields") 26578 }, 26579 } 26580 return fc, nil 26581 } 26582 26583 func (ec *executionContext) _Commerce_Product_Choice_options(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26584 fc, err := ec.fieldContext_Commerce_Product_Choice_options(ctx, field) 26585 if err != nil { 26586 return graphql.Null 26587 } 26588 ctx = graphql.WithFieldContext(ctx, fc) 26589 defer func() { 26590 if r := recover(); r != nil { 26591 ec.Error(ctx, ec.Recover(ctx, r)) 26592 ret = graphql.Null 26593 } 26594 }() 26595 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26596 ctx = rctx // use context from middleware stack in children 26597 return obj.Options, nil 26598 }) 26599 if err != nil { 26600 ec.Error(ctx, err) 26601 return graphql.Null 26602 } 26603 if resTmp == nil { 26604 return graphql.Null 26605 } 26606 res := resTmp.([]graphqlproductdto.Option) 26607 fc.Result = res 26608 return ec.marshalOCommerce_Product_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOptionᚄ(ctx, field.Selections, res) 26609 } 26610 26611 func (ec *executionContext) fieldContext_Commerce_Product_Choice_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26612 fc = &graphql.FieldContext{ 26613 Object: "Commerce_Product_Choice", 26614 Field: field, 26615 IsMethod: false, 26616 IsResolver: false, 26617 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26618 switch field.Name { 26619 case "product": 26620 return ec.fieldContext_Commerce_Product_Option_product(ctx, field) 26621 case "qty": 26622 return ec.fieldContext_Commerce_Product_Option_qty(ctx, field) 26623 } 26624 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Option", field.Name) 26625 }, 26626 } 26627 return fc, nil 26628 } 26629 26630 func (ec *executionContext) _Commerce_Product_Choice_active(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26631 fc, err := ec.fieldContext_Commerce_Product_Choice_active(ctx, field) 26632 if err != nil { 26633 return graphql.Null 26634 } 26635 ctx = graphql.WithFieldContext(ctx, fc) 26636 defer func() { 26637 if r := recover(); r != nil { 26638 ec.Error(ctx, ec.Recover(ctx, r)) 26639 ret = graphql.Null 26640 } 26641 }() 26642 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26643 ctx = rctx // use context from middleware stack in children 26644 return obj.Active, nil 26645 }) 26646 if err != nil { 26647 ec.Error(ctx, err) 26648 return graphql.Null 26649 } 26650 if resTmp == nil { 26651 return graphql.Null 26652 } 26653 res := resTmp.(graphqlproductdto.Product) 26654 fc.Result = res 26655 return ec.marshalOCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx, field.Selections, res) 26656 } 26657 26658 func (ec *executionContext) fieldContext_Commerce_Product_Choice_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26659 fc = &graphql.FieldContext{ 26660 Object: "Commerce_Product_Choice", 26661 Field: field, 26662 IsMethod: false, 26663 IsResolver: false, 26664 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26665 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 26666 }, 26667 } 26668 return fc, nil 26669 } 26670 26671 func (ec *executionContext) _Commerce_Product_Choice_activeOption(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Choice) (ret graphql.Marshaler) { 26672 fc, err := ec.fieldContext_Commerce_Product_Choice_activeOption(ctx, field) 26673 if err != nil { 26674 return graphql.Null 26675 } 26676 ctx = graphql.WithFieldContext(ctx, fc) 26677 defer func() { 26678 if r := recover(); r != nil { 26679 ec.Error(ctx, ec.Recover(ctx, r)) 26680 ret = graphql.Null 26681 } 26682 }() 26683 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26684 ctx = rctx // use context from middleware stack in children 26685 return obj.ActiveOption, nil 26686 }) 26687 if err != nil { 26688 ec.Error(ctx, err) 26689 return graphql.Null 26690 } 26691 if resTmp == nil { 26692 return graphql.Null 26693 } 26694 res := resTmp.(*graphqlproductdto.Option) 26695 fc.Result = res 26696 return ec.marshalOCommerce_Product_Option2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOption(ctx, field.Selections, res) 26697 } 26698 26699 func (ec *executionContext) fieldContext_Commerce_Product_Choice_activeOption(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26700 fc = &graphql.FieldContext{ 26701 Object: "Commerce_Product_Choice", 26702 Field: field, 26703 IsMethod: false, 26704 IsResolver: false, 26705 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26706 switch field.Name { 26707 case "product": 26708 return ec.fieldContext_Commerce_Product_Option_product(ctx, field) 26709 case "qty": 26710 return ec.fieldContext_Commerce_Product_Option_qty(ctx, field) 26711 } 26712 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Option", field.Name) 26713 }, 26714 } 26715 return fc, nil 26716 } 26717 26718 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_type(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26719 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_type(ctx, field) 26720 if err != nil { 26721 return graphql.Null 26722 } 26723 ctx = graphql.WithFieldContext(ctx, fc) 26724 defer func() { 26725 if r := recover(); r != nil { 26726 ec.Error(ctx, ec.Recover(ctx, r)) 26727 ret = graphql.Null 26728 } 26729 }() 26730 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26731 ctx = rctx // use context from middleware stack in children 26732 return obj.Type(), nil 26733 }) 26734 if err != nil { 26735 ec.Error(ctx, err) 26736 return graphql.Null 26737 } 26738 if resTmp == nil { 26739 if !graphql.HasFieldError(ctx, fc) { 26740 ec.Errorf(ctx, "must not be null") 26741 } 26742 return graphql.Null 26743 } 26744 res := resTmp.(string) 26745 fc.Result = res 26746 return ec.marshalNString2string(ctx, field.Selections, res) 26747 } 26748 26749 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26750 fc = &graphql.FieldContext{ 26751 Object: "Commerce_Product_ConfigurableProduct", 26752 Field: field, 26753 IsMethod: true, 26754 IsResolver: false, 26755 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26756 return nil, errors.New("field of type String does not have child fields") 26757 }, 26758 } 26759 return fc, nil 26760 } 26761 26762 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_marketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26763 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_marketPlaceCode(ctx, field) 26764 if err != nil { 26765 return graphql.Null 26766 } 26767 ctx = graphql.WithFieldContext(ctx, fc) 26768 defer func() { 26769 if r := recover(); r != nil { 26770 ec.Error(ctx, ec.Recover(ctx, r)) 26771 ret = graphql.Null 26772 } 26773 }() 26774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26775 ctx = rctx // use context from middleware stack in children 26776 return obj.MarketPlaceCode(), nil 26777 }) 26778 if err != nil { 26779 ec.Error(ctx, err) 26780 return graphql.Null 26781 } 26782 if resTmp == nil { 26783 if !graphql.HasFieldError(ctx, fc) { 26784 ec.Errorf(ctx, "must not be null") 26785 } 26786 return graphql.Null 26787 } 26788 res := resTmp.(string) 26789 fc.Result = res 26790 return ec.marshalNString2string(ctx, field.Selections, res) 26791 } 26792 26793 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_marketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26794 fc = &graphql.FieldContext{ 26795 Object: "Commerce_Product_ConfigurableProduct", 26796 Field: field, 26797 IsMethod: true, 26798 IsResolver: false, 26799 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26800 return nil, errors.New("field of type String does not have child fields") 26801 }, 26802 } 26803 return fc, nil 26804 } 26805 26806 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_identifier(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26807 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_identifier(ctx, field) 26808 if err != nil { 26809 return graphql.Null 26810 } 26811 ctx = graphql.WithFieldContext(ctx, fc) 26812 defer func() { 26813 if r := recover(); r != nil { 26814 ec.Error(ctx, ec.Recover(ctx, r)) 26815 ret = graphql.Null 26816 } 26817 }() 26818 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26819 ctx = rctx // use context from middleware stack in children 26820 return obj.Identifier(), nil 26821 }) 26822 if err != nil { 26823 ec.Error(ctx, err) 26824 return graphql.Null 26825 } 26826 if resTmp == nil { 26827 if !graphql.HasFieldError(ctx, fc) { 26828 ec.Errorf(ctx, "must not be null") 26829 } 26830 return graphql.Null 26831 } 26832 res := resTmp.(string) 26833 fc.Result = res 26834 return ec.marshalNString2string(ctx, field.Selections, res) 26835 } 26836 26837 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26838 fc = &graphql.FieldContext{ 26839 Object: "Commerce_Product_ConfigurableProduct", 26840 Field: field, 26841 IsMethod: true, 26842 IsResolver: false, 26843 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26844 return nil, errors.New("field of type String does not have child fields") 26845 }, 26846 } 26847 return fc, nil 26848 } 26849 26850 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_media(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26851 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_media(ctx, field) 26852 if err != nil { 26853 return graphql.Null 26854 } 26855 ctx = graphql.WithFieldContext(ctx, fc) 26856 defer func() { 26857 if r := recover(); r != nil { 26858 ec.Error(ctx, ec.Recover(ctx, r)) 26859 ret = graphql.Null 26860 } 26861 }() 26862 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26863 ctx = rctx // use context from middleware stack in children 26864 return obj.Media(), nil 26865 }) 26866 if err != nil { 26867 ec.Error(ctx, err) 26868 return graphql.Null 26869 } 26870 if resTmp == nil { 26871 if !graphql.HasFieldError(ctx, fc) { 26872 ec.Errorf(ctx, "must not be null") 26873 } 26874 return graphql.Null 26875 } 26876 res := resTmp.(graphqlproductdto.ProductMedia) 26877 fc.Result = res 26878 return ec.marshalNCommerce_Product_Media2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMedia(ctx, field.Selections, res) 26879 } 26880 26881 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26882 fc = &graphql.FieldContext{ 26883 Object: "Commerce_Product_ConfigurableProduct", 26884 Field: field, 26885 IsMethod: true, 26886 IsResolver: false, 26887 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26888 switch field.Name { 26889 case "all": 26890 return ec.fieldContext_Commerce_Product_Media_all(ctx, field) 26891 case "getMedia": 26892 return ec.fieldContext_Commerce_Product_Media_getMedia(ctx, field) 26893 } 26894 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Media", field.Name) 26895 }, 26896 } 26897 return fc, nil 26898 } 26899 26900 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_price(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26901 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_price(ctx, field) 26902 if err != nil { 26903 return graphql.Null 26904 } 26905 ctx = graphql.WithFieldContext(ctx, fc) 26906 defer func() { 26907 if r := recover(); r != nil { 26908 ec.Error(ctx, ec.Recover(ctx, r)) 26909 ret = graphql.Null 26910 } 26911 }() 26912 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26913 ctx = rctx // use context from middleware stack in children 26914 return obj.Price(), nil 26915 }) 26916 if err != nil { 26917 ec.Error(ctx, err) 26918 return graphql.Null 26919 } 26920 if resTmp == nil { 26921 if !graphql.HasFieldError(ctx, fc) { 26922 ec.Errorf(ctx, "must not be null") 26923 } 26924 return graphql.Null 26925 } 26926 res := resTmp.(domain1.PriceInfo) 26927 fc.Result = res 26928 return ec.marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx, field.Selections, res) 26929 } 26930 26931 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26932 fc = &graphql.FieldContext{ 26933 Object: "Commerce_Product_ConfigurableProduct", 26934 Field: field, 26935 IsMethod: true, 26936 IsResolver: false, 26937 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 26938 switch field.Name { 26939 case "default": 26940 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 26941 case "discounted": 26942 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 26943 case "discountText": 26944 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 26945 case "activeBase": 26946 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 26947 case "activeBaseAmount": 26948 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 26949 case "activeBaseUnit": 26950 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 26951 case "isDiscounted": 26952 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 26953 case "campaignRules": 26954 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 26955 case "denyMoreDiscounts": 26956 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 26957 case "context": 26958 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 26959 case "taxClass": 26960 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 26961 } 26962 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 26963 }, 26964 } 26965 return fc, nil 26966 } 26967 26968 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_availablePrices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 26969 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_availablePrices(ctx, field) 26970 if err != nil { 26971 return graphql.Null 26972 } 26973 ctx = graphql.WithFieldContext(ctx, fc) 26974 defer func() { 26975 if r := recover(); r != nil { 26976 ec.Error(ctx, ec.Recover(ctx, r)) 26977 ret = graphql.Null 26978 } 26979 }() 26980 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26981 ctx = rctx // use context from middleware stack in children 26982 return obj.AvailablePrices(), nil 26983 }) 26984 if err != nil { 26985 ec.Error(ctx, err) 26986 return graphql.Null 26987 } 26988 if resTmp == nil { 26989 return graphql.Null 26990 } 26991 res := resTmp.([]domain1.PriceInfo) 26992 fc.Result = res 26993 return ec.marshalOCommerce_Product_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfoᚄ(ctx, field.Selections, res) 26994 } 26995 26996 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_availablePrices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 26997 fc = &graphql.FieldContext{ 26998 Object: "Commerce_Product_ConfigurableProduct", 26999 Field: field, 27000 IsMethod: true, 27001 IsResolver: false, 27002 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27003 switch field.Name { 27004 case "default": 27005 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 27006 case "discounted": 27007 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 27008 case "discountText": 27009 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 27010 case "activeBase": 27011 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 27012 case "activeBaseAmount": 27013 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 27014 case "activeBaseUnit": 27015 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 27016 case "isDiscounted": 27017 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 27018 case "campaignRules": 27019 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 27020 case "denyMoreDiscounts": 27021 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 27022 case "context": 27023 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 27024 case "taxClass": 27025 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 27026 } 27027 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 27028 }, 27029 } 27030 return fc, nil 27031 } 27032 27033 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_title(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27034 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_title(ctx, field) 27035 if err != nil { 27036 return graphql.Null 27037 } 27038 ctx = graphql.WithFieldContext(ctx, fc) 27039 defer func() { 27040 if r := recover(); r != nil { 27041 ec.Error(ctx, ec.Recover(ctx, r)) 27042 ret = graphql.Null 27043 } 27044 }() 27045 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27046 ctx = rctx // use context from middleware stack in children 27047 return obj.Title(), nil 27048 }) 27049 if err != nil { 27050 ec.Error(ctx, err) 27051 return graphql.Null 27052 } 27053 if resTmp == nil { 27054 if !graphql.HasFieldError(ctx, fc) { 27055 ec.Errorf(ctx, "must not be null") 27056 } 27057 return graphql.Null 27058 } 27059 res := resTmp.(string) 27060 fc.Result = res 27061 return ec.marshalNString2string(ctx, field.Selections, res) 27062 } 27063 27064 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27065 fc = &graphql.FieldContext{ 27066 Object: "Commerce_Product_ConfigurableProduct", 27067 Field: field, 27068 IsMethod: true, 27069 IsResolver: false, 27070 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27071 return nil, errors.New("field of type String does not have child fields") 27072 }, 27073 } 27074 return fc, nil 27075 } 27076 27077 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_categories(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27078 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_categories(ctx, field) 27079 if err != nil { 27080 return graphql.Null 27081 } 27082 ctx = graphql.WithFieldContext(ctx, fc) 27083 defer func() { 27084 if r := recover(); r != nil { 27085 ec.Error(ctx, ec.Recover(ctx, r)) 27086 ret = graphql.Null 27087 } 27088 }() 27089 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27090 ctx = rctx // use context from middleware stack in children 27091 return obj.Categories(), nil 27092 }) 27093 if err != nil { 27094 ec.Error(ctx, err) 27095 return graphql.Null 27096 } 27097 if resTmp == nil { 27098 if !graphql.HasFieldError(ctx, fc) { 27099 ec.Errorf(ctx, "must not be null") 27100 } 27101 return graphql.Null 27102 } 27103 res := resTmp.(graphqlproductdto.ProductCategories) 27104 fc.Result = res 27105 return ec.marshalNCommerce_Product_Categories2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductCategories(ctx, field.Selections, res) 27106 } 27107 27108 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27109 fc = &graphql.FieldContext{ 27110 Object: "Commerce_Product_ConfigurableProduct", 27111 Field: field, 27112 IsMethod: true, 27113 IsResolver: false, 27114 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27115 switch field.Name { 27116 case "main": 27117 return ec.fieldContext_Commerce_Product_Categories_main(ctx, field) 27118 case "all": 27119 return ec.fieldContext_Commerce_Product_Categories_all(ctx, field) 27120 } 27121 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Categories", field.Name) 27122 }, 27123 } 27124 return fc, nil 27125 } 27126 27127 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_description(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27128 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_description(ctx, field) 27129 if err != nil { 27130 return graphql.Null 27131 } 27132 ctx = graphql.WithFieldContext(ctx, fc) 27133 defer func() { 27134 if r := recover(); r != nil { 27135 ec.Error(ctx, ec.Recover(ctx, r)) 27136 ret = graphql.Null 27137 } 27138 }() 27139 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27140 ctx = rctx // use context from middleware stack in children 27141 return obj.Description(), nil 27142 }) 27143 if err != nil { 27144 ec.Error(ctx, err) 27145 return graphql.Null 27146 } 27147 if resTmp == nil { 27148 if !graphql.HasFieldError(ctx, fc) { 27149 ec.Errorf(ctx, "must not be null") 27150 } 27151 return graphql.Null 27152 } 27153 res := resTmp.(string) 27154 fc.Result = res 27155 return ec.marshalNString2string(ctx, field.Selections, res) 27156 } 27157 27158 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27159 fc = &graphql.FieldContext{ 27160 Object: "Commerce_Product_ConfigurableProduct", 27161 Field: field, 27162 IsMethod: true, 27163 IsResolver: false, 27164 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27165 return nil, errors.New("field of type String does not have child fields") 27166 }, 27167 } 27168 return fc, nil 27169 } 27170 27171 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_shortDescription(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27172 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_shortDescription(ctx, field) 27173 if err != nil { 27174 return graphql.Null 27175 } 27176 ctx = graphql.WithFieldContext(ctx, fc) 27177 defer func() { 27178 if r := recover(); r != nil { 27179 ec.Error(ctx, ec.Recover(ctx, r)) 27180 ret = graphql.Null 27181 } 27182 }() 27183 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27184 ctx = rctx // use context from middleware stack in children 27185 return obj.ShortDescription(), nil 27186 }) 27187 if err != nil { 27188 ec.Error(ctx, err) 27189 return graphql.Null 27190 } 27191 if resTmp == nil { 27192 if !graphql.HasFieldError(ctx, fc) { 27193 ec.Errorf(ctx, "must not be null") 27194 } 27195 return graphql.Null 27196 } 27197 res := resTmp.(string) 27198 fc.Result = res 27199 return ec.marshalNString2string(ctx, field.Selections, res) 27200 } 27201 27202 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_shortDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27203 fc = &graphql.FieldContext{ 27204 Object: "Commerce_Product_ConfigurableProduct", 27205 Field: field, 27206 IsMethod: true, 27207 IsResolver: false, 27208 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27209 return nil, errors.New("field of type String does not have child fields") 27210 }, 27211 } 27212 return fc, nil 27213 } 27214 27215 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_meta(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27216 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_meta(ctx, field) 27217 if err != nil { 27218 return graphql.Null 27219 } 27220 ctx = graphql.WithFieldContext(ctx, fc) 27221 defer func() { 27222 if r := recover(); r != nil { 27223 ec.Error(ctx, ec.Recover(ctx, r)) 27224 ret = graphql.Null 27225 } 27226 }() 27227 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27228 ctx = rctx // use context from middleware stack in children 27229 return obj.Meta(), nil 27230 }) 27231 if err != nil { 27232 ec.Error(ctx, err) 27233 return graphql.Null 27234 } 27235 if resTmp == nil { 27236 if !graphql.HasFieldError(ctx, fc) { 27237 ec.Errorf(ctx, "must not be null") 27238 } 27239 return graphql.Null 27240 } 27241 res := resTmp.(graphqlproductdto.ProductMeta) 27242 fc.Result = res 27243 return ec.marshalNCommerce_Product_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMeta(ctx, field.Selections, res) 27244 } 27245 27246 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27247 fc = &graphql.FieldContext{ 27248 Object: "Commerce_Product_ConfigurableProduct", 27249 Field: field, 27250 IsMethod: true, 27251 IsResolver: false, 27252 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27253 switch field.Name { 27254 case "keywords": 27255 return ec.fieldContext_Commerce_Product_Meta_keywords(ctx, field) 27256 } 27257 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Meta", field.Name) 27258 }, 27259 } 27260 return fc, nil 27261 } 27262 27263 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_loyalty(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27264 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_loyalty(ctx, field) 27265 if err != nil { 27266 return graphql.Null 27267 } 27268 ctx = graphql.WithFieldContext(ctx, fc) 27269 defer func() { 27270 if r := recover(); r != nil { 27271 ec.Error(ctx, ec.Recover(ctx, r)) 27272 ret = graphql.Null 27273 } 27274 }() 27275 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27276 ctx = rctx // use context from middleware stack in children 27277 return obj.Loyalty(), nil 27278 }) 27279 if err != nil { 27280 ec.Error(ctx, err) 27281 return graphql.Null 27282 } 27283 if resTmp == nil { 27284 if !graphql.HasFieldError(ctx, fc) { 27285 ec.Errorf(ctx, "must not be null") 27286 } 27287 return graphql.Null 27288 } 27289 res := resTmp.(graphqlproductdto.ProductLoyalty) 27290 fc.Result = res 27291 return ec.marshalNCommerce_Product_Loyalty2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductLoyalty(ctx, field.Selections, res) 27292 } 27293 27294 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_loyalty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27295 fc = &graphql.FieldContext{ 27296 Object: "Commerce_Product_ConfigurableProduct", 27297 Field: field, 27298 IsMethod: true, 27299 IsResolver: false, 27300 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27301 switch field.Name { 27302 case "price": 27303 return ec.fieldContext_Commerce_Product_Loyalty_price(ctx, field) 27304 case "availablePrices": 27305 return ec.fieldContext_Commerce_Product_Loyalty_availablePrices(ctx, field) 27306 case "earning": 27307 return ec.fieldContext_Commerce_Product_Loyalty_earning(ctx, field) 27308 } 27309 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty", field.Name) 27310 }, 27311 } 27312 return fc, nil 27313 } 27314 27315 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27316 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_attributes(ctx, field) 27317 if err != nil { 27318 return graphql.Null 27319 } 27320 ctx = graphql.WithFieldContext(ctx, fc) 27321 defer func() { 27322 if r := recover(); r != nil { 27323 ec.Error(ctx, ec.Recover(ctx, r)) 27324 ret = graphql.Null 27325 } 27326 }() 27327 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27328 ctx = rctx // use context from middleware stack in children 27329 return obj.Attributes(), nil 27330 }) 27331 if err != nil { 27332 ec.Error(ctx, err) 27333 return graphql.Null 27334 } 27335 if resTmp == nil { 27336 if !graphql.HasFieldError(ctx, fc) { 27337 ec.Errorf(ctx, "must not be null") 27338 } 27339 return graphql.Null 27340 } 27341 res := resTmp.(domain1.Attributes) 27342 fc.Result = res 27343 return ec.marshalNCommerce_Product_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributes(ctx, field.Selections, res) 27344 } 27345 27346 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27347 fc = &graphql.FieldContext{ 27348 Object: "Commerce_Product_ConfigurableProduct", 27349 Field: field, 27350 IsMethod: true, 27351 IsResolver: false, 27352 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27353 switch field.Name { 27354 case "attributeKeys": 27355 return ec.fieldContext_Commerce_Product_Attributes_attributeKeys(ctx, field) 27356 case "attributes": 27357 return ec.fieldContext_Commerce_Product_Attributes_attributes(ctx, field) 27358 case "hasAttribute": 27359 return ec.fieldContext_Commerce_Product_Attributes_hasAttribute(ctx, field) 27360 case "getAttribute": 27361 return ec.fieldContext_Commerce_Product_Attributes_getAttribute(ctx, field) 27362 case "getAttributesByKey": 27363 return ec.fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx, field) 27364 } 27365 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attributes", field.Name) 27366 }, 27367 } 27368 return fc, nil 27369 } 27370 27371 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_variantSelection(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27372 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_variantSelection(ctx, field) 27373 if err != nil { 27374 return graphql.Null 27375 } 27376 ctx = graphql.WithFieldContext(ctx, fc) 27377 defer func() { 27378 if r := recover(); r != nil { 27379 ec.Error(ctx, ec.Recover(ctx, r)) 27380 ret = graphql.Null 27381 } 27382 }() 27383 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27384 ctx = rctx // use context from middleware stack in children 27385 return obj.VariantSelection(), nil 27386 }) 27387 if err != nil { 27388 ec.Error(ctx, err) 27389 return graphql.Null 27390 } 27391 if resTmp == nil { 27392 if !graphql.HasFieldError(ctx, fc) { 27393 ec.Errorf(ctx, "must not be null") 27394 } 27395 return graphql.Null 27396 } 27397 res := resTmp.(graphqlproductdto.VariantSelection) 27398 fc.Result = res 27399 return ec.marshalNCommerce_Product_VariantSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelection(ctx, field.Selections, res) 27400 } 27401 27402 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_variantSelection(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27403 fc = &graphql.FieldContext{ 27404 Object: "Commerce_Product_ConfigurableProduct", 27405 Field: field, 27406 IsMethod: true, 27407 IsResolver: false, 27408 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27409 switch field.Name { 27410 case "variants": 27411 return ec.fieldContext_Commerce_Product_VariantSelection_variants(ctx, field) 27412 case "attributes": 27413 return ec.fieldContext_Commerce_Product_VariantSelection_attributes(ctx, field) 27414 } 27415 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection", field.Name) 27416 }, 27417 } 27418 return fc, nil 27419 } 27420 27421 func (ec *executionContext) _Commerce_Product_ConfigurableProduct_badges(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ConfigurableProduct) (ret graphql.Marshaler) { 27422 fc, err := ec.fieldContext_Commerce_Product_ConfigurableProduct_badges(ctx, field) 27423 if err != nil { 27424 return graphql.Null 27425 } 27426 ctx = graphql.WithFieldContext(ctx, fc) 27427 defer func() { 27428 if r := recover(); r != nil { 27429 ec.Error(ctx, ec.Recover(ctx, r)) 27430 ret = graphql.Null 27431 } 27432 }() 27433 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27434 ctx = rctx // use context from middleware stack in children 27435 return obj.Badges(), nil 27436 }) 27437 if err != nil { 27438 ec.Error(ctx, err) 27439 return graphql.Null 27440 } 27441 if resTmp == nil { 27442 if !graphql.HasFieldError(ctx, fc) { 27443 ec.Errorf(ctx, "must not be null") 27444 } 27445 return graphql.Null 27446 } 27447 res := resTmp.(graphqlproductdto.ProductBadges) 27448 fc.Result = res 27449 return ec.marshalNCommerce_Product_Badges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductBadges(ctx, field.Selections, res) 27450 } 27451 27452 func (ec *executionContext) fieldContext_Commerce_Product_ConfigurableProduct_badges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27453 fc = &graphql.FieldContext{ 27454 Object: "Commerce_Product_ConfigurableProduct", 27455 Field: field, 27456 IsMethod: true, 27457 IsResolver: false, 27458 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27459 switch field.Name { 27460 case "all": 27461 return ec.fieldContext_Commerce_Product_Badges_all(ctx, field) 27462 case "first": 27463 return ec.fieldContext_Commerce_Product_Badges_first(ctx, field) 27464 } 27465 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badges", field.Name) 27466 }, 27467 } 27468 return fc, nil 27469 } 27470 27471 func (ec *executionContext) _Commerce_Product_Loyalty_price(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductLoyalty) (ret graphql.Marshaler) { 27472 fc, err := ec.fieldContext_Commerce_Product_Loyalty_price(ctx, field) 27473 if err != nil { 27474 return graphql.Null 27475 } 27476 ctx = graphql.WithFieldContext(ctx, fc) 27477 defer func() { 27478 if r := recover(); r != nil { 27479 ec.Error(ctx, ec.Recover(ctx, r)) 27480 ret = graphql.Null 27481 } 27482 }() 27483 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27484 ctx = rctx // use context from middleware stack in children 27485 return obj.Price, nil 27486 }) 27487 if err != nil { 27488 ec.Error(ctx, err) 27489 return graphql.Null 27490 } 27491 if resTmp == nil { 27492 return graphql.Null 27493 } 27494 res := resTmp.(*domain1.LoyaltyPriceInfo) 27495 fc.Result = res 27496 return ec.marshalOCommerce_Product_Loyalty_PriceInfo2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfo(ctx, field.Selections, res) 27497 } 27498 27499 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27500 fc = &graphql.FieldContext{ 27501 Object: "Commerce_Product_Loyalty", 27502 Field: field, 27503 IsMethod: false, 27504 IsResolver: false, 27505 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27506 switch field.Name { 27507 case "type": 27508 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_type(ctx, field) 27509 case "default": 27510 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_default(ctx, field) 27511 case "isDiscounted": 27512 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_isDiscounted(ctx, field) 27513 case "discounted": 27514 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discounted(ctx, field) 27515 case "discountText": 27516 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discountText(ctx, field) 27517 case "minPointsToSpent": 27518 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(ctx, field) 27519 case "maxPointsToSpent": 27520 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(ctx, field) 27521 case "context": 27522 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_context(ctx, field) 27523 } 27524 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty_PriceInfo", field.Name) 27525 }, 27526 } 27527 return fc, nil 27528 } 27529 27530 func (ec *executionContext) _Commerce_Product_Loyalty_availablePrices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductLoyalty) (ret graphql.Marshaler) { 27531 fc, err := ec.fieldContext_Commerce_Product_Loyalty_availablePrices(ctx, field) 27532 if err != nil { 27533 return graphql.Null 27534 } 27535 ctx = graphql.WithFieldContext(ctx, fc) 27536 defer func() { 27537 if r := recover(); r != nil { 27538 ec.Error(ctx, ec.Recover(ctx, r)) 27539 ret = graphql.Null 27540 } 27541 }() 27542 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27543 ctx = rctx // use context from middleware stack in children 27544 return obj.AvailablePrices, nil 27545 }) 27546 if err != nil { 27547 ec.Error(ctx, err) 27548 return graphql.Null 27549 } 27550 if resTmp == nil { 27551 return graphql.Null 27552 } 27553 res := resTmp.([]domain1.LoyaltyPriceInfo) 27554 fc.Result = res 27555 return ec.marshalOCommerce_Product_Loyalty_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfoᚄ(ctx, field.Selections, res) 27556 } 27557 27558 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_availablePrices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27559 fc = &graphql.FieldContext{ 27560 Object: "Commerce_Product_Loyalty", 27561 Field: field, 27562 IsMethod: false, 27563 IsResolver: false, 27564 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27565 switch field.Name { 27566 case "type": 27567 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_type(ctx, field) 27568 case "default": 27569 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_default(ctx, field) 27570 case "isDiscounted": 27571 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_isDiscounted(ctx, field) 27572 case "discounted": 27573 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discounted(ctx, field) 27574 case "discountText": 27575 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discountText(ctx, field) 27576 case "minPointsToSpent": 27577 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(ctx, field) 27578 case "maxPointsToSpent": 27579 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(ctx, field) 27580 case "context": 27581 return ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_context(ctx, field) 27582 } 27583 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty_PriceInfo", field.Name) 27584 }, 27585 } 27586 return fc, nil 27587 } 27588 27589 func (ec *executionContext) _Commerce_Product_Loyalty_earning(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductLoyalty) (ret graphql.Marshaler) { 27590 fc, err := ec.fieldContext_Commerce_Product_Loyalty_earning(ctx, field) 27591 if err != nil { 27592 return graphql.Null 27593 } 27594 ctx = graphql.WithFieldContext(ctx, fc) 27595 defer func() { 27596 if r := recover(); r != nil { 27597 ec.Error(ctx, ec.Recover(ctx, r)) 27598 ret = graphql.Null 27599 } 27600 }() 27601 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27602 ctx = rctx // use context from middleware stack in children 27603 return obj.Earning, nil 27604 }) 27605 if err != nil { 27606 ec.Error(ctx, err) 27607 return graphql.Null 27608 } 27609 if resTmp == nil { 27610 return graphql.Null 27611 } 27612 res := resTmp.(*domain1.LoyaltyEarningInfo) 27613 fc.Result = res 27614 return ec.marshalOCommerce_Product_Loyalty_EarningInfo2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyEarningInfo(ctx, field.Selections, res) 27615 } 27616 27617 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_earning(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27618 fc = &graphql.FieldContext{ 27619 Object: "Commerce_Product_Loyalty", 27620 Field: field, 27621 IsMethod: false, 27622 IsResolver: false, 27623 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27624 switch field.Name { 27625 case "type": 27626 return ec.fieldContext_Commerce_Product_Loyalty_EarningInfo_type(ctx, field) 27627 case "default": 27628 return ec.fieldContext_Commerce_Product_Loyalty_EarningInfo_default(ctx, field) 27629 } 27630 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty_EarningInfo", field.Name) 27631 }, 27632 } 27633 return fc, nil 27634 } 27635 27636 func (ec *executionContext) _Commerce_Product_Loyalty_EarningInfo_type(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyEarningInfo) (ret graphql.Marshaler) { 27637 fc, err := ec.fieldContext_Commerce_Product_Loyalty_EarningInfo_type(ctx, field) 27638 if err != nil { 27639 return graphql.Null 27640 } 27641 ctx = graphql.WithFieldContext(ctx, fc) 27642 defer func() { 27643 if r := recover(); r != nil { 27644 ec.Error(ctx, ec.Recover(ctx, r)) 27645 ret = graphql.Null 27646 } 27647 }() 27648 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27649 ctx = rctx // use context from middleware stack in children 27650 return obj.Type, nil 27651 }) 27652 if err != nil { 27653 ec.Error(ctx, err) 27654 return graphql.Null 27655 } 27656 if resTmp == nil { 27657 if !graphql.HasFieldError(ctx, fc) { 27658 ec.Errorf(ctx, "must not be null") 27659 } 27660 return graphql.Null 27661 } 27662 res := resTmp.(string) 27663 fc.Result = res 27664 return ec.marshalNString2string(ctx, field.Selections, res) 27665 } 27666 27667 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_EarningInfo_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27668 fc = &graphql.FieldContext{ 27669 Object: "Commerce_Product_Loyalty_EarningInfo", 27670 Field: field, 27671 IsMethod: false, 27672 IsResolver: false, 27673 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27674 return nil, errors.New("field of type String does not have child fields") 27675 }, 27676 } 27677 return fc, nil 27678 } 27679 27680 func (ec *executionContext) _Commerce_Product_Loyalty_EarningInfo_default(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyEarningInfo) (ret graphql.Marshaler) { 27681 fc, err := ec.fieldContext_Commerce_Product_Loyalty_EarningInfo_default(ctx, field) 27682 if err != nil { 27683 return graphql.Null 27684 } 27685 ctx = graphql.WithFieldContext(ctx, fc) 27686 defer func() { 27687 if r := recover(); r != nil { 27688 ec.Error(ctx, ec.Recover(ctx, r)) 27689 ret = graphql.Null 27690 } 27691 }() 27692 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27693 ctx = rctx // use context from middleware stack in children 27694 return obj.Default, nil 27695 }) 27696 if err != nil { 27697 ec.Error(ctx, err) 27698 return graphql.Null 27699 } 27700 if resTmp == nil { 27701 if !graphql.HasFieldError(ctx, fc) { 27702 ec.Errorf(ctx, "must not be null") 27703 } 27704 return graphql.Null 27705 } 27706 res := resTmp.(domain.Price) 27707 fc.Result = res 27708 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 27709 } 27710 27711 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_EarningInfo_default(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27712 fc = &graphql.FieldContext{ 27713 Object: "Commerce_Product_Loyalty_EarningInfo", 27714 Field: field, 27715 IsMethod: false, 27716 IsResolver: false, 27717 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27718 switch field.Name { 27719 case "amount": 27720 return ec.fieldContext_Commerce_Price_amount(ctx, field) 27721 case "currency": 27722 return ec.fieldContext_Commerce_Price_currency(ctx, field) 27723 } 27724 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 27725 }, 27726 } 27727 return fc, nil 27728 } 27729 27730 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_type(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27731 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_type(ctx, field) 27732 if err != nil { 27733 return graphql.Null 27734 } 27735 ctx = graphql.WithFieldContext(ctx, fc) 27736 defer func() { 27737 if r := recover(); r != nil { 27738 ec.Error(ctx, ec.Recover(ctx, r)) 27739 ret = graphql.Null 27740 } 27741 }() 27742 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27743 ctx = rctx // use context from middleware stack in children 27744 return obj.Type, nil 27745 }) 27746 if err != nil { 27747 ec.Error(ctx, err) 27748 return graphql.Null 27749 } 27750 if resTmp == nil { 27751 if !graphql.HasFieldError(ctx, fc) { 27752 ec.Errorf(ctx, "must not be null") 27753 } 27754 return graphql.Null 27755 } 27756 res := resTmp.(string) 27757 fc.Result = res 27758 return ec.marshalNString2string(ctx, field.Selections, res) 27759 } 27760 27761 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27762 fc = &graphql.FieldContext{ 27763 Object: "Commerce_Product_Loyalty_PriceInfo", 27764 Field: field, 27765 IsMethod: false, 27766 IsResolver: false, 27767 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27768 return nil, errors.New("field of type String does not have child fields") 27769 }, 27770 } 27771 return fc, nil 27772 } 27773 27774 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_default(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27775 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_default(ctx, field) 27776 if err != nil { 27777 return graphql.Null 27778 } 27779 ctx = graphql.WithFieldContext(ctx, fc) 27780 defer func() { 27781 if r := recover(); r != nil { 27782 ec.Error(ctx, ec.Recover(ctx, r)) 27783 ret = graphql.Null 27784 } 27785 }() 27786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27787 ctx = rctx // use context from middleware stack in children 27788 return obj.Default, nil 27789 }) 27790 if err != nil { 27791 ec.Error(ctx, err) 27792 return graphql.Null 27793 } 27794 if resTmp == nil { 27795 if !graphql.HasFieldError(ctx, fc) { 27796 ec.Errorf(ctx, "must not be null") 27797 } 27798 return graphql.Null 27799 } 27800 res := resTmp.(domain.Price) 27801 fc.Result = res 27802 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 27803 } 27804 27805 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_default(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27806 fc = &graphql.FieldContext{ 27807 Object: "Commerce_Product_Loyalty_PriceInfo", 27808 Field: field, 27809 IsMethod: false, 27810 IsResolver: false, 27811 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27812 switch field.Name { 27813 case "amount": 27814 return ec.fieldContext_Commerce_Price_amount(ctx, field) 27815 case "currency": 27816 return ec.fieldContext_Commerce_Price_currency(ctx, field) 27817 } 27818 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 27819 }, 27820 } 27821 return fc, nil 27822 } 27823 27824 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_isDiscounted(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27825 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_isDiscounted(ctx, field) 27826 if err != nil { 27827 return graphql.Null 27828 } 27829 ctx = graphql.WithFieldContext(ctx, fc) 27830 defer func() { 27831 if r := recover(); r != nil { 27832 ec.Error(ctx, ec.Recover(ctx, r)) 27833 ret = graphql.Null 27834 } 27835 }() 27836 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27837 ctx = rctx // use context from middleware stack in children 27838 return obj.IsDiscounted, nil 27839 }) 27840 if err != nil { 27841 ec.Error(ctx, err) 27842 return graphql.Null 27843 } 27844 if resTmp == nil { 27845 if !graphql.HasFieldError(ctx, fc) { 27846 ec.Errorf(ctx, "must not be null") 27847 } 27848 return graphql.Null 27849 } 27850 res := resTmp.(bool) 27851 fc.Result = res 27852 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 27853 } 27854 27855 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_isDiscounted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27856 fc = &graphql.FieldContext{ 27857 Object: "Commerce_Product_Loyalty_PriceInfo", 27858 Field: field, 27859 IsMethod: false, 27860 IsResolver: false, 27861 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27862 return nil, errors.New("field of type Boolean does not have child fields") 27863 }, 27864 } 27865 return fc, nil 27866 } 27867 27868 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_discounted(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27869 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discounted(ctx, field) 27870 if err != nil { 27871 return graphql.Null 27872 } 27873 ctx = graphql.WithFieldContext(ctx, fc) 27874 defer func() { 27875 if r := recover(); r != nil { 27876 ec.Error(ctx, ec.Recover(ctx, r)) 27877 ret = graphql.Null 27878 } 27879 }() 27880 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27881 ctx = rctx // use context from middleware stack in children 27882 return obj.Discounted, nil 27883 }) 27884 if err != nil { 27885 ec.Error(ctx, err) 27886 return graphql.Null 27887 } 27888 if resTmp == nil { 27889 if !graphql.HasFieldError(ctx, fc) { 27890 ec.Errorf(ctx, "must not be null") 27891 } 27892 return graphql.Null 27893 } 27894 res := resTmp.(domain.Price) 27895 fc.Result = res 27896 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 27897 } 27898 27899 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_discounted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27900 fc = &graphql.FieldContext{ 27901 Object: "Commerce_Product_Loyalty_PriceInfo", 27902 Field: field, 27903 IsMethod: false, 27904 IsResolver: false, 27905 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27906 switch field.Name { 27907 case "amount": 27908 return ec.fieldContext_Commerce_Price_amount(ctx, field) 27909 case "currency": 27910 return ec.fieldContext_Commerce_Price_currency(ctx, field) 27911 } 27912 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 27913 }, 27914 } 27915 return fc, nil 27916 } 27917 27918 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_discountText(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27919 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_discountText(ctx, field) 27920 if err != nil { 27921 return graphql.Null 27922 } 27923 ctx = graphql.WithFieldContext(ctx, fc) 27924 defer func() { 27925 if r := recover(); r != nil { 27926 ec.Error(ctx, ec.Recover(ctx, r)) 27927 ret = graphql.Null 27928 } 27929 }() 27930 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27931 ctx = rctx // use context from middleware stack in children 27932 return obj.DiscountText, nil 27933 }) 27934 if err != nil { 27935 ec.Error(ctx, err) 27936 return graphql.Null 27937 } 27938 if resTmp == nil { 27939 if !graphql.HasFieldError(ctx, fc) { 27940 ec.Errorf(ctx, "must not be null") 27941 } 27942 return graphql.Null 27943 } 27944 res := resTmp.(string) 27945 fc.Result = res 27946 return ec.marshalNString2string(ctx, field.Selections, res) 27947 } 27948 27949 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_discountText(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27950 fc = &graphql.FieldContext{ 27951 Object: "Commerce_Product_Loyalty_PriceInfo", 27952 Field: field, 27953 IsMethod: false, 27954 IsResolver: false, 27955 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 27956 return nil, errors.New("field of type String does not have child fields") 27957 }, 27958 } 27959 return fc, nil 27960 } 27961 27962 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 27963 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(ctx, field) 27964 if err != nil { 27965 return graphql.Null 27966 } 27967 ctx = graphql.WithFieldContext(ctx, fc) 27968 defer func() { 27969 if r := recover(); r != nil { 27970 ec.Error(ctx, ec.Recover(ctx, r)) 27971 ret = graphql.Null 27972 } 27973 }() 27974 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27975 ctx = rctx // use context from middleware stack in children 27976 return obj.MinPointsToSpent, nil 27977 }) 27978 if err != nil { 27979 ec.Error(ctx, err) 27980 return graphql.Null 27981 } 27982 if resTmp == nil { 27983 if !graphql.HasFieldError(ctx, fc) { 27984 ec.Errorf(ctx, "must not be null") 27985 } 27986 return graphql.Null 27987 } 27988 res := resTmp.(big.Float) 27989 fc.Result = res 27990 return ec.marshalNFloat2mathᚋbigᚐFloat(ctx, field.Selections, res) 27991 } 27992 27993 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 27994 fc = &graphql.FieldContext{ 27995 Object: "Commerce_Product_Loyalty_PriceInfo", 27996 Field: field, 27997 IsMethod: false, 27998 IsResolver: false, 27999 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28000 return nil, errors.New("field of type Float does not have child fields") 28001 }, 28002 } 28003 return fc, nil 28004 } 28005 28006 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 28007 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(ctx, field) 28008 if err != nil { 28009 return graphql.Null 28010 } 28011 ctx = graphql.WithFieldContext(ctx, fc) 28012 defer func() { 28013 if r := recover(); r != nil { 28014 ec.Error(ctx, ec.Recover(ctx, r)) 28015 ret = graphql.Null 28016 } 28017 }() 28018 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28019 ctx = rctx // use context from middleware stack in children 28020 return obj.MaxPointsToSpent, nil 28021 }) 28022 if err != nil { 28023 ec.Error(ctx, err) 28024 return graphql.Null 28025 } 28026 if resTmp == nil { 28027 if !graphql.HasFieldError(ctx, fc) { 28028 ec.Errorf(ctx, "must not be null") 28029 } 28030 return graphql.Null 28031 } 28032 res := resTmp.(*big.Float) 28033 fc.Result = res 28034 return ec.marshalNFloat2ᚖmathᚋbigᚐFloat(ctx, field.Selections, res) 28035 } 28036 28037 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28038 fc = &graphql.FieldContext{ 28039 Object: "Commerce_Product_Loyalty_PriceInfo", 28040 Field: field, 28041 IsMethod: false, 28042 IsResolver: false, 28043 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28044 return nil, errors.New("field of type Float does not have child fields") 28045 }, 28046 } 28047 return fc, nil 28048 } 28049 28050 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo_context(ctx context.Context, field graphql.CollectedField, obj *domain1.LoyaltyPriceInfo) (ret graphql.Marshaler) { 28051 fc, err := ec.fieldContext_Commerce_Product_Loyalty_PriceInfo_context(ctx, field) 28052 if err != nil { 28053 return graphql.Null 28054 } 28055 ctx = graphql.WithFieldContext(ctx, fc) 28056 defer func() { 28057 if r := recover(); r != nil { 28058 ec.Error(ctx, ec.Recover(ctx, r)) 28059 ret = graphql.Null 28060 } 28061 }() 28062 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28063 ctx = rctx // use context from middleware stack in children 28064 return obj.Context, nil 28065 }) 28066 if err != nil { 28067 ec.Error(ctx, err) 28068 return graphql.Null 28069 } 28070 if resTmp == nil { 28071 if !graphql.HasFieldError(ctx, fc) { 28072 ec.Errorf(ctx, "must not be null") 28073 } 28074 return graphql.Null 28075 } 28076 res := resTmp.(domain1.PriceContext) 28077 fc.Result = res 28078 return ec.marshalNCommerce_Product_PriceContext2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceContext(ctx, field.Selections, res) 28079 } 28080 28081 func (ec *executionContext) fieldContext_Commerce_Product_Loyalty_PriceInfo_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28082 fc = &graphql.FieldContext{ 28083 Object: "Commerce_Product_Loyalty_PriceInfo", 28084 Field: field, 28085 IsMethod: false, 28086 IsResolver: false, 28087 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28088 switch field.Name { 28089 case "customerGroup": 28090 return ec.fieldContext_Commerce_Product_PriceContext_customerGroup(ctx, field) 28091 case "deliveryCode": 28092 return ec.fieldContext_Commerce_Product_PriceContext_deliveryCode(ctx, field) 28093 case "channelCode": 28094 return ec.fieldContext_Commerce_Product_PriceContext_channelCode(ctx, field) 28095 case "locale": 28096 return ec.fieldContext_Commerce_Product_PriceContext_locale(ctx, field) 28097 } 28098 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceContext", field.Name) 28099 }, 28100 } 28101 return fc, nil 28102 } 28103 28104 func (ec *executionContext) _Commerce_Product_Media_all(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductMedia) (ret graphql.Marshaler) { 28105 fc, err := ec.fieldContext_Commerce_Product_Media_all(ctx, field) 28106 if err != nil { 28107 return graphql.Null 28108 } 28109 ctx = graphql.WithFieldContext(ctx, fc) 28110 defer func() { 28111 if r := recover(); r != nil { 28112 ec.Error(ctx, ec.Recover(ctx, r)) 28113 ret = graphql.Null 28114 } 28115 }() 28116 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28117 ctx = rctx // use context from middleware stack in children 28118 return obj.All, nil 28119 }) 28120 if err != nil { 28121 ec.Error(ctx, err) 28122 return graphql.Null 28123 } 28124 if resTmp == nil { 28125 return graphql.Null 28126 } 28127 res := resTmp.([]domain1.Media) 28128 fc.Result = res 28129 return ec.marshalOCommerce_Product_MediaItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMediaᚄ(ctx, field.Selections, res) 28130 } 28131 28132 func (ec *executionContext) fieldContext_Commerce_Product_Media_all(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28133 fc = &graphql.FieldContext{ 28134 Object: "Commerce_Product_Media", 28135 Field: field, 28136 IsMethod: false, 28137 IsResolver: false, 28138 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28139 switch field.Name { 28140 case "type": 28141 return ec.fieldContext_Commerce_Product_MediaItem_type(ctx, field) 28142 case "mimeType": 28143 return ec.fieldContext_Commerce_Product_MediaItem_mimeType(ctx, field) 28144 case "usage": 28145 return ec.fieldContext_Commerce_Product_MediaItem_usage(ctx, field) 28146 case "title": 28147 return ec.fieldContext_Commerce_Product_MediaItem_title(ctx, field) 28148 case "reference": 28149 return ec.fieldContext_Commerce_Product_MediaItem_reference(ctx, field) 28150 } 28151 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_MediaItem", field.Name) 28152 }, 28153 } 28154 return fc, nil 28155 } 28156 28157 func (ec *executionContext) _Commerce_Product_Media_getMedia(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductMedia) (ret graphql.Marshaler) { 28158 fc, err := ec.fieldContext_Commerce_Product_Media_getMedia(ctx, field) 28159 if err != nil { 28160 return graphql.Null 28161 } 28162 ctx = graphql.WithFieldContext(ctx, fc) 28163 defer func() { 28164 if r := recover(); r != nil { 28165 ec.Error(ctx, ec.Recover(ctx, r)) 28166 ret = graphql.Null 28167 } 28168 }() 28169 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28170 ctx = rctx // use context from middleware stack in children 28171 return obj.GetMedia(fc.Args["usage"].(string)), nil 28172 }) 28173 if err != nil { 28174 ec.Error(ctx, err) 28175 return graphql.Null 28176 } 28177 if resTmp == nil { 28178 if !graphql.HasFieldError(ctx, fc) { 28179 ec.Errorf(ctx, "must not be null") 28180 } 28181 return graphql.Null 28182 } 28183 res := resTmp.(*domain1.Media) 28184 fc.Result = res 28185 return ec.marshalNCommerce_Product_MediaItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMedia(ctx, field.Selections, res) 28186 } 28187 28188 func (ec *executionContext) fieldContext_Commerce_Product_Media_getMedia(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28189 fc = &graphql.FieldContext{ 28190 Object: "Commerce_Product_Media", 28191 Field: field, 28192 IsMethod: true, 28193 IsResolver: false, 28194 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28195 switch field.Name { 28196 case "type": 28197 return ec.fieldContext_Commerce_Product_MediaItem_type(ctx, field) 28198 case "mimeType": 28199 return ec.fieldContext_Commerce_Product_MediaItem_mimeType(ctx, field) 28200 case "usage": 28201 return ec.fieldContext_Commerce_Product_MediaItem_usage(ctx, field) 28202 case "title": 28203 return ec.fieldContext_Commerce_Product_MediaItem_title(ctx, field) 28204 case "reference": 28205 return ec.fieldContext_Commerce_Product_MediaItem_reference(ctx, field) 28206 } 28207 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_MediaItem", field.Name) 28208 }, 28209 } 28210 defer func() { 28211 if r := recover(); r != nil { 28212 err = ec.Recover(ctx, r) 28213 ec.Error(ctx, err) 28214 } 28215 }() 28216 ctx = graphql.WithFieldContext(ctx, fc) 28217 if fc.Args, err = ec.field_Commerce_Product_Media_getMedia_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 28218 ec.Error(ctx, err) 28219 return fc, err 28220 } 28221 return fc, nil 28222 } 28223 28224 func (ec *executionContext) _Commerce_Product_MediaItem_type(ctx context.Context, field graphql.CollectedField, obj *domain1.Media) (ret graphql.Marshaler) { 28225 fc, err := ec.fieldContext_Commerce_Product_MediaItem_type(ctx, field) 28226 if err != nil { 28227 return graphql.Null 28228 } 28229 ctx = graphql.WithFieldContext(ctx, fc) 28230 defer func() { 28231 if r := recover(); r != nil { 28232 ec.Error(ctx, ec.Recover(ctx, r)) 28233 ret = graphql.Null 28234 } 28235 }() 28236 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28237 ctx = rctx // use context from middleware stack in children 28238 return obj.Type, nil 28239 }) 28240 if err != nil { 28241 ec.Error(ctx, err) 28242 return graphql.Null 28243 } 28244 if resTmp == nil { 28245 if !graphql.HasFieldError(ctx, fc) { 28246 ec.Errorf(ctx, "must not be null") 28247 } 28248 return graphql.Null 28249 } 28250 res := resTmp.(string) 28251 fc.Result = res 28252 return ec.marshalNString2string(ctx, field.Selections, res) 28253 } 28254 28255 func (ec *executionContext) fieldContext_Commerce_Product_MediaItem_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28256 fc = &graphql.FieldContext{ 28257 Object: "Commerce_Product_MediaItem", 28258 Field: field, 28259 IsMethod: false, 28260 IsResolver: false, 28261 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28262 return nil, errors.New("field of type String does not have child fields") 28263 }, 28264 } 28265 return fc, nil 28266 } 28267 28268 func (ec *executionContext) _Commerce_Product_MediaItem_mimeType(ctx context.Context, field graphql.CollectedField, obj *domain1.Media) (ret graphql.Marshaler) { 28269 fc, err := ec.fieldContext_Commerce_Product_MediaItem_mimeType(ctx, field) 28270 if err != nil { 28271 return graphql.Null 28272 } 28273 ctx = graphql.WithFieldContext(ctx, fc) 28274 defer func() { 28275 if r := recover(); r != nil { 28276 ec.Error(ctx, ec.Recover(ctx, r)) 28277 ret = graphql.Null 28278 } 28279 }() 28280 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28281 ctx = rctx // use context from middleware stack in children 28282 return obj.MimeType, nil 28283 }) 28284 if err != nil { 28285 ec.Error(ctx, err) 28286 return graphql.Null 28287 } 28288 if resTmp == nil { 28289 if !graphql.HasFieldError(ctx, fc) { 28290 ec.Errorf(ctx, "must not be null") 28291 } 28292 return graphql.Null 28293 } 28294 res := resTmp.(string) 28295 fc.Result = res 28296 return ec.marshalNString2string(ctx, field.Selections, res) 28297 } 28298 28299 func (ec *executionContext) fieldContext_Commerce_Product_MediaItem_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28300 fc = &graphql.FieldContext{ 28301 Object: "Commerce_Product_MediaItem", 28302 Field: field, 28303 IsMethod: false, 28304 IsResolver: false, 28305 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28306 return nil, errors.New("field of type String does not have child fields") 28307 }, 28308 } 28309 return fc, nil 28310 } 28311 28312 func (ec *executionContext) _Commerce_Product_MediaItem_usage(ctx context.Context, field graphql.CollectedField, obj *domain1.Media) (ret graphql.Marshaler) { 28313 fc, err := ec.fieldContext_Commerce_Product_MediaItem_usage(ctx, field) 28314 if err != nil { 28315 return graphql.Null 28316 } 28317 ctx = graphql.WithFieldContext(ctx, fc) 28318 defer func() { 28319 if r := recover(); r != nil { 28320 ec.Error(ctx, ec.Recover(ctx, r)) 28321 ret = graphql.Null 28322 } 28323 }() 28324 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28325 ctx = rctx // use context from middleware stack in children 28326 return obj.Usage, nil 28327 }) 28328 if err != nil { 28329 ec.Error(ctx, err) 28330 return graphql.Null 28331 } 28332 if resTmp == nil { 28333 if !graphql.HasFieldError(ctx, fc) { 28334 ec.Errorf(ctx, "must not be null") 28335 } 28336 return graphql.Null 28337 } 28338 res := resTmp.(string) 28339 fc.Result = res 28340 return ec.marshalNString2string(ctx, field.Selections, res) 28341 } 28342 28343 func (ec *executionContext) fieldContext_Commerce_Product_MediaItem_usage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28344 fc = &graphql.FieldContext{ 28345 Object: "Commerce_Product_MediaItem", 28346 Field: field, 28347 IsMethod: false, 28348 IsResolver: false, 28349 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28350 return nil, errors.New("field of type String does not have child fields") 28351 }, 28352 } 28353 return fc, nil 28354 } 28355 28356 func (ec *executionContext) _Commerce_Product_MediaItem_title(ctx context.Context, field graphql.CollectedField, obj *domain1.Media) (ret graphql.Marshaler) { 28357 fc, err := ec.fieldContext_Commerce_Product_MediaItem_title(ctx, field) 28358 if err != nil { 28359 return graphql.Null 28360 } 28361 ctx = graphql.WithFieldContext(ctx, fc) 28362 defer func() { 28363 if r := recover(); r != nil { 28364 ec.Error(ctx, ec.Recover(ctx, r)) 28365 ret = graphql.Null 28366 } 28367 }() 28368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28369 ctx = rctx // use context from middleware stack in children 28370 return obj.Title, nil 28371 }) 28372 if err != nil { 28373 ec.Error(ctx, err) 28374 return graphql.Null 28375 } 28376 if resTmp == nil { 28377 if !graphql.HasFieldError(ctx, fc) { 28378 ec.Errorf(ctx, "must not be null") 28379 } 28380 return graphql.Null 28381 } 28382 res := resTmp.(string) 28383 fc.Result = res 28384 return ec.marshalNString2string(ctx, field.Selections, res) 28385 } 28386 28387 func (ec *executionContext) fieldContext_Commerce_Product_MediaItem_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28388 fc = &graphql.FieldContext{ 28389 Object: "Commerce_Product_MediaItem", 28390 Field: field, 28391 IsMethod: false, 28392 IsResolver: false, 28393 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28394 return nil, errors.New("field of type String does not have child fields") 28395 }, 28396 } 28397 return fc, nil 28398 } 28399 28400 func (ec *executionContext) _Commerce_Product_MediaItem_reference(ctx context.Context, field graphql.CollectedField, obj *domain1.Media) (ret graphql.Marshaler) { 28401 fc, err := ec.fieldContext_Commerce_Product_MediaItem_reference(ctx, field) 28402 if err != nil { 28403 return graphql.Null 28404 } 28405 ctx = graphql.WithFieldContext(ctx, fc) 28406 defer func() { 28407 if r := recover(); r != nil { 28408 ec.Error(ctx, ec.Recover(ctx, r)) 28409 ret = graphql.Null 28410 } 28411 }() 28412 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28413 ctx = rctx // use context from middleware stack in children 28414 return obj.Reference, nil 28415 }) 28416 if err != nil { 28417 ec.Error(ctx, err) 28418 return graphql.Null 28419 } 28420 if resTmp == nil { 28421 if !graphql.HasFieldError(ctx, fc) { 28422 ec.Errorf(ctx, "must not be null") 28423 } 28424 return graphql.Null 28425 } 28426 res := resTmp.(string) 28427 fc.Result = res 28428 return ec.marshalNString2string(ctx, field.Selections, res) 28429 } 28430 28431 func (ec *executionContext) fieldContext_Commerce_Product_MediaItem_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28432 fc = &graphql.FieldContext{ 28433 Object: "Commerce_Product_MediaItem", 28434 Field: field, 28435 IsMethod: false, 28436 IsResolver: false, 28437 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28438 return nil, errors.New("field of type String does not have child fields") 28439 }, 28440 } 28441 return fc, nil 28442 } 28443 28444 func (ec *executionContext) _Commerce_Product_Meta_keywords(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.ProductMeta) (ret graphql.Marshaler) { 28445 fc, err := ec.fieldContext_Commerce_Product_Meta_keywords(ctx, field) 28446 if err != nil { 28447 return graphql.Null 28448 } 28449 ctx = graphql.WithFieldContext(ctx, fc) 28450 defer func() { 28451 if r := recover(); r != nil { 28452 ec.Error(ctx, ec.Recover(ctx, r)) 28453 ret = graphql.Null 28454 } 28455 }() 28456 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28457 ctx = rctx // use context from middleware stack in children 28458 return obj.Keywords, nil 28459 }) 28460 if err != nil { 28461 ec.Error(ctx, err) 28462 return graphql.Null 28463 } 28464 if resTmp == nil { 28465 return graphql.Null 28466 } 28467 res := resTmp.([]string) 28468 fc.Result = res 28469 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 28470 } 28471 28472 func (ec *executionContext) fieldContext_Commerce_Product_Meta_keywords(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28473 fc = &graphql.FieldContext{ 28474 Object: "Commerce_Product_Meta", 28475 Field: field, 28476 IsMethod: false, 28477 IsResolver: false, 28478 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28479 return nil, errors.New("field of type String does not have child fields") 28480 }, 28481 } 28482 return fc, nil 28483 } 28484 28485 func (ec *executionContext) _Commerce_Product_Option_product(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Option) (ret graphql.Marshaler) { 28486 fc, err := ec.fieldContext_Commerce_Product_Option_product(ctx, field) 28487 if err != nil { 28488 return graphql.Null 28489 } 28490 ctx = graphql.WithFieldContext(ctx, fc) 28491 defer func() { 28492 if r := recover(); r != nil { 28493 ec.Error(ctx, ec.Recover(ctx, r)) 28494 ret = graphql.Null 28495 } 28496 }() 28497 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28498 ctx = rctx // use context from middleware stack in children 28499 return obj.Product, nil 28500 }) 28501 if err != nil { 28502 ec.Error(ctx, err) 28503 return graphql.Null 28504 } 28505 if resTmp == nil { 28506 if !graphql.HasFieldError(ctx, fc) { 28507 ec.Errorf(ctx, "must not be null") 28508 } 28509 return graphql.Null 28510 } 28511 res := resTmp.(graphqlproductdto.Product) 28512 fc.Result = res 28513 return ec.marshalNCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx, field.Selections, res) 28514 } 28515 28516 func (ec *executionContext) fieldContext_Commerce_Product_Option_product(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28517 fc = &graphql.FieldContext{ 28518 Object: "Commerce_Product_Option", 28519 Field: field, 28520 IsMethod: false, 28521 IsResolver: false, 28522 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28523 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 28524 }, 28525 } 28526 return fc, nil 28527 } 28528 28529 func (ec *executionContext) _Commerce_Product_Option_qty(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.Option) (ret graphql.Marshaler) { 28530 fc, err := ec.fieldContext_Commerce_Product_Option_qty(ctx, field) 28531 if err != nil { 28532 return graphql.Null 28533 } 28534 ctx = graphql.WithFieldContext(ctx, fc) 28535 defer func() { 28536 if r := recover(); r != nil { 28537 ec.Error(ctx, ec.Recover(ctx, r)) 28538 ret = graphql.Null 28539 } 28540 }() 28541 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28542 ctx = rctx // use context from middleware stack in children 28543 return obj.Qty, nil 28544 }) 28545 if err != nil { 28546 ec.Error(ctx, err) 28547 return graphql.Null 28548 } 28549 if resTmp == nil { 28550 if !graphql.HasFieldError(ctx, fc) { 28551 ec.Errorf(ctx, "must not be null") 28552 } 28553 return graphql.Null 28554 } 28555 res := resTmp.(int) 28556 fc.Result = res 28557 return ec.marshalNInt2int(ctx, field.Selections, res) 28558 } 28559 28560 func (ec *executionContext) fieldContext_Commerce_Product_Option_qty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28561 fc = &graphql.FieldContext{ 28562 Object: "Commerce_Product_Option", 28563 Field: field, 28564 IsMethod: false, 28565 IsResolver: false, 28566 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28567 return nil, errors.New("field of type Int does not have child fields") 28568 }, 28569 } 28570 return fc, nil 28571 } 28572 28573 func (ec *executionContext) _Commerce_Product_PriceContext_customerGroup(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceContext) (ret graphql.Marshaler) { 28574 fc, err := ec.fieldContext_Commerce_Product_PriceContext_customerGroup(ctx, field) 28575 if err != nil { 28576 return graphql.Null 28577 } 28578 ctx = graphql.WithFieldContext(ctx, fc) 28579 defer func() { 28580 if r := recover(); r != nil { 28581 ec.Error(ctx, ec.Recover(ctx, r)) 28582 ret = graphql.Null 28583 } 28584 }() 28585 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28586 ctx = rctx // use context from middleware stack in children 28587 return obj.CustomerGroup, nil 28588 }) 28589 if err != nil { 28590 ec.Error(ctx, err) 28591 return graphql.Null 28592 } 28593 if resTmp == nil { 28594 if !graphql.HasFieldError(ctx, fc) { 28595 ec.Errorf(ctx, "must not be null") 28596 } 28597 return graphql.Null 28598 } 28599 res := resTmp.(string) 28600 fc.Result = res 28601 return ec.marshalNString2string(ctx, field.Selections, res) 28602 } 28603 28604 func (ec *executionContext) fieldContext_Commerce_Product_PriceContext_customerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28605 fc = &graphql.FieldContext{ 28606 Object: "Commerce_Product_PriceContext", 28607 Field: field, 28608 IsMethod: false, 28609 IsResolver: false, 28610 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28611 return nil, errors.New("field of type String does not have child fields") 28612 }, 28613 } 28614 return fc, nil 28615 } 28616 28617 func (ec *executionContext) _Commerce_Product_PriceContext_deliveryCode(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceContext) (ret graphql.Marshaler) { 28618 fc, err := ec.fieldContext_Commerce_Product_PriceContext_deliveryCode(ctx, field) 28619 if err != nil { 28620 return graphql.Null 28621 } 28622 ctx = graphql.WithFieldContext(ctx, fc) 28623 defer func() { 28624 if r := recover(); r != nil { 28625 ec.Error(ctx, ec.Recover(ctx, r)) 28626 ret = graphql.Null 28627 } 28628 }() 28629 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28630 ctx = rctx // use context from middleware stack in children 28631 return obj.DeliveryCode, nil 28632 }) 28633 if err != nil { 28634 ec.Error(ctx, err) 28635 return graphql.Null 28636 } 28637 if resTmp == nil { 28638 if !graphql.HasFieldError(ctx, fc) { 28639 ec.Errorf(ctx, "must not be null") 28640 } 28641 return graphql.Null 28642 } 28643 res := resTmp.(string) 28644 fc.Result = res 28645 return ec.marshalNString2string(ctx, field.Selections, res) 28646 } 28647 28648 func (ec *executionContext) fieldContext_Commerce_Product_PriceContext_deliveryCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28649 fc = &graphql.FieldContext{ 28650 Object: "Commerce_Product_PriceContext", 28651 Field: field, 28652 IsMethod: false, 28653 IsResolver: false, 28654 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28655 return nil, errors.New("field of type String does not have child fields") 28656 }, 28657 } 28658 return fc, nil 28659 } 28660 28661 func (ec *executionContext) _Commerce_Product_PriceContext_channelCode(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceContext) (ret graphql.Marshaler) { 28662 fc, err := ec.fieldContext_Commerce_Product_PriceContext_channelCode(ctx, field) 28663 if err != nil { 28664 return graphql.Null 28665 } 28666 ctx = graphql.WithFieldContext(ctx, fc) 28667 defer func() { 28668 if r := recover(); r != nil { 28669 ec.Error(ctx, ec.Recover(ctx, r)) 28670 ret = graphql.Null 28671 } 28672 }() 28673 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28674 ctx = rctx // use context from middleware stack in children 28675 return obj.ChannelCode, nil 28676 }) 28677 if err != nil { 28678 ec.Error(ctx, err) 28679 return graphql.Null 28680 } 28681 if resTmp == nil { 28682 if !graphql.HasFieldError(ctx, fc) { 28683 ec.Errorf(ctx, "must not be null") 28684 } 28685 return graphql.Null 28686 } 28687 res := resTmp.(string) 28688 fc.Result = res 28689 return ec.marshalNString2string(ctx, field.Selections, res) 28690 } 28691 28692 func (ec *executionContext) fieldContext_Commerce_Product_PriceContext_channelCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28693 fc = &graphql.FieldContext{ 28694 Object: "Commerce_Product_PriceContext", 28695 Field: field, 28696 IsMethod: false, 28697 IsResolver: false, 28698 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28699 return nil, errors.New("field of type String does not have child fields") 28700 }, 28701 } 28702 return fc, nil 28703 } 28704 28705 func (ec *executionContext) _Commerce_Product_PriceContext_locale(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceContext) (ret graphql.Marshaler) { 28706 fc, err := ec.fieldContext_Commerce_Product_PriceContext_locale(ctx, field) 28707 if err != nil { 28708 return graphql.Null 28709 } 28710 ctx = graphql.WithFieldContext(ctx, fc) 28711 defer func() { 28712 if r := recover(); r != nil { 28713 ec.Error(ctx, ec.Recover(ctx, r)) 28714 ret = graphql.Null 28715 } 28716 }() 28717 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28718 ctx = rctx // use context from middleware stack in children 28719 return obj.Locale, nil 28720 }) 28721 if err != nil { 28722 ec.Error(ctx, err) 28723 return graphql.Null 28724 } 28725 if resTmp == nil { 28726 if !graphql.HasFieldError(ctx, fc) { 28727 ec.Errorf(ctx, "must not be null") 28728 } 28729 return graphql.Null 28730 } 28731 res := resTmp.(string) 28732 fc.Result = res 28733 return ec.marshalNString2string(ctx, field.Selections, res) 28734 } 28735 28736 func (ec *executionContext) fieldContext_Commerce_Product_PriceContext_locale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28737 fc = &graphql.FieldContext{ 28738 Object: "Commerce_Product_PriceContext", 28739 Field: field, 28740 IsMethod: false, 28741 IsResolver: false, 28742 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28743 return nil, errors.New("field of type String does not have child fields") 28744 }, 28745 } 28746 return fc, nil 28747 } 28748 28749 func (ec *executionContext) _Commerce_Product_PriceInfo_default(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28750 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 28751 if err != nil { 28752 return graphql.Null 28753 } 28754 ctx = graphql.WithFieldContext(ctx, fc) 28755 defer func() { 28756 if r := recover(); r != nil { 28757 ec.Error(ctx, ec.Recover(ctx, r)) 28758 ret = graphql.Null 28759 } 28760 }() 28761 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28762 ctx = rctx // use context from middleware stack in children 28763 return obj.Default, nil 28764 }) 28765 if err != nil { 28766 ec.Error(ctx, err) 28767 return graphql.Null 28768 } 28769 if resTmp == nil { 28770 if !graphql.HasFieldError(ctx, fc) { 28771 ec.Errorf(ctx, "must not be null") 28772 } 28773 return graphql.Null 28774 } 28775 res := resTmp.(domain.Price) 28776 fc.Result = res 28777 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 28778 } 28779 28780 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_default(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28781 fc = &graphql.FieldContext{ 28782 Object: "Commerce_Product_PriceInfo", 28783 Field: field, 28784 IsMethod: false, 28785 IsResolver: false, 28786 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28787 switch field.Name { 28788 case "amount": 28789 return ec.fieldContext_Commerce_Price_amount(ctx, field) 28790 case "currency": 28791 return ec.fieldContext_Commerce_Price_currency(ctx, field) 28792 } 28793 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 28794 }, 28795 } 28796 return fc, nil 28797 } 28798 28799 func (ec *executionContext) _Commerce_Product_PriceInfo_discounted(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28800 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 28801 if err != nil { 28802 return graphql.Null 28803 } 28804 ctx = graphql.WithFieldContext(ctx, fc) 28805 defer func() { 28806 if r := recover(); r != nil { 28807 ec.Error(ctx, ec.Recover(ctx, r)) 28808 ret = graphql.Null 28809 } 28810 }() 28811 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28812 ctx = rctx // use context from middleware stack in children 28813 return obj.Discounted, nil 28814 }) 28815 if err != nil { 28816 ec.Error(ctx, err) 28817 return graphql.Null 28818 } 28819 if resTmp == nil { 28820 if !graphql.HasFieldError(ctx, fc) { 28821 ec.Errorf(ctx, "must not be null") 28822 } 28823 return graphql.Null 28824 } 28825 res := resTmp.(domain.Price) 28826 fc.Result = res 28827 return ec.marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 28828 } 28829 28830 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_discounted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28831 fc = &graphql.FieldContext{ 28832 Object: "Commerce_Product_PriceInfo", 28833 Field: field, 28834 IsMethod: false, 28835 IsResolver: false, 28836 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28837 switch field.Name { 28838 case "amount": 28839 return ec.fieldContext_Commerce_Price_amount(ctx, field) 28840 case "currency": 28841 return ec.fieldContext_Commerce_Price_currency(ctx, field) 28842 } 28843 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 28844 }, 28845 } 28846 return fc, nil 28847 } 28848 28849 func (ec *executionContext) _Commerce_Product_PriceInfo_discountText(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28850 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 28851 if err != nil { 28852 return graphql.Null 28853 } 28854 ctx = graphql.WithFieldContext(ctx, fc) 28855 defer func() { 28856 if r := recover(); r != nil { 28857 ec.Error(ctx, ec.Recover(ctx, r)) 28858 ret = graphql.Null 28859 } 28860 }() 28861 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28862 ctx = rctx // use context from middleware stack in children 28863 return obj.DiscountText, nil 28864 }) 28865 if err != nil { 28866 ec.Error(ctx, err) 28867 return graphql.Null 28868 } 28869 if resTmp == nil { 28870 if !graphql.HasFieldError(ctx, fc) { 28871 ec.Errorf(ctx, "must not be null") 28872 } 28873 return graphql.Null 28874 } 28875 res := resTmp.(string) 28876 fc.Result = res 28877 return ec.marshalNString2string(ctx, field.Selections, res) 28878 } 28879 28880 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_discountText(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28881 fc = &graphql.FieldContext{ 28882 Object: "Commerce_Product_PriceInfo", 28883 Field: field, 28884 IsMethod: false, 28885 IsResolver: false, 28886 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28887 return nil, errors.New("field of type String does not have child fields") 28888 }, 28889 } 28890 return fc, nil 28891 } 28892 28893 func (ec *executionContext) _Commerce_Product_PriceInfo_activeBase(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28894 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 28895 if err != nil { 28896 return graphql.Null 28897 } 28898 ctx = graphql.WithFieldContext(ctx, fc) 28899 defer func() { 28900 if r := recover(); r != nil { 28901 ec.Error(ctx, ec.Recover(ctx, r)) 28902 ret = graphql.Null 28903 } 28904 }() 28905 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28906 ctx = rctx // use context from middleware stack in children 28907 return ec.resolvers.Commerce_Product_PriceInfo().ActiveBase(rctx, obj) 28908 }) 28909 if err != nil { 28910 ec.Error(ctx, err) 28911 return graphql.Null 28912 } 28913 if resTmp == nil { 28914 if !graphql.HasFieldError(ctx, fc) { 28915 ec.Errorf(ctx, "must not be null") 28916 } 28917 return graphql.Null 28918 } 28919 res := resTmp.(*domain.Price) 28920 fc.Result = res 28921 return ec.marshalNCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx, field.Selections, res) 28922 } 28923 28924 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_activeBase(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28925 fc = &graphql.FieldContext{ 28926 Object: "Commerce_Product_PriceInfo", 28927 Field: field, 28928 IsMethod: true, 28929 IsResolver: true, 28930 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28931 switch field.Name { 28932 case "amount": 28933 return ec.fieldContext_Commerce_Price_amount(ctx, field) 28934 case "currency": 28935 return ec.fieldContext_Commerce_Price_currency(ctx, field) 28936 } 28937 return nil, fmt.Errorf("no field named %q was found under type Commerce_Price", field.Name) 28938 }, 28939 } 28940 return fc, nil 28941 } 28942 28943 func (ec *executionContext) _Commerce_Product_PriceInfo_activeBaseAmount(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28944 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 28945 if err != nil { 28946 return graphql.Null 28947 } 28948 ctx = graphql.WithFieldContext(ctx, fc) 28949 defer func() { 28950 if r := recover(); r != nil { 28951 ec.Error(ctx, ec.Recover(ctx, r)) 28952 ret = graphql.Null 28953 } 28954 }() 28955 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28956 ctx = rctx // use context from middleware stack in children 28957 return obj.ActiveBaseAmount, nil 28958 }) 28959 if err != nil { 28960 ec.Error(ctx, err) 28961 return graphql.Null 28962 } 28963 if resTmp == nil { 28964 if !graphql.HasFieldError(ctx, fc) { 28965 ec.Errorf(ctx, "must not be null") 28966 } 28967 return graphql.Null 28968 } 28969 res := resTmp.(big.Float) 28970 fc.Result = res 28971 return ec.marshalNFloat2mathᚋbigᚐFloat(ctx, field.Selections, res) 28972 } 28973 28974 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 28975 fc = &graphql.FieldContext{ 28976 Object: "Commerce_Product_PriceInfo", 28977 Field: field, 28978 IsMethod: false, 28979 IsResolver: false, 28980 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 28981 return nil, errors.New("field of type Float does not have child fields") 28982 }, 28983 } 28984 return fc, nil 28985 } 28986 28987 func (ec *executionContext) _Commerce_Product_PriceInfo_activeBaseUnit(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 28988 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 28989 if err != nil { 28990 return graphql.Null 28991 } 28992 ctx = graphql.WithFieldContext(ctx, fc) 28993 defer func() { 28994 if r := recover(); r != nil { 28995 ec.Error(ctx, ec.Recover(ctx, r)) 28996 ret = graphql.Null 28997 } 28998 }() 28999 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29000 ctx = rctx // use context from middleware stack in children 29001 return obj.ActiveBaseUnit, nil 29002 }) 29003 if err != nil { 29004 ec.Error(ctx, err) 29005 return graphql.Null 29006 } 29007 if resTmp == nil { 29008 if !graphql.HasFieldError(ctx, fc) { 29009 ec.Errorf(ctx, "must not be null") 29010 } 29011 return graphql.Null 29012 } 29013 res := resTmp.(string) 29014 fc.Result = res 29015 return ec.marshalNString2string(ctx, field.Selections, res) 29016 } 29017 29018 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29019 fc = &graphql.FieldContext{ 29020 Object: "Commerce_Product_PriceInfo", 29021 Field: field, 29022 IsMethod: false, 29023 IsResolver: false, 29024 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29025 return nil, errors.New("field of type String does not have child fields") 29026 }, 29027 } 29028 return fc, nil 29029 } 29030 29031 func (ec *executionContext) _Commerce_Product_PriceInfo_isDiscounted(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 29032 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 29033 if err != nil { 29034 return graphql.Null 29035 } 29036 ctx = graphql.WithFieldContext(ctx, fc) 29037 defer func() { 29038 if r := recover(); r != nil { 29039 ec.Error(ctx, ec.Recover(ctx, r)) 29040 ret = graphql.Null 29041 } 29042 }() 29043 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29044 ctx = rctx // use context from middleware stack in children 29045 return obj.IsDiscounted, nil 29046 }) 29047 if err != nil { 29048 ec.Error(ctx, err) 29049 return graphql.Null 29050 } 29051 if resTmp == nil { 29052 if !graphql.HasFieldError(ctx, fc) { 29053 ec.Errorf(ctx, "must not be null") 29054 } 29055 return graphql.Null 29056 } 29057 res := resTmp.(bool) 29058 fc.Result = res 29059 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 29060 } 29061 29062 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_isDiscounted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29063 fc = &graphql.FieldContext{ 29064 Object: "Commerce_Product_PriceInfo", 29065 Field: field, 29066 IsMethod: false, 29067 IsResolver: false, 29068 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29069 return nil, errors.New("field of type Boolean does not have child fields") 29070 }, 29071 } 29072 return fc, nil 29073 } 29074 29075 func (ec *executionContext) _Commerce_Product_PriceInfo_campaignRules(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 29076 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 29077 if err != nil { 29078 return graphql.Null 29079 } 29080 ctx = graphql.WithFieldContext(ctx, fc) 29081 defer func() { 29082 if r := recover(); r != nil { 29083 ec.Error(ctx, ec.Recover(ctx, r)) 29084 ret = graphql.Null 29085 } 29086 }() 29087 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29088 ctx = rctx // use context from middleware stack in children 29089 return obj.CampaignRules, nil 29090 }) 29091 if err != nil { 29092 ec.Error(ctx, err) 29093 return graphql.Null 29094 } 29095 if resTmp == nil { 29096 return graphql.Null 29097 } 29098 res := resTmp.([]string) 29099 fc.Result = res 29100 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 29101 } 29102 29103 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_campaignRules(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29104 fc = &graphql.FieldContext{ 29105 Object: "Commerce_Product_PriceInfo", 29106 Field: field, 29107 IsMethod: false, 29108 IsResolver: false, 29109 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29110 return nil, errors.New("field of type String does not have child fields") 29111 }, 29112 } 29113 return fc, nil 29114 } 29115 29116 func (ec *executionContext) _Commerce_Product_PriceInfo_denyMoreDiscounts(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 29117 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 29118 if err != nil { 29119 return graphql.Null 29120 } 29121 ctx = graphql.WithFieldContext(ctx, fc) 29122 defer func() { 29123 if r := recover(); r != nil { 29124 ec.Error(ctx, ec.Recover(ctx, r)) 29125 ret = graphql.Null 29126 } 29127 }() 29128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29129 ctx = rctx // use context from middleware stack in children 29130 return obj.DenyMoreDiscounts, nil 29131 }) 29132 if err != nil { 29133 ec.Error(ctx, err) 29134 return graphql.Null 29135 } 29136 if resTmp == nil { 29137 if !graphql.HasFieldError(ctx, fc) { 29138 ec.Errorf(ctx, "must not be null") 29139 } 29140 return graphql.Null 29141 } 29142 res := resTmp.(bool) 29143 fc.Result = res 29144 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 29145 } 29146 29147 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29148 fc = &graphql.FieldContext{ 29149 Object: "Commerce_Product_PriceInfo", 29150 Field: field, 29151 IsMethod: false, 29152 IsResolver: false, 29153 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29154 return nil, errors.New("field of type Boolean does not have child fields") 29155 }, 29156 } 29157 return fc, nil 29158 } 29159 29160 func (ec *executionContext) _Commerce_Product_PriceInfo_context(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 29161 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 29162 if err != nil { 29163 return graphql.Null 29164 } 29165 ctx = graphql.WithFieldContext(ctx, fc) 29166 defer func() { 29167 if r := recover(); r != nil { 29168 ec.Error(ctx, ec.Recover(ctx, r)) 29169 ret = graphql.Null 29170 } 29171 }() 29172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29173 ctx = rctx // use context from middleware stack in children 29174 return obj.Context, nil 29175 }) 29176 if err != nil { 29177 ec.Error(ctx, err) 29178 return graphql.Null 29179 } 29180 if resTmp == nil { 29181 if !graphql.HasFieldError(ctx, fc) { 29182 ec.Errorf(ctx, "must not be null") 29183 } 29184 return graphql.Null 29185 } 29186 res := resTmp.(domain1.PriceContext) 29187 fc.Result = res 29188 return ec.marshalNCommerce_Product_PriceContext2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceContext(ctx, field.Selections, res) 29189 } 29190 29191 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29192 fc = &graphql.FieldContext{ 29193 Object: "Commerce_Product_PriceInfo", 29194 Field: field, 29195 IsMethod: false, 29196 IsResolver: false, 29197 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29198 switch field.Name { 29199 case "customerGroup": 29200 return ec.fieldContext_Commerce_Product_PriceContext_customerGroup(ctx, field) 29201 case "deliveryCode": 29202 return ec.fieldContext_Commerce_Product_PriceContext_deliveryCode(ctx, field) 29203 case "channelCode": 29204 return ec.fieldContext_Commerce_Product_PriceContext_channelCode(ctx, field) 29205 case "locale": 29206 return ec.fieldContext_Commerce_Product_PriceContext_locale(ctx, field) 29207 } 29208 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceContext", field.Name) 29209 }, 29210 } 29211 return fc, nil 29212 } 29213 29214 func (ec *executionContext) _Commerce_Product_PriceInfo_taxClass(ctx context.Context, field graphql.CollectedField, obj *domain1.PriceInfo) (ret graphql.Marshaler) { 29215 fc, err := ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 29216 if err != nil { 29217 return graphql.Null 29218 } 29219 ctx = graphql.WithFieldContext(ctx, fc) 29220 defer func() { 29221 if r := recover(); r != nil { 29222 ec.Error(ctx, ec.Recover(ctx, r)) 29223 ret = graphql.Null 29224 } 29225 }() 29226 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29227 ctx = rctx // use context from middleware stack in children 29228 return obj.TaxClass, nil 29229 }) 29230 if err != nil { 29231 ec.Error(ctx, err) 29232 return graphql.Null 29233 } 29234 if resTmp == nil { 29235 if !graphql.HasFieldError(ctx, fc) { 29236 ec.Errorf(ctx, "must not be null") 29237 } 29238 return graphql.Null 29239 } 29240 res := resTmp.(string) 29241 fc.Result = res 29242 return ec.marshalNString2string(ctx, field.Selections, res) 29243 } 29244 29245 func (ec *executionContext) fieldContext_Commerce_Product_PriceInfo_taxClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29246 fc = &graphql.FieldContext{ 29247 Object: "Commerce_Product_PriceInfo", 29248 Field: field, 29249 IsMethod: false, 29250 IsResolver: false, 29251 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29252 return nil, errors.New("field of type String does not have child fields") 29253 }, 29254 } 29255 return fc, nil 29256 } 29257 29258 func (ec *executionContext) _Commerce_Product_SearchResult_products(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29259 fc, err := ec.fieldContext_Commerce_Product_SearchResult_products(ctx, field) 29260 if err != nil { 29261 return graphql.Null 29262 } 29263 ctx = graphql.WithFieldContext(ctx, fc) 29264 defer func() { 29265 if r := recover(); r != nil { 29266 ec.Error(ctx, ec.Recover(ctx, r)) 29267 ret = graphql.Null 29268 } 29269 }() 29270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29271 ctx = rctx // use context from middleware stack in children 29272 return obj.Products(), nil 29273 }) 29274 if err != nil { 29275 ec.Error(ctx, err) 29276 return graphql.Null 29277 } 29278 if resTmp == nil { 29279 return graphql.Null 29280 } 29281 res := resTmp.([]graphqlproductdto.Product) 29282 fc.Result = res 29283 return ec.marshalOCommerce_Product2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductᚄ(ctx, field.Selections, res) 29284 } 29285 29286 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_products(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29287 fc = &graphql.FieldContext{ 29288 Object: "Commerce_Product_SearchResult", 29289 Field: field, 29290 IsMethod: true, 29291 IsResolver: false, 29292 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29293 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 29294 }, 29295 } 29296 return fc, nil 29297 } 29298 29299 func (ec *executionContext) _Commerce_Product_SearchResult_facets(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29300 fc, err := ec.fieldContext_Commerce_Product_SearchResult_facets(ctx, field) 29301 if err != nil { 29302 return graphql.Null 29303 } 29304 ctx = graphql.WithFieldContext(ctx, fc) 29305 defer func() { 29306 if r := recover(); r != nil { 29307 ec.Error(ctx, ec.Recover(ctx, r)) 29308 ret = graphql.Null 29309 } 29310 }() 29311 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29312 ctx = rctx // use context from middleware stack in children 29313 return obj.Facets(), nil 29314 }) 29315 if err != nil { 29316 ec.Error(ctx, err) 29317 return graphql.Null 29318 } 29319 if resTmp == nil { 29320 if !graphql.HasFieldError(ctx, fc) { 29321 ec.Errorf(ctx, "must not be null") 29322 } 29323 return graphql.Null 29324 } 29325 res := resTmp.([]searchdto.CommerceSearchFacet) 29326 fc.Result = res 29327 return ec.marshalNCommerce_Search_Facet2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchFacetᚄ(ctx, field.Selections, res) 29328 } 29329 29330 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_facets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29331 fc = &graphql.FieldContext{ 29332 Object: "Commerce_Product_SearchResult", 29333 Field: field, 29334 IsMethod: true, 29335 IsResolver: false, 29336 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29337 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 29338 }, 29339 } 29340 return fc, nil 29341 } 29342 29343 func (ec *executionContext) _Commerce_Product_SearchResult_suggestions(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29344 fc, err := ec.fieldContext_Commerce_Product_SearchResult_suggestions(ctx, field) 29345 if err != nil { 29346 return graphql.Null 29347 } 29348 ctx = graphql.WithFieldContext(ctx, fc) 29349 defer func() { 29350 if r := recover(); r != nil { 29351 ec.Error(ctx, ec.Recover(ctx, r)) 29352 ret = graphql.Null 29353 } 29354 }() 29355 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29356 ctx = rctx // use context from middleware stack in children 29357 return obj.Suggestions(), nil 29358 }) 29359 if err != nil { 29360 ec.Error(ctx, err) 29361 return graphql.Null 29362 } 29363 if resTmp == nil { 29364 return graphql.Null 29365 } 29366 res := resTmp.([]domain2.Suggestion) 29367 fc.Result = res 29368 return ec.marshalOCommerce_Search_Suggestion2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSuggestionᚄ(ctx, field.Selections, res) 29369 } 29370 29371 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_suggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29372 fc = &graphql.FieldContext{ 29373 Object: "Commerce_Product_SearchResult", 29374 Field: field, 29375 IsMethod: true, 29376 IsResolver: false, 29377 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29378 switch field.Name { 29379 case "text": 29380 return ec.fieldContext_Commerce_Search_Suggestion_text(ctx, field) 29381 case "highlight": 29382 return ec.fieldContext_Commerce_Search_Suggestion_highlight(ctx, field) 29383 } 29384 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_Suggestion", field.Name) 29385 }, 29386 } 29387 return fc, nil 29388 } 29389 29390 func (ec *executionContext) _Commerce_Product_SearchResult_searchMeta(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29391 fc, err := ec.fieldContext_Commerce_Product_SearchResult_searchMeta(ctx, field) 29392 if err != nil { 29393 return graphql.Null 29394 } 29395 ctx = graphql.WithFieldContext(ctx, fc) 29396 defer func() { 29397 if r := recover(); r != nil { 29398 ec.Error(ctx, ec.Recover(ctx, r)) 29399 ret = graphql.Null 29400 } 29401 }() 29402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29403 ctx = rctx // use context from middleware stack in children 29404 return obj.SearchMeta(), nil 29405 }) 29406 if err != nil { 29407 ec.Error(ctx, err) 29408 return graphql.Null 29409 } 29410 if resTmp == nil { 29411 if !graphql.HasFieldError(ctx, fc) { 29412 ec.Errorf(ctx, "must not be null") 29413 } 29414 return graphql.Null 29415 } 29416 res := resTmp.(domain2.SearchMeta) 29417 fc.Result = res 29418 return ec.marshalNCommerce_Search_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSearchMeta(ctx, field.Selections, res) 29419 } 29420 29421 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_searchMeta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29422 fc = &graphql.FieldContext{ 29423 Object: "Commerce_Product_SearchResult", 29424 Field: field, 29425 IsMethod: true, 29426 IsResolver: false, 29427 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29428 switch field.Name { 29429 case "query": 29430 return ec.fieldContext_Commerce_Search_Meta_query(ctx, field) 29431 case "originalQuery": 29432 return ec.fieldContext_Commerce_Search_Meta_originalQuery(ctx, field) 29433 case "page": 29434 return ec.fieldContext_Commerce_Search_Meta_page(ctx, field) 29435 case "numPages": 29436 return ec.fieldContext_Commerce_Search_Meta_numPages(ctx, field) 29437 case "numResults": 29438 return ec.fieldContext_Commerce_Search_Meta_numResults(ctx, field) 29439 case "sortOptions": 29440 return ec.fieldContext_Commerce_Search_Meta_sortOptions(ctx, field) 29441 } 29442 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_Meta", field.Name) 29443 }, 29444 } 29445 return fc, nil 29446 } 29447 29448 func (ec *executionContext) _Commerce_Product_SearchResult_hasSelectedFacet(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29449 fc, err := ec.fieldContext_Commerce_Product_SearchResult_hasSelectedFacet(ctx, field) 29450 if err != nil { 29451 return graphql.Null 29452 } 29453 ctx = graphql.WithFieldContext(ctx, fc) 29454 defer func() { 29455 if r := recover(); r != nil { 29456 ec.Error(ctx, ec.Recover(ctx, r)) 29457 ret = graphql.Null 29458 } 29459 }() 29460 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29461 ctx = rctx // use context from middleware stack in children 29462 return obj.HasSelectedFacet(), nil 29463 }) 29464 if err != nil { 29465 ec.Error(ctx, err) 29466 return graphql.Null 29467 } 29468 if resTmp == nil { 29469 if !graphql.HasFieldError(ctx, fc) { 29470 ec.Errorf(ctx, "must not be null") 29471 } 29472 return graphql.Null 29473 } 29474 res := resTmp.(bool) 29475 fc.Result = res 29476 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 29477 } 29478 29479 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_hasSelectedFacet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29480 fc = &graphql.FieldContext{ 29481 Object: "Commerce_Product_SearchResult", 29482 Field: field, 29483 IsMethod: true, 29484 IsResolver: false, 29485 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29486 return nil, errors.New("field of type Boolean does not have child fields") 29487 }, 29488 } 29489 return fc, nil 29490 } 29491 29492 func (ec *executionContext) _Commerce_Product_SearchResult_promotion(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29493 fc, err := ec.fieldContext_Commerce_Product_SearchResult_promotion(ctx, field) 29494 if err != nil { 29495 return graphql.Null 29496 } 29497 ctx = graphql.WithFieldContext(ctx, fc) 29498 defer func() { 29499 if r := recover(); r != nil { 29500 ec.Error(ctx, ec.Recover(ctx, r)) 29501 ret = graphql.Null 29502 } 29503 }() 29504 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29505 ctx = rctx // use context from middleware stack in children 29506 return obj.Promotion(), nil 29507 }) 29508 if err != nil { 29509 ec.Error(ctx, err) 29510 return graphql.Null 29511 } 29512 if resTmp == nil { 29513 return graphql.Null 29514 } 29515 res := resTmp.(*searchdto.PromotionDTO) 29516 fc.Result = res 29517 return ec.marshalOCommerce_Search_Promotion2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐPromotionDTO(ctx, field.Selections, res) 29518 } 29519 29520 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_promotion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29521 fc = &graphql.FieldContext{ 29522 Object: "Commerce_Product_SearchResult", 29523 Field: field, 29524 IsMethod: true, 29525 IsResolver: false, 29526 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29527 switch field.Name { 29528 case "title": 29529 return ec.fieldContext_Commerce_Search_Promotion_title(ctx, field) 29530 case "content": 29531 return ec.fieldContext_Commerce_Search_Promotion_content(ctx, field) 29532 case "url": 29533 return ec.fieldContext_Commerce_Search_Promotion_url(ctx, field) 29534 case "media": 29535 return ec.fieldContext_Commerce_Search_Promotion_media(ctx, field) 29536 } 29537 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_Promotion", field.Name) 29538 }, 29539 } 29540 return fc, nil 29541 } 29542 29543 func (ec *executionContext) _Commerce_Product_SearchResult_actions(ctx context.Context, field graphql.CollectedField, obj *graphql1.SearchResultDTO) (ret graphql.Marshaler) { 29544 fc, err := ec.fieldContext_Commerce_Product_SearchResult_actions(ctx, field) 29545 if err != nil { 29546 return graphql.Null 29547 } 29548 ctx = graphql.WithFieldContext(ctx, fc) 29549 defer func() { 29550 if r := recover(); r != nil { 29551 ec.Error(ctx, ec.Recover(ctx, r)) 29552 ret = graphql.Null 29553 } 29554 }() 29555 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29556 ctx = rctx // use context from middleware stack in children 29557 return obj.Actions(), nil 29558 }) 29559 if err != nil { 29560 ec.Error(ctx, err) 29561 return graphql.Null 29562 } 29563 if resTmp == nil { 29564 return graphql.Null 29565 } 29566 res := resTmp.([]domain2.Action) 29567 fc.Result = res 29568 return ec.marshalOCommerce_Search_Action2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐActionᚄ(ctx, field.Selections, res) 29569 } 29570 29571 func (ec *executionContext) fieldContext_Commerce_Product_SearchResult_actions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29572 fc = &graphql.FieldContext{ 29573 Object: "Commerce_Product_SearchResult", 29574 Field: field, 29575 IsMethod: true, 29576 IsResolver: false, 29577 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29578 switch field.Name { 29579 case "type": 29580 return ec.fieldContext_Commerce_Search_Action_type(ctx, field) 29581 case "content": 29582 return ec.fieldContext_Commerce_Search_Action_content(ctx, field) 29583 } 29584 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_Action", field.Name) 29585 }, 29586 } 29587 return fc, nil 29588 } 29589 29590 func (ec *executionContext) _Commerce_Product_SimpleProduct_type(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29591 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_type(ctx, field) 29592 if err != nil { 29593 return graphql.Null 29594 } 29595 ctx = graphql.WithFieldContext(ctx, fc) 29596 defer func() { 29597 if r := recover(); r != nil { 29598 ec.Error(ctx, ec.Recover(ctx, r)) 29599 ret = graphql.Null 29600 } 29601 }() 29602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29603 ctx = rctx // use context from middleware stack in children 29604 return obj.Type(), nil 29605 }) 29606 if err != nil { 29607 ec.Error(ctx, err) 29608 return graphql.Null 29609 } 29610 if resTmp == nil { 29611 if !graphql.HasFieldError(ctx, fc) { 29612 ec.Errorf(ctx, "must not be null") 29613 } 29614 return graphql.Null 29615 } 29616 res := resTmp.(string) 29617 fc.Result = res 29618 return ec.marshalNString2string(ctx, field.Selections, res) 29619 } 29620 29621 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29622 fc = &graphql.FieldContext{ 29623 Object: "Commerce_Product_SimpleProduct", 29624 Field: field, 29625 IsMethod: true, 29626 IsResolver: false, 29627 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29628 return nil, errors.New("field of type String does not have child fields") 29629 }, 29630 } 29631 return fc, nil 29632 } 29633 29634 func (ec *executionContext) _Commerce_Product_SimpleProduct_marketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29635 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_marketPlaceCode(ctx, field) 29636 if err != nil { 29637 return graphql.Null 29638 } 29639 ctx = graphql.WithFieldContext(ctx, fc) 29640 defer func() { 29641 if r := recover(); r != nil { 29642 ec.Error(ctx, ec.Recover(ctx, r)) 29643 ret = graphql.Null 29644 } 29645 }() 29646 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29647 ctx = rctx // use context from middleware stack in children 29648 return obj.MarketPlaceCode(), nil 29649 }) 29650 if err != nil { 29651 ec.Error(ctx, err) 29652 return graphql.Null 29653 } 29654 if resTmp == nil { 29655 if !graphql.HasFieldError(ctx, fc) { 29656 ec.Errorf(ctx, "must not be null") 29657 } 29658 return graphql.Null 29659 } 29660 res := resTmp.(string) 29661 fc.Result = res 29662 return ec.marshalNString2string(ctx, field.Selections, res) 29663 } 29664 29665 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_marketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29666 fc = &graphql.FieldContext{ 29667 Object: "Commerce_Product_SimpleProduct", 29668 Field: field, 29669 IsMethod: true, 29670 IsResolver: false, 29671 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29672 return nil, errors.New("field of type String does not have child fields") 29673 }, 29674 } 29675 return fc, nil 29676 } 29677 29678 func (ec *executionContext) _Commerce_Product_SimpleProduct_identifier(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29679 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_identifier(ctx, field) 29680 if err != nil { 29681 return graphql.Null 29682 } 29683 ctx = graphql.WithFieldContext(ctx, fc) 29684 defer func() { 29685 if r := recover(); r != nil { 29686 ec.Error(ctx, ec.Recover(ctx, r)) 29687 ret = graphql.Null 29688 } 29689 }() 29690 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29691 ctx = rctx // use context from middleware stack in children 29692 return obj.Identifier(), nil 29693 }) 29694 if err != nil { 29695 ec.Error(ctx, err) 29696 return graphql.Null 29697 } 29698 if resTmp == nil { 29699 if !graphql.HasFieldError(ctx, fc) { 29700 ec.Errorf(ctx, "must not be null") 29701 } 29702 return graphql.Null 29703 } 29704 res := resTmp.(string) 29705 fc.Result = res 29706 return ec.marshalNString2string(ctx, field.Selections, res) 29707 } 29708 29709 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_identifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29710 fc = &graphql.FieldContext{ 29711 Object: "Commerce_Product_SimpleProduct", 29712 Field: field, 29713 IsMethod: true, 29714 IsResolver: false, 29715 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29716 return nil, errors.New("field of type String does not have child fields") 29717 }, 29718 } 29719 return fc, nil 29720 } 29721 29722 func (ec *executionContext) _Commerce_Product_SimpleProduct_media(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29723 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_media(ctx, field) 29724 if err != nil { 29725 return graphql.Null 29726 } 29727 ctx = graphql.WithFieldContext(ctx, fc) 29728 defer func() { 29729 if r := recover(); r != nil { 29730 ec.Error(ctx, ec.Recover(ctx, r)) 29731 ret = graphql.Null 29732 } 29733 }() 29734 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29735 ctx = rctx // use context from middleware stack in children 29736 return obj.Media(), nil 29737 }) 29738 if err != nil { 29739 ec.Error(ctx, err) 29740 return graphql.Null 29741 } 29742 if resTmp == nil { 29743 if !graphql.HasFieldError(ctx, fc) { 29744 ec.Errorf(ctx, "must not be null") 29745 } 29746 return graphql.Null 29747 } 29748 res := resTmp.(graphqlproductdto.ProductMedia) 29749 fc.Result = res 29750 return ec.marshalNCommerce_Product_Media2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMedia(ctx, field.Selections, res) 29751 } 29752 29753 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29754 fc = &graphql.FieldContext{ 29755 Object: "Commerce_Product_SimpleProduct", 29756 Field: field, 29757 IsMethod: true, 29758 IsResolver: false, 29759 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29760 switch field.Name { 29761 case "all": 29762 return ec.fieldContext_Commerce_Product_Media_all(ctx, field) 29763 case "getMedia": 29764 return ec.fieldContext_Commerce_Product_Media_getMedia(ctx, field) 29765 } 29766 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Media", field.Name) 29767 }, 29768 } 29769 return fc, nil 29770 } 29771 29772 func (ec *executionContext) _Commerce_Product_SimpleProduct_price(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29773 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_price(ctx, field) 29774 if err != nil { 29775 return graphql.Null 29776 } 29777 ctx = graphql.WithFieldContext(ctx, fc) 29778 defer func() { 29779 if r := recover(); r != nil { 29780 ec.Error(ctx, ec.Recover(ctx, r)) 29781 ret = graphql.Null 29782 } 29783 }() 29784 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29785 ctx = rctx // use context from middleware stack in children 29786 return obj.Price(), nil 29787 }) 29788 if err != nil { 29789 ec.Error(ctx, err) 29790 return graphql.Null 29791 } 29792 if resTmp == nil { 29793 if !graphql.HasFieldError(ctx, fc) { 29794 ec.Errorf(ctx, "must not be null") 29795 } 29796 return graphql.Null 29797 } 29798 res := resTmp.(domain1.PriceInfo) 29799 fc.Result = res 29800 return ec.marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx, field.Selections, res) 29801 } 29802 29803 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_price(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29804 fc = &graphql.FieldContext{ 29805 Object: "Commerce_Product_SimpleProduct", 29806 Field: field, 29807 IsMethod: true, 29808 IsResolver: false, 29809 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29810 switch field.Name { 29811 case "default": 29812 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 29813 case "discounted": 29814 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 29815 case "discountText": 29816 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 29817 case "activeBase": 29818 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 29819 case "activeBaseAmount": 29820 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 29821 case "activeBaseUnit": 29822 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 29823 case "isDiscounted": 29824 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 29825 case "campaignRules": 29826 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 29827 case "denyMoreDiscounts": 29828 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 29829 case "context": 29830 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 29831 case "taxClass": 29832 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 29833 } 29834 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 29835 }, 29836 } 29837 return fc, nil 29838 } 29839 29840 func (ec *executionContext) _Commerce_Product_SimpleProduct_availablePrices(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29841 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_availablePrices(ctx, field) 29842 if err != nil { 29843 return graphql.Null 29844 } 29845 ctx = graphql.WithFieldContext(ctx, fc) 29846 defer func() { 29847 if r := recover(); r != nil { 29848 ec.Error(ctx, ec.Recover(ctx, r)) 29849 ret = graphql.Null 29850 } 29851 }() 29852 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29853 ctx = rctx // use context from middleware stack in children 29854 return obj.AvailablePrices(), nil 29855 }) 29856 if err != nil { 29857 ec.Error(ctx, err) 29858 return graphql.Null 29859 } 29860 if resTmp == nil { 29861 return graphql.Null 29862 } 29863 res := resTmp.([]domain1.PriceInfo) 29864 fc.Result = res 29865 return ec.marshalOCommerce_Product_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfoᚄ(ctx, field.Selections, res) 29866 } 29867 29868 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_availablePrices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29869 fc = &graphql.FieldContext{ 29870 Object: "Commerce_Product_SimpleProduct", 29871 Field: field, 29872 IsMethod: true, 29873 IsResolver: false, 29874 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29875 switch field.Name { 29876 case "default": 29877 return ec.fieldContext_Commerce_Product_PriceInfo_default(ctx, field) 29878 case "discounted": 29879 return ec.fieldContext_Commerce_Product_PriceInfo_discounted(ctx, field) 29880 case "discountText": 29881 return ec.fieldContext_Commerce_Product_PriceInfo_discountText(ctx, field) 29882 case "activeBase": 29883 return ec.fieldContext_Commerce_Product_PriceInfo_activeBase(ctx, field) 29884 case "activeBaseAmount": 29885 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseAmount(ctx, field) 29886 case "activeBaseUnit": 29887 return ec.fieldContext_Commerce_Product_PriceInfo_activeBaseUnit(ctx, field) 29888 case "isDiscounted": 29889 return ec.fieldContext_Commerce_Product_PriceInfo_isDiscounted(ctx, field) 29890 case "campaignRules": 29891 return ec.fieldContext_Commerce_Product_PriceInfo_campaignRules(ctx, field) 29892 case "denyMoreDiscounts": 29893 return ec.fieldContext_Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field) 29894 case "context": 29895 return ec.fieldContext_Commerce_Product_PriceInfo_context(ctx, field) 29896 case "taxClass": 29897 return ec.fieldContext_Commerce_Product_PriceInfo_taxClass(ctx, field) 29898 } 29899 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_PriceInfo", field.Name) 29900 }, 29901 } 29902 return fc, nil 29903 } 29904 29905 func (ec *executionContext) _Commerce_Product_SimpleProduct_title(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29906 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_title(ctx, field) 29907 if err != nil { 29908 return graphql.Null 29909 } 29910 ctx = graphql.WithFieldContext(ctx, fc) 29911 defer func() { 29912 if r := recover(); r != nil { 29913 ec.Error(ctx, ec.Recover(ctx, r)) 29914 ret = graphql.Null 29915 } 29916 }() 29917 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29918 ctx = rctx // use context from middleware stack in children 29919 return obj.Title(), nil 29920 }) 29921 if err != nil { 29922 ec.Error(ctx, err) 29923 return graphql.Null 29924 } 29925 if resTmp == nil { 29926 if !graphql.HasFieldError(ctx, fc) { 29927 ec.Errorf(ctx, "must not be null") 29928 } 29929 return graphql.Null 29930 } 29931 res := resTmp.(string) 29932 fc.Result = res 29933 return ec.marshalNString2string(ctx, field.Selections, res) 29934 } 29935 29936 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29937 fc = &graphql.FieldContext{ 29938 Object: "Commerce_Product_SimpleProduct", 29939 Field: field, 29940 IsMethod: true, 29941 IsResolver: false, 29942 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29943 return nil, errors.New("field of type String does not have child fields") 29944 }, 29945 } 29946 return fc, nil 29947 } 29948 29949 func (ec *executionContext) _Commerce_Product_SimpleProduct_categories(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 29950 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_categories(ctx, field) 29951 if err != nil { 29952 return graphql.Null 29953 } 29954 ctx = graphql.WithFieldContext(ctx, fc) 29955 defer func() { 29956 if r := recover(); r != nil { 29957 ec.Error(ctx, ec.Recover(ctx, r)) 29958 ret = graphql.Null 29959 } 29960 }() 29961 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29962 ctx = rctx // use context from middleware stack in children 29963 return obj.Categories(), nil 29964 }) 29965 if err != nil { 29966 ec.Error(ctx, err) 29967 return graphql.Null 29968 } 29969 if resTmp == nil { 29970 if !graphql.HasFieldError(ctx, fc) { 29971 ec.Errorf(ctx, "must not be null") 29972 } 29973 return graphql.Null 29974 } 29975 res := resTmp.(graphqlproductdto.ProductCategories) 29976 fc.Result = res 29977 return ec.marshalNCommerce_Product_Categories2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductCategories(ctx, field.Selections, res) 29978 } 29979 29980 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 29981 fc = &graphql.FieldContext{ 29982 Object: "Commerce_Product_SimpleProduct", 29983 Field: field, 29984 IsMethod: true, 29985 IsResolver: false, 29986 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 29987 switch field.Name { 29988 case "main": 29989 return ec.fieldContext_Commerce_Product_Categories_main(ctx, field) 29990 case "all": 29991 return ec.fieldContext_Commerce_Product_Categories_all(ctx, field) 29992 } 29993 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Categories", field.Name) 29994 }, 29995 } 29996 return fc, nil 29997 } 29998 29999 func (ec *executionContext) _Commerce_Product_SimpleProduct_description(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30000 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_description(ctx, field) 30001 if err != nil { 30002 return graphql.Null 30003 } 30004 ctx = graphql.WithFieldContext(ctx, fc) 30005 defer func() { 30006 if r := recover(); r != nil { 30007 ec.Error(ctx, ec.Recover(ctx, r)) 30008 ret = graphql.Null 30009 } 30010 }() 30011 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30012 ctx = rctx // use context from middleware stack in children 30013 return obj.Description(), nil 30014 }) 30015 if err != nil { 30016 ec.Error(ctx, err) 30017 return graphql.Null 30018 } 30019 if resTmp == nil { 30020 if !graphql.HasFieldError(ctx, fc) { 30021 ec.Errorf(ctx, "must not be null") 30022 } 30023 return graphql.Null 30024 } 30025 res := resTmp.(string) 30026 fc.Result = res 30027 return ec.marshalNString2string(ctx, field.Selections, res) 30028 } 30029 30030 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30031 fc = &graphql.FieldContext{ 30032 Object: "Commerce_Product_SimpleProduct", 30033 Field: field, 30034 IsMethod: true, 30035 IsResolver: false, 30036 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30037 return nil, errors.New("field of type String does not have child fields") 30038 }, 30039 } 30040 return fc, nil 30041 } 30042 30043 func (ec *executionContext) _Commerce_Product_SimpleProduct_shortDescription(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30044 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_shortDescription(ctx, field) 30045 if err != nil { 30046 return graphql.Null 30047 } 30048 ctx = graphql.WithFieldContext(ctx, fc) 30049 defer func() { 30050 if r := recover(); r != nil { 30051 ec.Error(ctx, ec.Recover(ctx, r)) 30052 ret = graphql.Null 30053 } 30054 }() 30055 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30056 ctx = rctx // use context from middleware stack in children 30057 return obj.ShortDescription(), nil 30058 }) 30059 if err != nil { 30060 ec.Error(ctx, err) 30061 return graphql.Null 30062 } 30063 if resTmp == nil { 30064 if !graphql.HasFieldError(ctx, fc) { 30065 ec.Errorf(ctx, "must not be null") 30066 } 30067 return graphql.Null 30068 } 30069 res := resTmp.(string) 30070 fc.Result = res 30071 return ec.marshalNString2string(ctx, field.Selections, res) 30072 } 30073 30074 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_shortDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30075 fc = &graphql.FieldContext{ 30076 Object: "Commerce_Product_SimpleProduct", 30077 Field: field, 30078 IsMethod: true, 30079 IsResolver: false, 30080 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30081 return nil, errors.New("field of type String does not have child fields") 30082 }, 30083 } 30084 return fc, nil 30085 } 30086 30087 func (ec *executionContext) _Commerce_Product_SimpleProduct_meta(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30088 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_meta(ctx, field) 30089 if err != nil { 30090 return graphql.Null 30091 } 30092 ctx = graphql.WithFieldContext(ctx, fc) 30093 defer func() { 30094 if r := recover(); r != nil { 30095 ec.Error(ctx, ec.Recover(ctx, r)) 30096 ret = graphql.Null 30097 } 30098 }() 30099 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30100 ctx = rctx // use context from middleware stack in children 30101 return obj.Meta(), nil 30102 }) 30103 if err != nil { 30104 ec.Error(ctx, err) 30105 return graphql.Null 30106 } 30107 if resTmp == nil { 30108 if !graphql.HasFieldError(ctx, fc) { 30109 ec.Errorf(ctx, "must not be null") 30110 } 30111 return graphql.Null 30112 } 30113 res := resTmp.(graphqlproductdto.ProductMeta) 30114 fc.Result = res 30115 return ec.marshalNCommerce_Product_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMeta(ctx, field.Selections, res) 30116 } 30117 30118 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_meta(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30119 fc = &graphql.FieldContext{ 30120 Object: "Commerce_Product_SimpleProduct", 30121 Field: field, 30122 IsMethod: true, 30123 IsResolver: false, 30124 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30125 switch field.Name { 30126 case "keywords": 30127 return ec.fieldContext_Commerce_Product_Meta_keywords(ctx, field) 30128 } 30129 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Meta", field.Name) 30130 }, 30131 } 30132 return fc, nil 30133 } 30134 30135 func (ec *executionContext) _Commerce_Product_SimpleProduct_loyalty(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30136 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_loyalty(ctx, field) 30137 if err != nil { 30138 return graphql.Null 30139 } 30140 ctx = graphql.WithFieldContext(ctx, fc) 30141 defer func() { 30142 if r := recover(); r != nil { 30143 ec.Error(ctx, ec.Recover(ctx, r)) 30144 ret = graphql.Null 30145 } 30146 }() 30147 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30148 ctx = rctx // use context from middleware stack in children 30149 return obj.Loyalty(), nil 30150 }) 30151 if err != nil { 30152 ec.Error(ctx, err) 30153 return graphql.Null 30154 } 30155 if resTmp == nil { 30156 if !graphql.HasFieldError(ctx, fc) { 30157 ec.Errorf(ctx, "must not be null") 30158 } 30159 return graphql.Null 30160 } 30161 res := resTmp.(graphqlproductdto.ProductLoyalty) 30162 fc.Result = res 30163 return ec.marshalNCommerce_Product_Loyalty2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductLoyalty(ctx, field.Selections, res) 30164 } 30165 30166 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_loyalty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30167 fc = &graphql.FieldContext{ 30168 Object: "Commerce_Product_SimpleProduct", 30169 Field: field, 30170 IsMethod: true, 30171 IsResolver: false, 30172 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30173 switch field.Name { 30174 case "price": 30175 return ec.fieldContext_Commerce_Product_Loyalty_price(ctx, field) 30176 case "availablePrices": 30177 return ec.fieldContext_Commerce_Product_Loyalty_availablePrices(ctx, field) 30178 case "earning": 30179 return ec.fieldContext_Commerce_Product_Loyalty_earning(ctx, field) 30180 } 30181 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Loyalty", field.Name) 30182 }, 30183 } 30184 return fc, nil 30185 } 30186 30187 func (ec *executionContext) _Commerce_Product_SimpleProduct_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30188 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_attributes(ctx, field) 30189 if err != nil { 30190 return graphql.Null 30191 } 30192 ctx = graphql.WithFieldContext(ctx, fc) 30193 defer func() { 30194 if r := recover(); r != nil { 30195 ec.Error(ctx, ec.Recover(ctx, r)) 30196 ret = graphql.Null 30197 } 30198 }() 30199 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30200 ctx = rctx // use context from middleware stack in children 30201 return obj.Attributes(), nil 30202 }) 30203 if err != nil { 30204 ec.Error(ctx, err) 30205 return graphql.Null 30206 } 30207 if resTmp == nil { 30208 if !graphql.HasFieldError(ctx, fc) { 30209 ec.Errorf(ctx, "must not be null") 30210 } 30211 return graphql.Null 30212 } 30213 res := resTmp.(domain1.Attributes) 30214 fc.Result = res 30215 return ec.marshalNCommerce_Product_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributes(ctx, field.Selections, res) 30216 } 30217 30218 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30219 fc = &graphql.FieldContext{ 30220 Object: "Commerce_Product_SimpleProduct", 30221 Field: field, 30222 IsMethod: true, 30223 IsResolver: false, 30224 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30225 switch field.Name { 30226 case "attributeKeys": 30227 return ec.fieldContext_Commerce_Product_Attributes_attributeKeys(ctx, field) 30228 case "attributes": 30229 return ec.fieldContext_Commerce_Product_Attributes_attributes(ctx, field) 30230 case "hasAttribute": 30231 return ec.fieldContext_Commerce_Product_Attributes_hasAttribute(ctx, field) 30232 case "getAttribute": 30233 return ec.fieldContext_Commerce_Product_Attributes_getAttribute(ctx, field) 30234 case "getAttributesByKey": 30235 return ec.fieldContext_Commerce_Product_Attributes_getAttributesByKey(ctx, field) 30236 } 30237 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Attributes", field.Name) 30238 }, 30239 } 30240 return fc, nil 30241 } 30242 30243 func (ec *executionContext) _Commerce_Product_SimpleProduct_badges(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.SimpleProduct) (ret graphql.Marshaler) { 30244 fc, err := ec.fieldContext_Commerce_Product_SimpleProduct_badges(ctx, field) 30245 if err != nil { 30246 return graphql.Null 30247 } 30248 ctx = graphql.WithFieldContext(ctx, fc) 30249 defer func() { 30250 if r := recover(); r != nil { 30251 ec.Error(ctx, ec.Recover(ctx, r)) 30252 ret = graphql.Null 30253 } 30254 }() 30255 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30256 ctx = rctx // use context from middleware stack in children 30257 return obj.Badges(), nil 30258 }) 30259 if err != nil { 30260 ec.Error(ctx, err) 30261 return graphql.Null 30262 } 30263 if resTmp == nil { 30264 if !graphql.HasFieldError(ctx, fc) { 30265 ec.Errorf(ctx, "must not be null") 30266 } 30267 return graphql.Null 30268 } 30269 res := resTmp.(graphqlproductdto.ProductBadges) 30270 fc.Result = res 30271 return ec.marshalNCommerce_Product_Badges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductBadges(ctx, field.Selections, res) 30272 } 30273 30274 func (ec *executionContext) fieldContext_Commerce_Product_SimpleProduct_badges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30275 fc = &graphql.FieldContext{ 30276 Object: "Commerce_Product_SimpleProduct", 30277 Field: field, 30278 IsMethod: true, 30279 IsResolver: false, 30280 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30281 switch field.Name { 30282 case "all": 30283 return ec.fieldContext_Commerce_Product_Badges_all(ctx, field) 30284 case "first": 30285 return ec.fieldContext_Commerce_Product_Badges_first(ctx, field) 30286 } 30287 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_Badges", field.Name) 30288 }, 30289 } 30290 return fc, nil 30291 } 30292 30293 func (ec *executionContext) _Commerce_Product_VariantSelection_variants(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelection) (ret graphql.Marshaler) { 30294 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_variants(ctx, field) 30295 if err != nil { 30296 return graphql.Null 30297 } 30298 ctx = graphql.WithFieldContext(ctx, fc) 30299 defer func() { 30300 if r := recover(); r != nil { 30301 ec.Error(ctx, ec.Recover(ctx, r)) 30302 ret = graphql.Null 30303 } 30304 }() 30305 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30306 ctx = rctx // use context from middleware stack in children 30307 return obj.Variants, nil 30308 }) 30309 if err != nil { 30310 ec.Error(ctx, err) 30311 return graphql.Null 30312 } 30313 if resTmp == nil { 30314 if !graphql.HasFieldError(ctx, fc) { 30315 ec.Errorf(ctx, "must not be null") 30316 } 30317 return graphql.Null 30318 } 30319 res := resTmp.([]graphqlproductdto.VariantSelectionMatch) 30320 fc.Result = res 30321 return ec.marshalNCommerce_Product_VariantSelection_Match2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchᚄ(ctx, field.Selections, res) 30322 } 30323 30324 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_variants(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30325 fc = &graphql.FieldContext{ 30326 Object: "Commerce_Product_VariantSelection", 30327 Field: field, 30328 IsMethod: false, 30329 IsResolver: false, 30330 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30331 switch field.Name { 30332 case "attributes": 30333 return ec.fieldContext_Commerce_Product_VariantSelection_Match_attributes(ctx, field) 30334 case "variant": 30335 return ec.fieldContext_Commerce_Product_VariantSelection_Match_variant(ctx, field) 30336 } 30337 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Match", field.Name) 30338 }, 30339 } 30340 return fc, nil 30341 } 30342 30343 func (ec *executionContext) _Commerce_Product_VariantSelection_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelection) (ret graphql.Marshaler) { 30344 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_attributes(ctx, field) 30345 if err != nil { 30346 return graphql.Null 30347 } 30348 ctx = graphql.WithFieldContext(ctx, fc) 30349 defer func() { 30350 if r := recover(); r != nil { 30351 ec.Error(ctx, ec.Recover(ctx, r)) 30352 ret = graphql.Null 30353 } 30354 }() 30355 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30356 ctx = rctx // use context from middleware stack in children 30357 return obj.Attributes, nil 30358 }) 30359 if err != nil { 30360 ec.Error(ctx, err) 30361 return graphql.Null 30362 } 30363 if resTmp == nil { 30364 if !graphql.HasFieldError(ctx, fc) { 30365 ec.Errorf(ctx, "must not be null") 30366 } 30367 return graphql.Null 30368 } 30369 res := resTmp.([]graphqlproductdto.VariantSelectionAttribute) 30370 fc.Result = res 30371 return ec.marshalNCommerce_Product_VariantSelection_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeᚄ(ctx, field.Selections, res) 30372 } 30373 30374 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30375 fc = &graphql.FieldContext{ 30376 Object: "Commerce_Product_VariantSelection", 30377 Field: field, 30378 IsMethod: false, 30379 IsResolver: false, 30380 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30381 switch field.Name { 30382 case "label": 30383 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_label(ctx, field) 30384 case "code": 30385 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_code(ctx, field) 30386 case "options": 30387 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_options(ctx, field) 30388 } 30389 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Attribute", field.Name) 30390 }, 30391 } 30392 return fc, nil 30393 } 30394 30395 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttribute) (ret graphql.Marshaler) { 30396 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_label(ctx, field) 30397 if err != nil { 30398 return graphql.Null 30399 } 30400 ctx = graphql.WithFieldContext(ctx, fc) 30401 defer func() { 30402 if r := recover(); r != nil { 30403 ec.Error(ctx, ec.Recover(ctx, r)) 30404 ret = graphql.Null 30405 } 30406 }() 30407 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30408 ctx = rctx // use context from middleware stack in children 30409 return obj.Label, nil 30410 }) 30411 if err != nil { 30412 ec.Error(ctx, err) 30413 return graphql.Null 30414 } 30415 if resTmp == nil { 30416 if !graphql.HasFieldError(ctx, fc) { 30417 ec.Errorf(ctx, "must not be null") 30418 } 30419 return graphql.Null 30420 } 30421 res := resTmp.(string) 30422 fc.Result = res 30423 return ec.marshalNString2string(ctx, field.Selections, res) 30424 } 30425 30426 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30427 fc = &graphql.FieldContext{ 30428 Object: "Commerce_Product_VariantSelection_Attribute", 30429 Field: field, 30430 IsMethod: false, 30431 IsResolver: false, 30432 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30433 return nil, errors.New("field of type String does not have child fields") 30434 }, 30435 } 30436 return fc, nil 30437 } 30438 30439 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_code(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttribute) (ret graphql.Marshaler) { 30440 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_code(ctx, field) 30441 if err != nil { 30442 return graphql.Null 30443 } 30444 ctx = graphql.WithFieldContext(ctx, fc) 30445 defer func() { 30446 if r := recover(); r != nil { 30447 ec.Error(ctx, ec.Recover(ctx, r)) 30448 ret = graphql.Null 30449 } 30450 }() 30451 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30452 ctx = rctx // use context from middleware stack in children 30453 return obj.Code, nil 30454 }) 30455 if err != nil { 30456 ec.Error(ctx, err) 30457 return graphql.Null 30458 } 30459 if resTmp == nil { 30460 if !graphql.HasFieldError(ctx, fc) { 30461 ec.Errorf(ctx, "must not be null") 30462 } 30463 return graphql.Null 30464 } 30465 res := resTmp.(string) 30466 fc.Result = res 30467 return ec.marshalNString2string(ctx, field.Selections, res) 30468 } 30469 30470 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30471 fc = &graphql.FieldContext{ 30472 Object: "Commerce_Product_VariantSelection_Attribute", 30473 Field: field, 30474 IsMethod: false, 30475 IsResolver: false, 30476 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30477 return nil, errors.New("field of type String does not have child fields") 30478 }, 30479 } 30480 return fc, nil 30481 } 30482 30483 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_options(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttribute) (ret graphql.Marshaler) { 30484 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_options(ctx, field) 30485 if err != nil { 30486 return graphql.Null 30487 } 30488 ctx = graphql.WithFieldContext(ctx, fc) 30489 defer func() { 30490 if r := recover(); r != nil { 30491 ec.Error(ctx, ec.Recover(ctx, r)) 30492 ret = graphql.Null 30493 } 30494 }() 30495 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30496 ctx = rctx // use context from middleware stack in children 30497 return obj.Options, nil 30498 }) 30499 if err != nil { 30500 ec.Error(ctx, err) 30501 return graphql.Null 30502 } 30503 if resTmp == nil { 30504 if !graphql.HasFieldError(ctx, fc) { 30505 ec.Errorf(ctx, "must not be null") 30506 } 30507 return graphql.Null 30508 } 30509 res := resTmp.([]graphqlproductdto.VariantSelectionAttributeOption) 30510 fc.Result = res 30511 return ec.marshalNCommerce_Product_VariantSelection_Attribute_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeOptionᚄ(ctx, field.Selections, res) 30512 } 30513 30514 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30515 fc = &graphql.FieldContext{ 30516 Object: "Commerce_Product_VariantSelection_Attribute", 30517 Field: field, 30518 IsMethod: false, 30519 IsResolver: false, 30520 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30521 switch field.Name { 30522 case "label": 30523 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_label(ctx, field) 30524 case "unitCode": 30525 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_unitCode(ctx, field) 30526 case "otherAttributesRestrictions": 30527 return ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_otherAttributesRestrictions(ctx, field) 30528 } 30529 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Attribute_Option", field.Name) 30530 }, 30531 } 30532 return fc, nil 30533 } 30534 30535 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_Option_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttributeOption) (ret graphql.Marshaler) { 30536 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_label(ctx, field) 30537 if err != nil { 30538 return graphql.Null 30539 } 30540 ctx = graphql.WithFieldContext(ctx, fc) 30541 defer func() { 30542 if r := recover(); r != nil { 30543 ec.Error(ctx, ec.Recover(ctx, r)) 30544 ret = graphql.Null 30545 } 30546 }() 30547 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30548 ctx = rctx // use context from middleware stack in children 30549 return obj.Label, nil 30550 }) 30551 if err != nil { 30552 ec.Error(ctx, err) 30553 return graphql.Null 30554 } 30555 if resTmp == nil { 30556 if !graphql.HasFieldError(ctx, fc) { 30557 ec.Errorf(ctx, "must not be null") 30558 } 30559 return graphql.Null 30560 } 30561 res := resTmp.(string) 30562 fc.Result = res 30563 return ec.marshalNString2string(ctx, field.Selections, res) 30564 } 30565 30566 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_Option_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30567 fc = &graphql.FieldContext{ 30568 Object: "Commerce_Product_VariantSelection_Attribute_Option", 30569 Field: field, 30570 IsMethod: false, 30571 IsResolver: false, 30572 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30573 return nil, errors.New("field of type String does not have child fields") 30574 }, 30575 } 30576 return fc, nil 30577 } 30578 30579 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_Option_unitCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttributeOption) (ret graphql.Marshaler) { 30580 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_unitCode(ctx, field) 30581 if err != nil { 30582 return graphql.Null 30583 } 30584 ctx = graphql.WithFieldContext(ctx, fc) 30585 defer func() { 30586 if r := recover(); r != nil { 30587 ec.Error(ctx, ec.Recover(ctx, r)) 30588 ret = graphql.Null 30589 } 30590 }() 30591 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30592 ctx = rctx // use context from middleware stack in children 30593 return obj.UnitCode, nil 30594 }) 30595 if err != nil { 30596 ec.Error(ctx, err) 30597 return graphql.Null 30598 } 30599 if resTmp == nil { 30600 return graphql.Null 30601 } 30602 res := resTmp.(string) 30603 fc.Result = res 30604 return ec.marshalOString2string(ctx, field.Selections, res) 30605 } 30606 30607 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_Option_unitCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30608 fc = &graphql.FieldContext{ 30609 Object: "Commerce_Product_VariantSelection_Attribute_Option", 30610 Field: field, 30611 IsMethod: false, 30612 IsResolver: false, 30613 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30614 return nil, errors.New("field of type String does not have child fields") 30615 }, 30616 } 30617 return fc, nil 30618 } 30619 30620 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_Option_otherAttributesRestrictions(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionAttributeOption) (ret graphql.Marshaler) { 30621 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Attribute_Option_otherAttributesRestrictions(ctx, field) 30622 if err != nil { 30623 return graphql.Null 30624 } 30625 ctx = graphql.WithFieldContext(ctx, fc) 30626 defer func() { 30627 if r := recover(); r != nil { 30628 ec.Error(ctx, ec.Recover(ctx, r)) 30629 ret = graphql.Null 30630 } 30631 }() 30632 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30633 ctx = rctx // use context from middleware stack in children 30634 return obj.OtherAttributesRestrictions, nil 30635 }) 30636 if err != nil { 30637 ec.Error(ctx, err) 30638 return graphql.Null 30639 } 30640 if resTmp == nil { 30641 if !graphql.HasFieldError(ctx, fc) { 30642 ec.Errorf(ctx, "must not be null") 30643 } 30644 return graphql.Null 30645 } 30646 res := resTmp.([]graphqlproductdto.OtherAttributesRestriction) 30647 fc.Result = res 30648 return ec.marshalNCommerce_Product_VariantSelection_Option_OtherAttributesRestriction2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOtherAttributesRestrictionᚄ(ctx, field.Selections, res) 30649 } 30650 30651 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Attribute_Option_otherAttributesRestrictions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30652 fc = &graphql.FieldContext{ 30653 Object: "Commerce_Product_VariantSelection_Attribute_Option", 30654 Field: field, 30655 IsMethod: false, 30656 IsResolver: false, 30657 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30658 switch field.Name { 30659 case "code": 30660 return ec.fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_code(ctx, field) 30661 case "availableOptions": 30662 return ec.fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_availableOptions(ctx, field) 30663 } 30664 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Option_OtherAttributesRestriction", field.Name) 30665 }, 30666 } 30667 return fc, nil 30668 } 30669 30670 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_attributes(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionMatch) (ret graphql.Marshaler) { 30671 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Match_attributes(ctx, field) 30672 if err != nil { 30673 return graphql.Null 30674 } 30675 ctx = graphql.WithFieldContext(ctx, fc) 30676 defer func() { 30677 if r := recover(); r != nil { 30678 ec.Error(ctx, ec.Recover(ctx, r)) 30679 ret = graphql.Null 30680 } 30681 }() 30682 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30683 ctx = rctx // use context from middleware stack in children 30684 return obj.Attributes, nil 30685 }) 30686 if err != nil { 30687 ec.Error(ctx, err) 30688 return graphql.Null 30689 } 30690 if resTmp == nil { 30691 return graphql.Null 30692 } 30693 res := resTmp.([]graphqlproductdto.VariantSelectionMatchAttributes) 30694 fc.Result = res 30695 return ec.marshalOCommerce_Product_VariantSelection_Match_Attributes2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchAttributesᚄ(ctx, field.Selections, res) 30696 } 30697 30698 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Match_attributes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30699 fc = &graphql.FieldContext{ 30700 Object: "Commerce_Product_VariantSelection_Match", 30701 Field: field, 30702 IsMethod: false, 30703 IsResolver: false, 30704 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30705 switch field.Name { 30706 case "key": 30707 return ec.fieldContext_Commerce_Product_VariantSelection_Match_Attributes_key(ctx, field) 30708 case "value": 30709 return ec.fieldContext_Commerce_Product_VariantSelection_Match_Attributes_value(ctx, field) 30710 } 30711 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Match_Attributes", field.Name) 30712 }, 30713 } 30714 return fc, nil 30715 } 30716 30717 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_variant(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionMatch) (ret graphql.Marshaler) { 30718 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Match_variant(ctx, field) 30719 if err != nil { 30720 return graphql.Null 30721 } 30722 ctx = graphql.WithFieldContext(ctx, fc) 30723 defer func() { 30724 if r := recover(); r != nil { 30725 ec.Error(ctx, ec.Recover(ctx, r)) 30726 ret = graphql.Null 30727 } 30728 }() 30729 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30730 ctx = rctx // use context from middleware stack in children 30731 return obj.Variant, nil 30732 }) 30733 if err != nil { 30734 ec.Error(ctx, err) 30735 return graphql.Null 30736 } 30737 if resTmp == nil { 30738 if !graphql.HasFieldError(ctx, fc) { 30739 ec.Errorf(ctx, "must not be null") 30740 } 30741 return graphql.Null 30742 } 30743 res := resTmp.(graphqlproductdto.VariantSelectionMatchVariant) 30744 fc.Result = res 30745 return ec.marshalNCommerce_Product_VariantSelection_Match_Variant2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchVariant(ctx, field.Selections, res) 30746 } 30747 30748 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Match_variant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30749 fc = &graphql.FieldContext{ 30750 Object: "Commerce_Product_VariantSelection_Match", 30751 Field: field, 30752 IsMethod: false, 30753 IsResolver: false, 30754 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30755 switch field.Name { 30756 case "marketplaceCode": 30757 return ec.fieldContext_Commerce_Product_VariantSelection_Match_Variant_marketplaceCode(ctx, field) 30758 } 30759 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariantSelection_Match_Variant", field.Name) 30760 }, 30761 } 30762 return fc, nil 30763 } 30764 30765 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_Attributes_key(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionMatchAttributes) (ret graphql.Marshaler) { 30766 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Match_Attributes_key(ctx, field) 30767 if err != nil { 30768 return graphql.Null 30769 } 30770 ctx = graphql.WithFieldContext(ctx, fc) 30771 defer func() { 30772 if r := recover(); r != nil { 30773 ec.Error(ctx, ec.Recover(ctx, r)) 30774 ret = graphql.Null 30775 } 30776 }() 30777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30778 ctx = rctx // use context from middleware stack in children 30779 return obj.Key, nil 30780 }) 30781 if err != nil { 30782 ec.Error(ctx, err) 30783 return graphql.Null 30784 } 30785 if resTmp == nil { 30786 if !graphql.HasFieldError(ctx, fc) { 30787 ec.Errorf(ctx, "must not be null") 30788 } 30789 return graphql.Null 30790 } 30791 res := resTmp.(string) 30792 fc.Result = res 30793 return ec.marshalNString2string(ctx, field.Selections, res) 30794 } 30795 30796 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Match_Attributes_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30797 fc = &graphql.FieldContext{ 30798 Object: "Commerce_Product_VariantSelection_Match_Attributes", 30799 Field: field, 30800 IsMethod: false, 30801 IsResolver: false, 30802 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30803 return nil, errors.New("field of type String does not have child fields") 30804 }, 30805 } 30806 return fc, nil 30807 } 30808 30809 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_Attributes_value(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionMatchAttributes) (ret graphql.Marshaler) { 30810 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Match_Attributes_value(ctx, field) 30811 if err != nil { 30812 return graphql.Null 30813 } 30814 ctx = graphql.WithFieldContext(ctx, fc) 30815 defer func() { 30816 if r := recover(); r != nil { 30817 ec.Error(ctx, ec.Recover(ctx, r)) 30818 ret = graphql.Null 30819 } 30820 }() 30821 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30822 ctx = rctx // use context from middleware stack in children 30823 return obj.Value, nil 30824 }) 30825 if err != nil { 30826 ec.Error(ctx, err) 30827 return graphql.Null 30828 } 30829 if resTmp == nil { 30830 if !graphql.HasFieldError(ctx, fc) { 30831 ec.Errorf(ctx, "must not be null") 30832 } 30833 return graphql.Null 30834 } 30835 res := resTmp.(string) 30836 fc.Result = res 30837 return ec.marshalNString2string(ctx, field.Selections, res) 30838 } 30839 30840 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Match_Attributes_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30841 fc = &graphql.FieldContext{ 30842 Object: "Commerce_Product_VariantSelection_Match_Attributes", 30843 Field: field, 30844 IsMethod: false, 30845 IsResolver: false, 30846 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30847 return nil, errors.New("field of type String does not have child fields") 30848 }, 30849 } 30850 return fc, nil 30851 } 30852 30853 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_Variant_marketplaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariantSelectionMatchVariant) (ret graphql.Marshaler) { 30854 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Match_Variant_marketplaceCode(ctx, field) 30855 if err != nil { 30856 return graphql.Null 30857 } 30858 ctx = graphql.WithFieldContext(ctx, fc) 30859 defer func() { 30860 if r := recover(); r != nil { 30861 ec.Error(ctx, ec.Recover(ctx, r)) 30862 ret = graphql.Null 30863 } 30864 }() 30865 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30866 ctx = rctx // use context from middleware stack in children 30867 return obj.MarketplaceCode, nil 30868 }) 30869 if err != nil { 30870 ec.Error(ctx, err) 30871 return graphql.Null 30872 } 30873 if resTmp == nil { 30874 if !graphql.HasFieldError(ctx, fc) { 30875 ec.Errorf(ctx, "must not be null") 30876 } 30877 return graphql.Null 30878 } 30879 res := resTmp.(string) 30880 fc.Result = res 30881 return ec.marshalNString2string(ctx, field.Selections, res) 30882 } 30883 30884 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Match_Variant_marketplaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30885 fc = &graphql.FieldContext{ 30886 Object: "Commerce_Product_VariantSelection_Match_Variant", 30887 Field: field, 30888 IsMethod: false, 30889 IsResolver: false, 30890 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30891 return nil, errors.New("field of type String does not have child fields") 30892 }, 30893 } 30894 return fc, nil 30895 } 30896 30897 func (ec *executionContext) _Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_code(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.OtherAttributesRestriction) (ret graphql.Marshaler) { 30898 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_code(ctx, field) 30899 if err != nil { 30900 return graphql.Null 30901 } 30902 ctx = graphql.WithFieldContext(ctx, fc) 30903 defer func() { 30904 if r := recover(); r != nil { 30905 ec.Error(ctx, ec.Recover(ctx, r)) 30906 ret = graphql.Null 30907 } 30908 }() 30909 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30910 ctx = rctx // use context from middleware stack in children 30911 return obj.Code, nil 30912 }) 30913 if err != nil { 30914 ec.Error(ctx, err) 30915 return graphql.Null 30916 } 30917 if resTmp == nil { 30918 if !graphql.HasFieldError(ctx, fc) { 30919 ec.Errorf(ctx, "must not be null") 30920 } 30921 return graphql.Null 30922 } 30923 res := resTmp.(string) 30924 fc.Result = res 30925 return ec.marshalNString2string(ctx, field.Selections, res) 30926 } 30927 30928 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30929 fc = &graphql.FieldContext{ 30930 Object: "Commerce_Product_VariantSelection_Option_OtherAttributesRestriction", 30931 Field: field, 30932 IsMethod: false, 30933 IsResolver: false, 30934 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30935 return nil, errors.New("field of type String does not have child fields") 30936 }, 30937 } 30938 return fc, nil 30939 } 30940 30941 func (ec *executionContext) _Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_availableOptions(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.OtherAttributesRestriction) (ret graphql.Marshaler) { 30942 fc, err := ec.fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_availableOptions(ctx, field) 30943 if err != nil { 30944 return graphql.Null 30945 } 30946 ctx = graphql.WithFieldContext(ctx, fc) 30947 defer func() { 30948 if r := recover(); r != nil { 30949 ec.Error(ctx, ec.Recover(ctx, r)) 30950 ret = graphql.Null 30951 } 30952 }() 30953 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30954 ctx = rctx // use context from middleware stack in children 30955 return obj.AvailableOptions, nil 30956 }) 30957 if err != nil { 30958 ec.Error(ctx, err) 30959 return graphql.Null 30960 } 30961 if resTmp == nil { 30962 if !graphql.HasFieldError(ctx, fc) { 30963 ec.Errorf(ctx, "must not be null") 30964 } 30965 return graphql.Null 30966 } 30967 res := resTmp.([]string) 30968 fc.Result = res 30969 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 30970 } 30971 30972 func (ec *executionContext) fieldContext_Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_availableOptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 30973 fc = &graphql.FieldContext{ 30974 Object: "Commerce_Product_VariantSelection_Option_OtherAttributesRestriction", 30975 Field: field, 30976 IsMethod: false, 30977 IsResolver: false, 30978 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 30979 return nil, errors.New("field of type String does not have child fields") 30980 }, 30981 } 30982 return fc, nil 30983 } 30984 30985 func (ec *executionContext) _Commerce_Product_VariationSelection_code(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelection) (ret graphql.Marshaler) { 30986 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_code(ctx, field) 30987 if err != nil { 30988 return graphql.Null 30989 } 30990 ctx = graphql.WithFieldContext(ctx, fc) 30991 defer func() { 30992 if r := recover(); r != nil { 30993 ec.Error(ctx, ec.Recover(ctx, r)) 30994 ret = graphql.Null 30995 } 30996 }() 30997 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30998 ctx = rctx // use context from middleware stack in children 30999 return obj.Code, nil 31000 }) 31001 if err != nil { 31002 ec.Error(ctx, err) 31003 return graphql.Null 31004 } 31005 if resTmp == nil { 31006 if !graphql.HasFieldError(ctx, fc) { 31007 ec.Errorf(ctx, "must not be null") 31008 } 31009 return graphql.Null 31010 } 31011 res := resTmp.(string) 31012 fc.Result = res 31013 return ec.marshalNString2string(ctx, field.Selections, res) 31014 } 31015 31016 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_code(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31017 fc = &graphql.FieldContext{ 31018 Object: "Commerce_Product_VariationSelection", 31019 Field: field, 31020 IsMethod: false, 31021 IsResolver: false, 31022 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31023 return nil, errors.New("field of type String does not have child fields") 31024 }, 31025 } 31026 return fc, nil 31027 } 31028 31029 func (ec *executionContext) _Commerce_Product_VariationSelection_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelection) (ret graphql.Marshaler) { 31030 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_label(ctx, field) 31031 if err != nil { 31032 return graphql.Null 31033 } 31034 ctx = graphql.WithFieldContext(ctx, fc) 31035 defer func() { 31036 if r := recover(); r != nil { 31037 ec.Error(ctx, ec.Recover(ctx, r)) 31038 ret = graphql.Null 31039 } 31040 }() 31041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31042 ctx = rctx // use context from middleware stack in children 31043 return obj.Label, nil 31044 }) 31045 if err != nil { 31046 ec.Error(ctx, err) 31047 return graphql.Null 31048 } 31049 if resTmp == nil { 31050 if !graphql.HasFieldError(ctx, fc) { 31051 ec.Errorf(ctx, "must not be null") 31052 } 31053 return graphql.Null 31054 } 31055 res := resTmp.(string) 31056 fc.Result = res 31057 return ec.marshalNString2string(ctx, field.Selections, res) 31058 } 31059 31060 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31061 fc = &graphql.FieldContext{ 31062 Object: "Commerce_Product_VariationSelection", 31063 Field: field, 31064 IsMethod: false, 31065 IsResolver: false, 31066 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31067 return nil, errors.New("field of type String does not have child fields") 31068 }, 31069 } 31070 return fc, nil 31071 } 31072 31073 func (ec *executionContext) _Commerce_Product_VariationSelection_options(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelection) (ret graphql.Marshaler) { 31074 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_options(ctx, field) 31075 if err != nil { 31076 return graphql.Null 31077 } 31078 ctx = graphql.WithFieldContext(ctx, fc) 31079 defer func() { 31080 if r := recover(); r != nil { 31081 ec.Error(ctx, ec.Recover(ctx, r)) 31082 ret = graphql.Null 31083 } 31084 }() 31085 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31086 ctx = rctx // use context from middleware stack in children 31087 return obj.Options, nil 31088 }) 31089 if err != nil { 31090 ec.Error(ctx, err) 31091 return graphql.Null 31092 } 31093 if resTmp == nil { 31094 return graphql.Null 31095 } 31096 res := resTmp.([]graphqlproductdto.VariationSelectionOption) 31097 fc.Result = res 31098 return ec.marshalOCommerce_Product_VariationSelection_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOption(ctx, field.Selections, res) 31099 } 31100 31101 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_options(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31102 fc = &graphql.FieldContext{ 31103 Object: "Commerce_Product_VariationSelection", 31104 Field: field, 31105 IsMethod: false, 31106 IsResolver: false, 31107 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31108 switch field.Name { 31109 case "label": 31110 return ec.fieldContext_Commerce_Product_VariationSelection_Option_label(ctx, field) 31111 case "unitCode": 31112 return ec.fieldContext_Commerce_Product_VariationSelection_Option_unitCode(ctx, field) 31113 case "state": 31114 return ec.fieldContext_Commerce_Product_VariationSelection_Option_state(ctx, field) 31115 case "variant": 31116 return ec.fieldContext_Commerce_Product_VariationSelection_Option_variant(ctx, field) 31117 } 31118 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariationSelection_Option", field.Name) 31119 }, 31120 } 31121 return fc, nil 31122 } 31123 31124 func (ec *executionContext) _Commerce_Product_VariationSelection_Option_label(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelectionOption) (ret graphql.Marshaler) { 31125 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_Option_label(ctx, field) 31126 if err != nil { 31127 return graphql.Null 31128 } 31129 ctx = graphql.WithFieldContext(ctx, fc) 31130 defer func() { 31131 if r := recover(); r != nil { 31132 ec.Error(ctx, ec.Recover(ctx, r)) 31133 ret = graphql.Null 31134 } 31135 }() 31136 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31137 ctx = rctx // use context from middleware stack in children 31138 return obj.Label, nil 31139 }) 31140 if err != nil { 31141 ec.Error(ctx, err) 31142 return graphql.Null 31143 } 31144 if resTmp == nil { 31145 if !graphql.HasFieldError(ctx, fc) { 31146 ec.Errorf(ctx, "must not be null") 31147 } 31148 return graphql.Null 31149 } 31150 res := resTmp.(string) 31151 fc.Result = res 31152 return ec.marshalNString2string(ctx, field.Selections, res) 31153 } 31154 31155 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_Option_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31156 fc = &graphql.FieldContext{ 31157 Object: "Commerce_Product_VariationSelection_Option", 31158 Field: field, 31159 IsMethod: false, 31160 IsResolver: false, 31161 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31162 return nil, errors.New("field of type String does not have child fields") 31163 }, 31164 } 31165 return fc, nil 31166 } 31167 31168 func (ec *executionContext) _Commerce_Product_VariationSelection_Option_unitCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelectionOption) (ret graphql.Marshaler) { 31169 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_Option_unitCode(ctx, field) 31170 if err != nil { 31171 return graphql.Null 31172 } 31173 ctx = graphql.WithFieldContext(ctx, fc) 31174 defer func() { 31175 if r := recover(); r != nil { 31176 ec.Error(ctx, ec.Recover(ctx, r)) 31177 ret = graphql.Null 31178 } 31179 }() 31180 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31181 ctx = rctx // use context from middleware stack in children 31182 return obj.UnitCode, nil 31183 }) 31184 if err != nil { 31185 ec.Error(ctx, err) 31186 return graphql.Null 31187 } 31188 if resTmp == nil { 31189 if !graphql.HasFieldError(ctx, fc) { 31190 ec.Errorf(ctx, "must not be null") 31191 } 31192 return graphql.Null 31193 } 31194 res := resTmp.(string) 31195 fc.Result = res 31196 return ec.marshalNString2string(ctx, field.Selections, res) 31197 } 31198 31199 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_Option_unitCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31200 fc = &graphql.FieldContext{ 31201 Object: "Commerce_Product_VariationSelection_Option", 31202 Field: field, 31203 IsMethod: false, 31204 IsResolver: false, 31205 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31206 return nil, errors.New("field of type String does not have child fields") 31207 }, 31208 } 31209 return fc, nil 31210 } 31211 31212 func (ec *executionContext) _Commerce_Product_VariationSelection_Option_state(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelectionOption) (ret graphql.Marshaler) { 31213 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_Option_state(ctx, field) 31214 if err != nil { 31215 return graphql.Null 31216 } 31217 ctx = graphql.WithFieldContext(ctx, fc) 31218 defer func() { 31219 if r := recover(); r != nil { 31220 ec.Error(ctx, ec.Recover(ctx, r)) 31221 ret = graphql.Null 31222 } 31223 }() 31224 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31225 ctx = rctx // use context from middleware stack in children 31226 return obj.State, nil 31227 }) 31228 if err != nil { 31229 ec.Error(ctx, err) 31230 return graphql.Null 31231 } 31232 if resTmp == nil { 31233 if !graphql.HasFieldError(ctx, fc) { 31234 ec.Errorf(ctx, "must not be null") 31235 } 31236 return graphql.Null 31237 } 31238 res := resTmp.(graphqlproductdto.VariationSelectionOptionState) 31239 fc.Result = res 31240 return ec.marshalNCommerce_Product_VariationSelection_OptionState2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOptionState(ctx, field.Selections, res) 31241 } 31242 31243 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_Option_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31244 fc = &graphql.FieldContext{ 31245 Object: "Commerce_Product_VariationSelection_Option", 31246 Field: field, 31247 IsMethod: false, 31248 IsResolver: false, 31249 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31250 return nil, errors.New("field of type Commerce_Product_VariationSelection_OptionState does not have child fields") 31251 }, 31252 } 31253 return fc, nil 31254 } 31255 31256 func (ec *executionContext) _Commerce_Product_VariationSelection_Option_variant(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelectionOption) (ret graphql.Marshaler) { 31257 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_Option_variant(ctx, field) 31258 if err != nil { 31259 return graphql.Null 31260 } 31261 ctx = graphql.WithFieldContext(ctx, fc) 31262 defer func() { 31263 if r := recover(); r != nil { 31264 ec.Error(ctx, ec.Recover(ctx, r)) 31265 ret = graphql.Null 31266 } 31267 }() 31268 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31269 ctx = rctx // use context from middleware stack in children 31270 return obj.Variant, nil 31271 }) 31272 if err != nil { 31273 ec.Error(ctx, err) 31274 return graphql.Null 31275 } 31276 if resTmp == nil { 31277 if !graphql.HasFieldError(ctx, fc) { 31278 ec.Errorf(ctx, "must not be null") 31279 } 31280 return graphql.Null 31281 } 31282 res := resTmp.(graphqlproductdto.VariationSelectionOptionVariant) 31283 fc.Result = res 31284 return ec.marshalNCommerce_Product_VariationSelection_OptionVariant2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOptionVariant(ctx, field.Selections, res) 31285 } 31286 31287 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_Option_variant(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31288 fc = &graphql.FieldContext{ 31289 Object: "Commerce_Product_VariationSelection_Option", 31290 Field: field, 31291 IsMethod: false, 31292 IsResolver: false, 31293 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31294 switch field.Name { 31295 case "marketPlaceCode": 31296 return ec.fieldContext_Commerce_Product_VariationSelection_OptionVariant_marketPlaceCode(ctx, field) 31297 } 31298 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_VariationSelection_OptionVariant", field.Name) 31299 }, 31300 } 31301 return fc, nil 31302 } 31303 31304 func (ec *executionContext) _Commerce_Product_VariationSelection_OptionVariant_marketPlaceCode(ctx context.Context, field graphql.CollectedField, obj *graphqlproductdto.VariationSelectionOptionVariant) (ret graphql.Marshaler) { 31305 fc, err := ec.fieldContext_Commerce_Product_VariationSelection_OptionVariant_marketPlaceCode(ctx, field) 31306 if err != nil { 31307 return graphql.Null 31308 } 31309 ctx = graphql.WithFieldContext(ctx, fc) 31310 defer func() { 31311 if r := recover(); r != nil { 31312 ec.Error(ctx, ec.Recover(ctx, r)) 31313 ret = graphql.Null 31314 } 31315 }() 31316 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31317 ctx = rctx // use context from middleware stack in children 31318 return obj.MarketPlaceCode(), nil 31319 }) 31320 if err != nil { 31321 ec.Error(ctx, err) 31322 return graphql.Null 31323 } 31324 if resTmp == nil { 31325 if !graphql.HasFieldError(ctx, fc) { 31326 ec.Errorf(ctx, "must not be null") 31327 } 31328 return graphql.Null 31329 } 31330 res := resTmp.(string) 31331 fc.Result = res 31332 return ec.marshalNString2string(ctx, field.Selections, res) 31333 } 31334 31335 func (ec *executionContext) fieldContext_Commerce_Product_VariationSelection_OptionVariant_marketPlaceCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31336 fc = &graphql.FieldContext{ 31337 Object: "Commerce_Product_VariationSelection_OptionVariant", 31338 Field: field, 31339 IsMethod: true, 31340 IsResolver: false, 31341 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31342 return nil, errors.New("field of type String does not have child fields") 31343 }, 31344 } 31345 return fc, nil 31346 } 31347 31348 func (ec *executionContext) _Commerce_Search_Action_type(ctx context.Context, field graphql.CollectedField, obj *domain2.Action) (ret graphql.Marshaler) { 31349 fc, err := ec.fieldContext_Commerce_Search_Action_type(ctx, field) 31350 if err != nil { 31351 return graphql.Null 31352 } 31353 ctx = graphql.WithFieldContext(ctx, fc) 31354 defer func() { 31355 if r := recover(); r != nil { 31356 ec.Error(ctx, ec.Recover(ctx, r)) 31357 ret = graphql.Null 31358 } 31359 }() 31360 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31361 ctx = rctx // use context from middleware stack in children 31362 return obj.Type, nil 31363 }) 31364 if err != nil { 31365 ec.Error(ctx, err) 31366 return graphql.Null 31367 } 31368 if resTmp == nil { 31369 if !graphql.HasFieldError(ctx, fc) { 31370 ec.Errorf(ctx, "must not be null") 31371 } 31372 return graphql.Null 31373 } 31374 res := resTmp.(string) 31375 fc.Result = res 31376 return ec.marshalNString2string(ctx, field.Selections, res) 31377 } 31378 31379 func (ec *executionContext) fieldContext_Commerce_Search_Action_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31380 fc = &graphql.FieldContext{ 31381 Object: "Commerce_Search_Action", 31382 Field: field, 31383 IsMethod: false, 31384 IsResolver: false, 31385 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31386 return nil, errors.New("field of type String does not have child fields") 31387 }, 31388 } 31389 return fc, nil 31390 } 31391 31392 func (ec *executionContext) _Commerce_Search_Action_content(ctx context.Context, field graphql.CollectedField, obj *domain2.Action) (ret graphql.Marshaler) { 31393 fc, err := ec.fieldContext_Commerce_Search_Action_content(ctx, field) 31394 if err != nil { 31395 return graphql.Null 31396 } 31397 ctx = graphql.WithFieldContext(ctx, fc) 31398 defer func() { 31399 if r := recover(); r != nil { 31400 ec.Error(ctx, ec.Recover(ctx, r)) 31401 ret = graphql.Null 31402 } 31403 }() 31404 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31405 ctx = rctx // use context from middleware stack in children 31406 return obj.Content, nil 31407 }) 31408 if err != nil { 31409 ec.Error(ctx, err) 31410 return graphql.Null 31411 } 31412 if resTmp == nil { 31413 if !graphql.HasFieldError(ctx, fc) { 31414 ec.Errorf(ctx, "must not be null") 31415 } 31416 return graphql.Null 31417 } 31418 res := resTmp.(string) 31419 fc.Result = res 31420 return ec.marshalNString2string(ctx, field.Selections, res) 31421 } 31422 31423 func (ec *executionContext) fieldContext_Commerce_Search_Action_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31424 fc = &graphql.FieldContext{ 31425 Object: "Commerce_Search_Action", 31426 Field: field, 31427 IsMethod: false, 31428 IsResolver: false, 31429 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31430 return nil, errors.New("field of type String does not have child fields") 31431 }, 31432 } 31433 return fc, nil 31434 } 31435 31436 func (ec *executionContext) _Commerce_Search_ListFacet_name(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacet) (ret graphql.Marshaler) { 31437 fc, err := ec.fieldContext_Commerce_Search_ListFacet_name(ctx, field) 31438 if err != nil { 31439 return graphql.Null 31440 } 31441 ctx = graphql.WithFieldContext(ctx, fc) 31442 defer func() { 31443 if r := recover(); r != nil { 31444 ec.Error(ctx, ec.Recover(ctx, r)) 31445 ret = graphql.Null 31446 } 31447 }() 31448 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31449 ctx = rctx // use context from middleware stack in children 31450 return obj.Name(), nil 31451 }) 31452 if err != nil { 31453 ec.Error(ctx, err) 31454 return graphql.Null 31455 } 31456 if resTmp == nil { 31457 if !graphql.HasFieldError(ctx, fc) { 31458 ec.Errorf(ctx, "must not be null") 31459 } 31460 return graphql.Null 31461 } 31462 res := resTmp.(string) 31463 fc.Result = res 31464 return ec.marshalNString2string(ctx, field.Selections, res) 31465 } 31466 31467 func (ec *executionContext) fieldContext_Commerce_Search_ListFacet_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31468 fc = &graphql.FieldContext{ 31469 Object: "Commerce_Search_ListFacet", 31470 Field: field, 31471 IsMethod: true, 31472 IsResolver: false, 31473 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31474 return nil, errors.New("field of type String does not have child fields") 31475 }, 31476 } 31477 return fc, nil 31478 } 31479 31480 func (ec *executionContext) _Commerce_Search_ListFacet_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacet) (ret graphql.Marshaler) { 31481 fc, err := ec.fieldContext_Commerce_Search_ListFacet_label(ctx, field) 31482 if err != nil { 31483 return graphql.Null 31484 } 31485 ctx = graphql.WithFieldContext(ctx, fc) 31486 defer func() { 31487 if r := recover(); r != nil { 31488 ec.Error(ctx, ec.Recover(ctx, r)) 31489 ret = graphql.Null 31490 } 31491 }() 31492 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31493 ctx = rctx // use context from middleware stack in children 31494 return obj.Label(), nil 31495 }) 31496 if err != nil { 31497 ec.Error(ctx, err) 31498 return graphql.Null 31499 } 31500 if resTmp == nil { 31501 if !graphql.HasFieldError(ctx, fc) { 31502 ec.Errorf(ctx, "must not be null") 31503 } 31504 return graphql.Null 31505 } 31506 res := resTmp.(string) 31507 fc.Result = res 31508 return ec.marshalNString2string(ctx, field.Selections, res) 31509 } 31510 31511 func (ec *executionContext) fieldContext_Commerce_Search_ListFacet_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31512 fc = &graphql.FieldContext{ 31513 Object: "Commerce_Search_ListFacet", 31514 Field: field, 31515 IsMethod: true, 31516 IsResolver: false, 31517 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31518 return nil, errors.New("field of type String does not have child fields") 31519 }, 31520 } 31521 return fc, nil 31522 } 31523 31524 func (ec *executionContext) _Commerce_Search_ListFacet_position(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacet) (ret graphql.Marshaler) { 31525 fc, err := ec.fieldContext_Commerce_Search_ListFacet_position(ctx, field) 31526 if err != nil { 31527 return graphql.Null 31528 } 31529 ctx = graphql.WithFieldContext(ctx, fc) 31530 defer func() { 31531 if r := recover(); r != nil { 31532 ec.Error(ctx, ec.Recover(ctx, r)) 31533 ret = graphql.Null 31534 } 31535 }() 31536 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31537 ctx = rctx // use context from middleware stack in children 31538 return obj.Position(), nil 31539 }) 31540 if err != nil { 31541 ec.Error(ctx, err) 31542 return graphql.Null 31543 } 31544 if resTmp == nil { 31545 if !graphql.HasFieldError(ctx, fc) { 31546 ec.Errorf(ctx, "must not be null") 31547 } 31548 return graphql.Null 31549 } 31550 res := resTmp.(int) 31551 fc.Result = res 31552 return ec.marshalNInt2int(ctx, field.Selections, res) 31553 } 31554 31555 func (ec *executionContext) fieldContext_Commerce_Search_ListFacet_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31556 fc = &graphql.FieldContext{ 31557 Object: "Commerce_Search_ListFacet", 31558 Field: field, 31559 IsMethod: true, 31560 IsResolver: false, 31561 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31562 return nil, errors.New("field of type Int does not have child fields") 31563 }, 31564 } 31565 return fc, nil 31566 } 31567 31568 func (ec *executionContext) _Commerce_Search_ListFacet_items(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacet) (ret graphql.Marshaler) { 31569 fc, err := ec.fieldContext_Commerce_Search_ListFacet_items(ctx, field) 31570 if err != nil { 31571 return graphql.Null 31572 } 31573 ctx = graphql.WithFieldContext(ctx, fc) 31574 defer func() { 31575 if r := recover(); r != nil { 31576 ec.Error(ctx, ec.Recover(ctx, r)) 31577 ret = graphql.Null 31578 } 31579 }() 31580 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31581 ctx = rctx // use context from middleware stack in children 31582 return obj.Items(), nil 31583 }) 31584 if err != nil { 31585 ec.Error(ctx, err) 31586 return graphql.Null 31587 } 31588 if resTmp == nil { 31589 if !graphql.HasFieldError(ctx, fc) { 31590 ec.Errorf(ctx, "must not be null") 31591 } 31592 return graphql.Null 31593 } 31594 res := resTmp.([]*searchdto.CommerceSearchListFacetItem) 31595 fc.Result = res 31596 return ec.marshalNCommerce_Search_ListFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchListFacetItemᚄ(ctx, field.Selections, res) 31597 } 31598 31599 func (ec *executionContext) fieldContext_Commerce_Search_ListFacet_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31600 fc = &graphql.FieldContext{ 31601 Object: "Commerce_Search_ListFacet", 31602 Field: field, 31603 IsMethod: true, 31604 IsResolver: false, 31605 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31606 switch field.Name { 31607 case "label": 31608 return ec.fieldContext_Commerce_Search_ListFacetItem_label(ctx, field) 31609 case "value": 31610 return ec.fieldContext_Commerce_Search_ListFacetItem_value(ctx, field) 31611 case "selected": 31612 return ec.fieldContext_Commerce_Search_ListFacetItem_selected(ctx, field) 31613 case "count": 31614 return ec.fieldContext_Commerce_Search_ListFacetItem_count(ctx, field) 31615 } 31616 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_ListFacetItem", field.Name) 31617 }, 31618 } 31619 return fc, nil 31620 } 31621 31622 func (ec *executionContext) _Commerce_Search_ListFacet_hasSelectedItem(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacet) (ret graphql.Marshaler) { 31623 fc, err := ec.fieldContext_Commerce_Search_ListFacet_hasSelectedItem(ctx, field) 31624 if err != nil { 31625 return graphql.Null 31626 } 31627 ctx = graphql.WithFieldContext(ctx, fc) 31628 defer func() { 31629 if r := recover(); r != nil { 31630 ec.Error(ctx, ec.Recover(ctx, r)) 31631 ret = graphql.Null 31632 } 31633 }() 31634 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31635 ctx = rctx // use context from middleware stack in children 31636 return obj.HasSelectedItem(), nil 31637 }) 31638 if err != nil { 31639 ec.Error(ctx, err) 31640 return graphql.Null 31641 } 31642 if resTmp == nil { 31643 if !graphql.HasFieldError(ctx, fc) { 31644 ec.Errorf(ctx, "must not be null") 31645 } 31646 return graphql.Null 31647 } 31648 res := resTmp.(bool) 31649 fc.Result = res 31650 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 31651 } 31652 31653 func (ec *executionContext) fieldContext_Commerce_Search_ListFacet_hasSelectedItem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31654 fc = &graphql.FieldContext{ 31655 Object: "Commerce_Search_ListFacet", 31656 Field: field, 31657 IsMethod: true, 31658 IsResolver: false, 31659 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31660 return nil, errors.New("field of type Boolean does not have child fields") 31661 }, 31662 } 31663 return fc, nil 31664 } 31665 31666 func (ec *executionContext) _Commerce_Search_ListFacetItem_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacetItem) (ret graphql.Marshaler) { 31667 fc, err := ec.fieldContext_Commerce_Search_ListFacetItem_label(ctx, field) 31668 if err != nil { 31669 return graphql.Null 31670 } 31671 ctx = graphql.WithFieldContext(ctx, fc) 31672 defer func() { 31673 if r := recover(); r != nil { 31674 ec.Error(ctx, ec.Recover(ctx, r)) 31675 ret = graphql.Null 31676 } 31677 }() 31678 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31679 ctx = rctx // use context from middleware stack in children 31680 return obj.Label(), nil 31681 }) 31682 if err != nil { 31683 ec.Error(ctx, err) 31684 return graphql.Null 31685 } 31686 if resTmp == nil { 31687 if !graphql.HasFieldError(ctx, fc) { 31688 ec.Errorf(ctx, "must not be null") 31689 } 31690 return graphql.Null 31691 } 31692 res := resTmp.(string) 31693 fc.Result = res 31694 return ec.marshalNString2string(ctx, field.Selections, res) 31695 } 31696 31697 func (ec *executionContext) fieldContext_Commerce_Search_ListFacetItem_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31698 fc = &graphql.FieldContext{ 31699 Object: "Commerce_Search_ListFacetItem", 31700 Field: field, 31701 IsMethod: true, 31702 IsResolver: false, 31703 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31704 return nil, errors.New("field of type String does not have child fields") 31705 }, 31706 } 31707 return fc, nil 31708 } 31709 31710 func (ec *executionContext) _Commerce_Search_ListFacetItem_value(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacetItem) (ret graphql.Marshaler) { 31711 fc, err := ec.fieldContext_Commerce_Search_ListFacetItem_value(ctx, field) 31712 if err != nil { 31713 return graphql.Null 31714 } 31715 ctx = graphql.WithFieldContext(ctx, fc) 31716 defer func() { 31717 if r := recover(); r != nil { 31718 ec.Error(ctx, ec.Recover(ctx, r)) 31719 ret = graphql.Null 31720 } 31721 }() 31722 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31723 ctx = rctx // use context from middleware stack in children 31724 return obj.Value(), nil 31725 }) 31726 if err != nil { 31727 ec.Error(ctx, err) 31728 return graphql.Null 31729 } 31730 if resTmp == nil { 31731 if !graphql.HasFieldError(ctx, fc) { 31732 ec.Errorf(ctx, "must not be null") 31733 } 31734 return graphql.Null 31735 } 31736 res := resTmp.(string) 31737 fc.Result = res 31738 return ec.marshalNString2string(ctx, field.Selections, res) 31739 } 31740 31741 func (ec *executionContext) fieldContext_Commerce_Search_ListFacetItem_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31742 fc = &graphql.FieldContext{ 31743 Object: "Commerce_Search_ListFacetItem", 31744 Field: field, 31745 IsMethod: true, 31746 IsResolver: false, 31747 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31748 return nil, errors.New("field of type String does not have child fields") 31749 }, 31750 } 31751 return fc, nil 31752 } 31753 31754 func (ec *executionContext) _Commerce_Search_ListFacetItem_selected(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacetItem) (ret graphql.Marshaler) { 31755 fc, err := ec.fieldContext_Commerce_Search_ListFacetItem_selected(ctx, field) 31756 if err != nil { 31757 return graphql.Null 31758 } 31759 ctx = graphql.WithFieldContext(ctx, fc) 31760 defer func() { 31761 if r := recover(); r != nil { 31762 ec.Error(ctx, ec.Recover(ctx, r)) 31763 ret = graphql.Null 31764 } 31765 }() 31766 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31767 ctx = rctx // use context from middleware stack in children 31768 return obj.Selected(), nil 31769 }) 31770 if err != nil { 31771 ec.Error(ctx, err) 31772 return graphql.Null 31773 } 31774 if resTmp == nil { 31775 if !graphql.HasFieldError(ctx, fc) { 31776 ec.Errorf(ctx, "must not be null") 31777 } 31778 return graphql.Null 31779 } 31780 res := resTmp.(bool) 31781 fc.Result = res 31782 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 31783 } 31784 31785 func (ec *executionContext) fieldContext_Commerce_Search_ListFacetItem_selected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31786 fc = &graphql.FieldContext{ 31787 Object: "Commerce_Search_ListFacetItem", 31788 Field: field, 31789 IsMethod: true, 31790 IsResolver: false, 31791 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31792 return nil, errors.New("field of type Boolean does not have child fields") 31793 }, 31794 } 31795 return fc, nil 31796 } 31797 31798 func (ec *executionContext) _Commerce_Search_ListFacetItem_count(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchListFacetItem) (ret graphql.Marshaler) { 31799 fc, err := ec.fieldContext_Commerce_Search_ListFacetItem_count(ctx, field) 31800 if err != nil { 31801 return graphql.Null 31802 } 31803 ctx = graphql.WithFieldContext(ctx, fc) 31804 defer func() { 31805 if r := recover(); r != nil { 31806 ec.Error(ctx, ec.Recover(ctx, r)) 31807 ret = graphql.Null 31808 } 31809 }() 31810 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31811 ctx = rctx // use context from middleware stack in children 31812 return obj.Count(), nil 31813 }) 31814 if err != nil { 31815 ec.Error(ctx, err) 31816 return graphql.Null 31817 } 31818 if resTmp == nil { 31819 if !graphql.HasFieldError(ctx, fc) { 31820 ec.Errorf(ctx, "must not be null") 31821 } 31822 return graphql.Null 31823 } 31824 res := resTmp.(int) 31825 fc.Result = res 31826 return ec.marshalNInt2int(ctx, field.Selections, res) 31827 } 31828 31829 func (ec *executionContext) fieldContext_Commerce_Search_ListFacetItem_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31830 fc = &graphql.FieldContext{ 31831 Object: "Commerce_Search_ListFacetItem", 31832 Field: field, 31833 IsMethod: true, 31834 IsResolver: false, 31835 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31836 return nil, errors.New("field of type Int does not have child fields") 31837 }, 31838 } 31839 return fc, nil 31840 } 31841 31842 func (ec *executionContext) _Commerce_Search_Meta_query(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 31843 fc, err := ec.fieldContext_Commerce_Search_Meta_query(ctx, field) 31844 if err != nil { 31845 return graphql.Null 31846 } 31847 ctx = graphql.WithFieldContext(ctx, fc) 31848 defer func() { 31849 if r := recover(); r != nil { 31850 ec.Error(ctx, ec.Recover(ctx, r)) 31851 ret = graphql.Null 31852 } 31853 }() 31854 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31855 ctx = rctx // use context from middleware stack in children 31856 return obj.Query, nil 31857 }) 31858 if err != nil { 31859 ec.Error(ctx, err) 31860 return graphql.Null 31861 } 31862 if resTmp == nil { 31863 if !graphql.HasFieldError(ctx, fc) { 31864 ec.Errorf(ctx, "must not be null") 31865 } 31866 return graphql.Null 31867 } 31868 res := resTmp.(string) 31869 fc.Result = res 31870 return ec.marshalNString2string(ctx, field.Selections, res) 31871 } 31872 31873 func (ec *executionContext) fieldContext_Commerce_Search_Meta_query(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31874 fc = &graphql.FieldContext{ 31875 Object: "Commerce_Search_Meta", 31876 Field: field, 31877 IsMethod: false, 31878 IsResolver: false, 31879 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31880 return nil, errors.New("field of type String does not have child fields") 31881 }, 31882 } 31883 return fc, nil 31884 } 31885 31886 func (ec *executionContext) _Commerce_Search_Meta_originalQuery(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 31887 fc, err := ec.fieldContext_Commerce_Search_Meta_originalQuery(ctx, field) 31888 if err != nil { 31889 return graphql.Null 31890 } 31891 ctx = graphql.WithFieldContext(ctx, fc) 31892 defer func() { 31893 if r := recover(); r != nil { 31894 ec.Error(ctx, ec.Recover(ctx, r)) 31895 ret = graphql.Null 31896 } 31897 }() 31898 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31899 ctx = rctx // use context from middleware stack in children 31900 return obj.OriginalQuery, nil 31901 }) 31902 if err != nil { 31903 ec.Error(ctx, err) 31904 return graphql.Null 31905 } 31906 if resTmp == nil { 31907 if !graphql.HasFieldError(ctx, fc) { 31908 ec.Errorf(ctx, "must not be null") 31909 } 31910 return graphql.Null 31911 } 31912 res := resTmp.(string) 31913 fc.Result = res 31914 return ec.marshalNString2string(ctx, field.Selections, res) 31915 } 31916 31917 func (ec *executionContext) fieldContext_Commerce_Search_Meta_originalQuery(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31918 fc = &graphql.FieldContext{ 31919 Object: "Commerce_Search_Meta", 31920 Field: field, 31921 IsMethod: false, 31922 IsResolver: false, 31923 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31924 return nil, errors.New("field of type String does not have child fields") 31925 }, 31926 } 31927 return fc, nil 31928 } 31929 31930 func (ec *executionContext) _Commerce_Search_Meta_page(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 31931 fc, err := ec.fieldContext_Commerce_Search_Meta_page(ctx, field) 31932 if err != nil { 31933 return graphql.Null 31934 } 31935 ctx = graphql.WithFieldContext(ctx, fc) 31936 defer func() { 31937 if r := recover(); r != nil { 31938 ec.Error(ctx, ec.Recover(ctx, r)) 31939 ret = graphql.Null 31940 } 31941 }() 31942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31943 ctx = rctx // use context from middleware stack in children 31944 return obj.Page, nil 31945 }) 31946 if err != nil { 31947 ec.Error(ctx, err) 31948 return graphql.Null 31949 } 31950 if resTmp == nil { 31951 if !graphql.HasFieldError(ctx, fc) { 31952 ec.Errorf(ctx, "must not be null") 31953 } 31954 return graphql.Null 31955 } 31956 res := resTmp.(int) 31957 fc.Result = res 31958 return ec.marshalNInt2int(ctx, field.Selections, res) 31959 } 31960 31961 func (ec *executionContext) fieldContext_Commerce_Search_Meta_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 31962 fc = &graphql.FieldContext{ 31963 Object: "Commerce_Search_Meta", 31964 Field: field, 31965 IsMethod: false, 31966 IsResolver: false, 31967 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 31968 return nil, errors.New("field of type Int does not have child fields") 31969 }, 31970 } 31971 return fc, nil 31972 } 31973 31974 func (ec *executionContext) _Commerce_Search_Meta_numPages(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 31975 fc, err := ec.fieldContext_Commerce_Search_Meta_numPages(ctx, field) 31976 if err != nil { 31977 return graphql.Null 31978 } 31979 ctx = graphql.WithFieldContext(ctx, fc) 31980 defer func() { 31981 if r := recover(); r != nil { 31982 ec.Error(ctx, ec.Recover(ctx, r)) 31983 ret = graphql.Null 31984 } 31985 }() 31986 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31987 ctx = rctx // use context from middleware stack in children 31988 return obj.NumPages, nil 31989 }) 31990 if err != nil { 31991 ec.Error(ctx, err) 31992 return graphql.Null 31993 } 31994 if resTmp == nil { 31995 if !graphql.HasFieldError(ctx, fc) { 31996 ec.Errorf(ctx, "must not be null") 31997 } 31998 return graphql.Null 31999 } 32000 res := resTmp.(int) 32001 fc.Result = res 32002 return ec.marshalNInt2int(ctx, field.Selections, res) 32003 } 32004 32005 func (ec *executionContext) fieldContext_Commerce_Search_Meta_numPages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32006 fc = &graphql.FieldContext{ 32007 Object: "Commerce_Search_Meta", 32008 Field: field, 32009 IsMethod: false, 32010 IsResolver: false, 32011 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32012 return nil, errors.New("field of type Int does not have child fields") 32013 }, 32014 } 32015 return fc, nil 32016 } 32017 32018 func (ec *executionContext) _Commerce_Search_Meta_numResults(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 32019 fc, err := ec.fieldContext_Commerce_Search_Meta_numResults(ctx, field) 32020 if err != nil { 32021 return graphql.Null 32022 } 32023 ctx = graphql.WithFieldContext(ctx, fc) 32024 defer func() { 32025 if r := recover(); r != nil { 32026 ec.Error(ctx, ec.Recover(ctx, r)) 32027 ret = graphql.Null 32028 } 32029 }() 32030 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32031 ctx = rctx // use context from middleware stack in children 32032 return obj.NumResults, nil 32033 }) 32034 if err != nil { 32035 ec.Error(ctx, err) 32036 return graphql.Null 32037 } 32038 if resTmp == nil { 32039 if !graphql.HasFieldError(ctx, fc) { 32040 ec.Errorf(ctx, "must not be null") 32041 } 32042 return graphql.Null 32043 } 32044 res := resTmp.(int) 32045 fc.Result = res 32046 return ec.marshalNInt2int(ctx, field.Selections, res) 32047 } 32048 32049 func (ec *executionContext) fieldContext_Commerce_Search_Meta_numResults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32050 fc = &graphql.FieldContext{ 32051 Object: "Commerce_Search_Meta", 32052 Field: field, 32053 IsMethod: false, 32054 IsResolver: false, 32055 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32056 return nil, errors.New("field of type Int does not have child fields") 32057 }, 32058 } 32059 return fc, nil 32060 } 32061 32062 func (ec *executionContext) _Commerce_Search_Meta_sortOptions(ctx context.Context, field graphql.CollectedField, obj *domain2.SearchMeta) (ret graphql.Marshaler) { 32063 fc, err := ec.fieldContext_Commerce_Search_Meta_sortOptions(ctx, field) 32064 if err != nil { 32065 return graphql.Null 32066 } 32067 ctx = graphql.WithFieldContext(ctx, fc) 32068 defer func() { 32069 if r := recover(); r != nil { 32070 ec.Error(ctx, ec.Recover(ctx, r)) 32071 ret = graphql.Null 32072 } 32073 }() 32074 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32075 ctx = rctx // use context from middleware stack in children 32076 return ec.resolvers.Commerce_Search_Meta().SortOptions(rctx, obj) 32077 }) 32078 if err != nil { 32079 ec.Error(ctx, err) 32080 return graphql.Null 32081 } 32082 if resTmp == nil { 32083 return graphql.Null 32084 } 32085 res := resTmp.([]*searchdto.CommerceSearchSortOption) 32086 fc.Result = res 32087 return ec.marshalOCommerce_Search_SortOption2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchSortOptionᚄ(ctx, field.Selections, res) 32088 } 32089 32090 func (ec *executionContext) fieldContext_Commerce_Search_Meta_sortOptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32091 fc = &graphql.FieldContext{ 32092 Object: "Commerce_Search_Meta", 32093 Field: field, 32094 IsMethod: true, 32095 IsResolver: true, 32096 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32097 switch field.Name { 32098 case "label": 32099 return ec.fieldContext_Commerce_Search_SortOption_label(ctx, field) 32100 case "field": 32101 return ec.fieldContext_Commerce_Search_SortOption_field(ctx, field) 32102 case "selected": 32103 return ec.fieldContext_Commerce_Search_SortOption_selected(ctx, field) 32104 } 32105 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_SortOption", field.Name) 32106 }, 32107 } 32108 return fc, nil 32109 } 32110 32111 func (ec *executionContext) _Commerce_Search_Promotion_title(ctx context.Context, field graphql.CollectedField, obj *searchdto.PromotionDTO) (ret graphql.Marshaler) { 32112 fc, err := ec.fieldContext_Commerce_Search_Promotion_title(ctx, field) 32113 if err != nil { 32114 return graphql.Null 32115 } 32116 ctx = graphql.WithFieldContext(ctx, fc) 32117 defer func() { 32118 if r := recover(); r != nil { 32119 ec.Error(ctx, ec.Recover(ctx, r)) 32120 ret = graphql.Null 32121 } 32122 }() 32123 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32124 ctx = rctx // use context from middleware stack in children 32125 return obj.Title(), nil 32126 }) 32127 if err != nil { 32128 ec.Error(ctx, err) 32129 return graphql.Null 32130 } 32131 if resTmp == nil { 32132 if !graphql.HasFieldError(ctx, fc) { 32133 ec.Errorf(ctx, "must not be null") 32134 } 32135 return graphql.Null 32136 } 32137 res := resTmp.(string) 32138 fc.Result = res 32139 return ec.marshalNString2string(ctx, field.Selections, res) 32140 } 32141 32142 func (ec *executionContext) fieldContext_Commerce_Search_Promotion_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32143 fc = &graphql.FieldContext{ 32144 Object: "Commerce_Search_Promotion", 32145 Field: field, 32146 IsMethod: true, 32147 IsResolver: false, 32148 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32149 return nil, errors.New("field of type String does not have child fields") 32150 }, 32151 } 32152 return fc, nil 32153 } 32154 32155 func (ec *executionContext) _Commerce_Search_Promotion_content(ctx context.Context, field graphql.CollectedField, obj *searchdto.PromotionDTO) (ret graphql.Marshaler) { 32156 fc, err := ec.fieldContext_Commerce_Search_Promotion_content(ctx, field) 32157 if err != nil { 32158 return graphql.Null 32159 } 32160 ctx = graphql.WithFieldContext(ctx, fc) 32161 defer func() { 32162 if r := recover(); r != nil { 32163 ec.Error(ctx, ec.Recover(ctx, r)) 32164 ret = graphql.Null 32165 } 32166 }() 32167 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32168 ctx = rctx // use context from middleware stack in children 32169 return obj.Content(), nil 32170 }) 32171 if err != nil { 32172 ec.Error(ctx, err) 32173 return graphql.Null 32174 } 32175 if resTmp == nil { 32176 if !graphql.HasFieldError(ctx, fc) { 32177 ec.Errorf(ctx, "must not be null") 32178 } 32179 return graphql.Null 32180 } 32181 res := resTmp.(string) 32182 fc.Result = res 32183 return ec.marshalNString2string(ctx, field.Selections, res) 32184 } 32185 32186 func (ec *executionContext) fieldContext_Commerce_Search_Promotion_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32187 fc = &graphql.FieldContext{ 32188 Object: "Commerce_Search_Promotion", 32189 Field: field, 32190 IsMethod: true, 32191 IsResolver: false, 32192 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32193 return nil, errors.New("field of type String does not have child fields") 32194 }, 32195 } 32196 return fc, nil 32197 } 32198 32199 func (ec *executionContext) _Commerce_Search_Promotion_url(ctx context.Context, field graphql.CollectedField, obj *searchdto.PromotionDTO) (ret graphql.Marshaler) { 32200 fc, err := ec.fieldContext_Commerce_Search_Promotion_url(ctx, field) 32201 if err != nil { 32202 return graphql.Null 32203 } 32204 ctx = graphql.WithFieldContext(ctx, fc) 32205 defer func() { 32206 if r := recover(); r != nil { 32207 ec.Error(ctx, ec.Recover(ctx, r)) 32208 ret = graphql.Null 32209 } 32210 }() 32211 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32212 ctx = rctx // use context from middleware stack in children 32213 return obj.URL(), nil 32214 }) 32215 if err != nil { 32216 ec.Error(ctx, err) 32217 return graphql.Null 32218 } 32219 if resTmp == nil { 32220 if !graphql.HasFieldError(ctx, fc) { 32221 ec.Errorf(ctx, "must not be null") 32222 } 32223 return graphql.Null 32224 } 32225 res := resTmp.(string) 32226 fc.Result = res 32227 return ec.marshalNString2string(ctx, field.Selections, res) 32228 } 32229 32230 func (ec *executionContext) fieldContext_Commerce_Search_Promotion_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32231 fc = &graphql.FieldContext{ 32232 Object: "Commerce_Search_Promotion", 32233 Field: field, 32234 IsMethod: true, 32235 IsResolver: false, 32236 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32237 return nil, errors.New("field of type String does not have child fields") 32238 }, 32239 } 32240 return fc, nil 32241 } 32242 32243 func (ec *executionContext) _Commerce_Search_Promotion_media(ctx context.Context, field graphql.CollectedField, obj *searchdto.PromotionDTO) (ret graphql.Marshaler) { 32244 fc, err := ec.fieldContext_Commerce_Search_Promotion_media(ctx, field) 32245 if err != nil { 32246 return graphql.Null 32247 } 32248 ctx = graphql.WithFieldContext(ctx, fc) 32249 defer func() { 32250 if r := recover(); r != nil { 32251 ec.Error(ctx, ec.Recover(ctx, r)) 32252 ret = graphql.Null 32253 } 32254 }() 32255 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32256 ctx = rctx // use context from middleware stack in children 32257 return obj.Media(), nil 32258 }) 32259 if err != nil { 32260 ec.Error(ctx, err) 32261 return graphql.Null 32262 } 32263 if resTmp == nil { 32264 return graphql.Null 32265 } 32266 res := resTmp.(*domain2.Media) 32267 fc.Result = res 32268 return ec.marshalOCommerce_Search_PromotionMedia2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐMedia(ctx, field.Selections, res) 32269 } 32270 32271 func (ec *executionContext) fieldContext_Commerce_Search_Promotion_media(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32272 fc = &graphql.FieldContext{ 32273 Object: "Commerce_Search_Promotion", 32274 Field: field, 32275 IsMethod: true, 32276 IsResolver: false, 32277 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32278 switch field.Name { 32279 case "type": 32280 return ec.fieldContext_Commerce_Search_PromotionMedia_type(ctx, field) 32281 case "mimeType": 32282 return ec.fieldContext_Commerce_Search_PromotionMedia_mimeType(ctx, field) 32283 case "usage": 32284 return ec.fieldContext_Commerce_Search_PromotionMedia_usage(ctx, field) 32285 case "title": 32286 return ec.fieldContext_Commerce_Search_PromotionMedia_title(ctx, field) 32287 case "reference": 32288 return ec.fieldContext_Commerce_Search_PromotionMedia_reference(ctx, field) 32289 } 32290 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_PromotionMedia", field.Name) 32291 }, 32292 } 32293 return fc, nil 32294 } 32295 32296 func (ec *executionContext) _Commerce_Search_PromotionMedia_type(ctx context.Context, field graphql.CollectedField, obj *domain2.Media) (ret graphql.Marshaler) { 32297 fc, err := ec.fieldContext_Commerce_Search_PromotionMedia_type(ctx, field) 32298 if err != nil { 32299 return graphql.Null 32300 } 32301 ctx = graphql.WithFieldContext(ctx, fc) 32302 defer func() { 32303 if r := recover(); r != nil { 32304 ec.Error(ctx, ec.Recover(ctx, r)) 32305 ret = graphql.Null 32306 } 32307 }() 32308 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32309 ctx = rctx // use context from middleware stack in children 32310 return obj.Type, nil 32311 }) 32312 if err != nil { 32313 ec.Error(ctx, err) 32314 return graphql.Null 32315 } 32316 if resTmp == nil { 32317 if !graphql.HasFieldError(ctx, fc) { 32318 ec.Errorf(ctx, "must not be null") 32319 } 32320 return graphql.Null 32321 } 32322 res := resTmp.(string) 32323 fc.Result = res 32324 return ec.marshalNString2string(ctx, field.Selections, res) 32325 } 32326 32327 func (ec *executionContext) fieldContext_Commerce_Search_PromotionMedia_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32328 fc = &graphql.FieldContext{ 32329 Object: "Commerce_Search_PromotionMedia", 32330 Field: field, 32331 IsMethod: false, 32332 IsResolver: false, 32333 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32334 return nil, errors.New("field of type String does not have child fields") 32335 }, 32336 } 32337 return fc, nil 32338 } 32339 32340 func (ec *executionContext) _Commerce_Search_PromotionMedia_mimeType(ctx context.Context, field graphql.CollectedField, obj *domain2.Media) (ret graphql.Marshaler) { 32341 fc, err := ec.fieldContext_Commerce_Search_PromotionMedia_mimeType(ctx, field) 32342 if err != nil { 32343 return graphql.Null 32344 } 32345 ctx = graphql.WithFieldContext(ctx, fc) 32346 defer func() { 32347 if r := recover(); r != nil { 32348 ec.Error(ctx, ec.Recover(ctx, r)) 32349 ret = graphql.Null 32350 } 32351 }() 32352 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32353 ctx = rctx // use context from middleware stack in children 32354 return obj.MimeType, nil 32355 }) 32356 if err != nil { 32357 ec.Error(ctx, err) 32358 return graphql.Null 32359 } 32360 if resTmp == nil { 32361 if !graphql.HasFieldError(ctx, fc) { 32362 ec.Errorf(ctx, "must not be null") 32363 } 32364 return graphql.Null 32365 } 32366 res := resTmp.(string) 32367 fc.Result = res 32368 return ec.marshalNString2string(ctx, field.Selections, res) 32369 } 32370 32371 func (ec *executionContext) fieldContext_Commerce_Search_PromotionMedia_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32372 fc = &graphql.FieldContext{ 32373 Object: "Commerce_Search_PromotionMedia", 32374 Field: field, 32375 IsMethod: false, 32376 IsResolver: false, 32377 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32378 return nil, errors.New("field of type String does not have child fields") 32379 }, 32380 } 32381 return fc, nil 32382 } 32383 32384 func (ec *executionContext) _Commerce_Search_PromotionMedia_usage(ctx context.Context, field graphql.CollectedField, obj *domain2.Media) (ret graphql.Marshaler) { 32385 fc, err := ec.fieldContext_Commerce_Search_PromotionMedia_usage(ctx, field) 32386 if err != nil { 32387 return graphql.Null 32388 } 32389 ctx = graphql.WithFieldContext(ctx, fc) 32390 defer func() { 32391 if r := recover(); r != nil { 32392 ec.Error(ctx, ec.Recover(ctx, r)) 32393 ret = graphql.Null 32394 } 32395 }() 32396 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32397 ctx = rctx // use context from middleware stack in children 32398 return obj.Usage, nil 32399 }) 32400 if err != nil { 32401 ec.Error(ctx, err) 32402 return graphql.Null 32403 } 32404 if resTmp == nil { 32405 if !graphql.HasFieldError(ctx, fc) { 32406 ec.Errorf(ctx, "must not be null") 32407 } 32408 return graphql.Null 32409 } 32410 res := resTmp.(string) 32411 fc.Result = res 32412 return ec.marshalNString2string(ctx, field.Selections, res) 32413 } 32414 32415 func (ec *executionContext) fieldContext_Commerce_Search_PromotionMedia_usage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32416 fc = &graphql.FieldContext{ 32417 Object: "Commerce_Search_PromotionMedia", 32418 Field: field, 32419 IsMethod: false, 32420 IsResolver: false, 32421 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32422 return nil, errors.New("field of type String does not have child fields") 32423 }, 32424 } 32425 return fc, nil 32426 } 32427 32428 func (ec *executionContext) _Commerce_Search_PromotionMedia_title(ctx context.Context, field graphql.CollectedField, obj *domain2.Media) (ret graphql.Marshaler) { 32429 fc, err := ec.fieldContext_Commerce_Search_PromotionMedia_title(ctx, field) 32430 if err != nil { 32431 return graphql.Null 32432 } 32433 ctx = graphql.WithFieldContext(ctx, fc) 32434 defer func() { 32435 if r := recover(); r != nil { 32436 ec.Error(ctx, ec.Recover(ctx, r)) 32437 ret = graphql.Null 32438 } 32439 }() 32440 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32441 ctx = rctx // use context from middleware stack in children 32442 return obj.Title, nil 32443 }) 32444 if err != nil { 32445 ec.Error(ctx, err) 32446 return graphql.Null 32447 } 32448 if resTmp == nil { 32449 if !graphql.HasFieldError(ctx, fc) { 32450 ec.Errorf(ctx, "must not be null") 32451 } 32452 return graphql.Null 32453 } 32454 res := resTmp.(string) 32455 fc.Result = res 32456 return ec.marshalNString2string(ctx, field.Selections, res) 32457 } 32458 32459 func (ec *executionContext) fieldContext_Commerce_Search_PromotionMedia_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32460 fc = &graphql.FieldContext{ 32461 Object: "Commerce_Search_PromotionMedia", 32462 Field: field, 32463 IsMethod: false, 32464 IsResolver: false, 32465 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32466 return nil, errors.New("field of type String does not have child fields") 32467 }, 32468 } 32469 return fc, nil 32470 } 32471 32472 func (ec *executionContext) _Commerce_Search_PromotionMedia_reference(ctx context.Context, field graphql.CollectedField, obj *domain2.Media) (ret graphql.Marshaler) { 32473 fc, err := ec.fieldContext_Commerce_Search_PromotionMedia_reference(ctx, field) 32474 if err != nil { 32475 return graphql.Null 32476 } 32477 ctx = graphql.WithFieldContext(ctx, fc) 32478 defer func() { 32479 if r := recover(); r != nil { 32480 ec.Error(ctx, ec.Recover(ctx, r)) 32481 ret = graphql.Null 32482 } 32483 }() 32484 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32485 ctx = rctx // use context from middleware stack in children 32486 return obj.Reference, nil 32487 }) 32488 if err != nil { 32489 ec.Error(ctx, err) 32490 return graphql.Null 32491 } 32492 if resTmp == nil { 32493 if !graphql.HasFieldError(ctx, fc) { 32494 ec.Errorf(ctx, "must not be null") 32495 } 32496 return graphql.Null 32497 } 32498 res := resTmp.(string) 32499 fc.Result = res 32500 return ec.marshalNString2string(ctx, field.Selections, res) 32501 } 32502 32503 func (ec *executionContext) fieldContext_Commerce_Search_PromotionMedia_reference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32504 fc = &graphql.FieldContext{ 32505 Object: "Commerce_Search_PromotionMedia", 32506 Field: field, 32507 IsMethod: false, 32508 IsResolver: false, 32509 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32510 return nil, errors.New("field of type String does not have child fields") 32511 }, 32512 } 32513 return fc, nil 32514 } 32515 32516 func (ec *executionContext) _Commerce_Search_RangeFacet_name(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacet) (ret graphql.Marshaler) { 32517 fc, err := ec.fieldContext_Commerce_Search_RangeFacet_name(ctx, field) 32518 if err != nil { 32519 return graphql.Null 32520 } 32521 ctx = graphql.WithFieldContext(ctx, fc) 32522 defer func() { 32523 if r := recover(); r != nil { 32524 ec.Error(ctx, ec.Recover(ctx, r)) 32525 ret = graphql.Null 32526 } 32527 }() 32528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32529 ctx = rctx // use context from middleware stack in children 32530 return obj.Name(), nil 32531 }) 32532 if err != nil { 32533 ec.Error(ctx, err) 32534 return graphql.Null 32535 } 32536 if resTmp == nil { 32537 if !graphql.HasFieldError(ctx, fc) { 32538 ec.Errorf(ctx, "must not be null") 32539 } 32540 return graphql.Null 32541 } 32542 res := resTmp.(string) 32543 fc.Result = res 32544 return ec.marshalNString2string(ctx, field.Selections, res) 32545 } 32546 32547 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacet_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32548 fc = &graphql.FieldContext{ 32549 Object: "Commerce_Search_RangeFacet", 32550 Field: field, 32551 IsMethod: true, 32552 IsResolver: false, 32553 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32554 return nil, errors.New("field of type String does not have child fields") 32555 }, 32556 } 32557 return fc, nil 32558 } 32559 32560 func (ec *executionContext) _Commerce_Search_RangeFacet_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacet) (ret graphql.Marshaler) { 32561 fc, err := ec.fieldContext_Commerce_Search_RangeFacet_label(ctx, field) 32562 if err != nil { 32563 return graphql.Null 32564 } 32565 ctx = graphql.WithFieldContext(ctx, fc) 32566 defer func() { 32567 if r := recover(); r != nil { 32568 ec.Error(ctx, ec.Recover(ctx, r)) 32569 ret = graphql.Null 32570 } 32571 }() 32572 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32573 ctx = rctx // use context from middleware stack in children 32574 return obj.Label(), nil 32575 }) 32576 if err != nil { 32577 ec.Error(ctx, err) 32578 return graphql.Null 32579 } 32580 if resTmp == nil { 32581 if !graphql.HasFieldError(ctx, fc) { 32582 ec.Errorf(ctx, "must not be null") 32583 } 32584 return graphql.Null 32585 } 32586 res := resTmp.(string) 32587 fc.Result = res 32588 return ec.marshalNString2string(ctx, field.Selections, res) 32589 } 32590 32591 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacet_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32592 fc = &graphql.FieldContext{ 32593 Object: "Commerce_Search_RangeFacet", 32594 Field: field, 32595 IsMethod: true, 32596 IsResolver: false, 32597 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32598 return nil, errors.New("field of type String does not have child fields") 32599 }, 32600 } 32601 return fc, nil 32602 } 32603 32604 func (ec *executionContext) _Commerce_Search_RangeFacet_position(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacet) (ret graphql.Marshaler) { 32605 fc, err := ec.fieldContext_Commerce_Search_RangeFacet_position(ctx, field) 32606 if err != nil { 32607 return graphql.Null 32608 } 32609 ctx = graphql.WithFieldContext(ctx, fc) 32610 defer func() { 32611 if r := recover(); r != nil { 32612 ec.Error(ctx, ec.Recover(ctx, r)) 32613 ret = graphql.Null 32614 } 32615 }() 32616 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32617 ctx = rctx // use context from middleware stack in children 32618 return obj.Position(), nil 32619 }) 32620 if err != nil { 32621 ec.Error(ctx, err) 32622 return graphql.Null 32623 } 32624 if resTmp == nil { 32625 if !graphql.HasFieldError(ctx, fc) { 32626 ec.Errorf(ctx, "must not be null") 32627 } 32628 return graphql.Null 32629 } 32630 res := resTmp.(int) 32631 fc.Result = res 32632 return ec.marshalNInt2int(ctx, field.Selections, res) 32633 } 32634 32635 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacet_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32636 fc = &graphql.FieldContext{ 32637 Object: "Commerce_Search_RangeFacet", 32638 Field: field, 32639 IsMethod: true, 32640 IsResolver: false, 32641 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32642 return nil, errors.New("field of type Int does not have child fields") 32643 }, 32644 } 32645 return fc, nil 32646 } 32647 32648 func (ec *executionContext) _Commerce_Search_RangeFacet_items(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacet) (ret graphql.Marshaler) { 32649 fc, err := ec.fieldContext_Commerce_Search_RangeFacet_items(ctx, field) 32650 if err != nil { 32651 return graphql.Null 32652 } 32653 ctx = graphql.WithFieldContext(ctx, fc) 32654 defer func() { 32655 if r := recover(); r != nil { 32656 ec.Error(ctx, ec.Recover(ctx, r)) 32657 ret = graphql.Null 32658 } 32659 }() 32660 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32661 ctx = rctx // use context from middleware stack in children 32662 return obj.Items(), nil 32663 }) 32664 if err != nil { 32665 ec.Error(ctx, err) 32666 return graphql.Null 32667 } 32668 if resTmp == nil { 32669 if !graphql.HasFieldError(ctx, fc) { 32670 ec.Errorf(ctx, "must not be null") 32671 } 32672 return graphql.Null 32673 } 32674 res := resTmp.([]*searchdto.CommerceSearchRangeFacetItem) 32675 fc.Result = res 32676 return ec.marshalNCommerce_Search_RangeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRangeFacetItemᚄ(ctx, field.Selections, res) 32677 } 32678 32679 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacet_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32680 fc = &graphql.FieldContext{ 32681 Object: "Commerce_Search_RangeFacet", 32682 Field: field, 32683 IsMethod: true, 32684 IsResolver: false, 32685 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32686 switch field.Name { 32687 case "label": 32688 return ec.fieldContext_Commerce_Search_RangeFacetItem_label(ctx, field) 32689 case "value": 32690 return ec.fieldContext_Commerce_Search_RangeFacetItem_value(ctx, field) 32691 case "selected": 32692 return ec.fieldContext_Commerce_Search_RangeFacetItem_selected(ctx, field) 32693 case "count": 32694 return ec.fieldContext_Commerce_Search_RangeFacetItem_count(ctx, field) 32695 case "min": 32696 return ec.fieldContext_Commerce_Search_RangeFacetItem_min(ctx, field) 32697 case "max": 32698 return ec.fieldContext_Commerce_Search_RangeFacetItem_max(ctx, field) 32699 case "selectedMin": 32700 return ec.fieldContext_Commerce_Search_RangeFacetItem_selectedMin(ctx, field) 32701 case "selectedMax": 32702 return ec.fieldContext_Commerce_Search_RangeFacetItem_selectedMax(ctx, field) 32703 } 32704 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_RangeFacetItem", field.Name) 32705 }, 32706 } 32707 return fc, nil 32708 } 32709 32710 func (ec *executionContext) _Commerce_Search_RangeFacet_hasSelectedItem(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacet) (ret graphql.Marshaler) { 32711 fc, err := ec.fieldContext_Commerce_Search_RangeFacet_hasSelectedItem(ctx, field) 32712 if err != nil { 32713 return graphql.Null 32714 } 32715 ctx = graphql.WithFieldContext(ctx, fc) 32716 defer func() { 32717 if r := recover(); r != nil { 32718 ec.Error(ctx, ec.Recover(ctx, r)) 32719 ret = graphql.Null 32720 } 32721 }() 32722 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32723 ctx = rctx // use context from middleware stack in children 32724 return obj.HasSelectedItem(), nil 32725 }) 32726 if err != nil { 32727 ec.Error(ctx, err) 32728 return graphql.Null 32729 } 32730 if resTmp == nil { 32731 if !graphql.HasFieldError(ctx, fc) { 32732 ec.Errorf(ctx, "must not be null") 32733 } 32734 return graphql.Null 32735 } 32736 res := resTmp.(bool) 32737 fc.Result = res 32738 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 32739 } 32740 32741 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacet_hasSelectedItem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32742 fc = &graphql.FieldContext{ 32743 Object: "Commerce_Search_RangeFacet", 32744 Field: field, 32745 IsMethod: true, 32746 IsResolver: false, 32747 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32748 return nil, errors.New("field of type Boolean does not have child fields") 32749 }, 32750 } 32751 return fc, nil 32752 } 32753 32754 func (ec *executionContext) _Commerce_Search_RangeFacetItem_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32755 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_label(ctx, field) 32756 if err != nil { 32757 return graphql.Null 32758 } 32759 ctx = graphql.WithFieldContext(ctx, fc) 32760 defer func() { 32761 if r := recover(); r != nil { 32762 ec.Error(ctx, ec.Recover(ctx, r)) 32763 ret = graphql.Null 32764 } 32765 }() 32766 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32767 ctx = rctx // use context from middleware stack in children 32768 return obj.Label(), nil 32769 }) 32770 if err != nil { 32771 ec.Error(ctx, err) 32772 return graphql.Null 32773 } 32774 if resTmp == nil { 32775 if !graphql.HasFieldError(ctx, fc) { 32776 ec.Errorf(ctx, "must not be null") 32777 } 32778 return graphql.Null 32779 } 32780 res := resTmp.(string) 32781 fc.Result = res 32782 return ec.marshalNString2string(ctx, field.Selections, res) 32783 } 32784 32785 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32786 fc = &graphql.FieldContext{ 32787 Object: "Commerce_Search_RangeFacetItem", 32788 Field: field, 32789 IsMethod: true, 32790 IsResolver: false, 32791 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32792 return nil, errors.New("field of type String does not have child fields") 32793 }, 32794 } 32795 return fc, nil 32796 } 32797 32798 func (ec *executionContext) _Commerce_Search_RangeFacetItem_value(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32799 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_value(ctx, field) 32800 if err != nil { 32801 return graphql.Null 32802 } 32803 ctx = graphql.WithFieldContext(ctx, fc) 32804 defer func() { 32805 if r := recover(); r != nil { 32806 ec.Error(ctx, ec.Recover(ctx, r)) 32807 ret = graphql.Null 32808 } 32809 }() 32810 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32811 ctx = rctx // use context from middleware stack in children 32812 return obj.Value(), nil 32813 }) 32814 if err != nil { 32815 ec.Error(ctx, err) 32816 return graphql.Null 32817 } 32818 if resTmp == nil { 32819 if !graphql.HasFieldError(ctx, fc) { 32820 ec.Errorf(ctx, "must not be null") 32821 } 32822 return graphql.Null 32823 } 32824 res := resTmp.(string) 32825 fc.Result = res 32826 return ec.marshalNString2string(ctx, field.Selections, res) 32827 } 32828 32829 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32830 fc = &graphql.FieldContext{ 32831 Object: "Commerce_Search_RangeFacetItem", 32832 Field: field, 32833 IsMethod: true, 32834 IsResolver: false, 32835 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32836 return nil, errors.New("field of type String does not have child fields") 32837 }, 32838 } 32839 return fc, nil 32840 } 32841 32842 func (ec *executionContext) _Commerce_Search_RangeFacetItem_selected(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32843 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_selected(ctx, field) 32844 if err != nil { 32845 return graphql.Null 32846 } 32847 ctx = graphql.WithFieldContext(ctx, fc) 32848 defer func() { 32849 if r := recover(); r != nil { 32850 ec.Error(ctx, ec.Recover(ctx, r)) 32851 ret = graphql.Null 32852 } 32853 }() 32854 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32855 ctx = rctx // use context from middleware stack in children 32856 return obj.Selected(), nil 32857 }) 32858 if err != nil { 32859 ec.Error(ctx, err) 32860 return graphql.Null 32861 } 32862 if resTmp == nil { 32863 if !graphql.HasFieldError(ctx, fc) { 32864 ec.Errorf(ctx, "must not be null") 32865 } 32866 return graphql.Null 32867 } 32868 res := resTmp.(bool) 32869 fc.Result = res 32870 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 32871 } 32872 32873 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_selected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32874 fc = &graphql.FieldContext{ 32875 Object: "Commerce_Search_RangeFacetItem", 32876 Field: field, 32877 IsMethod: true, 32878 IsResolver: false, 32879 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32880 return nil, errors.New("field of type Boolean does not have child fields") 32881 }, 32882 } 32883 return fc, nil 32884 } 32885 32886 func (ec *executionContext) _Commerce_Search_RangeFacetItem_count(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32887 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_count(ctx, field) 32888 if err != nil { 32889 return graphql.Null 32890 } 32891 ctx = graphql.WithFieldContext(ctx, fc) 32892 defer func() { 32893 if r := recover(); r != nil { 32894 ec.Error(ctx, ec.Recover(ctx, r)) 32895 ret = graphql.Null 32896 } 32897 }() 32898 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32899 ctx = rctx // use context from middleware stack in children 32900 return obj.Count(), nil 32901 }) 32902 if err != nil { 32903 ec.Error(ctx, err) 32904 return graphql.Null 32905 } 32906 if resTmp == nil { 32907 if !graphql.HasFieldError(ctx, fc) { 32908 ec.Errorf(ctx, "must not be null") 32909 } 32910 return graphql.Null 32911 } 32912 res := resTmp.(int) 32913 fc.Result = res 32914 return ec.marshalNInt2int(ctx, field.Selections, res) 32915 } 32916 32917 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32918 fc = &graphql.FieldContext{ 32919 Object: "Commerce_Search_RangeFacetItem", 32920 Field: field, 32921 IsMethod: true, 32922 IsResolver: false, 32923 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32924 return nil, errors.New("field of type Int does not have child fields") 32925 }, 32926 } 32927 return fc, nil 32928 } 32929 32930 func (ec *executionContext) _Commerce_Search_RangeFacetItem_min(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32931 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_min(ctx, field) 32932 if err != nil { 32933 return graphql.Null 32934 } 32935 ctx = graphql.WithFieldContext(ctx, fc) 32936 defer func() { 32937 if r := recover(); r != nil { 32938 ec.Error(ctx, ec.Recover(ctx, r)) 32939 ret = graphql.Null 32940 } 32941 }() 32942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32943 ctx = rctx // use context from middleware stack in children 32944 return obj.Min(), nil 32945 }) 32946 if err != nil { 32947 ec.Error(ctx, err) 32948 return graphql.Null 32949 } 32950 if resTmp == nil { 32951 if !graphql.HasFieldError(ctx, fc) { 32952 ec.Errorf(ctx, "must not be null") 32953 } 32954 return graphql.Null 32955 } 32956 res := resTmp.(int) 32957 fc.Result = res 32958 return ec.marshalNInt2int(ctx, field.Selections, res) 32959 } 32960 32961 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_min(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 32962 fc = &graphql.FieldContext{ 32963 Object: "Commerce_Search_RangeFacetItem", 32964 Field: field, 32965 IsMethod: true, 32966 IsResolver: false, 32967 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 32968 return nil, errors.New("field of type Int does not have child fields") 32969 }, 32970 } 32971 return fc, nil 32972 } 32973 32974 func (ec *executionContext) _Commerce_Search_RangeFacetItem_max(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 32975 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_max(ctx, field) 32976 if err != nil { 32977 return graphql.Null 32978 } 32979 ctx = graphql.WithFieldContext(ctx, fc) 32980 defer func() { 32981 if r := recover(); r != nil { 32982 ec.Error(ctx, ec.Recover(ctx, r)) 32983 ret = graphql.Null 32984 } 32985 }() 32986 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 32987 ctx = rctx // use context from middleware stack in children 32988 return obj.Max(), nil 32989 }) 32990 if err != nil { 32991 ec.Error(ctx, err) 32992 return graphql.Null 32993 } 32994 if resTmp == nil { 32995 if !graphql.HasFieldError(ctx, fc) { 32996 ec.Errorf(ctx, "must not be null") 32997 } 32998 return graphql.Null 32999 } 33000 res := resTmp.(int) 33001 fc.Result = res 33002 return ec.marshalNInt2int(ctx, field.Selections, res) 33003 } 33004 33005 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_max(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33006 fc = &graphql.FieldContext{ 33007 Object: "Commerce_Search_RangeFacetItem", 33008 Field: field, 33009 IsMethod: true, 33010 IsResolver: false, 33011 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33012 return nil, errors.New("field of type Int does not have child fields") 33013 }, 33014 } 33015 return fc, nil 33016 } 33017 33018 func (ec *executionContext) _Commerce_Search_RangeFacetItem_selectedMin(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 33019 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_selectedMin(ctx, field) 33020 if err != nil { 33021 return graphql.Null 33022 } 33023 ctx = graphql.WithFieldContext(ctx, fc) 33024 defer func() { 33025 if r := recover(); r != nil { 33026 ec.Error(ctx, ec.Recover(ctx, r)) 33027 ret = graphql.Null 33028 } 33029 }() 33030 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33031 ctx = rctx // use context from middleware stack in children 33032 return obj.SelectedMin(), nil 33033 }) 33034 if err != nil { 33035 ec.Error(ctx, err) 33036 return graphql.Null 33037 } 33038 if resTmp == nil { 33039 if !graphql.HasFieldError(ctx, fc) { 33040 ec.Errorf(ctx, "must not be null") 33041 } 33042 return graphql.Null 33043 } 33044 res := resTmp.(int) 33045 fc.Result = res 33046 return ec.marshalNInt2int(ctx, field.Selections, res) 33047 } 33048 33049 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_selectedMin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33050 fc = &graphql.FieldContext{ 33051 Object: "Commerce_Search_RangeFacetItem", 33052 Field: field, 33053 IsMethod: true, 33054 IsResolver: false, 33055 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33056 return nil, errors.New("field of type Int does not have child fields") 33057 }, 33058 } 33059 return fc, nil 33060 } 33061 33062 func (ec *executionContext) _Commerce_Search_RangeFacetItem_selectedMax(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchRangeFacetItem) (ret graphql.Marshaler) { 33063 fc, err := ec.fieldContext_Commerce_Search_RangeFacetItem_selectedMax(ctx, field) 33064 if err != nil { 33065 return graphql.Null 33066 } 33067 ctx = graphql.WithFieldContext(ctx, fc) 33068 defer func() { 33069 if r := recover(); r != nil { 33070 ec.Error(ctx, ec.Recover(ctx, r)) 33071 ret = graphql.Null 33072 } 33073 }() 33074 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33075 ctx = rctx // use context from middleware stack in children 33076 return obj.SelectedMax(), nil 33077 }) 33078 if err != nil { 33079 ec.Error(ctx, err) 33080 return graphql.Null 33081 } 33082 if resTmp == nil { 33083 if !graphql.HasFieldError(ctx, fc) { 33084 ec.Errorf(ctx, "must not be null") 33085 } 33086 return graphql.Null 33087 } 33088 res := resTmp.(int) 33089 fc.Result = res 33090 return ec.marshalNInt2int(ctx, field.Selections, res) 33091 } 33092 33093 func (ec *executionContext) fieldContext_Commerce_Search_RangeFacetItem_selectedMax(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33094 fc = &graphql.FieldContext{ 33095 Object: "Commerce_Search_RangeFacetItem", 33096 Field: field, 33097 IsMethod: true, 33098 IsResolver: false, 33099 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33100 return nil, errors.New("field of type Int does not have child fields") 33101 }, 33102 } 33103 return fc, nil 33104 } 33105 33106 func (ec *executionContext) _Commerce_Search_SortOption_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchSortOption) (ret graphql.Marshaler) { 33107 fc, err := ec.fieldContext_Commerce_Search_SortOption_label(ctx, field) 33108 if err != nil { 33109 return graphql.Null 33110 } 33111 ctx = graphql.WithFieldContext(ctx, fc) 33112 defer func() { 33113 if r := recover(); r != nil { 33114 ec.Error(ctx, ec.Recover(ctx, r)) 33115 ret = graphql.Null 33116 } 33117 }() 33118 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33119 ctx = rctx // use context from middleware stack in children 33120 return obj.Label, nil 33121 }) 33122 if err != nil { 33123 ec.Error(ctx, err) 33124 return graphql.Null 33125 } 33126 if resTmp == nil { 33127 if !graphql.HasFieldError(ctx, fc) { 33128 ec.Errorf(ctx, "must not be null") 33129 } 33130 return graphql.Null 33131 } 33132 res := resTmp.(string) 33133 fc.Result = res 33134 return ec.marshalNString2string(ctx, field.Selections, res) 33135 } 33136 33137 func (ec *executionContext) fieldContext_Commerce_Search_SortOption_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33138 fc = &graphql.FieldContext{ 33139 Object: "Commerce_Search_SortOption", 33140 Field: field, 33141 IsMethod: false, 33142 IsResolver: false, 33143 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33144 return nil, errors.New("field of type String does not have child fields") 33145 }, 33146 } 33147 return fc, nil 33148 } 33149 33150 func (ec *executionContext) _Commerce_Search_SortOption_field(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchSortOption) (ret graphql.Marshaler) { 33151 fc, err := ec.fieldContext_Commerce_Search_SortOption_field(ctx, field) 33152 if err != nil { 33153 return graphql.Null 33154 } 33155 ctx = graphql.WithFieldContext(ctx, fc) 33156 defer func() { 33157 if r := recover(); r != nil { 33158 ec.Error(ctx, ec.Recover(ctx, r)) 33159 ret = graphql.Null 33160 } 33161 }() 33162 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33163 ctx = rctx // use context from middleware stack in children 33164 return obj.Field, nil 33165 }) 33166 if err != nil { 33167 ec.Error(ctx, err) 33168 return graphql.Null 33169 } 33170 if resTmp == nil { 33171 if !graphql.HasFieldError(ctx, fc) { 33172 ec.Errorf(ctx, "must not be null") 33173 } 33174 return graphql.Null 33175 } 33176 res := resTmp.(string) 33177 fc.Result = res 33178 return ec.marshalNString2string(ctx, field.Selections, res) 33179 } 33180 33181 func (ec *executionContext) fieldContext_Commerce_Search_SortOption_field(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33182 fc = &graphql.FieldContext{ 33183 Object: "Commerce_Search_SortOption", 33184 Field: field, 33185 IsMethod: false, 33186 IsResolver: false, 33187 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33188 return nil, errors.New("field of type String does not have child fields") 33189 }, 33190 } 33191 return fc, nil 33192 } 33193 33194 func (ec *executionContext) _Commerce_Search_SortOption_selected(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchSortOption) (ret graphql.Marshaler) { 33195 fc, err := ec.fieldContext_Commerce_Search_SortOption_selected(ctx, field) 33196 if err != nil { 33197 return graphql.Null 33198 } 33199 ctx = graphql.WithFieldContext(ctx, fc) 33200 defer func() { 33201 if r := recover(); r != nil { 33202 ec.Error(ctx, ec.Recover(ctx, r)) 33203 ret = graphql.Null 33204 } 33205 }() 33206 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33207 ctx = rctx // use context from middleware stack in children 33208 return obj.Selected, nil 33209 }) 33210 if err != nil { 33211 ec.Error(ctx, err) 33212 return graphql.Null 33213 } 33214 if resTmp == nil { 33215 if !graphql.HasFieldError(ctx, fc) { 33216 ec.Errorf(ctx, "must not be null") 33217 } 33218 return graphql.Null 33219 } 33220 res := resTmp.(bool) 33221 fc.Result = res 33222 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 33223 } 33224 33225 func (ec *executionContext) fieldContext_Commerce_Search_SortOption_selected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33226 fc = &graphql.FieldContext{ 33227 Object: "Commerce_Search_SortOption", 33228 Field: field, 33229 IsMethod: false, 33230 IsResolver: false, 33231 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33232 return nil, errors.New("field of type Boolean does not have child fields") 33233 }, 33234 } 33235 return fc, nil 33236 } 33237 33238 func (ec *executionContext) _Commerce_Search_Suggestion_text(ctx context.Context, field graphql.CollectedField, obj *domain2.Suggestion) (ret graphql.Marshaler) { 33239 fc, err := ec.fieldContext_Commerce_Search_Suggestion_text(ctx, field) 33240 if err != nil { 33241 return graphql.Null 33242 } 33243 ctx = graphql.WithFieldContext(ctx, fc) 33244 defer func() { 33245 if r := recover(); r != nil { 33246 ec.Error(ctx, ec.Recover(ctx, r)) 33247 ret = graphql.Null 33248 } 33249 }() 33250 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33251 ctx = rctx // use context from middleware stack in children 33252 return obj.Text, nil 33253 }) 33254 if err != nil { 33255 ec.Error(ctx, err) 33256 return graphql.Null 33257 } 33258 if resTmp == nil { 33259 if !graphql.HasFieldError(ctx, fc) { 33260 ec.Errorf(ctx, "must not be null") 33261 } 33262 return graphql.Null 33263 } 33264 res := resTmp.(string) 33265 fc.Result = res 33266 return ec.marshalNString2string(ctx, field.Selections, res) 33267 } 33268 33269 func (ec *executionContext) fieldContext_Commerce_Search_Suggestion_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33270 fc = &graphql.FieldContext{ 33271 Object: "Commerce_Search_Suggestion", 33272 Field: field, 33273 IsMethod: false, 33274 IsResolver: false, 33275 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33276 return nil, errors.New("field of type String does not have child fields") 33277 }, 33278 } 33279 return fc, nil 33280 } 33281 33282 func (ec *executionContext) _Commerce_Search_Suggestion_highlight(ctx context.Context, field graphql.CollectedField, obj *domain2.Suggestion) (ret graphql.Marshaler) { 33283 fc, err := ec.fieldContext_Commerce_Search_Suggestion_highlight(ctx, field) 33284 if err != nil { 33285 return graphql.Null 33286 } 33287 ctx = graphql.WithFieldContext(ctx, fc) 33288 defer func() { 33289 if r := recover(); r != nil { 33290 ec.Error(ctx, ec.Recover(ctx, r)) 33291 ret = graphql.Null 33292 } 33293 }() 33294 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33295 ctx = rctx // use context from middleware stack in children 33296 return obj.Highlight, nil 33297 }) 33298 if err != nil { 33299 ec.Error(ctx, err) 33300 return graphql.Null 33301 } 33302 if resTmp == nil { 33303 if !graphql.HasFieldError(ctx, fc) { 33304 ec.Errorf(ctx, "must not be null") 33305 } 33306 return graphql.Null 33307 } 33308 res := resTmp.(string) 33309 fc.Result = res 33310 return ec.marshalNString2string(ctx, field.Selections, res) 33311 } 33312 33313 func (ec *executionContext) fieldContext_Commerce_Search_Suggestion_highlight(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33314 fc = &graphql.FieldContext{ 33315 Object: "Commerce_Search_Suggestion", 33316 Field: field, 33317 IsMethod: false, 33318 IsResolver: false, 33319 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33320 return nil, errors.New("field of type String does not have child fields") 33321 }, 33322 } 33323 return fc, nil 33324 } 33325 33326 func (ec *executionContext) _Commerce_Search_TreeFacet_name(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacet) (ret graphql.Marshaler) { 33327 fc, err := ec.fieldContext_Commerce_Search_TreeFacet_name(ctx, field) 33328 if err != nil { 33329 return graphql.Null 33330 } 33331 ctx = graphql.WithFieldContext(ctx, fc) 33332 defer func() { 33333 if r := recover(); r != nil { 33334 ec.Error(ctx, ec.Recover(ctx, r)) 33335 ret = graphql.Null 33336 } 33337 }() 33338 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33339 ctx = rctx // use context from middleware stack in children 33340 return obj.Name(), nil 33341 }) 33342 if err != nil { 33343 ec.Error(ctx, err) 33344 return graphql.Null 33345 } 33346 if resTmp == nil { 33347 if !graphql.HasFieldError(ctx, fc) { 33348 ec.Errorf(ctx, "must not be null") 33349 } 33350 return graphql.Null 33351 } 33352 res := resTmp.(string) 33353 fc.Result = res 33354 return ec.marshalNString2string(ctx, field.Selections, res) 33355 } 33356 33357 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacet_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33358 fc = &graphql.FieldContext{ 33359 Object: "Commerce_Search_TreeFacet", 33360 Field: field, 33361 IsMethod: true, 33362 IsResolver: false, 33363 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33364 return nil, errors.New("field of type String does not have child fields") 33365 }, 33366 } 33367 return fc, nil 33368 } 33369 33370 func (ec *executionContext) _Commerce_Search_TreeFacet_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacet) (ret graphql.Marshaler) { 33371 fc, err := ec.fieldContext_Commerce_Search_TreeFacet_label(ctx, field) 33372 if err != nil { 33373 return graphql.Null 33374 } 33375 ctx = graphql.WithFieldContext(ctx, fc) 33376 defer func() { 33377 if r := recover(); r != nil { 33378 ec.Error(ctx, ec.Recover(ctx, r)) 33379 ret = graphql.Null 33380 } 33381 }() 33382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33383 ctx = rctx // use context from middleware stack in children 33384 return obj.Label(), nil 33385 }) 33386 if err != nil { 33387 ec.Error(ctx, err) 33388 return graphql.Null 33389 } 33390 if resTmp == nil { 33391 if !graphql.HasFieldError(ctx, fc) { 33392 ec.Errorf(ctx, "must not be null") 33393 } 33394 return graphql.Null 33395 } 33396 res := resTmp.(string) 33397 fc.Result = res 33398 return ec.marshalNString2string(ctx, field.Selections, res) 33399 } 33400 33401 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacet_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33402 fc = &graphql.FieldContext{ 33403 Object: "Commerce_Search_TreeFacet", 33404 Field: field, 33405 IsMethod: true, 33406 IsResolver: false, 33407 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33408 return nil, errors.New("field of type String does not have child fields") 33409 }, 33410 } 33411 return fc, nil 33412 } 33413 33414 func (ec *executionContext) _Commerce_Search_TreeFacet_position(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacet) (ret graphql.Marshaler) { 33415 fc, err := ec.fieldContext_Commerce_Search_TreeFacet_position(ctx, field) 33416 if err != nil { 33417 return graphql.Null 33418 } 33419 ctx = graphql.WithFieldContext(ctx, fc) 33420 defer func() { 33421 if r := recover(); r != nil { 33422 ec.Error(ctx, ec.Recover(ctx, r)) 33423 ret = graphql.Null 33424 } 33425 }() 33426 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33427 ctx = rctx // use context from middleware stack in children 33428 return obj.Position(), nil 33429 }) 33430 if err != nil { 33431 ec.Error(ctx, err) 33432 return graphql.Null 33433 } 33434 if resTmp == nil { 33435 if !graphql.HasFieldError(ctx, fc) { 33436 ec.Errorf(ctx, "must not be null") 33437 } 33438 return graphql.Null 33439 } 33440 res := resTmp.(int) 33441 fc.Result = res 33442 return ec.marshalNInt2int(ctx, field.Selections, res) 33443 } 33444 33445 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacet_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33446 fc = &graphql.FieldContext{ 33447 Object: "Commerce_Search_TreeFacet", 33448 Field: field, 33449 IsMethod: true, 33450 IsResolver: false, 33451 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33452 return nil, errors.New("field of type Int does not have child fields") 33453 }, 33454 } 33455 return fc, nil 33456 } 33457 33458 func (ec *executionContext) _Commerce_Search_TreeFacet_items(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacet) (ret graphql.Marshaler) { 33459 fc, err := ec.fieldContext_Commerce_Search_TreeFacet_items(ctx, field) 33460 if err != nil { 33461 return graphql.Null 33462 } 33463 ctx = graphql.WithFieldContext(ctx, fc) 33464 defer func() { 33465 if r := recover(); r != nil { 33466 ec.Error(ctx, ec.Recover(ctx, r)) 33467 ret = graphql.Null 33468 } 33469 }() 33470 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33471 ctx = rctx // use context from middleware stack in children 33472 return obj.Items(), nil 33473 }) 33474 if err != nil { 33475 ec.Error(ctx, err) 33476 return graphql.Null 33477 } 33478 if resTmp == nil { 33479 if !graphql.HasFieldError(ctx, fc) { 33480 ec.Errorf(ctx, "must not be null") 33481 } 33482 return graphql.Null 33483 } 33484 res := resTmp.([]*searchdto.CommerceSearchTreeFacetItem) 33485 fc.Result = res 33486 return ec.marshalNCommerce_Search_TreeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItemᚄ(ctx, field.Selections, res) 33487 } 33488 33489 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacet_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33490 fc = &graphql.FieldContext{ 33491 Object: "Commerce_Search_TreeFacet", 33492 Field: field, 33493 IsMethod: true, 33494 IsResolver: false, 33495 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33496 switch field.Name { 33497 case "label": 33498 return ec.fieldContext_Commerce_Search_TreeFacetItem_label(ctx, field) 33499 case "value": 33500 return ec.fieldContext_Commerce_Search_TreeFacetItem_value(ctx, field) 33501 case "selected": 33502 return ec.fieldContext_Commerce_Search_TreeFacetItem_selected(ctx, field) 33503 case "count": 33504 return ec.fieldContext_Commerce_Search_TreeFacetItem_count(ctx, field) 33505 case "active": 33506 return ec.fieldContext_Commerce_Search_TreeFacetItem_active(ctx, field) 33507 case "items": 33508 return ec.fieldContext_Commerce_Search_TreeFacetItem_items(ctx, field) 33509 } 33510 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_TreeFacetItem", field.Name) 33511 }, 33512 } 33513 return fc, nil 33514 } 33515 33516 func (ec *executionContext) _Commerce_Search_TreeFacet_hasSelectedItem(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacet) (ret graphql.Marshaler) { 33517 fc, err := ec.fieldContext_Commerce_Search_TreeFacet_hasSelectedItem(ctx, field) 33518 if err != nil { 33519 return graphql.Null 33520 } 33521 ctx = graphql.WithFieldContext(ctx, fc) 33522 defer func() { 33523 if r := recover(); r != nil { 33524 ec.Error(ctx, ec.Recover(ctx, r)) 33525 ret = graphql.Null 33526 } 33527 }() 33528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33529 ctx = rctx // use context from middleware stack in children 33530 return obj.HasSelectedItem(), nil 33531 }) 33532 if err != nil { 33533 ec.Error(ctx, err) 33534 return graphql.Null 33535 } 33536 if resTmp == nil { 33537 if !graphql.HasFieldError(ctx, fc) { 33538 ec.Errorf(ctx, "must not be null") 33539 } 33540 return graphql.Null 33541 } 33542 res := resTmp.(bool) 33543 fc.Result = res 33544 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 33545 } 33546 33547 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacet_hasSelectedItem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33548 fc = &graphql.FieldContext{ 33549 Object: "Commerce_Search_TreeFacet", 33550 Field: field, 33551 IsMethod: true, 33552 IsResolver: false, 33553 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33554 return nil, errors.New("field of type Boolean does not have child fields") 33555 }, 33556 } 33557 return fc, nil 33558 } 33559 33560 func (ec *executionContext) _Commerce_Search_TreeFacetItem_label(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33561 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_label(ctx, field) 33562 if err != nil { 33563 return graphql.Null 33564 } 33565 ctx = graphql.WithFieldContext(ctx, fc) 33566 defer func() { 33567 if r := recover(); r != nil { 33568 ec.Error(ctx, ec.Recover(ctx, r)) 33569 ret = graphql.Null 33570 } 33571 }() 33572 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33573 ctx = rctx // use context from middleware stack in children 33574 return obj.Label(), nil 33575 }) 33576 if err != nil { 33577 ec.Error(ctx, err) 33578 return graphql.Null 33579 } 33580 if resTmp == nil { 33581 if !graphql.HasFieldError(ctx, fc) { 33582 ec.Errorf(ctx, "must not be null") 33583 } 33584 return graphql.Null 33585 } 33586 res := resTmp.(string) 33587 fc.Result = res 33588 return ec.marshalNString2string(ctx, field.Selections, res) 33589 } 33590 33591 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33592 fc = &graphql.FieldContext{ 33593 Object: "Commerce_Search_TreeFacetItem", 33594 Field: field, 33595 IsMethod: true, 33596 IsResolver: false, 33597 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33598 return nil, errors.New("field of type String does not have child fields") 33599 }, 33600 } 33601 return fc, nil 33602 } 33603 33604 func (ec *executionContext) _Commerce_Search_TreeFacetItem_value(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33605 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_value(ctx, field) 33606 if err != nil { 33607 return graphql.Null 33608 } 33609 ctx = graphql.WithFieldContext(ctx, fc) 33610 defer func() { 33611 if r := recover(); r != nil { 33612 ec.Error(ctx, ec.Recover(ctx, r)) 33613 ret = graphql.Null 33614 } 33615 }() 33616 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33617 ctx = rctx // use context from middleware stack in children 33618 return obj.Value(), nil 33619 }) 33620 if err != nil { 33621 ec.Error(ctx, err) 33622 return graphql.Null 33623 } 33624 if resTmp == nil { 33625 if !graphql.HasFieldError(ctx, fc) { 33626 ec.Errorf(ctx, "must not be null") 33627 } 33628 return graphql.Null 33629 } 33630 res := resTmp.(string) 33631 fc.Result = res 33632 return ec.marshalNString2string(ctx, field.Selections, res) 33633 } 33634 33635 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33636 fc = &graphql.FieldContext{ 33637 Object: "Commerce_Search_TreeFacetItem", 33638 Field: field, 33639 IsMethod: true, 33640 IsResolver: false, 33641 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33642 return nil, errors.New("field of type String does not have child fields") 33643 }, 33644 } 33645 return fc, nil 33646 } 33647 33648 func (ec *executionContext) _Commerce_Search_TreeFacetItem_selected(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33649 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_selected(ctx, field) 33650 if err != nil { 33651 return graphql.Null 33652 } 33653 ctx = graphql.WithFieldContext(ctx, fc) 33654 defer func() { 33655 if r := recover(); r != nil { 33656 ec.Error(ctx, ec.Recover(ctx, r)) 33657 ret = graphql.Null 33658 } 33659 }() 33660 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33661 ctx = rctx // use context from middleware stack in children 33662 return obj.Selected(), nil 33663 }) 33664 if err != nil { 33665 ec.Error(ctx, err) 33666 return graphql.Null 33667 } 33668 if resTmp == nil { 33669 if !graphql.HasFieldError(ctx, fc) { 33670 ec.Errorf(ctx, "must not be null") 33671 } 33672 return graphql.Null 33673 } 33674 res := resTmp.(bool) 33675 fc.Result = res 33676 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 33677 } 33678 33679 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_selected(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33680 fc = &graphql.FieldContext{ 33681 Object: "Commerce_Search_TreeFacetItem", 33682 Field: field, 33683 IsMethod: true, 33684 IsResolver: false, 33685 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33686 return nil, errors.New("field of type Boolean does not have child fields") 33687 }, 33688 } 33689 return fc, nil 33690 } 33691 33692 func (ec *executionContext) _Commerce_Search_TreeFacetItem_count(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33693 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_count(ctx, field) 33694 if err != nil { 33695 return graphql.Null 33696 } 33697 ctx = graphql.WithFieldContext(ctx, fc) 33698 defer func() { 33699 if r := recover(); r != nil { 33700 ec.Error(ctx, ec.Recover(ctx, r)) 33701 ret = graphql.Null 33702 } 33703 }() 33704 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33705 ctx = rctx // use context from middleware stack in children 33706 return obj.Count(), nil 33707 }) 33708 if err != nil { 33709 ec.Error(ctx, err) 33710 return graphql.Null 33711 } 33712 if resTmp == nil { 33713 if !graphql.HasFieldError(ctx, fc) { 33714 ec.Errorf(ctx, "must not be null") 33715 } 33716 return graphql.Null 33717 } 33718 res := resTmp.(int) 33719 fc.Result = res 33720 return ec.marshalNInt2int(ctx, field.Selections, res) 33721 } 33722 33723 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33724 fc = &graphql.FieldContext{ 33725 Object: "Commerce_Search_TreeFacetItem", 33726 Field: field, 33727 IsMethod: true, 33728 IsResolver: false, 33729 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33730 return nil, errors.New("field of type Int does not have child fields") 33731 }, 33732 } 33733 return fc, nil 33734 } 33735 33736 func (ec *executionContext) _Commerce_Search_TreeFacetItem_active(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33737 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_active(ctx, field) 33738 if err != nil { 33739 return graphql.Null 33740 } 33741 ctx = graphql.WithFieldContext(ctx, fc) 33742 defer func() { 33743 if r := recover(); r != nil { 33744 ec.Error(ctx, ec.Recover(ctx, r)) 33745 ret = graphql.Null 33746 } 33747 }() 33748 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33749 ctx = rctx // use context from middleware stack in children 33750 return obj.Active(), nil 33751 }) 33752 if err != nil { 33753 ec.Error(ctx, err) 33754 return graphql.Null 33755 } 33756 if resTmp == nil { 33757 if !graphql.HasFieldError(ctx, fc) { 33758 ec.Errorf(ctx, "must not be null") 33759 } 33760 return graphql.Null 33761 } 33762 res := resTmp.(bool) 33763 fc.Result = res 33764 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 33765 } 33766 33767 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33768 fc = &graphql.FieldContext{ 33769 Object: "Commerce_Search_TreeFacetItem", 33770 Field: field, 33771 IsMethod: true, 33772 IsResolver: false, 33773 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33774 return nil, errors.New("field of type Boolean does not have child fields") 33775 }, 33776 } 33777 return fc, nil 33778 } 33779 33780 func (ec *executionContext) _Commerce_Search_TreeFacetItem_items(ctx context.Context, field graphql.CollectedField, obj *searchdto.CommerceSearchTreeFacetItem) (ret graphql.Marshaler) { 33781 fc, err := ec.fieldContext_Commerce_Search_TreeFacetItem_items(ctx, field) 33782 if err != nil { 33783 return graphql.Null 33784 } 33785 ctx = graphql.WithFieldContext(ctx, fc) 33786 defer func() { 33787 if r := recover(); r != nil { 33788 ec.Error(ctx, ec.Recover(ctx, r)) 33789 ret = graphql.Null 33790 } 33791 }() 33792 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33793 ctx = rctx // use context from middleware stack in children 33794 return obj.Items(), nil 33795 }) 33796 if err != nil { 33797 ec.Error(ctx, err) 33798 return graphql.Null 33799 } 33800 if resTmp == nil { 33801 return graphql.Null 33802 } 33803 res := resTmp.([]*searchdto.CommerceSearchTreeFacetItem) 33804 fc.Result = res 33805 return ec.marshalOCommerce_Search_TreeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItemᚄ(ctx, field.Selections, res) 33806 } 33807 33808 func (ec *executionContext) fieldContext_Commerce_Search_TreeFacetItem_items(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33809 fc = &graphql.FieldContext{ 33810 Object: "Commerce_Search_TreeFacetItem", 33811 Field: field, 33812 IsMethod: true, 33813 IsResolver: false, 33814 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33815 switch field.Name { 33816 case "label": 33817 return ec.fieldContext_Commerce_Search_TreeFacetItem_label(ctx, field) 33818 case "value": 33819 return ec.fieldContext_Commerce_Search_TreeFacetItem_value(ctx, field) 33820 case "selected": 33821 return ec.fieldContext_Commerce_Search_TreeFacetItem_selected(ctx, field) 33822 case "count": 33823 return ec.fieldContext_Commerce_Search_TreeFacetItem_count(ctx, field) 33824 case "active": 33825 return ec.fieldContext_Commerce_Search_TreeFacetItem_active(ctx, field) 33826 case "items": 33827 return ec.fieldContext_Commerce_Search_TreeFacetItem_items(ctx, field) 33828 } 33829 return nil, fmt.Errorf("no field named %q was found under type Commerce_Search_TreeFacetItem", field.Name) 33830 }, 33831 } 33832 return fc, nil 33833 } 33834 33835 func (ec *executionContext) _Mutation_flamingo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 33836 fc, err := ec.fieldContext_Mutation_flamingo(ctx, field) 33837 if err != nil { 33838 return graphql.Null 33839 } 33840 ctx = graphql.WithFieldContext(ctx, fc) 33841 defer func() { 33842 if r := recover(); r != nil { 33843 ec.Error(ctx, ec.Recover(ctx, r)) 33844 ret = graphql.Null 33845 } 33846 }() 33847 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33848 ctx = rctx // use context from middleware stack in children 33849 return ec.resolvers.Mutation().Flamingo(rctx) 33850 }) 33851 if err != nil { 33852 ec.Error(ctx, err) 33853 return graphql.Null 33854 } 33855 if resTmp == nil { 33856 return graphql.Null 33857 } 33858 res := resTmp.(*string) 33859 fc.Result = res 33860 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 33861 } 33862 33863 func (ec *executionContext) fieldContext_Mutation_flamingo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33864 fc = &graphql.FieldContext{ 33865 Object: "Mutation", 33866 Field: field, 33867 IsMethod: true, 33868 IsResolver: true, 33869 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33870 return nil, errors.New("field of type String does not have child fields") 33871 }, 33872 } 33873 return fc, nil 33874 } 33875 33876 func (ec *executionContext) _Mutation_Commerce_Cart_AddToCart(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 33877 fc, err := ec.fieldContext_Mutation_Commerce_Cart_AddToCart(ctx, field) 33878 if err != nil { 33879 return graphql.Null 33880 } 33881 ctx = graphql.WithFieldContext(ctx, fc) 33882 defer func() { 33883 if r := recover(); r != nil { 33884 ec.Error(ctx, ec.Recover(ctx, r)) 33885 ret = graphql.Null 33886 } 33887 }() 33888 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33889 ctx = rctx // use context from middleware stack in children 33890 return ec.resolvers.Mutation().CommerceCartAddToCart(rctx, fc.Args["addToCartInput"].(dto.AddToCart)) 33891 }) 33892 if err != nil { 33893 ec.Error(ctx, err) 33894 return graphql.Null 33895 } 33896 if resTmp == nil { 33897 if !graphql.HasFieldError(ctx, fc) { 33898 ec.Errorf(ctx, "must not be null") 33899 } 33900 return graphql.Null 33901 } 33902 res := resTmp.(*dto.DecoratedCart) 33903 fc.Result = res 33904 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 33905 } 33906 33907 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_AddToCart(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33908 fc = &graphql.FieldContext{ 33909 Object: "Mutation", 33910 Field: field, 33911 IsMethod: true, 33912 IsResolver: true, 33913 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33914 switch field.Name { 33915 case "cart": 33916 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 33917 case "decoratedDeliveries": 33918 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 33919 case "getDecoratedDeliveryByCode": 33920 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 33921 case "getAllPaymentRequiredItems": 33922 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 33923 case "cartSummary": 33924 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 33925 } 33926 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 33927 }, 33928 } 33929 defer func() { 33930 if r := recover(); r != nil { 33931 err = ec.Recover(ctx, r) 33932 ec.Error(ctx, err) 33933 } 33934 }() 33935 ctx = graphql.WithFieldContext(ctx, fc) 33936 if fc.Args, err = ec.field_Mutation_Commerce_Cart_AddToCart_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 33937 ec.Error(ctx, err) 33938 return fc, err 33939 } 33940 return fc, nil 33941 } 33942 33943 func (ec *executionContext) _Mutation_Commerce_Cart_DeleteCartDelivery(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 33944 fc, err := ec.fieldContext_Mutation_Commerce_Cart_DeleteCartDelivery(ctx, field) 33945 if err != nil { 33946 return graphql.Null 33947 } 33948 ctx = graphql.WithFieldContext(ctx, fc) 33949 defer func() { 33950 if r := recover(); r != nil { 33951 ec.Error(ctx, ec.Recover(ctx, r)) 33952 ret = graphql.Null 33953 } 33954 }() 33955 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 33956 ctx = rctx // use context from middleware stack in children 33957 return ec.resolvers.Mutation().CommerceCartDeleteCartDelivery(rctx, fc.Args["deliveryCode"].(string)) 33958 }) 33959 if err != nil { 33960 ec.Error(ctx, err) 33961 return graphql.Null 33962 } 33963 if resTmp == nil { 33964 if !graphql.HasFieldError(ctx, fc) { 33965 ec.Errorf(ctx, "must not be null") 33966 } 33967 return graphql.Null 33968 } 33969 res := resTmp.(*dto.DecoratedCart) 33970 fc.Result = res 33971 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 33972 } 33973 33974 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_DeleteCartDelivery(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 33975 fc = &graphql.FieldContext{ 33976 Object: "Mutation", 33977 Field: field, 33978 IsMethod: true, 33979 IsResolver: true, 33980 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 33981 switch field.Name { 33982 case "cart": 33983 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 33984 case "decoratedDeliveries": 33985 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 33986 case "getDecoratedDeliveryByCode": 33987 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 33988 case "getAllPaymentRequiredItems": 33989 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 33990 case "cartSummary": 33991 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 33992 } 33993 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 33994 }, 33995 } 33996 defer func() { 33997 if r := recover(); r != nil { 33998 err = ec.Recover(ctx, r) 33999 ec.Error(ctx, err) 34000 } 34001 }() 34002 ctx = graphql.WithFieldContext(ctx, fc) 34003 if fc.Args, err = ec.field_Mutation_Commerce_Cart_DeleteCartDelivery_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34004 ec.Error(ctx, err) 34005 return fc, err 34006 } 34007 return fc, nil 34008 } 34009 34010 func (ec *executionContext) _Mutation_Commerce_Cart_DeleteItem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34011 fc, err := ec.fieldContext_Mutation_Commerce_Cart_DeleteItem(ctx, field) 34012 if err != nil { 34013 return graphql.Null 34014 } 34015 ctx = graphql.WithFieldContext(ctx, fc) 34016 defer func() { 34017 if r := recover(); r != nil { 34018 ec.Error(ctx, ec.Recover(ctx, r)) 34019 ret = graphql.Null 34020 } 34021 }() 34022 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34023 ctx = rctx // use context from middleware stack in children 34024 return ec.resolvers.Mutation().CommerceCartDeleteItem(rctx, fc.Args["itemID"].(string), fc.Args["deliveryCode"].(string)) 34025 }) 34026 if err != nil { 34027 ec.Error(ctx, err) 34028 return graphql.Null 34029 } 34030 if resTmp == nil { 34031 if !graphql.HasFieldError(ctx, fc) { 34032 ec.Errorf(ctx, "must not be null") 34033 } 34034 return graphql.Null 34035 } 34036 res := resTmp.(*dto.DecoratedCart) 34037 fc.Result = res 34038 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34039 } 34040 34041 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_DeleteItem(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34042 fc = &graphql.FieldContext{ 34043 Object: "Mutation", 34044 Field: field, 34045 IsMethod: true, 34046 IsResolver: true, 34047 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34048 switch field.Name { 34049 case "cart": 34050 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34051 case "decoratedDeliveries": 34052 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34053 case "getDecoratedDeliveryByCode": 34054 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34055 case "getAllPaymentRequiredItems": 34056 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34057 case "cartSummary": 34058 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34059 } 34060 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34061 }, 34062 } 34063 defer func() { 34064 if r := recover(); r != nil { 34065 err = ec.Recover(ctx, r) 34066 ec.Error(ctx, err) 34067 } 34068 }() 34069 ctx = graphql.WithFieldContext(ctx, fc) 34070 if fc.Args, err = ec.field_Mutation_Commerce_Cart_DeleteItem_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34071 ec.Error(ctx, err) 34072 return fc, err 34073 } 34074 return fc, nil 34075 } 34076 34077 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateItemQty(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34078 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateItemQty(ctx, field) 34079 if err != nil { 34080 return graphql.Null 34081 } 34082 ctx = graphql.WithFieldContext(ctx, fc) 34083 defer func() { 34084 if r := recover(); r != nil { 34085 ec.Error(ctx, ec.Recover(ctx, r)) 34086 ret = graphql.Null 34087 } 34088 }() 34089 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34090 ctx = rctx // use context from middleware stack in children 34091 return ec.resolvers.Mutation().CommerceCartUpdateItemQty(rctx, fc.Args["itemID"].(string), fc.Args["deliveryCode"].(string), fc.Args["qty"].(int)) 34092 }) 34093 if err != nil { 34094 ec.Error(ctx, err) 34095 return graphql.Null 34096 } 34097 if resTmp == nil { 34098 if !graphql.HasFieldError(ctx, fc) { 34099 ec.Errorf(ctx, "must not be null") 34100 } 34101 return graphql.Null 34102 } 34103 res := resTmp.(*dto.DecoratedCart) 34104 fc.Result = res 34105 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34106 } 34107 34108 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateItemQty(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34109 fc = &graphql.FieldContext{ 34110 Object: "Mutation", 34111 Field: field, 34112 IsMethod: true, 34113 IsResolver: true, 34114 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34115 switch field.Name { 34116 case "cart": 34117 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34118 case "decoratedDeliveries": 34119 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34120 case "getDecoratedDeliveryByCode": 34121 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34122 case "getAllPaymentRequiredItems": 34123 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34124 case "cartSummary": 34125 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34126 } 34127 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34128 }, 34129 } 34130 defer func() { 34131 if r := recover(); r != nil { 34132 err = ec.Recover(ctx, r) 34133 ec.Error(ctx, err) 34134 } 34135 }() 34136 ctx = graphql.WithFieldContext(ctx, fc) 34137 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateItemQty_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34138 ec.Error(ctx, err) 34139 return fc, err 34140 } 34141 return fc, nil 34142 } 34143 34144 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateItemBundleConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34145 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateItemBundleConfig(ctx, field) 34146 if err != nil { 34147 return graphql.Null 34148 } 34149 ctx = graphql.WithFieldContext(ctx, fc) 34150 defer func() { 34151 if r := recover(); r != nil { 34152 ec.Error(ctx, ec.Recover(ctx, r)) 34153 ret = graphql.Null 34154 } 34155 }() 34156 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34157 ctx = rctx // use context from middleware stack in children 34158 return ec.resolvers.Mutation().CommerceCartUpdateItemBundleConfig(rctx, fc.Args["itemID"].(string), fc.Args["bundleConfig"].([]*dto.ChoiceConfiguration)) 34159 }) 34160 if err != nil { 34161 ec.Error(ctx, err) 34162 return graphql.Null 34163 } 34164 if resTmp == nil { 34165 if !graphql.HasFieldError(ctx, fc) { 34166 ec.Errorf(ctx, "must not be null") 34167 } 34168 return graphql.Null 34169 } 34170 res := resTmp.(*dto.DecoratedCart) 34171 fc.Result = res 34172 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34173 } 34174 34175 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateItemBundleConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34176 fc = &graphql.FieldContext{ 34177 Object: "Mutation", 34178 Field: field, 34179 IsMethod: true, 34180 IsResolver: true, 34181 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34182 switch field.Name { 34183 case "cart": 34184 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34185 case "decoratedDeliveries": 34186 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34187 case "getDecoratedDeliveryByCode": 34188 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34189 case "getAllPaymentRequiredItems": 34190 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34191 case "cartSummary": 34192 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34193 } 34194 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34195 }, 34196 } 34197 defer func() { 34198 if r := recover(); r != nil { 34199 err = ec.Recover(ctx, r) 34200 ec.Error(ctx, err) 34201 } 34202 }() 34203 ctx = graphql.WithFieldContext(ctx, fc) 34204 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateItemBundleConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34205 ec.Error(ctx, err) 34206 return fc, err 34207 } 34208 return fc, nil 34209 } 34210 34211 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateBillingAddress(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34212 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateBillingAddress(ctx, field) 34213 if err != nil { 34214 return graphql.Null 34215 } 34216 ctx = graphql.WithFieldContext(ctx, fc) 34217 defer func() { 34218 if r := recover(); r != nil { 34219 ec.Error(ctx, ec.Recover(ctx, r)) 34220 ret = graphql.Null 34221 } 34222 }() 34223 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34224 ctx = rctx // use context from middleware stack in children 34225 return ec.resolvers.Mutation().CommerceCartUpdateBillingAddress(rctx, fc.Args["addressForm"].(*forms.AddressForm)) 34226 }) 34227 if err != nil { 34228 ec.Error(ctx, err) 34229 return graphql.Null 34230 } 34231 if resTmp == nil { 34232 if !graphql.HasFieldError(ctx, fc) { 34233 ec.Errorf(ctx, "must not be null") 34234 } 34235 return graphql.Null 34236 } 34237 res := resTmp.(*dto.BillingAddressForm) 34238 fc.Result = res 34239 return ec.marshalNCommerce_Cart_BillingAddressForm2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐBillingAddressForm(ctx, field.Selections, res) 34240 } 34241 34242 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateBillingAddress(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34243 fc = &graphql.FieldContext{ 34244 Object: "Mutation", 34245 Field: field, 34246 IsMethod: true, 34247 IsResolver: true, 34248 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34249 switch field.Name { 34250 case "formData": 34251 return ec.fieldContext_Commerce_Cart_BillingAddressForm_formData(ctx, field) 34252 case "validationInfo": 34253 return ec.fieldContext_Commerce_Cart_BillingAddressForm_validationInfo(ctx, field) 34254 case "processed": 34255 return ec.fieldContext_Commerce_Cart_BillingAddressForm_processed(ctx, field) 34256 } 34257 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_BillingAddressForm", field.Name) 34258 }, 34259 } 34260 defer func() { 34261 if r := recover(); r != nil { 34262 err = ec.Recover(ctx, r) 34263 ec.Error(ctx, err) 34264 } 34265 }() 34266 ctx = graphql.WithFieldContext(ctx, fc) 34267 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateBillingAddress_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34268 ec.Error(ctx, err) 34269 return fc, err 34270 } 34271 return fc, nil 34272 } 34273 34274 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateSelectedPayment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34275 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateSelectedPayment(ctx, field) 34276 if err != nil { 34277 return graphql.Null 34278 } 34279 ctx = graphql.WithFieldContext(ctx, fc) 34280 defer func() { 34281 if r := recover(); r != nil { 34282 ec.Error(ctx, ec.Recover(ctx, r)) 34283 ret = graphql.Null 34284 } 34285 }() 34286 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34287 ctx = rctx // use context from middleware stack in children 34288 return ec.resolvers.Mutation().CommerceCartUpdateSelectedPayment(rctx, fc.Args["gateway"].(string), fc.Args["method"].(string)) 34289 }) 34290 if err != nil { 34291 ec.Error(ctx, err) 34292 return graphql.Null 34293 } 34294 if resTmp == nil { 34295 if !graphql.HasFieldError(ctx, fc) { 34296 ec.Errorf(ctx, "must not be null") 34297 } 34298 return graphql.Null 34299 } 34300 res := resTmp.(*dto.SelectedPaymentResult) 34301 fc.Result = res 34302 return ec.marshalNCommerce_Cart_SelectedPaymentResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐSelectedPaymentResult(ctx, field.Selections, res) 34303 } 34304 34305 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateSelectedPayment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34306 fc = &graphql.FieldContext{ 34307 Object: "Mutation", 34308 Field: field, 34309 IsMethod: true, 34310 IsResolver: true, 34311 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34312 switch field.Name { 34313 case "validationInfo": 34314 return ec.fieldContext_Commerce_Cart_SelectedPaymentResult_validationInfo(ctx, field) 34315 case "processed": 34316 return ec.fieldContext_Commerce_Cart_SelectedPaymentResult_processed(ctx, field) 34317 } 34318 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_SelectedPaymentResult", field.Name) 34319 }, 34320 } 34321 defer func() { 34322 if r := recover(); r != nil { 34323 err = ec.Recover(ctx, r) 34324 ec.Error(ctx, err) 34325 } 34326 }() 34327 ctx = graphql.WithFieldContext(ctx, fc) 34328 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateSelectedPayment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34329 ec.Error(ctx, err) 34330 return fc, err 34331 } 34332 return fc, nil 34333 } 34334 34335 func (ec *executionContext) _Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34336 fc, err := ec.fieldContext_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard(ctx, field) 34337 if err != nil { 34338 return graphql.Null 34339 } 34340 ctx = graphql.WithFieldContext(ctx, fc) 34341 defer func() { 34342 if r := recover(); r != nil { 34343 ec.Error(ctx, ec.Recover(ctx, r)) 34344 ret = graphql.Null 34345 } 34346 }() 34347 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34348 ctx = rctx // use context from middleware stack in children 34349 return ec.resolvers.Mutation().CommerceCartApplyCouponCodeOrGiftCard(rctx, fc.Args["code"].(string)) 34350 }) 34351 if err != nil { 34352 ec.Error(ctx, err) 34353 return graphql.Null 34354 } 34355 if resTmp == nil { 34356 return graphql.Null 34357 } 34358 res := resTmp.(*dto.DecoratedCart) 34359 fc.Result = res 34360 return ec.marshalOCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34361 } 34362 34363 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34364 fc = &graphql.FieldContext{ 34365 Object: "Mutation", 34366 Field: field, 34367 IsMethod: true, 34368 IsResolver: true, 34369 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34370 switch field.Name { 34371 case "cart": 34372 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34373 case "decoratedDeliveries": 34374 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34375 case "getDecoratedDeliveryByCode": 34376 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34377 case "getAllPaymentRequiredItems": 34378 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34379 case "cartSummary": 34380 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34381 } 34382 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34383 }, 34384 } 34385 defer func() { 34386 if r := recover(); r != nil { 34387 err = ec.Recover(ctx, r) 34388 ec.Error(ctx, err) 34389 } 34390 }() 34391 ctx = graphql.WithFieldContext(ctx, fc) 34392 if fc.Args, err = ec.field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34393 ec.Error(ctx, err) 34394 return fc, err 34395 } 34396 return fc, nil 34397 } 34398 34399 func (ec *executionContext) _Mutation_Commerce_Cart_RemoveGiftCard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34400 fc, err := ec.fieldContext_Mutation_Commerce_Cart_RemoveGiftCard(ctx, field) 34401 if err != nil { 34402 return graphql.Null 34403 } 34404 ctx = graphql.WithFieldContext(ctx, fc) 34405 defer func() { 34406 if r := recover(); r != nil { 34407 ec.Error(ctx, ec.Recover(ctx, r)) 34408 ret = graphql.Null 34409 } 34410 }() 34411 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34412 ctx = rctx // use context from middleware stack in children 34413 return ec.resolvers.Mutation().CommerceCartRemoveGiftCard(rctx, fc.Args["giftCardCode"].(string)) 34414 }) 34415 if err != nil { 34416 ec.Error(ctx, err) 34417 return graphql.Null 34418 } 34419 if resTmp == nil { 34420 return graphql.Null 34421 } 34422 res := resTmp.(*dto.DecoratedCart) 34423 fc.Result = res 34424 return ec.marshalOCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34425 } 34426 34427 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_RemoveGiftCard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34428 fc = &graphql.FieldContext{ 34429 Object: "Mutation", 34430 Field: field, 34431 IsMethod: true, 34432 IsResolver: true, 34433 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34434 switch field.Name { 34435 case "cart": 34436 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34437 case "decoratedDeliveries": 34438 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34439 case "getDecoratedDeliveryByCode": 34440 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34441 case "getAllPaymentRequiredItems": 34442 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34443 case "cartSummary": 34444 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34445 } 34446 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34447 }, 34448 } 34449 defer func() { 34450 if r := recover(); r != nil { 34451 err = ec.Recover(ctx, r) 34452 ec.Error(ctx, err) 34453 } 34454 }() 34455 ctx = graphql.WithFieldContext(ctx, fc) 34456 if fc.Args, err = ec.field_Mutation_Commerce_Cart_RemoveGiftCard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34457 ec.Error(ctx, err) 34458 return fc, err 34459 } 34460 return fc, nil 34461 } 34462 34463 func (ec *executionContext) _Mutation_Commerce_Cart_RemoveCouponCode(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34464 fc, err := ec.fieldContext_Mutation_Commerce_Cart_RemoveCouponCode(ctx, field) 34465 if err != nil { 34466 return graphql.Null 34467 } 34468 ctx = graphql.WithFieldContext(ctx, fc) 34469 defer func() { 34470 if r := recover(); r != nil { 34471 ec.Error(ctx, ec.Recover(ctx, r)) 34472 ret = graphql.Null 34473 } 34474 }() 34475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34476 ctx = rctx // use context from middleware stack in children 34477 return ec.resolvers.Mutation().CommerceCartRemoveCouponCode(rctx, fc.Args["couponCode"].(string)) 34478 }) 34479 if err != nil { 34480 ec.Error(ctx, err) 34481 return graphql.Null 34482 } 34483 if resTmp == nil { 34484 return graphql.Null 34485 } 34486 res := resTmp.(*dto.DecoratedCart) 34487 fc.Result = res 34488 return ec.marshalOCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34489 } 34490 34491 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_RemoveCouponCode(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34492 fc = &graphql.FieldContext{ 34493 Object: "Mutation", 34494 Field: field, 34495 IsMethod: true, 34496 IsResolver: true, 34497 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34498 switch field.Name { 34499 case "cart": 34500 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34501 case "decoratedDeliveries": 34502 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34503 case "getDecoratedDeliveryByCode": 34504 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34505 case "getAllPaymentRequiredItems": 34506 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34507 case "cartSummary": 34508 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34509 } 34510 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34511 }, 34512 } 34513 defer func() { 34514 if r := recover(); r != nil { 34515 err = ec.Recover(ctx, r) 34516 ec.Error(ctx, err) 34517 } 34518 }() 34519 ctx = graphql.WithFieldContext(ctx, fc) 34520 if fc.Args, err = ec.field_Mutation_Commerce_Cart_RemoveCouponCode_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34521 ec.Error(ctx, err) 34522 return fc, err 34523 } 34524 return fc, nil 34525 } 34526 34527 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateDeliveryAddresses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34528 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateDeliveryAddresses(ctx, field) 34529 if err != nil { 34530 return graphql.Null 34531 } 34532 ctx = graphql.WithFieldContext(ctx, fc) 34533 defer func() { 34534 if r := recover(); r != nil { 34535 ec.Error(ctx, ec.Recover(ctx, r)) 34536 ret = graphql.Null 34537 } 34538 }() 34539 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34540 ctx = rctx // use context from middleware stack in children 34541 return ec.resolvers.Mutation().CommerceCartUpdateDeliveryAddresses(rctx, fc.Args["deliveryAdresses"].([]*forms.DeliveryForm)) 34542 }) 34543 if err != nil { 34544 ec.Error(ctx, err) 34545 return graphql.Null 34546 } 34547 if resTmp == nil { 34548 if !graphql.HasFieldError(ctx, fc) { 34549 ec.Errorf(ctx, "must not be null") 34550 } 34551 return graphql.Null 34552 } 34553 res := resTmp.([]*dto.DeliveryAddressForm) 34554 fc.Result = res 34555 return ec.marshalNCommerce_Cart_DeliveryAddressForm2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAddressForm(ctx, field.Selections, res) 34556 } 34557 34558 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateDeliveryAddresses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34559 fc = &graphql.FieldContext{ 34560 Object: "Mutation", 34561 Field: field, 34562 IsMethod: true, 34563 IsResolver: true, 34564 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34565 switch field.Name { 34566 case "deliveryCode": 34567 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_deliveryCode(ctx, field) 34568 case "formData": 34569 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_formData(ctx, field) 34570 case "useBillingAddress": 34571 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_useBillingAddress(ctx, field) 34572 case "method": 34573 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_method(ctx, field) 34574 case "carrier": 34575 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_carrier(ctx, field) 34576 case "desiredTime": 34577 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_desiredTime(ctx, field) 34578 case "validationInfo": 34579 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_validationInfo(ctx, field) 34580 case "processed": 34581 return ec.fieldContext_Commerce_Cart_DeliveryAddressForm_processed(ctx, field) 34582 } 34583 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DeliveryAddressForm", field.Name) 34584 }, 34585 } 34586 defer func() { 34587 if r := recover(); r != nil { 34588 err = ec.Recover(ctx, r) 34589 ec.Error(ctx, err) 34590 } 34591 }() 34592 ctx = graphql.WithFieldContext(ctx, fc) 34593 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34594 ec.Error(ctx, err) 34595 return fc, err 34596 } 34597 return fc, nil 34598 } 34599 34600 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateDeliveryShippingOptions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34601 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions(ctx, field) 34602 if err != nil { 34603 return graphql.Null 34604 } 34605 ctx = graphql.WithFieldContext(ctx, fc) 34606 defer func() { 34607 if r := recover(); r != nil { 34608 ec.Error(ctx, ec.Recover(ctx, r)) 34609 ret = graphql.Null 34610 } 34611 }() 34612 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34613 ctx = rctx // use context from middleware stack in children 34614 return ec.resolvers.Mutation().CommerceCartUpdateDeliveryShippingOptions(rctx, fc.Args["shippingOptions"].([]*dto.DeliveryShippingOption)) 34615 }) 34616 if err != nil { 34617 ec.Error(ctx, err) 34618 return graphql.Null 34619 } 34620 if resTmp == nil { 34621 if !graphql.HasFieldError(ctx, fc) { 34622 ec.Errorf(ctx, "must not be null") 34623 } 34624 return graphql.Null 34625 } 34626 res := resTmp.(*dto.UpdateShippingOptionsResult) 34627 fc.Result = res 34628 return ec.marshalNCommerce_Cart_UpdateDeliveryShippingOptions_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐUpdateShippingOptionsResult(ctx, field.Selections, res) 34629 } 34630 34631 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34632 fc = &graphql.FieldContext{ 34633 Object: "Mutation", 34634 Field: field, 34635 IsMethod: true, 34636 IsResolver: true, 34637 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34638 switch field.Name { 34639 case "processed": 34640 return ec.fieldContext_Commerce_Cart_UpdateDeliveryShippingOptions_Result_processed(ctx, field) 34641 } 34642 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_UpdateDeliveryShippingOptions_Result", field.Name) 34643 }, 34644 } 34645 defer func() { 34646 if r := recover(); r != nil { 34647 err = ec.Recover(ctx, r) 34648 ec.Error(ctx, err) 34649 } 34650 }() 34651 ctx = graphql.WithFieldContext(ctx, fc) 34652 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34653 ec.Error(ctx, err) 34654 return fc, err 34655 } 34656 return fc, nil 34657 } 34658 34659 func (ec *executionContext) _Mutation_Commerce_Cart_Clean(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34660 fc, err := ec.fieldContext_Mutation_Commerce_Cart_Clean(ctx, field) 34661 if err != nil { 34662 return graphql.Null 34663 } 34664 ctx = graphql.WithFieldContext(ctx, fc) 34665 defer func() { 34666 if r := recover(); r != nil { 34667 ec.Error(ctx, ec.Recover(ctx, r)) 34668 ret = graphql.Null 34669 } 34670 }() 34671 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34672 ctx = rctx // use context from middleware stack in children 34673 return ec.resolvers.Mutation().CommerceCartClean(rctx) 34674 }) 34675 if err != nil { 34676 ec.Error(ctx, err) 34677 return graphql.Null 34678 } 34679 if resTmp == nil { 34680 if !graphql.HasFieldError(ctx, fc) { 34681 ec.Errorf(ctx, "must not be null") 34682 } 34683 return graphql.Null 34684 } 34685 res := resTmp.(bool) 34686 fc.Result = res 34687 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 34688 } 34689 34690 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_Clean(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34691 fc = &graphql.FieldContext{ 34692 Object: "Mutation", 34693 Field: field, 34694 IsMethod: true, 34695 IsResolver: true, 34696 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34697 return nil, errors.New("field of type Boolean does not have child fields") 34698 }, 34699 } 34700 return fc, nil 34701 } 34702 34703 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateAdditionalData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34704 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateAdditionalData(ctx, field) 34705 if err != nil { 34706 return graphql.Null 34707 } 34708 ctx = graphql.WithFieldContext(ctx, fc) 34709 defer func() { 34710 if r := recover(); r != nil { 34711 ec.Error(ctx, ec.Recover(ctx, r)) 34712 ret = graphql.Null 34713 } 34714 }() 34715 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34716 ctx = rctx // use context from middleware stack in children 34717 return ec.resolvers.Mutation().CommerceCartUpdateAdditionalData(rctx, fc.Args["additionalData"].([]*dto.KeyValue)) 34718 }) 34719 if err != nil { 34720 ec.Error(ctx, err) 34721 return graphql.Null 34722 } 34723 if resTmp == nil { 34724 if !graphql.HasFieldError(ctx, fc) { 34725 ec.Errorf(ctx, "must not be null") 34726 } 34727 return graphql.Null 34728 } 34729 res := resTmp.(*dto.DecoratedCart) 34730 fc.Result = res 34731 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34732 } 34733 34734 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateAdditionalData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34735 fc = &graphql.FieldContext{ 34736 Object: "Mutation", 34737 Field: field, 34738 IsMethod: true, 34739 IsResolver: true, 34740 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34741 switch field.Name { 34742 case "cart": 34743 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34744 case "decoratedDeliveries": 34745 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34746 case "getDecoratedDeliveryByCode": 34747 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34748 case "getAllPaymentRequiredItems": 34749 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34750 case "cartSummary": 34751 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34752 } 34753 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34754 }, 34755 } 34756 defer func() { 34757 if r := recover(); r != nil { 34758 err = ec.Recover(ctx, r) 34759 ec.Error(ctx, err) 34760 } 34761 }() 34762 ctx = graphql.WithFieldContext(ctx, fc) 34763 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateAdditionalData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34764 ec.Error(ctx, err) 34765 return fc, err 34766 } 34767 return fc, nil 34768 } 34769 34770 func (ec *executionContext) _Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34771 fc, err := ec.fieldContext_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData(ctx, field) 34772 if err != nil { 34773 return graphql.Null 34774 } 34775 ctx = graphql.WithFieldContext(ctx, fc) 34776 defer func() { 34777 if r := recover(); r != nil { 34778 ec.Error(ctx, ec.Recover(ctx, r)) 34779 ret = graphql.Null 34780 } 34781 }() 34782 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34783 ctx = rctx // use context from middleware stack in children 34784 return ec.resolvers.Mutation().CommerceCartUpdateDeliveriesAdditionalData(rctx, fc.Args["data"].([]*dto.DeliveryAdditionalData)) 34785 }) 34786 if err != nil { 34787 ec.Error(ctx, err) 34788 return graphql.Null 34789 } 34790 if resTmp == nil { 34791 if !graphql.HasFieldError(ctx, fc) { 34792 ec.Errorf(ctx, "must not be null") 34793 } 34794 return graphql.Null 34795 } 34796 res := resTmp.(*dto.DecoratedCart) 34797 fc.Result = res 34798 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 34799 } 34800 34801 func (ec *executionContext) fieldContext_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34802 fc = &graphql.FieldContext{ 34803 Object: "Mutation", 34804 Field: field, 34805 IsMethod: true, 34806 IsResolver: true, 34807 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34808 switch field.Name { 34809 case "cart": 34810 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 34811 case "decoratedDeliveries": 34812 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 34813 case "getDecoratedDeliveryByCode": 34814 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 34815 case "getAllPaymentRequiredItems": 34816 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 34817 case "cartSummary": 34818 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 34819 } 34820 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 34821 }, 34822 } 34823 defer func() { 34824 if r := recover(); r != nil { 34825 err = ec.Recover(ctx, r) 34826 ec.Error(ctx, err) 34827 } 34828 }() 34829 ctx = graphql.WithFieldContext(ctx, fc) 34830 if fc.Args, err = ec.field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34831 ec.Error(ctx, err) 34832 return fc, err 34833 } 34834 return fc, nil 34835 } 34836 34837 func (ec *executionContext) _Mutation_Commerce_Checkout_StartPlaceOrder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34838 fc, err := ec.fieldContext_Mutation_Commerce_Checkout_StartPlaceOrder(ctx, field) 34839 if err != nil { 34840 return graphql.Null 34841 } 34842 ctx = graphql.WithFieldContext(ctx, fc) 34843 defer func() { 34844 if r := recover(); r != nil { 34845 ec.Error(ctx, ec.Recover(ctx, r)) 34846 ret = graphql.Null 34847 } 34848 }() 34849 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34850 ctx = rctx // use context from middleware stack in children 34851 return ec.resolvers.Mutation().CommerceCheckoutStartPlaceOrder(rctx, fc.Args["returnUrl"].(string)) 34852 }) 34853 if err != nil { 34854 ec.Error(ctx, err) 34855 return graphql.Null 34856 } 34857 if resTmp == nil { 34858 if !graphql.HasFieldError(ctx, fc) { 34859 ec.Errorf(ctx, "must not be null") 34860 } 34861 return graphql.Null 34862 } 34863 res := resTmp.(*dto1.StartPlaceOrderResult) 34864 fc.Result = res 34865 return ec.marshalNCommerce_Checkout_StartPlaceOrder_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐStartPlaceOrderResult(ctx, field.Selections, res) 34866 } 34867 34868 func (ec *executionContext) fieldContext_Mutation_Commerce_Checkout_StartPlaceOrder(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34869 fc = &graphql.FieldContext{ 34870 Object: "Mutation", 34871 Field: field, 34872 IsMethod: true, 34873 IsResolver: true, 34874 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34875 switch field.Name { 34876 case "uuid": 34877 return ec.fieldContext_Commerce_Checkout_StartPlaceOrder_Result_uuid(ctx, field) 34878 } 34879 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_StartPlaceOrder_Result", field.Name) 34880 }, 34881 } 34882 defer func() { 34883 if r := recover(); r != nil { 34884 err = ec.Recover(ctx, r) 34885 ec.Error(ctx, err) 34886 } 34887 }() 34888 ctx = graphql.WithFieldContext(ctx, fc) 34889 if fc.Args, err = ec.field_Mutation_Commerce_Checkout_StartPlaceOrder_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 34890 ec.Error(ctx, err) 34891 return fc, err 34892 } 34893 return fc, nil 34894 } 34895 34896 func (ec *executionContext) _Mutation_Commerce_Checkout_CancelPlaceOrder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34897 fc, err := ec.fieldContext_Mutation_Commerce_Checkout_CancelPlaceOrder(ctx, field) 34898 if err != nil { 34899 return graphql.Null 34900 } 34901 ctx = graphql.WithFieldContext(ctx, fc) 34902 defer func() { 34903 if r := recover(); r != nil { 34904 ec.Error(ctx, ec.Recover(ctx, r)) 34905 ret = graphql.Null 34906 } 34907 }() 34908 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34909 ctx = rctx // use context from middleware stack in children 34910 return ec.resolvers.Mutation().CommerceCheckoutCancelPlaceOrder(rctx) 34911 }) 34912 if err != nil { 34913 ec.Error(ctx, err) 34914 return graphql.Null 34915 } 34916 if resTmp == nil { 34917 if !graphql.HasFieldError(ctx, fc) { 34918 ec.Errorf(ctx, "must not be null") 34919 } 34920 return graphql.Null 34921 } 34922 res := resTmp.(bool) 34923 fc.Result = res 34924 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 34925 } 34926 34927 func (ec *executionContext) fieldContext_Mutation_Commerce_Checkout_CancelPlaceOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34928 fc = &graphql.FieldContext{ 34929 Object: "Mutation", 34930 Field: field, 34931 IsMethod: true, 34932 IsResolver: true, 34933 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34934 return nil, errors.New("field of type Boolean does not have child fields") 34935 }, 34936 } 34937 return fc, nil 34938 } 34939 34940 func (ec *executionContext) _Mutation_Commerce_Checkout_ClearPlaceOrder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34941 fc, err := ec.fieldContext_Mutation_Commerce_Checkout_ClearPlaceOrder(ctx, field) 34942 if err != nil { 34943 return graphql.Null 34944 } 34945 ctx = graphql.WithFieldContext(ctx, fc) 34946 defer func() { 34947 if r := recover(); r != nil { 34948 ec.Error(ctx, ec.Recover(ctx, r)) 34949 ret = graphql.Null 34950 } 34951 }() 34952 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34953 ctx = rctx // use context from middleware stack in children 34954 return ec.resolvers.Mutation().CommerceCheckoutClearPlaceOrder(rctx) 34955 }) 34956 if err != nil { 34957 ec.Error(ctx, err) 34958 return graphql.Null 34959 } 34960 if resTmp == nil { 34961 if !graphql.HasFieldError(ctx, fc) { 34962 ec.Errorf(ctx, "must not be null") 34963 } 34964 return graphql.Null 34965 } 34966 res := resTmp.(bool) 34967 fc.Result = res 34968 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 34969 } 34970 34971 func (ec *executionContext) fieldContext_Mutation_Commerce_Checkout_ClearPlaceOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 34972 fc = &graphql.FieldContext{ 34973 Object: "Mutation", 34974 Field: field, 34975 IsMethod: true, 34976 IsResolver: true, 34977 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 34978 return nil, errors.New("field of type Boolean does not have child fields") 34979 }, 34980 } 34981 return fc, nil 34982 } 34983 34984 func (ec *executionContext) _Mutation_Commerce_Checkout_RefreshPlaceOrder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 34985 fc, err := ec.fieldContext_Mutation_Commerce_Checkout_RefreshPlaceOrder(ctx, field) 34986 if err != nil { 34987 return graphql.Null 34988 } 34989 ctx = graphql.WithFieldContext(ctx, fc) 34990 defer func() { 34991 if r := recover(); r != nil { 34992 ec.Error(ctx, ec.Recover(ctx, r)) 34993 ret = graphql.Null 34994 } 34995 }() 34996 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 34997 ctx = rctx // use context from middleware stack in children 34998 return ec.resolvers.Mutation().CommerceCheckoutRefreshPlaceOrder(rctx) 34999 }) 35000 if err != nil { 35001 ec.Error(ctx, err) 35002 return graphql.Null 35003 } 35004 if resTmp == nil { 35005 if !graphql.HasFieldError(ctx, fc) { 35006 ec.Errorf(ctx, "must not be null") 35007 } 35008 return graphql.Null 35009 } 35010 res := resTmp.(*dto1.PlaceOrderContext) 35011 fc.Result = res 35012 return ec.marshalNCommerce_Checkout_PlaceOrderContext2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlaceOrderContext(ctx, field.Selections, res) 35013 } 35014 35015 func (ec *executionContext) fieldContext_Mutation_Commerce_Checkout_RefreshPlaceOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35016 fc = &graphql.FieldContext{ 35017 Object: "Mutation", 35018 Field: field, 35019 IsMethod: true, 35020 IsResolver: true, 35021 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35022 switch field.Name { 35023 case "cart": 35024 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_cart(ctx, field) 35025 case "orderInfos": 35026 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_orderInfos(ctx, field) 35027 case "state": 35028 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_state(ctx, field) 35029 case "uuid": 35030 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_uuid(ctx, field) 35031 } 35032 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderContext", field.Name) 35033 }, 35034 } 35035 return fc, nil 35036 } 35037 35038 func (ec *executionContext) _Mutation_Commerce_Checkout_RefreshPlaceOrderBlocking(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35039 fc, err := ec.fieldContext_Mutation_Commerce_Checkout_RefreshPlaceOrderBlocking(ctx, field) 35040 if err != nil { 35041 return graphql.Null 35042 } 35043 ctx = graphql.WithFieldContext(ctx, fc) 35044 defer func() { 35045 if r := recover(); r != nil { 35046 ec.Error(ctx, ec.Recover(ctx, r)) 35047 ret = graphql.Null 35048 } 35049 }() 35050 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35051 ctx = rctx // use context from middleware stack in children 35052 return ec.resolvers.Mutation().CommerceCheckoutRefreshPlaceOrderBlocking(rctx) 35053 }) 35054 if err != nil { 35055 ec.Error(ctx, err) 35056 return graphql.Null 35057 } 35058 if resTmp == nil { 35059 if !graphql.HasFieldError(ctx, fc) { 35060 ec.Errorf(ctx, "must not be null") 35061 } 35062 return graphql.Null 35063 } 35064 res := resTmp.(*dto1.PlaceOrderContext) 35065 fc.Result = res 35066 return ec.marshalNCommerce_Checkout_PlaceOrderContext2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlaceOrderContext(ctx, field.Selections, res) 35067 } 35068 35069 func (ec *executionContext) fieldContext_Mutation_Commerce_Checkout_RefreshPlaceOrderBlocking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35070 fc = &graphql.FieldContext{ 35071 Object: "Mutation", 35072 Field: field, 35073 IsMethod: true, 35074 IsResolver: true, 35075 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35076 switch field.Name { 35077 case "cart": 35078 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_cart(ctx, field) 35079 case "orderInfos": 35080 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_orderInfos(ctx, field) 35081 case "state": 35082 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_state(ctx, field) 35083 case "uuid": 35084 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_uuid(ctx, field) 35085 } 35086 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderContext", field.Name) 35087 }, 35088 } 35089 return fc, nil 35090 } 35091 35092 func (ec *executionContext) _Query_flamingo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35093 fc, err := ec.fieldContext_Query_flamingo(ctx, field) 35094 if err != nil { 35095 return graphql.Null 35096 } 35097 ctx = graphql.WithFieldContext(ctx, fc) 35098 defer func() { 35099 if r := recover(); r != nil { 35100 ec.Error(ctx, ec.Recover(ctx, r)) 35101 ret = graphql.Null 35102 } 35103 }() 35104 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35105 ctx = rctx // use context from middleware stack in children 35106 return ec.resolvers.Query().Flamingo(rctx) 35107 }) 35108 if err != nil { 35109 ec.Error(ctx, err) 35110 return graphql.Null 35111 } 35112 if resTmp == nil { 35113 return graphql.Null 35114 } 35115 res := resTmp.(*string) 35116 fc.Result = res 35117 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 35118 } 35119 35120 func (ec *executionContext) fieldContext_Query_flamingo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35121 fc = &graphql.FieldContext{ 35122 Object: "Query", 35123 Field: field, 35124 IsMethod: true, 35125 IsResolver: true, 35126 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35127 return nil, errors.New("field of type String does not have child fields") 35128 }, 35129 } 35130 return fc, nil 35131 } 35132 35133 func (ec *executionContext) _Query_Commerce_Product(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35134 fc, err := ec.fieldContext_Query_Commerce_Product(ctx, field) 35135 if err != nil { 35136 return graphql.Null 35137 } 35138 ctx = graphql.WithFieldContext(ctx, fc) 35139 defer func() { 35140 if r := recover(); r != nil { 35141 ec.Error(ctx, ec.Recover(ctx, r)) 35142 ret = graphql.Null 35143 } 35144 }() 35145 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35146 ctx = rctx // use context from middleware stack in children 35147 return ec.resolvers.Query().CommerceProduct(rctx, fc.Args["marketPlaceCode"].(string), fc.Args["variantMarketPlaceCode"].(*string), fc.Args["bundleConfiguration"].([]*graphqlproductdto.ChoiceConfiguration)) 35148 }) 35149 if err != nil { 35150 ec.Error(ctx, err) 35151 return graphql.Null 35152 } 35153 if resTmp == nil { 35154 return graphql.Null 35155 } 35156 res := resTmp.(graphqlproductdto.Product) 35157 fc.Result = res 35158 return ec.marshalOCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx, field.Selections, res) 35159 } 35160 35161 func (ec *executionContext) fieldContext_Query_Commerce_Product(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35162 fc = &graphql.FieldContext{ 35163 Object: "Query", 35164 Field: field, 35165 IsMethod: true, 35166 IsResolver: true, 35167 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35168 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 35169 }, 35170 } 35171 defer func() { 35172 if r := recover(); r != nil { 35173 err = ec.Recover(ctx, r) 35174 ec.Error(ctx, err) 35175 } 35176 }() 35177 ctx = graphql.WithFieldContext(ctx, fc) 35178 if fc.Args, err = ec.field_Query_Commerce_Product_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35179 ec.Error(ctx, err) 35180 return fc, err 35181 } 35182 return fc, nil 35183 } 35184 35185 func (ec *executionContext) _Query_Commerce_Product_Search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35186 fc, err := ec.fieldContext_Query_Commerce_Product_Search(ctx, field) 35187 if err != nil { 35188 return graphql.Null 35189 } 35190 ctx = graphql.WithFieldContext(ctx, fc) 35191 defer func() { 35192 if r := recover(); r != nil { 35193 ec.Error(ctx, ec.Recover(ctx, r)) 35194 ret = graphql.Null 35195 } 35196 }() 35197 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35198 ctx = rctx // use context from middleware stack in children 35199 return ec.resolvers.Query().CommerceProductSearch(rctx, fc.Args["searchRequest"].(searchdto.CommerceSearchRequest)) 35200 }) 35201 if err != nil { 35202 ec.Error(ctx, err) 35203 return graphql.Null 35204 } 35205 if resTmp == nil { 35206 if !graphql.HasFieldError(ctx, fc) { 35207 ec.Errorf(ctx, "must not be null") 35208 } 35209 return graphql.Null 35210 } 35211 res := resTmp.(*graphql1.SearchResultDTO) 35212 fc.Result = res 35213 return ec.marshalNCommerce_Product_SearchResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚐSearchResultDTO(ctx, field.Selections, res) 35214 } 35215 35216 func (ec *executionContext) fieldContext_Query_Commerce_Product_Search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35217 fc = &graphql.FieldContext{ 35218 Object: "Query", 35219 Field: field, 35220 IsMethod: true, 35221 IsResolver: true, 35222 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35223 switch field.Name { 35224 case "products": 35225 return ec.fieldContext_Commerce_Product_SearchResult_products(ctx, field) 35226 case "facets": 35227 return ec.fieldContext_Commerce_Product_SearchResult_facets(ctx, field) 35228 case "suggestions": 35229 return ec.fieldContext_Commerce_Product_SearchResult_suggestions(ctx, field) 35230 case "searchMeta": 35231 return ec.fieldContext_Commerce_Product_SearchResult_searchMeta(ctx, field) 35232 case "hasSelectedFacet": 35233 return ec.fieldContext_Commerce_Product_SearchResult_hasSelectedFacet(ctx, field) 35234 case "promotion": 35235 return ec.fieldContext_Commerce_Product_SearchResult_promotion(ctx, field) 35236 case "actions": 35237 return ec.fieldContext_Commerce_Product_SearchResult_actions(ctx, field) 35238 } 35239 return nil, fmt.Errorf("no field named %q was found under type Commerce_Product_SearchResult", field.Name) 35240 }, 35241 } 35242 defer func() { 35243 if r := recover(); r != nil { 35244 err = ec.Recover(ctx, r) 35245 ec.Error(ctx, err) 35246 } 35247 }() 35248 ctx = graphql.WithFieldContext(ctx, fc) 35249 if fc.Args, err = ec.field_Query_Commerce_Product_Search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35250 ec.Error(ctx, err) 35251 return fc, err 35252 } 35253 return fc, nil 35254 } 35255 35256 func (ec *executionContext) _Query_Commerce_Customer_Status(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35257 fc, err := ec.fieldContext_Query_Commerce_Customer_Status(ctx, field) 35258 if err != nil { 35259 return graphql.Null 35260 } 35261 ctx = graphql.WithFieldContext(ctx, fc) 35262 defer func() { 35263 if r := recover(); r != nil { 35264 ec.Error(ctx, ec.Recover(ctx, r)) 35265 ret = graphql.Null 35266 } 35267 }() 35268 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35269 ctx = rctx // use context from middleware stack in children 35270 return ec.resolvers.Query().CommerceCustomerStatus(rctx) 35271 }) 35272 if err != nil { 35273 ec.Error(ctx, err) 35274 return graphql.Null 35275 } 35276 if resTmp == nil { 35277 return graphql.Null 35278 } 35279 res := resTmp.(*dtocustomer.CustomerStatusResult) 35280 fc.Result = res 35281 return ec.marshalOCommerce_Customer_Status_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋinterfacesᚋgraphqlᚋdtocustomerᚐCustomerStatusResult(ctx, field.Selections, res) 35282 } 35283 35284 func (ec *executionContext) fieldContext_Query_Commerce_Customer_Status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35285 fc = &graphql.FieldContext{ 35286 Object: "Query", 35287 Field: field, 35288 IsMethod: true, 35289 IsResolver: true, 35290 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35291 switch field.Name { 35292 case "isLoggedIn": 35293 return ec.fieldContext_Commerce_Customer_Status_Result_isLoggedIn(ctx, field) 35294 case "userID": 35295 return ec.fieldContext_Commerce_Customer_Status_Result_userID(ctx, field) 35296 } 35297 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Status_Result", field.Name) 35298 }, 35299 } 35300 return fc, nil 35301 } 35302 35303 func (ec *executionContext) _Query_Commerce_Customer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35304 fc, err := ec.fieldContext_Query_Commerce_Customer(ctx, field) 35305 if err != nil { 35306 return graphql.Null 35307 } 35308 ctx = graphql.WithFieldContext(ctx, fc) 35309 defer func() { 35310 if r := recover(); r != nil { 35311 ec.Error(ctx, ec.Recover(ctx, r)) 35312 ret = graphql.Null 35313 } 35314 }() 35315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35316 ctx = rctx // use context from middleware stack in children 35317 return ec.resolvers.Query().CommerceCustomer(rctx) 35318 }) 35319 if err != nil { 35320 ec.Error(ctx, err) 35321 return graphql.Null 35322 } 35323 if resTmp == nil { 35324 return graphql.Null 35325 } 35326 res := resTmp.(*dtocustomer.CustomerResult) 35327 fc.Result = res 35328 return ec.marshalOCommerce_Customer_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋinterfacesᚋgraphqlᚋdtocustomerᚐCustomerResult(ctx, field.Selections, res) 35329 } 35330 35331 func (ec *executionContext) fieldContext_Query_Commerce_Customer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35332 fc = &graphql.FieldContext{ 35333 Object: "Query", 35334 Field: field, 35335 IsMethod: true, 35336 IsResolver: true, 35337 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35338 switch field.Name { 35339 case "id": 35340 return ec.fieldContext_Commerce_Customer_Result_id(ctx, field) 35341 case "personalData": 35342 return ec.fieldContext_Commerce_Customer_Result_personalData(ctx, field) 35343 case "getAddress": 35344 return ec.fieldContext_Commerce_Customer_Result_getAddress(ctx, field) 35345 case "addresses": 35346 return ec.fieldContext_Commerce_Customer_Result_addresses(ctx, field) 35347 case "defaultShippingAddress": 35348 return ec.fieldContext_Commerce_Customer_Result_defaultShippingAddress(ctx, field) 35349 case "defaultBillingAddress": 35350 return ec.fieldContext_Commerce_Customer_Result_defaultBillingAddress(ctx, field) 35351 } 35352 return nil, fmt.Errorf("no field named %q was found under type Commerce_Customer_Result", field.Name) 35353 }, 35354 } 35355 return fc, nil 35356 } 35357 35358 func (ec *executionContext) _Query_Commerce_Cart_DecoratedCart(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35359 fc, err := ec.fieldContext_Query_Commerce_Cart_DecoratedCart(ctx, field) 35360 if err != nil { 35361 return graphql.Null 35362 } 35363 ctx = graphql.WithFieldContext(ctx, fc) 35364 defer func() { 35365 if r := recover(); r != nil { 35366 ec.Error(ctx, ec.Recover(ctx, r)) 35367 ret = graphql.Null 35368 } 35369 }() 35370 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35371 ctx = rctx // use context from middleware stack in children 35372 return ec.resolvers.Query().CommerceCartDecoratedCart(rctx) 35373 }) 35374 if err != nil { 35375 ec.Error(ctx, err) 35376 return graphql.Null 35377 } 35378 if resTmp == nil { 35379 if !graphql.HasFieldError(ctx, fc) { 35380 ec.Errorf(ctx, "must not be null") 35381 } 35382 return graphql.Null 35383 } 35384 res := resTmp.(*dto.DecoratedCart) 35385 fc.Result = res 35386 return ec.marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx, field.Selections, res) 35387 } 35388 35389 func (ec *executionContext) fieldContext_Query_Commerce_Cart_DecoratedCart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35390 fc = &graphql.FieldContext{ 35391 Object: "Query", 35392 Field: field, 35393 IsMethod: true, 35394 IsResolver: true, 35395 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35396 switch field.Name { 35397 case "cart": 35398 return ec.fieldContext_Commerce_Cart_DecoratedCart_cart(ctx, field) 35399 case "decoratedDeliveries": 35400 return ec.fieldContext_Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field) 35401 case "getDecoratedDeliveryByCode": 35402 return ec.fieldContext_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field) 35403 case "getAllPaymentRequiredItems": 35404 return ec.fieldContext_Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field) 35405 case "cartSummary": 35406 return ec.fieldContext_Commerce_Cart_DecoratedCart_cartSummary(ctx, field) 35407 } 35408 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_DecoratedCart", field.Name) 35409 }, 35410 } 35411 return fc, nil 35412 } 35413 35414 func (ec *executionContext) _Query_Commerce_Cart_Validator(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35415 fc, err := ec.fieldContext_Query_Commerce_Cart_Validator(ctx, field) 35416 if err != nil { 35417 return graphql.Null 35418 } 35419 ctx = graphql.WithFieldContext(ctx, fc) 35420 defer func() { 35421 if r := recover(); r != nil { 35422 ec.Error(ctx, ec.Recover(ctx, r)) 35423 ret = graphql.Null 35424 } 35425 }() 35426 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35427 ctx = rctx // use context from middleware stack in children 35428 return ec.resolvers.Query().CommerceCartValidator(rctx) 35429 }) 35430 if err != nil { 35431 ec.Error(ctx, err) 35432 return graphql.Null 35433 } 35434 if resTmp == nil { 35435 if !graphql.HasFieldError(ctx, fc) { 35436 ec.Errorf(ctx, "must not be null") 35437 } 35438 return graphql.Null 35439 } 35440 res := resTmp.(*validation.Result) 35441 fc.Result = res 35442 return ec.marshalNCommerce_Cart_ValidationResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐResult(ctx, field.Selections, res) 35443 } 35444 35445 func (ec *executionContext) fieldContext_Query_Commerce_Cart_Validator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35446 fc = &graphql.FieldContext{ 35447 Object: "Query", 35448 Field: field, 35449 IsMethod: true, 35450 IsResolver: true, 35451 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35452 switch field.Name { 35453 case "hasCommonError": 35454 return ec.fieldContext_Commerce_Cart_ValidationResult_hasCommonError(ctx, field) 35455 case "commonErrorMessageKey": 35456 return ec.fieldContext_Commerce_Cart_ValidationResult_commonErrorMessageKey(ctx, field) 35457 case "itemResults": 35458 return ec.fieldContext_Commerce_Cart_ValidationResult_itemResults(ctx, field) 35459 } 35460 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_ValidationResult", field.Name) 35461 }, 35462 } 35463 return fc, nil 35464 } 35465 35466 func (ec *executionContext) _Query_Commerce_Cart_QtyRestriction(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35467 fc, err := ec.fieldContext_Query_Commerce_Cart_QtyRestriction(ctx, field) 35468 if err != nil { 35469 return graphql.Null 35470 } 35471 ctx = graphql.WithFieldContext(ctx, fc) 35472 defer func() { 35473 if r := recover(); r != nil { 35474 ec.Error(ctx, ec.Recover(ctx, r)) 35475 ret = graphql.Null 35476 } 35477 }() 35478 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35479 ctx = rctx // use context from middleware stack in children 35480 return ec.resolvers.Query().CommerceCartQtyRestriction(rctx, fc.Args["marketplaceCode"].(string), fc.Args["variantCode"].(*string), fc.Args["deliveryCode"].(string)) 35481 }) 35482 if err != nil { 35483 ec.Error(ctx, err) 35484 return graphql.Null 35485 } 35486 if resTmp == nil { 35487 if !graphql.HasFieldError(ctx, fc) { 35488 ec.Errorf(ctx, "must not be null") 35489 } 35490 return graphql.Null 35491 } 35492 res := resTmp.(*validation.RestrictionResult) 35493 fc.Result = res 35494 return ec.marshalNCommerce_Cart_QtyRestrictionResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐRestrictionResult(ctx, field.Selections, res) 35495 } 35496 35497 func (ec *executionContext) fieldContext_Query_Commerce_Cart_QtyRestriction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35498 fc = &graphql.FieldContext{ 35499 Object: "Query", 35500 Field: field, 35501 IsMethod: true, 35502 IsResolver: true, 35503 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35504 switch field.Name { 35505 case "isRestricted": 35506 return ec.fieldContext_Commerce_Cart_QtyRestrictionResult_isRestricted(ctx, field) 35507 case "maxAllowed": 35508 return ec.fieldContext_Commerce_Cart_QtyRestrictionResult_maxAllowed(ctx, field) 35509 case "remainingDifference": 35510 return ec.fieldContext_Commerce_Cart_QtyRestrictionResult_remainingDifference(ctx, field) 35511 case "restrictorName": 35512 return ec.fieldContext_Commerce_Cart_QtyRestrictionResult_restrictorName(ctx, field) 35513 } 35514 return nil, fmt.Errorf("no field named %q was found under type Commerce_Cart_QtyRestrictionResult", field.Name) 35515 }, 35516 } 35517 defer func() { 35518 if r := recover(); r != nil { 35519 err = ec.Recover(ctx, r) 35520 ec.Error(ctx, err) 35521 } 35522 }() 35523 ctx = graphql.WithFieldContext(ctx, fc) 35524 if fc.Args, err = ec.field_Query_Commerce_Cart_QtyRestriction_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35525 ec.Error(ctx, err) 35526 return fc, err 35527 } 35528 return fc, nil 35529 } 35530 35531 func (ec *executionContext) _Query_Commerce_Checkout_ActivePlaceOrder(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35532 fc, err := ec.fieldContext_Query_Commerce_Checkout_ActivePlaceOrder(ctx, field) 35533 if err != nil { 35534 return graphql.Null 35535 } 35536 ctx = graphql.WithFieldContext(ctx, fc) 35537 defer func() { 35538 if r := recover(); r != nil { 35539 ec.Error(ctx, ec.Recover(ctx, r)) 35540 ret = graphql.Null 35541 } 35542 }() 35543 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35544 ctx = rctx // use context from middleware stack in children 35545 return ec.resolvers.Query().CommerceCheckoutActivePlaceOrder(rctx) 35546 }) 35547 if err != nil { 35548 ec.Error(ctx, err) 35549 return graphql.Null 35550 } 35551 if resTmp == nil { 35552 if !graphql.HasFieldError(ctx, fc) { 35553 ec.Errorf(ctx, "must not be null") 35554 } 35555 return graphql.Null 35556 } 35557 res := resTmp.(bool) 35558 fc.Result = res 35559 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 35560 } 35561 35562 func (ec *executionContext) fieldContext_Query_Commerce_Checkout_ActivePlaceOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35563 fc = &graphql.FieldContext{ 35564 Object: "Query", 35565 Field: field, 35566 IsMethod: true, 35567 IsResolver: true, 35568 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35569 return nil, errors.New("field of type Boolean does not have child fields") 35570 }, 35571 } 35572 return fc, nil 35573 } 35574 35575 func (ec *executionContext) _Query_Commerce_Checkout_CurrentContext(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35576 fc, err := ec.fieldContext_Query_Commerce_Checkout_CurrentContext(ctx, field) 35577 if err != nil { 35578 return graphql.Null 35579 } 35580 ctx = graphql.WithFieldContext(ctx, fc) 35581 defer func() { 35582 if r := recover(); r != nil { 35583 ec.Error(ctx, ec.Recover(ctx, r)) 35584 ret = graphql.Null 35585 } 35586 }() 35587 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35588 ctx = rctx // use context from middleware stack in children 35589 return ec.resolvers.Query().CommerceCheckoutCurrentContext(rctx) 35590 }) 35591 if err != nil { 35592 ec.Error(ctx, err) 35593 return graphql.Null 35594 } 35595 if resTmp == nil { 35596 if !graphql.HasFieldError(ctx, fc) { 35597 ec.Errorf(ctx, "must not be null") 35598 } 35599 return graphql.Null 35600 } 35601 res := resTmp.(*dto1.PlaceOrderContext) 35602 fc.Result = res 35603 return ec.marshalNCommerce_Checkout_PlaceOrderContext2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlaceOrderContext(ctx, field.Selections, res) 35604 } 35605 35606 func (ec *executionContext) fieldContext_Query_Commerce_Checkout_CurrentContext(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35607 fc = &graphql.FieldContext{ 35608 Object: "Query", 35609 Field: field, 35610 IsMethod: true, 35611 IsResolver: true, 35612 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35613 switch field.Name { 35614 case "cart": 35615 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_cart(ctx, field) 35616 case "orderInfos": 35617 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_orderInfos(ctx, field) 35618 case "state": 35619 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_state(ctx, field) 35620 case "uuid": 35621 return ec.fieldContext_Commerce_Checkout_PlaceOrderContext_uuid(ctx, field) 35622 } 35623 return nil, fmt.Errorf("no field named %q was found under type Commerce_Checkout_PlaceOrderContext", field.Name) 35624 }, 35625 } 35626 return fc, nil 35627 } 35628 35629 func (ec *executionContext) _Query_Commerce_CategoryTree(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35630 fc, err := ec.fieldContext_Query_Commerce_CategoryTree(ctx, field) 35631 if err != nil { 35632 return graphql.Null 35633 } 35634 ctx = graphql.WithFieldContext(ctx, fc) 35635 defer func() { 35636 if r := recover(); r != nil { 35637 ec.Error(ctx, ec.Recover(ctx, r)) 35638 ret = graphql.Null 35639 } 35640 }() 35641 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35642 ctx = rctx // use context from middleware stack in children 35643 return ec.resolvers.Query().CommerceCategoryTree(rctx, fc.Args["activeCategoryCode"].(string)) 35644 }) 35645 if err != nil { 35646 ec.Error(ctx, err) 35647 return graphql.Null 35648 } 35649 if resTmp == nil { 35650 if !graphql.HasFieldError(ctx, fc) { 35651 ec.Errorf(ctx, "must not be null") 35652 } 35653 return graphql.Null 35654 } 35655 res := resTmp.(domain3.Tree) 35656 fc.Result = res 35657 return ec.marshalNCommerce_Tree2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx, field.Selections, res) 35658 } 35659 35660 func (ec *executionContext) fieldContext_Query_Commerce_CategoryTree(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35661 fc = &graphql.FieldContext{ 35662 Object: "Query", 35663 Field: field, 35664 IsMethod: true, 35665 IsResolver: true, 35666 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35667 return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") 35668 }, 35669 } 35670 defer func() { 35671 if r := recover(); r != nil { 35672 err = ec.Recover(ctx, r) 35673 ec.Error(ctx, err) 35674 } 35675 }() 35676 ctx = graphql.WithFieldContext(ctx, fc) 35677 if fc.Args, err = ec.field_Query_Commerce_CategoryTree_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35678 ec.Error(ctx, err) 35679 return fc, err 35680 } 35681 return fc, nil 35682 } 35683 35684 func (ec *executionContext) _Query_Commerce_Category(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35685 fc, err := ec.fieldContext_Query_Commerce_Category(ctx, field) 35686 if err != nil { 35687 return graphql.Null 35688 } 35689 ctx = graphql.WithFieldContext(ctx, fc) 35690 defer func() { 35691 if r := recover(); r != nil { 35692 ec.Error(ctx, ec.Recover(ctx, r)) 35693 ret = graphql.Null 35694 } 35695 }() 35696 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35697 ctx = rctx // use context from middleware stack in children 35698 return ec.resolvers.Query().CommerceCategory(rctx, fc.Args["categoryCode"].(string), fc.Args["categorySearchRequest"].(*searchdto.CommerceSearchRequest)) 35699 }) 35700 if err != nil { 35701 ec.Error(ctx, err) 35702 return graphql.Null 35703 } 35704 if resTmp == nil { 35705 return graphql.Null 35706 } 35707 res := resTmp.(*categorydto.CategorySearchResult) 35708 fc.Result = res 35709 return ec.marshalOCommerce_Category_SearchResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋinterfacesᚋgraphqlᚋcategorydtoᚐCategorySearchResult(ctx, field.Selections, res) 35710 } 35711 35712 func (ec *executionContext) fieldContext_Query_Commerce_Category(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35713 fc = &graphql.FieldContext{ 35714 Object: "Query", 35715 Field: field, 35716 IsMethod: true, 35717 IsResolver: true, 35718 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35719 switch field.Name { 35720 case "category": 35721 return ec.fieldContext_Commerce_Category_SearchResult_category(ctx, field) 35722 case "productSearchResult": 35723 return ec.fieldContext_Commerce_Category_SearchResult_productSearchResult(ctx, field) 35724 } 35725 return nil, fmt.Errorf("no field named %q was found under type Commerce_Category_SearchResult", field.Name) 35726 }, 35727 } 35728 defer func() { 35729 if r := recover(); r != nil { 35730 err = ec.Recover(ctx, r) 35731 ec.Error(ctx, err) 35732 } 35733 }() 35734 ctx = graphql.WithFieldContext(ctx, fc) 35735 if fc.Args, err = ec.field_Query_Commerce_Category_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35736 ec.Error(ctx, err) 35737 return fc, err 35738 } 35739 return fc, nil 35740 } 35741 35742 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35743 fc, err := ec.fieldContext_Query___type(ctx, field) 35744 if err != nil { 35745 return graphql.Null 35746 } 35747 ctx = graphql.WithFieldContext(ctx, fc) 35748 defer func() { 35749 if r := recover(); r != nil { 35750 ec.Error(ctx, ec.Recover(ctx, r)) 35751 ret = graphql.Null 35752 } 35753 }() 35754 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35755 ctx = rctx // use context from middleware stack in children 35756 return ec.introspectType(fc.Args["name"].(string)) 35757 }) 35758 if err != nil { 35759 ec.Error(ctx, err) 35760 return graphql.Null 35761 } 35762 if resTmp == nil { 35763 return graphql.Null 35764 } 35765 res := resTmp.(*introspection.Type) 35766 fc.Result = res 35767 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 35768 } 35769 35770 func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35771 fc = &graphql.FieldContext{ 35772 Object: "Query", 35773 Field: field, 35774 IsMethod: true, 35775 IsResolver: false, 35776 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35777 switch field.Name { 35778 case "kind": 35779 return ec.fieldContext___Type_kind(ctx, field) 35780 case "name": 35781 return ec.fieldContext___Type_name(ctx, field) 35782 case "description": 35783 return ec.fieldContext___Type_description(ctx, field) 35784 case "fields": 35785 return ec.fieldContext___Type_fields(ctx, field) 35786 case "interfaces": 35787 return ec.fieldContext___Type_interfaces(ctx, field) 35788 case "possibleTypes": 35789 return ec.fieldContext___Type_possibleTypes(ctx, field) 35790 case "enumValues": 35791 return ec.fieldContext___Type_enumValues(ctx, field) 35792 case "inputFields": 35793 return ec.fieldContext___Type_inputFields(ctx, field) 35794 case "ofType": 35795 return ec.fieldContext___Type_ofType(ctx, field) 35796 case "specifiedByURL": 35797 return ec.fieldContext___Type_specifiedByURL(ctx, field) 35798 } 35799 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 35800 }, 35801 } 35802 defer func() { 35803 if r := recover(); r != nil { 35804 err = ec.Recover(ctx, r) 35805 ec.Error(ctx, err) 35806 } 35807 }() 35808 ctx = graphql.WithFieldContext(ctx, fc) 35809 if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 35810 ec.Error(ctx, err) 35811 return fc, err 35812 } 35813 return fc, nil 35814 } 35815 35816 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 35817 fc, err := ec.fieldContext_Query___schema(ctx, field) 35818 if err != nil { 35819 return graphql.Null 35820 } 35821 ctx = graphql.WithFieldContext(ctx, fc) 35822 defer func() { 35823 if r := recover(); r != nil { 35824 ec.Error(ctx, ec.Recover(ctx, r)) 35825 ret = graphql.Null 35826 } 35827 }() 35828 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35829 ctx = rctx // use context from middleware stack in children 35830 return ec.introspectSchema() 35831 }) 35832 if err != nil { 35833 ec.Error(ctx, err) 35834 return graphql.Null 35835 } 35836 if resTmp == nil { 35837 return graphql.Null 35838 } 35839 res := resTmp.(*introspection.Schema) 35840 fc.Result = res 35841 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 35842 } 35843 35844 func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35845 fc = &graphql.FieldContext{ 35846 Object: "Query", 35847 Field: field, 35848 IsMethod: true, 35849 IsResolver: false, 35850 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35851 switch field.Name { 35852 case "description": 35853 return ec.fieldContext___Schema_description(ctx, field) 35854 case "types": 35855 return ec.fieldContext___Schema_types(ctx, field) 35856 case "queryType": 35857 return ec.fieldContext___Schema_queryType(ctx, field) 35858 case "mutationType": 35859 return ec.fieldContext___Schema_mutationType(ctx, field) 35860 case "subscriptionType": 35861 return ec.fieldContext___Schema_subscriptionType(ctx, field) 35862 case "directives": 35863 return ec.fieldContext___Schema_directives(ctx, field) 35864 } 35865 return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) 35866 }, 35867 } 35868 return fc, nil 35869 } 35870 35871 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 35872 fc, err := ec.fieldContext___Directive_name(ctx, field) 35873 if err != nil { 35874 return graphql.Null 35875 } 35876 ctx = graphql.WithFieldContext(ctx, fc) 35877 defer func() { 35878 if r := recover(); r != nil { 35879 ec.Error(ctx, ec.Recover(ctx, r)) 35880 ret = graphql.Null 35881 } 35882 }() 35883 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35884 ctx = rctx // use context from middleware stack in children 35885 return obj.Name, nil 35886 }) 35887 if err != nil { 35888 ec.Error(ctx, err) 35889 return graphql.Null 35890 } 35891 if resTmp == nil { 35892 if !graphql.HasFieldError(ctx, fc) { 35893 ec.Errorf(ctx, "must not be null") 35894 } 35895 return graphql.Null 35896 } 35897 res := resTmp.(string) 35898 fc.Result = res 35899 return ec.marshalNString2string(ctx, field.Selections, res) 35900 } 35901 35902 func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35903 fc = &graphql.FieldContext{ 35904 Object: "__Directive", 35905 Field: field, 35906 IsMethod: false, 35907 IsResolver: false, 35908 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35909 return nil, errors.New("field of type String does not have child fields") 35910 }, 35911 } 35912 return fc, nil 35913 } 35914 35915 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 35916 fc, err := ec.fieldContext___Directive_description(ctx, field) 35917 if err != nil { 35918 return graphql.Null 35919 } 35920 ctx = graphql.WithFieldContext(ctx, fc) 35921 defer func() { 35922 if r := recover(); r != nil { 35923 ec.Error(ctx, ec.Recover(ctx, r)) 35924 ret = graphql.Null 35925 } 35926 }() 35927 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35928 ctx = rctx // use context from middleware stack in children 35929 return obj.Description(), nil 35930 }) 35931 if err != nil { 35932 ec.Error(ctx, err) 35933 return graphql.Null 35934 } 35935 if resTmp == nil { 35936 return graphql.Null 35937 } 35938 res := resTmp.(*string) 35939 fc.Result = res 35940 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 35941 } 35942 35943 func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35944 fc = &graphql.FieldContext{ 35945 Object: "__Directive", 35946 Field: field, 35947 IsMethod: true, 35948 IsResolver: false, 35949 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35950 return nil, errors.New("field of type String does not have child fields") 35951 }, 35952 } 35953 return fc, nil 35954 } 35955 35956 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 35957 fc, err := ec.fieldContext___Directive_locations(ctx, field) 35958 if err != nil { 35959 return graphql.Null 35960 } 35961 ctx = graphql.WithFieldContext(ctx, fc) 35962 defer func() { 35963 if r := recover(); r != nil { 35964 ec.Error(ctx, ec.Recover(ctx, r)) 35965 ret = graphql.Null 35966 } 35967 }() 35968 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 35969 ctx = rctx // use context from middleware stack in children 35970 return obj.Locations, nil 35971 }) 35972 if err != nil { 35973 ec.Error(ctx, err) 35974 return graphql.Null 35975 } 35976 if resTmp == nil { 35977 if !graphql.HasFieldError(ctx, fc) { 35978 ec.Errorf(ctx, "must not be null") 35979 } 35980 return graphql.Null 35981 } 35982 res := resTmp.([]string) 35983 fc.Result = res 35984 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 35985 } 35986 35987 func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 35988 fc = &graphql.FieldContext{ 35989 Object: "__Directive", 35990 Field: field, 35991 IsMethod: false, 35992 IsResolver: false, 35993 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 35994 return nil, errors.New("field of type __DirectiveLocation does not have child fields") 35995 }, 35996 } 35997 return fc, nil 35998 } 35999 36000 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 36001 fc, err := ec.fieldContext___Directive_args(ctx, field) 36002 if err != nil { 36003 return graphql.Null 36004 } 36005 ctx = graphql.WithFieldContext(ctx, fc) 36006 defer func() { 36007 if r := recover(); r != nil { 36008 ec.Error(ctx, ec.Recover(ctx, r)) 36009 ret = graphql.Null 36010 } 36011 }() 36012 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36013 ctx = rctx // use context from middleware stack in children 36014 return obj.Args, nil 36015 }) 36016 if err != nil { 36017 ec.Error(ctx, err) 36018 return graphql.Null 36019 } 36020 if resTmp == nil { 36021 if !graphql.HasFieldError(ctx, fc) { 36022 ec.Errorf(ctx, "must not be null") 36023 } 36024 return graphql.Null 36025 } 36026 res := resTmp.([]introspection.InputValue) 36027 fc.Result = res 36028 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 36029 } 36030 36031 func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36032 fc = &graphql.FieldContext{ 36033 Object: "__Directive", 36034 Field: field, 36035 IsMethod: false, 36036 IsResolver: false, 36037 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36038 switch field.Name { 36039 case "name": 36040 return ec.fieldContext___InputValue_name(ctx, field) 36041 case "description": 36042 return ec.fieldContext___InputValue_description(ctx, field) 36043 case "type": 36044 return ec.fieldContext___InputValue_type(ctx, field) 36045 case "defaultValue": 36046 return ec.fieldContext___InputValue_defaultValue(ctx, field) 36047 } 36048 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 36049 }, 36050 } 36051 return fc, nil 36052 } 36053 36054 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 36055 fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) 36056 if err != nil { 36057 return graphql.Null 36058 } 36059 ctx = graphql.WithFieldContext(ctx, fc) 36060 defer func() { 36061 if r := recover(); r != nil { 36062 ec.Error(ctx, ec.Recover(ctx, r)) 36063 ret = graphql.Null 36064 } 36065 }() 36066 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36067 ctx = rctx // use context from middleware stack in children 36068 return obj.IsRepeatable, nil 36069 }) 36070 if err != nil { 36071 ec.Error(ctx, err) 36072 return graphql.Null 36073 } 36074 if resTmp == nil { 36075 if !graphql.HasFieldError(ctx, fc) { 36076 ec.Errorf(ctx, "must not be null") 36077 } 36078 return graphql.Null 36079 } 36080 res := resTmp.(bool) 36081 fc.Result = res 36082 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 36083 } 36084 36085 func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36086 fc = &graphql.FieldContext{ 36087 Object: "__Directive", 36088 Field: field, 36089 IsMethod: false, 36090 IsResolver: false, 36091 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36092 return nil, errors.New("field of type Boolean does not have child fields") 36093 }, 36094 } 36095 return fc, nil 36096 } 36097 36098 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 36099 fc, err := ec.fieldContext___EnumValue_name(ctx, field) 36100 if err != nil { 36101 return graphql.Null 36102 } 36103 ctx = graphql.WithFieldContext(ctx, fc) 36104 defer func() { 36105 if r := recover(); r != nil { 36106 ec.Error(ctx, ec.Recover(ctx, r)) 36107 ret = graphql.Null 36108 } 36109 }() 36110 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36111 ctx = rctx // use context from middleware stack in children 36112 return obj.Name, nil 36113 }) 36114 if err != nil { 36115 ec.Error(ctx, err) 36116 return graphql.Null 36117 } 36118 if resTmp == nil { 36119 if !graphql.HasFieldError(ctx, fc) { 36120 ec.Errorf(ctx, "must not be null") 36121 } 36122 return graphql.Null 36123 } 36124 res := resTmp.(string) 36125 fc.Result = res 36126 return ec.marshalNString2string(ctx, field.Selections, res) 36127 } 36128 36129 func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36130 fc = &graphql.FieldContext{ 36131 Object: "__EnumValue", 36132 Field: field, 36133 IsMethod: false, 36134 IsResolver: false, 36135 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36136 return nil, errors.New("field of type String does not have child fields") 36137 }, 36138 } 36139 return fc, nil 36140 } 36141 36142 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 36143 fc, err := ec.fieldContext___EnumValue_description(ctx, field) 36144 if err != nil { 36145 return graphql.Null 36146 } 36147 ctx = graphql.WithFieldContext(ctx, fc) 36148 defer func() { 36149 if r := recover(); r != nil { 36150 ec.Error(ctx, ec.Recover(ctx, r)) 36151 ret = graphql.Null 36152 } 36153 }() 36154 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36155 ctx = rctx // use context from middleware stack in children 36156 return obj.Description(), nil 36157 }) 36158 if err != nil { 36159 ec.Error(ctx, err) 36160 return graphql.Null 36161 } 36162 if resTmp == nil { 36163 return graphql.Null 36164 } 36165 res := resTmp.(*string) 36166 fc.Result = res 36167 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36168 } 36169 36170 func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36171 fc = &graphql.FieldContext{ 36172 Object: "__EnumValue", 36173 Field: field, 36174 IsMethod: true, 36175 IsResolver: false, 36176 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36177 return nil, errors.New("field of type String does not have child fields") 36178 }, 36179 } 36180 return fc, nil 36181 } 36182 36183 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 36184 fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) 36185 if err != nil { 36186 return graphql.Null 36187 } 36188 ctx = graphql.WithFieldContext(ctx, fc) 36189 defer func() { 36190 if r := recover(); r != nil { 36191 ec.Error(ctx, ec.Recover(ctx, r)) 36192 ret = graphql.Null 36193 } 36194 }() 36195 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36196 ctx = rctx // use context from middleware stack in children 36197 return obj.IsDeprecated(), nil 36198 }) 36199 if err != nil { 36200 ec.Error(ctx, err) 36201 return graphql.Null 36202 } 36203 if resTmp == nil { 36204 if !graphql.HasFieldError(ctx, fc) { 36205 ec.Errorf(ctx, "must not be null") 36206 } 36207 return graphql.Null 36208 } 36209 res := resTmp.(bool) 36210 fc.Result = res 36211 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 36212 } 36213 36214 func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36215 fc = &graphql.FieldContext{ 36216 Object: "__EnumValue", 36217 Field: field, 36218 IsMethod: true, 36219 IsResolver: false, 36220 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36221 return nil, errors.New("field of type Boolean does not have child fields") 36222 }, 36223 } 36224 return fc, nil 36225 } 36226 36227 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 36228 fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) 36229 if err != nil { 36230 return graphql.Null 36231 } 36232 ctx = graphql.WithFieldContext(ctx, fc) 36233 defer func() { 36234 if r := recover(); r != nil { 36235 ec.Error(ctx, ec.Recover(ctx, r)) 36236 ret = graphql.Null 36237 } 36238 }() 36239 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36240 ctx = rctx // use context from middleware stack in children 36241 return obj.DeprecationReason(), nil 36242 }) 36243 if err != nil { 36244 ec.Error(ctx, err) 36245 return graphql.Null 36246 } 36247 if resTmp == nil { 36248 return graphql.Null 36249 } 36250 res := resTmp.(*string) 36251 fc.Result = res 36252 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36253 } 36254 36255 func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36256 fc = &graphql.FieldContext{ 36257 Object: "__EnumValue", 36258 Field: field, 36259 IsMethod: true, 36260 IsResolver: false, 36261 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36262 return nil, errors.New("field of type String does not have child fields") 36263 }, 36264 } 36265 return fc, nil 36266 } 36267 36268 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36269 fc, err := ec.fieldContext___Field_name(ctx, field) 36270 if err != nil { 36271 return graphql.Null 36272 } 36273 ctx = graphql.WithFieldContext(ctx, fc) 36274 defer func() { 36275 if r := recover(); r != nil { 36276 ec.Error(ctx, ec.Recover(ctx, r)) 36277 ret = graphql.Null 36278 } 36279 }() 36280 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36281 ctx = rctx // use context from middleware stack in children 36282 return obj.Name, nil 36283 }) 36284 if err != nil { 36285 ec.Error(ctx, err) 36286 return graphql.Null 36287 } 36288 if resTmp == nil { 36289 if !graphql.HasFieldError(ctx, fc) { 36290 ec.Errorf(ctx, "must not be null") 36291 } 36292 return graphql.Null 36293 } 36294 res := resTmp.(string) 36295 fc.Result = res 36296 return ec.marshalNString2string(ctx, field.Selections, res) 36297 } 36298 36299 func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36300 fc = &graphql.FieldContext{ 36301 Object: "__Field", 36302 Field: field, 36303 IsMethod: false, 36304 IsResolver: false, 36305 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36306 return nil, errors.New("field of type String does not have child fields") 36307 }, 36308 } 36309 return fc, nil 36310 } 36311 36312 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36313 fc, err := ec.fieldContext___Field_description(ctx, field) 36314 if err != nil { 36315 return graphql.Null 36316 } 36317 ctx = graphql.WithFieldContext(ctx, fc) 36318 defer func() { 36319 if r := recover(); r != nil { 36320 ec.Error(ctx, ec.Recover(ctx, r)) 36321 ret = graphql.Null 36322 } 36323 }() 36324 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36325 ctx = rctx // use context from middleware stack in children 36326 return obj.Description(), nil 36327 }) 36328 if err != nil { 36329 ec.Error(ctx, err) 36330 return graphql.Null 36331 } 36332 if resTmp == nil { 36333 return graphql.Null 36334 } 36335 res := resTmp.(*string) 36336 fc.Result = res 36337 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36338 } 36339 36340 func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36341 fc = &graphql.FieldContext{ 36342 Object: "__Field", 36343 Field: field, 36344 IsMethod: true, 36345 IsResolver: false, 36346 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36347 return nil, errors.New("field of type String does not have child fields") 36348 }, 36349 } 36350 return fc, nil 36351 } 36352 36353 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36354 fc, err := ec.fieldContext___Field_args(ctx, field) 36355 if err != nil { 36356 return graphql.Null 36357 } 36358 ctx = graphql.WithFieldContext(ctx, fc) 36359 defer func() { 36360 if r := recover(); r != nil { 36361 ec.Error(ctx, ec.Recover(ctx, r)) 36362 ret = graphql.Null 36363 } 36364 }() 36365 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36366 ctx = rctx // use context from middleware stack in children 36367 return obj.Args, nil 36368 }) 36369 if err != nil { 36370 ec.Error(ctx, err) 36371 return graphql.Null 36372 } 36373 if resTmp == nil { 36374 if !graphql.HasFieldError(ctx, fc) { 36375 ec.Errorf(ctx, "must not be null") 36376 } 36377 return graphql.Null 36378 } 36379 res := resTmp.([]introspection.InputValue) 36380 fc.Result = res 36381 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 36382 } 36383 36384 func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36385 fc = &graphql.FieldContext{ 36386 Object: "__Field", 36387 Field: field, 36388 IsMethod: false, 36389 IsResolver: false, 36390 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36391 switch field.Name { 36392 case "name": 36393 return ec.fieldContext___InputValue_name(ctx, field) 36394 case "description": 36395 return ec.fieldContext___InputValue_description(ctx, field) 36396 case "type": 36397 return ec.fieldContext___InputValue_type(ctx, field) 36398 case "defaultValue": 36399 return ec.fieldContext___InputValue_defaultValue(ctx, field) 36400 } 36401 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 36402 }, 36403 } 36404 return fc, nil 36405 } 36406 36407 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36408 fc, err := ec.fieldContext___Field_type(ctx, field) 36409 if err != nil { 36410 return graphql.Null 36411 } 36412 ctx = graphql.WithFieldContext(ctx, fc) 36413 defer func() { 36414 if r := recover(); r != nil { 36415 ec.Error(ctx, ec.Recover(ctx, r)) 36416 ret = graphql.Null 36417 } 36418 }() 36419 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36420 ctx = rctx // use context from middleware stack in children 36421 return obj.Type, nil 36422 }) 36423 if err != nil { 36424 ec.Error(ctx, err) 36425 return graphql.Null 36426 } 36427 if resTmp == nil { 36428 if !graphql.HasFieldError(ctx, fc) { 36429 ec.Errorf(ctx, "must not be null") 36430 } 36431 return graphql.Null 36432 } 36433 res := resTmp.(*introspection.Type) 36434 fc.Result = res 36435 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 36436 } 36437 36438 func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36439 fc = &graphql.FieldContext{ 36440 Object: "__Field", 36441 Field: field, 36442 IsMethod: false, 36443 IsResolver: false, 36444 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36445 switch field.Name { 36446 case "kind": 36447 return ec.fieldContext___Type_kind(ctx, field) 36448 case "name": 36449 return ec.fieldContext___Type_name(ctx, field) 36450 case "description": 36451 return ec.fieldContext___Type_description(ctx, field) 36452 case "fields": 36453 return ec.fieldContext___Type_fields(ctx, field) 36454 case "interfaces": 36455 return ec.fieldContext___Type_interfaces(ctx, field) 36456 case "possibleTypes": 36457 return ec.fieldContext___Type_possibleTypes(ctx, field) 36458 case "enumValues": 36459 return ec.fieldContext___Type_enumValues(ctx, field) 36460 case "inputFields": 36461 return ec.fieldContext___Type_inputFields(ctx, field) 36462 case "ofType": 36463 return ec.fieldContext___Type_ofType(ctx, field) 36464 case "specifiedByURL": 36465 return ec.fieldContext___Type_specifiedByURL(ctx, field) 36466 } 36467 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 36468 }, 36469 } 36470 return fc, nil 36471 } 36472 36473 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36474 fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) 36475 if err != nil { 36476 return graphql.Null 36477 } 36478 ctx = graphql.WithFieldContext(ctx, fc) 36479 defer func() { 36480 if r := recover(); r != nil { 36481 ec.Error(ctx, ec.Recover(ctx, r)) 36482 ret = graphql.Null 36483 } 36484 }() 36485 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36486 ctx = rctx // use context from middleware stack in children 36487 return obj.IsDeprecated(), nil 36488 }) 36489 if err != nil { 36490 ec.Error(ctx, err) 36491 return graphql.Null 36492 } 36493 if resTmp == nil { 36494 if !graphql.HasFieldError(ctx, fc) { 36495 ec.Errorf(ctx, "must not be null") 36496 } 36497 return graphql.Null 36498 } 36499 res := resTmp.(bool) 36500 fc.Result = res 36501 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 36502 } 36503 36504 func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36505 fc = &graphql.FieldContext{ 36506 Object: "__Field", 36507 Field: field, 36508 IsMethod: true, 36509 IsResolver: false, 36510 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36511 return nil, errors.New("field of type Boolean does not have child fields") 36512 }, 36513 } 36514 return fc, nil 36515 } 36516 36517 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 36518 fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) 36519 if err != nil { 36520 return graphql.Null 36521 } 36522 ctx = graphql.WithFieldContext(ctx, fc) 36523 defer func() { 36524 if r := recover(); r != nil { 36525 ec.Error(ctx, ec.Recover(ctx, r)) 36526 ret = graphql.Null 36527 } 36528 }() 36529 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36530 ctx = rctx // use context from middleware stack in children 36531 return obj.DeprecationReason(), nil 36532 }) 36533 if err != nil { 36534 ec.Error(ctx, err) 36535 return graphql.Null 36536 } 36537 if resTmp == nil { 36538 return graphql.Null 36539 } 36540 res := resTmp.(*string) 36541 fc.Result = res 36542 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36543 } 36544 36545 func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36546 fc = &graphql.FieldContext{ 36547 Object: "__Field", 36548 Field: field, 36549 IsMethod: true, 36550 IsResolver: false, 36551 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36552 return nil, errors.New("field of type String does not have child fields") 36553 }, 36554 } 36555 return fc, nil 36556 } 36557 36558 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 36559 fc, err := ec.fieldContext___InputValue_name(ctx, field) 36560 if err != nil { 36561 return graphql.Null 36562 } 36563 ctx = graphql.WithFieldContext(ctx, fc) 36564 defer func() { 36565 if r := recover(); r != nil { 36566 ec.Error(ctx, ec.Recover(ctx, r)) 36567 ret = graphql.Null 36568 } 36569 }() 36570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36571 ctx = rctx // use context from middleware stack in children 36572 return obj.Name, nil 36573 }) 36574 if err != nil { 36575 ec.Error(ctx, err) 36576 return graphql.Null 36577 } 36578 if resTmp == nil { 36579 if !graphql.HasFieldError(ctx, fc) { 36580 ec.Errorf(ctx, "must not be null") 36581 } 36582 return graphql.Null 36583 } 36584 res := resTmp.(string) 36585 fc.Result = res 36586 return ec.marshalNString2string(ctx, field.Selections, res) 36587 } 36588 36589 func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36590 fc = &graphql.FieldContext{ 36591 Object: "__InputValue", 36592 Field: field, 36593 IsMethod: false, 36594 IsResolver: false, 36595 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36596 return nil, errors.New("field of type String does not have child fields") 36597 }, 36598 } 36599 return fc, nil 36600 } 36601 36602 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 36603 fc, err := ec.fieldContext___InputValue_description(ctx, field) 36604 if err != nil { 36605 return graphql.Null 36606 } 36607 ctx = graphql.WithFieldContext(ctx, fc) 36608 defer func() { 36609 if r := recover(); r != nil { 36610 ec.Error(ctx, ec.Recover(ctx, r)) 36611 ret = graphql.Null 36612 } 36613 }() 36614 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36615 ctx = rctx // use context from middleware stack in children 36616 return obj.Description(), nil 36617 }) 36618 if err != nil { 36619 ec.Error(ctx, err) 36620 return graphql.Null 36621 } 36622 if resTmp == nil { 36623 return graphql.Null 36624 } 36625 res := resTmp.(*string) 36626 fc.Result = res 36627 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36628 } 36629 36630 func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36631 fc = &graphql.FieldContext{ 36632 Object: "__InputValue", 36633 Field: field, 36634 IsMethod: true, 36635 IsResolver: false, 36636 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36637 return nil, errors.New("field of type String does not have child fields") 36638 }, 36639 } 36640 return fc, nil 36641 } 36642 36643 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 36644 fc, err := ec.fieldContext___InputValue_type(ctx, field) 36645 if err != nil { 36646 return graphql.Null 36647 } 36648 ctx = graphql.WithFieldContext(ctx, fc) 36649 defer func() { 36650 if r := recover(); r != nil { 36651 ec.Error(ctx, ec.Recover(ctx, r)) 36652 ret = graphql.Null 36653 } 36654 }() 36655 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36656 ctx = rctx // use context from middleware stack in children 36657 return obj.Type, nil 36658 }) 36659 if err != nil { 36660 ec.Error(ctx, err) 36661 return graphql.Null 36662 } 36663 if resTmp == nil { 36664 if !graphql.HasFieldError(ctx, fc) { 36665 ec.Errorf(ctx, "must not be null") 36666 } 36667 return graphql.Null 36668 } 36669 res := resTmp.(*introspection.Type) 36670 fc.Result = res 36671 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 36672 } 36673 36674 func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36675 fc = &graphql.FieldContext{ 36676 Object: "__InputValue", 36677 Field: field, 36678 IsMethod: false, 36679 IsResolver: false, 36680 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36681 switch field.Name { 36682 case "kind": 36683 return ec.fieldContext___Type_kind(ctx, field) 36684 case "name": 36685 return ec.fieldContext___Type_name(ctx, field) 36686 case "description": 36687 return ec.fieldContext___Type_description(ctx, field) 36688 case "fields": 36689 return ec.fieldContext___Type_fields(ctx, field) 36690 case "interfaces": 36691 return ec.fieldContext___Type_interfaces(ctx, field) 36692 case "possibleTypes": 36693 return ec.fieldContext___Type_possibleTypes(ctx, field) 36694 case "enumValues": 36695 return ec.fieldContext___Type_enumValues(ctx, field) 36696 case "inputFields": 36697 return ec.fieldContext___Type_inputFields(ctx, field) 36698 case "ofType": 36699 return ec.fieldContext___Type_ofType(ctx, field) 36700 case "specifiedByURL": 36701 return ec.fieldContext___Type_specifiedByURL(ctx, field) 36702 } 36703 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 36704 }, 36705 } 36706 return fc, nil 36707 } 36708 36709 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 36710 fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) 36711 if err != nil { 36712 return graphql.Null 36713 } 36714 ctx = graphql.WithFieldContext(ctx, fc) 36715 defer func() { 36716 if r := recover(); r != nil { 36717 ec.Error(ctx, ec.Recover(ctx, r)) 36718 ret = graphql.Null 36719 } 36720 }() 36721 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36722 ctx = rctx // use context from middleware stack in children 36723 return obj.DefaultValue, nil 36724 }) 36725 if err != nil { 36726 ec.Error(ctx, err) 36727 return graphql.Null 36728 } 36729 if resTmp == nil { 36730 return graphql.Null 36731 } 36732 res := resTmp.(*string) 36733 fc.Result = res 36734 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36735 } 36736 36737 func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36738 fc = &graphql.FieldContext{ 36739 Object: "__InputValue", 36740 Field: field, 36741 IsMethod: false, 36742 IsResolver: false, 36743 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36744 return nil, errors.New("field of type String does not have child fields") 36745 }, 36746 } 36747 return fc, nil 36748 } 36749 36750 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 36751 fc, err := ec.fieldContext___Schema_description(ctx, field) 36752 if err != nil { 36753 return graphql.Null 36754 } 36755 ctx = graphql.WithFieldContext(ctx, fc) 36756 defer func() { 36757 if r := recover(); r != nil { 36758 ec.Error(ctx, ec.Recover(ctx, r)) 36759 ret = graphql.Null 36760 } 36761 }() 36762 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36763 ctx = rctx // use context from middleware stack in children 36764 return obj.Description(), nil 36765 }) 36766 if err != nil { 36767 ec.Error(ctx, err) 36768 return graphql.Null 36769 } 36770 if resTmp == nil { 36771 return graphql.Null 36772 } 36773 res := resTmp.(*string) 36774 fc.Result = res 36775 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 36776 } 36777 36778 func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36779 fc = &graphql.FieldContext{ 36780 Object: "__Schema", 36781 Field: field, 36782 IsMethod: true, 36783 IsResolver: false, 36784 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36785 return nil, errors.New("field of type String does not have child fields") 36786 }, 36787 } 36788 return fc, nil 36789 } 36790 36791 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 36792 fc, err := ec.fieldContext___Schema_types(ctx, field) 36793 if err != nil { 36794 return graphql.Null 36795 } 36796 ctx = graphql.WithFieldContext(ctx, fc) 36797 defer func() { 36798 if r := recover(); r != nil { 36799 ec.Error(ctx, ec.Recover(ctx, r)) 36800 ret = graphql.Null 36801 } 36802 }() 36803 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36804 ctx = rctx // use context from middleware stack in children 36805 return obj.Types(), nil 36806 }) 36807 if err != nil { 36808 ec.Error(ctx, err) 36809 return graphql.Null 36810 } 36811 if resTmp == nil { 36812 if !graphql.HasFieldError(ctx, fc) { 36813 ec.Errorf(ctx, "must not be null") 36814 } 36815 return graphql.Null 36816 } 36817 res := resTmp.([]introspection.Type) 36818 fc.Result = res 36819 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 36820 } 36821 36822 func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36823 fc = &graphql.FieldContext{ 36824 Object: "__Schema", 36825 Field: field, 36826 IsMethod: true, 36827 IsResolver: false, 36828 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36829 switch field.Name { 36830 case "kind": 36831 return ec.fieldContext___Type_kind(ctx, field) 36832 case "name": 36833 return ec.fieldContext___Type_name(ctx, field) 36834 case "description": 36835 return ec.fieldContext___Type_description(ctx, field) 36836 case "fields": 36837 return ec.fieldContext___Type_fields(ctx, field) 36838 case "interfaces": 36839 return ec.fieldContext___Type_interfaces(ctx, field) 36840 case "possibleTypes": 36841 return ec.fieldContext___Type_possibleTypes(ctx, field) 36842 case "enumValues": 36843 return ec.fieldContext___Type_enumValues(ctx, field) 36844 case "inputFields": 36845 return ec.fieldContext___Type_inputFields(ctx, field) 36846 case "ofType": 36847 return ec.fieldContext___Type_ofType(ctx, field) 36848 case "specifiedByURL": 36849 return ec.fieldContext___Type_specifiedByURL(ctx, field) 36850 } 36851 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 36852 }, 36853 } 36854 return fc, nil 36855 } 36856 36857 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 36858 fc, err := ec.fieldContext___Schema_queryType(ctx, field) 36859 if err != nil { 36860 return graphql.Null 36861 } 36862 ctx = graphql.WithFieldContext(ctx, fc) 36863 defer func() { 36864 if r := recover(); r != nil { 36865 ec.Error(ctx, ec.Recover(ctx, r)) 36866 ret = graphql.Null 36867 } 36868 }() 36869 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36870 ctx = rctx // use context from middleware stack in children 36871 return obj.QueryType(), nil 36872 }) 36873 if err != nil { 36874 ec.Error(ctx, err) 36875 return graphql.Null 36876 } 36877 if resTmp == nil { 36878 if !graphql.HasFieldError(ctx, fc) { 36879 ec.Errorf(ctx, "must not be null") 36880 } 36881 return graphql.Null 36882 } 36883 res := resTmp.(*introspection.Type) 36884 fc.Result = res 36885 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 36886 } 36887 36888 func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36889 fc = &graphql.FieldContext{ 36890 Object: "__Schema", 36891 Field: field, 36892 IsMethod: true, 36893 IsResolver: false, 36894 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36895 switch field.Name { 36896 case "kind": 36897 return ec.fieldContext___Type_kind(ctx, field) 36898 case "name": 36899 return ec.fieldContext___Type_name(ctx, field) 36900 case "description": 36901 return ec.fieldContext___Type_description(ctx, field) 36902 case "fields": 36903 return ec.fieldContext___Type_fields(ctx, field) 36904 case "interfaces": 36905 return ec.fieldContext___Type_interfaces(ctx, field) 36906 case "possibleTypes": 36907 return ec.fieldContext___Type_possibleTypes(ctx, field) 36908 case "enumValues": 36909 return ec.fieldContext___Type_enumValues(ctx, field) 36910 case "inputFields": 36911 return ec.fieldContext___Type_inputFields(ctx, field) 36912 case "ofType": 36913 return ec.fieldContext___Type_ofType(ctx, field) 36914 case "specifiedByURL": 36915 return ec.fieldContext___Type_specifiedByURL(ctx, field) 36916 } 36917 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 36918 }, 36919 } 36920 return fc, nil 36921 } 36922 36923 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 36924 fc, err := ec.fieldContext___Schema_mutationType(ctx, field) 36925 if err != nil { 36926 return graphql.Null 36927 } 36928 ctx = graphql.WithFieldContext(ctx, fc) 36929 defer func() { 36930 if r := recover(); r != nil { 36931 ec.Error(ctx, ec.Recover(ctx, r)) 36932 ret = graphql.Null 36933 } 36934 }() 36935 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36936 ctx = rctx // use context from middleware stack in children 36937 return obj.MutationType(), nil 36938 }) 36939 if err != nil { 36940 ec.Error(ctx, err) 36941 return graphql.Null 36942 } 36943 if resTmp == nil { 36944 return graphql.Null 36945 } 36946 res := resTmp.(*introspection.Type) 36947 fc.Result = res 36948 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 36949 } 36950 36951 func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 36952 fc = &graphql.FieldContext{ 36953 Object: "__Schema", 36954 Field: field, 36955 IsMethod: true, 36956 IsResolver: false, 36957 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 36958 switch field.Name { 36959 case "kind": 36960 return ec.fieldContext___Type_kind(ctx, field) 36961 case "name": 36962 return ec.fieldContext___Type_name(ctx, field) 36963 case "description": 36964 return ec.fieldContext___Type_description(ctx, field) 36965 case "fields": 36966 return ec.fieldContext___Type_fields(ctx, field) 36967 case "interfaces": 36968 return ec.fieldContext___Type_interfaces(ctx, field) 36969 case "possibleTypes": 36970 return ec.fieldContext___Type_possibleTypes(ctx, field) 36971 case "enumValues": 36972 return ec.fieldContext___Type_enumValues(ctx, field) 36973 case "inputFields": 36974 return ec.fieldContext___Type_inputFields(ctx, field) 36975 case "ofType": 36976 return ec.fieldContext___Type_ofType(ctx, field) 36977 case "specifiedByURL": 36978 return ec.fieldContext___Type_specifiedByURL(ctx, field) 36979 } 36980 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 36981 }, 36982 } 36983 return fc, nil 36984 } 36985 36986 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 36987 fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) 36988 if err != nil { 36989 return graphql.Null 36990 } 36991 ctx = graphql.WithFieldContext(ctx, fc) 36992 defer func() { 36993 if r := recover(); r != nil { 36994 ec.Error(ctx, ec.Recover(ctx, r)) 36995 ret = graphql.Null 36996 } 36997 }() 36998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 36999 ctx = rctx // use context from middleware stack in children 37000 return obj.SubscriptionType(), nil 37001 }) 37002 if err != nil { 37003 ec.Error(ctx, err) 37004 return graphql.Null 37005 } 37006 if resTmp == nil { 37007 return graphql.Null 37008 } 37009 res := resTmp.(*introspection.Type) 37010 fc.Result = res 37011 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 37012 } 37013 37014 func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37015 fc = &graphql.FieldContext{ 37016 Object: "__Schema", 37017 Field: field, 37018 IsMethod: true, 37019 IsResolver: false, 37020 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37021 switch field.Name { 37022 case "kind": 37023 return ec.fieldContext___Type_kind(ctx, field) 37024 case "name": 37025 return ec.fieldContext___Type_name(ctx, field) 37026 case "description": 37027 return ec.fieldContext___Type_description(ctx, field) 37028 case "fields": 37029 return ec.fieldContext___Type_fields(ctx, field) 37030 case "interfaces": 37031 return ec.fieldContext___Type_interfaces(ctx, field) 37032 case "possibleTypes": 37033 return ec.fieldContext___Type_possibleTypes(ctx, field) 37034 case "enumValues": 37035 return ec.fieldContext___Type_enumValues(ctx, field) 37036 case "inputFields": 37037 return ec.fieldContext___Type_inputFields(ctx, field) 37038 case "ofType": 37039 return ec.fieldContext___Type_ofType(ctx, field) 37040 case "specifiedByURL": 37041 return ec.fieldContext___Type_specifiedByURL(ctx, field) 37042 } 37043 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 37044 }, 37045 } 37046 return fc, nil 37047 } 37048 37049 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 37050 fc, err := ec.fieldContext___Schema_directives(ctx, field) 37051 if err != nil { 37052 return graphql.Null 37053 } 37054 ctx = graphql.WithFieldContext(ctx, fc) 37055 defer func() { 37056 if r := recover(); r != nil { 37057 ec.Error(ctx, ec.Recover(ctx, r)) 37058 ret = graphql.Null 37059 } 37060 }() 37061 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37062 ctx = rctx // use context from middleware stack in children 37063 return obj.Directives(), nil 37064 }) 37065 if err != nil { 37066 ec.Error(ctx, err) 37067 return graphql.Null 37068 } 37069 if resTmp == nil { 37070 if !graphql.HasFieldError(ctx, fc) { 37071 ec.Errorf(ctx, "must not be null") 37072 } 37073 return graphql.Null 37074 } 37075 res := resTmp.([]introspection.Directive) 37076 fc.Result = res 37077 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 37078 } 37079 37080 func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37081 fc = &graphql.FieldContext{ 37082 Object: "__Schema", 37083 Field: field, 37084 IsMethod: true, 37085 IsResolver: false, 37086 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37087 switch field.Name { 37088 case "name": 37089 return ec.fieldContext___Directive_name(ctx, field) 37090 case "description": 37091 return ec.fieldContext___Directive_description(ctx, field) 37092 case "locations": 37093 return ec.fieldContext___Directive_locations(ctx, field) 37094 case "args": 37095 return ec.fieldContext___Directive_args(ctx, field) 37096 case "isRepeatable": 37097 return ec.fieldContext___Directive_isRepeatable(ctx, field) 37098 } 37099 return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) 37100 }, 37101 } 37102 return fc, nil 37103 } 37104 37105 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37106 fc, err := ec.fieldContext___Type_kind(ctx, field) 37107 if err != nil { 37108 return graphql.Null 37109 } 37110 ctx = graphql.WithFieldContext(ctx, fc) 37111 defer func() { 37112 if r := recover(); r != nil { 37113 ec.Error(ctx, ec.Recover(ctx, r)) 37114 ret = graphql.Null 37115 } 37116 }() 37117 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37118 ctx = rctx // use context from middleware stack in children 37119 return obj.Kind(), nil 37120 }) 37121 if err != nil { 37122 ec.Error(ctx, err) 37123 return graphql.Null 37124 } 37125 if resTmp == nil { 37126 if !graphql.HasFieldError(ctx, fc) { 37127 ec.Errorf(ctx, "must not be null") 37128 } 37129 return graphql.Null 37130 } 37131 res := resTmp.(string) 37132 fc.Result = res 37133 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 37134 } 37135 37136 func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37137 fc = &graphql.FieldContext{ 37138 Object: "__Type", 37139 Field: field, 37140 IsMethod: true, 37141 IsResolver: false, 37142 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37143 return nil, errors.New("field of type __TypeKind does not have child fields") 37144 }, 37145 } 37146 return fc, nil 37147 } 37148 37149 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37150 fc, err := ec.fieldContext___Type_name(ctx, field) 37151 if err != nil { 37152 return graphql.Null 37153 } 37154 ctx = graphql.WithFieldContext(ctx, fc) 37155 defer func() { 37156 if r := recover(); r != nil { 37157 ec.Error(ctx, ec.Recover(ctx, r)) 37158 ret = graphql.Null 37159 } 37160 }() 37161 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37162 ctx = rctx // use context from middleware stack in children 37163 return obj.Name(), nil 37164 }) 37165 if err != nil { 37166 ec.Error(ctx, err) 37167 return graphql.Null 37168 } 37169 if resTmp == nil { 37170 return graphql.Null 37171 } 37172 res := resTmp.(*string) 37173 fc.Result = res 37174 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 37175 } 37176 37177 func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37178 fc = &graphql.FieldContext{ 37179 Object: "__Type", 37180 Field: field, 37181 IsMethod: true, 37182 IsResolver: false, 37183 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37184 return nil, errors.New("field of type String does not have child fields") 37185 }, 37186 } 37187 return fc, nil 37188 } 37189 37190 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37191 fc, err := ec.fieldContext___Type_description(ctx, field) 37192 if err != nil { 37193 return graphql.Null 37194 } 37195 ctx = graphql.WithFieldContext(ctx, fc) 37196 defer func() { 37197 if r := recover(); r != nil { 37198 ec.Error(ctx, ec.Recover(ctx, r)) 37199 ret = graphql.Null 37200 } 37201 }() 37202 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37203 ctx = rctx // use context from middleware stack in children 37204 return obj.Description(), nil 37205 }) 37206 if err != nil { 37207 ec.Error(ctx, err) 37208 return graphql.Null 37209 } 37210 if resTmp == nil { 37211 return graphql.Null 37212 } 37213 res := resTmp.(*string) 37214 fc.Result = res 37215 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 37216 } 37217 37218 func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37219 fc = &graphql.FieldContext{ 37220 Object: "__Type", 37221 Field: field, 37222 IsMethod: true, 37223 IsResolver: false, 37224 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37225 return nil, errors.New("field of type String does not have child fields") 37226 }, 37227 } 37228 return fc, nil 37229 } 37230 37231 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37232 fc, err := ec.fieldContext___Type_fields(ctx, field) 37233 if err != nil { 37234 return graphql.Null 37235 } 37236 ctx = graphql.WithFieldContext(ctx, fc) 37237 defer func() { 37238 if r := recover(); r != nil { 37239 ec.Error(ctx, ec.Recover(ctx, r)) 37240 ret = graphql.Null 37241 } 37242 }() 37243 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37244 ctx = rctx // use context from middleware stack in children 37245 return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil 37246 }) 37247 if err != nil { 37248 ec.Error(ctx, err) 37249 return graphql.Null 37250 } 37251 if resTmp == nil { 37252 return graphql.Null 37253 } 37254 res := resTmp.([]introspection.Field) 37255 fc.Result = res 37256 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 37257 } 37258 37259 func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37260 fc = &graphql.FieldContext{ 37261 Object: "__Type", 37262 Field: field, 37263 IsMethod: true, 37264 IsResolver: false, 37265 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37266 switch field.Name { 37267 case "name": 37268 return ec.fieldContext___Field_name(ctx, field) 37269 case "description": 37270 return ec.fieldContext___Field_description(ctx, field) 37271 case "args": 37272 return ec.fieldContext___Field_args(ctx, field) 37273 case "type": 37274 return ec.fieldContext___Field_type(ctx, field) 37275 case "isDeprecated": 37276 return ec.fieldContext___Field_isDeprecated(ctx, field) 37277 case "deprecationReason": 37278 return ec.fieldContext___Field_deprecationReason(ctx, field) 37279 } 37280 return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) 37281 }, 37282 } 37283 defer func() { 37284 if r := recover(); r != nil { 37285 err = ec.Recover(ctx, r) 37286 ec.Error(ctx, err) 37287 } 37288 }() 37289 ctx = graphql.WithFieldContext(ctx, fc) 37290 if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 37291 ec.Error(ctx, err) 37292 return fc, err 37293 } 37294 return fc, nil 37295 } 37296 37297 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37298 fc, err := ec.fieldContext___Type_interfaces(ctx, field) 37299 if err != nil { 37300 return graphql.Null 37301 } 37302 ctx = graphql.WithFieldContext(ctx, fc) 37303 defer func() { 37304 if r := recover(); r != nil { 37305 ec.Error(ctx, ec.Recover(ctx, r)) 37306 ret = graphql.Null 37307 } 37308 }() 37309 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37310 ctx = rctx // use context from middleware stack in children 37311 return obj.Interfaces(), nil 37312 }) 37313 if err != nil { 37314 ec.Error(ctx, err) 37315 return graphql.Null 37316 } 37317 if resTmp == nil { 37318 return graphql.Null 37319 } 37320 res := resTmp.([]introspection.Type) 37321 fc.Result = res 37322 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 37323 } 37324 37325 func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37326 fc = &graphql.FieldContext{ 37327 Object: "__Type", 37328 Field: field, 37329 IsMethod: true, 37330 IsResolver: false, 37331 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37332 switch field.Name { 37333 case "kind": 37334 return ec.fieldContext___Type_kind(ctx, field) 37335 case "name": 37336 return ec.fieldContext___Type_name(ctx, field) 37337 case "description": 37338 return ec.fieldContext___Type_description(ctx, field) 37339 case "fields": 37340 return ec.fieldContext___Type_fields(ctx, field) 37341 case "interfaces": 37342 return ec.fieldContext___Type_interfaces(ctx, field) 37343 case "possibleTypes": 37344 return ec.fieldContext___Type_possibleTypes(ctx, field) 37345 case "enumValues": 37346 return ec.fieldContext___Type_enumValues(ctx, field) 37347 case "inputFields": 37348 return ec.fieldContext___Type_inputFields(ctx, field) 37349 case "ofType": 37350 return ec.fieldContext___Type_ofType(ctx, field) 37351 case "specifiedByURL": 37352 return ec.fieldContext___Type_specifiedByURL(ctx, field) 37353 } 37354 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 37355 }, 37356 } 37357 return fc, nil 37358 } 37359 37360 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37361 fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) 37362 if err != nil { 37363 return graphql.Null 37364 } 37365 ctx = graphql.WithFieldContext(ctx, fc) 37366 defer func() { 37367 if r := recover(); r != nil { 37368 ec.Error(ctx, ec.Recover(ctx, r)) 37369 ret = graphql.Null 37370 } 37371 }() 37372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37373 ctx = rctx // use context from middleware stack in children 37374 return obj.PossibleTypes(), nil 37375 }) 37376 if err != nil { 37377 ec.Error(ctx, err) 37378 return graphql.Null 37379 } 37380 if resTmp == nil { 37381 return graphql.Null 37382 } 37383 res := resTmp.([]introspection.Type) 37384 fc.Result = res 37385 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 37386 } 37387 37388 func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37389 fc = &graphql.FieldContext{ 37390 Object: "__Type", 37391 Field: field, 37392 IsMethod: true, 37393 IsResolver: false, 37394 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37395 switch field.Name { 37396 case "kind": 37397 return ec.fieldContext___Type_kind(ctx, field) 37398 case "name": 37399 return ec.fieldContext___Type_name(ctx, field) 37400 case "description": 37401 return ec.fieldContext___Type_description(ctx, field) 37402 case "fields": 37403 return ec.fieldContext___Type_fields(ctx, field) 37404 case "interfaces": 37405 return ec.fieldContext___Type_interfaces(ctx, field) 37406 case "possibleTypes": 37407 return ec.fieldContext___Type_possibleTypes(ctx, field) 37408 case "enumValues": 37409 return ec.fieldContext___Type_enumValues(ctx, field) 37410 case "inputFields": 37411 return ec.fieldContext___Type_inputFields(ctx, field) 37412 case "ofType": 37413 return ec.fieldContext___Type_ofType(ctx, field) 37414 case "specifiedByURL": 37415 return ec.fieldContext___Type_specifiedByURL(ctx, field) 37416 } 37417 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 37418 }, 37419 } 37420 return fc, nil 37421 } 37422 37423 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37424 fc, err := ec.fieldContext___Type_enumValues(ctx, field) 37425 if err != nil { 37426 return graphql.Null 37427 } 37428 ctx = graphql.WithFieldContext(ctx, fc) 37429 defer func() { 37430 if r := recover(); r != nil { 37431 ec.Error(ctx, ec.Recover(ctx, r)) 37432 ret = graphql.Null 37433 } 37434 }() 37435 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37436 ctx = rctx // use context from middleware stack in children 37437 return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil 37438 }) 37439 if err != nil { 37440 ec.Error(ctx, err) 37441 return graphql.Null 37442 } 37443 if resTmp == nil { 37444 return graphql.Null 37445 } 37446 res := resTmp.([]introspection.EnumValue) 37447 fc.Result = res 37448 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 37449 } 37450 37451 func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37452 fc = &graphql.FieldContext{ 37453 Object: "__Type", 37454 Field: field, 37455 IsMethod: true, 37456 IsResolver: false, 37457 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37458 switch field.Name { 37459 case "name": 37460 return ec.fieldContext___EnumValue_name(ctx, field) 37461 case "description": 37462 return ec.fieldContext___EnumValue_description(ctx, field) 37463 case "isDeprecated": 37464 return ec.fieldContext___EnumValue_isDeprecated(ctx, field) 37465 case "deprecationReason": 37466 return ec.fieldContext___EnumValue_deprecationReason(ctx, field) 37467 } 37468 return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) 37469 }, 37470 } 37471 defer func() { 37472 if r := recover(); r != nil { 37473 err = ec.Recover(ctx, r) 37474 ec.Error(ctx, err) 37475 } 37476 }() 37477 ctx = graphql.WithFieldContext(ctx, fc) 37478 if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { 37479 ec.Error(ctx, err) 37480 return fc, err 37481 } 37482 return fc, nil 37483 } 37484 37485 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37486 fc, err := ec.fieldContext___Type_inputFields(ctx, field) 37487 if err != nil { 37488 return graphql.Null 37489 } 37490 ctx = graphql.WithFieldContext(ctx, fc) 37491 defer func() { 37492 if r := recover(); r != nil { 37493 ec.Error(ctx, ec.Recover(ctx, r)) 37494 ret = graphql.Null 37495 } 37496 }() 37497 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37498 ctx = rctx // use context from middleware stack in children 37499 return obj.InputFields(), nil 37500 }) 37501 if err != nil { 37502 ec.Error(ctx, err) 37503 return graphql.Null 37504 } 37505 if resTmp == nil { 37506 return graphql.Null 37507 } 37508 res := resTmp.([]introspection.InputValue) 37509 fc.Result = res 37510 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 37511 } 37512 37513 func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37514 fc = &graphql.FieldContext{ 37515 Object: "__Type", 37516 Field: field, 37517 IsMethod: true, 37518 IsResolver: false, 37519 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37520 switch field.Name { 37521 case "name": 37522 return ec.fieldContext___InputValue_name(ctx, field) 37523 case "description": 37524 return ec.fieldContext___InputValue_description(ctx, field) 37525 case "type": 37526 return ec.fieldContext___InputValue_type(ctx, field) 37527 case "defaultValue": 37528 return ec.fieldContext___InputValue_defaultValue(ctx, field) 37529 } 37530 return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) 37531 }, 37532 } 37533 return fc, nil 37534 } 37535 37536 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37537 fc, err := ec.fieldContext___Type_ofType(ctx, field) 37538 if err != nil { 37539 return graphql.Null 37540 } 37541 ctx = graphql.WithFieldContext(ctx, fc) 37542 defer func() { 37543 if r := recover(); r != nil { 37544 ec.Error(ctx, ec.Recover(ctx, r)) 37545 ret = graphql.Null 37546 } 37547 }() 37548 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37549 ctx = rctx // use context from middleware stack in children 37550 return obj.OfType(), nil 37551 }) 37552 if err != nil { 37553 ec.Error(ctx, err) 37554 return graphql.Null 37555 } 37556 if resTmp == nil { 37557 return graphql.Null 37558 } 37559 res := resTmp.(*introspection.Type) 37560 fc.Result = res 37561 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 37562 } 37563 37564 func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37565 fc = &graphql.FieldContext{ 37566 Object: "__Type", 37567 Field: field, 37568 IsMethod: true, 37569 IsResolver: false, 37570 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37571 switch field.Name { 37572 case "kind": 37573 return ec.fieldContext___Type_kind(ctx, field) 37574 case "name": 37575 return ec.fieldContext___Type_name(ctx, field) 37576 case "description": 37577 return ec.fieldContext___Type_description(ctx, field) 37578 case "fields": 37579 return ec.fieldContext___Type_fields(ctx, field) 37580 case "interfaces": 37581 return ec.fieldContext___Type_interfaces(ctx, field) 37582 case "possibleTypes": 37583 return ec.fieldContext___Type_possibleTypes(ctx, field) 37584 case "enumValues": 37585 return ec.fieldContext___Type_enumValues(ctx, field) 37586 case "inputFields": 37587 return ec.fieldContext___Type_inputFields(ctx, field) 37588 case "ofType": 37589 return ec.fieldContext___Type_ofType(ctx, field) 37590 case "specifiedByURL": 37591 return ec.fieldContext___Type_specifiedByURL(ctx, field) 37592 } 37593 return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) 37594 }, 37595 } 37596 return fc, nil 37597 } 37598 37599 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 37600 fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) 37601 if err != nil { 37602 return graphql.Null 37603 } 37604 ctx = graphql.WithFieldContext(ctx, fc) 37605 defer func() { 37606 if r := recover(); r != nil { 37607 ec.Error(ctx, ec.Recover(ctx, r)) 37608 ret = graphql.Null 37609 } 37610 }() 37611 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 37612 ctx = rctx // use context from middleware stack in children 37613 return obj.SpecifiedByURL(), nil 37614 }) 37615 if err != nil { 37616 ec.Error(ctx, err) 37617 return graphql.Null 37618 } 37619 if resTmp == nil { 37620 return graphql.Null 37621 } 37622 res := resTmp.(*string) 37623 fc.Result = res 37624 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 37625 } 37626 37627 func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { 37628 fc = &graphql.FieldContext{ 37629 Object: "__Type", 37630 Field: field, 37631 IsMethod: true, 37632 IsResolver: false, 37633 Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { 37634 return nil, errors.New("field of type String does not have child fields") 37635 }, 37636 } 37637 return fc, nil 37638 } 37639 37640 // endregion **************************** field.gotpl ***************************** 37641 37642 // region **************************** input.gotpl ***************************** 37643 37644 func (ec *executionContext) unmarshalInputCommerce_Cart_AddToCartInput(ctx context.Context, obj interface{}) (dto.AddToCart, error) { 37645 var it dto.AddToCart 37646 asMap := map[string]interface{}{} 37647 for k, v := range obj.(map[string]interface{}) { 37648 asMap[k] = v 37649 } 37650 37651 fieldsInOrder := [...]string{"marketplaceCode", "qty", "deliveryCode", "variantMarketplaceCode", "bundleConfiguration"} 37652 for _, k := range fieldsInOrder { 37653 v, ok := asMap[k] 37654 if !ok { 37655 continue 37656 } 37657 switch k { 37658 case "marketplaceCode": 37659 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) 37660 data, err := ec.unmarshalNID2string(ctx, v) 37661 if err != nil { 37662 return it, err 37663 } 37664 it.MarketplaceCode = data 37665 case "qty": 37666 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) 37667 data, err := ec.unmarshalNInt2int(ctx, v) 37668 if err != nil { 37669 return it, err 37670 } 37671 it.Qty = data 37672 case "deliveryCode": 37673 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 37674 data, err := ec.unmarshalNString2string(ctx, v) 37675 if err != nil { 37676 return it, err 37677 } 37678 it.DeliveryCode = data 37679 case "variantMarketplaceCode": 37680 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketplaceCode")) 37681 data, err := ec.unmarshalOString2string(ctx, v) 37682 if err != nil { 37683 return it, err 37684 } 37685 it.VariantMarketplaceCode = data 37686 case "bundleConfiguration": 37687 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfiguration")) 37688 data, err := ec.unmarshalOCommerce_Cart_ChoiceConfigurationInput2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx, v) 37689 if err != nil { 37690 return it, err 37691 } 37692 it.BundleConfiguration = data 37693 } 37694 } 37695 37696 return it, nil 37697 } 37698 37699 func (ec *executionContext) unmarshalInputCommerce_Cart_AddressFormInput(ctx context.Context, obj interface{}) (forms.AddressForm, error) { 37700 var it forms.AddressForm 37701 asMap := map[string]interface{}{} 37702 for k, v := range obj.(map[string]interface{}) { 37703 asMap[k] = v 37704 } 37705 37706 fieldsInOrder := [...]string{"vat", "firstname", "lastname", "middleName", "title", "salutation", "street", "streetNr", "addressLine1", "addressLine2", "company", "city", "postCode", "state", "regionCode", "country", "countryCode", "phoneNumber", "email"} 37707 for _, k := range fieldsInOrder { 37708 v, ok := asMap[k] 37709 if !ok { 37710 continue 37711 } 37712 switch k { 37713 case "vat": 37714 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vat")) 37715 data, err := ec.unmarshalOString2string(ctx, v) 37716 if err != nil { 37717 return it, err 37718 } 37719 it.Vat = data 37720 case "firstname": 37721 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstname")) 37722 data, err := ec.unmarshalNString2string(ctx, v) 37723 if err != nil { 37724 return it, err 37725 } 37726 it.Firstname = data 37727 case "lastname": 37728 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastname")) 37729 data, err := ec.unmarshalNString2string(ctx, v) 37730 if err != nil { 37731 return it, err 37732 } 37733 it.Lastname = data 37734 case "middleName": 37735 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("middleName")) 37736 data, err := ec.unmarshalOString2string(ctx, v) 37737 if err != nil { 37738 return it, err 37739 } 37740 it.MiddleName = data 37741 case "title": 37742 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) 37743 data, err := ec.unmarshalOString2string(ctx, v) 37744 if err != nil { 37745 return it, err 37746 } 37747 it.Title = data 37748 case "salutation": 37749 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("salutation")) 37750 data, err := ec.unmarshalOString2string(ctx, v) 37751 if err != nil { 37752 return it, err 37753 } 37754 it.Salutation = data 37755 case "street": 37756 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("street")) 37757 data, err := ec.unmarshalOString2string(ctx, v) 37758 if err != nil { 37759 return it, err 37760 } 37761 it.Street = data 37762 case "streetNr": 37763 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("streetNr")) 37764 data, err := ec.unmarshalOString2string(ctx, v) 37765 if err != nil { 37766 return it, err 37767 } 37768 it.StreetNr = data 37769 case "addressLine1": 37770 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLine1")) 37771 data, err := ec.unmarshalOString2string(ctx, v) 37772 if err != nil { 37773 return it, err 37774 } 37775 it.AddressLine1 = data 37776 case "addressLine2": 37777 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLine2")) 37778 data, err := ec.unmarshalOString2string(ctx, v) 37779 if err != nil { 37780 return it, err 37781 } 37782 it.AddressLine2 = data 37783 case "company": 37784 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) 37785 data, err := ec.unmarshalOString2string(ctx, v) 37786 if err != nil { 37787 return it, err 37788 } 37789 it.Company = data 37790 case "city": 37791 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("city")) 37792 data, err := ec.unmarshalOString2string(ctx, v) 37793 if err != nil { 37794 return it, err 37795 } 37796 it.City = data 37797 case "postCode": 37798 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postCode")) 37799 data, err := ec.unmarshalOString2string(ctx, v) 37800 if err != nil { 37801 return it, err 37802 } 37803 it.PostCode = data 37804 case "state": 37805 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) 37806 data, err := ec.unmarshalOString2string(ctx, v) 37807 if err != nil { 37808 return it, err 37809 } 37810 it.State = data 37811 case "regionCode": 37812 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regionCode")) 37813 data, err := ec.unmarshalOString2string(ctx, v) 37814 if err != nil { 37815 return it, err 37816 } 37817 it.RegionCode = data 37818 case "country": 37819 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("country")) 37820 data, err := ec.unmarshalOString2string(ctx, v) 37821 if err != nil { 37822 return it, err 37823 } 37824 it.Country = data 37825 case "countryCode": 37826 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countryCode")) 37827 data, err := ec.unmarshalOString2string(ctx, v) 37828 if err != nil { 37829 return it, err 37830 } 37831 it.CountryCode = data 37832 case "phoneNumber": 37833 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) 37834 data, err := ec.unmarshalOString2string(ctx, v) 37835 if err != nil { 37836 return it, err 37837 } 37838 it.PhoneNumber = data 37839 case "email": 37840 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) 37841 data, err := ec.unmarshalNString2string(ctx, v) 37842 if err != nil { 37843 return it, err 37844 } 37845 it.Email = data 37846 } 37847 } 37848 37849 return it, nil 37850 } 37851 37852 func (ec *executionContext) unmarshalInputCommerce_Cart_ChoiceConfigurationInput(ctx context.Context, obj interface{}) (dto.ChoiceConfiguration, error) { 37853 var it dto.ChoiceConfiguration 37854 asMap := map[string]interface{}{} 37855 for k, v := range obj.(map[string]interface{}) { 37856 asMap[k] = v 37857 } 37858 37859 fieldsInOrder := [...]string{"identifier", "marketplaceCode", "variantMarketplaceCode", "qty"} 37860 for _, k := range fieldsInOrder { 37861 v, ok := asMap[k] 37862 if !ok { 37863 continue 37864 } 37865 switch k { 37866 case "identifier": 37867 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identifier")) 37868 data, err := ec.unmarshalNString2string(ctx, v) 37869 if err != nil { 37870 return it, err 37871 } 37872 it.Identifier = data 37873 case "marketplaceCode": 37874 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) 37875 data, err := ec.unmarshalNString2string(ctx, v) 37876 if err != nil { 37877 return it, err 37878 } 37879 it.MarketplaceCode = data 37880 case "variantMarketplaceCode": 37881 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketplaceCode")) 37882 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 37883 if err != nil { 37884 return it, err 37885 } 37886 it.VariantMarketplaceCode = data 37887 case "qty": 37888 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) 37889 data, err := ec.unmarshalNInt2int(ctx, v) 37890 if err != nil { 37891 return it, err 37892 } 37893 it.Qty = data 37894 } 37895 } 37896 37897 return it, nil 37898 } 37899 37900 func (ec *executionContext) unmarshalInputCommerce_Cart_DeliveryAdditionalDataInput(ctx context.Context, obj interface{}) (dto.DeliveryAdditionalData, error) { 37901 var it dto.DeliveryAdditionalData 37902 asMap := map[string]interface{}{} 37903 for k, v := range obj.(map[string]interface{}) { 37904 asMap[k] = v 37905 } 37906 37907 fieldsInOrder := [...]string{"deliveryCode", "additionalData"} 37908 for _, k := range fieldsInOrder { 37909 v, ok := asMap[k] 37910 if !ok { 37911 continue 37912 } 37913 switch k { 37914 case "deliveryCode": 37915 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 37916 data, err := ec.unmarshalNString2string(ctx, v) 37917 if err != nil { 37918 return it, err 37919 } 37920 it.DeliveryCode = data 37921 case "additionalData": 37922 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalData")) 37923 data, err := ec.unmarshalNCommerce_Cart_KeyValueInput2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx, v) 37924 if err != nil { 37925 return it, err 37926 } 37927 it.AdditionalData = data 37928 } 37929 } 37930 37931 return it, nil 37932 } 37933 37934 func (ec *executionContext) unmarshalInputCommerce_Cart_DeliveryAddressInput(ctx context.Context, obj interface{}) (forms.DeliveryForm, error) { 37935 var it forms.DeliveryForm 37936 asMap := map[string]interface{}{} 37937 for k, v := range obj.(map[string]interface{}) { 37938 asMap[k] = v 37939 } 37940 37941 fieldsInOrder := [...]string{"deliveryCode", "deliveryAddress", "useBillingAddress", "method", "carrier", "desiredTime"} 37942 for _, k := range fieldsInOrder { 37943 v, ok := asMap[k] 37944 if !ok { 37945 continue 37946 } 37947 switch k { 37948 case "deliveryCode": 37949 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 37950 data, err := ec.unmarshalNString2string(ctx, v) 37951 if err != nil { 37952 return it, err 37953 } 37954 it.LocationCode = data 37955 case "deliveryAddress": 37956 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryAddress")) 37957 data, err := ec.unmarshalOCommerce_Cart_AddressFormInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, v) 37958 if err != nil { 37959 return it, err 37960 } 37961 it.DeliveryAddress = data 37962 case "useBillingAddress": 37963 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("useBillingAddress")) 37964 data, err := ec.unmarshalNBoolean2bool(ctx, v) 37965 if err != nil { 37966 return it, err 37967 } 37968 it.UseBillingAddress = data 37969 case "method": 37970 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) 37971 data, err := ec.unmarshalOString2string(ctx, v) 37972 if err != nil { 37973 return it, err 37974 } 37975 it.ShippingMethod = data 37976 case "carrier": 37977 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("carrier")) 37978 data, err := ec.unmarshalOString2string(ctx, v) 37979 if err != nil { 37980 return it, err 37981 } 37982 it.ShippingCarrier = data 37983 case "desiredTime": 37984 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("desiredTime")) 37985 data, err := ec.unmarshalOTime2timeᚐTime(ctx, v) 37986 if err != nil { 37987 return it, err 37988 } 37989 it.DesiredTime = data 37990 } 37991 } 37992 37993 return it, nil 37994 } 37995 37996 func (ec *executionContext) unmarshalInputCommerce_Cart_DeliveryShippingOptionInput(ctx context.Context, obj interface{}) (dto.DeliveryShippingOption, error) { 37997 var it dto.DeliveryShippingOption 37998 asMap := map[string]interface{}{} 37999 for k, v := range obj.(map[string]interface{}) { 38000 asMap[k] = v 38001 } 38002 38003 fieldsInOrder := [...]string{"deliveryCode", "method", "carrier"} 38004 for _, k := range fieldsInOrder { 38005 v, ok := asMap[k] 38006 if !ok { 38007 continue 38008 } 38009 switch k { 38010 case "deliveryCode": 38011 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) 38012 data, err := ec.unmarshalNString2string(ctx, v) 38013 if err != nil { 38014 return it, err 38015 } 38016 it.DeliveryCode = data 38017 case "method": 38018 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) 38019 data, err := ec.unmarshalNString2string(ctx, v) 38020 if err != nil { 38021 return it, err 38022 } 38023 it.Method = data 38024 case "carrier": 38025 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("carrier")) 38026 data, err := ec.unmarshalNString2string(ctx, v) 38027 if err != nil { 38028 return it, err 38029 } 38030 it.Carrier = data 38031 } 38032 } 38033 38034 return it, nil 38035 } 38036 38037 func (ec *executionContext) unmarshalInputCommerce_Cart_KeyValueInput(ctx context.Context, obj interface{}) (dto.KeyValue, error) { 38038 var it dto.KeyValue 38039 asMap := map[string]interface{}{} 38040 for k, v := range obj.(map[string]interface{}) { 38041 asMap[k] = v 38042 } 38043 38044 fieldsInOrder := [...]string{"key", "value"} 38045 for _, k := range fieldsInOrder { 38046 v, ok := asMap[k] 38047 if !ok { 38048 continue 38049 } 38050 switch k { 38051 case "key": 38052 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) 38053 data, err := ec.unmarshalNString2string(ctx, v) 38054 if err != nil { 38055 return it, err 38056 } 38057 it.Key = data 38058 case "value": 38059 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) 38060 data, err := ec.unmarshalNString2string(ctx, v) 38061 if err != nil { 38062 return it, err 38063 } 38064 it.Value = data 38065 } 38066 } 38067 38068 return it, nil 38069 } 38070 38071 func (ec *executionContext) unmarshalInputCommerce_Price_ChargeQualifierInput(ctx context.Context, obj interface{}) (domain.ChargeQualifier, error) { 38072 var it domain.ChargeQualifier 38073 asMap := map[string]interface{}{} 38074 for k, v := range obj.(map[string]interface{}) { 38075 asMap[k] = v 38076 } 38077 38078 fieldsInOrder := [...]string{"type", "reference"} 38079 for _, k := range fieldsInOrder { 38080 v, ok := asMap[k] 38081 if !ok { 38082 continue 38083 } 38084 switch k { 38085 case "type": 38086 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) 38087 data, err := ec.unmarshalNString2string(ctx, v) 38088 if err != nil { 38089 return it, err 38090 } 38091 it.Type = data 38092 case "reference": 38093 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reference")) 38094 data, err := ec.unmarshalNString2string(ctx, v) 38095 if err != nil { 38096 return it, err 38097 } 38098 it.Reference = data 38099 } 38100 } 38101 38102 return it, nil 38103 } 38104 38105 func (ec *executionContext) unmarshalInputCommerce_Product_ChoiceConfigurationInput(ctx context.Context, obj interface{}) (graphqlproductdto.ChoiceConfiguration, error) { 38106 var it graphqlproductdto.ChoiceConfiguration 38107 asMap := map[string]interface{}{} 38108 for k, v := range obj.(map[string]interface{}) { 38109 asMap[k] = v 38110 } 38111 38112 fieldsInOrder := [...]string{"identifier", "marketplaceCode", "variantMarketplaceCode", "qty"} 38113 for _, k := range fieldsInOrder { 38114 v, ok := asMap[k] 38115 if !ok { 38116 continue 38117 } 38118 switch k { 38119 case "identifier": 38120 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identifier")) 38121 data, err := ec.unmarshalNString2string(ctx, v) 38122 if err != nil { 38123 return it, err 38124 } 38125 it.Identifier = data 38126 case "marketplaceCode": 38127 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) 38128 data, err := ec.unmarshalNString2string(ctx, v) 38129 if err != nil { 38130 return it, err 38131 } 38132 it.MarketplaceCode = data 38133 case "variantMarketplaceCode": 38134 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketplaceCode")) 38135 data, err := ec.unmarshalOString2ᚖstring(ctx, v) 38136 if err != nil { 38137 return it, err 38138 } 38139 it.VariantMarketplaceCode = data 38140 case "qty": 38141 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) 38142 data, err := ec.unmarshalNInt2int(ctx, v) 38143 if err != nil { 38144 return it, err 38145 } 38146 it.Qty = data 38147 } 38148 } 38149 38150 return it, nil 38151 } 38152 38153 func (ec *executionContext) unmarshalInputCommerce_Search_KeyValueFilter(ctx context.Context, obj interface{}) (searchdto.CommerceSearchKeyValueFilter, error) { 38154 var it searchdto.CommerceSearchKeyValueFilter 38155 asMap := map[string]interface{}{} 38156 for k, v := range obj.(map[string]interface{}) { 38157 asMap[k] = v 38158 } 38159 38160 fieldsInOrder := [...]string{"k", "v"} 38161 for _, k := range fieldsInOrder { 38162 v, ok := asMap[k] 38163 if !ok { 38164 continue 38165 } 38166 switch k { 38167 case "k": 38168 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("k")) 38169 data, err := ec.unmarshalNString2string(ctx, v) 38170 if err != nil { 38171 return it, err 38172 } 38173 it.K = data 38174 case "v": 38175 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("v")) 38176 data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) 38177 if err != nil { 38178 return it, err 38179 } 38180 it.V = data 38181 } 38182 } 38183 38184 return it, nil 38185 } 38186 38187 func (ec *executionContext) unmarshalInputCommerce_Search_Request(ctx context.Context, obj interface{}) (searchdto.CommerceSearchRequest, error) { 38188 var it searchdto.CommerceSearchRequest 38189 asMap := map[string]interface{}{} 38190 for k, v := range obj.(map[string]interface{}) { 38191 asMap[k] = v 38192 } 38193 38194 fieldsInOrder := [...]string{"pageSize", "page", "sortBy", "keyValueFilters", "query"} 38195 for _, k := range fieldsInOrder { 38196 v, ok := asMap[k] 38197 if !ok { 38198 continue 38199 } 38200 switch k { 38201 case "pageSize": 38202 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pageSize")) 38203 data, err := ec.unmarshalOInt2int(ctx, v) 38204 if err != nil { 38205 return it, err 38206 } 38207 it.PageSize = data 38208 case "page": 38209 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page")) 38210 data, err := ec.unmarshalOInt2int(ctx, v) 38211 if err != nil { 38212 return it, err 38213 } 38214 it.Page = data 38215 case "sortBy": 38216 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortBy")) 38217 data, err := ec.unmarshalOString2string(ctx, v) 38218 if err != nil { 38219 return it, err 38220 } 38221 it.SortBy = data 38222 case "keyValueFilters": 38223 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyValueFilters")) 38224 data, err := ec.unmarshalOCommerce_Search_KeyValueFilter2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchKeyValueFilterᚄ(ctx, v) 38225 if err != nil { 38226 return it, err 38227 } 38228 it.KeyValueFilters = data 38229 case "query": 38230 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) 38231 data, err := ec.unmarshalOString2string(ctx, v) 38232 if err != nil { 38233 return it, err 38234 } 38235 it.Query = data 38236 } 38237 } 38238 38239 return it, nil 38240 } 38241 38242 // endregion **************************** input.gotpl ***************************** 38243 38244 // region ************************** interface.gotpl *************************** 38245 38246 func (ec *executionContext) _Commerce_Cart_PaymentSelection(ctx context.Context, sel ast.SelectionSet, obj cart.PaymentSelection) graphql.Marshaler { 38247 switch obj := (obj).(type) { 38248 case nil: 38249 return graphql.Null 38250 case cart.DefaultPaymentSelection: 38251 return ec._Commerce_Cart_DefaultPaymentSelection(ctx, sel, &obj) 38252 case *cart.DefaultPaymentSelection: 38253 if obj == nil { 38254 return graphql.Null 38255 } 38256 return ec._Commerce_Cart_DefaultPaymentSelection(ctx, sel, obj) 38257 default: 38258 panic(fmt.Errorf("unexpected type %T", obj)) 38259 } 38260 } 38261 38262 func (ec *executionContext) _Commerce_Category(ctx context.Context, sel ast.SelectionSet, obj domain3.Category) graphql.Marshaler { 38263 switch obj := (obj).(type) { 38264 case nil: 38265 return graphql.Null 38266 case domain3.CategoryData: 38267 return ec._Commerce_CategoryData(ctx, sel, &obj) 38268 case *domain3.CategoryData: 38269 if obj == nil { 38270 return graphql.Null 38271 } 38272 return ec._Commerce_CategoryData(ctx, sel, obj) 38273 default: 38274 panic(fmt.Errorf("unexpected type %T", obj)) 38275 } 38276 } 38277 38278 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State(ctx context.Context, sel ast.SelectionSet, obj dto1.State) graphql.Marshaler { 38279 switch obj := (obj).(type) { 38280 case nil: 38281 return graphql.Null 38282 case *dto1.Wait: 38283 if obj == nil { 38284 return graphql.Null 38285 } 38286 return ec._Commerce_Checkout_PlaceOrderState_State_Wait(ctx, sel, obj) 38287 case *dto1.WaitForCustomer: 38288 if obj == nil { 38289 return graphql.Null 38290 } 38291 return ec._Commerce_Checkout_PlaceOrderState_State_WaitForCustomer(ctx, sel, obj) 38292 case *dto1.Success: 38293 if obj == nil { 38294 return graphql.Null 38295 } 38296 return ec._Commerce_Checkout_PlaceOrderState_State_Success(ctx, sel, obj) 38297 case *dto1.Failed: 38298 if obj == nil { 38299 return graphql.Null 38300 } 38301 return ec._Commerce_Checkout_PlaceOrderState_State_Failed(ctx, sel, obj) 38302 case *dto1.ShowIframe: 38303 if obj == nil { 38304 return graphql.Null 38305 } 38306 return ec._Commerce_Checkout_PlaceOrderState_State_ShowIframe(ctx, sel, obj) 38307 case *dto1.ShowHTML: 38308 if obj == nil { 38309 return graphql.Null 38310 } 38311 return ec._Commerce_Checkout_PlaceOrderState_State_ShowHTML(ctx, sel, obj) 38312 case *dto1.Redirect: 38313 if obj == nil { 38314 return graphql.Null 38315 } 38316 return ec._Commerce_Checkout_PlaceOrderState_State_Redirect(ctx, sel, obj) 38317 case *dto1.TriggerClientSDK: 38318 if obj == nil { 38319 return graphql.Null 38320 } 38321 return ec._Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK(ctx, sel, obj) 38322 case *dto1.ShowWalletPayment: 38323 if obj == nil { 38324 return graphql.Null 38325 } 38326 return ec._Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment(ctx, sel, obj) 38327 case *dto1.PostRedirect: 38328 if obj == nil { 38329 return graphql.Null 38330 } 38331 return ec._Commerce_Checkout_PlaceOrderState_State_PostRedirect(ctx, sel, obj) 38332 default: 38333 panic(fmt.Errorf("unexpected type %T", obj)) 38334 } 38335 } 38336 38337 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason(ctx context.Context, sel ast.SelectionSet, obj process.FailedReason) graphql.Marshaler { 38338 switch obj := (obj).(type) { 38339 case nil: 38340 return graphql.Null 38341 case process.ErrorOccurredReason: 38342 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_Error(ctx, sel, &obj) 38343 case *process.ErrorOccurredReason: 38344 if obj == nil { 38345 return graphql.Null 38346 } 38347 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_Error(ctx, sel, obj) 38348 case process.PaymentErrorOccurredReason: 38349 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError(ctx, sel, &obj) 38350 case *process.PaymentErrorOccurredReason: 38351 if obj == nil { 38352 return graphql.Null 38353 } 38354 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError(ctx, sel, obj) 38355 case process.CanceledByCustomerReason: 38356 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer(ctx, sel, &obj) 38357 case *process.CanceledByCustomerReason: 38358 if obj == nil { 38359 return graphql.Null 38360 } 38361 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer(ctx, sel, obj) 38362 case process.PaymentCanceledByCustomerReason: 38363 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer(ctx, sel, &obj) 38364 case *process.PaymentCanceledByCustomerReason: 38365 if obj == nil { 38366 return graphql.Null 38367 } 38368 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer(ctx, sel, obj) 38369 case process.CartValidationErrorReason: 38370 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError(ctx, sel, &obj) 38371 case *process.CartValidationErrorReason: 38372 if obj == nil { 38373 return graphql.Null 38374 } 38375 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError(ctx, sel, obj) 38376 default: 38377 panic(fmt.Errorf("unexpected type %T", obj)) 38378 } 38379 } 38380 38381 func (ec *executionContext) _Commerce_Product(ctx context.Context, sel ast.SelectionSet, obj graphqlproductdto.Product) graphql.Marshaler { 38382 switch obj := (obj).(type) { 38383 case nil: 38384 return graphql.Null 38385 case graphqlproductdto.SimpleProduct: 38386 return ec._Commerce_Product_SimpleProduct(ctx, sel, &obj) 38387 case *graphqlproductdto.SimpleProduct: 38388 if obj == nil { 38389 return graphql.Null 38390 } 38391 return ec._Commerce_Product_SimpleProduct(ctx, sel, obj) 38392 case graphqlproductdto.ConfigurableProduct: 38393 return ec._Commerce_Product_ConfigurableProduct(ctx, sel, &obj) 38394 case *graphqlproductdto.ConfigurableProduct: 38395 if obj == nil { 38396 return graphql.Null 38397 } 38398 return ec._Commerce_Product_ConfigurableProduct(ctx, sel, obj) 38399 case graphqlproductdto.ActiveVariantProduct: 38400 return ec._Commerce_Product_ActiveVariantProduct(ctx, sel, &obj) 38401 case *graphqlproductdto.ActiveVariantProduct: 38402 if obj == nil { 38403 return graphql.Null 38404 } 38405 return ec._Commerce_Product_ActiveVariantProduct(ctx, sel, obj) 38406 case graphqlproductdto.BundleProduct: 38407 return ec._Commerce_Product_BundleProduct(ctx, sel, &obj) 38408 case *graphqlproductdto.BundleProduct: 38409 if obj == nil { 38410 return graphql.Null 38411 } 38412 return ec._Commerce_Product_BundleProduct(ctx, sel, obj) 38413 default: 38414 panic(fmt.Errorf("unexpected type %T", obj)) 38415 } 38416 } 38417 38418 func (ec *executionContext) _Commerce_Search_Facet(ctx context.Context, sel ast.SelectionSet, obj searchdto.CommerceSearchFacet) graphql.Marshaler { 38419 switch obj := (obj).(type) { 38420 case nil: 38421 return graphql.Null 38422 case *searchdto.CommerceSearchListFacet: 38423 if obj == nil { 38424 return graphql.Null 38425 } 38426 return ec._Commerce_Search_ListFacet(ctx, sel, obj) 38427 case *searchdto.CommerceSearchTreeFacet: 38428 if obj == nil { 38429 return graphql.Null 38430 } 38431 return ec._Commerce_Search_TreeFacet(ctx, sel, obj) 38432 case *searchdto.CommerceSearchRangeFacet: 38433 if obj == nil { 38434 return graphql.Null 38435 } 38436 return ec._Commerce_Search_RangeFacet(ctx, sel, obj) 38437 default: 38438 panic(fmt.Errorf("unexpected type %T", obj)) 38439 } 38440 } 38441 38442 func (ec *executionContext) _Commerce_Search_FacetItem(ctx context.Context, sel ast.SelectionSet, obj searchdto.CommerceSearchFacetItem) graphql.Marshaler { 38443 switch obj := (obj).(type) { 38444 case nil: 38445 return graphql.Null 38446 case *searchdto.CommerceSearchListFacetItem: 38447 if obj == nil { 38448 return graphql.Null 38449 } 38450 return ec._Commerce_Search_ListFacetItem(ctx, sel, obj) 38451 case *searchdto.CommerceSearchTreeFacetItem: 38452 if obj == nil { 38453 return graphql.Null 38454 } 38455 return ec._Commerce_Search_TreeFacetItem(ctx, sel, obj) 38456 case *searchdto.CommerceSearchRangeFacetItem: 38457 if obj == nil { 38458 return graphql.Null 38459 } 38460 return ec._Commerce_Search_RangeFacetItem(ctx, sel, obj) 38461 default: 38462 panic(fmt.Errorf("unexpected type %T", obj)) 38463 } 38464 } 38465 38466 func (ec *executionContext) _Commerce_Tree(ctx context.Context, sel ast.SelectionSet, obj domain3.Tree) graphql.Marshaler { 38467 switch obj := (obj).(type) { 38468 case nil: 38469 return graphql.Null 38470 case domain3.TreeData: 38471 return ec._Commerce_CategoryTree(ctx, sel, &obj) 38472 case *domain3.TreeData: 38473 if obj == nil { 38474 return graphql.Null 38475 } 38476 return ec._Commerce_CategoryTree(ctx, sel, obj) 38477 default: 38478 panic(fmt.Errorf("unexpected type %T", obj)) 38479 } 38480 } 38481 38482 // endregion ************************** interface.gotpl *************************** 38483 38484 // region **************************** object.gotpl **************************** 38485 38486 var commerce_Cart_AdditionalDataImplementors = []string{"Commerce_Cart_AdditionalData"} 38487 38488 func (ec *executionContext) _Commerce_Cart_AdditionalData(ctx context.Context, sel ast.SelectionSet, obj *cart.AdditionalData) graphql.Marshaler { 38489 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AdditionalDataImplementors) 38490 38491 out := graphql.NewFieldSet(fields) 38492 deferred := make(map[string]*graphql.FieldSet) 38493 for i, field := range fields { 38494 switch field.Name { 38495 case "__typename": 38496 out.Values[i] = graphql.MarshalString("Commerce_Cart_AdditionalData") 38497 case "customAttributes": 38498 field := field 38499 38500 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 38501 defer func() { 38502 if r := recover(); r != nil { 38503 ec.Error(ctx, ec.Recover(ctx, r)) 38504 } 38505 }() 38506 res = ec._Commerce_Cart_AdditionalData_customAttributes(ctx, field, obj) 38507 if res == graphql.Null { 38508 atomic.AddUint32(&fs.Invalids, 1) 38509 } 38510 return res 38511 } 38512 38513 if field.Deferrable != nil { 38514 dfs, ok := deferred[field.Deferrable.Label] 38515 di := 0 38516 if ok { 38517 dfs.AddField(field) 38518 di = len(dfs.Values) - 1 38519 } else { 38520 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 38521 deferred[field.Deferrable.Label] = dfs 38522 } 38523 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 38524 return innerFunc(ctx, dfs) 38525 }) 38526 38527 // don't run the out.Concurrently() call below 38528 out.Values[i] = graphql.Null 38529 continue 38530 } 38531 38532 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 38533 case "reservedOrderID": 38534 out.Values[i] = ec._Commerce_Cart_AdditionalData_reservedOrderID(ctx, field, obj) 38535 if out.Values[i] == graphql.Null { 38536 atomic.AddUint32(&out.Invalids, 1) 38537 } 38538 default: 38539 panic("unknown field " + strconv.Quote(field.Name)) 38540 } 38541 } 38542 out.Dispatch(ctx) 38543 if out.Invalids > 0 { 38544 return graphql.Null 38545 } 38546 38547 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38548 38549 for label, dfs := range deferred { 38550 ec.processDeferredGroup(graphql.DeferredGroup{ 38551 Label: label, 38552 Path: graphql.GetPath(ctx), 38553 FieldSet: dfs, 38554 Context: ctx, 38555 }) 38556 } 38557 38558 return out 38559 } 38560 38561 var commerce_Cart_AddressImplementors = []string{"Commerce_Cart_Address"} 38562 38563 func (ec *executionContext) _Commerce_Cart_Address(ctx context.Context, sel ast.SelectionSet, obj *cart.Address) graphql.Marshaler { 38564 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AddressImplementors) 38565 38566 out := graphql.NewFieldSet(fields) 38567 deferred := make(map[string]*graphql.FieldSet) 38568 for i, field := range fields { 38569 switch field.Name { 38570 case "__typename": 38571 out.Values[i] = graphql.MarshalString("Commerce_Cart_Address") 38572 case "vat": 38573 out.Values[i] = ec._Commerce_Cart_Address_vat(ctx, field, obj) 38574 if out.Values[i] == graphql.Null { 38575 out.Invalids++ 38576 } 38577 case "firstname": 38578 out.Values[i] = ec._Commerce_Cart_Address_firstname(ctx, field, obj) 38579 if out.Values[i] == graphql.Null { 38580 out.Invalids++ 38581 } 38582 case "lastname": 38583 out.Values[i] = ec._Commerce_Cart_Address_lastname(ctx, field, obj) 38584 if out.Values[i] == graphql.Null { 38585 out.Invalids++ 38586 } 38587 case "middleName": 38588 out.Values[i] = ec._Commerce_Cart_Address_middleName(ctx, field, obj) 38589 if out.Values[i] == graphql.Null { 38590 out.Invalids++ 38591 } 38592 case "title": 38593 out.Values[i] = ec._Commerce_Cart_Address_title(ctx, field, obj) 38594 if out.Values[i] == graphql.Null { 38595 out.Invalids++ 38596 } 38597 case "salutation": 38598 out.Values[i] = ec._Commerce_Cart_Address_salutation(ctx, field, obj) 38599 if out.Values[i] == graphql.Null { 38600 out.Invalids++ 38601 } 38602 case "street": 38603 out.Values[i] = ec._Commerce_Cart_Address_street(ctx, field, obj) 38604 if out.Values[i] == graphql.Null { 38605 out.Invalids++ 38606 } 38607 case "streetNr": 38608 out.Values[i] = ec._Commerce_Cart_Address_streetNr(ctx, field, obj) 38609 if out.Values[i] == graphql.Null { 38610 out.Invalids++ 38611 } 38612 case "additionalAddressLines": 38613 out.Values[i] = ec._Commerce_Cart_Address_additionalAddressLines(ctx, field, obj) 38614 case "company": 38615 out.Values[i] = ec._Commerce_Cart_Address_company(ctx, field, obj) 38616 if out.Values[i] == graphql.Null { 38617 out.Invalids++ 38618 } 38619 case "city": 38620 out.Values[i] = ec._Commerce_Cart_Address_city(ctx, field, obj) 38621 if out.Values[i] == graphql.Null { 38622 out.Invalids++ 38623 } 38624 case "postCode": 38625 out.Values[i] = ec._Commerce_Cart_Address_postCode(ctx, field, obj) 38626 if out.Values[i] == graphql.Null { 38627 out.Invalids++ 38628 } 38629 case "state": 38630 out.Values[i] = ec._Commerce_Cart_Address_state(ctx, field, obj) 38631 if out.Values[i] == graphql.Null { 38632 out.Invalids++ 38633 } 38634 case "regionCode": 38635 out.Values[i] = ec._Commerce_Cart_Address_regionCode(ctx, field, obj) 38636 if out.Values[i] == graphql.Null { 38637 out.Invalids++ 38638 } 38639 case "country": 38640 out.Values[i] = ec._Commerce_Cart_Address_country(ctx, field, obj) 38641 if out.Values[i] == graphql.Null { 38642 out.Invalids++ 38643 } 38644 case "countryCode": 38645 out.Values[i] = ec._Commerce_Cart_Address_countryCode(ctx, field, obj) 38646 if out.Values[i] == graphql.Null { 38647 out.Invalids++ 38648 } 38649 case "telephone": 38650 out.Values[i] = ec._Commerce_Cart_Address_telephone(ctx, field, obj) 38651 if out.Values[i] == graphql.Null { 38652 out.Invalids++ 38653 } 38654 case "email": 38655 out.Values[i] = ec._Commerce_Cart_Address_email(ctx, field, obj) 38656 if out.Values[i] == graphql.Null { 38657 out.Invalids++ 38658 } 38659 default: 38660 panic("unknown field " + strconv.Quote(field.Name)) 38661 } 38662 } 38663 out.Dispatch(ctx) 38664 if out.Invalids > 0 { 38665 return graphql.Null 38666 } 38667 38668 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38669 38670 for label, dfs := range deferred { 38671 ec.processDeferredGroup(graphql.DeferredGroup{ 38672 Label: label, 38673 Path: graphql.GetPath(ctx), 38674 FieldSet: dfs, 38675 Context: ctx, 38676 }) 38677 } 38678 38679 return out 38680 } 38681 38682 var commerce_Cart_AddressFormImplementors = []string{"Commerce_Cart_AddressForm"} 38683 38684 func (ec *executionContext) _Commerce_Cart_AddressForm(ctx context.Context, sel ast.SelectionSet, obj *forms.AddressForm) graphql.Marshaler { 38685 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AddressFormImplementors) 38686 38687 out := graphql.NewFieldSet(fields) 38688 deferred := make(map[string]*graphql.FieldSet) 38689 for i, field := range fields { 38690 switch field.Name { 38691 case "__typename": 38692 out.Values[i] = graphql.MarshalString("Commerce_Cart_AddressForm") 38693 case "vat": 38694 out.Values[i] = ec._Commerce_Cart_AddressForm_vat(ctx, field, obj) 38695 if out.Values[i] == graphql.Null { 38696 out.Invalids++ 38697 } 38698 case "firstname": 38699 out.Values[i] = ec._Commerce_Cart_AddressForm_firstname(ctx, field, obj) 38700 if out.Values[i] == graphql.Null { 38701 out.Invalids++ 38702 } 38703 case "lastname": 38704 out.Values[i] = ec._Commerce_Cart_AddressForm_lastname(ctx, field, obj) 38705 if out.Values[i] == graphql.Null { 38706 out.Invalids++ 38707 } 38708 case "middleName": 38709 out.Values[i] = ec._Commerce_Cart_AddressForm_middleName(ctx, field, obj) 38710 if out.Values[i] == graphql.Null { 38711 out.Invalids++ 38712 } 38713 case "title": 38714 out.Values[i] = ec._Commerce_Cart_AddressForm_title(ctx, field, obj) 38715 if out.Values[i] == graphql.Null { 38716 out.Invalids++ 38717 } 38718 case "salutation": 38719 out.Values[i] = ec._Commerce_Cart_AddressForm_salutation(ctx, field, obj) 38720 if out.Values[i] == graphql.Null { 38721 out.Invalids++ 38722 } 38723 case "street": 38724 out.Values[i] = ec._Commerce_Cart_AddressForm_street(ctx, field, obj) 38725 if out.Values[i] == graphql.Null { 38726 out.Invalids++ 38727 } 38728 case "streetNr": 38729 out.Values[i] = ec._Commerce_Cart_AddressForm_streetNr(ctx, field, obj) 38730 if out.Values[i] == graphql.Null { 38731 out.Invalids++ 38732 } 38733 case "addressLine1": 38734 out.Values[i] = ec._Commerce_Cart_AddressForm_addressLine1(ctx, field, obj) 38735 if out.Values[i] == graphql.Null { 38736 out.Invalids++ 38737 } 38738 case "addressLine2": 38739 out.Values[i] = ec._Commerce_Cart_AddressForm_addressLine2(ctx, field, obj) 38740 if out.Values[i] == graphql.Null { 38741 out.Invalids++ 38742 } 38743 case "company": 38744 out.Values[i] = ec._Commerce_Cart_AddressForm_company(ctx, field, obj) 38745 if out.Values[i] == graphql.Null { 38746 out.Invalids++ 38747 } 38748 case "city": 38749 out.Values[i] = ec._Commerce_Cart_AddressForm_city(ctx, field, obj) 38750 if out.Values[i] == graphql.Null { 38751 out.Invalids++ 38752 } 38753 case "postCode": 38754 out.Values[i] = ec._Commerce_Cart_AddressForm_postCode(ctx, field, obj) 38755 if out.Values[i] == graphql.Null { 38756 out.Invalids++ 38757 } 38758 case "state": 38759 out.Values[i] = ec._Commerce_Cart_AddressForm_state(ctx, field, obj) 38760 if out.Values[i] == graphql.Null { 38761 out.Invalids++ 38762 } 38763 case "regionCode": 38764 out.Values[i] = ec._Commerce_Cart_AddressForm_regionCode(ctx, field, obj) 38765 if out.Values[i] == graphql.Null { 38766 out.Invalids++ 38767 } 38768 case "country": 38769 out.Values[i] = ec._Commerce_Cart_AddressForm_country(ctx, field, obj) 38770 if out.Values[i] == graphql.Null { 38771 out.Invalids++ 38772 } 38773 case "countryCode": 38774 out.Values[i] = ec._Commerce_Cart_AddressForm_countryCode(ctx, field, obj) 38775 if out.Values[i] == graphql.Null { 38776 out.Invalids++ 38777 } 38778 case "phoneNumber": 38779 out.Values[i] = ec._Commerce_Cart_AddressForm_phoneNumber(ctx, field, obj) 38780 if out.Values[i] == graphql.Null { 38781 out.Invalids++ 38782 } 38783 case "email": 38784 out.Values[i] = ec._Commerce_Cart_AddressForm_email(ctx, field, obj) 38785 if out.Values[i] == graphql.Null { 38786 out.Invalids++ 38787 } 38788 default: 38789 panic("unknown field " + strconv.Quote(field.Name)) 38790 } 38791 } 38792 out.Dispatch(ctx) 38793 if out.Invalids > 0 { 38794 return graphql.Null 38795 } 38796 38797 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38798 38799 for label, dfs := range deferred { 38800 ec.processDeferredGroup(graphql.DeferredGroup{ 38801 Label: label, 38802 Path: graphql.GetPath(ctx), 38803 FieldSet: dfs, 38804 Context: ctx, 38805 }) 38806 } 38807 38808 return out 38809 } 38810 38811 var commerce_Cart_AppliedDiscountImplementors = []string{"Commerce_Cart_AppliedDiscount"} 38812 38813 func (ec *executionContext) _Commerce_Cart_AppliedDiscount(ctx context.Context, sel ast.SelectionSet, obj *cart.AppliedDiscount) graphql.Marshaler { 38814 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AppliedDiscountImplementors) 38815 38816 out := graphql.NewFieldSet(fields) 38817 deferred := make(map[string]*graphql.FieldSet) 38818 for i, field := range fields { 38819 switch field.Name { 38820 case "__typename": 38821 out.Values[i] = graphql.MarshalString("Commerce_Cart_AppliedDiscount") 38822 case "campaignCode": 38823 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_campaignCode(ctx, field, obj) 38824 if out.Values[i] == graphql.Null { 38825 out.Invalids++ 38826 } 38827 case "couponCode": 38828 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_couponCode(ctx, field, obj) 38829 if out.Values[i] == graphql.Null { 38830 out.Invalids++ 38831 } 38832 case "label": 38833 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_label(ctx, field, obj) 38834 if out.Values[i] == graphql.Null { 38835 out.Invalids++ 38836 } 38837 case "applied": 38838 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_applied(ctx, field, obj) 38839 if out.Values[i] == graphql.Null { 38840 out.Invalids++ 38841 } 38842 case "type": 38843 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_type(ctx, field, obj) 38844 if out.Values[i] == graphql.Null { 38845 out.Invalids++ 38846 } 38847 case "isItemRelated": 38848 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_isItemRelated(ctx, field, obj) 38849 if out.Values[i] == graphql.Null { 38850 out.Invalids++ 38851 } 38852 case "sortOrder": 38853 out.Values[i] = ec._Commerce_Cart_AppliedDiscount_sortOrder(ctx, field, obj) 38854 if out.Values[i] == graphql.Null { 38855 out.Invalids++ 38856 } 38857 default: 38858 panic("unknown field " + strconv.Quote(field.Name)) 38859 } 38860 } 38861 out.Dispatch(ctx) 38862 if out.Invalids > 0 { 38863 return graphql.Null 38864 } 38865 38866 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38867 38868 for label, dfs := range deferred { 38869 ec.processDeferredGroup(graphql.DeferredGroup{ 38870 Label: label, 38871 Path: graphql.GetPath(ctx), 38872 FieldSet: dfs, 38873 Context: ctx, 38874 }) 38875 } 38876 38877 return out 38878 } 38879 38880 var commerce_Cart_AppliedDiscountsImplementors = []string{"Commerce_Cart_AppliedDiscounts"} 38881 38882 func (ec *executionContext) _Commerce_Cart_AppliedDiscounts(ctx context.Context, sel ast.SelectionSet, obj *dto.CartAppliedDiscounts) graphql.Marshaler { 38883 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AppliedDiscountsImplementors) 38884 38885 out := graphql.NewFieldSet(fields) 38886 deferred := make(map[string]*graphql.FieldSet) 38887 for i, field := range fields { 38888 switch field.Name { 38889 case "__typename": 38890 out.Values[i] = graphql.MarshalString("Commerce_Cart_AppliedDiscounts") 38891 case "items": 38892 out.Values[i] = ec._Commerce_Cart_AppliedDiscounts_items(ctx, field, obj) 38893 case "byCampaignCode": 38894 out.Values[i] = ec._Commerce_Cart_AppliedDiscounts_byCampaignCode(ctx, field, obj) 38895 if out.Values[i] == graphql.Null { 38896 out.Invalids++ 38897 } 38898 case "byType": 38899 out.Values[i] = ec._Commerce_Cart_AppliedDiscounts_byType(ctx, field, obj) 38900 if out.Values[i] == graphql.Null { 38901 out.Invalids++ 38902 } 38903 default: 38904 panic("unknown field " + strconv.Quote(field.Name)) 38905 } 38906 } 38907 out.Dispatch(ctx) 38908 if out.Invalids > 0 { 38909 return graphql.Null 38910 } 38911 38912 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38913 38914 for label, dfs := range deferred { 38915 ec.processDeferredGroup(graphql.DeferredGroup{ 38916 Label: label, 38917 Path: graphql.GetPath(ctx), 38918 FieldSet: dfs, 38919 Context: ctx, 38920 }) 38921 } 38922 38923 return out 38924 } 38925 38926 var commerce_Cart_AppliedGiftCardImplementors = []string{"Commerce_Cart_AppliedGiftCard"} 38927 38928 func (ec *executionContext) _Commerce_Cart_AppliedGiftCard(ctx context.Context, sel ast.SelectionSet, obj *cart.AppliedGiftCard) graphql.Marshaler { 38929 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_AppliedGiftCardImplementors) 38930 38931 out := graphql.NewFieldSet(fields) 38932 deferred := make(map[string]*graphql.FieldSet) 38933 for i, field := range fields { 38934 switch field.Name { 38935 case "__typename": 38936 out.Values[i] = graphql.MarshalString("Commerce_Cart_AppliedGiftCard") 38937 case "code": 38938 out.Values[i] = ec._Commerce_Cart_AppliedGiftCard_code(ctx, field, obj) 38939 if out.Values[i] == graphql.Null { 38940 out.Invalids++ 38941 } 38942 case "applied": 38943 out.Values[i] = ec._Commerce_Cart_AppliedGiftCard_applied(ctx, field, obj) 38944 if out.Values[i] == graphql.Null { 38945 out.Invalids++ 38946 } 38947 case "remaining": 38948 out.Values[i] = ec._Commerce_Cart_AppliedGiftCard_remaining(ctx, field, obj) 38949 if out.Values[i] == graphql.Null { 38950 out.Invalids++ 38951 } 38952 case "hasRemaining": 38953 out.Values[i] = ec._Commerce_Cart_AppliedGiftCard_hasRemaining(ctx, field, obj) 38954 if out.Values[i] == graphql.Null { 38955 out.Invalids++ 38956 } 38957 default: 38958 panic("unknown field " + strconv.Quote(field.Name)) 38959 } 38960 } 38961 out.Dispatch(ctx) 38962 if out.Invalids > 0 { 38963 return graphql.Null 38964 } 38965 38966 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 38967 38968 for label, dfs := range deferred { 38969 ec.processDeferredGroup(graphql.DeferredGroup{ 38970 Label: label, 38971 Path: graphql.GetPath(ctx), 38972 FieldSet: dfs, 38973 Context: ctx, 38974 }) 38975 } 38976 38977 return out 38978 } 38979 38980 var commerce_Cart_BillingAddressFormImplementors = []string{"Commerce_Cart_BillingAddressForm"} 38981 38982 func (ec *executionContext) _Commerce_Cart_BillingAddressForm(ctx context.Context, sel ast.SelectionSet, obj *dto.BillingAddressForm) graphql.Marshaler { 38983 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_BillingAddressFormImplementors) 38984 38985 out := graphql.NewFieldSet(fields) 38986 deferred := make(map[string]*graphql.FieldSet) 38987 for i, field := range fields { 38988 switch field.Name { 38989 case "__typename": 38990 out.Values[i] = graphql.MarshalString("Commerce_Cart_BillingAddressForm") 38991 case "formData": 38992 out.Values[i] = ec._Commerce_Cart_BillingAddressForm_formData(ctx, field, obj) 38993 case "validationInfo": 38994 out.Values[i] = ec._Commerce_Cart_BillingAddressForm_validationInfo(ctx, field, obj) 38995 case "processed": 38996 out.Values[i] = ec._Commerce_Cart_BillingAddressForm_processed(ctx, field, obj) 38997 default: 38998 panic("unknown field " + strconv.Quote(field.Name)) 38999 } 39000 } 39001 out.Dispatch(ctx) 39002 if out.Invalids > 0 { 39003 return graphql.Null 39004 } 39005 39006 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39007 39008 for label, dfs := range deferred { 39009 ec.processDeferredGroup(graphql.DeferredGroup{ 39010 Label: label, 39011 Path: graphql.GetPath(ctx), 39012 FieldSet: dfs, 39013 Context: ctx, 39014 }) 39015 } 39016 39017 return out 39018 } 39019 39020 var commerce_Cart_CartImplementors = []string{"Commerce_Cart_Cart"} 39021 39022 func (ec *executionContext) _Commerce_Cart_Cart(ctx context.Context, sel ast.SelectionSet, obj *cart.Cart) graphql.Marshaler { 39023 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_CartImplementors) 39024 39025 out := graphql.NewFieldSet(fields) 39026 deferred := make(map[string]*graphql.FieldSet) 39027 for i, field := range fields { 39028 switch field.Name { 39029 case "__typename": 39030 out.Values[i] = graphql.MarshalString("Commerce_Cart_Cart") 39031 case "id": 39032 out.Values[i] = ec._Commerce_Cart_Cart_id(ctx, field, obj) 39033 if out.Values[i] == graphql.Null { 39034 atomic.AddUint32(&out.Invalids, 1) 39035 } 39036 case "entityID": 39037 out.Values[i] = ec._Commerce_Cart_Cart_entityID(ctx, field, obj) 39038 if out.Values[i] == graphql.Null { 39039 atomic.AddUint32(&out.Invalids, 1) 39040 } 39041 case "billingAddress": 39042 out.Values[i] = ec._Commerce_Cart_Cart_billingAddress(ctx, field, obj) 39043 case "purchaser": 39044 out.Values[i] = ec._Commerce_Cart_Cart_purchaser(ctx, field, obj) 39045 case "deliveries": 39046 out.Values[i] = ec._Commerce_Cart_Cart_deliveries(ctx, field, obj) 39047 case "additionalData": 39048 out.Values[i] = ec._Commerce_Cart_Cart_additionalData(ctx, field, obj) 39049 if out.Values[i] == graphql.Null { 39050 atomic.AddUint32(&out.Invalids, 1) 39051 } 39052 case "paymentSelection": 39053 out.Values[i] = ec._Commerce_Cart_Cart_paymentSelection(ctx, field, obj) 39054 case "belongsToAuthenticatedUser": 39055 out.Values[i] = ec._Commerce_Cart_Cart_belongsToAuthenticatedUser(ctx, field, obj) 39056 if out.Values[i] == graphql.Null { 39057 atomic.AddUint32(&out.Invalids, 1) 39058 } 39059 case "authenticatedUserID": 39060 out.Values[i] = ec._Commerce_Cart_Cart_authenticatedUserID(ctx, field, obj) 39061 if out.Values[i] == graphql.Null { 39062 atomic.AddUint32(&out.Invalids, 1) 39063 } 39064 case "appliedCouponCodes": 39065 out.Values[i] = ec._Commerce_Cart_Cart_appliedCouponCodes(ctx, field, obj) 39066 case "defaultCurrency": 39067 out.Values[i] = ec._Commerce_Cart_Cart_defaultCurrency(ctx, field, obj) 39068 if out.Values[i] == graphql.Null { 39069 atomic.AddUint32(&out.Invalids, 1) 39070 } 39071 case "totalitems": 39072 out.Values[i] = ec._Commerce_Cart_Cart_totalitems(ctx, field, obj) 39073 case "itemCount": 39074 out.Values[i] = ec._Commerce_Cart_Cart_itemCount(ctx, field, obj) 39075 if out.Values[i] == graphql.Null { 39076 atomic.AddUint32(&out.Invalids, 1) 39077 } 39078 case "productCount": 39079 out.Values[i] = ec._Commerce_Cart_Cart_productCount(ctx, field, obj) 39080 if out.Values[i] == graphql.Null { 39081 atomic.AddUint32(&out.Invalids, 1) 39082 } 39083 case "isPaymentSelected": 39084 out.Values[i] = ec._Commerce_Cart_Cart_isPaymentSelected(ctx, field, obj) 39085 if out.Values[i] == graphql.Null { 39086 atomic.AddUint32(&out.Invalids, 1) 39087 } 39088 case "grandTotal": 39089 out.Values[i] = ec._Commerce_Cart_Cart_grandTotal(ctx, field, obj) 39090 if out.Values[i] == graphql.Null { 39091 atomic.AddUint32(&out.Invalids, 1) 39092 } 39093 case "sumTotalTaxAmount": 39094 out.Values[i] = ec._Commerce_Cart_Cart_sumTotalTaxAmount(ctx, field, obj) 39095 if out.Values[i] == graphql.Null { 39096 atomic.AddUint32(&out.Invalids, 1) 39097 } 39098 case "subTotalNet": 39099 out.Values[i] = ec._Commerce_Cart_Cart_subTotalNet(ctx, field, obj) 39100 if out.Values[i] == graphql.Null { 39101 atomic.AddUint32(&out.Invalids, 1) 39102 } 39103 case "appliedGiftCards": 39104 out.Values[i] = ec._Commerce_Cart_Cart_appliedGiftCards(ctx, field, obj) 39105 case "getDeliveryByCode": 39106 field := field 39107 39108 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 39109 defer func() { 39110 if r := recover(); r != nil { 39111 ec.Error(ctx, ec.Recover(ctx, r)) 39112 } 39113 }() 39114 res = ec._Commerce_Cart_Cart_getDeliveryByCode(ctx, field, obj) 39115 return res 39116 } 39117 39118 if field.Deferrable != nil { 39119 dfs, ok := deferred[field.Deferrable.Label] 39120 di := 0 39121 if ok { 39122 dfs.AddField(field) 39123 di = len(dfs.Values) - 1 39124 } else { 39125 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 39126 deferred[field.Deferrable.Label] = dfs 39127 } 39128 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 39129 return innerFunc(ctx, dfs) 39130 }) 39131 39132 // don't run the out.Concurrently() call below 39133 out.Values[i] = graphql.Null 39134 continue 39135 } 39136 39137 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 39138 case "getDeliveryCodes": 39139 out.Values[i] = ec._Commerce_Cart_Cart_getDeliveryCodes(ctx, field, obj) 39140 case "getMainShippingEMail": 39141 out.Values[i] = ec._Commerce_Cart_Cart_getMainShippingEMail(ctx, field, obj) 39142 if out.Values[i] == graphql.Null { 39143 atomic.AddUint32(&out.Invalids, 1) 39144 } 39145 case "isEmpty": 39146 out.Values[i] = ec._Commerce_Cart_Cart_isEmpty(ctx, field, obj) 39147 if out.Values[i] == graphql.Null { 39148 atomic.AddUint32(&out.Invalids, 1) 39149 } 39150 case "hasDeliveryForCode": 39151 out.Values[i] = ec._Commerce_Cart_Cart_hasDeliveryForCode(ctx, field, obj) 39152 if out.Values[i] == graphql.Null { 39153 atomic.AddUint32(&out.Invalids, 1) 39154 } 39155 case "getDeliveryByItemID": 39156 out.Values[i] = ec._Commerce_Cart_Cart_getDeliveryByItemID(ctx, field, obj) 39157 if out.Values[i] == graphql.Null { 39158 atomic.AddUint32(&out.Invalids, 1) 39159 } 39160 case "getByItemID": 39161 out.Values[i] = ec._Commerce_Cart_Cart_getByItemID(ctx, field, obj) 39162 if out.Values[i] == graphql.Null { 39163 atomic.AddUint32(&out.Invalids, 1) 39164 } 39165 case "getTotalQty": 39166 out.Values[i] = ec._Commerce_Cart_Cart_getTotalQty(ctx, field, obj) 39167 case "getByExternalReference": 39168 out.Values[i] = ec._Commerce_Cart_Cart_getByExternalReference(ctx, field, obj) 39169 if out.Values[i] == graphql.Null { 39170 atomic.AddUint32(&out.Invalids, 1) 39171 } 39172 case "getVoucherSavings": 39173 out.Values[i] = ec._Commerce_Cart_Cart_getVoucherSavings(ctx, field, obj) 39174 if out.Values[i] == graphql.Null { 39175 atomic.AddUint32(&out.Invalids, 1) 39176 } 39177 case "getCartTeaser": 39178 out.Values[i] = ec._Commerce_Cart_Cart_getCartTeaser(ctx, field, obj) 39179 if out.Values[i] == graphql.Null { 39180 atomic.AddUint32(&out.Invalids, 1) 39181 } 39182 case "shippingNet": 39183 out.Values[i] = ec._Commerce_Cart_Cart_shippingNet(ctx, field, obj) 39184 if out.Values[i] == graphql.Null { 39185 atomic.AddUint32(&out.Invalids, 1) 39186 } 39187 case "shippingNetWithDiscounts": 39188 out.Values[i] = ec._Commerce_Cart_Cart_shippingNetWithDiscounts(ctx, field, obj) 39189 if out.Values[i] == graphql.Null { 39190 atomic.AddUint32(&out.Invalids, 1) 39191 } 39192 case "shippingGross": 39193 out.Values[i] = ec._Commerce_Cart_Cart_shippingGross(ctx, field, obj) 39194 if out.Values[i] == graphql.Null { 39195 atomic.AddUint32(&out.Invalids, 1) 39196 } 39197 case "shippingGrossWithDiscounts": 39198 out.Values[i] = ec._Commerce_Cart_Cart_shippingGrossWithDiscounts(ctx, field, obj) 39199 if out.Values[i] == graphql.Null { 39200 atomic.AddUint32(&out.Invalids, 1) 39201 } 39202 case "hasShippingCosts": 39203 out.Values[i] = ec._Commerce_Cart_Cart_hasShippingCosts(ctx, field, obj) 39204 if out.Values[i] == graphql.Null { 39205 atomic.AddUint32(&out.Invalids, 1) 39206 } 39207 case "allShippingTitles": 39208 out.Values[i] = ec._Commerce_Cart_Cart_allShippingTitles(ctx, field, obj) 39209 case "subTotalGross": 39210 out.Values[i] = ec._Commerce_Cart_Cart_subTotalGross(ctx, field, obj) 39211 if out.Values[i] == graphql.Null { 39212 atomic.AddUint32(&out.Invalids, 1) 39213 } 39214 case "subTotalGrossWithDiscounts": 39215 out.Values[i] = ec._Commerce_Cart_Cart_subTotalGrossWithDiscounts(ctx, field, obj) 39216 if out.Values[i] == graphql.Null { 39217 atomic.AddUint32(&out.Invalids, 1) 39218 } 39219 case "subTotalNetWithDiscounts": 39220 out.Values[i] = ec._Commerce_Cart_Cart_subTotalNetWithDiscounts(ctx, field, obj) 39221 if out.Values[i] == graphql.Null { 39222 atomic.AddUint32(&out.Invalids, 1) 39223 } 39224 case "totalDiscountAmount": 39225 out.Values[i] = ec._Commerce_Cart_Cart_totalDiscountAmount(ctx, field, obj) 39226 if out.Values[i] == graphql.Null { 39227 atomic.AddUint32(&out.Invalids, 1) 39228 } 39229 case "nonItemRelatedDiscountAmount": 39230 out.Values[i] = ec._Commerce_Cart_Cart_nonItemRelatedDiscountAmount(ctx, field, obj) 39231 if out.Values[i] == graphql.Null { 39232 atomic.AddUint32(&out.Invalids, 1) 39233 } 39234 case "itemRelatedDiscountAmount": 39235 out.Values[i] = ec._Commerce_Cart_Cart_itemRelatedDiscountAmount(ctx, field, obj) 39236 if out.Values[i] == graphql.Null { 39237 atomic.AddUint32(&out.Invalids, 1) 39238 } 39239 case "hasAppliedCouponCode": 39240 out.Values[i] = ec._Commerce_Cart_Cart_hasAppliedCouponCode(ctx, field, obj) 39241 if out.Values[i] == graphql.Null { 39242 atomic.AddUint32(&out.Invalids, 1) 39243 } 39244 case "getPaymentReference": 39245 out.Values[i] = ec._Commerce_Cart_Cart_getPaymentReference(ctx, field, obj) 39246 if out.Values[i] == graphql.Null { 39247 atomic.AddUint32(&out.Invalids, 1) 39248 } 39249 case "getTotalItemsByType": 39250 out.Values[i] = ec._Commerce_Cart_Cart_getTotalItemsByType(ctx, field, obj) 39251 case "grandTotalCharges": 39252 out.Values[i] = ec._Commerce_Cart_Cart_grandTotalCharges(ctx, field, obj) 39253 if out.Values[i] == graphql.Null { 39254 atomic.AddUint32(&out.Invalids, 1) 39255 } 39256 case "hasAppliedGiftCards": 39257 out.Values[i] = ec._Commerce_Cart_Cart_hasAppliedGiftCards(ctx, field, obj) 39258 if out.Values[i] == graphql.Null { 39259 atomic.AddUint32(&out.Invalids, 1) 39260 } 39261 case "hasRemainingGiftCards": 39262 out.Values[i] = ec._Commerce_Cart_Cart_hasRemainingGiftCards(ctx, field, obj) 39263 if out.Values[i] == graphql.Null { 39264 atomic.AddUint32(&out.Invalids, 1) 39265 } 39266 default: 39267 panic("unknown field " + strconv.Quote(field.Name)) 39268 } 39269 } 39270 out.Dispatch(ctx) 39271 if out.Invalids > 0 { 39272 return graphql.Null 39273 } 39274 39275 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39276 39277 for label, dfs := range deferred { 39278 ec.processDeferredGroup(graphql.DeferredGroup{ 39279 Label: label, 39280 Path: graphql.GetPath(ctx), 39281 FieldSet: dfs, 39282 Context: ctx, 39283 }) 39284 } 39285 39286 return out 39287 } 39288 39289 var commerce_Cart_CouponCodeImplementors = []string{"Commerce_Cart_CouponCode"} 39290 39291 func (ec *executionContext) _Commerce_Cart_CouponCode(ctx context.Context, sel ast.SelectionSet, obj *cart.CouponCode) graphql.Marshaler { 39292 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_CouponCodeImplementors) 39293 39294 out := graphql.NewFieldSet(fields) 39295 deferred := make(map[string]*graphql.FieldSet) 39296 for i, field := range fields { 39297 switch field.Name { 39298 case "__typename": 39299 out.Values[i] = graphql.MarshalString("Commerce_Cart_CouponCode") 39300 case "code": 39301 out.Values[i] = ec._Commerce_Cart_CouponCode_code(ctx, field, obj) 39302 if out.Values[i] == graphql.Null { 39303 out.Invalids++ 39304 } 39305 default: 39306 panic("unknown field " + strconv.Quote(field.Name)) 39307 } 39308 } 39309 out.Dispatch(ctx) 39310 if out.Invalids > 0 { 39311 return graphql.Null 39312 } 39313 39314 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39315 39316 for label, dfs := range deferred { 39317 ec.processDeferredGroup(graphql.DeferredGroup{ 39318 Label: label, 39319 Path: graphql.GetPath(ctx), 39320 FieldSet: dfs, 39321 Context: ctx, 39322 }) 39323 } 39324 39325 return out 39326 } 39327 39328 var commerce_Cart_CustomAttributesImplementors = []string{"Commerce_Cart_CustomAttributes"} 39329 39330 func (ec *executionContext) _Commerce_Cart_CustomAttributes(ctx context.Context, sel ast.SelectionSet, obj *dto.CustomAttributes) graphql.Marshaler { 39331 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_CustomAttributesImplementors) 39332 39333 out := graphql.NewFieldSet(fields) 39334 deferred := make(map[string]*graphql.FieldSet) 39335 for i, field := range fields { 39336 switch field.Name { 39337 case "__typename": 39338 out.Values[i] = graphql.MarshalString("Commerce_Cart_CustomAttributes") 39339 case "get": 39340 out.Values[i] = ec._Commerce_Cart_CustomAttributes_get(ctx, field, obj) 39341 default: 39342 panic("unknown field " + strconv.Quote(field.Name)) 39343 } 39344 } 39345 out.Dispatch(ctx) 39346 if out.Invalids > 0 { 39347 return graphql.Null 39348 } 39349 39350 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39351 39352 for label, dfs := range deferred { 39353 ec.processDeferredGroup(graphql.DeferredGroup{ 39354 Label: label, 39355 Path: graphql.GetPath(ctx), 39356 FieldSet: dfs, 39357 Context: ctx, 39358 }) 39359 } 39360 39361 return out 39362 } 39363 39364 var commerce_Cart_DecoratedCartImplementors = []string{"Commerce_Cart_DecoratedCart"} 39365 39366 func (ec *executionContext) _Commerce_Cart_DecoratedCart(ctx context.Context, sel ast.SelectionSet, obj *dto.DecoratedCart) graphql.Marshaler { 39367 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DecoratedCartImplementors) 39368 39369 out := graphql.NewFieldSet(fields) 39370 deferred := make(map[string]*graphql.FieldSet) 39371 for i, field := range fields { 39372 switch field.Name { 39373 case "__typename": 39374 out.Values[i] = graphql.MarshalString("Commerce_Cart_DecoratedCart") 39375 case "cart": 39376 out.Values[i] = ec._Commerce_Cart_DecoratedCart_cart(ctx, field, obj) 39377 if out.Values[i] == graphql.Null { 39378 out.Invalids++ 39379 } 39380 case "decoratedDeliveries": 39381 out.Values[i] = ec._Commerce_Cart_DecoratedCart_decoratedDeliveries(ctx, field, obj) 39382 case "getDecoratedDeliveryByCode": 39383 out.Values[i] = ec._Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode(ctx, field, obj) 39384 case "getAllPaymentRequiredItems": 39385 out.Values[i] = ec._Commerce_Cart_DecoratedCart_getAllPaymentRequiredItems(ctx, field, obj) 39386 if out.Values[i] == graphql.Null { 39387 out.Invalids++ 39388 } 39389 case "cartSummary": 39390 out.Values[i] = ec._Commerce_Cart_DecoratedCart_cartSummary(ctx, field, obj) 39391 if out.Values[i] == graphql.Null { 39392 out.Invalids++ 39393 } 39394 default: 39395 panic("unknown field " + strconv.Quote(field.Name)) 39396 } 39397 } 39398 out.Dispatch(ctx) 39399 if out.Invalids > 0 { 39400 return graphql.Null 39401 } 39402 39403 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39404 39405 for label, dfs := range deferred { 39406 ec.processDeferredGroup(graphql.DeferredGroup{ 39407 Label: label, 39408 Path: graphql.GetPath(ctx), 39409 FieldSet: dfs, 39410 Context: ctx, 39411 }) 39412 } 39413 39414 return out 39415 } 39416 39417 var commerce_Cart_DecoratedDeliveryImplementors = []string{"Commerce_Cart_DecoratedDelivery"} 39418 39419 func (ec *executionContext) _Commerce_Cart_DecoratedDelivery(ctx context.Context, sel ast.SelectionSet, obj *dto.DecoratedDelivery) graphql.Marshaler { 39420 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DecoratedDeliveryImplementors) 39421 39422 out := graphql.NewFieldSet(fields) 39423 deferred := make(map[string]*graphql.FieldSet) 39424 for i, field := range fields { 39425 switch field.Name { 39426 case "__typename": 39427 out.Values[i] = graphql.MarshalString("Commerce_Cart_DecoratedDelivery") 39428 case "delivery": 39429 out.Values[i] = ec._Commerce_Cart_DecoratedDelivery_delivery(ctx, field, obj) 39430 if out.Values[i] == graphql.Null { 39431 out.Invalids++ 39432 } 39433 case "decoratedItems": 39434 out.Values[i] = ec._Commerce_Cart_DecoratedDelivery_decoratedItems(ctx, field, obj) 39435 default: 39436 panic("unknown field " + strconv.Quote(field.Name)) 39437 } 39438 } 39439 out.Dispatch(ctx) 39440 if out.Invalids > 0 { 39441 return graphql.Null 39442 } 39443 39444 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39445 39446 for label, dfs := range deferred { 39447 ec.processDeferredGroup(graphql.DeferredGroup{ 39448 Label: label, 39449 Path: graphql.GetPath(ctx), 39450 FieldSet: dfs, 39451 Context: ctx, 39452 }) 39453 } 39454 39455 return out 39456 } 39457 39458 var commerce_Cart_DecoratedItemImplementors = []string{"Commerce_Cart_DecoratedItem"} 39459 39460 func (ec *executionContext) _Commerce_Cart_DecoratedItem(ctx context.Context, sel ast.SelectionSet, obj *dto.DecoratedCartItem) graphql.Marshaler { 39461 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DecoratedItemImplementors) 39462 39463 out := graphql.NewFieldSet(fields) 39464 deferred := make(map[string]*graphql.FieldSet) 39465 for i, field := range fields { 39466 switch field.Name { 39467 case "__typename": 39468 out.Values[i] = graphql.MarshalString("Commerce_Cart_DecoratedItem") 39469 case "item": 39470 out.Values[i] = ec._Commerce_Cart_DecoratedItem_item(ctx, field, obj) 39471 case "product": 39472 out.Values[i] = ec._Commerce_Cart_DecoratedItem_product(ctx, field, obj) 39473 default: 39474 panic("unknown field " + strconv.Quote(field.Name)) 39475 } 39476 } 39477 out.Dispatch(ctx) 39478 if out.Invalids > 0 { 39479 return graphql.Null 39480 } 39481 39482 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39483 39484 for label, dfs := range deferred { 39485 ec.processDeferredGroup(graphql.DeferredGroup{ 39486 Label: label, 39487 Path: graphql.GetPath(ctx), 39488 FieldSet: dfs, 39489 Context: ctx, 39490 }) 39491 } 39492 39493 return out 39494 } 39495 39496 var commerce_Cart_DefaultPaymentSelectionImplementors = []string{"Commerce_Cart_DefaultPaymentSelection", "Commerce_Cart_PaymentSelection"} 39497 39498 func (ec *executionContext) _Commerce_Cart_DefaultPaymentSelection(ctx context.Context, sel ast.SelectionSet, obj *cart.DefaultPaymentSelection) graphql.Marshaler { 39499 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DefaultPaymentSelectionImplementors) 39500 39501 out := graphql.NewFieldSet(fields) 39502 deferred := make(map[string]*graphql.FieldSet) 39503 for i, field := range fields { 39504 switch field.Name { 39505 case "__typename": 39506 out.Values[i] = graphql.MarshalString("Commerce_Cart_DefaultPaymentSelection") 39507 case "gateway": 39508 out.Values[i] = ec._Commerce_Cart_DefaultPaymentSelection_gateway(ctx, field, obj) 39509 if out.Values[i] == graphql.Null { 39510 atomic.AddUint32(&out.Invalids, 1) 39511 } 39512 case "totalValue": 39513 out.Values[i] = ec._Commerce_Cart_DefaultPaymentSelection_totalValue(ctx, field, obj) 39514 if out.Values[i] == graphql.Null { 39515 atomic.AddUint32(&out.Invalids, 1) 39516 } 39517 case "cartSplit": 39518 field := field 39519 39520 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 39521 defer func() { 39522 if r := recover(); r != nil { 39523 ec.Error(ctx, ec.Recover(ctx, r)) 39524 } 39525 }() 39526 res = ec._Commerce_Cart_DefaultPaymentSelection_cartSplit(ctx, field, obj) 39527 return res 39528 } 39529 39530 if field.Deferrable != nil { 39531 dfs, ok := deferred[field.Deferrable.Label] 39532 di := 0 39533 if ok { 39534 dfs.AddField(field) 39535 di = len(dfs.Values) - 1 39536 } else { 39537 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 39538 deferred[field.Deferrable.Label] = dfs 39539 } 39540 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 39541 return innerFunc(ctx, dfs) 39542 }) 39543 39544 // don't run the out.Concurrently() call below 39545 out.Values[i] = graphql.Null 39546 continue 39547 } 39548 39549 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 39550 default: 39551 panic("unknown field " + strconv.Quote(field.Name)) 39552 } 39553 } 39554 out.Dispatch(ctx) 39555 if out.Invalids > 0 { 39556 return graphql.Null 39557 } 39558 39559 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39560 39561 for label, dfs := range deferred { 39562 ec.processDeferredGroup(graphql.DeferredGroup{ 39563 Label: label, 39564 Path: graphql.GetPath(ctx), 39565 FieldSet: dfs, 39566 Context: ctx, 39567 }) 39568 } 39569 39570 return out 39571 } 39572 39573 var commerce_Cart_DeliveryImplementors = []string{"Commerce_Cart_Delivery"} 39574 39575 func (ec *executionContext) _Commerce_Cart_Delivery(ctx context.Context, sel ast.SelectionSet, obj *cart.Delivery) graphql.Marshaler { 39576 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DeliveryImplementors) 39577 39578 out := graphql.NewFieldSet(fields) 39579 deferred := make(map[string]*graphql.FieldSet) 39580 for i, field := range fields { 39581 switch field.Name { 39582 case "__typename": 39583 out.Values[i] = graphql.MarshalString("Commerce_Cart_Delivery") 39584 case "deliveryInfo": 39585 out.Values[i] = ec._Commerce_Cart_Delivery_deliveryInfo(ctx, field, obj) 39586 case "cartitems": 39587 out.Values[i] = ec._Commerce_Cart_Delivery_cartitems(ctx, field, obj) 39588 case "shippingItem": 39589 out.Values[i] = ec._Commerce_Cart_Delivery_shippingItem(ctx, field, obj) 39590 case "subTotalGross": 39591 out.Values[i] = ec._Commerce_Cart_Delivery_subTotalGross(ctx, field, obj) 39592 case "grandTotal": 39593 out.Values[i] = ec._Commerce_Cart_Delivery_grandTotal(ctx, field, obj) 39594 case "sumTotalTaxAmount": 39595 out.Values[i] = ec._Commerce_Cart_Delivery_sumTotalTaxAmount(ctx, field, obj) 39596 case "subTotalNet": 39597 out.Values[i] = ec._Commerce_Cart_Delivery_subTotalNet(ctx, field, obj) 39598 case "totalDiscountAmount": 39599 out.Values[i] = ec._Commerce_Cart_Delivery_totalDiscountAmount(ctx, field, obj) 39600 case "nonItemRelatedDiscountAmount": 39601 out.Values[i] = ec._Commerce_Cart_Delivery_nonItemRelatedDiscountAmount(ctx, field, obj) 39602 case "itemRelatedDiscountAmount": 39603 out.Values[i] = ec._Commerce_Cart_Delivery_itemRelatedDiscountAmount(ctx, field, obj) 39604 case "subTotalGrossWithDiscounts": 39605 out.Values[i] = ec._Commerce_Cart_Delivery_subTotalGrossWithDiscounts(ctx, field, obj) 39606 case "subTotalNetWithDiscounts": 39607 out.Values[i] = ec._Commerce_Cart_Delivery_subTotalNetWithDiscounts(ctx, field, obj) 39608 if out.Values[i] == graphql.Null { 39609 out.Invalids++ 39610 } 39611 case "hasItems": 39612 out.Values[i] = ec._Commerce_Cart_Delivery_hasItems(ctx, field, obj) 39613 if out.Values[i] == graphql.Null { 39614 out.Invalids++ 39615 } 39616 default: 39617 panic("unknown field " + strconv.Quote(field.Name)) 39618 } 39619 } 39620 out.Dispatch(ctx) 39621 if out.Invalids > 0 { 39622 return graphql.Null 39623 } 39624 39625 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39626 39627 for label, dfs := range deferred { 39628 ec.processDeferredGroup(graphql.DeferredGroup{ 39629 Label: label, 39630 Path: graphql.GetPath(ctx), 39631 FieldSet: dfs, 39632 Context: ctx, 39633 }) 39634 } 39635 39636 return out 39637 } 39638 39639 var commerce_Cart_DeliveryAddressFormImplementors = []string{"Commerce_Cart_DeliveryAddressForm"} 39640 39641 func (ec *executionContext) _Commerce_Cart_DeliveryAddressForm(ctx context.Context, sel ast.SelectionSet, obj *dto.DeliveryAddressForm) graphql.Marshaler { 39642 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DeliveryAddressFormImplementors) 39643 39644 out := graphql.NewFieldSet(fields) 39645 deferred := make(map[string]*graphql.FieldSet) 39646 for i, field := range fields { 39647 switch field.Name { 39648 case "__typename": 39649 out.Values[i] = graphql.MarshalString("Commerce_Cart_DeliveryAddressForm") 39650 case "deliveryCode": 39651 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_deliveryCode(ctx, field, obj) 39652 if out.Values[i] == graphql.Null { 39653 out.Invalids++ 39654 } 39655 case "formData": 39656 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_formData(ctx, field, obj) 39657 case "useBillingAddress": 39658 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_useBillingAddress(ctx, field, obj) 39659 if out.Values[i] == graphql.Null { 39660 out.Invalids++ 39661 } 39662 case "method": 39663 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_method(ctx, field, obj) 39664 case "carrier": 39665 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_carrier(ctx, field, obj) 39666 case "desiredTime": 39667 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_desiredTime(ctx, field, obj) 39668 case "validationInfo": 39669 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_validationInfo(ctx, field, obj) 39670 case "processed": 39671 out.Values[i] = ec._Commerce_Cart_DeliveryAddressForm_processed(ctx, field, obj) 39672 default: 39673 panic("unknown field " + strconv.Quote(field.Name)) 39674 } 39675 } 39676 out.Dispatch(ctx) 39677 if out.Invalids > 0 { 39678 return graphql.Null 39679 } 39680 39681 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39682 39683 for label, dfs := range deferred { 39684 ec.processDeferredGroup(graphql.DeferredGroup{ 39685 Label: label, 39686 Path: graphql.GetPath(ctx), 39687 FieldSet: dfs, 39688 Context: ctx, 39689 }) 39690 } 39691 39692 return out 39693 } 39694 39695 var commerce_Cart_DeliveryInfoImplementors = []string{"Commerce_Cart_DeliveryInfo"} 39696 39697 func (ec *executionContext) _Commerce_Cart_DeliveryInfo(ctx context.Context, sel ast.SelectionSet, obj *cart.DeliveryInfo) graphql.Marshaler { 39698 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DeliveryInfoImplementors) 39699 39700 out := graphql.NewFieldSet(fields) 39701 deferred := make(map[string]*graphql.FieldSet) 39702 for i, field := range fields { 39703 switch field.Name { 39704 case "__typename": 39705 out.Values[i] = graphql.MarshalString("Commerce_Cart_DeliveryInfo") 39706 case "code": 39707 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_code(ctx, field, obj) 39708 if out.Values[i] == graphql.Null { 39709 atomic.AddUint32(&out.Invalids, 1) 39710 } 39711 case "workflow": 39712 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_workflow(ctx, field, obj) 39713 if out.Values[i] == graphql.Null { 39714 atomic.AddUint32(&out.Invalids, 1) 39715 } 39716 case "method": 39717 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_method(ctx, field, obj) 39718 if out.Values[i] == graphql.Null { 39719 atomic.AddUint32(&out.Invalids, 1) 39720 } 39721 case "carrier": 39722 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_carrier(ctx, field, obj) 39723 if out.Values[i] == graphql.Null { 39724 atomic.AddUint32(&out.Invalids, 1) 39725 } 39726 case "deliveryLocation": 39727 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_deliveryLocation(ctx, field, obj) 39728 case "desiredTime": 39729 out.Values[i] = ec._Commerce_Cart_DeliveryInfo_desiredTime(ctx, field, obj) 39730 case "additionalData": 39731 field := field 39732 39733 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 39734 defer func() { 39735 if r := recover(); r != nil { 39736 ec.Error(ctx, ec.Recover(ctx, r)) 39737 } 39738 }() 39739 res = ec._Commerce_Cart_DeliveryInfo_additionalData(ctx, field, obj) 39740 if res == graphql.Null { 39741 atomic.AddUint32(&fs.Invalids, 1) 39742 } 39743 return res 39744 } 39745 39746 if field.Deferrable != nil { 39747 dfs, ok := deferred[field.Deferrable.Label] 39748 di := 0 39749 if ok { 39750 dfs.AddField(field) 39751 di = len(dfs.Values) - 1 39752 } else { 39753 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 39754 deferred[field.Deferrable.Label] = dfs 39755 } 39756 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 39757 return innerFunc(ctx, dfs) 39758 }) 39759 39760 // don't run the out.Concurrently() call below 39761 out.Values[i] = graphql.Null 39762 continue 39763 } 39764 39765 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 39766 default: 39767 panic("unknown field " + strconv.Quote(field.Name)) 39768 } 39769 } 39770 out.Dispatch(ctx) 39771 if out.Invalids > 0 { 39772 return graphql.Null 39773 } 39774 39775 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39776 39777 for label, dfs := range deferred { 39778 ec.processDeferredGroup(graphql.DeferredGroup{ 39779 Label: label, 39780 Path: graphql.GetPath(ctx), 39781 FieldSet: dfs, 39782 Context: ctx, 39783 }) 39784 } 39785 39786 return out 39787 } 39788 39789 var commerce_Cart_DeliveryLocationImplementors = []string{"Commerce_Cart_DeliveryLocation"} 39790 39791 func (ec *executionContext) _Commerce_Cart_DeliveryLocation(ctx context.Context, sel ast.SelectionSet, obj *cart.DeliveryLocation) graphql.Marshaler { 39792 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_DeliveryLocationImplementors) 39793 39794 out := graphql.NewFieldSet(fields) 39795 deferred := make(map[string]*graphql.FieldSet) 39796 for i, field := range fields { 39797 switch field.Name { 39798 case "__typename": 39799 out.Values[i] = graphql.MarshalString("Commerce_Cart_DeliveryLocation") 39800 case "type": 39801 out.Values[i] = ec._Commerce_Cart_DeliveryLocation_type(ctx, field, obj) 39802 if out.Values[i] == graphql.Null { 39803 out.Invalids++ 39804 } 39805 case "address": 39806 out.Values[i] = ec._Commerce_Cart_DeliveryLocation_address(ctx, field, obj) 39807 case "useBillingAddress": 39808 out.Values[i] = ec._Commerce_Cart_DeliveryLocation_useBillingAddress(ctx, field, obj) 39809 if out.Values[i] == graphql.Null { 39810 out.Invalids++ 39811 } 39812 case "code": 39813 out.Values[i] = ec._Commerce_Cart_DeliveryLocation_code(ctx, field, obj) 39814 if out.Values[i] == graphql.Null { 39815 out.Invalids++ 39816 } 39817 default: 39818 panic("unknown field " + strconv.Quote(field.Name)) 39819 } 39820 } 39821 out.Dispatch(ctx) 39822 if out.Invalids > 0 { 39823 return graphql.Null 39824 } 39825 39826 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39827 39828 for label, dfs := range deferred { 39829 ec.processDeferredGroup(graphql.DeferredGroup{ 39830 Label: label, 39831 Path: graphql.GetPath(ctx), 39832 FieldSet: dfs, 39833 Context: ctx, 39834 }) 39835 } 39836 39837 return out 39838 } 39839 39840 var commerce_Cart_ExistingCustomerDataImplementors = []string{"Commerce_Cart_ExistingCustomerData"} 39841 39842 func (ec *executionContext) _Commerce_Cart_ExistingCustomerData(ctx context.Context, sel ast.SelectionSet, obj *cart.ExistingCustomerData) graphql.Marshaler { 39843 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_ExistingCustomerDataImplementors) 39844 39845 out := graphql.NewFieldSet(fields) 39846 deferred := make(map[string]*graphql.FieldSet) 39847 for i, field := range fields { 39848 switch field.Name { 39849 case "__typename": 39850 out.Values[i] = graphql.MarshalString("Commerce_Cart_ExistingCustomerData") 39851 case "id": 39852 out.Values[i] = ec._Commerce_Cart_ExistingCustomerData_id(ctx, field, obj) 39853 if out.Values[i] == graphql.Null { 39854 out.Invalids++ 39855 } 39856 default: 39857 panic("unknown field " + strconv.Quote(field.Name)) 39858 } 39859 } 39860 out.Dispatch(ctx) 39861 if out.Invalids > 0 { 39862 return graphql.Null 39863 } 39864 39865 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39866 39867 for label, dfs := range deferred { 39868 ec.processDeferredGroup(graphql.DeferredGroup{ 39869 Label: label, 39870 Path: graphql.GetPath(ctx), 39871 FieldSet: dfs, 39872 Context: ctx, 39873 }) 39874 } 39875 39876 return out 39877 } 39878 39879 var commerce_Cart_Form_ErrorImplementors = []string{"Commerce_Cart_Form_Error"} 39880 39881 func (ec *executionContext) _Commerce_Cart_Form_Error(ctx context.Context, sel ast.SelectionSet, obj *domain4.Error) graphql.Marshaler { 39882 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_Form_ErrorImplementors) 39883 39884 out := graphql.NewFieldSet(fields) 39885 deferred := make(map[string]*graphql.FieldSet) 39886 for i, field := range fields { 39887 switch field.Name { 39888 case "__typename": 39889 out.Values[i] = graphql.MarshalString("Commerce_Cart_Form_Error") 39890 case "messageKey": 39891 out.Values[i] = ec._Commerce_Cart_Form_Error_messageKey(ctx, field, obj) 39892 if out.Values[i] == graphql.Null { 39893 out.Invalids++ 39894 } 39895 case "defaultLabel": 39896 out.Values[i] = ec._Commerce_Cart_Form_Error_defaultLabel(ctx, field, obj) 39897 if out.Values[i] == graphql.Null { 39898 out.Invalids++ 39899 } 39900 default: 39901 panic("unknown field " + strconv.Quote(field.Name)) 39902 } 39903 } 39904 out.Dispatch(ctx) 39905 if out.Invalids > 0 { 39906 return graphql.Null 39907 } 39908 39909 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39910 39911 for label, dfs := range deferred { 39912 ec.processDeferredGroup(graphql.DeferredGroup{ 39913 Label: label, 39914 Path: graphql.GetPath(ctx), 39915 FieldSet: dfs, 39916 Context: ctx, 39917 }) 39918 } 39919 39920 return out 39921 } 39922 39923 var commerce_Cart_Form_FieldErrorImplementors = []string{"Commerce_Cart_Form_FieldError"} 39924 39925 func (ec *executionContext) _Commerce_Cart_Form_FieldError(ctx context.Context, sel ast.SelectionSet, obj *dto.FieldError) graphql.Marshaler { 39926 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_Form_FieldErrorImplementors) 39927 39928 out := graphql.NewFieldSet(fields) 39929 deferred := make(map[string]*graphql.FieldSet) 39930 for i, field := range fields { 39931 switch field.Name { 39932 case "__typename": 39933 out.Values[i] = graphql.MarshalString("Commerce_Cart_Form_FieldError") 39934 case "messageKey": 39935 out.Values[i] = ec._Commerce_Cart_Form_FieldError_messageKey(ctx, field, obj) 39936 if out.Values[i] == graphql.Null { 39937 out.Invalids++ 39938 } 39939 case "defaultLabel": 39940 out.Values[i] = ec._Commerce_Cart_Form_FieldError_defaultLabel(ctx, field, obj) 39941 if out.Values[i] == graphql.Null { 39942 out.Invalids++ 39943 } 39944 case "fieldName": 39945 out.Values[i] = ec._Commerce_Cart_Form_FieldError_fieldName(ctx, field, obj) 39946 if out.Values[i] == graphql.Null { 39947 out.Invalids++ 39948 } 39949 default: 39950 panic("unknown field " + strconv.Quote(field.Name)) 39951 } 39952 } 39953 out.Dispatch(ctx) 39954 if out.Invalids > 0 { 39955 return graphql.Null 39956 } 39957 39958 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39959 39960 for label, dfs := range deferred { 39961 ec.processDeferredGroup(graphql.DeferredGroup{ 39962 Label: label, 39963 Path: graphql.GetPath(ctx), 39964 FieldSet: dfs, 39965 Context: ctx, 39966 }) 39967 } 39968 39969 return out 39970 } 39971 39972 var commerce_Cart_Form_ValidationInfoImplementors = []string{"Commerce_Cart_Form_ValidationInfo"} 39973 39974 func (ec *executionContext) _Commerce_Cart_Form_ValidationInfo(ctx context.Context, sel ast.SelectionSet, obj *dto.ValidationInfo) graphql.Marshaler { 39975 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_Form_ValidationInfoImplementors) 39976 39977 out := graphql.NewFieldSet(fields) 39978 deferred := make(map[string]*graphql.FieldSet) 39979 for i, field := range fields { 39980 switch field.Name { 39981 case "__typename": 39982 out.Values[i] = graphql.MarshalString("Commerce_Cart_Form_ValidationInfo") 39983 case "fieldErrors": 39984 out.Values[i] = ec._Commerce_Cart_Form_ValidationInfo_fieldErrors(ctx, field, obj) 39985 case "generalErrors": 39986 out.Values[i] = ec._Commerce_Cart_Form_ValidationInfo_generalErrors(ctx, field, obj) 39987 default: 39988 panic("unknown field " + strconv.Quote(field.Name)) 39989 } 39990 } 39991 out.Dispatch(ctx) 39992 if out.Invalids > 0 { 39993 return graphql.Null 39994 } 39995 39996 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 39997 39998 for label, dfs := range deferred { 39999 ec.processDeferredGroup(graphql.DeferredGroup{ 40000 Label: label, 40001 Path: graphql.GetPath(ctx), 40002 FieldSet: dfs, 40003 Context: ctx, 40004 }) 40005 } 40006 40007 return out 40008 } 40009 40010 var commerce_Cart_ItemImplementors = []string{"Commerce_Cart_Item"} 40011 40012 func (ec *executionContext) _Commerce_Cart_Item(ctx context.Context, sel ast.SelectionSet, obj *cart.Item) graphql.Marshaler { 40013 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_ItemImplementors) 40014 40015 out := graphql.NewFieldSet(fields) 40016 deferred := make(map[string]*graphql.FieldSet) 40017 for i, field := range fields { 40018 switch field.Name { 40019 case "__typename": 40020 out.Values[i] = graphql.MarshalString("Commerce_Cart_Item") 40021 case "id": 40022 out.Values[i] = ec._Commerce_Cart_Item_id(ctx, field, obj) 40023 if out.Values[i] == graphql.Null { 40024 atomic.AddUint32(&out.Invalids, 1) 40025 } 40026 case "externalReference": 40027 out.Values[i] = ec._Commerce_Cart_Item_externalReference(ctx, field, obj) 40028 if out.Values[i] == graphql.Null { 40029 atomic.AddUint32(&out.Invalids, 1) 40030 } 40031 case "marketplaceCode": 40032 out.Values[i] = ec._Commerce_Cart_Item_marketplaceCode(ctx, field, obj) 40033 if out.Values[i] == graphql.Null { 40034 atomic.AddUint32(&out.Invalids, 1) 40035 } 40036 case "variantMarketPlaceCode": 40037 out.Values[i] = ec._Commerce_Cart_Item_variantMarketPlaceCode(ctx, field, obj) 40038 if out.Values[i] == graphql.Null { 40039 atomic.AddUint32(&out.Invalids, 1) 40040 } 40041 case "productName": 40042 out.Values[i] = ec._Commerce_Cart_Item_productName(ctx, field, obj) 40043 if out.Values[i] == graphql.Null { 40044 atomic.AddUint32(&out.Invalids, 1) 40045 } 40046 case "sourceID": 40047 out.Values[i] = ec._Commerce_Cart_Item_sourceID(ctx, field, obj) 40048 if out.Values[i] == graphql.Null { 40049 atomic.AddUint32(&out.Invalids, 1) 40050 } 40051 case "qty": 40052 out.Values[i] = ec._Commerce_Cart_Item_qty(ctx, field, obj) 40053 if out.Values[i] == graphql.Null { 40054 atomic.AddUint32(&out.Invalids, 1) 40055 } 40056 case "additionalDataKeys": 40057 out.Values[i] = ec._Commerce_Cart_Item_additionalDataKeys(ctx, field, obj) 40058 case "additionalDataValues": 40059 out.Values[i] = ec._Commerce_Cart_Item_additionalDataValues(ctx, field, obj) 40060 case "getAdditionalData": 40061 out.Values[i] = ec._Commerce_Cart_Item_getAdditionalData(ctx, field, obj) 40062 case "hasAdditionalDataKey": 40063 out.Values[i] = ec._Commerce_Cart_Item_hasAdditionalDataKey(ctx, field, obj) 40064 case "singlePriceGross": 40065 out.Values[i] = ec._Commerce_Cart_Item_singlePriceGross(ctx, field, obj) 40066 if out.Values[i] == graphql.Null { 40067 atomic.AddUint32(&out.Invalids, 1) 40068 } 40069 case "singlePriceNet": 40070 out.Values[i] = ec._Commerce_Cart_Item_singlePriceNet(ctx, field, obj) 40071 if out.Values[i] == graphql.Null { 40072 atomic.AddUint32(&out.Invalids, 1) 40073 } 40074 case "rowPriceGross": 40075 out.Values[i] = ec._Commerce_Cart_Item_rowPriceGross(ctx, field, obj) 40076 if out.Values[i] == graphql.Null { 40077 atomic.AddUint32(&out.Invalids, 1) 40078 } 40079 case "rowPriceNet": 40080 out.Values[i] = ec._Commerce_Cart_Item_rowPriceNet(ctx, field, obj) 40081 if out.Values[i] == graphql.Null { 40082 atomic.AddUint32(&out.Invalids, 1) 40083 } 40084 case "appliedDiscounts": 40085 field := field 40086 40087 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 40088 defer func() { 40089 if r := recover(); r != nil { 40090 ec.Error(ctx, ec.Recover(ctx, r)) 40091 } 40092 }() 40093 res = ec._Commerce_Cart_Item_appliedDiscounts(ctx, field, obj) 40094 if res == graphql.Null { 40095 atomic.AddUint32(&fs.Invalids, 1) 40096 } 40097 return res 40098 } 40099 40100 if field.Deferrable != nil { 40101 dfs, ok := deferred[field.Deferrable.Label] 40102 di := 0 40103 if ok { 40104 dfs.AddField(field) 40105 di = len(dfs.Values) - 1 40106 } else { 40107 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 40108 deferred[field.Deferrable.Label] = dfs 40109 } 40110 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 40111 return innerFunc(ctx, dfs) 40112 }) 40113 40114 // don't run the out.Concurrently() call below 40115 out.Values[i] = graphql.Null 40116 continue 40117 } 40118 40119 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 40120 default: 40121 panic("unknown field " + strconv.Quote(field.Name)) 40122 } 40123 } 40124 out.Dispatch(ctx) 40125 if out.Invalids > 0 { 40126 return graphql.Null 40127 } 40128 40129 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40130 40131 for label, dfs := range deferred { 40132 ec.processDeferredGroup(graphql.DeferredGroup{ 40133 Label: label, 40134 Path: graphql.GetPath(ctx), 40135 FieldSet: dfs, 40136 Context: ctx, 40137 }) 40138 } 40139 40140 return out 40141 } 40142 40143 var commerce_Cart_ItemValidationErrorImplementors = []string{"Commerce_Cart_ItemValidationError"} 40144 40145 func (ec *executionContext) _Commerce_Cart_ItemValidationError(ctx context.Context, sel ast.SelectionSet, obj *validation.ItemValidationError) graphql.Marshaler { 40146 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_ItemValidationErrorImplementors) 40147 40148 out := graphql.NewFieldSet(fields) 40149 deferred := make(map[string]*graphql.FieldSet) 40150 for i, field := range fields { 40151 switch field.Name { 40152 case "__typename": 40153 out.Values[i] = graphql.MarshalString("Commerce_Cart_ItemValidationError") 40154 case "itemID": 40155 out.Values[i] = ec._Commerce_Cart_ItemValidationError_itemID(ctx, field, obj) 40156 if out.Values[i] == graphql.Null { 40157 out.Invalids++ 40158 } 40159 case "errorMessageKey": 40160 out.Values[i] = ec._Commerce_Cart_ItemValidationError_errorMessageKey(ctx, field, obj) 40161 if out.Values[i] == graphql.Null { 40162 out.Invalids++ 40163 } 40164 default: 40165 panic("unknown field " + strconv.Quote(field.Name)) 40166 } 40167 } 40168 out.Dispatch(ctx) 40169 if out.Invalids > 0 { 40170 return graphql.Null 40171 } 40172 40173 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40174 40175 for label, dfs := range deferred { 40176 ec.processDeferredGroup(graphql.DeferredGroup{ 40177 Label: label, 40178 Path: graphql.GetPath(ctx), 40179 FieldSet: dfs, 40180 Context: ctx, 40181 }) 40182 } 40183 40184 return out 40185 } 40186 40187 var commerce_Cart_KeyValueImplementors = []string{"Commerce_Cart_KeyValue"} 40188 40189 func (ec *executionContext) _Commerce_Cart_KeyValue(ctx context.Context, sel ast.SelectionSet, obj *dto.KeyValue) graphql.Marshaler { 40190 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_KeyValueImplementors) 40191 40192 out := graphql.NewFieldSet(fields) 40193 deferred := make(map[string]*graphql.FieldSet) 40194 for i, field := range fields { 40195 switch field.Name { 40196 case "__typename": 40197 out.Values[i] = graphql.MarshalString("Commerce_Cart_KeyValue") 40198 case "key": 40199 out.Values[i] = ec._Commerce_Cart_KeyValue_key(ctx, field, obj) 40200 if out.Values[i] == graphql.Null { 40201 out.Invalids++ 40202 } 40203 case "value": 40204 out.Values[i] = ec._Commerce_Cart_KeyValue_value(ctx, field, obj) 40205 if out.Values[i] == graphql.Null { 40206 out.Invalids++ 40207 } 40208 default: 40209 panic("unknown field " + strconv.Quote(field.Name)) 40210 } 40211 } 40212 out.Dispatch(ctx) 40213 if out.Invalids > 0 { 40214 return graphql.Null 40215 } 40216 40217 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40218 40219 for label, dfs := range deferred { 40220 ec.processDeferredGroup(graphql.DeferredGroup{ 40221 Label: label, 40222 Path: graphql.GetPath(ctx), 40223 FieldSet: dfs, 40224 Context: ctx, 40225 }) 40226 } 40227 40228 return out 40229 } 40230 40231 var commerce_Cart_PaymentSelection_SplitImplementors = []string{"Commerce_Cart_PaymentSelection_Split"} 40232 40233 func (ec *executionContext) _Commerce_Cart_PaymentSelection_Split(ctx context.Context, sel ast.SelectionSet, obj *dto.PaymentSelectionSplit) graphql.Marshaler { 40234 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PaymentSelection_SplitImplementors) 40235 40236 out := graphql.NewFieldSet(fields) 40237 deferred := make(map[string]*graphql.FieldSet) 40238 for i, field := range fields { 40239 switch field.Name { 40240 case "__typename": 40241 out.Values[i] = graphql.MarshalString("Commerce_Cart_PaymentSelection_Split") 40242 case "qualifier": 40243 out.Values[i] = ec._Commerce_Cart_PaymentSelection_Split_qualifier(ctx, field, obj) 40244 if out.Values[i] == graphql.Null { 40245 out.Invalids++ 40246 } 40247 case "charge": 40248 out.Values[i] = ec._Commerce_Cart_PaymentSelection_Split_charge(ctx, field, obj) 40249 if out.Values[i] == graphql.Null { 40250 out.Invalids++ 40251 } 40252 default: 40253 panic("unknown field " + strconv.Quote(field.Name)) 40254 } 40255 } 40256 out.Dispatch(ctx) 40257 if out.Invalids > 0 { 40258 return graphql.Null 40259 } 40260 40261 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40262 40263 for label, dfs := range deferred { 40264 ec.processDeferredGroup(graphql.DeferredGroup{ 40265 Label: label, 40266 Path: graphql.GetPath(ctx), 40267 FieldSet: dfs, 40268 Context: ctx, 40269 }) 40270 } 40271 40272 return out 40273 } 40274 40275 var commerce_Cart_PaymentSelection_SplitQualifierImplementors = []string{"Commerce_Cart_PaymentSelection_SplitQualifier"} 40276 40277 func (ec *executionContext) _Commerce_Cart_PaymentSelection_SplitQualifier(ctx context.Context, sel ast.SelectionSet, obj *cart.SplitQualifier) graphql.Marshaler { 40278 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PaymentSelection_SplitQualifierImplementors) 40279 40280 out := graphql.NewFieldSet(fields) 40281 deferred := make(map[string]*graphql.FieldSet) 40282 for i, field := range fields { 40283 switch field.Name { 40284 case "__typename": 40285 out.Values[i] = graphql.MarshalString("Commerce_Cart_PaymentSelection_SplitQualifier") 40286 case "type": 40287 out.Values[i] = ec._Commerce_Cart_PaymentSelection_SplitQualifier_type(ctx, field, obj) 40288 if out.Values[i] == graphql.Null { 40289 out.Invalids++ 40290 } 40291 case "method": 40292 out.Values[i] = ec._Commerce_Cart_PaymentSelection_SplitQualifier_method(ctx, field, obj) 40293 if out.Values[i] == graphql.Null { 40294 out.Invalids++ 40295 } 40296 case "reference": 40297 out.Values[i] = ec._Commerce_Cart_PaymentSelection_SplitQualifier_reference(ctx, field, obj) 40298 if out.Values[i] == graphql.Null { 40299 out.Invalids++ 40300 } 40301 default: 40302 panic("unknown field " + strconv.Quote(field.Name)) 40303 } 40304 } 40305 out.Dispatch(ctx) 40306 if out.Invalids > 0 { 40307 return graphql.Null 40308 } 40309 40310 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40311 40312 for label, dfs := range deferred { 40313 ec.processDeferredGroup(graphql.DeferredGroup{ 40314 Label: label, 40315 Path: graphql.GetPath(ctx), 40316 FieldSet: dfs, 40317 Context: ctx, 40318 }) 40319 } 40320 40321 return out 40322 } 40323 40324 var commerce_Cart_PersonImplementors = []string{"Commerce_Cart_Person"} 40325 40326 func (ec *executionContext) _Commerce_Cart_Person(ctx context.Context, sel ast.SelectionSet, obj *cart.Person) graphql.Marshaler { 40327 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PersonImplementors) 40328 40329 out := graphql.NewFieldSet(fields) 40330 deferred := make(map[string]*graphql.FieldSet) 40331 for i, field := range fields { 40332 switch field.Name { 40333 case "__typename": 40334 out.Values[i] = graphql.MarshalString("Commerce_Cart_Person") 40335 case "address": 40336 out.Values[i] = ec._Commerce_Cart_Person_address(ctx, field, obj) 40337 case "personalDetails": 40338 out.Values[i] = ec._Commerce_Cart_Person_personalDetails(ctx, field, obj) 40339 if out.Values[i] == graphql.Null { 40340 out.Invalids++ 40341 } 40342 case "existingCustomerData": 40343 out.Values[i] = ec._Commerce_Cart_Person_existingCustomerData(ctx, field, obj) 40344 default: 40345 panic("unknown field " + strconv.Quote(field.Name)) 40346 } 40347 } 40348 out.Dispatch(ctx) 40349 if out.Invalids > 0 { 40350 return graphql.Null 40351 } 40352 40353 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40354 40355 for label, dfs := range deferred { 40356 ec.processDeferredGroup(graphql.DeferredGroup{ 40357 Label: label, 40358 Path: graphql.GetPath(ctx), 40359 FieldSet: dfs, 40360 Context: ctx, 40361 }) 40362 } 40363 40364 return out 40365 } 40366 40367 var commerce_Cart_PersonalDetailsImplementors = []string{"Commerce_Cart_PersonalDetails"} 40368 40369 func (ec *executionContext) _Commerce_Cart_PersonalDetails(ctx context.Context, sel ast.SelectionSet, obj *cart.PersonalDetails) graphql.Marshaler { 40370 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PersonalDetailsImplementors) 40371 40372 out := graphql.NewFieldSet(fields) 40373 deferred := make(map[string]*graphql.FieldSet) 40374 for i, field := range fields { 40375 switch field.Name { 40376 case "__typename": 40377 out.Values[i] = graphql.MarshalString("Commerce_Cart_PersonalDetails") 40378 case "dateOfBirth": 40379 out.Values[i] = ec._Commerce_Cart_PersonalDetails_dateOfBirth(ctx, field, obj) 40380 if out.Values[i] == graphql.Null { 40381 out.Invalids++ 40382 } 40383 case "passportCountry": 40384 out.Values[i] = ec._Commerce_Cart_PersonalDetails_passportCountry(ctx, field, obj) 40385 if out.Values[i] == graphql.Null { 40386 out.Invalids++ 40387 } 40388 case "passportNumber": 40389 out.Values[i] = ec._Commerce_Cart_PersonalDetails_passportNumber(ctx, field, obj) 40390 if out.Values[i] == graphql.Null { 40391 out.Invalids++ 40392 } 40393 case "nationality": 40394 out.Values[i] = ec._Commerce_Cart_PersonalDetails_nationality(ctx, field, obj) 40395 if out.Values[i] == graphql.Null { 40396 out.Invalids++ 40397 } 40398 default: 40399 panic("unknown field " + strconv.Quote(field.Name)) 40400 } 40401 } 40402 out.Dispatch(ctx) 40403 if out.Invalids > 0 { 40404 return graphql.Null 40405 } 40406 40407 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40408 40409 for label, dfs := range deferred { 40410 ec.processDeferredGroup(graphql.DeferredGroup{ 40411 Label: label, 40412 Path: graphql.GetPath(ctx), 40413 FieldSet: dfs, 40414 Context: ctx, 40415 }) 40416 } 40417 40418 return out 40419 } 40420 40421 var commerce_Cart_PlacedOrderInfoImplementors = []string{"Commerce_Cart_PlacedOrderInfo"} 40422 40423 func (ec *executionContext) _Commerce_Cart_PlacedOrderInfo(ctx context.Context, sel ast.SelectionSet, obj *placeorder.PlacedOrderInfo) graphql.Marshaler { 40424 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PlacedOrderInfoImplementors) 40425 40426 out := graphql.NewFieldSet(fields) 40427 deferred := make(map[string]*graphql.FieldSet) 40428 for i, field := range fields { 40429 switch field.Name { 40430 case "__typename": 40431 out.Values[i] = graphql.MarshalString("Commerce_Cart_PlacedOrderInfo") 40432 case "orderNumber": 40433 out.Values[i] = ec._Commerce_Cart_PlacedOrderInfo_orderNumber(ctx, field, obj) 40434 if out.Values[i] == graphql.Null { 40435 out.Invalids++ 40436 } 40437 case "deliveryCode": 40438 out.Values[i] = ec._Commerce_Cart_PlacedOrderInfo_deliveryCode(ctx, field, obj) 40439 if out.Values[i] == graphql.Null { 40440 out.Invalids++ 40441 } 40442 default: 40443 panic("unknown field " + strconv.Quote(field.Name)) 40444 } 40445 } 40446 out.Dispatch(ctx) 40447 if out.Invalids > 0 { 40448 return graphql.Null 40449 } 40450 40451 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40452 40453 for label, dfs := range deferred { 40454 ec.processDeferredGroup(graphql.DeferredGroup{ 40455 Label: label, 40456 Path: graphql.GetPath(ctx), 40457 FieldSet: dfs, 40458 Context: ctx, 40459 }) 40460 } 40461 40462 return out 40463 } 40464 40465 var commerce_Cart_PricedCartItemImplementors = []string{"Commerce_Cart_PricedCartItem"} 40466 40467 func (ec *executionContext) _Commerce_Cart_PricedCartItem(ctx context.Context, sel ast.SelectionSet, obj *dto.PricedCartItem) graphql.Marshaler { 40468 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PricedCartItemImplementors) 40469 40470 out := graphql.NewFieldSet(fields) 40471 deferred := make(map[string]*graphql.FieldSet) 40472 for i, field := range fields { 40473 switch field.Name { 40474 case "__typename": 40475 out.Values[i] = graphql.MarshalString("Commerce_Cart_PricedCartItem") 40476 case "amount": 40477 out.Values[i] = ec._Commerce_Cart_PricedCartItem_amount(ctx, field, obj) 40478 if out.Values[i] == graphql.Null { 40479 out.Invalids++ 40480 } 40481 case "itemID": 40482 out.Values[i] = ec._Commerce_Cart_PricedCartItem_itemID(ctx, field, obj) 40483 if out.Values[i] == graphql.Null { 40484 out.Invalids++ 40485 } 40486 default: 40487 panic("unknown field " + strconv.Quote(field.Name)) 40488 } 40489 } 40490 out.Dispatch(ctx) 40491 if out.Invalids > 0 { 40492 return graphql.Null 40493 } 40494 40495 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40496 40497 for label, dfs := range deferred { 40498 ec.processDeferredGroup(graphql.DeferredGroup{ 40499 Label: label, 40500 Path: graphql.GetPath(ctx), 40501 FieldSet: dfs, 40502 Context: ctx, 40503 }) 40504 } 40505 40506 return out 40507 } 40508 40509 var commerce_Cart_PricedItemsImplementors = []string{"Commerce_Cart_PricedItems"} 40510 40511 func (ec *executionContext) _Commerce_Cart_PricedItems(ctx context.Context, sel ast.SelectionSet, obj *dto.PricedItems) graphql.Marshaler { 40512 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PricedItemsImplementors) 40513 40514 out := graphql.NewFieldSet(fields) 40515 deferred := make(map[string]*graphql.FieldSet) 40516 for i, field := range fields { 40517 switch field.Name { 40518 case "__typename": 40519 out.Values[i] = graphql.MarshalString("Commerce_Cart_PricedItems") 40520 case "cartItems": 40521 out.Values[i] = ec._Commerce_Cart_PricedItems_cartItems(ctx, field, obj) 40522 case "shippingItems": 40523 out.Values[i] = ec._Commerce_Cart_PricedItems_shippingItems(ctx, field, obj) 40524 case "totalItems": 40525 out.Values[i] = ec._Commerce_Cart_PricedItems_totalItems(ctx, field, obj) 40526 default: 40527 panic("unknown field " + strconv.Quote(field.Name)) 40528 } 40529 } 40530 out.Dispatch(ctx) 40531 if out.Invalids > 0 { 40532 return graphql.Null 40533 } 40534 40535 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40536 40537 for label, dfs := range deferred { 40538 ec.processDeferredGroup(graphql.DeferredGroup{ 40539 Label: label, 40540 Path: graphql.GetPath(ctx), 40541 FieldSet: dfs, 40542 Context: ctx, 40543 }) 40544 } 40545 40546 return out 40547 } 40548 40549 var commerce_Cart_PricedShippingItemImplementors = []string{"Commerce_Cart_PricedShippingItem"} 40550 40551 func (ec *executionContext) _Commerce_Cart_PricedShippingItem(ctx context.Context, sel ast.SelectionSet, obj *dto.PricedShippingItem) graphql.Marshaler { 40552 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PricedShippingItemImplementors) 40553 40554 out := graphql.NewFieldSet(fields) 40555 deferred := make(map[string]*graphql.FieldSet) 40556 for i, field := range fields { 40557 switch field.Name { 40558 case "__typename": 40559 out.Values[i] = graphql.MarshalString("Commerce_Cart_PricedShippingItem") 40560 case "amount": 40561 out.Values[i] = ec._Commerce_Cart_PricedShippingItem_amount(ctx, field, obj) 40562 if out.Values[i] == graphql.Null { 40563 out.Invalids++ 40564 } 40565 case "deliveryInfoCode": 40566 out.Values[i] = ec._Commerce_Cart_PricedShippingItem_deliveryInfoCode(ctx, field, obj) 40567 if out.Values[i] == graphql.Null { 40568 out.Invalids++ 40569 } 40570 default: 40571 panic("unknown field " + strconv.Quote(field.Name)) 40572 } 40573 } 40574 out.Dispatch(ctx) 40575 if out.Invalids > 0 { 40576 return graphql.Null 40577 } 40578 40579 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40580 40581 for label, dfs := range deferred { 40582 ec.processDeferredGroup(graphql.DeferredGroup{ 40583 Label: label, 40584 Path: graphql.GetPath(ctx), 40585 FieldSet: dfs, 40586 Context: ctx, 40587 }) 40588 } 40589 40590 return out 40591 } 40592 40593 var commerce_Cart_PricedTotalItemImplementors = []string{"Commerce_Cart_PricedTotalItem"} 40594 40595 func (ec *executionContext) _Commerce_Cart_PricedTotalItem(ctx context.Context, sel ast.SelectionSet, obj *dto.PricedTotalItem) graphql.Marshaler { 40596 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_PricedTotalItemImplementors) 40597 40598 out := graphql.NewFieldSet(fields) 40599 deferred := make(map[string]*graphql.FieldSet) 40600 for i, field := range fields { 40601 switch field.Name { 40602 case "__typename": 40603 out.Values[i] = graphql.MarshalString("Commerce_Cart_PricedTotalItem") 40604 case "amount": 40605 out.Values[i] = ec._Commerce_Cart_PricedTotalItem_amount(ctx, field, obj) 40606 if out.Values[i] == graphql.Null { 40607 out.Invalids++ 40608 } 40609 case "code": 40610 out.Values[i] = ec._Commerce_Cart_PricedTotalItem_code(ctx, field, obj) 40611 if out.Values[i] == graphql.Null { 40612 out.Invalids++ 40613 } 40614 default: 40615 panic("unknown field " + strconv.Quote(field.Name)) 40616 } 40617 } 40618 out.Dispatch(ctx) 40619 if out.Invalids > 0 { 40620 return graphql.Null 40621 } 40622 40623 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40624 40625 for label, dfs := range deferred { 40626 ec.processDeferredGroup(graphql.DeferredGroup{ 40627 Label: label, 40628 Path: graphql.GetPath(ctx), 40629 FieldSet: dfs, 40630 Context: ctx, 40631 }) 40632 } 40633 40634 return out 40635 } 40636 40637 var commerce_Cart_QtyRestrictionResultImplementors = []string{"Commerce_Cart_QtyRestrictionResult"} 40638 40639 func (ec *executionContext) _Commerce_Cart_QtyRestrictionResult(ctx context.Context, sel ast.SelectionSet, obj *validation.RestrictionResult) graphql.Marshaler { 40640 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_QtyRestrictionResultImplementors) 40641 40642 out := graphql.NewFieldSet(fields) 40643 deferred := make(map[string]*graphql.FieldSet) 40644 for i, field := range fields { 40645 switch field.Name { 40646 case "__typename": 40647 out.Values[i] = graphql.MarshalString("Commerce_Cart_QtyRestrictionResult") 40648 case "isRestricted": 40649 out.Values[i] = ec._Commerce_Cart_QtyRestrictionResult_isRestricted(ctx, field, obj) 40650 if out.Values[i] == graphql.Null { 40651 out.Invalids++ 40652 } 40653 case "maxAllowed": 40654 out.Values[i] = ec._Commerce_Cart_QtyRestrictionResult_maxAllowed(ctx, field, obj) 40655 if out.Values[i] == graphql.Null { 40656 out.Invalids++ 40657 } 40658 case "remainingDifference": 40659 out.Values[i] = ec._Commerce_Cart_QtyRestrictionResult_remainingDifference(ctx, field, obj) 40660 if out.Values[i] == graphql.Null { 40661 out.Invalids++ 40662 } 40663 case "restrictorName": 40664 out.Values[i] = ec._Commerce_Cart_QtyRestrictionResult_restrictorName(ctx, field, obj) 40665 if out.Values[i] == graphql.Null { 40666 out.Invalids++ 40667 } 40668 default: 40669 panic("unknown field " + strconv.Quote(field.Name)) 40670 } 40671 } 40672 out.Dispatch(ctx) 40673 if out.Invalids > 0 { 40674 return graphql.Null 40675 } 40676 40677 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40678 40679 for label, dfs := range deferred { 40680 ec.processDeferredGroup(graphql.DeferredGroup{ 40681 Label: label, 40682 Path: graphql.GetPath(ctx), 40683 FieldSet: dfs, 40684 Context: ctx, 40685 }) 40686 } 40687 40688 return out 40689 } 40690 40691 var commerce_Cart_SelectedPaymentResultImplementors = []string{"Commerce_Cart_SelectedPaymentResult"} 40692 40693 func (ec *executionContext) _Commerce_Cart_SelectedPaymentResult(ctx context.Context, sel ast.SelectionSet, obj *dto.SelectedPaymentResult) graphql.Marshaler { 40694 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_SelectedPaymentResultImplementors) 40695 40696 out := graphql.NewFieldSet(fields) 40697 deferred := make(map[string]*graphql.FieldSet) 40698 for i, field := range fields { 40699 switch field.Name { 40700 case "__typename": 40701 out.Values[i] = graphql.MarshalString("Commerce_Cart_SelectedPaymentResult") 40702 case "validationInfo": 40703 out.Values[i] = ec._Commerce_Cart_SelectedPaymentResult_validationInfo(ctx, field, obj) 40704 case "processed": 40705 out.Values[i] = ec._Commerce_Cart_SelectedPaymentResult_processed(ctx, field, obj) 40706 default: 40707 panic("unknown field " + strconv.Quote(field.Name)) 40708 } 40709 } 40710 out.Dispatch(ctx) 40711 if out.Invalids > 0 { 40712 return graphql.Null 40713 } 40714 40715 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40716 40717 for label, dfs := range deferred { 40718 ec.processDeferredGroup(graphql.DeferredGroup{ 40719 Label: label, 40720 Path: graphql.GetPath(ctx), 40721 FieldSet: dfs, 40722 Context: ctx, 40723 }) 40724 } 40725 40726 return out 40727 } 40728 40729 var commerce_Cart_ShippingItemImplementors = []string{"Commerce_Cart_ShippingItem"} 40730 40731 func (ec *executionContext) _Commerce_Cart_ShippingItem(ctx context.Context, sel ast.SelectionSet, obj *cart.ShippingItem) graphql.Marshaler { 40732 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_ShippingItemImplementors) 40733 40734 out := graphql.NewFieldSet(fields) 40735 deferred := make(map[string]*graphql.FieldSet) 40736 for i, field := range fields { 40737 switch field.Name { 40738 case "__typename": 40739 out.Values[i] = graphql.MarshalString("Commerce_Cart_ShippingItem") 40740 case "title": 40741 out.Values[i] = ec._Commerce_Cart_ShippingItem_title(ctx, field, obj) 40742 if out.Values[i] == graphql.Null { 40743 atomic.AddUint32(&out.Invalids, 1) 40744 } 40745 case "priceNet": 40746 out.Values[i] = ec._Commerce_Cart_ShippingItem_priceNet(ctx, field, obj) 40747 if out.Values[i] == graphql.Null { 40748 atomic.AddUint32(&out.Invalids, 1) 40749 } 40750 case "taxAmount": 40751 out.Values[i] = ec._Commerce_Cart_ShippingItem_taxAmount(ctx, field, obj) 40752 if out.Values[i] == graphql.Null { 40753 atomic.AddUint32(&out.Invalids, 1) 40754 } 40755 case "priceGross": 40756 out.Values[i] = ec._Commerce_Cart_ShippingItem_priceGross(ctx, field, obj) 40757 if out.Values[i] == graphql.Null { 40758 atomic.AddUint32(&out.Invalids, 1) 40759 } 40760 case "appliedDiscounts": 40761 field := field 40762 40763 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 40764 defer func() { 40765 if r := recover(); r != nil { 40766 ec.Error(ctx, ec.Recover(ctx, r)) 40767 } 40768 }() 40769 res = ec._Commerce_Cart_ShippingItem_appliedDiscounts(ctx, field, obj) 40770 if res == graphql.Null { 40771 atomic.AddUint32(&fs.Invalids, 1) 40772 } 40773 return res 40774 } 40775 40776 if field.Deferrable != nil { 40777 dfs, ok := deferred[field.Deferrable.Label] 40778 di := 0 40779 if ok { 40780 dfs.AddField(field) 40781 di = len(dfs.Values) - 1 40782 } else { 40783 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 40784 deferred[field.Deferrable.Label] = dfs 40785 } 40786 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 40787 return innerFunc(ctx, dfs) 40788 }) 40789 40790 // don't run the out.Concurrently() call below 40791 out.Values[i] = graphql.Null 40792 continue 40793 } 40794 40795 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 40796 case "totalWithDiscountInclTax": 40797 out.Values[i] = ec._Commerce_Cart_ShippingItem_totalWithDiscountInclTax(ctx, field, obj) 40798 if out.Values[i] == graphql.Null { 40799 atomic.AddUint32(&out.Invalids, 1) 40800 } 40801 case "tax": 40802 out.Values[i] = ec._Commerce_Cart_ShippingItem_tax(ctx, field, obj) 40803 if out.Values[i] == graphql.Null { 40804 atomic.AddUint32(&out.Invalids, 1) 40805 } 40806 default: 40807 panic("unknown field " + strconv.Quote(field.Name)) 40808 } 40809 } 40810 out.Dispatch(ctx) 40811 if out.Invalids > 0 { 40812 return graphql.Null 40813 } 40814 40815 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40816 40817 for label, dfs := range deferred { 40818 ec.processDeferredGroup(graphql.DeferredGroup{ 40819 Label: label, 40820 Path: graphql.GetPath(ctx), 40821 FieldSet: dfs, 40822 Context: ctx, 40823 }) 40824 } 40825 40826 return out 40827 } 40828 40829 var commerce_Cart_SummaryImplementors = []string{"Commerce_Cart_Summary"} 40830 40831 func (ec *executionContext) _Commerce_Cart_Summary(ctx context.Context, sel ast.SelectionSet, obj *dto.CartSummary) graphql.Marshaler { 40832 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_SummaryImplementors) 40833 40834 out := graphql.NewFieldSet(fields) 40835 deferred := make(map[string]*graphql.FieldSet) 40836 for i, field := range fields { 40837 switch field.Name { 40838 case "__typename": 40839 out.Values[i] = graphql.MarshalString("Commerce_Cart_Summary") 40840 case "discounts": 40841 out.Values[i] = ec._Commerce_Cart_Summary_discounts(ctx, field, obj) 40842 if out.Values[i] == graphql.Null { 40843 out.Invalids++ 40844 } 40845 case "totalDiscountAmount": 40846 out.Values[i] = ec._Commerce_Cart_Summary_totalDiscountAmount(ctx, field, obj) 40847 case "totalGiftCardAmount": 40848 out.Values[i] = ec._Commerce_Cart_Summary_totalGiftCardAmount(ctx, field, obj) 40849 case "grandTotalWithGiftCards": 40850 out.Values[i] = ec._Commerce_Cart_Summary_grandTotalWithGiftCards(ctx, field, obj) 40851 case "sumTotalDiscountWithGiftCardsAmount": 40852 out.Values[i] = ec._Commerce_Cart_Summary_sumTotalDiscountWithGiftCardsAmount(ctx, field, obj) 40853 case "hasAppliedDiscounts": 40854 out.Values[i] = ec._Commerce_Cart_Summary_hasAppliedDiscounts(ctx, field, obj) 40855 if out.Values[i] == graphql.Null { 40856 out.Invalids++ 40857 } 40858 case "sumTaxes": 40859 out.Values[i] = ec._Commerce_Cart_Summary_sumTaxes(ctx, field, obj) 40860 case "sumPaymentSelectionCartSplitValueAmountByMethods": 40861 out.Values[i] = ec._Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods(ctx, field, obj) 40862 case "sumPaymentSelectionCartSplitPriceAmountByMethods": 40863 out.Values[i] = ec._Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods(ctx, field, obj) 40864 default: 40865 panic("unknown field " + strconv.Quote(field.Name)) 40866 } 40867 } 40868 out.Dispatch(ctx) 40869 if out.Invalids > 0 { 40870 return graphql.Null 40871 } 40872 40873 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40874 40875 for label, dfs := range deferred { 40876 ec.processDeferredGroup(graphql.DeferredGroup{ 40877 Label: label, 40878 Path: graphql.GetPath(ctx), 40879 FieldSet: dfs, 40880 Context: ctx, 40881 }) 40882 } 40883 40884 return out 40885 } 40886 40887 var commerce_Cart_TaxImplementors = []string{"Commerce_Cart_Tax"} 40888 40889 func (ec *executionContext) _Commerce_Cart_Tax(ctx context.Context, sel ast.SelectionSet, obj *cart.Tax) graphql.Marshaler { 40890 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_TaxImplementors) 40891 40892 out := graphql.NewFieldSet(fields) 40893 deferred := make(map[string]*graphql.FieldSet) 40894 for i, field := range fields { 40895 switch field.Name { 40896 case "__typename": 40897 out.Values[i] = graphql.MarshalString("Commerce_Cart_Tax") 40898 case "amount": 40899 out.Values[i] = ec._Commerce_Cart_Tax_amount(ctx, field, obj) 40900 if out.Values[i] == graphql.Null { 40901 out.Invalids++ 40902 } 40903 case "type": 40904 out.Values[i] = ec._Commerce_Cart_Tax_type(ctx, field, obj) 40905 if out.Values[i] == graphql.Null { 40906 out.Invalids++ 40907 } 40908 case "rate": 40909 out.Values[i] = ec._Commerce_Cart_Tax_rate(ctx, field, obj) 40910 default: 40911 panic("unknown field " + strconv.Quote(field.Name)) 40912 } 40913 } 40914 out.Dispatch(ctx) 40915 if out.Invalids > 0 { 40916 return graphql.Null 40917 } 40918 40919 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40920 40921 for label, dfs := range deferred { 40922 ec.processDeferredGroup(graphql.DeferredGroup{ 40923 Label: label, 40924 Path: graphql.GetPath(ctx), 40925 FieldSet: dfs, 40926 Context: ctx, 40927 }) 40928 } 40929 40930 return out 40931 } 40932 40933 var commerce_Cart_TaxesImplementors = []string{"Commerce_Cart_Taxes"} 40934 40935 func (ec *executionContext) _Commerce_Cart_Taxes(ctx context.Context, sel ast.SelectionSet, obj *dto.Taxes) graphql.Marshaler { 40936 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_TaxesImplementors) 40937 40938 out := graphql.NewFieldSet(fields) 40939 deferred := make(map[string]*graphql.FieldSet) 40940 for i, field := range fields { 40941 switch field.Name { 40942 case "__typename": 40943 out.Values[i] = graphql.MarshalString("Commerce_Cart_Taxes") 40944 case "items": 40945 out.Values[i] = ec._Commerce_Cart_Taxes_items(ctx, field, obj) 40946 if out.Values[i] == graphql.Null { 40947 out.Invalids++ 40948 } 40949 case "getByType": 40950 out.Values[i] = ec._Commerce_Cart_Taxes_getByType(ctx, field, obj) 40951 if out.Values[i] == graphql.Null { 40952 out.Invalids++ 40953 } 40954 default: 40955 panic("unknown field " + strconv.Quote(field.Name)) 40956 } 40957 } 40958 out.Dispatch(ctx) 40959 if out.Invalids > 0 { 40960 return graphql.Null 40961 } 40962 40963 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 40964 40965 for label, dfs := range deferred { 40966 ec.processDeferredGroup(graphql.DeferredGroup{ 40967 Label: label, 40968 Path: graphql.GetPath(ctx), 40969 FieldSet: dfs, 40970 Context: ctx, 40971 }) 40972 } 40973 40974 return out 40975 } 40976 40977 var commerce_Cart_TeaserImplementors = []string{"Commerce_Cart_Teaser"} 40978 40979 func (ec *executionContext) _Commerce_Cart_Teaser(ctx context.Context, sel ast.SelectionSet, obj *cart.Teaser) graphql.Marshaler { 40980 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_TeaserImplementors) 40981 40982 out := graphql.NewFieldSet(fields) 40983 deferred := make(map[string]*graphql.FieldSet) 40984 for i, field := range fields { 40985 switch field.Name { 40986 case "__typename": 40987 out.Values[i] = graphql.MarshalString("Commerce_Cart_Teaser") 40988 case "productCount": 40989 out.Values[i] = ec._Commerce_Cart_Teaser_productCount(ctx, field, obj) 40990 case "ItemCount": 40991 out.Values[i] = ec._Commerce_Cart_Teaser_ItemCount(ctx, field, obj) 40992 case "DeliveryCodes": 40993 out.Values[i] = ec._Commerce_Cart_Teaser_DeliveryCodes(ctx, field, obj) 40994 default: 40995 panic("unknown field " + strconv.Quote(field.Name)) 40996 } 40997 } 40998 out.Dispatch(ctx) 40999 if out.Invalids > 0 { 41000 return graphql.Null 41001 } 41002 41003 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41004 41005 for label, dfs := range deferred { 41006 ec.processDeferredGroup(graphql.DeferredGroup{ 41007 Label: label, 41008 Path: graphql.GetPath(ctx), 41009 FieldSet: dfs, 41010 Context: ctx, 41011 }) 41012 } 41013 41014 return out 41015 } 41016 41017 var commerce_Cart_TotalitemImplementors = []string{"Commerce_Cart_Totalitem"} 41018 41019 func (ec *executionContext) _Commerce_Cart_Totalitem(ctx context.Context, sel ast.SelectionSet, obj *cart.Totalitem) graphql.Marshaler { 41020 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_TotalitemImplementors) 41021 41022 out := graphql.NewFieldSet(fields) 41023 deferred := make(map[string]*graphql.FieldSet) 41024 for i, field := range fields { 41025 switch field.Name { 41026 case "__typename": 41027 out.Values[i] = graphql.MarshalString("Commerce_Cart_Totalitem") 41028 case "code": 41029 out.Values[i] = ec._Commerce_Cart_Totalitem_code(ctx, field, obj) 41030 if out.Values[i] == graphql.Null { 41031 out.Invalids++ 41032 } 41033 case "title": 41034 out.Values[i] = ec._Commerce_Cart_Totalitem_title(ctx, field, obj) 41035 if out.Values[i] == graphql.Null { 41036 out.Invalids++ 41037 } 41038 case "price": 41039 out.Values[i] = ec._Commerce_Cart_Totalitem_price(ctx, field, obj) 41040 if out.Values[i] == graphql.Null { 41041 out.Invalids++ 41042 } 41043 case "type": 41044 out.Values[i] = ec._Commerce_Cart_Totalitem_type(ctx, field, obj) 41045 if out.Values[i] == graphql.Null { 41046 out.Invalids++ 41047 } 41048 default: 41049 panic("unknown field " + strconv.Quote(field.Name)) 41050 } 41051 } 41052 out.Dispatch(ctx) 41053 if out.Invalids > 0 { 41054 return graphql.Null 41055 } 41056 41057 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41058 41059 for label, dfs := range deferred { 41060 ec.processDeferredGroup(graphql.DeferredGroup{ 41061 Label: label, 41062 Path: graphql.GetPath(ctx), 41063 FieldSet: dfs, 41064 Context: ctx, 41065 }) 41066 } 41067 41068 return out 41069 } 41070 41071 var commerce_Cart_UpdateDeliveryShippingOptions_ResultImplementors = []string{"Commerce_Cart_UpdateDeliveryShippingOptions_Result"} 41072 41073 func (ec *executionContext) _Commerce_Cart_UpdateDeliveryShippingOptions_Result(ctx context.Context, sel ast.SelectionSet, obj *dto.UpdateShippingOptionsResult) graphql.Marshaler { 41074 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_UpdateDeliveryShippingOptions_ResultImplementors) 41075 41076 out := graphql.NewFieldSet(fields) 41077 deferred := make(map[string]*graphql.FieldSet) 41078 for i, field := range fields { 41079 switch field.Name { 41080 case "__typename": 41081 out.Values[i] = graphql.MarshalString("Commerce_Cart_UpdateDeliveryShippingOptions_Result") 41082 case "processed": 41083 out.Values[i] = ec._Commerce_Cart_UpdateDeliveryShippingOptions_Result_processed(ctx, field, obj) 41084 default: 41085 panic("unknown field " + strconv.Quote(field.Name)) 41086 } 41087 } 41088 out.Dispatch(ctx) 41089 if out.Invalids > 0 { 41090 return graphql.Null 41091 } 41092 41093 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41094 41095 for label, dfs := range deferred { 41096 ec.processDeferredGroup(graphql.DeferredGroup{ 41097 Label: label, 41098 Path: graphql.GetPath(ctx), 41099 FieldSet: dfs, 41100 Context: ctx, 41101 }) 41102 } 41103 41104 return out 41105 } 41106 41107 var commerce_Cart_ValidationResultImplementors = []string{"Commerce_Cart_ValidationResult"} 41108 41109 func (ec *executionContext) _Commerce_Cart_ValidationResult(ctx context.Context, sel ast.SelectionSet, obj *validation.Result) graphql.Marshaler { 41110 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Cart_ValidationResultImplementors) 41111 41112 out := graphql.NewFieldSet(fields) 41113 deferred := make(map[string]*graphql.FieldSet) 41114 for i, field := range fields { 41115 switch field.Name { 41116 case "__typename": 41117 out.Values[i] = graphql.MarshalString("Commerce_Cart_ValidationResult") 41118 case "hasCommonError": 41119 out.Values[i] = ec._Commerce_Cart_ValidationResult_hasCommonError(ctx, field, obj) 41120 if out.Values[i] == graphql.Null { 41121 out.Invalids++ 41122 } 41123 case "commonErrorMessageKey": 41124 out.Values[i] = ec._Commerce_Cart_ValidationResult_commonErrorMessageKey(ctx, field, obj) 41125 if out.Values[i] == graphql.Null { 41126 out.Invalids++ 41127 } 41128 case "itemResults": 41129 out.Values[i] = ec._Commerce_Cart_ValidationResult_itemResults(ctx, field, obj) 41130 default: 41131 panic("unknown field " + strconv.Quote(field.Name)) 41132 } 41133 } 41134 out.Dispatch(ctx) 41135 if out.Invalids > 0 { 41136 return graphql.Null 41137 } 41138 41139 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41140 41141 for label, dfs := range deferred { 41142 ec.processDeferredGroup(graphql.DeferredGroup{ 41143 Label: label, 41144 Path: graphql.GetPath(ctx), 41145 FieldSet: dfs, 41146 Context: ctx, 41147 }) 41148 } 41149 41150 return out 41151 } 41152 41153 var commerce_CategoryDataImplementors = []string{"Commerce_CategoryData", "Commerce_Category"} 41154 41155 func (ec *executionContext) _Commerce_CategoryData(ctx context.Context, sel ast.SelectionSet, obj *domain3.CategoryData) graphql.Marshaler { 41156 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_CategoryDataImplementors) 41157 41158 out := graphql.NewFieldSet(fields) 41159 deferred := make(map[string]*graphql.FieldSet) 41160 for i, field := range fields { 41161 switch field.Name { 41162 case "__typename": 41163 out.Values[i] = graphql.MarshalString("Commerce_CategoryData") 41164 case "code": 41165 out.Values[i] = ec._Commerce_CategoryData_code(ctx, field, obj) 41166 if out.Values[i] == graphql.Null { 41167 out.Invalids++ 41168 } 41169 case "name": 41170 out.Values[i] = ec._Commerce_CategoryData_name(ctx, field, obj) 41171 if out.Values[i] == graphql.Null { 41172 out.Invalids++ 41173 } 41174 case "path": 41175 out.Values[i] = ec._Commerce_CategoryData_path(ctx, field, obj) 41176 if out.Values[i] == graphql.Null { 41177 out.Invalids++ 41178 } 41179 case "active": 41180 out.Values[i] = ec._Commerce_CategoryData_active(ctx, field, obj) 41181 if out.Values[i] == graphql.Null { 41182 out.Invalids++ 41183 } 41184 case "promoted": 41185 out.Values[i] = ec._Commerce_CategoryData_promoted(ctx, field, obj) 41186 if out.Values[i] == graphql.Null { 41187 out.Invalids++ 41188 } 41189 case "attributes": 41190 out.Values[i] = ec._Commerce_CategoryData_attributes(ctx, field, obj) 41191 if out.Values[i] == graphql.Null { 41192 out.Invalids++ 41193 } 41194 default: 41195 panic("unknown field " + strconv.Quote(field.Name)) 41196 } 41197 } 41198 out.Dispatch(ctx) 41199 if out.Invalids > 0 { 41200 return graphql.Null 41201 } 41202 41203 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41204 41205 for label, dfs := range deferred { 41206 ec.processDeferredGroup(graphql.DeferredGroup{ 41207 Label: label, 41208 Path: graphql.GetPath(ctx), 41209 FieldSet: dfs, 41210 Context: ctx, 41211 }) 41212 } 41213 41214 return out 41215 } 41216 41217 var commerce_CategoryTreeImplementors = []string{"Commerce_CategoryTree", "Commerce_Tree"} 41218 41219 func (ec *executionContext) _Commerce_CategoryTree(ctx context.Context, sel ast.SelectionSet, obj *domain3.TreeData) graphql.Marshaler { 41220 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_CategoryTreeImplementors) 41221 41222 out := graphql.NewFieldSet(fields) 41223 deferred := make(map[string]*graphql.FieldSet) 41224 for i, field := range fields { 41225 switch field.Name { 41226 case "__typename": 41227 out.Values[i] = graphql.MarshalString("Commerce_CategoryTree") 41228 case "code": 41229 out.Values[i] = ec._Commerce_CategoryTree_code(ctx, field, obj) 41230 if out.Values[i] == graphql.Null { 41231 out.Invalids++ 41232 } 41233 case "name": 41234 out.Values[i] = ec._Commerce_CategoryTree_name(ctx, field, obj) 41235 if out.Values[i] == graphql.Null { 41236 out.Invalids++ 41237 } 41238 case "path": 41239 out.Values[i] = ec._Commerce_CategoryTree_path(ctx, field, obj) 41240 if out.Values[i] == graphql.Null { 41241 out.Invalids++ 41242 } 41243 case "active": 41244 out.Values[i] = ec._Commerce_CategoryTree_active(ctx, field, obj) 41245 if out.Values[i] == graphql.Null { 41246 out.Invalids++ 41247 } 41248 case "subTrees": 41249 out.Values[i] = ec._Commerce_CategoryTree_subTrees(ctx, field, obj) 41250 case "hasChilds": 41251 out.Values[i] = ec._Commerce_CategoryTree_hasChilds(ctx, field, obj) 41252 if out.Values[i] == graphql.Null { 41253 out.Invalids++ 41254 } 41255 case "documentCount": 41256 out.Values[i] = ec._Commerce_CategoryTree_documentCount(ctx, field, obj) 41257 if out.Values[i] == graphql.Null { 41258 out.Invalids++ 41259 } 41260 default: 41261 panic("unknown field " + strconv.Quote(field.Name)) 41262 } 41263 } 41264 out.Dispatch(ctx) 41265 if out.Invalids > 0 { 41266 return graphql.Null 41267 } 41268 41269 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41270 41271 for label, dfs := range deferred { 41272 ec.processDeferredGroup(graphql.DeferredGroup{ 41273 Label: label, 41274 Path: graphql.GetPath(ctx), 41275 FieldSet: dfs, 41276 Context: ctx, 41277 }) 41278 } 41279 41280 return out 41281 } 41282 41283 var commerce_Category_AttributeImplementors = []string{"Commerce_Category_Attribute"} 41284 41285 func (ec *executionContext) _Commerce_Category_Attribute(ctx context.Context, sel ast.SelectionSet, obj *domain3.Attribute) graphql.Marshaler { 41286 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Category_AttributeImplementors) 41287 41288 out := graphql.NewFieldSet(fields) 41289 deferred := make(map[string]*graphql.FieldSet) 41290 for i, field := range fields { 41291 switch field.Name { 41292 case "__typename": 41293 out.Values[i] = graphql.MarshalString("Commerce_Category_Attribute") 41294 case "code": 41295 out.Values[i] = ec._Commerce_Category_Attribute_code(ctx, field, obj) 41296 if out.Values[i] == graphql.Null { 41297 out.Invalids++ 41298 } 41299 case "label": 41300 out.Values[i] = ec._Commerce_Category_Attribute_label(ctx, field, obj) 41301 if out.Values[i] == graphql.Null { 41302 out.Invalids++ 41303 } 41304 case "values": 41305 out.Values[i] = ec._Commerce_Category_Attribute_values(ctx, field, obj) 41306 default: 41307 panic("unknown field " + strconv.Quote(field.Name)) 41308 } 41309 } 41310 out.Dispatch(ctx) 41311 if out.Invalids > 0 { 41312 return graphql.Null 41313 } 41314 41315 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41316 41317 for label, dfs := range deferred { 41318 ec.processDeferredGroup(graphql.DeferredGroup{ 41319 Label: label, 41320 Path: graphql.GetPath(ctx), 41321 FieldSet: dfs, 41322 Context: ctx, 41323 }) 41324 } 41325 41326 return out 41327 } 41328 41329 var commerce_Category_AttributeValueImplementors = []string{"Commerce_Category_AttributeValue"} 41330 41331 func (ec *executionContext) _Commerce_Category_AttributeValue(ctx context.Context, sel ast.SelectionSet, obj *domain3.AttributeValue) graphql.Marshaler { 41332 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Category_AttributeValueImplementors) 41333 41334 out := graphql.NewFieldSet(fields) 41335 deferred := make(map[string]*graphql.FieldSet) 41336 for i, field := range fields { 41337 switch field.Name { 41338 case "__typename": 41339 out.Values[i] = graphql.MarshalString("Commerce_Category_AttributeValue") 41340 case "value": 41341 out.Values[i] = ec._Commerce_Category_AttributeValue_value(ctx, field, obj) 41342 if out.Values[i] == graphql.Null { 41343 out.Invalids++ 41344 } 41345 case "label": 41346 out.Values[i] = ec._Commerce_Category_AttributeValue_label(ctx, field, obj) 41347 if out.Values[i] == graphql.Null { 41348 out.Invalids++ 41349 } 41350 default: 41351 panic("unknown field " + strconv.Quote(field.Name)) 41352 } 41353 } 41354 out.Dispatch(ctx) 41355 if out.Invalids > 0 { 41356 return graphql.Null 41357 } 41358 41359 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41360 41361 for label, dfs := range deferred { 41362 ec.processDeferredGroup(graphql.DeferredGroup{ 41363 Label: label, 41364 Path: graphql.GetPath(ctx), 41365 FieldSet: dfs, 41366 Context: ctx, 41367 }) 41368 } 41369 41370 return out 41371 } 41372 41373 var commerce_Category_AttributesImplementors = []string{"Commerce_Category_Attributes"} 41374 41375 func (ec *executionContext) _Commerce_Category_Attributes(ctx context.Context, sel ast.SelectionSet, obj domain3.Attributes) graphql.Marshaler { 41376 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Category_AttributesImplementors) 41377 41378 out := graphql.NewFieldSet(fields) 41379 deferred := make(map[string]*graphql.FieldSet) 41380 for i, field := range fields { 41381 switch field.Name { 41382 case "__typename": 41383 out.Values[i] = graphql.MarshalString("Commerce_Category_Attributes") 41384 case "get": 41385 out.Values[i] = ec._Commerce_Category_Attributes_get(ctx, field, obj) 41386 case "has": 41387 out.Values[i] = ec._Commerce_Category_Attributes_has(ctx, field, obj) 41388 case "all": 41389 out.Values[i] = ec._Commerce_Category_Attributes_all(ctx, field, obj) 41390 default: 41391 panic("unknown field " + strconv.Quote(field.Name)) 41392 } 41393 } 41394 out.Dispatch(ctx) 41395 if out.Invalids > 0 { 41396 return graphql.Null 41397 } 41398 41399 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41400 41401 for label, dfs := range deferred { 41402 ec.processDeferredGroup(graphql.DeferredGroup{ 41403 Label: label, 41404 Path: graphql.GetPath(ctx), 41405 FieldSet: dfs, 41406 Context: ctx, 41407 }) 41408 } 41409 41410 return out 41411 } 41412 41413 var commerce_Category_SearchResultImplementors = []string{"Commerce_Category_SearchResult"} 41414 41415 func (ec *executionContext) _Commerce_Category_SearchResult(ctx context.Context, sel ast.SelectionSet, obj *categorydto.CategorySearchResult) graphql.Marshaler { 41416 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Category_SearchResultImplementors) 41417 41418 out := graphql.NewFieldSet(fields) 41419 deferred := make(map[string]*graphql.FieldSet) 41420 for i, field := range fields { 41421 switch field.Name { 41422 case "__typename": 41423 out.Values[i] = graphql.MarshalString("Commerce_Category_SearchResult") 41424 case "category": 41425 out.Values[i] = ec._Commerce_Category_SearchResult_category(ctx, field, obj) 41426 if out.Values[i] == graphql.Null { 41427 out.Invalids++ 41428 } 41429 case "productSearchResult": 41430 out.Values[i] = ec._Commerce_Category_SearchResult_productSearchResult(ctx, field, obj) 41431 if out.Values[i] == graphql.Null { 41432 out.Invalids++ 41433 } 41434 default: 41435 panic("unknown field " + strconv.Quote(field.Name)) 41436 } 41437 } 41438 out.Dispatch(ctx) 41439 if out.Invalids > 0 { 41440 return graphql.Null 41441 } 41442 41443 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41444 41445 for label, dfs := range deferred { 41446 ec.processDeferredGroup(graphql.DeferredGroup{ 41447 Label: label, 41448 Path: graphql.GetPath(ctx), 41449 FieldSet: dfs, 41450 Context: ctx, 41451 }) 41452 } 41453 41454 return out 41455 } 41456 41457 var commerce_Checkout_PlaceOrderContextImplementors = []string{"Commerce_Checkout_PlaceOrderContext"} 41458 41459 func (ec *executionContext) _Commerce_Checkout_PlaceOrderContext(ctx context.Context, sel ast.SelectionSet, obj *dto1.PlaceOrderContext) graphql.Marshaler { 41460 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderContextImplementors) 41461 41462 out := graphql.NewFieldSet(fields) 41463 deferred := make(map[string]*graphql.FieldSet) 41464 for i, field := range fields { 41465 switch field.Name { 41466 case "__typename": 41467 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderContext") 41468 case "cart": 41469 out.Values[i] = ec._Commerce_Checkout_PlaceOrderContext_cart(ctx, field, obj) 41470 case "orderInfos": 41471 out.Values[i] = ec._Commerce_Checkout_PlaceOrderContext_orderInfos(ctx, field, obj) 41472 case "state": 41473 out.Values[i] = ec._Commerce_Checkout_PlaceOrderContext_state(ctx, field, obj) 41474 if out.Values[i] == graphql.Null { 41475 out.Invalids++ 41476 } 41477 case "uuid": 41478 out.Values[i] = ec._Commerce_Checkout_PlaceOrderContext_uuid(ctx, field, obj) 41479 if out.Values[i] == graphql.Null { 41480 out.Invalids++ 41481 } 41482 default: 41483 panic("unknown field " + strconv.Quote(field.Name)) 41484 } 41485 } 41486 out.Dispatch(ctx) 41487 if out.Invalids > 0 { 41488 return graphql.Null 41489 } 41490 41491 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41492 41493 for label, dfs := range deferred { 41494 ec.processDeferredGroup(graphql.DeferredGroup{ 41495 Label: label, 41496 Path: graphql.GetPath(ctx), 41497 FieldSet: dfs, 41498 Context: ctx, 41499 }) 41500 } 41501 41502 return out 41503 } 41504 41505 var commerce_Checkout_PlaceOrderPaymentInfoImplementors = []string{"Commerce_Checkout_PlaceOrderPaymentInfo"} 41506 41507 func (ec *executionContext) _Commerce_Checkout_PlaceOrderPaymentInfo(ctx context.Context, sel ast.SelectionSet, obj *application.PlaceOrderPaymentInfo) graphql.Marshaler { 41508 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderPaymentInfoImplementors) 41509 41510 out := graphql.NewFieldSet(fields) 41511 deferred := make(map[string]*graphql.FieldSet) 41512 for i, field := range fields { 41513 switch field.Name { 41514 case "__typename": 41515 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderPaymentInfo") 41516 case "gateway": 41517 out.Values[i] = ec._Commerce_Checkout_PlaceOrderPaymentInfo_gateway(ctx, field, obj) 41518 if out.Values[i] == graphql.Null { 41519 out.Invalids++ 41520 } 41521 case "paymentProvider": 41522 out.Values[i] = ec._Commerce_Checkout_PlaceOrderPaymentInfo_paymentProvider(ctx, field, obj) 41523 if out.Values[i] == graphql.Null { 41524 out.Invalids++ 41525 } 41526 case "method": 41527 out.Values[i] = ec._Commerce_Checkout_PlaceOrderPaymentInfo_method(ctx, field, obj) 41528 if out.Values[i] == graphql.Null { 41529 out.Invalids++ 41530 } 41531 case "amount": 41532 out.Values[i] = ec._Commerce_Checkout_PlaceOrderPaymentInfo_amount(ctx, field, obj) 41533 if out.Values[i] == graphql.Null { 41534 out.Invalids++ 41535 } 41536 case "title": 41537 out.Values[i] = ec._Commerce_Checkout_PlaceOrderPaymentInfo_title(ctx, field, obj) 41538 if out.Values[i] == graphql.Null { 41539 out.Invalids++ 41540 } 41541 default: 41542 panic("unknown field " + strconv.Quote(field.Name)) 41543 } 41544 } 41545 out.Dispatch(ctx) 41546 if out.Invalids > 0 { 41547 return graphql.Null 41548 } 41549 41550 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41551 41552 for label, dfs := range deferred { 41553 ec.processDeferredGroup(graphql.DeferredGroup{ 41554 Label: label, 41555 Path: graphql.GetPath(ctx), 41556 FieldSet: dfs, 41557 Context: ctx, 41558 }) 41559 } 41560 41561 return out 41562 } 41563 41564 var commerce_Checkout_PlaceOrderState_Form_ParameterImplementors = []string{"Commerce_Checkout_PlaceOrderState_Form_Parameter"} 41565 41566 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_Form_Parameter(ctx context.Context, sel ast.SelectionSet, obj *dto1.FormParameter) graphql.Marshaler { 41567 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_Form_ParameterImplementors) 41568 41569 out := graphql.NewFieldSet(fields) 41570 deferred := make(map[string]*graphql.FieldSet) 41571 for i, field := range fields { 41572 switch field.Name { 41573 case "__typename": 41574 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_Form_Parameter") 41575 case "key": 41576 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_Form_Parameter_key(ctx, field, obj) 41577 if out.Values[i] == graphql.Null { 41578 out.Invalids++ 41579 } 41580 case "value": 41581 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_Form_Parameter_value(ctx, field, obj) 41582 default: 41583 panic("unknown field " + strconv.Quote(field.Name)) 41584 } 41585 } 41586 out.Dispatch(ctx) 41587 if out.Invalids > 0 { 41588 return graphql.Null 41589 } 41590 41591 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41592 41593 for label, dfs := range deferred { 41594 ec.processDeferredGroup(graphql.DeferredGroup{ 41595 Label: label, 41596 Path: graphql.GetPath(ctx), 41597 FieldSet: dfs, 41598 Context: ctx, 41599 }) 41600 } 41601 41602 return out 41603 } 41604 41605 var commerce_Checkout_PlaceOrderState_PaymentRequestAPIImplementors = []string{"Commerce_Checkout_PlaceOrderState_PaymentRequestAPI"} 41606 41607 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_PaymentRequestAPI(ctx context.Context, sel ast.SelectionSet, obj *dto1.PaymentRequestAPI) graphql.Marshaler { 41608 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_PaymentRequestAPIImplementors) 41609 41610 out := graphql.NewFieldSet(fields) 41611 deferred := make(map[string]*graphql.FieldSet) 41612 for i, field := range fields { 41613 switch field.Name { 41614 case "__typename": 41615 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_PaymentRequestAPI") 41616 case "methodData": 41617 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_methodData(ctx, field, obj) 41618 if out.Values[i] == graphql.Null { 41619 out.Invalids++ 41620 } 41621 case "details": 41622 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_details(ctx, field, obj) 41623 if out.Values[i] == graphql.Null { 41624 out.Invalids++ 41625 } 41626 case "options": 41627 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_options(ctx, field, obj) 41628 if out.Values[i] == graphql.Null { 41629 out.Invalids++ 41630 } 41631 case "merchantValidationURL": 41632 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_merchantValidationURL(ctx, field, obj) 41633 case "completeURL": 41634 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI_completeURL(ctx, field, obj) 41635 if out.Values[i] == graphql.Null { 41636 out.Invalids++ 41637 } 41638 default: 41639 panic("unknown field " + strconv.Quote(field.Name)) 41640 } 41641 } 41642 out.Dispatch(ctx) 41643 if out.Invalids > 0 { 41644 return graphql.Null 41645 } 41646 41647 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41648 41649 for label, dfs := range deferred { 41650 ec.processDeferredGroup(graphql.DeferredGroup{ 41651 Label: label, 41652 Path: graphql.GetPath(ctx), 41653 FieldSet: dfs, 41654 Context: ctx, 41655 }) 41656 } 41657 41658 return out 41659 } 41660 41661 var commerce_Checkout_PlaceOrderState_State_FailedImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_Failed", "Commerce_Checkout_PlaceOrderState_State"} 41662 41663 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Failed(ctx context.Context, sel ast.SelectionSet, obj *dto1.Failed) graphql.Marshaler { 41664 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedImplementors) 41665 41666 out := graphql.NewFieldSet(fields) 41667 deferred := make(map[string]*graphql.FieldSet) 41668 for i, field := range fields { 41669 switch field.Name { 41670 case "__typename": 41671 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_Failed") 41672 case "name": 41673 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Failed_name(ctx, field, obj) 41674 if out.Values[i] == graphql.Null { 41675 out.Invalids++ 41676 } 41677 case "reason": 41678 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Failed_reason(ctx, field, obj) 41679 if out.Values[i] == graphql.Null { 41680 out.Invalids++ 41681 } 41682 default: 41683 panic("unknown field " + strconv.Quote(field.Name)) 41684 } 41685 } 41686 out.Dispatch(ctx) 41687 if out.Invalids > 0 { 41688 return graphql.Null 41689 } 41690 41691 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41692 41693 for label, dfs := range deferred { 41694 ec.processDeferredGroup(graphql.DeferredGroup{ 41695 Label: label, 41696 Path: graphql.GetPath(ctx), 41697 FieldSet: dfs, 41698 Context: ctx, 41699 }) 41700 } 41701 41702 return out 41703 } 41704 41705 var commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomerImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer", "Commerce_Checkout_PlaceOrderState_State_FailedReason"} 41706 41707 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer(ctx context.Context, sel ast.SelectionSet, obj *process.CanceledByCustomerReason) graphql.Marshaler { 41708 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomerImplementors) 41709 41710 out := graphql.NewFieldSet(fields) 41711 deferred := make(map[string]*graphql.FieldSet) 41712 for i, field := range fields { 41713 switch field.Name { 41714 case "__typename": 41715 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer") 41716 case "reason": 41717 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CanceledByCustomer_reason(ctx, field, obj) 41718 default: 41719 panic("unknown field " + strconv.Quote(field.Name)) 41720 } 41721 } 41722 out.Dispatch(ctx) 41723 if out.Invalids > 0 { 41724 return graphql.Null 41725 } 41726 41727 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41728 41729 for label, dfs := range deferred { 41730 ec.processDeferredGroup(graphql.DeferredGroup{ 41731 Label: label, 41732 Path: graphql.GetPath(ctx), 41733 FieldSet: dfs, 41734 Context: ctx, 41735 }) 41736 } 41737 41738 return out 41739 } 41740 41741 var commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationErrorImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError", "Commerce_Checkout_PlaceOrderState_State_FailedReason"} 41742 41743 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError(ctx context.Context, sel ast.SelectionSet, obj *process.CartValidationErrorReason) graphql.Marshaler { 41744 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationErrorImplementors) 41745 41746 out := graphql.NewFieldSet(fields) 41747 deferred := make(map[string]*graphql.FieldSet) 41748 for i, field := range fields { 41749 switch field.Name { 41750 case "__typename": 41751 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError") 41752 case "reason": 41753 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_reason(ctx, field, obj) 41754 case "validationResult": 41755 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_CartValidationError_validationResult(ctx, field, obj) 41756 if out.Values[i] == graphql.Null { 41757 out.Invalids++ 41758 } 41759 default: 41760 panic("unknown field " + strconv.Quote(field.Name)) 41761 } 41762 } 41763 out.Dispatch(ctx) 41764 if out.Invalids > 0 { 41765 return graphql.Null 41766 } 41767 41768 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41769 41770 for label, dfs := range deferred { 41771 ec.processDeferredGroup(graphql.DeferredGroup{ 41772 Label: label, 41773 Path: graphql.GetPath(ctx), 41774 FieldSet: dfs, 41775 Context: ctx, 41776 }) 41777 } 41778 41779 return out 41780 } 41781 41782 var commerce_Checkout_PlaceOrderState_State_FailedReason_ErrorImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_FailedReason_Error", "Commerce_Checkout_PlaceOrderState_State_FailedReason"} 41783 41784 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_Error(ctx context.Context, sel ast.SelectionSet, obj *process.ErrorOccurredReason) graphql.Marshaler { 41785 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedReason_ErrorImplementors) 41786 41787 out := graphql.NewFieldSet(fields) 41788 deferred := make(map[string]*graphql.FieldSet) 41789 for i, field := range fields { 41790 switch field.Name { 41791 case "__typename": 41792 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_FailedReason_Error") 41793 case "reason": 41794 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_Error_reason(ctx, field, obj) 41795 default: 41796 panic("unknown field " + strconv.Quote(field.Name)) 41797 } 41798 } 41799 out.Dispatch(ctx) 41800 if out.Invalids > 0 { 41801 return graphql.Null 41802 } 41803 41804 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41805 41806 for label, dfs := range deferred { 41807 ec.processDeferredGroup(graphql.DeferredGroup{ 41808 Label: label, 41809 Path: graphql.GetPath(ctx), 41810 FieldSet: dfs, 41811 Context: ctx, 41812 }) 41813 } 41814 41815 return out 41816 } 41817 41818 var commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomerImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer", "Commerce_Checkout_PlaceOrderState_State_FailedReason"} 41819 41820 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer(ctx context.Context, sel ast.SelectionSet, obj *process.PaymentCanceledByCustomerReason) graphql.Marshaler { 41821 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomerImplementors) 41822 41823 out := graphql.NewFieldSet(fields) 41824 deferred := make(map[string]*graphql.FieldSet) 41825 for i, field := range fields { 41826 switch field.Name { 41827 case "__typename": 41828 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer") 41829 case "reason": 41830 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentCanceledByCustomer_reason(ctx, field, obj) 41831 default: 41832 panic("unknown field " + strconv.Quote(field.Name)) 41833 } 41834 } 41835 out.Dispatch(ctx) 41836 if out.Invalids > 0 { 41837 return graphql.Null 41838 } 41839 41840 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41841 41842 for label, dfs := range deferred { 41843 ec.processDeferredGroup(graphql.DeferredGroup{ 41844 Label: label, 41845 Path: graphql.GetPath(ctx), 41846 FieldSet: dfs, 41847 Context: ctx, 41848 }) 41849 } 41850 41851 return out 41852 } 41853 41854 var commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentErrorImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError", "Commerce_Checkout_PlaceOrderState_State_FailedReason"} 41855 41856 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError(ctx context.Context, sel ast.SelectionSet, obj *process.PaymentErrorOccurredReason) graphql.Marshaler { 41857 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentErrorImplementors) 41858 41859 out := graphql.NewFieldSet(fields) 41860 deferred := make(map[string]*graphql.FieldSet) 41861 for i, field := range fields { 41862 switch field.Name { 41863 case "__typename": 41864 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError") 41865 case "reason": 41866 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_FailedReason_PaymentError_reason(ctx, field, obj) 41867 default: 41868 panic("unknown field " + strconv.Quote(field.Name)) 41869 } 41870 } 41871 out.Dispatch(ctx) 41872 if out.Invalids > 0 { 41873 return graphql.Null 41874 } 41875 41876 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41877 41878 for label, dfs := range deferred { 41879 ec.processDeferredGroup(graphql.DeferredGroup{ 41880 Label: label, 41881 Path: graphql.GetPath(ctx), 41882 FieldSet: dfs, 41883 Context: ctx, 41884 }) 41885 } 41886 41887 return out 41888 } 41889 41890 var commerce_Checkout_PlaceOrderState_State_PostRedirectImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_PostRedirect", "Commerce_Checkout_PlaceOrderState_State"} 41891 41892 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_PostRedirect(ctx context.Context, sel ast.SelectionSet, obj *dto1.PostRedirect) graphql.Marshaler { 41893 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_PostRedirectImplementors) 41894 41895 out := graphql.NewFieldSet(fields) 41896 deferred := make(map[string]*graphql.FieldSet) 41897 for i, field := range fields { 41898 switch field.Name { 41899 case "__typename": 41900 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_PostRedirect") 41901 case "name": 41902 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_PostRedirect_name(ctx, field, obj) 41903 if out.Values[i] == graphql.Null { 41904 out.Invalids++ 41905 } 41906 case "URL": 41907 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_PostRedirect_URL(ctx, field, obj) 41908 if out.Values[i] == graphql.Null { 41909 out.Invalids++ 41910 } 41911 case "Parameters": 41912 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_PostRedirect_Parameters(ctx, field, obj) 41913 default: 41914 panic("unknown field " + strconv.Quote(field.Name)) 41915 } 41916 } 41917 out.Dispatch(ctx) 41918 if out.Invalids > 0 { 41919 return graphql.Null 41920 } 41921 41922 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41923 41924 for label, dfs := range deferred { 41925 ec.processDeferredGroup(graphql.DeferredGroup{ 41926 Label: label, 41927 Path: graphql.GetPath(ctx), 41928 FieldSet: dfs, 41929 Context: ctx, 41930 }) 41931 } 41932 41933 return out 41934 } 41935 41936 var commerce_Checkout_PlaceOrderState_State_RedirectImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_Redirect", "Commerce_Checkout_PlaceOrderState_State"} 41937 41938 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Redirect(ctx context.Context, sel ast.SelectionSet, obj *dto1.Redirect) graphql.Marshaler { 41939 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_RedirectImplementors) 41940 41941 out := graphql.NewFieldSet(fields) 41942 deferred := make(map[string]*graphql.FieldSet) 41943 for i, field := range fields { 41944 switch field.Name { 41945 case "__typename": 41946 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_Redirect") 41947 case "name": 41948 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Redirect_name(ctx, field, obj) 41949 if out.Values[i] == graphql.Null { 41950 out.Invalids++ 41951 } 41952 case "URL": 41953 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Redirect_URL(ctx, field, obj) 41954 if out.Values[i] == graphql.Null { 41955 out.Invalids++ 41956 } 41957 default: 41958 panic("unknown field " + strconv.Quote(field.Name)) 41959 } 41960 } 41961 out.Dispatch(ctx) 41962 if out.Invalids > 0 { 41963 return graphql.Null 41964 } 41965 41966 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 41967 41968 for label, dfs := range deferred { 41969 ec.processDeferredGroup(graphql.DeferredGroup{ 41970 Label: label, 41971 Path: graphql.GetPath(ctx), 41972 FieldSet: dfs, 41973 Context: ctx, 41974 }) 41975 } 41976 41977 return out 41978 } 41979 41980 var commerce_Checkout_PlaceOrderState_State_ShowHTMLImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_ShowHTML", "Commerce_Checkout_PlaceOrderState_State"} 41981 41982 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowHTML(ctx context.Context, sel ast.SelectionSet, obj *dto1.ShowHTML) graphql.Marshaler { 41983 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_ShowHTMLImplementors) 41984 41985 out := graphql.NewFieldSet(fields) 41986 deferred := make(map[string]*graphql.FieldSet) 41987 for i, field := range fields { 41988 switch field.Name { 41989 case "__typename": 41990 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_ShowHTML") 41991 case "name": 41992 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowHTML_name(ctx, field, obj) 41993 if out.Values[i] == graphql.Null { 41994 out.Invalids++ 41995 } 41996 case "HTML": 41997 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowHTML_HTML(ctx, field, obj) 41998 if out.Values[i] == graphql.Null { 41999 out.Invalids++ 42000 } 42001 default: 42002 panic("unknown field " + strconv.Quote(field.Name)) 42003 } 42004 } 42005 out.Dispatch(ctx) 42006 if out.Invalids > 0 { 42007 return graphql.Null 42008 } 42009 42010 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42011 42012 for label, dfs := range deferred { 42013 ec.processDeferredGroup(graphql.DeferredGroup{ 42014 Label: label, 42015 Path: graphql.GetPath(ctx), 42016 FieldSet: dfs, 42017 Context: ctx, 42018 }) 42019 } 42020 42021 return out 42022 } 42023 42024 var commerce_Checkout_PlaceOrderState_State_ShowIframeImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_ShowIframe", "Commerce_Checkout_PlaceOrderState_State"} 42025 42026 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowIframe(ctx context.Context, sel ast.SelectionSet, obj *dto1.ShowIframe) graphql.Marshaler { 42027 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_ShowIframeImplementors) 42028 42029 out := graphql.NewFieldSet(fields) 42030 deferred := make(map[string]*graphql.FieldSet) 42031 for i, field := range fields { 42032 switch field.Name { 42033 case "__typename": 42034 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_ShowIframe") 42035 case "name": 42036 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowIframe_name(ctx, field, obj) 42037 if out.Values[i] == graphql.Null { 42038 out.Invalids++ 42039 } 42040 case "URL": 42041 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowIframe_URL(ctx, field, obj) 42042 if out.Values[i] == graphql.Null { 42043 out.Invalids++ 42044 } 42045 default: 42046 panic("unknown field " + strconv.Quote(field.Name)) 42047 } 42048 } 42049 out.Dispatch(ctx) 42050 if out.Invalids > 0 { 42051 return graphql.Null 42052 } 42053 42054 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42055 42056 for label, dfs := range deferred { 42057 ec.processDeferredGroup(graphql.DeferredGroup{ 42058 Label: label, 42059 Path: graphql.GetPath(ctx), 42060 FieldSet: dfs, 42061 Context: ctx, 42062 }) 42063 } 42064 42065 return out 42066 } 42067 42068 var commerce_Checkout_PlaceOrderState_State_ShowWalletPaymentImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment", "Commerce_Checkout_PlaceOrderState_State"} 42069 42070 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment(ctx context.Context, sel ast.SelectionSet, obj *dto1.ShowWalletPayment) graphql.Marshaler { 42071 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_ShowWalletPaymentImplementors) 42072 42073 out := graphql.NewFieldSet(fields) 42074 deferred := make(map[string]*graphql.FieldSet) 42075 for i, field := range fields { 42076 switch field.Name { 42077 case "__typename": 42078 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment") 42079 case "name": 42080 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_name(ctx, field, obj) 42081 if out.Values[i] == graphql.Null { 42082 out.Invalids++ 42083 } 42084 case "paymentMethod": 42085 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentMethod(ctx, field, obj) 42086 if out.Values[i] == graphql.Null { 42087 out.Invalids++ 42088 } 42089 case "paymentRequestAPI": 42090 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_ShowWalletPayment_paymentRequestAPI(ctx, field, obj) 42091 if out.Values[i] == graphql.Null { 42092 out.Invalids++ 42093 } 42094 default: 42095 panic("unknown field " + strconv.Quote(field.Name)) 42096 } 42097 } 42098 out.Dispatch(ctx) 42099 if out.Invalids > 0 { 42100 return graphql.Null 42101 } 42102 42103 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42104 42105 for label, dfs := range deferred { 42106 ec.processDeferredGroup(graphql.DeferredGroup{ 42107 Label: label, 42108 Path: graphql.GetPath(ctx), 42109 FieldSet: dfs, 42110 Context: ctx, 42111 }) 42112 } 42113 42114 return out 42115 } 42116 42117 var commerce_Checkout_PlaceOrderState_State_SuccessImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_Success", "Commerce_Checkout_PlaceOrderState_State"} 42118 42119 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Success(ctx context.Context, sel ast.SelectionSet, obj *dto1.Success) graphql.Marshaler { 42120 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_SuccessImplementors) 42121 42122 out := graphql.NewFieldSet(fields) 42123 deferred := make(map[string]*graphql.FieldSet) 42124 for i, field := range fields { 42125 switch field.Name { 42126 case "__typename": 42127 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_Success") 42128 case "name": 42129 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Success_name(ctx, field, obj) 42130 if out.Values[i] == graphql.Null { 42131 out.Invalids++ 42132 } 42133 default: 42134 panic("unknown field " + strconv.Quote(field.Name)) 42135 } 42136 } 42137 out.Dispatch(ctx) 42138 if out.Invalids > 0 { 42139 return graphql.Null 42140 } 42141 42142 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42143 42144 for label, dfs := range deferred { 42145 ec.processDeferredGroup(graphql.DeferredGroup{ 42146 Label: label, 42147 Path: graphql.GetPath(ctx), 42148 FieldSet: dfs, 42149 Context: ctx, 42150 }) 42151 } 42152 42153 return out 42154 } 42155 42156 var commerce_Checkout_PlaceOrderState_State_TriggerClientSDKImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK", "Commerce_Checkout_PlaceOrderState_State"} 42157 42158 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK(ctx context.Context, sel ast.SelectionSet, obj *dto1.TriggerClientSDK) graphql.Marshaler { 42159 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_TriggerClientSDKImplementors) 42160 42161 out := graphql.NewFieldSet(fields) 42162 deferred := make(map[string]*graphql.FieldSet) 42163 for i, field := range fields { 42164 switch field.Name { 42165 case "__typename": 42166 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK") 42167 case "name": 42168 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_name(ctx, field, obj) 42169 if out.Values[i] == graphql.Null { 42170 out.Invalids++ 42171 } 42172 case "URL": 42173 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_URL(ctx, field, obj) 42174 if out.Values[i] == graphql.Null { 42175 out.Invalids++ 42176 } 42177 case "data": 42178 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_TriggerClientSDK_data(ctx, field, obj) 42179 if out.Values[i] == graphql.Null { 42180 out.Invalids++ 42181 } 42182 default: 42183 panic("unknown field " + strconv.Quote(field.Name)) 42184 } 42185 } 42186 out.Dispatch(ctx) 42187 if out.Invalids > 0 { 42188 return graphql.Null 42189 } 42190 42191 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42192 42193 for label, dfs := range deferred { 42194 ec.processDeferredGroup(graphql.DeferredGroup{ 42195 Label: label, 42196 Path: graphql.GetPath(ctx), 42197 FieldSet: dfs, 42198 Context: ctx, 42199 }) 42200 } 42201 42202 return out 42203 } 42204 42205 var commerce_Checkout_PlaceOrderState_State_WaitImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_Wait", "Commerce_Checkout_PlaceOrderState_State"} 42206 42207 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_Wait(ctx context.Context, sel ast.SelectionSet, obj *dto1.Wait) graphql.Marshaler { 42208 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_WaitImplementors) 42209 42210 out := graphql.NewFieldSet(fields) 42211 deferred := make(map[string]*graphql.FieldSet) 42212 for i, field := range fields { 42213 switch field.Name { 42214 case "__typename": 42215 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_Wait") 42216 case "name": 42217 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_Wait_name(ctx, field, obj) 42218 if out.Values[i] == graphql.Null { 42219 out.Invalids++ 42220 } 42221 default: 42222 panic("unknown field " + strconv.Quote(field.Name)) 42223 } 42224 } 42225 out.Dispatch(ctx) 42226 if out.Invalids > 0 { 42227 return graphql.Null 42228 } 42229 42230 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42231 42232 for label, dfs := range deferred { 42233 ec.processDeferredGroup(graphql.DeferredGroup{ 42234 Label: label, 42235 Path: graphql.GetPath(ctx), 42236 FieldSet: dfs, 42237 Context: ctx, 42238 }) 42239 } 42240 42241 return out 42242 } 42243 42244 var commerce_Checkout_PlaceOrderState_State_WaitForCustomerImplementors = []string{"Commerce_Checkout_PlaceOrderState_State_WaitForCustomer", "Commerce_Checkout_PlaceOrderState_State"} 42245 42246 func (ec *executionContext) _Commerce_Checkout_PlaceOrderState_State_WaitForCustomer(ctx context.Context, sel ast.SelectionSet, obj *dto1.WaitForCustomer) graphql.Marshaler { 42247 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlaceOrderState_State_WaitForCustomerImplementors) 42248 42249 out := graphql.NewFieldSet(fields) 42250 deferred := make(map[string]*graphql.FieldSet) 42251 for i, field := range fields { 42252 switch field.Name { 42253 case "__typename": 42254 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlaceOrderState_State_WaitForCustomer") 42255 case "name": 42256 out.Values[i] = ec._Commerce_Checkout_PlaceOrderState_State_WaitForCustomer_name(ctx, field, obj) 42257 if out.Values[i] == graphql.Null { 42258 out.Invalids++ 42259 } 42260 default: 42261 panic("unknown field " + strconv.Quote(field.Name)) 42262 } 42263 } 42264 out.Dispatch(ctx) 42265 if out.Invalids > 0 { 42266 return graphql.Null 42267 } 42268 42269 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42270 42271 for label, dfs := range deferred { 42272 ec.processDeferredGroup(graphql.DeferredGroup{ 42273 Label: label, 42274 Path: graphql.GetPath(ctx), 42275 FieldSet: dfs, 42276 Context: ctx, 42277 }) 42278 } 42279 42280 return out 42281 } 42282 42283 var commerce_Checkout_PlacedOrderInfosImplementors = []string{"Commerce_Checkout_PlacedOrderInfos"} 42284 42285 func (ec *executionContext) _Commerce_Checkout_PlacedOrderInfos(ctx context.Context, sel ast.SelectionSet, obj *dto1.PlacedOrderInfos) graphql.Marshaler { 42286 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_PlacedOrderInfosImplementors) 42287 42288 out := graphql.NewFieldSet(fields) 42289 deferred := make(map[string]*graphql.FieldSet) 42290 for i, field := range fields { 42291 switch field.Name { 42292 case "__typename": 42293 out.Values[i] = graphql.MarshalString("Commerce_Checkout_PlacedOrderInfos") 42294 case "paymentInfos": 42295 out.Values[i] = ec._Commerce_Checkout_PlacedOrderInfos_paymentInfos(ctx, field, obj) 42296 case "placedOrderInfos": 42297 out.Values[i] = ec._Commerce_Checkout_PlacedOrderInfos_placedOrderInfos(ctx, field, obj) 42298 case "email": 42299 out.Values[i] = ec._Commerce_Checkout_PlacedOrderInfos_email(ctx, field, obj) 42300 if out.Values[i] == graphql.Null { 42301 out.Invalids++ 42302 } 42303 default: 42304 panic("unknown field " + strconv.Quote(field.Name)) 42305 } 42306 } 42307 out.Dispatch(ctx) 42308 if out.Invalids > 0 { 42309 return graphql.Null 42310 } 42311 42312 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42313 42314 for label, dfs := range deferred { 42315 ec.processDeferredGroup(graphql.DeferredGroup{ 42316 Label: label, 42317 Path: graphql.GetPath(ctx), 42318 FieldSet: dfs, 42319 Context: ctx, 42320 }) 42321 } 42322 42323 return out 42324 } 42325 42326 var commerce_Checkout_StartPlaceOrder_ResultImplementors = []string{"Commerce_Checkout_StartPlaceOrder_Result"} 42327 42328 func (ec *executionContext) _Commerce_Checkout_StartPlaceOrder_Result(ctx context.Context, sel ast.SelectionSet, obj *dto1.StartPlaceOrderResult) graphql.Marshaler { 42329 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Checkout_StartPlaceOrder_ResultImplementors) 42330 42331 out := graphql.NewFieldSet(fields) 42332 deferred := make(map[string]*graphql.FieldSet) 42333 for i, field := range fields { 42334 switch field.Name { 42335 case "__typename": 42336 out.Values[i] = graphql.MarshalString("Commerce_Checkout_StartPlaceOrder_Result") 42337 case "uuid": 42338 out.Values[i] = ec._Commerce_Checkout_StartPlaceOrder_Result_uuid(ctx, field, obj) 42339 if out.Values[i] == graphql.Null { 42340 out.Invalids++ 42341 } 42342 default: 42343 panic("unknown field " + strconv.Quote(field.Name)) 42344 } 42345 } 42346 out.Dispatch(ctx) 42347 if out.Invalids > 0 { 42348 return graphql.Null 42349 } 42350 42351 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42352 42353 for label, dfs := range deferred { 42354 ec.processDeferredGroup(graphql.DeferredGroup{ 42355 Label: label, 42356 Path: graphql.GetPath(ctx), 42357 FieldSet: dfs, 42358 Context: ctx, 42359 }) 42360 } 42361 42362 return out 42363 } 42364 42365 var commerce_Customer_AddressImplementors = []string{"Commerce_Customer_Address"} 42366 42367 func (ec *executionContext) _Commerce_Customer_Address(ctx context.Context, sel ast.SelectionSet, obj *domain5.Address) graphql.Marshaler { 42368 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Customer_AddressImplementors) 42369 42370 out := graphql.NewFieldSet(fields) 42371 deferred := make(map[string]*graphql.FieldSet) 42372 for i, field := range fields { 42373 switch field.Name { 42374 case "__typename": 42375 out.Values[i] = graphql.MarshalString("Commerce_Customer_Address") 42376 case "id": 42377 out.Values[i] = ec._Commerce_Customer_Address_id(ctx, field, obj) 42378 if out.Values[i] == graphql.Null { 42379 out.Invalids++ 42380 } 42381 case "additionalAddressLines": 42382 out.Values[i] = ec._Commerce_Customer_Address_additionalAddressLines(ctx, field, obj) 42383 case "city": 42384 out.Values[i] = ec._Commerce_Customer_Address_city(ctx, field, obj) 42385 if out.Values[i] == graphql.Null { 42386 out.Invalids++ 42387 } 42388 case "company": 42389 out.Values[i] = ec._Commerce_Customer_Address_company(ctx, field, obj) 42390 if out.Values[i] == graphql.Null { 42391 out.Invalids++ 42392 } 42393 case "countryCode": 42394 out.Values[i] = ec._Commerce_Customer_Address_countryCode(ctx, field, obj) 42395 if out.Values[i] == graphql.Null { 42396 out.Invalids++ 42397 } 42398 case "defaultBilling": 42399 out.Values[i] = ec._Commerce_Customer_Address_defaultBilling(ctx, field, obj) 42400 if out.Values[i] == graphql.Null { 42401 out.Invalids++ 42402 } 42403 case "defaultShipping": 42404 out.Values[i] = ec._Commerce_Customer_Address_defaultShipping(ctx, field, obj) 42405 if out.Values[i] == graphql.Null { 42406 out.Invalids++ 42407 } 42408 case "firstName": 42409 out.Values[i] = ec._Commerce_Customer_Address_firstName(ctx, field, obj) 42410 if out.Values[i] == graphql.Null { 42411 out.Invalids++ 42412 } 42413 case "lastName": 42414 out.Values[i] = ec._Commerce_Customer_Address_lastName(ctx, field, obj) 42415 if out.Values[i] == graphql.Null { 42416 out.Invalids++ 42417 } 42418 case "postCode": 42419 out.Values[i] = ec._Commerce_Customer_Address_postCode(ctx, field, obj) 42420 if out.Values[i] == graphql.Null { 42421 out.Invalids++ 42422 } 42423 case "prefix": 42424 out.Values[i] = ec._Commerce_Customer_Address_prefix(ctx, field, obj) 42425 if out.Values[i] == graphql.Null { 42426 out.Invalids++ 42427 } 42428 case "regionCode": 42429 out.Values[i] = ec._Commerce_Customer_Address_regionCode(ctx, field, obj) 42430 if out.Values[i] == graphql.Null { 42431 out.Invalids++ 42432 } 42433 case "street": 42434 out.Values[i] = ec._Commerce_Customer_Address_street(ctx, field, obj) 42435 if out.Values[i] == graphql.Null { 42436 out.Invalids++ 42437 } 42438 case "streetNumber": 42439 out.Values[i] = ec._Commerce_Customer_Address_streetNumber(ctx, field, obj) 42440 if out.Values[i] == graphql.Null { 42441 out.Invalids++ 42442 } 42443 case "state": 42444 out.Values[i] = ec._Commerce_Customer_Address_state(ctx, field, obj) 42445 if out.Values[i] == graphql.Null { 42446 out.Invalids++ 42447 } 42448 case "telephone": 42449 out.Values[i] = ec._Commerce_Customer_Address_telephone(ctx, field, obj) 42450 if out.Values[i] == graphql.Null { 42451 out.Invalids++ 42452 } 42453 case "email": 42454 out.Values[i] = ec._Commerce_Customer_Address_email(ctx, field, obj) 42455 if out.Values[i] == graphql.Null { 42456 out.Invalids++ 42457 } 42458 default: 42459 panic("unknown field " + strconv.Quote(field.Name)) 42460 } 42461 } 42462 out.Dispatch(ctx) 42463 if out.Invalids > 0 { 42464 return graphql.Null 42465 } 42466 42467 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42468 42469 for label, dfs := range deferred { 42470 ec.processDeferredGroup(graphql.DeferredGroup{ 42471 Label: label, 42472 Path: graphql.GetPath(ctx), 42473 FieldSet: dfs, 42474 Context: ctx, 42475 }) 42476 } 42477 42478 return out 42479 } 42480 42481 var commerce_Customer_PersonDataImplementors = []string{"Commerce_Customer_PersonData"} 42482 42483 func (ec *executionContext) _Commerce_Customer_PersonData(ctx context.Context, sel ast.SelectionSet, obj *domain5.PersonData) graphql.Marshaler { 42484 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Customer_PersonDataImplementors) 42485 42486 out := graphql.NewFieldSet(fields) 42487 deferred := make(map[string]*graphql.FieldSet) 42488 for i, field := range fields { 42489 switch field.Name { 42490 case "__typename": 42491 out.Values[i] = graphql.MarshalString("Commerce_Customer_PersonData") 42492 case "gender": 42493 out.Values[i] = ec._Commerce_Customer_PersonData_gender(ctx, field, obj) 42494 if out.Values[i] == graphql.Null { 42495 out.Invalids++ 42496 } 42497 case "firstName": 42498 out.Values[i] = ec._Commerce_Customer_PersonData_firstName(ctx, field, obj) 42499 if out.Values[i] == graphql.Null { 42500 out.Invalids++ 42501 } 42502 case "lastName": 42503 out.Values[i] = ec._Commerce_Customer_PersonData_lastName(ctx, field, obj) 42504 if out.Values[i] == graphql.Null { 42505 out.Invalids++ 42506 } 42507 case "middleName": 42508 out.Values[i] = ec._Commerce_Customer_PersonData_middleName(ctx, field, obj) 42509 if out.Values[i] == graphql.Null { 42510 out.Invalids++ 42511 } 42512 case "mainEmail": 42513 out.Values[i] = ec._Commerce_Customer_PersonData_mainEmail(ctx, field, obj) 42514 if out.Values[i] == graphql.Null { 42515 out.Invalids++ 42516 } 42517 case "prefix": 42518 out.Values[i] = ec._Commerce_Customer_PersonData_prefix(ctx, field, obj) 42519 if out.Values[i] == graphql.Null { 42520 out.Invalids++ 42521 } 42522 case "birthday": 42523 out.Values[i] = ec._Commerce_Customer_PersonData_birthday(ctx, field, obj) 42524 case "nationality": 42525 out.Values[i] = ec._Commerce_Customer_PersonData_nationality(ctx, field, obj) 42526 if out.Values[i] == graphql.Null { 42527 out.Invalids++ 42528 } 42529 default: 42530 panic("unknown field " + strconv.Quote(field.Name)) 42531 } 42532 } 42533 out.Dispatch(ctx) 42534 if out.Invalids > 0 { 42535 return graphql.Null 42536 } 42537 42538 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42539 42540 for label, dfs := range deferred { 42541 ec.processDeferredGroup(graphql.DeferredGroup{ 42542 Label: label, 42543 Path: graphql.GetPath(ctx), 42544 FieldSet: dfs, 42545 Context: ctx, 42546 }) 42547 } 42548 42549 return out 42550 } 42551 42552 var commerce_Customer_ResultImplementors = []string{"Commerce_Customer_Result"} 42553 42554 func (ec *executionContext) _Commerce_Customer_Result(ctx context.Context, sel ast.SelectionSet, obj *dtocustomer.CustomerResult) graphql.Marshaler { 42555 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Customer_ResultImplementors) 42556 42557 out := graphql.NewFieldSet(fields) 42558 deferred := make(map[string]*graphql.FieldSet) 42559 for i, field := range fields { 42560 switch field.Name { 42561 case "__typename": 42562 out.Values[i] = graphql.MarshalString("Commerce_Customer_Result") 42563 case "id": 42564 out.Values[i] = ec._Commerce_Customer_Result_id(ctx, field, obj) 42565 if out.Values[i] == graphql.Null { 42566 out.Invalids++ 42567 } 42568 case "personalData": 42569 out.Values[i] = ec._Commerce_Customer_Result_personalData(ctx, field, obj) 42570 if out.Values[i] == graphql.Null { 42571 out.Invalids++ 42572 } 42573 case "getAddress": 42574 out.Values[i] = ec._Commerce_Customer_Result_getAddress(ctx, field, obj) 42575 case "addresses": 42576 out.Values[i] = ec._Commerce_Customer_Result_addresses(ctx, field, obj) 42577 case "defaultShippingAddress": 42578 out.Values[i] = ec._Commerce_Customer_Result_defaultShippingAddress(ctx, field, obj) 42579 case "defaultBillingAddress": 42580 out.Values[i] = ec._Commerce_Customer_Result_defaultBillingAddress(ctx, field, obj) 42581 default: 42582 panic("unknown field " + strconv.Quote(field.Name)) 42583 } 42584 } 42585 out.Dispatch(ctx) 42586 if out.Invalids > 0 { 42587 return graphql.Null 42588 } 42589 42590 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42591 42592 for label, dfs := range deferred { 42593 ec.processDeferredGroup(graphql.DeferredGroup{ 42594 Label: label, 42595 Path: graphql.GetPath(ctx), 42596 FieldSet: dfs, 42597 Context: ctx, 42598 }) 42599 } 42600 42601 return out 42602 } 42603 42604 var commerce_Customer_Status_ResultImplementors = []string{"Commerce_Customer_Status_Result"} 42605 42606 func (ec *executionContext) _Commerce_Customer_Status_Result(ctx context.Context, sel ast.SelectionSet, obj *dtocustomer.CustomerStatusResult) graphql.Marshaler { 42607 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Customer_Status_ResultImplementors) 42608 42609 out := graphql.NewFieldSet(fields) 42610 deferred := make(map[string]*graphql.FieldSet) 42611 for i, field := range fields { 42612 switch field.Name { 42613 case "__typename": 42614 out.Values[i] = graphql.MarshalString("Commerce_Customer_Status_Result") 42615 case "isLoggedIn": 42616 out.Values[i] = ec._Commerce_Customer_Status_Result_isLoggedIn(ctx, field, obj) 42617 if out.Values[i] == graphql.Null { 42618 out.Invalids++ 42619 } 42620 case "userID": 42621 out.Values[i] = ec._Commerce_Customer_Status_Result_userID(ctx, field, obj) 42622 if out.Values[i] == graphql.Null { 42623 out.Invalids++ 42624 } 42625 default: 42626 panic("unknown field " + strconv.Quote(field.Name)) 42627 } 42628 } 42629 out.Dispatch(ctx) 42630 if out.Invalids > 0 { 42631 return graphql.Null 42632 } 42633 42634 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42635 42636 for label, dfs := range deferred { 42637 ec.processDeferredGroup(graphql.DeferredGroup{ 42638 Label: label, 42639 Path: graphql.GetPath(ctx), 42640 FieldSet: dfs, 42641 Context: ctx, 42642 }) 42643 } 42644 42645 return out 42646 } 42647 42648 var commerce_PriceImplementors = []string{"Commerce_Price"} 42649 42650 func (ec *executionContext) _Commerce_Price(ctx context.Context, sel ast.SelectionSet, obj *domain.Price) graphql.Marshaler { 42651 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_PriceImplementors) 42652 42653 out := graphql.NewFieldSet(fields) 42654 deferred := make(map[string]*graphql.FieldSet) 42655 for i, field := range fields { 42656 switch field.Name { 42657 case "__typename": 42658 out.Values[i] = graphql.MarshalString("Commerce_Price") 42659 case "amount": 42660 out.Values[i] = ec._Commerce_Price_amount(ctx, field, obj) 42661 case "currency": 42662 out.Values[i] = ec._Commerce_Price_currency(ctx, field, obj) 42663 if out.Values[i] == graphql.Null { 42664 out.Invalids++ 42665 } 42666 default: 42667 panic("unknown field " + strconv.Quote(field.Name)) 42668 } 42669 } 42670 out.Dispatch(ctx) 42671 if out.Invalids > 0 { 42672 return graphql.Null 42673 } 42674 42675 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42676 42677 for label, dfs := range deferred { 42678 ec.processDeferredGroup(graphql.DeferredGroup{ 42679 Label: label, 42680 Path: graphql.GetPath(ctx), 42681 FieldSet: dfs, 42682 Context: ctx, 42683 }) 42684 } 42685 42686 return out 42687 } 42688 42689 var commerce_Price_ChargeImplementors = []string{"Commerce_Price_Charge"} 42690 42691 func (ec *executionContext) _Commerce_Price_Charge(ctx context.Context, sel ast.SelectionSet, obj *domain.Charge) graphql.Marshaler { 42692 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Price_ChargeImplementors) 42693 42694 out := graphql.NewFieldSet(fields) 42695 deferred := make(map[string]*graphql.FieldSet) 42696 for i, field := range fields { 42697 switch field.Name { 42698 case "__typename": 42699 out.Values[i] = graphql.MarshalString("Commerce_Price_Charge") 42700 case "price": 42701 out.Values[i] = ec._Commerce_Price_Charge_price(ctx, field, obj) 42702 if out.Values[i] == graphql.Null { 42703 out.Invalids++ 42704 } 42705 case "value": 42706 out.Values[i] = ec._Commerce_Price_Charge_value(ctx, field, obj) 42707 if out.Values[i] == graphql.Null { 42708 out.Invalids++ 42709 } 42710 case "type": 42711 out.Values[i] = ec._Commerce_Price_Charge_type(ctx, field, obj) 42712 if out.Values[i] == graphql.Null { 42713 out.Invalids++ 42714 } 42715 case "reference": 42716 out.Values[i] = ec._Commerce_Price_Charge_reference(ctx, field, obj) 42717 if out.Values[i] == graphql.Null { 42718 out.Invalids++ 42719 } 42720 default: 42721 panic("unknown field " + strconv.Quote(field.Name)) 42722 } 42723 } 42724 out.Dispatch(ctx) 42725 if out.Invalids > 0 { 42726 return graphql.Null 42727 } 42728 42729 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42730 42731 for label, dfs := range deferred { 42732 ec.processDeferredGroup(graphql.DeferredGroup{ 42733 Label: label, 42734 Path: graphql.GetPath(ctx), 42735 FieldSet: dfs, 42736 Context: ctx, 42737 }) 42738 } 42739 42740 return out 42741 } 42742 42743 var commerce_Price_ChargeQualifierImplementors = []string{"Commerce_Price_ChargeQualifier"} 42744 42745 func (ec *executionContext) _Commerce_Price_ChargeQualifier(ctx context.Context, sel ast.SelectionSet, obj *domain.ChargeQualifier) graphql.Marshaler { 42746 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Price_ChargeQualifierImplementors) 42747 42748 out := graphql.NewFieldSet(fields) 42749 deferred := make(map[string]*graphql.FieldSet) 42750 for i, field := range fields { 42751 switch field.Name { 42752 case "__typename": 42753 out.Values[i] = graphql.MarshalString("Commerce_Price_ChargeQualifier") 42754 case "type": 42755 out.Values[i] = ec._Commerce_Price_ChargeQualifier_type(ctx, field, obj) 42756 if out.Values[i] == graphql.Null { 42757 out.Invalids++ 42758 } 42759 case "reference": 42760 out.Values[i] = ec._Commerce_Price_ChargeQualifier_reference(ctx, field, obj) 42761 if out.Values[i] == graphql.Null { 42762 out.Invalids++ 42763 } 42764 default: 42765 panic("unknown field " + strconv.Quote(field.Name)) 42766 } 42767 } 42768 out.Dispatch(ctx) 42769 if out.Invalids > 0 { 42770 return graphql.Null 42771 } 42772 42773 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42774 42775 for label, dfs := range deferred { 42776 ec.processDeferredGroup(graphql.DeferredGroup{ 42777 Label: label, 42778 Path: graphql.GetPath(ctx), 42779 FieldSet: dfs, 42780 Context: ctx, 42781 }) 42782 } 42783 42784 return out 42785 } 42786 42787 var commerce_Price_ChargesImplementors = []string{"Commerce_Price_Charges"} 42788 42789 func (ec *executionContext) _Commerce_Price_Charges(ctx context.Context, sel ast.SelectionSet, obj *domain.Charges) graphql.Marshaler { 42790 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Price_ChargesImplementors) 42791 42792 out := graphql.NewFieldSet(fields) 42793 deferred := make(map[string]*graphql.FieldSet) 42794 for i, field := range fields { 42795 switch field.Name { 42796 case "__typename": 42797 out.Values[i] = graphql.MarshalString("Commerce_Price_Charges") 42798 case "items": 42799 out.Values[i] = ec._Commerce_Price_Charges_items(ctx, field, obj) 42800 case "hasType": 42801 out.Values[i] = ec._Commerce_Price_Charges_hasType(ctx, field, obj) 42802 case "hasChargeQualifier": 42803 out.Values[i] = ec._Commerce_Price_Charges_hasChargeQualifier(ctx, field, obj) 42804 case "getByChargeQualifierForced": 42805 out.Values[i] = ec._Commerce_Price_Charges_getByChargeQualifierForced(ctx, field, obj) 42806 case "getByTypeForced": 42807 out.Values[i] = ec._Commerce_Price_Charges_getByTypeForced(ctx, field, obj) 42808 default: 42809 panic("unknown field " + strconv.Quote(field.Name)) 42810 } 42811 } 42812 out.Dispatch(ctx) 42813 if out.Invalids > 0 { 42814 return graphql.Null 42815 } 42816 42817 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42818 42819 for label, dfs := range deferred { 42820 ec.processDeferredGroup(graphql.DeferredGroup{ 42821 Label: label, 42822 Path: graphql.GetPath(ctx), 42823 FieldSet: dfs, 42824 Context: ctx, 42825 }) 42826 } 42827 42828 return out 42829 } 42830 42831 var commerce_Product_ActiveVariantProductImplementors = []string{"Commerce_Product_ActiveVariantProduct", "Commerce_Product"} 42832 42833 func (ec *executionContext) _Commerce_Product_ActiveVariantProduct(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ActiveVariantProduct) graphql.Marshaler { 42834 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_ActiveVariantProductImplementors) 42835 42836 out := graphql.NewFieldSet(fields) 42837 deferred := make(map[string]*graphql.FieldSet) 42838 for i, field := range fields { 42839 switch field.Name { 42840 case "__typename": 42841 out.Values[i] = graphql.MarshalString("Commerce_Product_ActiveVariantProduct") 42842 case "type": 42843 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_type(ctx, field, obj) 42844 if out.Values[i] == graphql.Null { 42845 out.Invalids++ 42846 } 42847 case "marketPlaceCode": 42848 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_marketPlaceCode(ctx, field, obj) 42849 if out.Values[i] == graphql.Null { 42850 out.Invalids++ 42851 } 42852 case "identifier": 42853 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_identifier(ctx, field, obj) 42854 if out.Values[i] == graphql.Null { 42855 out.Invalids++ 42856 } 42857 case "media": 42858 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_media(ctx, field, obj) 42859 if out.Values[i] == graphql.Null { 42860 out.Invalids++ 42861 } 42862 case "price": 42863 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_price(ctx, field, obj) 42864 if out.Values[i] == graphql.Null { 42865 out.Invalids++ 42866 } 42867 case "availablePrices": 42868 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_availablePrices(ctx, field, obj) 42869 case "title": 42870 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_title(ctx, field, obj) 42871 if out.Values[i] == graphql.Null { 42872 out.Invalids++ 42873 } 42874 case "categories": 42875 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_categories(ctx, field, obj) 42876 if out.Values[i] == graphql.Null { 42877 out.Invalids++ 42878 } 42879 case "description": 42880 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_description(ctx, field, obj) 42881 if out.Values[i] == graphql.Null { 42882 out.Invalids++ 42883 } 42884 case "shortDescription": 42885 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_shortDescription(ctx, field, obj) 42886 if out.Values[i] == graphql.Null { 42887 out.Invalids++ 42888 } 42889 case "meta": 42890 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_meta(ctx, field, obj) 42891 if out.Values[i] == graphql.Null { 42892 out.Invalids++ 42893 } 42894 case "loyalty": 42895 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_loyalty(ctx, field, obj) 42896 if out.Values[i] == graphql.Null { 42897 out.Invalids++ 42898 } 42899 case "attributes": 42900 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_attributes(ctx, field, obj) 42901 if out.Values[i] == graphql.Null { 42902 out.Invalids++ 42903 } 42904 case "variantMarketPlaceCode": 42905 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_variantMarketPlaceCode(ctx, field, obj) 42906 if out.Values[i] == graphql.Null { 42907 out.Invalids++ 42908 } 42909 case "variationSelections": 42910 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_variationSelections(ctx, field, obj) 42911 case "activeVariationSelections": 42912 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_activeVariationSelections(ctx, field, obj) 42913 case "badges": 42914 out.Values[i] = ec._Commerce_Product_ActiveVariantProduct_badges(ctx, field, obj) 42915 if out.Values[i] == graphql.Null { 42916 out.Invalids++ 42917 } 42918 default: 42919 panic("unknown field " + strconv.Quote(field.Name)) 42920 } 42921 } 42922 out.Dispatch(ctx) 42923 if out.Invalids > 0 { 42924 return graphql.Null 42925 } 42926 42927 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42928 42929 for label, dfs := range deferred { 42930 ec.processDeferredGroup(graphql.DeferredGroup{ 42931 Label: label, 42932 Path: graphql.GetPath(ctx), 42933 FieldSet: dfs, 42934 Context: ctx, 42935 }) 42936 } 42937 42938 return out 42939 } 42940 42941 var commerce_Product_ActiveVariationSelectionImplementors = []string{"Commerce_Product_ActiveVariationSelection"} 42942 42943 func (ec *executionContext) _Commerce_Product_ActiveVariationSelection(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ActiveVariationSelection) graphql.Marshaler { 42944 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_ActiveVariationSelectionImplementors) 42945 42946 out := graphql.NewFieldSet(fields) 42947 deferred := make(map[string]*graphql.FieldSet) 42948 for i, field := range fields { 42949 switch field.Name { 42950 case "__typename": 42951 out.Values[i] = graphql.MarshalString("Commerce_Product_ActiveVariationSelection") 42952 case "code": 42953 out.Values[i] = ec._Commerce_Product_ActiveVariationSelection_code(ctx, field, obj) 42954 if out.Values[i] == graphql.Null { 42955 out.Invalids++ 42956 } 42957 case "label": 42958 out.Values[i] = ec._Commerce_Product_ActiveVariationSelection_label(ctx, field, obj) 42959 if out.Values[i] == graphql.Null { 42960 out.Invalids++ 42961 } 42962 case "value": 42963 out.Values[i] = ec._Commerce_Product_ActiveVariationSelection_value(ctx, field, obj) 42964 if out.Values[i] == graphql.Null { 42965 out.Invalids++ 42966 } 42967 case "unitCode": 42968 out.Values[i] = ec._Commerce_Product_ActiveVariationSelection_unitCode(ctx, field, obj) 42969 if out.Values[i] == graphql.Null { 42970 out.Invalids++ 42971 } 42972 default: 42973 panic("unknown field " + strconv.Quote(field.Name)) 42974 } 42975 } 42976 out.Dispatch(ctx) 42977 if out.Invalids > 0 { 42978 return graphql.Null 42979 } 42980 42981 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 42982 42983 for label, dfs := range deferred { 42984 ec.processDeferredGroup(graphql.DeferredGroup{ 42985 Label: label, 42986 Path: graphql.GetPath(ctx), 42987 FieldSet: dfs, 42988 Context: ctx, 42989 }) 42990 } 42991 42992 return out 42993 } 42994 42995 var commerce_Product_AttributeImplementors = []string{"Commerce_Product_Attribute"} 42996 42997 func (ec *executionContext) _Commerce_Product_Attribute(ctx context.Context, sel ast.SelectionSet, obj *domain1.Attribute) graphql.Marshaler { 42998 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_AttributeImplementors) 42999 43000 out := graphql.NewFieldSet(fields) 43001 deferred := make(map[string]*graphql.FieldSet) 43002 for i, field := range fields { 43003 switch field.Name { 43004 case "__typename": 43005 out.Values[i] = graphql.MarshalString("Commerce_Product_Attribute") 43006 case "code": 43007 out.Values[i] = ec._Commerce_Product_Attribute_code(ctx, field, obj) 43008 if out.Values[i] == graphql.Null { 43009 out.Invalids++ 43010 } 43011 case "codeLabel": 43012 out.Values[i] = ec._Commerce_Product_Attribute_codeLabel(ctx, field, obj) 43013 if out.Values[i] == graphql.Null { 43014 out.Invalids++ 43015 } 43016 case "label": 43017 out.Values[i] = ec._Commerce_Product_Attribute_label(ctx, field, obj) 43018 if out.Values[i] == graphql.Null { 43019 out.Invalids++ 43020 } 43021 case "value": 43022 out.Values[i] = ec._Commerce_Product_Attribute_value(ctx, field, obj) 43023 if out.Values[i] == graphql.Null { 43024 out.Invalids++ 43025 } 43026 case "unitCode": 43027 out.Values[i] = ec._Commerce_Product_Attribute_unitCode(ctx, field, obj) 43028 if out.Values[i] == graphql.Null { 43029 out.Invalids++ 43030 } 43031 case "values": 43032 out.Values[i] = ec._Commerce_Product_Attribute_values(ctx, field, obj) 43033 case "labels": 43034 out.Values[i] = ec._Commerce_Product_Attribute_labels(ctx, field, obj) 43035 default: 43036 panic("unknown field " + strconv.Quote(field.Name)) 43037 } 43038 } 43039 out.Dispatch(ctx) 43040 if out.Invalids > 0 { 43041 return graphql.Null 43042 } 43043 43044 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43045 43046 for label, dfs := range deferred { 43047 ec.processDeferredGroup(graphql.DeferredGroup{ 43048 Label: label, 43049 Path: graphql.GetPath(ctx), 43050 FieldSet: dfs, 43051 Context: ctx, 43052 }) 43053 } 43054 43055 return out 43056 } 43057 43058 var commerce_Product_AttributesImplementors = []string{"Commerce_Product_Attributes"} 43059 43060 func (ec *executionContext) _Commerce_Product_Attributes(ctx context.Context, sel ast.SelectionSet, obj domain1.Attributes) graphql.Marshaler { 43061 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_AttributesImplementors) 43062 43063 out := graphql.NewFieldSet(fields) 43064 deferred := make(map[string]*graphql.FieldSet) 43065 for i, field := range fields { 43066 switch field.Name { 43067 case "__typename": 43068 out.Values[i] = graphql.MarshalString("Commerce_Product_Attributes") 43069 case "attributeKeys": 43070 out.Values[i] = ec._Commerce_Product_Attributes_attributeKeys(ctx, field, obj) 43071 case "attributes": 43072 out.Values[i] = ec._Commerce_Product_Attributes_attributes(ctx, field, obj) 43073 case "hasAttribute": 43074 out.Values[i] = ec._Commerce_Product_Attributes_hasAttribute(ctx, field, obj) 43075 case "getAttribute": 43076 out.Values[i] = ec._Commerce_Product_Attributes_getAttribute(ctx, field, obj) 43077 case "getAttributesByKey": 43078 out.Values[i] = ec._Commerce_Product_Attributes_getAttributesByKey(ctx, field, obj) 43079 default: 43080 panic("unknown field " + strconv.Quote(field.Name)) 43081 } 43082 } 43083 out.Dispatch(ctx) 43084 if out.Invalids > 0 { 43085 return graphql.Null 43086 } 43087 43088 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43089 43090 for label, dfs := range deferred { 43091 ec.processDeferredGroup(graphql.DeferredGroup{ 43092 Label: label, 43093 Path: graphql.GetPath(ctx), 43094 FieldSet: dfs, 43095 Context: ctx, 43096 }) 43097 } 43098 43099 return out 43100 } 43101 43102 var commerce_Product_BadgeImplementors = []string{"Commerce_Product_Badge"} 43103 43104 func (ec *executionContext) _Commerce_Product_Badge(ctx context.Context, sel ast.SelectionSet, obj *domain1.Badge) graphql.Marshaler { 43105 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_BadgeImplementors) 43106 43107 out := graphql.NewFieldSet(fields) 43108 deferred := make(map[string]*graphql.FieldSet) 43109 for i, field := range fields { 43110 switch field.Name { 43111 case "__typename": 43112 out.Values[i] = graphql.MarshalString("Commerce_Product_Badge") 43113 case "code": 43114 out.Values[i] = ec._Commerce_Product_Badge_code(ctx, field, obj) 43115 if out.Values[i] == graphql.Null { 43116 out.Invalids++ 43117 } 43118 case "label": 43119 out.Values[i] = ec._Commerce_Product_Badge_label(ctx, field, obj) 43120 if out.Values[i] == graphql.Null { 43121 out.Invalids++ 43122 } 43123 default: 43124 panic("unknown field " + strconv.Quote(field.Name)) 43125 } 43126 } 43127 out.Dispatch(ctx) 43128 if out.Invalids > 0 { 43129 return graphql.Null 43130 } 43131 43132 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43133 43134 for label, dfs := range deferred { 43135 ec.processDeferredGroup(graphql.DeferredGroup{ 43136 Label: label, 43137 Path: graphql.GetPath(ctx), 43138 FieldSet: dfs, 43139 Context: ctx, 43140 }) 43141 } 43142 43143 return out 43144 } 43145 43146 var commerce_Product_BadgesImplementors = []string{"Commerce_Product_Badges"} 43147 43148 func (ec *executionContext) _Commerce_Product_Badges(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ProductBadges) graphql.Marshaler { 43149 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_BadgesImplementors) 43150 43151 out := graphql.NewFieldSet(fields) 43152 deferred := make(map[string]*graphql.FieldSet) 43153 for i, field := range fields { 43154 switch field.Name { 43155 case "__typename": 43156 out.Values[i] = graphql.MarshalString("Commerce_Product_Badges") 43157 case "all": 43158 out.Values[i] = ec._Commerce_Product_Badges_all(ctx, field, obj) 43159 case "first": 43160 out.Values[i] = ec._Commerce_Product_Badges_first(ctx, field, obj) 43161 default: 43162 panic("unknown field " + strconv.Quote(field.Name)) 43163 } 43164 } 43165 out.Dispatch(ctx) 43166 if out.Invalids > 0 { 43167 return graphql.Null 43168 } 43169 43170 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43171 43172 for label, dfs := range deferred { 43173 ec.processDeferredGroup(graphql.DeferredGroup{ 43174 Label: label, 43175 Path: graphql.GetPath(ctx), 43176 FieldSet: dfs, 43177 Context: ctx, 43178 }) 43179 } 43180 43181 return out 43182 } 43183 43184 var commerce_Product_BundleProductImplementors = []string{"Commerce_Product_BundleProduct", "Commerce_Product"} 43185 43186 func (ec *executionContext) _Commerce_Product_BundleProduct(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.BundleProduct) graphql.Marshaler { 43187 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_BundleProductImplementors) 43188 43189 out := graphql.NewFieldSet(fields) 43190 deferred := make(map[string]*graphql.FieldSet) 43191 for i, field := range fields { 43192 switch field.Name { 43193 case "__typename": 43194 out.Values[i] = graphql.MarshalString("Commerce_Product_BundleProduct") 43195 case "type": 43196 out.Values[i] = ec._Commerce_Product_BundleProduct_type(ctx, field, obj) 43197 if out.Values[i] == graphql.Null { 43198 out.Invalids++ 43199 } 43200 case "marketPlaceCode": 43201 out.Values[i] = ec._Commerce_Product_BundleProduct_marketPlaceCode(ctx, field, obj) 43202 if out.Values[i] == graphql.Null { 43203 out.Invalids++ 43204 } 43205 case "identifier": 43206 out.Values[i] = ec._Commerce_Product_BundleProduct_identifier(ctx, field, obj) 43207 if out.Values[i] == graphql.Null { 43208 out.Invalids++ 43209 } 43210 case "media": 43211 out.Values[i] = ec._Commerce_Product_BundleProduct_media(ctx, field, obj) 43212 if out.Values[i] == graphql.Null { 43213 out.Invalids++ 43214 } 43215 case "price": 43216 out.Values[i] = ec._Commerce_Product_BundleProduct_price(ctx, field, obj) 43217 if out.Values[i] == graphql.Null { 43218 out.Invalids++ 43219 } 43220 case "availablePrices": 43221 out.Values[i] = ec._Commerce_Product_BundleProduct_availablePrices(ctx, field, obj) 43222 case "title": 43223 out.Values[i] = ec._Commerce_Product_BundleProduct_title(ctx, field, obj) 43224 if out.Values[i] == graphql.Null { 43225 out.Invalids++ 43226 } 43227 case "categories": 43228 out.Values[i] = ec._Commerce_Product_BundleProduct_categories(ctx, field, obj) 43229 if out.Values[i] == graphql.Null { 43230 out.Invalids++ 43231 } 43232 case "description": 43233 out.Values[i] = ec._Commerce_Product_BundleProduct_description(ctx, field, obj) 43234 if out.Values[i] == graphql.Null { 43235 out.Invalids++ 43236 } 43237 case "shortDescription": 43238 out.Values[i] = ec._Commerce_Product_BundleProduct_shortDescription(ctx, field, obj) 43239 if out.Values[i] == graphql.Null { 43240 out.Invalids++ 43241 } 43242 case "meta": 43243 out.Values[i] = ec._Commerce_Product_BundleProduct_meta(ctx, field, obj) 43244 if out.Values[i] == graphql.Null { 43245 out.Invalids++ 43246 } 43247 case "loyalty": 43248 out.Values[i] = ec._Commerce_Product_BundleProduct_loyalty(ctx, field, obj) 43249 if out.Values[i] == graphql.Null { 43250 out.Invalids++ 43251 } 43252 case "attributes": 43253 out.Values[i] = ec._Commerce_Product_BundleProduct_attributes(ctx, field, obj) 43254 if out.Values[i] == graphql.Null { 43255 out.Invalids++ 43256 } 43257 case "badges": 43258 out.Values[i] = ec._Commerce_Product_BundleProduct_badges(ctx, field, obj) 43259 if out.Values[i] == graphql.Null { 43260 out.Invalids++ 43261 } 43262 case "choices": 43263 out.Values[i] = ec._Commerce_Product_BundleProduct_choices(ctx, field, obj) 43264 default: 43265 panic("unknown field " + strconv.Quote(field.Name)) 43266 } 43267 } 43268 out.Dispatch(ctx) 43269 if out.Invalids > 0 { 43270 return graphql.Null 43271 } 43272 43273 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43274 43275 for label, dfs := range deferred { 43276 ec.processDeferredGroup(graphql.DeferredGroup{ 43277 Label: label, 43278 Path: graphql.GetPath(ctx), 43279 FieldSet: dfs, 43280 Context: ctx, 43281 }) 43282 } 43283 43284 return out 43285 } 43286 43287 var commerce_Product_CategoriesImplementors = []string{"Commerce_Product_Categories"} 43288 43289 func (ec *executionContext) _Commerce_Product_Categories(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ProductCategories) graphql.Marshaler { 43290 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_CategoriesImplementors) 43291 43292 out := graphql.NewFieldSet(fields) 43293 deferred := make(map[string]*graphql.FieldSet) 43294 for i, field := range fields { 43295 switch field.Name { 43296 case "__typename": 43297 out.Values[i] = graphql.MarshalString("Commerce_Product_Categories") 43298 case "main": 43299 out.Values[i] = ec._Commerce_Product_Categories_main(ctx, field, obj) 43300 if out.Values[i] == graphql.Null { 43301 out.Invalids++ 43302 } 43303 case "all": 43304 out.Values[i] = ec._Commerce_Product_Categories_all(ctx, field, obj) 43305 default: 43306 panic("unknown field " + strconv.Quote(field.Name)) 43307 } 43308 } 43309 out.Dispatch(ctx) 43310 if out.Invalids > 0 { 43311 return graphql.Null 43312 } 43313 43314 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43315 43316 for label, dfs := range deferred { 43317 ec.processDeferredGroup(graphql.DeferredGroup{ 43318 Label: label, 43319 Path: graphql.GetPath(ctx), 43320 FieldSet: dfs, 43321 Context: ctx, 43322 }) 43323 } 43324 43325 return out 43326 } 43327 43328 var commerce_Product_CategoryTeaserImplementors = []string{"Commerce_Product_CategoryTeaser"} 43329 43330 func (ec *executionContext) _Commerce_Product_CategoryTeaser(ctx context.Context, sel ast.SelectionSet, obj *domain1.CategoryTeaser) graphql.Marshaler { 43331 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_CategoryTeaserImplementors) 43332 43333 out := graphql.NewFieldSet(fields) 43334 deferred := make(map[string]*graphql.FieldSet) 43335 for i, field := range fields { 43336 switch field.Name { 43337 case "__typename": 43338 out.Values[i] = graphql.MarshalString("Commerce_Product_CategoryTeaser") 43339 case "code": 43340 out.Values[i] = ec._Commerce_Product_CategoryTeaser_code(ctx, field, obj) 43341 if out.Values[i] == graphql.Null { 43342 out.Invalids++ 43343 } 43344 case "path": 43345 out.Values[i] = ec._Commerce_Product_CategoryTeaser_path(ctx, field, obj) 43346 if out.Values[i] == graphql.Null { 43347 out.Invalids++ 43348 } 43349 case "name": 43350 out.Values[i] = ec._Commerce_Product_CategoryTeaser_name(ctx, field, obj) 43351 if out.Values[i] == graphql.Null { 43352 out.Invalids++ 43353 } 43354 case "parent": 43355 out.Values[i] = ec._Commerce_Product_CategoryTeaser_parent(ctx, field, obj) 43356 default: 43357 panic("unknown field " + strconv.Quote(field.Name)) 43358 } 43359 } 43360 out.Dispatch(ctx) 43361 if out.Invalids > 0 { 43362 return graphql.Null 43363 } 43364 43365 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43366 43367 for label, dfs := range deferred { 43368 ec.processDeferredGroup(graphql.DeferredGroup{ 43369 Label: label, 43370 Path: graphql.GetPath(ctx), 43371 FieldSet: dfs, 43372 Context: ctx, 43373 }) 43374 } 43375 43376 return out 43377 } 43378 43379 var commerce_Product_ChoiceImplementors = []string{"Commerce_Product_Choice"} 43380 43381 func (ec *executionContext) _Commerce_Product_Choice(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.Choice) graphql.Marshaler { 43382 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_ChoiceImplementors) 43383 43384 out := graphql.NewFieldSet(fields) 43385 deferred := make(map[string]*graphql.FieldSet) 43386 for i, field := range fields { 43387 switch field.Name { 43388 case "__typename": 43389 out.Values[i] = graphql.MarshalString("Commerce_Product_Choice") 43390 case "identifier": 43391 out.Values[i] = ec._Commerce_Product_Choice_identifier(ctx, field, obj) 43392 if out.Values[i] == graphql.Null { 43393 out.Invalids++ 43394 } 43395 case "required": 43396 out.Values[i] = ec._Commerce_Product_Choice_required(ctx, field, obj) 43397 if out.Values[i] == graphql.Null { 43398 out.Invalids++ 43399 } 43400 case "label": 43401 out.Values[i] = ec._Commerce_Product_Choice_label(ctx, field, obj) 43402 if out.Values[i] == graphql.Null { 43403 out.Invalids++ 43404 } 43405 case "options": 43406 out.Values[i] = ec._Commerce_Product_Choice_options(ctx, field, obj) 43407 case "active": 43408 out.Values[i] = ec._Commerce_Product_Choice_active(ctx, field, obj) 43409 case "activeOption": 43410 out.Values[i] = ec._Commerce_Product_Choice_activeOption(ctx, field, obj) 43411 default: 43412 panic("unknown field " + strconv.Quote(field.Name)) 43413 } 43414 } 43415 out.Dispatch(ctx) 43416 if out.Invalids > 0 { 43417 return graphql.Null 43418 } 43419 43420 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43421 43422 for label, dfs := range deferred { 43423 ec.processDeferredGroup(graphql.DeferredGroup{ 43424 Label: label, 43425 Path: graphql.GetPath(ctx), 43426 FieldSet: dfs, 43427 Context: ctx, 43428 }) 43429 } 43430 43431 return out 43432 } 43433 43434 var commerce_Product_ConfigurableProductImplementors = []string{"Commerce_Product_ConfigurableProduct", "Commerce_Product"} 43435 43436 func (ec *executionContext) _Commerce_Product_ConfigurableProduct(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ConfigurableProduct) graphql.Marshaler { 43437 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_ConfigurableProductImplementors) 43438 43439 out := graphql.NewFieldSet(fields) 43440 deferred := make(map[string]*graphql.FieldSet) 43441 for i, field := range fields { 43442 switch field.Name { 43443 case "__typename": 43444 out.Values[i] = graphql.MarshalString("Commerce_Product_ConfigurableProduct") 43445 case "type": 43446 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_type(ctx, field, obj) 43447 if out.Values[i] == graphql.Null { 43448 out.Invalids++ 43449 } 43450 case "marketPlaceCode": 43451 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_marketPlaceCode(ctx, field, obj) 43452 if out.Values[i] == graphql.Null { 43453 out.Invalids++ 43454 } 43455 case "identifier": 43456 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_identifier(ctx, field, obj) 43457 if out.Values[i] == graphql.Null { 43458 out.Invalids++ 43459 } 43460 case "media": 43461 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_media(ctx, field, obj) 43462 if out.Values[i] == graphql.Null { 43463 out.Invalids++ 43464 } 43465 case "price": 43466 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_price(ctx, field, obj) 43467 if out.Values[i] == graphql.Null { 43468 out.Invalids++ 43469 } 43470 case "availablePrices": 43471 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_availablePrices(ctx, field, obj) 43472 case "title": 43473 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_title(ctx, field, obj) 43474 if out.Values[i] == graphql.Null { 43475 out.Invalids++ 43476 } 43477 case "categories": 43478 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_categories(ctx, field, obj) 43479 if out.Values[i] == graphql.Null { 43480 out.Invalids++ 43481 } 43482 case "description": 43483 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_description(ctx, field, obj) 43484 if out.Values[i] == graphql.Null { 43485 out.Invalids++ 43486 } 43487 case "shortDescription": 43488 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_shortDescription(ctx, field, obj) 43489 if out.Values[i] == graphql.Null { 43490 out.Invalids++ 43491 } 43492 case "meta": 43493 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_meta(ctx, field, obj) 43494 if out.Values[i] == graphql.Null { 43495 out.Invalids++ 43496 } 43497 case "loyalty": 43498 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_loyalty(ctx, field, obj) 43499 if out.Values[i] == graphql.Null { 43500 out.Invalids++ 43501 } 43502 case "attributes": 43503 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_attributes(ctx, field, obj) 43504 if out.Values[i] == graphql.Null { 43505 out.Invalids++ 43506 } 43507 case "variantSelection": 43508 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_variantSelection(ctx, field, obj) 43509 if out.Values[i] == graphql.Null { 43510 out.Invalids++ 43511 } 43512 case "badges": 43513 out.Values[i] = ec._Commerce_Product_ConfigurableProduct_badges(ctx, field, obj) 43514 if out.Values[i] == graphql.Null { 43515 out.Invalids++ 43516 } 43517 default: 43518 panic("unknown field " + strconv.Quote(field.Name)) 43519 } 43520 } 43521 out.Dispatch(ctx) 43522 if out.Invalids > 0 { 43523 return graphql.Null 43524 } 43525 43526 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43527 43528 for label, dfs := range deferred { 43529 ec.processDeferredGroup(graphql.DeferredGroup{ 43530 Label: label, 43531 Path: graphql.GetPath(ctx), 43532 FieldSet: dfs, 43533 Context: ctx, 43534 }) 43535 } 43536 43537 return out 43538 } 43539 43540 var commerce_Product_LoyaltyImplementors = []string{"Commerce_Product_Loyalty"} 43541 43542 func (ec *executionContext) _Commerce_Product_Loyalty(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ProductLoyalty) graphql.Marshaler { 43543 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_LoyaltyImplementors) 43544 43545 out := graphql.NewFieldSet(fields) 43546 deferred := make(map[string]*graphql.FieldSet) 43547 for i, field := range fields { 43548 switch field.Name { 43549 case "__typename": 43550 out.Values[i] = graphql.MarshalString("Commerce_Product_Loyalty") 43551 case "price": 43552 out.Values[i] = ec._Commerce_Product_Loyalty_price(ctx, field, obj) 43553 case "availablePrices": 43554 out.Values[i] = ec._Commerce_Product_Loyalty_availablePrices(ctx, field, obj) 43555 case "earning": 43556 out.Values[i] = ec._Commerce_Product_Loyalty_earning(ctx, field, obj) 43557 default: 43558 panic("unknown field " + strconv.Quote(field.Name)) 43559 } 43560 } 43561 out.Dispatch(ctx) 43562 if out.Invalids > 0 { 43563 return graphql.Null 43564 } 43565 43566 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43567 43568 for label, dfs := range deferred { 43569 ec.processDeferredGroup(graphql.DeferredGroup{ 43570 Label: label, 43571 Path: graphql.GetPath(ctx), 43572 FieldSet: dfs, 43573 Context: ctx, 43574 }) 43575 } 43576 43577 return out 43578 } 43579 43580 var commerce_Product_Loyalty_EarningInfoImplementors = []string{"Commerce_Product_Loyalty_EarningInfo"} 43581 43582 func (ec *executionContext) _Commerce_Product_Loyalty_EarningInfo(ctx context.Context, sel ast.SelectionSet, obj *domain1.LoyaltyEarningInfo) graphql.Marshaler { 43583 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_Loyalty_EarningInfoImplementors) 43584 43585 out := graphql.NewFieldSet(fields) 43586 deferred := make(map[string]*graphql.FieldSet) 43587 for i, field := range fields { 43588 switch field.Name { 43589 case "__typename": 43590 out.Values[i] = graphql.MarshalString("Commerce_Product_Loyalty_EarningInfo") 43591 case "type": 43592 out.Values[i] = ec._Commerce_Product_Loyalty_EarningInfo_type(ctx, field, obj) 43593 if out.Values[i] == graphql.Null { 43594 out.Invalids++ 43595 } 43596 case "default": 43597 out.Values[i] = ec._Commerce_Product_Loyalty_EarningInfo_default(ctx, field, obj) 43598 if out.Values[i] == graphql.Null { 43599 out.Invalids++ 43600 } 43601 default: 43602 panic("unknown field " + strconv.Quote(field.Name)) 43603 } 43604 } 43605 out.Dispatch(ctx) 43606 if out.Invalids > 0 { 43607 return graphql.Null 43608 } 43609 43610 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43611 43612 for label, dfs := range deferred { 43613 ec.processDeferredGroup(graphql.DeferredGroup{ 43614 Label: label, 43615 Path: graphql.GetPath(ctx), 43616 FieldSet: dfs, 43617 Context: ctx, 43618 }) 43619 } 43620 43621 return out 43622 } 43623 43624 var commerce_Product_Loyalty_PriceInfoImplementors = []string{"Commerce_Product_Loyalty_PriceInfo"} 43625 43626 func (ec *executionContext) _Commerce_Product_Loyalty_PriceInfo(ctx context.Context, sel ast.SelectionSet, obj *domain1.LoyaltyPriceInfo) graphql.Marshaler { 43627 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_Loyalty_PriceInfoImplementors) 43628 43629 out := graphql.NewFieldSet(fields) 43630 deferred := make(map[string]*graphql.FieldSet) 43631 for i, field := range fields { 43632 switch field.Name { 43633 case "__typename": 43634 out.Values[i] = graphql.MarshalString("Commerce_Product_Loyalty_PriceInfo") 43635 case "type": 43636 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_type(ctx, field, obj) 43637 if out.Values[i] == graphql.Null { 43638 out.Invalids++ 43639 } 43640 case "default": 43641 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_default(ctx, field, obj) 43642 if out.Values[i] == graphql.Null { 43643 out.Invalids++ 43644 } 43645 case "isDiscounted": 43646 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_isDiscounted(ctx, field, obj) 43647 if out.Values[i] == graphql.Null { 43648 out.Invalids++ 43649 } 43650 case "discounted": 43651 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_discounted(ctx, field, obj) 43652 if out.Values[i] == graphql.Null { 43653 out.Invalids++ 43654 } 43655 case "discountText": 43656 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_discountText(ctx, field, obj) 43657 if out.Values[i] == graphql.Null { 43658 out.Invalids++ 43659 } 43660 case "minPointsToSpent": 43661 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_minPointsToSpent(ctx, field, obj) 43662 if out.Values[i] == graphql.Null { 43663 out.Invalids++ 43664 } 43665 case "maxPointsToSpent": 43666 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_maxPointsToSpent(ctx, field, obj) 43667 if out.Values[i] == graphql.Null { 43668 out.Invalids++ 43669 } 43670 case "context": 43671 out.Values[i] = ec._Commerce_Product_Loyalty_PriceInfo_context(ctx, field, obj) 43672 if out.Values[i] == graphql.Null { 43673 out.Invalids++ 43674 } 43675 default: 43676 panic("unknown field " + strconv.Quote(field.Name)) 43677 } 43678 } 43679 out.Dispatch(ctx) 43680 if out.Invalids > 0 { 43681 return graphql.Null 43682 } 43683 43684 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43685 43686 for label, dfs := range deferred { 43687 ec.processDeferredGroup(graphql.DeferredGroup{ 43688 Label: label, 43689 Path: graphql.GetPath(ctx), 43690 FieldSet: dfs, 43691 Context: ctx, 43692 }) 43693 } 43694 43695 return out 43696 } 43697 43698 var commerce_Product_MediaImplementors = []string{"Commerce_Product_Media"} 43699 43700 func (ec *executionContext) _Commerce_Product_Media(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ProductMedia) graphql.Marshaler { 43701 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_MediaImplementors) 43702 43703 out := graphql.NewFieldSet(fields) 43704 deferred := make(map[string]*graphql.FieldSet) 43705 for i, field := range fields { 43706 switch field.Name { 43707 case "__typename": 43708 out.Values[i] = graphql.MarshalString("Commerce_Product_Media") 43709 case "all": 43710 out.Values[i] = ec._Commerce_Product_Media_all(ctx, field, obj) 43711 case "getMedia": 43712 out.Values[i] = ec._Commerce_Product_Media_getMedia(ctx, field, obj) 43713 if out.Values[i] == graphql.Null { 43714 out.Invalids++ 43715 } 43716 default: 43717 panic("unknown field " + strconv.Quote(field.Name)) 43718 } 43719 } 43720 out.Dispatch(ctx) 43721 if out.Invalids > 0 { 43722 return graphql.Null 43723 } 43724 43725 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43726 43727 for label, dfs := range deferred { 43728 ec.processDeferredGroup(graphql.DeferredGroup{ 43729 Label: label, 43730 Path: graphql.GetPath(ctx), 43731 FieldSet: dfs, 43732 Context: ctx, 43733 }) 43734 } 43735 43736 return out 43737 } 43738 43739 var commerce_Product_MediaItemImplementors = []string{"Commerce_Product_MediaItem"} 43740 43741 func (ec *executionContext) _Commerce_Product_MediaItem(ctx context.Context, sel ast.SelectionSet, obj *domain1.Media) graphql.Marshaler { 43742 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_MediaItemImplementors) 43743 43744 out := graphql.NewFieldSet(fields) 43745 deferred := make(map[string]*graphql.FieldSet) 43746 for i, field := range fields { 43747 switch field.Name { 43748 case "__typename": 43749 out.Values[i] = graphql.MarshalString("Commerce_Product_MediaItem") 43750 case "type": 43751 out.Values[i] = ec._Commerce_Product_MediaItem_type(ctx, field, obj) 43752 if out.Values[i] == graphql.Null { 43753 out.Invalids++ 43754 } 43755 case "mimeType": 43756 out.Values[i] = ec._Commerce_Product_MediaItem_mimeType(ctx, field, obj) 43757 if out.Values[i] == graphql.Null { 43758 out.Invalids++ 43759 } 43760 case "usage": 43761 out.Values[i] = ec._Commerce_Product_MediaItem_usage(ctx, field, obj) 43762 if out.Values[i] == graphql.Null { 43763 out.Invalids++ 43764 } 43765 case "title": 43766 out.Values[i] = ec._Commerce_Product_MediaItem_title(ctx, field, obj) 43767 if out.Values[i] == graphql.Null { 43768 out.Invalids++ 43769 } 43770 case "reference": 43771 out.Values[i] = ec._Commerce_Product_MediaItem_reference(ctx, field, obj) 43772 if out.Values[i] == graphql.Null { 43773 out.Invalids++ 43774 } 43775 default: 43776 panic("unknown field " + strconv.Quote(field.Name)) 43777 } 43778 } 43779 out.Dispatch(ctx) 43780 if out.Invalids > 0 { 43781 return graphql.Null 43782 } 43783 43784 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43785 43786 for label, dfs := range deferred { 43787 ec.processDeferredGroup(graphql.DeferredGroup{ 43788 Label: label, 43789 Path: graphql.GetPath(ctx), 43790 FieldSet: dfs, 43791 Context: ctx, 43792 }) 43793 } 43794 43795 return out 43796 } 43797 43798 var commerce_Product_MetaImplementors = []string{"Commerce_Product_Meta"} 43799 43800 func (ec *executionContext) _Commerce_Product_Meta(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.ProductMeta) graphql.Marshaler { 43801 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_MetaImplementors) 43802 43803 out := graphql.NewFieldSet(fields) 43804 deferred := make(map[string]*graphql.FieldSet) 43805 for i, field := range fields { 43806 switch field.Name { 43807 case "__typename": 43808 out.Values[i] = graphql.MarshalString("Commerce_Product_Meta") 43809 case "keywords": 43810 out.Values[i] = ec._Commerce_Product_Meta_keywords(ctx, field, obj) 43811 default: 43812 panic("unknown field " + strconv.Quote(field.Name)) 43813 } 43814 } 43815 out.Dispatch(ctx) 43816 if out.Invalids > 0 { 43817 return graphql.Null 43818 } 43819 43820 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43821 43822 for label, dfs := range deferred { 43823 ec.processDeferredGroup(graphql.DeferredGroup{ 43824 Label: label, 43825 Path: graphql.GetPath(ctx), 43826 FieldSet: dfs, 43827 Context: ctx, 43828 }) 43829 } 43830 43831 return out 43832 } 43833 43834 var commerce_Product_OptionImplementors = []string{"Commerce_Product_Option"} 43835 43836 func (ec *executionContext) _Commerce_Product_Option(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.Option) graphql.Marshaler { 43837 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_OptionImplementors) 43838 43839 out := graphql.NewFieldSet(fields) 43840 deferred := make(map[string]*graphql.FieldSet) 43841 for i, field := range fields { 43842 switch field.Name { 43843 case "__typename": 43844 out.Values[i] = graphql.MarshalString("Commerce_Product_Option") 43845 case "product": 43846 out.Values[i] = ec._Commerce_Product_Option_product(ctx, field, obj) 43847 if out.Values[i] == graphql.Null { 43848 out.Invalids++ 43849 } 43850 case "qty": 43851 out.Values[i] = ec._Commerce_Product_Option_qty(ctx, field, obj) 43852 if out.Values[i] == graphql.Null { 43853 out.Invalids++ 43854 } 43855 default: 43856 panic("unknown field " + strconv.Quote(field.Name)) 43857 } 43858 } 43859 out.Dispatch(ctx) 43860 if out.Invalids > 0 { 43861 return graphql.Null 43862 } 43863 43864 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43865 43866 for label, dfs := range deferred { 43867 ec.processDeferredGroup(graphql.DeferredGroup{ 43868 Label: label, 43869 Path: graphql.GetPath(ctx), 43870 FieldSet: dfs, 43871 Context: ctx, 43872 }) 43873 } 43874 43875 return out 43876 } 43877 43878 var commerce_Product_PriceContextImplementors = []string{"Commerce_Product_PriceContext"} 43879 43880 func (ec *executionContext) _Commerce_Product_PriceContext(ctx context.Context, sel ast.SelectionSet, obj *domain1.PriceContext) graphql.Marshaler { 43881 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_PriceContextImplementors) 43882 43883 out := graphql.NewFieldSet(fields) 43884 deferred := make(map[string]*graphql.FieldSet) 43885 for i, field := range fields { 43886 switch field.Name { 43887 case "__typename": 43888 out.Values[i] = graphql.MarshalString("Commerce_Product_PriceContext") 43889 case "customerGroup": 43890 out.Values[i] = ec._Commerce_Product_PriceContext_customerGroup(ctx, field, obj) 43891 if out.Values[i] == graphql.Null { 43892 out.Invalids++ 43893 } 43894 case "deliveryCode": 43895 out.Values[i] = ec._Commerce_Product_PriceContext_deliveryCode(ctx, field, obj) 43896 if out.Values[i] == graphql.Null { 43897 out.Invalids++ 43898 } 43899 case "channelCode": 43900 out.Values[i] = ec._Commerce_Product_PriceContext_channelCode(ctx, field, obj) 43901 if out.Values[i] == graphql.Null { 43902 out.Invalids++ 43903 } 43904 case "locale": 43905 out.Values[i] = ec._Commerce_Product_PriceContext_locale(ctx, field, obj) 43906 if out.Values[i] == graphql.Null { 43907 out.Invalids++ 43908 } 43909 default: 43910 panic("unknown field " + strconv.Quote(field.Name)) 43911 } 43912 } 43913 out.Dispatch(ctx) 43914 if out.Invalids > 0 { 43915 return graphql.Null 43916 } 43917 43918 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 43919 43920 for label, dfs := range deferred { 43921 ec.processDeferredGroup(graphql.DeferredGroup{ 43922 Label: label, 43923 Path: graphql.GetPath(ctx), 43924 FieldSet: dfs, 43925 Context: ctx, 43926 }) 43927 } 43928 43929 return out 43930 } 43931 43932 var commerce_Product_PriceInfoImplementors = []string{"Commerce_Product_PriceInfo"} 43933 43934 func (ec *executionContext) _Commerce_Product_PriceInfo(ctx context.Context, sel ast.SelectionSet, obj *domain1.PriceInfo) graphql.Marshaler { 43935 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_PriceInfoImplementors) 43936 43937 out := graphql.NewFieldSet(fields) 43938 deferred := make(map[string]*graphql.FieldSet) 43939 for i, field := range fields { 43940 switch field.Name { 43941 case "__typename": 43942 out.Values[i] = graphql.MarshalString("Commerce_Product_PriceInfo") 43943 case "default": 43944 out.Values[i] = ec._Commerce_Product_PriceInfo_default(ctx, field, obj) 43945 if out.Values[i] == graphql.Null { 43946 atomic.AddUint32(&out.Invalids, 1) 43947 } 43948 case "discounted": 43949 out.Values[i] = ec._Commerce_Product_PriceInfo_discounted(ctx, field, obj) 43950 if out.Values[i] == graphql.Null { 43951 atomic.AddUint32(&out.Invalids, 1) 43952 } 43953 case "discountText": 43954 out.Values[i] = ec._Commerce_Product_PriceInfo_discountText(ctx, field, obj) 43955 if out.Values[i] == graphql.Null { 43956 atomic.AddUint32(&out.Invalids, 1) 43957 } 43958 case "activeBase": 43959 field := field 43960 43961 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 43962 defer func() { 43963 if r := recover(); r != nil { 43964 ec.Error(ctx, ec.Recover(ctx, r)) 43965 } 43966 }() 43967 res = ec._Commerce_Product_PriceInfo_activeBase(ctx, field, obj) 43968 if res == graphql.Null { 43969 atomic.AddUint32(&fs.Invalids, 1) 43970 } 43971 return res 43972 } 43973 43974 if field.Deferrable != nil { 43975 dfs, ok := deferred[field.Deferrable.Label] 43976 di := 0 43977 if ok { 43978 dfs.AddField(field) 43979 di = len(dfs.Values) - 1 43980 } else { 43981 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 43982 deferred[field.Deferrable.Label] = dfs 43983 } 43984 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 43985 return innerFunc(ctx, dfs) 43986 }) 43987 43988 // don't run the out.Concurrently() call below 43989 out.Values[i] = graphql.Null 43990 continue 43991 } 43992 43993 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 43994 case "activeBaseAmount": 43995 out.Values[i] = ec._Commerce_Product_PriceInfo_activeBaseAmount(ctx, field, obj) 43996 if out.Values[i] == graphql.Null { 43997 atomic.AddUint32(&out.Invalids, 1) 43998 } 43999 case "activeBaseUnit": 44000 out.Values[i] = ec._Commerce_Product_PriceInfo_activeBaseUnit(ctx, field, obj) 44001 if out.Values[i] == graphql.Null { 44002 atomic.AddUint32(&out.Invalids, 1) 44003 } 44004 case "isDiscounted": 44005 out.Values[i] = ec._Commerce_Product_PriceInfo_isDiscounted(ctx, field, obj) 44006 if out.Values[i] == graphql.Null { 44007 atomic.AddUint32(&out.Invalids, 1) 44008 } 44009 case "campaignRules": 44010 out.Values[i] = ec._Commerce_Product_PriceInfo_campaignRules(ctx, field, obj) 44011 case "denyMoreDiscounts": 44012 out.Values[i] = ec._Commerce_Product_PriceInfo_denyMoreDiscounts(ctx, field, obj) 44013 if out.Values[i] == graphql.Null { 44014 atomic.AddUint32(&out.Invalids, 1) 44015 } 44016 case "context": 44017 out.Values[i] = ec._Commerce_Product_PriceInfo_context(ctx, field, obj) 44018 if out.Values[i] == graphql.Null { 44019 atomic.AddUint32(&out.Invalids, 1) 44020 } 44021 case "taxClass": 44022 out.Values[i] = ec._Commerce_Product_PriceInfo_taxClass(ctx, field, obj) 44023 if out.Values[i] == graphql.Null { 44024 atomic.AddUint32(&out.Invalids, 1) 44025 } 44026 default: 44027 panic("unknown field " + strconv.Quote(field.Name)) 44028 } 44029 } 44030 out.Dispatch(ctx) 44031 if out.Invalids > 0 { 44032 return graphql.Null 44033 } 44034 44035 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44036 44037 for label, dfs := range deferred { 44038 ec.processDeferredGroup(graphql.DeferredGroup{ 44039 Label: label, 44040 Path: graphql.GetPath(ctx), 44041 FieldSet: dfs, 44042 Context: ctx, 44043 }) 44044 } 44045 44046 return out 44047 } 44048 44049 var commerce_Product_SearchResultImplementors = []string{"Commerce_Product_SearchResult"} 44050 44051 func (ec *executionContext) _Commerce_Product_SearchResult(ctx context.Context, sel ast.SelectionSet, obj *graphql1.SearchResultDTO) graphql.Marshaler { 44052 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_SearchResultImplementors) 44053 44054 out := graphql.NewFieldSet(fields) 44055 deferred := make(map[string]*graphql.FieldSet) 44056 for i, field := range fields { 44057 switch field.Name { 44058 case "__typename": 44059 out.Values[i] = graphql.MarshalString("Commerce_Product_SearchResult") 44060 case "products": 44061 out.Values[i] = ec._Commerce_Product_SearchResult_products(ctx, field, obj) 44062 case "facets": 44063 out.Values[i] = ec._Commerce_Product_SearchResult_facets(ctx, field, obj) 44064 if out.Values[i] == graphql.Null { 44065 out.Invalids++ 44066 } 44067 case "suggestions": 44068 out.Values[i] = ec._Commerce_Product_SearchResult_suggestions(ctx, field, obj) 44069 case "searchMeta": 44070 out.Values[i] = ec._Commerce_Product_SearchResult_searchMeta(ctx, field, obj) 44071 if out.Values[i] == graphql.Null { 44072 out.Invalids++ 44073 } 44074 case "hasSelectedFacet": 44075 out.Values[i] = ec._Commerce_Product_SearchResult_hasSelectedFacet(ctx, field, obj) 44076 if out.Values[i] == graphql.Null { 44077 out.Invalids++ 44078 } 44079 case "promotion": 44080 out.Values[i] = ec._Commerce_Product_SearchResult_promotion(ctx, field, obj) 44081 case "actions": 44082 out.Values[i] = ec._Commerce_Product_SearchResult_actions(ctx, field, obj) 44083 default: 44084 panic("unknown field " + strconv.Quote(field.Name)) 44085 } 44086 } 44087 out.Dispatch(ctx) 44088 if out.Invalids > 0 { 44089 return graphql.Null 44090 } 44091 44092 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44093 44094 for label, dfs := range deferred { 44095 ec.processDeferredGroup(graphql.DeferredGroup{ 44096 Label: label, 44097 Path: graphql.GetPath(ctx), 44098 FieldSet: dfs, 44099 Context: ctx, 44100 }) 44101 } 44102 44103 return out 44104 } 44105 44106 var commerce_Product_SimpleProductImplementors = []string{"Commerce_Product_SimpleProduct", "Commerce_Product"} 44107 44108 func (ec *executionContext) _Commerce_Product_SimpleProduct(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.SimpleProduct) graphql.Marshaler { 44109 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_SimpleProductImplementors) 44110 44111 out := graphql.NewFieldSet(fields) 44112 deferred := make(map[string]*graphql.FieldSet) 44113 for i, field := range fields { 44114 switch field.Name { 44115 case "__typename": 44116 out.Values[i] = graphql.MarshalString("Commerce_Product_SimpleProduct") 44117 case "type": 44118 out.Values[i] = ec._Commerce_Product_SimpleProduct_type(ctx, field, obj) 44119 if out.Values[i] == graphql.Null { 44120 out.Invalids++ 44121 } 44122 case "marketPlaceCode": 44123 out.Values[i] = ec._Commerce_Product_SimpleProduct_marketPlaceCode(ctx, field, obj) 44124 if out.Values[i] == graphql.Null { 44125 out.Invalids++ 44126 } 44127 case "identifier": 44128 out.Values[i] = ec._Commerce_Product_SimpleProduct_identifier(ctx, field, obj) 44129 if out.Values[i] == graphql.Null { 44130 out.Invalids++ 44131 } 44132 case "media": 44133 out.Values[i] = ec._Commerce_Product_SimpleProduct_media(ctx, field, obj) 44134 if out.Values[i] == graphql.Null { 44135 out.Invalids++ 44136 } 44137 case "price": 44138 out.Values[i] = ec._Commerce_Product_SimpleProduct_price(ctx, field, obj) 44139 if out.Values[i] == graphql.Null { 44140 out.Invalids++ 44141 } 44142 case "availablePrices": 44143 out.Values[i] = ec._Commerce_Product_SimpleProduct_availablePrices(ctx, field, obj) 44144 case "title": 44145 out.Values[i] = ec._Commerce_Product_SimpleProduct_title(ctx, field, obj) 44146 if out.Values[i] == graphql.Null { 44147 out.Invalids++ 44148 } 44149 case "categories": 44150 out.Values[i] = ec._Commerce_Product_SimpleProduct_categories(ctx, field, obj) 44151 if out.Values[i] == graphql.Null { 44152 out.Invalids++ 44153 } 44154 case "description": 44155 out.Values[i] = ec._Commerce_Product_SimpleProduct_description(ctx, field, obj) 44156 if out.Values[i] == graphql.Null { 44157 out.Invalids++ 44158 } 44159 case "shortDescription": 44160 out.Values[i] = ec._Commerce_Product_SimpleProduct_shortDescription(ctx, field, obj) 44161 if out.Values[i] == graphql.Null { 44162 out.Invalids++ 44163 } 44164 case "meta": 44165 out.Values[i] = ec._Commerce_Product_SimpleProduct_meta(ctx, field, obj) 44166 if out.Values[i] == graphql.Null { 44167 out.Invalids++ 44168 } 44169 case "loyalty": 44170 out.Values[i] = ec._Commerce_Product_SimpleProduct_loyalty(ctx, field, obj) 44171 if out.Values[i] == graphql.Null { 44172 out.Invalids++ 44173 } 44174 case "attributes": 44175 out.Values[i] = ec._Commerce_Product_SimpleProduct_attributes(ctx, field, obj) 44176 if out.Values[i] == graphql.Null { 44177 out.Invalids++ 44178 } 44179 case "badges": 44180 out.Values[i] = ec._Commerce_Product_SimpleProduct_badges(ctx, field, obj) 44181 if out.Values[i] == graphql.Null { 44182 out.Invalids++ 44183 } 44184 default: 44185 panic("unknown field " + strconv.Quote(field.Name)) 44186 } 44187 } 44188 out.Dispatch(ctx) 44189 if out.Invalids > 0 { 44190 return graphql.Null 44191 } 44192 44193 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44194 44195 for label, dfs := range deferred { 44196 ec.processDeferredGroup(graphql.DeferredGroup{ 44197 Label: label, 44198 Path: graphql.GetPath(ctx), 44199 FieldSet: dfs, 44200 Context: ctx, 44201 }) 44202 } 44203 44204 return out 44205 } 44206 44207 var commerce_Product_VariantSelectionImplementors = []string{"Commerce_Product_VariantSelection"} 44208 44209 func (ec *executionContext) _Commerce_Product_VariantSelection(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelection) graphql.Marshaler { 44210 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelectionImplementors) 44211 44212 out := graphql.NewFieldSet(fields) 44213 deferred := make(map[string]*graphql.FieldSet) 44214 for i, field := range fields { 44215 switch field.Name { 44216 case "__typename": 44217 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection") 44218 case "variants": 44219 out.Values[i] = ec._Commerce_Product_VariantSelection_variants(ctx, field, obj) 44220 if out.Values[i] == graphql.Null { 44221 out.Invalids++ 44222 } 44223 case "attributes": 44224 out.Values[i] = ec._Commerce_Product_VariantSelection_attributes(ctx, field, obj) 44225 if out.Values[i] == graphql.Null { 44226 out.Invalids++ 44227 } 44228 default: 44229 panic("unknown field " + strconv.Quote(field.Name)) 44230 } 44231 } 44232 out.Dispatch(ctx) 44233 if out.Invalids > 0 { 44234 return graphql.Null 44235 } 44236 44237 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44238 44239 for label, dfs := range deferred { 44240 ec.processDeferredGroup(graphql.DeferredGroup{ 44241 Label: label, 44242 Path: graphql.GetPath(ctx), 44243 FieldSet: dfs, 44244 Context: ctx, 44245 }) 44246 } 44247 44248 return out 44249 } 44250 44251 var commerce_Product_VariantSelection_AttributeImplementors = []string{"Commerce_Product_VariantSelection_Attribute"} 44252 44253 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelectionAttribute) graphql.Marshaler { 44254 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_AttributeImplementors) 44255 44256 out := graphql.NewFieldSet(fields) 44257 deferred := make(map[string]*graphql.FieldSet) 44258 for i, field := range fields { 44259 switch field.Name { 44260 case "__typename": 44261 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Attribute") 44262 case "label": 44263 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_label(ctx, field, obj) 44264 if out.Values[i] == graphql.Null { 44265 out.Invalids++ 44266 } 44267 case "code": 44268 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_code(ctx, field, obj) 44269 if out.Values[i] == graphql.Null { 44270 out.Invalids++ 44271 } 44272 case "options": 44273 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_options(ctx, field, obj) 44274 if out.Values[i] == graphql.Null { 44275 out.Invalids++ 44276 } 44277 default: 44278 panic("unknown field " + strconv.Quote(field.Name)) 44279 } 44280 } 44281 out.Dispatch(ctx) 44282 if out.Invalids > 0 { 44283 return graphql.Null 44284 } 44285 44286 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44287 44288 for label, dfs := range deferred { 44289 ec.processDeferredGroup(graphql.DeferredGroup{ 44290 Label: label, 44291 Path: graphql.GetPath(ctx), 44292 FieldSet: dfs, 44293 Context: ctx, 44294 }) 44295 } 44296 44297 return out 44298 } 44299 44300 var commerce_Product_VariantSelection_Attribute_OptionImplementors = []string{"Commerce_Product_VariantSelection_Attribute_Option"} 44301 44302 func (ec *executionContext) _Commerce_Product_VariantSelection_Attribute_Option(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelectionAttributeOption) graphql.Marshaler { 44303 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_Attribute_OptionImplementors) 44304 44305 out := graphql.NewFieldSet(fields) 44306 deferred := make(map[string]*graphql.FieldSet) 44307 for i, field := range fields { 44308 switch field.Name { 44309 case "__typename": 44310 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Attribute_Option") 44311 case "label": 44312 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_Option_label(ctx, field, obj) 44313 if out.Values[i] == graphql.Null { 44314 out.Invalids++ 44315 } 44316 case "unitCode": 44317 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_Option_unitCode(ctx, field, obj) 44318 case "otherAttributesRestrictions": 44319 out.Values[i] = ec._Commerce_Product_VariantSelection_Attribute_Option_otherAttributesRestrictions(ctx, field, obj) 44320 if out.Values[i] == graphql.Null { 44321 out.Invalids++ 44322 } 44323 default: 44324 panic("unknown field " + strconv.Quote(field.Name)) 44325 } 44326 } 44327 out.Dispatch(ctx) 44328 if out.Invalids > 0 { 44329 return graphql.Null 44330 } 44331 44332 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44333 44334 for label, dfs := range deferred { 44335 ec.processDeferredGroup(graphql.DeferredGroup{ 44336 Label: label, 44337 Path: graphql.GetPath(ctx), 44338 FieldSet: dfs, 44339 Context: ctx, 44340 }) 44341 } 44342 44343 return out 44344 } 44345 44346 var commerce_Product_VariantSelection_MatchImplementors = []string{"Commerce_Product_VariantSelection_Match"} 44347 44348 func (ec *executionContext) _Commerce_Product_VariantSelection_Match(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelectionMatch) graphql.Marshaler { 44349 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_MatchImplementors) 44350 44351 out := graphql.NewFieldSet(fields) 44352 deferred := make(map[string]*graphql.FieldSet) 44353 for i, field := range fields { 44354 switch field.Name { 44355 case "__typename": 44356 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Match") 44357 case "attributes": 44358 out.Values[i] = ec._Commerce_Product_VariantSelection_Match_attributes(ctx, field, obj) 44359 case "variant": 44360 out.Values[i] = ec._Commerce_Product_VariantSelection_Match_variant(ctx, field, obj) 44361 if out.Values[i] == graphql.Null { 44362 out.Invalids++ 44363 } 44364 default: 44365 panic("unknown field " + strconv.Quote(field.Name)) 44366 } 44367 } 44368 out.Dispatch(ctx) 44369 if out.Invalids > 0 { 44370 return graphql.Null 44371 } 44372 44373 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44374 44375 for label, dfs := range deferred { 44376 ec.processDeferredGroup(graphql.DeferredGroup{ 44377 Label: label, 44378 Path: graphql.GetPath(ctx), 44379 FieldSet: dfs, 44380 Context: ctx, 44381 }) 44382 } 44383 44384 return out 44385 } 44386 44387 var commerce_Product_VariantSelection_Match_AttributesImplementors = []string{"Commerce_Product_VariantSelection_Match_Attributes"} 44388 44389 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_Attributes(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelectionMatchAttributes) graphql.Marshaler { 44390 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_Match_AttributesImplementors) 44391 44392 out := graphql.NewFieldSet(fields) 44393 deferred := make(map[string]*graphql.FieldSet) 44394 for i, field := range fields { 44395 switch field.Name { 44396 case "__typename": 44397 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Match_Attributes") 44398 case "key": 44399 out.Values[i] = ec._Commerce_Product_VariantSelection_Match_Attributes_key(ctx, field, obj) 44400 if out.Values[i] == graphql.Null { 44401 out.Invalids++ 44402 } 44403 case "value": 44404 out.Values[i] = ec._Commerce_Product_VariantSelection_Match_Attributes_value(ctx, field, obj) 44405 if out.Values[i] == graphql.Null { 44406 out.Invalids++ 44407 } 44408 default: 44409 panic("unknown field " + strconv.Quote(field.Name)) 44410 } 44411 } 44412 out.Dispatch(ctx) 44413 if out.Invalids > 0 { 44414 return graphql.Null 44415 } 44416 44417 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44418 44419 for label, dfs := range deferred { 44420 ec.processDeferredGroup(graphql.DeferredGroup{ 44421 Label: label, 44422 Path: graphql.GetPath(ctx), 44423 FieldSet: dfs, 44424 Context: ctx, 44425 }) 44426 } 44427 44428 return out 44429 } 44430 44431 var commerce_Product_VariantSelection_Match_VariantImplementors = []string{"Commerce_Product_VariantSelection_Match_Variant"} 44432 44433 func (ec *executionContext) _Commerce_Product_VariantSelection_Match_Variant(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariantSelectionMatchVariant) graphql.Marshaler { 44434 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_Match_VariantImplementors) 44435 44436 out := graphql.NewFieldSet(fields) 44437 deferred := make(map[string]*graphql.FieldSet) 44438 for i, field := range fields { 44439 switch field.Name { 44440 case "__typename": 44441 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Match_Variant") 44442 case "marketplaceCode": 44443 out.Values[i] = ec._Commerce_Product_VariantSelection_Match_Variant_marketplaceCode(ctx, field, obj) 44444 if out.Values[i] == graphql.Null { 44445 out.Invalids++ 44446 } 44447 default: 44448 panic("unknown field " + strconv.Quote(field.Name)) 44449 } 44450 } 44451 out.Dispatch(ctx) 44452 if out.Invalids > 0 { 44453 return graphql.Null 44454 } 44455 44456 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44457 44458 for label, dfs := range deferred { 44459 ec.processDeferredGroup(graphql.DeferredGroup{ 44460 Label: label, 44461 Path: graphql.GetPath(ctx), 44462 FieldSet: dfs, 44463 Context: ctx, 44464 }) 44465 } 44466 44467 return out 44468 } 44469 44470 var commerce_Product_VariantSelection_Option_OtherAttributesRestrictionImplementors = []string{"Commerce_Product_VariantSelection_Option_OtherAttributesRestriction"} 44471 44472 func (ec *executionContext) _Commerce_Product_VariantSelection_Option_OtherAttributesRestriction(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.OtherAttributesRestriction) graphql.Marshaler { 44473 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariantSelection_Option_OtherAttributesRestrictionImplementors) 44474 44475 out := graphql.NewFieldSet(fields) 44476 deferred := make(map[string]*graphql.FieldSet) 44477 for i, field := range fields { 44478 switch field.Name { 44479 case "__typename": 44480 out.Values[i] = graphql.MarshalString("Commerce_Product_VariantSelection_Option_OtherAttributesRestriction") 44481 case "code": 44482 out.Values[i] = ec._Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_code(ctx, field, obj) 44483 if out.Values[i] == graphql.Null { 44484 out.Invalids++ 44485 } 44486 case "availableOptions": 44487 out.Values[i] = ec._Commerce_Product_VariantSelection_Option_OtherAttributesRestriction_availableOptions(ctx, field, obj) 44488 if out.Values[i] == graphql.Null { 44489 out.Invalids++ 44490 } 44491 default: 44492 panic("unknown field " + strconv.Quote(field.Name)) 44493 } 44494 } 44495 out.Dispatch(ctx) 44496 if out.Invalids > 0 { 44497 return graphql.Null 44498 } 44499 44500 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44501 44502 for label, dfs := range deferred { 44503 ec.processDeferredGroup(graphql.DeferredGroup{ 44504 Label: label, 44505 Path: graphql.GetPath(ctx), 44506 FieldSet: dfs, 44507 Context: ctx, 44508 }) 44509 } 44510 44511 return out 44512 } 44513 44514 var commerce_Product_VariationSelectionImplementors = []string{"Commerce_Product_VariationSelection"} 44515 44516 func (ec *executionContext) _Commerce_Product_VariationSelection(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariationSelection) graphql.Marshaler { 44517 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariationSelectionImplementors) 44518 44519 out := graphql.NewFieldSet(fields) 44520 deferred := make(map[string]*graphql.FieldSet) 44521 for i, field := range fields { 44522 switch field.Name { 44523 case "__typename": 44524 out.Values[i] = graphql.MarshalString("Commerce_Product_VariationSelection") 44525 case "code": 44526 out.Values[i] = ec._Commerce_Product_VariationSelection_code(ctx, field, obj) 44527 if out.Values[i] == graphql.Null { 44528 out.Invalids++ 44529 } 44530 case "label": 44531 out.Values[i] = ec._Commerce_Product_VariationSelection_label(ctx, field, obj) 44532 if out.Values[i] == graphql.Null { 44533 out.Invalids++ 44534 } 44535 case "options": 44536 out.Values[i] = ec._Commerce_Product_VariationSelection_options(ctx, field, obj) 44537 default: 44538 panic("unknown field " + strconv.Quote(field.Name)) 44539 } 44540 } 44541 out.Dispatch(ctx) 44542 if out.Invalids > 0 { 44543 return graphql.Null 44544 } 44545 44546 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44547 44548 for label, dfs := range deferred { 44549 ec.processDeferredGroup(graphql.DeferredGroup{ 44550 Label: label, 44551 Path: graphql.GetPath(ctx), 44552 FieldSet: dfs, 44553 Context: ctx, 44554 }) 44555 } 44556 44557 return out 44558 } 44559 44560 var commerce_Product_VariationSelection_OptionImplementors = []string{"Commerce_Product_VariationSelection_Option"} 44561 44562 func (ec *executionContext) _Commerce_Product_VariationSelection_Option(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariationSelectionOption) graphql.Marshaler { 44563 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariationSelection_OptionImplementors) 44564 44565 out := graphql.NewFieldSet(fields) 44566 deferred := make(map[string]*graphql.FieldSet) 44567 for i, field := range fields { 44568 switch field.Name { 44569 case "__typename": 44570 out.Values[i] = graphql.MarshalString("Commerce_Product_VariationSelection_Option") 44571 case "label": 44572 out.Values[i] = ec._Commerce_Product_VariationSelection_Option_label(ctx, field, obj) 44573 if out.Values[i] == graphql.Null { 44574 out.Invalids++ 44575 } 44576 case "unitCode": 44577 out.Values[i] = ec._Commerce_Product_VariationSelection_Option_unitCode(ctx, field, obj) 44578 if out.Values[i] == graphql.Null { 44579 out.Invalids++ 44580 } 44581 case "state": 44582 out.Values[i] = ec._Commerce_Product_VariationSelection_Option_state(ctx, field, obj) 44583 if out.Values[i] == graphql.Null { 44584 out.Invalids++ 44585 } 44586 case "variant": 44587 out.Values[i] = ec._Commerce_Product_VariationSelection_Option_variant(ctx, field, obj) 44588 if out.Values[i] == graphql.Null { 44589 out.Invalids++ 44590 } 44591 default: 44592 panic("unknown field " + strconv.Quote(field.Name)) 44593 } 44594 } 44595 out.Dispatch(ctx) 44596 if out.Invalids > 0 { 44597 return graphql.Null 44598 } 44599 44600 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44601 44602 for label, dfs := range deferred { 44603 ec.processDeferredGroup(graphql.DeferredGroup{ 44604 Label: label, 44605 Path: graphql.GetPath(ctx), 44606 FieldSet: dfs, 44607 Context: ctx, 44608 }) 44609 } 44610 44611 return out 44612 } 44613 44614 var commerce_Product_VariationSelection_OptionVariantImplementors = []string{"Commerce_Product_VariationSelection_OptionVariant"} 44615 44616 func (ec *executionContext) _Commerce_Product_VariationSelection_OptionVariant(ctx context.Context, sel ast.SelectionSet, obj *graphqlproductdto.VariationSelectionOptionVariant) graphql.Marshaler { 44617 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Product_VariationSelection_OptionVariantImplementors) 44618 44619 out := graphql.NewFieldSet(fields) 44620 deferred := make(map[string]*graphql.FieldSet) 44621 for i, field := range fields { 44622 switch field.Name { 44623 case "__typename": 44624 out.Values[i] = graphql.MarshalString("Commerce_Product_VariationSelection_OptionVariant") 44625 case "marketPlaceCode": 44626 out.Values[i] = ec._Commerce_Product_VariationSelection_OptionVariant_marketPlaceCode(ctx, field, obj) 44627 if out.Values[i] == graphql.Null { 44628 out.Invalids++ 44629 } 44630 default: 44631 panic("unknown field " + strconv.Quote(field.Name)) 44632 } 44633 } 44634 out.Dispatch(ctx) 44635 if out.Invalids > 0 { 44636 return graphql.Null 44637 } 44638 44639 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44640 44641 for label, dfs := range deferred { 44642 ec.processDeferredGroup(graphql.DeferredGroup{ 44643 Label: label, 44644 Path: graphql.GetPath(ctx), 44645 FieldSet: dfs, 44646 Context: ctx, 44647 }) 44648 } 44649 44650 return out 44651 } 44652 44653 var commerce_Search_ActionImplementors = []string{"Commerce_Search_Action"} 44654 44655 func (ec *executionContext) _Commerce_Search_Action(ctx context.Context, sel ast.SelectionSet, obj *domain2.Action) graphql.Marshaler { 44656 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_ActionImplementors) 44657 44658 out := graphql.NewFieldSet(fields) 44659 deferred := make(map[string]*graphql.FieldSet) 44660 for i, field := range fields { 44661 switch field.Name { 44662 case "__typename": 44663 out.Values[i] = graphql.MarshalString("Commerce_Search_Action") 44664 case "type": 44665 out.Values[i] = ec._Commerce_Search_Action_type(ctx, field, obj) 44666 if out.Values[i] == graphql.Null { 44667 out.Invalids++ 44668 } 44669 case "content": 44670 out.Values[i] = ec._Commerce_Search_Action_content(ctx, field, obj) 44671 if out.Values[i] == graphql.Null { 44672 out.Invalids++ 44673 } 44674 default: 44675 panic("unknown field " + strconv.Quote(field.Name)) 44676 } 44677 } 44678 out.Dispatch(ctx) 44679 if out.Invalids > 0 { 44680 return graphql.Null 44681 } 44682 44683 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44684 44685 for label, dfs := range deferred { 44686 ec.processDeferredGroup(graphql.DeferredGroup{ 44687 Label: label, 44688 Path: graphql.GetPath(ctx), 44689 FieldSet: dfs, 44690 Context: ctx, 44691 }) 44692 } 44693 44694 return out 44695 } 44696 44697 var commerce_Search_ListFacetImplementors = []string{"Commerce_Search_ListFacet", "Commerce_Search_Facet"} 44698 44699 func (ec *executionContext) _Commerce_Search_ListFacet(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchListFacet) graphql.Marshaler { 44700 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_ListFacetImplementors) 44701 44702 out := graphql.NewFieldSet(fields) 44703 deferred := make(map[string]*graphql.FieldSet) 44704 for i, field := range fields { 44705 switch field.Name { 44706 case "__typename": 44707 out.Values[i] = graphql.MarshalString("Commerce_Search_ListFacet") 44708 case "name": 44709 out.Values[i] = ec._Commerce_Search_ListFacet_name(ctx, field, obj) 44710 if out.Values[i] == graphql.Null { 44711 out.Invalids++ 44712 } 44713 case "label": 44714 out.Values[i] = ec._Commerce_Search_ListFacet_label(ctx, field, obj) 44715 if out.Values[i] == graphql.Null { 44716 out.Invalids++ 44717 } 44718 case "position": 44719 out.Values[i] = ec._Commerce_Search_ListFacet_position(ctx, field, obj) 44720 if out.Values[i] == graphql.Null { 44721 out.Invalids++ 44722 } 44723 case "items": 44724 out.Values[i] = ec._Commerce_Search_ListFacet_items(ctx, field, obj) 44725 if out.Values[i] == graphql.Null { 44726 out.Invalids++ 44727 } 44728 case "hasSelectedItem": 44729 out.Values[i] = ec._Commerce_Search_ListFacet_hasSelectedItem(ctx, field, obj) 44730 if out.Values[i] == graphql.Null { 44731 out.Invalids++ 44732 } 44733 default: 44734 panic("unknown field " + strconv.Quote(field.Name)) 44735 } 44736 } 44737 out.Dispatch(ctx) 44738 if out.Invalids > 0 { 44739 return graphql.Null 44740 } 44741 44742 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44743 44744 for label, dfs := range deferred { 44745 ec.processDeferredGroup(graphql.DeferredGroup{ 44746 Label: label, 44747 Path: graphql.GetPath(ctx), 44748 FieldSet: dfs, 44749 Context: ctx, 44750 }) 44751 } 44752 44753 return out 44754 } 44755 44756 var commerce_Search_ListFacetItemImplementors = []string{"Commerce_Search_ListFacetItem", "Commerce_Search_FacetItem"} 44757 44758 func (ec *executionContext) _Commerce_Search_ListFacetItem(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchListFacetItem) graphql.Marshaler { 44759 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_ListFacetItemImplementors) 44760 44761 out := graphql.NewFieldSet(fields) 44762 deferred := make(map[string]*graphql.FieldSet) 44763 for i, field := range fields { 44764 switch field.Name { 44765 case "__typename": 44766 out.Values[i] = graphql.MarshalString("Commerce_Search_ListFacetItem") 44767 case "label": 44768 out.Values[i] = ec._Commerce_Search_ListFacetItem_label(ctx, field, obj) 44769 if out.Values[i] == graphql.Null { 44770 out.Invalids++ 44771 } 44772 case "value": 44773 out.Values[i] = ec._Commerce_Search_ListFacetItem_value(ctx, field, obj) 44774 if out.Values[i] == graphql.Null { 44775 out.Invalids++ 44776 } 44777 case "selected": 44778 out.Values[i] = ec._Commerce_Search_ListFacetItem_selected(ctx, field, obj) 44779 if out.Values[i] == graphql.Null { 44780 out.Invalids++ 44781 } 44782 case "count": 44783 out.Values[i] = ec._Commerce_Search_ListFacetItem_count(ctx, field, obj) 44784 if out.Values[i] == graphql.Null { 44785 out.Invalids++ 44786 } 44787 default: 44788 panic("unknown field " + strconv.Quote(field.Name)) 44789 } 44790 } 44791 out.Dispatch(ctx) 44792 if out.Invalids > 0 { 44793 return graphql.Null 44794 } 44795 44796 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44797 44798 for label, dfs := range deferred { 44799 ec.processDeferredGroup(graphql.DeferredGroup{ 44800 Label: label, 44801 Path: graphql.GetPath(ctx), 44802 FieldSet: dfs, 44803 Context: ctx, 44804 }) 44805 } 44806 44807 return out 44808 } 44809 44810 var commerce_Search_MetaImplementors = []string{"Commerce_Search_Meta"} 44811 44812 func (ec *executionContext) _Commerce_Search_Meta(ctx context.Context, sel ast.SelectionSet, obj *domain2.SearchMeta) graphql.Marshaler { 44813 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_MetaImplementors) 44814 44815 out := graphql.NewFieldSet(fields) 44816 deferred := make(map[string]*graphql.FieldSet) 44817 for i, field := range fields { 44818 switch field.Name { 44819 case "__typename": 44820 out.Values[i] = graphql.MarshalString("Commerce_Search_Meta") 44821 case "query": 44822 out.Values[i] = ec._Commerce_Search_Meta_query(ctx, field, obj) 44823 if out.Values[i] == graphql.Null { 44824 atomic.AddUint32(&out.Invalids, 1) 44825 } 44826 case "originalQuery": 44827 out.Values[i] = ec._Commerce_Search_Meta_originalQuery(ctx, field, obj) 44828 if out.Values[i] == graphql.Null { 44829 atomic.AddUint32(&out.Invalids, 1) 44830 } 44831 case "page": 44832 out.Values[i] = ec._Commerce_Search_Meta_page(ctx, field, obj) 44833 if out.Values[i] == graphql.Null { 44834 atomic.AddUint32(&out.Invalids, 1) 44835 } 44836 case "numPages": 44837 out.Values[i] = ec._Commerce_Search_Meta_numPages(ctx, field, obj) 44838 if out.Values[i] == graphql.Null { 44839 atomic.AddUint32(&out.Invalids, 1) 44840 } 44841 case "numResults": 44842 out.Values[i] = ec._Commerce_Search_Meta_numResults(ctx, field, obj) 44843 if out.Values[i] == graphql.Null { 44844 atomic.AddUint32(&out.Invalids, 1) 44845 } 44846 case "sortOptions": 44847 field := field 44848 44849 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 44850 defer func() { 44851 if r := recover(); r != nil { 44852 ec.Error(ctx, ec.Recover(ctx, r)) 44853 } 44854 }() 44855 res = ec._Commerce_Search_Meta_sortOptions(ctx, field, obj) 44856 return res 44857 } 44858 44859 if field.Deferrable != nil { 44860 dfs, ok := deferred[field.Deferrable.Label] 44861 di := 0 44862 if ok { 44863 dfs.AddField(field) 44864 di = len(dfs.Values) - 1 44865 } else { 44866 dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) 44867 deferred[field.Deferrable.Label] = dfs 44868 } 44869 dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { 44870 return innerFunc(ctx, dfs) 44871 }) 44872 44873 // don't run the out.Concurrently() call below 44874 out.Values[i] = graphql.Null 44875 continue 44876 } 44877 44878 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 44879 default: 44880 panic("unknown field " + strconv.Quote(field.Name)) 44881 } 44882 } 44883 out.Dispatch(ctx) 44884 if out.Invalids > 0 { 44885 return graphql.Null 44886 } 44887 44888 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44889 44890 for label, dfs := range deferred { 44891 ec.processDeferredGroup(graphql.DeferredGroup{ 44892 Label: label, 44893 Path: graphql.GetPath(ctx), 44894 FieldSet: dfs, 44895 Context: ctx, 44896 }) 44897 } 44898 44899 return out 44900 } 44901 44902 var commerce_Search_PromotionImplementors = []string{"Commerce_Search_Promotion"} 44903 44904 func (ec *executionContext) _Commerce_Search_Promotion(ctx context.Context, sel ast.SelectionSet, obj *searchdto.PromotionDTO) graphql.Marshaler { 44905 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_PromotionImplementors) 44906 44907 out := graphql.NewFieldSet(fields) 44908 deferred := make(map[string]*graphql.FieldSet) 44909 for i, field := range fields { 44910 switch field.Name { 44911 case "__typename": 44912 out.Values[i] = graphql.MarshalString("Commerce_Search_Promotion") 44913 case "title": 44914 out.Values[i] = ec._Commerce_Search_Promotion_title(ctx, field, obj) 44915 if out.Values[i] == graphql.Null { 44916 out.Invalids++ 44917 } 44918 case "content": 44919 out.Values[i] = ec._Commerce_Search_Promotion_content(ctx, field, obj) 44920 if out.Values[i] == graphql.Null { 44921 out.Invalids++ 44922 } 44923 case "url": 44924 out.Values[i] = ec._Commerce_Search_Promotion_url(ctx, field, obj) 44925 if out.Values[i] == graphql.Null { 44926 out.Invalids++ 44927 } 44928 case "media": 44929 out.Values[i] = ec._Commerce_Search_Promotion_media(ctx, field, obj) 44930 default: 44931 panic("unknown field " + strconv.Quote(field.Name)) 44932 } 44933 } 44934 out.Dispatch(ctx) 44935 if out.Invalids > 0 { 44936 return graphql.Null 44937 } 44938 44939 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44940 44941 for label, dfs := range deferred { 44942 ec.processDeferredGroup(graphql.DeferredGroup{ 44943 Label: label, 44944 Path: graphql.GetPath(ctx), 44945 FieldSet: dfs, 44946 Context: ctx, 44947 }) 44948 } 44949 44950 return out 44951 } 44952 44953 var commerce_Search_PromotionMediaImplementors = []string{"Commerce_Search_PromotionMedia"} 44954 44955 func (ec *executionContext) _Commerce_Search_PromotionMedia(ctx context.Context, sel ast.SelectionSet, obj *domain2.Media) graphql.Marshaler { 44956 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_PromotionMediaImplementors) 44957 44958 out := graphql.NewFieldSet(fields) 44959 deferred := make(map[string]*graphql.FieldSet) 44960 for i, field := range fields { 44961 switch field.Name { 44962 case "__typename": 44963 out.Values[i] = graphql.MarshalString("Commerce_Search_PromotionMedia") 44964 case "type": 44965 out.Values[i] = ec._Commerce_Search_PromotionMedia_type(ctx, field, obj) 44966 if out.Values[i] == graphql.Null { 44967 out.Invalids++ 44968 } 44969 case "mimeType": 44970 out.Values[i] = ec._Commerce_Search_PromotionMedia_mimeType(ctx, field, obj) 44971 if out.Values[i] == graphql.Null { 44972 out.Invalids++ 44973 } 44974 case "usage": 44975 out.Values[i] = ec._Commerce_Search_PromotionMedia_usage(ctx, field, obj) 44976 if out.Values[i] == graphql.Null { 44977 out.Invalids++ 44978 } 44979 case "title": 44980 out.Values[i] = ec._Commerce_Search_PromotionMedia_title(ctx, field, obj) 44981 if out.Values[i] == graphql.Null { 44982 out.Invalids++ 44983 } 44984 case "reference": 44985 out.Values[i] = ec._Commerce_Search_PromotionMedia_reference(ctx, field, obj) 44986 if out.Values[i] == graphql.Null { 44987 out.Invalids++ 44988 } 44989 default: 44990 panic("unknown field " + strconv.Quote(field.Name)) 44991 } 44992 } 44993 out.Dispatch(ctx) 44994 if out.Invalids > 0 { 44995 return graphql.Null 44996 } 44997 44998 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 44999 45000 for label, dfs := range deferred { 45001 ec.processDeferredGroup(graphql.DeferredGroup{ 45002 Label: label, 45003 Path: graphql.GetPath(ctx), 45004 FieldSet: dfs, 45005 Context: ctx, 45006 }) 45007 } 45008 45009 return out 45010 } 45011 45012 var commerce_Search_RangeFacetImplementors = []string{"Commerce_Search_RangeFacet", "Commerce_Search_Facet"} 45013 45014 func (ec *executionContext) _Commerce_Search_RangeFacet(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchRangeFacet) graphql.Marshaler { 45015 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_RangeFacetImplementors) 45016 45017 out := graphql.NewFieldSet(fields) 45018 deferred := make(map[string]*graphql.FieldSet) 45019 for i, field := range fields { 45020 switch field.Name { 45021 case "__typename": 45022 out.Values[i] = graphql.MarshalString("Commerce_Search_RangeFacet") 45023 case "name": 45024 out.Values[i] = ec._Commerce_Search_RangeFacet_name(ctx, field, obj) 45025 if out.Values[i] == graphql.Null { 45026 out.Invalids++ 45027 } 45028 case "label": 45029 out.Values[i] = ec._Commerce_Search_RangeFacet_label(ctx, field, obj) 45030 if out.Values[i] == graphql.Null { 45031 out.Invalids++ 45032 } 45033 case "position": 45034 out.Values[i] = ec._Commerce_Search_RangeFacet_position(ctx, field, obj) 45035 if out.Values[i] == graphql.Null { 45036 out.Invalids++ 45037 } 45038 case "items": 45039 out.Values[i] = ec._Commerce_Search_RangeFacet_items(ctx, field, obj) 45040 if out.Values[i] == graphql.Null { 45041 out.Invalids++ 45042 } 45043 case "hasSelectedItem": 45044 out.Values[i] = ec._Commerce_Search_RangeFacet_hasSelectedItem(ctx, field, obj) 45045 if out.Values[i] == graphql.Null { 45046 out.Invalids++ 45047 } 45048 default: 45049 panic("unknown field " + strconv.Quote(field.Name)) 45050 } 45051 } 45052 out.Dispatch(ctx) 45053 if out.Invalids > 0 { 45054 return graphql.Null 45055 } 45056 45057 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45058 45059 for label, dfs := range deferred { 45060 ec.processDeferredGroup(graphql.DeferredGroup{ 45061 Label: label, 45062 Path: graphql.GetPath(ctx), 45063 FieldSet: dfs, 45064 Context: ctx, 45065 }) 45066 } 45067 45068 return out 45069 } 45070 45071 var commerce_Search_RangeFacetItemImplementors = []string{"Commerce_Search_RangeFacetItem", "Commerce_Search_FacetItem"} 45072 45073 func (ec *executionContext) _Commerce_Search_RangeFacetItem(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchRangeFacetItem) graphql.Marshaler { 45074 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_RangeFacetItemImplementors) 45075 45076 out := graphql.NewFieldSet(fields) 45077 deferred := make(map[string]*graphql.FieldSet) 45078 for i, field := range fields { 45079 switch field.Name { 45080 case "__typename": 45081 out.Values[i] = graphql.MarshalString("Commerce_Search_RangeFacetItem") 45082 case "label": 45083 out.Values[i] = ec._Commerce_Search_RangeFacetItem_label(ctx, field, obj) 45084 if out.Values[i] == graphql.Null { 45085 out.Invalids++ 45086 } 45087 case "value": 45088 out.Values[i] = ec._Commerce_Search_RangeFacetItem_value(ctx, field, obj) 45089 if out.Values[i] == graphql.Null { 45090 out.Invalids++ 45091 } 45092 case "selected": 45093 out.Values[i] = ec._Commerce_Search_RangeFacetItem_selected(ctx, field, obj) 45094 if out.Values[i] == graphql.Null { 45095 out.Invalids++ 45096 } 45097 case "count": 45098 out.Values[i] = ec._Commerce_Search_RangeFacetItem_count(ctx, field, obj) 45099 if out.Values[i] == graphql.Null { 45100 out.Invalids++ 45101 } 45102 case "min": 45103 out.Values[i] = ec._Commerce_Search_RangeFacetItem_min(ctx, field, obj) 45104 if out.Values[i] == graphql.Null { 45105 out.Invalids++ 45106 } 45107 case "max": 45108 out.Values[i] = ec._Commerce_Search_RangeFacetItem_max(ctx, field, obj) 45109 if out.Values[i] == graphql.Null { 45110 out.Invalids++ 45111 } 45112 case "selectedMin": 45113 out.Values[i] = ec._Commerce_Search_RangeFacetItem_selectedMin(ctx, field, obj) 45114 if out.Values[i] == graphql.Null { 45115 out.Invalids++ 45116 } 45117 case "selectedMax": 45118 out.Values[i] = ec._Commerce_Search_RangeFacetItem_selectedMax(ctx, field, obj) 45119 if out.Values[i] == graphql.Null { 45120 out.Invalids++ 45121 } 45122 default: 45123 panic("unknown field " + strconv.Quote(field.Name)) 45124 } 45125 } 45126 out.Dispatch(ctx) 45127 if out.Invalids > 0 { 45128 return graphql.Null 45129 } 45130 45131 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45132 45133 for label, dfs := range deferred { 45134 ec.processDeferredGroup(graphql.DeferredGroup{ 45135 Label: label, 45136 Path: graphql.GetPath(ctx), 45137 FieldSet: dfs, 45138 Context: ctx, 45139 }) 45140 } 45141 45142 return out 45143 } 45144 45145 var commerce_Search_SortOptionImplementors = []string{"Commerce_Search_SortOption"} 45146 45147 func (ec *executionContext) _Commerce_Search_SortOption(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchSortOption) graphql.Marshaler { 45148 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_SortOptionImplementors) 45149 45150 out := graphql.NewFieldSet(fields) 45151 deferred := make(map[string]*graphql.FieldSet) 45152 for i, field := range fields { 45153 switch field.Name { 45154 case "__typename": 45155 out.Values[i] = graphql.MarshalString("Commerce_Search_SortOption") 45156 case "label": 45157 out.Values[i] = ec._Commerce_Search_SortOption_label(ctx, field, obj) 45158 if out.Values[i] == graphql.Null { 45159 out.Invalids++ 45160 } 45161 case "field": 45162 out.Values[i] = ec._Commerce_Search_SortOption_field(ctx, field, obj) 45163 if out.Values[i] == graphql.Null { 45164 out.Invalids++ 45165 } 45166 case "selected": 45167 out.Values[i] = ec._Commerce_Search_SortOption_selected(ctx, field, obj) 45168 if out.Values[i] == graphql.Null { 45169 out.Invalids++ 45170 } 45171 default: 45172 panic("unknown field " + strconv.Quote(field.Name)) 45173 } 45174 } 45175 out.Dispatch(ctx) 45176 if out.Invalids > 0 { 45177 return graphql.Null 45178 } 45179 45180 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45181 45182 for label, dfs := range deferred { 45183 ec.processDeferredGroup(graphql.DeferredGroup{ 45184 Label: label, 45185 Path: graphql.GetPath(ctx), 45186 FieldSet: dfs, 45187 Context: ctx, 45188 }) 45189 } 45190 45191 return out 45192 } 45193 45194 var commerce_Search_SuggestionImplementors = []string{"Commerce_Search_Suggestion"} 45195 45196 func (ec *executionContext) _Commerce_Search_Suggestion(ctx context.Context, sel ast.SelectionSet, obj *domain2.Suggestion) graphql.Marshaler { 45197 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_SuggestionImplementors) 45198 45199 out := graphql.NewFieldSet(fields) 45200 deferred := make(map[string]*graphql.FieldSet) 45201 for i, field := range fields { 45202 switch field.Name { 45203 case "__typename": 45204 out.Values[i] = graphql.MarshalString("Commerce_Search_Suggestion") 45205 case "text": 45206 out.Values[i] = ec._Commerce_Search_Suggestion_text(ctx, field, obj) 45207 if out.Values[i] == graphql.Null { 45208 out.Invalids++ 45209 } 45210 case "highlight": 45211 out.Values[i] = ec._Commerce_Search_Suggestion_highlight(ctx, field, obj) 45212 if out.Values[i] == graphql.Null { 45213 out.Invalids++ 45214 } 45215 default: 45216 panic("unknown field " + strconv.Quote(field.Name)) 45217 } 45218 } 45219 out.Dispatch(ctx) 45220 if out.Invalids > 0 { 45221 return graphql.Null 45222 } 45223 45224 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45225 45226 for label, dfs := range deferred { 45227 ec.processDeferredGroup(graphql.DeferredGroup{ 45228 Label: label, 45229 Path: graphql.GetPath(ctx), 45230 FieldSet: dfs, 45231 Context: ctx, 45232 }) 45233 } 45234 45235 return out 45236 } 45237 45238 var commerce_Search_TreeFacetImplementors = []string{"Commerce_Search_TreeFacet", "Commerce_Search_Facet"} 45239 45240 func (ec *executionContext) _Commerce_Search_TreeFacet(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchTreeFacet) graphql.Marshaler { 45241 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_TreeFacetImplementors) 45242 45243 out := graphql.NewFieldSet(fields) 45244 deferred := make(map[string]*graphql.FieldSet) 45245 for i, field := range fields { 45246 switch field.Name { 45247 case "__typename": 45248 out.Values[i] = graphql.MarshalString("Commerce_Search_TreeFacet") 45249 case "name": 45250 out.Values[i] = ec._Commerce_Search_TreeFacet_name(ctx, field, obj) 45251 if out.Values[i] == graphql.Null { 45252 out.Invalids++ 45253 } 45254 case "label": 45255 out.Values[i] = ec._Commerce_Search_TreeFacet_label(ctx, field, obj) 45256 if out.Values[i] == graphql.Null { 45257 out.Invalids++ 45258 } 45259 case "position": 45260 out.Values[i] = ec._Commerce_Search_TreeFacet_position(ctx, field, obj) 45261 if out.Values[i] == graphql.Null { 45262 out.Invalids++ 45263 } 45264 case "items": 45265 out.Values[i] = ec._Commerce_Search_TreeFacet_items(ctx, field, obj) 45266 if out.Values[i] == graphql.Null { 45267 out.Invalids++ 45268 } 45269 case "hasSelectedItem": 45270 out.Values[i] = ec._Commerce_Search_TreeFacet_hasSelectedItem(ctx, field, obj) 45271 if out.Values[i] == graphql.Null { 45272 out.Invalids++ 45273 } 45274 default: 45275 panic("unknown field " + strconv.Quote(field.Name)) 45276 } 45277 } 45278 out.Dispatch(ctx) 45279 if out.Invalids > 0 { 45280 return graphql.Null 45281 } 45282 45283 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45284 45285 for label, dfs := range deferred { 45286 ec.processDeferredGroup(graphql.DeferredGroup{ 45287 Label: label, 45288 Path: graphql.GetPath(ctx), 45289 FieldSet: dfs, 45290 Context: ctx, 45291 }) 45292 } 45293 45294 return out 45295 } 45296 45297 var commerce_Search_TreeFacetItemImplementors = []string{"Commerce_Search_TreeFacetItem", "Commerce_Search_FacetItem"} 45298 45299 func (ec *executionContext) _Commerce_Search_TreeFacetItem(ctx context.Context, sel ast.SelectionSet, obj *searchdto.CommerceSearchTreeFacetItem) graphql.Marshaler { 45300 fields := graphql.CollectFields(ec.OperationContext, sel, commerce_Search_TreeFacetItemImplementors) 45301 45302 out := graphql.NewFieldSet(fields) 45303 deferred := make(map[string]*graphql.FieldSet) 45304 for i, field := range fields { 45305 switch field.Name { 45306 case "__typename": 45307 out.Values[i] = graphql.MarshalString("Commerce_Search_TreeFacetItem") 45308 case "label": 45309 out.Values[i] = ec._Commerce_Search_TreeFacetItem_label(ctx, field, obj) 45310 if out.Values[i] == graphql.Null { 45311 out.Invalids++ 45312 } 45313 case "value": 45314 out.Values[i] = ec._Commerce_Search_TreeFacetItem_value(ctx, field, obj) 45315 if out.Values[i] == graphql.Null { 45316 out.Invalids++ 45317 } 45318 case "selected": 45319 out.Values[i] = ec._Commerce_Search_TreeFacetItem_selected(ctx, field, obj) 45320 if out.Values[i] == graphql.Null { 45321 out.Invalids++ 45322 } 45323 case "count": 45324 out.Values[i] = ec._Commerce_Search_TreeFacetItem_count(ctx, field, obj) 45325 if out.Values[i] == graphql.Null { 45326 out.Invalids++ 45327 } 45328 case "active": 45329 out.Values[i] = ec._Commerce_Search_TreeFacetItem_active(ctx, field, obj) 45330 if out.Values[i] == graphql.Null { 45331 out.Invalids++ 45332 } 45333 case "items": 45334 out.Values[i] = ec._Commerce_Search_TreeFacetItem_items(ctx, field, obj) 45335 default: 45336 panic("unknown field " + strconv.Quote(field.Name)) 45337 } 45338 } 45339 out.Dispatch(ctx) 45340 if out.Invalids > 0 { 45341 return graphql.Null 45342 } 45343 45344 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45345 45346 for label, dfs := range deferred { 45347 ec.processDeferredGroup(graphql.DeferredGroup{ 45348 Label: label, 45349 Path: graphql.GetPath(ctx), 45350 FieldSet: dfs, 45351 Context: ctx, 45352 }) 45353 } 45354 45355 return out 45356 } 45357 45358 var mutationImplementors = []string{"Mutation"} 45359 45360 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 45361 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) 45362 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 45363 Object: "Mutation", 45364 }) 45365 45366 out := graphql.NewFieldSet(fields) 45367 deferred := make(map[string]*graphql.FieldSet) 45368 for i, field := range fields { 45369 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 45370 Object: field.Name, 45371 Field: field, 45372 }) 45373 45374 switch field.Name { 45375 case "__typename": 45376 out.Values[i] = graphql.MarshalString("Mutation") 45377 case "flamingo": 45378 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45379 return ec._Mutation_flamingo(ctx, field) 45380 }) 45381 case "Commerce_Cart_AddToCart": 45382 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45383 return ec._Mutation_Commerce_Cart_AddToCart(ctx, field) 45384 }) 45385 if out.Values[i] == graphql.Null { 45386 out.Invalids++ 45387 } 45388 case "Commerce_Cart_DeleteCartDelivery": 45389 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45390 return ec._Mutation_Commerce_Cart_DeleteCartDelivery(ctx, field) 45391 }) 45392 if out.Values[i] == graphql.Null { 45393 out.Invalids++ 45394 } 45395 case "Commerce_Cart_DeleteItem": 45396 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45397 return ec._Mutation_Commerce_Cart_DeleteItem(ctx, field) 45398 }) 45399 if out.Values[i] == graphql.Null { 45400 out.Invalids++ 45401 } 45402 case "Commerce_Cart_UpdateItemQty": 45403 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45404 return ec._Mutation_Commerce_Cart_UpdateItemQty(ctx, field) 45405 }) 45406 if out.Values[i] == graphql.Null { 45407 out.Invalids++ 45408 } 45409 case "Commerce_Cart_UpdateItemBundleConfig": 45410 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45411 return ec._Mutation_Commerce_Cart_UpdateItemBundleConfig(ctx, field) 45412 }) 45413 if out.Values[i] == graphql.Null { 45414 out.Invalids++ 45415 } 45416 case "Commerce_Cart_UpdateBillingAddress": 45417 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45418 return ec._Mutation_Commerce_Cart_UpdateBillingAddress(ctx, field) 45419 }) 45420 if out.Values[i] == graphql.Null { 45421 out.Invalids++ 45422 } 45423 case "Commerce_Cart_UpdateSelectedPayment": 45424 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45425 return ec._Mutation_Commerce_Cart_UpdateSelectedPayment(ctx, field) 45426 }) 45427 if out.Values[i] == graphql.Null { 45428 out.Invalids++ 45429 } 45430 case "Commerce_Cart_ApplyCouponCodeOrGiftCard": 45431 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45432 return ec._Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard(ctx, field) 45433 }) 45434 case "Commerce_Cart_RemoveGiftCard": 45435 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45436 return ec._Mutation_Commerce_Cart_RemoveGiftCard(ctx, field) 45437 }) 45438 case "Commerce_Cart_RemoveCouponCode": 45439 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45440 return ec._Mutation_Commerce_Cart_RemoveCouponCode(ctx, field) 45441 }) 45442 case "Commerce_Cart_UpdateDeliveryAddresses": 45443 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45444 return ec._Mutation_Commerce_Cart_UpdateDeliveryAddresses(ctx, field) 45445 }) 45446 if out.Values[i] == graphql.Null { 45447 out.Invalids++ 45448 } 45449 case "Commerce_Cart_UpdateDeliveryShippingOptions": 45450 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45451 return ec._Mutation_Commerce_Cart_UpdateDeliveryShippingOptions(ctx, field) 45452 }) 45453 if out.Values[i] == graphql.Null { 45454 out.Invalids++ 45455 } 45456 case "Commerce_Cart_Clean": 45457 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45458 return ec._Mutation_Commerce_Cart_Clean(ctx, field) 45459 }) 45460 if out.Values[i] == graphql.Null { 45461 out.Invalids++ 45462 } 45463 case "Commerce_Cart_UpdateAdditionalData": 45464 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45465 return ec._Mutation_Commerce_Cart_UpdateAdditionalData(ctx, field) 45466 }) 45467 if out.Values[i] == graphql.Null { 45468 out.Invalids++ 45469 } 45470 case "Commerce_Cart_UpdateDeliveriesAdditionalData": 45471 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45472 return ec._Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData(ctx, field) 45473 }) 45474 if out.Values[i] == graphql.Null { 45475 out.Invalids++ 45476 } 45477 case "Commerce_Checkout_StartPlaceOrder": 45478 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45479 return ec._Mutation_Commerce_Checkout_StartPlaceOrder(ctx, field) 45480 }) 45481 if out.Values[i] == graphql.Null { 45482 out.Invalids++ 45483 } 45484 case "Commerce_Checkout_CancelPlaceOrder": 45485 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45486 return ec._Mutation_Commerce_Checkout_CancelPlaceOrder(ctx, field) 45487 }) 45488 if out.Values[i] == graphql.Null { 45489 out.Invalids++ 45490 } 45491 case "Commerce_Checkout_ClearPlaceOrder": 45492 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45493 return ec._Mutation_Commerce_Checkout_ClearPlaceOrder(ctx, field) 45494 }) 45495 if out.Values[i] == graphql.Null { 45496 out.Invalids++ 45497 } 45498 case "Commerce_Checkout_RefreshPlaceOrder": 45499 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45500 return ec._Mutation_Commerce_Checkout_RefreshPlaceOrder(ctx, field) 45501 }) 45502 if out.Values[i] == graphql.Null { 45503 out.Invalids++ 45504 } 45505 case "Commerce_Checkout_RefreshPlaceOrderBlocking": 45506 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45507 return ec._Mutation_Commerce_Checkout_RefreshPlaceOrderBlocking(ctx, field) 45508 }) 45509 if out.Values[i] == graphql.Null { 45510 out.Invalids++ 45511 } 45512 default: 45513 panic("unknown field " + strconv.Quote(field.Name)) 45514 } 45515 } 45516 out.Dispatch(ctx) 45517 if out.Invalids > 0 { 45518 return graphql.Null 45519 } 45520 45521 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45522 45523 for label, dfs := range deferred { 45524 ec.processDeferredGroup(graphql.DeferredGroup{ 45525 Label: label, 45526 Path: graphql.GetPath(ctx), 45527 FieldSet: dfs, 45528 Context: ctx, 45529 }) 45530 } 45531 45532 return out 45533 } 45534 45535 var queryImplementors = []string{"Query"} 45536 45537 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 45538 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 45539 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 45540 Object: "Query", 45541 }) 45542 45543 out := graphql.NewFieldSet(fields) 45544 deferred := make(map[string]*graphql.FieldSet) 45545 for i, field := range fields { 45546 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ 45547 Object: field.Name, 45548 Field: field, 45549 }) 45550 45551 switch field.Name { 45552 case "__typename": 45553 out.Values[i] = graphql.MarshalString("Query") 45554 case "flamingo": 45555 field := field 45556 45557 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 45558 defer func() { 45559 if r := recover(); r != nil { 45560 ec.Error(ctx, ec.Recover(ctx, r)) 45561 } 45562 }() 45563 res = ec._Query_flamingo(ctx, field) 45564 return res 45565 } 45566 45567 rrm := func(ctx context.Context) graphql.Marshaler { 45568 return ec.OperationContext.RootResolverMiddleware(ctx, 45569 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45570 } 45571 45572 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45573 case "Commerce_Product": 45574 field := field 45575 45576 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 45577 defer func() { 45578 if r := recover(); r != nil { 45579 ec.Error(ctx, ec.Recover(ctx, r)) 45580 } 45581 }() 45582 res = ec._Query_Commerce_Product(ctx, field) 45583 return res 45584 } 45585 45586 rrm := func(ctx context.Context) graphql.Marshaler { 45587 return ec.OperationContext.RootResolverMiddleware(ctx, 45588 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45589 } 45590 45591 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45592 case "Commerce_Product_Search": 45593 field := field 45594 45595 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45596 defer func() { 45597 if r := recover(); r != nil { 45598 ec.Error(ctx, ec.Recover(ctx, r)) 45599 } 45600 }() 45601 res = ec._Query_Commerce_Product_Search(ctx, field) 45602 if res == graphql.Null { 45603 atomic.AddUint32(&fs.Invalids, 1) 45604 } 45605 return res 45606 } 45607 45608 rrm := func(ctx context.Context) graphql.Marshaler { 45609 return ec.OperationContext.RootResolverMiddleware(ctx, 45610 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45611 } 45612 45613 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45614 case "Commerce_Customer_Status": 45615 field := field 45616 45617 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 45618 defer func() { 45619 if r := recover(); r != nil { 45620 ec.Error(ctx, ec.Recover(ctx, r)) 45621 } 45622 }() 45623 res = ec._Query_Commerce_Customer_Status(ctx, field) 45624 return res 45625 } 45626 45627 rrm := func(ctx context.Context) graphql.Marshaler { 45628 return ec.OperationContext.RootResolverMiddleware(ctx, 45629 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45630 } 45631 45632 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45633 case "Commerce_Customer": 45634 field := field 45635 45636 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 45637 defer func() { 45638 if r := recover(); r != nil { 45639 ec.Error(ctx, ec.Recover(ctx, r)) 45640 } 45641 }() 45642 res = ec._Query_Commerce_Customer(ctx, field) 45643 return res 45644 } 45645 45646 rrm := func(ctx context.Context) graphql.Marshaler { 45647 return ec.OperationContext.RootResolverMiddleware(ctx, 45648 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45649 } 45650 45651 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45652 case "Commerce_Cart_DecoratedCart": 45653 field := field 45654 45655 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45656 defer func() { 45657 if r := recover(); r != nil { 45658 ec.Error(ctx, ec.Recover(ctx, r)) 45659 } 45660 }() 45661 res = ec._Query_Commerce_Cart_DecoratedCart(ctx, field) 45662 if res == graphql.Null { 45663 atomic.AddUint32(&fs.Invalids, 1) 45664 } 45665 return res 45666 } 45667 45668 rrm := func(ctx context.Context) graphql.Marshaler { 45669 return ec.OperationContext.RootResolverMiddleware(ctx, 45670 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45671 } 45672 45673 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45674 case "Commerce_Cart_Validator": 45675 field := field 45676 45677 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45678 defer func() { 45679 if r := recover(); r != nil { 45680 ec.Error(ctx, ec.Recover(ctx, r)) 45681 } 45682 }() 45683 res = ec._Query_Commerce_Cart_Validator(ctx, field) 45684 if res == graphql.Null { 45685 atomic.AddUint32(&fs.Invalids, 1) 45686 } 45687 return res 45688 } 45689 45690 rrm := func(ctx context.Context) graphql.Marshaler { 45691 return ec.OperationContext.RootResolverMiddleware(ctx, 45692 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45693 } 45694 45695 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45696 case "Commerce_Cart_QtyRestriction": 45697 field := field 45698 45699 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45700 defer func() { 45701 if r := recover(); r != nil { 45702 ec.Error(ctx, ec.Recover(ctx, r)) 45703 } 45704 }() 45705 res = ec._Query_Commerce_Cart_QtyRestriction(ctx, field) 45706 if res == graphql.Null { 45707 atomic.AddUint32(&fs.Invalids, 1) 45708 } 45709 return res 45710 } 45711 45712 rrm := func(ctx context.Context) graphql.Marshaler { 45713 return ec.OperationContext.RootResolverMiddleware(ctx, 45714 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45715 } 45716 45717 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45718 case "Commerce_Checkout_ActivePlaceOrder": 45719 field := field 45720 45721 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45722 defer func() { 45723 if r := recover(); r != nil { 45724 ec.Error(ctx, ec.Recover(ctx, r)) 45725 } 45726 }() 45727 res = ec._Query_Commerce_Checkout_ActivePlaceOrder(ctx, field) 45728 if res == graphql.Null { 45729 atomic.AddUint32(&fs.Invalids, 1) 45730 } 45731 return res 45732 } 45733 45734 rrm := func(ctx context.Context) graphql.Marshaler { 45735 return ec.OperationContext.RootResolverMiddleware(ctx, 45736 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45737 } 45738 45739 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45740 case "Commerce_Checkout_CurrentContext": 45741 field := field 45742 45743 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45744 defer func() { 45745 if r := recover(); r != nil { 45746 ec.Error(ctx, ec.Recover(ctx, r)) 45747 } 45748 }() 45749 res = ec._Query_Commerce_Checkout_CurrentContext(ctx, field) 45750 if res == graphql.Null { 45751 atomic.AddUint32(&fs.Invalids, 1) 45752 } 45753 return res 45754 } 45755 45756 rrm := func(ctx context.Context) graphql.Marshaler { 45757 return ec.OperationContext.RootResolverMiddleware(ctx, 45758 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45759 } 45760 45761 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45762 case "Commerce_CategoryTree": 45763 field := field 45764 45765 innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { 45766 defer func() { 45767 if r := recover(); r != nil { 45768 ec.Error(ctx, ec.Recover(ctx, r)) 45769 } 45770 }() 45771 res = ec._Query_Commerce_CategoryTree(ctx, field) 45772 if res == graphql.Null { 45773 atomic.AddUint32(&fs.Invalids, 1) 45774 } 45775 return res 45776 } 45777 45778 rrm := func(ctx context.Context) graphql.Marshaler { 45779 return ec.OperationContext.RootResolverMiddleware(ctx, 45780 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45781 } 45782 45783 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45784 case "Commerce_Category": 45785 field := field 45786 45787 innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { 45788 defer func() { 45789 if r := recover(); r != nil { 45790 ec.Error(ctx, ec.Recover(ctx, r)) 45791 } 45792 }() 45793 res = ec._Query_Commerce_Category(ctx, field) 45794 return res 45795 } 45796 45797 rrm := func(ctx context.Context) graphql.Marshaler { 45798 return ec.OperationContext.RootResolverMiddleware(ctx, 45799 func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) 45800 } 45801 45802 out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) 45803 case "__type": 45804 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45805 return ec._Query___type(ctx, field) 45806 }) 45807 case "__schema": 45808 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { 45809 return ec._Query___schema(ctx, field) 45810 }) 45811 default: 45812 panic("unknown field " + strconv.Quote(field.Name)) 45813 } 45814 } 45815 out.Dispatch(ctx) 45816 if out.Invalids > 0 { 45817 return graphql.Null 45818 } 45819 45820 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45821 45822 for label, dfs := range deferred { 45823 ec.processDeferredGroup(graphql.DeferredGroup{ 45824 Label: label, 45825 Path: graphql.GetPath(ctx), 45826 FieldSet: dfs, 45827 Context: ctx, 45828 }) 45829 } 45830 45831 return out 45832 } 45833 45834 var __DirectiveImplementors = []string{"__Directive"} 45835 45836 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 45837 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 45838 45839 out := graphql.NewFieldSet(fields) 45840 deferred := make(map[string]*graphql.FieldSet) 45841 for i, field := range fields { 45842 switch field.Name { 45843 case "__typename": 45844 out.Values[i] = graphql.MarshalString("__Directive") 45845 case "name": 45846 out.Values[i] = ec.___Directive_name(ctx, field, obj) 45847 if out.Values[i] == graphql.Null { 45848 out.Invalids++ 45849 } 45850 case "description": 45851 out.Values[i] = ec.___Directive_description(ctx, field, obj) 45852 case "locations": 45853 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 45854 if out.Values[i] == graphql.Null { 45855 out.Invalids++ 45856 } 45857 case "args": 45858 out.Values[i] = ec.___Directive_args(ctx, field, obj) 45859 if out.Values[i] == graphql.Null { 45860 out.Invalids++ 45861 } 45862 case "isRepeatable": 45863 out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) 45864 if out.Values[i] == graphql.Null { 45865 out.Invalids++ 45866 } 45867 default: 45868 panic("unknown field " + strconv.Quote(field.Name)) 45869 } 45870 } 45871 out.Dispatch(ctx) 45872 if out.Invalids > 0 { 45873 return graphql.Null 45874 } 45875 45876 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45877 45878 for label, dfs := range deferred { 45879 ec.processDeferredGroup(graphql.DeferredGroup{ 45880 Label: label, 45881 Path: graphql.GetPath(ctx), 45882 FieldSet: dfs, 45883 Context: ctx, 45884 }) 45885 } 45886 45887 return out 45888 } 45889 45890 var __EnumValueImplementors = []string{"__EnumValue"} 45891 45892 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 45893 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 45894 45895 out := graphql.NewFieldSet(fields) 45896 deferred := make(map[string]*graphql.FieldSet) 45897 for i, field := range fields { 45898 switch field.Name { 45899 case "__typename": 45900 out.Values[i] = graphql.MarshalString("__EnumValue") 45901 case "name": 45902 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 45903 if out.Values[i] == graphql.Null { 45904 out.Invalids++ 45905 } 45906 case "description": 45907 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 45908 case "isDeprecated": 45909 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 45910 if out.Values[i] == graphql.Null { 45911 out.Invalids++ 45912 } 45913 case "deprecationReason": 45914 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 45915 default: 45916 panic("unknown field " + strconv.Quote(field.Name)) 45917 } 45918 } 45919 out.Dispatch(ctx) 45920 if out.Invalids > 0 { 45921 return graphql.Null 45922 } 45923 45924 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45925 45926 for label, dfs := range deferred { 45927 ec.processDeferredGroup(graphql.DeferredGroup{ 45928 Label: label, 45929 Path: graphql.GetPath(ctx), 45930 FieldSet: dfs, 45931 Context: ctx, 45932 }) 45933 } 45934 45935 return out 45936 } 45937 45938 var __FieldImplementors = []string{"__Field"} 45939 45940 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 45941 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 45942 45943 out := graphql.NewFieldSet(fields) 45944 deferred := make(map[string]*graphql.FieldSet) 45945 for i, field := range fields { 45946 switch field.Name { 45947 case "__typename": 45948 out.Values[i] = graphql.MarshalString("__Field") 45949 case "name": 45950 out.Values[i] = ec.___Field_name(ctx, field, obj) 45951 if out.Values[i] == graphql.Null { 45952 out.Invalids++ 45953 } 45954 case "description": 45955 out.Values[i] = ec.___Field_description(ctx, field, obj) 45956 case "args": 45957 out.Values[i] = ec.___Field_args(ctx, field, obj) 45958 if out.Values[i] == graphql.Null { 45959 out.Invalids++ 45960 } 45961 case "type": 45962 out.Values[i] = ec.___Field_type(ctx, field, obj) 45963 if out.Values[i] == graphql.Null { 45964 out.Invalids++ 45965 } 45966 case "isDeprecated": 45967 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 45968 if out.Values[i] == graphql.Null { 45969 out.Invalids++ 45970 } 45971 case "deprecationReason": 45972 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 45973 default: 45974 panic("unknown field " + strconv.Quote(field.Name)) 45975 } 45976 } 45977 out.Dispatch(ctx) 45978 if out.Invalids > 0 { 45979 return graphql.Null 45980 } 45981 45982 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 45983 45984 for label, dfs := range deferred { 45985 ec.processDeferredGroup(graphql.DeferredGroup{ 45986 Label: label, 45987 Path: graphql.GetPath(ctx), 45988 FieldSet: dfs, 45989 Context: ctx, 45990 }) 45991 } 45992 45993 return out 45994 } 45995 45996 var __InputValueImplementors = []string{"__InputValue"} 45997 45998 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 45999 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 46000 46001 out := graphql.NewFieldSet(fields) 46002 deferred := make(map[string]*graphql.FieldSet) 46003 for i, field := range fields { 46004 switch field.Name { 46005 case "__typename": 46006 out.Values[i] = graphql.MarshalString("__InputValue") 46007 case "name": 46008 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 46009 if out.Values[i] == graphql.Null { 46010 out.Invalids++ 46011 } 46012 case "description": 46013 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 46014 case "type": 46015 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 46016 if out.Values[i] == graphql.Null { 46017 out.Invalids++ 46018 } 46019 case "defaultValue": 46020 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 46021 default: 46022 panic("unknown field " + strconv.Quote(field.Name)) 46023 } 46024 } 46025 out.Dispatch(ctx) 46026 if out.Invalids > 0 { 46027 return graphql.Null 46028 } 46029 46030 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 46031 46032 for label, dfs := range deferred { 46033 ec.processDeferredGroup(graphql.DeferredGroup{ 46034 Label: label, 46035 Path: graphql.GetPath(ctx), 46036 FieldSet: dfs, 46037 Context: ctx, 46038 }) 46039 } 46040 46041 return out 46042 } 46043 46044 var __SchemaImplementors = []string{"__Schema"} 46045 46046 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 46047 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 46048 46049 out := graphql.NewFieldSet(fields) 46050 deferred := make(map[string]*graphql.FieldSet) 46051 for i, field := range fields { 46052 switch field.Name { 46053 case "__typename": 46054 out.Values[i] = graphql.MarshalString("__Schema") 46055 case "description": 46056 out.Values[i] = ec.___Schema_description(ctx, field, obj) 46057 case "types": 46058 out.Values[i] = ec.___Schema_types(ctx, field, obj) 46059 if out.Values[i] == graphql.Null { 46060 out.Invalids++ 46061 } 46062 case "queryType": 46063 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 46064 if out.Values[i] == graphql.Null { 46065 out.Invalids++ 46066 } 46067 case "mutationType": 46068 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 46069 case "subscriptionType": 46070 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 46071 case "directives": 46072 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 46073 if out.Values[i] == graphql.Null { 46074 out.Invalids++ 46075 } 46076 default: 46077 panic("unknown field " + strconv.Quote(field.Name)) 46078 } 46079 } 46080 out.Dispatch(ctx) 46081 if out.Invalids > 0 { 46082 return graphql.Null 46083 } 46084 46085 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 46086 46087 for label, dfs := range deferred { 46088 ec.processDeferredGroup(graphql.DeferredGroup{ 46089 Label: label, 46090 Path: graphql.GetPath(ctx), 46091 FieldSet: dfs, 46092 Context: ctx, 46093 }) 46094 } 46095 46096 return out 46097 } 46098 46099 var __TypeImplementors = []string{"__Type"} 46100 46101 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 46102 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 46103 46104 out := graphql.NewFieldSet(fields) 46105 deferred := make(map[string]*graphql.FieldSet) 46106 for i, field := range fields { 46107 switch field.Name { 46108 case "__typename": 46109 out.Values[i] = graphql.MarshalString("__Type") 46110 case "kind": 46111 out.Values[i] = ec.___Type_kind(ctx, field, obj) 46112 if out.Values[i] == graphql.Null { 46113 out.Invalids++ 46114 } 46115 case "name": 46116 out.Values[i] = ec.___Type_name(ctx, field, obj) 46117 case "description": 46118 out.Values[i] = ec.___Type_description(ctx, field, obj) 46119 case "fields": 46120 out.Values[i] = ec.___Type_fields(ctx, field, obj) 46121 case "interfaces": 46122 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 46123 case "possibleTypes": 46124 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 46125 case "enumValues": 46126 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 46127 case "inputFields": 46128 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 46129 case "ofType": 46130 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 46131 case "specifiedByURL": 46132 out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) 46133 default: 46134 panic("unknown field " + strconv.Quote(field.Name)) 46135 } 46136 } 46137 out.Dispatch(ctx) 46138 if out.Invalids > 0 { 46139 return graphql.Null 46140 } 46141 46142 atomic.AddInt32(&ec.deferred, int32(len(deferred))) 46143 46144 for label, dfs := range deferred { 46145 ec.processDeferredGroup(graphql.DeferredGroup{ 46146 Label: label, 46147 Path: graphql.GetPath(ctx), 46148 FieldSet: dfs, 46149 Context: ctx, 46150 }) 46151 } 46152 46153 return out 46154 } 46155 46156 // endregion **************************** object.gotpl **************************** 46157 46158 // region ***************************** type.gotpl ***************************** 46159 46160 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 46161 res, err := graphql.UnmarshalBoolean(v) 46162 return res, graphql.ErrorOnPath(ctx, err) 46163 } 46164 46165 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 46166 res := graphql.MarshalBoolean(v) 46167 if res == graphql.Null { 46168 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46169 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46170 } 46171 } 46172 return res 46173 } 46174 46175 func (ec *executionContext) unmarshalNCommerce_Cart_AddToCartInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐAddToCart(ctx context.Context, v interface{}) (dto.AddToCart, error) { 46176 res, err := ec.unmarshalInputCommerce_Cart_AddToCartInput(ctx, v) 46177 return res, graphql.ErrorOnPath(ctx, err) 46178 } 46179 46180 func (ec *executionContext) marshalNCommerce_Cart_AdditionalData2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAdditionalData(ctx context.Context, sel ast.SelectionSet, v cart.AdditionalData) graphql.Marshaler { 46181 return ec._Commerce_Cart_AdditionalData(ctx, sel, &v) 46182 } 46183 46184 func (ec *executionContext) marshalNCommerce_Cart_AppliedDiscount2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedDiscount(ctx context.Context, sel ast.SelectionSet, v cart.AppliedDiscount) graphql.Marshaler { 46185 return ec._Commerce_Cart_AppliedDiscount(ctx, sel, &v) 46186 } 46187 46188 func (ec *executionContext) marshalNCommerce_Cart_AppliedDiscounts2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx context.Context, sel ast.SelectionSet, v dto.CartAppliedDiscounts) graphql.Marshaler { 46189 return ec._Commerce_Cart_AppliedDiscounts(ctx, sel, &v) 46190 } 46191 46192 func (ec *executionContext) marshalNCommerce_Cart_AppliedDiscounts2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartAppliedDiscounts(ctx context.Context, sel ast.SelectionSet, v *dto.CartAppliedDiscounts) graphql.Marshaler { 46193 if v == nil { 46194 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46195 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46196 } 46197 return graphql.Null 46198 } 46199 return ec._Commerce_Cart_AppliedDiscounts(ctx, sel, v) 46200 } 46201 46202 func (ec *executionContext) marshalNCommerce_Cart_AppliedGiftCard2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedGiftCard(ctx context.Context, sel ast.SelectionSet, v cart.AppliedGiftCard) graphql.Marshaler { 46203 return ec._Commerce_Cart_AppliedGiftCard(ctx, sel, &v) 46204 } 46205 46206 func (ec *executionContext) marshalNCommerce_Cart_BillingAddressForm2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐBillingAddressForm(ctx context.Context, sel ast.SelectionSet, v dto.BillingAddressForm) graphql.Marshaler { 46207 return ec._Commerce_Cart_BillingAddressForm(ctx, sel, &v) 46208 } 46209 46210 func (ec *executionContext) marshalNCommerce_Cart_BillingAddressForm2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐBillingAddressForm(ctx context.Context, sel ast.SelectionSet, v *dto.BillingAddressForm) graphql.Marshaler { 46211 if v == nil { 46212 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46213 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46214 } 46215 return graphql.Null 46216 } 46217 return ec._Commerce_Cart_BillingAddressForm(ctx, sel, v) 46218 } 46219 46220 func (ec *executionContext) marshalNCommerce_Cart_Cart2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCart(ctx context.Context, sel ast.SelectionSet, v cart.Cart) graphql.Marshaler { 46221 return ec._Commerce_Cart_Cart(ctx, sel, &v) 46222 } 46223 46224 func (ec *executionContext) unmarshalNCommerce_Cart_ChoiceConfigurationInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfiguration(ctx context.Context, v interface{}) (dto.ChoiceConfiguration, error) { 46225 res, err := ec.unmarshalInputCommerce_Cart_ChoiceConfigurationInput(ctx, v) 46226 return res, graphql.ErrorOnPath(ctx, err) 46227 } 46228 46229 func (ec *executionContext) unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx context.Context, v interface{}) ([]*dto.ChoiceConfiguration, error) { 46230 var vSlice []interface{} 46231 if v != nil { 46232 vSlice = graphql.CoerceList(v) 46233 } 46234 var err error 46235 res := make([]*dto.ChoiceConfiguration, len(vSlice)) 46236 for i := range vSlice { 46237 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 46238 res[i], err = ec.unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfiguration(ctx, vSlice[i]) 46239 if err != nil { 46240 return nil, err 46241 } 46242 } 46243 return res, nil 46244 } 46245 46246 func (ec *executionContext) unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfiguration(ctx context.Context, v interface{}) (*dto.ChoiceConfiguration, error) { 46247 res, err := ec.unmarshalInputCommerce_Cart_ChoiceConfigurationInput(ctx, v) 46248 return &res, graphql.ErrorOnPath(ctx, err) 46249 } 46250 46251 func (ec *executionContext) marshalNCommerce_Cart_CouponCode2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCouponCode(ctx context.Context, sel ast.SelectionSet, v cart.CouponCode) graphql.Marshaler { 46252 return ec._Commerce_Cart_CouponCode(ctx, sel, &v) 46253 } 46254 46255 func (ec *executionContext) marshalNCommerce_Cart_CustomAttributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCustomAttributes(ctx context.Context, sel ast.SelectionSet, v dto.CustomAttributes) graphql.Marshaler { 46256 return ec._Commerce_Cart_CustomAttributes(ctx, sel, &v) 46257 } 46258 46259 func (ec *executionContext) marshalNCommerce_Cart_CustomAttributes2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCustomAttributes(ctx context.Context, sel ast.SelectionSet, v *dto.CustomAttributes) graphql.Marshaler { 46260 if v == nil { 46261 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46262 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46263 } 46264 return graphql.Null 46265 } 46266 return ec._Commerce_Cart_CustomAttributes(ctx, sel, v) 46267 } 46268 46269 func (ec *executionContext) marshalNCommerce_Cart_DecoratedCart2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx context.Context, sel ast.SelectionSet, v dto.DecoratedCart) graphql.Marshaler { 46270 return ec._Commerce_Cart_DecoratedCart(ctx, sel, &v) 46271 } 46272 46273 func (ec *executionContext) marshalNCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx context.Context, sel ast.SelectionSet, v *dto.DecoratedCart) graphql.Marshaler { 46274 if v == nil { 46275 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46276 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46277 } 46278 return graphql.Null 46279 } 46280 return ec._Commerce_Cart_DecoratedCart(ctx, sel, v) 46281 } 46282 46283 func (ec *executionContext) marshalNCommerce_Cart_DecoratedDelivery2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDelivery(ctx context.Context, sel ast.SelectionSet, v dto.DecoratedDelivery) graphql.Marshaler { 46284 return ec._Commerce_Cart_DecoratedDelivery(ctx, sel, &v) 46285 } 46286 46287 func (ec *executionContext) marshalNCommerce_Cart_DecoratedItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCartItem(ctx context.Context, sel ast.SelectionSet, v dto.DecoratedCartItem) graphql.Marshaler { 46288 return ec._Commerce_Cart_DecoratedItem(ctx, sel, &v) 46289 } 46290 46291 func (ec *executionContext) marshalNCommerce_Cart_Delivery2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx context.Context, sel ast.SelectionSet, v cart.Delivery) graphql.Marshaler { 46292 return ec._Commerce_Cart_Delivery(ctx, sel, &v) 46293 } 46294 46295 func (ec *executionContext) marshalNCommerce_Cart_Delivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx context.Context, sel ast.SelectionSet, v *cart.Delivery) graphql.Marshaler { 46296 if v == nil { 46297 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46298 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46299 } 46300 return graphql.Null 46301 } 46302 return ec._Commerce_Cart_Delivery(ctx, sel, v) 46303 } 46304 46305 func (ec *executionContext) unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalDataᚄ(ctx context.Context, v interface{}) ([]*dto.DeliveryAdditionalData, error) { 46306 var vSlice []interface{} 46307 if v != nil { 46308 vSlice = graphql.CoerceList(v) 46309 } 46310 var err error 46311 res := make([]*dto.DeliveryAdditionalData, len(vSlice)) 46312 for i := range vSlice { 46313 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 46314 res[i], err = ec.unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalData(ctx, vSlice[i]) 46315 if err != nil { 46316 return nil, err 46317 } 46318 } 46319 return res, nil 46320 } 46321 46322 func (ec *executionContext) unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalData(ctx context.Context, v interface{}) (*dto.DeliveryAdditionalData, error) { 46323 res, err := ec.unmarshalInputCommerce_Cart_DeliveryAdditionalDataInput(ctx, v) 46324 return &res, graphql.ErrorOnPath(ctx, err) 46325 } 46326 46327 func (ec *executionContext) marshalNCommerce_Cart_DeliveryAddressForm2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAddressForm(ctx context.Context, sel ast.SelectionSet, v []*dto.DeliveryAddressForm) graphql.Marshaler { 46328 ret := make(graphql.Array, len(v)) 46329 var wg sync.WaitGroup 46330 isLen1 := len(v) == 1 46331 if !isLen1 { 46332 wg.Add(len(v)) 46333 } 46334 for i := range v { 46335 i := i 46336 fc := &graphql.FieldContext{ 46337 Index: &i, 46338 Result: &v[i], 46339 } 46340 ctx := graphql.WithFieldContext(ctx, fc) 46341 f := func(i int) { 46342 defer func() { 46343 if r := recover(); r != nil { 46344 ec.Error(ctx, ec.Recover(ctx, r)) 46345 ret = nil 46346 } 46347 }() 46348 if !isLen1 { 46349 defer wg.Done() 46350 } 46351 ret[i] = ec.marshalOCommerce_Cart_DeliveryAddressForm2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAddressForm(ctx, sel, v[i]) 46352 } 46353 if isLen1 { 46354 f(i) 46355 } else { 46356 go f(i) 46357 } 46358 46359 } 46360 wg.Wait() 46361 46362 return ret 46363 } 46364 46365 func (ec *executionContext) unmarshalNCommerce_Cart_DeliveryAddressInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryForm(ctx context.Context, v interface{}) (*forms.DeliveryForm, error) { 46366 res, err := ec.unmarshalInputCommerce_Cart_DeliveryAddressInput(ctx, v) 46367 return &res, graphql.ErrorOnPath(ctx, err) 46368 } 46369 46370 func (ec *executionContext) unmarshalNCommerce_Cart_DeliveryShippingOptionInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOption(ctx context.Context, v interface{}) (*dto.DeliveryShippingOption, error) { 46371 res, err := ec.unmarshalInputCommerce_Cart_DeliveryShippingOptionInput(ctx, v) 46372 return &res, graphql.ErrorOnPath(ctx, err) 46373 } 46374 46375 func (ec *executionContext) marshalNCommerce_Cart_Form_Error2flamingoᚗmeᚋformᚋdomainᚐError(ctx context.Context, sel ast.SelectionSet, v domain4.Error) graphql.Marshaler { 46376 return ec._Commerce_Cart_Form_Error(ctx, sel, &v) 46377 } 46378 46379 func (ec *executionContext) marshalNCommerce_Cart_Form_FieldError2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐFieldError(ctx context.Context, sel ast.SelectionSet, v dto.FieldError) graphql.Marshaler { 46380 return ec._Commerce_Cart_Form_FieldError(ctx, sel, &v) 46381 } 46382 46383 func (ec *executionContext) marshalNCommerce_Cart_Item2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx context.Context, sel ast.SelectionSet, v cart.Item) graphql.Marshaler { 46384 return ec._Commerce_Cart_Item(ctx, sel, &v) 46385 } 46386 46387 func (ec *executionContext) marshalNCommerce_Cart_Item2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx context.Context, sel ast.SelectionSet, v *cart.Item) graphql.Marshaler { 46388 if v == nil { 46389 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46390 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46391 } 46392 return graphql.Null 46393 } 46394 return ec._Commerce_Cart_Item(ctx, sel, v) 46395 } 46396 46397 func (ec *executionContext) marshalNCommerce_Cart_ItemValidationError2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐItemValidationError(ctx context.Context, sel ast.SelectionSet, v validation.ItemValidationError) graphql.Marshaler { 46398 return ec._Commerce_Cart_ItemValidationError(ctx, sel, &v) 46399 } 46400 46401 func (ec *executionContext) unmarshalNCommerce_Cart_KeyValueInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx context.Context, v interface{}) (dto.KeyValue, error) { 46402 res, err := ec.unmarshalInputCommerce_Cart_KeyValueInput(ctx, v) 46403 return res, graphql.ErrorOnPath(ctx, err) 46404 } 46405 46406 func (ec *executionContext) unmarshalNCommerce_Cart_KeyValueInput2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx context.Context, v interface{}) ([]dto.KeyValue, error) { 46407 var vSlice []interface{} 46408 if v != nil { 46409 vSlice = graphql.CoerceList(v) 46410 } 46411 var err error 46412 res := make([]dto.KeyValue, len(vSlice)) 46413 for i := range vSlice { 46414 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 46415 res[i], err = ec.unmarshalNCommerce_Cart_KeyValueInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx, vSlice[i]) 46416 if err != nil { 46417 return nil, err 46418 } 46419 } 46420 return res, nil 46421 } 46422 46423 func (ec *executionContext) unmarshalNCommerce_Cart_KeyValueInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx context.Context, v interface{}) ([]*dto.KeyValue, error) { 46424 var vSlice []interface{} 46425 if v != nil { 46426 vSlice = graphql.CoerceList(v) 46427 } 46428 var err error 46429 res := make([]*dto.KeyValue, len(vSlice)) 46430 for i := range vSlice { 46431 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 46432 res[i], err = ec.unmarshalNCommerce_Cart_KeyValueInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx, vSlice[i]) 46433 if err != nil { 46434 return nil, err 46435 } 46436 } 46437 return res, nil 46438 } 46439 46440 func (ec *executionContext) unmarshalNCommerce_Cart_KeyValueInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx context.Context, v interface{}) (*dto.KeyValue, error) { 46441 res, err := ec.unmarshalInputCommerce_Cart_KeyValueInput(ctx, v) 46442 return &res, graphql.ErrorOnPath(ctx, err) 46443 } 46444 46445 func (ec *executionContext) marshalNCommerce_Cart_PaymentSelection_Split2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPaymentSelectionSplit(ctx context.Context, sel ast.SelectionSet, v *dto.PaymentSelectionSplit) graphql.Marshaler { 46446 if v == nil { 46447 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46448 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46449 } 46450 return graphql.Null 46451 } 46452 return ec._Commerce_Cart_PaymentSelection_Split(ctx, sel, v) 46453 } 46454 46455 func (ec *executionContext) marshalNCommerce_Cart_PaymentSelection_SplitQualifier2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐSplitQualifier(ctx context.Context, sel ast.SelectionSet, v cart.SplitQualifier) graphql.Marshaler { 46456 return ec._Commerce_Cart_PaymentSelection_SplitQualifier(ctx, sel, &v) 46457 } 46458 46459 func (ec *executionContext) marshalNCommerce_Cart_PersonalDetails2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPersonalDetails(ctx context.Context, sel ast.SelectionSet, v cart.PersonalDetails) graphql.Marshaler { 46460 return ec._Commerce_Cart_PersonalDetails(ctx, sel, &v) 46461 } 46462 46463 func (ec *executionContext) marshalNCommerce_Cart_PlacedOrderInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋplaceorderᚐPlacedOrderInfo(ctx context.Context, sel ast.SelectionSet, v placeorder.PlacedOrderInfo) graphql.Marshaler { 46464 return ec._Commerce_Cart_PlacedOrderInfo(ctx, sel, &v) 46465 } 46466 46467 func (ec *executionContext) marshalNCommerce_Cart_PricedCartItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedCartItem(ctx context.Context, sel ast.SelectionSet, v dto.PricedCartItem) graphql.Marshaler { 46468 return ec._Commerce_Cart_PricedCartItem(ctx, sel, &v) 46469 } 46470 46471 func (ec *executionContext) marshalNCommerce_Cart_PricedItems2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedItems(ctx context.Context, sel ast.SelectionSet, v dto.PricedItems) graphql.Marshaler { 46472 return ec._Commerce_Cart_PricedItems(ctx, sel, &v) 46473 } 46474 46475 func (ec *executionContext) marshalNCommerce_Cart_PricedShippingItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedShippingItem(ctx context.Context, sel ast.SelectionSet, v dto.PricedShippingItem) graphql.Marshaler { 46476 return ec._Commerce_Cart_PricedShippingItem(ctx, sel, &v) 46477 } 46478 46479 func (ec *executionContext) marshalNCommerce_Cart_PricedTotalItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedTotalItem(ctx context.Context, sel ast.SelectionSet, v dto.PricedTotalItem) graphql.Marshaler { 46480 return ec._Commerce_Cart_PricedTotalItem(ctx, sel, &v) 46481 } 46482 46483 func (ec *executionContext) marshalNCommerce_Cart_QtyRestrictionResult2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐRestrictionResult(ctx context.Context, sel ast.SelectionSet, v validation.RestrictionResult) graphql.Marshaler { 46484 return ec._Commerce_Cart_QtyRestrictionResult(ctx, sel, &v) 46485 } 46486 46487 func (ec *executionContext) marshalNCommerce_Cart_QtyRestrictionResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐRestrictionResult(ctx context.Context, sel ast.SelectionSet, v *validation.RestrictionResult) graphql.Marshaler { 46488 if v == nil { 46489 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46490 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46491 } 46492 return graphql.Null 46493 } 46494 return ec._Commerce_Cart_QtyRestrictionResult(ctx, sel, v) 46495 } 46496 46497 func (ec *executionContext) marshalNCommerce_Cart_SelectedPaymentResult2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐSelectedPaymentResult(ctx context.Context, sel ast.SelectionSet, v dto.SelectedPaymentResult) graphql.Marshaler { 46498 return ec._Commerce_Cart_SelectedPaymentResult(ctx, sel, &v) 46499 } 46500 46501 func (ec *executionContext) marshalNCommerce_Cart_SelectedPaymentResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐSelectedPaymentResult(ctx context.Context, sel ast.SelectionSet, v *dto.SelectedPaymentResult) graphql.Marshaler { 46502 if v == nil { 46503 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46504 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46505 } 46506 return graphql.Null 46507 } 46508 return ec._Commerce_Cart_SelectedPaymentResult(ctx, sel, v) 46509 } 46510 46511 func (ec *executionContext) marshalNCommerce_Cart_Summary2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐCartSummary(ctx context.Context, sel ast.SelectionSet, v dto.CartSummary) graphql.Marshaler { 46512 return ec._Commerce_Cart_Summary(ctx, sel, &v) 46513 } 46514 46515 func (ec *executionContext) marshalNCommerce_Cart_Tax2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx context.Context, sel ast.SelectionSet, v cart.Tax) graphql.Marshaler { 46516 return ec._Commerce_Cart_Tax(ctx, sel, &v) 46517 } 46518 46519 func (ec *executionContext) marshalNCommerce_Cart_Tax2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx context.Context, sel ast.SelectionSet, v []cart.Tax) graphql.Marshaler { 46520 ret := make(graphql.Array, len(v)) 46521 var wg sync.WaitGroup 46522 isLen1 := len(v) == 1 46523 if !isLen1 { 46524 wg.Add(len(v)) 46525 } 46526 for i := range v { 46527 i := i 46528 fc := &graphql.FieldContext{ 46529 Index: &i, 46530 Result: &v[i], 46531 } 46532 ctx := graphql.WithFieldContext(ctx, fc) 46533 f := func(i int) { 46534 defer func() { 46535 if r := recover(); r != nil { 46536 ec.Error(ctx, ec.Recover(ctx, r)) 46537 ret = nil 46538 } 46539 }() 46540 if !isLen1 { 46541 defer wg.Done() 46542 } 46543 ret[i] = ec.marshalOCommerce_Cart_Tax2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx, sel, v[i]) 46544 } 46545 if isLen1 { 46546 f(i) 46547 } else { 46548 go f(i) 46549 } 46550 46551 } 46552 wg.Wait() 46553 46554 return ret 46555 } 46556 46557 func (ec *executionContext) marshalNCommerce_Cart_Teaser2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTeaser(ctx context.Context, sel ast.SelectionSet, v *cart.Teaser) graphql.Marshaler { 46558 if v == nil { 46559 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46560 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46561 } 46562 return graphql.Null 46563 } 46564 return ec._Commerce_Cart_Teaser(ctx, sel, v) 46565 } 46566 46567 func (ec *executionContext) marshalNCommerce_Cart_Totalitem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTotalitem(ctx context.Context, sel ast.SelectionSet, v cart.Totalitem) graphql.Marshaler { 46568 return ec._Commerce_Cart_Totalitem(ctx, sel, &v) 46569 } 46570 46571 func (ec *executionContext) marshalNCommerce_Cart_UpdateDeliveryShippingOptions_Result2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐUpdateShippingOptionsResult(ctx context.Context, sel ast.SelectionSet, v dto.UpdateShippingOptionsResult) graphql.Marshaler { 46572 return ec._Commerce_Cart_UpdateDeliveryShippingOptions_Result(ctx, sel, &v) 46573 } 46574 46575 func (ec *executionContext) marshalNCommerce_Cart_UpdateDeliveryShippingOptions_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐUpdateShippingOptionsResult(ctx context.Context, sel ast.SelectionSet, v *dto.UpdateShippingOptionsResult) graphql.Marshaler { 46576 if v == nil { 46577 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46578 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46579 } 46580 return graphql.Null 46581 } 46582 return ec._Commerce_Cart_UpdateDeliveryShippingOptions_Result(ctx, sel, v) 46583 } 46584 46585 func (ec *executionContext) marshalNCommerce_Cart_ValidationResult2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐResult(ctx context.Context, sel ast.SelectionSet, v validation.Result) graphql.Marshaler { 46586 return ec._Commerce_Cart_ValidationResult(ctx, sel, &v) 46587 } 46588 46589 func (ec *executionContext) marshalNCommerce_Cart_ValidationResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐResult(ctx context.Context, sel ast.SelectionSet, v *validation.Result) graphql.Marshaler { 46590 if v == nil { 46591 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46592 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46593 } 46594 return graphql.Null 46595 } 46596 return ec._Commerce_Cart_ValidationResult(ctx, sel, v) 46597 } 46598 46599 func (ec *executionContext) marshalNCommerce_Category2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐCategory(ctx context.Context, sel ast.SelectionSet, v domain3.Category) graphql.Marshaler { 46600 if v == nil { 46601 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46602 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46603 } 46604 return graphql.Null 46605 } 46606 return ec._Commerce_Category(ctx, sel, v) 46607 } 46608 46609 func (ec *executionContext) marshalNCommerce_Category_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttribute(ctx context.Context, sel ast.SelectionSet, v domain3.Attribute) graphql.Marshaler { 46610 return ec._Commerce_Category_Attribute(ctx, sel, &v) 46611 } 46612 46613 func (ec *executionContext) marshalNCommerce_Category_AttributeValue2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeValue(ctx context.Context, sel ast.SelectionSet, v domain3.AttributeValue) graphql.Marshaler { 46614 return ec._Commerce_Category_AttributeValue(ctx, sel, &v) 46615 } 46616 46617 func (ec *executionContext) marshalNCommerce_Category_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributes(ctx context.Context, sel ast.SelectionSet, v domain3.Attributes) graphql.Marshaler { 46618 if v == nil { 46619 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46620 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46621 } 46622 return graphql.Null 46623 } 46624 return ec._Commerce_Category_Attributes(ctx, sel, v) 46625 } 46626 46627 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderContext2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlaceOrderContext(ctx context.Context, sel ast.SelectionSet, v dto1.PlaceOrderContext) graphql.Marshaler { 46628 return ec._Commerce_Checkout_PlaceOrderContext(ctx, sel, &v) 46629 } 46630 46631 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderContext2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlaceOrderContext(ctx context.Context, sel ast.SelectionSet, v *dto1.PlaceOrderContext) graphql.Marshaler { 46632 if v == nil { 46633 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46634 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46635 } 46636 return graphql.Null 46637 } 46638 return ec._Commerce_Checkout_PlaceOrderContext(ctx, sel, v) 46639 } 46640 46641 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderPaymentInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋapplicationᚐPlaceOrderPaymentInfo(ctx context.Context, sel ast.SelectionSet, v application.PlaceOrderPaymentInfo) graphql.Marshaler { 46642 return ec._Commerce_Checkout_PlaceOrderPaymentInfo(ctx, sel, &v) 46643 } 46644 46645 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderState_Form_Parameter2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐFormParameter(ctx context.Context, sel ast.SelectionSet, v dto1.FormParameter) graphql.Marshaler { 46646 return ec._Commerce_Checkout_PlaceOrderState_Form_Parameter(ctx, sel, &v) 46647 } 46648 46649 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderState_PaymentRequestAPI2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPaymentRequestAPI(ctx context.Context, sel ast.SelectionSet, v dto1.PaymentRequestAPI) graphql.Marshaler { 46650 return ec._Commerce_Checkout_PlaceOrderState_PaymentRequestAPI(ctx, sel, &v) 46651 } 46652 46653 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderState_State2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐState(ctx context.Context, sel ast.SelectionSet, v dto1.State) graphql.Marshaler { 46654 if v == nil { 46655 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46656 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46657 } 46658 return graphql.Null 46659 } 46660 return ec._Commerce_Checkout_PlaceOrderState_State(ctx, sel, v) 46661 } 46662 46663 func (ec *executionContext) marshalNCommerce_Checkout_PlaceOrderState_State_FailedReason2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋdomainᚋplaceorderᚋprocessᚐFailedReason(ctx context.Context, sel ast.SelectionSet, v process.FailedReason) graphql.Marshaler { 46664 if v == nil { 46665 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46666 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46667 } 46668 return graphql.Null 46669 } 46670 return ec._Commerce_Checkout_PlaceOrderState_State_FailedReason(ctx, sel, v) 46671 } 46672 46673 func (ec *executionContext) marshalNCommerce_Checkout_StartPlaceOrder_Result2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐStartPlaceOrderResult(ctx context.Context, sel ast.SelectionSet, v dto1.StartPlaceOrderResult) graphql.Marshaler { 46674 return ec._Commerce_Checkout_StartPlaceOrder_Result(ctx, sel, &v) 46675 } 46676 46677 func (ec *executionContext) marshalNCommerce_Checkout_StartPlaceOrder_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐStartPlaceOrderResult(ctx context.Context, sel ast.SelectionSet, v *dto1.StartPlaceOrderResult) graphql.Marshaler { 46678 if v == nil { 46679 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46680 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46681 } 46682 return graphql.Null 46683 } 46684 return ec._Commerce_Checkout_StartPlaceOrder_Result(ctx, sel, v) 46685 } 46686 46687 func (ec *executionContext) marshalNCommerce_Customer_Address2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx context.Context, sel ast.SelectionSet, v domain5.Address) graphql.Marshaler { 46688 return ec._Commerce_Customer_Address(ctx, sel, &v) 46689 } 46690 46691 func (ec *executionContext) marshalNCommerce_Customer_PersonData2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐPersonData(ctx context.Context, sel ast.SelectionSet, v domain5.PersonData) graphql.Marshaler { 46692 return ec._Commerce_Customer_PersonData(ctx, sel, &v) 46693 } 46694 46695 func (ec *executionContext) marshalNCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx context.Context, sel ast.SelectionSet, v domain.Price) graphql.Marshaler { 46696 return ec._Commerce_Price(ctx, sel, &v) 46697 } 46698 46699 func (ec *executionContext) marshalNCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx context.Context, sel ast.SelectionSet, v *domain.Price) graphql.Marshaler { 46700 if v == nil { 46701 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46702 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46703 } 46704 return graphql.Null 46705 } 46706 return ec._Commerce_Price(ctx, sel, v) 46707 } 46708 46709 func (ec *executionContext) marshalNCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx context.Context, sel ast.SelectionSet, v domain.Charge) graphql.Marshaler { 46710 return ec._Commerce_Price_Charge(ctx, sel, &v) 46711 } 46712 46713 func (ec *executionContext) unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx context.Context, v interface{}) (domain.ChargeQualifier, error) { 46714 res, err := ec.unmarshalInputCommerce_Price_ChargeQualifierInput(ctx, v) 46715 return res, graphql.ErrorOnPath(ctx, err) 46716 } 46717 46718 func (ec *executionContext) marshalNCommerce_Price_Charges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharges(ctx context.Context, sel ast.SelectionSet, v domain.Charges) graphql.Marshaler { 46719 return ec._Commerce_Price_Charges(ctx, sel, &v) 46720 } 46721 46722 func (ec *executionContext) marshalNCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.Product) graphql.Marshaler { 46723 if v == nil { 46724 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46725 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46726 } 46727 return graphql.Null 46728 } 46729 return ec._Commerce_Product(ctx, sel, v) 46730 } 46731 46732 func (ec *executionContext) marshalNCommerce_Product_ActiveVariationSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐActiveVariationSelection(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ActiveVariationSelection) graphql.Marshaler { 46733 return ec._Commerce_Product_ActiveVariationSelection(ctx, sel, &v) 46734 } 46735 46736 func (ec *executionContext) marshalNCommerce_Product_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttribute(ctx context.Context, sel ast.SelectionSet, v domain1.Attribute) graphql.Marshaler { 46737 return ec._Commerce_Product_Attribute(ctx, sel, &v) 46738 } 46739 46740 func (ec *executionContext) marshalNCommerce_Product_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributes(ctx context.Context, sel ast.SelectionSet, v domain1.Attributes) graphql.Marshaler { 46741 if v == nil { 46742 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46743 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46744 } 46745 return graphql.Null 46746 } 46747 return ec._Commerce_Product_Attributes(ctx, sel, v) 46748 } 46749 46750 func (ec *executionContext) marshalNCommerce_Product_Badge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadge(ctx context.Context, sel ast.SelectionSet, v domain1.Badge) graphql.Marshaler { 46751 return ec._Commerce_Product_Badge(ctx, sel, &v) 46752 } 46753 46754 func (ec *executionContext) marshalNCommerce_Product_Badges2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductBadges(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ProductBadges) graphql.Marshaler { 46755 return ec._Commerce_Product_Badges(ctx, sel, &v) 46756 } 46757 46758 func (ec *executionContext) marshalNCommerce_Product_Categories2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductCategories(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ProductCategories) graphql.Marshaler { 46759 return ec._Commerce_Product_Categories(ctx, sel, &v) 46760 } 46761 46762 func (ec *executionContext) marshalNCommerce_Product_CategoryTeaser2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaser(ctx context.Context, sel ast.SelectionSet, v domain1.CategoryTeaser) graphql.Marshaler { 46763 return ec._Commerce_Product_CategoryTeaser(ctx, sel, &v) 46764 } 46765 46766 func (ec *executionContext) marshalNCommerce_Product_Choice2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoice(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.Choice) graphql.Marshaler { 46767 return ec._Commerce_Product_Choice(ctx, sel, &v) 46768 } 46769 46770 func (ec *executionContext) unmarshalNCommerce_Product_ChoiceConfigurationInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfiguration(ctx context.Context, v interface{}) (*graphqlproductdto.ChoiceConfiguration, error) { 46771 res, err := ec.unmarshalInputCommerce_Product_ChoiceConfigurationInput(ctx, v) 46772 return &res, graphql.ErrorOnPath(ctx, err) 46773 } 46774 46775 func (ec *executionContext) marshalNCommerce_Product_Loyalty2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductLoyalty(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ProductLoyalty) graphql.Marshaler { 46776 return ec._Commerce_Product_Loyalty(ctx, sel, &v) 46777 } 46778 46779 func (ec *executionContext) marshalNCommerce_Product_Loyalty_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfo(ctx context.Context, sel ast.SelectionSet, v domain1.LoyaltyPriceInfo) graphql.Marshaler { 46780 return ec._Commerce_Product_Loyalty_PriceInfo(ctx, sel, &v) 46781 } 46782 46783 func (ec *executionContext) marshalNCommerce_Product_Media2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMedia(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ProductMedia) graphql.Marshaler { 46784 return ec._Commerce_Product_Media(ctx, sel, &v) 46785 } 46786 46787 func (ec *executionContext) marshalNCommerce_Product_MediaItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMedia(ctx context.Context, sel ast.SelectionSet, v domain1.Media) graphql.Marshaler { 46788 return ec._Commerce_Product_MediaItem(ctx, sel, &v) 46789 } 46790 46791 func (ec *executionContext) marshalNCommerce_Product_MediaItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMedia(ctx context.Context, sel ast.SelectionSet, v *domain1.Media) graphql.Marshaler { 46792 if v == nil { 46793 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46794 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46795 } 46796 return graphql.Null 46797 } 46798 return ec._Commerce_Product_MediaItem(ctx, sel, v) 46799 } 46800 46801 func (ec *executionContext) marshalNCommerce_Product_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductMeta(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.ProductMeta) graphql.Marshaler { 46802 return ec._Commerce_Product_Meta(ctx, sel, &v) 46803 } 46804 46805 func (ec *executionContext) marshalNCommerce_Product_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOption(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.Option) graphql.Marshaler { 46806 return ec._Commerce_Product_Option(ctx, sel, &v) 46807 } 46808 46809 func (ec *executionContext) marshalNCommerce_Product_PriceContext2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceContext(ctx context.Context, sel ast.SelectionSet, v domain1.PriceContext) graphql.Marshaler { 46810 return ec._Commerce_Product_PriceContext(ctx, sel, &v) 46811 } 46812 46813 func (ec *executionContext) marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx context.Context, sel ast.SelectionSet, v domain1.PriceInfo) graphql.Marshaler { 46814 return ec._Commerce_Product_PriceInfo(ctx, sel, &v) 46815 } 46816 46817 func (ec *executionContext) marshalNCommerce_Product_SearchResult2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚐSearchResultDTO(ctx context.Context, sel ast.SelectionSet, v graphql1.SearchResultDTO) graphql.Marshaler { 46818 return ec._Commerce_Product_SearchResult(ctx, sel, &v) 46819 } 46820 46821 func (ec *executionContext) marshalNCommerce_Product_SearchResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚐSearchResultDTO(ctx context.Context, sel ast.SelectionSet, v *graphql1.SearchResultDTO) graphql.Marshaler { 46822 if v == nil { 46823 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 46824 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 46825 } 46826 return graphql.Null 46827 } 46828 return ec._Commerce_Product_SearchResult(ctx, sel, v) 46829 } 46830 46831 func (ec *executionContext) marshalNCommerce_Product_VariantSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelection(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelection) graphql.Marshaler { 46832 return ec._Commerce_Product_VariantSelection(ctx, sel, &v) 46833 } 46834 46835 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttribute(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelectionAttribute) graphql.Marshaler { 46836 return ec._Commerce_Product_VariantSelection_Attribute(ctx, sel, &v) 46837 } 46838 46839 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariantSelectionAttribute) graphql.Marshaler { 46840 ret := make(graphql.Array, len(v)) 46841 var wg sync.WaitGroup 46842 isLen1 := len(v) == 1 46843 if !isLen1 { 46844 wg.Add(len(v)) 46845 } 46846 for i := range v { 46847 i := i 46848 fc := &graphql.FieldContext{ 46849 Index: &i, 46850 Result: &v[i], 46851 } 46852 ctx := graphql.WithFieldContext(ctx, fc) 46853 f := func(i int) { 46854 defer func() { 46855 if r := recover(); r != nil { 46856 ec.Error(ctx, ec.Recover(ctx, r)) 46857 ret = nil 46858 } 46859 }() 46860 if !isLen1 { 46861 defer wg.Done() 46862 } 46863 ret[i] = ec.marshalNCommerce_Product_VariantSelection_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttribute(ctx, sel, v[i]) 46864 } 46865 if isLen1 { 46866 f(i) 46867 } else { 46868 go f(i) 46869 } 46870 46871 } 46872 wg.Wait() 46873 46874 for _, e := range ret { 46875 if e == graphql.Null { 46876 return graphql.Null 46877 } 46878 } 46879 46880 return ret 46881 } 46882 46883 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Attribute_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeOption(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelectionAttributeOption) graphql.Marshaler { 46884 return ec._Commerce_Product_VariantSelection_Attribute_Option(ctx, sel, &v) 46885 } 46886 46887 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Attribute_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariantSelectionAttributeOption) graphql.Marshaler { 46888 ret := make(graphql.Array, len(v)) 46889 var wg sync.WaitGroup 46890 isLen1 := len(v) == 1 46891 if !isLen1 { 46892 wg.Add(len(v)) 46893 } 46894 for i := range v { 46895 i := i 46896 fc := &graphql.FieldContext{ 46897 Index: &i, 46898 Result: &v[i], 46899 } 46900 ctx := graphql.WithFieldContext(ctx, fc) 46901 f := func(i int) { 46902 defer func() { 46903 if r := recover(); r != nil { 46904 ec.Error(ctx, ec.Recover(ctx, r)) 46905 ret = nil 46906 } 46907 }() 46908 if !isLen1 { 46909 defer wg.Done() 46910 } 46911 ret[i] = ec.marshalNCommerce_Product_VariantSelection_Attribute_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionAttributeOption(ctx, sel, v[i]) 46912 } 46913 if isLen1 { 46914 f(i) 46915 } else { 46916 go f(i) 46917 } 46918 46919 } 46920 wg.Wait() 46921 46922 for _, e := range ret { 46923 if e == graphql.Null { 46924 return graphql.Null 46925 } 46926 } 46927 46928 return ret 46929 } 46930 46931 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Match2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatch(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelectionMatch) graphql.Marshaler { 46932 return ec._Commerce_Product_VariantSelection_Match(ctx, sel, &v) 46933 } 46934 46935 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Match2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariantSelectionMatch) graphql.Marshaler { 46936 ret := make(graphql.Array, len(v)) 46937 var wg sync.WaitGroup 46938 isLen1 := len(v) == 1 46939 if !isLen1 { 46940 wg.Add(len(v)) 46941 } 46942 for i := range v { 46943 i := i 46944 fc := &graphql.FieldContext{ 46945 Index: &i, 46946 Result: &v[i], 46947 } 46948 ctx := graphql.WithFieldContext(ctx, fc) 46949 f := func(i int) { 46950 defer func() { 46951 if r := recover(); r != nil { 46952 ec.Error(ctx, ec.Recover(ctx, r)) 46953 ret = nil 46954 } 46955 }() 46956 if !isLen1 { 46957 defer wg.Done() 46958 } 46959 ret[i] = ec.marshalNCommerce_Product_VariantSelection_Match2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatch(ctx, sel, v[i]) 46960 } 46961 if isLen1 { 46962 f(i) 46963 } else { 46964 go f(i) 46965 } 46966 46967 } 46968 wg.Wait() 46969 46970 for _, e := range ret { 46971 if e == graphql.Null { 46972 return graphql.Null 46973 } 46974 } 46975 46976 return ret 46977 } 46978 46979 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Match_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchAttributes(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelectionMatchAttributes) graphql.Marshaler { 46980 return ec._Commerce_Product_VariantSelection_Match_Attributes(ctx, sel, &v) 46981 } 46982 46983 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Match_Variant2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchVariant(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariantSelectionMatchVariant) graphql.Marshaler { 46984 return ec._Commerce_Product_VariantSelection_Match_Variant(ctx, sel, &v) 46985 } 46986 46987 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Option_OtherAttributesRestriction2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOtherAttributesRestriction(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.OtherAttributesRestriction) graphql.Marshaler { 46988 return ec._Commerce_Product_VariantSelection_Option_OtherAttributesRestriction(ctx, sel, &v) 46989 } 46990 46991 func (ec *executionContext) marshalNCommerce_Product_VariantSelection_Option_OtherAttributesRestriction2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOtherAttributesRestrictionᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.OtherAttributesRestriction) graphql.Marshaler { 46992 ret := make(graphql.Array, len(v)) 46993 var wg sync.WaitGroup 46994 isLen1 := len(v) == 1 46995 if !isLen1 { 46996 wg.Add(len(v)) 46997 } 46998 for i := range v { 46999 i := i 47000 fc := &graphql.FieldContext{ 47001 Index: &i, 47002 Result: &v[i], 47003 } 47004 ctx := graphql.WithFieldContext(ctx, fc) 47005 f := func(i int) { 47006 defer func() { 47007 if r := recover(); r != nil { 47008 ec.Error(ctx, ec.Recover(ctx, r)) 47009 ret = nil 47010 } 47011 }() 47012 if !isLen1 { 47013 defer wg.Done() 47014 } 47015 ret[i] = ec.marshalNCommerce_Product_VariantSelection_Option_OtherAttributesRestriction2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOtherAttributesRestriction(ctx, sel, v[i]) 47016 } 47017 if isLen1 { 47018 f(i) 47019 } else { 47020 go f(i) 47021 } 47022 47023 } 47024 wg.Wait() 47025 47026 for _, e := range ret { 47027 if e == graphql.Null { 47028 return graphql.Null 47029 } 47030 } 47031 47032 return ret 47033 } 47034 47035 func (ec *executionContext) marshalNCommerce_Product_VariationSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelection(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariationSelection) graphql.Marshaler { 47036 return ec._Commerce_Product_VariationSelection(ctx, sel, &v) 47037 } 47038 47039 func (ec *executionContext) unmarshalNCommerce_Product_VariationSelection_OptionState2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOptionState(ctx context.Context, v interface{}) (graphqlproductdto.VariationSelectionOptionState, error) { 47040 tmp, err := graphql.UnmarshalString(v) 47041 res := graphqlproductdto.VariationSelectionOptionState(tmp) 47042 return res, graphql.ErrorOnPath(ctx, err) 47043 } 47044 47045 func (ec *executionContext) marshalNCommerce_Product_VariationSelection_OptionState2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOptionState(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariationSelectionOptionState) graphql.Marshaler { 47046 res := graphql.MarshalString(string(v)) 47047 if res == graphql.Null { 47048 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47049 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47050 } 47051 } 47052 return res 47053 } 47054 47055 func (ec *executionContext) marshalNCommerce_Product_VariationSelection_OptionVariant2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOptionVariant(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariationSelectionOptionVariant) graphql.Marshaler { 47056 return ec._Commerce_Product_VariationSelection_OptionVariant(ctx, sel, &v) 47057 } 47058 47059 func (ec *executionContext) marshalNCommerce_Search_Action2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐAction(ctx context.Context, sel ast.SelectionSet, v domain2.Action) graphql.Marshaler { 47060 return ec._Commerce_Search_Action(ctx, sel, &v) 47061 } 47062 47063 func (ec *executionContext) marshalNCommerce_Search_Facet2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchFacet(ctx context.Context, sel ast.SelectionSet, v searchdto.CommerceSearchFacet) graphql.Marshaler { 47064 if v == nil { 47065 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47066 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47067 } 47068 return graphql.Null 47069 } 47070 return ec._Commerce_Search_Facet(ctx, sel, v) 47071 } 47072 47073 func (ec *executionContext) marshalNCommerce_Search_Facet2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchFacetᚄ(ctx context.Context, sel ast.SelectionSet, v []searchdto.CommerceSearchFacet) graphql.Marshaler { 47074 ret := make(graphql.Array, len(v)) 47075 var wg sync.WaitGroup 47076 isLen1 := len(v) == 1 47077 if !isLen1 { 47078 wg.Add(len(v)) 47079 } 47080 for i := range v { 47081 i := i 47082 fc := &graphql.FieldContext{ 47083 Index: &i, 47084 Result: &v[i], 47085 } 47086 ctx := graphql.WithFieldContext(ctx, fc) 47087 f := func(i int) { 47088 defer func() { 47089 if r := recover(); r != nil { 47090 ec.Error(ctx, ec.Recover(ctx, r)) 47091 ret = nil 47092 } 47093 }() 47094 if !isLen1 { 47095 defer wg.Done() 47096 } 47097 ret[i] = ec.marshalNCommerce_Search_Facet2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchFacet(ctx, sel, v[i]) 47098 } 47099 if isLen1 { 47100 f(i) 47101 } else { 47102 go f(i) 47103 } 47104 47105 } 47106 wg.Wait() 47107 47108 for _, e := range ret { 47109 if e == graphql.Null { 47110 return graphql.Null 47111 } 47112 } 47113 47114 return ret 47115 } 47116 47117 func (ec *executionContext) unmarshalNCommerce_Search_KeyValueFilter2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchKeyValueFilter(ctx context.Context, v interface{}) (searchdto.CommerceSearchKeyValueFilter, error) { 47118 res, err := ec.unmarshalInputCommerce_Search_KeyValueFilter(ctx, v) 47119 return res, graphql.ErrorOnPath(ctx, err) 47120 } 47121 47122 func (ec *executionContext) marshalNCommerce_Search_ListFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchListFacetItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*searchdto.CommerceSearchListFacetItem) graphql.Marshaler { 47123 ret := make(graphql.Array, len(v)) 47124 var wg sync.WaitGroup 47125 isLen1 := len(v) == 1 47126 if !isLen1 { 47127 wg.Add(len(v)) 47128 } 47129 for i := range v { 47130 i := i 47131 fc := &graphql.FieldContext{ 47132 Index: &i, 47133 Result: &v[i], 47134 } 47135 ctx := graphql.WithFieldContext(ctx, fc) 47136 f := func(i int) { 47137 defer func() { 47138 if r := recover(); r != nil { 47139 ec.Error(ctx, ec.Recover(ctx, r)) 47140 ret = nil 47141 } 47142 }() 47143 if !isLen1 { 47144 defer wg.Done() 47145 } 47146 ret[i] = ec.marshalNCommerce_Search_ListFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchListFacetItem(ctx, sel, v[i]) 47147 } 47148 if isLen1 { 47149 f(i) 47150 } else { 47151 go f(i) 47152 } 47153 47154 } 47155 wg.Wait() 47156 47157 for _, e := range ret { 47158 if e == graphql.Null { 47159 return graphql.Null 47160 } 47161 } 47162 47163 return ret 47164 } 47165 47166 func (ec *executionContext) marshalNCommerce_Search_ListFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchListFacetItem(ctx context.Context, sel ast.SelectionSet, v *searchdto.CommerceSearchListFacetItem) graphql.Marshaler { 47167 if v == nil { 47168 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47169 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47170 } 47171 return graphql.Null 47172 } 47173 return ec._Commerce_Search_ListFacetItem(ctx, sel, v) 47174 } 47175 47176 func (ec *executionContext) marshalNCommerce_Search_Meta2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSearchMeta(ctx context.Context, sel ast.SelectionSet, v domain2.SearchMeta) graphql.Marshaler { 47177 return ec._Commerce_Search_Meta(ctx, sel, &v) 47178 } 47179 47180 func (ec *executionContext) marshalNCommerce_Search_RangeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRangeFacetItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*searchdto.CommerceSearchRangeFacetItem) graphql.Marshaler { 47181 ret := make(graphql.Array, len(v)) 47182 var wg sync.WaitGroup 47183 isLen1 := len(v) == 1 47184 if !isLen1 { 47185 wg.Add(len(v)) 47186 } 47187 for i := range v { 47188 i := i 47189 fc := &graphql.FieldContext{ 47190 Index: &i, 47191 Result: &v[i], 47192 } 47193 ctx := graphql.WithFieldContext(ctx, fc) 47194 f := func(i int) { 47195 defer func() { 47196 if r := recover(); r != nil { 47197 ec.Error(ctx, ec.Recover(ctx, r)) 47198 ret = nil 47199 } 47200 }() 47201 if !isLen1 { 47202 defer wg.Done() 47203 } 47204 ret[i] = ec.marshalNCommerce_Search_RangeFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRangeFacetItem(ctx, sel, v[i]) 47205 } 47206 if isLen1 { 47207 f(i) 47208 } else { 47209 go f(i) 47210 } 47211 47212 } 47213 wg.Wait() 47214 47215 for _, e := range ret { 47216 if e == graphql.Null { 47217 return graphql.Null 47218 } 47219 } 47220 47221 return ret 47222 } 47223 47224 func (ec *executionContext) marshalNCommerce_Search_RangeFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRangeFacetItem(ctx context.Context, sel ast.SelectionSet, v *searchdto.CommerceSearchRangeFacetItem) graphql.Marshaler { 47225 if v == nil { 47226 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47227 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47228 } 47229 return graphql.Null 47230 } 47231 return ec._Commerce_Search_RangeFacetItem(ctx, sel, v) 47232 } 47233 47234 func (ec *executionContext) unmarshalNCommerce_Search_Request2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx context.Context, v interface{}) (searchdto.CommerceSearchRequest, error) { 47235 res, err := ec.unmarshalInputCommerce_Search_Request(ctx, v) 47236 return res, graphql.ErrorOnPath(ctx, err) 47237 } 47238 47239 func (ec *executionContext) marshalNCommerce_Search_SortOption2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchSortOption(ctx context.Context, sel ast.SelectionSet, v *searchdto.CommerceSearchSortOption) graphql.Marshaler { 47240 if v == nil { 47241 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47242 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47243 } 47244 return graphql.Null 47245 } 47246 return ec._Commerce_Search_SortOption(ctx, sel, v) 47247 } 47248 47249 func (ec *executionContext) marshalNCommerce_Search_Suggestion2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSuggestion(ctx context.Context, sel ast.SelectionSet, v domain2.Suggestion) graphql.Marshaler { 47250 return ec._Commerce_Search_Suggestion(ctx, sel, &v) 47251 } 47252 47253 func (ec *executionContext) marshalNCommerce_Search_TreeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*searchdto.CommerceSearchTreeFacetItem) graphql.Marshaler { 47254 ret := make(graphql.Array, len(v)) 47255 var wg sync.WaitGroup 47256 isLen1 := len(v) == 1 47257 if !isLen1 { 47258 wg.Add(len(v)) 47259 } 47260 for i := range v { 47261 i := i 47262 fc := &graphql.FieldContext{ 47263 Index: &i, 47264 Result: &v[i], 47265 } 47266 ctx := graphql.WithFieldContext(ctx, fc) 47267 f := func(i int) { 47268 defer func() { 47269 if r := recover(); r != nil { 47270 ec.Error(ctx, ec.Recover(ctx, r)) 47271 ret = nil 47272 } 47273 }() 47274 if !isLen1 { 47275 defer wg.Done() 47276 } 47277 ret[i] = ec.marshalNCommerce_Search_TreeFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItem(ctx, sel, v[i]) 47278 } 47279 if isLen1 { 47280 f(i) 47281 } else { 47282 go f(i) 47283 } 47284 47285 } 47286 wg.Wait() 47287 47288 for _, e := range ret { 47289 if e == graphql.Null { 47290 return graphql.Null 47291 } 47292 } 47293 47294 return ret 47295 } 47296 47297 func (ec *executionContext) marshalNCommerce_Search_TreeFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItem(ctx context.Context, sel ast.SelectionSet, v *searchdto.CommerceSearchTreeFacetItem) graphql.Marshaler { 47298 if v == nil { 47299 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47300 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47301 } 47302 return graphql.Null 47303 } 47304 return ec._Commerce_Search_TreeFacetItem(ctx, sel, v) 47305 } 47306 47307 func (ec *executionContext) marshalNCommerce_Tree2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx context.Context, sel ast.SelectionSet, v domain3.Tree) graphql.Marshaler { 47308 if v == nil { 47309 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47310 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47311 } 47312 return graphql.Null 47313 } 47314 return ec._Commerce_Tree(ctx, sel, v) 47315 } 47316 47317 func (ec *executionContext) unmarshalNFloat2mathᚋbigᚐFloat(ctx context.Context, v interface{}) (big.Float, error) { 47318 res, err := graphql2.UnmarshalFloat(v) 47319 return res, graphql.ErrorOnPath(ctx, err) 47320 } 47321 47322 func (ec *executionContext) marshalNFloat2mathᚋbigᚐFloat(ctx context.Context, sel ast.SelectionSet, v big.Float) graphql.Marshaler { 47323 res := graphql2.MarshalFloat(v) 47324 if res == graphql.Null { 47325 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47326 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47327 } 47328 } 47329 return res 47330 } 47331 47332 func (ec *executionContext) unmarshalNFloat2ᚖmathᚋbigᚐFloat(ctx context.Context, v interface{}) (*big.Float, error) { 47333 res, err := graphql2.UnmarshalFloat(v) 47334 return &res, graphql.ErrorOnPath(ctx, err) 47335 } 47336 47337 func (ec *executionContext) marshalNFloat2ᚖmathᚋbigᚐFloat(ctx context.Context, sel ast.SelectionSet, v *big.Float) graphql.Marshaler { 47338 if v == nil { 47339 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47340 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47341 } 47342 return graphql.Null 47343 } 47344 res := graphql2.MarshalFloat(*v) 47345 if res == graphql.Null { 47346 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47347 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47348 } 47349 } 47350 return res 47351 } 47352 47353 func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { 47354 res, err := graphql.UnmarshalID(v) 47355 return res, graphql.ErrorOnPath(ctx, err) 47356 } 47357 47358 func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 47359 res := graphql.MarshalID(v) 47360 if res == graphql.Null { 47361 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47362 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47363 } 47364 } 47365 return res 47366 } 47367 47368 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 47369 res, err := graphql.UnmarshalInt(v) 47370 return res, graphql.ErrorOnPath(ctx, err) 47371 } 47372 47373 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 47374 res := graphql.MarshalInt(v) 47375 if res == graphql.Null { 47376 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47377 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47378 } 47379 } 47380 return res 47381 } 47382 47383 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 47384 res, err := graphql.UnmarshalString(v) 47385 return res, graphql.ErrorOnPath(ctx, err) 47386 } 47387 47388 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 47389 res := graphql.MarshalString(v) 47390 if res == graphql.Null { 47391 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47392 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47393 } 47394 } 47395 return res 47396 } 47397 47398 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 47399 var vSlice []interface{} 47400 if v != nil { 47401 vSlice = graphql.CoerceList(v) 47402 } 47403 var err error 47404 res := make([]string, len(vSlice)) 47405 for i := range vSlice { 47406 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 47407 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 47408 if err != nil { 47409 return nil, err 47410 } 47411 } 47412 return res, nil 47413 } 47414 47415 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 47416 ret := make(graphql.Array, len(v)) 47417 for i := range v { 47418 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 47419 } 47420 47421 for _, e := range ret { 47422 if e == graphql.Null { 47423 return graphql.Null 47424 } 47425 } 47426 47427 return ret 47428 } 47429 47430 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 47431 return ec.___Directive(ctx, sel, &v) 47432 } 47433 47434 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 47435 ret := make(graphql.Array, len(v)) 47436 var wg sync.WaitGroup 47437 isLen1 := len(v) == 1 47438 if !isLen1 { 47439 wg.Add(len(v)) 47440 } 47441 for i := range v { 47442 i := i 47443 fc := &graphql.FieldContext{ 47444 Index: &i, 47445 Result: &v[i], 47446 } 47447 ctx := graphql.WithFieldContext(ctx, fc) 47448 f := func(i int) { 47449 defer func() { 47450 if r := recover(); r != nil { 47451 ec.Error(ctx, ec.Recover(ctx, r)) 47452 ret = nil 47453 } 47454 }() 47455 if !isLen1 { 47456 defer wg.Done() 47457 } 47458 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 47459 } 47460 if isLen1 { 47461 f(i) 47462 } else { 47463 go f(i) 47464 } 47465 47466 } 47467 wg.Wait() 47468 47469 for _, e := range ret { 47470 if e == graphql.Null { 47471 return graphql.Null 47472 } 47473 } 47474 47475 return ret 47476 } 47477 47478 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 47479 res, err := graphql.UnmarshalString(v) 47480 return res, graphql.ErrorOnPath(ctx, err) 47481 } 47482 47483 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 47484 res := graphql.MarshalString(v) 47485 if res == graphql.Null { 47486 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47487 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47488 } 47489 } 47490 return res 47491 } 47492 47493 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 47494 var vSlice []interface{} 47495 if v != nil { 47496 vSlice = graphql.CoerceList(v) 47497 } 47498 var err error 47499 res := make([]string, len(vSlice)) 47500 for i := range vSlice { 47501 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 47502 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 47503 if err != nil { 47504 return nil, err 47505 } 47506 } 47507 return res, nil 47508 } 47509 47510 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 47511 ret := make(graphql.Array, len(v)) 47512 var wg sync.WaitGroup 47513 isLen1 := len(v) == 1 47514 if !isLen1 { 47515 wg.Add(len(v)) 47516 } 47517 for i := range v { 47518 i := i 47519 fc := &graphql.FieldContext{ 47520 Index: &i, 47521 Result: &v[i], 47522 } 47523 ctx := graphql.WithFieldContext(ctx, fc) 47524 f := func(i int) { 47525 defer func() { 47526 if r := recover(); r != nil { 47527 ec.Error(ctx, ec.Recover(ctx, r)) 47528 ret = nil 47529 } 47530 }() 47531 if !isLen1 { 47532 defer wg.Done() 47533 } 47534 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 47535 } 47536 if isLen1 { 47537 f(i) 47538 } else { 47539 go f(i) 47540 } 47541 47542 } 47543 wg.Wait() 47544 47545 for _, e := range ret { 47546 if e == graphql.Null { 47547 return graphql.Null 47548 } 47549 } 47550 47551 return ret 47552 } 47553 47554 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 47555 return ec.___EnumValue(ctx, sel, &v) 47556 } 47557 47558 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 47559 return ec.___Field(ctx, sel, &v) 47560 } 47561 47562 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 47563 return ec.___InputValue(ctx, sel, &v) 47564 } 47565 47566 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 47567 ret := make(graphql.Array, len(v)) 47568 var wg sync.WaitGroup 47569 isLen1 := len(v) == 1 47570 if !isLen1 { 47571 wg.Add(len(v)) 47572 } 47573 for i := range v { 47574 i := i 47575 fc := &graphql.FieldContext{ 47576 Index: &i, 47577 Result: &v[i], 47578 } 47579 ctx := graphql.WithFieldContext(ctx, fc) 47580 f := func(i int) { 47581 defer func() { 47582 if r := recover(); r != nil { 47583 ec.Error(ctx, ec.Recover(ctx, r)) 47584 ret = nil 47585 } 47586 }() 47587 if !isLen1 { 47588 defer wg.Done() 47589 } 47590 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 47591 } 47592 if isLen1 { 47593 f(i) 47594 } else { 47595 go f(i) 47596 } 47597 47598 } 47599 wg.Wait() 47600 47601 for _, e := range ret { 47602 if e == graphql.Null { 47603 return graphql.Null 47604 } 47605 } 47606 47607 return ret 47608 } 47609 47610 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 47611 return ec.___Type(ctx, sel, &v) 47612 } 47613 47614 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 47615 ret := make(graphql.Array, len(v)) 47616 var wg sync.WaitGroup 47617 isLen1 := len(v) == 1 47618 if !isLen1 { 47619 wg.Add(len(v)) 47620 } 47621 for i := range v { 47622 i := i 47623 fc := &graphql.FieldContext{ 47624 Index: &i, 47625 Result: &v[i], 47626 } 47627 ctx := graphql.WithFieldContext(ctx, fc) 47628 f := func(i int) { 47629 defer func() { 47630 if r := recover(); r != nil { 47631 ec.Error(ctx, ec.Recover(ctx, r)) 47632 ret = nil 47633 } 47634 }() 47635 if !isLen1 { 47636 defer wg.Done() 47637 } 47638 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 47639 } 47640 if isLen1 { 47641 f(i) 47642 } else { 47643 go f(i) 47644 } 47645 47646 } 47647 wg.Wait() 47648 47649 for _, e := range ret { 47650 if e == graphql.Null { 47651 return graphql.Null 47652 } 47653 } 47654 47655 return ret 47656 } 47657 47658 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 47659 if v == nil { 47660 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47661 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47662 } 47663 return graphql.Null 47664 } 47665 return ec.___Type(ctx, sel, v) 47666 } 47667 47668 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 47669 res, err := graphql.UnmarshalString(v) 47670 return res, graphql.ErrorOnPath(ctx, err) 47671 } 47672 47673 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 47674 res := graphql.MarshalString(v) 47675 if res == graphql.Null { 47676 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 47677 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 47678 } 47679 } 47680 return res 47681 } 47682 47683 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 47684 res, err := graphql.UnmarshalBoolean(v) 47685 return res, graphql.ErrorOnPath(ctx, err) 47686 } 47687 47688 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 47689 res := graphql.MarshalBoolean(v) 47690 return res 47691 } 47692 47693 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 47694 if v == nil { 47695 return nil, nil 47696 } 47697 res, err := graphql.UnmarshalBoolean(v) 47698 return &res, graphql.ErrorOnPath(ctx, err) 47699 } 47700 47701 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 47702 if v == nil { 47703 return graphql.Null 47704 } 47705 res := graphql.MarshalBoolean(*v) 47706 return res 47707 } 47708 47709 func (ec *executionContext) marshalOCommerce_Cart_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAddress(ctx context.Context, sel ast.SelectionSet, v *cart.Address) graphql.Marshaler { 47710 if v == nil { 47711 return graphql.Null 47712 } 47713 return ec._Commerce_Cart_Address(ctx, sel, v) 47714 } 47715 47716 func (ec *executionContext) marshalOCommerce_Cart_AddressForm2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx context.Context, sel ast.SelectionSet, v forms.AddressForm) graphql.Marshaler { 47717 return ec._Commerce_Cart_AddressForm(ctx, sel, &v) 47718 } 47719 47720 func (ec *executionContext) unmarshalOCommerce_Cart_AddressFormInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx context.Context, v interface{}) (forms.AddressForm, error) { 47721 res, err := ec.unmarshalInputCommerce_Cart_AddressFormInput(ctx, v) 47722 return res, graphql.ErrorOnPath(ctx, err) 47723 } 47724 47725 func (ec *executionContext) unmarshalOCommerce_Cart_AddressFormInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx context.Context, v interface{}) (*forms.AddressForm, error) { 47726 if v == nil { 47727 return nil, nil 47728 } 47729 res, err := ec.unmarshalInputCommerce_Cart_AddressFormInput(ctx, v) 47730 return &res, graphql.ErrorOnPath(ctx, err) 47731 } 47732 47733 func (ec *executionContext) marshalOCommerce_Cart_AppliedDiscount2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedDiscountᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.AppliedDiscount) graphql.Marshaler { 47734 if v == nil { 47735 return graphql.Null 47736 } 47737 ret := make(graphql.Array, len(v)) 47738 var wg sync.WaitGroup 47739 isLen1 := len(v) == 1 47740 if !isLen1 { 47741 wg.Add(len(v)) 47742 } 47743 for i := range v { 47744 i := i 47745 fc := &graphql.FieldContext{ 47746 Index: &i, 47747 Result: &v[i], 47748 } 47749 ctx := graphql.WithFieldContext(ctx, fc) 47750 f := func(i int) { 47751 defer func() { 47752 if r := recover(); r != nil { 47753 ec.Error(ctx, ec.Recover(ctx, r)) 47754 ret = nil 47755 } 47756 }() 47757 if !isLen1 { 47758 defer wg.Done() 47759 } 47760 ret[i] = ec.marshalNCommerce_Cart_AppliedDiscount2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedDiscount(ctx, sel, v[i]) 47761 } 47762 if isLen1 { 47763 f(i) 47764 } else { 47765 go f(i) 47766 } 47767 47768 } 47769 wg.Wait() 47770 47771 for _, e := range ret { 47772 if e == graphql.Null { 47773 return graphql.Null 47774 } 47775 } 47776 47777 return ret 47778 } 47779 47780 func (ec *executionContext) marshalOCommerce_Cart_AppliedGiftCard2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedGiftCardᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.AppliedGiftCard) graphql.Marshaler { 47781 if v == nil { 47782 return graphql.Null 47783 } 47784 ret := make(graphql.Array, len(v)) 47785 var wg sync.WaitGroup 47786 isLen1 := len(v) == 1 47787 if !isLen1 { 47788 wg.Add(len(v)) 47789 } 47790 for i := range v { 47791 i := i 47792 fc := &graphql.FieldContext{ 47793 Index: &i, 47794 Result: &v[i], 47795 } 47796 ctx := graphql.WithFieldContext(ctx, fc) 47797 f := func(i int) { 47798 defer func() { 47799 if r := recover(); r != nil { 47800 ec.Error(ctx, ec.Recover(ctx, r)) 47801 ret = nil 47802 } 47803 }() 47804 if !isLen1 { 47805 defer wg.Done() 47806 } 47807 ret[i] = ec.marshalNCommerce_Cart_AppliedGiftCard2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐAppliedGiftCard(ctx, sel, v[i]) 47808 } 47809 if isLen1 { 47810 f(i) 47811 } else { 47812 go f(i) 47813 } 47814 47815 } 47816 wg.Wait() 47817 47818 for _, e := range ret { 47819 if e == graphql.Null { 47820 return graphql.Null 47821 } 47822 } 47823 47824 return ret 47825 } 47826 47827 func (ec *executionContext) unmarshalOCommerce_Cart_ChoiceConfigurationInput2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx context.Context, v interface{}) ([]dto.ChoiceConfiguration, error) { 47828 if v == nil { 47829 return nil, nil 47830 } 47831 var vSlice []interface{} 47832 if v != nil { 47833 vSlice = graphql.CoerceList(v) 47834 } 47835 var err error 47836 res := make([]dto.ChoiceConfiguration, len(vSlice)) 47837 for i := range vSlice { 47838 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 47839 res[i], err = ec.unmarshalNCommerce_Cart_ChoiceConfigurationInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfiguration(ctx, vSlice[i]) 47840 if err != nil { 47841 return nil, err 47842 } 47843 } 47844 return res, nil 47845 } 47846 47847 func (ec *executionContext) marshalOCommerce_Cart_CouponCode2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCouponCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.CouponCode) graphql.Marshaler { 47848 if v == nil { 47849 return graphql.Null 47850 } 47851 ret := make(graphql.Array, len(v)) 47852 var wg sync.WaitGroup 47853 isLen1 := len(v) == 1 47854 if !isLen1 { 47855 wg.Add(len(v)) 47856 } 47857 for i := range v { 47858 i := i 47859 fc := &graphql.FieldContext{ 47860 Index: &i, 47861 Result: &v[i], 47862 } 47863 ctx := graphql.WithFieldContext(ctx, fc) 47864 f := func(i int) { 47865 defer func() { 47866 if r := recover(); r != nil { 47867 ec.Error(ctx, ec.Recover(ctx, r)) 47868 ret = nil 47869 } 47870 }() 47871 if !isLen1 { 47872 defer wg.Done() 47873 } 47874 ret[i] = ec.marshalNCommerce_Cart_CouponCode2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐCouponCode(ctx, sel, v[i]) 47875 } 47876 if isLen1 { 47877 f(i) 47878 } else { 47879 go f(i) 47880 } 47881 47882 } 47883 wg.Wait() 47884 47885 for _, e := range ret { 47886 if e == graphql.Null { 47887 return graphql.Null 47888 } 47889 } 47890 47891 return ret 47892 } 47893 47894 func (ec *executionContext) marshalOCommerce_Cart_DecoratedCart2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCart(ctx context.Context, sel ast.SelectionSet, v *dto.DecoratedCart) graphql.Marshaler { 47895 if v == nil { 47896 return graphql.Null 47897 } 47898 return ec._Commerce_Cart_DecoratedCart(ctx, sel, v) 47899 } 47900 47901 func (ec *executionContext) marshalOCommerce_Cart_DecoratedDelivery2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDeliveryᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.DecoratedDelivery) graphql.Marshaler { 47902 if v == nil { 47903 return graphql.Null 47904 } 47905 ret := make(graphql.Array, len(v)) 47906 var wg sync.WaitGroup 47907 isLen1 := len(v) == 1 47908 if !isLen1 { 47909 wg.Add(len(v)) 47910 } 47911 for i := range v { 47912 i := i 47913 fc := &graphql.FieldContext{ 47914 Index: &i, 47915 Result: &v[i], 47916 } 47917 ctx := graphql.WithFieldContext(ctx, fc) 47918 f := func(i int) { 47919 defer func() { 47920 if r := recover(); r != nil { 47921 ec.Error(ctx, ec.Recover(ctx, r)) 47922 ret = nil 47923 } 47924 }() 47925 if !isLen1 { 47926 defer wg.Done() 47927 } 47928 ret[i] = ec.marshalNCommerce_Cart_DecoratedDelivery2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDelivery(ctx, sel, v[i]) 47929 } 47930 if isLen1 { 47931 f(i) 47932 } else { 47933 go f(i) 47934 } 47935 47936 } 47937 wg.Wait() 47938 47939 for _, e := range ret { 47940 if e == graphql.Null { 47941 return graphql.Null 47942 } 47943 } 47944 47945 return ret 47946 } 47947 47948 func (ec *executionContext) marshalOCommerce_Cart_DecoratedDelivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedDelivery(ctx context.Context, sel ast.SelectionSet, v *dto.DecoratedDelivery) graphql.Marshaler { 47949 if v == nil { 47950 return graphql.Null 47951 } 47952 return ec._Commerce_Cart_DecoratedDelivery(ctx, sel, v) 47953 } 47954 47955 func (ec *executionContext) marshalOCommerce_Cart_DecoratedItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCartItemᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.DecoratedCartItem) graphql.Marshaler { 47956 if v == nil { 47957 return graphql.Null 47958 } 47959 ret := make(graphql.Array, len(v)) 47960 var wg sync.WaitGroup 47961 isLen1 := len(v) == 1 47962 if !isLen1 { 47963 wg.Add(len(v)) 47964 } 47965 for i := range v { 47966 i := i 47967 fc := &graphql.FieldContext{ 47968 Index: &i, 47969 Result: &v[i], 47970 } 47971 ctx := graphql.WithFieldContext(ctx, fc) 47972 f := func(i int) { 47973 defer func() { 47974 if r := recover(); r != nil { 47975 ec.Error(ctx, ec.Recover(ctx, r)) 47976 ret = nil 47977 } 47978 }() 47979 if !isLen1 { 47980 defer wg.Done() 47981 } 47982 ret[i] = ec.marshalNCommerce_Cart_DecoratedItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDecoratedCartItem(ctx, sel, v[i]) 47983 } 47984 if isLen1 { 47985 f(i) 47986 } else { 47987 go f(i) 47988 } 47989 47990 } 47991 wg.Wait() 47992 47993 for _, e := range ret { 47994 if e == graphql.Null { 47995 return graphql.Null 47996 } 47997 } 47998 47999 return ret 48000 } 48001 48002 func (ec *executionContext) marshalOCommerce_Cart_Delivery2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.Delivery) graphql.Marshaler { 48003 if v == nil { 48004 return graphql.Null 48005 } 48006 ret := make(graphql.Array, len(v)) 48007 var wg sync.WaitGroup 48008 isLen1 := len(v) == 1 48009 if !isLen1 { 48010 wg.Add(len(v)) 48011 } 48012 for i := range v { 48013 i := i 48014 fc := &graphql.FieldContext{ 48015 Index: &i, 48016 Result: &v[i], 48017 } 48018 ctx := graphql.WithFieldContext(ctx, fc) 48019 f := func(i int) { 48020 defer func() { 48021 if r := recover(); r != nil { 48022 ec.Error(ctx, ec.Recover(ctx, r)) 48023 ret = nil 48024 } 48025 }() 48026 if !isLen1 { 48027 defer wg.Done() 48028 } 48029 ret[i] = ec.marshalNCommerce_Cart_Delivery2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx, sel, v[i]) 48030 } 48031 if isLen1 { 48032 f(i) 48033 } else { 48034 go f(i) 48035 } 48036 48037 } 48038 wg.Wait() 48039 48040 for _, e := range ret { 48041 if e == graphql.Null { 48042 return graphql.Null 48043 } 48044 } 48045 48046 return ret 48047 } 48048 48049 func (ec *executionContext) marshalOCommerce_Cart_Delivery2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDelivery(ctx context.Context, sel ast.SelectionSet, v *cart.Delivery) graphql.Marshaler { 48050 if v == nil { 48051 return graphql.Null 48052 } 48053 return ec._Commerce_Cart_Delivery(ctx, sel, v) 48054 } 48055 48056 func (ec *executionContext) marshalOCommerce_Cart_DeliveryAddressForm2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAddressForm(ctx context.Context, sel ast.SelectionSet, v *dto.DeliveryAddressForm) graphql.Marshaler { 48057 if v == nil { 48058 return graphql.Null 48059 } 48060 return ec._Commerce_Cart_DeliveryAddressForm(ctx, sel, v) 48061 } 48062 48063 func (ec *executionContext) unmarshalOCommerce_Cart_DeliveryAddressInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryFormᚄ(ctx context.Context, v interface{}) ([]*forms.DeliveryForm, error) { 48064 if v == nil { 48065 return nil, nil 48066 } 48067 var vSlice []interface{} 48068 if v != nil { 48069 vSlice = graphql.CoerceList(v) 48070 } 48071 var err error 48072 res := make([]*forms.DeliveryForm, len(vSlice)) 48073 for i := range vSlice { 48074 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 48075 res[i], err = ec.unmarshalNCommerce_Cart_DeliveryAddressInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryForm(ctx, vSlice[i]) 48076 if err != nil { 48077 return nil, err 48078 } 48079 } 48080 return res, nil 48081 } 48082 48083 func (ec *executionContext) marshalOCommerce_Cart_DeliveryInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryInfo(ctx context.Context, sel ast.SelectionSet, v cart.DeliveryInfo) graphql.Marshaler { 48084 return ec._Commerce_Cart_DeliveryInfo(ctx, sel, &v) 48085 } 48086 48087 func (ec *executionContext) marshalOCommerce_Cart_DeliveryLocation2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐDeliveryLocation(ctx context.Context, sel ast.SelectionSet, v cart.DeliveryLocation) graphql.Marshaler { 48088 return ec._Commerce_Cart_DeliveryLocation(ctx, sel, &v) 48089 } 48090 48091 func (ec *executionContext) unmarshalOCommerce_Cart_DeliveryShippingOptionInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOptionᚄ(ctx context.Context, v interface{}) ([]*dto.DeliveryShippingOption, error) { 48092 if v == nil { 48093 return nil, nil 48094 } 48095 var vSlice []interface{} 48096 if v != nil { 48097 vSlice = graphql.CoerceList(v) 48098 } 48099 var err error 48100 res := make([]*dto.DeliveryShippingOption, len(vSlice)) 48101 for i := range vSlice { 48102 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 48103 res[i], err = ec.unmarshalNCommerce_Cart_DeliveryShippingOptionInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOption(ctx, vSlice[i]) 48104 if err != nil { 48105 return nil, err 48106 } 48107 } 48108 return res, nil 48109 } 48110 48111 func (ec *executionContext) marshalOCommerce_Cart_ExistingCustomerData2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐExistingCustomerData(ctx context.Context, sel ast.SelectionSet, v *cart.ExistingCustomerData) graphql.Marshaler { 48112 if v == nil { 48113 return graphql.Null 48114 } 48115 return ec._Commerce_Cart_ExistingCustomerData(ctx, sel, v) 48116 } 48117 48118 func (ec *executionContext) marshalOCommerce_Cart_Form_Error2ᚕflamingoᚗmeᚋformᚋdomainᚐErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []domain4.Error) graphql.Marshaler { 48119 if v == nil { 48120 return graphql.Null 48121 } 48122 ret := make(graphql.Array, len(v)) 48123 var wg sync.WaitGroup 48124 isLen1 := len(v) == 1 48125 if !isLen1 { 48126 wg.Add(len(v)) 48127 } 48128 for i := range v { 48129 i := i 48130 fc := &graphql.FieldContext{ 48131 Index: &i, 48132 Result: &v[i], 48133 } 48134 ctx := graphql.WithFieldContext(ctx, fc) 48135 f := func(i int) { 48136 defer func() { 48137 if r := recover(); r != nil { 48138 ec.Error(ctx, ec.Recover(ctx, r)) 48139 ret = nil 48140 } 48141 }() 48142 if !isLen1 { 48143 defer wg.Done() 48144 } 48145 ret[i] = ec.marshalNCommerce_Cart_Form_Error2flamingoᚗmeᚋformᚋdomainᚐError(ctx, sel, v[i]) 48146 } 48147 if isLen1 { 48148 f(i) 48149 } else { 48150 go f(i) 48151 } 48152 48153 } 48154 wg.Wait() 48155 48156 for _, e := range ret { 48157 if e == graphql.Null { 48158 return graphql.Null 48159 } 48160 } 48161 48162 return ret 48163 } 48164 48165 func (ec *executionContext) marshalOCommerce_Cart_Form_FieldError2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐFieldErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.FieldError) graphql.Marshaler { 48166 if v == nil { 48167 return graphql.Null 48168 } 48169 ret := make(graphql.Array, len(v)) 48170 var wg sync.WaitGroup 48171 isLen1 := len(v) == 1 48172 if !isLen1 { 48173 wg.Add(len(v)) 48174 } 48175 for i := range v { 48176 i := i 48177 fc := &graphql.FieldContext{ 48178 Index: &i, 48179 Result: &v[i], 48180 } 48181 ctx := graphql.WithFieldContext(ctx, fc) 48182 f := func(i int) { 48183 defer func() { 48184 if r := recover(); r != nil { 48185 ec.Error(ctx, ec.Recover(ctx, r)) 48186 ret = nil 48187 } 48188 }() 48189 if !isLen1 { 48190 defer wg.Done() 48191 } 48192 ret[i] = ec.marshalNCommerce_Cart_Form_FieldError2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐFieldError(ctx, sel, v[i]) 48193 } 48194 if isLen1 { 48195 f(i) 48196 } else { 48197 go f(i) 48198 } 48199 48200 } 48201 wg.Wait() 48202 48203 for _, e := range ret { 48204 if e == graphql.Null { 48205 return graphql.Null 48206 } 48207 } 48208 48209 return ret 48210 } 48211 48212 func (ec *executionContext) marshalOCommerce_Cart_Form_ValidationInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐValidationInfo(ctx context.Context, sel ast.SelectionSet, v dto.ValidationInfo) graphql.Marshaler { 48213 return ec._Commerce_Cart_Form_ValidationInfo(ctx, sel, &v) 48214 } 48215 48216 func (ec *executionContext) marshalOCommerce_Cart_Item2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx context.Context, sel ast.SelectionSet, v cart.Item) graphql.Marshaler { 48217 return ec._Commerce_Cart_Item(ctx, sel, &v) 48218 } 48219 48220 func (ec *executionContext) marshalOCommerce_Cart_Item2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItemᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.Item) graphql.Marshaler { 48221 if v == nil { 48222 return graphql.Null 48223 } 48224 ret := make(graphql.Array, len(v)) 48225 var wg sync.WaitGroup 48226 isLen1 := len(v) == 1 48227 if !isLen1 { 48228 wg.Add(len(v)) 48229 } 48230 for i := range v { 48231 i := i 48232 fc := &graphql.FieldContext{ 48233 Index: &i, 48234 Result: &v[i], 48235 } 48236 ctx := graphql.WithFieldContext(ctx, fc) 48237 f := func(i int) { 48238 defer func() { 48239 if r := recover(); r != nil { 48240 ec.Error(ctx, ec.Recover(ctx, r)) 48241 ret = nil 48242 } 48243 }() 48244 if !isLen1 { 48245 defer wg.Done() 48246 } 48247 ret[i] = ec.marshalNCommerce_Cart_Item2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐItem(ctx, sel, v[i]) 48248 } 48249 if isLen1 { 48250 f(i) 48251 } else { 48252 go f(i) 48253 } 48254 48255 } 48256 wg.Wait() 48257 48258 for _, e := range ret { 48259 if e == graphql.Null { 48260 return graphql.Null 48261 } 48262 } 48263 48264 return ret 48265 } 48266 48267 func (ec *executionContext) marshalOCommerce_Cart_ItemValidationError2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐItemValidationErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []validation.ItemValidationError) graphql.Marshaler { 48268 if v == nil { 48269 return graphql.Null 48270 } 48271 ret := make(graphql.Array, len(v)) 48272 var wg sync.WaitGroup 48273 isLen1 := len(v) == 1 48274 if !isLen1 { 48275 wg.Add(len(v)) 48276 } 48277 for i := range v { 48278 i := i 48279 fc := &graphql.FieldContext{ 48280 Index: &i, 48281 Result: &v[i], 48282 } 48283 ctx := graphql.WithFieldContext(ctx, fc) 48284 f := func(i int) { 48285 defer func() { 48286 if r := recover(); r != nil { 48287 ec.Error(ctx, ec.Recover(ctx, r)) 48288 ret = nil 48289 } 48290 }() 48291 if !isLen1 { 48292 defer wg.Done() 48293 } 48294 ret[i] = ec.marshalNCommerce_Cart_ItemValidationError2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋvalidationᚐItemValidationError(ctx, sel, v[i]) 48295 } 48296 if isLen1 { 48297 f(i) 48298 } else { 48299 go f(i) 48300 } 48301 48302 } 48303 wg.Wait() 48304 48305 for _, e := range ret { 48306 if e == graphql.Null { 48307 return graphql.Null 48308 } 48309 } 48310 48311 return ret 48312 } 48313 48314 func (ec *executionContext) marshalOCommerce_Cart_KeyValue2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValue(ctx context.Context, sel ast.SelectionSet, v *dto.KeyValue) graphql.Marshaler { 48315 if v == nil { 48316 return graphql.Null 48317 } 48318 return ec._Commerce_Cart_KeyValue(ctx, sel, v) 48319 } 48320 48321 func (ec *executionContext) marshalOCommerce_Cart_PaymentSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPaymentSelection(ctx context.Context, sel ast.SelectionSet, v cart.PaymentSelection) graphql.Marshaler { 48322 if v == nil { 48323 return graphql.Null 48324 } 48325 return ec._Commerce_Cart_PaymentSelection(ctx, sel, v) 48326 } 48327 48328 func (ec *executionContext) marshalOCommerce_Cart_PaymentSelection_Split2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPaymentSelectionSplitᚄ(ctx context.Context, sel ast.SelectionSet, v []*dto.PaymentSelectionSplit) graphql.Marshaler { 48329 if v == nil { 48330 return graphql.Null 48331 } 48332 ret := make(graphql.Array, len(v)) 48333 var wg sync.WaitGroup 48334 isLen1 := len(v) == 1 48335 if !isLen1 { 48336 wg.Add(len(v)) 48337 } 48338 for i := range v { 48339 i := i 48340 fc := &graphql.FieldContext{ 48341 Index: &i, 48342 Result: &v[i], 48343 } 48344 ctx := graphql.WithFieldContext(ctx, fc) 48345 f := func(i int) { 48346 defer func() { 48347 if r := recover(); r != nil { 48348 ec.Error(ctx, ec.Recover(ctx, r)) 48349 ret = nil 48350 } 48351 }() 48352 if !isLen1 { 48353 defer wg.Done() 48354 } 48355 ret[i] = ec.marshalNCommerce_Cart_PaymentSelection_Split2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPaymentSelectionSplit(ctx, sel, v[i]) 48356 } 48357 if isLen1 { 48358 f(i) 48359 } else { 48360 go f(i) 48361 } 48362 48363 } 48364 wg.Wait() 48365 48366 for _, e := range ret { 48367 if e == graphql.Null { 48368 return graphql.Null 48369 } 48370 } 48371 48372 return ret 48373 } 48374 48375 func (ec *executionContext) marshalOCommerce_Cart_Person2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐPerson(ctx context.Context, sel ast.SelectionSet, v *cart.Person) graphql.Marshaler { 48376 if v == nil { 48377 return graphql.Null 48378 } 48379 return ec._Commerce_Cart_Person(ctx, sel, v) 48380 } 48381 48382 func (ec *executionContext) marshalOCommerce_Cart_PlacedOrderInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋplaceorderᚐPlacedOrderInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []placeorder.PlacedOrderInfo) graphql.Marshaler { 48383 if v == nil { 48384 return graphql.Null 48385 } 48386 ret := make(graphql.Array, len(v)) 48387 var wg sync.WaitGroup 48388 isLen1 := len(v) == 1 48389 if !isLen1 { 48390 wg.Add(len(v)) 48391 } 48392 for i := range v { 48393 i := i 48394 fc := &graphql.FieldContext{ 48395 Index: &i, 48396 Result: &v[i], 48397 } 48398 ctx := graphql.WithFieldContext(ctx, fc) 48399 f := func(i int) { 48400 defer func() { 48401 if r := recover(); r != nil { 48402 ec.Error(ctx, ec.Recover(ctx, r)) 48403 ret = nil 48404 } 48405 }() 48406 if !isLen1 { 48407 defer wg.Done() 48408 } 48409 ret[i] = ec.marshalNCommerce_Cart_PlacedOrderInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋplaceorderᚐPlacedOrderInfo(ctx, sel, v[i]) 48410 } 48411 if isLen1 { 48412 f(i) 48413 } else { 48414 go f(i) 48415 } 48416 48417 } 48418 wg.Wait() 48419 48420 for _, e := range ret { 48421 if e == graphql.Null { 48422 return graphql.Null 48423 } 48424 } 48425 48426 return ret 48427 } 48428 48429 func (ec *executionContext) marshalOCommerce_Cart_PricedCartItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedCartItemᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.PricedCartItem) graphql.Marshaler { 48430 if v == nil { 48431 return graphql.Null 48432 } 48433 ret := make(graphql.Array, len(v)) 48434 var wg sync.WaitGroup 48435 isLen1 := len(v) == 1 48436 if !isLen1 { 48437 wg.Add(len(v)) 48438 } 48439 for i := range v { 48440 i := i 48441 fc := &graphql.FieldContext{ 48442 Index: &i, 48443 Result: &v[i], 48444 } 48445 ctx := graphql.WithFieldContext(ctx, fc) 48446 f := func(i int) { 48447 defer func() { 48448 if r := recover(); r != nil { 48449 ec.Error(ctx, ec.Recover(ctx, r)) 48450 ret = nil 48451 } 48452 }() 48453 if !isLen1 { 48454 defer wg.Done() 48455 } 48456 ret[i] = ec.marshalNCommerce_Cart_PricedCartItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedCartItem(ctx, sel, v[i]) 48457 } 48458 if isLen1 { 48459 f(i) 48460 } else { 48461 go f(i) 48462 } 48463 48464 } 48465 wg.Wait() 48466 48467 for _, e := range ret { 48468 if e == graphql.Null { 48469 return graphql.Null 48470 } 48471 } 48472 48473 return ret 48474 } 48475 48476 func (ec *executionContext) marshalOCommerce_Cart_PricedShippingItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedShippingItemᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.PricedShippingItem) graphql.Marshaler { 48477 if v == nil { 48478 return graphql.Null 48479 } 48480 ret := make(graphql.Array, len(v)) 48481 var wg sync.WaitGroup 48482 isLen1 := len(v) == 1 48483 if !isLen1 { 48484 wg.Add(len(v)) 48485 } 48486 for i := range v { 48487 i := i 48488 fc := &graphql.FieldContext{ 48489 Index: &i, 48490 Result: &v[i], 48491 } 48492 ctx := graphql.WithFieldContext(ctx, fc) 48493 f := func(i int) { 48494 defer func() { 48495 if r := recover(); r != nil { 48496 ec.Error(ctx, ec.Recover(ctx, r)) 48497 ret = nil 48498 } 48499 }() 48500 if !isLen1 { 48501 defer wg.Done() 48502 } 48503 ret[i] = ec.marshalNCommerce_Cart_PricedShippingItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedShippingItem(ctx, sel, v[i]) 48504 } 48505 if isLen1 { 48506 f(i) 48507 } else { 48508 go f(i) 48509 } 48510 48511 } 48512 wg.Wait() 48513 48514 for _, e := range ret { 48515 if e == graphql.Null { 48516 return graphql.Null 48517 } 48518 } 48519 48520 return ret 48521 } 48522 48523 func (ec *executionContext) marshalOCommerce_Cart_PricedTotalItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedTotalItemᚄ(ctx context.Context, sel ast.SelectionSet, v []dto.PricedTotalItem) graphql.Marshaler { 48524 if v == nil { 48525 return graphql.Null 48526 } 48527 ret := make(graphql.Array, len(v)) 48528 var wg sync.WaitGroup 48529 isLen1 := len(v) == 1 48530 if !isLen1 { 48531 wg.Add(len(v)) 48532 } 48533 for i := range v { 48534 i := i 48535 fc := &graphql.FieldContext{ 48536 Index: &i, 48537 Result: &v[i], 48538 } 48539 ctx := graphql.WithFieldContext(ctx, fc) 48540 f := func(i int) { 48541 defer func() { 48542 if r := recover(); r != nil { 48543 ec.Error(ctx, ec.Recover(ctx, r)) 48544 ret = nil 48545 } 48546 }() 48547 if !isLen1 { 48548 defer wg.Done() 48549 } 48550 ret[i] = ec.marshalNCommerce_Cart_PricedTotalItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐPricedTotalItem(ctx, sel, v[i]) 48551 } 48552 if isLen1 { 48553 f(i) 48554 } else { 48555 go f(i) 48556 } 48557 48558 } 48559 wg.Wait() 48560 48561 for _, e := range ret { 48562 if e == graphql.Null { 48563 return graphql.Null 48564 } 48565 } 48566 48567 return ret 48568 } 48569 48570 func (ec *executionContext) marshalOCommerce_Cart_ShippingItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐShippingItem(ctx context.Context, sel ast.SelectionSet, v cart.ShippingItem) graphql.Marshaler { 48571 return ec._Commerce_Cart_ShippingItem(ctx, sel, &v) 48572 } 48573 48574 func (ec *executionContext) marshalOCommerce_Cart_Tax2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTax(ctx context.Context, sel ast.SelectionSet, v cart.Tax) graphql.Marshaler { 48575 return ec._Commerce_Cart_Tax(ctx, sel, &v) 48576 } 48577 48578 func (ec *executionContext) marshalOCommerce_Cart_Taxes2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐTaxes(ctx context.Context, sel ast.SelectionSet, v *dto.Taxes) graphql.Marshaler { 48579 if v == nil { 48580 return graphql.Null 48581 } 48582 return ec._Commerce_Cart_Taxes(ctx, sel, v) 48583 } 48584 48585 func (ec *executionContext) marshalOCommerce_Cart_Totalitem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTotalitemᚄ(ctx context.Context, sel ast.SelectionSet, v []cart.Totalitem) graphql.Marshaler { 48586 if v == nil { 48587 return graphql.Null 48588 } 48589 ret := make(graphql.Array, len(v)) 48590 var wg sync.WaitGroup 48591 isLen1 := len(v) == 1 48592 if !isLen1 { 48593 wg.Add(len(v)) 48594 } 48595 for i := range v { 48596 i := i 48597 fc := &graphql.FieldContext{ 48598 Index: &i, 48599 Result: &v[i], 48600 } 48601 ctx := graphql.WithFieldContext(ctx, fc) 48602 f := func(i int) { 48603 defer func() { 48604 if r := recover(); r != nil { 48605 ec.Error(ctx, ec.Recover(ctx, r)) 48606 ret = nil 48607 } 48608 }() 48609 if !isLen1 { 48610 defer wg.Done() 48611 } 48612 ret[i] = ec.marshalNCommerce_Cart_Totalitem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋdomainᚋcartᚐTotalitem(ctx, sel, v[i]) 48613 } 48614 if isLen1 { 48615 f(i) 48616 } else { 48617 go f(i) 48618 } 48619 48620 } 48621 wg.Wait() 48622 48623 for _, e := range ret { 48624 if e == graphql.Null { 48625 return graphql.Null 48626 } 48627 } 48628 48629 return ret 48630 } 48631 48632 func (ec *executionContext) marshalOCommerce_Category_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeᚄ(ctx context.Context, sel ast.SelectionSet, v []domain3.Attribute) graphql.Marshaler { 48633 if v == nil { 48634 return graphql.Null 48635 } 48636 ret := make(graphql.Array, len(v)) 48637 var wg sync.WaitGroup 48638 isLen1 := len(v) == 1 48639 if !isLen1 { 48640 wg.Add(len(v)) 48641 } 48642 for i := range v { 48643 i := i 48644 fc := &graphql.FieldContext{ 48645 Index: &i, 48646 Result: &v[i], 48647 } 48648 ctx := graphql.WithFieldContext(ctx, fc) 48649 f := func(i int) { 48650 defer func() { 48651 if r := recover(); r != nil { 48652 ec.Error(ctx, ec.Recover(ctx, r)) 48653 ret = nil 48654 } 48655 }() 48656 if !isLen1 { 48657 defer wg.Done() 48658 } 48659 ret[i] = ec.marshalNCommerce_Category_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttribute(ctx, sel, v[i]) 48660 } 48661 if isLen1 { 48662 f(i) 48663 } else { 48664 go f(i) 48665 } 48666 48667 } 48668 wg.Wait() 48669 48670 for _, e := range ret { 48671 if e == graphql.Null { 48672 return graphql.Null 48673 } 48674 } 48675 48676 return ret 48677 } 48678 48679 func (ec *executionContext) marshalOCommerce_Category_Attribute2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttribute(ctx context.Context, sel ast.SelectionSet, v *domain3.Attribute) graphql.Marshaler { 48680 if v == nil { 48681 return graphql.Null 48682 } 48683 return ec._Commerce_Category_Attribute(ctx, sel, v) 48684 } 48685 48686 func (ec *executionContext) marshalOCommerce_Category_AttributeValue2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeValueᚄ(ctx context.Context, sel ast.SelectionSet, v []domain3.AttributeValue) graphql.Marshaler { 48687 if v == nil { 48688 return graphql.Null 48689 } 48690 ret := make(graphql.Array, len(v)) 48691 var wg sync.WaitGroup 48692 isLen1 := len(v) == 1 48693 if !isLen1 { 48694 wg.Add(len(v)) 48695 } 48696 for i := range v { 48697 i := i 48698 fc := &graphql.FieldContext{ 48699 Index: &i, 48700 Result: &v[i], 48701 } 48702 ctx := graphql.WithFieldContext(ctx, fc) 48703 f := func(i int) { 48704 defer func() { 48705 if r := recover(); r != nil { 48706 ec.Error(ctx, ec.Recover(ctx, r)) 48707 ret = nil 48708 } 48709 }() 48710 if !isLen1 { 48711 defer wg.Done() 48712 } 48713 ret[i] = ec.marshalNCommerce_Category_AttributeValue2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐAttributeValue(ctx, sel, v[i]) 48714 } 48715 if isLen1 { 48716 f(i) 48717 } else { 48718 go f(i) 48719 } 48720 48721 } 48722 wg.Wait() 48723 48724 for _, e := range ret { 48725 if e == graphql.Null { 48726 return graphql.Null 48727 } 48728 } 48729 48730 return ret 48731 } 48732 48733 func (ec *executionContext) marshalOCommerce_Category_SearchResult2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋinterfacesᚋgraphqlᚋcategorydtoᚐCategorySearchResult(ctx context.Context, sel ast.SelectionSet, v *categorydto.CategorySearchResult) graphql.Marshaler { 48734 if v == nil { 48735 return graphql.Null 48736 } 48737 return ec._Commerce_Category_SearchResult(ctx, sel, v) 48738 } 48739 48740 func (ec *executionContext) marshalOCommerce_Checkout_PlaceOrderPaymentInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋapplicationᚐPlaceOrderPaymentInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []application.PlaceOrderPaymentInfo) graphql.Marshaler { 48741 if v == nil { 48742 return graphql.Null 48743 } 48744 ret := make(graphql.Array, len(v)) 48745 var wg sync.WaitGroup 48746 isLen1 := len(v) == 1 48747 if !isLen1 { 48748 wg.Add(len(v)) 48749 } 48750 for i := range v { 48751 i := i 48752 fc := &graphql.FieldContext{ 48753 Index: &i, 48754 Result: &v[i], 48755 } 48756 ctx := graphql.WithFieldContext(ctx, fc) 48757 f := func(i int) { 48758 defer func() { 48759 if r := recover(); r != nil { 48760 ec.Error(ctx, ec.Recover(ctx, r)) 48761 ret = nil 48762 } 48763 }() 48764 if !isLen1 { 48765 defer wg.Done() 48766 } 48767 ret[i] = ec.marshalNCommerce_Checkout_PlaceOrderPaymentInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋapplicationᚐPlaceOrderPaymentInfo(ctx, sel, v[i]) 48768 } 48769 if isLen1 { 48770 f(i) 48771 } else { 48772 go f(i) 48773 } 48774 48775 } 48776 wg.Wait() 48777 48778 for _, e := range ret { 48779 if e == graphql.Null { 48780 return graphql.Null 48781 } 48782 } 48783 48784 return ret 48785 } 48786 48787 func (ec *executionContext) marshalOCommerce_Checkout_PlaceOrderState_Form_Parameter2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐFormParameterᚄ(ctx context.Context, sel ast.SelectionSet, v []dto1.FormParameter) graphql.Marshaler { 48788 if v == nil { 48789 return graphql.Null 48790 } 48791 ret := make(graphql.Array, len(v)) 48792 var wg sync.WaitGroup 48793 isLen1 := len(v) == 1 48794 if !isLen1 { 48795 wg.Add(len(v)) 48796 } 48797 for i := range v { 48798 i := i 48799 fc := &graphql.FieldContext{ 48800 Index: &i, 48801 Result: &v[i], 48802 } 48803 ctx := graphql.WithFieldContext(ctx, fc) 48804 f := func(i int) { 48805 defer func() { 48806 if r := recover(); r != nil { 48807 ec.Error(ctx, ec.Recover(ctx, r)) 48808 ret = nil 48809 } 48810 }() 48811 if !isLen1 { 48812 defer wg.Done() 48813 } 48814 ret[i] = ec.marshalNCommerce_Checkout_PlaceOrderState_Form_Parameter2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐFormParameter(ctx, sel, v[i]) 48815 } 48816 if isLen1 { 48817 f(i) 48818 } else { 48819 go f(i) 48820 } 48821 48822 } 48823 wg.Wait() 48824 48825 for _, e := range ret { 48826 if e == graphql.Null { 48827 return graphql.Null 48828 } 48829 } 48830 48831 return ret 48832 } 48833 48834 func (ec *executionContext) marshalOCommerce_Checkout_PlacedOrderInfos2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcheckoutᚋinterfacesᚋgraphqlᚋdtoᚐPlacedOrderInfos(ctx context.Context, sel ast.SelectionSet, v *dto1.PlacedOrderInfos) graphql.Marshaler { 48835 if v == nil { 48836 return graphql.Null 48837 } 48838 return ec._Commerce_Checkout_PlacedOrderInfos(ctx, sel, v) 48839 } 48840 48841 func (ec *executionContext) marshalOCommerce_Customer_Address2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx context.Context, sel ast.SelectionSet, v domain5.Address) graphql.Marshaler { 48842 return ec._Commerce_Customer_Address(ctx, sel, &v) 48843 } 48844 48845 func (ec *executionContext) marshalOCommerce_Customer_Address2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddressᚄ(ctx context.Context, sel ast.SelectionSet, v []domain5.Address) graphql.Marshaler { 48846 if v == nil { 48847 return graphql.Null 48848 } 48849 ret := make(graphql.Array, len(v)) 48850 var wg sync.WaitGroup 48851 isLen1 := len(v) == 1 48852 if !isLen1 { 48853 wg.Add(len(v)) 48854 } 48855 for i := range v { 48856 i := i 48857 fc := &graphql.FieldContext{ 48858 Index: &i, 48859 Result: &v[i], 48860 } 48861 ctx := graphql.WithFieldContext(ctx, fc) 48862 f := func(i int) { 48863 defer func() { 48864 if r := recover(); r != nil { 48865 ec.Error(ctx, ec.Recover(ctx, r)) 48866 ret = nil 48867 } 48868 }() 48869 if !isLen1 { 48870 defer wg.Done() 48871 } 48872 ret[i] = ec.marshalNCommerce_Customer_Address2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx, sel, v[i]) 48873 } 48874 if isLen1 { 48875 f(i) 48876 } else { 48877 go f(i) 48878 } 48879 48880 } 48881 wg.Wait() 48882 48883 for _, e := range ret { 48884 if e == graphql.Null { 48885 return graphql.Null 48886 } 48887 } 48888 48889 return ret 48890 } 48891 48892 func (ec *executionContext) marshalOCommerce_Customer_Address2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋdomainᚐAddress(ctx context.Context, sel ast.SelectionSet, v *domain5.Address) graphql.Marshaler { 48893 if v == nil { 48894 return graphql.Null 48895 } 48896 return ec._Commerce_Customer_Address(ctx, sel, v) 48897 } 48898 48899 func (ec *executionContext) marshalOCommerce_Customer_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋinterfacesᚋgraphqlᚋdtocustomerᚐCustomerResult(ctx context.Context, sel ast.SelectionSet, v *dtocustomer.CustomerResult) graphql.Marshaler { 48900 if v == nil { 48901 return graphql.Null 48902 } 48903 return ec._Commerce_Customer_Result(ctx, sel, v) 48904 } 48905 48906 func (ec *executionContext) marshalOCommerce_Customer_Status_Result2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcustomerᚋinterfacesᚋgraphqlᚋdtocustomerᚐCustomerStatusResult(ctx context.Context, sel ast.SelectionSet, v *dtocustomer.CustomerStatusResult) graphql.Marshaler { 48907 if v == nil { 48908 return graphql.Null 48909 } 48910 return ec._Commerce_Customer_Status_Result(ctx, sel, v) 48911 } 48912 48913 func (ec *executionContext) marshalOCommerce_Price2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx context.Context, sel ast.SelectionSet, v domain.Price) graphql.Marshaler { 48914 return ec._Commerce_Price(ctx, sel, &v) 48915 } 48916 48917 func (ec *executionContext) marshalOCommerce_Price2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐPrice(ctx context.Context, sel ast.SelectionSet, v *domain.Price) graphql.Marshaler { 48918 if v == nil { 48919 return graphql.Null 48920 } 48921 return ec._Commerce_Price(ctx, sel, v) 48922 } 48923 48924 func (ec *executionContext) marshalOCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx context.Context, sel ast.SelectionSet, v domain.Charge) graphql.Marshaler { 48925 return ec._Commerce_Price_Charge(ctx, sel, &v) 48926 } 48927 48928 func (ec *executionContext) marshalOCommerce_Price_Charge2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeᚄ(ctx context.Context, sel ast.SelectionSet, v []domain.Charge) graphql.Marshaler { 48929 if v == nil { 48930 return graphql.Null 48931 } 48932 ret := make(graphql.Array, len(v)) 48933 var wg sync.WaitGroup 48934 isLen1 := len(v) == 1 48935 if !isLen1 { 48936 wg.Add(len(v)) 48937 } 48938 for i := range v { 48939 i := i 48940 fc := &graphql.FieldContext{ 48941 Index: &i, 48942 Result: &v[i], 48943 } 48944 ctx := graphql.WithFieldContext(ctx, fc) 48945 f := func(i int) { 48946 defer func() { 48947 if r := recover(); r != nil { 48948 ec.Error(ctx, ec.Recover(ctx, r)) 48949 ret = nil 48950 } 48951 }() 48952 if !isLen1 { 48953 defer wg.Done() 48954 } 48955 ret[i] = ec.marshalNCommerce_Price_Charge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐCharge(ctx, sel, v[i]) 48956 } 48957 if isLen1 { 48958 f(i) 48959 } else { 48960 go f(i) 48961 } 48962 48963 } 48964 wg.Wait() 48965 48966 for _, e := range ret { 48967 if e == graphql.Null { 48968 return graphql.Null 48969 } 48970 } 48971 48972 return ret 48973 } 48974 48975 func (ec *executionContext) marshalOCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.Product) graphql.Marshaler { 48976 if v == nil { 48977 return graphql.Null 48978 } 48979 return ec._Commerce_Product(ctx, sel, v) 48980 } 48981 48982 func (ec *executionContext) marshalOCommerce_Product2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProductᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.Product) graphql.Marshaler { 48983 if v == nil { 48984 return graphql.Null 48985 } 48986 ret := make(graphql.Array, len(v)) 48987 var wg sync.WaitGroup 48988 isLen1 := len(v) == 1 48989 if !isLen1 { 48990 wg.Add(len(v)) 48991 } 48992 for i := range v { 48993 i := i 48994 fc := &graphql.FieldContext{ 48995 Index: &i, 48996 Result: &v[i], 48997 } 48998 ctx := graphql.WithFieldContext(ctx, fc) 48999 f := func(i int) { 49000 defer func() { 49001 if r := recover(); r != nil { 49002 ec.Error(ctx, ec.Recover(ctx, r)) 49003 ret = nil 49004 } 49005 }() 49006 if !isLen1 { 49007 defer wg.Done() 49008 } 49009 ret[i] = ec.marshalNCommerce_Product2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐProduct(ctx, sel, v[i]) 49010 } 49011 if isLen1 { 49012 f(i) 49013 } else { 49014 go f(i) 49015 } 49016 49017 } 49018 wg.Wait() 49019 49020 for _, e := range ret { 49021 if e == graphql.Null { 49022 return graphql.Null 49023 } 49024 } 49025 49026 return ret 49027 } 49028 49029 func (ec *executionContext) marshalOCommerce_Product_ActiveVariationSelection2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐActiveVariationSelectionᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.ActiveVariationSelection) graphql.Marshaler { 49030 if v == nil { 49031 return graphql.Null 49032 } 49033 ret := make(graphql.Array, len(v)) 49034 var wg sync.WaitGroup 49035 isLen1 := len(v) == 1 49036 if !isLen1 { 49037 wg.Add(len(v)) 49038 } 49039 for i := range v { 49040 i := i 49041 fc := &graphql.FieldContext{ 49042 Index: &i, 49043 Result: &v[i], 49044 } 49045 ctx := graphql.WithFieldContext(ctx, fc) 49046 f := func(i int) { 49047 defer func() { 49048 if r := recover(); r != nil { 49049 ec.Error(ctx, ec.Recover(ctx, r)) 49050 ret = nil 49051 } 49052 }() 49053 if !isLen1 { 49054 defer wg.Done() 49055 } 49056 ret[i] = ec.marshalNCommerce_Product_ActiveVariationSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐActiveVariationSelection(ctx, sel, v[i]) 49057 } 49058 if isLen1 { 49059 f(i) 49060 } else { 49061 go f(i) 49062 } 49063 49064 } 49065 wg.Wait() 49066 49067 for _, e := range ret { 49068 if e == graphql.Null { 49069 return graphql.Null 49070 } 49071 } 49072 49073 return ret 49074 } 49075 49076 func (ec *executionContext) marshalOCommerce_Product_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttribute(ctx context.Context, sel ast.SelectionSet, v domain1.Attribute) graphql.Marshaler { 49077 return ec._Commerce_Product_Attribute(ctx, sel, &v) 49078 } 49079 49080 func (ec *executionContext) marshalOCommerce_Product_Attribute2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttributeᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.Attribute) graphql.Marshaler { 49081 if v == nil { 49082 return graphql.Null 49083 } 49084 ret := make(graphql.Array, len(v)) 49085 var wg sync.WaitGroup 49086 isLen1 := len(v) == 1 49087 if !isLen1 { 49088 wg.Add(len(v)) 49089 } 49090 for i := range v { 49091 i := i 49092 fc := &graphql.FieldContext{ 49093 Index: &i, 49094 Result: &v[i], 49095 } 49096 ctx := graphql.WithFieldContext(ctx, fc) 49097 f := func(i int) { 49098 defer func() { 49099 if r := recover(); r != nil { 49100 ec.Error(ctx, ec.Recover(ctx, r)) 49101 ret = nil 49102 } 49103 }() 49104 if !isLen1 { 49105 defer wg.Done() 49106 } 49107 ret[i] = ec.marshalNCommerce_Product_Attribute2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐAttribute(ctx, sel, v[i]) 49108 } 49109 if isLen1 { 49110 f(i) 49111 } else { 49112 go f(i) 49113 } 49114 49115 } 49116 wg.Wait() 49117 49118 for _, e := range ret { 49119 if e == graphql.Null { 49120 return graphql.Null 49121 } 49122 } 49123 49124 return ret 49125 } 49126 49127 func (ec *executionContext) marshalOCommerce_Product_Badge2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadgeᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.Badge) graphql.Marshaler { 49128 if v == nil { 49129 return graphql.Null 49130 } 49131 ret := make(graphql.Array, len(v)) 49132 var wg sync.WaitGroup 49133 isLen1 := len(v) == 1 49134 if !isLen1 { 49135 wg.Add(len(v)) 49136 } 49137 for i := range v { 49138 i := i 49139 fc := &graphql.FieldContext{ 49140 Index: &i, 49141 Result: &v[i], 49142 } 49143 ctx := graphql.WithFieldContext(ctx, fc) 49144 f := func(i int) { 49145 defer func() { 49146 if r := recover(); r != nil { 49147 ec.Error(ctx, ec.Recover(ctx, r)) 49148 ret = nil 49149 } 49150 }() 49151 if !isLen1 { 49152 defer wg.Done() 49153 } 49154 ret[i] = ec.marshalNCommerce_Product_Badge2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadge(ctx, sel, v[i]) 49155 } 49156 if isLen1 { 49157 f(i) 49158 } else { 49159 go f(i) 49160 } 49161 49162 } 49163 wg.Wait() 49164 49165 for _, e := range ret { 49166 if e == graphql.Null { 49167 return graphql.Null 49168 } 49169 } 49170 49171 return ret 49172 } 49173 49174 func (ec *executionContext) marshalOCommerce_Product_Badge2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐBadge(ctx context.Context, sel ast.SelectionSet, v *domain1.Badge) graphql.Marshaler { 49175 if v == nil { 49176 return graphql.Null 49177 } 49178 return ec._Commerce_Product_Badge(ctx, sel, v) 49179 } 49180 49181 func (ec *executionContext) marshalOCommerce_Product_CategoryTeaser2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaserᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.CategoryTeaser) graphql.Marshaler { 49182 if v == nil { 49183 return graphql.Null 49184 } 49185 ret := make(graphql.Array, len(v)) 49186 var wg sync.WaitGroup 49187 isLen1 := len(v) == 1 49188 if !isLen1 { 49189 wg.Add(len(v)) 49190 } 49191 for i := range v { 49192 i := i 49193 fc := &graphql.FieldContext{ 49194 Index: &i, 49195 Result: &v[i], 49196 } 49197 ctx := graphql.WithFieldContext(ctx, fc) 49198 f := func(i int) { 49199 defer func() { 49200 if r := recover(); r != nil { 49201 ec.Error(ctx, ec.Recover(ctx, r)) 49202 ret = nil 49203 } 49204 }() 49205 if !isLen1 { 49206 defer wg.Done() 49207 } 49208 ret[i] = ec.marshalNCommerce_Product_CategoryTeaser2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaser(ctx, sel, v[i]) 49209 } 49210 if isLen1 { 49211 f(i) 49212 } else { 49213 go f(i) 49214 } 49215 49216 } 49217 wg.Wait() 49218 49219 for _, e := range ret { 49220 if e == graphql.Null { 49221 return graphql.Null 49222 } 49223 } 49224 49225 return ret 49226 } 49227 49228 func (ec *executionContext) marshalOCommerce_Product_CategoryTeaser2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐCategoryTeaser(ctx context.Context, sel ast.SelectionSet, v *domain1.CategoryTeaser) graphql.Marshaler { 49229 if v == nil { 49230 return graphql.Null 49231 } 49232 return ec._Commerce_Product_CategoryTeaser(ctx, sel, v) 49233 } 49234 49235 func (ec *executionContext) marshalOCommerce_Product_Choice2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.Choice) graphql.Marshaler { 49236 if v == nil { 49237 return graphql.Null 49238 } 49239 ret := make(graphql.Array, len(v)) 49240 var wg sync.WaitGroup 49241 isLen1 := len(v) == 1 49242 if !isLen1 { 49243 wg.Add(len(v)) 49244 } 49245 for i := range v { 49246 i := i 49247 fc := &graphql.FieldContext{ 49248 Index: &i, 49249 Result: &v[i], 49250 } 49251 ctx := graphql.WithFieldContext(ctx, fc) 49252 f := func(i int) { 49253 defer func() { 49254 if r := recover(); r != nil { 49255 ec.Error(ctx, ec.Recover(ctx, r)) 49256 ret = nil 49257 } 49258 }() 49259 if !isLen1 { 49260 defer wg.Done() 49261 } 49262 ret[i] = ec.marshalNCommerce_Product_Choice2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoice(ctx, sel, v[i]) 49263 } 49264 if isLen1 { 49265 f(i) 49266 } else { 49267 go f(i) 49268 } 49269 49270 } 49271 wg.Wait() 49272 49273 for _, e := range ret { 49274 if e == graphql.Null { 49275 return graphql.Null 49276 } 49277 } 49278 49279 return ret 49280 } 49281 49282 func (ec *executionContext) unmarshalOCommerce_Product_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfigurationᚄ(ctx context.Context, v interface{}) ([]*graphqlproductdto.ChoiceConfiguration, error) { 49283 if v == nil { 49284 return nil, nil 49285 } 49286 var vSlice []interface{} 49287 if v != nil { 49288 vSlice = graphql.CoerceList(v) 49289 } 49290 var err error 49291 res := make([]*graphqlproductdto.ChoiceConfiguration, len(vSlice)) 49292 for i := range vSlice { 49293 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 49294 res[i], err = ec.unmarshalNCommerce_Product_ChoiceConfigurationInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfiguration(ctx, vSlice[i]) 49295 if err != nil { 49296 return nil, err 49297 } 49298 } 49299 return res, nil 49300 } 49301 49302 func (ec *executionContext) marshalOCommerce_Product_Loyalty_EarningInfo2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyEarningInfo(ctx context.Context, sel ast.SelectionSet, v *domain1.LoyaltyEarningInfo) graphql.Marshaler { 49303 if v == nil { 49304 return graphql.Null 49305 } 49306 return ec._Commerce_Product_Loyalty_EarningInfo(ctx, sel, v) 49307 } 49308 49309 func (ec *executionContext) marshalOCommerce_Product_Loyalty_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.LoyaltyPriceInfo) graphql.Marshaler { 49310 if v == nil { 49311 return graphql.Null 49312 } 49313 ret := make(graphql.Array, len(v)) 49314 var wg sync.WaitGroup 49315 isLen1 := len(v) == 1 49316 if !isLen1 { 49317 wg.Add(len(v)) 49318 } 49319 for i := range v { 49320 i := i 49321 fc := &graphql.FieldContext{ 49322 Index: &i, 49323 Result: &v[i], 49324 } 49325 ctx := graphql.WithFieldContext(ctx, fc) 49326 f := func(i int) { 49327 defer func() { 49328 if r := recover(); r != nil { 49329 ec.Error(ctx, ec.Recover(ctx, r)) 49330 ret = nil 49331 } 49332 }() 49333 if !isLen1 { 49334 defer wg.Done() 49335 } 49336 ret[i] = ec.marshalNCommerce_Product_Loyalty_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfo(ctx, sel, v[i]) 49337 } 49338 if isLen1 { 49339 f(i) 49340 } else { 49341 go f(i) 49342 } 49343 49344 } 49345 wg.Wait() 49346 49347 for _, e := range ret { 49348 if e == graphql.Null { 49349 return graphql.Null 49350 } 49351 } 49352 49353 return ret 49354 } 49355 49356 func (ec *executionContext) marshalOCommerce_Product_Loyalty_PriceInfo2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐLoyaltyPriceInfo(ctx context.Context, sel ast.SelectionSet, v *domain1.LoyaltyPriceInfo) graphql.Marshaler { 49357 if v == nil { 49358 return graphql.Null 49359 } 49360 return ec._Commerce_Product_Loyalty_PriceInfo(ctx, sel, v) 49361 } 49362 49363 func (ec *executionContext) marshalOCommerce_Product_MediaItem2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMediaᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.Media) graphql.Marshaler { 49364 if v == nil { 49365 return graphql.Null 49366 } 49367 ret := make(graphql.Array, len(v)) 49368 var wg sync.WaitGroup 49369 isLen1 := len(v) == 1 49370 if !isLen1 { 49371 wg.Add(len(v)) 49372 } 49373 for i := range v { 49374 i := i 49375 fc := &graphql.FieldContext{ 49376 Index: &i, 49377 Result: &v[i], 49378 } 49379 ctx := graphql.WithFieldContext(ctx, fc) 49380 f := func(i int) { 49381 defer func() { 49382 if r := recover(); r != nil { 49383 ec.Error(ctx, ec.Recover(ctx, r)) 49384 ret = nil 49385 } 49386 }() 49387 if !isLen1 { 49388 defer wg.Done() 49389 } 49390 ret[i] = ec.marshalNCommerce_Product_MediaItem2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐMedia(ctx, sel, v[i]) 49391 } 49392 if isLen1 { 49393 f(i) 49394 } else { 49395 go f(i) 49396 } 49397 49398 } 49399 wg.Wait() 49400 49401 for _, e := range ret { 49402 if e == graphql.Null { 49403 return graphql.Null 49404 } 49405 } 49406 49407 return ret 49408 } 49409 49410 func (ec *executionContext) marshalOCommerce_Product_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.Option) graphql.Marshaler { 49411 if v == nil { 49412 return graphql.Null 49413 } 49414 ret := make(graphql.Array, len(v)) 49415 var wg sync.WaitGroup 49416 isLen1 := len(v) == 1 49417 if !isLen1 { 49418 wg.Add(len(v)) 49419 } 49420 for i := range v { 49421 i := i 49422 fc := &graphql.FieldContext{ 49423 Index: &i, 49424 Result: &v[i], 49425 } 49426 ctx := graphql.WithFieldContext(ctx, fc) 49427 f := func(i int) { 49428 defer func() { 49429 if r := recover(); r != nil { 49430 ec.Error(ctx, ec.Recover(ctx, r)) 49431 ret = nil 49432 } 49433 }() 49434 if !isLen1 { 49435 defer wg.Done() 49436 } 49437 ret[i] = ec.marshalNCommerce_Product_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOption(ctx, sel, v[i]) 49438 } 49439 if isLen1 { 49440 f(i) 49441 } else { 49442 go f(i) 49443 } 49444 49445 } 49446 wg.Wait() 49447 49448 for _, e := range ret { 49449 if e == graphql.Null { 49450 return graphql.Null 49451 } 49452 } 49453 49454 return ret 49455 } 49456 49457 func (ec *executionContext) marshalOCommerce_Product_Option2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐOption(ctx context.Context, sel ast.SelectionSet, v *graphqlproductdto.Option) graphql.Marshaler { 49458 if v == nil { 49459 return graphql.Null 49460 } 49461 return ec._Commerce_Product_Option(ctx, sel, v) 49462 } 49463 49464 func (ec *executionContext) marshalOCommerce_Product_PriceInfo2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfoᚄ(ctx context.Context, sel ast.SelectionSet, v []domain1.PriceInfo) graphql.Marshaler { 49465 if v == nil { 49466 return graphql.Null 49467 } 49468 ret := make(graphql.Array, len(v)) 49469 var wg sync.WaitGroup 49470 isLen1 := len(v) == 1 49471 if !isLen1 { 49472 wg.Add(len(v)) 49473 } 49474 for i := range v { 49475 i := i 49476 fc := &graphql.FieldContext{ 49477 Index: &i, 49478 Result: &v[i], 49479 } 49480 ctx := graphql.WithFieldContext(ctx, fc) 49481 f := func(i int) { 49482 defer func() { 49483 if r := recover(); r != nil { 49484 ec.Error(ctx, ec.Recover(ctx, r)) 49485 ret = nil 49486 } 49487 }() 49488 if !isLen1 { 49489 defer wg.Done() 49490 } 49491 ret[i] = ec.marshalNCommerce_Product_PriceInfo2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋdomainᚐPriceInfo(ctx, sel, v[i]) 49492 } 49493 if isLen1 { 49494 f(i) 49495 } else { 49496 go f(i) 49497 } 49498 49499 } 49500 wg.Wait() 49501 49502 for _, e := range ret { 49503 if e == graphql.Null { 49504 return graphql.Null 49505 } 49506 } 49507 49508 return ret 49509 } 49510 49511 func (ec *executionContext) marshalOCommerce_Product_VariantSelection_Match_Attributes2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchAttributesᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariantSelectionMatchAttributes) graphql.Marshaler { 49512 if v == nil { 49513 return graphql.Null 49514 } 49515 ret := make(graphql.Array, len(v)) 49516 var wg sync.WaitGroup 49517 isLen1 := len(v) == 1 49518 if !isLen1 { 49519 wg.Add(len(v)) 49520 } 49521 for i := range v { 49522 i := i 49523 fc := &graphql.FieldContext{ 49524 Index: &i, 49525 Result: &v[i], 49526 } 49527 ctx := graphql.WithFieldContext(ctx, fc) 49528 f := func(i int) { 49529 defer func() { 49530 if r := recover(); r != nil { 49531 ec.Error(ctx, ec.Recover(ctx, r)) 49532 ret = nil 49533 } 49534 }() 49535 if !isLen1 { 49536 defer wg.Done() 49537 } 49538 ret[i] = ec.marshalNCommerce_Product_VariantSelection_Match_Attributes2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariantSelectionMatchAttributes(ctx, sel, v[i]) 49539 } 49540 if isLen1 { 49541 f(i) 49542 } else { 49543 go f(i) 49544 } 49545 49546 } 49547 wg.Wait() 49548 49549 for _, e := range ret { 49550 if e == graphql.Null { 49551 return graphql.Null 49552 } 49553 } 49554 49555 return ret 49556 } 49557 49558 func (ec *executionContext) marshalOCommerce_Product_VariationSelection2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionᚄ(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariationSelection) graphql.Marshaler { 49559 if v == nil { 49560 return graphql.Null 49561 } 49562 ret := make(graphql.Array, len(v)) 49563 var wg sync.WaitGroup 49564 isLen1 := len(v) == 1 49565 if !isLen1 { 49566 wg.Add(len(v)) 49567 } 49568 for i := range v { 49569 i := i 49570 fc := &graphql.FieldContext{ 49571 Index: &i, 49572 Result: &v[i], 49573 } 49574 ctx := graphql.WithFieldContext(ctx, fc) 49575 f := func(i int) { 49576 defer func() { 49577 if r := recover(); r != nil { 49578 ec.Error(ctx, ec.Recover(ctx, r)) 49579 ret = nil 49580 } 49581 }() 49582 if !isLen1 { 49583 defer wg.Done() 49584 } 49585 ret[i] = ec.marshalNCommerce_Product_VariationSelection2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelection(ctx, sel, v[i]) 49586 } 49587 if isLen1 { 49588 f(i) 49589 } else { 49590 go f(i) 49591 } 49592 49593 } 49594 wg.Wait() 49595 49596 for _, e := range ret { 49597 if e == graphql.Null { 49598 return graphql.Null 49599 } 49600 } 49601 49602 return ret 49603 } 49604 49605 func (ec *executionContext) marshalOCommerce_Product_VariationSelection_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOption(ctx context.Context, sel ast.SelectionSet, v graphqlproductdto.VariationSelectionOption) graphql.Marshaler { 49606 return ec._Commerce_Product_VariationSelection_Option(ctx, sel, &v) 49607 } 49608 49609 func (ec *executionContext) marshalOCommerce_Product_VariationSelection_Option2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOption(ctx context.Context, sel ast.SelectionSet, v []graphqlproductdto.VariationSelectionOption) graphql.Marshaler { 49610 if v == nil { 49611 return graphql.Null 49612 } 49613 ret := make(graphql.Array, len(v)) 49614 var wg sync.WaitGroup 49615 isLen1 := len(v) == 1 49616 if !isLen1 { 49617 wg.Add(len(v)) 49618 } 49619 for i := range v { 49620 i := i 49621 fc := &graphql.FieldContext{ 49622 Index: &i, 49623 Result: &v[i], 49624 } 49625 ctx := graphql.WithFieldContext(ctx, fc) 49626 f := func(i int) { 49627 defer func() { 49628 if r := recover(); r != nil { 49629 ec.Error(ctx, ec.Recover(ctx, r)) 49630 ret = nil 49631 } 49632 }() 49633 if !isLen1 { 49634 defer wg.Done() 49635 } 49636 ret[i] = ec.marshalOCommerce_Product_VariationSelection_Option2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐVariationSelectionOption(ctx, sel, v[i]) 49637 } 49638 if isLen1 { 49639 f(i) 49640 } else { 49641 go f(i) 49642 } 49643 49644 } 49645 wg.Wait() 49646 49647 return ret 49648 } 49649 49650 func (ec *executionContext) marshalOCommerce_Search_Action2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐActionᚄ(ctx context.Context, sel ast.SelectionSet, v []domain2.Action) graphql.Marshaler { 49651 if v == nil { 49652 return graphql.Null 49653 } 49654 ret := make(graphql.Array, len(v)) 49655 var wg sync.WaitGroup 49656 isLen1 := len(v) == 1 49657 if !isLen1 { 49658 wg.Add(len(v)) 49659 } 49660 for i := range v { 49661 i := i 49662 fc := &graphql.FieldContext{ 49663 Index: &i, 49664 Result: &v[i], 49665 } 49666 ctx := graphql.WithFieldContext(ctx, fc) 49667 f := func(i int) { 49668 defer func() { 49669 if r := recover(); r != nil { 49670 ec.Error(ctx, ec.Recover(ctx, r)) 49671 ret = nil 49672 } 49673 }() 49674 if !isLen1 { 49675 defer wg.Done() 49676 } 49677 ret[i] = ec.marshalNCommerce_Search_Action2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐAction(ctx, sel, v[i]) 49678 } 49679 if isLen1 { 49680 f(i) 49681 } else { 49682 go f(i) 49683 } 49684 49685 } 49686 wg.Wait() 49687 49688 for _, e := range ret { 49689 if e == graphql.Null { 49690 return graphql.Null 49691 } 49692 } 49693 49694 return ret 49695 } 49696 49697 func (ec *executionContext) unmarshalOCommerce_Search_KeyValueFilter2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchKeyValueFilterᚄ(ctx context.Context, v interface{}) ([]searchdto.CommerceSearchKeyValueFilter, error) { 49698 if v == nil { 49699 return nil, nil 49700 } 49701 var vSlice []interface{} 49702 if v != nil { 49703 vSlice = graphql.CoerceList(v) 49704 } 49705 var err error 49706 res := make([]searchdto.CommerceSearchKeyValueFilter, len(vSlice)) 49707 for i := range vSlice { 49708 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 49709 res[i], err = ec.unmarshalNCommerce_Search_KeyValueFilter2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchKeyValueFilter(ctx, vSlice[i]) 49710 if err != nil { 49711 return nil, err 49712 } 49713 } 49714 return res, nil 49715 } 49716 49717 func (ec *executionContext) marshalOCommerce_Search_Promotion2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐPromotionDTO(ctx context.Context, sel ast.SelectionSet, v *searchdto.PromotionDTO) graphql.Marshaler { 49718 if v == nil { 49719 return graphql.Null 49720 } 49721 return ec._Commerce_Search_Promotion(ctx, sel, v) 49722 } 49723 49724 func (ec *executionContext) marshalOCommerce_Search_PromotionMedia2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐMedia(ctx context.Context, sel ast.SelectionSet, v *domain2.Media) graphql.Marshaler { 49725 if v == nil { 49726 return graphql.Null 49727 } 49728 return ec._Commerce_Search_PromotionMedia(ctx, sel, v) 49729 } 49730 49731 func (ec *executionContext) unmarshalOCommerce_Search_Request2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx context.Context, v interface{}) (*searchdto.CommerceSearchRequest, error) { 49732 if v == nil { 49733 return nil, nil 49734 } 49735 res, err := ec.unmarshalInputCommerce_Search_Request(ctx, v) 49736 return &res, graphql.ErrorOnPath(ctx, err) 49737 } 49738 49739 func (ec *executionContext) marshalOCommerce_Search_SortOption2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchSortOptionᚄ(ctx context.Context, sel ast.SelectionSet, v []*searchdto.CommerceSearchSortOption) graphql.Marshaler { 49740 if v == nil { 49741 return graphql.Null 49742 } 49743 ret := make(graphql.Array, len(v)) 49744 var wg sync.WaitGroup 49745 isLen1 := len(v) == 1 49746 if !isLen1 { 49747 wg.Add(len(v)) 49748 } 49749 for i := range v { 49750 i := i 49751 fc := &graphql.FieldContext{ 49752 Index: &i, 49753 Result: &v[i], 49754 } 49755 ctx := graphql.WithFieldContext(ctx, fc) 49756 f := func(i int) { 49757 defer func() { 49758 if r := recover(); r != nil { 49759 ec.Error(ctx, ec.Recover(ctx, r)) 49760 ret = nil 49761 } 49762 }() 49763 if !isLen1 { 49764 defer wg.Done() 49765 } 49766 ret[i] = ec.marshalNCommerce_Search_SortOption2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchSortOption(ctx, sel, v[i]) 49767 } 49768 if isLen1 { 49769 f(i) 49770 } else { 49771 go f(i) 49772 } 49773 49774 } 49775 wg.Wait() 49776 49777 for _, e := range ret { 49778 if e == graphql.Null { 49779 return graphql.Null 49780 } 49781 } 49782 49783 return ret 49784 } 49785 49786 func (ec *executionContext) marshalOCommerce_Search_Suggestion2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSuggestionᚄ(ctx context.Context, sel ast.SelectionSet, v []domain2.Suggestion) graphql.Marshaler { 49787 if v == nil { 49788 return graphql.Null 49789 } 49790 ret := make(graphql.Array, len(v)) 49791 var wg sync.WaitGroup 49792 isLen1 := len(v) == 1 49793 if !isLen1 { 49794 wg.Add(len(v)) 49795 } 49796 for i := range v { 49797 i := i 49798 fc := &graphql.FieldContext{ 49799 Index: &i, 49800 Result: &v[i], 49801 } 49802 ctx := graphql.WithFieldContext(ctx, fc) 49803 f := func(i int) { 49804 defer func() { 49805 if r := recover(); r != nil { 49806 ec.Error(ctx, ec.Recover(ctx, r)) 49807 ret = nil 49808 } 49809 }() 49810 if !isLen1 { 49811 defer wg.Done() 49812 } 49813 ret[i] = ec.marshalNCommerce_Search_Suggestion2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋdomainᚐSuggestion(ctx, sel, v[i]) 49814 } 49815 if isLen1 { 49816 f(i) 49817 } else { 49818 go f(i) 49819 } 49820 49821 } 49822 wg.Wait() 49823 49824 for _, e := range ret { 49825 if e == graphql.Null { 49826 return graphql.Null 49827 } 49828 } 49829 49830 return ret 49831 } 49832 49833 func (ec *executionContext) marshalOCommerce_Search_TreeFacetItem2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItemᚄ(ctx context.Context, sel ast.SelectionSet, v []*searchdto.CommerceSearchTreeFacetItem) graphql.Marshaler { 49834 if v == nil { 49835 return graphql.Null 49836 } 49837 ret := make(graphql.Array, len(v)) 49838 var wg sync.WaitGroup 49839 isLen1 := len(v) == 1 49840 if !isLen1 { 49841 wg.Add(len(v)) 49842 } 49843 for i := range v { 49844 i := i 49845 fc := &graphql.FieldContext{ 49846 Index: &i, 49847 Result: &v[i], 49848 } 49849 ctx := graphql.WithFieldContext(ctx, fc) 49850 f := func(i int) { 49851 defer func() { 49852 if r := recover(); r != nil { 49853 ec.Error(ctx, ec.Recover(ctx, r)) 49854 ret = nil 49855 } 49856 }() 49857 if !isLen1 { 49858 defer wg.Done() 49859 } 49860 ret[i] = ec.marshalNCommerce_Search_TreeFacetItem2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchTreeFacetItem(ctx, sel, v[i]) 49861 } 49862 if isLen1 { 49863 f(i) 49864 } else { 49865 go f(i) 49866 } 49867 49868 } 49869 wg.Wait() 49870 49871 for _, e := range ret { 49872 if e == graphql.Null { 49873 return graphql.Null 49874 } 49875 } 49876 49877 return ret 49878 } 49879 49880 func (ec *executionContext) marshalOCommerce_Tree2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx context.Context, sel ast.SelectionSet, v domain3.Tree) graphql.Marshaler { 49881 if v == nil { 49882 return graphql.Null 49883 } 49884 return ec._Commerce_Tree(ctx, sel, v) 49885 } 49886 49887 func (ec *executionContext) marshalOCommerce_Tree2ᚕflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx context.Context, sel ast.SelectionSet, v []domain3.Tree) graphql.Marshaler { 49888 if v == nil { 49889 return graphql.Null 49890 } 49891 ret := make(graphql.Array, len(v)) 49892 var wg sync.WaitGroup 49893 isLen1 := len(v) == 1 49894 if !isLen1 { 49895 wg.Add(len(v)) 49896 } 49897 for i := range v { 49898 i := i 49899 fc := &graphql.FieldContext{ 49900 Index: &i, 49901 Result: &v[i], 49902 } 49903 ctx := graphql.WithFieldContext(ctx, fc) 49904 f := func(i int) { 49905 defer func() { 49906 if r := recover(); r != nil { 49907 ec.Error(ctx, ec.Recover(ctx, r)) 49908 ret = nil 49909 } 49910 }() 49911 if !isLen1 { 49912 defer wg.Done() 49913 } 49914 ret[i] = ec.marshalOCommerce_Tree2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcategoryᚋdomainᚐTree(ctx, sel, v[i]) 49915 } 49916 if isLen1 { 49917 f(i) 49918 } else { 49919 go f(i) 49920 } 49921 49922 } 49923 wg.Wait() 49924 49925 return ret 49926 } 49927 49928 func (ec *executionContext) unmarshalODate2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { 49929 res, err := graphql2.UnmarshalDate(v) 49930 return res, graphql.ErrorOnPath(ctx, err) 49931 } 49932 49933 func (ec *executionContext) marshalODate2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { 49934 res := graphql2.MarshalDate(v) 49935 return res 49936 } 49937 49938 func (ec *executionContext) unmarshalOFloat2float64(ctx context.Context, v interface{}) (float64, error) { 49939 res, err := graphql.UnmarshalFloat(v) 49940 return res, graphql.ErrorOnPath(ctx, err) 49941 } 49942 49943 func (ec *executionContext) marshalOFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler { 49944 res := graphql.MarshalFloat(v) 49945 return res 49946 } 49947 49948 func (ec *executionContext) unmarshalOFloat2ᚖmathᚋbigᚐFloat(ctx context.Context, v interface{}) (*big.Float, error) { 49949 if v == nil { 49950 return nil, nil 49951 } 49952 res, err := graphql2.UnmarshalFloat(v) 49953 return &res, graphql.ErrorOnPath(ctx, err) 49954 } 49955 49956 func (ec *executionContext) marshalOFloat2ᚖmathᚋbigᚐFloat(ctx context.Context, sel ast.SelectionSet, v *big.Float) graphql.Marshaler { 49957 if v == nil { 49958 return graphql.Null 49959 } 49960 res := graphql2.MarshalFloat(*v) 49961 return res 49962 } 49963 49964 func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { 49965 res, err := graphql.UnmarshalInt(v) 49966 return res, graphql.ErrorOnPath(ctx, err) 49967 } 49968 49969 func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 49970 res := graphql.MarshalInt(v) 49971 return res 49972 } 49973 49974 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { 49975 res, err := graphql.UnmarshalString(v) 49976 return res, graphql.ErrorOnPath(ctx, err) 49977 } 49978 49979 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 49980 res := graphql.MarshalString(v) 49981 return res 49982 } 49983 49984 func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { 49985 if v == nil { 49986 return nil, nil 49987 } 49988 var vSlice []interface{} 49989 if v != nil { 49990 vSlice = graphql.CoerceList(v) 49991 } 49992 var err error 49993 res := make([]string, len(vSlice)) 49994 for i := range vSlice { 49995 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 49996 res[i], err = ec.unmarshalOString2string(ctx, vSlice[i]) 49997 if err != nil { 49998 return nil, err 49999 } 50000 } 50001 return res, nil 50002 } 50003 50004 func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 50005 if v == nil { 50006 return graphql.Null 50007 } 50008 ret := make(graphql.Array, len(v)) 50009 for i := range v { 50010 ret[i] = ec.marshalOString2string(ctx, sel, v[i]) 50011 } 50012 50013 return ret 50014 } 50015 50016 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 50017 if v == nil { 50018 return nil, nil 50019 } 50020 var vSlice []interface{} 50021 if v != nil { 50022 vSlice = graphql.CoerceList(v) 50023 } 50024 var err error 50025 res := make([]string, len(vSlice)) 50026 for i := range vSlice { 50027 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) 50028 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 50029 if err != nil { 50030 return nil, err 50031 } 50032 } 50033 return res, nil 50034 } 50035 50036 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 50037 if v == nil { 50038 return graphql.Null 50039 } 50040 ret := make(graphql.Array, len(v)) 50041 for i := range v { 50042 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 50043 } 50044 50045 for _, e := range ret { 50046 if e == graphql.Null { 50047 return graphql.Null 50048 } 50049 } 50050 50051 return ret 50052 } 50053 50054 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 50055 if v == nil { 50056 return nil, nil 50057 } 50058 res, err := graphql.UnmarshalString(v) 50059 return &res, graphql.ErrorOnPath(ctx, err) 50060 } 50061 50062 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 50063 if v == nil { 50064 return graphql.Null 50065 } 50066 res := graphql.MarshalString(*v) 50067 return res 50068 } 50069 50070 func (ec *executionContext) unmarshalOTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { 50071 res, err := graphql.UnmarshalTime(v) 50072 return res, graphql.ErrorOnPath(ctx, err) 50073 } 50074 50075 func (ec *executionContext) marshalOTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { 50076 res := graphql.MarshalTime(v) 50077 return res 50078 } 50079 50080 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 50081 if v == nil { 50082 return graphql.Null 50083 } 50084 ret := make(graphql.Array, len(v)) 50085 var wg sync.WaitGroup 50086 isLen1 := len(v) == 1 50087 if !isLen1 { 50088 wg.Add(len(v)) 50089 } 50090 for i := range v { 50091 i := i 50092 fc := &graphql.FieldContext{ 50093 Index: &i, 50094 Result: &v[i], 50095 } 50096 ctx := graphql.WithFieldContext(ctx, fc) 50097 f := func(i int) { 50098 defer func() { 50099 if r := recover(); r != nil { 50100 ec.Error(ctx, ec.Recover(ctx, r)) 50101 ret = nil 50102 } 50103 }() 50104 if !isLen1 { 50105 defer wg.Done() 50106 } 50107 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 50108 } 50109 if isLen1 { 50110 f(i) 50111 } else { 50112 go f(i) 50113 } 50114 50115 } 50116 wg.Wait() 50117 50118 for _, e := range ret { 50119 if e == graphql.Null { 50120 return graphql.Null 50121 } 50122 } 50123 50124 return ret 50125 } 50126 50127 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 50128 if v == nil { 50129 return graphql.Null 50130 } 50131 ret := make(graphql.Array, len(v)) 50132 var wg sync.WaitGroup 50133 isLen1 := len(v) == 1 50134 if !isLen1 { 50135 wg.Add(len(v)) 50136 } 50137 for i := range v { 50138 i := i 50139 fc := &graphql.FieldContext{ 50140 Index: &i, 50141 Result: &v[i], 50142 } 50143 ctx := graphql.WithFieldContext(ctx, fc) 50144 f := func(i int) { 50145 defer func() { 50146 if r := recover(); r != nil { 50147 ec.Error(ctx, ec.Recover(ctx, r)) 50148 ret = nil 50149 } 50150 }() 50151 if !isLen1 { 50152 defer wg.Done() 50153 } 50154 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 50155 } 50156 if isLen1 { 50157 f(i) 50158 } else { 50159 go f(i) 50160 } 50161 50162 } 50163 wg.Wait() 50164 50165 for _, e := range ret { 50166 if e == graphql.Null { 50167 return graphql.Null 50168 } 50169 } 50170 50171 return ret 50172 } 50173 50174 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 50175 if v == nil { 50176 return graphql.Null 50177 } 50178 ret := make(graphql.Array, len(v)) 50179 var wg sync.WaitGroup 50180 isLen1 := len(v) == 1 50181 if !isLen1 { 50182 wg.Add(len(v)) 50183 } 50184 for i := range v { 50185 i := i 50186 fc := &graphql.FieldContext{ 50187 Index: &i, 50188 Result: &v[i], 50189 } 50190 ctx := graphql.WithFieldContext(ctx, fc) 50191 f := func(i int) { 50192 defer func() { 50193 if r := recover(); r != nil { 50194 ec.Error(ctx, ec.Recover(ctx, r)) 50195 ret = nil 50196 } 50197 }() 50198 if !isLen1 { 50199 defer wg.Done() 50200 } 50201 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 50202 } 50203 if isLen1 { 50204 f(i) 50205 } else { 50206 go f(i) 50207 } 50208 50209 } 50210 wg.Wait() 50211 50212 for _, e := range ret { 50213 if e == graphql.Null { 50214 return graphql.Null 50215 } 50216 } 50217 50218 return ret 50219 } 50220 50221 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 50222 if v == nil { 50223 return graphql.Null 50224 } 50225 return ec.___Schema(ctx, sel, v) 50226 } 50227 50228 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 50229 if v == nil { 50230 return graphql.Null 50231 } 50232 ret := make(graphql.Array, len(v)) 50233 var wg sync.WaitGroup 50234 isLen1 := len(v) == 1 50235 if !isLen1 { 50236 wg.Add(len(v)) 50237 } 50238 for i := range v { 50239 i := i 50240 fc := &graphql.FieldContext{ 50241 Index: &i, 50242 Result: &v[i], 50243 } 50244 ctx := graphql.WithFieldContext(ctx, fc) 50245 f := func(i int) { 50246 defer func() { 50247 if r := recover(); r != nil { 50248 ec.Error(ctx, ec.Recover(ctx, r)) 50249 ret = nil 50250 } 50251 }() 50252 if !isLen1 { 50253 defer wg.Done() 50254 } 50255 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 50256 } 50257 if isLen1 { 50258 f(i) 50259 } else { 50260 go f(i) 50261 } 50262 50263 } 50264 wg.Wait() 50265 50266 for _, e := range ret { 50267 if e == graphql.Null { 50268 return graphql.Null 50269 } 50270 } 50271 50272 return ret 50273 } 50274 50275 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 50276 if v == nil { 50277 return graphql.Null 50278 } 50279 return ec.___Type(ctx, sel, v) 50280 } 50281 50282 // endregion ***************************** type.gotpl *****************************